@fluidattacks/design 3.20.3-pr → 3.21.0-pr.1

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 (148) hide show
  1. package/dist/components/@core/index.js +1 -1
  2. package/dist/components/accordion/accordion-content/index.js +1 -1
  3. package/dist/components/accordion/index.js +1 -1
  4. package/dist/components/alert/index.js +1 -1
  5. package/dist/components/avatar/index.js +1 -1
  6. package/dist/components/button/index.js +1 -1
  7. package/dist/components/card/card-header/index.js +1 -1
  8. package/dist/components/card/card-with-image/index.js +1 -1
  9. package/dist/components/card/card-with-input/index.js +1 -1
  10. package/dist/components/card/card-with-options/index.js +1 -1
  11. package/dist/components/card/card-with-selector/index.js +1 -1
  12. package/dist/components/card/card-with-switch/index.js +1 -1
  13. package/dist/components/card/index.js +1 -1
  14. package/dist/components/carousel/index.js +1 -1
  15. package/dist/components/checkbox/index.js +1 -1
  16. package/dist/components/cloud-image/index.js +1 -1
  17. package/dist/components/code-snippet/index.js +1 -1
  18. package/dist/components/code-snippet/location-code/index.js +1 -1
  19. package/dist/components/colors/index.js +1 -1
  20. package/dist/components/conditions-dialog/index.js +1 -1
  21. package/dist/components/confirm-dialog/index.js +1 -1
  22. package/dist/components/container/index.js +1 -1
  23. package/dist/components/copy-button/index.js +1 -1
  24. package/dist/components/divider/index.js +1 -1
  25. package/dist/components/dropdown/index.js +1 -1
  26. package/dist/components/empty-state/empty-button/index.js +1 -1
  27. package/dist/components/empty-state/index.js +1 -1
  28. package/dist/components/file-preview/index.js +1 -1
  29. package/dist/components/form/index.js +1 -1
  30. package/dist/components/form/inner-form/index.js +1 -1
  31. package/dist/components/grid-container/index.js +1 -1
  32. package/dist/components/group-selector/index.js +1 -1
  33. package/dist/components/group-selector/option-container/index.js +1 -1
  34. package/dist/components/icon/index.js +1 -1
  35. package/dist/components/icon-button/index.js +1 -1
  36. package/dist/components/indicator-card/index.js +1 -1
  37. package/dist/components/info-sidebar/index.js +1 -1
  38. package/dist/components/inputs/fields/combobox/field/index.js +1 -1
  39. package/dist/components/inputs/fields/combobox/index.js +1 -1
  40. package/dist/components/inputs/fields/combobox/option/index.js +1 -1
  41. package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
  42. package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
  43. package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
  44. package/dist/components/inputs/fields/date/calendar/index.js +1 -1
  45. package/dist/components/inputs/fields/date/index.js +1 -1
  46. package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
  47. package/dist/components/inputs/fields/date-range/index.js +1 -1
  48. package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
  49. package/dist/components/inputs/fields/date-time/index.js +1 -1
  50. package/dist/components/inputs/fields/editable/index.js +1 -1
  51. package/dist/components/inputs/fields/input/index.js +1 -1
  52. package/dist/components/inputs/fields/input-array/field/index.js +1 -1
  53. package/dist/components/inputs/fields/input-array/index.js +1 -1
  54. package/dist/components/inputs/fields/input-file/index.js +1 -1
  55. package/dist/components/inputs/fields/input-tags/field/index.js +1 -1
  56. package/dist/components/inputs/fields/input-tags/index.js +1 -1
  57. package/dist/components/inputs/fields/number/index.js +1 -1
  58. package/dist/components/inputs/fields/number-range/index.js +1 -1
  59. package/dist/components/inputs/fields/phone/index.js +1 -1
  60. package/dist/components/inputs/fields/text-area/index.js +1 -1
  61. package/dist/components/inputs/index.js +1 -1
  62. package/dist/components/inputs/label/index.js +1 -1
  63. package/dist/components/inputs/outline-container/index.js +1 -1
  64. package/dist/components/inputs/utils/action-button/index.js +1 -1
  65. package/dist/components/inputs/utils/calendar-button/index.js +1 -1
  66. package/dist/components/inputs/utils/date-selector/index.js +1 -1
  67. package/dist/components/inputs/utils/date-time-field/index.js +1 -1
  68. package/dist/components/inputs/utils/dialog/index.js +1 -1
  69. package/dist/components/inputs/utils/number-field/index.js +1 -1
  70. package/dist/components/inputs/utils/popover/index.js +1 -1
  71. package/dist/components/layout/categories/buttons/index.js +1 -1
  72. package/dist/components/layout/categories/column/index.js +1 -1
  73. package/dist/components/layout/categories/gap/index.js +1 -1
  74. package/dist/components/layout/categories/row/index.js +1 -1
  75. package/dist/components/layout/index.js +1 -1
  76. package/dist/components/link/index.js +1 -1
  77. package/dist/components/link/styles.d.ts +2 -2
  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/plan-card/index.js +1 -1
  107. package/dist/components/plan-card/recommended-tag/index.js +1 -1
  108. package/dist/components/pop-up/description/index.js +1 -1
  109. package/dist/components/pop-up/index.js +1 -1
  110. package/dist/components/premium-feature/index.js +1 -1
  111. package/dist/components/priority-score/index.js +1 -1
  112. package/dist/components/progress-bar/index.js +1 -1
  113. package/dist/components/progress-indicator/in-progress-icon/index.js +1 -1
  114. package/dist/components/progress-indicator/index.js +1 -1
  115. package/dist/components/progress-indicator/step/index.js +1 -1
  116. package/dist/components/radio-button/index.js +1 -1
  117. package/dist/components/scroll-button/index.js +1 -1
  118. package/dist/components/search/index.js +1 -1
  119. package/dist/components/severity-badge/index.js +1 -1
  120. package/dist/components/severity-overview/badge/index.js +1 -1
  121. package/dist/components/severity-overview/index.js +1 -1
  122. package/dist/components/show-on-hover/index.js +1 -1
  123. package/dist/components/slide-out-menu/index.js +1 -1
  124. package/dist/components/slide-out-menu/menu-item/index.js +1 -1
  125. package/dist/components/slider/index.js +1 -1
  126. package/dist/components/slider/thumb/index.js +1 -1
  127. package/dist/components/step-lapse/index.js +1 -1
  128. package/dist/components/table-button/index.js +1 -1
  129. package/dist/components/tabs/index.js +1 -1
  130. package/dist/components/tabs/tab/index.js +1 -1
  131. package/dist/components/tag/index.js +1 -1
  132. package/dist/components/timeline/card/index.js +1 -1
  133. package/dist/components/timeline/index.js +1 -1
  134. package/dist/components/toggle/index.js +1 -1
  135. package/dist/components/tooltip/index.js +1 -1
  136. package/dist/components/tour/index.js +1 -1
  137. package/dist/components/typography/heading/index.js +1 -1
  138. package/dist/components/typography/index.js +1 -1
  139. package/dist/components/typography/span/index.js +1 -1
  140. package/dist/components/typography/text/index.js +1 -1
  141. package/dist/{components-BKVJktyi.js → components-8Csxgu85.js} +30 -30
  142. package/dist/{components-NyNsasNI.mjs → components-CjiPhFCF.mjs} +7 -4
  143. package/dist/hooks/index.js +1 -1
  144. package/dist/index.js +1 -1
  145. package/dist/{vendor-nJMHsTuL.mjs → vendor-BzUP-0MT.mjs} +3835 -3823
  146. package/dist/vendor-CCqkJyOz.js +206 -0
  147. package/package.json +4 -4
  148. package/dist/vendor-DOfNkUnQ.js +0 -206
@@ -1,206 +0,0 @@
1
- "use strict";require('./assets/vendor.css');const A=require("react"),qo=require("react/jsx-runtime"),Ko=require("react-dom");function hP(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 Ge=hP(A),ep=hP(Ko);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 Du(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 lj(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var cj=/^((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)-.*))$/,fj=lj(function(e){return cj.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Hi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ts(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Sn="-ms-",Bf="-moz-",rn="-webkit-",pP="comm",ym="rule",F4="decl",dj="@import",hj="@namespace",mP="@keyframes",pj="@layer",gP=Math.abs,k4=String.fromCharCode,W1=Object.assign;function mj(e,t){return or(e,0)^45?(((t<<2^or(e,0))<<2^or(e,1))<<2^or(e,2))<<2^or(e,3):0}function vP(e){return e.trim()}function Lo(e,t){return(e=t.exec(e))?e[0]:e}function jt(e,t,n){return e.replace(t,n)}function tp(e,t,n){return e.indexOf(t,n)}function or(e,t){return e.charCodeAt(t)|0}function Au(e,t,n){return e.slice(t,n)}function vs(e){return e.length}function yP(e){return e.length}function Sf(e,t){return t.push(e),e}function gj(e,t){return e.map(t).join("")}function zw(e,t){return e.filter(function(n){return!Lo(n,t)})}var bm=1,Yl=1,bP=0,Ji=0,rr=0,yc="";function $m(e,t,n,r,i,s,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:bm,column:Yl,length:o,return:"",siblings:a}}function ha(e,t){return W1($m("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function bl(e){for(;e.root;)e=ha(e.root,{children:[e]});Sf(e,e.siblings)}function vj(){return rr}function yj(){return rr=Ji>0?or(yc,--Ji):0,Yl--,rr===10&&(Yl=1,bm--),rr}function ws(){return rr=Ji<bP?or(yc,Ji++):0,Yl++,rr===10&&(Yl=1,bm++),rr}function $a(){return or(yc,Ji)}function np(){return Ji}function xm(e,t){return Au(yc,e,t)}function Zf(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 bj(e){return bm=Yl=1,bP=vs(yc=e),Ji=0,[]}function $j(e){return yc="",e}function hv(e){return vP(xm(Ji-1,H1(e===91?e+2:e===40?e+1:e)))}function xj(e){for(;(rr=$a())&&rr<33;)ws();return Zf(e)>2||Zf(rr)>3?"":" "}function wj(e,t){for(;--t&&ws()&&!(rr<48||rr>102||rr>57&&rr<65||rr>70&&rr<97););return xm(e,np()+(t<6&&$a()==32&&ws()==32))}function H1(e){for(;ws();)switch(rr){case e:return Ji;case 34:case 39:e!==34&&e!==39&&H1(rr);break;case 40:e===41&&H1(e);break;case 92:ws();break}return Ji}function Cj(e,t){for(;ws()&&e+rr!==57;)if(e+rr===84&&$a()===47)break;return"/*"+xm(t,Ji-1)+"*"+k4(e===47?e:ws())}function Sj(e){for(;!Zf($a());)ws();return xm(e,Ji)}function Ej(e){return $j(rp("",null,null,null,[""],e=bj(e),0,[0],e))}function rp(e,t,n,r,i,s,o,a,l){for(var d=0,h=0,m=o,g=0,b=0,x=0,C=1,D=1,S=1,w=0,T="",O=i,R=s,k=r,K=T;D;)switch(x=w,w=ws()){case 40:if(x!=108&&or(K,m-1)==58){tp(K+=jt(hv(w),"&","&\f"),"&\f",gP(d?a[d-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:K+=hv(w);break;case 9:case 10:case 13:case 32:K+=xj(x);break;case 92:K+=wj(np()-1,7);continue;case 47:switch($a()){case 42:case 47:Sf(Dj(Cj(ws(),np()),t,n,l),l),(Zf(x||1)==5||Zf($a()||1)==5)&&vs(K)&&Au(K,-1,void 0)!==" "&&(K+=" ");break;default:K+="/"}break;case 123*C:a[d++]=vs(K)*S;case 125*C:case 59:case 0:switch(w){case 0:case 125:D=0;case 59+h:S==-1&&(K=jt(K,/\f/g,"")),b>0&&(vs(K)-m||C===0&&x===47)&&Sf(b>32?Ww(K+";",r,n,m-1,l):Ww(jt(K," ","")+";",r,n,m-2,l),l);break;case 59:K+=";";default:if(Sf(k=qw(K,t,n,d,h,i,a,T,O=[],R=[],m,s),s),w===123)if(h===0)rp(K,t,k,k,O,s,m,a,R);else{switch(g){case 99:if(or(K,3)===110)break;case 108:if(or(K,2)===97)break;default:h=0;case 100:case 109:case 115:}h?rp(e,k,k,r&&Sf(qw(e,k,k,0,0,i,a,T,i,O=[],m,R),R),i,R,m,a,r?O:R):rp(K,k,k,k,[""],R,0,a,R)}}d=h=b=0,C=S=1,T=K="",m=o;break;case 58:m=1+vs(K),b=x;default:if(C<1){if(w==123)--C;else if(w==125&&C++==0&&yj()==125)continue}switch(K+=k4(w),w*C){case 38:S=h>0?1:(K+="\f",-1);break;case 44:a[d++]=(vs(K)-1)*S,S=1;break;case 64:$a()===45&&(K+=hv(ws())),g=$a(),h=m=vs(T=K+=Sj(np())),w++;break;case 45:x===45&&vs(K)==2&&(C=0)}}return s}function qw(e,t,n,r,i,s,o,a,l,d,h,m){for(var g=i-1,b=i===0?s:[""],x=yP(b),C=0,D=0,S=0;C<r;++C)for(var w=0,T=Au(e,g+1,g=gP(D=o[C])),O=e;w<x;++w)(O=vP(D>0?b[w]+" "+T:jt(T,/&\f/g,b[w])))&&(l[S++]=O);return $m(e,t,n,i===0?ym:a,l,d,h,m)}function Dj(e,t,n,r){return $m(e,t,n,pP,k4(vj()),Au(e,2,-2),0,r)}function Ww(e,t,n,r,i){return $m(e,t,n,F4,Au(e,0,r),Au(e,r+1,-1),r,i)}function $P(e,t,n){switch(mj(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 Bf+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return rn+e+Bf+e+Sn+e+e;case 5936:switch(or(e,t+11)){case 114:return rn+e+Sn+jt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return rn+e+Sn+jt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return rn+e+Sn+jt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return rn+e+Sn+e+e;case 6165:return rn+e+Sn+"flex-"+e+e;case 5187:return rn+e+jt(e,/(\w+).+(:[^]+)/,rn+"box-$1$2"+Sn+"flex-$1$2")+e;case 5443:return rn+e+Sn+"flex-item-"+jt(e,/flex-|-self/g,"")+(Lo(e,/flex-|baseline/)?"":Sn+"grid-row-"+jt(e,/flex-|-self/g,""))+e;case 4675:return rn+e+Sn+"flex-line-pack"+jt(e,/align-content|flex-|-self/g,"")+e;case 5548:return rn+e+Sn+jt(e,"shrink","negative")+e;case 5292:return rn+e+Sn+jt(e,"basis","preferred-size")+e;case 6060:return rn+"box-"+jt(e,"-grow","")+rn+e+Sn+jt(e,"grow","positive")+e;case 4554:return rn+jt(e,/([^-])(transform)/g,"$1"+rn+"$2")+e;case 6187:return jt(jt(jt(e,/(zoom-|grab)/,rn+"$1"),/(image-set)/,rn+"$1"),e,"")+e;case 5495:case 3959:return jt(e,/(image-set\([^]*)/,rn+"$1$`$1");case 4968:return jt(jt(e,/(.+:)(flex-)?(.*)/,rn+"box-pack:$3"+Sn+"flex-pack:$3"),/space-between/,"justify")+rn+e+e;case 4200:if(!Lo(e,/flex-|baseline/))return Sn+"grid-column-align"+Au(e,t)+e;break;case 2592:case 3360:return Sn+jt(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,Lo(r.props,/grid-\w+-end/)})?~tp(e+(n=n[t].value),"span",0)?e:Sn+jt(e,"-start","")+e+Sn+"grid-row-span:"+(~tp(n,"span",0)?Lo(n,/\d+/):+Lo(n,/\d+/)-+Lo(e,/\d+/))+";":Sn+jt(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Lo(r.props,/grid-\w+-start/)})?e:Sn+jt(jt(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return jt(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(vs(e)-1-t>6)switch(or(e,t+1)){case 109:if(or(e,t+4)!==45)break;case 102:return jt(e,/(.+:)(.+)-([^]+)/,"$1"+rn+"$2-$3$1"+Bf+(or(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~tp(e,"stretch",0)?$P(jt(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return jt(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,s,o,a,l,d){return Sn+i+":"+s+d+(o?Sn+i+"-span:"+(a?l:+l-+s)+d:"")+e});case 4949:if(or(e,t+6)===121)return jt(e,":",":"+rn)+e;break;case 6444:switch(or(e,or(e,14)===45?18:11)){case 120:return jt(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+rn+(or(e,14)===45?"inline-":"")+"box$3$1"+rn+"$2$3$1"+Sn+"$2box$3")+e;case 100:return jt(e,":",":"+Sn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return jt(e,"scroll-","scroll-snap-")+e}return e}function Dp(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Aj(e,t,n,r){switch(e.type){case pj:if(e.children.length)break;case dj:case hj:case F4:return e.return=e.return||e.value;case pP:return"";case mP:return e.return=e.value+"{"+Dp(e.children,r)+"}";case ym:if(!vs(e.value=e.props.join(",")))return""}return vs(n=Dp(e.children,r))?e.return=e.value+"{"+n+"}":""}function Tj(e){var t=yP(e);return function(n,r,i,s){for(var o="",a=0;a<t;a++)o+=e[a](n,r,i,s)||"";return o}}function Pj(e){return function(t){t.root||(t=t.return)&&e(t)}}function _j(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case F4:e.return=$P(e.value,e.length,n);return;case mP:return Dp([ha(e,{value:jt(e.value,"@","@"+rn)})],r);case ym:if(e.length)return gj(n=e.props,function(i){switch(Lo(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":bl(ha(e,{props:[jt(i,/:(read-\w+)/,":"+Bf+"$1")]})),bl(ha(e,{props:[i]})),W1(e,{props:zw(n,r)});break;case"::placeholder":bl(ha(e,{props:[jt(i,/:(plac\w+)/,":"+rn+"input-$1")]})),bl(ha(e,{props:[jt(i,/:(plac\w+)/,":"+Bf+"$1")]})),bl(ha(e,{props:[jt(i,/:(plac\w+)/,Sn+"input-$1")]})),bl(ha(e,{props:[i]})),W1(e,{props:zw(n,r)});break}return""})}}var Mj={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},Tu=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",O4=typeof window<"u"&&"HTMLElement"in window,Rj=!!(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"),Hw=/invalid hook call/i,Mh=new Set,Fj=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(o){for(var a=[],l=1;l<arguments.length;l++)a[l-1]=arguments[l];Hw.test(o)?(s=!1,Mh.delete(r)):i.apply(void 0,Du([o],a,!1))},A.useRef(),s&&!Mh.has(r)&&(console.warn(r),Mh.add(r))}catch(o){Hw.test(o.message)&&Mh.delete(r)}finally{console.error=i}}},wm=Object.freeze([]),Zl=Object.freeze({});function kj(e,t,n){return n===void 0&&(n=Zl),e.theme!==n.theme&&e.theme||t||n.theme}var G1=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"]),Oj=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ij=/(^-|-$)/g;function Gw(e){return e.replace(Oj,"-").replace(Ij,"")}var Lj=/(a)(d)/gi,Yw=function(e){return String.fromCharCode(e+(e>25?39:97))};function Y1(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Yw(t%52)+n;return(Yw(t%52)+n).replace(Lj,"$1-$2")}var pv,lu=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},xP=function(e){return lu(5381,e)};function wP(e){return Y1(xP(e)>>>0)}function CP(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function mv(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var SP=typeof Symbol=="function"&&Symbol.for,EP=SP?Symbol.for("react.memo"):60115,Bj=SP?Symbol.for("react.forward_ref"):60112,Vj={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Nj={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},DP={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},jj=((pv={})[Bj]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},pv[EP]=DP,pv);function Zw(e){return("type"in(t=e)&&t.type.$$typeof)===EP?DP:"$$typeof"in e?jj[e.$$typeof]:Vj;var t}var Kj=Object.defineProperty,Uj=Object.getOwnPropertyNames,Xw=Object.getOwnPropertySymbols,zj=Object.getOwnPropertyDescriptor,qj=Object.getPrototypeOf,Jw=Object.prototype;function AP(e,t,n){if(typeof t!="string"){if(Jw){var r=qj(t);r&&r!==Jw&&AP(e,r,n)}var i=Uj(t);Xw&&(i=i.concat(Xw(t)));for(var s=Zw(e),o=Zw(t),a=0;a<i.length;++a){var l=i[a];if(!(l in Nj||n&&n[l]||o&&l in o||s&&l in s)){var d=zj(t,l);try{Kj(e,l,d)}catch{}}}}return e}function Pu(e){return typeof e=="function"}function I4(e){return typeof e=="object"&&"styledComponentId"in e}function du(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Z1(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function Xl(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function X1(e,t,n){if(n===void 0&&(n=!1),!n&&!Xl(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=X1(e[r],t[r]);else if(Xl(t))for(var r in t)e[r]=X1(e[r],t[r]);return e}function L4(e,t){Object.defineProperty(e,"toString",{value:t})}var Wj=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 Hj(){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(o){n=n.replace(/%[a-z]/,o)}),n}function to(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(Hj.apply(void 0,Du([Wj[e]],t,!1)).trim())}var Gj=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 to(16,"".concat(t));this.groupSizes=new Uint32Array(s),this.groupSizes.set(r),this.length=s;for(var o=i;o<s;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(t+1),l=(o=0,n.length);o<l;o++)this.tag.insertRule(a,n[o])&&(this.groupSizes[t]++,a++)},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,o=i;o<s;o++)n+="".concat(this.tag.getRule(o)).concat(`/*!sc*/
45
- `);return n},e}(),ip=new Map,Ap=new Map,sp=1,Rh=function(e){if(ip.has(e))return ip.get(e);for(;Ap.has(sp);)sp++;var t=sp++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>1073741824))throw to(16,"".concat(t));return ip.set(e,t),Ap.set(t,e),t},Yj=function(e,t){sp=t+1,ip.set(e,t),Ap.set(t,e)},Zj="style[".concat(Tu,"][").concat("data-styled-version",'="').concat("6.1.1",'"]'),Xj=new RegExp("^".concat(Tu,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Jj=function(e,t,n){for(var r,i=n.split(","),s=0,o=i.length;s<o;s++)(r=i[s])&&e.registerName(t,r)},Qj=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(`/*!sc*/
46
- `),i=[],s=0,o=r.length;s<o;s++){var a=r[s].trim();if(a){var l=a.match(Xj);if(l){var d=0|parseInt(l[1],10),h=l[2];d!==0&&(Yj(h,d),Jj(e,h,l[3]),e.getTag().insertRules(d,i)),i.length=0}else i.push(a)}}};function eK(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var TP=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(a){var l=Array.from(a.querySelectorAll("style[".concat(Tu,"]")));return l[l.length-1]}(n),s=i!==void 0?i.nextSibling:null;r.setAttribute(Tu,"active"),r.setAttribute("data-styled-version","6.1.1");var o=eK();return o&&r.setAttribute("nonce",o),n.insertBefore(r,s),r},tK=function(){function e(t){this.element=TP(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 o=r[i];if(o.ownerNode===n)return o}throw to(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}(),nK=function(){function e(t){this.element=TP(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}(),rK=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}(),Qw=O4,iK={isServer:!O4,useCSSOMInjection:!Rj},PP=function(){function e(t,n,r){t===void 0&&(t=Zl),n===void 0&&(n={});var i=this;this.options=Fr(Fr({},iK),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&O4&&Qw&&(Qw=!1,function(s){for(var o=document.querySelectorAll(Zj),a=0,l=o.length;a<l;a++){var d=o[a];d&&d.getAttribute(Tu)!=="active"&&(Qj(s,d),d.parentNode&&d.parentNode.removeChild(d))}}(this)),L4(this,function(){return function(s){for(var o=s.getTag(),a=o.length,l="",d=function(m){var g=function(S){return Ap.get(S)}(m);if(g===void 0)return"continue";var b=s.names.get(g),x=o.getGroup(m);if(b===void 0||x.length===0)return"continue";var C="".concat(Tu,".g").concat(m,'[id="').concat(g,'"]'),D="";b!==void 0&&b.forEach(function(S){S.length>0&&(D+="".concat(S,","))}),l+="".concat(x).concat(C,'{content:"').concat(D,'"}').concat(`/*!sc*/
47
- `)},h=0;h<a;h++)d(h);return l}(i)})}return e.registerId=function(t){return Rh(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 rK(i):r?new tK(i):new nK(i)}(this.options),new Gj(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(Rh(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(Rh(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Rh(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),sK=/&/g,oK=/^\s*\/\/.*$/gm;function _P(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=_P(n.children,t)),n})}function aK(e){var t,n,r,i=Zl,s=i.options,o=s===void 0?Zl:s,a=i.plugins,l=a===void 0?wm:a,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===ym&&g.value.includes("&")&&(g.props[0]=g.props[0].replace(sK,n).replace(r,d))}),o.prefix&&h.push(_j),h.push(Aj);var m=function(g,b,x,C){b===void 0&&(b=""),x===void 0&&(x=""),C===void 0&&(C="&"),t=C,n=b,r=new RegExp("\\".concat(n,"\\b"),"g");var D=g.replace(oK,""),S=Ej(x||b?"".concat(x," ").concat(b," { ").concat(D," }"):D);o.namespace&&(S=_P(S,o.namespace));var w=[];return Dp(S,Tj(h.concat(Pj(function(T){return w.push(T)})))),w};return m.hash=l.length?l.reduce(function(g,b){return b.name||to(15),lu(g,b.name)},5381).toString():"",m}var uK=new PP,J1=aK(),MP=A.createContext({shouldForwardProp:void 0,styleSheet:uK,stylis:J1});MP.Consumer;A.createContext(void 0);function eC(){return A.useContext(MP)}var Q1=function(){function e(t,n){var r=this;this.inject=function(i,s){s===void 0&&(s=J1);var o=r.name+s.hash;i.hasNameForId(r.id,o)||i.insertRules(r.id,o,s(r.rules,o,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,L4(this,function(){throw to(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=J1),this.name+t.hash},e}(),lK=function(e){return e>="A"&&e<="Z"};function tC(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;lK(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var RP=function(e){return e==null||e===!1||e===""},FP=function(e){var t,n,r=[];for(var i in e){var s=e[i];e.hasOwnProperty(i)&&!RP(s)&&(Array.isArray(s)&&s.isCss||Pu(s)?r.push("".concat(tC(i),":"),s,";"):Xl(s)?r.push.apply(r,Du(Du(["".concat(i," {")],FP(s),!1),["}"],!1)):r.push("".concat(tC(i),": ").concat((t=i,(n=s)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in Mj||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function wu(e,t,n,r){if(RP(e))return[];if(I4(e))return[".".concat(e.styledComponentId)];if(Pu(e)){if(!Pu(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 Q1||Xl(i)||i===null||console.error("".concat(CP(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.")),wu(i,t,n,r)}var s;return e instanceof Q1?n?(e.inject(n,r),[e.getName(r)]):[e]:Xl(e)?FP(e):Array.isArray(e)?Array.prototype.concat.apply(wm,e.map(function(o){return wu(o,t,n,r)})):[e.toString()]}function cK(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Pu(n)&&!I4(n))return!1}return!0}var fK=xP("6.1.1"),dK=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&cK(t),this.componentId=n,this.baseHash=lu(fK,n),this.baseStyle=r,PP.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=du(i,this.staticRulesId);else{var s=Z1(wu(this.rules,t,n,r)),o=Y1(lu(this.baseHash,s)>>>0);if(!n.hasNameForId(this.componentId,o)){var a=r(s,".".concat(o),void 0,this.componentId);n.insertRules(this.componentId,o,a)}i=du(i,o),this.staticRulesId=o}else{for(var l=lu(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=lu(l,m));else if(m){var g=Z1(wu(m,t,n,r));l=lu(l,g+h),d+=g}}if(d){var b=Y1(l>>>0);n.hasNameForId(this.componentId,b)||n.insertRules(this.componentId,b,r(d,".".concat(b),void 0,this.componentId)),i=du(i,b)}}return i},e}(),Xf=A.createContext(void 0);Xf.Consumer;function hK(){var e=A.useContext(Xf);if(!e)throw to(18);return e}function pK(e){var t=A.useContext(Xf),n=A.useMemo(function(){return function(r,i){if(!r)throw to(14);if(Pu(r)){var s=r(i);if(process.env.NODE_ENV!=="production"&&(s===null||Array.isArray(s)||typeof s!="object"))throw to(7);return s}if(Array.isArray(r)||typeof r!="object")throw to(8);return i?Fr(Fr({},i),r):r}(e.theme,t)},[e.theme,t]);return e.children?A.createElement(Xf.Provider,{value:n},e.children):null}var gv={},nC=new Set;function mK(e,t,n){var r=I4(e),i=e,s=!mv(e),o=t.attrs,a=o===void 0?wm:o,l=t.componentId,d=l===void 0?function(O,R){var k=typeof O!="string"?"sc":Gw(O);gv[k]=(gv[k]||0)+1;var K="".concat(k,"-").concat(wP("6.1.1"+k+gv[k]));return R?"".concat(R,"-").concat(K):K}(t.displayName,t.parentComponentId):l,h=t.displayName,m=h===void 0?function(O){return mv(O)?"styled.".concat(O):"Styled(".concat(CP(O),")")}(e):h,g=t.displayName&&t.componentId?"".concat(Gw(t.displayName),"-").concat(t.componentId):t.componentId||d,b=r&&i.attrs?i.attrs.concat(a).filter(Boolean):a,x=t.shouldForwardProp;if(r&&i.shouldForwardProp){var C=i.shouldForwardProp;if(t.shouldForwardProp){var D=t.shouldForwardProp;x=function(O,R){return C(O,R)&&D(O,R)}}else x=C}var S=new dK(n,g,r?i.componentStyle:void 0);function w(O,R){return function(k,K,q){var ce=k.attrs,oe=k.componentStyle,I=k.defaultProps,be=k.foldedComponentIds,$e=k.styledComponentId,H=k.target,ie=A.useContext(Xf),M=eC(),B=k.shouldForwardProp||M.shouldForwardProp;process.env.NODE_ENV!=="production"&&A.useDebugValue($e);var L=function(Oe,_e,Ye){for(var He,De=Fr(Fr({},_e),{className:void 0,theme:Ye}),Ke=0;Ke<Oe.length;Ke+=1){var We=Pu(He=Oe[Ke])?He(De):He;for(var Ae in We)De[Ae]=Ae==="className"?du(De[Ae],We[Ae]):Ae==="style"?Fr(Fr({},De[Ae]),We[Ae]):We[Ae]}return _e.className&&(De.className=du(De.className,_e.className)),De}(ce,K,kj(K,ie,I)||Zl),me=L.as||H,U={};for(var te in L)L[te]===void 0||te[0]==="$"||te==="as"||te==="theme"||(te==="forwardedAs"?U.as=L.forwardedAs:B&&!B(te,me)||(U[te]=L[te],B||process.env.NODE_ENV!=="development"||fj(te)||nC.has(te)||!G1.has(me)||(nC.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(Oe,_e){var Ye=eC(),He=Oe.generateAndInjectStyles(_e,Ye.styleSheet,Ye.stylis);return process.env.NODE_ENV!=="production"&&A.useDebugValue(He),He}(oe,L);process.env.NODE_ENV!=="production"&&k.warnTooManyClasses&&k.warnTooManyClasses(xe);var Ee=du(be,$e);return xe&&(Ee+=" "+xe),L.className&&(Ee+=" "+L.className),U[mv(me)&&!G1.has(me)?"class":"className"]=Ee,U.ref=q,A.createElement(me,U)}(T,O,R)}w.displayName=m;var T=A.forwardRef(w);return T.attrs=b,T.componentStyle=S,T.displayName=m,T.shouldForwardProp=x,T.foldedComponentIds=r?du(i.foldedComponentIds,i.styledComponentId):"",T.styledComponentId=g,T.target=r?i.target:e,Object.defineProperty(T,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(O){this._foldedDefaultProps=r?function(R){for(var k=[],K=1;K<arguments.length;K++)k[K-1]=arguments[K];for(var q=0,ce=k;q<ce.length;q++)X1(R,ce[q],!0);return R}({},i.defaultProps,O):O}}),process.env.NODE_ENV!=="production"&&(Fj(m,g),T.warnTooManyClasses=function(O,R){var k={},K=!1;return function(q){if(!K&&(k[q]=!0,Object.keys(k).length>=200)){var ce=R?' with the id of "'.concat(R,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(O).concat(ce,`.
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,k={}}}}(m,g)),L4(T,function(){return".".concat(T.styledComponentId)}),s&&AP(T,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),T}function rC(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 iC=function(e){return Object.assign(e,{isCss:!0})};function B4(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Pu(e)||Xl(e)){var r=e;return iC(wu(rC(wm,Du([r],t,!0))))}var i=e;return t.length===0&&i.length===1&&typeof i[0]=="string"?wu(i):iC(wu(rC(i,t)))}function eb(e,t,n){if(n===void 0&&(n=Zl),!t)throw to(1,t);var r=function(i){for(var s=[],o=1;o<arguments.length;o++)s[o-1]=arguments[o];return e(t,n,B4.apply(void 0,Du([i],s,!1)))};return r.attrs=function(i){return eb(e,t,Fr(Fr({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},r.withConfig=function(i){return eb(e,t,Fr(Fr({},n),i))},r}var kP=function(e){return eb(mK,e)},OP=kP;G1.forEach(function(e){OP[e]=kP(e)});function gK(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=Z1(B4.apply(void 0,Du([e],t,!1))),i=wP(r);return new Q1(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 Fh="__sc-".concat(Tu,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Fh]||(window[Fh]=0),window[Fh]===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[Fh]+=1);function Cm(){return typeof window<"u"}function bc(e){return IP(e)?(e.nodeName||"").toLowerCase():"#document"}function ui(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function uo(e){var t;return(t=(IP(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function IP(e){return Cm()?e instanceof Node||e instanceof ui(e).Node:!1}function ir(e){return Cm()?e instanceof Element||e instanceof ui(e).Element:!1}function Qi(e){return Cm()?e instanceof HTMLElement||e instanceof ui(e).HTMLElement:!1}function tb(e){return!Cm()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ui(e).ShadowRoot}function Sd(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Es(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function vK(e){return["table","td","th"].includes(bc(e))}function Sm(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function V4(e){const t=N4(),n=ir(e)?Es(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function yK(e){let t=Aa(e);for(;Qi(t)&&!Jl(t);){if(V4(t))return t;if(Sm(t))return null;t=Aa(t)}return null}function N4(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Jl(e){return["html","body","#document"].includes(bc(e))}function Es(e){return ui(e).getComputedStyle(e)}function Em(e){return ir(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Aa(e){if(bc(e)==="html")return e;const t=e.assignedSlot||e.parentNode||tb(e)&&e.host||uo(e);return tb(t)?t.host:t}function LP(e){const t=Aa(e);return Jl(t)?e.ownerDocument?e.ownerDocument.body:e.body:Qi(t)&&Sd(t)?t:LP(t)}function Jf(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=LP(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),o=ui(i);if(s){const a=nb(o);return t.concat(o,o.visualViewport||[],Sd(i)?i:[],a&&n?Jf(a):[])}return t.concat(i,Jf(i,[],n))}function nb(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function sC(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 rb(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&tb(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function bK(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function $K(){return/apple/i.test(navigator.vendor)}function xK(){return bK().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function ib(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}function Ef(e){return(e==null?void 0:e.ownerDocument)||document}function wK(e){return"composedPath"in e?e.composedPath()[0]:e.target}const CK="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function SK(e){return Qi(e)&&e.matches(CK)}const Tp=Math.min,Cu=Math.max,Pp=Math.round,kh=Math.floor,no=e=>({x:e,y:e}),EK={left:"right",right:"left",bottom:"top",top:"bottom"},DK={start:"end",end:"start"};function oC(e,t,n){return Cu(e,Tp(t,n))}function Dm(e,t){return typeof e=="function"?e(t):e}function _u(e){return e.split("-")[0]}function Am(e){return e.split("-")[1]}function BP(e){return e==="x"?"y":"x"}function VP(e){return e==="y"?"height":"width"}function Ql(e){return["top","bottom"].includes(_u(e))?"y":"x"}function NP(e){return BP(Ql(e))}function AK(e,t,n){n===void 0&&(n=!1);const r=Am(e),i=NP(e),s=VP(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=_p(o)),[o,_p(o)]}function TK(e){const t=_p(e);return[sb(e),t,sb(t)]}function sb(e){return e.replace(/start|end/g,t=>DK[t])}function PK(e,t,n){const r=["left","right"],i=["right","left"],s=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?s:o;default:return[]}}function _K(e,t,n,r){const i=Am(e);let s=PK(_u(e),n==="start",r);return i&&(s=s.map(o=>o+"-"+i),t&&(s=s.concat(s.map(sb)))),s}function _p(e){return e.replace(/left|right|bottom|top/g,t=>EK[t])}function MK(e){return{top:0,right:0,bottom:0,left:0,...e}}function RK(e){return typeof e!="number"?MK(e):{top:e,right:e,bottom:e,left:e}}function Mp(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 aC(e,t,n){let{reference:r,floating:i}=e;const s=Ql(t),o=NP(t),a=VP(o),l=_u(t),d=s==="y",h=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,g=r[a]/2-i[a]/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(Am(t)){case"start":b[o]-=g*(n&&d?-1:1);break;case"end":b[o]+=g*(n&&d?-1:1);break}return b}const FK=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:o}=n,a=s.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let d=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:m}=aC(d,r,l),g=r,b={},x=0;for(let C=0;C<a.length;C++){const{name:D,fn:S}=a[C],{x:w,y:T,data:O,reset:R}=await S({x:h,y:m,initialPlacement:r,placement:g,strategy:i,middlewareData:b,rects:d,platform:o,elements:{reference:e,floating:t}});h=w??h,m=T??m,b={...b,[D]:{...b[D],...O}},R&&x<=50&&(x++,typeof R=="object"&&(R.placement&&(g=R.placement),R.rects&&(d=R.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):R.rects),{x:h,y:m}=aC(d,g,l)),C=-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:o,elements:a,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:g=!1,padding:b=0}=Dm(t,e),x=RK(b),D=a[g?m==="floating"?"reference":"floating":m],S=Mp(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(D)))==null||n?D:D.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:d,rootBoundary:h,strategy:l})),w=m==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),O=await(s.isElement==null?void 0:s.isElement(T))?await(s.getScale==null?void 0:s.getScale(T))||{x:1,y:1}:{x:1,y:1},R=Mp(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:T,strategy:l}):w);return{top:(S.top-R.top+x.top)/O.y,bottom:(R.bottom-S.bottom+x.bottom)/O.y,left:(S.left-R.left+x.left)/O.x,right:(R.right-S.right+x.right)/O.x}}const kK=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:o,initialPlacement:a,platform:l,elements:d}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:C=!0,...D}=Dm(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const S=_u(i),w=Ql(a),T=_u(a)===a,O=await(l.isRTL==null?void 0:l.isRTL(d.floating)),R=g||(T||!C?[_p(a)]:TK(a)),k=x!=="none";!g&&k&&R.push(..._K(a,C,x,O));const K=[a,...R],q=await jP(t,D),ce=[];let oe=((r=s.flip)==null?void 0:r.overflows)||[];if(h&&ce.push(q[S]),m){const H=AK(i,o,O);ce.push(q[H[0]],q[H[1]])}if(oe=[...oe,{placement:i,overflows:ce}],!ce.every(H=>H<=0)){var I,be;const H=(((I=s.flip)==null?void 0:I.index)||0)+1,ie=K[H];if(ie)return{data:{index:H,overflows:oe},reset:{placement:ie}};let M=(be=oe.filter(B=>B.overflows[0]<=0).sort((B,L)=>B.overflows[1]-L.overflows[1])[0])==null?void 0:be.placement;if(!M)switch(b){case"bestFit":{var $e;const B=($e=oe.filter(L=>{if(k){const me=Ql(L.placement);return me===w||me==="y"}return!0}).map(L=>[L.placement,L.overflows.filter(me=>me>0).reduce((me,U)=>me+U,0)]).sort((L,me)=>L[1]-me[1])[0])==null?void 0:$e[0];B&&(M=B);break}case"initialPlacement":M=a;break}if(i!==M)return{reset:{placement:M}}}return{}}}};async function OK(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=_u(n),a=Am(n),l=Ql(n)==="y",d=["left","top"].includes(o)?-1:1,h=s&&l?-1:1,m=Dm(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 a&&typeof x=="number"&&(b=a==="end"?x*-1:x),l?{x:b*h,y:g*d}:{x:g*d,y:b*h}}const IK=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:o,middlewareData:a}=t,l=await OK(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:o}}}}},LK=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:o=!1,limiter:a={fn:D=>{let{x:S,y:w}=D;return{x:S,y:w}}},...l}=Dm(e,t),d={x:n,y:r},h=await jP(t,l),m=Ql(_u(i)),g=BP(m);let b=d[g],x=d[m];if(s){const D=g==="y"?"top":"left",S=g==="y"?"bottom":"right",w=b+h[D],T=b-h[S];b=oC(w,b,T)}if(o){const D=m==="y"?"top":"left",S=m==="y"?"bottom":"right",w=x+h[D],T=x-h[S];x=oC(w,x,T)}const C=a.fn({...t,[g]:b,[m]:x});return{...C,data:{x:C.x-n,y:C.y-r,enabled:{[g]:s,[m]:o}}}}}};function KP(e){const t=Es(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Qi(e),s=i?e.offsetWidth:n,o=i?e.offsetHeight:r,a=Pp(n)!==s||Pp(r)!==o;return a&&(n=s,r=o),{width:n,height:r,$:a}}function j4(e){return ir(e)?e:e.contextElement}function Vl(e){const t=j4(e);if(!Qi(t))return no(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=KP(t);let o=(s?Pp(n.width):n.width)/r,a=(s?Pp(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const BK=no(0);function UP(e){const t=ui(e);return!N4()||!t.visualViewport?BK:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function VK(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ui(e)?!1:t}function Mu(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=j4(e);let o=no(1);t&&(r?ir(r)&&(o=Vl(r)):o=Vl(e));const a=VK(s,n,r)?UP(s):no(0);let l=(i.left+a.x)/o.x,d=(i.top+a.y)/o.y,h=i.width/o.x,m=i.height/o.y;if(s){const g=ui(s),b=r&&ir(r)?ui(r):r;let x=g,C=nb(x);for(;C&&r&&b!==x;){const D=Vl(C),S=C.getBoundingClientRect(),w=Es(C),T=S.left+(C.clientLeft+parseFloat(w.paddingLeft))*D.x,O=S.top+(C.clientTop+parseFloat(w.paddingTop))*D.y;l*=D.x,d*=D.y,h*=D.x,m*=D.y,l+=T,d+=O,x=ui(C),C=nb(x)}}return Mp({width:h,height:m,x:l,y:d})}function K4(e,t){const n=Em(e).scrollLeft;return t?t.left+n:Mu(uo(e)).left+n}function zP(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:K4(e,r)),s=r.top+t.scrollTop;return{x:i,y:s}}function NK(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",o=uo(r),a=t?Sm(t.floating):!1;if(r===o||a&&s)return n;let l={scrollLeft:0,scrollTop:0},d=no(1);const h=no(0),m=Qi(r);if((m||!m&&!s)&&((bc(r)!=="body"||Sd(o))&&(l=Em(r)),Qi(r))){const b=Mu(r);d=Vl(r),h.x=b.x+r.clientLeft,h.y=b.y+r.clientTop}const g=o&&!m&&!s?zP(o,l,!0):no(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-l.scrollLeft*d.x+h.x+g.x,y:n.y*d.y-l.scrollTop*d.y+h.y+g.y}}function jK(e){return Array.from(e.getClientRects())}function KK(e){const t=uo(e),n=Em(e),r=e.ownerDocument.body,i=Cu(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Cu(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+K4(e);const a=-n.scrollTop;return Es(r).direction==="rtl"&&(o+=Cu(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:a}}function UK(e,t){const n=ui(e),r=uo(e),i=n.visualViewport;let s=r.clientWidth,o=r.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;const d=N4();(!d||d&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a,y:l}}function zK(e,t){const n=Mu(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=Qi(e)?Vl(e):no(1),o=e.clientWidth*s.x,a=e.clientHeight*s.y,l=i*s.x,d=r*s.y;return{width:o,height:a,x:l,y:d}}function uC(e,t,n){let r;if(t==="viewport")r=UK(e,n);else if(t==="document")r=KK(uo(e));else if(ir(t))r=zK(t,n);else{const i=UP(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Mp(r)}function qP(e,t){const n=Aa(e);return n===t||!ir(n)||Jl(n)?!1:Es(n).position==="fixed"||qP(n,t)}function qK(e,t){const n=t.get(e);if(n)return n;let r=Jf(e,[],!1).filter(a=>ir(a)&&bc(a)!=="body"),i=null;const s=Es(e).position==="fixed";let o=s?Aa(e):e;for(;ir(o)&&!Jl(o);){const a=Es(o),l=V4(o);!l&&a.position==="fixed"&&(i=null),(s?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Sd(o)&&!l&&qP(e,o))?r=r.filter(h=>h!==o):i=a,o=Aa(o)}return t.set(e,r),r}function WK(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?Sm(t)?[]:qK(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((d,h)=>{const m=uC(t,h,i);return d.top=Cu(m.top,d.top),d.right=Tp(m.right,d.right),d.bottom=Tp(m.bottom,d.bottom),d.left=Cu(m.left,d.left),d},uC(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function HK(e){const{width:t,height:n}=KP(e);return{width:t,height:n}}function GK(e,t,n){const r=Qi(t),i=uo(t),s=n==="fixed",o=Mu(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=no(0);if(r||!r&&!s)if((bc(t)!=="body"||Sd(i))&&(a=Em(t)),r){const g=Mu(t,!0,s,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else i&&(l.x=K4(i));const d=i&&!r&&!s?zP(i,a):no(0),h=o.left+a.scrollLeft-l.x-d.x,m=o.top+a.scrollTop-l.y-d.y;return{x:h,y:m,width:o.width,height:o.height}}function vv(e){return Es(e).position==="static"}function lC(e,t){if(!Qi(e)||Es(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return uo(e)===n&&(n=n.ownerDocument.body),n}function WP(e,t){const n=ui(e);if(Sm(e))return n;if(!Qi(e)){let i=Aa(e);for(;i&&!Jl(i);){if(ir(i)&&!vv(i))return i;i=Aa(i)}return n}let r=lC(e,t);for(;r&&vK(r)&&vv(r);)r=lC(r,t);return r&&Jl(r)&&vv(r)&&!V4(r)?n:r||yK(e)||n}const YK=async function(e){const t=this.getOffsetParent||WP,n=this.getDimensions,r=await n(e.floating);return{reference:GK(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ZK(e){return Es(e).direction==="rtl"}const XK={convertOffsetParentRelativeRectToViewportRelativeRect:NK,getDocumentElement:uo,getClippingRect:WK,getOffsetParent:WP,getElementRects:YK,getClientRects:jK,getDimensions:HK,getScale:Vl,isElement:ir,isRTL:ZK};function HP(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function JK(e,t){let n=null,r;const i=uo(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const d=e.getBoundingClientRect(),{left:h,top:m,width:g,height:b}=d;if(a||t(),!g||!b)return;const x=kh(m),C=kh(i.clientWidth-(h+g)),D=kh(i.clientHeight-(m+b)),S=kh(h),T={rootMargin:-x+"px "+-C+"px "+-D+"px "+-S+"px",threshold:Cu(0,Tp(1,l))||1};let O=!0;function R(k){const K=k[0].intersectionRatio;if(K!==l){if(!O)return o();K?o(!1,K):r=setTimeout(()=>{o(!1,1e-7)},1e3)}K===1&&!HP(d,e.getBoundingClientRect())&&o(),O=!1}try{n=new IntersectionObserver(R,{...T,root:i.ownerDocument})}catch{n=new IntersectionObserver(R,T)}n.observe(e)}return o(!0),s}function QK(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,d=j4(e),h=i||s?[...d?Jf(d):[],...Jf(t)]:[];h.forEach(S=>{i&&S.addEventListener("scroll",n,{passive:!0}),s&&S.addEventListener("resize",n)});const m=d&&a?JK(d,n):null;let g=-1,b=null;o&&(b=new ResizeObserver(S=>{let[w]=S;w&&w.target===d&&b&&(b.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var T;(T=b)==null||T.observe(t)})),n()}),d&&!l&&b.observe(d),b.observe(t));let x,C=l?Mu(e):null;l&&D();function D(){const S=Mu(e);C&&!HP(C,S)&&n(),C=S,x=requestAnimationFrame(D)}return n(),()=>{var S;h.forEach(w=>{i&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),m==null||m(),(S=b)==null||S.disconnect(),b=null,l&&cancelAnimationFrame(x)}}const eU=IK,tU=LK,nU=kK,rU=(e,t,n)=>{const r=new Map,i={platform:XK,...n},s={...i.platform,_c:r};return FK(e,t,{...i,platform:s})};var op=typeof document<"u"?A.useLayoutEffect:A.useEffect;function Rp(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(!Rp(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)&&!Rp(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function GP(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function cC(e,t){const n=GP(e);return Math.round(t*n)/n}function yv(e){const t=Ge.useRef(e);return op(()=>{t.current=e}),t}function YP(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:o}={},transform:a=!0,whileElementsMounted:l,open:d}=e,[h,m]=Ge.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,b]=Ge.useState(r);Rp(g,r)||b(r);const[x,C]=Ge.useState(null),[D,S]=Ge.useState(null),w=Ge.useCallback(L=>{L!==k.current&&(k.current=L,C(L))},[]),T=Ge.useCallback(L=>{L!==K.current&&(K.current=L,S(L))},[]),O=s||x,R=o||D,k=Ge.useRef(null),K=Ge.useRef(null),q=Ge.useRef(h),ce=l!=null,oe=yv(l),I=yv(i),be=yv(d),$e=Ge.useCallback(()=>{if(!k.current||!K.current)return;const L={placement:t,strategy:n,middleware:g};I.current&&(L.platform=I.current),rU(k.current,K.current,L).then(me=>{const U={...me,isPositioned:be.current!==!1};H.current&&!Rp(q.current,U)&&(q.current=U,ep.flushSync(()=>{m(U)}))})},[g,t,n,I,be]);op(()=>{d===!1&&q.current.isPositioned&&(q.current.isPositioned=!1,m(L=>({...L,isPositioned:!1})))},[d]);const H=Ge.useRef(!1);op(()=>(H.current=!0,()=>{H.current=!1}),[]),op(()=>{if(O&&(k.current=O),R&&(K.current=R),O&&R){if(oe.current)return oe.current(O,R,$e);$e()}},[O,R,$e,oe,ce]);const ie=Ge.useMemo(()=>({reference:k,floating:K,setReference:w,setFloating:T}),[w,T]),M=Ge.useMemo(()=>({reference:O,floating:R}),[O,R]),B=Ge.useMemo(()=>{const L={position:n,left:0,top:0};if(!M.floating)return L;const me=cC(M.floating,h.x),U=cC(M.floating,h.y);return a?{...L,transform:"translate("+me+"px, "+U+"px)",...GP(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:me,top:U}},[n,a,M.floating,h.x,h.y]);return Ge.useMemo(()=>({...h,update:$e,refs:ie,elements:M,floatingStyles:B}),[h,$e,ie,M,B])}const iU=(e,t)=>({...eU(e),options:[e,t]}),sU=(e,t)=>({...tU(e),options:[e,t]}),oU=(e,t)=>({...nU(e),options:[e,t]}),ZP={...Ge},aU=ZP.useInsertionEffect,uU=aU||(e=>e());function ap(e){const t=Ge.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return uU(()=>{t.current=e}),Ge.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var ec=typeof document<"u"?A.useLayoutEffect:A.useEffect;let fC=!1,lU=0;const dC=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+lU++;function cU(){const[e,t]=Ge.useState(()=>fC?dC():void 0);return ec(()=>{e==null&&t(dC())},[]),Ge.useEffect(()=>{fC=!0},[]),e}const fU=ZP.useId,XP=fU||cU;let ob;process.env.NODE_ENV!=="production"&&(ob=new Set);function dU(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((e=ob)!=null&&e.has(i))){var s;(s=ob)==null||s.add(i),console.error(i)}}function hU(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.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 pU=Ge.createContext(null),mU=Ge.createContext(null),U4=()=>{var e;return((e=Ge.useContext(pU))==null?void 0:e.id)||null},JP=()=>Ge.useContext(mU);function QP(e){return"data-floating-ui-"+e}function Ni(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}function Oh(e){const t=A.useRef(e);return ec(()=>{t.current=e}),t}const hC=QP("safe-polygon");function bv(e,t,n){if(n&&!ib(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 $v(e){return typeof e=="function"?e():e}function gU(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:s,elements:o}=e,{enabled:a=!0,delay:l=0,handleClose:d=null,mouseOnly:h=!1,restMs:m=0,move:g=!0}=t,b=JP(),x=U4(),C=Oh(d),D=Oh(l),S=Oh(n),w=Oh(m),T=Ge.useRef(),O=Ge.useRef(-1),R=Ge.useRef(),k=Ge.useRef(-1),K=Ge.useRef(!0),q=Ge.useRef(!1),ce=Ge.useRef(()=>{}),oe=Ge.useRef(!1),I=Ge.useCallback(()=>{var B;const L=(B=i.current.openEvent)==null?void 0:B.type;return(L==null?void 0:L.includes("mouse"))&&L!=="mousedown"},[i]);Ge.useEffect(()=>{if(!a)return;function B(L){let{open:me}=L;me||(Ni(O),Ni(k),K.current=!0,oe.current=!1)}return s.on("openchange",B),()=>{s.off("openchange",B)}},[a,s]),Ge.useEffect(()=>{if(!a||!C.current||!n)return;function B(me){I()&&r(!1,me,"hover")}const L=Ef(o.floating).documentElement;return L.addEventListener("mouseleave",B),()=>{L.removeEventListener("mouseleave",B)}},[o.floating,n,r,a,C,I]);const be=Ge.useCallback(function(B,L,me){L===void 0&&(L=!0),me===void 0&&(me="hover");const U=bv(D.current,"close",T.current);U&&!R.current?(Ni(O),O.current=window.setTimeout(()=>r(!1,B,me),U)):L&&(Ni(O),r(!1,B,me))},[D,r]),$e=ap(()=>{ce.current(),R.current=void 0}),H=ap(()=>{if(q.current){const B=Ef(o.floating).body;B.style.pointerEvents="",B.removeAttribute(hC),q.current=!1}}),ie=ap(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);Ge.useEffect(()=>{if(!a)return;function B(xe){if(Ni(O),K.current=!1,h&&!ib(T.current)||$v(w.current)>0&&!bv(D.current,"open"))return;const Ee=bv(D.current,"open",T.current);Ee?O.current=window.setTimeout(()=>{S.current||r(!0,xe,"hover")},Ee):n||r(!0,xe,"hover")}function L(xe){if(ie()){H();return}ce.current();const Ee=Ef(o.floating);if(Ni(k),oe.current=!1,C.current&&i.current.floatingContext){n||Ni(O),R.current=C.current({...i.current.floatingContext,tree:b,x:xe.clientX,y:xe.clientY,onClose(){H(),$e(),ie()||be(xe,!0,"safe-polygon")}});const _e=R.current;Ee.addEventListener("mousemove",_e),ce.current=()=>{Ee.removeEventListener("mousemove",_e)};return}(T.current==="touch"?!rb(o.floating,xe.relatedTarget):!0)&&be(xe)}function me(xe){ie()||i.current.floatingContext&&(C.current==null||C.current({...i.current.floatingContext,tree:b,x:xe.clientX,y:xe.clientY,onClose(){H(),$e(),ie()||be(xe)}})(xe))}function U(){Ni(O)}function te(xe){ie()||be(xe,!1)}if(ir(o.domReference)){const xe=o.domReference,Ee=o.floating;return n&&xe.addEventListener("mouseleave",me),g&&xe.addEventListener("mousemove",B,{once:!0}),xe.addEventListener("mouseenter",B),xe.addEventListener("mouseleave",L),Ee&&(Ee.addEventListener("mouseleave",me),Ee.addEventListener("mouseenter",U),Ee.addEventListener("mouseleave",te)),()=>{n&&xe.removeEventListener("mouseleave",me),g&&xe.removeEventListener("mousemove",B),xe.removeEventListener("mouseenter",B),xe.removeEventListener("mouseleave",L),Ee&&(Ee.removeEventListener("mouseleave",me),Ee.removeEventListener("mouseenter",U),Ee.removeEventListener("mouseleave",te))}}},[o,a,e,h,g,be,$e,H,r,n,S,b,D,C,i,ie,w]),ec(()=>{var B;if(a&&n&&(B=C.current)!=null&&B.__options.blockPointerEvents&&I()){q.current=!0;const me=o.floating;if(ir(o.domReference)&&me){var L;const U=Ef(o.floating).body;U.setAttribute(hC,"");const te=o.domReference,xe=b==null||(L=b.nodesRef.current.find(Ee=>Ee.id===x))==null||(L=L.context)==null?void 0:L.elements.floating;return xe&&(xe.style.pointerEvents=""),U.style.pointerEvents="none",te.style.pointerEvents="auto",me.style.pointerEvents="auto",()=>{U.style.pointerEvents="",te.style.pointerEvents="",me.style.pointerEvents=""}}}},[a,n,x,o,b,C,I]),ec(()=>{n||(T.current=void 0,oe.current=!1,$e(),H())},[n,$e,H]),Ge.useEffect(()=>()=>{$e(),Ni(O),Ni(k),H()},[a,o.domReference,$e,H]);const M=Ge.useMemo(()=>{function B(L){T.current=L.pointerType}return{onPointerDown:B,onPointerEnter:B,onMouseMove(L){const{nativeEvent:me}=L;function U(){!K.current&&!S.current&&r(!0,me,"hover")}h&&!ib(T.current)||n||$v(w.current)===0||oe.current&&L.movementX**2+L.movementY**2<2||(Ni(k),T.current==="touch"?U():(oe.current=!0,k.current=window.setTimeout(U,$v(w.current))))}}},[h,r,n,S,w]);return Ge.useMemo(()=>a?{reference:M}:{},[a,M])}const ab="data-floating-ui-focusable";function vU(e){return e?e.hasAttribute(ab)?e:e.querySelector("["+ab+"]")||e:null}function yU(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=XP(),s=Ge.useRef({}),[o]=Ge.useState(()=>hU()),a=U4()!=null;if(process.env.NODE_ENV!=="production"){const b=r.reference;b&&!ir(b)&&dU("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,d]=Ge.useState(r.reference),h=ap((b,x,C)=>{s.current.openEvent=b?x:void 0,o.emit("openchange",{open:b,event:x,reason:C,nested:a}),n==null||n(b,x,C)}),m=Ge.useMemo(()=>({setPositionReference:d}),[]),g=Ge.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return Ge.useMemo(()=>({dataRef:s,open:t,onOpenChange:h,elements:g,events:o,floatingId:i,refs:m}),[t,h,g,o,i,m])}function bU(e){e===void 0&&(e={});const{nodeId:t}=e,n=yU({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[s,o]=Ge.useState(null),[a,l]=Ge.useState(null),h=(i==null?void 0:i.domReference)||s,m=Ge.useRef(null),g=JP();ec(()=>{h&&(m.current=h)},[h]);const b=YP({...e,elements:{...i,...a&&{reference:a}}}),x=Ge.useCallback(T=>{const O=ir(T)?{getBoundingClientRect:()=>T.getBoundingClientRect(),getClientRects:()=>T.getClientRects(),contextElement:T}:T;l(O),b.refs.setReference(O)},[b.refs]),C=Ge.useCallback(T=>{(ir(T)||T===null)&&(m.current=T,o(T)),(ir(b.refs.reference.current)||b.refs.reference.current===null||T!==null&&!ir(T))&&b.refs.setReference(T)},[b.refs]),D=Ge.useMemo(()=>({...b.refs,setReference:C,setPositionReference:x,domReference:m}),[b.refs,C,x]),S=Ge.useMemo(()=>({...b.elements,domReference:h}),[b.elements,h]),w=Ge.useMemo(()=>({...b,...r,refs:D,elements:S,nodeId:t}),[b,D,S,t,r]);return ec(()=>{r.dataRef.current.floatingContext=w;const T=g==null?void 0:g.nodesRef.current.find(O=>O.id===t);T&&(T.context=w)}),Ge.useMemo(()=>({...b,context:w,refs:D,elements:S}),[b,D,S,w])}function $U(){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 xU(){return $U().includes("jsdom/")}function wU(e){if(!e||xU())return!0;try{return e.matches(":focus-visible")}catch{return!0}}function xv(){return xK()&&$K()}function CU(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:s,elements:o}=e,{enabled:a=!0,visibleOnly:l=!0}=t,d=Ge.useRef(!1),h=Ge.useRef(-1),m=Ge.useRef(!0);Ge.useEffect(()=>{if(!a)return;const b=ui(o.domReference);function x(){!n&&Qi(o.domReference)&&o.domReference===sC(Ef(o.domReference))&&(d.current=!0)}function C(){m.current=!0}function D(){m.current=!1}return b.addEventListener("blur",x),xv()&&(b.addEventListener("keydown",C,!0),b.addEventListener("pointerdown",D,!0)),()=>{b.removeEventListener("blur",x),xv()&&(b.removeEventListener("keydown",C,!0),b.removeEventListener("pointerdown",D,!0))}},[o.domReference,n,a]),Ge.useEffect(()=>{if(!a)return;function b(x){let{reason:C}=x;(C==="reference-press"||C==="escape-key")&&(d.current=!0)}return i.on("openchange",b),()=>{i.off("openchange",b)}},[i,a]),Ge.useEffect(()=>()=>{Ni(h)},[]);const g=Ge.useMemo(()=>({onMouseLeave(){d.current=!1},onFocus(b){if(d.current)return;const x=wK(b.nativeEvent);if(l&&ir(x)){if(xv()&&!b.relatedTarget){if(!m.current&&!SK(x))return}else if(!wU(x))return}r(!0,b.nativeEvent,"focus")},onBlur(b){d.current=!1;const x=b.relatedTarget,C=b.nativeEvent,D=ir(x)&&x.hasAttribute(QP("focus-guard"))&&x.getAttribute("data-type")==="outside";h.current=window.setTimeout(()=>{var S;const w=sC(o.domReference?o.domReference.ownerDocument:document);!x&&w===o.domReference||rb((S=s.current.floatingContext)==null?void 0:S.refs.floating.current,w)||rb(o.domReference,w)||D||r(!1,C,"focus")})}}),[s,o.domReference,r,l]);return Ge.useMemo(()=>a?{reference:g}:{},[a,g])}const pC="active",mC="selected";function wv(e,t,n){const r=new Map,i=n==="item";let s=e;if(i&&e){const{[pC]:o,[mC]:a,...l}=e;s=l}return{...n==="floating"&&{tabIndex:-1,[ab]:""},...s,...t.map(o=>{const a=o?o[n]:null;return typeof a=="function"?e?a(e):null:a}).concat(e).reduce((o,a)=>(a&&Object.entries(a).forEach(l=>{let[d,h]=l;if(!(i&&[pC,mC].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),o[d]=function(){for(var g,b=arguments.length,x=new Array(b),C=0;C<b;C++)x[C]=arguments[C];return(g=r.get(d))==null?void 0:g.map(D=>D(...x)).find(D=>D!==void 0)}}}else o[d]=h}),o),{})}}function SU(e){e===void 0&&(e=[]);const t=e.map(a=>a==null?void 0:a.reference),n=e.map(a=>a==null?void 0:a.floating),r=e.map(a=>a==null?void 0:a.item),i=Ge.useCallback(a=>wv(a,e,"reference"),t),s=Ge.useCallback(a=>wv(a,e,"floating"),n),o=Ge.useCallback(a=>wv(a,e,"item"),r);return Ge.useMemo(()=>({getReferenceProps:i,getFloatingProps:s,getItemProps:o}),[i,s,o])}const EU=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function DU(e,t){var n,r;t===void 0&&(t={});const{open:i,elements:s,floatingId:o}=e,{enabled:a=!0,role:l="dialog"}=t,d=XP(),h=((n=s.domReference)==null?void 0:n.id)||d,m=Ge.useMemo(()=>{var w;return((w=vU(s.floating))==null?void 0:w.id)||o},[s.floating,o]),g=(r=EU.get(l))!=null?r:l,x=U4()!=null,C=Ge.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]),D=Ge.useMemo(()=>{const w={id:m,...g&&{role:g}};return g==="tooltip"||l==="label"?w:{...w,...g==="menu"&&{"aria-labelledby":h}}},[g,m,h,l]),S=Ge.useCallback(w=>{let{active:T,selected:O}=w;const R={role:"option",...T&&{id:m+"-fui-option"}};switch(l){case"select":return{...R,"aria-selected":T&&O};case"combobox":return{...R,"aria-selected":O}}return{}},[m,l]);return Ge.useMemo(()=>a?{reference:C,floating:D,item:S}:{},[a,C,D,S])}var Df={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 AU=Df.exports,gC;function TU(){return gC||(gC=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.",o="Expected a function",a="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",m=1,g=2,b=4,x=1,C=2,D=1,S=2,w=4,T=8,O=16,R=32,k=64,K=128,q=256,ce=512,oe=30,I="...",be=800,$e=16,H=1,ie=2,M=3,B=1/0,L=9007199254740991,me=17976931348623157e292,U=NaN,te=4294967295,xe=te-1,Ee=te>>>1,Oe=[["ary",K],["bind",D],["bindKey",S],["curry",T],["curryRight",O],["flip",ce],["partial",R],["partialRight",k],["rearg",q]],_e="[object Arguments]",Ye="[object Array]",He="[object AsyncFunction]",De="[object Boolean]",Ke="[object Date]",We="[object DOMException]",Ae="[object Error]",Ie="[object Function]",et="[object GeneratorFunction]",xt="[object Map]",fn="[object Number]",bt="[object Null]",Rt="[object Object]",ci="[object Promise]",gt="[object Proxy]",Tt="[object RegExp]",Ft="[object Set]",we="[object String]",Pe="[object Symbol]",Be="[object Undefined]",rt="[object WeakMap]",it="[object WeakSet]",Xe="[object ArrayBuffer]",tt="[object DataView]",_t="[object Float32Array]",en="[object Float64Array]",kt="[object Int8Array]",Mt="[object Int16Array]",Vt="[object Int32Array]",Ht="[object Uint8Array]",gr="[object Uint8ClampedArray]",Zr="[object Uint16Array]",fi="[object Uint32Array]",Or=/\b__p \+= '';/g,_s=/\b(__p \+=) '' \+/g,ka=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$t=/&(?:amp|lt|gt|quot|#39);/g,di=/[&<>"']/g,co=RegExp($t.source),kc=RegExp(di.source),qu=/<%-([\s\S]+?)%>/g,Oc=/<%([\s\S]+?)%>/g,Wu=/<%=([\s\S]+?)%>/g,Oa=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Hu=/^\w*$/,ns=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rs=/[\\^$.*+?()[\]{}|]/g,yt=RegExp(rs.source),Dn=/^\s+/,fo=/\s/,Gu=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Cr=/\{\n\/\* \[wrapped with (.+)\] \*/,Yu=/,? & /,Zu=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ic=/[()=,{}\[\]\/\s]/,Xr=/\\(\\)?/g,ot=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pn=/\w*$/,is=/^[-+]0x[0-9a-f]+$/i,hi=/^0b[01]+$/i,Jn=/^\[object .+?Constructor\]$/,Ia=/^0o[0-7]+$/i,Ms=/^(?:0|[1-9]\d*)$/,pi=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Bn=/($^)/,Qo=/['\n\r\u2028\u2029\\]/g,qt="\\ud800-\\udfff",Lc="\\u0300-\\u036f",Xu="\\ufe20-\\ufe2f",Bc="\\u20d0-\\u20ff",La=Lc+Xu+Bc,ho="\\u2700-\\u27bf",Ju="a-z\\xdf-\\xf6\\xf8-\\xff",Ba="\\xac\\xb1\\xd7\\xf7",Vc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Nc="\\u2000-\\u206f",jc=" \\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",Qu="A-Z\\xc0-\\xd6\\xd8-\\xde",Va="\\ufe0e\\ufe0f",Na=Ba+Vc+Nc+jc,po="['’]",el="["+qt+"]",tl="["+Na+"]",Ir="["+La+"]",vr="\\d+",Lr="["+ho+"]",Rs="["+Ju+"]",ea="[^"+qt+Na+vr+ho+Ju+Qu+"]",yr="\\ud83c[\\udffb-\\udfff]",mo="(?:"+Ir+"|"+yr+")",go="[^"+qt+"]",Ai="(?:\\ud83c[\\udde6-\\uddff]){2}",mi="[\\ud800-\\udbff][\\udc00-\\udfff]",ar="["+Qu+"]",Ti="\\u200d",ja="(?:"+Rs+"|"+ea+")",nl="(?:"+ar+"|"+ea+")",yn="(?:"+po+"(?:d|ll|m|re|s|t|ve))?",Ka="(?:"+po+"(?:D|LL|M|RE|S|T|VE))?",vo=mo+"?",Ua="["+Va+"]?",rl="(?:"+Ti+"(?:"+[go,Ai,mi].join("|")+")"+Ua+vo+")*",Br="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",za="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Fs=Ua+vo+rl,ks="(?:"+[Lr,Ai,mi].join("|")+")"+Fs,yo="(?:"+[go+Ir+"?",Ir,Ai,mi,el].join("|")+")",ss=RegExp(po,"g"),bo=RegExp(Ir,"g"),ta=RegExp(yr+"(?="+yr+")|"+yo+Fs,"g"),il=RegExp([ar+"?"+Rs+"+"+yn+"(?="+[tl,ar,"$"].join("|")+")",nl+"+"+Ka+"(?="+[tl,ar+ja,"$"].join("|")+")",ar+"?"+ja+"+"+yn,ar+"+"+Ka,za,Br,vr,ks].join("|"),"g"),Kc=RegExp("["+Ti+qt+La+Va+"]"),$o=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Uc=["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"],xo=-1,Zt={};Zt[_t]=Zt[en]=Zt[kt]=Zt[Mt]=Zt[Vt]=Zt[Ht]=Zt[gr]=Zt[Zr]=Zt[fi]=!0,Zt[_e]=Zt[Ye]=Zt[Xe]=Zt[De]=Zt[tt]=Zt[Ke]=Zt[Ae]=Zt[Ie]=Zt[xt]=Zt[fn]=Zt[Rt]=Zt[Tt]=Zt[Ft]=Zt[we]=Zt[rt]=!1;var nn={};nn[_e]=nn[Ye]=nn[Xe]=nn[tt]=nn[De]=nn[Ke]=nn[_t]=nn[en]=nn[kt]=nn[Mt]=nn[Vt]=nn[xt]=nn[fn]=nn[Rt]=nn[Tt]=nn[Ft]=nn[we]=nn[Pe]=nn[Ht]=nn[gr]=nn[Zr]=nn[fi]=!0,nn[Ae]=nn[Ie]=nn[rt]=!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"},Me={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ze={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},pt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},xn=parseFloat,sr=parseInt,ur=typeof Hi=="object"&&Hi&&Hi.Object===Object&&Hi,Un=typeof self=="object"&&self&&self.Object===Object&&self,An=ur||Un||Function("return this")(),Pi=t&&!t.nodeType&&t,_i=Pi&&!0&&e&&!e.nodeType&&e,qa=_i&&_i.exports===Pi,na=qa&&ur.process,lr=function(){try{var F=_i&&_i.require&&_i.require("util").types;return F||na&&na.binding&&na.binding("util")}catch{}}(),wo=lr&&lr.isArrayBuffer,nh=lr&&lr.isDate,rh=lr&&lr.isMap,zc=lr&&lr.isRegExp,ra=lr&&lr.isSet,os=lr&&lr.isTypedArray;function Vn(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 Os(F,ee,Y,fe){for(var le=-1,W=F==null?0:F.length;++le<W;){var Z=F[le];ee(fe,Z,Y(Z),F)}return fe}function mn(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 Co(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,le=0,W=[];++Y<fe;){var Z=F[Y];ee(Z,Y,F)&&(W[le++]=Z)}return W}function Is(F,ee){var Y=F==null?0:F.length;return!!Y&&So(F,ee,0)>-1}function sl(F,ee,Y){for(var fe=-1,le=F==null?0:F.length;++fe<le;)if(Y(ee,F[fe]))return!0;return!1}function dn(F,ee){for(var Y=-1,fe=F==null?0:F.length,le=Array(fe);++Y<fe;)le[Y]=ee(F[Y],Y,F);return le}function as(F,ee){for(var Y=-1,fe=ee.length,le=F.length;++Y<fe;)F[le+Y]=ee[Y];return F}function ol(F,ee,Y,fe){var le=-1,W=F==null?0:F.length;for(fe&&W&&(Y=F[++le]);++le<W;)Y=ee(Y,F[le],le,F);return Y}function Wa(F,ee,Y,fe){var le=F==null?0:F.length;for(fe&&le&&(Y=F[--le]);le--;)Y=ee(Y,F[le],le,F);return Y}function Ls(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 Ha=al("length");function Ga(F){return F.split("")}function yg(F){return F.match(Zu)||[]}function qc(F,ee,Y){var fe;return Y(F,function(le,W,Z){if(ee(le,W,Z))return fe=W,!1}),fe}function Ya(F,ee,Y,fe){for(var le=F.length,W=Y+(fe?1:-1);fe?W--:++W<le;)if(ee(F[W],W,F))return W;return-1}function So(F,ee,Y){return ee===ee?p(F,ee,Y):Ya(F,Wc,Y)}function ih(F,ee,Y,fe){for(var le=Y-1,W=F.length;++le<W;)if(fe(F[le],ee))return le;return-1}function Wc(F){return F!==F}function Za(F,ee){var Y=F==null?0:F.length;return Y?Bs(F,ee)/Y:U}function al(F){return function(ee){return ee==null?n:ee[F]}}function ul(F){return function(ee){return F==null?n:F[ee]}}function Hc(F,ee,Y,fe,le){return le(F,function(W,Z,V){Y=fe?(fe=!1,W):ee(Y,W,Z,V)}),Y}function Xa(F,ee){var Y=F.length;for(F.sort(ee);Y--;)F[Y]=F[Y].value;return F}function Bs(F,ee){for(var Y,fe=-1,le=F.length;++fe<le;){var W=ee(F[fe]);W!==n&&(Y=Y===n?W:Y+W)}return Y}function ll(F,ee){for(var Y=-1,fe=Array(F);++Y<F;)fe[Y]=ee(Y);return fe}function bg(F,ee){return dn(ee,function(Y){return[Y,F[Y]]})}function sh(F){return F&&F.slice(0,_(F)+1).replace(Dn,"")}function Er(F){return function(ee){return F(ee)}}function Gc(F,ee){return dn(ee,function(Y){return F[Y]})}function bn(F,ee){return F.has(ee)}function cl(F,ee){for(var Y=-1,fe=F.length;++Y<fe&&So(ee,F[Y],0)>-1;);return Y}function fr(F,ee){for(var Y=F.length;Y--&&So(ee,F[Y],0)>-1;);return Y}function $g(F,ee){for(var Y=F.length,fe=0;Y--;)F[Y]===ee&&++fe;return fe}var xg=ul(se),Eo=ul(Me);function gi(F){return"\\"+pt[F]}function wg(F,ee){return F==null?n:F[ee]}function Dr(F){return Kc.test(F)}function Yc(F){return $o.test(F)}function Vs(F){for(var ee,Y=[];!(ee=F.next()).done;)Y.push(ee.value);return Y}function Nn(F){var ee=-1,Y=Array(F.size);return F.forEach(function(fe,le){Y[++ee]=[le,fe]}),Y}function Mi(F,ee){return function(Y){return F(ee(Y))}}function Jr(F,ee){for(var Y=-1,fe=F.length,le=0,W=[];++Y<fe;){var Z=F[Y];(Z===ee||Z===h)&&(F[Y]=h,W[le++]=Y)}return W}function ia(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,le=F.length;++fe<le;)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 Dr(F)?he(F):Ha(F)}function P(F){return Dr(F)?Q(F):Ga(F)}function _(F){for(var ee=F.length;ee--&&fo.test(F.charAt(ee)););return ee}var z=ul(ze);function he(F){for(var ee=ta.lastIndex=0;ta.test(F);)++ee;return ee}function Q(F){return F.match(ta)||[]}function ve(F){return F.match(il)||[]}var Ce=function F(ee){ee=ee==null?An:Re.defaults(An.Object(),ee,Re.pick(An,Uc));var Y=ee.Array,fe=ee.Date,le=ee.Error,W=ee.Function,Z=ee.Math,V=ee.Object,j=ee.RegExp,G=ee.String,ne=ee.TypeError,ae=Y.prototype,de=W.prototype,ke=V.prototype,Qe=ee["__core-js_shared__"],Je=de.toString,Ve=ke.hasOwnProperty,ut=0,ft=function(){var u=/[^.]+$/.exec(Qe&&Qe.keys&&Qe.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""}(),Le=ke.toString,ye=Je.call(V),ue=An._,J=j("^"+Je.call(Ve).replace(rs,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),pe=qa?ee.Buffer:n,Ne=ee.Symbol,Fe=ee.Uint8Array,ct=pe?pe.allocUnsafe:n,Pt=Mi(V.getPrototypeOf,V),Ct=V.create,wn=ke.propertyIsEnumerable,Gt=ae.splice,dr=Ne?Ne.isConcatSpreadable:n,Qn=Ne?Ne.iterator:n,jn=Ne?Ne.toStringTag:n,zn=function(){try{var u=nu(V,"defineProperty");return u({},"",{}),u}catch{}}(),qn=ee.clearTimeout!==An.clearTimeout&&ee.clearTimeout,br=fe&&fe.now!==An.Date.now&&fe.now,dt=ee.setTimeout!==An.setTimeout&&ee.setTimeout,hn=Z.ceil,Qr=Z.floor,Ri=V.getOwnPropertySymbols,us=pe?pe.isBuffer:n,vi=ee.isFinite,ls=ae.join,cs=Mi(V.keys,V),Xt=Z.max,Cn=Z.min,Ns=fe.now,yi=ee.parseInt,fs=Z.random,bi=ae.reverse,ds=nu(ee,"DataView"),js=nu(ee,"Map"),sa=nu(ee,"Promise"),fl=nu(ee,"Set"),Zc=nu(ee,"WeakMap"),Xc=nu(V,"create"),oh=Zc&&new Zc,dl={},v9=ru(ds),y9=ru(js),b9=ru(sa),$9=ru(fl),x9=ru(Zc),ah=Ne?Ne.prototype:n,Jc=ah?ah.valueOf:n,ux=ah?ah.toString:n;function X(u){if(Kn(u)&&!Ot(u)&&!(u instanceof Wt)){if(u instanceof Fi)return u;if(Ve.call(u,"__wrapped__"))return lw(u)}return new Fi(u)}var hl=function(){function u(){}return function(f){if(!Mn(f))return{};if(Ct)return Ct(f);u.prototype=f;var y=new u;return u.prototype=n,y}}();function uh(){}function Fi(u,f){this.__wrapped__=u,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=n}X.templateSettings={escape:qu,evaluate:Oc,interpolate:Wu,variable:"",imports:{_:X}},X.prototype=uh.prototype,X.prototype.constructor=X,Fi.prototype=hl(uh.prototype),Fi.prototype.constructor=Fi;function Wt(u){this.__wrapped__=u,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=te,this.__views__=[]}function w9(){var u=new Wt(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 C9(){if(this.__filtered__){var u=new Wt(this);u.__dir__=-1,u.__filtered__=!0}else u=this.clone(),u.__dir__*=-1;return u}function S9(){var u=this.__wrapped__.value(),f=this.__dir__,y=Ot(u),E=f<0,N=y?u.length:0,re=I8(0,N,this.__views__),ge=re.start,Se=re.end,Te=Se-ge,Ue=E?Se:ge-1,qe=this.__iteratees__,Ze=qe.length,at=0,vt=Cn(Te,this.__takeCount__);if(!y||!E&&N==Te&&vt==Te)return Rx(u,this.__actions__);var St=[];e:for(;Te--&&at<vt;){Ue+=f;for(var Nt=-1,Et=u[Ue];++Nt<Ze;){var Ut=qe[Nt],Yt=Ut.iteratee,wi=Ut.type,jr=Yt(Et);if(wi==ie)Et=jr;else if(!jr){if(wi==H)continue e;break e}}St[at++]=Et}return St}Wt.prototype=hl(uh.prototype),Wt.prototype.constructor=Wt;function Ja(u){var f=-1,y=u==null?0:u.length;for(this.clear();++f<y;){var E=u[f];this.set(E[0],E[1])}}function E9(){this.__data__=Xc?Xc(null):{},this.size=0}function D9(u){var f=this.has(u)&&delete this.__data__[u];return this.size-=f?1:0,f}function A9(u){var f=this.__data__;if(Xc){var y=f[u];return y===l?n:y}return Ve.call(f,u)?f[u]:n}function T9(u){var f=this.__data__;return Xc?f[u]!==n:Ve.call(f,u)}function P9(u,f){var y=this.__data__;return this.size+=this.has(u)?0:1,y[u]=Xc&&f===n?l:f,this}Ja.prototype.clear=E9,Ja.prototype.delete=D9,Ja.prototype.get=A9,Ja.prototype.has=T9,Ja.prototype.set=P9;function Do(u){var f=-1,y=u==null?0:u.length;for(this.clear();++f<y;){var E=u[f];this.set(E[0],E[1])}}function _9(){this.__data__=[],this.size=0}function M9(u){var f=this.__data__,y=lh(f,u);if(y<0)return!1;var E=f.length-1;return y==E?f.pop():Gt.call(f,y,1),--this.size,!0}function R9(u){var f=this.__data__,y=lh(f,u);return y<0?n:f[y][1]}function F9(u){return lh(this.__data__,u)>-1}function k9(u,f){var y=this.__data__,E=lh(y,u);return E<0?(++this.size,y.push([u,f])):y[E][1]=f,this}Do.prototype.clear=_9,Do.prototype.delete=M9,Do.prototype.get=R9,Do.prototype.has=F9,Do.prototype.set=k9;function Ao(u){var f=-1,y=u==null?0:u.length;for(this.clear();++f<y;){var E=u[f];this.set(E[0],E[1])}}function O9(){this.size=0,this.__data__={hash:new Ja,map:new(js||Do),string:new Ja}}function I9(u){var f=xh(this,u).delete(u);return this.size-=f?1:0,f}function L9(u){return xh(this,u).get(u)}function B9(u){return xh(this,u).has(u)}function V9(u,f){var y=xh(this,u),E=y.size;return y.set(u,f),this.size+=y.size==E?0:1,this}Ao.prototype.clear=O9,Ao.prototype.delete=I9,Ao.prototype.get=L9,Ao.prototype.has=B9,Ao.prototype.set=V9;function Qa(u){var f=-1,y=u==null?0:u.length;for(this.__data__=new Ao;++f<y;)this.add(u[f])}function N9(u){return this.__data__.set(u,l),this}function j9(u){return this.__data__.has(u)}Qa.prototype.add=Qa.prototype.push=N9,Qa.prototype.has=j9;function hs(u){var f=this.__data__=new Do(u);this.size=f.size}function K9(){this.__data__=new Do,this.size=0}function U9(u){var f=this.__data__,y=f.delete(u);return this.size=f.size,y}function z9(u){return this.__data__.get(u)}function q9(u){return this.__data__.has(u)}function W9(u,f){var y=this.__data__;if(y instanceof Do){var E=y.__data__;if(!js||E.length<i-1)return E.push([u,f]),this.size=++y.size,this;y=this.__data__=new Ao(E)}return y.set(u,f),this.size=y.size,this}hs.prototype.clear=K9,hs.prototype.delete=U9,hs.prototype.get=z9,hs.prototype.has=q9,hs.prototype.set=W9;function lx(u,f){var y=Ot(u),E=!y&&iu(u),N=!y&&!E&&ca(u),re=!y&&!E&&!N&&vl(u),ge=y||E||N||re,Se=ge?ll(u.length,G):[],Te=Se.length;for(var Ue in u)(f||Ve.call(u,Ue))&&!(ge&&(Ue=="length"||N&&(Ue=="offset"||Ue=="parent")||re&&(Ue=="buffer"||Ue=="byteLength"||Ue=="byteOffset")||Mo(Ue,Te)))&&Se.push(Ue);return Se}function cx(u){var f=u.length;return f?u[Fg(0,f-1)]:n}function H9(u,f){return wh(ei(u),eu(f,0,u.length))}function G9(u){return wh(ei(u))}function Cg(u,f,y){(y!==n&&!ps(u[f],y)||y===n&&!(f in u))&&To(u,f,y)}function Qc(u,f,y){var E=u[f];(!(Ve.call(u,f)&&ps(E,y))||y===n&&!(f in u))&&To(u,f,y)}function lh(u,f){for(var y=u.length;y--;)if(ps(u[y][0],f))return y;return-1}function Y9(u,f,y,E){return oa(u,function(N,re,ge){f(E,N,y(N),ge)}),E}function fx(u,f){return u&&Us(f,hr(f),u)}function Z9(u,f){return u&&Us(f,ni(f),u)}function To(u,f,y){f=="__proto__"&&zn?zn(u,f,{configurable:!0,enumerable:!0,value:y,writable:!0}):u[f]=y}function Sg(u,f){for(var y=-1,E=f.length,N=Y(E),re=u==null;++y<E;)N[y]=re?n:iv(u,f[y]);return N}function eu(u,f,y){return u===u&&(y!==n&&(u=u<=y?u:y),f!==n&&(u=u>=f?u:f)),u}function ki(u,f,y,E,N,re){var ge,Se=f&m,Te=f&g,Ue=f&b;if(y&&(ge=N?y(u,E,N,re):y(u)),ge!==n)return ge;if(!Mn(u))return u;var qe=Ot(u);if(qe){if(ge=B8(u),!Se)return ei(u,ge)}else{var Ze=Ar(u),at=Ze==Ie||Ze==et;if(ca(u))return Ox(u,Se);if(Ze==Rt||Ze==_e||at&&!N){if(ge=Te||at?{}:ew(u),!Se)return Te?A8(u,Z9(ge,u)):D8(u,fx(ge,u))}else{if(!nn[Ze])return N?u:{};ge=V8(u,Ze,Se)}}re||(re=new hs);var vt=re.get(u);if(vt)return vt;re.set(u,ge),Pw(u)?u.forEach(function(Et){ge.add(ki(Et,f,y,Et,u,re))}):Aw(u)&&u.forEach(function(Et,Ut){ge.set(Ut,ki(Et,f,y,Ut,u,re))});var St=Ue?Te?zg:Ug:Te?ni:hr,Nt=qe?n:St(u);return mn(Nt||u,function(Et,Ut){Nt&&(Ut=Et,Et=u[Ut]),Qc(ge,Ut,ki(Et,f,y,Ut,u,re))}),ge}function X9(u){var f=hr(u);return function(y){return dx(y,u,f)}}function dx(u,f,y){var E=y.length;if(u==null)return!E;for(u=V(u);E--;){var N=y[E],re=f[N],ge=u[N];if(ge===n&&!(N in u)||!re(ge))return!1}return!0}function hx(u,f,y){if(typeof u!="function")throw new ne(o);return af(function(){u.apply(n,y)},f)}function ef(u,f,y,E){var N=-1,re=Is,ge=!0,Se=u.length,Te=[],Ue=f.length;if(!Se)return Te;y&&(f=dn(f,Er(y))),E?(re=sl,ge=!1):f.length>=i&&(re=bn,ge=!1,f=new Qa(f));e:for(;++N<Se;){var qe=u[N],Ze=y==null?qe:y(qe);if(qe=E||qe!==0?qe:0,ge&&Ze===Ze){for(var at=Ue;at--;)if(f[at]===Ze)continue e;Te.push(qe)}else re(f,Ze,E)||Te.push(qe)}return Te}var oa=Nx(Ks),px=Nx(Dg,!0);function J9(u,f){var y=!0;return oa(u,function(E,N,re){return y=!!f(E,N,re),y}),y}function ch(u,f,y){for(var E=-1,N=u.length;++E<N;){var re=u[E],ge=f(re);if(ge!=null&&(Se===n?ge===ge&&!xi(ge):y(ge,Se)))var Se=ge,Te=re}return Te}function Q9(u,f,y,E){var N=u.length;for(y=Lt(y),y<0&&(y=-y>N?0:N+y),E=E===n||E>N?N:Lt(E),E<0&&(E+=N),E=y>E?0:Mw(E);y<E;)u[y++]=f;return u}function mx(u,f){var y=[];return oa(u,function(E,N,re){f(E,N,re)&&y.push(E)}),y}function $r(u,f,y,E,N){var re=-1,ge=u.length;for(y||(y=j8),N||(N=[]);++re<ge;){var Se=u[re];f>0&&y(Se)?f>1?$r(Se,f-1,y,E,N):as(N,Se):E||(N[N.length]=Se)}return N}var Eg=jx(),gx=jx(!0);function Ks(u,f){return u&&Eg(u,f,hr)}function Dg(u,f){return u&&gx(u,f,hr)}function fh(u,f){return Sr(f,function(y){return Ro(u[y])})}function tu(u,f){f=ua(f,u);for(var y=0,E=f.length;u!=null&&y<E;)u=u[zs(f[y++])];return y&&y==E?u:n}function vx(u,f,y){var E=f(u);return Ot(u)?E:as(E,y(u))}function Vr(u){return u==null?u===n?Be:bt:jn&&jn in V(u)?O8(u):G8(u)}function Ag(u,f){return u>f}function e8(u,f){return u!=null&&Ve.call(u,f)}function t8(u,f){return u!=null&&f in V(u)}function n8(u,f,y){return u>=Cn(f,y)&&u<Xt(f,y)}function Tg(u,f,y){for(var E=y?sl:Is,N=u[0].length,re=u.length,ge=re,Se=Y(re),Te=1/0,Ue=[];ge--;){var qe=u[ge];ge&&f&&(qe=dn(qe,Er(f))),Te=Cn(qe.length,Te),Se[ge]=!y&&(f||N>=120&&qe.length>=120)?new Qa(ge&&qe):n}qe=u[0];var Ze=-1,at=Se[0];e:for(;++Ze<N&&Ue.length<Te;){var vt=qe[Ze],St=f?f(vt):vt;if(vt=y||vt!==0?vt:0,!(at?bn(at,St):E(Ue,St,y))){for(ge=re;--ge;){var Nt=Se[ge];if(!(Nt?bn(Nt,St):E(u[ge],St,y)))continue e}at&&at.push(St),Ue.push(vt)}}return Ue}function r8(u,f,y,E){return Ks(u,function(N,re,ge){f(E,y(N),re,ge)}),E}function tf(u,f,y){f=ua(f,u),u=iw(u,f);var E=u==null?u:u[zs(Ii(f))];return E==null?n:Vn(E,u,y)}function yx(u){return Kn(u)&&Vr(u)==_e}function i8(u){return Kn(u)&&Vr(u)==Xe}function s8(u){return Kn(u)&&Vr(u)==Ke}function nf(u,f,y,E,N){return u===f?!0:u==null||f==null||!Kn(u)&&!Kn(f)?u!==u&&f!==f:o8(u,f,y,E,nf,N)}function o8(u,f,y,E,N,re){var ge=Ot(u),Se=Ot(f),Te=ge?Ye:Ar(u),Ue=Se?Ye:Ar(f);Te=Te==_e?Rt:Te,Ue=Ue==_e?Rt:Ue;var qe=Te==Rt,Ze=Ue==Rt,at=Te==Ue;if(at&&ca(u)){if(!ca(f))return!1;ge=!0,qe=!1}if(at&&!qe)return re||(re=new hs),ge||vl(u)?Xx(u,f,y,E,N,re):F8(u,f,Te,y,E,N,re);if(!(y&x)){var vt=qe&&Ve.call(u,"__wrapped__"),St=Ze&&Ve.call(f,"__wrapped__");if(vt||St){var Nt=vt?u.value():u,Et=St?f.value():f;return re||(re=new hs),N(Nt,Et,y,E,re)}}return at?(re||(re=new hs),k8(u,f,y,E,N,re)):!1}function a8(u){return Kn(u)&&Ar(u)==xt}function Pg(u,f,y,E){var N=y.length,re=N,ge=!E;if(u==null)return!re;for(u=V(u);N--;){var Se=y[N];if(ge&&Se[2]?Se[1]!==u[Se[0]]:!(Se[0]in u))return!1}for(;++N<re;){Se=y[N];var Te=Se[0],Ue=u[Te],qe=Se[1];if(ge&&Se[2]){if(Ue===n&&!(Te in u))return!1}else{var Ze=new hs;if(E)var at=E(Ue,qe,Te,u,f,Ze);if(!(at===n?nf(qe,Ue,x|C,E,Ze):at))return!1}}return!0}function bx(u){if(!Mn(u)||U8(u))return!1;var f=Ro(u)?J:Jn;return f.test(ru(u))}function u8(u){return Kn(u)&&Vr(u)==Tt}function l8(u){return Kn(u)&&Ar(u)==Ft}function c8(u){return Kn(u)&&Th(u.length)&&!!Zt[Vr(u)]}function $x(u){return typeof u=="function"?u:u==null?ri:typeof u=="object"?Ot(u)?Cx(u[0],u[1]):wx(u):Kw(u)}function _g(u){if(!of(u))return cs(u);var f=[];for(var y in V(u))Ve.call(u,y)&&y!="constructor"&&f.push(y);return f}function f8(u){if(!Mn(u))return H8(u);var f=of(u),y=[];for(var E in u)E=="constructor"&&(f||!Ve.call(u,E))||y.push(E);return y}function Mg(u,f){return u<f}function xx(u,f){var y=-1,E=ti(u)?Y(u.length):[];return oa(u,function(N,re,ge){E[++y]=f(N,re,ge)}),E}function wx(u){var f=Wg(u);return f.length==1&&f[0][2]?nw(f[0][0],f[0][1]):function(y){return y===u||Pg(y,u,f)}}function Cx(u,f){return Gg(u)&&tw(f)?nw(zs(u),f):function(y){var E=iv(y,u);return E===n&&E===f?sv(y,u):nf(f,E,x|C)}}function dh(u,f,y,E,N){u!==f&&Eg(f,function(re,ge){if(N||(N=new hs),Mn(re))d8(u,f,ge,y,dh,E,N);else{var Se=E?E(Zg(u,ge),re,ge+"",u,f,N):n;Se===n&&(Se=re),Cg(u,ge,Se)}},ni)}function d8(u,f,y,E,N,re,ge){var Se=Zg(u,y),Te=Zg(f,y),Ue=ge.get(Te);if(Ue){Cg(u,y,Ue);return}var qe=re?re(Se,Te,y+"",u,f,ge):n,Ze=qe===n;if(Ze){var at=Ot(Te),vt=!at&&ca(Te),St=!at&&!vt&&vl(Te);qe=Te,at||vt||St?Ot(Se)?qe=Se:Wn(Se)?qe=ei(Se):vt?(Ze=!1,qe=Ox(Te,!0)):St?(Ze=!1,qe=Ix(Te,!0)):qe=[]:uf(Te)||iu(Te)?(qe=Se,iu(Se)?qe=Rw(Se):(!Mn(Se)||Ro(Se))&&(qe=ew(Te))):Ze=!1}Ze&&(ge.set(Te,qe),N(qe,Te,E,re,ge),ge.delete(Te)),Cg(u,y,qe)}function Sx(u,f){var y=u.length;if(y)return f+=f<0?y:0,Mo(f,y)?u[f]:n}function Ex(u,f,y){f.length?f=dn(f,function(re){return Ot(re)?function(ge){return tu(ge,re.length===1?re[0]:re)}:re}):f=[ri];var E=-1;f=dn(f,Er(wt()));var N=xx(u,function(re,ge,Se){var Te=dn(f,function(Ue){return Ue(re)});return{criteria:Te,index:++E,value:re}});return Xa(N,function(re,ge){return E8(re,ge,y)})}function h8(u,f){return Dx(u,f,function(y,E){return sv(u,E)})}function Dx(u,f,y){for(var E=-1,N=f.length,re={};++E<N;){var ge=f[E],Se=tu(u,ge);y(Se,ge)&&rf(re,ua(ge,u),Se)}return re}function p8(u){return function(f){return tu(f,u)}}function Rg(u,f,y,E){var N=E?ih:So,re=-1,ge=f.length,Se=u;for(u===f&&(f=ei(f)),y&&(Se=dn(u,Er(y)));++re<ge;)for(var Te=0,Ue=f[re],qe=y?y(Ue):Ue;(Te=N(Se,qe,Te,E))>-1;)Se!==u&&Gt.call(Se,Te,1),Gt.call(u,Te,1);return u}function Ax(u,f){for(var y=u?f.length:0,E=y-1;y--;){var N=f[y];if(y==E||N!==re){var re=N;Mo(N)?Gt.call(u,N,1):Ig(u,N)}}return u}function Fg(u,f){return u+Qr(fs()*(f-u+1))}function m8(u,f,y,E){for(var N=-1,re=Xt(hn((f-u)/(y||1)),0),ge=Y(re);re--;)ge[E?re:++N]=u,u+=y;return ge}function kg(u,f){var y="";if(!u||f<1||f>L)return y;do f%2&&(y+=u),f=Qr(f/2),f&&(u+=u);while(f);return y}function Kt(u,f){return Xg(rw(u,f,ri),u+"")}function g8(u){return cx(yl(u))}function v8(u,f){var y=yl(u);return wh(y,eu(f,0,y.length))}function rf(u,f,y,E){if(!Mn(u))return u;f=ua(f,u);for(var N=-1,re=f.length,ge=re-1,Se=u;Se!=null&&++N<re;){var Te=zs(f[N]),Ue=y;if(Te==="__proto__"||Te==="constructor"||Te==="prototype")return u;if(N!=ge){var qe=Se[Te];Ue=E?E(qe,Te,Se):n,Ue===n&&(Ue=Mn(qe)?qe:Mo(f[N+1])?[]:{})}Qc(Se,Te,Ue),Se=Se[Te]}return u}var Tx=oh?function(u,f){return oh.set(u,f),u}:ri,y8=zn?function(u,f){return zn(u,"toString",{configurable:!0,enumerable:!1,value:av(f),writable:!0})}:ri;function b8(u){return wh(yl(u))}function Oi(u,f,y){var E=-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);++E<N;)re[E]=u[E+f];return re}function $8(u,f){var y;return oa(u,function(E,N,re){return y=f(E,N,re),!y}),!!y}function hh(u,f,y){var E=0,N=u==null?E:u.length;if(typeof f=="number"&&f===f&&N<=Ee){for(;E<N;){var re=E+N>>>1,ge=u[re];ge!==null&&!xi(ge)&&(y?ge<=f:ge<f)?E=re+1:N=re}return N}return Og(u,f,ri,y)}function Og(u,f,y,E){var N=0,re=u==null?0:u.length;if(re===0)return 0;f=y(f);for(var ge=f!==f,Se=f===null,Te=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,Nt=xi(Ze);if(ge)var Et=E||St;else Ue?Et=St&&(E||at):Se?Et=St&&at&&(E||!vt):Te?Et=St&&at&&!vt&&(E||!Nt):vt||Nt?Et=!1:Et=E?Ze<=f:Ze<f;Et?N=qe+1:re=qe}return Cn(re,xe)}function Px(u,f){for(var y=-1,E=u.length,N=0,re=[];++y<E;){var ge=u[y],Se=f?f(ge):ge;if(!y||!ps(Se,Te)){var Te=Se;re[N++]=ge===0?0:ge}}return re}function _x(u){return typeof u=="number"?u:xi(u)?U:+u}function $i(u){if(typeof u=="string")return u;if(Ot(u))return dn(u,$i)+"";if(xi(u))return ux?ux.call(u):"";var f=u+"";return f=="0"&&1/u==-1/0?"-0":f}function aa(u,f,y){var E=-1,N=Is,re=u.length,ge=!0,Se=[],Te=Se;if(y)ge=!1,N=sl;else if(re>=i){var Ue=f?null:M8(u);if(Ue)return ia(Ue);ge=!1,N=bn,Te=new Qa}else Te=f?[]:Se;e:for(;++E<re;){var qe=u[E],Ze=f?f(qe):qe;if(qe=y||qe!==0?qe:0,ge&&Ze===Ze){for(var at=Te.length;at--;)if(Te[at]===Ze)continue e;f&&Te.push(Ze),Se.push(qe)}else N(Te,Ze,y)||(Te!==Se&&Te.push(Ze),Se.push(qe))}return Se}function Ig(u,f){return f=ua(f,u),u=iw(u,f),u==null||delete u[zs(Ii(f))]}function Mx(u,f,y,E){return rf(u,f,y(tu(u,f)),E)}function ph(u,f,y,E){for(var N=u.length,re=E?N:-1;(E?re--:++re<N)&&f(u[re],re,u););return y?Oi(u,E?0:re,E?re+1:N):Oi(u,E?re+1:0,E?N:re)}function Rx(u,f){var y=u;return y instanceof Wt&&(y=y.value()),ol(f,function(E,N){return N.func.apply(N.thisArg,as([E],N.args))},y)}function Lg(u,f,y){var E=u.length;if(E<2)return E?aa(u[0]):[];for(var N=-1,re=Y(E);++N<E;)for(var ge=u[N],Se=-1;++Se<E;)Se!=N&&(re[N]=ef(re[N]||ge,u[Se],f,y));return aa($r(re,1),f,y)}function Fx(u,f,y){for(var E=-1,N=u.length,re=f.length,ge={};++E<N;){var Se=E<re?f[E]:n;y(ge,u[E],Se)}return ge}function Bg(u){return Wn(u)?u:[]}function Vg(u){return typeof u=="function"?u:ri}function ua(u,f){return Ot(u)?u:Gg(u,f)?[u]:uw(un(u))}var x8=Kt;function la(u,f,y){var E=u.length;return y=y===n?E:y,!f&&y>=E?u:Oi(u,f,y)}var kx=qn||function(u){return An.clearTimeout(u)};function Ox(u,f){if(f)return u.slice();var y=u.length,E=ct?ct(y):new u.constructor(y);return u.copy(E),E}function Ng(u){var f=new u.constructor(u.byteLength);return new Fe(f).set(new Fe(u)),f}function w8(u,f){var y=f?Ng(u.buffer):u.buffer;return new u.constructor(y,u.byteOffset,u.byteLength)}function C8(u){var f=new u.constructor(u.source,pn.exec(u));return f.lastIndex=u.lastIndex,f}function S8(u){return Jc?V(Jc.call(u)):{}}function Ix(u,f){var y=f?Ng(u.buffer):u.buffer;return new u.constructor(y,u.byteOffset,u.length)}function Lx(u,f){if(u!==f){var y=u!==n,E=u===null,N=u===u,re=xi(u),ge=f!==n,Se=f===null,Te=f===f,Ue=xi(f);if(!Se&&!Ue&&!re&&u>f||re&&ge&&Te&&!Se&&!Ue||E&&ge&&Te||!y&&Te||!N)return 1;if(!E&&!re&&!Ue&&u<f||Ue&&y&&N&&!E&&!re||Se&&y&&N||!ge&&N||!Te)return-1}return 0}function E8(u,f,y){for(var E=-1,N=u.criteria,re=f.criteria,ge=N.length,Se=y.length;++E<ge;){var Te=Lx(N[E],re[E]);if(Te){if(E>=Se)return Te;var Ue=y[E];return Te*(Ue=="desc"?-1:1)}}return u.index-f.index}function Bx(u,f,y,E){for(var N=-1,re=u.length,ge=y.length,Se=-1,Te=f.length,Ue=Xt(re-ge,0),qe=Y(Te+Ue),Ze=!E;++Se<Te;)qe[Se]=f[Se];for(;++N<ge;)(Ze||N<re)&&(qe[y[N]]=u[N]);for(;Ue--;)qe[Se++]=u[N++];return qe}function Vx(u,f,y,E){for(var N=-1,re=u.length,ge=-1,Se=y.length,Te=-1,Ue=f.length,qe=Xt(re-Se,0),Ze=Y(qe+Ue),at=!E;++N<qe;)Ze[N]=u[N];for(var vt=N;++Te<Ue;)Ze[vt+Te]=f[Te];for(;++ge<Se;)(at||N<re)&&(Ze[vt+y[ge]]=u[N++]);return Ze}function ei(u,f){var y=-1,E=u.length;for(f||(f=Y(E));++y<E;)f[y]=u[y];return f}function Us(u,f,y,E){var N=!y;y||(y={});for(var re=-1,ge=f.length;++re<ge;){var Se=f[re],Te=E?E(y[Se],u[Se],Se,y,u):n;Te===n&&(Te=u[Se]),N?To(y,Se,Te):Qc(y,Se,Te)}return y}function D8(u,f){return Us(u,Hg(u),f)}function A8(u,f){return Us(u,Jx(u),f)}function mh(u,f){return function(y,E){var N=Ot(y)?Os:Y9,re=f?f():{};return N(y,u,wt(E,2),re)}}function pl(u){return Kt(function(f,y){var E=-1,N=y.length,re=N>1?y[N-1]:n,ge=N>2?y[2]:n;for(re=u.length>3&&typeof re=="function"?(N--,re):n,ge&&Nr(y[0],y[1],ge)&&(re=N<3?n:re,N=1),f=V(f);++E<N;){var Se=y[E];Se&&u(f,Se,E,re)}return f})}function Nx(u,f){return function(y,E){if(y==null)return y;if(!ti(y))return u(y,E);for(var N=y.length,re=f?N:-1,ge=V(y);(f?re--:++re<N)&&E(ge[re],re,ge)!==!1;);return y}}function jx(u){return function(f,y,E){for(var N=-1,re=V(f),ge=E(f),Se=ge.length;Se--;){var Te=ge[u?Se:++N];if(y(re[Te],Te,re)===!1)break}return f}}function T8(u,f,y){var E=f&D,N=sf(u);function re(){var ge=this&&this!==An&&this instanceof re?N:u;return ge.apply(E?y:this,arguments)}return re}function Kx(u){return function(f){f=un(f);var y=Dr(f)?P(f):n,E=y?y[0]:f.charAt(0),N=y?la(y,1).join(""):f.slice(1);return E[u]()+N}}function ml(u){return function(f){return ol(Nw(Vw(f).replace(ss,"")),u,"")}}function sf(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=hl(u.prototype),E=u.apply(y,f);return Mn(E)?E:y}}function P8(u,f,y){var E=sf(u);function N(){for(var re=arguments.length,ge=Y(re),Se=re,Te=gl(N);Se--;)ge[Se]=arguments[Se];var Ue=re<3&&ge[0]!==Te&&ge[re-1]!==Te?[]:Jr(ge,Te);if(re-=Ue.length,re<y)return Hx(u,f,gh,N.placeholder,n,ge,Ue,n,n,y-re);var qe=this&&this!==An&&this instanceof N?E:u;return Vn(qe,this,ge)}return N}function Ux(u){return function(f,y,E){var N=V(f);if(!ti(f)){var re=wt(y,3);f=hr(f),y=function(Se){return re(N[Se],Se,N)}}var ge=u(f,y,E);return ge>-1?N[re?f[ge]:ge]:n}}function zx(u){return _o(function(f){var y=f.length,E=y,N=Fi.prototype.thru;for(u&&f.reverse();E--;){var re=f[E];if(typeof re!="function")throw new ne(o);if(N&&!ge&&$h(re)=="wrapper")var ge=new Fi([],!0)}for(E=ge?E:y;++E<y;){re=f[E];var Se=$h(re),Te=Se=="wrapper"?qg(re):n;Te&&Yg(Te[0])&&Te[1]==(K|T|R|q)&&!Te[4].length&&Te[9]==1?ge=ge[$h(Te[0])].apply(ge,Te[3]):ge=re.length==1&&Yg(re)?ge[Se]():ge.thru(re)}return function(){var Ue=arguments,qe=Ue[0];if(ge&&Ue.length==1&&Ot(qe))return ge.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 gh(u,f,y,E,N,re,ge,Se,Te,Ue){var qe=f&K,Ze=f&D,at=f&S,vt=f&(T|O),St=f&ce,Nt=at?n:sf(u);function Et(){for(var Ut=arguments.length,Yt=Y(Ut),wi=Ut;wi--;)Yt[wi]=arguments[wi];if(vt)var jr=gl(Et),Ci=$g(Yt,jr);if(E&&(Yt=Bx(Yt,E,N,vt)),re&&(Yt=Vx(Yt,re,ge,vt)),Ut-=Ci,vt&&Ut<Ue){var Hn=Jr(Yt,jr);return Hx(u,f,gh,Et.placeholder,y,Yt,Hn,Se,Te,Ue-Ut)}var ms=Ze?y:this,ko=at?ms[u]:u;return Ut=Yt.length,Se?Yt=Y8(Yt,Se):St&&Ut>1&&Yt.reverse(),qe&&Te<Ut&&(Yt.length=Te),this&&this!==An&&this instanceof Et&&(ko=Nt||sf(ko)),ko.apply(ms,Yt)}return Et}function qx(u,f){return function(y,E){return r8(y,u,f(E),{})}}function vh(u,f){return function(y,E){var N;if(y===n&&E===n)return f;if(y!==n&&(N=y),E!==n){if(N===n)return E;typeof y=="string"||typeof E=="string"?(y=$i(y),E=$i(E)):(y=_x(y),E=_x(E)),N=u(y,E)}return N}}function jg(u){return _o(function(f){return f=dn(f,Er(wt())),Kt(function(y){var E=this;return u(f,function(N){return Vn(N,E,y)})})})}function yh(u,f){f=f===n?" ":$i(f);var y=f.length;if(y<2)return y?kg(f,u):f;var E=kg(f,hn(u/$(f)));return Dr(f)?la(P(E),0,u).join(""):E.slice(0,u)}function _8(u,f,y,E){var N=f&D,re=sf(u);function ge(){for(var Se=-1,Te=arguments.length,Ue=-1,qe=E.length,Ze=Y(qe+Te),at=this&&this!==An&&this instanceof ge?re:u;++Ue<qe;)Ze[Ue]=E[Ue];for(;Te--;)Ze[Ue++]=arguments[++Se];return Vn(at,N?y:this,Ze)}return ge}function Wx(u){return function(f,y,E){return E&&typeof E!="number"&&Nr(f,y,E)&&(y=E=n),f=Fo(f),y===n?(y=f,f=0):y=Fo(y),E=E===n?f<y?1:-1:Fo(E),m8(f,y,E,u)}}function bh(u){return function(f,y){return typeof f=="string"&&typeof y=="string"||(f=Li(f),y=Li(y)),u(f,y)}}function Hx(u,f,y,E,N,re,ge,Se,Te,Ue){var qe=f&T,Ze=qe?ge:n,at=qe?n:ge,vt=qe?re:n,St=qe?n:re;f|=qe?R:k,f&=~(qe?k:R),f&w||(f&=-4);var Nt=[u,f,N,vt,Ze,St,at,Se,Te,Ue],Et=y.apply(n,Nt);return Yg(u)&&sw(Et,Nt),Et.placeholder=E,ow(Et,u,f)}function Kg(u){var f=Z[u];return function(y,E){if(y=Li(y),E=E==null?0:Cn(Lt(E),292),E&&vi(y)){var N=(un(y)+"e").split("e"),re=f(N[0]+"e"+(+N[1]+E));return N=(un(re)+"e").split("e"),+(N[0]+"e"+(+N[1]-E))}return f(y)}}var M8=fl&&1/ia(new fl([,-0]))[1]==B?function(u){return new fl(u)}:cv;function Gx(u){return function(f){var y=Ar(f);return y==xt?Nn(f):y==Ft?c(f):bg(f,u(f))}}function Po(u,f,y,E,N,re,ge,Se){var Te=f&S;if(!Te&&typeof u!="function")throw new ne(o);var Ue=E?E.length:0;if(Ue||(f&=-97,E=N=n),ge=ge===n?ge:Xt(Lt(ge),0),Se=Se===n?Se:Lt(Se),Ue-=N?N.length:0,f&k){var qe=E,Ze=N;E=N=n}var at=Te?n:qg(u),vt=[u,f,y,E,N,qe,Ze,re,ge,Se];if(at&&W8(vt,at),u=vt[0],f=vt[1],y=vt[2],E=vt[3],N=vt[4],Se=vt[9]=vt[9]===n?Te?0:u.length:Xt(vt[9]-Ue,0),!Se&&f&(T|O)&&(f&=-25),!f||f==D)var St=T8(u,f,y);else f==T||f==O?St=P8(u,f,Se):(f==R||f==(D|R))&&!N.length?St=_8(u,f,y,E):St=gh.apply(n,vt);var Nt=at?Tx:sw;return ow(Nt(St,vt),u,f)}function Yx(u,f,y,E){return u===n||ps(u,ke[y])&&!Ve.call(E,y)?f:u}function Zx(u,f,y,E,N,re){return Mn(u)&&Mn(f)&&(re.set(f,u),dh(u,f,n,Zx,re),re.delete(f)),u}function R8(u){return uf(u)?n:u}function Xx(u,f,y,E,N,re){var ge=y&x,Se=u.length,Te=f.length;if(Se!=Te&&!(ge&&Te>Se))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&C?new Qa:n;for(re.set(u,f),re.set(f,u);++Ze<Se;){var St=u[Ze],Nt=f[Ze];if(E)var Et=ge?E(Nt,St,Ze,f,u,re):E(St,Nt,Ze,u,f,re);if(Et!==n){if(Et)continue;at=!1;break}if(vt){if(!Ls(f,function(Ut,Yt){if(!bn(vt,Yt)&&(St===Ut||N(St,Ut,y,E,re)))return vt.push(Yt)})){at=!1;break}}else if(!(St===Nt||N(St,Nt,y,E,re))){at=!1;break}}return re.delete(u),re.delete(f),at}function F8(u,f,y,E,N,re,ge){switch(y){case tt:if(u.byteLength!=f.byteLength||u.byteOffset!=f.byteOffset)return!1;u=u.buffer,f=f.buffer;case Xe:return!(u.byteLength!=f.byteLength||!re(new Fe(u),new Fe(f)));case De:case Ke:case fn:return ps(+u,+f);case Ae:return u.name==f.name&&u.message==f.message;case Tt:case we:return u==f+"";case xt:var Se=Nn;case Ft:var Te=E&x;if(Se||(Se=ia),u.size!=f.size&&!Te)return!1;var Ue=ge.get(u);if(Ue)return Ue==f;E|=C,ge.set(u,f);var qe=Xx(Se(u),Se(f),E,N,re,ge);return ge.delete(u),qe;case Pe:if(Jc)return Jc.call(u)==Jc.call(f)}return!1}function k8(u,f,y,E,N,re){var ge=y&x,Se=Ug(u),Te=Se.length,Ue=Ug(f),qe=Ue.length;if(Te!=qe&&!ge)return!1;for(var Ze=Te;Ze--;){var at=Se[Ze];if(!(ge?at in f:Ve.call(f,at)))return!1}var vt=re.get(u),St=re.get(f);if(vt&&St)return vt==f&&St==u;var Nt=!0;re.set(u,f),re.set(f,u);for(var Et=ge;++Ze<Te;){at=Se[Ze];var Ut=u[at],Yt=f[at];if(E)var wi=ge?E(Yt,Ut,at,f,u,re):E(Ut,Yt,at,u,f,re);if(!(wi===n?Ut===Yt||N(Ut,Yt,y,E,re):wi)){Nt=!1;break}Et||(Et=at=="constructor")}if(Nt&&!Et){var jr=u.constructor,Ci=f.constructor;jr!=Ci&&"constructor"in u&&"constructor"in f&&!(typeof jr=="function"&&jr instanceof jr&&typeof Ci=="function"&&Ci instanceof Ci)&&(Nt=!1)}return re.delete(u),re.delete(f),Nt}function _o(u){return Xg(rw(u,n,dw),u+"")}function Ug(u){return vx(u,hr,Hg)}function zg(u){return vx(u,ni,Jx)}var qg=oh?function(u){return oh.get(u)}:cv;function $h(u){for(var f=u.name+"",y=dl[f],E=Ve.call(dl,f)?y.length:0;E--;){var N=y[E],re=N.func;if(re==null||re==u)return N.name}return f}function gl(u){var f=Ve.call(X,"placeholder")?X:u;return f.placeholder}function wt(){var u=X.iteratee||uv;return u=u===uv?$x:u,arguments.length?u(arguments[0],arguments[1]):u}function xh(u,f){var y=u.__data__;return K8(f)?y[typeof f=="string"?"string":"hash"]:y.map}function Wg(u){for(var f=hr(u),y=f.length;y--;){var E=f[y],N=u[E];f[y]=[E,N,tw(N)]}return f}function nu(u,f){var y=wg(u,f);return bx(y)?y:n}function O8(u){var f=Ve.call(u,jn),y=u[jn];try{u[jn]=n;var E=!0}catch{}var N=Le.call(u);return E&&(f?u[jn]=y:delete u[jn]),N}var Hg=Ri?function(u){return u==null?[]:(u=V(u),Sr(Ri(u),function(f){return wn.call(u,f)}))}:fv,Jx=Ri?function(u){for(var f=[];u;)as(f,Hg(u)),u=Pt(u);return f}:fv,Ar=Vr;(ds&&Ar(new ds(new ArrayBuffer(1)))!=tt||js&&Ar(new js)!=xt||sa&&Ar(sa.resolve())!=ci||fl&&Ar(new fl)!=Ft||Zc&&Ar(new Zc)!=rt)&&(Ar=function(u){var f=Vr(u),y=f==Rt?u.constructor:n,E=y?ru(y):"";if(E)switch(E){case v9:return tt;case y9:return xt;case b9:return ci;case $9:return Ft;case x9:return rt}return f});function I8(u,f,y){for(var E=-1,N=y.length;++E<N;){var re=y[E],ge=re.size;switch(re.type){case"drop":u+=ge;break;case"dropRight":f-=ge;break;case"take":f=Cn(f,u+ge);break;case"takeRight":u=Xt(u,f-ge);break}}return{start:u,end:f}}function L8(u){var f=u.match(Cr);return f?f[1].split(Yu):[]}function Qx(u,f,y){f=ua(f,u);for(var E=-1,N=f.length,re=!1;++E<N;){var ge=zs(f[E]);if(!(re=u!=null&&y(u,ge)))break;u=u[ge]}return re||++E!=N?re:(N=u==null?0:u.length,!!N&&Th(N)&&Mo(ge,N)&&(Ot(u)||iu(u)))}function B8(u){var f=u.length,y=new u.constructor(f);return f&&typeof u[0]=="string"&&Ve.call(u,"index")&&(y.index=u.index,y.input=u.input),y}function ew(u){return typeof u.constructor=="function"&&!of(u)?hl(Pt(u)):{}}function V8(u,f,y){var E=u.constructor;switch(f){case Xe:return Ng(u);case De:case Ke:return new E(+u);case tt:return w8(u,y);case _t:case en:case kt:case Mt:case Vt:case Ht:case gr:case Zr:case fi:return Ix(u,y);case xt:return new E;case fn:case we:return new E(u);case Tt:return C8(u);case Ft:return new E;case Pe:return S8(u)}}function N8(u,f){var y=f.length;if(!y)return u;var E=y-1;return f[E]=(y>1?"& ":"")+f[E],f=f.join(y>2?", ":" "),u.replace(Gu,`{
68
- /* [wrapped with `+f+`] */
69
- `)}function j8(u){return Ot(u)||iu(u)||!!(dr&&u&&u[dr])}function Mo(u,f){var y=typeof u;return f=f??L,!!f&&(y=="number"||y!="symbol"&&Ms.test(u))&&u>-1&&u%1==0&&u<f}function Nr(u,f,y){if(!Mn(y))return!1;var E=typeof f;return(E=="number"?ti(y)&&Mo(f,y.length):E=="string"&&f in y)?ps(y[f],u):!1}function Gg(u,f){if(Ot(u))return!1;var y=typeof u;return y=="number"||y=="symbol"||y=="boolean"||u==null||xi(u)?!0:Hu.test(u)||!Oa.test(u)||f!=null&&u in V(f)}function K8(u){var f=typeof u;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?u!=="__proto__":u===null}function Yg(u){var f=$h(u),y=X[f];if(typeof y!="function"||!(f in Wt.prototype))return!1;if(u===y)return!0;var E=qg(y);return!!E&&u===E[0]}function U8(u){return!!ft&&ft in u}var z8=Qe?Ro:dv;function of(u){var f=u&&u.constructor,y=typeof f=="function"&&f.prototype||ke;return u===y}function tw(u){return u===u&&!Mn(u)}function nw(u,f){return function(y){return y==null?!1:y[u]===f&&(f!==n||u in V(y))}}function q8(u){var f=Dh(u,function(E){return y.size===d&&y.clear(),E}),y=f.cache;return f}function W8(u,f){var y=u[1],E=f[1],N=y|E,re=N<(D|S|K),ge=E==K&&y==T||E==K&&y==q&&u[7].length<=f[8]||E==(K|q)&&f[7].length<=f[8]&&y==T;if(!(re||ge))return u;E&D&&(u[2]=f[2],N|=y&D?0:w);var Se=f[3];if(Se){var Te=u[3];u[3]=Te?Bx(Te,Se,f[4]):Se,u[4]=Te?Jr(u[3],h):f[4]}return Se=f[5],Se&&(Te=u[5],u[5]=Te?Vx(Te,Se,f[6]):Se,u[6]=Te?Jr(u[5],h):f[6]),Se=f[7],Se&&(u[7]=Se),E&K&&(u[8]=u[8]==null?f[8]:Cn(u[8],f[8])),u[9]==null&&(u[9]=f[9]),u[0]=f[0],u[1]=N,u}function H8(u){var f=[];if(u!=null)for(var y in V(u))f.push(y);return f}function G8(u){return Le.call(u)}function rw(u,f,y){return f=Xt(f===n?u.length-1:f,0),function(){for(var E=arguments,N=-1,re=Xt(E.length-f,0),ge=Y(re);++N<re;)ge[N]=E[f+N];N=-1;for(var Se=Y(f+1);++N<f;)Se[N]=E[N];return Se[f]=y(ge),Vn(u,this,Se)}}function iw(u,f){return f.length<2?u:tu(u,Oi(f,0,-1))}function Y8(u,f){for(var y=u.length,E=Cn(f.length,y),N=ei(u);E--;){var re=f[E];u[E]=Mo(re,y)?N[re]:n}return u}function Zg(u,f){if(!(f==="constructor"&&typeof u[f]=="function")&&f!="__proto__")return u[f]}var sw=aw(Tx),af=dt||function(u,f){return An.setTimeout(u,f)},Xg=aw(y8);function ow(u,f,y){var E=f+"";return Xg(u,N8(E,Z8(L8(E),y)))}function aw(u){var f=0,y=0;return function(){var E=Ns(),N=$e-(E-y);if(y=E,N>0){if(++f>=be)return arguments[0]}else f=0;return u.apply(n,arguments)}}function wh(u,f){var y=-1,E=u.length,N=E-1;for(f=f===n?E:f;++y<f;){var re=Fg(y,N),ge=u[re];u[re]=u[y],u[y]=ge}return u.length=f,u}var uw=q8(function(u){var f=[];return u.charCodeAt(0)===46&&f.push(""),u.replace(ns,function(y,E,N,re){f.push(N?re.replace(Xr,"$1"):E||y)}),f});function zs(u){if(typeof u=="string"||xi(u))return u;var f=u+"";return f=="0"&&1/u==-1/0?"-0":f}function ru(u){if(u!=null){try{return Je.call(u)}catch{}try{return u+""}catch{}}return""}function Z8(u,f){return mn(Oe,function(y){var E="_."+y[0];f&y[1]&&!Is(u,E)&&u.push(E)}),u.sort()}function lw(u){if(u instanceof Wt)return u.clone();var f=new Fi(u.__wrapped__,u.__chain__);return f.__actions__=ei(u.__actions__),f.__index__=u.__index__,f.__values__=u.__values__,f}function X8(u,f,y){(y?Nr(u,f,y):f===n)?f=1:f=Xt(Lt(f),0);var E=u==null?0:u.length;if(!E||f<1)return[];for(var N=0,re=0,ge=Y(hn(E/f));N<E;)ge[re++]=Oi(u,N,N+=f);return ge}function J8(u){for(var f=-1,y=u==null?0:u.length,E=0,N=[];++f<y;){var re=u[f];re&&(N[E++]=re)}return N}function Q8(){var u=arguments.length;if(!u)return[];for(var f=Y(u-1),y=arguments[0],E=u;E--;)f[E-1]=arguments[E];return as(Ot(y)?ei(y):[y],$r(f,1))}var eL=Kt(function(u,f){return Wn(u)?ef(u,$r(f,1,Wn,!0)):[]}),tL=Kt(function(u,f){var y=Ii(f);return Wn(y)&&(y=n),Wn(u)?ef(u,$r(f,1,Wn,!0),wt(y,2)):[]}),nL=Kt(function(u,f){var y=Ii(f);return Wn(y)&&(y=n),Wn(u)?ef(u,$r(f,1,Wn,!0),n,y):[]});function rL(u,f,y){var E=u==null?0:u.length;return E?(f=y||f===n?1:Lt(f),Oi(u,f<0?0:f,E)):[]}function iL(u,f,y){var E=u==null?0:u.length;return E?(f=y||f===n?1:Lt(f),f=E-f,Oi(u,0,f<0?0:f)):[]}function sL(u,f){return u&&u.length?ph(u,wt(f,3),!0,!0):[]}function oL(u,f){return u&&u.length?ph(u,wt(f,3),!0):[]}function aL(u,f,y,E){var N=u==null?0:u.length;return N?(y&&typeof y!="number"&&Nr(u,f,y)&&(y=0,E=N),Q9(u,f,y,E)):[]}function cw(u,f,y){var E=u==null?0:u.length;if(!E)return-1;var N=y==null?0:Lt(y);return N<0&&(N=Xt(E+N,0)),Ya(u,wt(f,3),N)}function fw(u,f,y){var E=u==null?0:u.length;if(!E)return-1;var N=E-1;return y!==n&&(N=Lt(y),N=y<0?Xt(E+N,0):Cn(N,E-1)),Ya(u,wt(f,3),N,!0)}function dw(u){var f=u==null?0:u.length;return f?$r(u,1):[]}function uL(u){var f=u==null?0:u.length;return f?$r(u,B):[]}function lL(u,f){var y=u==null?0:u.length;return y?(f=f===n?1:Lt(f),$r(u,f)):[]}function cL(u){for(var f=-1,y=u==null?0:u.length,E={};++f<y;){var N=u[f];E[N[0]]=N[1]}return E}function hw(u){return u&&u.length?u[0]:n}function fL(u,f,y){var E=u==null?0:u.length;if(!E)return-1;var N=y==null?0:Lt(y);return N<0&&(N=Xt(E+N,0)),So(u,f,N)}function dL(u){var f=u==null?0:u.length;return f?Oi(u,0,-1):[]}var hL=Kt(function(u){var f=dn(u,Bg);return f.length&&f[0]===u[0]?Tg(f):[]}),pL=Kt(function(u){var f=Ii(u),y=dn(u,Bg);return f===Ii(y)?f=n:y.pop(),y.length&&y[0]===u[0]?Tg(y,wt(f,2)):[]}),mL=Kt(function(u){var f=Ii(u),y=dn(u,Bg);return f=typeof f=="function"?f:n,f&&y.pop(),y.length&&y[0]===u[0]?Tg(y,n,f):[]});function gL(u,f){return u==null?"":ls.call(u,f)}function Ii(u){var f=u==null?0:u.length;return f?u[f-1]:n}function vL(u,f,y){var E=u==null?0:u.length;if(!E)return-1;var N=E;return y!==n&&(N=Lt(y),N=N<0?Xt(E+N,0):Cn(N,E-1)),f===f?v(u,f,N):Ya(u,Wc,N,!0)}function yL(u,f){return u&&u.length?Sx(u,Lt(f)):n}var bL=Kt(pw);function pw(u,f){return u&&u.length&&f&&f.length?Rg(u,f):u}function $L(u,f,y){return u&&u.length&&f&&f.length?Rg(u,f,wt(y,2)):u}function xL(u,f,y){return u&&u.length&&f&&f.length?Rg(u,f,n,y):u}var wL=_o(function(u,f){var y=u==null?0:u.length,E=Sg(u,f);return Ax(u,dn(f,function(N){return Mo(N,y)?+N:N}).sort(Lx)),E});function CL(u,f){var y=[];if(!(u&&u.length))return y;var E=-1,N=[],re=u.length;for(f=wt(f,3);++E<re;){var ge=u[E];f(ge,E,u)&&(y.push(ge),N.push(E))}return Ax(u,N),y}function Jg(u){return u==null?u:bi.call(u)}function SL(u,f,y){var E=u==null?0:u.length;return E?(y&&typeof y!="number"&&Nr(u,f,y)?(f=0,y=E):(f=f==null?0:Lt(f),y=y===n?E:Lt(y)),Oi(u,f,y)):[]}function EL(u,f){return hh(u,f)}function DL(u,f,y){return Og(u,f,wt(y,2))}function AL(u,f){var y=u==null?0:u.length;if(y){var E=hh(u,f);if(E<y&&ps(u[E],f))return E}return-1}function TL(u,f){return hh(u,f,!0)}function PL(u,f,y){return Og(u,f,wt(y,2),!0)}function _L(u,f){var y=u==null?0:u.length;if(y){var E=hh(u,f,!0)-1;if(ps(u[E],f))return E}return-1}function ML(u){return u&&u.length?Px(u):[]}function RL(u,f){return u&&u.length?Px(u,wt(f,2)):[]}function FL(u){var f=u==null?0:u.length;return f?Oi(u,1,f):[]}function kL(u,f,y){return u&&u.length?(f=y||f===n?1:Lt(f),Oi(u,0,f<0?0:f)):[]}function OL(u,f,y){var E=u==null?0:u.length;return E?(f=y||f===n?1:Lt(f),f=E-f,Oi(u,f<0?0:f,E)):[]}function IL(u,f){return u&&u.length?ph(u,wt(f,3),!1,!0):[]}function LL(u,f){return u&&u.length?ph(u,wt(f,3)):[]}var BL=Kt(function(u){return aa($r(u,1,Wn,!0))}),VL=Kt(function(u){var f=Ii(u);return Wn(f)&&(f=n),aa($r(u,1,Wn,!0),wt(f,2))}),NL=Kt(function(u){var f=Ii(u);return f=typeof f=="function"?f:n,aa($r(u,1,Wn,!0),n,f)});function jL(u){return u&&u.length?aa(u):[]}function KL(u,f){return u&&u.length?aa(u,wt(f,2)):[]}function UL(u,f){return f=typeof f=="function"?f:n,u&&u.length?aa(u,n,f):[]}function Qg(u){if(!(u&&u.length))return[];var f=0;return u=Sr(u,function(y){if(Wn(y))return f=Xt(y.length,f),!0}),ll(f,function(y){return dn(u,al(y))})}function mw(u,f){if(!(u&&u.length))return[];var y=Qg(u);return f==null?y:dn(y,function(E){return Vn(f,n,E)})}var zL=Kt(function(u,f){return Wn(u)?ef(u,f):[]}),qL=Kt(function(u){return Lg(Sr(u,Wn))}),WL=Kt(function(u){var f=Ii(u);return Wn(f)&&(f=n),Lg(Sr(u,Wn),wt(f,2))}),HL=Kt(function(u){var f=Ii(u);return f=typeof f=="function"?f:n,Lg(Sr(u,Wn),n,f)}),GL=Kt(Qg);function YL(u,f){return Fx(u||[],f||[],Qc)}function ZL(u,f){return Fx(u||[],f||[],rf)}var XL=Kt(function(u){var f=u.length,y=f>1?u[f-1]:n;return y=typeof y=="function"?(u.pop(),y):n,mw(u,y)});function gw(u){var f=X(u);return f.__chain__=!0,f}function JL(u,f){return f(u),u}function Ch(u,f){return f(u)}var QL=_o(function(u){var f=u.length,y=f?u[0]:0,E=this.__wrapped__,N=function(re){return Sg(re,u)};return f>1||this.__actions__.length||!(E instanceof Wt)||!Mo(y)?this.thru(N):(E=E.slice(y,+y+(f?1:0)),E.__actions__.push({func:Ch,args:[N],thisArg:n}),new Fi(E,this.__chain__).thru(function(re){return f&&!re.length&&re.push(n),re}))});function eB(){return gw(this)}function tB(){return new Fi(this.value(),this.__chain__)}function nB(){this.__values__===n&&(this.__values__=_w(this.value()));var u=this.__index__>=this.__values__.length,f=u?n:this.__values__[this.__index__++];return{done:u,value:f}}function rB(){return this}function iB(u){for(var f,y=this;y instanceof uh;){var E=lw(y);E.__index__=0,E.__values__=n,f?N.__wrapped__=E:f=E;var N=E;y=y.__wrapped__}return N.__wrapped__=u,f}function sB(){var u=this.__wrapped__;if(u instanceof Wt){var f=u;return this.__actions__.length&&(f=new Wt(this)),f=f.reverse(),f.__actions__.push({func:Ch,args:[Jg],thisArg:n}),new Fi(f,this.__chain__)}return this.thru(Jg)}function oB(){return Rx(this.__wrapped__,this.__actions__)}var aB=mh(function(u,f,y){Ve.call(u,y)?++u[y]:To(u,y,1)});function uB(u,f,y){var E=Ot(u)?Co:J9;return y&&Nr(u,f,y)&&(f=n),E(u,wt(f,3))}function lB(u,f){var y=Ot(u)?Sr:mx;return y(u,wt(f,3))}var cB=Ux(cw),fB=Ux(fw);function dB(u,f){return $r(Sh(u,f),1)}function hB(u,f){return $r(Sh(u,f),B)}function pB(u,f,y){return y=y===n?1:Lt(y),$r(Sh(u,f),y)}function vw(u,f){var y=Ot(u)?mn:oa;return y(u,wt(f,3))}function yw(u,f){var y=Ot(u)?cr:px;return y(u,wt(f,3))}var mB=mh(function(u,f,y){Ve.call(u,y)?u[y].push(f):To(u,y,[f])});function gB(u,f,y,E){u=ti(u)?u:yl(u),y=y&&!E?Lt(y):0;var N=u.length;return y<0&&(y=Xt(N+y,0)),Ph(u)?y<=N&&u.indexOf(f,y)>-1:!!N&&So(u,f,y)>-1}var vB=Kt(function(u,f,y){var E=-1,N=typeof f=="function",re=ti(u)?Y(u.length):[];return oa(u,function(ge){re[++E]=N?Vn(f,ge,y):tf(ge,f,y)}),re}),yB=mh(function(u,f,y){To(u,y,f)});function Sh(u,f){var y=Ot(u)?dn:xx;return y(u,wt(f,3))}function bB(u,f,y,E){return u==null?[]:(Ot(f)||(f=f==null?[]:[f]),y=E?n:y,Ot(y)||(y=y==null?[]:[y]),Ex(u,f,y))}var $B=mh(function(u,f,y){u[y?0:1].push(f)},function(){return[[],[]]});function xB(u,f,y){var E=Ot(u)?ol:Hc,N=arguments.length<3;return E(u,wt(f,4),y,N,oa)}function wB(u,f,y){var E=Ot(u)?Wa:Hc,N=arguments.length<3;return E(u,wt(f,4),y,N,px)}function CB(u,f){var y=Ot(u)?Sr:mx;return y(u,Ah(wt(f,3)))}function SB(u){var f=Ot(u)?cx:g8;return f(u)}function EB(u,f,y){(y?Nr(u,f,y):f===n)?f=1:f=Lt(f);var E=Ot(u)?H9:v8;return E(u,f)}function DB(u){var f=Ot(u)?G9:b8;return f(u)}function AB(u){if(u==null)return 0;if(ti(u))return Ph(u)?$(u):u.length;var f=Ar(u);return f==xt||f==Ft?u.size:_g(u).length}function TB(u,f,y){var E=Ot(u)?Ls:$8;return y&&Nr(u,f,y)&&(f=n),E(u,wt(f,3))}var PB=Kt(function(u,f){if(u==null)return[];var y=f.length;return y>1&&Nr(u,f[0],f[1])?f=[]:y>2&&Nr(f[0],f[1],f[2])&&(f=[f[0]]),Ex(u,$r(f,1),[])}),Eh=br||function(){return An.Date.now()};function _B(u,f){if(typeof f!="function")throw new ne(o);return u=Lt(u),function(){if(--u<1)return f.apply(this,arguments)}}function bw(u,f,y){return f=y?n:f,f=u&&f==null?u.length:f,Po(u,K,n,n,n,n,f)}function $w(u,f){var y;if(typeof f!="function")throw new ne(o);return u=Lt(u),function(){return--u>0&&(y=f.apply(this,arguments)),u<=1&&(f=n),y}}var ev=Kt(function(u,f,y){var E=D;if(y.length){var N=Jr(y,gl(ev));E|=R}return Po(u,E,f,y,N)}),xw=Kt(function(u,f,y){var E=D|S;if(y.length){var N=Jr(y,gl(xw));E|=R}return Po(f,E,u,y,N)});function ww(u,f,y){f=y?n:f;var E=Po(u,T,n,n,n,n,n,f);return E.placeholder=ww.placeholder,E}function Cw(u,f,y){f=y?n:f;var E=Po(u,O,n,n,n,n,n,f);return E.placeholder=Cw.placeholder,E}function Sw(u,f,y){var E,N,re,ge,Se,Te,Ue=0,qe=!1,Ze=!1,at=!0;if(typeof u!="function")throw new ne(o);f=Li(f)||0,Mn(y)&&(qe=!!y.leading,Ze="maxWait"in y,re=Ze?Xt(Li(y.maxWait)||0,f):re,at="trailing"in y?!!y.trailing:at);function vt(Hn){var ms=E,ko=N;return E=N=n,Ue=Hn,ge=u.apply(ko,ms),ge}function St(Hn){return Ue=Hn,Se=af(Ut,f),qe?vt(Hn):ge}function Nt(Hn){var ms=Hn-Te,ko=Hn-Ue,Uw=f-ms;return Ze?Cn(Uw,re-ko):Uw}function Et(Hn){var ms=Hn-Te,ko=Hn-Ue;return Te===n||ms>=f||ms<0||Ze&&ko>=re}function Ut(){var Hn=Eh();if(Et(Hn))return Yt(Hn);Se=af(Ut,Nt(Hn))}function Yt(Hn){return Se=n,at&&E?vt(Hn):(E=N=n,ge)}function wi(){Se!==n&&kx(Se),Ue=0,E=Te=N=Se=n}function jr(){return Se===n?ge:Yt(Eh())}function Ci(){var Hn=Eh(),ms=Et(Hn);if(E=arguments,N=this,Te=Hn,ms){if(Se===n)return St(Te);if(Ze)return kx(Se),Se=af(Ut,f),vt(Te)}return Se===n&&(Se=af(Ut,f)),ge}return Ci.cancel=wi,Ci.flush=jr,Ci}var MB=Kt(function(u,f){return hx(u,1,f)}),RB=Kt(function(u,f,y){return hx(u,Li(f)||0,y)});function FB(u){return Po(u,ce)}function Dh(u,f){if(typeof u!="function"||f!=null&&typeof f!="function")throw new ne(o);var y=function(){var E=arguments,N=f?f.apply(this,E):E[0],re=y.cache;if(re.has(N))return re.get(N);var ge=u.apply(this,E);return y.cache=re.set(N,ge)||re,ge};return y.cache=new(Dh.Cache||Ao),y}Dh.Cache=Ao;function Ah(u){if(typeof u!="function")throw new ne(o);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 kB(u){return $w(2,u)}var OB=x8(function(u,f){f=f.length==1&&Ot(f[0])?dn(f[0],Er(wt())):dn($r(f,1),Er(wt()));var y=f.length;return Kt(function(E){for(var N=-1,re=Cn(E.length,y);++N<re;)E[N]=f[N].call(this,E[N]);return Vn(u,this,E)})}),tv=Kt(function(u,f){var y=Jr(f,gl(tv));return Po(u,R,n,f,y)}),Ew=Kt(function(u,f){var y=Jr(f,gl(Ew));return Po(u,k,n,f,y)}),IB=_o(function(u,f){return Po(u,q,n,n,n,f)});function LB(u,f){if(typeof u!="function")throw new ne(o);return f=f===n?f:Lt(f),Kt(u,f)}function BB(u,f){if(typeof u!="function")throw new ne(o);return f=f==null?0:Xt(Lt(f),0),Kt(function(y){var E=y[f],N=la(y,0,f);return E&&as(N,E),Vn(u,this,N)})}function VB(u,f,y){var E=!0,N=!0;if(typeof u!="function")throw new ne(o);return Mn(y)&&(E="leading"in y?!!y.leading:E,N="trailing"in y?!!y.trailing:N),Sw(u,f,{leading:E,maxWait:f,trailing:N})}function NB(u){return bw(u,1)}function jB(u,f){return tv(Vg(f),u)}function KB(){if(!arguments.length)return[];var u=arguments[0];return Ot(u)?u:[u]}function UB(u){return ki(u,b)}function zB(u,f){return f=typeof f=="function"?f:n,ki(u,b,f)}function qB(u){return ki(u,m|b)}function WB(u,f){return f=typeof f=="function"?f:n,ki(u,m|b,f)}function HB(u,f){return f==null||dx(u,f,hr(f))}function ps(u,f){return u===f||u!==u&&f!==f}var GB=bh(Ag),YB=bh(function(u,f){return u>=f}),iu=yx(function(){return arguments}())?yx:function(u){return Kn(u)&&Ve.call(u,"callee")&&!wn.call(u,"callee")},Ot=Y.isArray,ZB=wo?Er(wo):i8;function ti(u){return u!=null&&Th(u.length)&&!Ro(u)}function Wn(u){return Kn(u)&&ti(u)}function XB(u){return u===!0||u===!1||Kn(u)&&Vr(u)==De}var ca=us||dv,JB=nh?Er(nh):s8;function QB(u){return Kn(u)&&u.nodeType===1&&!uf(u)}function eV(u){if(u==null)return!0;if(ti(u)&&(Ot(u)||typeof u=="string"||typeof u.splice=="function"||ca(u)||vl(u)||iu(u)))return!u.length;var f=Ar(u);if(f==xt||f==Ft)return!u.size;if(of(u))return!_g(u).length;for(var y in u)if(Ve.call(u,y))return!1;return!0}function tV(u,f){return nf(u,f)}function nV(u,f,y){y=typeof y=="function"?y:n;var E=y?y(u,f):n;return E===n?nf(u,f,n,y):!!E}function nv(u){if(!Kn(u))return!1;var f=Vr(u);return f==Ae||f==We||typeof u.message=="string"&&typeof u.name=="string"&&!uf(u)}function rV(u){return typeof u=="number"&&vi(u)}function Ro(u){if(!Mn(u))return!1;var f=Vr(u);return f==Ie||f==et||f==He||f==gt}function Dw(u){return typeof u=="number"&&u==Lt(u)}function Th(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=L}function Mn(u){var f=typeof u;return u!=null&&(f=="object"||f=="function")}function Kn(u){return u!=null&&typeof u=="object"}var Aw=rh?Er(rh):a8;function iV(u,f){return u===f||Pg(u,f,Wg(f))}function sV(u,f,y){return y=typeof y=="function"?y:n,Pg(u,f,Wg(f),y)}function oV(u){return Tw(u)&&u!=+u}function aV(u){if(z8(u))throw new le(s);return bx(u)}function uV(u){return u===null}function lV(u){return u==null}function Tw(u){return typeof u=="number"||Kn(u)&&Vr(u)==fn}function uf(u){if(!Kn(u)||Vr(u)!=Rt)return!1;var f=Pt(u);if(f===null)return!0;var y=Ve.call(f,"constructor")&&f.constructor;return typeof y=="function"&&y instanceof y&&Je.call(y)==ye}var rv=zc?Er(zc):u8;function cV(u){return Dw(u)&&u>=-9007199254740991&&u<=L}var Pw=ra?Er(ra):l8;function Ph(u){return typeof u=="string"||!Ot(u)&&Kn(u)&&Vr(u)==we}function xi(u){return typeof u=="symbol"||Kn(u)&&Vr(u)==Pe}var vl=os?Er(os):c8;function fV(u){return u===n}function dV(u){return Kn(u)&&Ar(u)==rt}function hV(u){return Kn(u)&&Vr(u)==it}var pV=bh(Mg),mV=bh(function(u,f){return u<=f});function _w(u){if(!u)return[];if(ti(u))return Ph(u)?P(u):ei(u);if(Qn&&u[Qn])return Vs(u[Qn]());var f=Ar(u),y=f==xt?Nn:f==Ft?ia:yl;return y(u)}function Fo(u){if(!u)return u===0?u:0;if(u=Li(u),u===B||u===-1/0){var f=u<0?-1:1;return f*me}return u===u?u:0}function Lt(u){var f=Fo(u),y=f%1;return f===f?y?f-y:f:0}function Mw(u){return u?eu(Lt(u),0,te):0}function Li(u){if(typeof u=="number")return u;if(xi(u))return U;if(Mn(u)){var f=typeof u.valueOf=="function"?u.valueOf():u;u=Mn(f)?f+"":f}if(typeof u!="string")return u===0?u:+u;u=sh(u);var y=hi.test(u);return y||Ia.test(u)?sr(u.slice(2),y?2:8):is.test(u)?U:+u}function Rw(u){return Us(u,ni(u))}function gV(u){return u?eu(Lt(u),-9007199254740991,L):u===0?u:0}function un(u){return u==null?"":$i(u)}var vV=pl(function(u,f){if(of(f)||ti(f)){Us(f,hr(f),u);return}for(var y in f)Ve.call(f,y)&&Qc(u,y,f[y])}),Fw=pl(function(u,f){Us(f,ni(f),u)}),_h=pl(function(u,f,y,E){Us(f,ni(f),u,E)}),yV=pl(function(u,f,y,E){Us(f,hr(f),u,E)}),bV=_o(Sg);function $V(u,f){var y=hl(u);return f==null?y:fx(y,f)}var xV=Kt(function(u,f){u=V(u);var y=-1,E=f.length,N=E>2?f[2]:n;for(N&&Nr(f[0],f[1],N)&&(E=1);++y<E;)for(var re=f[y],ge=ni(re),Se=-1,Te=ge.length;++Se<Te;){var Ue=ge[Se],qe=u[Ue];(qe===n||ps(qe,ke[Ue])&&!Ve.call(u,Ue))&&(u[Ue]=re[Ue])}return u}),wV=Kt(function(u){return u.push(n,Zx),Vn(kw,n,u)});function CV(u,f){return qc(u,wt(f,3),Ks)}function SV(u,f){return qc(u,wt(f,3),Dg)}function EV(u,f){return u==null?u:Eg(u,wt(f,3),ni)}function DV(u,f){return u==null?u:gx(u,wt(f,3),ni)}function AV(u,f){return u&&Ks(u,wt(f,3))}function TV(u,f){return u&&Dg(u,wt(f,3))}function PV(u){return u==null?[]:fh(u,hr(u))}function _V(u){return u==null?[]:fh(u,ni(u))}function iv(u,f,y){var E=u==null?n:tu(u,f);return E===n?y:E}function MV(u,f){return u!=null&&Qx(u,f,e8)}function sv(u,f){return u!=null&&Qx(u,f,t8)}var RV=qx(function(u,f,y){f!=null&&typeof f.toString!="function"&&(f=Le.call(f)),u[f]=y},av(ri)),FV=qx(function(u,f,y){f!=null&&typeof f.toString!="function"&&(f=Le.call(f)),Ve.call(u,f)?u[f].push(y):u[f]=[y]},wt),kV=Kt(tf);function hr(u){return ti(u)?lx(u):_g(u)}function ni(u){return ti(u)?lx(u,!0):f8(u)}function OV(u,f){var y={};return f=wt(f,3),Ks(u,function(E,N,re){To(y,f(E,N,re),E)}),y}function IV(u,f){var y={};return f=wt(f,3),Ks(u,function(E,N,re){To(y,N,f(E,N,re))}),y}var LV=pl(function(u,f,y){dh(u,f,y)}),kw=pl(function(u,f,y,E){dh(u,f,y,E)}),BV=_o(function(u,f){var y={};if(u==null)return y;var E=!1;f=dn(f,function(re){return re=ua(re,u),E||(E=re.length>1),re}),Us(u,zg(u),y),E&&(y=ki(y,m|g|b,R8));for(var N=f.length;N--;)Ig(y,f[N]);return y});function VV(u,f){return Ow(u,Ah(wt(f)))}var NV=_o(function(u,f){return u==null?{}:h8(u,f)});function Ow(u,f){if(u==null)return{};var y=dn(zg(u),function(E){return[E]});return f=wt(f),Dx(u,y,function(E,N){return f(E,N[0])})}function jV(u,f,y){f=ua(f,u);var E=-1,N=f.length;for(N||(N=1,u=n);++E<N;){var re=u==null?n:u[zs(f[E])];re===n&&(E=N,re=y),u=Ro(re)?re.call(u):re}return u}function KV(u,f,y){return u==null?u:rf(u,f,y)}function UV(u,f,y,E){return E=typeof E=="function"?E:n,u==null?u:rf(u,f,y,E)}var Iw=Gx(hr),Lw=Gx(ni);function zV(u,f,y){var E=Ot(u),N=E||ca(u)||vl(u);if(f=wt(f,4),y==null){var re=u&&u.constructor;N?y=E?new re:[]:Mn(u)?y=Ro(re)?hl(Pt(u)):{}:y={}}return(N?mn:Ks)(u,function(ge,Se,Te){return f(y,ge,Se,Te)}),y}function qV(u,f){return u==null?!0:Ig(u,f)}function WV(u,f,y){return u==null?u:Mx(u,f,Vg(y))}function HV(u,f,y,E){return E=typeof E=="function"?E:n,u==null?u:Mx(u,f,Vg(y),E)}function yl(u){return u==null?[]:Gc(u,hr(u))}function GV(u){return u==null?[]:Gc(u,ni(u))}function YV(u,f,y){return y===n&&(y=f,f=n),y!==n&&(y=Li(y),y=y===y?y:0),f!==n&&(f=Li(f),f=f===f?f:0),eu(Li(u),f,y)}function ZV(u,f,y){return f=Fo(f),y===n?(y=f,f=0):y=Fo(y),u=Li(u),n8(u,f,y)}function XV(u,f,y){if(y&&typeof y!="boolean"&&Nr(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=Fo(u),f===n?(f=u,u=0):f=Fo(f)),u>f){var E=u;u=f,f=E}if(y||u%1||f%1){var N=fs();return Cn(u+N*(f-u+xn("1e-"+((N+"").length-1))),f)}return Fg(u,f)}var JV=ml(function(u,f,y){return f=f.toLowerCase(),u+(y?Bw(f):f)});function Bw(u){return ov(un(u).toLowerCase())}function Vw(u){return u=un(u),u&&u.replace(pi,xg).replace(bo,"")}function QV(u,f,y){u=un(u),f=$i(f);var E=u.length;y=y===n?E:eu(Lt(y),0,E);var N=y;return y-=f.length,y>=0&&u.slice(y,N)==f}function eN(u){return u=un(u),u&&kc.test(u)?u.replace(di,Eo):u}function tN(u){return u=un(u),u&&yt.test(u)?u.replace(rs,"\\$&"):u}var nN=ml(function(u,f,y){return u+(y?"-":"")+f.toLowerCase()}),rN=ml(function(u,f,y){return u+(y?" ":"")+f.toLowerCase()}),iN=Kx("toLowerCase");function sN(u,f,y){u=un(u),f=Lt(f);var E=f?$(u):0;if(!f||E>=f)return u;var N=(f-E)/2;return yh(Qr(N),y)+u+yh(hn(N),y)}function oN(u,f,y){u=un(u),f=Lt(f);var E=f?$(u):0;return f&&E<f?u+yh(f-E,y):u}function aN(u,f,y){u=un(u),f=Lt(f);var E=f?$(u):0;return f&&E<f?yh(f-E,y)+u:u}function uN(u,f,y){return y||f==null?f=0:f&&(f=+f),yi(un(u).replace(Dn,""),f||0)}function lN(u,f,y){return(y?Nr(u,f,y):f===n)?f=1:f=Lt(f),kg(un(u),f)}function cN(){var u=arguments,f=un(u[0]);return u.length<3?f:f.replace(u[1],u[2])}var fN=ml(function(u,f,y){return u+(y?"_":"")+f.toLowerCase()});function dN(u,f,y){return y&&typeof y!="number"&&Nr(u,f,y)&&(f=y=n),y=y===n?te:y>>>0,y?(u=un(u),u&&(typeof f=="string"||f!=null&&!rv(f))&&(f=$i(f),!f&&Dr(u))?la(P(u),0,y):u.split(f,y)):[]}var hN=ml(function(u,f,y){return u+(y?" ":"")+ov(f)});function pN(u,f,y){return u=un(u),y=y==null?0:eu(Lt(y),0,u.length),f=$i(f),u.slice(y,y+f.length)==f}function mN(u,f,y){var E=X.templateSettings;y&&Nr(u,f,y)&&(f=n),u=un(u),f=_h({},f,E,Yx);var N=_h({},f.imports,E.imports,Yx),re=hr(N),ge=Gc(N,re),Se,Te,Ue=0,qe=f.interpolate||Bn,Ze="__p += '",at=j((f.escape||Bn).source+"|"+qe.source+"|"+(qe===Wu?ot:Bn).source+"|"+(f.evaluate||Bn).source+"|$","g"),vt="//# sourceURL="+(Ve.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++xo+"]")+`
70
- `;u.replace(at,function(Et,Ut,Yt,wi,jr,Ci){return Yt||(Yt=wi),Ze+=u.slice(Ue,Ci).replace(Qo,gi),Ut&&(Se=!0,Ze+=`' +
71
- __e(`+Ut+`) +
72
- '`),jr&&(Te=!0,Ze+=`';
73
- `+jr+`;
74
- __p += '`),Yt&&(Ze+=`' +
75
- ((__t = (`+Yt+`)) == null ? '' : __t) +
76
- '`),Ue=Ci+Et.length,Et}),Ze+=`';
77
- `;var St=Ve.call(f,"variable")&&f.variable;if(!St)Ze=`with (obj) {
78
- `+Ze+`
79
- }
80
- `;else if(Ic.test(St))throw new le(a);Ze=(Te?Ze.replace(Or,""):Ze).replace(_s,"$1").replace(ka,"$1;"),Ze="function("+(St||"obj")+`) {
81
- `+(St?"":`obj || (obj = {});
82
- `)+"var __t, __p = ''"+(Se?", __e = _.escape":"")+(Te?`, __j = Array.prototype.join;
83
- function print() { __p += __j.call(arguments, '') }
84
- `:`;
85
- `)+Ze+`return __p
86
- }`;var Nt=jw(function(){return W(re,vt+"return "+Ze).apply(n,ge)});if(Nt.source=Ze,nv(Nt))throw Nt;return Nt}function gN(u){return un(u).toLowerCase()}function vN(u){return un(u).toUpperCase()}function yN(u,f,y){if(u=un(u),u&&(y||f===n))return sh(u);if(!u||!(f=$i(f)))return u;var E=P(u),N=P(f),re=cl(E,N),ge=fr(E,N)+1;return la(E,re,ge).join("")}function bN(u,f,y){if(u=un(u),u&&(y||f===n))return u.slice(0,_(u)+1);if(!u||!(f=$i(f)))return u;var E=P(u),N=fr(E,P(f))+1;return la(E,0,N).join("")}function $N(u,f,y){if(u=un(u),u&&(y||f===n))return u.replace(Dn,"");if(!u||!(f=$i(f)))return u;var E=P(u),N=cl(E,P(f));return la(E,N).join("")}function xN(u,f){var y=oe,E=I;if(Mn(f)){var N="separator"in f?f.separator:N;y="length"in f?Lt(f.length):y,E="omission"in f?$i(f.omission):E}u=un(u);var re=u.length;if(Dr(u)){var ge=P(u);re=ge.length}if(y>=re)return u;var Se=y-$(E);if(Se<1)return E;var Te=ge?la(ge,0,Se).join(""):u.slice(0,Se);if(N===n)return Te+E;if(ge&&(Se+=Te.length-Se),rv(N)){if(u.slice(Se).search(N)){var Ue,qe=Te;for(N.global||(N=j(N.source,un(pn.exec(N))+"g")),N.lastIndex=0;Ue=N.exec(qe);)var Ze=Ue.index;Te=Te.slice(0,Ze===n?Se:Ze)}}else if(u.indexOf($i(N),Se)!=Se){var at=Te.lastIndexOf(N);at>-1&&(Te=Te.slice(0,at))}return Te+E}function wN(u){return u=un(u),u&&co.test(u)?u.replace($t,z):u}var CN=ml(function(u,f,y){return u+(y?" ":"")+f.toUpperCase()}),ov=Kx("toUpperCase");function Nw(u,f,y){return u=un(u),f=y?n:f,f===n?Yc(u)?ve(u):yg(u):u.match(f)||[]}var jw=Kt(function(u,f){try{return Vn(u,n,f)}catch(y){return nv(y)?y:new le(y)}}),SN=_o(function(u,f){return mn(f,function(y){y=zs(y),To(u,y,ev(u[y],u))}),u});function EN(u){var f=u==null?0:u.length,y=wt();return u=f?dn(u,function(E){if(typeof E[1]!="function")throw new ne(o);return[y(E[0]),E[1]]}):[],Kt(function(E){for(var N=-1;++N<f;){var re=u[N];if(Vn(re[0],this,E))return Vn(re[1],this,E)}})}function DN(u){return X9(ki(u,m))}function av(u){return function(){return u}}function AN(u,f){return u==null||u!==u?f:u}var TN=zx(),PN=zx(!0);function ri(u){return u}function uv(u){return $x(typeof u=="function"?u:ki(u,m))}function _N(u){return wx(ki(u,m))}function MN(u,f){return Cx(u,ki(f,m))}var RN=Kt(function(u,f){return function(y){return tf(y,u,f)}}),FN=Kt(function(u,f){return function(y){return tf(u,y,f)}});function lv(u,f,y){var E=hr(f),N=fh(f,E);y==null&&!(Mn(f)&&(N.length||!E.length))&&(y=f,f=u,u=this,N=fh(f,hr(f)));var re=!(Mn(y)&&"chain"in y)||!!y.chain,ge=Ro(u);return mn(N,function(Se){var Te=f[Se];u[Se]=Te,ge&&(u.prototype[Se]=function(){var Ue=this.__chain__;if(re||Ue){var qe=u(this.__wrapped__),Ze=qe.__actions__=ei(this.__actions__);return Ze.push({func:Te,args:arguments,thisArg:u}),qe.__chain__=Ue,qe}return Te.apply(u,as([this.value()],arguments))})}),u}function kN(){return An._===this&&(An._=ue),this}function cv(){}function ON(u){return u=Lt(u),Kt(function(f){return Sx(f,u)})}var IN=jg(dn),LN=jg(Co),BN=jg(Ls);function Kw(u){return Gg(u)?al(zs(u)):p8(u)}function VN(u){return function(f){return u==null?n:tu(u,f)}}var NN=Wx(),jN=Wx(!0);function fv(){return[]}function dv(){return!1}function KN(){return{}}function UN(){return""}function zN(){return!0}function qN(u,f){if(u=Lt(u),u<1||u>L)return[];var y=te,E=Cn(u,te);f=wt(f),u-=te;for(var N=ll(E,f);++y<u;)f(y);return N}function WN(u){return Ot(u)?dn(u,zs):xi(u)?[u]:ei(uw(un(u)))}function HN(u){var f=++ut;return un(u)+f}var GN=vh(function(u,f){return u+f},0),YN=Kg("ceil"),ZN=vh(function(u,f){return u/f},1),XN=Kg("floor");function JN(u){return u&&u.length?ch(u,ri,Ag):n}function QN(u,f){return u&&u.length?ch(u,wt(f,2),Ag):n}function ej(u){return Za(u,ri)}function tj(u,f){return Za(u,wt(f,2))}function nj(u){return u&&u.length?ch(u,ri,Mg):n}function rj(u,f){return u&&u.length?ch(u,wt(f,2),Mg):n}var ij=vh(function(u,f){return u*f},1),sj=Kg("round"),oj=vh(function(u,f){return u-f},0);function aj(u){return u&&u.length?Bs(u,ri):0}function uj(u,f){return u&&u.length?Bs(u,wt(f,2)):0}return X.after=_B,X.ary=bw,X.assign=vV,X.assignIn=Fw,X.assignInWith=_h,X.assignWith=yV,X.at=bV,X.before=$w,X.bind=ev,X.bindAll=SN,X.bindKey=xw,X.castArray=KB,X.chain=gw,X.chunk=X8,X.compact=J8,X.concat=Q8,X.cond=EN,X.conforms=DN,X.constant=av,X.countBy=aB,X.create=$V,X.curry=ww,X.curryRight=Cw,X.debounce=Sw,X.defaults=xV,X.defaultsDeep=wV,X.defer=MB,X.delay=RB,X.difference=eL,X.differenceBy=tL,X.differenceWith=nL,X.drop=rL,X.dropRight=iL,X.dropRightWhile=sL,X.dropWhile=oL,X.fill=aL,X.filter=lB,X.flatMap=dB,X.flatMapDeep=hB,X.flatMapDepth=pB,X.flatten=dw,X.flattenDeep=uL,X.flattenDepth=lL,X.flip=FB,X.flow=TN,X.flowRight=PN,X.fromPairs=cL,X.functions=PV,X.functionsIn=_V,X.groupBy=mB,X.initial=dL,X.intersection=hL,X.intersectionBy=pL,X.intersectionWith=mL,X.invert=RV,X.invertBy=FV,X.invokeMap=vB,X.iteratee=uv,X.keyBy=yB,X.keys=hr,X.keysIn=ni,X.map=Sh,X.mapKeys=OV,X.mapValues=IV,X.matches=_N,X.matchesProperty=MN,X.memoize=Dh,X.merge=LV,X.mergeWith=kw,X.method=RN,X.methodOf=FN,X.mixin=lv,X.negate=Ah,X.nthArg=ON,X.omit=BV,X.omitBy=VV,X.once=kB,X.orderBy=bB,X.over=IN,X.overArgs=OB,X.overEvery=LN,X.overSome=BN,X.partial=tv,X.partialRight=Ew,X.partition=$B,X.pick=NV,X.pickBy=Ow,X.property=Kw,X.propertyOf=VN,X.pull=bL,X.pullAll=pw,X.pullAllBy=$L,X.pullAllWith=xL,X.pullAt=wL,X.range=NN,X.rangeRight=jN,X.rearg=IB,X.reject=CB,X.remove=CL,X.rest=LB,X.reverse=Jg,X.sampleSize=EB,X.set=KV,X.setWith=UV,X.shuffle=DB,X.slice=SL,X.sortBy=PB,X.sortedUniq=ML,X.sortedUniqBy=RL,X.split=dN,X.spread=BB,X.tail=FL,X.take=kL,X.takeRight=OL,X.takeRightWhile=IL,X.takeWhile=LL,X.tap=JL,X.throttle=VB,X.thru=Ch,X.toArray=_w,X.toPairs=Iw,X.toPairsIn=Lw,X.toPath=WN,X.toPlainObject=Rw,X.transform=zV,X.unary=NB,X.union=BL,X.unionBy=VL,X.unionWith=NL,X.uniq=jL,X.uniqBy=KL,X.uniqWith=UL,X.unset=qV,X.unzip=Qg,X.unzipWith=mw,X.update=WV,X.updateWith=HV,X.values=yl,X.valuesIn=GV,X.without=zL,X.words=Nw,X.wrap=jB,X.xor=qL,X.xorBy=WL,X.xorWith=HL,X.zip=GL,X.zipObject=YL,X.zipObjectDeep=ZL,X.zipWith=XL,X.entries=Iw,X.entriesIn=Lw,X.extend=Fw,X.extendWith=_h,lv(X,X),X.add=GN,X.attempt=jw,X.camelCase=JV,X.capitalize=Bw,X.ceil=YN,X.clamp=YV,X.clone=UB,X.cloneDeep=qB,X.cloneDeepWith=WB,X.cloneWith=zB,X.conformsTo=HB,X.deburr=Vw,X.defaultTo=AN,X.divide=ZN,X.endsWith=QV,X.eq=ps,X.escape=eN,X.escapeRegExp=tN,X.every=uB,X.find=cB,X.findIndex=cw,X.findKey=CV,X.findLast=fB,X.findLastIndex=fw,X.findLastKey=SV,X.floor=XN,X.forEach=vw,X.forEachRight=yw,X.forIn=EV,X.forInRight=DV,X.forOwn=AV,X.forOwnRight=TV,X.get=iv,X.gt=GB,X.gte=YB,X.has=MV,X.hasIn=sv,X.head=hw,X.identity=ri,X.includes=gB,X.indexOf=fL,X.inRange=ZV,X.invoke=kV,X.isArguments=iu,X.isArray=Ot,X.isArrayBuffer=ZB,X.isArrayLike=ti,X.isArrayLikeObject=Wn,X.isBoolean=XB,X.isBuffer=ca,X.isDate=JB,X.isElement=QB,X.isEmpty=eV,X.isEqual=tV,X.isEqualWith=nV,X.isError=nv,X.isFinite=rV,X.isFunction=Ro,X.isInteger=Dw,X.isLength=Th,X.isMap=Aw,X.isMatch=iV,X.isMatchWith=sV,X.isNaN=oV,X.isNative=aV,X.isNil=lV,X.isNull=uV,X.isNumber=Tw,X.isObject=Mn,X.isObjectLike=Kn,X.isPlainObject=uf,X.isRegExp=rv,X.isSafeInteger=cV,X.isSet=Pw,X.isString=Ph,X.isSymbol=xi,X.isTypedArray=vl,X.isUndefined=fV,X.isWeakMap=dV,X.isWeakSet=hV,X.join=gL,X.kebabCase=nN,X.last=Ii,X.lastIndexOf=vL,X.lowerCase=rN,X.lowerFirst=iN,X.lt=pV,X.lte=mV,X.max=JN,X.maxBy=QN,X.mean=ej,X.meanBy=tj,X.min=nj,X.minBy=rj,X.stubArray=fv,X.stubFalse=dv,X.stubObject=KN,X.stubString=UN,X.stubTrue=zN,X.multiply=ij,X.nth=yL,X.noConflict=kN,X.noop=cv,X.now=Eh,X.pad=sN,X.padEnd=oN,X.padStart=aN,X.parseInt=uN,X.random=XV,X.reduce=xB,X.reduceRight=wB,X.repeat=lN,X.replace=cN,X.result=jV,X.round=sj,X.runInContext=F,X.sample=SB,X.size=AB,X.snakeCase=fN,X.some=TB,X.sortedIndex=EL,X.sortedIndexBy=DL,X.sortedIndexOf=AL,X.sortedLastIndex=TL,X.sortedLastIndexBy=PL,X.sortedLastIndexOf=_L,X.startCase=hN,X.startsWith=pN,X.subtract=oj,X.sum=aj,X.sumBy=uj,X.template=mN,X.times=qN,X.toFinite=Fo,X.toInteger=Lt,X.toLength=Mw,X.toLower=gN,X.toNumber=Li,X.toSafeInteger=gV,X.toString=un,X.toUpper=vN,X.trim=yN,X.trimEnd=bN,X.trimStart=$N,X.truncate=xN,X.unescape=wN,X.uniqueId=HN,X.upperCase=CN,X.upperFirst=ov,X.each=vw,X.eachRight=yw,X.first=hw,lv(X,function(){var u={};return Ks(X,function(f,y){Ve.call(X.prototype,y)||(u[y]=f)}),u}(),{chain:!1}),X.VERSION=r,mn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(u){X[u].placeholder=X}),mn(["drop","take"],function(u,f){Wt.prototype[u]=function(y){y=y===n?1:Xt(Lt(y),0);var E=this.__filtered__&&!f?new Wt(this):this.clone();return E.__filtered__?E.__takeCount__=Cn(y,E.__takeCount__):E.__views__.push({size:Cn(y,te),type:u+(E.__dir__<0?"Right":"")}),E},Wt.prototype[u+"Right"]=function(y){return this.reverse()[u](y).reverse()}}),mn(["filter","map","takeWhile"],function(u,f){var y=f+1,E=y==H||y==M;Wt.prototype[u]=function(N){var re=this.clone();return re.__iteratees__.push({iteratee:wt(N,3),type:y}),re.__filtered__=re.__filtered__||E,re}}),mn(["head","last"],function(u,f){var y="take"+(f?"Right":"");Wt.prototype[u]=function(){return this[y](1).value()[0]}}),mn(["initial","tail"],function(u,f){var y="drop"+(f?"":"Right");Wt.prototype[u]=function(){return this.__filtered__?new Wt(this):this[y](1)}}),Wt.prototype.compact=function(){return this.filter(ri)},Wt.prototype.find=function(u){return this.filter(u).head()},Wt.prototype.findLast=function(u){return this.reverse().find(u)},Wt.prototype.invokeMap=Kt(function(u,f){return typeof u=="function"?new Wt(this):this.map(function(y){return tf(y,u,f)})}),Wt.prototype.reject=function(u){return this.filter(Ah(wt(u)))},Wt.prototype.slice=function(u,f){u=Lt(u);var y=this;return y.__filtered__&&(u>0||f<0)?new Wt(y):(u<0?y=y.takeRight(-u):u&&(y=y.drop(u)),f!==n&&(f=Lt(f),y=f<0?y.dropRight(-f):y.take(f-u)),y)},Wt.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},Wt.prototype.toArray=function(){return this.take(te)},Ks(Wt.prototype,function(u,f){var y=/^(?:filter|find|map|reject)|While$/.test(f),E=/^(?:head|last)$/.test(f),N=X[E?"take"+(f=="last"?"Right":""):f],re=E||/^find/.test(f);N&&(X.prototype[f]=function(){var ge=this.__wrapped__,Se=E?[1]:arguments,Te=ge instanceof Wt,Ue=Se[0],qe=Te||Ot(ge),Ze=function(Ut){var Yt=N.apply(X,as([Ut],Se));return E&&at?Yt[0]:Yt};qe&&y&&typeof Ue=="function"&&Ue.length!=1&&(Te=qe=!1);var at=this.__chain__,vt=!!this.__actions__.length,St=re&&!at,Nt=Te&&!vt;if(!re&&qe){ge=Nt?ge:new Wt(this);var Et=u.apply(ge,Se);return Et.__actions__.push({func:Ch,args:[Ze],thisArg:n}),new Fi(Et,at)}return St&&Nt?u.apply(this,Se):(Et=this.thru(Ze),St?E?Et.value()[0]:Et.value():Et)})}),mn(["pop","push","shift","sort","splice","unshift"],function(u){var f=ae[u],y=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",E=/^(?:pop|shift)$/.test(u);X.prototype[u]=function(){var N=arguments;if(E&&!this.__chain__){var re=this.value();return f.apply(Ot(re)?re:[],N)}return this[y](function(ge){return f.apply(Ot(ge)?ge:[],N)})}}),Ks(Wt.prototype,function(u,f){var y=X[f];if(y){var E=y.name+"";Ve.call(dl,E)||(dl[E]=[]),dl[E].push({name:f,func:y})}}),dl[gh(n,S).name]=[{name:"wrapper",func:n}],Wt.prototype.clone=w9,Wt.prototype.reverse=C9,Wt.prototype.value=S9,X.prototype.at=QL,X.prototype.chain=eB,X.prototype.commit=tB,X.prototype.next=nB,X.prototype.plant=iB,X.prototype.reverse=sB,X.prototype.toJSON=X.prototype.valueOf=X.prototype.value=oB,X.prototype.first=X.prototype.head,Qn&&(X.prototype[Qn]=rB),X},Re=Ce();_i?((_i.exports=Re)._=Re,Pi._=Re):An._=Re}).call(AU)}(Df,Df.exports)),Df.exports}var e5=TU();const PU=ts(e5);var Ed=e=>e.type==="checkbox",hu=e=>e instanceof Date,Kr=e=>e==null;const t5=e=>typeof e=="object";var Zn=e=>!Kr(e)&&!Array.isArray(e)&&t5(e)&&!hu(e),n5=e=>Zn(e)&&e.target?Ed(e.target)?e.target.checked:e.target.value:e,_U=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,r5=(e,t)=>e.has(_U(t)),MU=e=>{const t=e.constructor&&e.constructor.prototype;return Zn(t)&&t.hasOwnProperty("isPrototypeOf")},z4=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Rn(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(!(z4&&(e instanceof Blob||r))&&(n||Zn(e)))if(t=n?[]:{},!n&&!MU(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=Rn(e[i]));else return e;return t}var Dd=e=>Array.isArray(e)?e.filter(Boolean):[],En=e=>e===void 0,st=(e,t,n)=>{if(!t||!Zn(e))return n;const r=Dd(t.split(/[,[\].]+?/)).reduce((i,s)=>Kr(i)?i:i[s],e);return En(r)||r===e?En(e[t])?n:e[t]:r},Si=e=>typeof e=="boolean",q4=e=>/^\w*$/.test(e),i5=e=>Dd(e.replace(/["|']|\]/g,"").split(/\.|\[/)),tn=(e,t,n)=>{let r=-1;const i=q4(t)?[t]:i5(t),s=i.length,o=s-1;for(;++r<s;){const a=i[r];let l=n;if(r!==o){const d=e[a];l=Zn(d)||Array.isArray(d)?d:isNaN(+i[r+1])?{}:[]}if(a==="__proto__"||a==="constructor"||a==="prototype")return;e[a]=l,e=e[a]}};const Fp={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Wi={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Oo={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},s5=A.createContext(null),Ad=()=>A.useContext(s5),RU=e=>{const{children:t,...n}=e;return A.createElement(s5.Provider,{value:n},t)};var o5=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(i,s,{get:()=>{const o=s;return t._proxyFormState[o]!==Wi.all&&(t._proxyFormState[o]=!r||Wi.all),n&&(n[o]=!0),e[o]}});return i};function FU(e){const t=Ad(),{control:n=t.control,disabled:r,name:i,exact:s}=e||{},[o,a]=A.useState(n._formState),l=A.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=A.useRef(i);return d.current=i,A.useEffect(()=>n._subscribe({name:d.current,formState:l.current,exact:s,callback:h=>{!r&&a({...n._formState,...h})}}),[n,r,s]),A.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),A.useMemo(()=>o5(o,n,l.current,!1),[o,n])}var Ys=e=>typeof e=="string",a5=(e,t,n,r,i)=>Ys(e)?(r&&t.watch.add(e),st(n,e,i)):Array.isArray(e)?e.map(s=>(r&&t.watch.add(s),st(n,s))):(r&&(t.watchAll=!0),n);function u5(e){const t=Ad(),{control:n=t.control,name:r,defaultValue:i,disabled:s,exact:o}=e||{},a=A.useRef(r),l=A.useRef(i);a.current=r,A.useEffect(()=>n._subscribe({name:a.current,formState:{values:!0},exact:o,callback:m=>!s&&h(a5(a.current,n._names,m.values||n._formValues,!1,l.current))}),[n,s,o]);const[d,h]=A.useState(n._getWatch(r,i));return A.useEffect(()=>n._removeUnmounted()),d}function l5(e){const t=Ad(),{name:n,disabled:r,control:i=t.control,shouldUnregister:s}=e,o=r5(i._names.array,n),a=u5({control:i,name:n,defaultValue:st(i._formValues,n,st(i._defaultValues,n,e.defaultValue)),exact:!0}),l=FU({control:i,name:n,exact:!0}),d=A.useRef(e),h=A.useRef(i.register(n,{...e.rules,value:a,...Si(e.disabled)?{disabled:e.disabled}:{}})),m=A.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!st(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!st(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!st(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!st(l.validatingFields,n)},error:{enumerable:!0,get:()=>st(l.errors,n)}}),[l,n]),g=A.useCallback(D=>h.current.onChange({target:{value:n5(D),name:n},type:Fp.CHANGE}),[n]),b=A.useCallback(()=>h.current.onBlur({target:{value:st(i._formValues,n),name:n},type:Fp.BLUR}),[n,i._formValues]),x=A.useCallback(D=>{const S=st(i._fields,n);S&&D&&(S._f.ref={focus:()=>D.focus(),select:()=>D.select(),setCustomValidity:w=>D.setCustomValidity(w),reportValidity:()=>D.reportValidity()})},[i._fields,n]),C=A.useMemo(()=>({name:n,value:a,...Si(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:g,onBlur:b,ref:x}),[n,r,l.disabled,g,b,x,a]);return A.useEffect(()=>{const D=i._options.shouldUnregister||s;i.register(n,{...d.current.rules,...Si(d.current.disabled)?{disabled:d.current.disabled}:{}});const S=(w,T)=>{const O=st(i._fields,w);O&&O._f&&(O._f.mount=T)};if(S(n,!0),D){const w=Rn(st(i._options.defaultValues,n));tn(i._defaultValues,n,w),En(st(i._formValues,n))&&tn(i._formValues,n,w)}return!o&&i.register(n),()=>{(o?D&&!i._state.action:D)?i.unregister(n):S(n,!1)}},[n,i,o,s]),A.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),A.useMemo(()=>({field:C,formState:l,fieldState:m}),[C,l,m])}const kU=e=>e.render(l5(e));var c5=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},oi=e=>Array.isArray(e)?e:[e],vC=()=>{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=[]}}},ub=e=>Kr(e)||!t5(e);function ya(e,t){if(ub(e)||ub(t))return e===t;if(hu(e)&&hu(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 o=t[i];if(hu(s)&&hu(o)||Zn(s)&&Zn(o)||Array.isArray(s)&&Array.isArray(o)?!ya(s,o):s!==o)return!1}}return!0}var Tr=e=>Zn(e)&&!Object.keys(e).length,W4=e=>e.type==="file",$s=e=>typeof e=="function",kp=e=>{if(!z4)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},f5=e=>e.type==="select-multiple",H4=e=>e.type==="radio",OU=e=>H4(e)||Ed(e),Cv=e=>kp(e)&&e.isConnected;function IU(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=En(e)?r++:e[t[r++]];return e}function LU(e){for(const t in e)if(e.hasOwnProperty(t)&&!En(e[t]))return!1;return!0}function er(e,t){const n=Array.isArray(t)?t:q4(t)?[t]:i5(t),r=n.length===1?e:IU(e,n),i=n.length-1,s=n[i];return r&&delete r[s],i!==0&&(Zn(r)&&Tr(r)||Array.isArray(r)&&LU(r))&&er(e,n.slice(0,-1)),e}var d5=e=>{for(const t in e)if($s(e[t]))return!0;return!1};function Op(e,t={}){const n=Array.isArray(e);if(Zn(e)||n)for(const r in e)Array.isArray(e[r])||Zn(e[r])&&!d5(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Op(e[r],t[r])):Kr(e[r])||(t[r]=!0);return t}function h5(e,t,n){const r=Array.isArray(e);if(Zn(e)||r)for(const i in e)Array.isArray(e[i])||Zn(e[i])&&!d5(e[i])?En(t)||ub(n[i])?n[i]=Array.isArray(e[i])?Op(e[i],[]):{...Op(e[i])}:h5(e[i],Kr(t)?{}:t[i],n[i]):n[i]=!ya(e[i],t[i]);return n}var lf=(e,t)=>h5(e,t,Op(t));const yC={value:!1,isValid:!1},bC={value:!0,isValid:!0};var p5=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&&!En(e[0].attributes.value)?En(e[0].value)||e[0].value===""?bC:{value:e[0].value,isValid:!0}:bC:yC}return yC},m5=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>En(e)?e:t?e===""?NaN:e&&+e:n&&Ys(e)?new Date(e):r?r(e):e;const $C={isValid:!1,value:null};var g5=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,$C):$C;function xC(e){const t=e.ref;return W4(t)?t.files:H4(t)?g5(e.refs).value:f5(t)?[...t.selectedOptions].map(({value:n})=>n):Ed(t)?p5(e.refs).value:m5(En(t.value)?e.ref.value:t.value,e)}var BU=(e,t,n,r)=>{const i={};for(const s of e){const o=st(t,s);o&&tn(i,s,o._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Ip=e=>e instanceof RegExp,cf=e=>En(e)?e:Ip(e)?e.source:Zn(e)?Ip(e.value)?e.value.source:e.value:e,Tl=e=>({isOnSubmit:!e||e===Wi.onSubmit,isOnBlur:e===Wi.onBlur,isOnChange:e===Wi.onChange,isOnAll:e===Wi.all,isOnTouch:e===Wi.onTouched});const wC="AsyncFunction";var VU=e=>!!e&&!!e.validate&&!!($s(e.validate)&&e.validate.constructor.name===wC||Zn(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===wC)),NU=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),lb=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Nl=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const s=st(e,i);if(s){const{_f:o,...a}=s;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],i)&&!r)return!0;if(o.ref&&t(o.ref,o.name)&&!r)return!0;if(Nl(a,t))break}else if(Zn(a)&&Nl(a,t))break}}};function CC(e,t,n){const r=st(e,n);if(r||q4(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const s=i.join("."),o=st(t,s),a=st(e,s);if(o&&!Array.isArray(o)&&n!==s)return{name:n};if(a&&a.type)return{name:s,error:a};i.pop()}return{name:n}}var jU=(e,t,n,r)=>{n(e);const{name:i,...s}=e;return Tr(s)||Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find(o=>t[o]===(!r||Wi.all))},KU=(e,t,n)=>!e||!t||e===t||oi(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),UU=(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,zU=(e,t)=>!Dd(st(e,t)).length&&er(e,t),v5=(e,t,n)=>{const r=oi(st(e,n));return tn(r,"root",t[n]),tn(e,n,r),e},up=e=>Ys(e);function SC(e,t,n="validate"){if(up(e)||Array.isArray(e)&&e.every(up)||Si(e)&&!e)return{type:n,message:up(e)?e:"",ref:t}}var $l=e=>Zn(e)&&!Ip(e)?e:{value:e,message:""},cb=async(e,t,n,r,i,s)=>{const{ref:o,refs:a,required:l,maxLength:d,minLength:h,min:m,max:g,pattern:b,validate:x,name:C,valueAsNumber:D,mount:S}=e._f,w=st(n,C);if(!S||t.has(C))return{};const T=a?a[0]:o,O=be=>{i&&T.reportValidity&&(T.setCustomValidity(Si(be)?"":be||""),T.reportValidity())},R={},k=H4(o),K=Ed(o),q=k||K,ce=(D||W4(o))&&En(o.value)&&En(w)||kp(o)&&o.value===""||w===""||Array.isArray(w)&&!w.length,oe=c5.bind(null,C,r,R),I=(be,$e,H,ie=Oo.maxLength,M=Oo.minLength)=>{const B=be?$e:H;R[C]={type:be?ie:M,message:B,ref:o,...oe(be?ie:M,B)}};if(s?!Array.isArray(w)||!w.length:l&&(!q&&(ce||Kr(w))||Si(w)&&!w||K&&!p5(a).isValid||k&&!g5(a).isValid)){const{value:be,message:$e}=up(l)?{value:!!l,message:l}:$l(l);if(be&&(R[C]={type:Oo.required,message:$e,ref:T,...oe(Oo.required,$e)},!r))return O($e),R}if(!ce&&(!Kr(m)||!Kr(g))){let be,$e;const H=$l(g),ie=$l(m);if(!Kr(w)&&!isNaN(w)){const M=o.valueAsNumber||w&&+w;Kr(H.value)||(be=M>H.value),Kr(ie.value)||($e=M<ie.value)}else{const M=o.valueAsDate||new Date(w),B=U=>new Date(new Date().toDateString()+" "+U),L=o.type=="time",me=o.type=="week";Ys(H.value)&&w&&(be=L?B(w)>B(H.value):me?w>H.value:M>new Date(H.value)),Ys(ie.value)&&w&&($e=L?B(w)<B(ie.value):me?w<ie.value:M<new Date(ie.value))}if((be||$e)&&(I(!!be,H.message,ie.message,Oo.max,Oo.min),!r))return O(R[C].message),R}if((d||h)&&!ce&&(Ys(w)||s&&Array.isArray(w))){const be=$l(d),$e=$l(h),H=!Kr(be.value)&&w.length>+be.value,ie=!Kr($e.value)&&w.length<+$e.value;if((H||ie)&&(I(H,be.message,$e.message),!r))return O(R[C].message),R}if(b&&!ce&&Ys(w)){const{value:be,message:$e}=$l(b);if(Ip(be)&&!w.match(be)&&(R[C]={type:Oo.pattern,message:$e,ref:o,...oe(Oo.pattern,$e)},!r))return O($e),R}if(x){if($s(x)){const be=await x(w,n),$e=SC(be,T);if($e&&(R[C]={...$e,...oe(Oo.validate,$e.message)},!r))return O($e.message),R}else if(Zn(x)){let be={};for(const $e in x){if(!Tr(be)&&!r)break;const H=SC(await x[$e](w,n),T,$e);H&&(be={...H,...oe($e,H.message)},O(H.message),r&&(R[C]=be))}if(!Tr(be)&&(R[C]={ref:T,...be},!r))return R}}return O(!0),R};const qU={mode:Wi.onSubmit,reValidateMode:Wi.onChange,shouldFocusError:!0};function WU(e={}){let t={...qU,...e},n={submitCount:0,isDirty:!1,isLoading:$s(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=Zn(t.defaultValues)||Zn(t.values)?Rn(t.values||t.defaultValues)||{}:{},s=t.shouldUnregister?{}:Rn(i),o={action:!1,mount:!1,watch:!1},a={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:vC(),state:vC()},b=Tl(t.mode),x=Tl(t.reValidateMode),C=t.criteriaMode===Wi.all,D=we=>Pe=>{clearTimeout(d),d=setTimeout(we,Pe)},S=async we=>{if(!t.disabled&&(h.isValid||m.isValid||we)){const Pe=t.resolver?Tr((await ce()).errors):await I(r,!0);Pe!==n.isValid&&g.state.next({isValid:Pe})}},w=(we,Pe)=>{!t.disabled&&(h.isValidating||h.validatingFields||m.isValidating||m.validatingFields)&&((we||Array.from(a.mount)).forEach(Be=>{Be&&(Pe?tn(n.validatingFields,Be,Pe):er(n.validatingFields,Be))}),g.state.next({validatingFields:n.validatingFields,isValidating:!Tr(n.validatingFields)}))},T=(we,Pe=[],Be,rt,it=!0,Xe=!0)=>{if(rt&&Be&&!t.disabled){if(o.action=!0,Xe&&Array.isArray(st(r,we))){const tt=Be(st(r,we),rt.argA,rt.argB);it&&tn(r,we,tt)}if(Xe&&Array.isArray(st(n.errors,we))){const tt=Be(st(n.errors,we),rt.argA,rt.argB);it&&tn(n.errors,we,tt),zU(n.errors,we)}if((h.touchedFields||m.touchedFields)&&Xe&&Array.isArray(st(n.touchedFields,we))){const tt=Be(st(n.touchedFields,we),rt.argA,rt.argB);it&&tn(n.touchedFields,we,tt)}(h.dirtyFields||m.dirtyFields)&&(n.dirtyFields=lf(i,s)),g.state.next({name:we,isDirty:$e(we,Pe),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else tn(s,we,Pe)},O=(we,Pe)=>{tn(n.errors,we,Pe),g.state.next({errors:n.errors})},R=we=>{n.errors=we,g.state.next({errors:n.errors,isValid:!1})},k=(we,Pe,Be,rt)=>{const it=st(r,we);if(it){const Xe=st(s,we,En(Be)?st(i,we):Be);En(Xe)||rt&&rt.defaultChecked||Pe?tn(s,we,Pe?Xe:xC(it._f)):M(we,Xe),o.mount&&S()}},K=(we,Pe,Be,rt,it)=>{let Xe=!1,tt=!1;const _t={name:we};if(!t.disabled){if(!Be||rt){(h.isDirty||m.isDirty)&&(tt=n.isDirty,n.isDirty=_t.isDirty=$e(),Xe=tt!==_t.isDirty);const en=ya(st(i,we),Pe);tt=!!st(n.dirtyFields,we),en?er(n.dirtyFields,we):tn(n.dirtyFields,we,!0),_t.dirtyFields=n.dirtyFields,Xe=Xe||(h.dirtyFields||m.dirtyFields)&&tt!==!en}if(Be){const en=st(n.touchedFields,we);en||(tn(n.touchedFields,we,Be),_t.touchedFields=n.touchedFields,Xe=Xe||(h.touchedFields||m.touchedFields)&&en!==Be)}Xe&&it&&g.state.next(_t)}return Xe?_t:{}},q=(we,Pe,Be,rt)=>{const it=st(n.errors,we),Xe=(h.isValid||m.isValid)&&Si(Pe)&&n.isValid!==Pe;if(t.delayError&&Be?(l=D(()=>O(we,Be)),l(t.delayError)):(clearTimeout(d),l=null,Be?tn(n.errors,we,Be):er(n.errors,we)),(Be?!ya(it,Be):it)||!Tr(rt)||Xe){const tt={...rt,...Xe&&Si(Pe)?{isValid:Pe}:{},errors:n.errors,name:we};n={...n,...tt},g.state.next(tt)}},ce=async we=>{w(we,!0);const Pe=await t.resolver(s,t.context,BU(we||a.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return w(we),Pe},oe=async we=>{const{errors:Pe}=await ce(we);if(we)for(const Be of we){const rt=st(Pe,Be);rt?tn(n.errors,Be,rt):er(n.errors,Be)}else n.errors=Pe;return Pe},I=async(we,Pe,Be={valid:!0})=>{for(const rt in we){const it=we[rt];if(it){const{_f:Xe,...tt}=it;if(Xe){const _t=a.array.has(Xe.name),en=it._f&&VU(it._f);en&&h.validatingFields&&w([rt],!0);const kt=await cb(it,a.disabled,s,C,t.shouldUseNativeValidation&&!Pe,_t);if(en&&h.validatingFields&&w([rt]),kt[Xe.name]&&(Be.valid=!1,Pe))break;!Pe&&(st(kt,Xe.name)?_t?v5(n.errors,kt,Xe.name):tn(n.errors,Xe.name,kt[Xe.name]):er(n.errors,Xe.name))}!Tr(tt)&&await I(tt,Pe,Be)}}return Be.valid},be=()=>{for(const we of a.unMount){const Pe=st(r,we);Pe&&(Pe._f.refs?Pe._f.refs.every(Be=>!Cv(Be)):!Cv(Pe._f.ref))&&Ke(we)}a.unMount=new Set},$e=(we,Pe)=>!t.disabled&&(we&&Pe&&tn(s,we,Pe),!ya(xe(),i)),H=(we,Pe,Be)=>a5(we,a,{...o.mount?s:En(Pe)?i:Ys(we)?{[we]:Pe}:Pe},Be,Pe),ie=we=>Dd(st(o.mount?s:i,we,t.shouldUnregister?st(i,we,[]):[])),M=(we,Pe,Be={})=>{const rt=st(r,we);let it=Pe;if(rt){const Xe=rt._f;Xe&&(!Xe.disabled&&tn(s,we,m5(Pe,Xe)),it=kp(Xe.ref)&&Kr(Pe)?"":Pe,f5(Xe.ref)?[...Xe.ref.options].forEach(tt=>tt.selected=it.includes(tt.value)):Xe.refs?Ed(Xe.ref)?Xe.refs.length>1?Xe.refs.forEach(tt=>(!tt.defaultChecked||!tt.disabled)&&(tt.checked=Array.isArray(it)?!!it.find(_t=>_t===tt.value):it===tt.value)):Xe.refs[0]&&(Xe.refs[0].checked=!!it):Xe.refs.forEach(tt=>tt.checked=tt.value===it):W4(Xe.ref)?Xe.ref.value="":(Xe.ref.value=it,Xe.ref.type||g.state.next({name:we,values:Rn(s)})))}(Be.shouldDirty||Be.shouldTouch)&&K(we,it,Be.shouldTouch,Be.shouldDirty,!0),Be.shouldValidate&&te(we)},B=(we,Pe,Be)=>{for(const rt in Pe){const it=Pe[rt],Xe=`${we}.${rt}`,tt=st(r,Xe);(a.array.has(we)||Zn(it)||tt&&!tt._f)&&!hu(it)?B(Xe,it,Be):M(Xe,it,Be)}},L=(we,Pe,Be={})=>{const rt=st(r,we),it=a.array.has(we),Xe=Rn(Pe);tn(s,we,Xe),it?(g.array.next({name:we,values:Rn(s)}),(h.isDirty||h.dirtyFields||m.isDirty||m.dirtyFields)&&Be.shouldDirty&&g.state.next({name:we,dirtyFields:lf(i,s),isDirty:$e(we,Xe)})):rt&&!rt._f&&!Kr(Xe)?B(we,Xe,Be):M(we,Xe,Be),lb(we,a)&&g.state.next({...n}),g.state.next({name:o.mount?we:void 0,values:Rn(s)})},me=async we=>{o.mount=!0;const Pe=we.target;let Be=Pe.name,rt=!0;const it=st(r,Be),Xe=tt=>{rt=Number.isNaN(tt)||hu(tt)&&isNaN(tt.getTime())||ya(tt,st(s,Be,tt))};if(it){let tt,_t;const en=Pe.type?xC(it._f):n5(we),kt=we.type===Fp.BLUR||we.type===Fp.FOCUS_OUT,Mt=!NU(it._f)&&!t.resolver&&!st(n.errors,Be)&&!it._f.deps||UU(kt,st(n.touchedFields,Be),n.isSubmitted,x,b),Vt=lb(Be,a,kt);tn(s,Be,en),kt?(it._f.onBlur&&it._f.onBlur(we),l&&l(0)):it._f.onChange&&it._f.onChange(we);const Ht=K(Be,en,kt),gr=!Tr(Ht)||Vt;if(!kt&&g.state.next({name:Be,type:we.type,values:Rn(s)}),Mt)return(h.isValid||m.isValid)&&(t.mode==="onBlur"?kt&&S():kt||S()),gr&&g.state.next({name:Be,...Vt?{}:Ht});if(!kt&&Vt&&g.state.next({...n}),t.resolver){const{errors:Zr}=await ce([Be]);if(Xe(en),rt){const fi=CC(n.errors,r,Be),Or=CC(Zr,r,fi.name||Be);tt=Or.error,Be=Or.name,_t=Tr(Zr)}}else w([Be],!0),tt=(await cb(it,a.disabled,s,C,t.shouldUseNativeValidation))[Be],w([Be]),Xe(en),rt&&(tt?_t=!1:(h.isValid||m.isValid)&&(_t=await I(r,!0)));rt&&(it._f.deps&&te(it._f.deps),q(Be,_t,tt,Ht))}},U=(we,Pe)=>{if(st(n.errors,Pe)&&we.focus)return we.focus(),1},te=async(we,Pe={})=>{let Be,rt;const it=oi(we);if(t.resolver){const Xe=await oe(En(we)?we:it);Be=Tr(Xe),rt=we?!it.some(tt=>st(Xe,tt)):Be}else we?(rt=(await Promise.all(it.map(async Xe=>{const tt=st(r,Xe);return await I(tt&&tt._f?{[Xe]:tt}:tt)}))).every(Boolean),!(!rt&&!n.isValid)&&S()):rt=Be=await I(r);return g.state.next({...!Ys(we)||(h.isValid||m.isValid)&&Be!==n.isValid?{}:{name:we},...t.resolver||!we?{isValid:Be}:{},errors:n.errors}),Pe.shouldFocus&&!rt&&Nl(r,U,we?it:a.mount),rt},xe=we=>{const Pe={...o.mount?s:i};return En(we)?Pe:Ys(we)?st(Pe,we):we.map(Be=>st(Pe,Be))},Ee=(we,Pe)=>({invalid:!!st((Pe||n).errors,we),isDirty:!!st((Pe||n).dirtyFields,we),error:st((Pe||n).errors,we),isValidating:!!st(n.validatingFields,we),isTouched:!!st((Pe||n).touchedFields,we)}),Oe=we=>{we&&oi(we).forEach(Pe=>er(n.errors,Pe)),g.state.next({errors:we?n.errors:{}})},_e=(we,Pe,Be)=>{const rt=(st(r,we,{_f:{}})._f||{}).ref,it=st(n.errors,we)||{},{ref:Xe,message:tt,type:_t,...en}=it;tn(n.errors,we,{...en,...Pe,ref:rt}),g.state.next({name:we,errors:n.errors,isValid:!1}),Be&&Be.shouldFocus&&rt&&rt.focus&&rt.focus()},Ye=(we,Pe)=>$s(we)?g.state.subscribe({next:Be=>we(H(void 0,Pe),Be)}):H(we,Pe,!0),He=we=>g.state.subscribe({next:Pe=>{KU(we.name,Pe.name,we.exact)&&jU(Pe,we.formState||h,gt,we.reRenderRoot)&&we.callback({values:{...s},...n,...Pe})}}).unsubscribe,De=we=>(o.mount=!0,m={...m,...we.formState},He({...we,formState:m})),Ke=(we,Pe={})=>{for(const Be of we?oi(we):a.mount)a.mount.delete(Be),a.array.delete(Be),Pe.keepValue||(er(r,Be),er(s,Be)),!Pe.keepError&&er(n.errors,Be),!Pe.keepDirty&&er(n.dirtyFields,Be),!Pe.keepTouched&&er(n.touchedFields,Be),!Pe.keepIsValidating&&er(n.validatingFields,Be),!t.shouldUnregister&&!Pe.keepDefaultValue&&er(i,Be);g.state.next({values:Rn(s)}),g.state.next({...n,...Pe.keepDirty?{isDirty:$e()}:{}}),!Pe.keepIsValid&&S()},We=({disabled:we,name:Pe})=>{(Si(we)&&o.mount||we||a.disabled.has(Pe))&&(we?a.disabled.add(Pe):a.disabled.delete(Pe))},Ae=(we,Pe={})=>{let Be=st(r,we);const rt=Si(Pe.disabled)||Si(t.disabled);return tn(r,we,{...Be||{},_f:{...Be&&Be._f?Be._f:{ref:{name:we}},name:we,mount:!0,...Pe}}),a.mount.add(we),Be?We({disabled:Si(Pe.disabled)?Pe.disabled:t.disabled,name:we}):k(we,!0,Pe.value),{...rt?{disabled:Pe.disabled||t.disabled}:{},...t.progressive?{required:!!Pe.required,min:cf(Pe.min),max:cf(Pe.max),minLength:cf(Pe.minLength),maxLength:cf(Pe.maxLength),pattern:cf(Pe.pattern)}:{},name:we,onChange:me,onBlur:me,ref:it=>{if(it){Ae(we,Pe),Be=st(r,we);const Xe=En(it.value)&&it.querySelectorAll&&it.querySelectorAll("input,select,textarea")[0]||it,tt=OU(Xe),_t=Be._f.refs||[];if(tt?_t.find(en=>en===Xe):Xe===Be._f.ref)return;tn(r,we,{_f:{...Be._f,...tt?{refs:[..._t.filter(Cv),Xe,...Array.isArray(st(i,we))?[{}]:[]],ref:{type:Xe.type,name:we}}:{ref:Xe}}}),k(we,!1,void 0,Xe)}else Be=st(r,we,{}),Be._f&&(Be._f.mount=!1),(t.shouldUnregister||Pe.shouldUnregister)&&!(r5(a.array,we)&&o.action)&&a.unMount.add(we)}}},Ie=()=>t.shouldFocusError&&Nl(r,U,a.mount),et=we=>{Si(we)&&(g.state.next({disabled:we}),Nl(r,(Pe,Be)=>{const rt=st(r,Be);rt&&(Pe.disabled=rt._f.disabled||we,Array.isArray(rt._f.refs)&&rt._f.refs.forEach(it=>{it.disabled=rt._f.disabled||we}))},0,!1))},xt=(we,Pe)=>async Be=>{let rt;Be&&(Be.preventDefault&&Be.preventDefault(),Be.persist&&Be.persist());let it=Rn(s);if(g.state.next({isSubmitting:!0}),t.resolver){const{errors:Xe,values:tt}=await ce();n.errors=Xe,it=tt}else await I(r);if(a.disabled.size)for(const Xe of a.disabled)tn(it,Xe,void 0);if(er(n.errors,"root"),Tr(n.errors)){g.state.next({errors:{}});try{await we(it,Be)}catch(Xe){rt=Xe}}else Pe&&await Pe({...n.errors},Be),Ie(),setTimeout(Ie);if(g.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Tr(n.errors)&&!rt,submitCount:n.submitCount+1,errors:n.errors}),rt)throw rt},fn=(we,Pe={})=>{st(r,we)&&(En(Pe.defaultValue)?L(we,Rn(st(i,we))):(L(we,Pe.defaultValue),tn(i,we,Rn(Pe.defaultValue))),Pe.keepTouched||er(n.touchedFields,we),Pe.keepDirty||(er(n.dirtyFields,we),n.isDirty=Pe.defaultValue?$e(we,Rn(st(i,we))):$e()),Pe.keepError||(er(n.errors,we),h.isValid&&S()),g.state.next({...n}))},bt=(we,Pe={})=>{const Be=we?Rn(we):i,rt=Rn(Be),it=Tr(we),Xe=it?i:rt;if(Pe.keepDefaultValues||(i=Be),!Pe.keepValues){if(Pe.keepDirtyValues){const tt=new Set([...a.mount,...Object.keys(lf(i,s))]);for(const _t of Array.from(tt))st(n.dirtyFields,_t)?tn(Xe,_t,st(s,_t)):L(_t,st(Xe,_t))}else{if(z4&&En(we))for(const tt of a.mount){const _t=st(r,tt);if(_t&&_t._f){const en=Array.isArray(_t._f.refs)?_t._f.refs[0]:_t._f.ref;if(kp(en)){const kt=en.closest("form");if(kt){kt.reset();break}}}}for(const tt of a.mount)L(tt,st(Xe,tt))}s=Rn(Xe),g.array.next({values:{...Xe}}),g.state.next({values:{...Xe}})}a={mount:Pe.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!h.isValid||!!Pe.keepIsValid||!!Pe.keepDirtyValues,o.watch=!!t.shouldUnregister,g.state.next({submitCount:Pe.keepSubmitCount?n.submitCount:0,isDirty:it?!1:Pe.keepDirty?n.isDirty:!!(Pe.keepDefaultValues&&!ya(we,i)),isSubmitted:Pe.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:it?{}:Pe.keepDirtyValues?Pe.keepDefaultValues&&s?lf(i,s):n.dirtyFields:Pe.keepDefaultValues&&we?lf(i,we):Pe.keepDirty?n.dirtyFields:{},touchedFields:Pe.keepTouched?n.touchedFields:{},errors:Pe.keepErrors?n.errors:{},isSubmitSuccessful:Pe.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Rt=(we,Pe)=>bt($s(we)?we(s):we,Pe),ci=(we,Pe={})=>{const Be=st(r,we),rt=Be&&Be._f;if(rt){const it=rt.refs?rt.refs[0]:rt.ref;it.focus&&(it.focus(),Pe.shouldSelect&&$s(it.select)&&it.select())}},gt=we=>{n={...n,...we}},Ft={control:{register:Ae,unregister:Ke,getFieldState:Ee,handleSubmit:xt,setError:_e,_subscribe:He,_runSchema:ce,_getWatch:H,_getDirty:$e,_setValid:S,_setFieldArray:T,_setDisabledField:We,_setErrors:R,_getFieldArray:ie,_reset:bt,_resetDefaultValues:()=>$s(t.defaultValues)&&t.defaultValues().then(we=>{Rt(we,t.resetOptions),g.state.next({isLoading:!1})}),_removeUnmounted:be,_disableForm:et,_subjects:g,_proxyFormState:h,get _fields(){return r},get _formValues(){return s},get _state(){return o},set _state(we){o=we},get _defaultValues(){return i},get _names(){return a},set _names(we){a=we},get _formState(){return n},get _options(){return t},set _options(we){t={...t,...we}}},subscribe:De,trigger:te,register:Ae,handleSubmit:xt,watch:Ye,setValue:L,getValues:xe,reset:Rt,resetField:fn,clearErrors:Oe,unregister:Ke,setError:_e,setFocus:ci,getFieldState:Ee};return{...Ft,formControl:Ft}}var fa=()=>{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)})},Sv=(e,t,n={})=>n.shouldFocus||En(n.shouldFocus)?n.focusName||`${e}.${En(n.focusIndex)?t:n.focusIndex}.`:"",Ev=(e,t)=>[...e,...oi(t)],Dv=e=>Array.isArray(e)?e.map(()=>{}):void 0;function Av(e,t,n){return[...e.slice(0,t),...oi(n),...e.slice(t)]}var Tv=(e,t,n)=>Array.isArray(e)?(En(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],Pv=(e,t)=>[...oi(t),...oi(e)];function HU(e,t){let n=0;const r=[...e];for(const i of t)r.splice(i-n,1),n++;return Dd(r).length?r:[]}var _v=(e,t)=>En(t)?[]:HU(e,oi(t).sort((n,r)=>n-r)),Mv=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},EC=(e,t,n)=>(e[t]=n,e);function GU(e){const t=Ad(),{control:n=t.control,name:r,keyName:i="id",shouldUnregister:s,rules:o}=e,[a,l]=A.useState(n._getFieldArray(r)),d=A.useRef(n._getFieldArray(r).map(fa)),h=A.useRef(a),m=A.useRef(r),g=A.useRef(!1);m.current=r,h.current=a,n._names.array.add(r),o&&n.register(r,o),A.useEffect(()=>n._subjects.array.subscribe({next:({values:k,name:K})=>{if(K===m.current||!K){const q=st(k,m.current);Array.isArray(q)&&(l(q),d.current=q.map(fa))}}}).unsubscribe,[n]);const b=A.useCallback(k=>{g.current=!0,n._setFieldArray(r,k)},[n,r]),x=(k,K)=>{const q=oi(Rn(k)),ce=Ev(n._getFieldArray(r),q);n._names.focus=Sv(r,ce.length-1,K),d.current=Ev(d.current,q.map(fa)),b(ce),l(ce),n._setFieldArray(r,ce,Ev,{argA:Dv(k)})},C=(k,K)=>{const q=oi(Rn(k)),ce=Pv(n._getFieldArray(r),q);n._names.focus=Sv(r,0,K),d.current=Pv(d.current,q.map(fa)),b(ce),l(ce),n._setFieldArray(r,ce,Pv,{argA:Dv(k)})},D=k=>{const K=_v(n._getFieldArray(r),k);d.current=_v(d.current,k),b(K),l(K),!Array.isArray(st(n._fields,r))&&tn(n._fields,r,void 0),n._setFieldArray(r,K,_v,{argA:k})},S=(k,K,q)=>{const ce=oi(Rn(K)),oe=Av(n._getFieldArray(r),k,ce);n._names.focus=Sv(r,k,q),d.current=Av(d.current,k,ce.map(fa)),b(oe),l(oe),n._setFieldArray(r,oe,Av,{argA:k,argB:Dv(K)})},w=(k,K)=>{const q=n._getFieldArray(r);Mv(q,k,K),Mv(d.current,k,K),b(q),l(q),n._setFieldArray(r,q,Mv,{argA:k,argB:K},!1)},T=(k,K)=>{const q=n._getFieldArray(r);Tv(q,k,K),Tv(d.current,k,K),b(q),l(q),n._setFieldArray(r,q,Tv,{argA:k,argB:K},!1)},O=(k,K)=>{const q=Rn(K),ce=EC(n._getFieldArray(r),k,q);d.current=[...ce].map((oe,I)=>!oe||I===k?fa():d.current[I]),b(ce),l([...ce]),n._setFieldArray(r,ce,EC,{argA:k,argB:q},!0,!1)},R=k=>{const K=oi(Rn(k));d.current=K.map(fa),b([...K]),l([...K]),n._setFieldArray(r,[...K],q=>q,{},!0,!1)};return A.useEffect(()=>{if(n._state.action=!1,lb(r,n._names)&&n._subjects.state.next({...n._formState}),g.current&&(!Tl(n._options.mode).isOnSubmit||n._formState.isSubmitted)&&!Tl(n._options.reValidateMode).isOnSubmit)if(n._options.resolver)n._runSchema([r]).then(k=>{const K=st(k.errors,r),q=st(n._formState.errors,r);(q?!K&&q.type||K&&(q.type!==K.type||q.message!==K.message):K&&K.type)&&(K?tn(n._formState.errors,r,K):er(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{const k=st(n._fields,r);k&&k._f&&!(Tl(n._options.reValidateMode).isOnSubmit&&Tl(n._options.mode).isOnSubmit)&&cb(k,n._names.disabled,n._formValues,n._options.criteriaMode===Wi.all,n._options.shouldUseNativeValidation,!0).then(K=>!Tr(K)&&n._subjects.state.next({errors:v5(n._formState.errors,K,r)}))}n._subjects.state.next({name:r,values:Rn(n._formValues)}),n._names.focus&&Nl(n._fields,(k,K)=>{if(n._names.focus&&K.startsWith(n._names.focus)&&k.focus)return k.focus(),1}),n._names.focus="",n._setValid(),g.current=!1},[a,r,n]),A.useEffect(()=>(!st(n._formValues,r)&&n._setFieldArray(r),()=>{const k=(K,q)=>{const ce=st(n._fields,K);ce&&ce._f&&(ce._f.mount=q)};n._options.shouldUnregister||s?n.unregister(r):k(r,!1)}),[r,n,i,s]),{swap:A.useCallback(w,[b,r,n]),move:A.useCallback(T,[b,r,n]),prepend:A.useCallback(C,[b,r,n]),append:A.useCallback(x,[b,r,n]),remove:A.useCallback(D,[b,r,n]),insert:A.useCallback(S,[b,r,n]),update:A.useCallback(O,[b,r,n]),replace:A.useCallback(R,[b,r,n]),fields:A.useMemo(()=>a.map((k,K)=>({...k,[i]:d.current[K]||fa()})),[a,i])}}function YU(e={}){const t=A.useRef(void 0),n=A.useRef(void 0),[r,i]=A.useState({isDirty:!1,isValidating:!1,isLoading:$s(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:$s(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...e.formControl?e.formControl:WU(e),formState:r},e.formControl&&e.defaultValues&&!$s(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions));const s=t.current.control;return s._options=e,A.useLayoutEffect(()=>s._subscribe({formState:s._proxyFormState,callback:()=>i({...s._formState}),reRenderRoot:!0}),[s]),A.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),A.useEffect(()=>{if(s._proxyFormState.isDirty){const o=s._getDirty();o!==r.isDirty&&s._subjects.state.next({isDirty:o})}},[s,r.isDirty]),A.useEffect(()=>{e.values&&!ya(e.values,n.current)?(s._reset(e.values,s._options.resetOptions),n.current=e.values,i(o=>({...o}))):s._resetDefaultValues()},[e.values,s]),A.useEffect(()=>{e.errors&&!Tr(e.errors)&&s._setErrors(e.errors)},[e.errors,s]),A.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()}),A.useEffect(()=>{e.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[e.shouldUnregister,s]),t.current.formState=o5(r,s),t.current}const gn=typeof document<"u"?A.useLayoutEffect:()=>{};function On(e){const t=A.useRef(null);return gn(()=>{t.current=e},[e]),A.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function ZU(e){let[t,n]=A.useState(e),r=A.useRef(null),i=On(()=>{if(!r.current)return;let o=r.current.next();if(o.done){r.current=null;return}t===o.value?i():n(o.value)});gn(()=>{r.current&&i()});let s=On(o=>{r.current=o(t),i()});return[t,s]}const Lp={prefix:String(Math.round(Math.random()*1e10)),current:0},y5=A.createContext(Lp),XU=A.createContext(!1);let JU=!!(typeof window<"u"&&window.document&&window.document.createElement),Rv=new WeakMap;function QU(e=!1){let t=A.useContext(y5),n=A.useRef(null);if(n.current===null&&!e){var r,i;let s=(i=A.__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 o=Rv.get(s);o==null?Rv.set(s,{id:t.current,state:s.memoizedState}):s.memoizedState!==o.state&&(t.current=o.id,Rv.delete(s))}n.current=++t.current}return n.current}function ez(e){let t=A.useContext(y5);t===Lp&&!JU&&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=QU(!!e),r=t===Lp&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function tz(e){let t=A.useId(),[n]=A.useState(G4()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Lp.prefix}`;return e||`${r}-${t}`}const nz=typeof A.useId=="function"?tz:ez;function rz(){return!1}function iz(){return!0}function sz(e){return()=>{}}function G4(){return typeof A.useSyncExternalStore=="function"?A.useSyncExternalStore(sz,rz,iz):A.useContext(XU)}let oz=!!(typeof window<"u"&&window.document&&window.document.createElement),jl=new Map,Af;typeof FinalizationRegistry<"u"&&(Af=new FinalizationRegistry(e=>{jl.delete(e)}));function Hr(e){let[t,n]=A.useState(e),r=A.useRef(null),i=nz(t),s=A.useRef(null);if(Af&&Af.register(s,i),oz){const o=jl.get(i);o&&!o.includes(r)?o.push(r):jl.set(i,[r])}return gn(()=>{let o=i;return()=>{Af&&Af.unregister(s),jl.delete(o)}},[i]),A.useEffect(()=>{let o=r.current;return o&&n(o),()=>{o&&(r.current=null)}}),i}function az(e,t){if(e===t)return e;let n=jl.get(e);if(n)return n.forEach(i=>i.current=t),t;let r=jl.get(t);return r?(r.forEach(i=>i.current=e),e):t}function tc(e=[]){let t=Hr(),[n,r]=ZU(t),i=A.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return gn(i,[t,i,...e]),n}function Ru(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const an=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Cs=e=>e&&"window"in e&&e.window===e?e:an(e).defaultView||window;function uz(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function lz(e){return uz(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let cz=!1;function Tm(){return cz}function Tn(e,t){if(!Tm())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:lz(n)?n=n.host:n=n.parentNode}return!1}const mr=(e=document)=>{var t;if(!Tm())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 Tm()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class fz{get currentNode(){return this._currentNode}set currentNode(t){if(!Tn(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 o=r,a=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});n.push(a),a.currentNode=i,this._currentSetFor.add(a),r=i=o.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 Tn(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 o=this.lastChild();return o&&(this.currentNode=o),o}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=o=>{if(o.nodeType===Node.ELEMENT_NODE){const l=o.shadowRoot;if(l){const d=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(d),NodeFilter.FILTER_ACCEPT}else{var a;if(typeof this.filter=="function")return this.filter(o);if(!((a=this.filter)===null||a===void 0)&&a.acceptNode)return this.filter.acceptNode(o);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 o=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(o)}}}function dz(e,t,n,r){return Tm()?new fz(e,t,n,r):e.createTreeWalker(t,n,r)}function b5(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=b5(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function hz(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=b5(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],o=r[i];typeof s=="function"&&typeof o=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=Ru(s,o):(i==="className"||i==="UNSAFE_className")&&typeof s=="string"&&typeof o=="string"?t[i]=hz(s,o):i==="id"&&s&&o?t.id=az(s,o):t[i]=o!==void 0?o:s}}return t}const pz=new Set(["id"]),mz=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),gz=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),vz=/^(data-.*)$/;function Yo(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,s={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(pz.has(o)||n&&mz.has(o)||r&&gz.has(o)||i!=null&&i.has(o)||vz.test(o))&&(s[o]=e[o]);return s}function Ei(e){if(yz())e.focus({preventScroll:!0});else{let t=bz(e);e.focus(),$z(t)}}let Ih=null;function yz(){if(Ih==null){Ih=!1;try{document.createElement("div").focus({get preventScroll(){return Ih=!0,!0}})}catch{}}return Ih}function bz(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 $z(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Pm(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 Y4(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 Zo(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const Wo=Zo(function(){return Y4(/^Mac/i)}),xz=Zo(function(){return Y4(/^iPhone/i)}),$5=Zo(function(){return Y4(/^iPad/i)||Wo()&&navigator.maxTouchPoints>1}),Td=Zo(function(){return xz()||$5()}),lp=Zo(function(){return Wo()||Td()}),Z4=Zo(function(){return Pm(/AppleWebKit/i)&&!x5()}),x5=Zo(function(){return Pm(/Chrome/i)}),X4=Zo(function(){return Pm(/Android/i)}),wz=Zo(function(){return Pm(/Firefox/i)}),Cz=A.createContext({isNative:!0,open:Ez,useHref:e=>e});function _m(){return A.useContext(Cz)}function Fu(e,t,n=!0){var r,i;let{metaKey:s,ctrlKey:o,altKey:a,shiftKey:l}=t;wz()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Wo()?s=!0:o=!0);let d=Z4()&&Wo()&&!$5()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:s,ctrlKey:o,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:s,ctrlKey:o,altKey:a,shiftKey:l,bubbles:!0,cancelable:!0});Fu.isOpening=n,Ei(e),e.dispatchEvent(d),Fu.isOpening=!1}Fu.isOpening=!1;function Sz(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 Ez(e,t){Sz(e,n=>Fu(n,t))}function Dz(e){let t=_m();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 El=new Map,fb=new Set;function DC(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=El.get(r.target);i||(i=new Set,El.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=El.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),El.delete(r.target)),El.size===0)){for(let s of fb)s();fb.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?DC():document.addEventListener("DOMContentLoaded",DC));function w5(e){requestAnimationFrame(()=>{El.size===0?e():fb.add(e)})}function Ma(){let e=A.useRef(new Map),t=A.useCallback((i,s,o,a)=>{let l=a!=null&&a.once?(...d)=>{e.current.delete(o),o(...d)}:o;e.current.set(o,{type:s,eventTarget:i,fn:l,options:a}),i.addEventListener(s,l,a)},[]),n=A.useCallback((i,s,o,a)=>{var l;let d=((l=e.current.get(o))===null||l===void 0?void 0:l.fn)||o;i.removeEventListener(s,d,a),e.current.delete(o)},[]),r=A.useCallback(()=>{e.current.forEach((i,s)=>{n(i.eventTarget,i.type,s,i.options)})},[n]);return A.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function nc(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 db(e,t){const n=A.useRef(!0),r=A.useRef(null);A.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),A.useEffect(()=>{let i=r.current;n.current?n.current=!1:(!i||t.some((s,o)=>!Object.is(s,i[o])))&&e(),r.current=t},t)}function AC(e,t){const n=A.useRef(!0),r=A.useRef(null);gn(()=>(n.current=!0,()=>{n.current=!1}),[]),gn(()=>{n.current?n.current=!1:(!r.current||t.some((i,s)=>!Object.is(i,r[s])))&&e(),r.current=t},t)}function Az(){return typeof window.ResizeObserver<"u"}function TC(e){const{ref:t,box:n,onResize:r}=e;A.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(Az()){const s=new window.ResizeObserver(o=>{o.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 C5(e,t){gn(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Qf(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 Mm(e,t){let n=e;for(Qf(n,t)&&(n=n.parentElement);n&&!Qf(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function Tz(e,t){const n=[];for(;e&&e!==document.documentElement;)Qf(e,t)&&n.push(e),e=e.parentElement;return n}let Pz=0;const Fv=new Map;function Pd(e){let[t,n]=A.useState();return gn(()=>{if(!e)return;let r=Fv.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${Pz++}`;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},Fv.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Fv.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Zs(e,t,n,r){let i=On(n),s=n==null;A.useEffect(()=>{if(s||!e.current)return;let o=e.current;return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[e,t,r,s,i])}function S5(e,t){let n=PC(e,t,"left"),r=PC(e,t,"top"),i=t.offsetWidth,s=t.offsetHeight,o=e.scrollLeft,a=e.scrollTop,{borderTopWidth:l,borderLeftWidth:d,scrollPaddingTop:h,scrollPaddingRight:m,scrollPaddingBottom:g,scrollPaddingLeft:b}=getComputedStyle(e),x=o+parseInt(d,10),C=a+parseInt(l,10),D=x+e.clientWidth,S=C+e.clientHeight,w=parseInt(h,10)||0,T=parseInt(g,10)||0,O=parseInt(m,10)||0,R=parseInt(b,10)||0;n<=o+R?o=n-parseInt(d,10)-R:n+i>D-O&&(o+=n+i-D+O),r<=C+w?a=r-parseInt(l,10)-w:r+s>S-T&&(a+=r+s-S+T),e.scrollLeft=o,e.scrollTop=a}function PC(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 Bp(e,t){if(e&&document.contains(e)){let o=document.scrollingElement||document.documentElement;if(window.getComputedStyle(o).overflow==="hidden"){let l=Tz(e);for(let d of l)S5(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 hb(e){return e.mozInputSource===0&&e.isTrusted?!0:X4()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function _z(e){return!X4()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function E5(e,t){let n=A.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function J4(e,t,n){let r=A.useRef(t),i=On(()=>{n&&n(r.current)});A.useEffect(()=>{var s;let o=e==null||(s=e.current)===null||s===void 0?void 0:s.form;return o==null||o.addEventListener("reset",i),()=>{o==null||o.removeEventListener("reset",i)}},[e,i])}const Mz="react-aria-clear-focus",Rz="react-aria-focus";function Dl(e){return Wo()?e.metaKey:e.ctrlKey}const Q4=["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"])'],Fz=Q4.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Q4.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const kz=Q4.join(':not([hidden]):not([tabindex="-1"]),');function D5(e){return e.matches(Fz)}function Oz(e){return e.matches(kz)}function Di(e,t,n){let[r,i]=A.useState(e||t),s=A.useRef(e!==void 0),o=e!==void 0;A.useEffect(()=>{let d=s.current;d!==o&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),s.current=o},[o]);let a=o?e:r,l=A.useCallback((d,...h)=>{let m=(g,...b)=>{n&&(Object.is(a,g)||n(g,...b)),o||(a=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 C=d(o?a:b,...x);return m(C,...h),o?b:C})):(o||i(d),m(d,...h))},[o,a,n]);return[a,l]}function rc(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function Lh(e,t){let n=e,r=t.toString(),i=r.indexOf("."),s=i>=0?r.length-i:0;if(s>0){let o=Math.pow(10,s);n=Math.round(n*o)/o}return n}function ff(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,s=Lh(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(Lh(n/r,r))*r):s<t?s=t:!isNaN(n)&&s>n&&(s=t+Math.floor(Lh((n-t)/r,r))*r),s=Lh(s,r),s}function e3(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function A5(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function T5(e){let t=A.useRef({isFocused:!1,observer:null});gn(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=On(r=>{e==null||e(r)});return A.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=o=>{if(t.current.isFocused=!1,i.disabled){let a=e3(o);n(a)}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 o;(o=t.current.observer)===null||o===void 0||o.disconnect();let a=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let Vp=!1;function _C(e){for(;e&&!D5(e);)e=e.parentElement;let t=Cs(e),n=t.document.activeElement;if(!n||n===e)return;Vp=!0;let r=!1,i=h=>{(h.target===n||r)&&h.stopImmediatePropagation()},s=h=>{(h.target===n||r)&&(h.stopImmediatePropagation(),!e&&!r&&(r=!0,Ei(n),l()))},o=h=>{(h.target===e||r)&&h.stopImmediatePropagation()},a=h=>{(h.target===e||r)&&(h.stopImmediatePropagation(),r||(r=!0,Ei(n),l()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",s,!0),t.addEventListener("focusin",a,!0),t.addEventListener("focus",o,!0);let l=()=>{cancelAnimationFrame(d),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",s,!0),t.removeEventListener("focusin",a,!0),t.removeEventListener("focus",o,!0),Vp=!1,r=!1},d=requestAnimationFrame(l);return l}let Pl="default",pb="",cp=new WeakMap;function mb(e){if(Td()){if(Pl==="default"){const t=an(e);pb=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Pl="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";cp.set(e,e.style[t]),e.style[t]="none"}}function fp(e){if(Td()){if(Pl!=="disabled")return;Pl="restoring",setTimeout(()=>{w5(()=>{if(Pl==="restoring"){const t=an(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=pb||""),pb="",Pl="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&cp.has(e)){let t=cp.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),cp.delete(e)}}const t3=A.createContext({register:()=>{}});t3.displayName="PressResponderContext";function Iz(e,t){return t.get?t.get.call(e):t.value}function P5(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function Lz(e,t){var n=P5(e,t,"get");return Iz(e,n)}function Bz(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _d(e,t,n){Bz(e,t),t.set(e,n)}function Vz(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 MC(e,t,n){var r=P5(e,t,"set");return Vz(e,r,n),n}function Nz(e){let t=A.useContext(t3);if(t){let{register:n,...r}=t;e=Qt(r,e),n()}return C5(t,e.ref),e}var Bh=new WeakMap;class Vh{continuePropagation(){MC(this,Bh,!1)}get shouldStopPropagation(){return Lz(this,Bh)}constructor(t,n,r,i){_d(this,Bh,{writable:!0,value:void 0}),MC(this,Bh,!0);var s;let o=(s=i==null?void 0:i.target)!==null&&s!==void 0?s:r.currentTarget;const a=o==null?void 0:o.getBoundingClientRect();let l,d=0,h,m=null;r.clientX!=null&&r.clientY!=null&&(h=r.clientX,m=r.clientY),a&&(h!=null&&m!=null?(l=h-a.left,d=m-a.top):(l=a.width/2,d=a.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 RC=Symbol("linkClicked");function Md(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:s,onClick:o,isDisabled:a,isPressed:l,preventFocusOnPress:d,shouldCancelOnPointerExit:h,allowTextSelectionOnPress:m,ref:g,...b}=Nz(e),[x,C]=A.useState(!1),D=A.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:S,removeAllGlobalListeners:w}=Ma(),T=On((I,be)=>{let $e=D.current;if(a||$e.didFirePressStart)return!1;let H=!0;if($e.isTriggeringEvent=!0,r){let ie=new Vh("pressstart",be,I);r(ie),H=ie.shouldStopPropagation}return n&&n(!0),$e.isTriggeringEvent=!1,$e.didFirePressStart=!0,C(!0),H}),O=On((I,be,$e=!0)=>{let H=D.current;if(!H.didFirePressStart)return!1;H.didFirePressStart=!1,H.isTriggeringEvent=!0;let ie=!0;if(i){let M=new Vh("pressend",be,I);i(M),ie=M.shouldStopPropagation}if(n&&n(!1),C(!1),t&&$e&&!a){let M=new Vh("press",be,I);t(M),ie&&(ie=M.shouldStopPropagation)}return H.isTriggeringEvent=!1,ie}),R=On((I,be)=>{let $e=D.current;if(a)return!1;if(s){$e.isTriggeringEvent=!0;let H=new Vh("pressup",be,I);return s(H),$e.isTriggeringEvent=!1,H.shouldStopPropagation}return!0}),k=On(I=>{let be=D.current;if(be.isPressed&&be.target){be.didFirePressStart&&be.pointerType!=null&&O(xl(be.target,I),be.pointerType,!1),be.isPressed=!1,be.isOverTarget=!1,be.activePointerId=null,be.pointerType=null,w(),m||fp(be.target);for(let $e of be.disposables)$e();be.disposables=[]}}),K=On(I=>{h&&k(I)}),q=On(I=>{o==null||o(I)}),ce=On((I,be)=>{if(o){let $e=new MouseEvent("click",I);A5($e,be),o(e3($e))}}),oe=A.useMemo(()=>{let I=D.current,be={onKeyDown(H){if(kv(H.nativeEvent,H.currentTarget)&&Tn(H.currentTarget,sn(H.nativeEvent))){var ie;OC(sn(H.nativeEvent),H.key)&&H.preventDefault();let M=!0;if(!I.isPressed&&!H.repeat){I.target=H.currentTarget,I.isPressed=!0,I.pointerType="keyboard",M=T(H,"keyboard");let B=H.currentTarget,L=me=>{kv(me,B)&&!me.repeat&&Tn(B,sn(me))&&I.target&&R(xl(I.target,me),"keyboard")};S(an(H.currentTarget),"keyup",Ru(L,$e),!0)}M&&H.stopPropagation(),H.metaKey&&Wo()&&((ie=I.metaKeyEvents)===null||ie===void 0||ie.set(H.key,H.nativeEvent))}else H.key==="Meta"&&(I.metaKeyEvents=new Map)},onClick(H){if(!(H&&!Tn(H.currentTarget,sn(H.nativeEvent)))&&H&&H.button===0&&!I.isTriggeringEvent&&!Fu.isOpening){let ie=!0;if(a&&H.preventDefault(),!I.ignoreEmulatedMouseEvents&&!I.isPressed&&(I.pointerType==="virtual"||hb(H.nativeEvent))){let M=T(H,"virtual"),B=R(H,"virtual"),L=O(H,"virtual");q(H),ie=M&&B&&L}else if(I.isPressed&&I.pointerType!=="keyboard"){let M=I.pointerType||H.nativeEvent.pointerType||"virtual";ie=O(xl(H.currentTarget,H),M,!0),I.isOverTarget=!1,q(H),k(H)}I.ignoreEmulatedMouseEvents=!1,ie&&H.stopPropagation()}}},$e=H=>{var ie;if(I.isPressed&&I.target&&kv(H,I.target)){var M;OC(sn(H),H.key)&&H.preventDefault();let L=sn(H),me=Tn(I.target,sn(H));O(xl(I.target,H),"keyboard",me),me&&ce(H,I.target),w(),H.key!=="Enter"&&n3(I.target)&&Tn(I.target,L)&&!H[RC]&&(H[RC]=!0,Fu(I.target,H,!1)),I.isPressed=!1,(M=I.metaKeyEvents)===null||M===void 0||M.delete(H.key)}else if(H.key==="Meta"&&(!((ie=I.metaKeyEvents)===null||ie===void 0)&&ie.size)){var B;let L=I.metaKeyEvents;I.metaKeyEvents=void 0;for(let me of L.values())(B=I.target)===null||B===void 0||B.dispatchEvent(new KeyboardEvent("keyup",me))}};if(typeof PointerEvent<"u"){be.onPointerDown=M=>{if(M.button!==0||!Tn(M.currentTarget,sn(M.nativeEvent)))return;if(_z(M.nativeEvent)){I.pointerType="virtual";return}I.pointerType=M.pointerType;let B=!0;if(!I.isPressed){I.isPressed=!0,I.isOverTarget=!0,I.activePointerId=M.pointerId,I.target=M.currentTarget,m||mb(I.target),B=T(M,I.pointerType);let L=sn(M.nativeEvent);"releasePointerCapture"in L&&L.releasePointerCapture(M.pointerId),S(an(M.currentTarget),"pointerup",H,!1),S(an(M.currentTarget),"pointercancel",ie,!1)}B&&M.stopPropagation()},be.onMouseDown=M=>{if(Tn(M.currentTarget,sn(M.nativeEvent))&&M.button===0){if(d){let B=_C(M.target);B&&I.disposables.push(B)}M.stopPropagation()}},be.onPointerUp=M=>{!Tn(M.currentTarget,sn(M.nativeEvent))||I.pointerType==="virtual"||M.button===0&&R(M,I.pointerType||M.pointerType)},be.onPointerEnter=M=>{M.pointerId===I.activePointerId&&I.target&&!I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!0,T(xl(I.target,M),I.pointerType))},be.onPointerLeave=M=>{M.pointerId===I.activePointerId&&I.target&&I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!1,O(xl(I.target,M),I.pointerType,!1),K(M))};let H=M=>{if(M.pointerId===I.activePointerId&&I.isPressed&&M.button===0&&I.target){if(Tn(I.target,sn(M))&&I.pointerType!=null){let B=!1,L=setTimeout(()=>{I.isPressed&&I.target instanceof HTMLElement&&(B?k(M):(Ei(I.target),I.target.click()))},80);S(M.currentTarget,"click",()=>B=!0,!0),I.disposables.push(()=>clearTimeout(L))}else k(M);I.isOverTarget=!1}},ie=M=>{k(M)};be.onDragStart=M=>{Tn(M.currentTarget,sn(M.nativeEvent))&&k(M)}}else if(process.env.NODE_ENV==="test"){be.onMouseDown=M=>{if(M.button!==0||!Tn(M.currentTarget,sn(M.nativeEvent)))return;if(I.ignoreEmulatedMouseEvents){M.stopPropagation();return}if(I.isPressed=!0,I.isOverTarget=!0,I.target=M.currentTarget,I.pointerType=hb(M.nativeEvent)?"virtual":"mouse",Ko.flushSync(()=>T(M,I.pointerType))&&M.stopPropagation(),d){let L=_C(M.target);L&&I.disposables.push(L)}S(an(M.currentTarget),"mouseup",H,!1)},be.onMouseEnter=M=>{if(!Tn(M.currentTarget,sn(M.nativeEvent)))return;let B=!0;I.isPressed&&!I.ignoreEmulatedMouseEvents&&I.pointerType!=null&&(I.isOverTarget=!0,B=T(M,I.pointerType)),B&&M.stopPropagation()},be.onMouseLeave=M=>{if(!Tn(M.currentTarget,sn(M.nativeEvent)))return;let B=!0;I.isPressed&&!I.ignoreEmulatedMouseEvents&&I.pointerType!=null&&(I.isOverTarget=!1,B=O(M,I.pointerType,!1),K(M)),B&&M.stopPropagation()},be.onMouseUp=M=>{Tn(M.currentTarget,sn(M.nativeEvent))&&!I.ignoreEmulatedMouseEvents&&M.button===0&&R(M,I.pointerType||"mouse")};let H=M=>{if(M.button===0){if(I.ignoreEmulatedMouseEvents){I.ignoreEmulatedMouseEvents=!1;return}I.target&&I.target.contains(M.target)&&I.pointerType!=null||k(M),I.isOverTarget=!1}};be.onTouchStart=M=>{if(!Tn(M.currentTarget,sn(M.nativeEvent)))return;let B=jz(M.nativeEvent);if(!B)return;I.activePointerId=B.identifier,I.ignoreEmulatedMouseEvents=!0,I.isOverTarget=!0,I.isPressed=!0,I.target=M.currentTarget,I.pointerType="touch",m||mb(I.target),T(da(I.target,M),I.pointerType)&&M.stopPropagation(),S(Cs(M.currentTarget),"scroll",ie,!0)},be.onTouchMove=M=>{if(!Tn(M.currentTarget,sn(M.nativeEvent)))return;if(!I.isPressed){M.stopPropagation();return}let B=FC(M.nativeEvent,I.activePointerId),L=!0;B&&kC(B,M.currentTarget)?!I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!0,L=T(da(I.target,M),I.pointerType)):I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!1,L=O(da(I.target,M),I.pointerType,!1),K(da(I.target,M))),L&&M.stopPropagation()},be.onTouchEnd=M=>{if(!Tn(M.currentTarget,sn(M.nativeEvent)))return;if(!I.isPressed){M.stopPropagation();return}let B=FC(M.nativeEvent,I.activePointerId),L=!0;B&&kC(B,M.currentTarget)&&I.pointerType!=null?(R(da(I.target,M),I.pointerType),L=O(da(I.target,M),I.pointerType),ce(M.nativeEvent,I.target)):I.isOverTarget&&I.pointerType!=null&&(L=O(da(I.target,M),I.pointerType,!1)),L&&M.stopPropagation(),I.isPressed=!1,I.activePointerId=null,I.isOverTarget=!1,I.ignoreEmulatedMouseEvents=!0,I.target&&!m&&fp(I.target),w()},be.onTouchCancel=M=>{Tn(M.currentTarget,sn(M.nativeEvent))&&(M.stopPropagation(),I.isPressed&&k(da(I.target,M)))};let ie=M=>{I.isPressed&&Tn(sn(M),I.target)&&k({currentTarget:I.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};be.onDragStart=M=>{Tn(M.currentTarget,sn(M.nativeEvent))&&k(M)}}return be},[S,a,d,w,m,k,K,O,T,R,q,ce]);return A.useEffect(()=>{let I=g==null?void 0:g.current;I&&I instanceof Cs(I).Element&&Cs(I).getComputedStyle(I).touchAction==="auto"&&(I.style.touchAction="pan-x pan-y pinch-zoom")},[g]),A.useEffect(()=>{let I=D.current;return()=>{var be;m||fp((be=I.target)!==null&&be!==void 0?be:void 0);for(let $e of I.disposables)$e();I.disposables=[]}},[m]),{isPressed:l||x,pressProps:Qt(b,oe)}}function n3(e){return e.tagName==="A"&&e.hasAttribute("href")}function kv(e,t){const{key:n,code:r}=e,i=t,s=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof Cs(i).HTMLInputElement&&!_5(i,n)||i instanceof Cs(i).HTMLTextAreaElement||i.isContentEditable)&&!((s==="link"||!s&&n3(i))&&n!=="Enter")}function jz(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function FC(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 da(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 xl(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 Kz(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 Uz(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function kC(e,t){let n=t.getBoundingClientRect(),r=Kz(e);return Uz(n,r)}function zz(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!n3(e)}function OC(e,t){return e instanceof HTMLInputElement?!_5(e,t):zz(e)}const qz=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function _5(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":qz.has(e.type)}let Bu=null,Wz=new Set,Vf=new Map,ku=!1,gb=!1;function Rm(e,t){for(let n of Wz)n(e,t)}function Hz(e){return!(e.metaKey||!Wo()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Np(e){ku=!0,Hz(e)&&(Bu="keyboard",Rm("keyboard",e))}function zi(e){Bu="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(ku=!0,Rm("pointer",e))}function M5(e){hb(e)&&(ku=!0,Bu="virtual")}function R5(e){e.target===window||e.target===document||Vp||!e.isTrusted||(!ku&&!gb&&(Bu="virtual",Rm("virtual",e)),ku=!1,gb=!1)}function F5(){Vp||(ku=!1,gb=!0)}function IC(e){if(typeof window>"u"||Vf.get(Cs(e)))return;const t=Cs(e),n=an(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){ku=!0,r.apply(this,arguments)},n.addEventListener("keydown",Np,!0),n.addEventListener("keyup",Np,!0),n.addEventListener("click",M5,!0),t.addEventListener("focus",R5,!0),t.addEventListener("blur",F5,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",zi,!0),n.addEventListener("pointermove",zi,!0),n.addEventListener("pointerup",zi,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",zi,!0),n.addEventListener("mousemove",zi,!0),n.addEventListener("mouseup",zi,!0)),t.addEventListener("beforeunload",()=>{k5(e)},{once:!0}),Vf.set(t,{focus:r})}const k5=(e,t)=>{const n=Cs(e),r=an(e);t&&r.removeEventListener("DOMContentLoaded",t),Vf.has(n)&&(n.HTMLElement.prototype.focus=Vf.get(n).focus,r.removeEventListener("keydown",Np,!0),r.removeEventListener("keyup",Np,!0),r.removeEventListener("click",M5,!0),n.removeEventListener("focus",R5,!0),n.removeEventListener("blur",F5,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",zi,!0),r.removeEventListener("pointermove",zi,!0),r.removeEventListener("pointerup",zi,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",zi,!0),r.removeEventListener("mousemove",zi,!0),r.removeEventListener("mouseup",zi,!0)),Vf.delete(n))};function Gz(e){const t=an(e);let n;return t.readyState!=="loading"?IC(e):(n=()=>{IC(e)},t.addEventListener("DOMContentLoaded",n)),()=>k5(e,n)}typeof document<"u"&&Gz();function LC(){return Bu!=="pointer"}function ed(){return Bu}function O5(e){Bu=e,Rm(e,null)}function Ou(e){const t=an(e),n=mr(t);if(ed()==="virtual"){let r=n;w5(()=>{mr(t)===r&&e.isConnected&&Ei(e)})}else Ei(e)}function Yz(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const s=A.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),o=T5(s),a=A.useCallback(l=>{const d=an(l.target),h=d?mr(d):mr();l.target===l.currentTarget&&h===sn(l.nativeEvent)&&(n&&n(l),i&&i(!0),o(l))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?a:void 0,onBlur:!t&&(r||i)?s:void 0}}}function BC(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 I5(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:BC(e.onKeyDown),onKeyUp:BC(e.onKeyUp)}}}let Zz=A.createContext(null);function Xz(e){let t=A.useContext(Zz)||{};C5(t,e);let{ref:n,...r}=t;return r}function r3(e,t){let{focusProps:n}=Yz(e),{keyboardProps:r}=I5(e),i=Qt(n,r),s=Xz(t),o=e.isDisabled?{}:s,a=A.useRef(e.autoFocus);A.useEffect(()=>{a.current&&t.current&&Ou(t.current),a.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:Qt({...i,tabIndex:l},o)}}function Jz({children:e}){let t=A.useMemo(()=>({register:()=>{}}),[]);return A.createElement(t3.Provider,{value:t},e)}function $c(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,s=A.useRef({isFocusWithin:!1}),{addGlobalListener:o,removeAllGlobalListeners:a}=Ma(),l=A.useCallback(m=>{m.currentTarget.contains(m.target)&&s.current.isFocusWithin&&!m.currentTarget.contains(m.relatedTarget)&&(s.current.isFocusWithin=!1,a(),n&&n(m),i&&i(!1))},[n,i,s,a]),d=T5(l),h=A.useCallback(m=>{if(!m.currentTarget.contains(m.target))return;const g=an(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;o(g,"focus",C=>{if(s.current.isFocusWithin&&!Tn(x,C.target)){let D=new g.defaultView.FocusEvent("blur",{relatedTarget:C.target});A5(D,x);let S=e3(D);l(S)}},{capture:!0})}},[r,i,d,o,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:h,onBlur:l}}}let jp=!1,Ov=0;function vb(){jp=!0,setTimeout(()=>{jp=!1},50)}function VC(e){e.pointerType==="touch"&&vb()}function Qz(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",VC):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",vb),Ov++,()=>{Ov--,!(Ov>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",VC):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",vb))}}function eq(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[s,o]=A.useState(!1),a=A.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;A.useEffect(Qz,[]);let{addGlobalListener:l,removeAllGlobalListeners:d}=Ma(),{hoverProps:h,triggerHoverEnd:m}=A.useMemo(()=>{let g=(C,D)=>{if(a.pointerType=D,i||D==="touch"||a.isHovered||!C.currentTarget.contains(C.target))return;a.isHovered=!0;let S=C.currentTarget;a.target=S,l(an(C.target),"pointerover",w=>{a.isHovered&&a.target&&!Tn(a.target,w.target)&&b(w,w.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:S,pointerType:D}),n&&n(!0),o(!0)},b=(C,D)=>{let S=a.target;a.pointerType="",a.target=null,!(D==="touch"||!a.isHovered||!S)&&(a.isHovered=!1,d(),r&&r({type:"hoverend",target:S,pointerType:D}),n&&n(!1),o(!1))},x={};return typeof PointerEvent<"u"?(x.onPointerEnter=C=>{jp&&C.pointerType==="mouse"||g(C,C.pointerType)},x.onPointerLeave=C=>{!i&&C.currentTarget.contains(C.target)&&b(C,C.pointerType)}):process.env.NODE_ENV==="test"&&(x.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},x.onMouseEnter=C=>{!a.ignoreEmulatedMouseEvents&&!jp&&g(C,"mouse"),a.ignoreEmulatedMouseEvents=!1},x.onMouseLeave=C=>{!i&&C.currentTarget.contains(C.target)&&b(C,"mouse")}),{hoverProps:x,triggerHoverEnd:b}},[t,n,r,i,a,l,d]);return A.useEffect(()=>{i&&m({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:h,isHovered:s}}function tq(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,s=A.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=On(l=>{n&&Nh(l,t)&&(i&&i(l),s.current.isPointerDown=!0)}),a=On(l=>{n&&n(l)});A.useEffect(()=>{let l=s.current;if(r)return;const d=t.current,h=an(d);if(typeof PointerEvent<"u"){let m=g=>{l.isPointerDown&&Nh(g,t)&&a(g),l.isPointerDown=!1};return h.addEventListener("pointerdown",o,!0),h.addEventListener("pointerup",m,!0),()=>{h.removeEventListener("pointerdown",o,!0),h.removeEventListener("pointerup",m,!0)}}else if(process.env.NODE_ENV==="test"){let m=b=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&Nh(b,t)&&a(b),l.isPointerDown=!1},g=b=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&Nh(b,t)&&a(b),l.isPointerDown=!1};return h.addEventListener("mousedown",o,!0),h.addEventListener("mouseup",m,!0),h.addEventListener("touchstart",o,!0),h.addEventListener("touchend",g,!0),()=>{h.removeEventListener("mousedown",o,!0),h.removeEventListener("mouseup",m,!0),h.removeEventListener("touchstart",o,!0),h.removeEventListener("touchend",g,!0)}}},[t,r,o,a])}function Nh(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 L5(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=A.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:s,removeGlobalListener:o}=Ma(),a=On((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=On((h,m)=>{fp(),i.current.didMove&&(r==null||r({type:"moveend",pointerType:m,shiftKey:h.shiftKey,metaKey:h.metaKey,ctrlKey:h.ctrlKey,altKey:h.altKey}))});return{moveProps:A.useMemo(()=>{let h={},m=()=>{mb(),i.current.didMove=!1};if(typeof PointerEvent>"u"&&process.env.NODE_ENV==="test"){let b=S=>{if(S.button===0){var w,T,O,R;a(S,"mouse",S.pageX-((O=(w=i.current.lastPosition)===null||w===void 0?void 0:w.pageX)!==null&&O!==void 0?O:0),S.pageY-((R=(T=i.current.lastPosition)===null||T===void 0?void 0:T.pageY)!==null&&R!==void 0?R:0)),i.current.lastPosition={pageX:S.pageX,pageY:S.pageY}}},x=S=>{S.button===0&&(l(S,"mouse"),o(window,"mousemove",b,!1),o(window,"mouseup",x,!1))};h.onMouseDown=S=>{S.button===0&&(m(),S.stopPropagation(),S.preventDefault(),i.current.lastPosition={pageX:S.pageX,pageY:S.pageY},s(window,"mousemove",b,!1),s(window,"mouseup",x,!1))};let C=S=>{let w=[...S.changedTouches].findIndex(({identifier:K})=>K===i.current.id);if(w>=0){var T,O;let{pageX:K,pageY:q}=S.changedTouches[w];var R,k;a(S,"touch",K-((R=(T=i.current.lastPosition)===null||T===void 0?void 0:T.pageX)!==null&&R!==void 0?R:0),q-((k=(O=i.current.lastPosition)===null||O===void 0?void 0:O.pageY)!==null&&k!==void 0?k:0)),i.current.lastPosition={pageX:K,pageY:q}}},D=S=>{[...S.changedTouches].findIndex(({identifier:T})=>T===i.current.id)>=0&&(l(S,"touch"),i.current.id=null,o(window,"touchmove",C),o(window,"touchend",D),o(window,"touchcancel",D))};h.onTouchStart=S=>{if(S.changedTouches.length===0||i.current.id!=null)return;let{pageX:w,pageY:T,identifier:O}=S.changedTouches[0];m(),S.stopPropagation(),S.preventDefault(),i.current.lastPosition={pageX:w,pageY:T},i.current.id=O,s(window,"touchmove",C,!1),s(window,"touchend",D,!1),s(window,"touchcancel",D,!1)}}else{let b=C=>{if(C.pointerId===i.current.id){var D,S;let O=C.pointerType||"mouse";var w,T;a(C,O,C.pageX-((w=(D=i.current.lastPosition)===null||D===void 0?void 0:D.pageX)!==null&&w!==void 0?w:0),C.pageY-((T=(S=i.current.lastPosition)===null||S===void 0?void 0:S.pageY)!==null&&T!==void 0?T:0)),i.current.lastPosition={pageX:C.pageX,pageY:C.pageY}}},x=C=>{if(C.pointerId===i.current.id){let D=C.pointerType||"mouse";l(C,D),i.current.id=null,o(window,"pointermove",b,!1),o(window,"pointerup",x,!1),o(window,"pointercancel",x,!1)}};h.onPointerDown=C=>{C.button===0&&i.current.id==null&&(m(),C.stopPropagation(),C.preventDefault(),i.current.lastPosition={pageX:C.pageX,pageY:C.pageY},i.current.id=C.pointerId,s(window,"pointermove",b,!1),s(window,"pointerup",x,!1),s(window,"pointercancel",x,!1))}}let g=(b,x,C)=>{m(),a(b,"keyboard",x,C),l(b,"keyboard")};return h.onKeyDown=b=>{switch(b.key){case"Left":case"ArrowLeft":b.preventDefault(),b.stopPropagation(),g(b,-1,0);break;case"Right":case"ArrowRight":b.preventDefault(),b.stopPropagation(),g(b,1,0);break;case"Up":case"ArrowUp":b.preventDefault(),b.stopPropagation(),g(b,0,-1);break;case"Down":case"ArrowDown":b.preventDefault(),b.stopPropagation(),g(b,0,1);break}},h},[i,s,o,a,l])}}const nq=500;function B5(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:s=nq,accessibilityDescription:o}=e;const a=A.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:d}=Ma(),{pressProps:h}=Md({isDisabled:t,onPressStart(g){if(g.continuePropagation(),(g.pointerType==="mouse"||g.pointerType==="touch")&&(n&&n({...g,type:"longpressstart"}),a.current=setTimeout(()=>{g.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),an(g.target).activeElement!==g.target&&Ei(g.target),i&&i({...g,type:"longpress"}),a.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){a.current&&clearTimeout(a.current),r&&(g.pointerType==="mouse"||g.pointerType==="touch")&&r({...g,type:"longpressend"})}}),m=Pd(i&&!t?o:void 0);return{longPressProps:Qt(h,m)}}const rq=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),iq=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function sq(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 rq.has(n.script)}let t=e.split("-")[0];return iq.has(t)}const oq=Symbol.for("react-aria.i18n.locale");function V5(){let e=typeof window<"u"&&window[oq]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:sq(e)?"rtl":"ltr"}}let yb=V5(),Tf=new Set;function NC(){yb=V5();for(let e of Tf)e(yb)}function aq(){let e=G4(),[t,n]=A.useState(yb);return A.useEffect(()=>(Tf.size===0&&window.addEventListener("languagechange",NC),Tf.add(n),()=>{Tf.delete(n),Tf.size===0&&window.removeEventListener("languagechange",NC)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const uq=A.createContext(null);function kr(){let e=aq();return A.useContext(uq)||e}const lq=Symbol.for("react-aria.i18n.locale"),cq=Symbol.for("react-aria.i18n.strings");let wl;class Ra{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=fq(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[lq];if(wl===void 0){let i=window[cq];if(!i)return null;wl={};for(let s in i)wl[s]=new Ra({[n]:i[s]},n)}let r=wl==null?void 0:wl[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 fq(e,t,n="en-US"){if(t[e])return t[e];let r=dq(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function dq(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const jC=new Map,KC=new Map;class N5{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,o=jC.get(s);o||(o=new Intl.PluralRules(this.locale,{type:r}),jC.set(s,o));let a=o.select(t);return i=n[a]||n.other,typeof i=="function"?i():i}number(t){let n=KC.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),KC.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const UC=new WeakMap;function hq(e){let t=UC.get(e);return t||(t=new Ra(e),UC.set(e,t)),t}function j5(e,t){return t&&Ra.getGlobalDictionaryForPackage(t)||hq(e)}function lo(e,t){let{locale:n}=kr(),r=j5(e,t);return A.useMemo(()=>new N5(n,r),[n,r])}function Kl(e,t){return e-t*Math.floor(e/t)}const K5=1721426;function pu(e,t,n,r){t=Rd(e,t);let i=t-1,s=-2;return n<=2?s=0:xa(t)&&(s=-1),K5-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+s+r)}function xa(e){return e%4===0&&(e%100!==0||e%400===0)}function Rd(e,t){return e==="BC"?1-t:t}function Fm(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const pq={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-K5,i=Math.floor(r/146097),s=Kl(r,146097),o=Math.floor(s/36524),a=Kl(s,36524),l=Math.floor(a/1461),d=Kl(a,1461),h=Math.floor(d/365),m=i*400+o*100+l*4+h+(o!==4&&h!==4?1:0),[g,b]=Fm(m),x=n-pu(g,b,1,1),C=2;n<pu(g,b,3,1)?C=0:xa(b)&&(C=1);let D=Math.floor(((x+C)*12+373)/367),S=n-pu(g,b,D,1)+1;return new Xn(g,b,D,S)}toJulianDay(t){return pu(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return pq[xa(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return xa(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 mq={"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=In(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function bb(e,t){return km(e.calendar,t.calendar)&&nr(e,t)}function km(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 U5(e,t){return nr(e,Om(t))}const gq={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function i3(e,t,n){let r=e.calendar.toJulianDay(e),i=n?gq[n]:wq(t),s=Math.ceil(r+1-i)%7;return s<0&&(s+=7),s}function z5(e){return Vo(Date.now(),e)}function Om(e){return Gr(z5(e))}function q5(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function W5(e,t){return zC(e)-zC(t)}function zC(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let Iv=null;function Fd(){return Iv==null&&(Iv=new Intl.DateTimeFormat().resolvedOptions().timeZone),Iv}function kd(e){return e.subtract({days:e.day-1})}function $b(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function vq(e){return kd(e.subtract({months:e.month-1}))}function yq(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function bq(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function td(e,t,n){let r=i3(e,t,n);return e.subtract({days:r})}function $q(e,t,n){return td(e,t,n).add({days:6})}const qC=new Map;function xq(e){if(Intl.Locale){let n=qC.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&qC.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function wq(e){let t=xq(e);return t&&mq[t]||0}function H5(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((i3(kd(e),t,n)+r)/7)}function s3(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function o3(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function ic(e){e=In(e,new Yr);let t=Rd(e.era,e.year);return G5(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function G5(e,t,n,r,i,s,o){let a=new Date;return a.setUTCHours(r,i,s,o),a.setUTCFullYear(e,t-1,n),a.getTime()}function xb(e,t){if(t==="UTC")return 0;if(e>0&&t===Fd())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:s,minute:o,second:a}=Y5(e,t);return G5(n,r,i,s,o,a,0)-Math.floor(e/1e3)*1e3}const WC=new Map;function Y5(e,t){let n=WC.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"}),WC.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 HC=864e5;function Cq(e,t,n,r){return(n===r?[n]:[n,r]).filter(s=>Sq(e,t,s))}function Sq(e,t,n){let r=Y5(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 Bo(e,t,n="compatible"){let r=Ds(e);if(t==="UTC")return ic(r);if(t===Fd()&&n==="compatible"){r=In(r,new Yr);let l=new Date,d=Rd(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=ic(r),s=xb(i-HC,t),o=xb(i+HC,t),a=Cq(r,t,i-s,i-o);if(a.length===1)return a[0];if(a.length>1)switch(n){case"compatible":case"earlier":return a[0];case"later":return a[a.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-s,i-o);case"compatible":case"later":return Math.max(i-s,i-o);case"reject":throw new RangeError("No such absolute time found")}}function Z5(e,t,n="compatible"){return new Date(Bo(e,t,n))}function Vo(e,t){let n=xb(e,t),r=new Date(e+n),i=r.getUTCFullYear(),s=r.getUTCMonth()+1,o=r.getUTCDate(),a=r.getUTCHours(),l=r.getUTCMinutes(),d=r.getUTCSeconds(),h=r.getUTCMilliseconds();return new id(i<1?"BC":"AD",i<1?-i+1:i,s,o,t,n,a,l,d,h)}function Gr(e){return new Xn(e.calendar,e.era,e.year,e.month,e.day)}function Ds(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 rd(e.calendar,e.era,e.year,e.month,e.day,n,r,i,s)}function GC(e){return new Od(e.hour,e.minute,e.second,e.millisecond)}function In(e,t){if(km(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,Iu(r),r}function X5(e,t,n){if(e instanceof id)return e.timeZone===t?e:Dq(e,t);let r=Bo(e,t,n);return Vo(r,t)}function Eq(e){let t=ic(e)-e.offset;return new Date(t)}function Dq(e,t){let n=ic(e)-e.offset;return In(Vo(n,t),e.calendar)}const df=36e5;function Im(e,t){let n=e.copy(),r="hour"in n?t_(n,t):0;wb(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Cb(n),J5(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,Aq(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,o;let l=(s=(o=n.calendar).isInverseEra)===null||s===void 0?void 0:s.call(o,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 a=n.calendar.getMonthsInYear(n);return n.month>a&&(n.month=a,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function wb(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function Cb(e){for(;e.month<1;)wb(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,wb(e,1)}function Aq(e){for(;e.day<1;)e.month--,Cb(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Cb(e)}function J5(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 Iu(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),J5(e)}function a3(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function Q5(e,t){return Im(e,a3(t))}function u3(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),Iu(n),n}function nd(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),e_(n),n}function Tq(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=jh(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=jh(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=jh(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=jh(e.hour,24),t}function e_(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 jh(e,t){let n=e%t;return n<0&&(n+=t),n}function t_(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,Tq(e)}function n_(e,t){let n=e.copy();return t_(n,t),n}function Pq(e,t){return n_(e,a3(t))}function l3(e,t,n,r){let i=e.copy();switch(t){case"era":{let a=e.calendar.getEras(),l=a.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=No(l,n,0,a.length-1,r==null?void 0:r.round),i.era=a[l],Iu(i);break}case"year":var s,o;!((s=(o=i.calendar).isInverseEra)===null||s===void 0)&&s.call(o,i)&&(n=-n),i.year=No(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=No(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=No(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),Iu(i),i}function c3(e,t,n,r){let i=e.copy();switch(t){case"hour":{let s=e.hour,o=0,a=23;if((r==null?void 0:r.hourCycle)===12){let l=s>=12;o=l?12:0,a=l?23:11}i.hour=No(s,n,o,a,r==null?void 0:r.round);break}case"minute":i.minute=No(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=No(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=No(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function No(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 r_(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=Im(Ds(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=Bo(i,e.timeZone)}else n=ic(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=Vo(n,e.timeZone);return In(r,e.calendar)}function _q(e,t){return r_(e,a3(t))}function Mq(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 o=Ds(e),a=In(nd(o,{hour:i}),new Yr),l=[Bo(a,e.timeZone,"earlier"),Bo(a,e.timeZone,"later")].filter(x=>Vo(x,e.timeZone).day===a.day)[0],d=In(nd(o,{hour:s}),new Yr),h=[Bo(d,e.timeZone,"earlier"),Bo(d,e.timeZone,"later")].filter(x=>Vo(x,e.timeZone).day===d.day).pop(),m=ic(e)-e.offset,g=Math.floor(m/df),b=m%df;return m=No(g,n,Math.floor(l/df),Math.floor(h/df),r==null?void 0:r.round)*df+b,In(Vo(m,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return c3(e,t,n,r);case"era":case"year":case"month":case"day":{let i=l3(Ds(e),t,n,r),s=Bo(i,e.timeZone);return In(Vo(s,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function Rq(e,t,n){let r=Ds(e),i=nd(u3(r,t),t);if(i.compare(r)===0)return e;let s=Bo(i,e.timeZone,n);return In(Vo(s,e.timeZone),e.calendar)}const Fq=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,kq=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;function Oq(e){let t=e.match(Fq);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new Xn(Ws(t[1],0,9999),Ws(t[2],1,12),1);return n.day=Ws(t[3],0,n.calendar.getDaysInMonth(n)),n}function Iq(e){let t=e.match(kq);if(!t)throw new Error("Invalid ISO 8601 date time string: "+e);let n=Ws(t[1],-9999,9999),r=n<1?"BC":"AD",i=new rd(r,n<1?-n+1:n,Ws(t[2],1,12),1,t[4]?Ws(t[4],0,23):0,t[5]?Ws(t[5],0,59):0,t[6]?Ws(t[6],0,59):0,t[7]?Ws(t[7],0,1/0)*1e3:0);return i.day=Ws(t[3],0,i.calendar.getDaysInMonth(i)),i}function Ws(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 i_(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 s_(e){let t=In(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 o_(e){return`${s_(e)}T${i_(e)}`}function Lq(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 Bq(e){return`${o_(e)}${Lq(e.offset)}[${e.timeZone}]`}function f3(e){let t=typeof e[0]=="object"?e.shift():new Yr,n;if(typeof e[0]=="string")n=e.shift();else{let o=t.getEras();n=o[o.length-1]}let r=e.shift(),i=e.shift(),s=e.shift();return[t,n,r,i,s]}var Vq=new WeakMap;class Xn{copy(){return this.era?new Xn(this.calendar,this.era,this.year,this.month,this.day):new Xn(this.calendar,this.year,this.month,this.day)}add(t){return Im(this,t)}subtract(t){return Q5(this,t)}set(t){return u3(this,t)}cycle(t,n,r){return l3(this,t,n,r)}toDate(t){return Z5(this,t)}toString(){return s_(this)}compare(t){return q5(this,t)}constructor(...t){_d(this,Vq,{writable:!0,value:void 0});let[n,r,i,s,o]=f3(t);this.calendar=n,this.era=r,this.year=i,this.month=s,this.day=o,Iu(this)}}var Nq=new WeakMap;class Od{copy(){return new Od(this.hour,this.minute,this.second,this.millisecond)}add(t){return n_(this,t)}subtract(t){return Pq(this,t)}set(t){return nd(this,t)}cycle(t,n,r){return c3(this,t,n,r)}toString(){return i_(this)}compare(t){return W5(this,t)}constructor(t=0,n=0,r=0,i=0){_d(this,Nq,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,e_(this)}}var jq=new WeakMap;class rd{copy(){return this.era?new rd(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new rd(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Im(this,t)}subtract(t){return Q5(this,t)}set(t){return u3(nd(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return l3(this,t,n,r);default:return c3(this,t,n,r)}}toDate(t,n){return Z5(this,t,n)}toString(){return o_(this)}compare(t){let n=q5(this,t);return n===0?W5(this,Ds(t)):n}constructor(...t){_d(this,jq,{writable:!0,value:void 0});let[n,r,i,s,o]=f3(t);this.calendar=n,this.era=r,this.year=i,this.month=s,this.day=o,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Iu(this)}}var Kq=new WeakMap;class id{copy(){return this.era?new id(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new id(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return r_(this,t)}subtract(t){return _q(this,t)}set(t,n){return Rq(this,t,n)}cycle(t,n,r){return Mq(this,t,n,r)}toDate(){return Eq(this)}toString(){return Bq(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-X5(t,this.timeZone).toDate().getTime()}constructor(...t){_d(this,Kq,{writable:!0,value:void 0});let[n,r,i,s,o]=f3(t),a=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=s,this.day=o,this.timeZone=a,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Iu(this)}}const Ul=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],Uq=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],dp=[1867,1911,1925,1988,2018],va=["meiji","taisho","showa","heisei","reiwa"];function YC(e){const t=Ul.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?Ul.length-1:t===0?0:t-1}function Lv(e){let t=dp[va.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Xn(e.year+t,e.month,e.day)}class zq extends Yr{fromJulianDay(t){let n=super.fromJulianDay(t),r=YC(n);return new Xn(this,va[r],n.year-dp[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(Lv(t))}balanceDate(t){let n=Lv(t),r=YC(n);va[r]!==t.era&&(t.era=va[r],t.year=n.year-dp[r]),this.constrainDate(t)}constrainDate(t){let n=va.indexOf(t.era),r=Uq[n];if(r!=null){let[i,s,o]=r,a=i-dp[n];t.year=Math.max(1,Math.min(a,t.year)),t.year===a&&(t.month=Math.min(s,t.month),t.month===s&&(t.day=Math.min(o,t.day)))}if(t.year===1&&n>=0){let[,i,s]=Ul[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(s,t.day))}}getEras(){return va}getYearsInEra(t){let n=va.indexOf(t.era),r=Ul[n],i=Ul[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(Lv(t))}getMinimumMonthInYear(t){let n=ZC(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=ZC(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function ZC(e){if(e.year===1){let t=va.indexOf(e.era);return Ul[t]}}const a_=-543;class qq extends Yr{fromJulianDay(t){let n=super.fromJulianDay(t),r=Rd(n.era,n.year);return new Xn(this,r-a_,n.month,n.day)}toJulianDay(t){return super.toJulianDay(XC(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(XC(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function XC(e){let[t,n]=Fm(e.year+a_);return new Xn(t,n,e.month,e.day)}const Kp=1911;function u_(e){return e.era==="minguo"?e.year+Kp:1-e.year+Kp}function JC(e){let t=e-Kp;return t>0?["minguo",t]:["before_minguo",1-t]}class Wq extends Yr{fromJulianDay(t){let n=super.fromJulianDay(t),r=Rd(n.era,n.year),[i,s]=JC(r);return new Xn(this,i,s,n.month,n.day)}toJulianDay(t){return super.toJulianDay(QC(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=JC(u_(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(QC(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Kp}constructor(...t){super(...t),this.identifier="roc"}}function QC(e){let[t,n]=Fm(u_(e));return new Xn(t,n,e.month,e.day)}const eS=1948320,tS=[0,31,62,93,124,155,186,216,246,276,306,336];class Hq{fromJulianDay(t){let n=t-eS,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),s=n-i,o=s<216?Math.floor(s/31):Math.floor((s-6)/30),a=s-tS[o]+1;return new Xn(this,r,o+1,a)}toJulianDay(t){let n=eS-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=tS[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||Kl(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const Bv=78,nS=80;class Gq extends Yr{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-Bv,i=t-pu(n.era,n.year,1,1),s;i<nS?(r--,s=xa(n.year-1)?31:30,i+=s+155+90+10):(s=xa(n.year)?31:30,i-=nS);let o,a;if(i<s)o=1,a=i+1;else{let l=i-s;l<155?(o=Math.floor(l/31)+2,a=l%31+1):(l-=155,o=Math.floor(l/30)+7,a=l%30+1)}return new Xn(this,r,o,a)}toJulianDay(t){let n=t.year+Bv,[r,i]=Fm(n),s,o;return xa(i)?(s=31,o=pu(r,i,3,21)):(s=30,o=pu(r,i,3,22)),t.month===1?o+t.day-1:(o+=s+Math.min(t.month-2,5)*31,t.month>=8&&(o+=(t.month-7)*30),o+=t.day-1,o)}getDaysInMonth(t){return t.month===1&&xa(t.year+Bv)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Up=1948440,rS=1948439,Ui=1300,Cl=1600,Yq=460322;function zp(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function l_(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+zp(t,r,1,1)))/29.5)+1),s=n-zp(t,r,i,1)+1;return new Xn(e,r,i,s)}function iS(e){return(14+11*e)%30<11}class d3{fromJulianDay(t){return l_(this,Up,t)}toJulianDay(t){return zp(Up,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&iS(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return iS(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class Zq extends d3{fromJulianDay(t){return l_(this,rS,t)}toJulianDay(t){return zp(rS,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const Xq="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Sb,zl;function hp(e){return Yq+zl[e-Ui]}function Pf(e,t){let n=e-Ui,r=1<<11-(t-1);return(Sb[n]&r)===0?29:30}function sS(e,t){let n=hp(e);for(let r=1;r<t;r++)n+=Pf(e,r);return n}function oS(e){return zl[e+1-Ui]-zl[e-Ui]}class Jq extends d3{fromJulianDay(t){let n=t-Up,r=hp(Ui),i=hp(Cl);if(n<r||n>i)return super.fromJulianDay(t);{let s=Ui-1,o=1,a=1;for(;a>0;){s++,a=n-hp(s)+1;let l=oS(s);if(a===l){o=12;break}else if(a<l){let d=Pf(s,o);for(o=1;a>d;)a-=d,o++,d=Pf(s,o);break}}return new Xn(this,s,o,n-sS(s,o)+1)}}toJulianDay(t){return t.year<Ui||t.year>Cl?super.toJulianDay(t):Up+sS(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<Ui||t.year>Cl?super.getDaysInMonth(t):Pf(t.year,t.month)}getDaysInYear(t){return t.year<Ui||t.year>Cl?super.getDaysInYear(t):oS(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Sb||(Sb=new Uint16Array(Uint8Array.from(atob(Xq),t=>t.charCodeAt(0)).buffer)),!zl){zl=new Uint32Array(Cl-Ui+1);let t=0;for(let n=Ui;n<=Cl;n++){zl[n-Ui]=t;for(let r=1;r<=12;r++)t+=Pf(n,r)}}}}const aS=347997,c_=1080,f_=24*c_,Qq=29,eW=12*c_+793,tW=Qq*f_+eW;function cu(e){return Kl(e*7+1,19)<7}function pp(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return Kl(3*(r+1),7)<3&&(r+=1),r}function nW(e){let t=pp(e-1),n=pp(e);return pp(e+1)-n===356?2:n-t===382?1:0}function Nf(e){return pp(e)+nW(e)}function d_(e){return Nf(e+1)-Nf(e)}function rW(e){let t=d_(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function Kh(e,t){if(t>=6&&!cu(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=rW(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?cu(e)?30:0:30}class iW{fromJulianDay(t){let n=t-aS,r=n*f_/tW,i=Math.floor((19*r+234)/235)+1,s=Nf(i),o=Math.floor(n-s);for(;o<1;)i--,s=Nf(i),o=Math.floor(n-s);let a=1,l=0;for(;l<o;)l+=Kh(i,a),a++;a--,l-=Kh(i,a);let d=o-l;return new Xn(this,i,a,d)}toJulianDay(t){let n=Nf(t.year);for(let r=1;r<t.month;r++)n+=Kh(t.year,r);return n+t.day+aS}getDaysInMonth(t){return Kh(t.year,t.month)}getMonthsInYear(t){return cu(t.year)?13:12}getDaysInYear(t){return d_(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(cu(n.year)&&!cu(t.year)&&n.month>6?t.month--:!cu(n.year)&&cu(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const Eb=1723856,uS=1824665,Db=5500;function qp(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function h3(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-qp(e,n,1,1))/30),i=t+1-qp(e,n,r,1);return[n,r,i]}function h_(e){return Math.floor(e%4/3)}function p_(e,t){return t%13!==0?30:h_(e)+5}class p3{fromJulianDay(t){let[n,r,i]=h3(Eb,t),s="AM";return n<=0&&(s="AA",n+=Db),new Xn(this,s,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=Db),qp(Eb,n,t.month,t.day)}getDaysInMonth(t){return p_(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+h_(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class sW extends p3{fromJulianDay(t){let[n,r,i]=h3(Eb,t);return n+=Db,new Xn(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class oW extends p3{fromJulianDay(t){let[n,r,i]=h3(uS,t),s="CE";return n<=0&&(s="BCE",n=1-n),new Xn(this,s,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),qp(uS,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),p_(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 aW(e){switch(e){case"buddhist":return new qq;case"ethiopic":return new p3;case"ethioaa":return new sW;case"coptic":return new oW;case"hebrew":return new iW;case"indian":return new Gq;case"islamic-civil":return new d3;case"islamic-tbla":return new Zq;case"islamic-umalqura":return new Jq;case"japanese":return new zq;case"persian":return new Hq;case"roc":return new Wq;case"gregory":default:return new Yr}}let Vv=new Map;class Gi{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 cW()&&(this.resolvedHourCycle||(this.resolvedHourCycle=fW(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=m_(t,n),this.options=n}}const uW={true:{ja:"h11"},false:{}};function m_(e,t={}){if(typeof t.hour12=="boolean"&&lW()){t={...t};let i=uW[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(Vv.has(n))return Vv.get(n);let r=new Intl.DateTimeFormat(e,t);return Vv.set(n,r),r}let Nv=null;function lW(){return Nv==null&&(Nv=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),Nv}let jv=null;function cW(){return jv==null&&(jv=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),jv}function fW(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=m_(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 Xs(e){e=E5(e??{},dW);let{locale:t}=kr();return A.useMemo(()=>new Gi(t,e),[t,e])}function dW(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 Kv=new Map,Ab=!1;try{Ab=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Wp=!1;try{Wp=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const g_={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class v_{format(t){let n="";if(!Ab&&this.options.signDisplay!=null?n=pW(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Wp){var r;let{unit:i,unitDisplay:s="short",locale:o}=this.resolvedOptions();if(!i)return n;let a=(r=g_[i])===null||r===void 0?void 0:r[s];n+=a[o]||a.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!Ab&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Wp&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=hW(t,n),this.options=n}}function hW(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Wp){var r;let{unit:o,unitDisplay:a="short"}=t;if(!o)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=g_[o])===null||r===void 0)&&r[a]))throw new Error(`Unsupported unit ${o} with unitDisplay = ${a}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((o,a)=>o[0]<a[0]?-1:1).join():"");if(Kv.has(i))return Kv.get(i);let s=new Intl.NumberFormat(e,t);return Kv.set(i,s),s}function pW(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),o=i.replace(s,"").replace(/\u200e|\u061C/,"");return[...o].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(s,"!!!").replace(o,"+").replace("!!!",s)}else return e.format(n)}}const mW=new RegExp("^.*\\(.*\\).*$"),gW=["latn","arab","hanidec","deva","beng"];class y_{parse(t){return Uv(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return Uv(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return Uv(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const lS=new Map;function Uv(e,t,n){let r=cS(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of gW)if(i!==r.options.numberingSystem){let s=cS(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(s.isValidPartialNumber(n))return s}}return r}function cS(e,t){let n=e+(t?Object.entries(t).sort((i,s)=>i[0]<s[0]?-1:1).join():""),r=lS.get(n);return r||(r=new vW(e,t),lS.set(n,r)),r}class vW{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=hf(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 o=n.indexOf("-");n=n.replace("-","");let a=n.indexOf(".");a===-1&&(a=n.length),n=n.replace(".",""),a-2===0?n=`0.${n}`:a-2===-1?n=`0.0${n}`:a-2===-2?n="0.00":n=`${n.slice(0,a-2)}.${n.slice(a-2)}`,o>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var i,s;let o={...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 y_(this.locale,o).parse(new v_(this.locale,o).format(r))}return this.options.currencySign==="accounting"&&mW.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=hf(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&this.symbols.group&&(t=hf(t," ",this.symbols.group),t=hf(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=hf(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=bW(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 fS=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),yW=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function bW(e,t,n,r){var i,s,o,a;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=yW.map(oe=>l.formatToParts(oe));var g;let b=(g=(i=d.find(oe=>oe.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&g!==void 0?g:"-",x=(s=h.find(oe=>oe.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 D=(o=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(oe=>oe.type==="decimal"))===null||o===void 0?void 0:o.value,S=(a=d.find(oe=>oe.type==="group"))===null||a===void 0?void 0:a.value,w=d.filter(oe=>!fS.has(oe.type)).map(oe=>dS(oe.value)),T=m.flatMap(oe=>oe.filter(I=>!fS.has(I.type)).map(I=>dS(I.value))),O=[...new Set([...w,...T])].sort((oe,I)=>I.length-oe.length),R=O.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${O.join("|")}|[\\p{White_Space}]`,"gu"),k=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),K=new Map(k.map((oe,I)=>[oe,I])),q=new RegExp(`[${k.join("")}]`,"g");return{minusSign:b,plusSign:x,decimal:D,group:S,literals:R,numeral:q,index:oe=>String(K.get(oe))}}function hf(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function dS(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function $W(e={}){let{locale:t}=kr();return A.useMemo(()=>new v_(t,e),[t,e])}let zv=new Map;function b_(e){let{locale:t}=kr(),n=t+(e?Object.entries(e).sort((i,s)=>i[0]<s[0]?-1:1).join():"");if(zv.has(n))return zv.get(n);let r=new Intl.Collator(t,e);return zv.set(n,r),r}function $_(e){let t=b_({usage:"search",...e}),n=A.useCallback((s,o)=>o.length===0?!0:(s=s.normalize("NFC"),o=o.normalize("NFC"),t.compare(s.slice(0,o.length),o)===0),[t]),r=A.useCallback((s,o)=>o.length===0?!0:(s=s.normalize("NFC"),o=o.normalize("NFC"),t.compare(s.slice(-o.length),o)===0),[t]),i=A.useCallback((s,o)=>{if(o.length===0)return!0;s=s.normalize("NFC"),o=o.normalize("NFC");let a=0,l=o.length;for(;a+l<=s.length;a++){let d=s.slice(a,a+l);if(t.compare(o,d)===0)return!0}return!1},[t]);return A.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function xW(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:s,onPressEnd:o,onPressUp:a,onPressChange:l,preventFocusOnPress:d,allowFocusWhenDisabled:h,onClick:m,href:g,target:b,rel:x,type:C="button"}=e,D;n==="button"?D={type:C,disabled:r}:D={role:"button",href:n==="a"&&!r?g:void 0,target:n==="a"?b:void 0,type:n==="input"?C:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?x:void 0};let{pressProps:S,isPressed:w}=Md({onPressStart:s,onPressEnd:o,onPressChange:l,onPress:i,onPressUp:a,onClick:m,isDisabled:r,preventFocusOnPress:d,ref:t}),{focusableProps:T}=r3(e,t);h&&(T.tabIndex=r?-1:T.tabIndex);let O=Qt(T,S,Yo(e,{labelable:!0}));return{isPressed:w,buttonProps:Qt(D,O,{"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 wW(e){const t=Cs(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:o,visibility:a}=s(e);i=o!=="none"&&a!=="hidden"&&a!=="collapse"}return i}function CW(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 x_(e,t){return e.nodeName!=="#comment"&&wW(e)&&CW(e,t)&&(!e.parentElement||x_(e.parentElement,e))}const hS=A.createContext(null),Tb="react-aria-focus-scope-restore";let $n=null;function SW(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,s=A.useRef(null),o=A.useRef(null),a=A.useRef([]),{parentNode:l}=A.useContext(hS)||{},d=A.useMemo(()=>new _b({scopeRef:a}),[a]);gn(()=>{let g=l||tr.root;if(tr.getTreeNode(g.scopeRef)&&$n&&!Hp($n,g.scopeRef)){let b=tr.getTreeNode($n);b&&(g=b)}g.addChild(d),tr.addNode(d)},[d,l]),gn(()=>{let g=tr.getTreeNode(a);g&&(g.contain=!!n)},[n]),gn(()=>{var g;let b=(g=s.current)===null||g===void 0?void 0:g.nextSibling,x=[],C=D=>D.stopPropagation();for(;b&&b!==o.current;)x.push(b),b.addEventListener(Tb,C),b=b.nextSibling;return a.current=x,()=>{for(let D of x)D.removeEventListener(Tb,C)}},[t]),PW(a,r,n),DW(a,n),_W(a,r,n),TW(a,i),A.useEffect(()=>{const g=mr(an(a.current?a.current[0]:void 0));let b=null;if(es(g,a.current)){for(let x of tr.traverse())x.scopeRef&&es(g,x.scopeRef.current)&&(b=x);b===tr.getTreeNode(a)&&($n=b.scopeRef)}},[a]),gn(()=>()=>{var g,b,x;let C=(x=(b=tr.getTreeNode(a))===null||b===void 0||(g=b.parent)===null||g===void 0?void 0:g.scopeRef)!==null&&x!==void 0?x:null;(a===$n||Hp(a,$n))&&(!C||tr.getTreeNode(C))&&($n=C),tr.removeTreeNode(a)},[a]);let h=A.useMemo(()=>EW(a),[]),m=A.useMemo(()=>({focusManager:h,parentNode:d}),[d,h]);return A.createElement(hS.Provider,{value:m},A.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:s}),t,A.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:o}))}function EW(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:s,accept:o}=t;var a;let l=r||mr(an((a=n[0])!==null&&a!==void 0?a:void 0)),d=n[0].previousElementSibling,h=mu(n),m=Ur(h,{tabbable:i,accept:o},n);m.currentNode=es(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:o}=t;var a;let l=r||mr(an((a=n[0])!==null&&a!==void 0?a:void 0)),d=n[n.length-1].nextElementSibling,h=mu(n),m=Ur(h,{tabbable:i,accept:o},n);m.currentNode=es(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=mu(n),o=Ur(s,{tabbable:r,accept:i},n);o.currentNode=n[0].previousElementSibling;let a=o.nextNode();return a&&si(a,!0),a},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,s=mu(n),o=Ur(s,{tabbable:r,accept:i},n);o.currentNode=n[n.length-1].nextElementSibling;let a=o.previousNode();return a&&si(a,!0),a}}}function mu(e){return e[0].parentElement}function _f(e){let t=tr.getTreeNode($n);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function DW(e,t){let n=A.useRef(void 0),r=A.useRef(void 0);gn(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const s=an(i?i[0]:void 0);let o=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!_f(e)||d.isComposing)return;let h=mr(s),m=e.current;if(!m||!es(h,m))return;let g=mu(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)},a=d=>{(!$n||Hp($n,e))&&es(sn(d),e.current)?($n=e,n.current=sn(d)):_f(e)&&!wa(sn(d),e)?n.current?n.current.focus():$n&&$n.current&&Pb($n.current):_f(e)&&(n.current=sn(d))},l=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let h=ed(),m=(h==="virtual"||h===null)&&X4()&&x5(),g=mr(s);if(!m&&g&&_f(e)&&!wa(g,e)){$n=e;let x=sn(d);if(x&&x.isConnected){var b;n.current=x,(b=n.current)===null||b===void 0||b.focus()}else $n.current&&Pb($n.current)}})};return s.addEventListener("keydown",o,!1),s.addEventListener("focusin",a,!1),i==null||i.forEach(d=>d.addEventListener("focusin",a,!1)),i==null||i.forEach(d=>d.addEventListener("focusout",l,!1)),()=>{s.removeEventListener("keydown",o,!1),s.removeEventListener("focusin",a,!1),i==null||i.forEach(d=>d.removeEventListener("focusin",a,!1)),i==null||i.forEach(d=>d.removeEventListener("focusout",l,!1))}},[e,t]),gn(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function w_(e){return wa(e)}function es(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function wa(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of tr.traverse(tr.getTreeNode(t)))if(n&&es(e,n.current))return!0;return!1}function AW(e){return wa(e,$n)}function Hp(e,t){var n;let r=(n=tr.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{Ou(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function C_(e,t=!0){let n=e[0].previousElementSibling,r=mu(e),i=Ur(r,{tabbable:t},e);i.currentNode=n;let s=i.nextNode();return t&&!s&&(r=mu(e),i=Ur(r,{tabbable:!1},e),i.currentNode=n,s=i.nextNode()),s}function Pb(e,t=!0){si(C_(e,t))}function TW(e,t){const n=A.useRef(t);A.useEffect(()=>{if(n.current){$n=e;const r=an(e.current?e.current[0]:void 0);!es(mr(r),$n.current)&&e.current&&Pb(e.current)}n.current=!1},[e])}function PW(e,t,n){gn(()=>{if(t||n)return;let r=e.current;const i=an(r?r[0]:void 0);let s=o=>{let a=sn(o);es(a,e.current)?$n=e:w_(a)||($n=null)};return i.addEventListener("focusin",s,!1),r==null||r.forEach(o=>o.addEventListener("focusin",s,!1)),()=>{i.removeEventListener("focusin",s,!1),r==null||r.forEach(o=>o.removeEventListener("focusin",s,!1))}},[e,t,n])}function pS(e){let t=tr.getTreeNode($n);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function _W(e,t,n){const r=A.useRef(typeof document<"u"?mr(an(e.current?e.current[0]:void 0)):null);gn(()=>{let i=e.current;const s=an(i?i[0]:void 0);if(!t||n)return;let o=()=>{(!$n||Hp($n,e))&&es(mr(s),e.current)&&($n=e)};return s.addEventListener("focusin",o,!1),i==null||i.forEach(a=>a.addEventListener("focusin",o,!1)),()=>{s.removeEventListener("focusin",o,!1),i==null||i.forEach(a=>a.removeEventListener("focusin",o,!1))}},[e,n]),gn(()=>{const i=an(e.current?e.current[0]:void 0);if(!t)return;let s=o=>{if(o.key!=="Tab"||o.altKey||o.ctrlKey||o.metaKey||!_f(e)||o.isComposing)return;let a=i.activeElement;if(!wa(a,e)||!pS(e))return;let l=tr.getTreeNode(e);if(!l)return;let d=l.nodeToRestore,h=Ur(i.body,{tabbable:!0});h.currentNode=a;let m=o.shiftKey?h.previousNode():h.nextNode();if((!d||!d.isConnected||d===i.body)&&(d=void 0,l.nodeToRestore=void 0),(!m||!wa(m,e))&&d){h.currentNode=d;do m=o.shiftKey?h.previousNode():h.nextNode();while(wa(m,e));o.preventDefault(),o.stopPropagation(),m?si(m,!0):w_(d)?si(d,!0):a.blur()}};return n||i.addEventListener("keydown",s,!0),()=>{n||i.removeEventListener("keydown",s,!0)}},[e,t,n]),gn(()=>{const i=an(e.current?e.current[0]:void 0);if(!t)return;let s=tr.getTreeNode(e);if(s){var o;return s.nodeToRestore=(o=r.current)!==null&&o!==void 0?o:void 0,()=>{let a=tr.getTreeNode(e);if(!a)return;let l=a.nodeToRestore,d=mr(i);if(t&&l&&(d&&wa(d,e)||d===i.body&&pS(e))){let h=tr.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let m=h.getTreeNode(e);for(;m;){if(m.nodeToRestore&&m.nodeToRestore.isConnected){mS(m.nodeToRestore);return}m=m.parent}for(m=h.getTreeNode(e);m;){if(m.scopeRef&&m.scopeRef.current&&tr.getTreeNode(m.scopeRef)){let g=C_(m.scopeRef.current,!0);mS(g);return}m=m.parent}}})}}}},[e,t])}function mS(e){e.dispatchEvent(new CustomEvent(Tb,{bubbles:!0,cancelable:!0}))&&si(e)}function Ur(e,t,n){let r=t!=null&&t.tabbable?Oz:D5,i=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,s=an(i),o=dz(s,e||s,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var l;return!(t==null||(l=t.from)===null||l===void 0)&&l.contains(a)?NodeFilter.FILTER_REJECT:r(a)&&x_(a)&&(!n||es(a,n))&&(!(t!=null&&t.accept)||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}function Lm(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:s=t.tabbable,wrap:o=t.wrap,accept:a=t.accept}=n,l=i||mr(an(r)),d=Ur(r,{tabbable:s,accept:a});r.contains(l)&&(d.currentNode=l);let h=d.nextNode();return!h&&o&&(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:o=t.wrap,accept:a=t.accept}=n,l=i||mr(an(r)),d=Ur(r,{tabbable:s,accept:a});if(r.contains(l))d.currentNode=l;else{let m=qv(d);return m&&si(m,!0),m??null}let h=d.previousNode();if(!h&&o){d.currentNode=r;let m=qv(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,a=Ur(r,{tabbable:i,accept:s}).nextNode();return a&&si(a,!0),a},focusLast(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}),a=qv(o);return a&&si(a,!0),a??null}}}function qv(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class m3{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 _b({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&&es(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 m3;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 _b({scopeRef:null}),this.fastMap.set(null,this.root)}}class _b{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 tr=new m3;function S_(e){let t=RW(an(e));t!==e&&(t&&MW(t,e),e&&E_(e,t))}function MW(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function E_(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function RW(e){let t=mr(e),n=t==null?void 0:t.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}var D_={};D_={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 A_={};A_={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 T_={};T_={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 P_={};P_={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 __={};__={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 M_={};M_={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 R_={};R_={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 F_={};F_={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 k_={};k_={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 O_={};O_={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 I_={};I_={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 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} 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 V_={};V_={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 N_={};N_={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 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_={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 U_={};U_={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 z_={};z_={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 q_={};q_={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 W_={};W_={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 H_={};H_={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 G_={};G_={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 Y_={};Y_={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 Z_={};Z_={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 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=>`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 Q_={};Q_={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 e6={};e6={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 t6={};t6={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 n6={};n6={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 r6={};r6={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 i6={};i6={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 s6={};s6={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 Id={};Id={"ar-AE":D_,"bg-BG":A_,"cs-CZ":T_,"da-DK":P_,"de-DE":__,"el-GR":M_,"en-US":R_,"es-ES":F_,"et-EE":k_,"fi-FI":O_,"fr-FR":I_,"he-IL":L_,"hr-HR":B_,"hu-HU":V_,"it-IT":N_,"ja-JP":j_,"ko-KR":K_,"lt-LT":U_,"lv-LV":z_,"nb-NO":q_,"nl-NL":W_,"pl-PL":H_,"pt-BR":G_,"pt-PT":Y_,"ro-RO":Z_,"ru-RU":X_,"sk-SK":J_,"sl-SI":Q_,"sr-SP":e6,"sv-SE":t6,"tr-TR":n6,"uk-UA":r6,"zh-CN":i6,"zh-TW":s6};function o6(e){return e&&e.__esModule?e.default:e}const g3=new WeakMap;function sd(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function FW(e){let t=lo(o6(Id),"@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=Xs({weekday:"long",month:"long",year:"numeric",day:"numeric",era:sd(n)||sd(r),timeZone:e.timeZone}),o="anchorDate"in e?e.anchorDate:null;return A.useMemo(()=>{if(!o&&n&&r)if(nr(n,r)){let a=s.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:a})}else{let a=Rb(s,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:a})}return""},[n,r,o,e.timeZone,t,s])}function Mb(e,t,n,r){let i=lo(o6(Id),"@react-aria/calendar"),s=sd(e)||sd(t),o=Xs({month:"long",year:"numeric",era:s,calendar:e.calendar.identifier,timeZone:n}),a=Xs({month:"long",year:"numeric",day:"numeric",era:s,calendar:e.calendar.identifier,timeZone:n});return A.useMemo(()=>{if(nr(e,kd(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,$b(e)))return o.format(l.toDate(n));if(nr(t,$b(t)))return r?Rb(o,i,l,d,n):o.formatRange(l.toDate(n),d.toDate(n))}return r?Rb(a,i,e,t,n):a.formatRange(e.toDate(n),t.toDate(n))},[e,t,o,a,i,n,r])}function Rb(e,t,n,r,i){let s=e.formatRangeToParts(n.toDate(i),r.toDate(i)),o=-1;for(let d=0;d<s.length;d++){let h=s[d];if(h.source==="shared"&&h.type==="literal")o=d;else if(h.source==="endRange")break}let a="",l="";for(let d=0;d<s.length;d++)d<o?a+=s[d].value:d>o&&(l+=s[d].value);return t.format("dateRange",{startDate:a,endDate:l})}const a6=7e3;let ji=null;function ql(e,t="assertive",n=a6){ji?ji.announce(e,t,n):(ji=new OW,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?ji.announce(e,t,n):setTimeout(()=>{ji!=null&&ji.isAttached()&&(ji==null||ji.announce(e,t,n))},100))}function kW(e){ji&&ji.clear(e)}class OW{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=a6){var i,s;if(!this.node)return;let o=document.createElement("div");typeof t=="object"?(o.setAttribute("role","img"),o.setAttribute("aria-labelledby",t["aria-labelledby"])):o.textContent=t,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(o):(s=this.politeLog)===null||s===void 0||s.appendChild(o),t!==""&&setTimeout(()=>{o.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 IW(e){return e&&e.__esModule?e.default:e}function u6(e,t){let n=lo(IW(Id),"@react-aria/calendar"),r=Yo(e),i=Mb(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),s=Mb(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);db(()=>{t.isFocused||ql(s)},[s]);let o=FW(t);db(()=>{o&&ql(o,"polite",4e3)},[o]);let a=tc([!!e.errorMessage,e.isInvalid,e.validationState]);g3.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:a,selectedDateDescription:o});let[l,d]=A.useState(!1),h=e.isDisabled||t.isNextVisibleRangeInvalid();h&&l&&(d(!1),t.setFocused(!0));let[m,g]=A.useState(!1),b=e.isDisabled||t.isPreviousVisibleRangeInvalid();b&&m&&(g(!1),t.setFocused(!0));let x=nc({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-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:a},title:i}}function LW(e,t){return u6(e,t)}function BW(e,t,n){let r=u6(e,t),i=A.useRef(!1),s=A.useRef(typeof window<"u"?window:null);return Zs(s,"pointerdown",a=>{i.current=a.width===0&&a.height===0}),Zs(s,"pointerup",a=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let l=a.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(l)||!l.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=a=>{n.current&&(!a.relatedTarget||!n.current.contains(a.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},Zs(n,"touchmove",a=>{t.isDragging&&a.preventDefault()},{passive:!1,capture:!0}),r}function VW(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end,firstDayOfWeek:i}=e,{direction:s}=kr(),o=C=>{switch(C.key){case"Enter":case" ":C.preventDefault(),t.selectFocusedDate();break;case"PageUp":C.preventDefault(),C.stopPropagation(),t.focusPreviousSection(C.shiftKey);break;case"PageDown":C.preventDefault(),C.stopPropagation(),t.focusNextSection(C.shiftKey);break;case"End":C.preventDefault(),C.stopPropagation(),t.focusSectionEnd();break;case"Home":C.preventDefault(),C.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":C.preventDefault(),C.stopPropagation(),s==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":C.preventDefault(),C.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":C.preventDefault(),C.stopPropagation(),s==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":C.preventDefault(),C.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(C.preventDefault(),t.setAnchorDate(null));break}},a=Mb(n,r,t.timeZone,!0),{ariaLabel:l,ariaLabelledBy:d}=g3.get(t),h=nc({"aria-label":[l,a].filter(Boolean).join(", "),"aria-labelledby":d}),m=Xs({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:g}=kr(),b=A.useMemo(()=>{let C=td(Om(t.timeZone),g,i);return[...new Array(7).keys()].map(D=>{let w=C.add({days:D}).toDate(t.timeZone);return m.format(w)})},[g,t.timeZone,m,i]),x=H5(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:o,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:b,weeksInMonth:x}}function NW(e){return e&&e.__esModule?e.default:e}function jW(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:s,selectedDateDescription:o}=g3.get(t),a=lo(NW(Id),"@react-aria/calendar"),l=Xs({weekday:"long",day:"numeric",month:"long",year:"numeric",era:sd(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=E5(r,bb);let x=A.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),C=U5(r,t.timeZone),D=A.useMemo(()=>{let I="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(nr(r,t.value.start)||nr(r,t.value.end))&&(I=o+", "),I+=l.format(x),C?I=a.format(d?"todayDateSelected":"todayDate",{date:I}):d&&(I=a.format("dateSelected",{date:I})),t.minValue&&nr(r,t.minValue)?I+=", "+a.format("minimumDate"):t.maxValue&&nr(r,t.maxValue)&&(I+=", "+a.format("maximumDate")),I},[l,x,a,d,C,r,t,o]),S="";"anchorDate"in t&&h&&!t.isReadOnly&&g&&(t.anchorDate?S=a.format("finishRangeSelectionPrompt"):S=a.format("startRangeSelectionPrompt"));let w=Pd(S),T=A.useRef(!1),O=A.useRef(!1),R=A.useRef(void 0),{pressProps:k,isPressed:K}=Md({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),O.current=!0;return}else if(nr(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),O.current=!0;return}}let be=()=>{t.setDragging(!0),R.current=void 0,t.selectDate(r),t.setFocusedDate(r),T.current=!0};I.pointerType==="touch"?R.current=setTimeout(be,200):be()}},onPressEnd(){O.current=!1,T.current=!1,clearTimeout(R.current),R.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(I){if(!t.isReadOnly&&("anchorDate"in t&&R.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(O.current)t.setAnchorDate(r);else if(t.anchorDate&&!T.current)t.selectDate(r),t.setFocusedDate(r);else if(I.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let be=r.add({days:1});t.isInvalid(be)&&(be=r.subtract({days:1})),t.isInvalid(be)||t.setFocusedDate(be)}else I.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),q;i||(q=nr(r,t.focusedDate)?0:-1),A.useEffect(()=>{h&&n.current&&(Ei(n.current),ed()!=="pointer"&&document.activeElement===n.current&&Bp(n.current,{containingElement:Mm(n.current)}))},[h,n]);let ce=Xs({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),oe=A.useMemo(()=>ce.formatToParts(x).find(I=>I.type==="day").value,[ce,x]);return{cellProps:{role:"gridcell","aria-disabled":!g||void 0,"aria-selected":d||void 0,"aria-invalid":b||void 0},buttonProps:Qt(k,{onFocus(){i||t.setFocusedDate(r)},tabIndex:q,role:"button","aria-disabled":!g||void 0,"aria-label":D,"aria-invalid":b||void 0,"aria-describedby":[b?s:void 0,w["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:oe}}const Bm={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},l6={...Bm,customError:!0,valid:!1},fu={isInvalid:!1,validationDetails:Bm,validationErrors:[]},KW=A.createContext({}),sc="__formValidationState"+Date.now();function Ld(e){if(e[sc]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:s}=e[sc];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:s}}return UW(e)}function UW(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:s,validate:o,validationBehavior:a="aria"}=e;n&&(t||(t=n==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:l6}:null,d=A.useMemo(()=>{if(!o||i==null)return null;let oe=zW(o,i);return gS(oe)},[o,i]);s!=null&&s.validationDetails.valid&&(s=void 0);let h=A.useContext(KW),m=A.useMemo(()=>r?Array.isArray(r)?r.flatMap(oe=>Fb(h[oe])):Fb(h[r]):[],[h,r]),[g,b]=A.useState(h),[x,C]=A.useState(!1);h!==g&&(b(h),C(!1));let D=A.useMemo(()=>gS(x?[]:m),[x,m]),S=A.useRef(fu),[w,T]=A.useState(fu),O=A.useRef(fu),R=()=>{if(!k)return;K(!1);let oe=d||s||S.current;Wv(oe,O.current)||(O.current=oe,T(oe))},[k,K]=A.useState(!1);return A.useEffect(R),{realtimeValidation:l||D||d||s||fu,displayValidation:a==="native"?l||D||w:l||D||d||s||w,updateValidation(oe){a==="aria"&&!Wv(w,oe)?T(oe):S.current=oe},resetValidation(){let oe=fu;Wv(oe,O.current)||(O.current=oe,T(oe)),a==="native"&&K(!1),C(!0)},commitValidation(){a==="native"&&K(!0),C(!0)}}}function Fb(e){return e?Array.isArray(e)?e:[e]:[]}function zW(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Fb(n)}return[]}function gS(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:l6}:null}function Wv(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 Gp(...e){let t=new Set,n=!1,r={...Bm};for(let o of e){var i,s;for(let a of o.validationErrors)t.add(a);n||(n=o.isInvalid);for(let a in r)(i=r)[s=a]||(i[s]=o.validationDetails[a])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function c6(e,t,n){let{validationBehavior:r,focus:i}=e;gn(()=>{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(WW(n.current))}});let s=On(()=>{t.resetValidation()}),o=On(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&&HW(h)===n.current){var m;i?i():(m=n.current)===null||m===void 0||m.focus(),O5("keyboard")}l.preventDefault()}),a=On(()=>{t.commitValidation()});A.useEffect(()=>{let l=n==null?void 0:n.current;if(!l)return;let d=l.form;return l.addEventListener("invalid",o),l.addEventListener("change",a),d==null||d.addEventListener("reset",s),()=>{l.removeEventListener("invalid",o),l.removeEventListener("change",a),d==null||d.removeEventListener("reset",s)}},[n,o,a,s,r])}function qW(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 WW(e){return{isInvalid:!e.validity.valid,validationDetails:qW(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function HW(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function Vm(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:s="label"}=e;t=Hr(t);let o=Hr(),a={};n?(r=r?`${o} ${r}`:o,a={id:o,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=nc({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:a,fieldProps:l}}function Nm(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:s,fieldProps:o}=Vm(e),a=tc([!!t,!!n,r,i]),l=tc([!!t,!!n,r,i]);return o=Qt(o,{"aria-describedby":[a,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:s,fieldProps:o,descriptionProps:{id:a},errorMessageProps:{id:l}}}const GW=0,YW=100,ZW=1;function XW(e){const{isDisabled:t=!1,minValue:n=GW,maxValue:r=YW,numberFormatter:i,step:s=ZW,orientation:o="horizontal"}=e;let a=A.useMemo(()=>{let te=(r-n)/10;return te=ff(te,0,te+s,s),Math.max(te,s)},[s,r,n]),l=A.useCallback(te=>te==null?void 0:te.map((xe,Ee)=>{let Oe=Ee===0?n:te[Ee-1],_e=Ee===te.length-1?r:te[Ee+1];return ff(xe,Oe,_e,s)}),[n,r,s]),d=A.useMemo(()=>l(yS(e.value)),[e.value]),h=A.useMemo(()=>{var te;return l((te=yS(e.defaultValue))!==null&&te!==void 0?te:[n])},[e.defaultValue,n]),m=bS(e.value,e.defaultValue,e.onChange),g=bS(e.value,e.defaultValue,e.onChangeEnd);const[b,x]=Di(d,h,m),[C,D]=A.useState(new Array(b.length).fill(!1)),S=A.useRef(new Array(b.length).fill(!0)),[w,T]=A.useState(void 0),O=A.useRef(b),R=A.useRef(C);let k=te=>{O.current=te,x(te)},K=te=>{R.current=te,D(te)};function q(te){return(te-n)/(r-n)}function ce(te){return te===0?n:b[te-1]}function oe(te){return te===b.length-1?r:b[te+1]}function I(te){return S.current[te]}function be(te,xe){S.current[te]=xe}function $e(te,xe){if(t||!I(te))return;const Ee=ce(te),Oe=oe(te);xe=ff(xe,Ee,Oe,s);let _e=vS(O.current,te,xe);k(_e)}function H(te,xe){if(t||!I(te))return;xe&&(O.current=b);const Ee=R.current[te];R.current=vS(R.current,te,xe),K(R.current),g&&Ee&&!R.current.some(Boolean)&&g(O.current)}function ie(te){return i.format(te)}function M(te,xe){$e(te,L(xe))}function B(te){return Math.round((te-n)/s)*s+n}function L(te){const xe=te*(r-n)+n;return rc(B(xe),n,r)}function me(te,xe=1){let Ee=Math.max(xe,s);$e(te,ff(b[te]+Ee,n,r,s))}function U(te,xe=1){let Ee=Math.max(xe,s);$e(te,ff(b[te]-Ee,n,r,s))}return{values:b,getThumbValue:te=>b[te],setThumbValue:$e,setThumbPercent:M,isThumbDragging:te=>C[te],setThumbDragging:H,focusedThumb:w,setFocusedThumb:T,getThumbPercent:te=>q(b[te]),getValuePercent:q,getThumbValueLabel:te=>ie(b[te]),getFormattedValue:ie,getThumbMinValue:ce,getThumbMaxValue:oe,getPercentValue:L,isThumbEditable:I,setThumbEditable:be,incrementThumb:me,decrementThumb:U,step:s,pageSize:a,orientation:o,isDisabled:t}}function vS(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function yS(e){if(e!=null)return Array.isArray(e)?e:[e]}function bS(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}const $S={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 JW(e={}){let{style:t,isFocusable:n}=e,[r,i]=A.useState(!1),{focusWithinProps:s}=$c({isDisabled:!n,onFocusWithinChange:a=>i(a)}),o=A.useMemo(()=>r?t:t?{...$S,...t}:$S,[r]);return{visuallyHiddenProps:{...s,style:o}}}function QW(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...s}=e,{visuallyHiddenProps:o}=JW(e);return A.createElement(n,Qt(s,o),t)}const v3=new WeakMap;function kb(e,t){let n=v3.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function eH(e,t,n){let{labelProps:r,fieldProps:i}=Vm(e),s=e.orientation==="vertical";var o;v3.set(t,{id:(o=r.id)!==null&&o!==void 0?o:i.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:a}=kr(),{addGlobalListener:l,removeGlobalListener:d}=Ma();const h=A.useRef(null),m=a==="rtl",g=A.useRef(null),{moveProps:b}=L5({onMoveStart(){g.current=null},onMove({deltaX:S,deltaY:w}){if(!n.current)return;let{height:T,width:O}=n.current.getBoundingClientRect(),R=s?T:O;g.current==null&&h.current!=null&&(g.current=t.getThumbPercent(h.current)*R);let k=s?w:S;if((s||m)&&(k=-k),g.current+=k,h.current!=null&&n.current){const K=rc(g.current/R,0,1);t.setThumbPercent(h.current,K)}},onMoveEnd(){h.current!=null&&(t.setThumbDragging(h.current,!1),h.current=null)}});let x=A.useRef(void 0),C=(S,w,T,O)=>{if(n.current&&!e.isDisabled&&t.values.every((R,k)=>!t.isThumbDragging(k))){let{height:R,width:k,top:K,left:q}=n.current.getBoundingClientRect(),ce=s?R:k,$e=((s?O:T)-(s?K:q))/ce;(a==="rtl"||s)&&($e=1-$e);let H=t.getPercentValue($e),ie,M=t.values.findIndex(B=>H-B<0);if(M===0)ie=M;else if(M===-1)ie=t.values.length-1;else{let B=t.values[M-1],L=t.values[M];Math.abs(B-H)<Math.abs(L-H)?ie=M-1:ie=M}ie>=0&&t.isThumbEditable(ie)?(S.preventDefault(),h.current=ie,t.setFocusedThumb(ie),x.current=w,t.setThumbDragging(h.current,!0),t.setThumbValue(ie,H),l(window,"mouseup",D,!1),l(window,"touchend",D,!1),l(window,"pointerup",D,!1)):h.current=null}},D=S=>{var w,T;((T=S.pointerId)!==null&&T!==void 0?T:(w=S.changedTouches)===null||w===void 0?void 0:w[0].identifier)===x.current&&(h.current!=null&&(t.setThumbDragging(h.current,!1),h.current=null),d(window,"mouseup",D,!1),d(window,"touchend",D,!1),d(window,"pointerup",D,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var S;(S=document.getElementById(kb(t,0)))===null||S===void 0||S.focus(),O5("keyboard")}),{labelProps:r,groupProps:{role:"group",...i},trackProps:Qt({onMouseDown(S){S.button!==0||S.altKey||S.ctrlKey||S.metaKey||C(S,void 0,S.clientX,S.clientY)},onPointerDown(S){S.pointerType==="mouse"&&(S.button!==0||S.altKey||S.ctrlKey||S.metaKey)||C(S,S.pointerId,S.clientX,S.clientY)},onTouchStart(S){C(S,S.changedTouches[0].identifier,S.changedTouches[0].clientX,S.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},b),outputProps:{htmlFor:t.values.map((S,w)=>kb(t,w)).join(" "),"aria-live":"off"}}}function tH(e,t){let{index:n=0,isRequired:r,validationState:i,isInvalid:s,trackRef:o,inputRef:a,orientation:l=t.orientation,name:d}=e,h=e.isDisabled||t.isDisabled,m=l==="vertical",{direction:g}=kr(),{addGlobalListener:b,removeGlobalListener:x}=Ma(),C=v3.get(t);var D;const{labelProps:S,fieldProps:w}=Vm({...e,id:kb(t,n),"aria-labelledby":`${C.id} ${(D=e["aria-labelledby"])!==null&&D!==void 0?D:""}`.trim()}),T=t.values[n],O=A.useCallback(()=>{a.current&&Ei(a.current)},[a]),R=t.focusedThumb===n;A.useEffect(()=>{R&&O()},[R,O]);let k=g==="rtl",K=A.useRef(null),{keyboardProps:q}=I5({onKeyDown(M){let{getThumbMaxValue:B,getThumbMinValue:L,decrementThumb:me,incrementThumb:U,setThumbValue:te,setThumbDragging:xe,pageSize:Ee}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(M.key)){M.continuePropagation();return}switch(M.preventDefault(),xe(n,!0),M.key){case"PageUp":U(n,Ee);break;case"PageDown":me(n,Ee);break;case"Home":te(n,L(n));break;case"End":te(n,B(n));break}xe(n,!1)}}),{moveProps:ce}=L5({onMoveStart(){K.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:M,deltaY:B,pointerType:L,shiftKey:me}){const{getThumbPercent:U,setThumbPercent:te,decrementThumb:xe,incrementThumb:Ee,step:Oe,pageSize:_e}=t;if(!o.current)return;let{width:Ye,height:He}=o.current.getBoundingClientRect(),De=m?He:Ye;if(K.current==null&&(K.current=U(n)*De),L==="keyboard")M>0&&k||M<0&&!k||B>0?xe(n,me?_e:Oe):Ee(n,me?_e:Oe);else{let Ke=m?B:M;(m||k)&&(Ke=-Ke),K.current+=Ke,te(n,rc(K.current/De,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!h);const{focusableProps:oe}=r3(Qt(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),a);let I=A.useRef(void 0),be=M=>{O(),I.current=M,t.setThumbDragging(n,!0),b(window,"mouseup",$e,!1),b(window,"touchend",$e,!1),b(window,"pointerup",$e,!1)},$e=M=>{var B,L;((L=M.pointerId)!==null&&L!==void 0?L:(B=M.changedTouches)===null||B===void 0?void 0:B[0].identifier)===I.current&&(O(),t.setThumbDragging(n,!1),x(window,"mouseup",$e,!1),x(window,"touchend",$e,!1),x(window,"pointerup",$e,!1))},H=t.getThumbPercent(n);(m||g==="rtl")&&(H=1-H);let ie=h?{}:Qt(q,ce,{onMouseDown:M=>{M.button!==0||M.altKey||M.ctrlKey||M.metaKey||be()},onPointerDown:M=>{M.button!==0||M.altKey||M.ctrlKey||M.metaKey||be(M.pointerId)},onTouchStart:M=>{be(M.changedTouches[0].identifier)}});return J4(a,T,M=>{t.setThumbValue(n,M)}),{inputProps:Qt(oe,w,{type:"range",tabIndex:h?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:T,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":[C["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[C["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:M=>{t.setThumbValue(n,parseFloat(M.target.value))}}),thumbProps:{...ie,style:{position:"absolute",[m?"top":"left"]:`${H*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:S,isDragging:t.isThumbDragging(n),isDisabled:h,isFocused:R}}function nH(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:s=!1,type:o="text",validationBehavior:a="aria"}=e,[l,d]=Di(e.value,e.defaultValue||"",e.onChange),{focusableProps:h}=r3(e,t),m=Ld({...e,value:l}),{isInvalid:g,validationErrors:b,validationDetails:x}=m.displayValidation,{labelProps:C,fieldProps:D,descriptionProps:S,errorMessageProps:w}=Nm({...e,isInvalid:g,errorMessage:e.errorMessage||b}),T=Yo(e,{labelable:!0});const O={type:o,pattern:e.pattern};return J4(t,l,d),c6(e,m,t),A.useEffect(()=>{if(t.current instanceof Cs(t.current).HTMLTextAreaElement){let R=t.current;Object.defineProperty(R,"defaultValue",{get:()=>R.value,set:()=>{},configurable:!0})}},[t]),{labelProps:C,inputProps:Qt(T,n==="input"?O:void 0,{disabled:r,readOnly:s,required:i&&a==="native","aria-required":i&&a==="aria"||void 0,"aria-invalid":g||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:l,onChange:R=>d(R.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(A.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,...D}),descriptionProps:S,errorMessageProps:w,isInvalid:g,validationErrors:b,validationDetails:x}}var f6={};f6={Empty:"فارغ"};var d6={};d6={Empty:"Изпразни"};var h6={};h6={Empty:"Prázdné"};var p6={};p6={Empty:"Tom"};var m6={};m6={Empty:"Leer"};var g6={};g6={Empty:"Άδειο"};var v6={};v6={Empty:"Empty"};var y6={};y6={Empty:"Vacío"};var b6={};b6={Empty:"Tühjenda"};var $6={};$6={Empty:"Tyhjä"};var x6={};x6={Empty:"Vide"};var w6={};w6={Empty:"ריק"};var C6={};C6={Empty:"Prazno"};var S6={};S6={Empty:"Üres"};var E6={};E6={Empty:"Vuoto"};var D6={};D6={Empty:"空"};var A6={};A6={Empty:"비어 있음"};var T6={};T6={Empty:"Tuščias"};var P6={};P6={Empty:"Tukšs"};var _6={};_6={Empty:"Tom"};var M6={};M6={Empty:"Leeg"};var R6={};R6={Empty:"Pusty"};var F6={};F6={Empty:"Vazio"};var k6={};k6={Empty:"Vazio"};var O6={};O6={Empty:"Gol"};var I6={};I6={Empty:"Не заполнено"};var L6={};L6={Empty:"Prázdne"};var B6={};B6={Empty:"Prazen"};var V6={};V6={Empty:"Prazno"};var N6={};N6={Empty:"Tomt"};var j6={};j6={Empty:"Boş"};var K6={};K6={Empty:"Пусто"};var U6={};U6={Empty:"空"};var z6={};z6={Empty:"空白"};var q6={};q6={"ar-AE":f6,"bg-BG":d6,"cs-CZ":h6,"da-DK":p6,"de-DE":m6,"el-GR":g6,"en-US":v6,"es-ES":y6,"et-EE":b6,"fi-FI":$6,"fr-FR":x6,"he-IL":w6,"hr-HR":C6,"hu-HU":S6,"it-IT":E6,"ja-JP":D6,"ko-KR":A6,"lt-LT":T6,"lv-LV":P6,"nb-NO":_6,"nl-NL":M6,"pl-PL":R6,"pt-BR":F6,"pt-PT":k6,"ro-RO":O6,"ru-RU":I6,"sk-SK":L6,"sl-SI":B6,"sr-SP":V6,"sv-SE":N6,"tr-TR":j6,"uk-UA":K6,"zh-CN":U6,"zh-TW":z6};function rH(e){return e&&e.__esModule?e.default:e}function iH(e){const t=A.useRef(void 0);let{value:n,textValue:r,minValue:i,maxValue:s,isDisabled:o,isReadOnly:a,isRequired:l,onIncrement:d,onIncrementPage:h,onDecrement:m,onDecrementPage:g,onDecrementToMin:b,onIncrementToMax:x}=e;const C=lo(rH(q6),"@react-aria/spinbutton"),D=()=>clearTimeout(t.current);A.useEffect(()=>()=>D(),[]);let S=I=>{if(!(I.ctrlKey||I.metaKey||I.shiftKey||I.altKey||a))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}},w=A.useRef(!1),T=()=>{w.current=!0},O=()=>{w.current=!1},R=r===""?C.format("Empty"):(r||`${n}`).replace("-","−");A.useEffect(()=>{w.current&&(kW("assertive"),ql(R,"assertive"))},[R]);const k=On(I=>{D(),d==null||d(),t.current=window.setTimeout(()=>{(s===void 0||isNaN(s)||n===void 0||isNaN(n)||n<s)&&k(60)},I)}),K=On(I=>{D(),m==null||m(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&K(60)},I)});let q=I=>{I.preventDefault()},{addGlobalListener:ce,removeAllGlobalListeners:oe}=Ma();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":R,"aria-valuemin":i,"aria-valuemax":s,"aria-disabled":o||void 0,"aria-readonly":a||void 0,"aria-required":l||void 0,onKeyDown:S,onFocus:T,onBlur:O},incrementButtonProps:{onPressStart:()=>{k(400),ce(window,"contextmenu",q)},onPressEnd:()=>{D(),oe()},onFocus:T,onBlur:O},decrementButtonProps:{onPressStart:()=>{K(400),ce(window,"contextmenu",q)},onPressEnd:()=>{D(),oe()},onFocus:T,onBlur:O}}}var W6={};W6={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 H6={};H6={buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`};var G6={};G6={buttonLabel:"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 Y6={};Y6={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 Z6={};Z6={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 X6={};X6={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 J6={};J6={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 Q6={};Q6={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 eM={};eM={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 tM={};tM={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 nM={};nM={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 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:"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 sM={};sM={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 oM={};oM={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 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 uM={};uM={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 lM={};lM={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 cM={};cM={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 fM={};fM={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 dM={};dM={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 hM={};hM={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 pM={};pM={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 mM={};mM={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 gM={};gM={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 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:"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 bM={};bM={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 xM={};xM={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 wM={};wM={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 CM={};CM={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 SM={};SM={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 EM={};EM={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 DM={};DM={"ar-AE":W6,"bg-BG":H6,"cs-CZ":G6,"da-DK":Y6,"de-DE":Z6,"el-GR":X6,"en-US":J6,"es-ES":Q6,"et-EE":eM,"fi-FI":tM,"fr-FR":nM,"he-IL":rM,"hr-HR":iM,"hu-HU":sM,"it-IT":oM,"ja-JP":aM,"ko-KR":uM,"lt-LT":lM,"lv-LV":cM,"nb-NO":fM,"nl-NL":dM,"pl-PL":hM,"pt-BR":pM,"pt-PT":mM,"ro-RO":gM,"ru-RU":vM,"sk-SK":yM,"sl-SI":bM,"sr-SP":$M,"sv-SE":xM,"tr-TR":wM,"uk-UA":CM,"zh-CN":SM,"zh-TW":EM};const Js={top:"top",bottom:"top",left:"left",right:"left"},Yp={top:"bottom",bottom:"top",left:"right",right:"left"},sH={top:"left",left:"top"},Ob={top:"height",left:"width"},AM={width:"totalWidth",height:"totalHeight"},Uh={};let pr=typeof document<"u"?window.visualViewport:null;function xS(e){let t=0,n=0,r=0,i=0,s=0,o=0,a={};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,a.top=x.scrollTop||e.scrollTop,a.left=x.scrollLeft||e.scrollLeft,pr&&(s=pr.offsetTop,o=pr.offsetLeft)}else({width:t,height:n,top:s,left:o}=Wl(e)),a.top=e.scrollTop,a.left=e.scrollLeft,r=t,i=n;if(Z4()&&(e.tagName==="BODY"||e.tagName==="HTML")&&d){a.top=0,a.left=0;var g;s=(g=pr==null?void 0:pr.pageTop)!==null&&g!==void 0?g:0;var b;o=(b=pr==null?void 0:pr.pageLeft)!==null&&b!==void 0?b:0}return{width:t,height:n,totalWidth:r,totalHeight:i,scroll:a,top:s,left:o}}function oH(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function wS(e,t,n,r,i,s,o){var a;let l=(a=i.scroll[e])!==null&&a!==void 0?a:0,d=r[Ob[e]],h=r.scroll[Js[e]]+s,m=d+r.scroll[Js[e]]-s,g=t-l+o[e]-r[Js[e]],b=t-l+n+o[e]-r[Js[e]];return g<h?h-g:b>m?Math.max(m-b,h-g):0}function aH(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 CS(e){if(Uh[e])return Uh[e];let[t,n]=e.split(" "),r=Js[t]||"right",i=sH[r];Js[n]||(n="center");let s=Ob[r],o=Ob[i];return Uh[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:s,crossSize:o},Uh[e]}function Hv(e,t,n,r,i,s,o,a,l,d){let{placement:h,crossPlacement:m,axis:g,crossAxis:b,size:x,crossSize:C}=r,D={};var S;D[b]=(S=e[b])!==null&&S!==void 0?S:0;var w,T,O,R;m==="center"?D[b]+=(((w=e[C])!==null&&w!==void 0?w:0)-((T=n[C])!==null&&T!==void 0?T:0))/2:m!==b&&(D[b]+=((O=e[C])!==null&&O!==void 0?O:0)-((R=n[C])!==null&&R!==void 0?R:0)),D[b]+=s;const k=e[b]-n[C]+l+d,K=e[b]+e[C]-l-d;if(D[b]=rc(D[b],k,K),h===g){const q=a?o[x]:t[AM[x]];D[Yp[g]]=Math.floor(q-e[g]+i)}else D[g]=Math.floor(e[g]+e[x]+i);return D}function uH(e,t,n,r,i,s,o,a){const l=r?n.height:t[AM.height];var d;let h=e.top!=null?n.top+e.top:n.top+(l-((d=e.bottom)!==null&&d!==void 0?d:0)-o);var m,g,b,x,C,D;let S=a!=="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+o-(t.top+((x=t.scroll.top)!==null&&x!==void 0?x:0))-(((C=i.top)!==null&&C!==void 0?C:0)+((D=i.bottom)!==null&&D!==void 0?D:0)+s));return Math.min(t.height-s*2,S)}function SS(e,t,n,r,i,s){let{placement:o,axis:a,size:l}=s;var d,h;if(o===a)return Math.max(0,n[a]-e[a]-((d=e.scroll[a])!==null&&d!==void 0?d:0)+t[a]-((h=r[a])!==null&&h!==void 0?h:0)-r[Yp[a]]-i);var m;return Math.max(0,e[l]+e[a]+e.scroll[a]-t[a]-n[a]-n[l]-((m=r[a])!==null&&m!==void 0?m:0)-r[Yp[a]]-i)}function lH(e,t,n,r,i,s,o,a,l,d,h,m,g,b,x,C){let D=CS(e),{size:S,crossAxis:w,crossSize:T,placement:O,crossPlacement:R}=D,k=Hv(t,a,n,D,h,m,d,g,x,C),K=h,q=SS(a,d,t,i,s+h,D);if(o&&r[S]>q){let Oe=CS(`${Yp[O]} ${R}`),_e=Hv(t,a,n,Oe,h,m,d,g,x,C);SS(a,d,t,i,s+h,Oe)>q&&(D=Oe,k=_e,K=h)}let ce="bottom";D.axis==="top"?D.placement==="top"?ce="top":D.placement==="bottom"&&(ce="bottom"):D.crossAxis==="top"&&(D.crossPlacement==="top"?ce="bottom":D.crossPlacement==="bottom"&&(ce="top"));let oe=wS(w,k[w],n[T],a,l,s,d);k[w]+=oe;let I=uH(k,a,d,g,i,s,n.height,ce);b&&b<I&&(I=b),n.height=Math.min(n.height,I),k=Hv(t,a,n,D,K,m,d,g,x,C),oe=wS(w,k[w],n[T],a,l,s,d),k[w]+=oe;let be={},$e=t[w]+.5*t[T]-k[w]-i[Js[w]];const H=x/2+C;var ie,M,B,L;const me=Js[w]==="left"?((ie=i.left)!==null&&ie!==void 0?ie:0)+((M=i.right)!==null&&M!==void 0?M:0):((B=i.top)!==null&&B!==void 0?B:0)+((L=i.bottom)!==null&&L!==void 0?L:0),U=n[T]-me-x/2-C,te=t[w]+x/2-(k[w]+i[Js[w]]),xe=t[w]+t[T]-x/2-(k[w]+i[Js[w]]),Ee=rc($e,te,xe);return be[w]=rc(Ee,H,U),{position:k,maxHeight:I,arrowOffsetLeft:be.left,arrowOffsetTop:be.top,placement:D.placement}}function cH(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:s,shouldFlip:o,boundaryElement:a,offset:l,crossOffset:d,maxHeight:h,arrowSize:m=0,arrowBoundaryOffset:g=0}=e,b=r instanceof HTMLElement?fH(r):document.documentElement,x=b===document.documentElement;const C=window.getComputedStyle(b).position;let D=!!C&&C!=="static",S=x?Wl(n):ES(n,b);if(!x){let{marginTop:be,marginLeft:$e}=window.getComputedStyle(n);S.top+=parseInt(be,10)||0,S.left+=parseInt($e,10)||0}let w=Wl(r),T=aH(r);var O,R;w.width+=((O=T.left)!==null&&O!==void 0?O:0)+((R=T.right)!==null&&R!==void 0?R:0);var k,K;w.height+=((k=T.top)!==null&&k!==void 0?k:0)+((K=T.bottom)!==null&&K!==void 0?K:0);let q=oH(i),ce=xS(a),oe=xS(b),I=a.tagName==="BODY"?Wl(b):ES(b,a);return b.tagName==="HTML"&&a.tagName==="BODY"&&(oe.scroll.top=0,oe.scroll.left=0),lH(t,S,w,q,T,s,o,ce,oe,I,l,d,D,h,m,g)}function Wl(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),{scrollTop:s,scrollLeft:o,clientTop:a,clientLeft:l}=document.documentElement;return{top:t+s-a,left:n+o-l,width:r,height:i}}function ES(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:i,left:s,width:o,height:a}=e.getBoundingClientRect();r={top:i,left:s,width:o,height:a}}else{r=Wl(e);let i=Wl(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 fH(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!DS(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!DS(t);)t=t.parentElement;return t||document.documentElement}function DS(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 TM=new WeakMap;function dH(e){let{triggerRef:t,isOpen:n,onClose:r}=e;A.useEffect(()=>{if(!n||r===null)return;let i=s=>{let o=s.target;if(!t.current||o instanceof Node&&!o.contains(t.current)||s.target instanceof HTMLInputElement||s.target instanceof HTMLTextAreaElement)return;let a=r||TM.get(t.current);a&&a()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let Gn=typeof document<"u"?window.visualViewport:null;function hH(e){let{direction:t}=kr(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:s=i,placement:o="bottom",containerPadding:a=12,shouldFlip:l=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:h=0,crossOffset:m=0,shouldUpdatePosition:g=!0,isOpen:b=!0,onClose:x,maxHeight:C,arrowBoundaryOffset:D=0}=e,[S,w]=A.useState(null),T=[g,o,i.current,r.current,s.current,a,l,d,h,m,b,t,C,D,n],O=A.useRef(Gn==null?void 0:Gn.scale);A.useEffect(()=>{b&&(O.current=Gn==null?void 0:Gn.scale)},[b]);let R=A.useCallback(()=>{if(g===!1||!b||!i.current||!r.current||!d||(Gn==null?void 0:Gn.scale)!==O.current)return;let oe=null;if(s.current&&s.current.contains(document.activeElement)){var I;let L=(I=document.activeElement)===null||I===void 0?void 0:I.getBoundingClientRect(),me=s.current.getBoundingClientRect();var be;if(oe={type:"top",offset:((be=L==null?void 0:L.top)!==null&&be!==void 0?be:0)-me.top},oe.offset>me.height/2){oe.type="bottom";var $e;oe.offset=(($e=L==null?void 0:L.bottom)!==null&&$e!==void 0?$e:0)-me.bottom}}let H=i.current;if(!C&&i.current){var ie;H.style.top="0px",H.style.bottom="";var M;H.style.maxHeight=((M=(ie=window.visualViewport)===null||ie===void 0?void 0:ie.height)!==null&&M!==void 0?M:window.innerHeight)+"px"}let B=cH({placement:mH(o,t),overlayNode:i.current,targetNode:r.current,scrollNode:s.current||i.current,padding:a,shouldFlip:l,boundaryElement:d,offset:h,crossOffset:m,maxHeight:C,arrowSize:n,arrowBoundaryOffset:D});if(B.position){if(H.style.top="",H.style.bottom="",H.style.left="",H.style.right="",Object.keys(B.position).forEach(L=>H.style[L]=B.position[L]+"px"),H.style.maxHeight=B.maxHeight!=null?B.maxHeight+"px":"",oe&&document.activeElement&&s.current){let L=document.activeElement.getBoundingClientRect(),me=s.current.getBoundingClientRect(),U=L[oe.type]-me[oe.type];s.current.scrollTop+=U-oe.offset}w(B)}},T);gn(R,T),pH(R),TC({ref:i,onResize:R}),TC({ref:r,onResize:R});let k=A.useRef(!1);gn(()=>{let oe,I=()=>{k.current=!0,clearTimeout(oe),oe=setTimeout(()=>{k.current=!1},500),R()},be=()=>{k.current&&I()};return Gn==null||Gn.addEventListener("resize",I),Gn==null||Gn.addEventListener("scroll",be),()=>{Gn==null||Gn.removeEventListener("resize",I),Gn==null||Gn.removeEventListener("scroll",be)}},[R]);let K=A.useCallback(()=>{k.current||x==null||x()},[x,k]);dH({triggerRef:r,isOpen:b,onClose:x&&K});var q,ce;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...S==null?void 0:S.position,maxHeight:(q=S==null?void 0:S.maxHeight)!==null&&q!==void 0?q:"100vh"}},placement:(ce=S==null?void 0:S.placement)!==null&&ce!==void 0?ce:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:S==null?void 0:S.arrowOffsetLeft,top:S==null?void 0:S.arrowOffsetTop}},updatePosition:R}}function pH(e){gn(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function mH(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const qs=[];function gH(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:s=!1,isKeyboardDismissDisabled:o=!1,shouldCloseOnInteractOutside:a}=e;A.useEffect(()=>{if(i&&!qs.includes(t))return qs.push(t),()=>{let x=qs.indexOf(t);x>=0&&qs.splice(x,1)}},[i,t]);let l=()=>{qs[qs.length-1]===t&&n&&n()},d=x=>{(!a||a(x.target))&&qs[qs.length-1]===t&&(x.stopPropagation(),x.preventDefault())},h=x=>{(!a||a(x.target))&&(qs[qs.length-1]===t&&(x.stopPropagation(),x.preventDefault()),l())},m=x=>{x.key==="Escape"&&!o&&!x.nativeEvent.isComposing&&(x.stopPropagation(),x.preventDefault(),l())};tq({ref:t,onInteractOutside:s&&i?h:void 0,onInteractOutsideStart:d});let{focusWithinProps:g}=$c({isDisabled:!r,onBlurWithin:x=>{!x.relatedTarget||AW(x.relatedTarget)||(!a||a(x.relatedTarget))&&(n==null||n())}}),b=x=>{x.target===x.currentTarget&&x.preventDefault()};return{overlayProps:{onKeyDown:m,...g},underlayProps:{onPointerDown:b}}}function vH(e,t,n){let{type:r}=e,{isOpen:i}=t;A.useEffect(()=>{n&&n.current&&TM.set(n.current,t.close)});let s;r==="menu"?s=!0:r==="listbox"&&(s="listbox");let o=Hr();return{triggerProps:{"aria-haspopup":s,"aria-expanded":i,"aria-controls":i?o:void 0,onPress:t.toggle},overlayProps:{id:o}}}const Gv=typeof document<"u"&&window.visualViewport,yH=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let zh=0,Yv;function bH(e={}){let{isDisabled:t}=e;gn(()=>{if(!t)return zh++,zh===1&&(Td()?Yv=xH():Yv=$H()),()=>{zh--,zh===0&&Yv()}},[t])}function $H(){return Ru(_l(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),_l(document.documentElement,"overflow","hidden"))}function xH(){let e,t,n=d=>{e=Mm(d.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=_l(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;wH(h)&&(a(),h.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{h.style.transform="",Gv&&(Gv.height<window.innerHeight?requestAnimationFrame(()=>{AS(h)}):Gv.addEventListener("resize",()=>AS(h),{once:!0}))}))},o=null,a=()=>{if(o)return;let d=()=>{window.scrollTo(0,0)},h=window.pageXOffset,m=window.pageYOffset;o=Ru(pf(window,"scroll",d),_l(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),_l(document.documentElement,"overflow","hidden"),_l(document.body,"marginTop",`-${m}px`),()=>{window.scrollTo(h,m)}),window.scrollTo(0,0)},l=Ru(pf(document,"touchstart",n,{passive:!1,capture:!0}),pf(document,"touchmove",r,{passive:!1,capture:!0}),pf(document,"touchend",i,{passive:!1,capture:!0}),pf(document,"focus",s,!0));return()=>{t==null||t(),o==null||o(),l()}}function _l(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function pf(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function AS(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=Mm(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 wH(e){return e instanceof HTMLInputElement&&!yH.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const CH=A.createContext({});function SH(){var e;return(e=A.useContext(CH))!==null&&e!==void 0?e:{}}let mf=new WeakMap,ii=[];function PM(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=mf.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),mf.set(l,h+1))};ii.length&&ii[ii.length-1].disconnect(),i(t);let o=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)}});o.observe(t,{childList:!0,subtree:!0});let a={visibleNodes:n,hiddenNodes:r,observe(){o.observe(t,{childList:!0,subtree:!0})},disconnect(){o.disconnect()}};return ii.push(a),()=>{o.disconnect();for(let l of r){let d=mf.get(l);d!=null&&(d===1?(l.removeAttribute("aria-hidden"),mf.delete(l)):mf.set(l,d-1))}a===ii[ii.length-1]?(ii.pop(),ii.length&&ii[ii.length-1].observe()):ii.splice(ii.indexOf(a),1)}}function EH(e){let t=ii[ii.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function DH(e,t){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:s,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:a,...l}=e,d=l.trigger==="SubmenuTrigger",{overlayProps:h,underlayProps:m}=gH({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!s||d,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:a},i??r),{overlayProps:g,arrowProps:b,placement:x}=hH({...l,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:s&&!d?t.close:null});return bH({isDisabled:s||!t.isOpen}),gn(()=>{if(t.isOpen&&r.current){var C,D;return s?EH((C=i==null?void 0:i.current)!==null&&C!==void 0?C:r.current):PM([(D=i==null?void 0:i.current)!==null&&D!==void 0?D:r.current])}},[s,t.isOpen,r,i]),{popoverProps:Qt(h,g),arrowProps:b,underlayProps:m,placement:x}}const _M=A.createContext(null);function AH(e){let t=G4(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,s]=A.useState(!1),o=A.useMemo(()=>({contain:i,setContain:s}),[i,s]),{getContainer:a}=SH();if(!e.portalContainer&&a&&(n=a()),!n)return null;let l=e.children;return e.disableFocusManagement||(l=A.createElement(SW,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},l)),l=A.createElement(_M.Provider,{value:o},A.createElement(Jz,null,l)),Ko.createPortal(l,n)}function TH(){let e=A.useContext(_M),t=e==null?void 0:e.setContain;gn(()=>{t==null||t(!0)},[t])}const jm=new WeakMap;function PH(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function MM(e,t){let n=jm.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${PH(t)}`}function Ib(e){return lp()?e.altKey:e.ctrlKey}function mp(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 RM=new WeakMap;function _H(e){let t=Hr();return RM.set(e,t),t}function MH(e){return RM.get(e)}const RH=1e3;function FH(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=A.useRef({search:"",timeout:void 0}).current,s=o=>{let a=kH(o.key);if(!(!a||o.ctrlKey||o.metaKey||!o.currentTarget.contains(o.target))){if(a===" "&&i.search.trim().length>0&&(o.preventDefault(),"continuePropagation"in o||o.stopPropagation()),i.search+=a,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=""},RH)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?s:void 0}}}function kH(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function FM(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:s=!1,disallowEmptySelection:o=!1,disallowSelectAll:a=!1,escapeKeyBehavior:l="clearSelection",selectOnFocus:d=t.selectionBehavior==="replace",disallowTypeAhead:h=!1,shouldUseVirtualFocus:m,allowsTabNavigation:g=!1,isVirtualized:b,scrollRef:x=r,linkBehavior:C="action"}=e,{direction:D}=kr(),S=_m(),w=M=>{var B;if(M.altKey&&M.key==="Tab"&&M.preventDefault(),!(!((B=r.current)===null||B===void 0)&&B.contains(M.target)))return;const L=(Ae,Ie)=>{if(Ae!=null){if(t.isLink(Ae)&&C==="selection"&&d&&!Ib(M)){Ko.flushSync(()=>{t.setFocusedKey(Ae,Ie)});let et=mp(r,Ae),xt=t.getItemProps(Ae);et&&S.open(et,M,xt.href,xt.routerOptions);return}if(t.setFocusedKey(Ae,Ie),t.isLink(Ae)&&C==="override")return;M.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Ae):d&&!Ib(M)&&t.replaceSelection(Ae)}};switch(M.key){case"ArrowDown":if(n.getKeyBelow){var me,U,te;let Ae=t.focusedKey!=null?(me=n.getKeyBelow)===null||me===void 0?void 0:me.call(n,t.focusedKey):(U=n.getFirstKey)===null||U===void 0?void 0:U.call(n);Ae==null&&s&&(Ae=(te=n.getFirstKey)===null||te===void 0?void 0:te.call(n,t.focusedKey)),Ae!=null&&(M.preventDefault(),L(Ae))}break;case"ArrowUp":if(n.getKeyAbove){var xe,Ee,Oe;let Ae=t.focusedKey!=null?(xe=n.getKeyAbove)===null||xe===void 0?void 0:xe.call(n,t.focusedKey):(Ee=n.getLastKey)===null||Ee===void 0?void 0:Ee.call(n);Ae==null&&s&&(Ae=(Oe=n.getLastKey)===null||Oe===void 0?void 0:Oe.call(n,t.focusedKey)),Ae!=null&&(M.preventDefault(),L(Ae))}break;case"ArrowLeft":if(n.getKeyLeftOf){var _e,Ye,He;let Ae=t.focusedKey!=null?(_e=n.getKeyLeftOf)===null||_e===void 0?void 0:_e.call(n,t.focusedKey):null;Ae==null&&s&&(Ae=D==="rtl"?(Ye=n.getFirstKey)===null||Ye===void 0?void 0:Ye.call(n,t.focusedKey):(He=n.getLastKey)===null||He===void 0?void 0:He.call(n,t.focusedKey)),Ae!=null&&(M.preventDefault(),L(Ae,D==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var De,Ke,We;let Ae=t.focusedKey!=null?(De=n.getKeyRightOf)===null||De===void 0?void 0:De.call(n,t.focusedKey):null;Ae==null&&s&&(Ae=D==="rtl"?(Ke=n.getLastKey)===null||Ke===void 0?void 0:Ke.call(n,t.focusedKey):(We=n.getFirstKey)===null||We===void 0?void 0:We.call(n,t.focusedKey)),Ae!=null&&(M.preventDefault(),L(Ae,D==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&M.shiftKey)return;M.preventDefault();let Ae=n.getFirstKey(t.focusedKey,Dl(M));t.setFocusedKey(Ae),Ae!=null&&(Dl(M)&&M.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Ae):d&&t.replaceSelection(Ae))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&M.shiftKey)return;M.preventDefault();let Ae=n.getLastKey(t.focusedKey,Dl(M));t.setFocusedKey(Ae),Ae!=null&&(Dl(M)&&M.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Ae):d&&t.replaceSelection(Ae))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let Ae=n.getKeyPageBelow(t.focusedKey);Ae!=null&&(M.preventDefault(),L(Ae))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let Ae=n.getKeyPageAbove(t.focusedKey);Ae!=null&&(M.preventDefault(),L(Ae))}break;case"a":Dl(M)&&t.selectionMode==="multiple"&&a!==!0&&(M.preventDefault(),t.selectAll());break;case"Escape":l==="clearSelection"&&!o&&t.selectedKeys.size!==0&&(M.stopPropagation(),M.preventDefault(),t.clearSelection());break;case"Tab":if(!g){if(M.shiftKey)r.current.focus();else{let Ae=Ur(r.current,{tabbable:!0}),Ie,et;do et=Ae.lastChild(),et&&(Ie=et);while(et);Ie&&!Ie.contains(document.activeElement)&&Ei(Ie)}break}}},T=A.useRef({top:0,left:0});Zs(x,"scroll",b?void 0:()=>{var M,B,L,me;T.current={top:(L=(M=x.current)===null||M===void 0?void 0:M.scrollTop)!==null&&L!==void 0?L:0,left:(me=(B=x.current)===null||B===void 0?void 0:B.scrollLeft)!==null&&me!==void 0?me:0}});let O=M=>{if(t.isFocused){M.currentTarget.contains(M.target)||t.setFocused(!1);return}if(M.currentTarget.contains(M.target)){if(t.setFocused(!0),t.focusedKey==null){var B,L;let te=Ee=>{Ee!=null&&(t.setFocusedKey(Ee),d&&!t.isSelected(Ee)&&t.replaceSelection(Ee))},xe=M.relatedTarget;var me,U;xe&&M.currentTarget.compareDocumentPosition(xe)&Node.DOCUMENT_POSITION_FOLLOWING?te((me=t.lastSelectedKey)!==null&&me!==void 0?me:(B=n.getLastKey)===null||B===void 0?void 0:B.call(n)):te((U=t.firstSelectedKey)!==null&&U!==void 0?U:(L=n.getFirstKey)===null||L===void 0?void 0:L.call(n))}else!b&&x.current&&(x.current.scrollTop=T.current.top,x.current.scrollLeft=T.current.left);if(t.focusedKey!=null&&x.current){let te=mp(r,t.focusedKey);te instanceof HTMLElement&&(!te.contains(document.activeElement)&&!m&&Ei(te),ed()==="keyboard"&&Bp(te,{containingElement:r.current}))}}},R=M=>{M.currentTarget.contains(M.relatedTarget)||t.setFocused(!1)},k=A.useRef(!1);Zs(r,Rz,m?M=>{let{detail:B}=M;M.stopPropagation(),t.setFocused(!0),(B==null?void 0:B.focusStrategy)==="first"&&(k.current=!0)}:void 0);let K=On(()=>{var M,B;let L=(B=(M=n.getFirstKey)===null||M===void 0?void 0:M.call(n))!==null&&B!==void 0?B:null;L==null?(S_(r.current),t.collection.size>0&&(k.current=!1)):(t.setFocusedKey(L),k.current=!1)});AC(()=>{k.current&&K()},[t.collection,K]);let q=On(()=>{t.collection.size>0&&(k.current=!1)});AC(()=>{q()},[t.focusedKey,q]),Zs(r,Mz,m?M=>{var B;M.stopPropagation(),t.setFocused(!1),!((B=M.detail)===null||B===void 0)&&B.clearFocusKey&&t.setFocusedKey(null)}:void 0);const ce=A.useRef(i),oe=A.useRef(!1);A.useEffect(()=>{if(ce.current){var M,B;let U=null;var L;i==="first"&&(U=(L=(M=n.getFirstKey)===null||M===void 0?void 0:M.call(n))!==null&&L!==void 0?L:null);var me;i==="last"&&(U=(me=(B=n.getLastKey)===null||B===void 0?void 0:B.call(n))!==null&&me!==void 0?me:null);let te=t.selectedKeys;if(te.size){for(let xe of te)if(t.canSelectItem(xe)){U=xe;break}}t.setFocused(!0),t.setFocusedKey(U),U==null&&!m&&r.current&&Ou(r.current),t.collection.size>0&&(ce.current=!1,oe.current=!0)}});let I=A.useRef(t.focusedKey);A.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==I.current||oe.current)&&x.current&&r.current){let M=ed(),B=mp(r,t.focusedKey);if(!(B instanceof HTMLElement))return;(M==="keyboard"||oe.current)&&(S5(x.current,B),M!=="virtual"&&Bp(B,{containingElement:r.current}))}!m&&t.isFocused&&t.focusedKey==null&&I.current!=null&&r.current&&Ou(r.current),I.current=t.focusedKey,oe.current=!1}),Zs(r,"react-aria-focus-scope-restore",M=>{M.preventDefault(),t.setFocused(!0)});let be={onKeyDown:w,onFocus:O,onBlur:R,onMouseDown(M){x.current===M.target&&M.preventDefault()}},{typeSelectProps:$e}=FH({keyboardDelegate:n,selectionManager:t});h||(be=Qt($e,be));let H;m||(H=t.focusedKey==null?0:-1);let ie=_H(t.collection);return{collectionProps:Qt(be,{tabIndex:H,"data-collection":ie})}}function OH(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:s,shouldUseVirtualFocus:o,focus:a,isDisabled:l,onAction:d,allowsDifferentPressOrigin:h,linkBehavior:m="action"}=e,g=_m();t=Hr(t);let b=L=>{if(L.pointerType==="keyboard"&&Ib(L))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(m==="selection"&&i.current){let me=n.getItemProps(r);g.open(i.current,L,me.href,me.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):L&&L.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||L&&(Dl(L)||L.pointerType==="touch"||L.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};A.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(o?S_(i.current):a?a():document.activeElement!==i.current&&i.current&&Ou(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,o]),l=l||n.isDisabled(r);let x={};!o&&!l?x={tabIndex:r===n.focusedKey?0:-1,onFocus(L){L.target===i.current&&n.setFocusedKey(r)}}:l&&(x.onMouseDown=L=>{L.preventDefault()});let C=n.isLink(r)&&m==="override",D=n.isLink(r)&&m!=="selection"&&m!=="none",S=!l&&n.canSelectItem(r)&&!C,w=(d||D)&&!l,T=w&&(n.selectionBehavior==="replace"?!S:!S||n.isEmpty),O=w&&S&&n.selectionBehavior==="replace",R=T||O,k=A.useRef(null),K=R&&S,q=A.useRef(!1),ce=A.useRef(!1),oe=L=>{if(d&&d(),D&&i.current){let me=n.getItemProps(r);g.open(i.current,L,me.href,me.routerOptions)}},I={ref:i};s?(I.onPressStart=L=>{k.current=L.pointerType,q.current=K,L.pointerType==="keyboard"&&(!R||PS())&&b(L)},h?(I.onPressUp=T?void 0:L=>{L.pointerType==="mouse"&&S&&b(L)},I.onPress=T?oe:L=>{L.pointerType!=="keyboard"&&L.pointerType!=="mouse"&&S&&b(L)}):I.onPress=L=>{if(T||O&&L.pointerType!=="mouse"){if(L.pointerType==="keyboard"&&!TS())return;oe(L)}else L.pointerType!=="keyboard"&&S&&b(L)}):(I.onPressStart=L=>{k.current=L.pointerType,q.current=K,ce.current=T,S&&(L.pointerType==="mouse"&&!T||L.pointerType==="keyboard"&&(!w||PS()))&&b(L)},I.onPress=L=>{(L.pointerType==="touch"||L.pointerType==="pen"||L.pointerType==="virtual"||L.pointerType==="keyboard"&&R&&TS()||L.pointerType==="mouse"&&ce.current)&&(R?oe(L):S&&b(L))}),x["data-collection"]=MH(n.collection),x["data-key"]=r,I.preventFocusOnPress=o,o&&(I=Qt(I,{onPressStart(L){L.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(L){L.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}}));let{pressProps:be,isPressed:$e}=Md(I),H=O?L=>{k.current==="mouse"&&(L.stopPropagation(),L.preventDefault(),oe(L))}:void 0,{longPressProps:ie}=B5({isDisabled:!K,onLongPress(L){L.pointerType==="touch"&&(b(L),n.setSelectionBehavior("toggle"))}}),M=L=>{k.current==="touch"&&q.current&&L.preventDefault()},B=n.isLink(r)?L=>{Fu.isOpening||L.preventDefault()}:void 0;return{itemProps:Qt(x,S||T||o?be:{},K?ie:{},{onDoubleClick:H,onDragStartCapture:M,onClick:B,id:t},o?{onMouseDown:L=>L.preventDefault()}:void 0),isPressed:$e,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:l,allowsSelection:S,hasAction:R}}function TS(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function PS(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class _S{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?mp(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 kM{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 o=s;do{if(i=n(i),i==null)break;s=this.layoutDelegate.getItemRect(i)}while(s&&r(o,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&&!Qf(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&&!Qf(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 o=s.textValue.slice(0,t.length);if(s.textValue&&this.collator.compare(o,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 _S(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 _S(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function IH(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:s,layoutDelegate:o}=e,a=b_({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,d=A.useMemo(()=>s||new kM({collection:n,disabledKeys:r,disabledBehavior:l,ref:i,collator:a,layoutDelegate:o}),[s,o,n,r,i,a,l]),{collectionProps:h}=FM({...e,ref:i,selectionManager:t,keyboardDelegate:d});return{listProps:h}}function LH(e,t,n){let r=Yo(e,{labelable:!0}),i=e.selectionBehavior||"toggle",s=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&s==="action"&&(s="override");let{listProps:o}=IH({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:s}),{focusWithinProps:a}=$c({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=Hr(e.id);jm.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}=Vm({...e,id:l,labelElementType:"span"});return{labelProps:d,listBoxProps:Qt(r,a,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...Qt(h,o)})}}function OM(e){return null}OM.getCollectionNode=function*(t,n){let{childItems:r,title:i,children:s}=t,o=t.title||t.children,a=t.textValue||(typeof o=="string"?o:"")||t["aria-label"]||"";!a&&!(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:o,textValue:a,"aria-label":t["aria-label"],hasChildNodes:BH(t),*childNodes(){if(r)for(let l of r)yield{type:"item",value:l};else if(i){let l=[];A.Children.forEach(s,d=>{l.push({type:"item",element:d})}),yield*l}}}};function BH(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&A.Children.count(e.children)>0)}let VH=OM;class NH{build(t,n){return this.context=n,MS(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(A.isValidElement(n)&&n.type===A.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=[];A.Children.forEach(n,o=>{o&&i.push(o)});let s=0;for(let o of i){let a=this.getFullNode({element:o,index:s},{});for(let l of a)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 o;let a=(o=s.key)!==null&&o!==void 0?o:s.id;if(a==null)throw new Error("No key found for item");return a}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,i){if(A.isValidElement(t.element)&&t.element.type===A.Fragment){let D=[];A.Children.forEach(t.element.props.children,w=>{D.push(w)});var s;let S=(s=t.index)!==null&&s!==void 0?s:0;for(const w of D)yield*this.getFullNode({element:w,index:S++},n,r,i);return}let o=t.element;if(!o&&t.value&&n&&n.renderer){let D=this.cache.get(t.value);if(D&&(!D.shouldInvalidate||!D.shouldInvalidate(this.context))){D.index=t.index,D.parentKey=i?i.key:null,yield D;return}o=n.renderer(t.value)}if(A.isValidElement(o)){let D=o.type;if(typeof D!="function"&&typeof D.getCollectionNode!="function"){let O=o.type;throw new Error(`Unknown element <${O}> in collection.`)}let S=D.getCollectionNode(o.props,this.context);var a;let w=(a=t.index)!==null&&a!==void 0?a:0,T=S.next();for(;!T.done&&T.value;){let O=T.value;t.index=w;var l;let R=(l=O.key)!==null&&l!==void 0?l:null;R==null&&(R=O.element?null:this.getKey(o,t,n,r));let K=[...this.getFullNode({...O,key:R,index:w,wrapper:jH(t.wrapper,O.wrapper)},this.getChildState(n,O),r?`${r}${o.key}`:o.key,i)];for(let q of K){var d,h;q.value=(h=(d=O.value)!==null&&d!==void 0?d:t.value)!==null&&h!==void 0?h:null,q.value&&this.cache.set(q.value,q);var m;if(t.type&&q.type!==t.type)throw new Error(`Unsupported type <${Zv(q.type)}> in <${Zv((m=i==null?void 0:i.type)!==null&&m!==void 0?m:"unknown parent type")}>. Only <${Zv(t.type)}> is supported.`);w++,yield q}T=S.next(K)}return}if(t.key==null||t.type==null)return;let g=this;var b,x;let C={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:(b=t.value)!==null&&b!==void 0?b:null,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:(x=t.textValue)!==null&&x!==void 0?x:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:MS(function*(){if(!t.hasChildNodes||!t.childNodes)return;let D=0;for(let S of t.childNodes()){S.key!=null&&(S.key=`${C.key}${S.key}`);let w=g.getFullNode({...S,index:D},g.getChildState(n,S),C.key,C);for(let T of w)D++,yield T}})};yield C}constructor(){this.cache=new WeakMap}}function MS(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 jH(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Zv(e){return e[0].toUpperCase()+e.slice(1)}function KH(e,t,n){let r=A.useMemo(()=>new NH,[]),{children:i,items:s,collection:o}=e;return A.useMemo(()=>{if(o)return o;let l=r.build({children:i,items:s},n);return t(l)},[r,i,s,o,n,t])}function Km(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function UH(e){return zH(e)}function zH(e,t){for(let n of e)return n}function Xv(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...RS(e,t),t],i=[...RS(e,n),n],s=r.slice(0,i.length).findIndex((o,a)=>o!==i[a]);return s!==-1?(t=r[s],n=i[s],t.index-n.index):r.findIndex(o=>o===n)>=0?1:(i.findIndex(o=>o===t)>=0,-1)}function RS(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 FS=new WeakMap;function IM(e){let t=FS.get(e);if(t!=null)return t;let n=0,r=i=>{for(let s of i)s.type==="section"?r(Km(s,e)):n++};return r(e),FS.set(e,n),n}function qH(e,t,n){var r,i;let{key:s}=e,o=jm.get(t);var a;let l=(a=e.isDisabled)!==null&&a!==void 0?a: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:o==null?void 0:o.shouldSelectOnPressUp;var b;let x=(b=e.shouldFocusOnHover)!==null&&b!==void 0?b:o==null?void 0:o.shouldFocusOnHover;var C;let D=(C=e.shouldUseVirtualFocus)!==null&&C!==void 0?C:o==null?void 0:o.shouldUseVirtualFocus;var S;let w=(S=e.isVirtualized)!==null&&S!==void 0?S:o==null?void 0:o.isVirtualized,T=tc(),O=tc(),R={role:"option","aria-disabled":l||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?h:void 0};Wo()&&Z4()||(R["aria-label"]=e["aria-label"],R["aria-labelledby"]=T,R["aria-describedby"]=O);let k=t.collection.getItem(s);if(w){let B=Number(k==null?void 0:k.index);R["aria-posinset"]=Number.isNaN(B)?void 0:B+1,R["aria-setsize"]=IM(t.collection)}let K=o!=null&&o.onAction?()=>{var B;return o==null||(B=o.onAction)===null||B===void 0?void 0:B.call(o,s)}:void 0,q=MM(t,s),{itemProps:ce,isPressed:oe,isFocused:I,hasAction:be,allowsSelection:$e}=OH({selectionManager:t.selectionManager,key:s,ref:n,shouldSelectOnPressUp:g,allowsDifferentPressOrigin:g&&x,isVirtualized:w,shouldUseVirtualFocus:D,isDisabled:l,onAction:K||!(k==null||(r=k.props)===null||r===void 0)&&r.onAction?Ru(k==null||(i=k.props)===null||i===void 0?void 0:i.onAction,K):void 0,linkBehavior:o==null?void 0:o.linkBehavior,id:q}),{hoverProps:H}=eq({isDisabled:l||!x,onHoverStart(){LC()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(s))}}),ie=Yo(k==null?void 0:k.props);delete ie.id;let M=Dz(k==null?void 0:k.props);return{optionProps:{...R,...Qt(ie,ce,H,M),id:q},labelProps:{id:T},descriptionProps:{id:O},isFocused:I,isFocusVisible:I&&t.selectionManager.isFocused&&LC(),isSelected:h,isDisabled:l,isPressed:oe,allowsSelection:$e,hasAction:be}}var LM={};LM={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var BM={};BM={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var VM={};VM={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var NM={};NM={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var jM={};jM={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var KM={};KM={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var UM={};UM={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var zM={};zM={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var qM={};qM={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var WM={};WM={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var HM={};HM={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var GM={};GM={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var YM={};YM={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var ZM={};ZM={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var XM={};XM={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var JM={};JM={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var QM={};QM={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var eR={};eR={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var tR={};tR={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var nR={};nR={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var rR={};rR={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var iR={};iR={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var sR={};sR={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var oR={};oR={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var aR={};aR={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var uR={};uR={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var lR={};lR={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var cR={};cR={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var fR={};fR={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var dR={};dR={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var hR={};hR={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var pR={};pR={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var mR={};mR={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var gR={};gR={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var vR={};vR={"ar-AE":LM,"bg-BG":BM,"cs-CZ":VM,"da-DK":NM,"de-DE":jM,"el-GR":KM,"en-US":UM,"es-ES":zM,"et-EE":qM,"fi-FI":WM,"fr-FR":HM,"he-IL":GM,"hr-HR":YM,"hu-HU":ZM,"it-IT":XM,"ja-JP":JM,"ko-KR":QM,"lt-LT":eR,"lv-LV":tR,"nb-NO":nR,"nl-NL":rR,"pl-PL":iR,"pt-BR":sR,"pt-PT":oR,"ro-RO":aR,"ru-RU":uR,"sk-SK":lR,"sl-SI":cR,"sr-SP":fR,"sv-SE":dR,"tr-TR":hR,"uk-UA":pR,"zh-CN":mR,"zh-TW":gR};function WH(e){return e&&e.__esModule?e.default:e}function HH(e,t,n){let{type:r="menu",isDisabled:i,trigger:s="press"}=e,o=Hr(),{triggerProps:a,overlayProps:l}=vH({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=lo(WH(vR),"@react-aria/menu"),{longPressProps:m}=B5({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&&(Ei(b.target),t.open(b.pointerType==="virtual"?"first":null))},onPress(b){b.pointerType==="touch"&&!i&&(Ei(b.target),t.toggle())}};return delete a.onPress,{menuTriggerProps:{...a,...s==="press"?g:m,id:o,onKeyDown:d},menuProps:{...l,"aria-labelledby":o,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function GH(e){return e&&e.__esModule?e.default:e}function YH(e,t){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:s,keyboardDelegate:o,layoutDelegate:a,shouldFocusWrap:l,isReadOnly:d,isDisabled:h}=e,m=A.useRef(null);n=n??m;let g=lo(GH(DM),"@react-aria/combobox"),{menuTriggerProps:b,menuProps:x}=HH({type:"listbox",isDisabled:h||d},t,n);jm.set(t,{id:x.id});let{collection:C}=t,{disabledKeys:D}=t.selectionManager,S=A.useMemo(()=>o||new kM({collection:C,disabledKeys:D,ref:s,layoutDelegate:a}),[o,a,C,D,s]),{collectionProps:w}=FM({selectionManager:t.selectionManager,keyboardDelegate:S,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:l,ref:i,isVirtualized:!0}),T=_m(),O=Ae=>{if(!Ae.nativeEvent.isComposing)switch(Ae.key){case"Enter":case"Tab":if(t.isOpen&&Ae.key==="Enter"&&Ae.preventDefault(),t.isOpen&&s.current&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){let Ie=s.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);if(Ae.key==="Enter"&&Ie instanceof HTMLAnchorElement){let et=t.collection.getItem(t.selectionManager.focusedKey);et&&T.open(Ie,Ae,et.props.href,et.props.routerOptions)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&Ae.continuePropagation(),t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null);break}},R=Ae=>{var Ie;let et=(n==null?void 0:n.current)&&n.current===Ae.relatedTarget,xt=(Ie=r.current)===null||Ie===void 0?void 0:Ie.contains(Ae.relatedTarget);et||xt||(e.onBlur&&e.onBlur(Ae),t.setFocused(!1))},k=Ae=>{t.isFocused||(e.onFocus&&e.onFocus(Ae),t.setFocused(!0))},{isInvalid:K,validationErrors:q,validationDetails:ce}=t.displayValidation,{labelProps:oe,inputProps:I,descriptionProps:be,errorMessageProps:$e}=nH({...e,onChange:t.setInputValue,onKeyDown:d?e.onKeyDown:Ru(t.isOpen&&w.onKeyDown,O,e.onKeyDown),onBlur:R,value:t.inputValue,onFocus:k,autoComplete:"off",validate:void 0,[sc]:t},i),H=Ae=>{if(Ae.pointerType==="touch"){var Ie;(Ie=i.current)===null||Ie===void 0||Ie.focus(),t.toggle(null,"manual")}},ie=Ae=>{if(Ae.pointerType!=="touch"){var Ie;(Ie=i.current)===null||Ie===void 0||Ie.focus(),t.toggle(Ae.pointerType==="keyboard"||Ae.pointerType==="virtual"?"first":null,"manual")}},M=nc({id:b.id,"aria-label":g.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||oe.id}),B=nc({id:x.id,"aria-label":g.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||oe.id}),L=A.useRef(0),me=Ae=>{if(h||d)return;if(Ae.timeStamp-L.current<500){var Ie;Ae.preventDefault(),(Ie=i.current)===null||Ie===void 0||Ie.focus();return}let et=Ae.target.getBoundingClientRect(),xt=Ae.changedTouches[0],fn=Math.ceil(et.left+.5*et.width),bt=Math.ceil(et.top+.5*et.height);if(xt.clientX===fn&&xt.clientY===bt){var Rt;Ae.preventDefault(),(Rt=i.current)===null||Rt===void 0||Rt.focus(),t.toggle(null,"manual"),L.current=Ae.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 Ee;let Oe=(Ee=t.selectionManager.focusedKey)!==null&&Ee!==void 0?Ee:null,_e=A.useRef(xe),Ye=A.useRef(Oe);A.useEffect(()=>{if(lp()&&U!=null&&Oe!=null&&Oe!==Ye.current){let Ie=t.selectionManager.isSelected(Oe),et=xe!=null?t.collection.getItem(xe):null,xt=(et==null?void 0:et["aria-label"])||(typeof(et==null?void 0:et.rendered)=="string"?et.rendered:"")||"";var Ae;let fn=g.format("focusAnnouncement",{isGroupChange:(Ae=et&&xe!==_e.current)!==null&&Ae!==void 0?Ae:!1,groupTitle:xt,groupCount:et?[...Km(et,t.collection)].length:0,optionText:U["aria-label"]||U.textValue||"",isSelected:Ie});ql(fn)}_e.current=xe,Ye.current=Oe});let He=IM(t.collection),De=A.useRef(He),Ke=A.useRef(t.isOpen);A.useEffect(()=>{let Ae=t.isOpen!==Ke.current&&(t.selectionManager.focusedKey==null||lp());if(t.isOpen&&(Ae||He!==De.current)){let Ie=g.format("countAnnouncement",{optionCount:He});ql(Ie)}De.current=He,Ke.current=t.isOpen});let We=A.useRef(t.selectedKey);return A.useEffect(()=>{if(lp()&&t.isFocused&&t.selectedItem&&t.selectedKey!==We.current){let Ae=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",Ie=g.format("selectedAnnouncement",{optionText:Ae});ql(Ie)}We.current=t.selectedKey}),A.useEffect(()=>{if(t.isOpen)return PM([i.current,r.current].filter(Ae=>Ae!=null))},[t.isOpen,i,r]),db(()=>{!U&&i.current&&mr(an(i.current))===i.current&&E_(i.current,null)},[U]),{labelProps:oe,buttonProps:{...b,...M,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:H,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?MM(t,U.key):void 0,onTouchEnd:me,autoCorrect:"off",spellCheck:"false"}),listBoxProps:Qt(x,B,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:be,errorMessageProps:$e,isInvalid:K,validationErrors:q,validationDetails:ce}}var yR={};yR={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 bR={};bR={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 $R={};$R={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 xR={};xR={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 wR={};wR={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 CR={};CR={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 SR={};SR={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 ER={};ER={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 DR={};DR={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 AR={};AR={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 TR={};TR={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 PR={};PR={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 _R={};_R={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 MR={};MR={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 RR={};RR={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 FR={};FR={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 kR={};kR={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:"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 IR={};IR={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 LR={};LR={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 BR={};BR={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 VR={};VR={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 NR={};NR={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 jR={};jR={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 KR={};KR={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 UR={};UR={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 zR={};zR={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 qR={};qR={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 WR={};WR={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 HR={};HR={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 GR={};GR={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 YR={};YR={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 ZR={};ZR={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 XR={};XR={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 Bd={};Bd={"ar-AE":yR,"bg-BG":bR,"cs-CZ":$R,"da-DK":xR,"de-DE":wR,"el-GR":CR,"en-US":SR,"es-ES":ER,"et-EE":DR,"fi-FI":AR,"fr-FR":TR,"he-IL":PR,"hr-HR":_R,"hu-HU":MR,"it-IT":RR,"ja-JP":FR,"ko-KR":kR,"lt-LT":OR,"lv-LV":IR,"nb-NO":LR,"nl-NL":BR,"pl-PL":VR,"pt-BR":NR,"pt-PT":jR,"ro-RO":KR,"ru-RU":UR,"sk-SK":zR,"sl-SI":qR,"sr-SP":WR,"sv-SE":HR,"tr-TR":GR,"uk-UA":YR,"zh-CN":ZR,"zh-TW":XR};function y3(e,t,n){let{direction:r}=kr(),i=A.useMemo(()=>Lm(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=kS(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=kS(t.current,d.getBoundingClientRect().left,1);h&&h.focus()}}else i.focusNext();break}},o=()=>{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:a}=Md({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&o()},onPress(l){l.pointerType!=="mouse"&&o()}});return Qt(a,{onKeyDown:s})}function kS(e,t,n){let r=Ur(e,{tabbable:!0}),i=r.nextNode(),s=null,o=1/0;for(;i;){let l=i.getBoundingClientRect().left-t,d=Math.abs(l);Math.sign(l)===n&&d<o&&(s=i,o=d),i=r.nextNode()}return s}function ZH(e){return e&&e.__esModule?e.default:e}const JR=new WeakMap,jf="__role_"+Date.now(),QR="__focusManager_"+Date.now();function eF(e,t,n){var r;let{isInvalid:i,validationErrors:s,validationDetails:o}=t.displayValidation,{labelProps:a,fieldProps:l,descriptionProps:d,errorMessageProps:h}=Nm({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||s}),m=A.useRef(null),{focusWithinProps:g}=$c({...e,onFocusWithin(oe){var I;m.current=t.value,(I=e.onFocus)===null||I===void 0||I.call(e,oe)},onBlurWithin:oe=>{var I;t.confirmPlaceholder(),t.value!==m.current&&t.commitValidation(),(I=e.onBlur)===null||I===void 0||I.call(e,oe)},onFocusWithinChange:e.onFocusChange}),b=lo(ZH(Bd),"@react-aria/datepicker"),x=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",C=t.maxGranularity==="hour"?"time":"date",D=t.value?b.format(x,{[C]:t.formatValue({month:"long"})}):"",S=Pd(D),w=e[jf]==="presentation"?l["aria-describedby"]:[S["aria-describedby"],l["aria-describedby"]].filter(Boolean).join(" ")||void 0,T=e[QR],O=A.useMemo(()=>T||Lm(n),[T,n]),R=y3(t,n,e[jf]==="presentation");JR.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[a.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:w,focusManager:O});let k=A.useRef(e.autoFocus),K;e[jf]==="presentation"?K={role:"presentation"}:K=Qt(l,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":w}),A.useEffect(()=>{k.current&&O.focusFirst(),k.current=!1},[O]),J4(e.inputRef,t.value,t.setValue),c6({...e,focus(){O.focusFirst()}},t,e.inputRef);let q={type:"hidden",name:e.name,value:((r=t.value)===null||r===void 0?void 0:r.toString())||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(q.type="text",q.hidden=!0,q.required=e.isRequired,q.onChange=()=>{});let ce=Yo(e);return{labelProps:{...a,onClick:()=>{O.focusFirst()}},fieldProps:Qt(ce,K,R,g,{onKeyDown(oe){e.onKeyDown&&e.onKeyDown(oe)},onKeyUp(oe){e.onKeyUp&&e.onKeyUp(oe)},style:{unicodeBidi:"isolate"}}),inputProps:q,descriptionProps:d,errorMessageProps:h,isInvalid:i,validationErrors:s,validationDetails:o}}function XH(e,t,n){var r;let i=eF(e,t,n);return i.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",i}function JH(e){return e&&e.__esModule?e.default:e}function QH(e,t,n){let r=Hr(),i=Hr(),s=Hr(),o=lo(JH(Bd),"@react-aria/datepicker"),{isInvalid:a,validationErrors:l,validationDetails:d}=t.displayValidation,{labelProps:h,fieldProps:m,descriptionProps:g,errorMessageProps:b}=Nm({...e,labelElementType:"span",isInvalid:a,errorMessage:e.errorMessage||l}),x=y3(t,n),C=m["aria-labelledby"]||m.id,{locale:D}=kr(),S=t.formatValue(D,{month:"long"}),w=S?o.format("selectedDateDescription",{date:S}):"",T=Pd(w),O=[T["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")||void 0,R=Yo(e),k=A.useMemo(()=>Lm(n),[n]),K=A.useRef(!1),{focusWithinProps:q}=$c({...e,isDisabled:t.isOpen,onBlurWithin:ce=>{let oe=document.getElementById(i);if(!(oe!=null&&oe.contains(ce.relatedTarget))){var I,be;K.current=!1,(I=e.onBlur)===null||I===void 0||I.call(e,ce),(be=e.onFocusChange)===null||be===void 0||be.call(e,!1)}},onFocusWithin:ce=>{if(!K.current){var oe,I;K.current=!0,(oe=e.onFocus)===null||oe===void 0||oe.call(e,ce),(I=e.onFocusChange)===null||I===void 0||I.call(e,!0)}}});return{groupProps:Qt(R,x,m,T,q,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":C,"aria-describedby":O,onKeyDown(ce){t.isOpen||e.onKeyDown&&e.onKeyDown(ce)},onKeyUp(ce){t.isOpen||e.onKeyUp&&e.onKeyUp(ce)}}),labelProps:{...h,onClick:()=>{k.focusFirst()}},fieldProps:{...m,id:s,[jf]:"presentation","aria-describedby":O,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,[sc]:t,autoFocus:e.autoFocus,name:e.name},descriptionProps:g,errorMessageProps:b,buttonProps:{...T,id:r,"aria-haspopup":"dialog","aria-label":o.format("calendar"),"aria-labelledby":`${r} ${C}`,"aria-describedby":O,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:i,"aria-labelledby":`${r} ${C}`},calendarProps:{autoFocus:!0,value:t.dateValue,onChange:t.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:t.dateValue?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:a,validationErrors:l,validationDetails:d}}function eG(e){return e&&e.__esModule?e.default:e}function tG(){let{locale:e}=kr(),t=j5(eG(Bd),"@react-aria/datepicker");return A.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new nG(e,t)}},[e,t])}class nG{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function rG(e,t,n){let r=A.useRef(""),{locale:i,direction:s}=kr(),o=tG(),{ariaLabel:a,ariaLabelledBy:l,ariaDescribedBy:d,focusManager:h}=JR.get(t),m=e.isPlaceholder?"":e.text,g=A.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),b=Xs({month:"long",timeZone:g.timeZone}),x=Xs({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:C}=iH({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)}}),D=A.useMemo(()=>new y_(i,{maximumFractionDigits:0}),[i]),S=()=>{if(e.text===e.placeholder&&h.focusPrevious(),D.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let U=e.text.slice(0,-1),te=D.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)},w=U=>{if(U.key==="a"&&(Wo()?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(),S();break}},{startsWith:T}=$_({sensitivity:"base"}),O=Xs({hour:"numeric",hour12:!0}),R=A.useMemo(()=>{let U=new Date;return U.setHours(0),O.formatToParts(U).find(te=>te.type==="dayPeriod").value},[O]),k=A.useMemo(()=>{let U=new Date;return U.setHours(12),O.formatToParts(U).find(te=>te.type==="dayPeriod").value},[O]),K=Xs({year:"numeric",era:"narrow",timeZone:"UTC"}),q=A.useMemo(()=>{if(e.type!=="era")return[];let U=In(new Xn(1,1,1),t.calendar),te=t.calendar.getEras().map(Ee=>{let Oe=U.set({year:1,month:1,day:1,era:Ee}).toDate("UTC"),Ye=K.formatToParts(Oe).find(He=>He.type==="era").value;return{era:Ee,formatted:Ye}}),xe=iG(te.map(Ee=>Ee.formatted));if(xe)for(let Ee of te)Ee.formatted=Ee.formatted.slice(xe);return te},[K,t.calendar,e.type]),ce=U=>{if(t.isDisabled||t.isReadOnly)return;let te=r.current+U;switch(e.type){case"dayPeriod":if(T(R,U))t.setSegment("dayPeriod",0);else if(T(k,U))t.setSegment("dayPeriod",12);else break;h.focusNext();break;case"era":{let xe=q.find(Ee=>T(Ee.formatted,U));xe&&(t.setSegment("era",xe.era),h.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!D.isValidPartialNumber(te))return;let xe=D.parse(te),Ee=xe,Oe=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":xe>11&&(Ee=D.parse(U));break;case"h12":Oe=!1,xe>12&&(Ee=D.parse(U));break}e.value!==void 0&&e.value>=12&&xe>1&&(xe+=12)}else e.maxValue!==void 0&&xe>e.maxValue&&(Ee=D.parse(U));if(isNaN(xe))return;let _e=Ee!==0||Oe;_e&&t.setSegment(e.type,Ee),e.maxValue!==void 0&&(+(xe+"0")>e.maxValue||te.length>=String(e.maxValue).length)?(r.current="",_e&&h.focusNext()):r.current=te;break}}},oe=()=>{r.current="",n.current&&Bp(n.current,{containingElement:Mm(n.current)});let U=window.getSelection();U==null||U.collapse(n.current)},I=A.useRef(typeof document<"u"?document:null);Zs(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 be=A.useRef("");Zs(n,"beforeinput",U=>{if(n.current)switch(U.preventDefault(),U.inputType){case"deleteContentBackward":case"deleteContentForward":D.isValidPartialNumber(e.text)&&!t.isReadOnly&&S();break;case"insertCompositionText":be.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:U.data!=null&&ce(U.data);break}}),Zs(n,"input",U=>{let{inputType:te,data:xe}=U;switch(te){case"insertCompositionText":n.current&&(n.current.textContent=be.current),xe!=null&&(T(R,xe)||T(k,xe))&&ce(xe);break}}),gn(()=>{let U=n.current;return()=>{document.activeElement===U&&(h.focusPrevious()||h.focusNext())}},[n,h]);let $e=Td()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},H=A.useMemo(()=>t.segments.find(U=>U.isEditable),[t.segments]);e!==H&&!t.isInvalid&&(d=void 0);let ie=Hr(),M=!t.isDisabled&&!t.isReadOnly&&e.isEditable,B=e.type==="literal"?"":o.of(e.type),L=nc({"aria-label":`${B}${a?`, ${a}`:""}${l?", ":""}`,"aria-labelledby":l});if(e.type==="literal")return{segmentProps:{"aria-hidden":!0}};let me={caretColor:"transparent"};if(s==="rtl"){me.unicodeBidi="embed";let U=g[e.type];(U==="numeric"||U==="2-digit")&&(me.direction="ltr")}return{segmentProps:Qt(C,L,{id:ie,...$e,"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:M,suppressContentEditableWarning:M,spellCheck:M?"false":void 0,autoCorrect:M?"off":void 0,[parseInt(A.version,10)>=17?"enterKeyHint":"enterkeyhint"]:M?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!M?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:w,onFocus:oe,style:me,onPointerDown(U){U.stopPropagation()},onMouseDown(U){U.stopPropagation()}})}}function iG(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 sG(e){return e&&e.__esModule?e.default:e}function oG(e,t,n){var r,i,s;let o=lo(sG(Bd),"@react-aria/datepicker"),{isInvalid:a,validationErrors:l,validationDetails:d}=t.displayValidation,{labelProps:h,fieldProps:m,descriptionProps:g,errorMessageProps:b}=Nm({...e,labelElementType:"span",isInvalid:a,errorMessage:e.errorMessage||l}),x=m["aria-labelledby"]||m.id,{locale:C}=kr(),D=t.formatValue(C,{month:"long"}),S=D?o.format("selectedRangeDescription",{startDate:D.start,endDate:D.end}):"",w=Pd(S),T={"aria-label":o.format("startDate"),"aria-labelledby":x},O={"aria-label":o.format("endDate"),"aria-labelledby":x},R=Hr(),k=Hr(),K=y3(t,n),q=[w["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")||void 0,ce=A.useMemo(()=>Lm(n,{accept:L=>L.id!==R}),[n,R]),oe={[QR]:ce,[jf]:"presentation","aria-describedby":q,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=Yo(e),be=A.useRef(!1),{focusWithinProps:$e}=$c({...e,isDisabled:t.isOpen,onBlurWithin:L=>{let me=document.getElementById(k);if(!(me!=null&&me.contains(L.relatedTarget))){var U,te;be.current=!1,(U=e.onBlur)===null||U===void 0||U.call(e,L),(te=e.onFocusChange)===null||te===void 0||te.call(e,!1)}},onFocusWithin:L=>{if(!be.current){var me,U;be.current=!0,(me=e.onFocus)===null||me===void 0||me.call(e,L),(U=e.onFocusChange)===null||U===void 0||U.call(e,!0)}}}),H=A.useRef(fu),ie=A.useRef(fu);var M,B;return{groupProps:Qt(I,K,m,w,$e,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":q,onKeyDown(L){t.isOpen||e.onKeyDown&&e.onKeyDown(L)},onKeyUp(L){t.isOpen||e.onKeyUp&&e.onKeyUp(L)}}),labelProps:{...h,onClick:()=>{ce.focusFirst()}},buttonProps:{...w,id:R,"aria-haspopup":"dialog","aria-label":o.format("calendar"),"aria-labelledby":`${R} ${x}`,"aria-describedby":q,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:k,"aria-labelledby":`${R} ${x}`},startFieldProps:{...T,...oe,value:(M=(r=t.value)===null||r===void 0?void 0:r.start)!==null&&M!==void 0?M:null,onChange:L=>t.setDateTime("start",L),autoFocus:e.autoFocus,name:e.startName,[sc]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(L){H.current=L,t.updateValidation(Gp(L,ie.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...O,...oe,value:(B=(i=t.value)===null||i===void 0?void 0:i.end)!==null&&B!==void 0?B:null,onChange:L=>t.setDateTime("end",L),name:e.endName,[sc]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(L){ie.current=L,t.updateValidation(Gp(H.current,L))},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:a,validationErrors:l,validationDetails:d}}function aG(e,t){let{role:n="dialog"}=e,r=tc();r=e["aria-label"]?void 0:r;let i=A.useRef(!1);return A.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Ou(t.current);let s=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),Ou(t.current)),i.current=!1)},500);return()=>{clearTimeout(s)}}},[t]),TH(),{dialogProps:{...Yo(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:s=>{i.current&&s.stopPropagation()}},titleProps:{id:r}}}function Hl(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function Lb(e,t,n,r,i){let s={};for(let a in t)s[a]=Math.floor(t[a]/2),s[a]>0&&t[a]%2===0&&s[a]--;let o=gu(e,t,n).subtract(s);return od(e,o,t,n,r,i)}function gu(e,t,n,r,i){let s=e;return t.years?s=vq(e):t.months?s=kd(e):t.weeks&&(s=td(e,n)),od(e,s,t,n,r,i)}function Bb(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 o=gu(e,t,n).subtract(s);return od(e,o,t,n,r,i)}function od(e,t,n,r,i,s){if(i&&e.compare(i)>=0){let o=o3(t,gu(Gr(i),n,r));o&&(t=o)}if(s&&e.compare(s)<=0){let o=s3(t,Bb(Gr(s),n,r));o&&(t=o)}return t}function pa(e,t,n){if(t){let r=o3(e,Gr(t));r&&(e=r)}if(n){let r=s3(e,Gr(n));r&&(e=r)}return e}function tF(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 nF(e){let t=A.useMemo(()=>new Gi(e.locale),[e.locale]),n=A.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:s={months:1},minValue:o,maxValue:a,selectionAlignment:l,isDateUnavailable:d,pageBehavior:h="visible",firstDayOfWeek:m}=e,g=A.useMemo(()=>i(n.calendar),[i,n.calendar]);var b;let[x,C]=Di(e.value,(b=e.defaultValue)!==null&&b!==void 0?b:null,e.onChange),D=A.useMemo(()=>x?In(Gr(x),g):null,[x,g]),S=A.useMemo(()=>x&&"timeZone"in x?x.timeZone:n.timeZone,[x,n.timeZone]),w=A.useMemo(()=>e.focusedValue?pa(In(Gr(e.focusedValue),g),o,a):void 0,[e.focusedValue,g,o,a]),T=A.useMemo(()=>pa(e.defaultFocusedValue?In(Gr(e.defaultFocusedValue),g):D||In(Om(S),g),o,a),[e.defaultFocusedValue,D,S,g,o,a]),[O,R]=Di(w,T,e.onFocusChange),[k,K]=A.useState(()=>{switch(l){case"start":return gu(O,s,r,o,a);case"end":return Bb(O,s,r,o,a);case"center":default:return Lb(O,s,r,o,a)}}),[q,ce]=A.useState(e.autoFocus||!1),oe=A.useMemo(()=>{let te={...s};return te.days?te.days--:te.days=-1,k.add(te)},[k,s]),[I,be]=A.useState(g);if(!km(g,I)){let te=In(O,g);K(Lb(te,s,r,o,a)),R(te),be(g)}Hl(O,o,a)?R(pa(O,o,a)):O.compare(k)<0?K(Bb(O,s,r,o,a)):O.compare(oe)>0&&K(gu(O,s,r,o,a));function $e(te){te=pa(te,o,a),R(te)}function H(te){if(!e.isDisabled&&!e.isReadOnly){let xe=te;if(xe===null){C(null);return}if(xe=pa(xe,o,a),xe=tF(xe,k,d),!xe)return;xe=In(xe,(x==null?void 0:x.calendar)||new Yr),x&&"hour"in x?C(x.set(xe)):C(xe)}}let ie=A.useMemo(()=>D?d&&d(D)?!0:Hl(D,o,a):!1,[D,d,o,a]),M=e.isInvalid||e.validationState==="invalid"||ie,B=M?"invalid":null,L=A.useMemo(()=>h==="visible"?s:Jv(s),[h,s]);var me,U;return{isDisabled:(me=e.isDisabled)!==null&&me!==void 0?me:!1,isReadOnly:(U=e.isReadOnly)!==null&&U!==void 0?U:!1,value:D,setValue:H,visibleRange:{start:k,end:oe},minValue:o,maxValue:a,focusedDate:O,timeZone:S,validationState:B,isValueInvalid:M,setFocusedDate(te){$e(te),ce(!0)},focusNextDay(){$e(O.add({days:1}))},focusPreviousDay(){$e(O.subtract({days:1}))},focusNextRow(){s.days?this.focusNextPage():(s.weeks||s.months||s.years)&&$e(O.add({weeks:1}))},focusPreviousRow(){s.days?this.focusPreviousPage():(s.weeks||s.months||s.years)&&$e(O.subtract({weeks:1}))},focusNextPage(){let te=k.add(L);R(pa(O.add(L),o,a)),K(gu(od(O,te,L,r,o,a),L,r))},focusPreviousPage(){let te=k.subtract(L);R(pa(O.subtract(L),o,a)),K(gu(od(O,te,L,r,o,a),L,r))},focusSectionStart(){s.days?$e(k):s.weeks?$e(td(O,r)):(s.months||s.years)&&$e(kd(O))},focusSectionEnd(){s.days?$e(oe):s.weeks?$e($q(O,r)):(s.months||s.years)&&$e($b(O))},focusNextSection(te){if(!te&&!s.days){$e(O.add(Jv(s)));return}s.days?this.focusNextPage():s.weeks?$e(O.add({months:1})):(s.months||s.years)&&$e(O.add({years:1}))},focusPreviousSection(te){if(!te&&!s.days){$e(O.subtract(Jv(s)));return}s.days?this.focusPreviousPage():s.weeks?$e(O.subtract({months:1})):(s.months||s.years)&&$e(O.subtract({years:1}))},selectFocusedDate(){d&&d(O)||H(O)},selectDate(te){H(te)},isFocused:q,setFocused:ce,isInvalid(te){return Hl(te,o,a)},isSelected(te){return D!=null&&nr(te,D)&&!this.isCellDisabled(te)&&!this.isCellUnavailable(te)},isCellFocused(te){return q&&O&&nr(te,O)},isCellDisabled(te){return e.isDisabled||te.compare(k)<0||te.compare(oe)>0||this.isInvalid(te)},isCellUnavailable(te){return e.isDateUnavailable?e.isDateUnavailable(te):!1},isPreviousVisibleRangeInvalid(){let te=k.subtract({days:1});return nr(te,k)||this.isInvalid(te)},isNextVisibleRangeInvalid(){let te=oe.add({days:1});return nr(te,oe)||this.isInvalid(te)},getDatesInWeek(te,xe=k){let Ee=xe.add({weeks:te}),Oe=[];Ee=td(Ee,r,m);let _e=i3(Ee,r,m);for(let Ye=0;Ye<_e;Ye++)Oe.push(null);for(;Oe.length<7;){Oe.push(Ee);let Ye=Ee.add({days:1});if(nr(Ee,Ye))break;Ee=Ye}for(;Oe.length<7;)Oe.push(null);return Oe}}}function Jv(e){let t={...e};for(let n in e)t[n]=1;return t}function uG(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:s,visibleDuration:o={months:1},minValue:a,maxValue:l,...d}=e,[h,m]=Di(t,n||null,r),[g,b]=A.useState(null),x="center";if(h&&h.start&&h.end){let L=Lb(Gr(h.start),o,s,a,l).add(o).subtract({days:1});h.end.compare(L)>0&&(x="start")}let C=A.useRef(null),[D,S]=A.useState(null),w=A.useMemo(()=>o3(a,D==null?void 0:D.start),[a,D]),T=A.useMemo(()=>s3(l,D==null?void 0:D.end),[l,D]),O=nF({...d,value:h&&h.start,createCalendar:i,locale:s,visibleDuration:o,minValue:w,maxValue:T,selectionAlignment:x}),R=B=>{if(B&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){const L=IS(B,O,-1),me=IS(B,O,1);C.current={start:L,end:me},S(C.current)}else C.current=null,S(null)},[k,K]=A.useState(O.visibleRange);(!bb(O.visibleRange.start,k.start)||!bb(O.visibleRange.end,k.end))&&(R(g),K(O.visibleRange));let q=B=>{B?(b(B),R(B)):(b(null),R(null))},ce=g?Qv(g,O.focusedDate):h&&Qv(h.start,h.end),oe=B=>{if(e.isReadOnly)return;const L=pa(B,w,T),me=tF(L,O.visibleRange.start,e.isDateUnavailable);if(me)if(!g)q(me);else{let U=Qv(g,me);U&&m({start:OS(U.start,h==null?void 0:h.start),end:OS(U.end,h==null?void 0:h.end)}),q(null)}},[I,be]=A.useState(!1),{isDateUnavailable:$e}=e,H=A.useMemo(()=>!h||g?!1:$e&&($e(h.start)||$e(h.end))?!0:Hl(h.start,a,l)||Hl(h.end,a,l),[$e,h,g,a,l]),ie=e.isInvalid||e.validationState==="invalid"||H;return{...O,value:h,setValue:m,anchorDate:g,setAnchorDate:q,highlightedRange:ce,validationState:ie?"invalid":null,isValueInvalid:ie,selectFocusedDate(){oe(O.focusedDate)},selectDate:oe,highlightDate(B){g&&O.setFocusedDate(B)},isSelected(B){return!!(ce&&B.compare(ce.start)>=0&&B.compare(ce.end)<=0&&!O.isCellDisabled(B)&&!O.isCellUnavailable(B))},isInvalid(B){var L,me;return O.isInvalid(B)||Hl(B,(L=C.current)===null||L===void 0?void 0:L.start,(me=C.current)===null||me===void 0?void 0:me.end)},isDragging:I,setDragging:be}}function Qv(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:Gr(e),end:Gr(t)})}function OS(e,t){return e=In(e,(t==null?void 0:t.calendar)||new Yr),t&&"hour"in t?t.set(e):e}function IS(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 Vb{*[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=o=>{if(this.keyMap.set(o.key,o),o.childNodes&&o.type==="section")for(let a of o.childNodes)n(a)};for(let o of t)n(o);let r=null,i=0;for(let[o,a]of this.keyMap)r?(r.nextKey=o,a.prevKey=r.key):(this.firstKey=o,a.prevKey=void 0),a.type==="item"&&(a.index=i++),r=a,r.nextKey=void 0;var s;this.lastKey=(s=r==null?void 0:r.key)!==null&&s!==void 0?s:null}}class ys extends Set{constructor(t,n,r){super(t),t instanceof ys?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function lG(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function cG(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:s="all"}=e,o=A.useRef(!1),[,a]=A.useState(!1),l=A.useRef(null),d=A.useRef(null),[,h]=A.useState(null),m=A.useMemo(()=>LS(e.selectedKeys),[e.selectedKeys]),g=A.useMemo(()=>LS(e.defaultSelectedKeys,new ys),[e.defaultSelectedKeys]),[b,x]=Di(m,g,e.onSelectionChange),C=A.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[D,S]=A.useState(i);i==="replace"&&D==="toggle"&&typeof b=="object"&&b.size===0&&S("replace");let w=A.useRef(i);return A.useEffect(()=>{i!==w.current&&(S(i),w.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:D,setSelectionBehavior:S,get isFocused(){return o.current},setFocused(T){o.current=T,a(T)},get focusedKey(){return l.current},get childFocusStrategy(){return d.current},setFocusedKey(T,O="first"){l.current=T,d.current=O,h(T)},selectedKeys:b,setSelectedKeys(T){(r||!lG(T,b))&&x(T)},disabledKeys:C,disabledBehavior:s}}function LS(e,t){return e?e==="all"?"all":new ys(e):t}class b3{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&&Xv(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&&Xv(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 ys([n],n,n);else{let o=this.state.selectedKeys;var i;let a=(i=o.anchorKey)!==null&&i!==void 0?i:n;r=new ys(o,a,n);var s;for(let l of this.getKeyRange(a,(s=o.currentKey)!==null&&s!==void 0?s:n))r.delete(l);for(let l of this.getKeyRange(n,a))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?Xv(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 o=this.collection.getItem(s);if(o&&(o.type==="item"||o.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 ys(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 ys([n],n,n):new ys;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new ys;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 o=this.collection.getItem(r);(o==null?void 0:o.type)==="item"&&t.push(r);var s;o!=null&&o.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&n((s=(i=UH(Km(o,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 ys)}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 b3(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 fG(e){let{filter:t,layoutDelegate:n}=e,r=cG(e),i=A.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),s=A.useCallback(d=>t?new Vb(t(d)):new Vb(d),[t]),o=A.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),a=KH(e,s,o),l=A.useMemo(()=>new b3(a,r,{layoutDelegate:n}),[a,r,n]);return dG(a,l),{collection:a,disabledKeys:i,selectionManager:l}}function dG(e,t){const n=A.useRef(null);A.useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&n.current){const h=n.current.getItem(t.focusedKey),m=[...n.current.getKeys()].map(S=>{const w=n.current.getItem(S);return(w==null?void 0:w.type)==="item"?w:null}).filter(S=>S!==null),g=[...e.getKeys()].map(S=>{const w=e.getItem(S);return(w==null?void 0:w.type)==="item"?w:null}).filter(S=>S!==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,o,a;let x=Math.min(b>1?Math.max(((s=h==null?void 0:h.index)!==null&&s!==void 0?s:0)-b+1,0):(o=h==null?void 0:h.index)!==null&&o!==void 0?o:0,((a=g==null?void 0:g.length)!==null&&a!==void 0?a:0)-1),C=null,D=!1;for(;x>=0;){if(!t.isDisabled(g[x].key)){C=g[x];break}if(x<g.length-1&&!D)x++;else{D=!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(C?C.key:null)}n.current=e},[e,t])}function hG(e){var t;let[n,r]=Di(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),i=A.useMemo(()=>n!=null?[n]:[],[n]),{collection:s,disabledKeys:o,selectionManager:a}=fG({...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:o,selectionManager:a,selectedKey:n,setSelectedKey:r,selectedItem:l}}function $3(e){let[t,n]=Di(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=A.useCallback(()=>{n(!0)},[n]),i=A.useCallback(()=>{n(!1)},[n]),s=A.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:s}}function pG(e){var t;let{defaultFilter:n,menuTrigger:r="input",allowsEmptyCollection:i=!1,allowsCustomValue:s,shouldCloseOnBlur:o=!0}=e,[a,l]=A.useState(!1),[d,h]=A.useState(!1),[m,g]=A.useState(null),b=gt=>{e.onSelectionChange&&e.onSelectionChange(gt),gt===S&&(Oe(),te())};var x;let{collection:C,selectionManager:D,selectedKey:S,setSelectedKey:w,selectedItem:T,disabledKeys:O}=hG({...e,onSelectionChange:b,items:(x=e.items)!==null&&x!==void 0?x:e.defaultItems}),R=e.defaultInputValue;if(R==null){var k,K;S==null?R="":R=(K=(k=C.getItem(S))===null||k===void 0?void 0:k.textValue)!==null&&K!==void 0?K:""}let[q,ce]=Di(e.inputValue,R,e.onInputChange),oe=C,I=A.useMemo(()=>e.items!=null||!n?C:mG(C,q,n),[C,q,n,e.items]),[be,$e]=A.useState(I),H=A.useRef("focus"),M=$3({...e,onOpenChange:gt=>{e.onOpenChange&&e.onOpenChange(gt,gt?H.current:void 0),D.setFocused(gt),gt||D.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),B=(gt=null,Tt)=>{let Ft=Tt==="manual"||Tt==="focus"&&r==="focus";(i||I.size>0||Ft&&oe.size>0||e.items)&&(Ft&&!M.isOpen&&e.items===void 0&&l(!0),H.current=Tt,g(gt),M.open())},L=(gt=null,Tt)=>{let Ft=Tt==="manual"||Tt==="focus"&&r==="focus";!(i||I.size>0||Ft&&oe.size>0||e.items)&&!M.isOpen||(Ft&&!M.isOpen&&e.items===void 0&&l(!0),M.isOpen||(H.current=Tt),U(gt))},me=A.useCallback(()=>{$e(a?oe:I)},[a,oe,I]),U=A.useCallback((gt=null)=>{M.isOpen&&me(),g(gt),M.toggle()},[M,me]),te=A.useCallback(()=>{M.isOpen&&(me(),M.close())},[M,me]),[xe,Ee]=A.useState(q),Oe=()=>{var gt,Tt;let Ft=S!=null&&(Tt=(gt=C.getItem(S))===null||gt===void 0?void 0:gt.textValue)!==null&&Tt!==void 0?Tt:"";Ee(Ft),ce(Ft)};var _e,Ye;let He=A.useRef((Ye=(_e=e.selectedKey)!==null&&_e!==void 0?_e:e.defaultSelectedKey)!==null&&Ye!==void 0?Ye:null);var De;let Ke=A.useRef(S!=null&&(De=(t=C.getItem(S))===null||t===void 0?void 0:t.textValue)!==null&&De!==void 0?De:"");A.useEffect(()=>{var gt;d&&(I.size>0||i)&&!M.isOpen&&q!==xe&&r!=="manual"&&B(null,"input"),!a&&!i&&M.isOpen&&I.size===0&&te(),S!=null&&S!==He.current&&te(),q!==xe&&(D.setFocusedKey(null),l(!1),q===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&w(null)),S!==He.current&&(e.inputValue===void 0||e.selectedKey===void 0)?Oe():xe!==q&&Ee(q);var Tt;let Ft=S!=null&&(Tt=(gt=C.getItem(S))===null||gt===void 0?void 0:gt.textValue)!==null&&Tt!==void 0?Tt:"";!d&&S!=null&&e.inputValue===void 0&&S===He.current&&Ke.current!==Ft&&(Ee(Ft),ce(Ft)),He.current=S,Ke.current=Ft});let We=Ld({...e,value:A.useMemo(()=>({inputValue:q,selectedKey:S}),[q,S])}),Ae=()=>{s&&S==null?Ie():et()},Ie=()=>{He.current=null,w(null),te()},et=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var gt,Tt;(gt=e.onSelectionChange)===null||gt===void 0||gt.call(e,S);var Ft;let we=S!=null&&(Ft=(Tt=C.getItem(S))===null||Tt===void 0?void 0:Tt.textValue)!==null&&Ft!==void 0?Ft:"";Ee(we),te()}else Oe(),te()};const xt=()=>{if(s){var gt,Tt;const Ft=S!=null&&(Tt=(gt=C.getItem(S))===null||gt===void 0?void 0:gt.textValue)!==null&&Tt!==void 0?Tt:"";q===Ft?et():Ie()}else et()};let fn=()=>{M.isOpen&&D.focusedKey!=null?S===D.focusedKey?et():w(D.focusedKey):xt()},bt=A.useRef(q),Rt=gt=>{gt?(bt.current=q,r==="focus"&&!e.isReadOnly&&B(null,"focus")):(o&&xt(),q!==bt.current&&We.commitValidation()),h(gt)},ci=A.useMemo(()=>M.isOpen?a?oe:I:be,[M.isOpen,oe,I,a,be]);return{...We,...M,focusStrategy:m,toggle:L,open:B,close:xt,selectionManager:D,selectedKey:S,setSelectedKey:w,disabledKeys:O,isFocused:d,setFocused:Rt,selectedItem:T,collection:ci,inputValue:q,setInputValue:ce,commit:fn,revert:Ae}}function mG(e,t,n){return new Vb(rF(e,e,t,n))}function rF(e,t,n,r){let i=[];for(let s of t)if(s.type==="section"&&s.hasChildNodes){let o=rF(e,Km(s,e),n,r);[...o].some(a=>a.type==="item")&&i.push({...s,childNodes:o})}else s.type==="item"&&r(s.textValue,n)?i.push({...s}):s.type!=="item"&&i.push({...s});return i}var iF={};iF={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var sF={};sF={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var oF={};oF={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 aF={};aF={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 uF={};uF={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 lF={};lF={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var cF={};cF={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 fF={};fF={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 dF={};dF={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 hF={};hF={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 pF={};pF={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 mF={};mF={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var gF={};gF={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 vF={};vF={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 yF={};yF={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 bF={};bF={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var $F={};$F={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var xF={};xF={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 wF={};wF={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 CF={};CF={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 SF={};SF={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 EF={};EF={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 DF={};DF={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 AF={};AF={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 TF={};TF={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var PF={};PF={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var _F={};_F={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 MF={};MF={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 RF={};RF={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 FF={};FF={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 kF={};kF={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 OF={};OF={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var IF={};IF={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var LF={};LF={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var BF={};BF={"ar-AE":iF,"bg-BG":sF,"cs-CZ":oF,"da-DK":aF,"de-DE":uF,"el-GR":lF,"en-US":cF,"es-ES":fF,"et-EE":dF,"fi-FI":hF,"fr-FR":pF,"he-IL":mF,"hr-HR":gF,"hu-HU":vF,"it-IT":yF,"ja-JP":bF,"ko-KR":$F,"lt-LT":xF,"lv-LV":wF,"nb-NO":CF,"nl-NL":SF,"pl-PL":EF,"pt-BR":DF,"pt-PT":AF,"ro-RO":TF,"ru-RU":PF,"sk-SK":_F,"sl-SI":MF,"sr-SP":RF,"sv-SE":FF,"tr-TR":kF,"uk-UA":OF,"zh-CN":IF,"zh-TW":LF};function gG(e){return e&&e.__esModule?e.default:e}const VF=new Ra(gG(BF));function NF(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function Zp(e,t,n,r,i){let s=e!=null&&n!=null&&e.compare(n)>0,o=e!=null&&t!=null&&e.compare(t)<0,a=e!=null&&(r==null?void 0:r(e))||!1,l=s||o||a,d=[];if(l){let h=NF(),m=Ra.getGlobalDictionaryForPackage("@react-stately/datepicker")||VF,g=new N5(h,m),b=new Gi(h,Uo({},i)),x=b.resolvedOptions().timeZone;o&&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))})),a&&d.push(g.format("unavailableDate"))}return{isInvalid:l,validationErrors:d,validationDetails:{badInput:a,customError:!1,patternMismatch:!1,rangeOverflow:s,rangeUnderflow:o,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}function vG(e,t,n,r,i){var s;let o=Zp((s=e==null?void 0:e.start)!==null&&s!==void 0?s:null,t,n,r,i);var a;let l=Zp((a=e==null?void 0:e.end)!==null&&a!==void 0?a:null,t,n,r,i),d=Gp(o,l);if((e==null?void 0:e.end)!=null&&e.start!=null&&e.end.compare(e.start)<0){let h=Ra.getGlobalDictionaryForPackage("@react-stately/datepicker")||VF;d=Gp(d,{isInvalid:!0,validationErrors:[h.getStringForLocale("rangeReversed",NF())],validationDetails:{...Bm,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return d}const yG={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},bG={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function Uo(e,t){e={...t.shouldForceLeadingZeros?bG:yG,...e};let r=t.granularity||"minute",i=Object.keys(e);var s;let o=i.indexOf((s=t.maxGranularity)!==null&&s!==void 0?s:"year");o<0&&(o=0);let a=i.indexOf(r);if(a<0&&(a=2),o>a)throw new Error("maxGranularity must be greater than granularity");let l=i.slice(o,a+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&&o===0&&(l.era="short"),l}function Ml(e){return e&&"hour"in e?e:new Od}function jF(e,t){if(e===null)return null;if(e)return In(e,t)}function gf(e,t,n,r){if(e)return jF(e,n);let i=In(z5(r??Fd()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?Gr(i):r?i:Ds(i)}function x3(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]=A.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&s([r,n]),t||(t=e?r:i[0]);let o=e?n:i[1];return[t,o]}function $G(e){let t=$3(e),[n,r]=Di(e.value,e.defaultValue||null,e.onChange),i=n||e.placeholderValue||null,[s,o]=x3(i,e.granularity),a=n!=null?n.toDate(o??"UTC"):null,l=s==="hour"||s==="minute"||s==="second";var d;let h=(d=e.shouldCloseOnSelect)!==null&&d!==void 0?d:!0,[m,g]=A.useState(null),[b,x]=A.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 C=(n==null?void 0:n.calendar.identifier)==="gregory"&&n.era==="BC",D=A.useMemo(()=>({granularity:s,timeZone:o,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:C}),[s,e.hourCycle,e.shouldForceLeadingZeros,o,e.hideTimeZone,C]),{minValue:S,maxValue:w,isDateUnavailable:T}=e,O=A.useMemo(()=>Zp(n,S,w,T,D),[n,S,w,T,D]),R=Ld({...e,value:n,builtinValidation:O}),k=R.displayValidation.isInvalid,K=e.validationState||(k?"invalid":null),q=(I,be)=>{r("timeZone"in be?be.set(Gr(I)):Ds(I,be)),g(null),x(null),R.commitValidation()};return{...R,value:n,setValue:r,dateValue:m,timeValue:b,setDateValue:I=>{let be=typeof h=="function"?h():h;l?b||be?q(I,b||Ml(e.defaultValue||e.placeholderValue)):g(I):(r(I),R.commitValidation()),be&&t.setOpen(!1)},setTimeValue:I=>{m&&I?q(m,I):x(I)},granularity:s,hasTime:l,...t,setOpen(I){!I&&!n&&m&&l&&q(m,b||Ml(e.defaultValue||e.placeholderValue)),t.setOpen(I)},validationState:K,isInvalid:k,formatValue(I,be){if(!a)return"";let $e=Uo(be,D);return new Gi(I,$e).format(a)},getDateFormatter(I,be){let $e={...D,...be},H=Uo({},$e);return new Gi(I,H)}}}const xG=new Ra({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 wG(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?xG.getStringForLocale(e,n):"––"}const gp={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},BS={year:5,month:2,day:7,hour:2,minute:15,second:15},CG={dayperiod:"dayPeriod"};function KF(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:s=!1,isRequired:o=!1,minValue:a,maxValue:l,isDateUnavailable:d}=e,h=e.value||e.defaultValue||e.placeholderValue||null,[m,g]=x3(h,e.granularity),b=g||"UTC";if(h&&!(m in h))throw new Error("Invalid granularity "+m+" for value "+h.toString());let x=A.useMemo(()=>new Gi(t),[t]),C=A.useMemo(()=>n(x.resolvedOptions().calendar),[n,x]);var D;let[S,w]=Di(e.value,(D=e.defaultValue)!==null&&D!==void 0?D:null,e.onChange),T=A.useMemo(()=>{var De;return(De=jF(S,C))!==null&&De!==void 0?De:null},[S,C]),[O,R]=A.useState(()=>gf(e.placeholderValue,m,C,g)),k=T||O,K=C.identifier==="gregory"&&k.era==="BC",q=A.useMemo(()=>{var De;return{granularity:m,maxGranularity:(De=e.maxGranularity)!==null&&De!==void 0?De:"year",timeZone:g,hideTimeZone:r,hourCycle:e.hourCycle,showEra:K,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,m,e.hourCycle,e.shouldForceLeadingZeros,g,r,K]),ce=A.useMemo(()=>Uo({},q),[q]),oe=A.useMemo(()=>new Gi(t,ce),[t,ce]),I=A.useMemo(()=>oe.resolvedOptions(),[oe]),be=A.useMemo(()=>oe.formatToParts(new Date).filter(De=>gp[De.type]).reduce((De,Ke)=>(De[Ke.type]=!0,De),{}),[oe]),[$e,H]=A.useState(()=>e.value||e.defaultValue?{...be}:{}),ie=A.useRef(null),M=A.useRef(C);A.useEffect(()=>{km(C,M.current)||(M.current=C,R(De=>Object.keys($e).length>0?In(De,C):gf(e.placeholderValue,m,C,g)))},[C,m,$e,g,e.placeholderValue]),S&&Object.keys($e).length<Object.keys(be).length&&($e={...be},H($e)),S==null&&Object.keys($e).length===Object.keys(be).length&&($e={},H($e),R(gf(e.placeholderValue,m,C,g)));let B=T&&Object.keys($e).length>=Object.keys(be).length?T:O,L=De=>{if(e.isDisabled||e.isReadOnly)return;let Ke=Object.keys($e),We=Object.keys(be);De==null?(w(null),R(gf(e.placeholderValue,m,C,g)),H({})):Ke.length>=We.length||Ke.length===We.length-1&&be.dayPeriod&&!$e.dayPeriod&&ie.current!=="dayPeriod"?(De=In(De,(h==null?void 0:h.calendar)||new Yr),w(De)):R(De),ie.current=null},me=A.useMemo(()=>B.toDate(b),[B,b]),U=A.useMemo(()=>SG(me,$e,oe,I,B,C,t,m),[me,$e,oe,I,B,C,t,m]);be.era&&$e.year&&!$e.era?($e.era=!0,H({...$e})):!be.era&&$e.era&&(delete $e.era,H({...$e}));let te=De=>{$e[De]=!0,De==="year"&&be.era&&($e.era=!0),H({...$e})},xe=(De,Ke)=>{if($e[De])L(EG(B,De,Ke,I));else{te(De);let We=Object.keys($e),Ae=Object.keys(be);(We.length>=Ae.length||We.length===Ae.length-1&&be.dayPeriod&&!$e.dayPeriod)&&L(B)}},Ee=A.useMemo(()=>Zp(S,a,l,d,q),[S,a,l,d,q]),Oe=Ld({...e,value:S,builtinValidation:Ee}),_e=Oe.displayValidation.isInvalid,Ye=e.validationState||(_e?"invalid":null);var He;return{...Oe,value:T,dateValue:me,calendar:C,setValue:L,segments:U,dateFormatter:oe,validationState:Ye,isInvalid:_e,granularity:m,maxGranularity:(He=e.maxGranularity)!==null&&He!==void 0?He:"year",isDisabled:i,isReadOnly:s,isRequired:o,increment(De){xe(De,1)},decrement(De){xe(De,-1)},incrementPage(De){xe(De,BS[De]||1)},decrementPage(De){xe(De,-(BS[De]||1))},setSegment(De,Ke){te(De),L(DG(B,De,Ke,I))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let De=Object.keys($e),Ke=Object.keys(be);De.length===Ke.length-1&&be.dayPeriod&&!$e.dayPeriod&&($e={...be},H($e),L(B.copy()))},clearSegment(De){delete $e[De],ie.current=De,H({...$e});let Ke=gf(e.placeholderValue,m,C,g),We=B;if(De==="dayPeriod"&&"hour"in B&&"hour"in Ke){let Ae=B.hour>=12,Ie=Ke.hour>=12;Ae&&!Ie?We=B.set({hour:B.hour-12}):!Ae&&Ie&&(We=B.set({hour:B.hour+12}))}else De==="hour"&&"hour"in B&&B.hour>=12&&$e.dayPeriod?We=B.set({hour:Ke.hour+12}):De in B&&(We=B.set({[De]:Ke[De]}));w(null),L(We)},formatValue(De){if(!T)return"";let Ke=Uo(De,q);return new Gi(t,Ke).format(me)},getDateFormatter(De,Ke){let We={...q,...Ke},Ae=Uo({},We);return new Gi(De,Ae)}}}function SG(e,t,n,r,i,s,o,a){let l=["hour","minute","second"],d=n.formatToParts(e),h=[];for(let m of d){let g=gp[m.type];m.type==="era"&&s.getEras().length===1&&(g=!1);let b=gp[m.type]&&!t[m.type],x=gp[m.type]?wG(m.type,m.value,o):null,C={type:CG[m.type]||m.type,text:b?x:m.value,...qh(i,m.type,r),isPlaceholder:b,placeholder:x,isEditable:g};m.type==="hour"?(h.push({type:"literal",text:"⁦",...qh(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1}),h.push(C),m.type===a&&h.push({type:"literal",text:"⁩",...qh(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):l.includes(m.type)&&m.type===a?(h.push(C),h.push({type:"literal",text:"⁩",...qh(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):h.push(C)}return h}function qh(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:yq(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:bq(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 EG(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 DG(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 AG(e){var t,n;let r=$3(e),[i,s]=Di(e.value,e.defaultValue||null,e.onChange),[o,a]=A.useState(()=>i||{start:null,end:null});i==null&&o.start&&o.end&&(o={start:null,end:null},a(o));let l=i||o,d=M=>{a(M||{start:null,end:null}),su(M)?s(M):s(null)},h=(l==null?void 0:l.start)||(l==null?void 0:l.end)||e.placeholderValue||null,[m,g]=x3(h,e.granularity),b=m==="hour"||m==="minute"||m==="second";var x;let C=(x=e.shouldCloseOnSelect)!==null&&x!==void 0?x:!0,[D,S]=A.useState(null),[w,T]=A.useState(null);l&&su(l)&&(D=l,"hour"in l.start&&(w=l));let O=(M,B)=>{d({start:"timeZone"in B.start?B.start.set(Gr(M.start)):Ds(M.start,B.start),end:"timeZone"in B.end?B.end.set(Gr(M.end)):Ds(M.end,B.end)}),S(null),T(null),$e.commitValidation()},R=M=>{let B=typeof C=="function"?C():C;b?su(M)&&(w!=null&&w.start)&&(w!=null&&w.end)?O(M,{start:(w==null?void 0:w.start)||Ml(e.placeholderValue),end:(w==null?void 0:w.end)||Ml(e.placeholderValue)}):S(M):su(M)?(d(M),$e.commitValidation()):S(M),B&&r.setOpen(!1)},k=M=>{su(D)&&su(M)?O(D,M):T(M)},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",q=A.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:ce,maxValue:oe,isDateUnavailable:I}=e,be=A.useMemo(()=>vG(l,ce,oe,I,q),[l,ce,oe,I,q]),$e=Ld({...e,value:i,name:A.useMemo(()=>[e.startName,e.endName].filter(M=>M!=null),[e.startName,e.endName]),builtinValidation:be}),H=$e.displayValidation.isInvalid,ie=e.validationState||(H?"invalid":null);return{...$e,value:l,setValue:d,dateRange:D,timeRange:w,granularity:m,hasTime:b,setDate(M,B){var L,me;R(M==="start"?{start:B,end:(L=D==null?void 0:D.end)!==null&&L!==void 0?L:null}:{start:(me=D==null?void 0:D.start)!==null&&me!==void 0?me:null,end:B})},setTime(M,B){var L,me;k(M==="start"?{start:B,end:(L=w==null?void 0:w.end)!==null&&L!==void 0?L:null}:{start:(me=w==null?void 0:w.start)!==null&&me!==void 0?me:null,end:B})},setDateTime(M,B){var L,me;d(M==="start"?{start:B,end:(L=l==null?void 0:l.end)!==null&&L!==void 0?L:null}:{start:(me=l==null?void 0:l.start)!==null&&me!==void 0?me:null,end:B})},setDateRange:R,setTimeRange:k,...r,setOpen(M){!M&&!(l!=null&&l.start&&(l!=null&&l.end))&&su(D)&&b&&O(D,{start:(w==null?void 0:w.start)||Ml(e.placeholderValue),end:(w==null?void 0:w.end)||Ml(e.placeholderValue)}),r.setOpen(M)},validationState:ie,isInvalid:H,formatValue(M,B){if(!l||!l.start||!l.end)return null;let L="timeZone"in l.start?l.start.timeZone:void 0,me=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=Uo(B,{granularity:me,timeZone:L,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"}),Ee=l.start.toDate(L||"UTC"),Oe=l.end.toDate(U||"UTC"),_e=new Gi(M,xe),Ye;if(L===U&&me===te&&l.start.compare(l.end)!==0){try{let He=_e.formatRangeToParts(Ee,Oe),De=-1;for(let Ae=0;Ae<He.length;Ae++){let Ie=He[Ae];if(Ie.source==="shared"&&Ie.type==="literal")De=Ae;else if(Ie.source==="endRange")break}let Ke="",We="";for(let Ae=0;Ae<He.length;Ae++)Ae<De?Ke+=He[Ae].value:Ae>De&&(We+=He[Ae].value);return{start:Ke,end:We}}catch{}Ye=_e}else{let He=Uo(B,{granularity:te,timeZone:U,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});Ye=new Gi(M,He)}return{start:_e.format(Ee),end:Ye.format(Oe)}},getDateFormatter(M,B){let L={...q,...B},me=Uo({},L);return new Gi(M,me)}}}function su(e){return(e==null?void 0:e.start)!=null&&e.end!=null}function TG(e){let{placeholderValue:t=new Od,minValue:n,maxValue:r,granularity:i,validate:s}=e;var o;let[a,l]=Di(e.value,(o=e.defaultValue)!==null&&o!==void 0?o:null,e.onChange),d=a||t,h=d&&"day"in d?d:void 0,m=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,g=A.useMemo(()=>{let T=d&&"timeZone"in d?d.timeZone:void 0;return(T||m)&&t?X5(vf(t),T||m):vf(t)},[t,d,m]),b=A.useMemo(()=>vf(n,h),[n,h]),x=A.useMemo(()=>vf(r,h),[r,h]),C=A.useMemo(()=>a&&"day"in a?GC(a):a,[a]),D=A.useMemo(()=>a==null?null:vf(a),[a]);return{...KF({...e,value:D,defaultValue:void 0,minValue:b,maxValue:x,onChange:T=>{l(h||m?T:T&&GC(T))},granularity:i||"minute",maxGranularity:"hour",placeholderValue:g??void 0,createCalendar:()=>new Yr,validate:A.useCallback(()=>s==null?void 0:s(a),[s,a])}),timeValue:C}}function vf(e,t=Om(Fd())){return e?"day"in e?e:Ds(t,e):null}var ey,VS;function PG(){if(VS)return ey;VS=1;function e(){this.__data__=[],this.size=0}return ey=e,ey}var ty,NS;function w3(){if(NS)return ty;NS=1;function e(t,n){return t===n||t!==t&&n!==n}return ty=e,ty}var ny,jS;function Um(){if(jS)return ny;jS=1;var e=w3();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return ny=t,ny}var ry,KS;function _G(){if(KS)return ry;KS=1;var e=Um(),t=Array.prototype,n=t.splice;function r(i){var s=this.__data__,o=e(s,i);if(o<0)return!1;var a=s.length-1;return o==a?s.pop():n.call(s,o,1),--this.size,!0}return ry=r,ry}var iy,US;function MG(){if(US)return iy;US=1;var e=Um();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return iy=t,iy}var sy,zS;function RG(){if(zS)return sy;zS=1;var e=Um();function t(n){return e(this.__data__,n)>-1}return sy=t,sy}var oy,qS;function FG(){if(qS)return oy;qS=1;var e=Um();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 oy=t,oy}var ay,WS;function zm(){if(WS)return ay;WS=1;var e=PG(),t=_G(),n=MG(),r=RG(),i=FG();function s(o){var a=-1,l=o==null?0:o.length;for(this.clear();++a<l;){var d=o[a];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,ay=s,ay}var uy,HS;function kG(){if(HS)return uy;HS=1;var e=zm();function t(){this.__data__=new e,this.size=0}return uy=t,uy}var ly,GS;function OG(){if(GS)return ly;GS=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return ly=e,ly}var cy,YS;function IG(){if(YS)return cy;YS=1;function e(t){return this.__data__.get(t)}return cy=e,cy}var fy,ZS;function LG(){if(ZS)return fy;ZS=1;function e(t){return this.__data__.has(t)}return fy=e,fy}var dy,XS;function UF(){if(XS)return dy;XS=1;var e=typeof Hi=="object"&&Hi&&Hi.Object===Object&&Hi;return dy=e,dy}var hy,JS;function Xo(){if(JS)return hy;JS=1;var e=UF(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return hy=n,hy}var py,QS;function qm(){if(QS)return py;QS=1;var e=Xo(),t=e.Symbol;return py=t,py}var my,eE;function BG(){if(eE)return my;eE=1;var e=qm(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function s(o){var a=n.call(o,i),l=o[i];try{o[i]=void 0;var d=!0}catch{}var h=r.call(o);return d&&(a?o[i]=l:delete o[i]),h}return my=s,my}var gy,tE;function VG(){if(tE)return gy;tE=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return gy=n,gy}var vy,nE;function xc(){if(nE)return vy;nE=1;var e=qm(),t=BG(),n=VG(),r="[object Null]",i="[object Undefined]",s=e?e.toStringTag:void 0;function o(a){return a==null?a===void 0?i:r:s&&s in Object(a)?t(a):n(a)}return vy=o,vy}var yy,rE;function Wm(){if(rE)return yy;rE=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return yy=e,yy}var by,iE;function zF(){if(iE)return by;iE=1;var e=xc(),t=Wm(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",s="[object Proxy]";function o(a){if(!t(a))return!1;var l=e(a);return l==r||l==i||l==n||l==s}return by=o,by}var $y,sE;function NG(){if(sE)return $y;sE=1;var e=Xo(),t=e["__core-js_shared__"];return $y=t,$y}var xy,oE;function jG(){if(oE)return xy;oE=1;var e=NG(),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 xy=n,xy}var wy,aE;function qF(){if(aE)return wy;aE=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 wy=n,wy}var Cy,uE;function KG(){if(uE)return Cy;uE=1;var e=zF(),t=jG(),n=Wm(),r=qF(),i=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,o=Function.prototype,a=Object.prototype,l=o.toString,d=a.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 Cy=m,Cy}var Sy,lE;function UG(){if(lE)return Sy;lE=1;function e(t,n){return t==null?void 0:t[n]}return Sy=e,Sy}var Ey,cE;function wc(){if(cE)return Ey;cE=1;var e=KG(),t=UG();function n(r,i){var s=t(r,i);return e(s)?s:void 0}return Ey=n,Ey}var Dy,fE;function C3(){if(fE)return Dy;fE=1;var e=wc(),t=Xo(),n=e(t,"Map");return Dy=n,Dy}var Ay,dE;function Hm(){if(dE)return Ay;dE=1;var e=wc(),t=e(Object,"create");return Ay=t,Ay}var Ty,hE;function zG(){if(hE)return Ty;hE=1;var e=Hm();function t(){this.__data__=e?e(null):{},this.size=0}return Ty=t,Ty}var Py,pE;function qG(){if(pE)return Py;pE=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return Py=e,Py}var _y,mE;function WG(){if(mE)return _y;mE=1;var e=Hm(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(s){var o=this.__data__;if(e){var a=o[s];return a===t?void 0:a}return r.call(o,s)?o[s]:void 0}return _y=i,_y}var My,gE;function HG(){if(gE)return My;gE=1;var e=Hm(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var s=this.__data__;return e?s[i]!==void 0:n.call(s,i)}return My=r,My}var Ry,vE;function GG(){if(vE)return Ry;vE=1;var e=Hm(),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 Ry=n,Ry}var Fy,yE;function YG(){if(yE)return Fy;yE=1;var e=zG(),t=qG(),n=WG(),r=HG(),i=GG();function s(o){var a=-1,l=o==null?0:o.length;for(this.clear();++a<l;){var d=o[a];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,Fy=s,Fy}var ky,bE;function ZG(){if(bE)return ky;bE=1;var e=YG(),t=zm(),n=C3();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return ky=r,ky}var Oy,$E;function XG(){if($E)return Oy;$E=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return Oy=e,Oy}var Iy,xE;function Gm(){if(xE)return Iy;xE=1;var e=XG();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return Iy=t,Iy}var Ly,wE;function JG(){if(wE)return Ly;wE=1;var e=Gm();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return Ly=t,Ly}var By,CE;function QG(){if(CE)return By;CE=1;var e=Gm();function t(n){return e(this,n).get(n)}return By=t,By}var Vy,SE;function eY(){if(SE)return Vy;SE=1;var e=Gm();function t(n){return e(this,n).has(n)}return Vy=t,Vy}var Ny,EE;function tY(){if(EE)return Ny;EE=1;var e=Gm();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 Ny=t,Ny}var jy,DE;function S3(){if(DE)return jy;DE=1;var e=ZG(),t=JG(),n=QG(),r=eY(),i=tY();function s(o){var a=-1,l=o==null?0:o.length;for(this.clear();++a<l;){var d=o[a];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,jy=s,jy}var Ky,AE;function nY(){if(AE)return Ky;AE=1;var e=zm(),t=C3(),n=S3(),r=200;function i(s,o){var a=this.__data__;if(a instanceof e){var l=a.__data__;if(!t||l.length<r-1)return l.push([s,o]),this.size=++a.size,this;a=this.__data__=new n(l)}return a.set(s,o),this.size=a.size,this}return Ky=i,Ky}var Uy,TE;function WF(){if(TE)return Uy;TE=1;var e=zm(),t=kG(),n=OG(),r=IG(),i=LG(),s=nY();function o(a){var l=this.__data__=new e(a);this.size=l.size}return o.prototype.clear=t,o.prototype.delete=n,o.prototype.get=r,o.prototype.has=i,o.prototype.set=s,Uy=o,Uy}var zy,PE;function rY(){if(PE)return zy;PE=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return zy=t,zy}var qy,_E;function iY(){if(_E)return qy;_E=1;function e(t){return this.__data__.has(t)}return qy=e,qy}var Wy,ME;function sY(){if(ME)return Wy;ME=1;var e=S3(),t=rY(),n=iY();function r(i){var s=-1,o=i==null?0:i.length;for(this.__data__=new e;++s<o;)this.add(i[s])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,Wy=r,Wy}var Hy,RE;function HF(){if(RE)return Hy;RE=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 Hy=e,Hy}var Gy,FE;function oY(){if(FE)return Gy;FE=1;function e(t,n){return t.has(n)}return Gy=e,Gy}var Yy,kE;function GF(){if(kE)return Yy;kE=1;var e=sY(),t=HF(),n=oY(),r=1,i=2;function s(o,a,l,d,h,m){var g=l&r,b=o.length,x=a.length;if(b!=x&&!(g&&x>b))return!1;var C=m.get(o),D=m.get(a);if(C&&D)return C==a&&D==o;var S=-1,w=!0,T=l&i?new e:void 0;for(m.set(o,a),m.set(a,o);++S<b;){var O=o[S],R=a[S];if(d)var k=g?d(R,O,S,a,o,m):d(O,R,S,o,a,m);if(k!==void 0){if(k)continue;w=!1;break}if(T){if(!t(a,function(K,q){if(!n(T,q)&&(O===K||h(O,K,l,d,m)))return T.push(q)})){w=!1;break}}else if(!(O===R||h(O,R,l,d,m))){w=!1;break}}return m.delete(o),m.delete(a),w}return Yy=s,Yy}var Zy,OE;function aY(){if(OE)return Zy;OE=1;var e=Xo(),t=e.Uint8Array;return Zy=t,Zy}var Xy,IE;function uY(){if(IE)return Xy;IE=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,s){r[++n]=[s,i]}),r}return Xy=e,Xy}var Jy,LE;function lY(){if(LE)return Jy;LE=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return Jy=e,Jy}var Qy,BE;function cY(){if(BE)return Qy;BE=1;var e=qm(),t=aY(),n=w3(),r=GF(),i=uY(),s=lY(),o=1,a=2,l="[object Boolean]",d="[object Date]",h="[object Error]",m="[object Map]",g="[object Number]",b="[object RegExp]",x="[object Set]",C="[object String]",D="[object Symbol]",S="[object ArrayBuffer]",w="[object DataView]",T=e?e.prototype:void 0,O=T?T.valueOf:void 0;function R(k,K,q,ce,oe,I,be){switch(q){case w:if(k.byteLength!=K.byteLength||k.byteOffset!=K.byteOffset)return!1;k=k.buffer,K=K.buffer;case S:return!(k.byteLength!=K.byteLength||!I(new t(k),new t(K)));case l:case d:case g:return n(+k,+K);case h:return k.name==K.name&&k.message==K.message;case b:case C:return k==K+"";case m:var $e=i;case x:var H=ce&o;if($e||($e=s),k.size!=K.size&&!H)return!1;var ie=be.get(k);if(ie)return ie==K;ce|=a,be.set(k,K);var M=r($e(k),$e(K),ce,oe,I,be);return be.delete(k),M;case D:if(O)return O.call(k)==O.call(K)}return!1}return Qy=R,Qy}var e0,VE;function fY(){if(VE)return e0;VE=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 e0=e,e0}var t0,NE;function Jo(){if(NE)return t0;NE=1;var e=Array.isArray;return t0=e,t0}var n0,jE;function dY(){if(jE)return n0;jE=1;var e=fY(),t=Jo();function n(r,i,s){var o=i(r);return t(r)?o:e(o,s(r))}return n0=n,n0}var r0,KE;function hY(){if(KE)return r0;KE=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,s=0,o=[];++r<i;){var a=t[r];n(a,r,t)&&(o[s++]=a)}return o}return r0=e,r0}var i0,UE;function pY(){if(UE)return i0;UE=1;function e(){return[]}return i0=e,i0}var s0,zE;function mY(){if(zE)return s0;zE=1;var e=hY(),t=pY(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(a){return r.call(o,a)}))}:t;return s0=s,s0}var o0,qE;function gY(){if(qE)return o0;qE=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return o0=e,o0}var a0,WE;function Cc(){if(WE)return a0;WE=1;function e(t){return t!=null&&typeof t=="object"}return a0=e,a0}var u0,HE;function vY(){if(HE)return u0;HE=1;var e=xc(),t=Cc(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return u0=r,u0}var l0,GE;function YF(){if(GE)return l0;GE=1;var e=vY(),t=Cc(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,s=e(function(){return arguments}())?e:function(o){return t(o)&&r.call(o,"callee")&&!i.call(o,"callee")};return l0=s,l0}var Mf={exports:{}},c0,YE;function yY(){if(YE)return c0;YE=1;function e(){return!1}return c0=e,c0}Mf.exports;var ZE;function ZF(){return ZE||(ZE=1,function(e,t){var n=Xo(),r=yY(),i=t&&!t.nodeType&&t,s=i&&!0&&e&&!e.nodeType&&e,o=s&&s.exports===i,a=o?n.Buffer:void 0,l=a?a.isBuffer:void 0,d=l||r;e.exports=d}(Mf,Mf.exports)),Mf.exports}var f0,XE;function E3(){if(XE)return f0;XE=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 f0=n,f0}var d0,JE;function D3(){if(JE)return d0;JE=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return d0=t,d0}var h0,QE;function bY(){if(QE)return h0;QE=1;var e=xc(),t=D3(),n=Cc(),r="[object Arguments]",i="[object Array]",s="[object Boolean]",o="[object Date]",a="[object Error]",l="[object Function]",d="[object Map]",h="[object Number]",m="[object Object]",g="[object RegExp]",b="[object Set]",x="[object String]",C="[object WeakMap]",D="[object ArrayBuffer]",S="[object DataView]",w="[object Float32Array]",T="[object Float64Array]",O="[object Int8Array]",R="[object Int16Array]",k="[object Int32Array]",K="[object Uint8Array]",q="[object Uint8ClampedArray]",ce="[object Uint16Array]",oe="[object Uint32Array]",I={};I[w]=I[T]=I[O]=I[R]=I[k]=I[K]=I[q]=I[ce]=I[oe]=!0,I[r]=I[i]=I[D]=I[s]=I[S]=I[o]=I[a]=I[l]=I[d]=I[h]=I[m]=I[g]=I[b]=I[x]=I[C]=!1;function be($e){return n($e)&&t($e.length)&&!!I[e($e)]}return h0=be,h0}var p0,eD;function $Y(){if(eD)return p0;eD=1;function e(t){return function(n){return t(n)}}return p0=e,p0}var Rf={exports:{}};Rf.exports;var tD;function xY(){return tD||(tD=1,function(e,t){var n=UF(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===r,o=s&&n.process,a=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=a}(Rf,Rf.exports)),Rf.exports}var m0,nD;function XF(){if(nD)return m0;nD=1;var e=bY(),t=$Y(),n=xY(),r=n&&n.isTypedArray,i=r?t(r):e;return m0=i,m0}var g0,rD;function wY(){if(rD)return g0;rD=1;var e=gY(),t=YF(),n=Jo(),r=ZF(),i=E3(),s=XF(),o=Object.prototype,a=o.hasOwnProperty;function l(d,h){var m=n(d),g=!m&&t(d),b=!m&&!g&&r(d),x=!m&&!g&&!b&&s(d),C=m||g||b||x,D=C?e(d.length,String):[],S=D.length;for(var w in d)(h||a.call(d,w))&&!(C&&(w=="length"||b&&(w=="offset"||w=="parent")||x&&(w=="buffer"||w=="byteLength"||w=="byteOffset")||i(w,S)))&&D.push(w);return D}return g0=l,g0}var v0,iD;function CY(){if(iD)return v0;iD=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return v0=t,v0}var y0,sD;function SY(){if(sD)return y0;sD=1;function e(t,n){return function(r){return t(n(r))}}return y0=e,y0}var b0,oD;function EY(){if(oD)return b0;oD=1;var e=SY(),t=e(Object.keys,Object);return b0=t,b0}var $0,aD;function DY(){if(aD)return $0;aD=1;var e=CY(),t=EY(),n=Object.prototype,r=n.hasOwnProperty;function i(s){if(!e(s))return t(s);var o=[];for(var a in Object(s))r.call(s,a)&&a!="constructor"&&o.push(a);return o}return $0=i,$0}var x0,uD;function A3(){if(uD)return x0;uD=1;var e=zF(),t=D3();function n(r){return r!=null&&t(r.length)&&!e(r)}return x0=n,x0}var w0,lD;function T3(){if(lD)return w0;lD=1;var e=wY(),t=DY(),n=A3();function r(i){return n(i)?e(i):t(i)}return w0=r,w0}var C0,cD;function AY(){if(cD)return C0;cD=1;var e=dY(),t=mY(),n=T3();function r(i){return e(i,n,t)}return C0=r,C0}var S0,fD;function TY(){if(fD)return S0;fD=1;var e=AY(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(s,o,a,l,d,h){var m=a&t,g=e(s),b=g.length,x=e(o),C=x.length;if(b!=C&&!m)return!1;for(var D=b;D--;){var S=g[D];if(!(m?S in o:r.call(o,S)))return!1}var w=h.get(s),T=h.get(o);if(w&&T)return w==o&&T==s;var O=!0;h.set(s,o),h.set(o,s);for(var R=m;++D<b;){S=g[D];var k=s[S],K=o[S];if(l)var q=m?l(K,k,S,o,s,h):l(k,K,S,s,o,h);if(!(q===void 0?k===K||d(k,K,a,l,h):q)){O=!1;break}R||(R=S=="constructor")}if(O&&!R){var ce=s.constructor,oe=o.constructor;ce!=oe&&"constructor"in s&&"constructor"in o&&!(typeof ce=="function"&&ce instanceof ce&&typeof oe=="function"&&oe instanceof oe)&&(O=!1)}return h.delete(s),h.delete(o),O}return S0=i,S0}var E0,dD;function PY(){if(dD)return E0;dD=1;var e=wc(),t=Xo(),n=e(t,"DataView");return E0=n,E0}var D0,hD;function _Y(){if(hD)return D0;hD=1;var e=wc(),t=Xo(),n=e(t,"Promise");return D0=n,D0}var A0,pD;function MY(){if(pD)return A0;pD=1;var e=wc(),t=Xo(),n=e(t,"Set");return A0=n,A0}var T0,mD;function RY(){if(mD)return T0;mD=1;var e=wc(),t=Xo(),n=e(t,"WeakMap");return T0=n,T0}var P0,gD;function FY(){if(gD)return P0;gD=1;var e=PY(),t=C3(),n=_Y(),r=MY(),i=RY(),s=xc(),o=qF(),a="[object Map]",l="[object Object]",d="[object Promise]",h="[object Set]",m="[object WeakMap]",g="[object DataView]",b=o(e),x=o(t),C=o(n),D=o(r),S=o(i),w=s;return(e&&w(new e(new ArrayBuffer(1)))!=g||t&&w(new t)!=a||n&&w(n.resolve())!=d||r&&w(new r)!=h||i&&w(new i)!=m)&&(w=function(T){var O=s(T),R=O==l?T.constructor:void 0,k=R?o(R):"";if(k)switch(k){case b:return g;case x:return a;case C:return d;case D:return h;case S:return m}return O}),P0=w,P0}var _0,vD;function kY(){if(vD)return _0;vD=1;var e=WF(),t=GF(),n=cY(),r=TY(),i=FY(),s=Jo(),o=ZF(),a=XF(),l=1,d="[object Arguments]",h="[object Array]",m="[object Object]",g=Object.prototype,b=g.hasOwnProperty;function x(C,D,S,w,T,O){var R=s(C),k=s(D),K=R?h:i(C),q=k?h:i(D);K=K==d?m:K,q=q==d?m:q;var ce=K==m,oe=q==m,I=K==q;if(I&&o(C)){if(!o(D))return!1;R=!0,ce=!1}if(I&&!ce)return O||(O=new e),R||a(C)?t(C,D,S,w,T,O):n(C,D,K,S,w,T,O);if(!(S&l)){var be=ce&&b.call(C,"__wrapped__"),$e=oe&&b.call(D,"__wrapped__");if(be||$e){var H=be?C.value():C,ie=$e?D.value():D;return O||(O=new e),T(H,ie,S,w,O)}}return I?(O||(O=new e),r(C,D,S,w,T,O)):!1}return _0=x,_0}var M0,yD;function P3(){if(yD)return M0;yD=1;var e=kY(),t=Cc();function n(r,i,s,o,a){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,s,o,n,a)}return M0=n,M0}var R0,bD;function OY(){if(bD)return R0;bD=1;var e=P3();function t(n,r){return e(n,r)}return R0=t,R0}var IY=OY();const LY=ts(IY);var vp={exports:{}},BY=vp.exports,$D;function VY(){return $D||($D=1,function(e,t){(function(n,r){e.exports=r()})(BY,function(){var n=1e3,r=6e4,i=36e5,s="millisecond",o="second",a="minute",l="hour",d="day",h="week",m="month",g="quarter",b="year",x="date",C="Invalid Date",D=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(H){var ie=["th","st","nd","rd"],M=H%100;return"["+H+(ie[(M-20)%10]||ie[M]||ie[0])+"]"}},T=function(H,ie,M){var B=String(H);return!B||B.length>=ie?H:""+Array(ie+1-B.length).join(M)+H},O={s:T,z:function(H){var ie=-H.utcOffset(),M=Math.abs(ie),B=Math.floor(M/60),L=M%60;return(ie<=0?"+":"-")+T(B,2,"0")+":"+T(L,2,"0")},m:function H(ie,M){if(ie.date()<M.date())return-H(M,ie);var B=12*(M.year()-ie.year())+(M.month()-ie.month()),L=ie.clone().add(B,m),me=M-L<0,U=ie.clone().add(B+(me?-1:1),m);return+(-(B+(M-L)/(me?L-U:U-L))||0)},a:function(H){return H<0?Math.ceil(H)||0:Math.floor(H)},p:function(H){return{M:m,y:b,w:h,d,D:x,h:l,m:a,s:o,ms:s,Q:g}[H]||String(H||"").toLowerCase().replace(/s$/,"")},u:function(H){return H===void 0}},R="en",k={};k[R]=w;var K="$isDayjsObject",q=function(H){return H instanceof be||!(!H||!H[K])},ce=function H(ie,M,B){var L;if(!ie)return R;if(typeof ie=="string"){var me=ie.toLowerCase();k[me]&&(L=me),M&&(k[me]=M,L=me);var U=ie.split("-");if(!L&&U.length>1)return H(U[0])}else{var te=ie.name;k[te]=ie,L=te}return!B&&L&&(R=L),L||!B&&R},oe=function(H,ie){if(q(H))return H.clone();var M=typeof ie=="object"?ie:{};return M.date=H,M.args=arguments,new be(M)},I=O;I.l=ce,I.i=q,I.w=function(H,ie){return oe(H,{locale:ie.$L,utc:ie.$u,x:ie.$x,$offset:ie.$offset})};var be=function(){function H(M){this.$L=ce(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[K]=!0}var ie=H.prototype;return ie.parse=function(M){this.$d=function(B){var L=B.date,me=B.utc;if(L===null)return new Date(NaN);if(I.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var U=L.match(D);if(U){var te=U[2]-1||0,xe=(U[7]||"0").substring(0,3);return me?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(L)}(M),this.init()},ie.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},ie.$utils=function(){return I},ie.isValid=function(){return this.$d.toString()!==C},ie.isSame=function(M,B){var L=oe(M);return this.startOf(B)<=L&&L<=this.endOf(B)},ie.isAfter=function(M,B){return oe(M)<this.startOf(B)},ie.isBefore=function(M,B){return this.endOf(B)<oe(M)},ie.$g=function(M,B,L){return I.u(M)?this[B]:this.set(L,M)},ie.unix=function(){return Math.floor(this.valueOf()/1e3)},ie.valueOf=function(){return this.$d.getTime()},ie.startOf=function(M,B){var L=this,me=!!I.u(B)||B,U=I.p(M),te=function(Ke,We){var Ae=I.w(L.$u?Date.UTC(L.$y,We,Ke):new Date(L.$y,We,Ke),L);return me?Ae:Ae.endOf(d)},xe=function(Ke,We){return I.w(L.toDate()[Ke].apply(L.toDate("s"),(me?[0,0,0,0]:[23,59,59,999]).slice(We)),L)},Ee=this.$W,Oe=this.$M,_e=this.$D,Ye="set"+(this.$u?"UTC":"");switch(U){case b:return me?te(1,0):te(31,11);case m:return me?te(1,Oe):te(0,Oe+1);case h:var He=this.$locale().weekStart||0,De=(Ee<He?Ee+7:Ee)-He;return te(me?_e-De:_e+(6-De),Oe);case d:case x:return xe(Ye+"Hours",0);case l:return xe(Ye+"Minutes",1);case a:return xe(Ye+"Seconds",2);case o:return xe(Ye+"Milliseconds",3);default:return this.clone()}},ie.endOf=function(M){return this.startOf(M,!1)},ie.$set=function(M,B){var L,me=I.p(M),U="set"+(this.$u?"UTC":""),te=(L={},L[d]=U+"Date",L[x]=U+"Date",L[m]=U+"Month",L[b]=U+"FullYear",L[l]=U+"Hours",L[a]=U+"Minutes",L[o]=U+"Seconds",L[s]=U+"Milliseconds",L)[me],xe=me===d?this.$D+(B-this.$W):B;if(me===m||me===b){var Ee=this.clone().set(x,1);Ee.$d[te](xe),Ee.init(),this.$d=Ee.set(x,Math.min(this.$D,Ee.daysInMonth())).$d}else te&&this.$d[te](xe);return this.init(),this},ie.set=function(M,B){return this.clone().$set(M,B)},ie.get=function(M){return this[I.p(M)]()},ie.add=function(M,B){var L,me=this;M=Number(M);var U=I.p(B),te=function(Oe){var _e=oe(me);return I.w(_e.date(_e.date()+Math.round(Oe*M)),me)};if(U===m)return this.set(m,this.$M+M);if(U===b)return this.set(b,this.$y+M);if(U===d)return te(1);if(U===h)return te(7);var xe=(L={},L[a]=r,L[l]=i,L[o]=n,L)[U]||1,Ee=this.$d.getTime()+M*xe;return I.w(Ee,this)},ie.subtract=function(M,B){return this.add(-1*M,B)},ie.format=function(M){var B=this,L=this.$locale();if(!this.isValid())return L.invalidDate||C;var me=M||"YYYY-MM-DDTHH:mm:ssZ",U=I.z(this),te=this.$H,xe=this.$m,Ee=this.$M,Oe=L.weekdays,_e=L.months,Ye=L.meridiem,He=function(We,Ae,Ie,et){return We&&(We[Ae]||We(B,me))||Ie[Ae].slice(0,et)},De=function(We){return I.s(te%12||12,We,"0")},Ke=Ye||function(We,Ae,Ie){var et=We<12?"AM":"PM";return Ie?et.toLowerCase():et};return me.replace(S,function(We,Ae){return Ae||function(Ie){switch(Ie){case"YY":return String(B.$y).slice(-2);case"YYYY":return I.s(B.$y,4,"0");case"M":return Ee+1;case"MM":return I.s(Ee+1,2,"0");case"MMM":return He(L.monthsShort,Ee,_e,3);case"MMMM":return He(_e,Ee);case"D":return B.$D;case"DD":return I.s(B.$D,2,"0");case"d":return String(B.$W);case"dd":return He(L.weekdaysMin,B.$W,Oe,2);case"ddd":return He(L.weekdaysShort,B.$W,Oe,3);case"dddd":return Oe[B.$W];case"H":return String(te);case"HH":return I.s(te,2,"0");case"h":return De(1);case"hh":return De(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(B.$s);case"ss":return I.s(B.$s,2,"0");case"SSS":return I.s(B.$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(M,B,L){var me,U=this,te=I.p(B),xe=oe(M),Ee=(xe.utcOffset()-this.utcOffset())*r,Oe=this-xe,_e=function(){return I.m(U,xe)};switch(te){case b:me=_e()/12;break;case m:me=_e();break;case g:me=_e()/3;break;case h:me=(Oe-Ee)/6048e5;break;case d:me=(Oe-Ee)/864e5;break;case l:me=Oe/i;break;case a:me=Oe/r;break;case o:me=Oe/n;break;default:me=Oe}return L?me:I.a(me)},ie.daysInMonth=function(){return this.endOf(m).$D},ie.$locale=function(){return k[this.$L]},ie.locale=function(M,B){if(!M)return this.$L;var L=this.clone(),me=ce(M,B,!0);return me&&(L.$L=me),L},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()},H}(),$e=be.prototype;return oe.prototype=$e,[["$ms",s],["$s",o],["$m",a],["$H",l],["$W",d],["$M",m],["$y",b],["$D",x]].forEach(function(H){$e[H[1]]=function(ie){return this.$g(ie,H[0],H[1])}}),oe.extend=function(H,ie){return H.$i||(H(ie,be,oe),H.$i=!0),oe},oe.locale=ce,oe.isDayjs=q,oe.unix=function(H){return oe(1e3*H)},oe.en=k[R],oe.Ls=k,oe.p={},oe})}(vp)),vp.exports}var JF=VY();const NY=ts(JF);var F0,xD;function jY(){if(xD)return F0;xD=1;var e=xc(),t=Cc(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return F0=r,F0}var KY=jY();const UY=ts(KY);var Vu=[["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"]],zY="react-international-phone-",QF=(...e)=>e.filter(t=>!!t).join(" ").trim(),qY=(...e)=>QF(...e).split(" ").map(t=>`${zY}${t}`).join(" "),Rr=({addPrefix:e,rawClassNames:t})=>QF(qY(...e),...t),WY=({value:e,mask:t,maskSymbol:n,offset:r=0,trimNonMaskCharsLeftover:i=!1})=>{if(e.length<r)return e;let s=e.slice(0,r),o=e.slice(r),a=s,l=0;for(let d of t.split("")){if(l>=o.length){if(!i&&d!==n){a+=d;continue}break}d===n?(a+=o[l],l+=1):a+=d}return a},Al=e=>e?/^\d+$/.test(e):!1,Ym=e=>e.replace(/\D/g,""),HY=(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,o=r.bottom-i.bottom;s>=0&&o>=0||(Math.abs(s)<Math.abs(o)?e.scrollTop+=s:e.scrollTop-=o),e.style.display=n},GY=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh"),YY=(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=Ym(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 o=()=>{let d=t.dialCode.length,h=i.slice(0,d),m=i.slice(d);return{phoneLeftSide:h,phoneRightSide:m}},{phoneLeftSide:a,phoneRightSide:l}=o();return a=`${t.prefix}${a}${t.charAfterDialCode}`,l=WY({value:l,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&l.length===0}),t.disableDialCodeAndPrefix&&(a=""),s(`${a}${l}`)},ZY=({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:n,cursorPositionAfterInput:r,leftOffset:i=0,deletion:s})=>{if(r<i)return i;if(!e)return n.length;let o=null;for(let h=r-1;h>=0;h-=1)if(Al(t[h])){o=h;break}if(o===null){for(let h=0;h<t.length;h+=1)if(Al(n[h]))return h;return t.length}let a=0;for(let h=0;h<o;h+=1)Al(t[h])&&(a+=1);let l=0,d=0;for(let h=0;h<n.length&&(l+=1,Al(n[h])&&(d+=1),!(d>=a+1));h+=1);if(s!=="backward")for(;!Al(n[l])&&l<n.length;)l+=1;return l},yp=({phone:e,prefix:t})=>e?`${t}${Ym(e)}`:"";function Nb({value:e,country:t,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:i,prefix:s,charAfterDialCode:o,forceDialCode:a,disableDialCodeAndPrefix:l,defaultMask:d,countryGuessingEnabled:h,disableFormatting:m}){let g=e;l&&(g=g.startsWith(`${s}`)?g:`${s}${t.dialCode}${g}`);let b=h?sZ({phone:g,countries:i,currentCountryIso2:t==null?void 0:t.iso2}):void 0,x=(b==null?void 0:b.country)??t,C=YY(g,{prefix:s,mask:rZ({phone:g,country:x,defaultMask:d,disableFormatting:m}),maskChar:e7,dialCode:x.dialCode,trimNonDigitsEnd:r,charAfterDialCode:o,forceDialCode:a,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:l}),D=h&&!(b!=null&&b.fullDialCodeMatch)?t:x;return{phone:yp({phone:l?`${D.dialCode}${C}`:C,prefix:s}),inputValue:C,country:D}}var XY=e=>{if((e==null?void 0:e.toLocaleLowerCase().includes("delete"))??!1)return e!=null&&e.toLocaleLowerCase().includes("forward")?"forward":"backward"},JY=(e,{country:t,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:i,charAfterDialCode:s,forceDialCode:o,disableDialCodeAndPrefix:a,countryGuessingEnabled:l,defaultMask:d,disableFormatting:h,countries:m})=>{let g=e.nativeEvent,b=g.inputType,x=XY(b),C=!!(b!=null&&b.startsWith("insertFrom")),D=b==="insertText",S=(g==null?void 0:g.data)||void 0,w=e.target.value,T=e.target.selectionStart??0;if(b!=null&&b.includes("history"))return{inputValue:r,phone:yp({phone:r,prefix:i}),cursorPosition:r.length,country:t};if(D&&!Al(S)&&w!==i)return{inputValue:r,phone:yp({phone:a?`${t.dialCode}${r}`:r,prefix:i}),cursorPosition:T-((S==null?void 0:S.length)??0),country:t};if(o&&!w.startsWith(`${i}${t.dialCode}`)&&!C){let q=w?r:`${i}${t.dialCode}${s}`;return{inputValue:q,phone:yp({phone:q,prefix:i}),cursorPosition:i.length+t.dialCode.length+s.length,country:t}}let{phone:O,inputValue:R,country:k}=Nb({value:w,country:t,trimNonDigitsEnd:x==="backward",insertDialCodeOnEmpty:n,countryGuessingEnabled:l,countries:m,prefix:i,charAfterDialCode:s,forceDialCode:o,disableDialCodeAndPrefix:a,disableFormatting:h,defaultMask:d}),K=ZY({cursorPositionAfterInput:T,phoneBeforeInput:r,phoneAfterInput:w,phoneAfterFormatted:R,leftOffset:o?i.length+t.dialCode.length+s.length:0,deletion:x});return{phone:O,inputValue:R,cursorPosition:K,country:k}},QY=(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},eZ=()=>{let e=A.useRef(),t=A.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}}},tZ={size:20,overrideLastItemDebounceMS:-1};function nZ(e,t){let{size:n,overrideLastItemDebounceMS:r,onChange:i}={...tZ,...t},[s,o]=A.useState(e),[a,l]=A.useState([s]),[d,h]=A.useState(0),m=eZ();return[s,(g,b)=>{if(typeof g=="object"&&typeof s=="object"&&QY(g,s)||g===s)return;let x=r>0,C=m.check(),D=x&&C!==void 0?C>r:!0;if((b==null?void 0:b.overrideLastItem)!==void 0?b.overrideLastItem:!D)l(S=>[...S.slice(0,d),g]);else{let S=a.length>=n;l(w=>[...w.slice(S?1:0,d+1),g]),S||h(w=>w+1)}o(g),i==null||i(g)},()=>{if(d<=0)return{success:!1};let g=a[d-1];return o(g),h(b=>b-1),i==null||i(g),{success:!0,value:g}},()=>{if(d+1>=a.length)return{success:!1};let g=a[d+1];return o(g),h(b=>b+1),i==null||i(g),{success:!0,value:g}}]}var e7=".",Bi={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:Vu},t7=({defaultCountry:e=Bi.defaultCountry,value:t=Bi.value,countries:n=Bi.countries,prefix:r=Bi.prefix,defaultMask:i=Bi.defaultMask,charAfterDialCode:s=Bi.charAfterDialCode,historySaveDebounceMS:o=Bi.historySaveDebounceMS,disableCountryGuess:a=Bi.disableCountryGuess,disableDialCodePrefill:l=Bi.disableDialCodePrefill,forceDialCode:d=Bi.forceDialCode,disableDialCodeAndPrefix:h=Bi.disableDialCodeAndPrefix,disableFormatting:m=Bi.disableFormatting,onChange:g,inputRef:b})=>{let x={countries:n,prefix:r,charAfterDialCode:s,forceDialCode:h?!1:d,disableDialCodeAndPrefix:h,defaultMask:i,countryGuessingEnabled:!a,disableFormatting:m},C=A.useRef(null),D=b||C,S=H=>{Promise.resolve().then(()=>{var ie;typeof window>"u"||D.current!==(document==null?void 0:document.activeElement)||((ie=D.current)==null||ie.setSelectionRange(H,H))})},[{phone:w,inputValue:T,country:O},R,k,K]=nZ(()=>{let H=Rl({value:e,field:"iso2",countries:n});H||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let ie=H||Rl({value:"us",field:"iso2",countries:n}),{phone:M,inputValue:B,country:L}=Nb({value:t,country:ie,insertDialCodeOnEmpty:!l,...x});return S(B.length),{phone:M,inputValue:B,country:L.iso2}},{overrideLastItemDebounceMS:o,onChange:({inputValue:H,phone:ie,country:M})=>{if(!g)return;let B=q(M);g({phone:ie,inputValue:H,country:B})}}),q=A.useCallback(H=>Rl({value:H,field:"iso2",countries:n}),[n]),ce=A.useMemo(()=>q(O),[O,q]);A.useEffect(()=>{let H=D.current;if(!H)return;let ie=M=>{if(!M.key)return;let B=M.ctrlKey,L=M.metaKey,me=M.shiftKey;if(M.key.toLowerCase()==="z"){if(GY()){if(!L)return}else if(!B)return;me?K():k()}};return H.addEventListener("keydown",ie),()=>{H.removeEventListener("keydown",ie)}},[D,k,K]);let oe=H=>{H.preventDefault();let{phone:ie,inputValue:M,country:B,cursorPosition:L}=JY(H,{country:ce,phoneBeforeInput:T,insertDialCodeOnEmpty:!1,...x});return R({inputValue:M,phone:ie,country:B.iso2}),S(L),t},I=(H,ie={focusOnInput:!1})=>{let M=Rl({value:H,field:"iso2",countries:n});if(!M){console.error(`[react-international-phone]: can not find a country with "${H}" iso2 code`);return}let B=h?"":`${r}${M.dialCode}${s}`;R({inputValue:B,phone:`${r}${M.dialCode}`,country:M.iso2}),ie.focusOnInput&&Promise.resolve().then(()=>{var L;(L=D.current)==null||L.focus()})},[be,$e]=A.useState(!1);return A.useEffect(()=>{if(!be){$e(!0),t!==w&&(g==null||g({inputValue:T,phone:w,country:ce}));return}if(t===w)return;let{phone:H,inputValue:ie,country:M}=Nb({value:t,country:ce,insertDialCodeOnEmpty:!l,...x});R({phone:H,inputValue:ie,country:M.iso2})},[t]),{phone:w,inputValue:T,country:ce,setCountry:I,handlePhoneValueChange:oe,inputRef:D}},rZ=({phone:e,country:t,defaultMask:n="............",disableFormatting:r=!1})=>{let i=t.format,s=a=>r?a.replace(new RegExp(`[^${e7}]`,"g"),""):a;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 o=Object.keys(i).find(a=>{if(a==="default")return!1;if(!(a.charAt(0)==="/"&&a.charAt(a.length-1)==="/"))return console.error(`[react-international-phone]: format regex "${a}" for ${t.iso2} is not valid`),!1;let l=new RegExp(a.substring(1,a.length-1)),d=e.replace(t.dialCode,"");return l.test(Ym(d))});return s(o?i[o]:i.default)},bs=e=>{let[t,n,r,i,s,o]=e;return{name:t,iso2:n,dialCode:r,format:i,priority:s,areaCodes:o}},iZ=e=>`Field "${e}" is not supported`,Rl=({field:e,value:t,countries:n=Vu})=>{if(["priority"].includes(e))throw new Error(iZ(e));let r=n.find(i=>{let s=bs(i);return t===s[e]});if(r)return bs(r)},sZ=({phone:e,countries:t=Vu,currentCountryIso2:n})=>{var a;let r={country:void 0,fullDialCodeMatch:!1};if(!e)return r;let i=Ym(e);if(!i)return r;let s=r,o=({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=bs(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)&&o({country:d,fullDialCodeMatch:!0})}s.fullDialCodeMatch||i.length<h.length&&h.startsWith(i)&&(!s.country||Number(h)<=Number(s.country.dialCode))&&o({country:d,fullDialCodeMatch:!1})}if(n){let l=Rl({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&&((a=s.country)==null?void 0:a.dialCode)===l.dialCode&&s.country!==l&&s.fullDialCodeMatch&&(!l.areaCodes||d)&&(s={country:l,fullDialCodeMatch:!0})}return s},oZ=(e,t)=>{let n=parseInt(e,16);return Number(n+t).toString(16)},aZ="abcdefghijklmnopqrstuvwxyz",uZ="1f1e6",wD=aZ.split("").reduce((e,t,n)=>({...e,[t]:oZ(uZ,n)}),{}),lZ=e=>[wD[e[0]],wD[e[1]]].join("-"),_3=({iso2:e,size:t,src:n,protocol:r="https",disableLazyLoading:i,className:s,style:o,...a})=>{if(!e)return A.createElement("img",{className:Rr({addPrefix:["flag-emoji"],rawClassNames:[s]}),width:t,height:t,...a});let l=()=>{if(n)return n;let d=lZ(e);return`${r}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${d}.svg`};return A.createElement("img",{className:Rr({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,...o},alt:"",...a})},cZ=1e3,fZ=({show:e,dialCodePrefix:t="+",selectedCountry:n,countries:r=Vu,preferredCountries:i=[],flags:s,onSelect:o,onClose:a,...l})=>{let d=A.useRef(null),h=A.useRef(),m=A.useMemo(()=>{if(!i||!i.length)return r;let k=[],K=[...r];for(let q of i){let ce=K.findIndex(oe=>bs(oe).iso2===q);if(ce!==-1){let oe=K.splice(ce,1)[0];k.push(oe)}}return k.concat(K)},[r,i]),g=A.useRef({updatedAt:void 0,value:""}),b=k=>{let K=g.current.updatedAt&&new Date().getTime()-g.current.updatedAt.getTime()>cZ;g.current={value:K?k:`${g.current.value}${k}`,updatedAt:new Date};let q=m.findIndex(ce=>bs(ce).name.toLowerCase().startsWith(g.current.value));q!==-1&&D(q)},x=A.useCallback(k=>m.findIndex(K=>bs(K).iso2===k),[m]),[C,D]=A.useState(x(n)),S=()=>{h.current!==n&&D(x(n))},w=A.useCallback(k=>{D(x(k.iso2)),o==null||o(k)},[o,x]),T=k=>{let K=m.length-1,q=ce=>k==="prev"?ce-1:k==="next"?ce+1:k==="last"?K:0;D(ce=>{let oe=q(ce);return oe<0?0:oe>K?K:oe})},O=k=>{if(k.stopPropagation(),k.key==="Enter"){k.preventDefault();let K=bs(m[C]);w(K);return}if(k.key==="Escape"){a==null||a();return}if(k.key==="ArrowUp"){k.preventDefault(),T("prev");return}if(k.key==="ArrowDown"){k.preventDefault(),T("next");return}if(k.key==="PageUp"){k.preventDefault(),T("first");return}if(k.key==="PageDown"){k.preventDefault(),T("last");return}k.key===" "&&k.preventDefault(),k.key.length===1&&!k.altKey&&!k.ctrlKey&&!k.metaKey&&b(k.key.toLocaleLowerCase())},R=A.useCallback(()=>{if(!d.current||C===void 0)return;let k=bs(m[C]).iso2;if(k===h.current)return;let K=d.current.querySelector(`[data-country="${k}"]`);K&&(HY(d.current,K),h.current=k)},[C,m]);return A.useEffect(()=>{R()},[C,R]),A.useEffect(()=>{d.current&&(e?d.current.focus():S())},[e]),A.useEffect(()=>{S()},[n]),A.createElement("ul",{ref:d,role:"listbox",className:Rr({addPrefix:["country-selector-dropdown"],rawClassNames:[l.className]}),style:{display:e?"block":"none",...l.style},onKeyDown:O,onBlur:a,tabIndex:-1,"aria-activedescendant":`react-international-phone__${bs(m[C]).iso2}-option`},m.map((k,K)=>{let q=bs(k),ce=q.iso2===n,oe=K===C,I=i.includes(q.iso2),be=K===i.length-1,$e=s==null?void 0:s.find(H=>H.iso2===q.iso2);return A.createElement(A.Fragment,{key:q.iso2},A.createElement("li",{"data-country":q.iso2,role:"option","aria-selected":ce,"aria-label":`${q.name} ${t}${q.dialCode}`,id:`react-international-phone__${q.iso2}-option`,className:Rr({addPrefix:["country-selector-dropdown__list-item",I&&"country-selector-dropdown__list-item--preferred",ce&&"country-selector-dropdown__list-item--selected",oe&&"country-selector-dropdown__list-item--focused"],rawClassNames:[l.listItemClassName]}),onClick:()=>w(q),style:l.listItemStyle,title:q.name},A.createElement(_3,{iso2:q.iso2,src:$e==null?void 0:$e.src,className:Rr({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[l.listItemFlagClassName]}),style:l.listItemFlagStyle}),A.createElement("span",{className:Rr({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[l.listItemCountryNameClassName]}),style:l.listItemCountryNameStyle},q.name),A.createElement("span",{className:Rr({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[l.listItemDialCodeClassName]}),style:l.listItemDialCodeStyle},t,q.dialCode)),be?A.createElement("hr",{className:Rr({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[l.preferredListDividerClassName]}),style:l.preferredListDividerStyle}):null)}))},dZ=({selectedCountry:e,onSelect:t,disabled:n,hideDropdown:r,countries:i=Vu,preferredCountries:s=[],flags:o,renderButtonWrapper:a,...l})=>{let[d,h]=A.useState(!1),m=A.useMemo(()=>{if(e)return Rl({value:e,field:"iso2",countries:i})},[i,e]),g=A.useRef(null),b=C=>{C.key&&["ArrowUp","ArrowDown"].includes(C.key)&&(C.preventDefault(),h(!0))},x=()=>{var S;let C={title:m==null?void 0:m.name,onClick:()=>h(w=>!w),onMouseDown:w=>w.preventDefault(),onKeyDown:b,disabled:r||n,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":d},D=A.createElement("div",{className:Rr({addPrefix:["country-selector-button__button-content"],rawClassNames:[l.buttonContentWrapperClassName]}),style:l.buttonContentWrapperStyle},A.createElement(_3,{iso2:e,src:(S=o==null?void 0:o.find(w=>w.iso2===e))==null?void 0:S.src,className:Rr({addPrefix:["country-selector-button__flag-emoji",n&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[l.flagClassName]}),style:{visibility:e?"visible":"hidden",...l.flagStyle}}),!r&&A.createElement("div",{className:Rr({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 a?a({children:D,rootProps:C}):A.createElement("button",{...C,type:"button",className:Rr({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},D)};return A.createElement("div",{className:Rr({addPrefix:["country-selector"],rawClassNames:[l.className]}),style:l.style,ref:g},x(),A.createElement(fZ,{show:d,countries:i,preferredCountries:s,flags:o,onSelect:C=>{h(!1),t==null||t(C)},selectedCountry:e,onClose:()=>{h(!1)},...l.dropdownStyleProps}))},hZ=({dialCode:e,prefix:t,disabled:n,style:r,className:i})=>A.createElement("div",{className:Rr({addPrefix:["dial-code-preview",n&&"dial-code-preview--disabled"],rawClassNames:[i]}),style:r},`${t}${e}`);A.forwardRef(({value:e,onChange:t,countries:n=Vu,preferredCountries:r=[],hideDropdown:i,showDisabledDialCodeAndPrefix:s,disableFocusAfterCountrySelect:o,flags:a,style:l,className:d,inputStyle:h,inputClassName:m,countrySelectorStyleProps:g,dialCodePreviewStyleProps:b,inputProps:x,placeholder:C,disabled:D,name:S,onFocus:w,onBlur:T,required:O,autoFocus:R,...k},K)=>{let{phone:q,inputValue:ce,inputRef:oe,country:I,setCountry:be,handlePhoneValueChange:$e}=t7({value:e,countries:n,...k,onChange:ie=>{t==null||t(ie.phone,{country:ie.country,inputValue:ie.inputValue})}}),H=k.disableDialCodeAndPrefix&&s&&(I==null?void 0:I.dialCode);return A.useImperativeHandle(K,()=>oe.current?Object.assign(oe.current,{setCountry:be,state:{phone:q,inputValue:ce,country:I}}):null,[oe,be,q,ce,I]),A.createElement("div",{ref:K,className:Rr({addPrefix:["input-container"],rawClassNames:[d]}),style:l},A.createElement(dZ,{onSelect:ie=>be(ie.iso2,{focusOnInput:!o}),flags:a,selectedCountry:I.iso2,countries:n,preferredCountries:r,disabled:D,hideDropdown:i,...g}),H&&A.createElement(hZ,{dialCode:I.dialCode,prefix:k.prefix??"+",disabled:D,...b}),A.createElement("input",{onChange:$e,value:ce,type:"tel",ref:oe,className:Rr({addPrefix:["input",D&&"input--disabled"],rawClassNames:[m]}),placeholder:C,disabled:D,style:h,name:S,onFocus:w,onBlur:T,autoFocus:R,required:O,...x}))});var Ca=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},jb={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,s="[object Arguments]",o="[object Array]",a="[object Boolean]",l="[object Date]",d="[object Error]",h="[object Function]",m="[object GeneratorFunction]",g="[object Map]",b="[object Number]",x="[object Object]",C="[object Promise]",D="[object RegExp]",S="[object Set]",w="[object String]",T="[object Symbol]",O="[object WeakMap]",R="[object ArrayBuffer]",k="[object DataView]",K="[object Float32Array]",q="[object Float64Array]",ce="[object Int8Array]",oe="[object Int16Array]",I="[object Int32Array]",be="[object Uint8Array]",$e="[object Uint8ClampedArray]",H="[object Uint16Array]",ie="[object Uint32Array]",M=/[\\^$.*+?()[\]{}|]/g,B=/\w*$/,L=/^\[object .+?Constructor\]$/,me=/^(?:0|[1-9]\d*)$/,U={};U[s]=U[o]=U[R]=U[k]=U[a]=U[l]=U[K]=U[q]=U[ce]=U[oe]=U[I]=U[g]=U[b]=U[x]=U[D]=U[S]=U[w]=U[T]=U[be]=U[$e]=U[H]=U[ie]=!0,U[d]=U[h]=U[O]=!1;var te=typeof Ca=="object"&&Ca&&Ca.Object===Object&&Ca,xe=typeof self=="object"&&self&&self.Object===Object&&self,Ee=te||xe||Function("return this")(),Oe=t&&!t.nodeType&&t,_e=Oe&&!0&&e&&!e.nodeType&&e,Ye=_e&&_e.exports===Oe;function He(se,Me){return se.set(Me[0],Me[1]),se}function De(se,Me){return se.add(Me),se}function Ke(se,Me){for(var ze=-1,pt=se?se.length:0;++ze<pt&&Me(se[ze],ze,se)!==!1;);return se}function We(se,Me){for(var ze=-1,pt=Me.length,xn=se.length;++ze<pt;)se[xn+ze]=Me[ze];return se}function Ae(se,Me,ze,pt){for(var xn=-1,sr=se?se.length:0;++xn<sr;)ze=Me(ze,se[xn],xn,se);return ze}function Ie(se,Me){for(var ze=-1,pt=Array(se);++ze<se;)pt[ze]=Me(ze);return pt}function et(se,Me){return se==null?void 0:se[Me]}function xt(se){var Me=!1;if(se!=null&&typeof se.toString!="function")try{Me=!!(se+"")}catch{}return Me}function fn(se){var Me=-1,ze=Array(se.size);return se.forEach(function(pt,xn){ze[++Me]=[xn,pt]}),ze}function bt(se,Me){return function(ze){return se(Me(ze))}}function Rt(se){var Me=-1,ze=Array(se.size);return se.forEach(function(pt){ze[++Me]=pt}),ze}var ci=Array.prototype,gt=Function.prototype,Tt=Object.prototype,Ft=Ee["__core-js_shared__"],we=function(){var se=/[^.]+$/.exec(Ft&&Ft.keys&&Ft.keys.IE_PROTO||"");return se?"Symbol(src)_1."+se:""}(),Pe=gt.toString,Be=Tt.hasOwnProperty,rt=Tt.toString,it=RegExp("^"+Pe.call(Be).replace(M,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Xe=Ye?Ee.Buffer:void 0,tt=Ee.Symbol,_t=Ee.Uint8Array,en=bt(Object.getPrototypeOf,Object),kt=Object.create,Mt=Tt.propertyIsEnumerable,Vt=ci.splice,Ht=Object.getOwnPropertySymbols,gr=Xe?Xe.isBuffer:void 0,Zr=bt(Object.keys,Object),fi=mi(Ee,"DataView"),Or=mi(Ee,"Map"),_s=mi(Ee,"Promise"),ka=mi(Ee,"Set"),$t=mi(Ee,"WeakMap"),di=mi(Object,"create"),co=Br(fi),kc=Br(Or),qu=Br(_s),Oc=Br(ka),Wu=Br($t),Oa=tt?tt.prototype:void 0,Hu=Oa?Oa.valueOf:void 0;function ns(se){var Me=-1,ze=se?se.length:0;for(this.clear();++Me<ze;){var pt=se[Me];this.set(pt[0],pt[1])}}function rs(){this.__data__=di?di(null):{}}function yt(se){return this.has(se)&&delete this.__data__[se]}function Dn(se){var Me=this.__data__;if(di){var ze=Me[se];return ze===r?void 0:ze}return Be.call(Me,se)?Me[se]:void 0}function fo(se){var Me=this.__data__;return di?Me[se]!==void 0:Be.call(Me,se)}function Gu(se,Me){var ze=this.__data__;return ze[se]=di&&Me===void 0?r:Me,this}ns.prototype.clear=rs,ns.prototype.delete=yt,ns.prototype.get=Dn,ns.prototype.has=fo,ns.prototype.set=Gu;function Cr(se){var Me=-1,ze=se?se.length:0;for(this.clear();++Me<ze;){var pt=se[Me];this.set(pt[0],pt[1])}}function Yu(){this.__data__=[]}function Zu(se){var Me=this.__data__,ze=ho(Me,se);if(ze<0)return!1;var pt=Me.length-1;return ze==pt?Me.pop():Vt.call(Me,ze,1),!0}function Ic(se){var Me=this.__data__,ze=ho(Me,se);return ze<0?void 0:Me[ze][1]}function Xr(se){return ho(this.__data__,se)>-1}function ot(se,Me){var ze=this.__data__,pt=ho(ze,se);return pt<0?ze.push([se,Me]):ze[pt][1]=Me,this}Cr.prototype.clear=Yu,Cr.prototype.delete=Zu,Cr.prototype.get=Ic,Cr.prototype.has=Xr,Cr.prototype.set=ot;function pn(se){var Me=-1,ze=se?se.length:0;for(this.clear();++Me<ze;){var pt=se[Me];this.set(pt[0],pt[1])}}function is(){this.__data__={hash:new ns,map:new(Or||Cr),string:new ns}}function hi(se){return Ai(this,se).delete(se)}function Jn(se){return Ai(this,se).get(se)}function Ia(se){return Ai(this,se).has(se)}function Ms(se,Me){return Ai(this,se).set(se,Me),this}pn.prototype.clear=is,pn.prototype.delete=hi,pn.prototype.get=Jn,pn.prototype.has=Ia,pn.prototype.set=Ms;function pi(se){this.__data__=new Cr(se)}function Bn(){this.__data__=new Cr}function Qo(se){return this.__data__.delete(se)}function qt(se){return this.__data__.get(se)}function Lc(se){return this.__data__.has(se)}function Xu(se,Me){var ze=this.__data__;if(ze instanceof Cr){var pt=ze.__data__;if(!Or||pt.length<n-1)return pt.push([se,Me]),this;ze=this.__data__=new pn(pt)}return ze.set(se,Me),this}pi.prototype.clear=Bn,pi.prototype.delete=Qo,pi.prototype.get=qt,pi.prototype.has=Lc,pi.prototype.set=Xu;function Bc(se,Me){var ze=yo(se)||ks(se)?Ie(se.length,String):[],pt=ze.length,xn=!!pt;for(var sr in se)Be.call(se,sr)&&!(xn&&(sr=="length"||Ka(sr,pt)))&&ze.push(sr);return ze}function La(se,Me,ze){var pt=se[Me];(!(Be.call(se,Me)&&Fs(pt,ze))||ze===void 0&&!(Me in se))&&(se[Me]=ze)}function ho(se,Me){for(var ze=se.length;ze--;)if(Fs(se[ze][0],Me))return ze;return-1}function Ju(se,Me){return se&&yr(Me,xo(Me),se)}function Ba(se,Me,ze,pt,xn,sr,ur){var Un;if(pt&&(Un=sr?pt(se,xn,sr,ur):pt(se)),Un!==void 0)return Un;if(!$o(se))return se;var An=yo(se);if(An){if(Un=ja(se),!Me)return ea(se,Un)}else{var Pi=Ti(se),_i=Pi==h||Pi==m;if(ta(se))return Na(se,Me);if(Pi==x||Pi==s||_i&&!sr){if(xt(se))return sr?se:{};if(Un=nl(_i?{}:se),!Me)return mo(se,Ju(Un,se))}else{if(!U[Pi])return sr?se:{};Un=yn(se,Pi,Ba,Me)}}ur||(ur=new pi);var qa=ur.get(se);if(qa)return qa;if(ur.set(se,Un),!An)var na=ze?go(se):xo(se);return Ke(na||se,function(lr,wo){na&&(wo=lr,lr=se[wo]),La(Un,wo,Ba(lr,Me,ze,pt,wo,se,ur))}),Un}function Vc(se){return $o(se)?kt(se):{}}function Nc(se,Me,ze){var pt=Me(se);return yo(se)?pt:We(pt,ze(se))}function jc(se){return rt.call(se)}function Qu(se){if(!$o(se)||Ua(se))return!1;var Me=il(se)||xt(se)?it:L;return Me.test(Br(se))}function Va(se){if(!rl(se))return Zr(se);var Me=[];for(var ze in Object(se))Be.call(se,ze)&&ze!="constructor"&&Me.push(ze);return Me}function Na(se,Me){if(Me)return se.slice();var ze=new se.constructor(se.length);return se.copy(ze),ze}function po(se){var Me=new se.constructor(se.byteLength);return new _t(Me).set(new _t(se)),Me}function el(se,Me){var ze=Me?po(se.buffer):se.buffer;return new se.constructor(ze,se.byteOffset,se.byteLength)}function tl(se,Me,ze){var pt=Me?ze(fn(se),!0):fn(se);return Ae(pt,He,new se.constructor)}function Ir(se){var Me=new se.constructor(se.source,B.exec(se));return Me.lastIndex=se.lastIndex,Me}function vr(se,Me,ze){var pt=Me?ze(Rt(se),!0):Rt(se);return Ae(pt,De,new se.constructor)}function Lr(se){return Hu?Object(Hu.call(se)):{}}function Rs(se,Me){var ze=Me?po(se.buffer):se.buffer;return new se.constructor(ze,se.byteOffset,se.length)}function ea(se,Me){var ze=-1,pt=se.length;for(Me||(Me=Array(pt));++ze<pt;)Me[ze]=se[ze];return Me}function yr(se,Me,ze,pt){ze||(ze={});for(var xn=-1,sr=Me.length;++xn<sr;){var ur=Me[xn],Un=void 0;La(ze,ur,Un===void 0?se[ur]:Un)}return ze}function mo(se,Me){return yr(se,ar(se),Me)}function go(se){return Nc(se,xo,ar)}function Ai(se,Me){var ze=se.__data__;return vo(Me)?ze[typeof Me=="string"?"string":"hash"]:ze.map}function mi(se,Me){var ze=et(se,Me);return Qu(ze)?ze:void 0}var ar=Ht?bt(Ht,Object):Zt,Ti=jc;(fi&&Ti(new fi(new ArrayBuffer(1)))!=k||Or&&Ti(new Or)!=g||_s&&Ti(_s.resolve())!=C||ka&&Ti(new ka)!=S||$t&&Ti(new $t)!=O)&&(Ti=function(se){var Me=rt.call(se),ze=Me==x?se.constructor:void 0,pt=ze?Br(ze):void 0;if(pt)switch(pt){case co:return k;case kc:return g;case qu:return C;case Oc:return S;case Wu:return O}return Me});function ja(se){var Me=se.length,ze=se.constructor(Me);return Me&&typeof se[0]=="string"&&Be.call(se,"index")&&(ze.index=se.index,ze.input=se.input),ze}function nl(se){return typeof se.constructor=="function"&&!rl(se)?Vc(en(se)):{}}function yn(se,Me,ze,pt){var xn=se.constructor;switch(Me){case R:return po(se);case a:case l:return new xn(+se);case k:return el(se,pt);case K:case q:case ce:case oe:case I:case be:case $e:case H:case ie:return Rs(se,pt);case g:return tl(se,pt,ze);case b:case w:return new xn(se);case D:return Ir(se);case S:return vr(se,pt,ze);case T:return Lr(se)}}function Ka(se,Me){return Me=Me??i,!!Me&&(typeof se=="number"||me.test(se))&&se>-1&&se%1==0&&se<Me}function vo(se){var Me=typeof se;return Me=="string"||Me=="number"||Me=="symbol"||Me=="boolean"?se!=="__proto__":se===null}function Ua(se){return!!we&&we in se}function rl(se){var Me=se&&se.constructor,ze=typeof Me=="function"&&Me.prototype||Tt;return se===ze}function Br(se){if(se!=null){try{return Pe.call(se)}catch{}try{return se+""}catch{}}return""}function za(se){return Ba(se,!0,!0)}function Fs(se,Me){return se===Me||se!==se&&Me!==Me}function ks(se){return bo(se)&&Be.call(se,"callee")&&(!Mt.call(se,"callee")||rt.call(se)==s)}var yo=Array.isArray;function ss(se){return se!=null&&Kc(se.length)&&!il(se)}function bo(se){return Uc(se)&&ss(se)}var ta=gr||nn;function il(se){var Me=$o(se)?rt.call(se):"";return Me==h||Me==m}function Kc(se){return typeof se=="number"&&se>-1&&se%1==0&&se<=i}function $o(se){var Me=typeof se;return!!se&&(Me=="object"||Me=="function")}function Uc(se){return!!se&&typeof se=="object"}function xo(se){return ss(se)?Bc(se):Va(se)}function Zt(){return[]}function nn(){return!1}e.exports=za})(jb,jb.exports);var Sa=jb.exports,Kb=function(){return Kb=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},Kb.apply(this,arguments)};function pZ(e,t,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(h){try{d(r.next(h))}catch(m){o(m)}}function l(h){try{d(r.throw(h))}catch(m){o(m)}}function d(h){h.done?s(h.value):i(h.value).then(a,l)}d((r=r.apply(e,[])).next())})}function mZ(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(d){return function(h){return l([d,h])}}function l(d){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=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 Xp(e,t,n,r,i){return pZ(this,void 0,void 0,function(){var s,o;return mZ(this,function(a){switch(a.label){case 0:if(n===void 0)return[2];o=0,a.label=1;case 1:return o<n.length?[4,n[o](e,t,r,i,n)]:[3,4];case 2:if(s=a.sent(),s==="canceled")return[3,4];a.label=3;case 3:return o++,[3,1];case 4:return s!=="canceled"?[2,s]:[2]}})})}var Ub=function(e,t){return t===void 0&&(t={}),e?{trackedAnalytics:Kb({sdkCode:e.sdkCode,sdkSemver:e.sdkSemver,techVersion:e.techVersion},t)}:null},gZ=function(){function e(t,n,r,i){var s=this;this.isMounted=!0,this.imgElement=t,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var o=Sa(n);Xp(t,o,r,this.htmlPluginState,i).then(function(a){if(s.isMounted){s.htmlPluginState.pluginEventSubscription.forEach(function(d){d()});var l=Ub(i,a);s.imgElement.setAttribute("src",o.toURL(l))}})}return e.prototype.update=function(t,n,r){var i=this,s=Sa(t);Xp(this.imgElement,s,n,this.htmlPluginState).then(function(o){if(i.isMounted){var a=Ub(r,o);i.imgElement.setAttribute("src",s.toURL(a))}})},e.prototype.unmount=function(){this.isMounted=!1},e}();let Ln=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}},vZ=class extends Error{constructor(t="Unsupported"){super(t)}};function M3(e){return new vZ(e)}function yZ(){return this._qualifierModel||{error:M3(`unsupported qualifier ${this.constructor.name}`)}}let bZ=class{constructor(){this._qualifierModel={}}toJson(){return yZ.apply(this)}},Bt=class extends bZ{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof Ln?this.qualifierValue=n:(this.qualifierValue=new Ln,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}},Zi=class extends Bt{constructor(t,n){let r;n?r=new Ln([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}};function $Z(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function xZ(){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:M3(`unsupported action ${this.constructor.name}`)}}let wZ=class{constructor(){this._actionModel={}}toJson(){return xZ.apply(this)}},As=class extends wZ{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(),$Z(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 Zi(r)):this.qualifiers.set(n,new Bt(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new Zi(t)):t instanceof Zi&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}};class R3 extends As{constructor(t){super(),this.regionType=t,this._actionModel.regionType=t}}class Zm extends R3{constructor(){super("custom")}x(t){return this._actionModel.x=t,this.addQualifier(new Bt("x",t)),this}y(t){return this._actionModel.y=t,this.addQualifier(new Bt("y",t)),this}width(t){return this._actionModel.width=t,this.addQualifier(new Bt("w",t)),this}height(t){return this._actionModel.height=t,this.addQualifier(new Bt("h",t)),this}static fromJson(t){const n=new Zm;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 CZ(){return new Zm}function n7(){return new R3("faces")}function SZ(){return new R3("ocr_text")}class EZ extends As{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 Bt("e",`blur_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new Bt("e",`blur_region${t}`)),this.addQualifier(new Bt("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new Bt("e",`blur_faces${t}`))):this.addQualifier(new Bt("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(n7()),r&&r.regionType==="ocr_text"&&i.region(SZ()),r&&r.regionType==="custom"&&i.region(Zm.fromJson(r)),i}}function Nu(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const r7={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},DZ={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},i7={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},s7={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},AZ={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},o7={444:"CHROMA_444",420:"CHROMA_420"},TZ={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"},PZ=Nu(o7);Nu(TZ);const _Z=Nu(r7),MZ=Nu(DZ),a7=Nu(i7);Nu(s7);Nu(AZ);class u7 extends As{constructor(t,n){super(),this._actionModel={},this._actionModel.actionType=a7[t]||t;const r=this.createEffectQualifier(t,n);this.addQualifier(r)}createEffectQualifier(t,n){let r;return n?r=new Ln([t,`${n}`]).setDelimiter(":"):r=new Ln(t),new Bt("e",r)}static fromJson(t){const{actionType:n,level:r,strength:i}=t,s=i7[n]||n;return new this(s,r||i)}}class RZ extends u7{constructor(t,n){super(t,n),this.LEVEL_NAME="level",this._actionModel={},this.effectType=t,this._actionModel.actionType=a7[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 Xm(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class FZ extends As{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 Ln(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(t+=`:${new Ln(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(t+=`:${new Ln(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(t+=`:${new Ln(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(t+=`:${new Ln(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new Bt("e",t))}static fromJson(t){const{actionType:n,paths:r,cornersLevel:i,despeckleLevel:s,detailLevel:o,numOfColors:a}=t,l=new this;return r&&l.paths(r),i&&l.cornersLevel(i),s&&l.despeckleLevel(s),o&&l.detailsLevel(o),a&&l.numOfColors(a),l}}class kZ extends RZ{level(t){return this._actionModel.level=t,this.setLevel(t)}}class OZ extends As{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new Bt("e",new Ln("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new Bt("e",new Ln(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(t){return this._actionModel.type="stripes",this._actionModel.stripesStrength=t,this.addQualifier(new Bt("e",new Ln(["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 IZ extends kZ{color(t){return this._actionModel.color=t,this.addQualifier(new Bt("co",new Ln(Xm(t))))}static fromJson(t){const{actionType:n,level:r,color:i}=t,s=new this(n,r);return i&&s.color(i),s}}class LZ extends As{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 Bt("e",`pixelate_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new Bt("e",`pixelate_region${t}`)),this.addQualifier(new Bt("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new Bt("e",`pixelate_faces${t}`))):this.addQualifier(new Bt("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(n7()),n&&n.regionType==="custom"&&i.region(CZ()),i}}const BZ=e=>UZ(encodeURIComponent,jZ,KZ)(e),VZ=/[!'()*~_.-]/g,NZ={"!":"%21","'":"%27","(":"%28",")":"%29","*":"%2A","~":"%7E",_:"%5F",".":"%2E","-":"%2D"},jZ=e=>e.replace(VZ,t=>{var n;return(n=NZ[t])!==null&&n!==void 0?n:t}),KZ=e=>e.replace(/%20/g," "),UZ=(...e)=>t=>e.reduce((n,r)=>r(n),t);function zZ(e){return new EZ(e)}function qZ(){return new u7("grayscale")}function CD(e){return new IZ("colorize",e)}function WZ(){return new FZ}function HZ(){return new OZ}function GZ(e){return new LZ(e)}let YZ=class extends As{constructor(t){super(),this._actionModel={},this.addQualifier(new Bt("b",new Ln(Xm(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}},SD=class{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:M3(`unsupported action ${this.constructor.name}`)}}};function ZZ(e){const t=e;return"error"in t&&!!t.error}function XZ(){return new Zi("ignore_aspect_ratio")}function JZ(){return new Zi("lossy")}function QZ(){return new Zi("preserve_transparency")}function eX(e){return new Zi("progressive",e)}function tX(){return new Zi("region_relative")}function nX(){return new Zi("relative")}let F3=class extends Ln{constructor(t){super(t),this.val=t}getValue(){return this.val}},l7=class extends As{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof F3?i=n.getValue():i=n,this._actionModel.actionType=MZ[t],this._actionModel[r]=i,this.addQualifier(new Bt(t,n))}},rX=class extends Zi{constructor(t){super("progressive",t)}},zb=class extends l7{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(JZ()),this}progressive(t){return t instanceof rX?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(eX(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(QZ()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:s}=t;let o;return n?o=new this("f",n):o=new this("f"),i&&(i.mode?o.progressive(i.mode):o.progressive()),r&&o.lossy(),s&&o.preserveTransparency(),o}},Jm=class c7{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 SD(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof c7?this.actions=this.actions.concat(t.actions):this.actions.push(new SD(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 zb("q",t)),this}format(t){return this.addAction(new zb("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 YZ(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new As;let r=t;return typeof t=="string"&&(r=new Zi(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(ZZ(r))return r;t.push(r)}return{actions:t}}};function ED(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 iX extends Ln{}class sX extends As{constructor(t,n,r){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=_Z[t]||t,this.addQualifier(new Bt("c",t)),n&&this.width(n),r&&this.height(r)}height(t){return this._actionModel.dimensions.height=t,this.addQualifier(new Bt("h",t))}width(t){return this._actionModel.dimensions.width=t,this.addQualifier(new Bt("w",t))}aspectRatio(t){if(t instanceof iX)return this._actionModel.dimensions.aspectRatio=`${t}`,this.addQualifier(new Bt("ar",t));if(typeof t=="number"||typeof t=="string")return this._actionModel.dimensions.aspectRatio=ED(t),this.addQualifier(new Bt("ar",ED(t)));if(t instanceof Zi)return this._actionModel.dimensions.aspectRatio=`${t.qualifierValue}`,this.addFlag(t)}relative(){return this._actionModel.relative=!0,this.addFlag(nX())}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(tX())}static fromJson(t){const{actionType:n,dimensions:r,relative:i,regionRelative:s}=t,{aspectRatio:o,width:a,height:l}=r,d=r7[n]||n,h=new this(d,a,l);return o&&h.aspectRatio(o==="ignore_aspect_ratio"?XZ():o),i&&h.relative(),s&&h.regionRelative(),h}}class k3 extends Bt{constructor(t){super("g",new Ln(t))}}class f7 extends k3{constructor(){super("auto")}autoFocus(...t){return this.addValue(t),this}}class d7 extends k3{constructor(t){super(t)}fallbackGravity(t){return this.addValue(t.qualifierValue),this}}class h7 extends k3{constructor(t){super(t)}}function oX(e){return new h7(e)}function p7(...e){const t=[...e];return new d7(t)}function m7(){return new f7}class oc extends Ln{constructor(t){super(),this.name=t}toString(){return this.name}}function aX(){return new oc("ocr_text")}function uX(e){return e&&`${e}`.split(":")[0]==="auto"}function lX(e){const t=O3(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}function O3(e){return`${e}`.replace("g_","")}function cX(e){return{compass:O3(e),gravityType:"direction"}}function fX(e){return O3(e)==="ocr_text"}function dX(){return{gravityType:"ocr"}}function hX(e){return`${e.qualifierValue}`.split(":")[0]==="auto"}function pX(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 g7(e){let t;const n=e==="auto"?new f7: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(pX)}}function mX(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),o=m7().autoFocus(...s);i.fallbackGravity=g7(o)}return i}function gX(e){const n=e.split(":").map(r=>new oc(r));return new d7(n)}function vX(e){return lX(e)?cX(e):fX(e)?dX():uX(e)||hX(e)?g7(e):mX(typeof e=="string"?gX(e):e)}class I3 extends Ln{constructor(t,n){super(),this._weight=n,this.focusOn=t,this.shouldAvoid=!1}static focusOn(t,n){const r=t instanceof oc?t:new oc(t);return new I3(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 v7 extends Ln{constructor(t){super(),this.val=t}toString(){return this.val}}function yX(e){return e.gravityType==="direction"}function bX(e){return e.gravityType==="ocr"}function $X(e){return e.gravityType==="auto"}function xX(e){const{object:t,weight:n,avoid:r}=e,i=new I3(new oc(t));return(n||n===0)&&i.weight(n),r&&i.avoid(),i}function y7(e){const n=(e.autoFocus||[]).map(xX);return m7().autoFocus(...n)}function wX(e){const t=(e.focusOnObjects||[]).map(r=>new oc(r)),n=p7(...t);if(e.fallbackGravity){const r=y7(e.fallbackGravity);n.fallbackGravity(r)}return n}function CX(e){return yX(e)?new h7(new v7(e.compass)):bX(e)?p7(aX()):$X(e)?y7(e):wX(e)}class L3 extends sX{gravity(t){this._actionModel.gravity=vX(t);const n=typeof t=="string"?new Bt("g",t):t;return this.addQualifier(n)}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.gravity&&n.gravity(CX(t.gravity)),n}}class Vd extends Bt{constructor(t){super("b"),t&&this.addValue(t)}}const b7=100,SX=0;class EX extends Vd{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}`:`:${b7}:${this.brightnessLevel}`:"";return`b_blurred${t}${n}`}}var $7=EX;class B3 extends Vd{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...t){return this._palette=t.map(n=>Xm(n)),this}}class x7 extends B3{toString(){return`
87
- b_auto:border
88
- ${this._contrast?"_contrast":""}
89
- ${this._palette.length?`:palette_${this._palette.join("_")}`:""}
90
- `.replace(/\s+/g,"")}}class w7 extends B3{gradientColors(t){return this._gradientColors=t,this}gradientDirection(t){return this._gradientDirection=t,this}}class C7 extends w7{toString(){return`
91
- b_auto:border_gradient
92
- ${this._contrast?"_contrast":""}
93
- ${this._gradientColors?`:${this._gradientColors}`:""}
94
- ${this._gradientDirection?`:${this._gradientDirection}`:""}
95
- ${this._palette.length?`:palette_${this._palette.join("_")}`:""}
96
- `.replace(/\s+/g,"")}}class S7 extends w7{toString(){return`
97
- b_auto:predominant_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 E7 extends B3{toString(){return`
103
- b_auto:predominant
104
- ${this._contrast?"_contrast":""}
105
- ${this._palette.length?`:palette_${this._palette.join("_")}`:""}
106
- `.replace(/\s+/g,"")}}class D7 extends Vd{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_${BZ(this._prompt)}`:""}`}}function A7(e){return`${e}`.replace("b_","")}function DX(){return{backgroundType:"auto"}}function AX(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 V3(e){const t=e._contrast,n=e._palette,r={backgroundType:""};return t&&(r.contrast=!0),n&&(r.palette=n),r}function TX(e){return Object.assign(Object.assign({},V3(e)),{backgroundType:"border"})}function T7(e){const t=e._gradientColors,n=`${e._gradientDirection}`,r=V3(e);return t&&(r.gradientColors=t),n&&(r.gradientDirection=n),r}function PX(e){return Object.assign(Object.assign({},T7(e)),{backgroundType:"borderGradient"})}function _X(e){return{backgroundType:"color",color:A7(e)}}function MX(e){return Object.assign(Object.assign({},V3(e)),{backgroundType:"predominant"})}function RX(e){return Object.assign(Object.assign({},T7(e)),{backgroundType:"predominantGradient"})}function FX(e){return Object.assign({backgroundType:e.getBackgroundType()},e.getPrompt()?{prompt:e.getPrompt()}:{})}function kX(e){return A7(e)==="auto"?DX():e instanceof $7?AX(e):e instanceof x7?TX(e):e instanceof C7?PX(e):e instanceof E7?MX(e):e instanceof S7?RX(e):e instanceof D7?FX(e):_X(e)}function OX(){return new F3("svg")}function N3(){return new F3("auto")}function P7(){return new x7}function _7(){return new Vd("auto")}function M7(){return new C7}function R7(){return new S7}function F7(){return new E7}function k7(e){return new Vd(Xm(e))}function IX(){return new $7}function O7(){return new D7}const I7={auto:_7,border:P7,borderGradient:M7,predominantGradient:R7,predominant:F7,color:k7,blurred:IX,generativeFill:O7};function LX(e){const{brightness:t,intensity:n}=e,r=I7.blurred();return r.brightness(t??SX),r.intensity(n??b7),r}function DD(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 AD(e,t){const{contrast:n,palette:r}=t;return n&&e.contrast(),r&&e.palette(...r),e}function BX(e,t){const{prompt:n}=t;return n&&e.prompt(n),e}function VX(e){const{backgroundType:t}=e;switch(t){case"auto":return _7();case"blurred":return LX(e);case"border":return AD(P7(),e);case"borderGradient":return DD(M7(),e);case"predominant":return AD(F7(),e);case"predominantGradient":return DD(R7(),e);case"generativeFill":return BX(O7(),e);default:return k7(e.color)}}class NX extends L3{background(t){return this._actionModel.background=kX(t),this.addQualifier(t)}offsetX(t){return this._actionModel.x=t,this.addQualifier(new Bt("x",t))}offsetY(t){return this._actionModel.y=t,this.addQualifier(new Bt("y",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.background&&n.background(VX(t.background)),t.x&&n.offsetX(t.x),t.y&&n.offsetY(t.y),t.zoom&&n.zoom(t.zoom),n}}class jX extends L3{x(t){return this._actionModel.x=t,this.addQualifier(new Bt("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new Bt("y",t))}zoom(t){return this._actionModel.zoom=t,this.addQualifier(new Bt("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 KX extends L3{x(t){return this._actionModel.x=t,this.addQualifier(new Bt("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new Bt("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 UX(e,t){return new jX("crop",e,t)}function zX(e,t){return new KX("fill",e,t)}function qX(e,t){return new NX("pad",e,t)}class WX extends l7{constructor(t){super("q",t.toString(),"level")}chromaSubSampling(t){this._actionModel.chromaSubSampling=o7[t];const n=new Ln([this._actionModel.level,t]);return n.setDelimiter(":"),this.addQualifier(new Bt("q",n))}quantization(t){this._actionModel.quantization=t;const n=new Ln([this._actionModel.level,`qmax_${t}`]).setDelimiter(":");return this.addQualifier(new Bt("q",n))}static fromJson(t){const{level:n,chromaSubSampling:r,quantization:i}=t,s=s7[n]||n,o=new this(s);if(r){const a=PZ[r.toUpperCase()];a&&o.chromaSubSampling(+a)}return i&&o.quantization(i),o}}function Qm(e){return new zb("f",e)}function eg(e){return new WX(e)}function HX(){return new v7("north_east")}CD(70).color("black"),CD(40).color("white"),qZ(),HZ();var GX=new Jm().effect(WZ()).delivery(eg("auto")).delivery(Qm(OX())),YX=new Jm().effect(GZ()).delivery(eg("auto")).delivery(Qm(N3())),ZX=new Jm().effect(zZ(2e3)).delivery(eg("auto")).delivery(Qm(N3())),XX=new Jm().resize(qX("iw_div_2").aspectRatio(1).background(I7.auto())).resize(UX(1,1).gravity(oX(HX()))).resize(zX().height("ih").width("iw")).delivery(eg("auto")).delivery(Qm(N3())),TD={vectorize:GX,pixelate:YX,blur:ZX,"predominant-color":XX},PD="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",_D={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},MD="?_a=",JX=function(){function e(t,n,r,i,s,o,a){var l=this;this.mimeType="video",this.mimeSubTypes=_D,this.videoElement=t,this.originalVideo=n,this.videoOptions=a,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var d=Sa(n);Xp(t,n,i,this.htmlPluginState).then(function(){l.htmlPluginState.pluginEventSubscription.forEach(function(h){h()}),l.setVideoAttributes(s,o),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(Sa(t),s)})}},e.prototype.generateUserSources=function(t,n){var r=this;n.map(function(i){var s=i.type,o=i.codecs,a=i.transcode;return r.appendSourceTag(Sa(t).transcode(a),s,r.buildMimeType(s,o))})},e.prototype.appendSourceTag=function(t,n,r){var i,s=document.createElement("source"),o=(i=this.videoOptions)===null||i===void 0?void 0:i.useFetchFormat;o&&t.format(n);var a=t.toURL(),l=a.split(MD),d=l[1]?"".concat(MD).concat(l[1]):"",h=o?"":".".concat(n);s.src="".concat(l[0]).concat(h).concat(d),s.type=r||"video/".concat(_D[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=Sa(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,o=Object.entries(t);s<o.length;s++){var a=o[s],l=a[0],d=a[1];d&&this.videoElement.setAttribute(l,l==="poster"?d:"")}},e.prototype.update=function(t,n,r,i,s){var o=this;if(t!==this.originalVideo){for(var a=this.videoElement.getElementsByTagName("SOURCE");a[0];)a[0].parentNode.removeChild(a[0]);Xp(this.videoElement,t,r,this.htmlPluginState).then(function(){o.setVideoAttributes(i,s),o.handleSourceToVideo(t,n),o.videoElement.load()})}},e}(),QX=typeof Ca=="object"&&Ca&&Ca.Object===Object&&Ca,eJ=typeof self=="object"&&self&&self.Object===Object&&self;QX||eJ||Function("return this")();function j3(){return typeof window<"u"}function tJ(e){return e instanceof HTMLImageElement}function nJ(e){var t={},n=t.rootMargin,r=n===void 0?"0px":n,i=t.threshold,s=i===void 0?.1:i;return rJ.bind(null,r,s)}function rJ(e,t,n,r,i,s){return e===void 0&&(e="0px"),t===void 0&&(t=.1),j3()?new Promise(function(o){var a=function(){return o({lazyload:!0})},l=sJ(n,a,e,t);i.cleanupCallbacks.push(function(){l(),o("canceled")})}):!1}function iJ(){return window&&"IntersectionObserver"in window}function sJ(e,t,n,r){try{if(!iJ())return t(),function(){};var i=new IntersectionObserver(function(s){s.forEach(function(o){o.isIntersecting&&(i.unobserve(o.target),t())})},{rootMargin:n,threshold:r});return i.observe(e),function(){e&&i.observe(e)}}catch{t()}}function oJ(e){var t={},n=t.mode,r=n===void 0?"vectorize":n;return aJ.bind(null,r)}function aJ(e,t,n,r,i,s){TD[e]||(e="vectorize");var o=TD[e].actions,a=Sa(n);if(o.forEach(function(d){a.addAction(d)}),!j3())return n.transformation=a.transformation,!0;if(tJ(t)){a.transformation.actions.forEach(function(d,h){d instanceof As&&d.getActionTag()==="responsive"&&delete a.transformation.actions[h]});var l=Ub(i,{placeholder:!0});return t.src=a.toURL(l),t.onerror=function(){t.src=PD},new Promise(function(d){t.onload=function(){d()}}).then(function(){return new Promise(function(d){r.cleanupCallbacks.push(function(){t.src=PD,d("canceled")});var h=new Image;h.src=n.toURL(l),h.onload=function(){d({placeholder:!0})},h.onerror=function(){d({placeholder:!0})}})})}}function uJ(e,t,n){var r=Sa(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 Jp(e){e.cleanupCallbacks.forEach(function(t){t()})}/*! *****************************************************************************
107
- Copyright (c) Microsoft Corporation.
108
-
109
- Permission to use, copy, modify, and/or distribute this software for any
110
- purpose with or without fee is hereby granted.
111
-
112
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
113
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
114
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
115
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
116
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
117
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
118
- PERFORMANCE OF THIS SOFTWARE.
119
- ***************************************************************************** */var qb=function(e,t){return qb=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])},qb(e,t)};function L7(e,t){qb(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ad=function(){return ad=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},ad.apply(this,arguments)};function B7(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 k0={sdkSemver:"1.14.1",techVersion:A.version,sdkCode:"J"},lJ=function(e){L7(t,e);function t(n){var r=e.call(this,n)||this;return r.imageRef=A.createRef(),r}return t.prototype.componentDidMount=function(){this.htmlLayerInstance=new gZ(this.imageRef.current,this.props.cldImg,this.props.plugins,k0)},t.prototype.componentDidUpdate=function(){Jp(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,k0)},t.prototype.componentWillUnmount=function(){Jp(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},t.prototype.render=function(){var n=this.props;n.cldImg,n.plugins;var r=B7(n,["cldImg","plugins"]);if(j3())return A.createElement("img",ad({suppressHydrationWarning:!0},r,{ref:this.imageRef}));var i=uJ(this.props.plugins,this.props.cldImg,k0);return A.createElement("img",ad({},r,{src:i}))},t}(A.Component),cJ=["controls","loop","muted","poster","preload","autoplay","playsinline"];(function(e){L7(t,e);function t(n){var r=e.call(this,n)||this;return r.videoRef=A.createRef(),r.attachRef=r.attachRef.bind(r),r}return t.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new JX(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(){Jp(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},t.prototype.componentWillUnmount=function(){Jp(this.htmlVideoLayerInstance.htmlPluginState)},t.prototype.getVideoAttributes=function(){var n=this,r={};return cJ.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=B7(n,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return A.createElement("video",ad({},r,{ref:this.attachRef}))},t})(A.Component);function fJ(e){return!(typeof e!="object"||e instanceof Array)}class dJ{filterOutNonSupportedKeys(t,n){const r=Object.create({});return fJ(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 RD=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class K3 extends dJ{constructor(t){super();const n=this.filterOutNonSupportedKeys(t,RD);Object.assign(this,{secure:!0},n)}extend(t){const n=this.filterOutNonSupportedKeys(t,RD);return new K3(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 ud{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 hJ extends Error{constructor(t="Unsupported"){super(t)}}function U3(e){return new hJ(e)}function pJ(){return this._qualifierModel||{error:U3(`unsupported qualifier ${this.constructor.name}`)}}class mJ{constructor(){this._qualifierModel={}}toJson(){return pJ.apply(this)}}class tg extends mJ{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof ud?this.qualifierValue=n:(this.qualifierValue=new ud,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 Ea extends tg{constructor(t,n){let r;n?r=new ud([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function gJ(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function vJ(){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:U3(`unsupported action ${this.constructor.name}`)}}class yJ{constructor(){this._actionModel={}}toJson(){return vJ.apply(this)}}class z3 extends yJ{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(),gJ(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 Ea(r)):this.qualifiers.set(n,new tg(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new Ea(t)):t instanceof Ea&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}}function bJ(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class $J extends z3{constructor(t){super(),this._actionModel={},this.addQualifier(new tg("b",new ud(bJ(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}}class FD{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:U3(`unsupported action ${this.constructor.name}`)}}}function xJ(e){const t=e;return"error"in t&&!!t.error}function wJ(){return new Ea("lossy")}function CJ(){return new Ea("preserve_transparency")}function SJ(e){return new Ea("progressive",e)}class EJ extends ud{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 DJ={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},AJ={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},TJ={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},PJ={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},_J={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},MJ={444:"CHROMA_444",420:"CHROMA_420"},RJ={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"};ju(MJ);ju(RJ);ju(DJ);const FJ=ju(AJ);ju(TJ);ju(PJ);ju(_J);class kJ extends z3{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof EJ?i=n.getValue():i=n,this._actionModel.actionType=FJ[t],this._actionModel[r]=i,this.addQualifier(new tg(t,n))}}class OJ extends Ea{constructor(t){super("progressive",t)}}class Qp extends kJ{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(wJ()),this}progressive(t){return t instanceof OJ?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(SJ(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(CJ()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:s}=t;let o;return n?o=new this("f",n):o=new this("f"),i&&(i.mode?o.progressive(i.mode):o.progressive()),r&&o.lossy(),s&&o.preserveTransparency(),o}}class ng{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 FD(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof ng?this.actions=this.actions.concat(t.actions):this.actions.push(new FD(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 Qp("q",t)),this}format(t){return this.addAction(new Qp("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 $J(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new z3;let r=t;return typeof t=="string"&&(r=new Ea(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(xJ(r))return r;t.push(r)}return{actions:t}}}class IJ extends ng{}class LJ extends ng{}function BJ(e){return e.match(/^https?:\//)}function VJ(e){return e.indexOf("/")<0}function NJ(e){return e.match(/^v[0-9]+/)}function jJ(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 KJ(e){return e||"image"}function UJ(e){return e||"upload"}function zJ(e,t,n){const r=n!==!1;return t?`v${t}`:NJ(e)||BJ(e)||VJ(e)?"":r?"v1":""}function q3(e,t,n){let r=t>>0,i=String(n);return e.length>r?String(e):(r=r-e.length,r>i.length&&(i+=qJ(i,r/i.length)),i.slice(0,r)+String(e))}function qJ(e,t){let n=t,r="";for(;n>0;)r+=e,n--;return r}const WJ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",em={};let kD=0;WJ.split("").forEach(e=>{let t=kD.toString(2);t=q3(t,6,"0"),em[t]=e,kD++});function HJ(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").reverse().join(".")}function GJ(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 q3(t,2,"0")}).join(".")}function OD(e){let t="";const r=e.split(".").length*6,i=HJ(e),s=GJ(i);let a=parseInt(s.split(".").join("")).toString(2);if(a=q3(a,r,"0"),a.length%6!==0)throw"Version must be smaller than 43.21.26)";return a.match(/.{1,6}/g).forEach(l=>{t+=em[l]}),t}function YJ(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 ZJ="1.21.0";function XJ(e){const[t,n]=e.split("."),r=parseInt(t).toString(2),i=parseInt(n).toString(2),s=r.padStart(6,"0"),o=i.padStart(6,"0");return em[s]+em[o]}function JJ(){const e="0.0.0";if(typeof window<"u")return e;try{return process.versions.node||e}catch{return e}}function QJ(e){const t={techVersion:JJ(),sdkCode:"T",sdkSemver:ZJ.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 ID(e){const t=QJ(e),n=YJ(t);try{const r=eQ(n.techVersion),i=OD(n.sdkSemver),s=OD(r),o=XJ(n.osVersion),a=n.feature,l=n.sdkCode,{product:d,osType:h}=n;return`D${d}${l}${i}${s}${h}${o}${a}`}catch{return"E"}}function eQ(e){const t=e.split(".");return`${t[0]}.${t[1]}`}const LD={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class tQ{constructor(t,n={},r){this.setPublicID(t),this.setCloudConfig(n),this.setURLConfig(r)}setURLConfig(t){return this.urlConfig=new K3(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=KJ(this.assetType),n=UJ(this.deliveryType),r=!!this.suffix,i=`${t}/${n}`,s=LD[`${t}/${n}`],o=this.urlConfig.useRootPath,a=this.urlConfig.shorten;if(o){if(i==="image/upload")return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${i} instead`)}if(a&&i==="image/upload")return"iu";if(r){if(s)return s;throw new Error(`URL Suffix only supported for ${Object.keys(LD).join(", ")}, Provided: ${i} instead`)}return i}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(t,n){if(!this.publicID)return"";this.validateAssetForURLCreation();const r=jJ(this.cloudName,this.urlConfig),i=t?t.toString():"",s=zJ(this.publicID,this.version,this.urlConfig.forceVersion),o=this.publicID;if(typeof t=="string")return[r,this.getResourceType(),this.getSignature(),i,s,o.replace(/,/g,"%2C"),this.suffix].filter(l=>l).join("/");{const a=[encodeURI(r),this.getResourceType(),this.getSignature(),encodeURI(i),s,encodeURI(o).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(h=>h).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),l=this.urlConfig.analytics!==!1&&!o.includes("?");let d="";if(typeof this.urlConfig.queryParams=="object")try{const h=new URLSearchParams(this.urlConfig.queryParams);l&&h.set("_a",ID(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=${ID(n)}`);return d?`${a}?${d}`:a}}}class V7 extends tQ{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 Qp("q",t)),this}format(t){return this.addAction(new Qp("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 nQ extends V7{constructor(t,n,r){super(t,n,r,new IJ)}}class rQ extends V7{constructor(t,n,r){super(t,n,r,new LJ),this.assetType="video"}transcode(t){return this.transformation.transcode(t),this}videoEdit(t){return this.transformation.videoEdit(t),this}}class iQ{constructor(t){t&&(this.cloudinaryConfig=t)}image(t){return new nQ(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(t){return new rQ(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(t){return this.cloudinaryConfig=t,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}var O0,BD;function sQ(){if(BD)return O0;BD=1;var e=WF(),t=P3(),n=1,r=2;function i(s,o,a,l){var d=a.length,h=d,m=!l;if(s==null)return!h;for(s=Object(s);d--;){var g=a[d];if(m&&g[2]?g[1]!==s[g[0]]:!(g[0]in s))return!1}for(;++d<h;){g=a[d];var b=g[0],x=s[b],C=g[1];if(m&&g[2]){if(x===void 0&&!(b in s))return!1}else{var D=new e;if(l)var S=l(x,C,b,s,o,D);if(!(S===void 0?t(C,x,n|r,l,D):S))return!1}}return!0}return O0=i,O0}var I0,VD;function N7(){if(VD)return I0;VD=1;var e=Wm();function t(n){return n===n&&!e(n)}return I0=t,I0}var L0,ND;function oQ(){if(ND)return L0;ND=1;var e=N7(),t=T3();function n(r){for(var i=t(r),s=i.length;s--;){var o=i[s],a=r[o];i[s]=[o,a,e(a)]}return i}return L0=n,L0}var B0,jD;function j7(){if(jD)return B0;jD=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return B0=e,B0}var V0,KD;function aQ(){if(KD)return V0;KD=1;var e=sQ(),t=oQ(),n=j7();function r(i){var s=t(i);return s.length==1&&s[0][2]?n(s[0][0],s[0][1]):function(o){return o===i||e(o,i,s)}}return V0=r,V0}var N0,UD;function W3(){if(UD)return N0;UD=1;var e=xc(),t=Cc(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return N0=r,N0}var j0,zD;function H3(){if(zD)return j0;zD=1;var e=Jo(),t=W3(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(s,o){if(e(s))return!1;var a=typeof s;return a=="number"||a=="symbol"||a=="boolean"||s==null||t(s)?!0:r.test(s)||!n.test(s)||o!=null&&s in Object(o)}return j0=i,j0}var K0,qD;function uQ(){if(qD)return K0;qD=1;var e=S3(),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 o=arguments,a=i?i.apply(this,o):o[0],l=s.cache;if(l.has(a))return l.get(a);var d=r.apply(this,o);return s.cache=l.set(a,d)||l,d};return s.cache=new(n.Cache||e),s}return n.Cache=e,K0=n,K0}var U0,WD;function lQ(){if(WD)return U0;WD=1;var e=uQ(),t=500;function n(r){var i=e(r,function(o){return s.size===t&&s.clear(),o}),s=i.cache;return i}return U0=n,U0}var z0,HD;function cQ(){if(HD)return z0;HD=1;var e=lQ(),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(o,a,l,d){s.push(l?d.replace(n,"$1"):a||o)}),s});return z0=r,z0}var q0,GD;function fQ(){if(GD)return q0;GD=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 q0=e,q0}var W0,YD;function dQ(){if(YD)return W0;YD=1;var e=qm(),t=fQ(),n=Jo(),r=W3(),i=e?e.prototype:void 0,s=i?i.toString:void 0;function o(a){if(typeof a=="string")return a;if(n(a))return t(a,o)+"";if(r(a))return s?s.call(a):"";var l=a+"";return l=="0"&&1/a==-1/0?"-0":l}return W0=o,W0}var H0,ZD;function hQ(){if(ZD)return H0;ZD=1;var e=dQ();function t(n){return n==null?"":e(n)}return H0=t,H0}var G0,XD;function K7(){if(XD)return G0;XD=1;var e=Jo(),t=H3(),n=cQ(),r=hQ();function i(s,o){return e(s)?s:t(s,o)?[s]:n(r(s))}return G0=i,G0}var Y0,JD;function rg(){if(JD)return Y0;JD=1;var e=W3();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return Y0=t,Y0}var Z0,QD;function U7(){if(QD)return Z0;QD=1;var e=K7(),t=rg();function n(r,i){i=e(i,r);for(var s=0,o=i.length;r!=null&&s<o;)r=r[t(i[s++])];return s&&s==o?r:void 0}return Z0=n,Z0}var X0,eA;function pQ(){if(eA)return X0;eA=1;var e=U7();function t(n,r,i){var s=n==null?void 0:e(n,r);return s===void 0?i:s}return X0=t,X0}var J0,tA;function mQ(){if(tA)return J0;tA=1;function e(t,n){return t!=null&&n in Object(t)}return J0=e,J0}var Q0,nA;function gQ(){if(nA)return Q0;nA=1;var e=K7(),t=YF(),n=Jo(),r=E3(),i=D3(),s=rg();function o(a,l,d){l=e(l,a);for(var h=-1,m=l.length,g=!1;++h<m;){var b=s(l[h]);if(!(g=a!=null&&d(a,b)))break;a=a[b]}return g||++h!=m?g:(m=a==null?0:a.length,!!m&&i(m)&&r(b,m)&&(n(a)||t(a)))}return Q0=o,Q0}var e1,rA;function vQ(){if(rA)return e1;rA=1;var e=mQ(),t=gQ();function n(r,i){return r!=null&&t(r,i,e)}return e1=n,e1}var t1,iA;function yQ(){if(iA)return t1;iA=1;var e=P3(),t=pQ(),n=vQ(),r=H3(),i=N7(),s=j7(),o=rg(),a=1,l=2;function d(h,m){return r(h)&&i(m)?s(o(h),m):function(g){var b=t(g,h);return b===void 0&&b===m?n(g,h):e(m,b,a|l)}}return t1=d,t1}var n1,sA;function bQ(){if(sA)return n1;sA=1;function e(t){return t}return n1=e,n1}var r1,oA;function $Q(){if(oA)return r1;oA=1;function e(t){return function(n){return n==null?void 0:n[t]}}return r1=e,r1}var i1,aA;function xQ(){if(aA)return i1;aA=1;var e=U7();function t(n){return function(r){return e(r,n)}}return i1=t,i1}var s1,uA;function wQ(){if(uA)return s1;uA=1;var e=$Q(),t=xQ(),n=H3(),r=rg();function i(s){return n(s)?e(r(s)):t(s)}return s1=i,s1}var o1,lA;function CQ(){if(lA)return o1;lA=1;var e=aQ(),t=yQ(),n=bQ(),r=Jo(),i=wQ();function s(o){return typeof o=="function"?o:o==null?n:typeof o=="object"?r(o)?t(o[0],o[1]):e(o):i(o)}return o1=s,o1}var a1,cA;function SQ(){if(cA)return a1;cA=1;function e(t){return function(n,r,i){for(var s=-1,o=Object(n),a=i(n),l=a.length;l--;){var d=a[t?l:++s];if(r(o[d],d,o)===!1)break}return n}}return a1=e,a1}var u1,fA;function EQ(){if(fA)return u1;fA=1;var e=SQ(),t=e();return u1=t,u1}var l1,dA;function DQ(){if(dA)return l1;dA=1;var e=EQ(),t=T3();function n(r,i){return r&&e(r,i,t)}return l1=n,l1}var c1,hA;function AQ(){if(hA)return c1;hA=1;var e=A3();function t(n,r){return function(i,s){if(i==null)return i;if(!e(i))return n(i,s);for(var o=i.length,a=r?o:-1,l=Object(i);(r?a--:++a<o)&&s(l[a],a,l)!==!1;);return i}}return c1=t,c1}var f1,pA;function TQ(){if(pA)return f1;pA=1;var e=DQ(),t=AQ(),n=t(e);return f1=n,f1}var d1,mA;function PQ(){if(mA)return d1;mA=1;var e=TQ();function t(n,r){var i;return e(n,function(s,o,a){return i=r(s,o,a),!i}),!!i}return d1=t,d1}var h1,gA;function _Q(){if(gA)return h1;gA=1;var e=w3(),t=A3(),n=E3(),r=Wm();function i(s,o,a){if(!r(a))return!1;var l=typeof o;return(l=="number"?t(a)&&n(o,a.length):l=="string"&&o in a)?e(a[o],s):!1}return h1=i,h1}var p1,vA;function MQ(){if(vA)return p1;vA=1;var e=HF(),t=CQ(),n=PQ(),r=Jo(),i=_Q();function s(o,a,l){var d=r(o)?e:n;return l&&i(o,a,l)&&(a=void 0),d(o,t(a,3))}return p1=s,p1}var RQ=MQ();const FQ=ts(RQ);var m1={exports:{}},yA;function kQ(){return yA||(yA=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
120
- * Prism: Lightweight, robust, elegant syntax highlighting
121
- *
122
- * @license MIT <https://opensource.org/licenses/MIT>
123
- * @author Lea Verou <https://lea.verou.me>
124
- * @namespace
125
- * @public
126
- */var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,s=0,o={},a={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function w(T){return T instanceof l?new l(T.type,w(T.content),T.alias):Array.isArray(T)?T.map(w):T.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(w){return Object.prototype.toString.call(w).slice(8,-1)},objId:function(w){return w.__id||Object.defineProperty(w,"__id",{value:++s}),w.__id},clone:function w(T,O){O=O||{};var R,k;switch(a.util.type(T)){case"Object":if(k=a.util.objId(T),O[k])return O[k];R={},O[k]=R;for(var K in T)T.hasOwnProperty(K)&&(R[K]=w(T[K],O));return R;case"Array":return k=a.util.objId(T),O[k]?O[k]:(R=[],O[k]=R,T.forEach(function(q,ce){R[ce]=w(q,O)}),R);default:return T}},getLanguage:function(w){for(;w;){var T=i.exec(w.className);if(T)return T[1].toLowerCase();w=w.parentElement}return"none"},setLanguage:function(w,T){w.className=w.className.replace(RegExp(i,"gi"),""),w.classList.add("language-"+T)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(R){var w=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(R.stack)||[])[1];if(w){var T=document.getElementsByTagName("script");for(var O in T)if(T[O].src==w)return T[O]}return null}},isActive:function(w,T,O){for(var R="no-"+T;w;){var k=w.classList;if(k.contains(T))return!0;if(k.contains(R))return!1;w=w.parentElement}return!!O}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(w,T){var O=a.util.clone(a.languages[w]);for(var R in T)O[R]=T[R];return O},insertBefore:function(w,T,O,R){R=R||a.languages;var k=R[w],K={};for(var q in k)if(k.hasOwnProperty(q)){if(q==T)for(var ce in O)O.hasOwnProperty(ce)&&(K[ce]=O[ce]);O.hasOwnProperty(q)||(K[q]=k[q])}var oe=R[w];return R[w]=K,a.languages.DFS(a.languages,function(I,be){be===oe&&I!=w&&(this[I]=K)}),K},DFS:function w(T,O,R,k){k=k||{};var K=a.util.objId;for(var q in T)if(T.hasOwnProperty(q)){O.call(T,q,T[q],R||q);var ce=T[q],oe=a.util.type(ce);oe==="Object"&&!k[K(ce)]?(k[K(ce)]=!0,w(ce,O,null,k)):oe==="Array"&&!k[K(ce)]&&(k[K(ce)]=!0,w(ce,O,q,k))}}},plugins:{},highlightAll:function(w,T){a.highlightAllUnder(document,w,T)},highlightAllUnder:function(w,T,O){var R={callback:O,container:w,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",R),R.elements=Array.prototype.slice.apply(R.container.querySelectorAll(R.selector)),a.hooks.run("before-all-elements-highlight",R);for(var k=0,K;K=R.elements[k++];)a.highlightElement(K,T===!0,R.callback)},highlightElement:function(w,T,O){var R=a.util.getLanguage(w),k=a.languages[R];a.util.setLanguage(w,R);var K=w.parentElement;K&&K.nodeName.toLowerCase()==="pre"&&a.util.setLanguage(K,R);var q=w.textContent,ce={element:w,language:R,grammar:k,code:q};function oe(be){ce.highlightedCode=be,a.hooks.run("before-insert",ce),ce.element.innerHTML=ce.highlightedCode,a.hooks.run("after-highlight",ce),a.hooks.run("complete",ce),O&&O.call(ce.element)}if(a.hooks.run("before-sanity-check",ce),K=ce.element.parentElement,K&&K.nodeName.toLowerCase()==="pre"&&!K.hasAttribute("tabindex")&&K.setAttribute("tabindex","0"),!ce.code){a.hooks.run("complete",ce),O&&O.call(ce.element);return}if(a.hooks.run("before-highlight",ce),!ce.grammar){oe(a.util.encode(ce.code));return}if(T&&r.Worker){var I=new Worker(a.filename);I.onmessage=function(be){oe(be.data)},I.postMessage(JSON.stringify({language:ce.language,code:ce.code,immediateClose:!0}))}else oe(a.highlight(ce.code,ce.grammar,ce.language))},highlight:function(w,T,O){var R={code:w,grammar:T,language:O};if(a.hooks.run("before-tokenize",R),!R.grammar)throw new Error('The language "'+R.language+'" has no grammar.');return R.tokens=a.tokenize(R.code,R.grammar),a.hooks.run("after-tokenize",R),l.stringify(a.util.encode(R.tokens),R.language)},tokenize:function(w,T){var O=T.rest;if(O){for(var R in O)T[R]=O[R];delete T.rest}var k=new m;return g(k,k.head,w),h(w,k,T,k.head,0),x(k)},hooks:{all:{},add:function(w,T){var O=a.hooks.all;O[w]=O[w]||[],O[w].push(T)},run:function(w,T){var O=a.hooks.all[w];if(!(!O||!O.length))for(var R=0,k;k=O[R++];)k(T)}},Token:l};r.Prism=a;function l(w,T,O,R){this.type=w,this.content=T,this.alias=O,this.length=(R||"").length|0}l.stringify=function w(T,O){if(typeof T=="string")return T;if(Array.isArray(T)){var R="";return T.forEach(function(oe){R+=w(oe,O)}),R}var k={type:T.type,content:w(T.content,O),tag:"span",classes:["token",T.type],attributes:{},language:O},K=T.alias;K&&(Array.isArray(K)?Array.prototype.push.apply(k.classes,K):k.classes.push(K)),a.hooks.run("wrap",k);var q="";for(var ce in k.attributes)q+=" "+ce+'="'+(k.attributes[ce]||"").replace(/"/g,"&quot;")+'"';return"<"+k.tag+' class="'+k.classes.join(" ")+'"'+q+">"+k.content+"</"+k.tag+">"};function d(w,T,O,R){w.lastIndex=T;var k=w.exec(O);if(k&&R&&k[1]){var K=k[1].length;k.index+=K,k[0]=k[0].slice(K)}return k}function h(w,T,O,R,k,K){for(var q in O)if(!(!O.hasOwnProperty(q)||!O[q])){var ce=O[q];ce=Array.isArray(ce)?ce:[ce];for(var oe=0;oe<ce.length;++oe){if(K&&K.cause==q+","+oe)return;var I=ce[oe],be=I.inside,$e=!!I.lookbehind,H=!!I.greedy,ie=I.alias;if(H&&!I.pattern.global){var M=I.pattern.toString().match(/[imsuy]*$/)[0];I.pattern=RegExp(I.pattern.source,M+"g")}for(var B=I.pattern||I,L=R.next,me=k;L!==T.tail&&!(K&&me>=K.reach);me+=L.value.length,L=L.next){var U=L.value;if(T.length>w.length)return;if(!(U instanceof l)){var te=1,xe;if(H){if(xe=d(B,me,w,$e),!xe||xe.index>=w.length)break;var Ye=xe.index,Ee=xe.index+xe[0].length,Oe=me;for(Oe+=L.value.length;Ye>=Oe;)L=L.next,Oe+=L.value.length;if(Oe-=L.value.length,me=Oe,L.value instanceof l)continue;for(var _e=L;_e!==T.tail&&(Oe<Ee||typeof _e.value=="string");_e=_e.next)te++,Oe+=_e.value.length;te--,U=w.slice(me,Oe),xe.index-=me}else if(xe=d(B,0,U,$e),!xe)continue;var Ye=xe.index,He=xe[0],De=U.slice(0,Ye),Ke=U.slice(Ye+He.length),We=me+U.length;K&&We>K.reach&&(K.reach=We);var Ae=L.prev;De&&(Ae=g(T,Ae,De),me+=De.length),b(T,Ae,te);var Ie=new l(q,be?a.tokenize(He,be):He,ie,He);if(L=g(T,Ae,Ie),Ke&&g(T,L,Ke),te>1){var et={cause:q+","+oe,reach:We};h(w,T,O,L.prev,me,et),K&&et.reach>K.reach&&(K.reach=et.reach)}}}}}}function m(){var w={value:null,prev:null,next:null},T={value:null,prev:w,next:null};w.next=T,this.head=w,this.tail=T,this.length=0}function g(w,T,O){var R=T.next,k={value:O,prev:T,next:R};return T.next=k,R.prev=k,w.length++,k}function b(w,T,O){for(var R=T.next,k=0;k<O&&R!==w.tail;k++)R=R.next;T.next=R,R.prev=T,w.length-=k}function x(w){for(var T=[],O=w.head.next;O!==w.tail;)T.push(O.value),O=O.next;return T}if(!r.document)return r.addEventListener&&(a.disableWorkerMessageHandler||r.addEventListener("message",function(w){var T=JSON.parse(w.data),O=T.language,R=T.code,k=T.immediateClose;r.postMessage(a.highlight(R,a.languages[O],O)),k&&r.close()},!1)),a;var C=a.util.currentScript();C&&(a.filename=C.src,C.hasAttribute("data-manual")&&(a.manual=!0));function D(){a.manual||a.highlightAll()}if(!a.manual){var S=document.readyState;S==="loading"||S==="interactive"&&C&&C.defer?document.addEventListener("DOMContentLoaded",D):window.requestAnimationFrame?window.requestAnimationFrame(D):window.setTimeout(D,16)}return a}(t);e.exports&&(e.exports=n),typeof Hi<"u"&&(Hi.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 o={};o["language-"+s]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[s]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var a={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};a["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:a},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(C,D){return"✖ Error "+C+" while fetching file: "+D},s="✖ Error: File does not exist or is empty",o={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},a="data-src-status",l="loading",d="loaded",h="failed",m="pre[data-src]:not(["+a+'="'+d+'"]):not(['+a+'="'+l+'"])';function g(C,D,S){var w=new XMLHttpRequest;w.open("GET",C,!0),w.onreadystatechange=function(){w.readyState==4&&(w.status<400&&w.responseText?D(w.responseText):w.status>=400?S(i(w.status,w.statusText)):S(s))},w.send(null)}function b(C){var D=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(C||"");if(D){var S=Number(D[1]),w=D[2],T=D[3];return w?T?[S,Number(T)]:[S,void 0]:[S,S]}}n.hooks.add("before-highlightall",function(C){C.selector+=", "+m}),n.hooks.add("before-sanity-check",function(C){var D=C.element;if(D.matches(m)){C.code="",D.setAttribute(a,l);var S=D.appendChild(document.createElement("CODE"));S.textContent=r;var w=D.getAttribute("data-src"),T=C.language;if(T==="none"){var O=(/\.(\w+)$/.exec(w)||[,"none"])[1];T=o[O]||O}n.util.setLanguage(S,T),n.util.setLanguage(D,T);var R=n.plugins.autoloader;R&&R.loadLanguages(T),g(w,function(k){D.setAttribute(a,d);var K=b(D.getAttribute("data-range"));if(K){var q=k.split(/\r\n?|\n/g),ce=K[0],oe=K[1]==null?q.length:K[1];ce<0&&(ce+=q.length),ce=Math.max(0,Math.min(ce-1,q.length)),oe<0&&(oe+=q.length),oe=Math.max(0,Math.min(oe,q.length)),k=q.slice(ce,oe).join(`
127
- `),D.hasAttribute("data-start")||D.setAttribute("data-start",String(ce+1))}S.textContent=k,n.highlightElement(S)},function(k){D.setAttribute(a,h),S.textContent=k})}}),n.plugins.fileHighlight={highlight:function(D){for(var S=(D||document).querySelectorAll(m),w=0,T;T=S[w++];)n.highlightElement(T)}};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)}}()}(m1)),m1.exports}var OQ=kQ();(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 o=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 a(g,b){var x=getComputedStyle(g),C=getComputedStyle(b);function D(S){return+S.substr(0,S.length-2)}return b.offsetTop+D(C.borderTopWidth)+D(C.paddingTop)-D(x.paddingTop)}function l(g){return!g||!/pre/i.test(g.nodeName)?!1:!!(g.hasAttribute("data-line")||g.id&&Prism.util.isActive(g,t))}var d=!0;Prism.plugins.lineHighlight={highlightLines:function(b,x,C){x=typeof x=="string"?x:b.getAttribute("data-line")||"";var D=x.replace(/\s+/g,"").split(",").filter(Boolean),S=+b.getAttribute("data-line-offset")||0,w=o()?parseInt:parseFloat,T=w(getComputedStyle(b).lineHeight),O=Prism.util.isActive(b,e),R=b.querySelector("code"),k=O?b:R||b,K=[],q=R.textContent.match(n),ce=q?q.length+1:1,oe=!R||k==R?0:a(b,R);D.forEach(function($e){var H=$e.split("-"),ie=+H[0],M=+H[1]||ie;if(M=Math.min(ce+S,M),!(M<ie)){var B=b.querySelector('.line-highlight[data-range="'+$e+'"]')||document.createElement("div");if(K.push(function(){B.setAttribute("aria-hidden","true"),B.setAttribute("data-range",$e),B.className=(C||"")+" line-highlight"}),O&&Prism.plugins.lineNumbers){var L=Prism.plugins.lineNumbers.getLine(b,ie),me=Prism.plugins.lineNumbers.getLine(b,M);if(L){var U=L.offsetTop+oe+"px";K.push(function(){B.style.top=U})}if(me){var te=me.offsetTop-L.offsetTop+me.offsetHeight+"px";K.push(function(){B.style.height=te})}}else K.push(function(){B.setAttribute("data-start",String(ie)),M>ie&&B.setAttribute("data-end",String(M)),B.style.top=(ie-S-1)*T+oe+"px",B.textContent=new Array(M-ie+2).join(`
128
- `)});K.push(function(){B.style.width=b.scrollWidth+"px"}),K.push(function(){k.appendChild(B)})}});var I=b.id;if(O&&Prism.util.isActive(b,t)&&I){i(b,t)||K.push(function(){b.classList.add(t)});var be=parseInt(b.getAttribute("data-start")||"1");r(".line-numbers-rows > span",b).forEach(function($e,H){var ie=H+be;$e.onclick=function(){var M=I+"."+ie;d=!1,location.hash=M,setTimeout(function(){d=!0},1)}})}return function(){K.forEach(s)}}};function h(){var g=location.hash.slice(1);r(".temporary.line-highlight").forEach(function(S){S.parentNode.removeChild(S)});var b=(g.match(/\.([\d,-]+)$/)||[,""])[1];if(!(!b||document.getElementById(g))){var x=g.slice(0,g.lastIndexOf(".")),C=document.getElementById(x);if(C){C.hasAttribute("data-line")||C.setAttribute("data-line","");var D=Prism.plugins.lineHighlight.highlightLines(C,b,"temporary ");D(),d&&document.querySelector(".temporary.line-highlight").scrollIntoView()}}}var m=0;Prism.hooks.add("before-sanity-check",function(g){var b=g.element.parentElement;if(l(b)){var x=0;r(".line-highlight",b).forEach(function(C){x+=C.textContent.length,C.parentNode.removeChild(C)}),x&&/^(?: \n)+$/.test(g.code.slice(-x))&&(g.code=g.code.slice(0,-x))}}),Prism.hooks.add("complete",function g(b){var x=b.element.parentElement;if(l(x)){clearTimeout(m);var C=Prism.plugins.lineNumbers,D=b.plugins&&b.plugins.lineNumbers;if(i(x,e)&&C&&!D)Prism.hooks.add("line-numbers",g);else{var S=Prism.plugins.lineHighlight.highlightLines(x);S(),m=setTimeout(h,1)}}}),window.addEventListener("hashchange",h),window.addEventListener("resize",function(){var g=r("pre").filter(l).map(function(b){return Prism.plugins.lineHighlight.highlightLines(b)});g.forEach(s)})})();const z7=A.createContext({});function Nd(e){const t=A.useRef(null);return t.current===null&&(t.current=e()),t.current}const G3=typeof window<"u",q7=G3?A.useLayoutEffect:A.useEffect,Y3=A.createContext(null),Z3=A.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function IQ(e=!0){const t=A.useContext(Y3);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=A.useId();A.useEffect(()=>{if(e)return i(s)},[e]);const o=A.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}function X3(e,t){e.indexOf(t)===-1&&e.push(t)}function J3(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function LQ([...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}let Sc=()=>{},ao=()=>{};process.env.NODE_ENV!=="production"&&(Sc=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},ao=(e,t)=>{if(!e)throw new Error(t)});const Wb={useManualTiming:!1};function Q3(e){let t;return()=>(t===void 0&&(t=e()),t)}const Xi=e=>e,ld=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};let e$=class{constructor(){this.subscriptions=[]}add(t){return X3(this.subscriptions,t),()=>J3(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 o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};const Ss=e=>e*1e3,ro=e=>e/1e3;function W7(e,t){return t?e*(1e3/t):0}const bA=new Set;function ig(e,t,n){e||bA.has(t)||(console.warn(t),bA.add(t))}const BQ=Q3(()=>window.ScrollTimeline!==void 0);let VQ=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(BQ()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,s)=>{i&&i(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}},NQ=class extends VQ{then(t,n){return this.finished.finally(t).then(()=>{})}};const t$=e=>Array.isArray(e)&&typeof e[0]=="number",jQ={};function KQ(e,t){const n=Q3(e);return()=>jQ[t]??n()}const cd=KQ(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),H7=(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)})`},Ff=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Hb={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ff([0,.65,.55,1]),circOut:Ff([.55,0,1,.45]),backIn:Ff([.31,.01,.66,-.59]),backOut:Ff([.33,1.53,.69,.99])};function G7(e,t){if(e)return typeof e=="function"&&cd()?H7(e,t):t$(e)?Ff(e):Array.isArray(e)?e.map(n=>G7(n,t)||Hb.easeOut):Hb[e]}function UQ(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeInOut",times:l}={},d=void 0){const h={[t]:n};l&&(h.offset=l);const m=G7(a,i);return Array.isArray(m)&&(h.easing=m),e.animate(h,{delay:r,duration:i,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal",pseudoElement:d})}function n$(e){return typeof e=="function"&&"applyToOptions"in e}function r$(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const tm=2e4;function i$(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<tm;)t+=n,r=e.next(t);return t>=tm?1/0:t}function zQ(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(i$(r),tm);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:ro(i)}}function Y7(e){return!!(typeof e=="function"&&cd()||!e||typeof e=="string"&&(e in Hb||cd())||t$(e)||Array.isArray(e)&&e.every(Y7))}function $A(e,t){e.timeline=t,e.onfinish=null}const Wh=["read","resolveKeyframes","update","preRender","render","postRender"];function qQ(e,t){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(h){o.has(h)&&(d.schedule(h),e()),h(a)}const d={schedule:(h,m=!1,g=!1)=>{const x=g&&i?n:r;return m&&o.add(h),x.has(h)||x.add(h),h},cancel:h=>{r.delete(h),o.delete(h)},process:h=>{if(a=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 WQ=40;function Z7(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Wh.reduce((S,w)=>(S[w]=qQ(s),S),{}),{read:a,resolveKeyframes:l,update:d,preRender:h,render:m,postRender:g}=o,b=()=>{const S=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(S-i.timestamp,WQ),1),i.timestamp=S,i.isProcessing=!0,a.process(i),l.process(i),d.process(i),h.process(i),m.process(i),g.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(b))},x=()=>{n=!0,r=!0,i.isProcessing||e(b)};return{schedule:Wh.reduce((S,w)=>{const T=o[w];return S[w]=(O,R=!1,k=!1)=>(n||x(),T.schedule(O,R,k)),S},{}),cancel:S=>{for(let w=0;w<Wh.length;w++)o[Wh[w]].cancel(S)},state:i,steps:o}}const{schedule:s$}=Z7(queueMicrotask,!1),{schedule:vn,cancel:Ho,state:xr,steps:g1}=Z7(typeof requestAnimationFrame<"u"?requestAnimationFrame:Xi,!0);let bp;function HQ(){bp=void 0}const io={now:()=>(bp===void 0&&io.set(xr.isProcessing||Wb.useManualTiming?xr.timestamp:performance.now()),bp),set:e=>{bp=e,queueMicrotask(HQ)}},gs={x:!1,y:!1};function X7(){return gs.x||gs.y}function GQ(e){return e==="x"||e==="y"?gs[e]?null:(gs[e]=!0,()=>{gs[e]=!1}):gs.x||gs.y?null:(gs.x=gs.y=!0,()=>{gs.x=gs.y=!1})}function YQ(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 J7(e,t){const n=YQ(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function xA(e){return!(e.pointerType==="touch"||X7())}function ZQ(e,t,n={}){const[r,i,s]=J7(e,n),o=a=>{if(!xA(a))return;const{target:l}=a,d=t(l,a);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(a=>{a.addEventListener("pointerenter",o,i)}),s}const Q7=(e,t)=>t?e===t?!0:Q7(e,t.parentElement):!1,o$=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,XQ=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function JQ(e){return XQ.has(e.tagName)||e.tabIndex!==-1}const kf=new WeakSet;function wA(e){return t=>{t.key==="Enter"&&e(t)}}function v1(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const QQ=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=wA(()=>{if(kf.has(n))return;v1(n,"down");const i=wA(()=>{v1(n,"up")}),s=()=>v1(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 CA(e){return o$(e)&&!X7()}function eee(e,t,n={}){const[r,i,s]=J7(e,n),o=a=>{const l=a.currentTarget;if(!CA(a)||kf.has(l))return;kf.add(l);const d=t(l,a),h=(b,x)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),!(!CA(b)||!kf.has(l))&&(kf.delete(l),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(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),a instanceof HTMLElement&&(a.addEventListener("focus",d=>QQ(d,i)),!JQ(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}const SA=30,tee=e=>!isNaN(parseFloat(e)),Kf={current:void 0};let nee=class{constructor(t,n={}){this.version="12.7.3",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=io.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=io.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=tee(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&ig(!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 e$);const r=this.events[t].add(n);return t==="change"?()=>{r(),vn.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return Kf.current&&Kf.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=io.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>SA)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,SA);return W7(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function ac(e,t){return new nee(e,t)}const ek=A.createContext({strict:!1}),EA={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"]},uc={};for(const e in EA)uc[e]={isEnabled:t=>EA[e].some(n=>!!t[n])};function ree(e){for(const t in e)uc[t]={...uc[t],...e[t]}}const iee=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 nm(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||iee.has(e)}let tk=e=>!nm(e);function see(e){e&&(tk=t=>t.startsWith("on")?!nm(t):e(t))}try{see(require("@emotion/is-prop-valid").default)}catch{}function oee(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(tk(i)||n===!0&&nm(i)||!t&&!nm(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function aee(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&ig(!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 sg=A.createContext({});function og(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function fd(e){return typeof e=="string"||Array.isArray(e)}const a$=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],u$=["initial",...a$];function ag(e){return og(e.animate)||u$.some(t=>fd(e[t]))}function nk(e){return!!(ag(e)||e.variants)}function uee(e,t){if(ag(e)){const{initial:n,animate:r}=e;return{initial:n===!1||fd(n)?n:void 0,animate:fd(r)?r:void 0}}return e.inherit!==!1?t:{}}function lee(e){const{initial:t,animate:n}=uee(e,A.useContext(sg));return A.useMemo(()=>({initial:t,animate:n}),[DA(t),DA(n)])}function DA(e){return Array.isArray(e)?e.join(" "):e}const cee=Symbol.for("motionComponentSymbol");function Fl(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function fee(e,t,n){return A.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Fl(n)&&(n.current=r))},[t])}const l$=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),dee="framerAppearId",rk="data-"+l$(dee),ik=A.createContext({});function hee(e,t,n,r,i){var C,D;const{visualElement:s}=A.useContext(sg),o=A.useContext(ek),a=A.useContext(Y3),l=A.useContext(Z3).reducedMotion,d=A.useRef(null);r=r||o.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:s,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const h=d.current,m=A.useContext(ik);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&pee(d.current,n,i,m);const g=A.useRef(!1);A.useInsertionEffect(()=>{h&&g.current&&h.update(n,a)});const b=n[rk],x=A.useRef(!!b&&!((C=window.MotionHandoffIsComplete)!=null&&C.call(window,b))&&((D=window.MotionHasOptimisedAnimation)==null?void 0:D.call(window,b)));return q7(()=>{h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),s$.render(h.render),x.current&&h.animationState&&h.animationState.animateChanges())}),A.useEffect(()=>{h&&(!x.current&&h.animationState&&h.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var S;(S=window.MotionHandoffMarkAsComplete)==null||S.call(window,b)}),x.current=!1))}),h}function pee(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:d,layoutCrossfade:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:sk(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&Fl(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:l,layoutRoot:d})}function sk(e){if(e)return e.options.allowProjection!==!1?e.projection:sk(e.parent)}function mee({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&ree(e);function s(a,l){let d;const h={...A.useContext(Z3),...a,layoutId:gee(a)},{isStatic:m}=h,g=lee(a),b=r(a,m);if(!m&&G3){vee(h,e);const x=yee(h);d=x.MeasureLayout,g.visualElement=hee(i,b,h,t,x.ProjectionNode)}return qo.jsxs(sg.Provider,{value:g,children:[d&&g.visualElement?qo.jsx(d,{visualElement:g.visualElement,...h}):null,n(i,a,fee(b,g.visualElement,l),b,m,g.visualElement)]})}s.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const o=A.forwardRef(s);return o[cee]=i,o}function gee({layoutId:e}){const t=A.useContext(z7).id;return t&&e!==void 0?t+"-"+e:e}function vee(e,t){const n=A.useContext(ek).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?Sc(!1,r):ao(!1,r)}}function yee(e){const{drag:t,layout:n}=uc;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 ok=e=>t=>typeof t=="string"&&t.startsWith(e),c$=ok("--"),bee=ok("var(--"),f$=e=>bee(e)?$ee.test(e.split("/*")[0].trim()):!1,$ee=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,dd={};function xee(e){for(const t in e)dd[t]=e[t],c$(t)&&(dd[t].isCSSVariable=!0)}const Ec=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ku=new Set(Ec);function ak(e,{layout:t,layoutId:n}){return Ku.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!dd[e]||e==="opacity")}const wr=e=>!!(e&&e.getVelocity),uk=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Go=(e,t,n)=>n>t?t:n<e?e:n,Dc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},hd={...Dc,transform:e=>Go(0,1,e)},Hh={...Dc,default:1},jd=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ma=jd("deg"),so=jd("%"),Dt=jd("px"),wee=jd("vh"),Cee=jd("vw"),AA={...so,parse:e=>so.parse(e)/100,transform:e=>so.transform(e*100)},See={borderWidth:Dt,borderTopWidth:Dt,borderRightWidth:Dt,borderBottomWidth:Dt,borderLeftWidth:Dt,borderRadius:Dt,radius:Dt,borderTopLeftRadius:Dt,borderTopRightRadius:Dt,borderBottomRightRadius:Dt,borderBottomLeftRadius:Dt,width:Dt,maxWidth:Dt,height:Dt,maxHeight:Dt,top:Dt,right:Dt,bottom:Dt,left:Dt,padding:Dt,paddingTop:Dt,paddingRight:Dt,paddingBottom:Dt,paddingLeft:Dt,margin:Dt,marginTop:Dt,marginRight:Dt,marginBottom:Dt,marginLeft:Dt,backgroundPositionX:Dt,backgroundPositionY:Dt},Eee={rotate:ma,rotateX:ma,rotateY:ma,rotateZ:ma,scale:Hh,scaleX:Hh,scaleY:Hh,scaleZ:Hh,skew:ma,skewX:ma,skewY:ma,distance:Dt,translateX:Dt,translateY:Dt,translateZ:Dt,x:Dt,y:Dt,z:Dt,perspective:Dt,transformPerspective:Dt,opacity:hd,originX:AA,originY:AA,originZ:Dt},TA={...Dc,transform:Math.round},d$={...See,...Eee,zIndex:TA,size:Dt,fillOpacity:hd,strokeOpacity:hd,numOctaves:TA},Dee={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Aee=Ec.length;function Tee(e,t,n){let r="",i=!0;for(let s=0;s<Aee;s++){const o=Ec[s],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const d=uk(a,d$[o]);if(!l){i=!1;const h=Dee[o]||o;r+=`${h}(${d}) `}n&&(t[o]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function h$(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let o=!1,a=!1;for(const l in t){const d=t[l];if(Ku.has(l)){o=!0;continue}else if(c$(l)){i[l]=d;continue}else{const h=uk(d,d$[l]);l.startsWith("origin")?(a=!0,s[l]=h):r[l]=h}}if(t.transform||(o||n?r.transform=Tee(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:d="50%",originZ:h=0}=s;r.transformOrigin=`${l} ${d} ${h}`}}const p$=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function lk(e,t,n){for(const r in t)!wr(t[r])&&!ak(r,n)&&(e[r]=t[r])}function Pee({transformTemplate:e},t){return A.useMemo(()=>{const n=p$();return h$(n,t,e),Object.assign({},n.vars,n.style)},[t])}function _ee(e,t){const n=e.style||{},r={};return lk(r,n,e),Object.assign(r,Pee(e,t)),r}function Mee(e,t){const n={},r=_ee(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 Ree=["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 m$(e){return typeof e!="string"||e.includes("-")?!1:!!(Ree.indexOf(e)>-1||/[A-Z]/u.test(e))}const Fee={offset:"stroke-dashoffset",array:"stroke-dasharray"},kee={offset:"strokeDashoffset",array:"strokeDasharray"};function Oee(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?Fee:kee;e[s.offset]=Dt.transform(-r);const o=Dt.transform(t),a=Dt.transform(n);e[s.array]=`${o} ${a}`}function PA(e,t,n){return typeof e=="string"?e:Dt.transform(t+n*e)}function Iee(e,t,n){const r=PA(t,e.x,e.width),i=PA(n,e.y,e.height);return`${r} ${i}`}function g$(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...d},h,m){if(h$(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:b,dimensions:x}=e;g.transform&&(x&&(b.transform=g.transform),delete g.transform),x&&(i!==void 0||s!==void 0||b.transform)&&(b.transformOrigin=Iee(x,i!==void 0?i:.5,s!==void 0?s:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),o!==void 0&&Oee(g,o,a,l,!1)}const ck=()=>({...p$(),attrs:{}}),v$=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Lee(e,t,n,r){const i=A.useMemo(()=>{const s=ck();return g$(s,t,v$(r),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};lk(s,e.style,e),i.style={...s,...i.style}}return i}function Bee(e=!1){return(n,r,i,{latestValues:s},o)=>{const l=(m$(n)?Lee:Mee)(r,s,o,n),d=oee(r,typeof n=="string",e),h=n!==A.Fragment?{...d,...l,ref:i}:{},{children:m}=r,g=A.useMemo(()=>wr(m)?m.get():m,[m]);return A.createElement(n,{...h,children:g})}}function _A(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]=_A(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]=_A(r);t=t(n!==void 0?n:e.custom,i,s)}return t}const Gb=e=>Array.isArray(e),Vee=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Nee=e=>Gb(e)?e[e.length-1]||0:e;function $p(e){const t=wr(e)?e.get():e;return Vee(t)?t.toValue():t}function jee({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,s){const o={latestValues:Kee(r,i,s,e),renderState:t()};return n&&(o.onMount=a=>n({props:r,current:a,...o}),o.onUpdate=a=>n(a)),o}const fk=e=>(t,n)=>{const r=A.useContext(sg),i=A.useContext(Y3),s=()=>jee(e,t,r,i);return n?s():Nd(s)};function Kee(e,t,n,r){const i={},s=r(e,{});for(const g in s)i[g]=$p(s[g]);let{initial:o,animate:a}=e;const l=ag(e),d=nk(e);t&&d&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let h=n?n.initial===!1:!1;h=h||o===!1;const m=h?a:o;if(m&&typeof m!="boolean"&&!og(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:C,transition:D,...S}=x;for(const w in S){let T=S[w];if(Array.isArray(T)){const O=h?T.length-1:0;T=T[O]}T!==null&&(i[w]=T)}for(const w in C)i[w]=C[w]}}}return i}function b$(e,t,n){var s;const{style:r}=e,i={};for(const o in r)(wr(r[o])||t.style&&wr(t.style[o])||ak(o,e)||((s=n==null?void 0:n.getValue(o))==null?void 0:s.liveStyle)!==void 0)&&(i[o]=r[o]);return i}const Uee={useVisualState:fk({scrapeMotionValuesFromProps:b$,createRenderState:p$})};function dk(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function hk(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])}const pk=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 mk(e,t,n,r){hk(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(pk.has(i)?i:l$(i),t.attrs[i])}function gk(e,t,n){const r=b$(e,t,n);for(const i in e)if(wr(e[i])||wr(t[i])){const s=Ec.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const MA=["x","y","width","height","cx","cy","r"],zee={useVisualState:fk({scrapeMotionValuesFromProps:gk,createRenderState:ck,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let s=!!e.drag;if(!s){for(const a in i)if(Ku.has(a)){s=!0;break}}if(!s)return;let o=!t;if(t)for(let a=0;a<MA.length;a++){const l=MA[a];e[l]!==t[l]&&(o=!0)}o&&vn.read(()=>{dk(n,r),vn.render(()=>{g$(r,i,v$(n.tagName),e.transformTemplate),mk(n,r)})})}})};function qee(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...m$(r)?zee:Uee,preloadedFeatures:e,useRender:Bee(i),createVisualElement:t,Component:r};return mee(o)}}function pd(e,t,n){const r=e.getProps();return y$(r,t,n!==void 0?n:r.custom,e)}const vk=new Set(["width","height","top","left","right","bottom",...Ec]);function Wee(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ac(n))}function Hee(e,t){const n=pd(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=Nee(s[o]);Wee(e,o,a)}}function Gee(e){return!!(wr(e)&&e.add)}function Yb(e,t){const n=e.getValue("willChange");if(Gee(n))return n.add(t);if(!n&&Wb.WillChange){const r=new Wb.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function yk(e){return e.props[rk]}const bk=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Yee=1e-7,Zee=12;function Xee(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=bk(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>Yee&&++a<Zee);return o}function Kd(e,t,n,r){if(e===t&&n===r)return Xi;const i=s=>Xee(s,0,1,e,n);return s=>s===0||s===1?s:bk(i(s),t,r)}const $k=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,xk=e=>t=>1-e(1-t),wk=Kd(.33,1.53,.69,.99),$$=xk(wk),Ck=$k($$),Sk=e=>(e*=2)<1?.5*$$(e):.5*(2-Math.pow(2,-10*(e-1))),x$=e=>1-Math.sin(Math.acos(e)),Ek=xk(x$),Dk=$k(x$),Ak=e=>/^0[^.\s]+$/u.test(e);function Jee(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Ak(e):!0}const Uf=e=>Math.round(e*1e5)/1e5,w$=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Qee(e){return e==null}const ete=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,C$=(e,t)=>n=>!!(typeof n=="string"&&ete.test(n)&&n.startsWith(e)||t&&!Qee(n)&&Object.prototype.hasOwnProperty.call(n,t)),Tk=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(w$);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},tte=e=>Go(0,255,e),y1={...Dc,transform:e=>Math.round(tte(e))},vu={test:C$("rgb","red"),parse:Tk("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+y1.transform(e)+", "+y1.transform(t)+", "+y1.transform(n)+", "+Uf(hd.transform(r))+")"};function nte(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 Zb={test:C$("#"),parse:nte,transform:vu.transform},kl={test:C$("hsl","hue"),parse:Tk("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+so.transform(Uf(t))+", "+so.transform(Uf(n))+", "+Uf(hd.transform(r))+")"},Pr={test:e=>vu.test(e)||Zb.test(e)||kl.test(e),parse:e=>vu.test(e)?vu.parse(e):kl.test(e)?kl.parse(e):Zb.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?vu.transform(e):kl.transform(e)},rte=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ite(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(w$))==null?void 0:t.length)||0)+(((n=e.match(rte))==null?void 0:n.length)||0)>0}const Pk="number",_k="color",ste="var",ote="var(",RA="${}",ate=/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 a=t.replace(ate,l=>(Pr.test(l)?(r.color.push(s),i.push(_k),n.push(Pr.parse(l))):l.startsWith(ote)?(r.var.push(s),i.push(ste),n.push(l)):(r.number.push(s),i.push(Pk),n.push(parseFloat(l))),++s,RA)).split(RA);return{values:n,split:a,indexes:r,types:i}}function Mk(e){return md(e).values}function Rk(e){const{split:t,types:n}=md(e),r=t.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=t[o],i[o]!==void 0){const a=n[o];a===Pk?s+=Uf(i[o]):a===_k?s+=Pr.transform(i[o]):s+=i[o]}return s}}const ute=e=>typeof e=="number"?0:e;function lte(e){const t=Mk(e);return Rk(e)(t.map(ute))}const Ta={test:ite,parse:Mk,createTransformer:Rk,getAnimatableNone:lte},cte=new Set(["brightness","contrast","saturate","opacity"]);function fte(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(w$)||[];if(!r)return e;const i=n.replace(r,"");let s=cte.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const dte=/\b([a-z-]*)\(.*?\)/gu,Xb={...Ta,getAnimatableNone:e=>{const t=e.match(dte);return t?t.map(fte).join(" "):e}},hte={...d$,color:Pr,backgroundColor:Pr,outlineColor:Pr,fill:Pr,stroke:Pr,borderColor:Pr,borderTopColor:Pr,borderRightColor:Pr,borderBottomColor:Pr,borderLeftColor:Pr,filter:Xb,WebkitFilter:Xb},Fk=e=>hte[e];function kk(e,t){let n=Fk(e);return n!==Xb&&(n=Ta),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const pte=new Set(["auto","none","0"]);function mte(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!pte.has(s)&&md(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=kk(n,i)}const yu=e=>e*180/Math.PI,Jb=e=>{const t=yu(Math.atan2(e[1],e[0]));return Qb(t)},gte={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Jb,rotateZ:Jb,skewX:e=>yu(Math.atan(e[1])),skewY:e=>yu(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Qb=e=>(e=e%360,e<0&&(e+=360),e),FA=Jb,kA=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),OA=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),vte={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:kA,scaleY:OA,scale:e=>(kA(e)+OA(e))/2,rotateX:e=>Qb(yu(Math.atan2(e[6],e[5]))),rotateY:e=>Qb(yu(Math.atan2(-e[2],e[0]))),rotateZ:FA,rotate:FA,skewX:e=>yu(Math.atan(e[4])),skewY:e=>yu(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function IA(e){return e.includes("scale")?1:0}function e4(e,t){if(!e||e==="none")return IA(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=vte,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=gte,i=a}if(!i)return IA(t);const s=r[t],o=i[1].split(",").map(bte);return typeof s=="function"?s(o):o[s]}const yte=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return e4(n,t)};function bte(e){return parseFloat(e.trim())}const LA=e=>e===Dc||e===Dt,$te=new Set(["x","y","z"]),xte=Ec.filter(e=>!$te.has(e));function wte(e){const t=[];return xte.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const lc={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})=>e4(t,"x"),y:(e,{transform:t})=>e4(t,"y")};lc.translateX=lc.x;lc.translateY=lc.y;const Su=new Set;let t4=!1,n4=!1;function Ok(){if(n4){const e=Array.from(Su).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=wte(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,o])=>{var a;(a=r.getValue(s))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}n4=!1,t4=!1,Su.forEach(e=>e.complete()),Su.clear()}function Ik(){Su.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(n4=!0)})}function Cte(){Ik(),Ok()}let S$=class{constructor(t,n,r,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Su.add(this),t4||(t4=!0,vn.read(Ik),vn.resolveKeyframes(Ok))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let s=0;s<t.length;s++)if(t[s]===null)if(s===0){const o=i==null?void 0:i.get(),a=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const l=r.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),i&&o===void 0&&i.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Su.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Su.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const Lk=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Ste=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ete(e){const t=Ste.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const Dte=4;function Bk(e,t,n=1){ao(n<=Dte,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=Ete(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return Lk(o)?parseFloat(o):o}return f$(i)?Bk(i,t,n+1):i}const Vk=e=>t=>t.test(e),Ate={test:e=>e==="auto",parse:e=>e},Nk=[Dc,Dt,so,ma,Cee,wee,Ate],BA=e=>Nk.find(Vk(e));let jk=class extends S${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(),f$(d))){const h=Bk(d,n.current);h!==void 0&&(t[l]=h),l===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!vk.has(r)||t.length!==2)return;const[i,s]=t,o=BA(i),a=BA(s);if(o!==a)if(LA(o)&&LA(a))for(let l=0;l<t.length;l++){const d=t[l];typeof d=="string"&&(t[l]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)Jee(t[i])&&r.push(i);r.length&&mte(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=lc[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 a;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,o=r[s];r[s]=lc[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,d])=>{t.getValue(l).set(d)}),this.resolveNoneKeyframes()}};const VA=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ta.test(e)||e==="0")&&!e.startsWith("url("));function Tte(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 Pte(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],o=VA(i,t),a=VA(s,t);return Sc(o===a,`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.`),!o||!a?!1:Tte(e)||(n==="spring"||n$(n))&&r}const _te=e=>e!==null;function ug(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(_te),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}const Mte=40;let Kk=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=io.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Mte?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Cte(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=io.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:s,delay:o,onComplete:a,onUpdate:l,isGenerator:d}=this.options;if(!d&&!Pte(t,r,i,s))if(o)this.options.duration=0;else{l&&l(ug(t,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};const _n=(e,t,n)=>e+(t-e)*n;function b1(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 Rte({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=b1(l,a,e+1/3),s=b1(l,a,e),o=b1(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function rm(e,t){return n=>n>0?t:e}const $1=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Fte=[Zb,vu,kl],kte=e=>Fte.find(t=>t.test(e));function NA(e){const t=kte(e);if(Sc(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===kl&&(n=Rte(n)),n}const jA=(e,t)=>{const n=NA(e),r=NA(t);if(!n||!r)return rm(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=_n(n.alpha,r.alpha,s),vu.transform(i))},Ote=(e,t)=>n=>t(e(n)),Ud=(...e)=>e.reduce(Ote),r4=new Set(["none","hidden"]);function Ite(e,t){return r4.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Lte(e,t){return n=>_n(e,t,n)}function E$(e){return typeof e=="number"?Lte:typeof e=="string"?f$(e)?rm:Pr.test(e)?jA:Nte:Array.isArray(e)?Uk:typeof e=="object"?Pr.test(e)?jA:Bte:rm}function Uk(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>E$(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function Bte(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=E$(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function Vte(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],o=e.indexes[s][r[s]],a=e.values[o]??0;n[i]=a,r[s]++}return n}const Nte=(e,t)=>{const n=Ta.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?r4.has(e)&&!i.values.length||r4.has(t)&&!r.values.length?Ite(e,t):Ud(Uk(Vte(r,i),i.values),n):(Sc(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),rm(e,t))};function zk(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?_n(e,t,n):E$(e)(e,t)}const jte=5;function qk(e,t,n){const r=Math.max(t-jte,0);return W7(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},KA=.001;function Kte({duration:e=Fn.duration,bounce:t=Fn.bounce,velocity:n=Fn.velocity,mass:r=Fn.mass}){let i,s;Sc(e<=Ss(Fn.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=Go(Fn.minDamping,Fn.maxDamping,o),e=Go(Fn.minDuration,Fn.maxDuration,ro(e)),o<1?(i=d=>{const h=d*o,m=h*e,g=h-n,b=i4(d,o),x=Math.exp(-m);return KA-g/b*x},s=d=>{const m=d*o*e,g=m*n+n,b=Math.pow(o,2)*Math.pow(d,2)*e,x=Math.exp(-m),C=i4(Math.pow(d,2),o);return(-i(d)+KA>0?-1:1)*((g-b)*x)/C}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-.001+h*m},s=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const a=5/e,l=zte(i,s,a);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:o*2*Math.sqrt(r*d),duration:e}}}const Ute=12;function zte(e,t,n){let r=n;for(let i=1;i<Ute;i++)r=r-e(r)/t(r);return r}function i4(e,t){return e*Math.sqrt(1-t*t)}const qte=["duration","bounce"],Wte=["stiffness","damping","mass"];function UA(e,t){return t.some(n=>e[n]!==void 0)}function Hte(e){let t={velocity:Fn.velocity,stiffness:Fn.stiffness,damping:Fn.damping,mass:Fn.mass,isResolvedFromDuration:!1,...e};if(!UA(e,Wte)&&UA(e,qte))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Go(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Fn.mass,stiffness:i,damping:s}}else{const n=Kte(e);t={...t,...n,mass:Fn.mass},t.isResolvedFromDuration=!0}return t}function im(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],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:d,mass:h,duration:m,velocity:g,isResolvedFromDuration:b}=Hte({...n,velocity:-ro(n.velocity||0)}),x=g||0,C=d/(2*Math.sqrt(l*h)),D=o-s,S=ro(Math.sqrt(l/h)),w=Math.abs(D)<5;r||(r=w?Fn.restSpeed.granular:Fn.restSpeed.default),i||(i=w?Fn.restDelta.granular:Fn.restDelta.default);let T;if(C<1){const R=i4(S,C);T=k=>{const K=Math.exp(-C*S*k);return o-K*((x+C*S*D)/R*Math.sin(R*k)+D*Math.cos(R*k))}}else if(C===1)T=R=>o-Math.exp(-S*R)*(D+(x+S*D)*R);else{const R=S*Math.sqrt(C*C-1);T=k=>{const K=Math.exp(-C*S*k),q=Math.min(R*k,300);return o-K*((x+C*S*D)*Math.sinh(q)+R*D*Math.cosh(q))/R}}const O={calculatedDuration:b&&m||null,next:R=>{const k=T(R);if(b)a.done=R>=m;else{let K=0;C<1&&(K=R===0?Ss(x):qk(T,R,k));const q=Math.abs(K)<=r,ce=Math.abs(o-k)<=i;a.done=q&&ce}return a.value=a.done?o:k,a},toString:()=>{const R=Math.min(i$(O),tm),k=H7(K=>O.next(R*K).value,R,30);return R+"ms "+k},toTransition:()=>{}};return O}im.applyToOptions=e=>{const t=zQ(e,100,im);return e.ease=cd()?t.ease:"easeOut",e.duration=Ss(t.duration),e.type="keyframes",e};function zA({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:d=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},b=q=>a!==void 0&&q<a||l!==void 0&&q>l,x=q=>a===void 0?l:l===void 0||Math.abs(a-q)<Math.abs(l-q)?a:l;let C=n*t;const D=m+C,S=o===void 0?D:o(D);S!==D&&(C=S-m);const w=q=>-C*Math.exp(-q/r),T=q=>S+w(q),O=q=>{const ce=w(q),oe=T(q);g.done=Math.abs(ce)<=d,g.value=g.done?S:oe};let R,k;const K=q=>{b(g.value)&&(R=q,k=im({keyframes:[g.value,x(g.value)],velocity:qk(T,q,g.value),damping:i,stiffness:s,restDelta:d,restSpeed:h}))};return K(0),{calculatedDuration:null,next:q=>{let ce=!1;return!k&&R===void 0&&(ce=!0,O(q),K(q)),R!==void 0&&q>=R?k.next(q-R):(!ce&&O(q),g)}}}const Gte=Kd(.42,0,1,1),Yte=Kd(0,0,.58,1),Wk=Kd(.42,0,.58,1),Zte=e=>Array.isArray(e)&&typeof e[0]!="number",qA={linear:Xi,easeIn:Gte,easeInOut:Wk,easeOut:Yte,circIn:x$,circInOut:Dk,circOut:Ek,backIn:$$,backInOut:Ck,backOut:wk,anticipate:Sk},WA=e=>{if(t$(e)){ao(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Kd(t,n,r,i)}else if(typeof e=="string")return ao(qA[e]!==void 0,`Invalid easing type '${e}'`),qA[e];return e};function Xte(e,t,n){const r=[],i=n||zk,s=e.length-1;for(let o=0;o<s;o++){let a=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Xi:t;a=Ud(l,a)}r.push(a)}return r}function Hk(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(ao(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 o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Xte(t,r,i),l=a.length,d=h=>{if(o&&h<e[0])return t[0];let m=0;if(l>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=ld(e[m],e[m+1],h);return a[m](g)};return n?h=>d(Go(e[0],e[s-1],h)):d}function Jte(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=ld(0,t,r);e.push(_n(n,1,i))}}function Qte(e){const t=[0];return Jte(t,e.length-1),t}function ene(e,t){return e.map(n=>n*t)}function tne(e,t){return e.map(()=>t||Wk).splice(0,e.length-1)}function zf({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Zte(r)?r.map(WA):WA(r),s={done:!1,value:t[0]},o=ene(n&&n.length===t.length?n:Qte(t),e),a=Hk(o,t,{ease:Array.isArray(i)?i:tne(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const nne=e=>{const t=({timestamp:n})=>e(n);return{start:()=>vn.update(t,!0),stop:()=>Ho(t),now:()=>xr.isProcessing?xr.timestamp:io.now()}},rne={decay:zA,inertia:zA,tween:zf,keyframes:zf,spring:im},ine=e=>e/100;let D$=class extends Kk{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:s}=this.options,o=(i==null?void 0:i.KeyframeResolver)||S$,a=(l,d)=>this.onKeyframesResolved(l,d);this.resolver=new o(s,a,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,a=n$(n)?n:rne[n]||zf;let l,d;process.env.NODE_ENV!=="production"&&a!==zf&&ao(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),a!==zf&&typeof t[0]!="number"&&(l=Ud(ine,zk(t[0],t[1])),t=[0,100]);const h=a({...this.options,keyframes:t});s==="mirror"&&(d=a({...this.options,keyframes:[...t].reverse(),velocity:-o})),h.calculatedDuration===null&&(h.calculatedDuration=i$(h));const{calculatedDuration:m}=h,g=m+i,b=g*(r+1)-i;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:l,calculatedDuration:m,resolvedDuration:g,totalDuration:b}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:q}=this.options;return{done:!0,value:q[q.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:d,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return s.next(0);const{delay:g,repeat:b,repeatType:x,repeatDelay:C,onUpdate:D}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const S=this.currentTime-g*(this.speed>=0?1:-1),w=this.speed>=0?S<0:S>h;this.currentTime=Math.max(S,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let T=this.currentTime,O=s;if(b){const q=Math.min(this.currentTime,h)/m;let ce=Math.floor(q),oe=q%1;!oe&&q>=1&&(oe=1),oe===1&&ce--,ce=Math.min(ce,b+1),!!(ce%2)&&(x==="reverse"?(oe=1-oe,C&&(oe-=C/m)):x==="mirror"&&(O=o)),T=Go(0,1,oe)*m}const R=w?{done:!1,value:l[0]}:O.next(T);a&&(R.value=a(R.value));let{done:k}=R;!w&&d!==null&&(k=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const K=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return K&&i!==void 0&&(R.value=ug(l,this.options,i)),D&&D(R.value),K&&this.finish(),R}get duration(){const{resolved:t}=this;return t?ro(t.calculatedDuration):0}get time(){return ro(this.currentTime)}set time(t){t=Ss(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=ro(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=nne,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=this.currentTime??0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}get finished(){return this.currentFinishedPromise}};const sne=new Set(["opacity","clipPath","filter","transform"]),one=Q3(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),sm=10,ane=2e4;function une(e){return n$(e.type)||e.type==="spring"||!Y7(e.ease)}function lne(e,t){const n=new D$({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let s=0;for(;!r.done&&s<ane;)r=n.sample(s),i.push(r.value),s+=sm;return{times:void 0,keyframes:i,duration:s-sm,ease:"linear"}}const Gk={anticipate:Sk,backInOut:Ck,circInOut:Dk};function cne(e){return e in Gk}let HA=class extends Kk{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:s}=this.options;this.resolver=new jk(s,(o,a)=>this.onKeyframesResolved(o,a),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:s,type:o,motionValue:a,name:l,startTime:d}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof s=="string"&&cd()&&cne(s)&&(s=Gk[s]),une(this.options)){const{onComplete:m,onUpdate:g,motionValue:b,element:x,...C}=this.options,D=lne(t,C);t=D.keyframes,t.length===1&&(t[1]=t[0]),r=D.duration,i=D.times,s=D.ease,o="keyframes"}const h=UQ(a.owner.current,l,t,{...this.options,duration:r,times:i,ease:s});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?($A(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;a.set(ug(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:o,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return ro(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return ro(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Ss(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}get finished(){return this.resolved.animation.finished}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Xi;const{animation:r}=n;$A(r,t)}return Xi}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:s,ease:o,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:m,element:g,...b}=this.options,x=new D$({...b,keyframes:r,duration:i,type:s,ease:o,times:a,isGenerator:!0}),C=Ss(this.time);d.setWithVelocity(x.sample(C-sm).value,x.sample(C).value,sm)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:s,damping:o,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:d}=n.owner.getProps();return one()&&r&&sne.has(r)&&(r!=="transform"||!d)&&!l&&!i&&s!=="mirror"&&o!==0&&a!=="inertia"}};const fne={type:"spring",stiffness:500,damping:25,restSpeed:10},dne=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),hne={type:"keyframes",duration:.8},pne={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},mne=(e,{keyframes:t})=>t.length>2?hne:Ku.has(e)?e.startsWith("scale")?dne(t[1]):fne:pne;function gne({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:d,...h}){return!!Object.keys(h).length}const A$=(e,t,n,r={},i,s)=>o=>{const a=r$(r,e)||{},l=a.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Ss(l);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-d,onUpdate:g=>{t.set(g),a.onUpdate&&a.onUpdate(g)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};gne(a)||(h={...h,...mne(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)),h.allowFlatten=!a.type&&!a.ease,m&&!s&&t.get()!==void 0){const g=ug(h.keyframes,a);if(g!==void 0)return vn.update(()=>{h.onUpdate(g),h.onComplete()}),new NQ([])}return!s&&HA.supports(h)?new HA(h):new D$(h)};function vne({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Yk(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:o,...a}=t;r&&(s=r);const l=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const h in a){const m=e.getValue(h,e.latestValues[h]??null),g=a[h];if(g===void 0||d&&vne(d,h))continue;const b={delay:n,...r$(s||{},h)};let x=!1;if(window.MotionHandoffAnimation){const D=yk(e);if(D){const S=window.MotionHandoffAnimation(D,h,vn);S!==null&&(b.startTime=S,x=!0)}}Yb(e,h),m.start(A$(h,m,g,e.shouldReduceMotion&&vk.has(h)?{type:!1}:b,e,x));const C=m.animation;C&&l.push(C)}return o&&Promise.all(l).then(()=>{vn.update(()=>{o&&Hee(e,o)})}),l}function s4(e,t,n={}){var l;const r=pd(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(Yk(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=i;return yne(e,t,h+d,m,g,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[d,h]=a==="beforeChildren"?[s,o]:[o,s];return d().then(()=>h())}else return Promise.all([s(),o(n.delay)])}function yne(e,t,n=0,r=0,i=1,s){const o=[],a=(e.variantChildren.size-1)*r,l=i===1?(d=0)=>d*r:(d=0)=>a-d*r;return Array.from(e.variantChildren).sort(bne).forEach((d,h)=>{d.notify("AnimationStart",t),o.push(s4(d,t,{...s,delay:n+l(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(o)}function bne(e,t){return e.sortNodePosition(t)}function $ne(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>s4(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=s4(e,t,n);else{const i=typeof t=="function"?pd(e,t,n.custom):t;r=Promise.all(Yk(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Zk(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 xne=u$.length;function Xk(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Xk(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<xne;n++){const r=u$[n],i=e.props[r];(fd(i)||i===!1)&&(t[r]=i)}return t}const wne=[...a$].reverse(),Cne=a$.length;function Sne(e){return t=>Promise.all(t.map(({animation:n,options:r})=>$ne(e,n,r)))}function Ene(e){let t=Sne(e),n=GA(),r=!0;const i=l=>(d,h)=>{var g;const m=pd(e,h,l==="exit"?(g=e.presenceContext)==null?void 0:g.custom:void 0);if(m){const{transition:b,transitionEnd:x,...C}=m;d={...d,...C,...x}}return d};function s(l){t=l(e)}function o(l){const{props:d}=e,h=Xk(e.parent)||{},m=[],g=new Set;let b={},x=1/0;for(let D=0;D<Cne;D++){const S=wne[D],w=n[S],T=d[S]!==void 0?d[S]:h[S],O=fd(T),R=S===l?w.isActive:null;R===!1&&(x=D);let k=T===h[S]&&T!==d[S]&&O;if(k&&r&&e.manuallyAnimateOnMount&&(k=!1),w.protectedKeys={...b},!w.isActive&&R===null||!T&&!w.prevProp||og(T)||typeof T=="boolean")continue;const K=Dne(w.prevProp,T);let q=K||S===l&&w.isActive&&!k&&O||D>x&&O,ce=!1;const oe=Array.isArray(T)?T:[T];let I=oe.reduce(i(S),{});R===!1&&(I={});const{prevResolvedValues:be={}}=w,$e={...be,...I},H=B=>{q=!0,g.has(B)&&(ce=!0,g.delete(B)),w.needsAnimating[B]=!0;const L=e.getValue(B);L&&(L.liveStyle=!1)};for(const B in $e){const L=I[B],me=be[B];if(b.hasOwnProperty(B))continue;let U=!1;Gb(L)&&Gb(me)?U=!Zk(L,me):U=L!==me,U?L!=null?H(B):g.add(B):L!==void 0&&g.has(B)?H(B):w.protectedKeys[B]=!0}w.prevProp=T,w.prevResolvedValues=I,w.isActive&&(b={...b,...I}),r&&e.blockInitialAnimation&&(q=!1),q&&(!(k&&K)||ce)&&m.push(...oe.map(B=>({animation:B,options:{type:S}})))}if(g.size){const D={};if(typeof d.initial!="boolean"){const S=pd(e,Array.isArray(d.initial)?d.initial[0]:d.initial);S&&S.transition&&(D.transition=S.transition)}g.forEach(S=>{const w=e.getBaseTarget(S),T=e.getValue(S);T&&(T.liveStyle=!0),D[S]=w??null}),m.push({animation:D})}let C=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(C=!1),r=!1,C?t(m):Promise.resolve()}function a(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=o(l);for(const g in n)n[g].protectedKeys={};return h}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=GA(),r=!0}}}function Dne(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Zk(t,e):!1}function ou(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function GA(){return{animate:ou(!0),whileInView:ou(),whileHover:ou(),whileTap:ou(),whileDrag:ou(),whileFocus:ou(),exit:ou()}}let Fa=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},Ane=class extends Fa{constructor(t){super(t),t.animationState||(t.animationState=Ene(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();og(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)}},Tne=0,Pne=class extends Fa{constructor(){super(...arguments),this.id=Tne++}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 _ne={animation:{Feature:Ane},exit:{Feature:Pne}};function gd(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function zd(e){return{point:{x:e.pageX,y:e.pageY}}}const Mne=e=>t=>o$(t)&&e(t,zd(t));function qf(e,t,n,r){return gd(e,t,Mne(n),r)}function Jk({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Rne({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Fne(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 Qk=1e-4,kne=1-Qk,One=1+Qk,eO=.01,Ine=0-eO,Lne=0+eO;function zr(e){return e.max-e.min}function Bne(e,t,n){return Math.abs(e-t)<=n}function YA(e,t,n,r=.5){e.origin=r,e.originPoint=_n(t.min,t.max,e.origin),e.scale=zr(n)/zr(t),e.translate=_n(n.min,n.max,e.origin)-e.originPoint,(e.scale>=kne&&e.scale<=One||isNaN(e.scale))&&(e.scale=1),(e.translate>=Ine&&e.translate<=Lne||isNaN(e.translate))&&(e.translate=0)}function Wf(e,t,n,r){YA(e.x,t.x,n.x,r?r.originX:void 0),YA(e.y,t.y,n.y,r?r.originY:void 0)}function ZA(e,t,n){e.min=n.min+t.min,e.max=e.min+zr(t)}function Vne(e,t,n){ZA(e.x,t.x,n.x),ZA(e.y,t.y,n.y)}function XA(e,t,n){e.min=t.min-n.min,e.max=e.min+zr(t)}function Hf(e,t,n){XA(e.x,t.x,n.x),XA(e.y,t.y,n.y)}const JA=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ol=()=>({x:JA(),y:JA()}),QA=()=>({min:0,max:0}),Yn=()=>({x:QA(),y:QA()});function Ki(e){return[e("x"),e("y")]}function x1(e){return e===void 0||e===1}function o4({scale:e,scaleX:t,scaleY:n}){return!x1(e)||!x1(t)||!x1(n)}function uu(e){return o4(e)||tO(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function tO(e){return eT(e.x)||eT(e.y)}function eT(e){return e&&e!=="0%"}function om(e,t,n){const r=e-n,i=t*r;return n+i}function tT(e,t,n,r,i){return i!==void 0&&(e=om(e,i,r)),om(e,n,r)+t}function a4(e,t=0,n=1,r,i){e.min=tT(e.min,t,n,r,i),e.max=tT(e.max,t,n,r,i)}function nO(e,{x:t,y:n}){a4(e.x,t.translate,t.scale,t.originPoint),a4(e.y,n.translate,n.scale,n.originPoint)}const nT=.999999999999,rT=1.0000000000001;function Nne(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let a=0;a<i;a++){s=n[a],o=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&&Ll(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,nO(e,o)),r&&uu(s.latestValues)&&Ll(e,s.latestValues))}t.x<rT&&t.x>nT&&(t.x=1),t.y<rT&&t.y>nT&&(t.y=1)}function Il(e,t){e.min=e.min+t,e.max=e.max+t}function iT(e,t,n,r,i=.5){const s=_n(e.min,e.max,i);a4(e,t,n,s,r)}function Ll(e,t){iT(e.x,t.x,t.scaleX,t.scale,t.originX),iT(e.y,t.y,t.scaleY,t.scale,t.originY)}function rO(e,t){return Jk(Fne(e.getBoundingClientRect(),t))}function jne(e,t,n){const r=rO(e,n),{scroll:i}=t;return i&&(Il(r.x,i.offset.x),Il(r.y,i.offset.y)),r}const iO=({current:e})=>e?e.ownerDocument.defaultView:null,sT=(e,t)=>Math.abs(e-t);function Kne(e,t){const n=sT(e.x,t.x),r=sT(e.y,t.y);return Math.sqrt(n**2+r**2)}class sO{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=C1(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,b=Kne(m.offset,{x:0,y:0})>=3;if(!g&&!b)return;const{point:x}=m,{timestamp:C}=xr;this.history.push({...x,timestamp:C});const{onStart:D,onMove:S}=this.handlers;g||(D&&D(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,m)},this.handlePointerMove=(m,g)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=w1(g,this.transformPagePoint),vn.update(this.updatePoint,!0)},this.handlePointerUp=(m,g)=>{this.end();const{onEnd:b,onSessionEnd:x,resumeAnimation:C}=this.handlers;if(this.dragSnapToOrigin&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const D=C1(m.type==="pointercancel"?this.lastMoveEventInfo:w1(g,this.transformPagePoint),this.history);this.startEvent&&b&&b(m,D),x&&x(m,D)},!o$(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=zd(t),a=w1(o,this.transformPagePoint),{point:l}=a,{timestamp:d}=xr;this.history=[{...l,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,C1(a,this.history)),this.removeListeners=Ud(qf(this.contextWindow,"pointermove",this.handlePointerMove),qf(this.contextWindow,"pointerup",this.handlePointerUp),qf(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ho(this.updatePoint)}}function w1(e,t){return t?{point:t(e.point)}:e}function oT(e,t){return{x:e.x-t.x,y:e.y-t.y}}function C1({point:e},t){return{point:e,delta:oT(e,oO(t)),offset:oT(e,Une(t)),velocity:zne(t,.1)}}function Une(e){return e[0]}function oO(e){return e[e.length-1]}function zne(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=oO(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Ss(t)));)n--;if(!r)return{x:0,y:0};const s=ro(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function qne(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?_n(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?_n(n,e,r.max):Math.min(e,n)),e}function aT(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 Wne(e,{top:t,left:n,bottom:r,right:i}){return{x:aT(e.x,n,i),y:aT(e.y,t,r)}}function uT(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 Hne(e,t){return{x:uT(e.x,t.x),y:uT(e.y,t.y)}}function Gne(e,t){let n=.5;const r=zr(e),i=zr(t);return i>r?n=ld(t.min,t.max-r,e.min):r>i&&(n=ld(e.min,e.max-i,t.min)),Go(0,1,n)}function Yne(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 u4=.35;function Zne(e=u4){return e===!1?e=0:e===!0&&(e=u4),{x:lT(e,"left","right"),y:lT(e,"top","bottom")}}function lT(e,t,n){return{min:cT(e,t),max:cT(e,n)}}function cT(e,t){return typeof e=="number"?e:e[t]||0}const Xne=new WeakMap;class Jne{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=Yn(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=h=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(zd(h).point)},s=(h,m)=>{const{drag:g,dragPropagation:b,onDragStart:x}=this.getProps();if(g&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=GQ(g),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ki(D=>{let S=this.getAxisMotionValue(D).get()||0;if(so.test(S)){const{projection:w}=this.visualElement;if(w&&w.layout){const T=w.layout.layoutBox[D];T&&(S=zr(T)*(parseFloat(S)/100))}}this.originPoint[D]=S}),x&&vn.postRender(()=>x(h,m)),Yb(this.visualElement,"transform");const{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",!0)},o=(h,m)=>{const{dragPropagation:g,dragDirectionLock:b,onDirectionLock:x,onDrag:C}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:D}=m;if(b&&this.currentDirection===null){this.currentDirection=Qne(D),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",m.point,D),this.updateAxis("y",m.point,D),this.visualElement.render(),C&&C(h,m)},a=(h,m)=>this.stop(h,m),l=()=>Ki(h=>{var m;return this.getAnimationState(h)==="paused"&&((m=this.getAxisMotionValue(h).animation)==null?void 0:m.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new sO(t,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:iO(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&vn.postRender(()=>s(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Gh(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=qne(o,this.constraints[t],this.elastic[t])),s.set(o)}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&&Fl(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Wne(r.layoutBox,t):this.constraints=!1,this.elastic=Zne(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Ki(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Yne(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Fl(t))return!1;const r=t.current;ao(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=jne(r,i.root,this.visualElement.getTransformPagePoint());let o=Hne(i.layout.layoutBox,s);if(n){const a=n(Rne(o));this.hasMutatedConstraints=!!a,a&&(o=Jk(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},d=Ki(h=>{if(!Gh(h,n,this.currentDirection))return;let m=l&&l[h]||{};o&&(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(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Yb(this.visualElement,t),r.start(A$(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ki(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ki(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){Ki(n=>{const{drag:r}=this.getProps();if(!Gh(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];s.set(t[n]-_n(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Fl(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ki(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=Gne({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ki(o=>{if(!Gh(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:d}=this.constraints[o];a.set(_n(l,d,i[o]))})}addListeners(){if(!this.visualElement.current)return;Xne.set(this.visualElement,this);const t=this.visualElement.current,n=qf(t,"pointerdown",l=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Fl(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()),vn.read(r);const o=gd(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:d})=>{this.isDragging&&d&&(Ki(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=l[h].translate,m.set(m.get()+l[h].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=u4,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function Gh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Qne(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class ere extends Fa{constructor(t){super(t),this.removeGroupControls=Xi,this.removeListeners=Xi,this.controls=new Jne(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Xi}unmount(){this.removeGroupControls(),this.removeListeners()}}const fT=e=>(t,n)=>{e&&vn.postRender(()=>e(t,n))};class tre extends Fa{constructor(){super(...arguments),this.removePointerDownListener=Xi}onPointerDown(t){this.session=new sO(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:iO(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:fT(t),onStart:fT(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&vn.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=qf(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 xp={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function dT(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const yf={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Dt.test(e))e=parseFloat(e);else return e;const n=dT(e,t.target.x),r=dT(e,t.target.y);return`${n}% ${r}%`}},nre={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ta.parse(e);if(i.length>5)return r;const s=Ta.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=l;const d=_n(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=d),typeof i[3+o]=="number"&&(i[3+o]/=d),s(i)}};class rre extends A.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;xee(ire),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),xp.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||vn.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),s$.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 aO(e){const[t,n]=IQ(),r=A.useContext(z7);return qo.jsx(rre,{...e,layoutGroup:r,switchLayoutGroup:A.useContext(ik),isPresent:t,safeToRemove:n})}const ire={borderRadius:{...yf,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:yf,borderTopRightRadius:yf,borderBottomLeftRadius:yf,borderBottomRightRadius:yf,boxShadow:nre};function sre(e,t,n){const r=wr(e)?e:ac(e);return r.start(A$("",r,t,n)),r.animation}function ore(e){return e instanceof SVGElement&&e.tagName!=="svg"}const are=(e,t)=>e.depth-t.depth;class ure{constructor(){this.children=[],this.isDirty=!1}add(t){X3(this.children,t),this.isDirty=!0}remove(t){J3(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(are),this.isDirty=!1,this.children.forEach(t)}}function lre(e,t){const n=io.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Ho(r),e(s-t))};return vn.read(r,!0),()=>Ho(r)}const uO=["TopLeft","TopRight","BottomLeft","BottomRight"],cre=uO.length,hT=e=>typeof e=="string"?parseFloat(e):e,pT=e=>typeof e=="number"||Dt.test(e);function fre(e,t,n,r,i,s){i?(e.opacity=_n(0,n.opacity??1,dre(r)),e.opacityExit=_n(t.opacity??1,0,hre(r))):s&&(e.opacity=_n(t.opacity??1,n.opacity??1,r));for(let o=0;o<cre;o++){const a=`border${uO[o]}Radius`;let l=mT(t,a),d=mT(n,a);if(l===void 0&&d===void 0)continue;l||(l=0),d||(d=0),l===0||d===0||pT(l)===pT(d)?(e[a]=Math.max(_n(hT(l),hT(d),r),0),(so.test(d)||so.test(l))&&(e[a]+="%")):e[a]=d}(t.rotate||n.rotate)&&(e.rotate=_n(t.rotate||0,n.rotate||0,r))}function mT(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const dre=lO(0,.5,Ek),hre=lO(.5,.95,Xi);function lO(e,t,n){return r=>r<e?0:r>t?1:n(ld(e,t,r))}function gT(e,t){e.min=t.min,e.max=t.max}function Vi(e,t){gT(e.x,t.x),gT(e.y,t.y)}function vT(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function yT(e,t,n,r,i){return e-=t,e=om(e,1/n,r),i!==void 0&&(e=om(e,1/i,r)),e}function pre(e,t=0,n=1,r=.5,i,s=e,o=e){if(so.test(t)&&(t=parseFloat(t),t=_n(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=_n(s.min,s.max,r);e===s&&(a-=t),e.min=yT(e.min,t,n,a,i),e.max=yT(e.max,t,n,a,i)}function bT(e,t,[n,r,i],s,o){pre(e,t[n],t[r],t[i],t.scale,s,o)}const mre=["x","scaleX","originX"],gre=["y","scaleY","originY"];function $T(e,t,n,r){bT(e.x,t,mre,n?n.x:void 0,r?r.x:void 0),bT(e.y,t,gre,n?n.y:void 0,r?r.y:void 0)}function xT(e){return e.translate===0&&e.scale===1}function cO(e){return xT(e.x)&&xT(e.y)}function wT(e,t){return e.min===t.min&&e.max===t.max}function vre(e,t){return wT(e.x,t.x)&&wT(e.y,t.y)}function CT(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function fO(e,t){return CT(e.x,t.x)&&CT(e.y,t.y)}function ST(e){return zr(e.x)/zr(e.y)}function ET(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class yre{constructor(){this.members=[]}add(t){X3(this.members,t),t.scheduleRender()}remove(t){if(J3(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 bre(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}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 a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const S1=["","X","Y","Z"],$re={visibility:"hidden"},DT=1e3;let xre=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 dO(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=yk(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",vn,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&dO(r)}function hO({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=t==null?void 0:t()){this.id=xre++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Sre),this.nodes.forEach(Pre),this.nodes.forEach(_re),this.nodes.forEach(Ere)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new ure)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new e$),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=ore(o),this.instance=o;const{layoutId:l,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(d||l)&&(this.isLayoutDirty=!0),e){let m;const g=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=lre(g,250),xp.hasAnimatedSinceResize&&(xp.hasAnimatedSinceResize=!1,this.nodes.forEach(TT))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&h&&(l||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:g,hasRelativeLayoutChanged:b,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const C=this.options.transition||h.getDefaultTransition()||Ore,{onLayoutAnimationStart:D,onLayoutAnimationComplete:S}=h.getProps(),w=!this.targetLayout||!fO(this.targetLayout,x),T=!g&&b;if(this.options.layoutRoot||this.resumeFrom||T||g&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,T);const O={...r$(C,"layout"),onPlay:D,onComplete:S};(h.shouldReduceMotion||this.options.layoutRoot)&&(O.delay=0,O.type=!1),this.startAnimation(O)}else g||TT(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ho(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(Mre),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&dO(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:a,layout:l}=this.options;if(a===void 0&&!l)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(AT);return}this.isUpdating||this.nodes.forEach(Are),this.isUpdating=!1,this.nodes.forEach(Tre),this.nodes.forEach(wre),this.nodes.forEach(Cre),this.clearAllSnapshots();const a=io.now();xr.delta=Go(0,1e3/60,a-xr.timestamp),xr.timestamp=a,xr.isProcessing=!0,g1.update.process(xr),g1.preRender.process(xr),g1.render.process(xr),xr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,s$.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Dre),this.sharedNodes.forEach(Rre)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,vn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){vn.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 o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Yn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!cO(this.projectionDelta),l=this.getTransformTemplate(),d=l?l(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;o&&(a||uu(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),Ire(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var d;const{visualElement:o}=this.options;if(!o)return Yn();const a=o.measureViewportBox();if(!(((d=this.scroll)==null?void 0:d.wasRoot)||this.path.some(Lre))){const{scroll:h}=this.root;h&&(Il(a.x,h.offset.x),Il(a.y,h.offset.y))}return a}removeElementScroll(o){var l;const a=Yn();if(Vi(a,o),(l=this.scroll)!=null&&l.wasRoot)return a;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&&Vi(a,o),Il(a.x,m.offset.x),Il(a.y,m.offset.y))}return a}applyTransform(o,a=!1){const l=Yn();Vi(l,o);for(let d=0;d<this.path.length;d++){const h=this.path[d];!a&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Ll(l,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),uu(h.latestValues)&&Ll(l,h.latestValues)}return uu(this.latestValues)&&Ll(l,this.latestValues),l}removeTransform(o){const a=Yn();Vi(a,o);for(let l=0;l<this.path.length;l++){const d=this.path[l];if(!d.instance||!uu(d.latestValues))continue;o4(d.latestValues)&&d.updateSnapshot();const h=Yn(),m=d.measurePageBox();Vi(h,m),$T(a,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return uu(this.latestValues)&&$T(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.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(o=!1){var g;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(o||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=Yn(),this.relativeTargetOrigin=Yn(),Hf(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),Vi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Yn(),this.targetWithTransforms=Yn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Vne(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Vi(this.target,this.layout.layoutBox),nO(this.target,this.targetDelta)):Vi(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=Yn(),this.relativeTargetOrigin=Yn(),Hf(this.relativeTargetOrigin,this.target,b.target),Vi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||o4(this.parent.latestValues)||tO(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 o=this.getLead(),a=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||(x=this.parent)!=null&&x.isProjectionDirty)&&(l=!1),a&&(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;Vi(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,g=this.treeScale.y;Nne(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=Yn());const{target:b}=o;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(vT(this.prevProjectionDelta.x,this.projectionDelta.x),vT(this.prevProjectionDelta.y,this.projectionDelta.y)),Wf(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!ET(this.projectionDelta.x,this.prevProjectionDelta.x)||!ET(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ol(),this.projectionDelta=Ol(),this.projectionDeltaWithTransform=Ol()}setAnimationOrigin(o,a=!1){const l=this.snapshot,d=l?l.latestValues:{},h={...this.latestValues},m=Ol();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const g=Yn(),b=l?l.source:void 0,x=this.layout?this.layout.source:void 0,C=b!==x,D=this.getStack(),S=!D||D.members.length<=1,w=!!(C&&!S&&this.options.crossfade===!0&&!this.path.some(kre));this.animationProgress=0;let T;this.mixTargetDelta=O=>{const R=O/1e3;PT(m.x,o.x,R),PT(m.y,o.y,R),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Hf(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Fre(this.relativeTarget,this.relativeTargetOrigin,g,R),T&&vre(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=Yn()),Vi(T,this.relativeTarget)),C&&(this.animationValues=h,fre(h,d,this.latestValues,R,w,S)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=R},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ho(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=vn.update(()=>{xp.hasAnimatedSinceResize=!0,this.currentAnimation=sre(0,DT,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.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 o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(DT),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:d,latestValues:h}=o;if(!(!a||!l||!d)){if(this!==o&&this.layout&&d&&pO(this.options.animationType,this.layout.layoutBox,d.layoutBox)){l=this.target||Yn();const m=zr(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+m;const g=zr(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+g}Vi(a,l),Ll(a,h),Wf(this.projectionDeltaWithTransform,this.layoutCorrected,a,h)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new yre),this.sharedNodes.get(o).add(a);const d=a.options.initialPromotionConfig;a.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const d=this.getStack();d&&d.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const d={};l.z&&E1("z",o,d,this.animationValues);for(let h=0;h<S1.length;h++)E1(`rotate${S1[h]}`,o,d,this.animationValues),E1(`skew${S1[h]}`,o,d,this.animationValues);o.render();for(const h in d)o.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);o.scheduleRender()}getProjectionStyles(o){if(!this.instance||this.isSVG)return;if(!this.isVisible)return $re;const a={visibility:""},l=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,a.opacity="",a.pointerEvents=$p(o==null?void 0:o.pointerEvents)||"",a.transform=l?l(this.latestValues,""):"none",a;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=$p(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!uu(this.latestValues)&&(b.transform=l?l({},""):"none",this.hasProjected=!1),b}const h=d.animationValues||d.latestValues;this.applyTransformsToTarget(),a.transform=bre(this.projectionDeltaWithTransform,this.treeScale,h),l&&(a.transform=l(h,a.transform));const{x:m,y:g}=this.projectionDelta;a.transformOrigin=`${m.origin*100}% ${g.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 b in dd){if(h[b]===void 0)continue;const{correct:x,applyTo:C,isCSSVariable:D}=dd[b],S=a.transform==="none"?h[b]:x(h[b],d);if(C){const w=C.length;for(let T=0;T<w;T++)a[C[T]]=S}else D?this.options.visualElement.renderState.vars[b]=S:a[b]=S}return this.options.layoutId&&(a.pointerEvents=d===this?$p(o==null?void 0:o.pointerEvents)||"":"none"),a}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(AT),this.root.sharedNodes.clear()}}}function wre(e){e.updateLayout()}function Cre(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,o=t.source!==e.layout.source;s==="size"?Ki(m=>{const g=o?t.measuredBox[m]:t.layoutBox[m],b=zr(g);g.min=r[m].min,g.max=g.min+b}):pO(s,t.layoutBox,r)&&Ki(m=>{const g=o?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 a=Ol();Wf(a,r,t.layoutBox);const l=Ol();o?Wf(l,e.applyTransform(i,!0),t.measuredBox):Wf(l,r,t.layoutBox);const d=!cO(a);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=Yn();Hf(x,t.layoutBox,g.layoutBox);const C=Yn();Hf(C,r,b.layoutBox),fO(x,C)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=C,e.relativeTargetOrigin=x,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Sre(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 Ere(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Dre(e){e.clearSnapshot()}function AT(e){e.clearMeasurements()}function Are(e){e.isLayoutDirty=!1}function Tre(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function TT(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Pre(e){e.resolveTargetDelta()}function _re(e){e.calcProjection()}function Mre(e){e.resetSkewAndRotation()}function Rre(e){e.removeLeadSnapshot()}function PT(e,t,n){e.translate=_n(t.translate,0,n),e.scale=_n(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function _T(e,t,n,r){e.min=_n(t.min,n.min,r),e.max=_n(t.max,n.max,r)}function Fre(e,t,n,r){_T(e.x,t.x,n.x,r),_T(e.y,t.y,n.y,r)}function kre(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Ore={duration:.45,ease:[.4,0,.1,1]},MT=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),RT=MT("applewebkit/")&&!MT("chrome/")?Math.round:Xi;function FT(e){e.min=RT(e.min),e.max=RT(e.max)}function Ire(e){FT(e.x),FT(e.y)}function pO(e,t,n){return e==="position"||e==="preserve-aspect"&&!Bne(ST(t),ST(n),.2)}function Lre(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const Bre=hO({attachResizeListener:(e,t)=>gd(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),D1={current:void 0},mO=hO({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!D1.current){const e=new Bre({});e.mount(window),e.setOptions({layoutScroll:!0}),D1.current=e}return D1.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Vre={pan:{Feature:tre},drag:{Feature:ere,ProjectionNode:mO,MeasureLayout:aO}};function kT(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&&vn.postRender(()=>s(t,zd(t)))}let Nre=class extends Fa{mount(){const{current:t}=this.node;t&&(this.unmount=ZQ(t,(n,r)=>(kT(this.node,r,"Start"),i=>kT(this.node,i,"End"))))}unmount(){}},jre=class extends Fa{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(gd(this.node.current,"focus",()=>this.onFocus()),gd(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function OT(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&&vn.postRender(()=>s(t,zd(t)))}let Kre=class extends Fa{mount(){const{current:t}=this.node;t&&(this.unmount=eee(t,(n,r)=>(OT(this.node,r,"Start"),(i,{success:s})=>OT(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const l4=new WeakMap,A1=new WeakMap,Ure=e=>{const t=l4.get(e.target);t&&t(e)},zre=e=>{e.forEach(Ure)};function qre({root:e,...t}){const n=e||document;A1.has(n)||A1.set(n,{});const r=A1.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(zre,{root:e,...t})),r[i]}function Wre(e,t,n){const r=qre(t);return l4.set(e,n),r.observe(e),()=>{l4.delete(e),r.unobserve(e)}}const Hre={some:0,all:1};let Gre=class extends Fa{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,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Hre[i]},a=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 Wre(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Yre(t,n))&&this.startObserver()}unmount(){}};function Yre({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Zre={inView:{Feature:Gre},tap:{Feature:Kre},focus:{Feature:jre},hover:{Feature:Nre}},Xre={layout:{ProjectionNode:mO,MeasureLayout:aO}},c4={current:null},gO={current:!1};function Jre(){if(gO.current=!0,!!G3)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>c4.current=e.matches;e.addListener(t),t()}else c4.current=!1}const Qre=[...Nk,Pr,Ta],eie=e=>Qre.find(Vk(e)),tie=new WeakMap;function nie(e,t,n){for(const r in t){const i=t[r],s=n[r];if(wr(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&ig(i.version==="12.7.3",`Attempting to mix Motion versions ${i.version} with 12.7.3 may not work as expected.`);else if(wr(s))e.addValue(r,ac(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,ac(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const IT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let rie=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=S$,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const b=io.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,vn.render(this.render,!1,!0))};const{latestValues:l,renderState:d,onUpdate:h}=o;this.onUpdate=h,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=ag(n),this.isVariantNode=nk(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const b in g){const x=g[b];l[b]!==void 0&&wr(x)&&x.set(l[b],!1)}}mount(t){this.current=t,tie.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)),gO.current||Jre(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:c4.current,process.env.NODE_ENV!=="production"&&ig(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(),Ho(this.notifyUpdate),Ho(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=Ku.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&vn.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),o&&o(),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 uc){const n=uc[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):Yn()}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<IT.length;r++){const i=IT[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=t[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=nie(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=ac(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"&&(Lk(r)||Ak(r))?r=parseFloat(r):!eie(r)&&Ta.test(n)&&(r=kk(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 o=y$(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);o&&(r=o[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 e$),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},vO=class extends rie{constructor(){super(...arguments),this.KeyframeResolver=jk}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 iie(e){return window.getComputedStyle(e)}let sie=class extends vO{constructor(){super(...arguments),this.type="html",this.renderInstance=hk}readValueFromInstance(t,n){if(Ku.has(n))return yte(t,n);{const r=iie(t),i=(c$(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return rO(t,n)}build(t,n,r){h$(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return b$(t,n,r)}},oie=class extends vO{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Yn,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&dk(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ku.has(n)){const r=Fk(n);return r&&r.default||0}return n=pk.has(n)?n:l$(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return gk(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&vn.postRender(this.updateDimensions)}build(t,n,r){g$(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){mk(t,n,r,i)}mount(t){this.isSVGTag=v$(t.tagName),super.mount(t)}};const aie=(e,t)=>m$(e)?new oie(t):new sie(t,{allowProjection:e!==A.Fragment}),uie=qee({..._ne,...Zre,...Vre,...Xre},aie),yO=aee(uie);function bO(e){const t=Nd(()=>ac(e)),{isStatic:n}=A.useContext(Z3);if(n){const[,r]=A.useState(e);A.useEffect(()=>t.on("change",r),[])}return t}function $O(e,t){const n=bO(t()),r=()=>n.set(t());return r(),q7(()=>{const i=()=>vn.preRender(r,!1,!0),s=e.map(o=>o.on("change",i));return()=>{s.forEach(o=>o()),Ho(r)}}),n}const lie=e=>e&&typeof e=="object"&&e.mix,cie=e=>lie(e)?e.mix:void 0;function fie(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],s=e[2+n],o=e[3+n],a=Hk(i,s,{mixer:cie(s[0]),...o});return t?a(r):a}function die(e){Kf.current=[],e();const t=$O(Kf.current,e);return Kf.current=void 0,t}function hie(e,t,n,r){if(typeof e=="function")return die(e);const i=typeof t=="function"?t:fie(t,n,r);return Array.isArray(e)?LT(e,i):LT([e],([s])=>i(s))}function LT(e,t){const n=Nd(()=>[]);return $O(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}const xO=A.createContext(null);function pie(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,o=e[i+s];if(!o)return e;const a=e[i],l=o.layout,d=_n(l.min,l.max,.5);return s===1&&a.layout.max+n>d||s===-1&&a.layout.min+n<d?LQ(e,i,i+s):e}function mie({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...s},o){const a=Nd(()=>yO[t]),l=[],d=A.useRef(!1);ao(!!i,"Reorder.Group must be provided a values prop");const h={axis:n,registerItem:(m,g)=>{const b=l.findIndex(x=>m===x.value);b!==-1?l[b].layout=g[n]:l.push({value:m,layout:g[n]}),l.sort(yie)},updateOrder:(m,g,b)=>{if(d.current)return;const x=pie(l,m,g,b);l!==x&&(d.current=!0,r(x.map(vie).filter(C=>i.indexOf(C)!==-1)))}};return A.useEffect(()=>{d.current=!1}),qo.jsx(a,{...s,ref:o,ignoreStrict:!0,children:qo.jsx(xO.Provider,{value:h,children:e})})}const gie=A.forwardRef(mie);function vie(e){return e.value}function yie(e,t){return e.layout.min-t.layout.min}function BT(e,t=0){return wr(e)?e:bO(t)}function bie({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:s=!0,...o},a){const l=Nd(()=>yO[r]),d=A.useContext(xO),h={x:BT(t.x),y:BT(t.y)},m=hie([h.x,h.y],([C,D])=>C||D?1:"unset");ao(!!d,"Reorder.Item must be a child of Reorder.Group");const{axis:g,registerItem:b,updateOrder:x}=d;return qo.jsx(l,{drag:g,...o,dragSnapToOrigin:!0,style:{...t,x:h.x,y:h.y,zIndex:m},layout:s,onDrag:(C,D)=>{const{velocity:S}=D;S[g]&&x(n,h[g].get(),S[g]),i&&i(C,D)},onLayoutMeasure:C=>b(n,C),ref:a,ignoreStrict:!0,children:e})}const $ie=A.forwardRef(bie);var wp={exports:{}},xie=wp.exports,VT;function wie(){return VT||(VT=1,function(e,t){(function(n,r){e.exports=r()})(xie,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 o=i.prototype,a=o.format;s.en.formats=n,o.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var d=this.$locale().formats,h=function(m,g){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(b,x,C){var D=C&&C.toUpperCase();return x||g[C]||n[C]||g[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,w,T){return w||T.slice(1)})})}(l,d===void 0?{}:d);return a.call(this,h)}}})}(wp)),wp.exports}var Cie=wie();const Sie=ts(Cie),NT=(e,t,n)=>{if(e&&"reportValidity"in e){const r=st(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},wO=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?NT(r.ref,n,e):r&&r.refs&&r.refs.forEach(i=>NT(i,n,e))}},Eie=(e,t)=>{t.shouldUseNativeValidation&&wO(e,t);const n={};for(const r in e){const i=st(t.fields,r),s=Object.assign(e[r]||{},{ref:i&&i.ref});if(Die(t.names||Object.keys(e),r)){const o=Object.assign({},st(n,r));tn(o,"root",s),tn(n,r,o)}else tn(n,r,s)}return n},Die=(e,t)=>{const n=jT(t);return e.some(r=>jT(r).match(`^${n}\\.\\d+`))};function jT(e){return e.replace(/\]|\[/g,"")}function Aie(e,t,n){return n===void 0&&(n={}),function(r,i,s){try{return Promise.resolve(function(o,a){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&&wO({},s),{values:n.raw?Object.assign({},r):d,errors:{}}}))}catch(d){return a(d)}return l&&l.then?l.then(void 0,a):l}(0,function(o){if(!o.inner)throw o;return{values:{},errors:Eie((a=o,l=!s.shouldUseNativeValidation&&s.criteriaMode==="all",(a.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]=c5(h.path,l,d,h.type,g?[].concat(g,h.message):h.message)}return d},{})),s)};var a,l}))}catch(o){return Promise.reject(o)}}}var Of={exports:{}},Tie=Of.exports,KT;function Pie(){return KT||(KT=1,function(e,t){(function(n,r){r(t,A)})(Tie,function(n,r){function i(H){return H&&typeof H=="object"&&"default"in H?H:{default:H}}var s=i(r),o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Hi<"u"?Hi:typeof self<"u"?self:{},a={exports:{}};(function(H,ie){typeof navigator<"u"&&function(M,B){H.exports=B()}(o,function(){var M="http://www.w3.org/2000/svg",B="",L=!1,me=-999999,U=function(p){L=!!p},te=function(){return L},xe=function(p){B=p},Ee=function(){return B};function Oe(c){return document.createElement(c)}function _e(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 He=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}}(),De=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,Ae=null,Ie="",et=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),xt=Math.pow,fn=Math.sqrt,bt=Math.floor,Rt=Math.min,ci=150,gt=Math.PI/180,Tt=.5519;function Ft(c,p,v,$){this.type=c,this.currentTime=p,this.totalTime=v,this.direction=$<0?-1:1}function we(c,p){this.type=c,this.direction=p<0?-1:1}function Pe(c,p,v,$){this.type=c,this.currentLoop=v,this.totalLoops=p,this.direction=$<0?-1:1}function Be(c,p,v){this.type=c,this.firstFrame=p,this.totalFrames=v}function rt(c,p){this.type=c,this.target=p}function it(c,p){this.type="renderFrameError",this.nativeError=c,this.currentTime=p}function Xe(c){this.type="configError",this.nativeError=c}var tt=function(){var c=0;return function(){return c+=1,Ie+"__lottie_element_"+c}}();function _t(c,p,v){var $,P,_,z,he,Q,ve,Ce;switch(z=Math.floor(c*6),he=c*6-z,Q=v*(1-p),ve=v*(1-he*p),Ce=v*(1-(1-he)*p),z%6){case 0:$=v,P=Ce,_=Q;break;case 1:$=ve,P=v,_=Q;break;case 2:$=Q,P=v,_=Ce;break;case 3:$=Q,P=ve,_=v;break;case 4:$=Ce,P=Q,_=v;break;case 5:$=v,P=Q,_=ve;break}return[$,P,_]}function en(c,p,v){var $=Math.max(c,p,v),P=Math.min(c,p,v),_=$-P,z,he=$===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,he,Q]}function kt(c,p){var v=en(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),_t(v[0],v[1],v[2])}function Mt(c,p){var v=en(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),_t(v[0],v[1],v[2])}function Vt(c,p){var v=en(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),_t(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 Ht=function(p){We=!!p},gr=function(){return We},Zr=function(p){Ae=p},fi=function(){return Ae},Or=function(p){ci=p},_s=function(){return ci},ka=function(p){Ie=p};function $t(c){return document.createElementNS(M,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 co=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 he(){$||($=z(function(ee){function Y(){function le(Le,ye){var ue,J,pe=Le.length,Ne,Fe,ct,Pt;for(J=0;J<pe;J+=1)if(ue=Le[J],"ks"in ue&&!ue.completed){if(ue.completed=!0,ue.hasMask){var Ct=ue.masksProperties;for(Fe=Ct.length,Ne=0;Ne<Fe;Ne+=1)if(Ct[Ne].pt.k.i)G(Ct[Ne].pt.k);else for(Pt=Ct[Ne].pt.k.length,ct=0;ct<Pt;ct+=1)Ct[Ne].pt.k[ct].s&&G(Ct[Ne].pt.k[ct].s[0]),Ct[Ne].pt.k[ct].e&&G(Ct[Ne].pt.k[ct].e[0])}ue.ty===0?(ue.layers=V(ue.refId,ye),le(ue.layers,ye)):ue.ty===4?j(ue.shapes):ue.ty===5&&ut(ue)}}function W(Le,ye){if(Le){var ue=0,J=Le.length;for(ue=0;ue<J;ue+=1)Le[ue].t===1&&(Le[ue].data.layers=V(Le[ue].data.refId,ye),le(Le[ue].data.layers,ye))}}function Z(Le,ye){for(var ue=0,J=ye.length;ue<J;){if(ye[ue].id===Le)return ye[ue];ue+=1}return null}function V(Le,ye){var ue=Z(Le,ye);return ue?ue.layers.__used?JSON.parse(JSON.stringify(ue.layers)):(ue.layers.__used=!0,ue.layers):null}function j(Le){var ye,ue=Le.length,J,pe;for(ye=ue-1;ye>=0;ye-=1)if(Le[ye].ty==="sh")if(Le[ye].ks.k.i)G(Le[ye].ks.k);else for(pe=Le[ye].ks.k.length,J=0;J<pe;J+=1)Le[ye].ks.k[J].s&&G(Le[ye].ks.k[J].s[0]),Le[ye].ks.k[J].e&&G(Le[ye].ks.k[J].e[0]);else Le[ye].ty==="gr"&&j(Le[ye].it)}function G(Le){var ye,ue=Le.i.length;for(ye=0;ye<ue;ye+=1)Le.i[ye][0]+=Le.v[ye][0],Le.i[ye][1]+=Le.v[ye][1],Le.o[ye][0]+=Le.v[ye][0],Le.o[ye][1]+=Le.v[ye][1]}function ne(Le,ye){var ue=ye?ye.split("."):[100,100,100];return Le[0]>ue[0]?!0:ue[0]>Le[0]?!1:Le[1]>ue[1]?!0:ue[1]>Le[1]?!1:Le[2]>ue[2]?!0:ue[2]>Le[2]?!1:null}var ae=function(){var Le=[4,4,14];function ye(J){var pe=J.t.d;J.t.d={k:[{s:pe,t:0}]}}function ue(J){var pe,Ne=J.length;for(pe=0;pe<Ne;pe+=1)J[pe].ty===5&&ye(J[pe])}return function(J){if(ne(Le,J.v)&&(ue(J.layers),J.assets)){var pe,Ne=J.assets.length;for(pe=0;pe<Ne;pe+=1)J.assets[pe].layers&&ue(J.assets[pe].layers)}}}(),de=function(){var Le=[4,7,99];return function(ye){if(ye.chars&&!ne(Le,ye.v)){var ue,J=ye.chars.length;for(ue=0;ue<J;ue+=1){var pe=ye.chars[ue];pe.data&&pe.data.shapes&&(j(pe.data.shapes),pe.data.ip=0,pe.data.op=99999,pe.data.st=0,pe.data.sr=1,pe.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}},ye.chars[ue].t||(pe.data.shapes.push({ty:"no"}),pe.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"})))}}}}(),ke=function(){var Le=[5,7,15];function ye(J){var pe=J.t.p;typeof pe.a=="number"&&(pe.a={a:0,k:pe.a}),typeof pe.p=="number"&&(pe.p={a:0,k:pe.p}),typeof pe.r=="number"&&(pe.r={a:0,k:pe.r})}function ue(J){var pe,Ne=J.length;for(pe=0;pe<Ne;pe+=1)J[pe].ty===5&&ye(J[pe])}return function(J){if(ne(Le,J.v)&&(ue(J.layers),J.assets)){var pe,Ne=J.assets.length;for(pe=0;pe<Ne;pe+=1)J.assets[pe].layers&&ue(J.assets[pe].layers)}}}(),Qe=function(){var Le=[4,1,9];function ye(J){var pe,Ne=J.length,Fe,ct;for(pe=0;pe<Ne;pe+=1)if(J[pe].ty==="gr")ye(J[pe].it);else if(J[pe].ty==="fl"||J[pe].ty==="st")if(J[pe].c.k&&J[pe].c.k[0].i)for(ct=J[pe].c.k.length,Fe=0;Fe<ct;Fe+=1)J[pe].c.k[Fe].s&&(J[pe].c.k[Fe].s[0]/=255,J[pe].c.k[Fe].s[1]/=255,J[pe].c.k[Fe].s[2]/=255,J[pe].c.k[Fe].s[3]/=255),J[pe].c.k[Fe].e&&(J[pe].c.k[Fe].e[0]/=255,J[pe].c.k[Fe].e[1]/=255,J[pe].c.k[Fe].e[2]/=255,J[pe].c.k[Fe].e[3]/=255);else J[pe].c.k[0]/=255,J[pe].c.k[1]/=255,J[pe].c.k[2]/=255,J[pe].c.k[3]/=255}function ue(J){var pe,Ne=J.length;for(pe=0;pe<Ne;pe+=1)J[pe].ty===4&&ye(J[pe].shapes)}return function(J){if(ne(Le,J.v)&&(ue(J.layers),J.assets)){var pe,Ne=J.assets.length;for(pe=0;pe<Ne;pe+=1)J.assets[pe].layers&&ue(J.assets[pe].layers)}}}(),Je=function(){var Le=[4,4,18];function ye(J){var pe,Ne=J.length,Fe,ct;for(pe=Ne-1;pe>=0;pe-=1)if(J[pe].ty==="sh")if(J[pe].ks.k.i)J[pe].ks.k.c=J[pe].closed;else for(ct=J[pe].ks.k.length,Fe=0;Fe<ct;Fe+=1)J[pe].ks.k[Fe].s&&(J[pe].ks.k[Fe].s[0].c=J[pe].closed),J[pe].ks.k[Fe].e&&(J[pe].ks.k[Fe].e[0].c=J[pe].closed);else J[pe].ty==="gr"&&ye(J[pe].it)}function ue(J){var pe,Ne,Fe=J.length,ct,Pt,Ct,wn;for(Ne=0;Ne<Fe;Ne+=1){if(pe=J[Ne],pe.hasMask){var Gt=pe.masksProperties;for(Pt=Gt.length,ct=0;ct<Pt;ct+=1)if(Gt[ct].pt.k.i)Gt[ct].pt.k.c=Gt[ct].cl;else for(wn=Gt[ct].pt.k.length,Ct=0;Ct<wn;Ct+=1)Gt[ct].pt.k[Ct].s&&(Gt[ct].pt.k[Ct].s[0].c=Gt[ct].cl),Gt[ct].pt.k[Ct].e&&(Gt[ct].pt.k[Ct].e[0].c=Gt[ct].cl)}pe.ty===4&&ye(pe.shapes)}}return function(J){if(ne(Le,J.v)&&(ue(J.layers),J.assets)){var pe,Ne=J.assets.length;for(pe=0;pe<Ne;pe+=1)J.assets[pe].layers&&ue(J.assets[pe].layers)}}}();function Ve(Le){Le.__complete||(Qe(Le),ae(Le),de(Le),ke(Le),Je(Le),le(Le.layers,Le.assets),W(Le.chars,Le.assets),Le.__complete=!0)}function ut(Le){Le.t.a.length===0&&"m"in Le.t.p}var ft={};return ft.completeData=Ve,ft.checkColors=Qe,ft.checkChars=de,ft.checkPathProperties=ke,ft.checkShapes=Je,ft.completeLayers=le,ft}if(_.dataManager||(_.dataManager=Y()),_.assetLoader||(_.assetLoader=function(){function le(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 W(Z,V,j,G){var ne,ae=new XMLHttpRequest;try{ae.responseType="json"}catch{}ae.onreadystatechange=function(){if(ae.readyState===4)if(ae.status===200)ne=le(ae),j(ne);else try{ne=le(ae),j(ne)}catch(de){G&&G(de)}};try{ae.open(["G","E","T"].join(""),Z,!0)}catch{ae.open(["G","E","T"].join(""),V+"/"+Z,!0)}ae.send()}return{load:W}}()),ee.data.type==="loadAnimation")_.assetLoader.load(ee.data.path,ee.data.fullPath,function(le){_.dataManager.completeData(le),_.postMessage({id:ee.data.id,payload:le,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(le){_.postMessage({id:ee.data.id,payload:le,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 ve(F,ee,Y){he();var fe=Q(ee,Y);$.postMessage({type:"loadAnimation",path:F,fullPath:window.location.origin+window.location.pathname,id:fe})}function Ce(F,ee,Y){he();var fe=Q(ee,Y);$.postMessage({type:"loadData",path:F,fullPath:window.location.origin+window.location.pathname,id:fe})}function Re(F,ee,Y){he();var fe=Q(ee,Y);$.postMessage({type:"complete",animation:F,id:fe})}return{loadAnimation:ve,loadData:Ce,completeAnimation:Re}}(),kc=function(){var c=function(){var W=Oe("canvas");W.width=1,W.height=1;var Z=W.getContext("2d");return Z.fillStyle="rgba(0,0,0,0)",Z.fillRect(0,0,1,1),W}();function p(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function v(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function $(W,Z,V){var j="";if(W.e)j=W.p;else if(Z){var G=W.p;G.indexOf("images/")!==-1&&(G=G.split("/")[1]),j=Z+G}else j=V,j+=W.u?W.u:"",j+=W.p;return j}function P(W){var Z=0,V=setInterval((function(){var j=W.getBBox();(j.width||Z>500)&&(this._imageLoaded(),clearInterval(V)),Z+=1}).bind(this),50)}function _(W){var Z=$(W,this.assetsPath,this.path),V=$t("image");et?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:W};return j}function z(W){var Z=$(W,this.assetsPath,this.path),V=Oe("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:W};return j}function he(W){var Z={assetData:W},V=$(W,this.assetsPath,this.path);return co.loadData(V,(function(j){Z.img=j,this._footageLoaded()}).bind(this),(function(){Z.img={},this._footageLoaded()}).bind(this)),Z}function Q(W,Z){this.imagesLoadedCb=Z;var V,j=W.length;for(V=0;V<j;V+=1)W[V].layers||(!W[V].t||W[V].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(W[V]))):W[V].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(W[V]))))}function ve(W){this.path=W||""}function Ce(W){this.assetsPath=W||""}function Re(W){for(var Z=0,V=this.images.length;Z<V;){if(this.images[Z].assetData===W)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(W,Z){W==="svg"?(this._elementHelper=Z,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function le(){this._imageLoaded=p.bind(this),this._footageLoaded=v.bind(this),this.testImageLoaded=P.bind(this),this.createFootageData=he.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return le.prototype={loadAssets:Q,setAssetsPath:Ce,setPath:ve,loadedImages:ee,loadedFootages:Y,destroy:F,getAsset:Re,createImgData:z,createImageData:_,imageLoaded:p,footageLoaded:v,setCacheType:fe},le}();function qu(){}qu.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 Oc=function(){function c(p){for(var v=p.split(`\r
129
- `),$={},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}}(),Wu=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}}(),Oa={},Hu=function(p,v){Oa[p]=v};function ns(c){return Oa[c]}function rs(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?rs=function(v){return typeof v}:rs=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},rs(c)}var yt=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=tt(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=gr(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=Wu(),this.imagePreloader=new kc,this.audioController=He(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new Ft("drawnFrame",0,0,0)};_e([qu],yt),yt.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=ns(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")),co.loadAnimation(c.path,this.configAnimation,this.onSetupError))},yt.prototype.onSetupError=function(){this.trigger("data_failed")},yt.prototype.setupAnimation=function(c){co.completeAnimation(c,this.configAnimation)},yt.prototype.setData=function(c,p){p&&rs(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)},yt.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,co.completeAnimation(this.animationData,this.onSegmentComplete)},yt.prototype.onSegmentComplete=function(c){this.animationData=c;var p=fi();p&&p.initExpressions(this),this.loadNextSegment()},yt.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,co.loadData(v,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},yt.prototype.loadSegments=function(){var c=this.animationData.segments;c||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},yt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},yt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},yt.prototype.configAnimation=function(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=Oc(c.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(p){this.triggerConfigError(p)}},yt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},yt.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var c=fi();c&&c.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},yt.prototype.resize=function(c,p){var v=typeof c=="number"?c:void 0,$=typeof p=="number"?p:void 0;this.renderer.updateContainerSize(v,$)},yt.prototype.setSubframe=function(c){this.isSubframeEnabled=!!c},yt.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},yt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(c){this.triggerRenderFrameError(c)}},yt.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")))},yt.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())},yt.prototype.togglePause=function(c){c&&this.name!==c||(this.isPaused===!0?this.play():this.pause())},yt.prototype.stop=function(c){c&&this.name!==c||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},yt.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},yt.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()}},yt.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()}},yt.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"))}},yt.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")},yt.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)},yt.prototype.playSegments=function(c,p){if(p&&(this.segments.length=0),rs(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()},yt.prototype.resetSegments=function(c){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),c&&this.checkSegments(0)},yt.prototype.checkSegments=function(c){return this.segments.length?(this.adjustSegment(this.segments.shift(),c),!0):!1},yt.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)},yt.prototype.setCurrentRawFrameValue=function(c){this.currentRawFrame=c,this.gotoFrame()},yt.prototype.setSpeed=function(c){this.playSpeed=c,this.updaFrameModifier()},yt.prototype.setDirection=function(c){this.playDirection=c<0?-1:1,this.updaFrameModifier()},yt.prototype.setLoop=function(c){this.loop=c},yt.prototype.setVolume=function(c,p){p&&this.name!==p||this.audioController.setVolume(c)},yt.prototype.getVolume=function(){return this.audioController.getVolume()},yt.prototype.mute=function(c){c&&this.name!==c||this.audioController.mute()},yt.prototype.unmute=function(c){c&&this.name!==c||this.audioController.unmute()},yt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},yt.prototype.getPath=function(){return this.path},yt.prototype.getAssetsPath=function(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},yt.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},yt.prototype.hide=function(){this.renderer.hide()},yt.prototype.show=function(){this.renderer.show()},yt.prototype.getDuration=function(c){return c?this.totalFrames:this.totalFrames/this.frameRate},yt.prototype.updateDocumentData=function(c,p,v){try{var $=this.renderer.getElementByPath(c);$.updateDocumentData(p,v)}catch{}},yt.prototype.trigger=function(c){if(this._cbs&&this._cbs[c])switch(c){case"enterFrame":this.triggerEvent(c,new Ft(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 Pe(c,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(c,new we(c,this.frameMult));break;case"segmentStart":this.triggerEvent(c,new Be(c,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(c,new rt(c,this));break;default:this.triggerEvent(c)}c==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new Ft(c,this.currentFrame,this.totalFrames,this.frameMult)),c==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new Pe(c,this.loop,this.playCount,this.frameMult)),c==="complete"&&this.onComplete&&this.onComplete.call(this,new we(c,this.frameMult)),c==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new Be(c,this.firstFrame,this.totalFrames)),c==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new rt(c,this))},yt.prototype.triggerRenderFrameError=function(c){var p=new it(c,this.currentFrame);this.triggerEvent("error",p),this.onError&&this.onError.call(this,p)},yt.prototype.triggerConfigError=function(c){var p=new Xe(c,this.currentFrame);this.triggerEvent("error",p),this.onError&&this.onError.call(this,p)};var Dn=function(){var c={},p=[],v=0,$=0,P=0,_=!0,z=!1;function he(ye){for(var ue=0,J=ye.target;ue<$;)p[ue].animation===J&&(p.splice(ue,1),ue-=1,$-=1,J.isPaused||Re()),ue+=1}function Q(ye,ue){if(!ye)return null;for(var J=0;J<$;){if(p[J].elem===ye&&p[J].elem!==null)return p[J].animation;J+=1}var pe=new yt;return F(pe,ye),pe.setData(ye,ue),pe}function ve(){var ye,ue=p.length,J=[];for(ye=0;ye<ue;ye+=1)J.push(p[ye].animation);return J}function Ce(){P+=1,Qe()}function Re(){P-=1}function F(ye,ue){ye.addEventListener("destroy",he),ye.addEventListener("_active",Ce),ye.addEventListener("_idle",Re),p.push({elem:ue,animation:ye}),$+=1}function ee(ye){var ue=new yt;return F(ue,null),ue.setParams(ye),ue}function Y(ye,ue){var J;for(J=0;J<$;J+=1)p[J].animation.setSpeed(ye,ue)}function fe(ye,ue){var J;for(J=0;J<$;J+=1)p[J].animation.setDirection(ye,ue)}function le(ye){var ue;for(ue=0;ue<$;ue+=1)p[ue].animation.play(ye)}function W(ye){var ue=ye-v,J;for(J=0;J<$;J+=1)p[J].animation.advanceTime(ue);v=ye,P&&!z?window.requestAnimationFrame(W):_=!0}function Z(ye){v=ye,window.requestAnimationFrame(W)}function V(ye){var ue;for(ue=0;ue<$;ue+=1)p[ue].animation.pause(ye)}function j(ye,ue,J){var pe;for(pe=0;pe<$;pe+=1)p[pe].animation.goToAndStop(ye,ue,J)}function G(ye){var ue;for(ue=0;ue<$;ue+=1)p[ue].animation.stop(ye)}function ne(ye){var ue;for(ue=0;ue<$;ue+=1)p[ue].animation.togglePause(ye)}function ae(ye){var ue;for(ue=$-1;ue>=0;ue-=1)p[ue].animation.destroy(ye)}function de(ye,ue,J){var pe=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Ne,Fe=pe.length;for(Ne=0;Ne<Fe;Ne+=1)J&&pe[Ne].setAttribute("data-bm-type",J),Q(pe[Ne],ye);if(ue&&Fe===0){J||(J="svg");var ct=document.getElementsByTagName("body")[0];ct.innerText="";var Pt=Oe("div");Pt.style.width="100%",Pt.style.height="100%",Pt.setAttribute("data-bm-type",J),ct.appendChild(Pt),Q(Pt,ye)}}function ke(){var ye;for(ye=0;ye<$;ye+=1)p[ye].animation.resize()}function Qe(){!z&&P&&_&&(window.requestAnimationFrame(Z),_=!1)}function Je(){z=!0}function Ve(){z=!1,Qe()}function ut(ye,ue){var J;for(J=0;J<$;J+=1)p[J].animation.setVolume(ye,ue)}function ft(ye){var ue;for(ue=0;ue<$;ue+=1)p[ue].animation.mute(ye)}function Le(ye){var ue;for(ue=0;ue<$;ue+=1)p[ue].animation.unmute(ye)}return c.registerAnimation=Q,c.loadAnimation=ee,c.setSpeed=Y,c.setDirection=fe,c.play=le,c.pause=V,c.stop=G,c.togglePause=ne,c.searchAnimations=de,c.resize=ke,c.goToAndStop=j,c.destroy=ae,c.freeze=Je,c.unfreeze=Ve,c.setVolume=ut,c.mute=ft,c.unmute=Le,c.getRegisteredAnimations=ve,c}(),fo=function(){var c={};c.getBezierEasing=v;var p={};function v(Z,V,j,G,ne){var ae=ne||("bez_"+Z+"_"+V+"_"+j+"_"+G).replace(/\./g,"p");if(p[ae])return p[ae];var de=new W([Z,V,j,G]);return p[ae]=de,de}var $=4,P=.001,_=1e-7,z=10,he=11,Q=1/(he-1),ve=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 ae,de,ke=0;do de=V+(j-V)/2,ae=ee(de,G,ne)-Z,ae>0?j=de:V=de;while(Math.abs(ae)>_&&++ke<z);return de}function le(Z,V,j,G){for(var ne=0;ne<$;++ne){var ae=Y(V,j,G);if(ae===0)return V;var de=ee(V,j,G)-Z;V-=de/ae}return V}function W(Z){this._p=Z,this._mSampleValues=ve?new Float32Array(he):new Array(he),this._precomputed=!1,this.get=this.get.bind(this)}return W.prototype={get:function(V){var j=this._p[0],G=this._p[1],ne=this._p[2],ae=this._p[3];return this._precomputed||this._precompute(),j===G&&ne===ae?V:V===0?0:V===1?1:ee(this._getTForX(V),G,ae)},_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<he;++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,ae=0,de=1,ke=he-1;de!==ke&&ne[de]<=V;++de)ae+=Q;--de;var Qe=(V-ne[de])/(ne[de+1]-ne[de]),Je=ae+Qe*Q,Ve=Y(Je,j,G);return Ve>=P?le(V,Je,j,G):Ve===0?Je:fe(V,ae,ae+Q,j,G)}},c}(),Gu=function(){function c(p){return p.concat(Ke(p.length))}return{double:c}}(),Cr=function(){return function(c,p,v){var $=0,P=c,_=Ke(P),z={newElement:he,release:Q};function he(){var ve;return $?($-=1,ve=_[$]):ve=p(),ve}function Q(ve){$===P&&(_=Gu.double(_),P*=2),v&&v(ve),_[$]=ve,$+=1}return z}}(),Yu=function(){function c(){return{addedLength:0,percents:De("float32",_s()),lengths:De("float32",_s())}}return Cr(8,c)}(),Zu=function(){function c(){return{lengths:[],totalLength:0}}function p(v){var $,P=v.lengths.length;for($=0;$<P;$+=1)Yu.release(v.lengths[$]);v.lengths.length=0}return Cr(8,c,p)}();function Ic(){var c=Math;function p(F,ee,Y,fe,le,W){var Z=F*fe+ee*le+Y*W-le*fe-W*F-Y*ee;return Z>-.001&&Z<.001}function v(F,ee,Y,fe,le,W,Z,V,j){if(Y===0&&W===0&&j===0)return p(F,ee,fe,le,Z,V);var G=c.sqrt(c.pow(fe-F,2)+c.pow(le-ee,2)+c.pow(W-Y,2)),ne=c.sqrt(c.pow(Z-F,2)+c.pow(V-ee,2)+c.pow(j-Y,2)),ae=c.sqrt(c.pow(Z-fe,2)+c.pow(V-le,2)+c.pow(j-W,2)),de;return G>ne?G>ae?de=G-ne-ae:de=ae-ne-G:ae>ne?de=ae-ne-G:de=ne-G-ae,de>-1e-4&&de<1e-4}var $=function(){return function(F,ee,Y,fe){var le=_s(),W,Z,V,j,G,ne=0,ae,de=[],ke=[],Qe=Yu.newElement();for(V=Y.length,W=0;W<le;W+=1){for(G=W/(le-1),ae=0,Z=0;Z<V;Z+=1)j=xt(1-G,3)*F[Z]+3*xt(1-G,2)*G*Y[Z]+3*(1-G)*xt(G,2)*fe[Z]+xt(G,3)*ee[Z],de[Z]=j,ke[Z]!==null&&(ae+=xt(de[Z]-ke[Z],2)),ke[Z]=de[Z];ae&&(ae=fn(ae),ne+=ae),Qe.percents[W]=G,Qe.lengths[W]=ne}return Qe.addedLength=ne,Qe}}();function P(F){var ee=Zu.newElement(),Y=F.c,fe=F.v,le=F.o,W=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],le[Z],W[Z+1]),G+=j[Z].addedLength;return Y&&V&&(j[Z]=$(fe[Z],fe[0],le[Z],W[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 he=function(){var F={};return function(ee,Y,fe,le){var W=(ee[0]+"_"+ee[1]+"_"+Y[0]+"_"+Y[1]+"_"+fe[0]+"_"+fe[1]+"_"+le[0]+"_"+le[1]).replace(/\./g,"p");if(!F[W]){var Z=_s(),V,j,G,ne,ae,de=0,ke,Qe,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]+le[0],Y[1]+le[1])&&(Z=2);var Ve=new _(Z);for(G=fe.length,V=0;V<Z;V+=1){for(Qe=Ke(G),ae=V/(Z-1),ke=0,j=0;j<G;j+=1)ne=xt(1-ae,3)*ee[j]+3*xt(1-ae,2)*ae*(ee[j]+fe[j])+3*(1-ae)*xt(ae,2)*(Y[j]+le[j])+xt(ae,3)*Y[j],Qe[j]=ne,Je!==null&&(ke+=xt(Qe[j]-Je[j],2));ke=fn(ke),de+=ke,Ve.points[V]=new z(ke,Qe),Je=Qe}Ve.segmentLength=de,F[W]=Ve}return F[W]}}();function Q(F,ee){var Y=ee.percents,fe=ee.lengths,le=Y.length,W=bt((le-1)*F),Z=F*ee.addedLength,V=0;if(W===le-1||W===0||Z===fe[W])return Y[W];for(var j=fe[W]>Z?-1:1,G=!0;G;)if(fe[W]<=Z&&fe[W+1]>Z?(V=(Z-fe[W])/(fe[W+1]-fe[W]),G=!1):W+=j,W<0||W>=le-1){if(W===le-1)return Y[W];G=!1}return Y[W]+(Y[W+1]-Y[W])*V}function ve(F,ee,Y,fe,le,W){var Z=Q(le,W),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=De("float32",8);function Re(F,ee,Y,fe,le,W,Z){le<0?le=0:le>1&&(le=1);var V=Q(le,Z);W=W>1?1:W;var j=Q(W,Z),G,ne=F.length,ae=1-V,de=1-j,ke=ae*ae*ae,Qe=V*ae*ae*3,Je=V*V*ae*3,Ve=V*V*V,ut=ae*ae*de,ft=V*ae*de+ae*V*de+ae*ae*j,Le=V*V*de+ae*V*j+V*ae*j,ye=V*V*j,ue=ae*de*de,J=V*de*de+ae*j*de+ae*de*j,pe=V*j*de+ae*j*j+V*de*j,Ne=V*j*j,Fe=de*de*de,ct=j*de*de+de*j*de+de*de*j,Pt=j*j*de+de*j*j+j*de*j,Ct=j*j*j;for(G=0;G<ne;G+=1)Ce[G*4]=c.round((ke*F[G]+Qe*Y[G]+Je*fe[G]+Ve*ee[G])*1e3)/1e3,Ce[G*4+1]=c.round((ut*F[G]+ft*Y[G]+Le*fe[G]+ye*ee[G])*1e3)/1e3,Ce[G*4+2]=c.round((ue*F[G]+J*Y[G]+pe*fe[G]+Ne*ee[G])*1e3)/1e3,Ce[G*4+3]=c.round((Fe*F[G]+ct*Y[G]+Pt*fe[G]+Ct*ee[G])*1e3)/1e3;return Ce}return{getSegmentsLength:P,getNewSegment:Re,getPointInSegment:ve,buildBezierData:he,pointOnLine2D:p,pointOnLine3D:v}}var Xr=Ic(),ot=function(){var c=me,p=Math.abs;function v(le,W){var Z=this.offsetTime,V;this.propType==="multidimensional"&&(V=De("float32",this.pv.length));for(var j=W.lastIndex,G=j,ne=this.keyframes.length-1,ae=!0,de,ke,Qe;ae;){if(de=this.keyframes[G],ke=this.keyframes[G+1],G===ne-1&&le>=ke.t-Z){de.h&&(de=ke),j=0;break}if(ke.t-Z>le){j=G;break}G<ne-1?G+=1:(j=0,ae=!1)}Qe=this.keyframesMetadata[G]||{};var Je,Ve,ut,ft,Le,ye,ue=ke.t-Z,J=de.t-Z,pe;if(de.to){Qe.bezierData||(Qe.bezierData=Xr.buildBezierData(de.s,ke.s||de.e,de.to,de.ti));var Ne=Qe.bezierData;if(le>=ue||le<J){var Fe=le>=ue?Ne.points.length-1:0;for(Ve=Ne.points[Fe].point.length,Je=0;Je<Ve;Je+=1)V[Je]=Ne.points[Fe].point[Je]}else{Qe.__fnct?ye=Qe.__fnct:(ye=fo.getBezierEasing(de.o.x,de.o.y,de.i.x,de.i.y,de.n).get,Qe.__fnct=ye),ut=ye((le-J)/(ue-J));var ct=Ne.segmentLength*ut,Pt,Ct=W.lastFrame<le&&W._lastKeyframeIndex===G?W._lastAddedLength:0;for(Le=W.lastFrame<le&&W._lastKeyframeIndex===G?W._lastPoint:0,ae=!0,ft=Ne.points.length;ae;){if(Ct+=Ne.points[Le].partialLength,ct===0||ut===0||Le===Ne.points.length-1){for(Ve=Ne.points[Le].point.length,Je=0;Je<Ve;Je+=1)V[Je]=Ne.points[Le].point[Je];break}else if(ct>=Ct&&ct<Ct+Ne.points[Le+1].partialLength){for(Pt=(ct-Ct)/Ne.points[Le+1].partialLength,Ve=Ne.points[Le].point.length,Je=0;Je<Ve;Je+=1)V[Je]=Ne.points[Le].point[Je]+(Ne.points[Le+1].point[Je]-Ne.points[Le].point[Je])*Pt;break}Le<ft-1?Le+=1:ae=!1}W._lastPoint=Le,W._lastAddedLength=Ct-Ne.points[Le].partialLength,W._lastKeyframeIndex=G}}else{var wn,Gt,dr,Qn,jn;if(ne=de.s.length,pe=ke.s||de.e,this.sh&&de.h!==1)if(le>=ue)V[0]=pe[0],V[1]=pe[1],V[2]=pe[2];else if(le<=J)V[0]=de.s[0],V[1]=de.s[1],V[2]=de.s[2];else{var zn=_(de.s),qn=_(pe),br=(le-J)/(ue-J);P(V,$(zn,qn,br))}else for(G=0;G<ne;G+=1)de.h!==1&&(le>=ue?ut=1:le<J?ut=0:(de.o.x.constructor===Array?(Qe.__fnct||(Qe.__fnct=[]),Qe.__fnct[G]?ye=Qe.__fnct[G]:(wn=de.o.x[G]===void 0?de.o.x[0]:de.o.x[G],Gt=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],Qn=de.i.y[G]===void 0?de.i.y[0]:de.i.y[G],ye=fo.getBezierEasing(wn,Gt,dr,Qn).get,Qe.__fnct[G]=ye)):Qe.__fnct?ye=Qe.__fnct:(wn=de.o.x,Gt=de.o.y,dr=de.i.x,Qn=de.i.y,ye=fo.getBezierEasing(wn,Gt,dr,Qn).get,de.keyframeMetadata=ye),ut=ye((le-J)/(ue-J)))),pe=ke.s||de.e,jn=de.h===1?de.s[G]:de.s[G]+(pe[G]-de.s[G])*ut,this.propType==="multidimensional"?V[G]=jn:V=jn}return W.lastIndex=j,V}function $(le,W,Z){var V=[],j=le[0],G=le[1],ne=le[2],ae=le[3],de=W[0],ke=W[1],Qe=W[2],Je=W[3],Ve,ut,ft,Le,ye;return ut=j*de+G*ke+ne*Qe+ae*Je,ut<0&&(ut=-ut,de=-de,ke=-ke,Qe=-Qe,Je=-Je),1-ut>1e-6?(Ve=Math.acos(ut),ft=Math.sin(Ve),Le=Math.sin((1-Z)*Ve)/ft,ye=Math.sin(Z*Ve)/ft):(Le=1-Z,ye=Z),V[0]=Le*j+ye*de,V[1]=Le*G+ye*ke,V[2]=Le*ne+ye*Qe,V[3]=Le*ae+ye*Je,V}function P(le,W){var Z=W[0],V=W[1],j=W[2],G=W[3],ne=Math.atan2(2*V*G-2*Z*j,1-2*V*V-2*j*j),ae=Math.asin(2*Z*V+2*j*G),de=Math.atan2(2*Z*G-2*V*j,1-2*Z*Z-2*j*j);le[0]=ne/gt,le[1]=ae/gt,le[2]=de/gt}function _(le){var W=le[0]*gt,Z=le[1]*gt,V=le[2]*gt,j=Math.cos(W/2),G=Math.cos(Z/2),ne=Math.cos(V/2),ae=Math.sin(W/2),de=Math.sin(Z/2),ke=Math.sin(V/2),Qe=j*G*ne-ae*de*ke,Je=ae*de*ne+j*G*ke,Ve=ae*G*ne+j*de*ke,ut=j*de*ne-ae*G*ke;return[Je,Ve,ut,Qe]}function z(){var le=this.comp.renderedFrame-this.offsetTime,W=this.keyframes[0].t-this.offsetTime,Z=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(le===this._caching.lastFrame||this._caching.lastFrame!==c&&(this._caching.lastFrame>=Z&&le>=Z||this._caching.lastFrame<W&&le<W))){this._caching.lastFrame>=le&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var V=this.interpolateValue(le,this._caching);this.pv=V}return this._caching.lastFrame=le,this.pv}function he(le){var W;if(this.propType==="unidimensional")W=le*this.mult,p(this.v-W)>1e-5&&(this.v=W,this._mdf=!0);else for(var Z=0,V=this.v.length;Z<V;)W=le[Z]*this.mult,p(this.v[Z]-W)>1e-5&&(this.v[Z]=W,this._mdf=!0),Z+=1}function Q(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var le,W=this.effectsSequence.length,Z=this.kf?this.pv:this.data.k;for(le=0;le<W;le+=1)Z=this.effectsSequence[le](Z);this.setVValue(Z),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function ve(le){this.effectsSequence.push(le),this.container.addDynamicProperty(this)}function Ce(le,W,Z,V){this.propType="unidimensional",this.mult=Z||1,this.data=W,this.v=Z?W.k*Z:W.k,this.pv=W.k,this._mdf=!1,this.elem=le,this.container=V,this.comp=le.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=Q,this.setVValue=he,this.addEffect=ve}function Re(le,W,Z,V){this.propType="multidimensional",this.mult=Z||1,this.data=W,this._mdf=!1,this.elem=le,this.container=V,this.comp=le.comp,this.k=!1,this.kf=!1,this.frameId=-1;var j,G=W.k.length;for(this.v=De("float32",G),this.pv=De("float32",G),this.vel=De("float32",G),j=0;j<G;j+=1)this.v[j]=W.k[j]*this.mult,this.pv[j]=W.k[j];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=Q,this.setVValue=he,this.addEffect=ve}function F(le,W,Z,V){this.propType="unidimensional",this.keyframes=W.k,this.keyframesMetadata=[],this.offsetTime=le.data.st,this.frameId=-1,this._caching={lastFrame:c,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=W,this.mult=Z||1,this.elem=le,this.container=V,this.comp=le.comp,this.v=c,this.pv=c,this._isFirstFrame=!0,this.getValue=Q,this.setVValue=he,this.interpolateValue=v,this.effectsSequence=[z.bind(this)],this.addEffect=ve}function ee(le,W,Z,V){this.propType="multidimensional";var j,G=W.k.length,ne,ae,de,ke;for(j=0;j<G-1;j+=1)W.k[j].to&&W.k[j].s&&W.k[j+1]&&W.k[j+1].s&&(ne=W.k[j].s,ae=W.k[j+1].s,de=W.k[j].to,ke=W.k[j].ti,(ne.length===2&&!(ne[0]===ae[0]&&ne[1]===ae[1])&&Xr.pointOnLine2D(ne[0],ne[1],ae[0],ae[1],ne[0]+de[0],ne[1]+de[1])&&Xr.pointOnLine2D(ne[0],ne[1],ae[0],ae[1],ae[0]+ke[0],ae[1]+ke[1])||ne.length===3&&!(ne[0]===ae[0]&&ne[1]===ae[1]&&ne[2]===ae[2])&&Xr.pointOnLine3D(ne[0],ne[1],ne[2],ae[0],ae[1],ae[2],ne[0]+de[0],ne[1]+de[1],ne[2]+de[2])&&Xr.pointOnLine3D(ne[0],ne[1],ne[2],ae[0],ae[1],ae[2],ae[0]+ke[0],ae[1]+ke[1],ae[2]+ke[2]))&&(W.k[j].to=null,W.k[j].ti=null),ne[0]===ae[0]&&ne[1]===ae[1]&&de[0]===0&&de[1]===0&&ke[0]===0&&ke[1]===0&&(ne.length===2||ne[2]===ae[2]&&de[2]===0&&ke[2]===0)&&(W.k[j].to=null,W.k[j].ti=null));this.effectsSequence=[z.bind(this)],this.data=W,this.keyframes=W.k,this.keyframesMetadata=[],this.offsetTime=le.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=Z||1,this.elem=le,this.container=V,this.comp=le.comp,this.getValue=Q,this.setVValue=he,this.interpolateValue=v,this.frameId=-1;var Qe=W.k[0].s.length;for(this.v=De("float32",Qe),this.pv=De("float32",Qe),j=0;j<Qe;j+=1)this.v[j]=c,this.pv[j]=c;this._caching={lastFrame:c,lastIndex:0,value:De("float32",Qe)},this.addEffect=ve}function Y(le,W,Z,V,j){var G;if(!W.k.length)G=new Ce(le,W,V,j);else if(typeof W.k[0]=="number")G=new Re(le,W,V,j);else switch(Z){case 0:G=new F(le,W,V,j);break;case 1:G=new ee(le,W,V,j);break}return G.effectsSequence.length&&j.addDynamicProperty(G),G}var fe={getProp:Y};return fe}();function pn(){}pn.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 is=function(){function c(){return De("float32",2)}return Cr(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]=is.newElement(),this.o[v]=is.newElement(),this.i[v]=is.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)&&(_[$]=is.newElement()),_[$][0]=c,_[$][1]=p},hi.prototype.setTripleAt=function(c,p,v,$,P,_,z,he){this.setXYAt(c,p,"v",z,he),this.setXYAt(v,$,"o",z,he),this.setXYAt(P,_,"i",z,he)},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,he;for(he=P;he<z;he+=1)c.setTripleAt(p[_][0],p[_][1],$[_][0],$[_][1],v[_][0],v[_][1],he,!1),_-=1;return c},hi.prototype.length=function(){return this._length};var Jn=function(){function c(){return new hi}function p(P){var _=P._length,z;for(z=0;z<_;z+=1)is.release(P.v[z]),is.release(P.i[z]),is.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,he=P._length===void 0?P.v.length:P._length;for(_.setLength(he),_.c=P.c,z=0;z<he;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 $=Cr(4,c,p);return $.clone=v,$}();function Ia(){this._length=0,this._maxLength=4,this.shapes=Ke(this._maxLength)}Ia.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},Ia.prototype.releaseShapes=function(){var c;for(c=0;c<this._length;c+=1)Jn.release(this.shapes[c]);this._length=0};var Ms=function(){var c={newShapeCollection:P,release:_},p=0,v=4,$=Ke(v);function P(){var z;return p?(p-=1,z=$[p]):z=new Ia,z}function _(z){var he,Q=z._length;for(he=0;he<Q;he+=1)Jn.release(z.shapes[he]);z._length=0,p===v&&($=Gu.double($),v*=2),$[p]=z,p+=1}return c}(),pi=function(){var c=-999999;function p(W,Z,V){var j=V.lastIndex,G,ne,ae,de,ke,Qe,Je,Ve,ut,ft=this.keyframes;if(W<ft[0].t-this.offsetTime)G=ft[0].s[0],ae=!0,j=0;else if(W>=ft[ft.length-1].t-this.offsetTime)G=ft[ft.length-1].s?ft[ft.length-1].s[0]:ft[ft.length-2].e[0],ae=!0;else{for(var Le=j,ye=ft.length-1,ue=!0,J,pe,Ne;ue&&(J=ft[Le],pe=ft[Le+1],!(pe.t-this.offsetTime>W));)Le<ye-1?Le+=1:ue=!1;if(Ne=this.keyframesMetadata[Le]||{},ae=J.h===1,j=Le,!ae){if(W>=pe.t-this.offsetTime)Ve=1;else if(W<J.t-this.offsetTime)Ve=0;else{var Fe;Ne.__fnct?Fe=Ne.__fnct:(Fe=fo.getBezierEasing(J.o.x,J.o.y,J.i.x,J.i.y).get,Ne.__fnct=Fe),Ve=Fe((W-(J.t-this.offsetTime))/(pe.t-this.offsetTime-(J.t-this.offsetTime)))}ne=pe.s?pe.s[0]:J.e[0]}G=J.s[0]}for(Qe=Z._length,Je=G.i[0].length,V.lastIndex=j,de=0;de<Qe;de+=1)for(ke=0;ke<Je;ke+=1)ut=ae?G.i[de][ke]:G.i[de][ke]+(ne.i[de][ke]-G.i[de][ke])*Ve,Z.i[de][ke]=ut,ut=ae?G.o[de][ke]:G.o[de][ke]+(ne.o[de][ke]-G.o[de][ke])*Ve,Z.o[de][ke]=ut,ut=ae?G.v[de][ke]:G.v[de][ke]+(ne.v[de][ke]-G.v[de][ke])*Ve,Z.v[de][ke]=ut}function v(){var W=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&&W<Z||j>V&&W>V)||(this._caching.lastIndex=j<W?this._caching.lastIndex:0,this.interpolateShape(W,this.pv,this._caching)),this._caching.lastFrame=W,this.pv}function $(){this.paths=this.localShapeCollection}function P(W,Z){if(W._length!==Z._length||W.c!==Z.c)return!1;var V,j=W._length;for(V=0;V<j;V+=1)if(W.v[V][0]!==Z.v[V][0]||W.v[V][1]!==Z.v[V][1]||W.o[V][0]!==Z.o[V][0]||W.o[V][1]!==Z.o[V][1]||W.i[V][0]!==Z.i[V][0]||W.i[V][1]!==Z.i[V][1])return!1;return!0}function _(W){P(this.v,W)||(this.v=Jn.clone(W),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 W;this.kf?W=this.pv:this.data.ks?W=this.data.ks.k:W=this.data.pt.k;var Z,V=this.effectsSequence.length;for(Z=0;Z<V;Z+=1)W=this.effectsSequence[Z](W);this.setVValue(W),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function he(W,Z,V){this.propType="shape",this.comp=W.comp,this.container=W,this.elem=W,this.data=Z,this.k=!1,this.kf=!1,this._mdf=!1;var j=V===3?Z.pt.k:Z.ks.k;this.v=Jn.clone(j),this.pv=Jn.clone(this.v),this.localShapeCollection=Ms.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=$,this.effectsSequence=[]}function Q(W){this.effectsSequence.push(W),this.container.addDynamicProperty(this)}he.prototype.interpolateShape=p,he.prototype.getValue=z,he.prototype.setVValue=_,he.prototype.addEffect=Q;function ve(W,Z,V){this.propType="shape",this.comp=W.comp,this.elem=W,this.container=W,this.offsetTime=W.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=Jn.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,j),this.pv=Jn.clone(this.v),this.localShapeCollection=Ms.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)]}ve.prototype.getValue=z,ve.prototype.interpolateShape=p,ve.prototype.setVValue=_,ve.prototype.addEffect=Q;var Ce=function(){var W=Tt;function Z(V,j){this.v=Jn.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Ms.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=ot.getProp(V,j.p,1,0,this),this.s=ot.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,ae=this.s.v[1]/2,de=this.d!==3,ke=this.v;ke.v[0][0]=j,ke.v[0][1]=G-ae,ke.v[1][0]=de?j+ne:j-ne,ke.v[1][1]=G,ke.v[2][0]=j,ke.v[2][1]=G+ae,ke.v[3][0]=de?j-ne:j+ne,ke.v[3][1]=G,ke.i[0][0]=de?j-ne*W:j+ne*W,ke.i[0][1]=G-ae,ke.i[1][0]=de?j+ne:j-ne,ke.i[1][1]=G-ae*W,ke.i[2][0]=de?j+ne*W:j-ne*W,ke.i[2][1]=G+ae,ke.i[3][0]=de?j-ne:j+ne,ke.i[3][1]=G+ae*W,ke.o[0][0]=de?j+ne*W:j-ne*W,ke.o[0][1]=G-ae,ke.o[1][0]=de?j+ne:j-ne,ke.o[1][1]=G+ae*W,ke.o[2][0]=de?j-ne*W:j+ne*W,ke.o[2][1]=G+ae,ke.o[3][0]=de?j-ne:j+ne,ke.o[3][1]=G-ae*W}},_e([pn],Z),Z}(),Re=function(){function W(Z,V){this.v=Jn.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=ot.getProp(Z,V.ir,0,0,this),this.is=ot.getProp(Z,V.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=ot.getProp(Z,V.pt,0,0,this),this.p=ot.getProp(Z,V.p,1,0,this),this.r=ot.getProp(Z,V.r,0,gt,this),this.or=ot.getProp(Z,V.or,0,0,this),this.os=ot.getProp(Z,V.os,0,.01,this),this.localShapeCollection=Ms.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return W.prototype={reset:$,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var V=Math.floor(this.pt.v)*2,j=Math.PI*2/V,G=!0,ne=this.or.v,ae=this.ir.v,de=this.os.v,ke=this.is.v,Qe=2*Math.PI*ne/(V*2),Je=2*Math.PI*ae/(V*2),Ve,ut,ft,Le,ye=-Math.PI/2;ye+=this.r.v;var ue=this.data.d===3?-1:1;for(this.v._length=0,Ve=0;Ve<V;Ve+=1){ut=G?ne:ae,ft=G?de:ke,Le=G?Qe:Je;var J=ut*Math.cos(ye),pe=ut*Math.sin(ye),Ne=J===0&&pe===0?0:pe/Math.sqrt(J*J+pe*pe),Fe=J===0&&pe===0?0:-J/Math.sqrt(J*J+pe*pe);J+=+this.p.v[0],pe+=+this.p.v[1],this.v.setTripleAt(J,pe,J-Ne*Le*ft*ue,pe-Fe*Le*ft*ue,J+Ne*Le*ft*ue,pe+Fe*Le*ft*ue,Ve,!0),G=!G,ye+=j*ue}},convertPolygonToPath:function(){var V=Math.floor(this.pt.v),j=Math.PI*2/V,G=this.or.v,ne=this.os.v,ae=2*Math.PI*G/(V*4),de,ke=-Math.PI*.5,Qe=this.data.d===3?-1:1;for(ke+=this.r.v,this.v._length=0,de=0;de<V;de+=1){var Je=G*Math.cos(ke),Ve=G*Math.sin(ke),ut=Je===0&&Ve===0?0:Ve/Math.sqrt(Je*Je+Ve*Ve),ft=Je===0&&Ve===0?0:-Je/Math.sqrt(Je*Je+Ve*Ve);Je+=+this.p.v[0],Ve+=+this.p.v[1],this.v.setTripleAt(Je,Ve,Je-ut*ae*ne*Qe,Ve-ft*ae*ne*Qe,Je+ut*ae*ne*Qe,Ve+ft*ae*ne*Qe,de,!0),ke+=j*Qe}this.paths.length=0,this.paths[0]=this.v}},_e([pn],W),W}(),F=function(){function W(Z,V){this.v=Jn.newElement(),this.v.c=!0,this.localShapeCollection=Ms.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=ot.getProp(Z,V.p,1,0,this),this.s=ot.getProp(Z,V.s,1,0,this),this.r=ot.getProp(Z,V.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return W.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,ae=Rt(G,ne,this.r.v),de=ae*(1-Tt);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(V+G,j-ne+ae,V+G,j-ne+ae,V+G,j-ne+de,0,!0),this.v.setTripleAt(V+G,j+ne-ae,V+G,j+ne-de,V+G,j+ne-ae,1,!0),ae!==0?(this.v.setTripleAt(V+G-ae,j+ne,V+G-ae,j+ne,V+G-de,j+ne,2,!0),this.v.setTripleAt(V-G+ae,j+ne,V-G+de,j+ne,V-G+ae,j+ne,3,!0),this.v.setTripleAt(V-G,j+ne-ae,V-G,j+ne-ae,V-G,j+ne-de,4,!0),this.v.setTripleAt(V-G,j-ne+ae,V-G,j-ne+de,V-G,j-ne+ae,5,!0),this.v.setTripleAt(V-G+ae,j-ne,V-G+ae,j-ne,V-G+de,j-ne,6,!0),this.v.setTripleAt(V+G-ae,j-ne,V+G-de,j-ne,V+G-ae,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+ae,V+G,j-ne+de,V+G,j-ne+ae,0,!0),ae!==0?(this.v.setTripleAt(V+G-ae,j-ne,V+G-ae,j-ne,V+G-de,j-ne,1,!0),this.v.setTripleAt(V-G+ae,j-ne,V-G+de,j-ne,V-G+ae,j-ne,2,!0),this.v.setTripleAt(V-G,j-ne+ae,V-G,j-ne+ae,V-G,j-ne+de,3,!0),this.v.setTripleAt(V-G,j+ne-ae,V-G,j+ne-de,V-G,j+ne-ae,4,!0),this.v.setTripleAt(V-G+ae,j+ne,V-G+ae,j+ne,V-G+de,j+ne,5,!0),this.v.setTripleAt(V+G-ae,j+ne,V+G-de,j+ne,V+G-ae,j+ne,6,!0),this.v.setTripleAt(V+G,j+ne-ae,V+G,j+ne-ae,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:$},_e([pn],W),W}();function ee(W,Z,V){var j;if(V===3||V===4){var G=V===3?Z.pt:Z.ks,ne=G.k;ne.length?j=new ve(W,Z,V):j=new he(W,Z,V)}else V===5?j=new F(W,Z):V===6?j=new Ce(W,Z):V===7&&(j=new Re(W,Z));return j.k&&W.addDynamicProperty(j),j}function Y(){return he}function fe(){return ve}var le={};return le.getShapeProp=ee,le.getConstructorFunction=Y,le.getKeyframedConstructorFunction=fe,le}();/*!
130
- Transformation Matrix v2.0
131
- (c) Epistemex 2014-2015
132
- www.epistemex.com
133
- By Ken Fyrstenberg
134
- Contributions by leeoniya.
135
- License: MIT, header required.
136
- */var Bn=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),pe=p(ue);return this._t(J,-pe,0,0,pe,J,0,0,0,0,1,0,0,0,0,1)}function z(ue){if(ue===0)return this;var J=c(ue),pe=p(ue);return this._t(1,0,0,0,0,J,-pe,0,0,pe,J,0,0,0,0,1)}function he(ue){if(ue===0)return this;var J=c(ue),pe=p(ue);return this._t(J,0,pe,0,0,1,0,0,-pe,0,J,0,0,0,0,1)}function Q(ue){if(ue===0)return this;var J=c(ue),pe=p(ue);return this._t(J,-pe,0,0,pe,J,0,0,0,0,1,0,0,0,0,1)}function ve(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 pe=c(J),Ne=p(J);return this._t(pe,Ne,0,0,-Ne,pe,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(pe,-Ne,0,0,Ne,pe,0,0,0,0,1,0,0,0,0,1)}function F(ue,J,pe){return!pe&&pe!==0&&(pe=1),ue===1&&J===1&&pe===1?this:this._t(ue,0,0,0,0,J,0,0,0,0,pe,0,0,0,0,1)}function ee(ue,J,pe,Ne,Fe,ct,Pt,Ct,wn,Gt,dr,Qn,jn,zn,qn,br){return this.props[0]=ue,this.props[1]=J,this.props[2]=pe,this.props[3]=Ne,this.props[4]=Fe,this.props[5]=ct,this.props[6]=Pt,this.props[7]=Ct,this.props[8]=wn,this.props[9]=Gt,this.props[10]=dr,this.props[11]=Qn,this.props[12]=jn,this.props[13]=zn,this.props[14]=qn,this.props[15]=br,this}function Y(ue,J,pe){return pe=pe||0,ue!==0||J!==0||pe!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,ue,J,pe,1):this}function fe(ue,J,pe,Ne,Fe,ct,Pt,Ct,wn,Gt,dr,Qn,jn,zn,qn,br){var dt=this.props;if(ue===1&&J===0&&pe===0&&Ne===0&&Fe===0&&ct===1&&Pt===0&&Ct===0&&wn===0&&Gt===0&&dr===1&&Qn===0)return dt[12]=dt[12]*ue+dt[15]*jn,dt[13]=dt[13]*ct+dt[15]*zn,dt[14]=dt[14]*dr+dt[15]*qn,dt[15]*=br,this._identityCalculated=!1,this;var hn=dt[0],Qr=dt[1],Ri=dt[2],us=dt[3],vi=dt[4],ls=dt[5],cs=dt[6],Xt=dt[7],Cn=dt[8],Ns=dt[9],yi=dt[10],fs=dt[11],bi=dt[12],ds=dt[13],js=dt[14],sa=dt[15];return dt[0]=hn*ue+Qr*Fe+Ri*wn+us*jn,dt[1]=hn*J+Qr*ct+Ri*Gt+us*zn,dt[2]=hn*pe+Qr*Pt+Ri*dr+us*qn,dt[3]=hn*Ne+Qr*Ct+Ri*Qn+us*br,dt[4]=vi*ue+ls*Fe+cs*wn+Xt*jn,dt[5]=vi*J+ls*ct+cs*Gt+Xt*zn,dt[6]=vi*pe+ls*Pt+cs*dr+Xt*qn,dt[7]=vi*Ne+ls*Ct+cs*Qn+Xt*br,dt[8]=Cn*ue+Ns*Fe+yi*wn+fs*jn,dt[9]=Cn*J+Ns*ct+yi*Gt+fs*zn,dt[10]=Cn*pe+Ns*Pt+yi*dr+fs*qn,dt[11]=Cn*Ne+Ns*Ct+yi*Qn+fs*br,dt[12]=bi*ue+ds*Fe+js*wn+sa*jn,dt[13]=bi*J+ds*ct+js*Gt+sa*zn,dt[14]=bi*pe+ds*Pt+js*dr+sa*qn,dt[15]=bi*Ne+ds*Ct+js*Qn+sa*br,this._identityCalculated=!1,this}function le(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function W(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,pe){return{x:ue*this.props[0]+J*this.props[4]+pe*this.props[8]+this.props[12],y:ue*this.props[1]+J*this.props[5]+pe*this.props[9]+this.props[13],z:ue*this.props[2]+J*this.props[6]+pe*this.props[10]+this.props[14]}}function G(ue,J,pe){return ue*this.props[0]+J*this.props[4]+pe*this.props[8]+this.props[12]}function ne(ue,J,pe){return ue*this.props[1]+J*this.props[5]+pe*this.props[9]+this.props[13]}function ae(ue,J,pe){return ue*this.props[2]+J*this.props[6]+pe*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,pe=-this.props[1]/ue,Ne=-this.props[4]/ue,Fe=this.props[0]/ue,ct=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/ue,Pt=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/ue,Ct=new Bn;return Ct.props[0]=J,Ct.props[1]=pe,Ct.props[4]=Ne,Ct.props[5]=Fe,Ct.props[12]=ct,Ct.props[13]=Pt,Ct}function ke(ue){var J=this.getInverseMatrix();return J.applyToPointArray(ue[0],ue[1],ue[2]||0)}function Qe(ue){var J,pe=ue.length,Ne=[];for(J=0;J<pe;J+=1)Ne[J]=ke(ue[J]);return Ne}function Je(ue,J,pe){var Ne=De("float32",6);if(this.isIdentity())Ne[0]=ue[0],Ne[1]=ue[1],Ne[2]=J[0],Ne[3]=J[1],Ne[4]=pe[0],Ne[5]=pe[1];else{var Fe=this.props[0],ct=this.props[1],Pt=this.props[4],Ct=this.props[5],wn=this.props[12],Gt=this.props[13];Ne[0]=ue[0]*Fe+ue[1]*Pt+wn,Ne[1]=ue[0]*ct+ue[1]*Ct+Gt,Ne[2]=J[0]*Fe+J[1]*Pt+wn,Ne[3]=J[0]*ct+J[1]*Ct+Gt,Ne[4]=pe[0]*Fe+pe[1]*Pt+wn,Ne[5]=pe[0]*ct+pe[1]*Ct+Gt}return Ne}function Ve(ue,J,pe){var Ne;return this.isIdentity()?Ne=[ue,J,pe]:Ne=[ue*this.props[0]+J*this.props[4]+pe*this.props[8]+this.props[12],ue*this.props[1]+J*this.props[5]+pe*this.props[9]+this.props[13],ue*this.props[2]+J*this.props[6]+pe*this.props[10]+this.props[14]],Ne}function ut(ue,J){if(this.isIdentity())return ue+","+J;var pe=this.props;return Math.round((ue*pe[0]+J*pe[4]+pe[12])*100)/100+","+Math.round((ue*pe[1]+J*pe[5]+pe[13])*100)/100}function ft(){for(var ue=0,J=this.props,pe="matrix3d(",Ne=1e4;ue<16;)pe+=$(J[ue]*Ne)/Ne,pe+=ue===15?")":",",ue+=1;return pe}function Le(ue){var J=1e4;return ue<1e-6&&ue>0||ue>-1e-6&&ue<0?$(ue*J)/J:ue}function ye(){var ue=this.props,J=Le(ue[0]),pe=Le(ue[1]),Ne=Le(ue[4]),Fe=Le(ue[5]),ct=Le(ue[12]),Pt=Le(ue[13]);return"matrix("+J+","+pe+","+Ne+","+Fe+","+ct+","+Pt+")"}return function(){this.reset=P,this.rotate=_,this.rotateX=z,this.rotateY=he,this.rotateZ=Q,this.skew=Ce,this.skewFromAxis=Re,this.shear=ve,this.scale=F,this.setTransform=ee,this.translate=Y,this.transform=fe,this.applyToPoint=j,this.applyToX=G,this.applyToY=ne,this.applyToZ=ae,this.applyToPointArray=Ve,this.applyToTriplePoints=Je,this.applyToPointStringified=ut,this.toCSS=ft,this.to2dCSS=ye,this.clone=Z,this.cloneFromProps=V,this.equals=W,this.inversePoints=Qe,this.inversePoint=ke,this.getInverseMatrix=de,this._t=this.transform,this.isIdentity=le,this._identity=!0,this._identityCalculated=!1,this.props=De("float32",16),this.reset()}}();function Qo(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Qo=function(v){return typeof v}:Qo=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},Qo(c)}var qt={};function Lc(c){xe(c)}function Xu(){Dn.searchAnimations()}function Bc(c){Ht(c)}function La(c){ka(c)}function ho(c){return Dn.loadAnimation(c)}function Ju(c){if(typeof c=="string")switch(c){case"high":Or(200);break;default:case"medium":Or(50);break;case"low":Or(10);break}else!isNaN(c)&&c>1&&Or(c)}function Ba(){return typeof navigator<"u"}function Vc(c,p){c==="expressions"&&Zr(p)}function Nc(c){switch(c){case"propertyFactory":return ot;case"shapePropertyFactory":return pi;case"matrix":return Bn;default:return null}}qt.play=Dn.play,qt.pause=Dn.pause,qt.setLocationHref=Lc,qt.togglePause=Dn.togglePause,qt.setSpeed=Dn.setSpeed,qt.setDirection=Dn.setDirection,qt.stop=Dn.stop,qt.searchAnimations=Xu,qt.registerAnimation=Dn.registerAnimation,qt.loadAnimation=ho,qt.setSubframeRendering=Bc,qt.resize=Dn.resize,qt.goToAndStop=Dn.goToAndStop,qt.destroy=Dn.destroy,qt.setQuality=Ju,qt.inBrowser=Ba,qt.installPlugin=Vc,qt.freeze=Dn.freeze,qt.unfreeze=Dn.unfreeze,qt.setVolume=Dn.setVolume,qt.mute=Dn.mute,qt.unmute=Dn.unmute,qt.getRegisteredAnimations=Dn.getRegisteredAnimations,qt.useWebWorker=U,qt.setIDPrefix=La,qt.__getFactory=Nc,qt.version="5.10.2";function jc(){document.readyState==="complete"&&(clearInterval(tl),Xu())}function Qu(c){for(var p=Va.split("&"),v=0;v<p.length;v+=1){var $=p[v].split("=");if(decodeURIComponent($[0])==c)return decodeURIComponent($[1])}return null}var Va="";{var Na=document.getElementsByTagName("script"),po=Na.length-1,el=Na[po]||{src:""};Va=el.src?el.src.replace(/^[^\?]+\??/,""):"",Qu("renderer")}var tl=setInterval(jc,100);try{Qo(ie)!=="object"&&(window.bodymovin=qt)}catch{}var Ir=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:Ms.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=me,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())},_e([pn],vr);function Lr(){}_e([vr],Lr),Lr.prototype.initModifierProperties=function(c,p){this.s=ot.getProp(c,p.s,0,.01,this),this.e=ot.getProp(c,p.e,0,.01,this),this.o=ot.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},Lr.prototype.addShapeToModifier=function(c){c.pathsData=[]},Lr.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=[],he,Q=_.length,ve;for(he=0;he<Q;he+=1)if(ve=_[he],!(ve.e*P<$||ve.s*P>$+v)){var Ce,Re;ve.s*P<=$?Ce=0:Ce=(ve.s*P-$)/v,ve.e*P>=$+v?Re=1:Re=(ve.e*P-$)/v,z.push([Ce,Re])}return z.length||z.push([0,0]),z},Lr.prototype.releasePathsData=function(c){var p,v=c.length;for(p=0;p<v;p+=1)Zu.release(c[p]);return c.length=0,c},Lr.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,he=this.shapes.length,Q,ve,Ce,Re,F,ee=0;if(v===p)for(z=0;z<he;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<he;z+=1)this.shapes[z].pathsData.length=0,this.shapes[z].shape._mdf=!0}else{var Y=[],fe,le;for(z=0;z<he;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,ve=_._length,F=0,!fe.shape._mdf&&fe.pathsData.length)F=fe.totalShapeLength;else{for(Ce=this.releasePathsData(fe.pathsData),Q=0;Q<ve;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 W=p,Z=v,V=0,j;for(z=he-1;z>=0;z-=1)if(fe=this.shapes[z],fe.shape._mdf){for(le=fe.localShapeCollection,le.releaseShapes(),this.m===2&&he>1?(j=this.calculateShapeEdges(p,v,fe.totalShapeLength,V,ee),V+=fe.totalShapeLength):j=[[W,Z]],ve=j.length,Q=0;Q<ve;Q+=1){W=j[Q][0],Z=j[Q][1],Y.length=0,Z<=1?Y.push({s:fe.totalShapeLength*W,e:fe.totalShapeLength*Z}):W>=1?Y.push({s:fe.totalShapeLength*(W-1),e:fe.totalShapeLength*(Z-1)}):(Y.push({s:fe.totalShapeLength*W,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 ae=G.pop();this.addPaths(G,le),G=this.addShapes(fe,Y[1],ae)}else this.addPaths(G,le),G=this.addShapes(fe,Y[1])}this.addPaths(G,le)}}fe.shape.paths=le}}},Lr.prototype.addPaths=function(c,p){var v,$=c.length;for(v=0;v<$;v+=1)p.addShape(c[v])},Lr.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)},Lr.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)},Lr.prototype.addShapes=function(c,p,v){var $=c.pathsData,P=c.shape.paths.shapes,_,z=c.shape.paths._length,he,Q,ve=0,Ce,Re,F,ee,Y=[],fe,le=!0;for(v?(Re=v._length,fe=v._length):(v=Jn.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,he=1;he<Q;he+=1)if(Ce=F[he-1],ve+Ce.addedLength<p.s)ve+=Ce.addedLength,v.c=!1;else if(ve>p.e){v.c=!1;break}else p.s<=ve&&p.e>=ve+Ce.addedLength?(this.addSegment(P[_].v[he-1],P[_].o[he-1],P[_].i[he],P[_].v[he],v,Re,le),le=!1):(ee=Xr.getNewSegment(P[_].v[he-1],P[_].v[he],P[_].o[he-1],P[_].i[he],(p.s-ve)/Ce.addedLength,(p.e-ve)/Ce.addedLength,F[he-1]),this.addSegmentFromArray(ee,v,Re,le),le=!1,v.c=!1),ve+=Ce.addedLength,Re+=1;if(P[_].c&&F.length){if(Ce=F[he-1],ve<=p.e){var W=F[he-1].addedLength;p.s<=ve&&p.e>=ve+W?(this.addSegment(P[_].v[he-1],P[_].o[he-1],P[_].i[0],P[_].v[0],v,Re,le),le=!1):(ee=Xr.getNewSegment(P[_].v[he-1],P[_].v[0],P[_].o[he-1],P[_].i[0],(p.s-ve)/W,(p.e-ve)/W,F[he-1]),this.addSegmentFromArray(ee,v,Re,le),le=!1,v.c=!1)}else v.c=!1;ve+=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)),ve>p.e)break;_<z-1&&(v=Jn.newElement(),le=!0,Y.push(v),Re=0)}return Y};function Rs(){}_e([vr],Rs),Rs.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.amount=ot.getProp(c,p.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Rs.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=Jn.newElement();z.c=c.c;var he,Q,ve,Ce,Re,F;for(_=0;_<P;_+=1)he=c.v[_][0]+($[0]-c.v[_][0])*v,Q=c.v[_][1]+($[1]-c.v[_][1])*v,ve=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(he,Q,ve,Ce,Re,F,_);return z},Rs.prototype.processShapes=function(c){var p,v,$=this.shapes.length,P,_,z=this.amount.v;if(z!==0){var he,Q;for(v=0;v<$;v+=1){if(he=this.shapes[v],Q=he.localShapeCollection,!(!he.shape._mdf&&!this._mdf&&!c))for(Q.releaseShapes(),he.shape._mdf=!0,p=he.shape.paths.shapes,_=he.shape.paths._length,P=0;P<_;P+=1)Q.addShape(this.processPath(p[P],z));he.shape.paths=he.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var ea=function(){var c=[0,0];function p(Q){var ve=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||ve,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 ve;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(ve=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)/ve,0),Re=this.p.getValueAtTime(this.p.keyframes[0].t/ve,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/ve,0),Re=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/ve,0)):(Ce=this.p.pv,Re=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/ve,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)/ve,0),Ce[1]=ee.getValueAtTime((ee.keyframes[0].t+.01)/ve,0),Re[0]=F.getValueAtTime(F.keyframes[0].t/ve,0),Re[1]=ee.getValueAtTime(ee.keyframes[0].t/ve,0)):F._caching.lastFrame+F.offsetTime>=F.keyframes[F.keyframes.length-1].t?(Ce[0]=F.getValueAtTime(F.keyframes[F.keyframes.length-1].t/ve,0),Ce[1]=ee.getValueAtTime(ee.keyframes[ee.keyframes.length-1].t/ve,0),Re[0]=F.getValueAtTime((F.keyframes[F.keyframes.length-1].t-.01)/ve,0),Re[1]=ee.getValueAtTime((ee.keyframes[ee.keyframes.length-1].t-.01)/ve,0)):(Ce=[F.pv,ee.pv],Re[0]=F.getValueAtTime((F._caching.lastFrame+F.offsetTime-.01)/ve,F.offsetTime),Re[1]=ee.getValueAtTime((ee._caching.lastFrame+ee.offsetTime-.01)/ve,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,ve,Ce){if(this.elem=Q,this.frameId=-1,this.propType="transform",this.data=ve,this.v=new Bn,this.pre=new Bn,this.appliedTransformations=0,this.initDynamicPropertyContainer(Ce||Q),ve.p&&ve.p.s?(this.px=ot.getProp(Q,ve.p.x,0,0,this),this.py=ot.getProp(Q,ve.p.y,0,0,this),ve.p.z&&(this.pz=ot.getProp(Q,ve.p.z,0,0,this))):this.p=ot.getProp(Q,ve.p||{k:[0,0,0]},1,0,this),ve.rx){if(this.rx=ot.getProp(Q,ve.rx,0,gt,this),this.ry=ot.getProp(Q,ve.ry,0,gt,this),this.rz=ot.getProp(Q,ve.rz,0,gt,this),ve.or.k[0].ti){var Re,F=ve.or.k.length;for(Re=0;Re<F;Re+=1)ve.or.k[Re].to=null,ve.or.k[Re].ti=null}this.or=ot.getProp(Q,ve.or,1,gt,this),this.or.sh=!0}else this.r=ot.getProp(Q,ve.r||{k:0},0,gt,this);ve.sk&&(this.sk=ot.getProp(Q,ve.sk,0,gt,this),this.sa=ot.getProp(Q,ve.sa,0,gt,this)),this.a=ot.getProp(Q,ve.a||{k:[0,0,0]},1,0,this),this.s=ot.getProp(Q,ve.s||{k:[100,100,100]},1,.01,this),ve.o?this.o=ot.getProp(Q,ve.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},_e([pn],z),z.prototype.addDynamicProperty=_,z.prototype._addDynamicProperty=pn.prototype.addDynamicProperty;function he(Q,ve,Ce){return new z(Q,ve,Ce)}return{getTransformProperty:he}}();function yr(){}_e([vr],yr),yr.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.c=ot.getProp(c,p.c,0,null,this),this.o=ot.getProp(c,p.o,0,null,this),this.tr=ea.getTransformProperty(c,p.tr,this),this.so=ot.getProp(c,p.tr.so,0,.01,this),this.eo=ot.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 Bn,this.rMatrix=new Bn,this.sMatrix=new Bn,this.tMatrix=new Bn,this.matrix=new Bn},yr.prototype.applyTransforms=function(c,p,v,$,P,_){var z=_?-1:1,he=$.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/he:he,_?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 he=Math.ceil(this.c.v);if(this._groups.length<he){for(;this._groups.length<he;){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 ve;for($=0;$<=this._groups.length-1;$+=1){if(ve=_<he,this._groups[$]._render=ve,this.changeGroupRender(this._groups[$].it,ve),!ve){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=he;var F=this.o.v,ee=F%1,Y=F>0?Math.floor(F):Math.ceil(F),fe=this.pMatrix.props,le=this.rMatrix.props,W=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var Z=0;if(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(le[0],le[1],le[2],le[3],le[4],le[5],le[6],le[7],le[8],le[9],le[10],le[11],le[12],le[13],le[14],le[15]),this.matrix.transform(W[0],W[1],W[2],W[3],W[4],W[5],W[6],W[7],W[8],W[9],W[10],W[11],W[12],W[13],W[14],W[15]),this.matrix.transform(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 mo(){}_e([vr],mo),mo.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.rd=ot.getProp(c,p.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},mo.prototype.processPath=function(c,p){var v=Jn.newElement();v.c=c.c;var $,P=c._length,_,z,he,Q,ve,Ce,Re=0,F,ee,Y,fe,le,W;for($=0;$<P;$+=1)_=c.v[$],he=c.o[$],z=c.i[$],_[0]===he[0]&&_[1]===he[1]&&_[0]===z[0]&&_[1]===z[1]?($===0||$===P-1)&&!c.c?(v.setTripleAt(_[0],_[1],he[0],he[1],z[0],z[1],Re),Re+=1):($===0?Q=c.v[P-1]:Q=c.v[$-1],ve=Math.sqrt(Math.pow(_[0]-Q[0],2)+Math.pow(_[1]-Q[1],2)),Ce=ve?Math.min(ve/2,p)/ve:0,le=_[0]+(Q[0]-_[0])*Ce,F=le,W=_[1]-(_[1]-Q[1])*Ce,ee=W,Y=F-(F-_[0])*Tt,fe=ee-(ee-_[1])*Tt,v.setTripleAt(F,ee,Y,fe,le,W,Re),Re+=1,$===P-1?Q=c.v[0]:Q=c.v[$+1],ve=Math.sqrt(Math.pow(_[0]-Q[0],2)+Math.pow(_[1]-Q[1],2)),Ce=ve?Math.min(ve/2,p)/ve:0,Y=_[0]+(Q[0]-_[0])*Ce,F=Y,fe=_[1]+(Q[1]-_[1])*Ce,ee=fe,le=F-(F-_[0])*Tt,W=ee-(ee-_[1])*Tt,v.setTripleAt(F,ee,Y,fe,le,W,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},mo.prototype.processShapes=function(c){var p,v,$=this.shapes.length,P,_,z=this.rd.v;if(z!==0){var he,Q;for(v=0;v<$;v+=1){if(he=this.shapes[v],Q=he.localShapeCollection,!(!he.shape._mdf&&!this._mdf&&!c))for(Q.releaseShapes(),he.shape._mdf=!0,p=he.shape.paths.shapes,_=he.shape.paths._length,P=0;P<_;P+=1)Q.addShape(this.processPath(p[P],z));he.shape.paths=he.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function go(c,p){return Math.abs(c-p)*1e5<=Math.min(Math.abs(c),Math.abs(p))}function Ai(c){return Math.abs(c)<=1e-5}function mi(c,p,v){return c*(1-v)+p*v}function ar(c,p,v){return[mi(c[0],p[0],v),mi(c[1],p[1],v)]}function Ti(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 ja(c,p,v,$){return[-c+3*p-3*v+$,3*c-6*p+3*v,-3*c+3*p,c]}function nl(c){return new yn(c,c,c,c,!1)}function yn(c,p,v,$,P){P&&ss(c,p)&&(p=ar(c,$,1/3)),P&&ss(v,$)&&(v=ar(c,$,2/3));var _=ja(c[0],p[0],v[0],$[0]),z=ja(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,$]}yn.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]]},yn.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]]},yn.prototype.tangentAngle=function(c){var p=this.derivative(c);return Math.atan2(p[1],p[0])},yn.prototype.normalAngle=function(c){var p=this.derivative(c);return Math.atan2(p[0],p[1])},yn.prototype.inflectionPoints=function(){var c=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Ai(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 Ai($)?$>0&&$<1?[p]:[]:[p-$,p+$].filter(function(P){return P>0&&P<1})},yn.prototype.split=function(c){if(c<=0)return[nl(this.points[0]),this];if(c>=1)return[this,nl(this.points[this.points.length-1])];var p=ar(this.points[0],this.points[1],c),v=ar(this.points[1],this.points[2],c),$=ar(this.points[2],this.points[3],c),P=ar(p,v,c),_=ar(v,$,c),z=ar(P,_,c);return[new yn(this.points[0],p,P,z,!0),new yn(z,_,$,this.points[3],!0)]};function Ka(c,p){var v=c.points[0][p],$=c.points[c.points.length-1][p];if(v>$){var P=$;$=v,v=P}for(var _=Ti(3*c.a[p],2*c.b[p],c.c[p]),z=0;z<_.length;z+=1)if(_[z]>0&&_[z]<1){var he=c.point(_[z])[p];he<v?v=he:he>$&&($=he)}return{min:v,max:$}}yn.prototype.bounds=function(){return{x:Ka(this,0),y:Ka(this,1)}},yn.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 vo(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 Ua(c){var p=c.bez.split(.5);return[vo(p[0],c.t1,c.t),vo(p[1],c.t,c.t2)]}function rl(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 Br(c,p,v,$,P,_){if(rl(c,p)){if(v>=_||c.width<=$&&c.height<=$&&p.width<=$&&p.height<=$){P.push([c.t,p.t]);return}var z=Ua(c),he=Ua(p);Br(z[0],he[0],v+1,$,P,_),Br(z[0],he[1],v+1,$,P,_),Br(z[1],he[0],v+1,$,P,_),Br(z[1],he[1],v+1,$,P,_)}}yn.prototype.intersections=function(c,p,v){p===void 0&&(p=2),v===void 0&&(v=7);var $=[];return Br(vo(this,0,1),vo(c,0,1),0,p,$,v),$},yn.shapeSegment=function(c,p){var v=(p+1)%c.length();return new yn(c.v[p],c.o[p],c.i[v],c.v[v],!0)},yn.shapeSegmentInverted=function(c,p){var v=(p+1)%c.length();return new yn(c.v[v],c.i[v],c.o[p],c.v[p],!0)};function za(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 Fs(c,p,v,$){var P=[c[0],c[1],1],_=[p[0],p[1],1],z=[v[0],v[1],1],he=[$[0],$[1],1],Q=za(za(P,_),za(z,he));return Ai(Q[2])?null:[Q[0]/Q[2],Q[1]/Q[2]]}function ks(c,p,v){return[c[0]+Math.cos(p)*v,c[1]-Math.sin(p)*v]}function yo(c,p){return Math.hypot(c[0]-p[0],c[1]-p[1])}function ss(c,p){return go(c[0],p[0])&&go(c[1],p[1])}function bo(){}_e([vr],bo),bo.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.amplitude=ot.getProp(c,p.s,0,null,this),this.frequency=ot.getProp(c,p.r,0,null,this),this.pointsType=ot.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 ta(c,p,v,$,P,_,z){var he=v-Math.PI/2,Q=v+Math.PI/2,ve=p[0]+Math.cos(v)*$*P,Ce=p[1]-Math.sin(v)*$*P;c.setTripleAt(ve,Ce,ve+Math.cos(he)*_,Ce-Math.sin(he)*_,ve+Math.cos(Q)*z,Ce-Math.sin(Q)*z,c.length())}function il(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 Kc(c,p){var v=p===0?c.length()-1:p-1,$=(p+1)%c.length(),P=c.v[v],_=c.v[$],z=il(P,_);return Math.atan2(0,1)-Math.atan2(z[1],z[0])}function $o(c,p,v,$,P,_,z){var he=Kc(p,v),Q=p.v[v%p._length],ve=p.v[v===0?p._length-1:v-1],Ce=p.v[(v+1)%p._length],Re=_===2?Math.sqrt(Math.pow(Q[0]-ve[0],2)+Math.pow(Q[1]-ve[1],2)):0,F=_===2?Math.sqrt(Math.pow(Q[0]-Ce[0],2)+Math.pow(Q[1]-Ce[1],2)):0;ta(c,p.v[v%p._length],he,z,$,F/((P+1)*2),Re/((P+1)*2))}function Uc(c,p,v,$,P,_){for(var z=0;z<$;z+=1){var he=(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,ve=p.normalAngle(he),Ce=p.point(he);ta(c,Ce,ve,_,v,Q/(($+1)*2),Q/(($+1)*2)),_=-_}return _}bo.prototype.processPath=function(c,p,v,$){var P=c._length,_=Jn.newElement();if(_.c=c.c,c.c||(P-=1),P===0)return _;var z=-1,he=yn.shapeSegment(c,0);$o(_,c,0,p,v,$,z);for(var Q=0;Q<P;Q+=1)z=Uc(_,he,p,v,$,-z),Q===P-1&&!c.c?he=null:he=yn.shapeSegment(c,(Q+1)%P),$o(_,c,Q+1,p,v,$,z);return _},bo.prototype.processShapes=function(c){var p,v,$=this.shapes.length,P,_,z=this.amplitude.v,he=Math.max(0,Math.round(this.frequency.v)),Q=this.pointsType.v;if(z!==0){var ve,Ce;for(v=0;v<$;v+=1){if(ve=this.shapes[v],Ce=ve.localShapeCollection,!(!ve.shape._mdf&&!this._mdf&&!c))for(Ce.releaseShapes(),ve.shape._mdf=!0,p=ve.shape.paths.shapes,_=ve.shape.paths._length,P=0;P<_;P+=1)Ce.addShape(this.processPath(p[P],z,he,Q));ve.shape.paths=ve.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function xo(c,p,v){var $=Math.atan2(p[0]-c[0],p[1]-c[1]);return[ks(c,$,v),ks(p,$,v)]}function Zt(c,p){var v,$,P,_,z,he,Q;Q=xo(c.points[0],c.points[1],p),v=Q[0],$=Q[1],Q=xo(c.points[1],c.points[2],p),P=Q[0],_=Q[1],Q=xo(c.points[2],c.points[3],p),z=Q[0],he=Q[1];var ve=Fs(v,$,P,_);ve===null&&(ve=$);var Ce=Fs(z,he,P,_);return Ce===null&&(Ce=z),new yn(v,ve,Ce,he)}function nn(c,p,v,$,P){var _=p.points[3],z=v.points[0];if($===3||ss(_,z))return _;if($===2){var he=-p.tangentAngle(1),Q=-v.tangentAngle(0)+Math.PI,ve=Fs(_,ks(_,he+Math.PI/2,100),z,ks(z,he+Math.PI/2,100)),Ce=ve?yo(ve,_):yo(_,z)/2,Re=ks(_,he,2*Ce*Tt);return c.setXYAt(Re[0],Re[1],"o",c.length()-1),Re=ks(z,Q,2*Ce*Tt),c.setTripleAt(z[0],z[1],z[0],z[1],Re[0],Re[1],c.length()),z}var F=ss(_,p.points[2])?p.points[0]:p.points[2],ee=ss(z,v.points[1])?v.points[3]:v.points[1],Y=Fs(F,_,z,ee);return Y&&yo(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&&go(v[0][0],1)&&v.shift(),v.length?v[0]:null}function Me(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=Me(c[v-1],c[v]),c[v-1]=p[0],c[v]=p[1];return c.length>1&&(p=Me(c[c.length-1],c[0]),c[c.length-1]=p[0],c[0]=p[1]),c}function pt(c,p){var v=c.inflectionPoints(),$,P,_,z;if(v.length===0)return[Zt(c,p)];if(v.length===1||go(v[1],1))return _=c.split(v[0]),$=_[0],P=_[1],[Zt($,p),Zt(P,p)];_=c.split(v[0]),$=_[0];var he=(v[1]-v[0])/(1-v[0]);return _=_[1].split(he),z=_[0],P=_[1],[Zt($,p),Zt(z,p),Zt(P,p)]}function xn(){}_e([vr],xn),xn.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.amount=ot.getProp(c,p.a,0,null,this),this.miterLimit=ot.getProp(c,p.ml,0,null,this),this.lineJoin=p.lj,this._isAnimated=this.amount.effectsSequence.length!==0},xn.prototype.processPath=function(c,p,v,$){var P=Jn.newElement();P.c=c.c;var _=c.length();c.c||(_-=1);var z,he,Q,ve=[];for(z=0;z<_;z+=1)Q=yn.shapeSegment(c,z),ve.push(pt(Q,p));if(!c.c)for(z=_-1;z>=0;z-=1)Q=yn.shapeSegmentInverted(c,z),ve.push(pt(Q,p));ve=ze(ve);var Ce=null,Re=null;for(z=0;z<ve.length;z+=1){var F=ve[z];for(Re&&(Ce=nn(P,Re,F[0],v,$)),Re=F[F.length-1],he=0;he<F.length;he+=1)Q=F[he],Ce&&ss(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 ve.length&&nn(P,Re,ve[0][0],v,$),P},xn.prototype.processShapes=function(c){var p,v,$=this.shapes.length,P,_,z=this.amount.v,he=this.miterLimit.v,Q=this.lineJoin;if(z!==0){var ve,Ce;for(v=0;v<$;v+=1){if(ve=this.shapes[v],Ce=ve.localShapeCollection,!(!ve.shape._mdf&&!this._mdf&&!c))for(Ce.releaseShapes(),ve.shape._mdf=!0,p=ve.shape.paths.shapes,_=ve.shape.paths._length,P=0;P<_;P+=1)Ce.addShape(this.processPath(p[P],z,Q,he));ve.shape.paths=ve.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,ae=G.length,de=[];for(ne=0;ne<ae;ne+=1)G[ne]!=="sans-serif"&&G[ne]!=="monospace"&&de.push(G[ne]);return de.join(",")}function z(j,G){var ne=Oe("span");ne.setAttribute("aria-hidden",!0),ne.style.fontFamily=G;var ae=Oe("span");ae.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(ae),document.body.appendChild(ne);var de=ae.offsetWidth;return ae.style.fontFamily=_(j)+", "+G,{node:ae,w:de,parent:ne}}function he(){var j,G=this.fonts.length,ne,ae,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,ae=this.fonts[j].monoCase.w,ne.offsetWidth!==ae?(de-=1,this.fonts[j].loaded=!0):(ne=this.fonts[j].sansCase.node,ae=this.fonts[j].sansCase.w,ne.offsetWidth!==ae&&(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",ae,de=sr(j);if(ne==="svg"){var ke=$t("text");ke.style.fontSize="100px",ke.setAttribute("font-family",j.fFamily),ke.setAttribute("font-style",de.style),ke.setAttribute("font-weight",de.weight),ke.textContent="1",j.fClass?(ke.style.fontFamily="inherit",ke.setAttribute("class",j.fClass)):ke.style.fontFamily=j.fFamily,G.appendChild(ke),ae=ke}else{var Qe=new OffscreenCanvas(500,500).getContext("2d");Qe.font=de.style+" "+de.weight+" 100px "+j.fFamily,ae=Qe}function Je(Ve){return ne==="svg"?(ae.textContent=Ve,ae.getComputedTextLength()):ae.measureText(Ve).width}return{measureText:Je}}function ve(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(ye){ye.helper=Q(ye),ye.cache={}}),this.fonts=j.list;return}var ne=j.list,ae,de=ne.length,ke=de;for(ae=0;ae<de;ae+=1){var Qe=!0,Je,Ve;if(ne[ae].loaded=!1,ne[ae].monoCase=z(ne[ae].fFamily,"monospace"),ne[ae].sansCase=z(ne[ae].fFamily,"sans-serif"),!ne[ae].fPath)ne[ae].loaded=!0,ke-=1;else if(ne[ae].fOrigin==="p"||ne[ae].origin===3){if(Je=document.querySelectorAll('style[f-forigin="p"][f-family="'+ne[ae].fFamily+'"], style[f-origin="3"][f-family="'+ne[ae].fFamily+'"]'),Je.length>0&&(Qe=!1),Qe){var ut=Oe("style");ut.setAttribute("f-forigin",ne[ae].fOrigin),ut.setAttribute("f-origin",ne[ae].origin),ut.setAttribute("f-family",ne[ae].fFamily),ut.type="text/css",ut.innerText="@font-face {font-family: "+ne[ae].fFamily+"; font-style: normal; src: url('"+ne[ae].fPath+"');}",G.appendChild(ut)}}else if(ne[ae].fOrigin==="g"||ne[ae].origin===1){for(Je=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Ve=0;Ve<Je.length;Ve+=1)Je[Ve].href.indexOf(ne[ae].fPath)!==-1&&(Qe=!1);if(Qe){var ft=Oe("link");ft.setAttribute("f-forigin",ne[ae].fOrigin),ft.setAttribute("f-origin",ne[ae].origin),ft.type="text/css",ft.rel="stylesheet",ft.href=ne[ae].fPath,document.body.appendChild(ft)}}else if(ne[ae].fOrigin==="t"||ne[ae].origin===2){for(Je=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Ve=0;Ve<Je.length;Ve+=1)ne[ae].fPath===Je[Ve].src&&(Qe=!1);if(Qe){var Le=Oe("link");Le.setAttribute("f-forigin",ne[ae].fOrigin),Le.setAttribute("f-origin",ne[ae].origin),Le.setAttribute("rel","stylesheet"),Le.setAttribute("href",ne[ae].fPath),G.appendChild(Le)}}ne[ae].helper=Q(ne[ae],G),ne[ae].cache={},this.fonts.push(ne[ae])}ke===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function Ce(j){if(j){this.chars||(this.chars=[]);var G,ne=j.length,ae,de=this.chars.length,ke;for(G=0;G<ne;G+=1){for(ae=0,ke=!1;ae<de;)this.chars[ae].style===j[G].style&&this.chars[ae].fFamily===j[G].fFamily&&this.chars[ae].ch===j[G].ch&&(ke=!0),ae+=1;ke||(this.chars.push(j[G]),de+=1)}}}function Re(j,G,ne){for(var ae=0,de=this.chars.length;ae<de;){if(this.chars[ae].ch===j&&this.chars[ae].style===G&&this.chars[ae].fFamily===ne)return this.chars[ae];ae+=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 ae=this.getFontByName(G),de=j.charCodeAt(0);if(!ae.cache[de+1]){var ke=ae.helper;if(j===" "){var Qe=ke.measureText("|"+j+"|"),Je=ke.measureText("||");ae.cache[de+1]=(Qe-Je)/100}else ae.cache[de+1]=ke.measureText(j)/100}return ae.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 le(j){return v.indexOf(j)!==-1}function W(){this.isLoaded=!0}var Z=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};Z.isModifier=Y,Z.isZeroWidthJoiner=fe,Z.isCombinedCharacter=le;var V={addChars:Ce,addFonts:ve,getCharData:Re,getFontByName:ee,measureText:F,checkLoadedFonts:he,setIsLoaded:W};return Z.prototype=V,Z}();function Un(){}Un.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 An=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 Pi(c,p,v){this.p=ot.getProp(p,c.v,0,0,v)}function _i(c,p,v){this.p=ot.getProp(p,c.v,0,0,v)}function qa(c,p,v){this.p=ot.getProp(p,c.v,1,0,v)}function na(c,p,v){this.p=ot.getProp(p,c.v,1,0,v)}function lr(c,p,v){this.p=ot.getProp(p,c.v,0,0,v)}function wo(c,p,v){this.p=ot.getProp(p,c.v,0,0,v)}function nh(c,p,v){this.p=ot.getProp(p,c.v,0,0,v)}function rh(){this.p={}}function zc(c,p){var v=c.ef||[];this.effectElements=[];var $,P=v.length,_;for($=0;$<P;$+=1)_=new ra(v[$],p),this.effectElements.push(_)}function ra(c,p){this.init(c,p)}_e([pn],ra),ra.prototype.getValue=ra.prototype.iterateDynamicProperties,ra.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 Pi(_[v],p,this);break;case 1:P=new _i(_[v],p,this);break;case 2:P=new qa(_[v],p,this);break;case 3:P=new na(_[v],p,this);break;case 4:case 7:P=new nh(_[v],p,this);break;case 10:P=new lr(_[v],p,this);break;case 11:P=new wo(_[v],p,this);break;case 5:P=new zc(_[v],p);break;default:P=new rh(_[v]);break}P&&this.effectElements.push(P)}};function os(){}os.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=An(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=tt(),this.data.sr||(this.data.sr=1),this.effectsManager=new zc(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function Vn(){}Vn.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 Os(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)}Os.prototype.prepareFrame=function(){},_e([Un,os,Vn],Os),Os.prototype.getBaseElement=function(){return null},Os.prototype.renderFrame=function(){},Os.prototype.destroy=function(){},Os.prototype.initExpressions=function(){},Os.prototype.getFootageData=function(){return this.footageData};function mn(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?ot.getProp(this,c.tm,0,p.frameRate,this):{_placeholder:!0},this.lv=ot.getProp(this,c.au&&c.au.lv?c.au.lv:{k:[100]},1,.01,this)}mn.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))},_e([Un,os,Vn],mn),mn.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))},mn.prototype.show=function(){},mn.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},mn.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},mn.prototype.resume=function(){this._canPlay=!0},mn.prototype.setRate=function(c){this.audio.rate(c)},mn.prototype.volume=function(c){this._volumeMultiplier=c,this._previousVolume=c*this._volume,this.audio.volume(this._previousVolume)},mn.prototype.getBaseElement=function(){return null},mn.prototype.destroy=function(){},mn.prototype.sourceRectAtTime=function(){},mn.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 mn(c,this.globalData,this)},cr.prototype.createFootage=function(c){return new Os(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 Co(){}Co.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?ea.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Bn},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,he;for(_=0;_<z;_+=1)he=v[_].mat.applyToPointArray(0,0,0),p=[p[0]-he[0],p[1]-he[1],0];return p},mHelper:new Bn};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,he=this.masksProperties,Q=0,ve=[],Ce,Re,F=tt(),ee,Y,fe,le,W="clipPath",Z="clip-path";for(P=0;P<_;P+=1)if((he[P].mode!=="a"&&he[P].mode!=="n"||he[P].inv||he[P].o.k!==100||he[P].o.x)&&(W="mask",Z="mask"),(he[P].mode==="s"||he[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),ve.push(ee)):ee=null,z=$t("path"),he[P].mode==="n")this.viewData[P]={op:ot.getProp(this.element,he[P].o,0,.01,this.element),prop:pi.getShapeProp(this.element,he[P],3),elem:z,lastPath:""},$.appendChild(z);else{Q+=1,z.setAttribute("fill",he[P].mode==="s"?"#000000":"#ffffff"),z.setAttribute("clip-rule","nonzero");var V;if(he[P].x.k!==0?(W="mask",Z="mask",le=ot.getProp(this.element,he[P].x,0,null,this.element),V=tt(),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",he[P].mode==="s"?"#000000":"#ffffff")):(fe=null,le=null),this.storedData[P]={elem:z,x:le,expan:fe,lastPath:"",lastOperator:"",filterId:V,lastRadius:0},he[P].mode==="i"){Re=ve.length;var j=$t("g");for(Ce=0;Ce<Re;Ce+=1)j.appendChild(ve[Ce]);var G=$t("mask");G.setAttribute("mask-type","alpha"),G.setAttribute("id",F+"_"+Q),G.appendChild(z),$.appendChild(G),j.setAttribute("mask","url("+Ee()+"#"+F+"_"+Q+")"),ve.length=0,ve.push(j)}else ve.push(z);he[P].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[P]={elem:z,lastPath:"",op:ot.getProp(this.element,he[P].o,0,.01,this.element),prop:pi.getShapeProp(this.element,he[P],3),invRect:ee},this.viewData[P].prop.k||this.drawPath(he[P],this.viewData[P].prop.v,this.viewData[P])}for(this.maskElement=$t(W),_=ve.length,P=0;P<_;P+=1)this.maskElement.appendChild(ve[P]);Q>0&&(this.maskElement.setAttribute("id",F),this.element.maskedElement.setAttribute(Z,"url("+Ee()+"#"+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("+Ee()+"#"+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 Is=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}(),sl=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}(),dn={},as="filter_result_";function ol(c){var p,v="SourceGraphic",$=c.data.ef?c.data.ef.length:0,P=tt(),_=Is.createFilter(P,!0),z=0;this.filters=[];var he;for(p=0;p<$;p+=1){he=null;var Q=c.data.ef[p].ty;if(dn[Q]){var ve=dn[Q].effect;he=new ve(_,c.effectsManager.effectElements[p],c,as+z,v),v=as+z,dn[Q].countsAsEffect&&(z+=1)}he&&this.filters.push(he)}z&&(c.globalData.defs.appendChild(_),c.layerElement.setAttribute("filter","url("+Ee()+"#"+P+")")),this.filters.length&&c.addRenderableComponent(this)}ol.prototype.renderFrame=function(c){var p,v=this.filters.length;for(p=0;p<v;p+=1)this.filters[p].renderFrame(c)};function Wa(){}Wa.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 _=tt();if($.setAttribute("id",_),$.appendChild(P),this.globalData.defs.appendChild($),this.checkMasks()){var z=$t("g");z.setAttribute("clip-path","url("+Ee()+"#"+_+")"),z.appendChild(this.layerElement),this.transformedElement=z,p?p.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+Ee()+"#"+_+")")}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 ol(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 he=$t("mask");he.setAttribute("id",v),he.setAttribute("mask-type",p===3?"luminance":"alpha"),_=$t("use"),_.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),he.appendChild(_),this.globalData.defs.appendChild(he),!sl.maskType&&p===1&&(he.setAttribute("mask-type","luminance"),$=tt(),P=Is.createFilter($),this.globalData.defs.appendChild(P),P.appendChild(Is.createAlphaToLuminanceFilter()),z=$t("g"),z.appendChild(_),he.appendChild(z),z.setAttribute("filter","url("+Ee()+"#"+$+")"))}else if(p===2){var Q=$t("mask");Q.setAttribute("id",v),Q.setAttribute("mask-type","alpha");var ve=$t("g");Q.appendChild(ve),$=tt(),P=Is.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"),ve.setAttribute("filter","url("+Ee()+"#"+$+")"),ve.appendChild(F),_=$t("use"),_.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),ve.appendChild(_),sl.maskType||(Q.setAttribute("mask-type","luminance"),P.appendChild(Is.createAlphaToLuminanceFilter()),z=$t("g"),ve.appendChild(F),z.appendChild(this.layerElement),ve.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("+Ee()+"#"+p+")")}};function Ls(){}Ls.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 Ha(){}(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()}};_e([Un,Ye(c)],Ha)})();function Ga(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}}_e([os,Co,Wa,Ls,Vn,Ha],Ga),Ga.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)},Ga.prototype.sourceRectAtTime=function(){return this.sourceRect};function yg(c,p){this.elem=c,this.pos=p}function qc(){}qc.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 yg(p,v))},prepareFrame:function(p){this.prepareRenderableFrame(p),this.prepareProperties(p,this.isInRange)}};var Ya={1:"butt",2:"round",3:"square"},So={1:"miter",2:"round",3:"bevel"};function ih(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}}ih.prototype.setAsAnimated=function(){this._isAnimated=!0};function Wc(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}Wc.prototype.reset=function(){this.d="",this._mdf=!1};function Za(c,p,v,$){this.elem=c,this.frameId=-1,this.dataProps=Ke(p.length),this.renderer=v,this.k=!1,this.dashStr="",this.dashArray=De("float32",p.length?p.length-1:0),this.dashoffset=De("float32",1),this.initDynamicPropertyContainer($);var P,_=p.length||0,z;for(P=0;P<_;P+=1)z=ot.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}Za.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}},_e([pn],Za);function al(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=ot.getProp(c,p.o,0,.01,this),this.w=ot.getProp(c,p.w,0,null,this),this.d=new Za(c,p.d||{},"svg",this),this.c=ot.getProp(c,p.c,1,255,this),this.style=v,this._isAnimated=!!this._isAnimated}_e([pn],al);function ul(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=ot.getProp(c,p.o,0,.01,this),this.c=ot.getProp(c,p.c,1,255,this),this.style=v}_e([pn],ul);function Hc(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.style=v}_e([pn],Hc);function Xa(c,p,v){this.data=p,this.c=De("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=De("float32",$),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=$,this.initDynamicPropertyContainer(v),this.prop=ot.getProp(c,p.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}Xa.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},Xa.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},Xa.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}},_e([pn],Xa);function Bs(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.initGradientData(c,p,v)}Bs.prototype.initGradientData=function(c,p,v){this.o=ot.getProp(c,p.o,0,.01,this),this.s=ot.getProp(c,p.s,1,null,this),this.e=ot.getProp(c,p.e,1,null,this),this.h=ot.getProp(c,p.h||{k:0},0,.01,this),this.a=ot.getProp(c,p.a||{k:0},0,gt,this),this.g=new Xa(c,p.g,this),this.style=v,this.stops=[],this.setGradientData(v.pElem,p),this.setGradientOpacity(p,v),this._isAnimated=!!this._isAnimated},Bs.prototype.setGradientData=function(c,p){var v=tt(),$=$t(p.t===1?"linearGradient":"radialGradient");$.setAttribute("id",v),$.setAttribute("spreadMethod","pad"),$.setAttribute("gradientUnits","userSpaceOnUse");var P=[],_,z,he;for(he=p.g.p*4,z=0;z<he;z+=4)_=$t("stop"),$.appendChild(_),P.push(_);c.setAttribute(p.ty==="gf"?"fill":"stroke","url("+Ee()+"#"+v+")"),this.gf=$,this.cst=P},Bs.prototype.setGradientOpacity=function(c,p){if(this.g._hasOpacity&&!this.g._collapsable){var v,$,P,_=$t("mask"),z=$t("path");_.appendChild(z);var he=tt(),Q=tt();_.setAttribute("id",Q);var ve=$t(c.t===1?"linearGradient":"radialGradient");ve.setAttribute("id",he),ve.setAttribute("spreadMethod","pad"),ve.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)"),ve.appendChild(v),Ce.push(v);z.setAttribute(c.ty==="gf"?"fill":"stroke","url("+Ee()+"#"+he+")"),c.ty==="gs"&&(z.setAttribute("stroke-linecap",Ya[c.lc||2]),z.setAttribute("stroke-linejoin",So[c.lj||2]),c.lj===1&&z.setAttribute("stroke-miterlimit",c.ml)),this.of=ve,this.ms=_,this.ost=Ce,this.maskId=Q,p.msElem=z}},_e([pn],Bs);function ll(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.w=ot.getProp(c,p.w,0,null,this),this.d=new Za(c,p.d||{},"svg",this),this.initGradientData(c,p,v),this._isAnimated=!!this._isAnimated}_e([Bs,pn],ll);function bg(){this.it=[],this.prevViewData=[],this.gr=$t("g")}function sh(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 Er=function(p,v,$,P){if(v===0)return"";var _=p.o,z=p.i,he=p.v,Q,ve=" M"+P.applyToPointStringified(he[0][0],he[0][1]);for(Q=1;Q<v;Q+=1)ve+=" C"+P.applyToPointStringified(_[Q-1][0],_[Q-1][1])+" "+P.applyToPointStringified(z[Q][0],z[Q][1])+" "+P.applyToPointStringified(he[Q][0],he[Q][1]);return $&&v&&(ve+=" C"+P.applyToPointStringified(_[Q-1][0],_[Q-1][1])+" "+P.applyToPointStringified(z[0][0],z[0][1])+" "+P.applyToPointStringified(he[0][0],he[0][1]),ve+="z"),ve},Gc=function(){var c=new Bn,p=new Bn,v={createRenderFunction:$};function $(Re){switch(Re.ty){case"fl":return he;case"gf":return ve;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,le,W,Z,V,j=F.styles.length,G=F.lvl,ne,ae,de,ke,Qe;for(V=0;V<j;V+=1){if(W=F.sh._mdf||ee,F.styles[V].lvl<G){for(ae=p.reset(),ke=G-F.styles[V].lvl,Qe=F.transformers.length-1;!W&&ke>0;)W=F.transformers[Qe].mProps._mdf||W,ke-=1,Qe-=1;if(W)for(ke=G-F.styles[V].lvl,Qe=F.transformers.length-1;ke>0;)de=F.transformers[Qe].mProps.v.props,ae.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]),ke-=1,Qe-=1}else ae=c;if(ne=F.sh.paths,fe=ne._length,W){for(le="",Y=0;Y<fe;Y+=1)Z=ne.shapes[Y],Z&&Z._length&&(le+=Er(Z,Z._length,Z.c,ae));F.caches[V]=le}else le=F.caches[V];F.styles[V].d+=Re.hd===!0?"":le,F.styles[V]._mdf=W||F.styles[V]._mdf}}function he(Re,F,ee){var Y=F.style;(F.c._mdf||ee)&&Y.pElem.setAttribute("fill","rgb("+bt(F.c.v[0])+","+bt(F.c.v[1])+","+bt(F.c.v[2])+")"),(F.o._mdf||ee)&&Y.pElem.setAttribute("fill-opacity",F.o.v)}function Q(Re,F,ee){ve(Re,F,ee),Ce(Re,F,ee)}function ve(Re,F,ee){var Y=F.gf,fe=F.g._hasOpacity,le=F.s.v,W=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,le[0]),Y.setAttribute(j,le[1]),fe&&!F.g._collapsable&&(F.of.setAttribute(V,le[0]),F.of.setAttribute(j,le[1]))}var G,ne,ae,de;if(F.g._cmdf||ee){G=F.cst;var ke=F.g.c;for(ae=G.length,ne=0;ne<ae;ne+=1)de=G[ne],de.setAttribute("offset",ke[ne*4]+"%"),de.setAttribute("stop-color","rgb("+ke[ne*4+1]+","+ke[ne*4+2]+","+ke[ne*4+3]+")")}if(fe&&(F.g._omdf||ee)){var Qe=F.g.o;for(F.g._collapsable?G=F.cst:G=F.ost,ae=G.length,ne=0;ne<ae;ne+=1)de=G[ne],F.g._collapsable||de.setAttribute("offset",Qe[ne*2]+"%"),de.setAttribute("stop-opacity",Qe[ne*2+1])}if(Re.t===1)(F.e._mdf||ee)&&(Y.setAttribute("x2",W[0]),Y.setAttribute("y2",W[1]),fe&&!F.g._collapsable&&(F.of.setAttribute("x2",W[0]),F.of.setAttribute("y2",W[1])));else{var Je;if((F.s._mdf||F.e._mdf||ee)&&(Je=Math.sqrt(Math.pow(le[0]-W[0],2)+Math.pow(le[1]-W[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(le[0]-W[0],2)+Math.pow(le[1]-W[1],2)));var Ve=Math.atan2(W[1]-le[1],W[0]-le[0]),ut=F.h.v;ut>=1?ut=.99:ut<=-1&&(ut=-.99);var ft=Je*ut,Le=Math.cos(Ve+F.a.v)*ft+le[0],ye=Math.sin(Ve+F.a.v)*ft+le[1];Y.setAttribute("fx",Le),Y.setAttribute("fy",ye),fe&&!F.g._collapsable&&(F.of.setAttribute("fx",Le),F.of.setAttribute("fy",ye))}}}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("+bt(F.c.v[0])+","+bt(F.c.v[1])+","+bt(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 bn(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=[]}_e([os,Co,Wa,qc,Ls,Vn,Ha],bn),bn.prototype.initSecondaryElement=function(){},bn.prototype.identityMatrix=new Bn,bn.prototype.buildExpressionInterface=function(){},bn.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},bn.prototype.filterUniqueShapes=function(){var c,p=this.shapes.length,v,$,P=this.stylesList.length,_,z=[],he=!1;for($=0;$<P;$+=1){for(_=this.stylesList[$],he=!1,z.length=0,c=0;c<p;c+=1)v=this.shapes[c],v.styles.indexOf(_)!==-1&&(z.push(v),he=v._isAnimated||he);z.length>1&&he&&this.setShapesAsAnimated(z)}},bn.prototype.setShapesAsAnimated=function(c){var p,v=c.length;for(p=0;p<v;p+=1)c[p].setAsAnimated()},bn.prototype.createStyleElement=function(c,p){var v,$=new Wc(c,p),P=$.pElem;if(c.ty==="st")v=new al(this,c,$);else if(c.ty==="fl")v=new ul(this,c,$);else if(c.ty==="gf"||c.ty==="gs"){var _=c.ty==="gf"?Bs:ll;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("+Ee()+"#"+v.maskId+")"))}else c.ty==="no"&&(v=new Hc(this,c,$));return(c.ty==="st"||c.ty==="gs")&&(P.setAttribute("stroke-linecap",Ya[c.lc||2]),P.setAttribute("stroke-linejoin",So[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"]=An(c.bm)),this.stylesList.push($),this.addToAnimatedContents(c,v),v},bn.prototype.createGroupElement=function(c){var p=new bg;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"]=An(c.bm)),p},bn.prototype.createTransformElement=function(c,p){var v=ea.getTransformProperty(this,c,this),$=new sh(v,v.o,p);return this.addToAnimatedContents(c,$),$},bn.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 ih(p,v,P);return this.shapes.push(_),this.addShapeToModifiers(_),this.addToAnimatedContents(c,_),_},bn.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:Gc.createRenderFunction(c),element:p,data:c})},bn.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])},bn.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()},bn.prototype.searchShapes=function(c,p,v,$,P,_,z){var he=[].concat(_),Q,ve=c.length-1,Ce,Re,F=[],ee=[],Y,fe,le;for(Q=ve;Q>=0;Q-=1){if(le=this.searchProcessedElement(c[Q]),le?p[Q]=v[le-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")le?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(!le)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,he,z),c[Q]._render&&p[Q].gr.parentNode!==$&&$.appendChild(p[Q].gr)}else c[Q].ty==="tr"?(le||(p[Q]=this.createTransformElement(c[Q],$)),Y=p[Q].transform,he.push(Y)):c[Q].ty==="sh"||c[Q].ty==="rc"||c[Q].ty==="el"||c[Q].ty==="sr"?(le||(p[Q]=this.createShapeElement(c[Q],he,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"?(le?(fe=p[Q],fe.closed=!1):(fe=Ir.getModifier(c[Q].ty),fe.init(this,c[Q]),p[Q]=fe,this.shapeModifiers.push(fe)),ee.push(fe)):c[Q].ty==="rp"&&(le?(fe=p[Q],fe.closed=!0):(fe=Ir.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(ve=F.length,Q=0;Q<ve;Q+=1)F[Q].closed=!0;for(ve=ee.length,Q=0;Q<ve;Q+=1)ee[Q].closed=!0},bn.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"))},bn.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)},bn.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function cl(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}}cl.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=me,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,he=0,Q,ve=v.m.g,Ce=0,Re=0,F=0,ee=[],Y=0,fe=0,le,W,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,ae;if(c.sz)for(var de=!0,ke=c.sz[0],Qe=c.sz[1],Je,Ve;de;){Ve=this.buildFinalText(c.t),Je=0,Y=0,_=Ve.length,ne=c.tr/1e3*c.finalSize;var ut=-1;for(P=0;P<_;P+=1)ae=Ve[P].charCodeAt(0),z=!1,Ve[P]===" "?ut=P:(ae===13||ae===3)&&(Y=0,z=!0,Je+=c.finalLineHeight||c.finalSize*1.2),p.chars?(V=p.getCharData(Ve[P],Z.fStyle,Z.fFamily),j=z?0:V.w*c.finalSize/100):j=p.measureText(Ve[P],c.f,c.finalSize),Y+j>ke&&Ve[P]!==" "?(ut===-1?_+=1:P=ut,Je+=c.finalLineHeight||c.finalSize*1.2,Ve.splice(P,ut===P?1:0,"\r"),ut=-1,Y=0):(Y+=j,Y+=ne);Je+=Z.ascent*c.finalSize/100,this.canResize&&c.finalSize>this.minimumFontSize&&Qe<Je?(c.finalSize-=1,c.finalLineHeight=c.finalSize*c.lh/c.s):(c.finalText=Ve,_=c.finalText.length,de=!1)}Y=-ne,j=0;var ft=0,Le;for(P=0;P<_;P+=1)if(z=!1,Le=c.finalText[P],ae=Le.charCodeAt(0),ae===13||ae===3?(ft=0,ee.push(Y),fe=Y>fe?Y:fe,Y=-2*ne,Q="",z=!0,F+=1):Q=Le,p.chars?(V=p.getCharData(Le,Z.fStyle,p.getFontByName(c.f).fFamily),j=z?0:V.w*c.finalSize/100):j=p.measureText(Q,c.f,c.finalSize),Le===" "?ft+=j+ne:(Y+=j+ne+ft,ft=0),$.push({l:j,an:j,add:Ce,n:z,anIndexes:[],val:Q,line:F,animatorJustifyOffset:0}),ve==2){if(Ce+=j,Q===""||Q===" "||P===_-1){for((Q===""||Q===" ")&&(Ce-=j);Re<=P;)$[Re].an=Ce,$[Re].ind=he,$[Re].extra=j,Re+=1;he+=1,Ce=0}}else if(ve==3){if(Ce+=j,Q===""||P===_-1){for(Q===""&&(Ce-=j);Re<=P;)$[Re].an=Ce,$[Re].ind=he,$[Re].extra=j,Re+=1;Ce=0,he+=1}}else $[he].ind=he,$[he].extra=0,he+=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 ye=v.a,ue,J;W=ye.length;var pe,Ne,Fe=[];for(le=0;le<W;le+=1){for(ue=ye[le],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,pe=ue.s.b,P=0;P<_;P+=1)J=$[P],J.anIndexes[le]=Ne,(pe==1&&J.val!==""||pe==2&&J.val!==""&&J.val!==" "||pe==3&&(J.n||J.val==" "||P==_-1)||pe==4&&(J.n||P==_-1))&&(ue.s.rn===1&&Fe.push(Ne),Ne+=1);v.a[le].s.totalChars=Ne;var ct=-1,Pt;if(ue.s.rn===1)for(P=0;P<_;P+=1)J=$[P],ct!=J.anIndexes[le]&&(ct=J.anIndexes[le],Pt=Fe.splice(Math.floor(Math.random()*Fe.length),1)[0]),J.anIndexes[le]=Pt}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 $g=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=ot.getProp(_,z.s||{k:0},0,0,this),"e"in z?this.e=ot.getProp(_,z.e,0,0,this):this.e={v:100},this.o=ot.getProp(_,z.o||{k:0},0,0,this),this.xe=ot.getProp(_,z.xe||{k:0},0,0,this),this.ne=ot.getProp(_,z.ne||{k:0},0,0,this),this.sm=ot.getProp(_,z.sm||{k:100},0,0,this),this.a=ot.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 he=0,Q=0,ve=1,Ce=1;this.ne.v>0?he=this.ne.v/100:Q=-this.ne.v/100,this.xe.v>0?ve=1-this.xe.v/100:Ce=1+this.xe.v/100;var Re=fo.getBezierEasing(he,Q,ve,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 le=Y-ee;z=p(c(0,z+.5-ee),Y-ee);var W=-le/2+z,Z=le/2;F=Math.sqrt(1-W*W/(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 he=this.data.r===2?1:100/this.data.totalChars,Q=this.o.v/he,ve=this.s.v/he+Q,Ce=this.e.v/he+Q;if(ve>Ce){var Re=ve;ve=Ce,Ce=Re}this.finalS=ve,this.finalE=Ce}},_e([pn],$);function P(_,z,he){return new $(_,z)}return{getTextSelectorProp:P}}();function xg(c,p,v){var $={propType:!1},P=ot.getProp,_=p.a;this.a={r:_.r?P(c,_.r,0,gt,v):$,rx:_.rx?P(c,_.rx,0,gt,v):$,ry:_.ry?P(c,_.ry,0,gt,v):$,sk:_.sk?P(c,_.sk,0,gt,v):$,sa:_.sa?P(c,_.sa,0,gt,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=$g.getTextSelectorProp(c,p.s,v),this.s.t=p.s.t}function Eo(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)}Eo.prototype.searchProperties=function(){var c,p=this._textData.a.length,v,$=ot.getProp;for(c=0;c<p;c+=1)v=this._textData.a[c],this._animatorsData[c]=new xg(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)},Eo.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,he=this.renderedLetters.length,Q,ve,Ce,Re,F=c.l,ee,Y,fe,le,W,Z,V,j,G,ne,ae,de,ke,Qe,Je;if(this._hasMaskedPath){if(Je=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Ve=Je.v;this._pathData.r.v&&(Ve=Ve.reverse()),ee={tLength:0,segments:[]},Re=Ve._length-1;var ut;for(de=0,Ce=0;Ce<Re;Ce+=1)ut=Xr.buildBezierData(Ve.v[Ce],Ve.v[Ce+1],[Ve.o[Ce][0]-Ve.v[Ce][0],Ve.o[Ce][1]-Ve.v[Ce][1]],[Ve.i[Ce+1][0]-Ve.v[Ce+1][0],Ve.i[Ce+1][1]-Ve.v[Ce+1][1]]),ee.tLength+=ut.segmentLength,ee.segments.push(ut),de+=ut.segmentLength;Ce=Re,Je.v.c&&(ut=Xr.buildBezierData(Ve.v[Ce],Ve.v[0],[Ve.o[Ce][0]-Ve.v[Ce][0],Ve.o[Ce][1]-Ve.v[Ce][1]],[Ve.i[0][0]-Ve.v[0][0],Ve.i[0][1]-Ve.v[0][1]]),ee.tLength+=ut.segmentLength,ee.segments.push(ut),de+=ut.segmentLength),this._pathData.pi=ee}if(ee=this._pathData.pi,Y=this._pathData.f.v,V=0,Z=1,le=0,W=!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],ae=fe.partialLength}Re=F.length,Q=0,ve=0;var ft=c.finalSize*1.2*.714,Le=!0,ye,ue,J,pe,Ne;pe=$.length;var Fe,ct=-1,Pt,Ct,wn,Gt=Y,dr=V,Qn=Z,jn=-1,zn,qn,br,dt,hn,Qr,Ri,us,vi="",ls=this.defaultPropsArray,cs;if(c.j===2||c.j===1){var Xt=0,Cn=0,Ns=c.j===2?-.5:-1,yi=0,fs=!0;for(Ce=0;Ce<Re;Ce+=1)if(F[Ce].n){for(Xt&&(Xt+=Cn);yi<Ce;)F[yi].animatorJustifyOffset=Xt,yi+=1;Xt=0,fs=!0}else{for(J=0;J<pe;J+=1)ye=$[J].a,ye.t.propType&&(fs&&c.j===2&&(Cn+=ye.t.v*Ns),ue=$[J].s,Fe=ue.getMult(F[Ce].anIndexes[J],P.a[J].s.totalChars),Fe.length?Xt+=ye.t.v*Fe[0]*Ns:Xt+=ye.t.v*Fe*Ns);fs=!1}for(Xt&&(Xt+=Cn);yi<Ce;)F[yi].animatorJustifyOffset=Xt,yi+=1}for(Ce=0;Ce<Re;Ce+=1){if(_.reset(),zn=1,F[Ce].n)Q=0,ve+=c.yOffset,ve+=Le?1:0,Y=Gt,Le=!1,this._hasMaskedPath&&(V=dr,Z=Qn,G=ne[V].points,j=G[Z-1],fe=G[Z],ae=fe.partialLength,le=0),vi="",us="",Qr="",cs="",ls=this.defaultPropsArray;else{if(this._hasMaskedPath){if(jn!==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}jn=F[Ce].line}ct!==F[Ce].ind&&(F[ct]&&(Y+=F[ct].extra),Y+=F[Ce].an/2,ct=F[Ce].ind),Y+=v[0]*F[Ce].an*.005;var bi=0;for(J=0;J<pe;J+=1)ye=$[J].a,ye.p.propType&&(ue=$[J].s,Fe=ue.getMult(F[Ce].anIndexes[J],P.a[J].s.totalChars),Fe.length?bi+=ye.p.v[0]*Fe[0]:bi+=ye.p.v[0]*Fe),ye.a.propType&&(ue=$[J].s,Fe=ue.getMult(F[Ce].anIndexes[J],P.a[J].s.totalChars),Fe.length?bi+=ye.a.v[0]*Fe[0]:bi+=ye.a.v[0]*Fe);for(W=!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)*ct/(Re-1),Y+=this._pathData.f.v);W;)le+ae>=Y+bi||!G?(ke=(Y+bi-le)/fe.partialLength,Ct=j.point[0]+(fe.point[0]-j.point[0])*ke,wn=j.point[1]+(fe.point[1]-j.point[1])*ke,_.translate(-v[0]*F[Ce].an*.005,-(v[1]*ft)*.01),W=!1):G&&(le+=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):(le-=fe.partialLength,G=null)),G&&(j=fe,fe=G[Z],ae=fe.partialLength));Pt=F[Ce].an/2-F[Ce].add,_.translate(-Pt,0,0)}else Pt=F[Ce].an/2-F[Ce].add,_.translate(-Pt,0,0),_.translate(-v[0]*F[Ce].an*.005,-v[1]*ft*.01,0);for(J=0;J<pe;J+=1)ye=$[J].a,ye.t.propType&&(ue=$[J].s,Fe=ue.getMult(F[Ce].anIndexes[J],P.a[J].s.totalChars),(Q!==0||c.j!==0)&&(this._hasMaskedPath?Fe.length?Y+=ye.t.v*Fe[0]:Y+=ye.t.v*Fe:Fe.length?Q+=ye.t.v*Fe[0]:Q+=ye.t.v*Fe));for(c.strokeWidthAnim&&(br=c.sw||0),c.strokeColorAnim&&(c.sc?qn=[c.sc[0],c.sc[1],c.sc[2]]:qn=[0,0,0]),c.fillColorAnim&&c.fc&&(dt=[c.fc[0],c.fc[1],c.fc[2]]),J=0;J<pe;J+=1)ye=$[J].a,ye.a.propType&&(ue=$[J].s,Fe=ue.getMult(F[Ce].anIndexes[J],P.a[J].s.totalChars),Fe.length?_.translate(-ye.a.v[0]*Fe[0],-ye.a.v[1]*Fe[1],ye.a.v[2]*Fe[2]):_.translate(-ye.a.v[0]*Fe,-ye.a.v[1]*Fe,ye.a.v[2]*Fe));for(J=0;J<pe;J+=1)ye=$[J].a,ye.s.propType&&(ue=$[J].s,Fe=ue.getMult(F[Ce].anIndexes[J],P.a[J].s.totalChars),Fe.length?_.scale(1+(ye.s.v[0]-1)*Fe[0],1+(ye.s.v[1]-1)*Fe[1],1):_.scale(1+(ye.s.v[0]-1)*Fe,1+(ye.s.v[1]-1)*Fe,1));for(J=0;J<pe;J+=1){if(ye=$[J].a,ue=$[J].s,Fe=ue.getMult(F[Ce].anIndexes[J],P.a[J].s.totalChars),ye.sk.propType&&(Fe.length?_.skewFromAxis(-ye.sk.v*Fe[0],ye.sa.v*Fe[1]):_.skewFromAxis(-ye.sk.v*Fe,ye.sa.v*Fe)),ye.r.propType&&(Fe.length?_.rotateZ(-ye.r.v*Fe[2]):_.rotateZ(-ye.r.v*Fe)),ye.ry.propType&&(Fe.length?_.rotateY(ye.ry.v*Fe[1]):_.rotateY(ye.ry.v*Fe)),ye.rx.propType&&(Fe.length?_.rotateX(ye.rx.v*Fe[0]):_.rotateX(ye.rx.v*Fe)),ye.o.propType&&(Fe.length?zn+=(ye.o.v*Fe[0]-zn)*Fe[0]:zn+=(ye.o.v*Fe-zn)*Fe),c.strokeWidthAnim&&ye.sw.propType&&(Fe.length?br+=ye.sw.v*Fe[0]:br+=ye.sw.v*Fe),c.strokeColorAnim&&ye.sc.propType)for(hn=0;hn<3;hn+=1)Fe.length?qn[hn]+=(ye.sc.v[hn]-qn[hn])*Fe[0]:qn[hn]+=(ye.sc.v[hn]-qn[hn])*Fe;if(c.fillColorAnim&&c.fc){if(ye.fc.propType)for(hn=0;hn<3;hn+=1)Fe.length?dt[hn]+=(ye.fc.v[hn]-dt[hn])*Fe[0]:dt[hn]+=(ye.fc.v[hn]-dt[hn])*Fe;ye.fh.propType&&(Fe.length?dt=Vt(dt,ye.fh.v*Fe[0]):dt=Vt(dt,ye.fh.v*Fe)),ye.fs.propType&&(Fe.length?dt=kt(dt,ye.fs.v*Fe[0]):dt=kt(dt,ye.fs.v*Fe)),ye.fb.propType&&(Fe.length?dt=Mt(dt,ye.fb.v*Fe[0]):dt=Mt(dt,ye.fb.v*Fe))}}for(J=0;J<pe;J+=1)ye=$[J].a,ye.p.propType&&(ue=$[J].s,Fe=ue.getMult(F[Ce].anIndexes[J],P.a[J].s.totalChars),this._hasMaskedPath?Fe.length?_.translate(0,ye.p.v[1]*Fe[0],-ye.p.v[2]*Fe[1]):_.translate(0,ye.p.v[1]*Fe,-ye.p.v[2]*Fe):Fe.length?_.translate(ye.p.v[0]*Fe[0],ye.p.v[1]*Fe[1],-ye.p.v[2]*Fe[2]):_.translate(ye.p.v[0]*Fe,ye.p.v[1]*Fe,-ye.p.v[2]*Fe));if(c.strokeWidthAnim&&(Qr=br<0?0:br),c.strokeColorAnim&&(Ri="rgb("+Math.round(qn[0]*255)+","+Math.round(qn[1]*255)+","+Math.round(qn[2]*255)+")"),c.fillColorAnim&&c.fc&&(us="rgb("+Math.round(dt[0]*255)+","+Math.round(dt[1]*255)+","+Math.round(dt[2]*255)+")"),this._hasMaskedPath){if(_.translate(0,-c.ls),_.translate(0,v[1]*ft*.01+ve,0),this._pathData.p.v){Qe=(fe.point[1]-j.point[1])/(fe.point[0]-j.point[0]);var ds=Math.atan(Qe)*180/Math.PI;fe.point[0]<j.point[0]&&(ds+=180),_.rotate(-ds*Math.PI/180)}_.translate(Ct,wn,0),Y-=v[0]*F[Ce].an*.005,F[Ce+1]&&ct!==F[Ce+1].ind&&(Y+=F[Ce].an/2,Y+=c.tr*.001*c.finalSize)}else{switch(_.translate(Q,ve,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(Pt,0,0),_.translate(v[0]*F[Ce].an*.005,v[1]*ft*.01,0),Q+=F[Ce].l+c.tr*.001*c.finalSize}z==="html"?vi=_.toCSS():z==="svg"?vi=_.to2dCSS():ls=[_.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]],cs=zn}he<=Ce?(Ne=new cl(cs,Qr,Ri,us,vi,ls),this.renderedLetters.push(Ne),he+=1,this.lettersChangedFlag=!0):(Ne=this.renderedLetters[Ce],this.lettersChangedFlag=Ne.update(cs,Qr,Ri,us,vi,ls)||this.lettersChangedFlag)}}},Eo.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Eo.prototype.mHelper=new Bn,Eo.prototype.defaultPropsArray=[],_e([pn],Eo);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 Eo(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,_+=Er(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 cl,gi.prototype.destroy=function(){};var wg={shapes:[]};function Dr(c,p,v){this.textSpans=[],this.renderType="svg",this.initElement(c,p,v)}_e([os,Co,Wa,Ls,Vn,Ha,gi],Dr),Dr.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=$t("text"))},Dr.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),$},Dr.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},Dr.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||[],he=!!this.globalData.fontManager.chars;p=z.length;var Q,ve=this.mHelper,Ce="",Re=this.data.singleShape,F=0,ee=0,Y=!0,fe=v.tr*.001*v.finalSize;if(Re&&!he&&!v.sz){var le=this.textContainer,W="start";switch(v.j){case 1:W="end";break;case 2:W="middle";break;default:W="start";break}le.setAttribute("text-anchor",W),le.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",le.appendChild(Q),this.textSpans[c]||(this.textSpans[c]={span:null,glyph:null}),this.textSpans[c].span=Q,ee+=v.finalLineHeight;this.layerElement.appendChild(le)}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}),!he||!Re||c===0){if(Q=V>c?this.textSpans[c].span:$t(he?"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,he){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(ve.reset(),Re&&(z[c].n&&(F=-fe,ee+=v.yOffset,ee+=Y?1:0,Y=!1),this.applyTextPropertiesToMatrix(v,ve,z[c].line,F,ee),F+=z[c].l||0,F+=fe),he){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 ae=wg;j.data&&j.data.shapes&&(ae=this.buildShapeData(j.data,v.finalSize)),ne=new bn(ae,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("+ve.props[12]+","+ve.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},Dr.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},Dr.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))},Dr.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 Yc(c,p,v){this.initElement(c,p,v)}_e([Ga],Yc),Yc.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 Vs(c,p,v){this.initFrame(),this.initBaseData(c,p,v),this.initFrame(),this.initTransform(c,p,v),this.initHierarchy()}Vs.prototype.prepareFrame=function(c){this.prepareProperties(c,!0)},Vs.prototype.renderFrame=function(){},Vs.prototype.getBaseElement=function(){return null},Vs.prototype.destroy=function(){},Vs.prototype.sourceRectAtTime=function(){},Vs.prototype.hide=function(){},_e([os,Co,Ls,Vn],Vs);function Nn(){}_e([cr],Nn),Nn.prototype.createNull=function(c){return new Vs(c,this.globalData,this)},Nn.prototype.createShape=function(c){return new bn(c,this.globalData,this)},Nn.prototype.createText=function(c){return new Dr(c,this.globalData,this)},Nn.prototype.createImage=function(c){return new Ga(c,this.globalData,this)},Nn.prototype.createSolid=function(c){return new Yc(c,this.globalData,this)},Nn.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=tt();v.setAttribute("id",P),v.appendChild($),this.layerElement.setAttribute("clip-path","url("+Ee()+"#"+P+")"),p.appendChild(v),this.layers=c.layers,this.elements=Ke(c.layers.length)},Nn.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},Nn.prototype.updateContainerSize=function(){},Nn.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},Nn.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(_)}}}},Nn.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}}},Nn.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()}},Nn.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)}},Nn.prototype.hide=function(){this.layerElement.style.display="none"},Nn.prototype.show=function(){this.layerElement.style.display="block"};function Mi(){}_e([os,Co,Ls,Vn,Ha],Mi),Mi.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()},Mi.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))}},Mi.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()},Mi.prototype.setElements=function(c){this.elements=c},Mi.prototype.getElements=function(){return this.elements},Mi.prototype.destroyElements=function(){var c,p=this.layers.length;for(c=0;c<p;c+=1)this.elements[c]&&this.elements[c].destroy()},Mi.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?ot.getProp(this,c.tm,0,p.frameRate,this):{_placeholder:!0}}_e([Nn,Mi,Wa],Jr),Jr.prototype.createComp=function(c){return new Jr(c,this.globalData,this)};function ia(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=tt();$.setAttribute("id",P),$.textContent=p.title,this.svgElement.appendChild($),v+=P}if(p&&p.description){var _=$t("desc"),z=tt();_.setAttribute("id",z),_.textContent=p.description,this.svgElement.appendChild(_),v+=" "+z}v&&this.svgElement.setAttribute("aria-labelledby",v);var he=$t("defs");this.svgElement.appendChild(he);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:he,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return _e([Nn],ia),ia.prototype.createComp=function(c){return new Jr(c,this.globalData,this)},Hu("svg",ia),Ir.registerModifier("tm",Lr),Ir.registerModifier("pb",Rs),Ir.registerModifier("rp",yr),Ir.registerModifier("rd",mo),Ir.registerModifier("zz",bo),Ir.registerModifier("op",xn),qt})})(a,a.exports);var l=a.exports;function d(H,ie){var M=H==null?null:typeof Symbol<"u"&&H[Symbol.iterator]||H["@@iterator"];if(M!=null){var B,L,me,U,te=[],xe=!0,Ee=!1;try{if(me=(M=M.call(H)).next,ie!==0)for(;!(xe=(B=me.call(M)).done)&&(te.push(B.value),te.length!==ie);xe=!0);}catch(Oe){Ee=!0,L=Oe}finally{try{if(!xe&&M.return!=null&&(U=M.return(),Object(U)!==U))return}finally{if(Ee)throw L}}return te}}function h(H,ie){var M=Object.keys(H);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(H);ie&&(B=B.filter(function(L){return Object.getOwnPropertyDescriptor(H,L).enumerable})),M.push.apply(M,B)}return M}function m(H){for(var ie=1;ie<arguments.length;ie++){var M=arguments[ie]!=null?arguments[ie]:{};ie%2?h(Object(M),!0).forEach(function(B){g(H,B,M[B])}):Object.getOwnPropertyDescriptors?Object.defineProperties(H,Object.getOwnPropertyDescriptors(M)):h(Object(M)).forEach(function(B){Object.defineProperty(H,B,Object.getOwnPropertyDescriptor(M,B))})}return H}function g(H,ie,M){return ie=R(ie),ie in H?Object.defineProperty(H,ie,{value:M,enumerable:!0,configurable:!0,writable:!0}):H[ie]=M,H}function b(H,ie){if(H==null)return{};var M={},B=Object.keys(H),L,me;for(me=0;me<B.length;me++)L=B[me],!(ie.indexOf(L)>=0)&&(M[L]=H[L]);return M}function x(H,ie){if(H==null)return{};var M=b(H,ie),B,L;if(Object.getOwnPropertySymbols){var me=Object.getOwnPropertySymbols(H);for(L=0;L<me.length;L++)B=me[L],!(ie.indexOf(B)>=0)&&Object.prototype.propertyIsEnumerable.call(H,B)&&(M[B]=H[B])}return M}function C(H,ie){return D(H)||d(H,ie)||S(H,ie)||T()}function D(H){if(Array.isArray(H))return H}function S(H,ie){if(H){if(typeof H=="string")return w(H,ie);var M=Object.prototype.toString.call(H).slice(8,-1);if(M==="Object"&&H.constructor&&(M=H.constructor.name),M==="Map"||M==="Set")return Array.from(H);if(M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return w(H,ie)}}function w(H,ie){(ie==null||ie>H.length)&&(ie=H.length);for(var M=0,B=new Array(ie);M<ie;M++)B[M]=H[M];return B}function T(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
137
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O(H,ie){if(typeof H!="object"||H===null)return H;var M=H[Symbol.toPrimitive];if(M!==void 0){var B=M.call(H,ie);if(typeof B!="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ie==="string"?String:Number)(H)}function R(H){var ie=O(H,"string");return typeof ie=="symbol"?ie:String(ie)}var k=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],K=function(ie,M){var B=ie.animationData,L=ie.loop,me=ie.autoplay,U=ie.initialSegment,te=ie.onComplete,xe=ie.onLoopComplete,Ee=ie.onEnterFrame,Oe=ie.onSegmentStart,_e=ie.onConfigReady,Ye=ie.onDataReady,He=ie.onDataFailed,De=ie.onLoadedImages,Ke=ie.onDOMLoaded,We=ie.onDestroy;ie.lottieRef,ie.renderer,ie.name,ie.assetsPath,ie.rendererSettings;var Ae=x(ie,k),Ie=r.useState(!1),et=C(Ie,2),xt=et[0],fn=et[1],bt=r.useRef(),Rt=r.useRef(null),ci=function(){var Mt;(Mt=bt.current)===null||Mt===void 0||Mt.play()},gt=function(){var Mt;(Mt=bt.current)===null||Mt===void 0||Mt.stop()},Tt=function(){var Mt;(Mt=bt.current)===null||Mt===void 0||Mt.pause()},Ft=function(Mt){var Vt;(Vt=bt.current)===null||Vt===void 0||Vt.setSpeed(Mt)},we=function(Mt,Vt){var Ht;(Ht=bt.current)===null||Ht===void 0||Ht.goToAndPlay(Mt,Vt)},Pe=function(Mt,Vt){var Ht;(Ht=bt.current)===null||Ht===void 0||Ht.goToAndStop(Mt,Vt)},Be=function(Mt){var Vt;(Vt=bt.current)===null||Vt===void 0||Vt.setDirection(Mt)},rt=function(Mt,Vt){var Ht;(Ht=bt.current)===null||Ht===void 0||Ht.playSegments(Mt,Vt)},it=function(Mt){var Vt;(Vt=bt.current)===null||Vt===void 0||Vt.setSubframe(Mt)},Xe=function(Mt){var Vt;return(Vt=bt.current)===null||Vt===void 0?void 0:Vt.getDuration(Mt)},tt=function(){var Mt;(Mt=bt.current)===null||Mt===void 0||Mt.destroy(),bt.current=void 0},_t=function(){var Mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Vt;if(Rt.current){(Vt=bt.current)===null||Vt===void 0||Vt.destroy();var Ht=m(m(m({},ie),Mt),{},{container:Rt.current});return bt.current=l.loadAnimation(Ht),fn(!!bt.current),function(){var gr;(gr=bt.current)===null||gr===void 0||gr.destroy(),bt.current=void 0}}};r.useEffect(function(){var kt=_t();return function(){return kt==null?void 0:kt()}},[B,L]),r.useEffect(function(){bt.current&&(bt.current.autoplay=!!me)},[me]),r.useEffect(function(){if(bt.current){if(!U){bt.current.resetSegments(!0);return}!Array.isArray(U)||!U.length||((bt.current.currentRawFrame<U[0]||bt.current.currentRawFrame>U[1])&&(bt.current.currentRawFrame=U[0]),bt.current.setSegment(U[0],U[1]))}},[U]),r.useEffect(function(){var kt=[{name:"complete",handler:te},{name:"loopComplete",handler:xe},{name:"enterFrame",handler:Ee},{name:"segmentStart",handler:Oe},{name:"config_ready",handler:_e},{name:"data_ready",handler:Ye},{name:"data_failed",handler:He},{name:"loaded_images",handler:De},{name:"DOMLoaded",handler:Ke},{name:"destroy",handler:We}],Mt=kt.filter(function(Ht){return Ht.handler!=null});if(Mt.length){var Vt=Mt.map(function(Ht){var gr;return(gr=bt.current)===null||gr===void 0||gr.addEventListener(Ht.name,Ht.handler),function(){var Zr;(Zr=bt.current)===null||Zr===void 0||Zr.removeEventListener(Ht.name,Ht.handler)}});return function(){Vt.forEach(function(Ht){return Ht()})}}},[te,xe,Ee,Oe,_e,Ye,He,De,Ke,We]);var en=s.default.createElement("div",m({style:M,ref:Rt},Ae));return{View:en,play:ci,stop:gt,pause:Tt,setSpeed:Ft,goToAndStop:Pe,goToAndPlay:we,setDirection:Be,playSegments:rt,setSubframe:it,getDuration:Xe,destroy:tt,animationContainerRef:Rt,animationLoaded:xt,animationItem:bt.current}};function q(H){var ie=H.getBoundingClientRect(),M=ie.top,B=ie.height,L=window.innerHeight-M,me=window.innerHeight+B;return L/me}function ce(H,ie,M){var B=H.getBoundingClientRect(),L=B.top,me=B.left,U=B.width,te=B.height,xe=(ie-me)/U,Ee=(M-L)/te;return{x:xe,y:Ee}}var oe=function(ie){var M=ie.wrapperRef,B=ie.animationItem,L=ie.mode,me=ie.actions;r.useEffect(function(){var U=M.current;if(!(!U||!B||!me.length)){B.stop();var te=function(){var Oe=null,_e=function(){var He=q(U),De=me.find(function(We){var Ae=We.visibility;return Ae&&He>=Ae[0]&&He<=Ae[1]});if(De){if(De.type==="seek"&&De.visibility&&De.frames.length===2){var Ke=De.frames[0]+Math.ceil((He-De.visibility[0])/(De.visibility[1]-De.visibility[0])*De.frames[1]);//! goToAndStop must be relative to the start of the current segment
138
- B.goToAndStop(Ke-B.firstFrame-1,!0)}De.type==="loop"&&(Oe===null||Oe!==De.frames||B.isPaused)&&(B.playSegments(De.frames,!0),Oe=De.frames),De.type==="play"&&B.isPaused&&(B.resetSegments(!0),B.play()),De.type==="stop"&&B.goToAndStop(De.frames[0]-B.firstFrame-1,!0)}};return document.addEventListener("scroll",_e),function(){document.removeEventListener("scroll",_e)}},xe=function(){var Oe=function(De,Ke){var We=De,Ae=Ke;if(We!==-1&&Ae!==-1){var Ie=ce(U,We,Ae);We=Ie.x,Ae=Ie.y}var et=me.find(function(bt){var Rt=bt.position;return Rt&&Array.isArray(Rt.x)&&Array.isArray(Rt.y)?We>=Rt.x[0]&&We<=Rt.x[1]&&Ae>=Rt.y[0]&&Ae<=Rt.y[1]:Rt&&!Number.isNaN(Rt.x)&&!Number.isNaN(Rt.y)?We===Rt.x&&Ae===Rt.y:!1});if(et){if(et.type==="seek"&&et.position&&Array.isArray(et.position.x)&&Array.isArray(et.position.y)&&et.frames.length===2){var xt=(We-et.position.x[0])/(et.position.x[1]-et.position.x[0]),fn=(Ae-et.position.y[0])/(et.position.y[1]-et.position.y[0]);B.playSegments(et.frames,!0),B.goToAndStop(Math.ceil((xt+fn)/2*(et.frames[1]-et.frames[0])),!0)}et.type==="loop"&&B.playSegments(et.frames,!0),et.type==="play"&&(B.isPaused&&B.resetSegments(!1),B.playSegments(et.frames)),et.type==="stop"&&B.goToAndStop(et.frames[0],!0)}},_e=function(De){Oe(De.clientX,De.clientY)},Ye=function(){Oe(-1,-1)};return U.addEventListener("mousemove",_e),U.addEventListener("mouseout",Ye),function(){U.removeEventListener("mousemove",_e),U.removeEventListener("mouseout",Ye)}};switch(L){case"scroll":return te();case"cursor":return xe()}}},[L,B])},I=function(ie){var M=ie.actions,B=ie.mode,L=ie.lottieObj,me=L.animationItem,U=L.View,te=L.animationContainerRef;return oe({actions:M,animationItem:me,mode:B,wrapperRef:te}),U},be=["style","interactivity"],$e=function(ie){var M,B,L,me=ie.style,U=ie.interactivity,te=x(ie,be),xe=K(te,me),Ee=xe.View,Oe=xe.play,_e=xe.stop,Ye=xe.pause,He=xe.setSpeed,De=xe.goToAndStop,Ke=xe.goToAndPlay,We=xe.setDirection,Ae=xe.playSegments,Ie=xe.setSubframe,et=xe.getDuration,xt=xe.destroy,fn=xe.animationContainerRef,bt=xe.animationLoaded,Rt=xe.animationItem;return r.useEffect(function(){ie.lottieRef&&(ie.lottieRef.current={play:Oe,stop:_e,pause:Ye,setSpeed:He,goToAndPlay:Ke,goToAndStop:De,setDirection:We,playSegments:Ae,setSubframe:Ie,getDuration:et,destroy:xt,animationContainerRef:fn,animationLoaded:bt,animationItem:Rt})},[(M=ie.lottieRef)===null||M===void 0?void 0:M.current]),I({lottieObj:{View:Ee,play:Oe,stop:_e,pause:Ye,setSpeed:He,goToAndStop:De,goToAndPlay:Ke,setDirection:We,playSegments:Ae,setSubframe:Ie,getDuration:et,destroy:xt,animationContainerRef:fn,animationLoaded:bt,animationItem:Rt},actions:(B=U==null?void 0:U.actions)!==null&&B!==void 0?B:[],mode:(L=U==null?void 0:U.mode)!==null&&L!==void 0?L:"scroll"})};n.LottiePlayer=l,n.default=$e,n.useLottie=K,n.useLottieInteractivity=I,Object.defineProperty(n,"__esModule",{value:!0})})}(Of,Of.exports)),Of.exports}var _ie=Pie();const Mie=ts(_ie),Rie=A.createContext({});function Fie(e){const t=A.useRef(null);return t.current===null&&(t.current=e()),t.current}const T$=typeof window<"u",kie=T$?A.useLayoutEffect:A.useEffect,CO=A.createContext(null),SO=A.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Yh=["read","resolveKeyframes","update","preRender","render","postRender"];function Oie(e,t){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(h){o.has(h)&&(d.schedule(h),e()),h(a)}const d={schedule:(h,m=!1,g=!1)=>{const x=g&&i?n:r;return m&&o.add(h),x.has(h)||x.add(h),h},cancel:h=>{r.delete(h),o.delete(h)},process:h=>{if(a=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 f4={useManualTiming:!1},Iie=40;function EO(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Yh.reduce((S,w)=>(S[w]=Oie(s),S),{}),{read:a,resolveKeyframes:l,update:d,preRender:h,render:m,postRender:g}=o,b=()=>{const S=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(S-i.timestamp,Iie),1),i.timestamp=S,i.isProcessing=!0,a.process(i),l.process(i),d.process(i),h.process(i),m.process(i),g.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(b))},x=()=>{n=!0,r=!0,i.isProcessing||e(b)};return{schedule:Yh.reduce((S,w)=>{const T=o[w];return S[w]=(O,R=!1,k=!1)=>(n||x(),T.schedule(O,R,k)),S},{}),cancel:S=>{for(let w=0;w<Yh.length;w++)o[Yh[w]].cancel(S)},state:i,steps:o}}const cc=e=>e,{schedule:li,cancel:d4,state:am}=EO(typeof requestAnimationFrame<"u"?requestAnimationFrame:cc,!0),P$=A.createContext({strict:!1}),UT={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},fc={};for(const e in UT)fc[e]={isEnabled:t=>UT[e].some(n=>!!t[n])};function zT(e){for(const t in e)fc[t]={...fc[t],...e[t]}}function Lie({children:e,features:t,strict:n=!1}){const[,r]=A.useState(!T1(t)),i=A.useRef(void 0);if(!T1(t)){const{renderer:s,...o}=t;i.current=s,zT(o)}return A.useEffect(()=>{T1(t)&&t().then(({renderer:s,...o})=>{zT(o),i.current=s,r(!0)})},[]),qo.jsx(P$.Provider,{value:{renderer:i.current,strict:n},children:e})}function T1(e){return typeof e=="function"}const Bie=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")||Bie.has(e)}let DO=e=>!um(e);function Vie(e){e&&(DO=t=>t.startsWith("on")?!um(t):e(t))}try{Vie(require("@emotion/is-prop-valid").default)}catch{}function Nie(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(DO(i)||n===!0&&um(i)||!t&&!um(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const qT=new Set;function lg(e,t,n){e||qT.has(t)||(console.warn(t),qT.add(t))}function jie(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&lg(!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 cg=A.createContext({});function fg(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function vd(e){return typeof e=="string"||Array.isArray(e)}const _$=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],M$=["initial",..._$];function dg(e){return fg(e.animate)||M$.some(t=>vd(e[t]))}function AO(e){return!!(dg(e)||e.variants)}function Kie(e,t){if(dg(e)){const{initial:n,animate:r}=e;return{initial:n===!1||vd(n)?n:void 0,animate:vd(r)?r:void 0}}return e.inherit!==!1?t:{}}function Uie(e){const{initial:t,animate:n}=Kie(e,A.useContext(cg));return A.useMemo(()=>({initial:t,animate:n}),[WT(t),WT(n)])}function WT(e){return Array.isArray(e)?e.join(" "):e}const zie=Symbol.for("motionComponentSymbol");function TO(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function qie(e,t,n){return A.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):TO(n)&&(n.current=r))},[t])}const R$=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Wie="framerAppearId",PO="data-"+R$(Wie),Hie=A.createContext({}),{schedule:Gie}=EO(queueMicrotask,!1);function Yie(e,t,n,r,i){var C,D;const{visualElement:s}=A.useContext(cg),o=A.useContext(P$),a=A.useContext(CO),l=A.useContext(SO).reducedMotion,d=A.useRef(null);r=r||o.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:s,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const h=d.current,m=A.useContext(Hie);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&Zie(d.current,n,i,m);const g=A.useRef(!1);A.useInsertionEffect(()=>{h&&g.current&&h.update(n,a)});const b=n[PO],x=A.useRef(!!b&&!((C=window.MotionHandoffIsComplete)!=null&&C.call(window,b))&&((D=window.MotionHasOptimisedAnimation)==null?void 0:D.call(window,b)));return kie(()=>{h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),Gie.render(h.render),x.current&&h.animationState&&h.animationState.animateChanges())}),A.useEffect(()=>{h&&(!x.current&&h.animationState&&h.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var S;(S=window.MotionHandoffMarkAsComplete)==null||S.call(window,b)}),x.current=!1))}),h}function Zie(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:d,layoutCrossfade:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:_O(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&TO(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:l,layoutRoot:d})}function _O(e){if(e)return e.options.allowProjection!==!1?e.projection:_O(e.parent)}let qd=()=>{},dc=()=>{};process.env.NODE_ENV!=="production"&&(qd=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},dc=(e,t)=>{if(!e)throw new Error(t)});function Xie({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){function s(a,l){let d;const h={...A.useContext(SO),...a,layoutId:Jie(a)},{isStatic:m}=h,g=Uie(a),b=r(a,m);if(!m&&T$){Qie(h,e);const x=ese(h);d=x.MeasureLayout,g.visualElement=Yie(i,b,h,t,x.ProjectionNode)}return qo.jsxs(cg.Provider,{value:g,children:[d&&g.visualElement?qo.jsx(d,{visualElement:g.visualElement,...h}):null,n(i,a,qie(b,g.visualElement,l),b,m,g.visualElement)]})}s.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const o=A.forwardRef(s);return o[zie]=i,o}function Jie({layoutId:e}){const t=A.useContext(Rie).id;return t&&e!==void 0?t+"-"+e:e}function Qie(e,t){A.useContext(P$).strict,process.env.NODE_ENV}function ese(e){const{drag:t,layout:n}=fc;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const MO=e=>t=>typeof t=="string"&&t.startsWith(e),RO=MO("--"),tse=MO("var(--"),F$=e=>tse(e)?nse.test(e.split("/*")[0].trim()):!1,nse=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,rse={},Ac=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Uu=new Set(Ac);function FO(e,{layout:t,layoutId:n}){return Uu.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!rse[e]||e==="opacity")}const qr=e=>!!(e&&e.getVelocity),kO=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Lu=(e,t,n)=>n>t?t:n<e?e:n,Tc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},yd={...Tc,transform:e=>Lu(0,1,e)},Zh={...Tc,default:1},Wd=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ga=Wd("deg"),Gl=Wd("%"),At=Wd("px"),ise=Wd("vh"),sse=Wd("vw"),HT={...Gl,parse:e=>Gl.parse(e)/100,transform:e=>Gl.transform(e*100)},ose={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},ase={rotate:ga,rotateX:ga,rotateY:ga,rotateZ:ga,scale:Zh,scaleX:Zh,scaleY:Zh,scaleZ:Zh,skew:ga,skewX:ga,skewY:ga,distance:At,translateX:At,translateY:At,translateZ:At,x:At,y:At,z:At,perspective:At,transformPerspective:At,opacity:yd,originX:HT,originY:HT,originZ:At},GT={...Tc,transform:Math.round},k$={...ose,...ase,zIndex:GT,size:At,fillOpacity:yd,strokeOpacity:yd,numOctaves:GT},use={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},lse=Ac.length;function cse(e,t,n){let r="",i=!0;for(let s=0;s<lse;s++){const o=Ac[s],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const d=kO(a,k$[o]);if(!l){i=!1;const h=use[o]||o;r+=`${h}(${d}) `}n&&(t[o]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function O$(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let o=!1,a=!1;for(const l in t){const d=t[l];if(Uu.has(l)){o=!0;continue}else if(RO(l)){i[l]=d;continue}else{const h=kO(d,k$[l]);l.startsWith("origin")?(a=!0,s[l]=h):r[l]=h}}if(t.transform||(o||n?r.transform=cse(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:d="50%",originZ:h=0}=s;r.transformOrigin=`${l} ${d} ${h}`}}const I$=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function OO(e,t,n){for(const r in t)!qr(t[r])&&!FO(r,n)&&(e[r]=t[r])}function fse({transformTemplate:e},t){return A.useMemo(()=>{const n=I$();return O$(n,t,e),Object.assign({},n.vars,n.style)},[t])}function dse(e,t){const n=e.style||{},r={};return OO(r,n,e),Object.assign(r,fse(e,t)),r}function hse(e,t){const n={},r=dse(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 pse=["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 L$(e){return typeof e!="string"||e.includes("-")?!1:!!(pse.indexOf(e)>-1||/[A-Z]/u.test(e))}const mse={offset:"stroke-dashoffset",array:"stroke-dasharray"},gse={offset:"strokeDashoffset",array:"strokeDasharray"};function vse(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?mse:gse;e[s.offset]=At.transform(-r);const o=At.transform(t),a=At.transform(n);e[s.array]=`${o} ${a}`}function YT(e,t,n){return typeof e=="string"?e:At.transform(t+n*e)}function yse(e,t,n){const r=YT(t,e.x,e.width),i=YT(n,e.y,e.height);return`${r} ${i}`}function B$(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...d},h,m){if(O$(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:b,dimensions:x}=e;g.transform&&(x&&(b.transform=g.transform),delete g.transform),x&&(i!==void 0||s!==void 0||b.transform)&&(b.transformOrigin=yse(x,i!==void 0?i:.5,s!==void 0?s:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),o!==void 0&&vse(g,o,a,l,!1)}const IO=()=>({...I$(),attrs:{}}),V$=e=>typeof e=="string"&&e.toLowerCase()==="svg";function bse(e,t,n,r){const i=A.useMemo(()=>{const s=IO();return B$(s,t,V$(r),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};OO(s,e.style,e),i.style={...s,...i.style}}return i}function $se(e=!1){return(n,r,i,{latestValues:s},o)=>{const l=(L$(n)?bse:hse)(r,s,o,n),d=Nie(r,typeof n=="string",e),h=n!==A.Fragment?{...d,...l,ref:i}:{},{children:m}=r,g=A.useMemo(()=>qr(m)?m.get():m,[m]);return A.createElement(n,{...h,children:g})}}function ZT(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function N$(e,t,n,r){if(typeof t=="function"){const[i,s]=ZT(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]=ZT(r);t=t(n!==void 0?n:e.custom,i,s)}return t}const h4=e=>Array.isArray(e),xse=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),wse=e=>h4(e)?e[e.length-1]||0:e;function Cse(e){const t=qr(e)?e.get():e;return xse(t)?t.toValue():t}function Sse({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,s){const o={latestValues:Ese(r,i,s,e),renderState:t()};return n&&(o.onMount=a=>n({props:r,current:a,...o}),o.onUpdate=a=>n(a)),o}const LO=e=>(t,n)=>{const r=A.useContext(cg),i=A.useContext(CO),s=()=>Sse(e,t,r,i);return n?s():Fie(s)};function Ese(e,t,n,r){const i={},s=r(e,{});for(const g in s)i[g]=Cse(s[g]);let{initial:o,animate:a}=e;const l=dg(e),d=AO(e);t&&d&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let h=n?n.initial===!1:!1;h=h||o===!1;const m=h?a:o;if(m&&typeof m!="boolean"&&!fg(m)){const g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){const x=N$(e,g[b]);if(x){const{transitionEnd:C,transition:D,...S}=x;for(const w in S){let T=S[w];if(Array.isArray(T)){const O=h?T.length-1:0;T=T[O]}T!==null&&(i[w]=T)}for(const w in C)i[w]=C[w]}}}return i}function j$(e,t,n){var s;const{style:r}=e,i={};for(const o in r)(qr(r[o])||t.style&&qr(t.style[o])||FO(o,e)||((s=n==null?void 0:n.getValue(o))==null?void 0:s.liveStyle)!==void 0)&&(i[o]=r[o]);return i}const Dse={useVisualState:LO({scrapeMotionValuesFromProps:j$,createRenderState:I$})};function BO(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function VO(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])}const NO=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 jO(e,t,n,r){VO(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(NO.has(i)?i:R$(i),t.attrs[i])}function KO(e,t,n){const r=j$(e,t,n);for(const i in e)if(qr(e[i])||qr(t[i])){const s=Ac.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const XT=["x","y","width","height","cx","cy","r"],Ase={useVisualState:LO({scrapeMotionValuesFromProps:KO,createRenderState:IO,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let s=!!e.drag;if(!s){for(const a in i)if(Uu.has(a)){s=!0;break}}if(!s)return;let o=!t;if(t)for(let a=0;a<XT.length;a++){const l=XT[a];e[l]!==t[l]&&(o=!0)}o&&li.read(()=>{BO(n,r),li.render(()=>{B$(r,i,V$(n.tagName),e.transformTemplate),jO(n,r)})})}})};function Tse(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...L$(r)?Ase:Dse,preloadedFeatures:e,useRender:$se(i),createVisualElement:t,Component:r};return Xie(o)}}const Pse=Tse(),_se=jie(Pse);function bd(e,t,n){const r=e.getProps();return N$(r,t,n!==void 0?n:r.custom,e)}const UO=new Set(["width","height","top","left","right","bottom",...Ac]);let Cp;function Mse(){Cp=void 0}const Da={now:()=>(Cp===void 0&&Da.set(am.isProcessing||f4.useManualTiming?am.timestamp:performance.now()),Cp),set:e=>{Cp=e,queueMicrotask(Mse)}};function Rse(e,t){e.indexOf(t)===-1&&e.push(t)}function Fse(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class zO{constructor(){this.subscriptions=[]}add(t){return Rse(this.subscriptions,t),()=>Fse(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 o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function qO(e,t){return t?e*(1e3/t):0}const JT=30,kse=e=>!isNaN(parseFloat(e));class Ose{constructor(t,n={}){this.version="12.7.3",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=Da.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Da.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=kse(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&lg(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new zO);const r=this.events[t].add(n);return t==="change"?()=>{r(),li.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Da.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>JT)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,JT);return qO(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function lm(e,t){return new Ose(e,t)}function Ise(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,lm(n))}function Lse(e,t){const n=bd(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=wse(s[o]);Ise(e,o,a)}}function Bse(e){return!!(qr(e)&&e.add)}function Vse(e,t){const n=e.getValue("willChange");if(Bse(n))return n.add(t);if(!n&&f4.WillChange){const r=new f4.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Nse(e){return e.props[PO]}const WO=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,jse=1e-7,Kse=12;function Use(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=WO(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>jse&&++a<Kse);return o}function Hd(e,t,n,r){if(e===t&&n===r)return cc;const i=s=>Use(s,0,1,e,n);return s=>s===0||s===1?s:WO(i(s),t,r)}const HO=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,GO=e=>t=>1-e(1-t),YO=Hd(.33,1.53,.69,.99),K$=GO(YO),ZO=HO(K$),XO=e=>(e*=2)<1?.5*K$(e):.5*(2-Math.pow(2,-10*(e-1))),U$=e=>1-Math.sin(Math.acos(e)),zse=GO(U$),JO=HO(U$),QO=e=>/^0[^.\s]+$/u.test(e);function qse(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||QO(e):!0}const Gf=e=>Math.round(e*1e5)/1e5,z$=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Wse(e){return e==null}const Hse=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,q$=(e,t)=>n=>!!(typeof n=="string"&&Hse.test(n)&&n.startsWith(e)||t&&!Wse(n)&&Object.prototype.hasOwnProperty.call(n,t)),eI=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(z$);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Gse=e=>Lu(0,255,e),P1={...Tc,transform:e=>Math.round(Gse(e))},bu={test:q$("rgb","red"),parse:eI("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+P1.transform(e)+", "+P1.transform(t)+", "+P1.transform(n)+", "+Gf(yd.transform(r))+")"};function Yse(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 p4={test:q$("#"),parse:Yse,transform:bu.transform},Bl={test:q$("hsl","hue"),parse:eI("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Gl.transform(Gf(t))+", "+Gl.transform(Gf(n))+", "+Gf(yd.transform(r))+")"},_r={test:e=>bu.test(e)||p4.test(e)||Bl.test(e),parse:e=>bu.test(e)?bu.parse(e):Bl.test(e)?Bl.parse(e):p4.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?bu.transform(e):Bl.transform(e)},Zse=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Xse(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(z$))==null?void 0:t.length)||0)+(((n=e.match(Zse))==null?void 0:n.length)||0)>0}const tI="number",nI="color",Jse="var",Qse="var(",QT="${}",eoe=/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 $d(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace(eoe,l=>(_r.test(l)?(r.color.push(s),i.push(nI),n.push(_r.parse(l))):l.startsWith(Qse)?(r.var.push(s),i.push(Jse),n.push(l)):(r.number.push(s),i.push(tI),n.push(parseFloat(l))),++s,QT)).split(QT);return{values:n,split:a,indexes:r,types:i}}function rI(e){return $d(e).values}function iI(e){const{split:t,types:n}=$d(e),r=t.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=t[o],i[o]!==void 0){const a=n[o];a===tI?s+=Gf(i[o]):a===nI?s+=_r.transform(i[o]):s+=i[o]}return s}}const toe=e=>typeof e=="number"?0:e;function noe(e){const t=rI(e);return iI(e)(t.map(toe))}const Pc={test:Xse,parse:rI,createTransformer:iI,getAnimatableNone:noe},roe=new Set(["brightness","contrast","saturate","opacity"]);function ioe(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(z$)||[];if(!r)return e;const i=n.replace(r,"");let s=roe.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const soe=/\b([a-z-]*)\(.*?\)/gu,m4={...Pc,getAnimatableNone:e=>{const t=e.match(soe);return t?t.map(ioe).join(" "):e}},ooe={...k$,color:_r,backgroundColor:_r,outlineColor:_r,fill:_r,stroke:_r,borderColor:_r,borderTopColor:_r,borderRightColor:_r,borderBottomColor:_r,borderLeftColor:_r,filter:m4,WebkitFilter:m4},sI=e=>ooe[e];function oI(e,t){let n=sI(e);return n!==m4&&(n=Pc),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const aoe=new Set(["auto","none","0"]);function uoe(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!aoe.has(s)&&$d(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=oI(n,i)}const $u=e=>e*180/Math.PI,g4=e=>{const t=$u(Math.atan2(e[1],e[0]));return v4(t)},loe={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:g4,rotateZ:g4,skewX:e=>$u(Math.atan(e[1])),skewY:e=>$u(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},v4=e=>(e=e%360,e<0&&(e+=360),e),e2=g4,t2=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),n2=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),coe={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:t2,scaleY:n2,scale:e=>(t2(e)+n2(e))/2,rotateX:e=>v4($u(Math.atan2(e[6],e[5]))),rotateY:e=>v4($u(Math.atan2(-e[2],e[0]))),rotateZ:e2,rotate:e2,skewX:e=>$u(Math.atan(e[4])),skewY:e=>$u(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function r2(e){return e.includes("scale")?1:0}function y4(e,t){if(!e||e==="none")return r2(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=coe,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=loe,i=a}if(!i)return r2(t);const s=r[t],o=i[1].split(",").map(doe);return typeof s=="function"?s(o):o[s]}const foe=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return y4(n,t)};function doe(e){return parseFloat(e.trim())}const i2=e=>e===Tc||e===At,hoe=new Set(["x","y","z"]),poe=Ac.filter(e=>!hoe.has(e));function moe(e){const t=[];return poe.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const hc={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>y4(t,"x"),y:(e,{transform:t})=>y4(t,"y")};hc.translateX=hc.x;hc.translateY=hc.y;const Eu=new Set;let b4=!1,$4=!1;function aI(){if($4){const e=Array.from(Eu).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=moe(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,o])=>{var a;(a=r.getValue(s))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}$4=!1,b4=!1,Eu.forEach(e=>e.complete()),Eu.clear()}function uI(){Eu.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&($4=!0)})}function goe(){uI(),aI()}class W${constructor(t,n,r,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Eu.add(this),b4||(b4=!0,li.read(uI),li.resolveKeyframes(aI))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let s=0;s<t.length;s++)if(t[s]===null)if(s===0){const o=i==null?void 0:i.get(),a=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const l=r.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),i&&o===void 0&&i.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Eu.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Eu.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const lI=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),voe=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function yoe(e){const t=voe.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const boe=4;function cI(e,t,n=1){dc(n<=boe,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=yoe(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return lI(o)?parseFloat(o):o}return F$(i)?cI(i,t,n+1):i}const fI=e=>t=>t.test(e),$oe={test:e=>e==="auto",parse:e=>e},dI=[Tc,At,Gl,ga,sse,ise,$oe],s2=e=>dI.find(fI(e));class hI extends W${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(),F$(d))){const h=cI(d,n.current);h!==void 0&&(t[l]=h),l===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!UO.has(r)||t.length!==2)return;const[i,s]=t,o=s2(i),a=s2(s);if(o!==a)if(i2(o)&&i2(a))for(let l=0;l<t.length;l++){const d=t[l];typeof d=="string"&&(t[l]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)qse(t[i])&&r.push(i);r.length&&uoe(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=hc[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var a;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,o=r[s];r[s]=hc[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,d])=>{t.getValue(l).set(d)}),this.resolveNoneKeyframes()}}const o2=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Pc.test(e)||e==="0")&&!e.startsWith("url("));function H$(e){return typeof e=="function"&&"applyToOptions"in e}function xoe(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 woe(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],o=o2(i,t),a=o2(s,t);return qd(o===a,`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.`),!o||!a?!1:xoe(e)||(n==="spring"||H$(n))&&r}const Coe=e=>e!==null;function hg(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Coe),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}const Soe=40;class pI{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Da.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Soe?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&goe(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Da.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:s,delay:o,onComplete:a,onUpdate:l,isGenerator:d}=this.options;if(!d&&!woe(t,r,i,s))if(o)this.options.duration=0;else{l&&l(hg(t,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const pg=(e,t,n)=>e+(t-e)*n;function _1(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 Eoe({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=_1(l,a,e+1/3),s=_1(l,a,e),o=_1(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function cm(e,t){return n=>n>0?t:e}const M1=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Doe=[p4,bu,Bl],Aoe=e=>Doe.find(t=>t.test(e));function a2(e){const t=Aoe(e);if(qd(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Bl&&(n=Eoe(n)),n}const u2=(e,t)=>{const n=a2(e),r=a2(t);if(!n||!r)return cm(e,t);const i={...n};return s=>(i.red=M1(n.red,r.red,s),i.green=M1(n.green,r.green,s),i.blue=M1(n.blue,r.blue,s),i.alpha=pg(n.alpha,r.alpha,s),bu.transform(i))},Toe=(e,t)=>n=>t(e(n)),mg=(...e)=>e.reduce(Toe),x4=new Set(["none","hidden"]);function Poe(e,t){return x4.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function _oe(e,t){return n=>pg(e,t,n)}function G$(e){return typeof e=="number"?_oe:typeof e=="string"?F$(e)?cm:_r.test(e)?u2:Foe:Array.isArray(e)?mI:typeof e=="object"?_r.test(e)?u2:Moe:cm}function mI(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>G$(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function Moe(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=G$(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function Roe(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],o=e.indexes[s][r[s]],a=e.values[o]??0;n[i]=a,r[s]++}return n}const Foe=(e,t)=>{const n=Pc.createTransformer(t),r=$d(e),i=$d(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?x4.has(e)&&!i.values.length||x4.has(t)&&!r.values.length?Poe(e,t):mg(mI(Roe(r,i),i.values),n):(qd(!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.`),cm(e,t))};function gI(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?pg(e,t,n):G$(e)(e,t)}const koe=5;function vI(e,t,n){const r=Math.max(t-koe,0);return qO(n-e(r),t-r)}const kn={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},oo=e=>e*1e3,zo=e=>e/1e3,l2=.001;function Ooe({duration:e=kn.duration,bounce:t=kn.bounce,velocity:n=kn.velocity,mass:r=kn.mass}){let i,s;qd(e<=oo(kn.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=Lu(kn.minDamping,kn.maxDamping,o),e=Lu(kn.minDuration,kn.maxDuration,zo(e)),o<1?(i=d=>{const h=d*o,m=h*e,g=h-n,b=w4(d,o),x=Math.exp(-m);return l2-g/b*x},s=d=>{const m=d*o*e,g=m*n+n,b=Math.pow(o,2)*Math.pow(d,2)*e,x=Math.exp(-m),C=w4(Math.pow(d,2),o);return(-i(d)+l2>0?-1:1)*((g-b)*x)/C}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-.001+h*m},s=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const a=5/e,l=Loe(i,s,a);if(e=oo(e),isNaN(l))return{stiffness:kn.stiffness,damping:kn.damping,duration:e};{const d=Math.pow(l,2)*r;return{stiffness:d,damping:o*2*Math.sqrt(r*d),duration:e}}}const Ioe=12;function Loe(e,t,n){let r=n;for(let i=1;i<Ioe;i++)r=r-e(r)/t(r);return r}function w4(e,t){return e*Math.sqrt(1-t*t)}const fm=2e4;function Y$(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<fm;)t+=n,r=e.next(t);return t>=fm?1/0:t}function Boe(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(Y$(r),fm);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:zo(i)}}const Voe={};function Z$(e){let t;return()=>(t===void 0&&(t=e()),t)}function Noe(e,t){const n=Z$(e);return()=>Voe[t]??n()}const xd=Noe(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),yI=(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)})`},joe=["duration","bounce"],Koe=["stiffness","damping","mass"];function c2(e,t){return t.some(n=>e[n]!==void 0)}function Uoe(e){let t={velocity:kn.velocity,stiffness:kn.stiffness,damping:kn.damping,mass:kn.mass,isResolvedFromDuration:!1,...e};if(!c2(e,Koe)&&c2(e,joe))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Lu(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:kn.mass,stiffness:i,damping:s}}else{const n=Ooe(e);t={...t,...n,mass:kn.mass},t.isResolvedFromDuration=!0}return t}function dm(e=kn.visualDuration,t=kn.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:d,mass:h,duration:m,velocity:g,isResolvedFromDuration:b}=Uoe({...n,velocity:-zo(n.velocity||0)}),x=g||0,C=d/(2*Math.sqrt(l*h)),D=o-s,S=zo(Math.sqrt(l/h)),w=Math.abs(D)<5;r||(r=w?kn.restSpeed.granular:kn.restSpeed.default),i||(i=w?kn.restDelta.granular:kn.restDelta.default);let T;if(C<1){const R=w4(S,C);T=k=>{const K=Math.exp(-C*S*k);return o-K*((x+C*S*D)/R*Math.sin(R*k)+D*Math.cos(R*k))}}else if(C===1)T=R=>o-Math.exp(-S*R)*(D+(x+S*D)*R);else{const R=S*Math.sqrt(C*C-1);T=k=>{const K=Math.exp(-C*S*k),q=Math.min(R*k,300);return o-K*((x+C*S*D)*Math.sinh(q)+R*D*Math.cosh(q))/R}}const O={calculatedDuration:b&&m||null,next:R=>{const k=T(R);if(b)a.done=R>=m;else{let K=0;C<1&&(K=R===0?oo(x):vI(T,R,k));const q=Math.abs(K)<=r,ce=Math.abs(o-k)<=i;a.done=q&&ce}return a.value=a.done?o:k,a},toString:()=>{const R=Math.min(Y$(O),fm),k=yI(K=>O.next(R*K).value,R,30);return R+"ms "+k},toTransition:()=>{}};return O}dm.applyToOptions=e=>{const t=Boe(e,100,dm);return e.ease=xd()?t.ease:"easeOut",e.duration=oo(t.duration),e.type="keyframes",e};function f2({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:d=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},b=q=>a!==void 0&&q<a||l!==void 0&&q>l,x=q=>a===void 0?l:l===void 0||Math.abs(a-q)<Math.abs(l-q)?a:l;let C=n*t;const D=m+C,S=o===void 0?D:o(D);S!==D&&(C=S-m);const w=q=>-C*Math.exp(-q/r),T=q=>S+w(q),O=q=>{const ce=w(q),oe=T(q);g.done=Math.abs(ce)<=d,g.value=g.done?S:oe};let R,k;const K=q=>{b(g.value)&&(R=q,k=dm({keyframes:[g.value,x(g.value)],velocity:vI(T,q,g.value),damping:i,stiffness:s,restDelta:d,restSpeed:h}))};return K(0),{calculatedDuration:null,next:q=>{let ce=!1;return!k&&R===void 0&&(ce=!0,O(q),K(q)),R!==void 0&&q>=R?k.next(q-R):(!ce&&O(q),g)}}}const zoe=Hd(.42,0,1,1),qoe=Hd(0,0,.58,1),bI=Hd(.42,0,.58,1),Woe=e=>Array.isArray(e)&&typeof e[0]!="number",X$=e=>Array.isArray(e)&&typeof e[0]=="number",d2={linear:cc,easeIn:zoe,easeInOut:bI,easeOut:qoe,circIn:U$,circInOut:JO,circOut:zse,backIn:K$,backInOut:ZO,backOut:YO,anticipate:XO},h2=e=>{if(X$(e)){dc(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Hd(t,n,r,i)}else if(typeof e=="string")return dc(d2[e]!==void 0,`Invalid easing type '${e}'`),d2[e];return e},$I=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};function Hoe(e,t,n){const r=[],i=n||gI,s=e.length-1;for(let o=0;o<s;o++){let a=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||cc:t;a=mg(l,a)}r.push(a)}return r}function Goe(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(dc(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 o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Hoe(t,r,i),l=a.length,d=h=>{if(o&&h<e[0])return t[0];let m=0;if(l>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=$I(e[m],e[m+1],h);return a[m](g)};return n?h=>d(Lu(e[0],e[s-1],h)):d}function Yoe(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=$I(0,t,r);e.push(pg(n,1,i))}}function Zoe(e){const t=[0];return Yoe(t,e.length-1),t}function Xoe(e,t){return e.map(n=>n*t)}function Joe(e,t){return e.map(()=>t||bI).splice(0,e.length-1)}function Yf({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Woe(r)?r.map(h2):h2(r),s={done:!1,value:t[0]},o=Xoe(n&&n.length===t.length?n:Zoe(t),e),a=Goe(o,t,{ease:Array.isArray(i)?i:Joe(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const Qoe=e=>{const t=({timestamp:n})=>e(n);return{start:()=>li.update(t,!0),stop:()=>d4(t),now:()=>am.isProcessing?am.timestamp:Da.now()}},eae={decay:f2,inertia:f2,tween:Yf,keyframes:Yf,spring:dm},tae=e=>e/100;class J$ extends pI{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:s}=this.options,o=(i==null?void 0:i.KeyframeResolver)||W$,a=(l,d)=>this.onKeyframesResolved(l,d);this.resolver=new o(s,a,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,a=H$(n)?n:eae[n]||Yf;let l,d;process.env.NODE_ENV!=="production"&&a!==Yf&&dc(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),a!==Yf&&typeof t[0]!="number"&&(l=mg(tae,gI(t[0],t[1])),t=[0,100]);const h=a({...this.options,keyframes:t});s==="mirror"&&(d=a({...this.options,keyframes:[...t].reverse(),velocity:-o})),h.calculatedDuration===null&&(h.calculatedDuration=Y$(h));const{calculatedDuration:m}=h,g=m+i,b=g*(r+1)-i;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:l,calculatedDuration:m,resolvedDuration:g,totalDuration:b}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:q}=this.options;return{done:!0,value:q[q.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:d,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return s.next(0);const{delay:g,repeat:b,repeatType:x,repeatDelay:C,onUpdate:D}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const S=this.currentTime-g*(this.speed>=0?1:-1),w=this.speed>=0?S<0:S>h;this.currentTime=Math.max(S,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let T=this.currentTime,O=s;if(b){const q=Math.min(this.currentTime,h)/m;let ce=Math.floor(q),oe=q%1;!oe&&q>=1&&(oe=1),oe===1&&ce--,ce=Math.min(ce,b+1),!!(ce%2)&&(x==="reverse"?(oe=1-oe,C&&(oe-=C/m)):x==="mirror"&&(O=o)),T=Lu(0,1,oe)*m}const R=w?{done:!1,value:l[0]}:O.next(T);a&&(R.value=a(R.value));let{done:k}=R;!w&&d!==null&&(k=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const K=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return K&&i!==void 0&&(R.value=hg(l,this.options,i)),D&&D(R.value),K&&this.finish(),R}get duration(){const{resolved:t}=this;return t?zo(t.calculatedDuration):0}get time(){return zo(this.currentTime)}set time(t){t=oo(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=zo(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Qoe,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=this.currentTime??0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}get finished(){return this.currentFinishedPromise}}const nae=new Set(["opacity","clipPath","filter","transform"]),rae=Z$(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),If=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,C4={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:If([0,.65,.55,1]),circOut:If([.55,0,1,.45]),backIn:If([.31,.01,.66,-.59]),backOut:If([.33,1.53,.69,.99])};function xI(e,t){if(e)return typeof e=="function"&&xd()?yI(e,t):X$(e)?If(e):Array.isArray(e)?e.map(n=>xI(n,t)||C4.easeOut):C4[e]}function iae(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeInOut",times:l}={},d=void 0){const h={[t]:n};l&&(h.offset=l);const m=xI(a,i);return Array.isArray(m)&&(h.easing=m),e.animate(h,{delay:r,duration:i,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal",pseudoElement:d})}function p2(e,t){e.timeline=t,e.onfinish=null}function wI(e){return!!(typeof e=="function"&&xd()||!e||typeof e=="string"&&(e in C4||xd())||X$(e)||Array.isArray(e)&&e.every(wI))}const hm=10,sae=2e4;function oae(e){return H$(e.type)||e.type==="spring"||!wI(e.ease)}function aae(e,t){const n=new J$({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let s=0;for(;!r.done&&s<sae;)r=n.sample(s),i.push(r.value),s+=hm;return{times:void 0,keyframes:i,duration:s-hm,ease:"linear"}}const CI={anticipate:XO,backInOut:ZO,circInOut:JO};function uae(e){return e in CI}class m2 extends pI{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:s}=this.options;this.resolver=new hI(s,(o,a)=>this.onKeyframesResolved(o,a),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:s,type:o,motionValue:a,name:l,startTime:d}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof s=="string"&&xd()&&uae(s)&&(s=CI[s]),oae(this.options)){const{onComplete:m,onUpdate:g,motionValue:b,element:x,...C}=this.options,D=aae(t,C);t=D.keyframes,t.length===1&&(t[1]=t[0]),r=D.duration,i=D.times,s=D.ease,o="keyframes"}const h=iae(a.owner.current,l,t,{...this.options,duration:r,times:i,ease:s});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(p2(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;a.set(hg(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:o,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return zo(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return zo(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=oo(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}get finished(){return this.resolved.animation.finished}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return cc;const{animation:r}=n;p2(r,t)}return cc}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:s,ease:o,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:m,element:g,...b}=this.options,x=new J$({...b,keyframes:r,duration:i,type:s,ease:o,times:a,isGenerator:!0}),C=oo(this.time);d.setWithVelocity(x.sample(C-hm).value,x.sample(C).value,hm)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:s,damping:o,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:d}=n.owner.getProps();return rae()&&r&&nae.has(r)&&(r!=="transform"||!d)&&!l&&!i&&s!=="mirror"&&o!==0&&a!=="inertia"}}const lae={type:"spring",stiffness:500,damping:25,restSpeed:10},cae=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),fae={type:"keyframes",duration:.8},dae={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},hae=(e,{keyframes:t})=>t.length>2?fae:Uu.has(e)?e.startsWith("scale")?cae(t[1]):lae:dae;function pae({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:d,...h}){return!!Object.keys(h).length}function SI(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const mae=Z$(()=>window.ScrollTimeline!==void 0);class gae{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(mae()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,s)=>{i&&i(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class vae extends gae{then(t,n){return this.finished.finally(t).then(()=>{})}}const yae=(e,t,n,r={},i,s)=>o=>{const a=SI(r,e)||{},l=a.delay||r.delay||0;let{elapsed:d=0}=r;d=d-oo(l);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-d,onUpdate:g=>{t.set(g),a.onUpdate&&a.onUpdate(g)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};pae(a)||(h={...h,...hae(e,h)}),h.duration&&(h.duration=oo(h.duration)),h.repeatDelay&&(h.repeatDelay=oo(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)),h.allowFlatten=!a.type&&!a.ease,m&&!s&&t.get()!==void 0){const g=hg(h.keyframes,a);if(g!==void 0)return li.update(()=>{h.onUpdate(g),h.onComplete()}),new vae([])}return!s&&m2.supports(h)?new m2(h):new J$(h)};function bae({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function EI(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:o,...a}=t;r&&(s=r);const l=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const h in a){const m=e.getValue(h,e.latestValues[h]??null),g=a[h];if(g===void 0||d&&bae(d,h))continue;const b={delay:n,...SI(s||{},h)};let x=!1;if(window.MotionHandoffAnimation){const D=Nse(e);if(D){const S=window.MotionHandoffAnimation(D,h,li);S!==null&&(b.startTime=S,x=!0)}}Vse(e,h),m.start(yae(h,m,g,e.shouldReduceMotion&&UO.has(h)?{type:!1}:b,e,x));const C=m.animation;C&&l.push(C)}return o&&Promise.all(l).then(()=>{li.update(()=>{o&&Lse(e,o)})}),l}function S4(e,t,n={}){var l;const r=bd(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(EI(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=i;return $ae(e,t,h+d,m,g,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[d,h]=a==="beforeChildren"?[s,o]:[o,s];return d().then(()=>h())}else return Promise.all([s(),o(n.delay)])}function $ae(e,t,n=0,r=0,i=1,s){const o=[],a=(e.variantChildren.size-1)*r,l=i===1?(d=0)=>d*r:(d=0)=>a-d*r;return Array.from(e.variantChildren).sort(xae).forEach((d,h)=>{d.notify("AnimationStart",t),o.push(S4(d,t,{...s,delay:n+l(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(o)}function xae(e,t){return e.sortNodePosition(t)}function wae(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>S4(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=S4(e,t,n);else{const i=typeof t=="function"?bd(e,t,n.custom):t;r=Promise.all(EI(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function DI(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 Cae=M$.length;function AI(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?AI(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Cae;n++){const r=M$[n],i=e.props[r];(vd(i)||i===!1)&&(t[r]=i)}return t}const Sae=[..._$].reverse(),Eae=_$.length;function Dae(e){return t=>Promise.all(t.map(({animation:n,options:r})=>wae(e,n,r)))}function Aae(e){let t=Dae(e),n=g2(),r=!0;const i=l=>(d,h)=>{var g;const m=bd(e,h,l==="exit"?(g=e.presenceContext)==null?void 0:g.custom:void 0);if(m){const{transition:b,transitionEnd:x,...C}=m;d={...d,...C,...x}}return d};function s(l){t=l(e)}function o(l){const{props:d}=e,h=AI(e.parent)||{},m=[],g=new Set;let b={},x=1/0;for(let D=0;D<Eae;D++){const S=Sae[D],w=n[S],T=d[S]!==void 0?d[S]:h[S],O=vd(T),R=S===l?w.isActive:null;R===!1&&(x=D);let k=T===h[S]&&T!==d[S]&&O;if(k&&r&&e.manuallyAnimateOnMount&&(k=!1),w.protectedKeys={...b},!w.isActive&&R===null||!T&&!w.prevProp||fg(T)||typeof T=="boolean")continue;const K=Tae(w.prevProp,T);let q=K||S===l&&w.isActive&&!k&&O||D>x&&O,ce=!1;const oe=Array.isArray(T)?T:[T];let I=oe.reduce(i(S),{});R===!1&&(I={});const{prevResolvedValues:be={}}=w,$e={...be,...I},H=B=>{q=!0,g.has(B)&&(ce=!0,g.delete(B)),w.needsAnimating[B]=!0;const L=e.getValue(B);L&&(L.liveStyle=!1)};for(const B in $e){const L=I[B],me=be[B];if(b.hasOwnProperty(B))continue;let U=!1;h4(L)&&h4(me)?U=!DI(L,me):U=L!==me,U?L!=null?H(B):g.add(B):L!==void 0&&g.has(B)?H(B):w.protectedKeys[B]=!0}w.prevProp=T,w.prevResolvedValues=I,w.isActive&&(b={...b,...I}),r&&e.blockInitialAnimation&&(q=!1),q&&(!(k&&K)||ce)&&m.push(...oe.map(B=>({animation:B,options:{type:S}})))}if(g.size){const D={};if(typeof d.initial!="boolean"){const S=bd(e,Array.isArray(d.initial)?d.initial[0]:d.initial);S&&S.transition&&(D.transition=S.transition)}g.forEach(S=>{const w=e.getBaseTarget(S),T=e.getValue(S);T&&(T.liveStyle=!0),D[S]=w??null}),m.push({animation:D})}let C=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(C=!1),r=!1,C?t(m):Promise.resolve()}function a(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=o(l);for(const g in n)n[g].protectedKeys={};return h}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=g2(),r=!0}}}function Tae(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!DI(t,e):!1}function au(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function g2(){return{animate:au(!0),whileInView:au(),whileHover:au(),whileTap:au(),whileDrag:au(),whileFocus:au(),exit:au()}}class _c{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Pae extends _c{constructor(t){super(t),t.animationState||(t.animationState=Aae(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();fg(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 _ae=0;class Mae extends _c{constructor(){super(...arguments),this.id=_ae++}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 Rae={animation:{Feature:Pae},exit:{Feature:Mae}};function v2(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Fae=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function TI(e){return{point:{x:e.pageX,y:e.pageY}}}function kae({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Oae(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 y2=()=>({min:0,max:0}),PI=()=>({x:y2(),y:y2()});function Iae(e,t){return kae(Oae(e.getBoundingClientRect(),t))}const Lae={y:!1};function Bae(){return Lae.y}function Vae(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 _I(e,t){const n=Vae(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function b2(e){return!(e.pointerType==="touch"||Bae())}function Nae(e,t,n={}){const[r,i,s]=_I(e,n),o=a=>{if(!b2(a))return;const{target:l}=a,d=t(l,a);if(typeof d!="function"||!l)return;const h=m=>{b2(m)&&(d(m),l.removeEventListener("pointerleave",h))};l.addEventListener("pointerleave",h,i)};return r.forEach(a=>{a.addEventListener("pointerenter",o,i)}),s}function $2(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&&li.postRender(()=>s(t,TI(t)))}class jae extends _c{mount(){const{current:t}=this.node;t&&(this.unmount=Nae(t,(n,r)=>($2(this.node,r,"Start"),i=>$2(this.node,i,"End"))))}unmount(){}}class Kae extends _c{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=mg(v2(this.node.current,"focus",()=>this.onFocus()),v2(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const MI=(e,t)=>t?e===t?!0:MI(e,t.parentElement):!1,Uae=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function zae(e){return Uae.has(e.tagName)||e.tabIndex!==-1}const Lf=new WeakSet;function x2(e){return t=>{t.key==="Enter"&&e(t)}}function R1(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const qae=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=x2(()=>{if(Lf.has(n))return;R1(n,"down");const i=x2(()=>{R1(n,"up")}),s=()=>R1(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 w2(e){return Fae(e)&&!0}function Wae(e,t,n={}){const[r,i,s]=_I(e,n),o=a=>{const l=a.currentTarget;if(!w2(a)||Lf.has(l))return;Lf.add(l);const d=t(l,a),h=(b,x)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),!(!w2(b)||!Lf.has(l))&&(Lf.delete(l),typeof d=="function"&&d(b,{success:x}))},m=b=>{h(b,l===window||l===document||n.useGlobalTarget||MI(l,b.target))},g=b=>{h(b,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",g,i)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),a instanceof HTMLElement&&(a.addEventListener("focus",d=>qae(d,i)),!zae(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function C2(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&&li.postRender(()=>s(t,TI(t)))}class Hae extends _c{mount(){const{current:t}=this.node;t&&(this.unmount=Wae(t,(n,r)=>(C2(this.node,r,"Start"),(i,{success:s})=>C2(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const E4=new WeakMap,F1=new WeakMap,Gae=e=>{const t=E4.get(e.target);t&&t(e)},Yae=e=>{e.forEach(Gae)};function Zae({root:e,...t}){const n=e||document;F1.has(n)||F1.set(n,{});const r=F1.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Yae,{root:e,...t})),r[i]}function Xae(e,t,n){const r=Zae(t);return E4.set(e,n),r.observe(e),()=>{E4.delete(e),r.unobserve(e)}}const Jae={some:0,all:1};class Qae extends _c{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,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Jae[i]},a=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 Xae(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(eue(t,n))&&this.startObserver()}unmount(){}}function eue({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const tue={inView:{Feature:Qae},tap:{Feature:Hae},focus:{Feature:Kae},hover:{Feature:jae}},D4={current:null},RI={current:!1};function nue(){if(RI.current=!0,!!T$)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>D4.current=e.matches;e.addListener(t),t()}else D4.current=!1}const rue=[...dI,_r,Pc],iue=e=>rue.find(fI(e)),sue=new WeakMap;function oue(e,t,n){for(const r in t){const i=t[r],s=n[r];if(qr(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&lg(i.version==="12.7.3",`Attempting to mix Motion versions ${i.version} with 12.7.3 may not work as expected.`);else if(qr(s))e.addValue(r,lm(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,lm(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const S2=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class aue{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=W$,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const b=Da.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,li.render(this.render,!1,!0))};const{latestValues:l,renderState:d,onUpdate:h}=o;this.onUpdate=h,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=dg(n),this.isVariantNode=AO(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const b in g){const x=g[b];l[b]!==void 0&&qr(x)&&x.set(l[b],!1)}}mount(t){this.current=t,sue.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),RI.current||nue(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:D4.current,process.env.NODE_ENV!=="production"&&lg(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(),d4(this.notifyUpdate),d4(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=Uu.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&li.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in fc){const n=fc[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const 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):PI()}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<S2.length;r++){const i=S2[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=t[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=oue(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=lm(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"&&(lI(r)||QO(r))?r=parseFloat(r):!iue(r)&&Pc.test(n)&&(r=oI(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 o=N$(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);o&&(r=o[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 zO),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class FI extends aue{constructor(){super(...arguments),this.KeyframeResolver=hI}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 uue(e){return window.getComputedStyle(e)}class lue extends FI{constructor(){super(...arguments),this.type="html",this.renderInstance=VO}readValueFromInstance(t,n){if(Uu.has(n))return foe(t,n);{const r=uue(t),i=(RO(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Iae(t,n)}build(t,n,r){O$(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return j$(t,n,r)}}class cue extends FI{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=PI,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&BO(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Uu.has(n)){const r=sI(n);return r&&r.default||0}return n=NO.has(n)?n:R$(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return KO(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&li.postRender(this.updateDimensions)}build(t,n,r){B$(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){jO(t,n,r,i)}mount(t){this.isSVGTag=V$(t.tagName),super.mount(t)}}const fue=(e,t)=>L$(e)?new cue(t):new lue(t,{allowProjection:e!==A.Fragment}),due={renderer:fue,...Rae,...tue};function kI(e){return t=>typeof t===e}var hue=kI("function"),pue=e=>e===null,E2=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",D2=e=>!mue(e)&&!pue(e)&&(hue(e)||typeof e=="object"),mue=kI("undefined");function gue(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 vue(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 yue(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 bue(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&&D2(e)&&t&&D2(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return gue(e,t);if(e instanceof Map&&t instanceof Map)return yue(e,t);if(e instanceof Set&&t instanceof Set)return bue(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return vue(e,t);if(E2(e)&&E2(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 $ue=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],xue=["bigint","boolean","null","number","string","symbol","undefined"];function gg(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(wue(t))return t}function Ts(e){return t=>gg(t)===e}function wue(e){return $ue.includes(e)}function Mc(e){return t=>typeof t===e}function Cue(e){return xue.includes(e)}var Sue=["innerHTML","ownerDocument","style","attributes","nodeValue"];function lt(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(lt.array(e))return"Array";if(lt.plainFunction(e))return"Function";const t=gg(e);return t||"Object"}lt.array=Array.isArray;lt.arrayOf=(e,t)=>!lt.array(e)&&!lt.function(t)?!1:e.every(n=>t(n));lt.asyncGeneratorFunction=e=>gg(e)==="AsyncGeneratorFunction";lt.asyncFunction=Ts("AsyncFunction");lt.bigint=Mc("bigint");lt.boolean=e=>e===!0||e===!1;lt.date=Ts("Date");lt.defined=e=>!lt.undefined(e);lt.domElement=e=>lt.object(e)&&!lt.plainObject(e)&&e.nodeType===1&&lt.string(e.nodeName)&&Sue.every(t=>t in e);lt.empty=e=>lt.string(e)&&e.length===0||lt.array(e)&&e.length===0||lt.object(e)&&!lt.map(e)&&!lt.set(e)&&Object.keys(e).length===0||lt.set(e)&&e.size===0||lt.map(e)&&e.size===0;lt.error=Ts("Error");lt.function=Mc("function");lt.generator=e=>lt.iterable(e)&&lt.function(e.next)&&lt.function(e.throw);lt.generatorFunction=Ts("GeneratorFunction");lt.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;lt.iterable=e=>!lt.nullOrUndefined(e)&&lt.function(e[Symbol.iterator]);lt.map=Ts("Map");lt.nan=e=>Number.isNaN(e);lt.null=e=>e===null;lt.nullOrUndefined=e=>lt.null(e)||lt.undefined(e);lt.number=e=>Mc("number")(e)&&!lt.nan(e);lt.numericString=e=>lt.string(e)&&e.length>0&&!Number.isNaN(Number(e));lt.object=e=>!lt.nullOrUndefined(e)&&(lt.function(e)||typeof e=="object");lt.oneOf=(e,t)=>lt.array(e)?e.indexOf(t)>-1:!1;lt.plainFunction=Ts("Function");lt.plainObject=e=>{if(gg(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};lt.primitive=e=>lt.null(e)||Cue(typeof e);lt.promise=Ts("Promise");lt.propertyOf=(e,t,n)=>{if(!lt.object(e)||!t)return!1;const r=e[t];return lt.function(n)?n(r):lt.defined(r)};lt.regexp=Ts("RegExp");lt.set=Ts("Set");lt.string=Mc("string");lt.symbol=Mc("symbol");lt.undefined=Mc("undefined");lt.weakMap=Ts("WeakMap");lt.weakSet=Ts("WeakSet");var ht=lt;function Eue(...e){return e.every(t=>ht.string(t)||ht.array(t)||ht.plainObject(t))}function Due(e,t,n){return OI(e,t)?[e,t].every(ht.array)?!e.some(M2(n))&&t.some(M2(n)):[e,t].every(ht.plainObject)?!Object.entries(e).some(_2(n))&&Object.entries(t).some(_2(n)):t===n:!1}function A2(e,t,n){const{actual:r,key:i,previous:s,type:o}=n,a=Qs(e,i),l=Qs(t,i);let d=[a,l].every(ht.number)&&(o==="increased"?a<l:a>l);return ht.undefined(r)||(d=d&&l===r),ht.undefined(s)||(d=d&&a===s),d}function T2(e,t,n){const{key:r,type:i,value:s}=n,o=Qs(e,r),a=Qs(t,r),l=i==="added"?o:a,d=i==="added"?a:o;if(!ht.nullOrUndefined(s)){if(ht.defined(l)){if(ht.array(l)||ht.plainObject(l))return Due(l,d,s)}else return Wr(d,s);return!1}return[o,a].every(ht.array)?!d.every(Q$(l)):[o,a].every(ht.plainObject)?Aue(Object.keys(l),Object.keys(d)):![o,a].every(h=>ht.primitive(h)&&ht.defined(h))&&(i==="added"?!ht.defined(o)&&ht.defined(a):ht.defined(o)&&!ht.defined(a))}function P2(e,t,{key:n}={}){let r=Qs(e,n),i=Qs(t,n);if(!OI(r,i))throw new TypeError("Inputs have different types");if(!Eue(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(ht.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function _2(e){return([t,n])=>ht.array(e)?Wr(e,n)||e.some(r=>Wr(r,n)||ht.array(n)&&Q$(n)(r)):ht.plainObject(e)&&e[t]?!!e[t]&&Wr(e[t],n):Wr(e,n)}function Aue(e,t){return t.some(n=>!e.includes(n))}function M2(e){return t=>ht.array(e)?e.some(n=>Wr(n,t)||ht.array(t)&&Q$(t)(n)):Wr(e,t)}function bf(e,t){return ht.array(e)?e.some(n=>Wr(n,t)):Wr(e,t)}function Q$(e){return t=>e.some(n=>Wr(n,t))}function OI(...e){return e.every(ht.array)||e.every(ht.number)||e.every(ht.plainObject)||e.every(ht.string)}function Qs(e,t){return ht.plainObject(e)||ht.array(e)?ht.string(t)?t.split(".").reduce((r,i)=>r&&r[i],e):ht.number(t)?e[t]:e:e}function pm(e,t){if([e,t].some(ht.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(h=>ht.plainObject(h)||ht.array(h)))throw new Error("Expected plain objects or array");return{added:(h,m)=>{try{return T2(e,t,{key:h,type:"added",value:m})}catch{return!1}},changed:(h,m,g)=>{try{const b=Qs(e,h),x=Qs(t,h),C=ht.defined(m),D=ht.defined(g);if(C||D){const S=D?bf(g,b):!bf(m,b),w=bf(m,x);return S&&w}return[b,x].every(ht.array)||[b,x].every(ht.plainObject)?!Wr(b,x):b!==x}catch{return!1}},changedFrom:(h,m,g)=>{if(!ht.defined(h))return!1;try{const b=Qs(e,h),x=Qs(t,h),C=ht.defined(g);return bf(m,b)&&(C?bf(g,x):!C)}catch{return!1}},decreased:(h,m,g)=>{if(!ht.defined(h))return!1;try{return A2(e,t,{key:h,actual:m,previous:g,type:"decreased"})}catch{return!1}},emptied:h=>{try{const[m,g]=P2(e,t,{key:h});return!!m.length&&!g.length}catch{return!1}},filled:h=>{try{const[m,g]=P2(e,t,{key:h});return!m.length&&!!g.length}catch{return!1}},increased:(h,m,g)=>{if(!ht.defined(h))return!1;try{return A2(e,t,{key:h,actual:m,previous:g,type:"increased"})}catch{return!1}},removed:(h,m)=>{try{return T2(e,t,{key:h,type:"removed",value:m})}catch{return!1}}}}var k1,R2;function Tue(){if(R2)return k1;R2=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;k1={left:i("scrollLeft"),top:i("scrollTop")};function i(a){return function(d,h,m,g){m=m||{},typeof m=="function"&&(g=m,m={}),typeof g!="function"&&(g=o);var b=r(),x=d[a],C=m.ease||s,D=isNaN(m.duration)?350:+m.duration,S=!1;return x===h?g(e,d[a]):requestAnimationFrame(T),w;function w(){S=!0}function T(O){if(S)return g(t,d[a]);var R=r(),k=n(1,(R-b)/D),K=C(k);d[a]=K*(h-x)+x,k<1?requestAnimationFrame(T):requestAnimationFrame(function(){g(null,d[a])})}}}function s(a){return .5*(1-Math.cos(Math.PI*a))}function o(){}return k1}var Pue=Tue();const _ue=ts(Pue);var Sp={exports:{}},Mue=Sp.exports,F2;function Rue(){return F2||(F2=1,function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(Mue,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})}(Sp)),Sp.exports}var Fue=Rue();const II=ts(Fue);var O1,k2;function kue(){if(k2)return O1;k2=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,O1=n,O1}var Oue=kue();const O2=ts(Oue);var I1,I2;function Iue(){if(I2)return I1;I2=1;var e=function(w){return t(w)&&!n(w)};function t(S){return!!S&&typeof S=="object"}function n(S){var w=Object.prototype.toString.call(S);return w==="[object RegExp]"||w==="[object Date]"||s(S)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function s(S){return S.$$typeof===i}function o(S){return Array.isArray(S)?[]:{}}function a(S,w){return w.clone!==!1&&w.isMergeableObject(S)?C(o(S),S,w):S}function l(S,w,T){return S.concat(w).map(function(O){return a(O,T)})}function d(S,w){if(!w.customMerge)return C;var T=w.customMerge(S);return typeof T=="function"?T:C}function h(S){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(S).filter(function(w){return Object.propertyIsEnumerable.call(S,w)}):[]}function m(S){return Object.keys(S).concat(h(S))}function g(S,w){try{return w in S}catch{return!1}}function b(S,w){return g(S,w)&&!(Object.hasOwnProperty.call(S,w)&&Object.propertyIsEnumerable.call(S,w))}function x(S,w,T){var O={};return T.isMergeableObject(S)&&m(S).forEach(function(R){O[R]=a(S[R],T)}),m(w).forEach(function(R){b(S,R)||(g(S,R)&&T.isMergeableObject(w[R])?O[R]=d(R,T)(S[R],w[R],T):O[R]=a(w[R],T))}),O}function C(S,w,T){T=T||{},T.arrayMerge=T.arrayMerge||l,T.isMergeableObject=T.isMergeableObject||e,T.cloneUnlessOtherwiseSpecified=a;var O=Array.isArray(w),R=Array.isArray(S),k=O===R;return k?O?T.arrayMerge(S,w,T):x(S,w,T):a(w,T)}C.all=function(w,T){if(!Array.isArray(w))throw new Error("first argument should be an array");return w.reduce(function(O,R){return C(O,R,T)},{})};var D=C;return I1=D,I1}var Lue=Iue();const xs=ts(Lue);var Xh={exports:{}},Jh={exports:{}},ln={};/** @license React v16.13.1
139
- * react-is.production.min.js
140
- *
141
- * Copyright (c) Facebook, Inc. and its affiliates.
142
- *
143
- * This source code is licensed under the MIT license found in the
144
- * LICENSE file in the root directory of this source tree.
145
- */var L2;function Bue(){if(L2)return ln;L2=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,o=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,C=e?Symbol.for("react.block"):60121,D=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function T(R){if(typeof R=="object"&&R!==null){var k=R.$$typeof;switch(k){case t:switch(R=R.type,R){case l:case d:case r:case s:case i:case m:return R;default:switch(R=R&&R.$$typeof,R){case a:case h:case x:case b:case o:return R;default:return k}}case n:return k}}}function O(R){return T(R)===d}return ln.AsyncMode=l,ln.ConcurrentMode=d,ln.ContextConsumer=a,ln.ContextProvider=o,ln.Element=t,ln.ForwardRef=h,ln.Fragment=r,ln.Lazy=x,ln.Memo=b,ln.Portal=n,ln.Profiler=s,ln.StrictMode=i,ln.Suspense=m,ln.isAsyncMode=function(R){return O(R)||T(R)===l},ln.isConcurrentMode=O,ln.isContextConsumer=function(R){return T(R)===a},ln.isContextProvider=function(R){return T(R)===o},ln.isElement=function(R){return typeof R=="object"&&R!==null&&R.$$typeof===t},ln.isForwardRef=function(R){return T(R)===h},ln.isFragment=function(R){return T(R)===r},ln.isLazy=function(R){return T(R)===x},ln.isMemo=function(R){return T(R)===b},ln.isPortal=function(R){return T(R)===n},ln.isProfiler=function(R){return T(R)===s},ln.isStrictMode=function(R){return T(R)===i},ln.isSuspense=function(R){return T(R)===m},ln.isValidElementType=function(R){return typeof R=="string"||typeof R=="function"||R===r||R===d||R===s||R===i||R===m||R===g||typeof R=="object"&&R!==null&&(R.$$typeof===x||R.$$typeof===b||R.$$typeof===o||R.$$typeof===a||R.$$typeof===h||R.$$typeof===D||R.$$typeof===S||R.$$typeof===w||R.$$typeof===C)},ln.typeOf=T,ln}var cn={};/** @license React v16.13.1
146
- * react-is.development.js
147
- *
148
- * Copyright (c) Facebook, Inc. and its affiliates.
149
- *
150
- * This source code is licensed under the MIT license found in the
151
- * LICENSE file in the root directory of this source tree.
152
- */var B2;function Vue(){return B2||(B2=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,o=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,C=e?Symbol.for("react.block"):60121,D=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function T(Ie){return typeof Ie=="string"||typeof Ie=="function"||Ie===r||Ie===d||Ie===s||Ie===i||Ie===m||Ie===g||typeof Ie=="object"&&Ie!==null&&(Ie.$$typeof===x||Ie.$$typeof===b||Ie.$$typeof===o||Ie.$$typeof===a||Ie.$$typeof===h||Ie.$$typeof===D||Ie.$$typeof===S||Ie.$$typeof===w||Ie.$$typeof===C)}function O(Ie){if(typeof Ie=="object"&&Ie!==null){var et=Ie.$$typeof;switch(et){case t:var xt=Ie.type;switch(xt){case l:case d:case r:case s:case i:case m:return xt;default:var fn=xt&&xt.$$typeof;switch(fn){case a:case h:case x:case b:case o:return fn;default:return et}}case n:return et}}}var R=l,k=d,K=a,q=o,ce=t,oe=h,I=r,be=x,$e=b,H=n,ie=s,M=i,B=m,L=!1;function me(Ie){return L||(L=!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(Ie)||O(Ie)===l}function U(Ie){return O(Ie)===d}function te(Ie){return O(Ie)===a}function xe(Ie){return O(Ie)===o}function Ee(Ie){return typeof Ie=="object"&&Ie!==null&&Ie.$$typeof===t}function Oe(Ie){return O(Ie)===h}function _e(Ie){return O(Ie)===r}function Ye(Ie){return O(Ie)===x}function He(Ie){return O(Ie)===b}function De(Ie){return O(Ie)===n}function Ke(Ie){return O(Ie)===s}function We(Ie){return O(Ie)===i}function Ae(Ie){return O(Ie)===m}cn.AsyncMode=R,cn.ConcurrentMode=k,cn.ContextConsumer=K,cn.ContextProvider=q,cn.Element=ce,cn.ForwardRef=oe,cn.Fragment=I,cn.Lazy=be,cn.Memo=$e,cn.Portal=H,cn.Profiler=ie,cn.StrictMode=M,cn.Suspense=B,cn.isAsyncMode=me,cn.isConcurrentMode=U,cn.isContextConsumer=te,cn.isContextProvider=xe,cn.isElement=Ee,cn.isForwardRef=Oe,cn.isFragment=_e,cn.isLazy=Ye,cn.isMemo=He,cn.isPortal=De,cn.isProfiler=Ke,cn.isStrictMode=We,cn.isSuspense=Ae,cn.isValidElementType=T,cn.typeOf=O}()),cn}var V2;function LI(){return V2||(V2=1,process.env.NODE_ENV==="production"?Jh.exports=Bue():Jh.exports=Vue()),Jh.exports}/*
153
- object-assign
154
- (c) Sindre Sorhus
155
- @license MIT
156
- */var L1,N2;function Nue(){if(N2)return L1;N2=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 o={},a=0;a<10;a++)o["_"+String.fromCharCode(a)]=a;var l=Object.getOwnPropertyNames(o).map(function(h){return o[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 L1=i()?Object.assign:function(s,o){for(var a,l=r(s),d,h=1;h<arguments.length;h++){a=Object(arguments[h]);for(var m in a)t.call(a,m)&&(l[m]=a[m]);if(e){d=e(a);for(var g=0;g<d.length;g++)n.call(a,d[g])&&(l[d[g]]=a[d[g]])}}return l},L1}var B1,j2;function ex(){if(j2)return B1;j2=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return B1=e,B1}var V1,K2;function BI(){return K2||(K2=1,V1=Function.call.bind(Object.prototype.hasOwnProperty)),V1}var N1,U2;function jue(){if(U2)return N1;U2=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=ex(),n={},r=BI();e=function(s){var o="Warning: "+s;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(s,o,a,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")+": "+a+" 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](o,h,l,a,null,t)}catch(x){m=x}if(m&&!(m instanceof Error)&&e((l||"React class")+": type specification of "+a+" `"+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 "+a+" type: "+m.message+(b??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},N1=i,N1}var j1,z2;function Kue(){if(z2)return j1;z2=1;var e=LI(),t=Nue(),n=ex(),r=BI(),i=jue(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return j1=function(a,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:S("array"),bigint:S("bigint"),bool:S("boolean"),func:S("function"),number:S("number"),object:S("object"),string:S("string"),symbol:S("symbol"),any:w(),arrayOf:T,element:O(),elementType:R(),instanceOf:k,node:oe(),objectOf:q,oneOf:K,oneOfType:ce,shape:be,exact:$e};function x(U,te){return U===te?U!==0||1/U===1/te:U!==U&&te!==te}function C(U,te){this.message=U,this.data=te&&typeof te=="object"?te:{},this.stack=""}C.prototype=Error.prototype;function D(U){if(process.env.NODE_ENV!=="production")var te={},xe=0;function Ee(_e,Ye,He,De,Ke,We,Ae){if(De=De||g,We=We||He,Ae!==n){if(l){var Ie=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 Ie.name="Invariant Violation",Ie}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var et=De+":"+He;!te[et]&&xe<3&&(s("You are manually calling a React.PropTypes validation function for the `"+We+"` prop on `"+De+"`. 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[et]=!0,xe++)}}return Ye[He]==null?_e?Ye[He]===null?new C("The "+Ke+" `"+We+"` is marked as required "+("in `"+De+"`, but its value is `null`.")):new C("The "+Ke+" `"+We+"` is marked as required in "+("`"+De+"`, but its value is `undefined`.")):null:U(Ye,He,De,Ke,We)}var Oe=Ee.bind(null,!1);return Oe.isRequired=Ee.bind(null,!0),Oe}function S(U){function te(xe,Ee,Oe,_e,Ye,He){var De=xe[Ee],Ke=M(De);if(Ke!==U){var We=B(De);return new C("Invalid "+_e+" `"+Ye+"` of type "+("`"+We+"` supplied to `"+Oe+"`, expected ")+("`"+U+"`."),{expectedType:U})}return null}return D(te)}function w(){return D(o)}function T(U){function te(xe,Ee,Oe,_e,Ye){if(typeof U!="function")return new C("Property `"+Ye+"` of component `"+Oe+"` has invalid PropType notation inside arrayOf.");var He=xe[Ee];if(!Array.isArray(He)){var De=M(He);return new C("Invalid "+_e+" `"+Ye+"` of type "+("`"+De+"` supplied to `"+Oe+"`, expected an array."))}for(var Ke=0;Ke<He.length;Ke++){var We=U(He,Ke,Oe,_e,Ye+"["+Ke+"]",n);if(We instanceof Error)return We}return null}return D(te)}function O(){function U(te,xe,Ee,Oe,_e){var Ye=te[xe];if(!a(Ye)){var He=M(Ye);return new C("Invalid "+Oe+" `"+_e+"` of type "+("`"+He+"` supplied to `"+Ee+"`, expected a single ReactElement."))}return null}return D(U)}function R(){function U(te,xe,Ee,Oe,_e){var Ye=te[xe];if(!e.isValidElementType(Ye)){var He=M(Ye);return new C("Invalid "+Oe+" `"+_e+"` of type "+("`"+He+"` supplied to `"+Ee+"`, expected a single ReactElement type."))}return null}return D(U)}function k(U){function te(xe,Ee,Oe,_e,Ye){if(!(xe[Ee]instanceof U)){var He=U.name||g,De=me(xe[Ee]);return new C("Invalid "+_e+" `"+Ye+"` of type "+("`"+De+"` supplied to `"+Oe+"`, expected ")+("instance of `"+He+"`."))}return null}return D(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.")),o;function te(xe,Ee,Oe,_e,Ye){for(var He=xe[Ee],De=0;De<U.length;De++)if(x(He,U[De]))return null;var Ke=JSON.stringify(U,function(Ae,Ie){var et=B(Ie);return et==="symbol"?String(Ie):Ie});return new C("Invalid "+_e+" `"+Ye+"` of value `"+String(He)+"` "+("supplied to `"+Oe+"`, expected one of "+Ke+"."))}return D(te)}function q(U){function te(xe,Ee,Oe,_e,Ye){if(typeof U!="function")return new C("Property `"+Ye+"` of component `"+Oe+"` has invalid PropType notation inside objectOf.");var He=xe[Ee],De=M(He);if(De!=="object")return new C("Invalid "+_e+" `"+Ye+"` of type "+("`"+De+"` supplied to `"+Oe+"`, expected an object."));for(var Ke in He)if(r(He,Ke)){var We=U(He,Ke,Oe,_e,Ye+"."+Ke,n);if(We instanceof Error)return We}return null}return D(te)}function ce(U){if(!Array.isArray(U))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),o;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 "+L(xe)+" at index "+te+"."),o}function Ee(Oe,_e,Ye,He,De){for(var Ke=[],We=0;We<U.length;We++){var Ae=U[We],Ie=Ae(Oe,_e,Ye,He,De,n);if(Ie==null)return null;Ie.data&&r(Ie.data,"expectedType")&&Ke.push(Ie.data.expectedType)}var et=Ke.length>0?", expected one of type ["+Ke.join(", ")+"]":"";return new C("Invalid "+He+" `"+De+"` supplied to "+("`"+Ye+"`"+et+"."))}return D(Ee)}function oe(){function U(te,xe,Ee,Oe,_e){return H(te[xe])?null:new C("Invalid "+Oe+" `"+_e+"` supplied to "+("`"+Ee+"`, expected a ReactNode."))}return D(U)}function I(U,te,xe,Ee,Oe){return new C((U||"React class")+": "+te+" type `"+xe+"."+Ee+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Oe+"`.")}function be(U){function te(xe,Ee,Oe,_e,Ye){var He=xe[Ee],De=M(He);if(De!=="object")return new C("Invalid "+_e+" `"+Ye+"` of type `"+De+"` "+("supplied to `"+Oe+"`, expected `object`."));for(var Ke in U){var We=U[Ke];if(typeof We!="function")return I(Oe,_e,Ye,Ke,B(We));var Ae=We(He,Ke,Oe,_e,Ye+"."+Ke,n);if(Ae)return Ae}return null}return D(te)}function $e(U){function te(xe,Ee,Oe,_e,Ye){var He=xe[Ee],De=M(He);if(De!=="object")return new C("Invalid "+_e+" `"+Ye+"` of type `"+De+"` "+("supplied to `"+Oe+"`, expected `object`."));var Ke=t({},xe[Ee],U);for(var We in Ke){var Ae=U[We];if(r(U,We)&&typeof Ae!="function")return I(Oe,_e,Ye,We,B(Ae));if(!Ae)return new C("Invalid "+_e+" `"+Ye+"` key `"+We+"` supplied to `"+Oe+"`.\nBad object: "+JSON.stringify(xe[Ee],null," ")+`
157
- Valid keys: `+JSON.stringify(Object.keys(U),null," "));var Ie=Ae(He,We,Oe,_e,Ye+"."+We,n);if(Ie)return Ie}return null}return D(te)}function H(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(H);if(U===null||a(U))return!0;var te=m(U);if(te){var xe=te.call(U),Ee;if(te!==U.entries){for(;!(Ee=xe.next()).done;)if(!H(Ee.value))return!1}else for(;!(Ee=xe.next()).done;){var Oe=Ee.value;if(Oe&&!H(Oe[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 M(U){var te=typeof U;return Array.isArray(U)?"array":U instanceof RegExp?"object":ie(te,U)?"symbol":te}function B(U){if(typeof U>"u"||U===null)return""+U;var te=M(U);if(te==="object"){if(U instanceof Date)return"date";if(U instanceof RegExp)return"regexp"}return te}function L(U){var te=B(U);switch(te){case"array":case"object":return"an "+te;case"boolean":case"date":case"regexp":return"a "+te;default:return te}}function me(U){return!U.constructor||!U.constructor.name?g:U.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},j1}var K1,q2;function Uue(){if(q2)return K1;q2=1;var e=ex();function t(){}function n(){}return n.resetWarningCache=t,K1=function(){function r(o,a,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},K1}var W2;function zue(){if(W2)return Xh.exports;if(W2=1,process.env.NODE_ENV!=="production"){var e=LI(),t=!0;Xh.exports=Kue()(e.isElement,t)}else Xh.exports=Uue()();return Xh.exports}var que=zue();const nt=ts(que);/**!
158
- * @fileOverview Kickass library to create and place poppers near their reference elements.
159
- * @version 1.16.1
160
- * @license
161
- * Copyright (c) 2016 Federico Zivolo and contributors
162
- *
163
- * Permission is hereby granted, free of charge, to any person obtaining a copy
164
- * of this software and associated documentation files (the "Software"), to deal
165
- * in the Software without restriction, including without limitation the rights
166
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
167
- * copies of the Software, and to permit persons to whom the Software is
168
- * furnished to do so, subject to the following conditions:
169
- *
170
- * The above copyright notice and this permission notice shall be included in all
171
- * copies or substantial portions of the Software.
172
- *
173
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
174
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
175
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
176
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
177
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
178
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
179
- * SOFTWARE.
180
- */var Gd=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",Wue=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Gd&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function Hue(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function Gue(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Wue))}}var Yue=Gd&&window.Promise,Zue=Yue?Hue:Gue;function VI(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function zu(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function tx(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function Yd(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=zu(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:Yd(tx(e))}function NI(e){return e&&e.referenceNode?e.referenceNode:e}var H2=Gd&&!!(window.MSInputMethodContext&&document.documentMode),G2=Gd&&/MSIE 10/.test(navigator.userAgent);function Rc(e){return e===11?H2:e===10?G2:H2||G2}function pc(e){if(!e)return document.documentElement;for(var t=Rc(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&&zu(n,"position")==="static"?pc(n):n}function Xue(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||pc(e.firstElementChild)===e}function A4(e){return e.parentNode!==null?A4(e.parentNode):e}function mm(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 o=s.commonAncestorContainer;if(e!==o&&t!==o||r.contains(i))return Xue(o)?o:pc(o);var a=A4(e);return a.host?mm(a.host,t):mm(e,A4(t).host)}function mc(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 Jue(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=mc(t,"top"),i=mc(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 Y2(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 Z2(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Rc(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function jI(e){var t=e.body,n=e.documentElement,r=Rc(10)&&getComputedStyle(n);return{height:Z2("Height",t,n,r),width:Z2("Width",t,n,r)}}var Que=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ele=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}}(),gc=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Yi=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 Pa(e){return Yi({},e,{right:e.left+e.width,bottom:e.top+e.height})}function T4(e){var t={};try{if(Rc(10)){t=e.getBoundingClientRect();var n=mc(e,"top"),r=mc(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"?jI(e.ownerDocument):{},o=s.width||e.clientWidth||i.width,a=s.height||e.clientHeight||i.height,l=e.offsetWidth-o,d=e.offsetHeight-a;if(l||d){var h=zu(e);l-=Y2(h,"x"),d-=Y2(h,"y"),i.width-=l,i.height-=d}return Pa(i)}function nx(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Rc(10),i=t.nodeName==="HTML",s=T4(e),o=T4(t),a=Yd(e),l=zu(t),d=parseFloat(l.borderTopWidth),h=parseFloat(l.borderLeftWidth);n&&i&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var m=Pa({top:s.top-o.top-d,left:s.left-o.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(a):t===a&&a.nodeName!=="BODY")&&(m=Jue(m,t)),m}function tle(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=nx(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),s=Math.max(n.clientHeight,window.innerHeight||0),o=t?0:mc(n),a=t?0:mc(n,"left"),l={top:o-r.top+r.marginTop,left:a-r.left+r.marginLeft,width:i,height:s};return Pa(l)}function KI(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(zu(e,"position")==="fixed")return!0;var n=tx(e);return n?KI(n):!1}function UI(e){if(!e||!e.parentElement||Rc())return document.documentElement;for(var t=e.parentElement;t&&zu(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function rx(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,s={top:0,left:0},o=i?UI(e):mm(e,NI(t));if(r==="viewport")s=tle(o,i);else{var a=void 0;r==="scrollParent"?(a=Yd(tx(t)),a.nodeName==="BODY"&&(a=e.ownerDocument.documentElement)):r==="window"?a=e.ownerDocument.documentElement:a=r;var l=nx(a,o,i);if(a.nodeName==="HTML"&&!KI(o)){var d=jI(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 nle(e){var t=e.width,n=e.height;return t*n}function zI(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 o=rx(n,r,s,i),a={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},l=Object.keys(a).map(function(g){return Yi({key:g},a[g],{area:nle(a[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 qI(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=r?UI(t):mm(t,NI(n));return nx(n,i,r)}function WI(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 gm(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 HI(e,t,n){n=n.split("-")[0];var r=WI(e),i={width:r.width,height:r.height},s=["right","left"].indexOf(n)!==-1,o=s?"top":"left",a=s?"left":"top",l=s?"height":"width",d=s?"width":"height";return i[o]=t[o]+t[l]/2-r[l]/2,n===a?i[a]=t[a]-r[d]:i[a]=t[gm(a)],i}function Zd(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function rle(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===n});var r=Zd(e,function(i){return i[t]===n});return e.indexOf(r)}function GI(e,t,n){var r=n===void 0?e:e.slice(0,rle(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&&VI(s)&&(t.offsets.popper=Pa(t.offsets.popper),t.offsets.reference=Pa(t.offsets.reference),t=s(t,i))}),t}function ile(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=qI(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=zI(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=HI(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=GI(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function YI(e,t){return e.some(function(n){var r=n.name,i=n.enabled;return i&&r===t})}function ix(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 sle(){return this.state.isDestroyed=!0,YI(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[ix("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function ZI(e){var t=e.ownerDocument;return t?t.defaultView:window}function XI(e,t,n,r){var i=e.nodeName==="BODY",s=i?e.ownerDocument.defaultView:e;s.addEventListener(t,n,{passive:!0}),i||XI(Yd(s.parentNode),t,n,r),r.push(s)}function ole(e,t,n,r){n.updateBound=r,ZI(e).addEventListener("resize",n.updateBound,{passive:!0});var i=Yd(e);return XI(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function ale(){this.state.eventsEnabled||(this.state=ole(this.reference,this.options,this.state,this.scheduleUpdate))}function ule(e,t){return ZI(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 lle(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=ule(this.reference,this.state))}function sx(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function P4(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&sx(t[n])&&(r="px"),e.style[n]=t[n]+r})}function cle(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function fle(e){return P4(e.instance.popper,e.styles),cle(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&P4(e.arrowElement,e.arrowStyles),e}function dle(e,t,n,r,i){var s=qI(i,t,e,n.positionFixed),o=zI(n.placement,s,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",o),P4(t,{position:n.positionFixed?"fixed":"absolute"}),n}function hle(e,t){var n=e.offsets,r=n.popper,i=n.reference,s=Math.round,o=Math.floor,a=function(S){return S},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:o:a,C=t?s:a;return{left:x(b&&!m&&t?r.left-1:r.left),top:C(r.top),bottom:C(r.bottom),right:x(r.right)}}var ple=Gd&&/Firefox/i.test(navigator.userAgent);function mle(e,t){var n=t.x,r=t.y,i=e.offsets.popper,s=Zd(e.instance.modifiers,function(T){return T.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 o=s!==void 0?s:t.gpuAcceleration,a=pc(e.instance.popper),l=T4(a),d={position:i.position},h=hle(e,window.devicePixelRatio<2||!ple),m=n==="bottom"?"top":"bottom",g=r==="right"?"left":"right",b=ix("transform"),x=void 0,C=void 0;if(m==="bottom"?a.nodeName==="HTML"?C=-a.clientHeight+h.bottom:C=-l.height+h.bottom:C=h.top,g==="right"?a.nodeName==="HTML"?x=-a.clientWidth+h.right:x=-l.width+h.right:x=h.left,o&&b)d[b]="translate3d("+x+"px, "+C+"px, 0)",d[m]=0,d[g]=0,d.willChange="transform";else{var D=m==="bottom"?-1:1,S=g==="right"?-1:1;d[m]=C*D,d[g]=x*S,d.willChange=m+", "+g}var w={"x-placement":e.placement};return e.attributes=Yi({},w,e.attributes),e.styles=Yi({},d,e.styles),e.arrowStyles=Yi({},e.offsets.arrow,e.arrowStyles),e}function JI(e,t,n){var r=Zd(e,function(a){var l=a.name;return l===t}),i=!!r&&e.some(function(a){return a.name===n&&a.enabled&&a.order<r.order});if(!i){var s="`"+t+"`",o="`"+n+"`";console.warn(o+" modifier is required by "+s+" modifier in order to work, be sure to include it before "+s+"!")}return i}function gle(e,t){var n;if(!JI(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,o=s.popper,a=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=WI(r)[d];a[b]-x<o[m]&&(e.offsets.popper[m]-=o[m]-(a[b]-x)),a[m]+x>o[b]&&(e.offsets.popper[m]+=a[m]+x-o[b]),e.offsets.popper=Pa(e.offsets.popper);var C=a[m]+a[d]/2-x/2,D=zu(e.instance.popper),S=parseFloat(D["margin"+h]),w=parseFloat(D["border"+h+"Width"]),T=C-e.offsets.popper[m]-S-w;return T=Math.max(Math.min(o[d]-x,T),0),e.arrowElement=r,e.offsets.arrow=(n={},gc(n,m,Math.round(T)),gc(n,g,""),n),e}function vle(e){return e==="end"?"start":e==="start"?"end":e}var QI=["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"],U1=QI.slice(3);function X2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=U1.indexOf(e),r=U1.slice(n+1).concat(U1.slice(0,n));return t?r.reverse():r}var z1={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function yle(e,t){if(YI(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=rx(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=gm(r),s=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case z1.FLIP:o=[r,i];break;case z1.CLOCKWISE:o=X2(r);break;case z1.COUNTERCLOCKWISE:o=X2(r,!0);break;default:o=t.behavior}return o.forEach(function(a,l){if(r!==a||o.length===l+1)return e;r=e.placement.split("-")[0],i=gm(r);var d=e.offsets.popper,h=e.offsets.reference,m=Math.floor,g=r==="left"&&m(d.right)>m(h.left)||r==="right"&&m(d.left)<m(h.right)||r==="top"&&m(d.bottom)>m(h.top)||r==="bottom"&&m(d.top)<m(h.bottom),b=m(d.left)<m(n.left),x=m(d.right)>m(n.right),C=m(d.top)<m(n.top),D=m(d.bottom)>m(n.bottom),S=r==="left"&&b||r==="right"&&x||r==="top"&&C||r==="bottom"&&D,w=["top","bottom"].indexOf(r)!==-1,T=!!t.flipVariations&&(w&&s==="start"&&b||w&&s==="end"&&x||!w&&s==="start"&&C||!w&&s==="end"&&D),O=!!t.flipVariationsByContent&&(w&&s==="start"&&x||w&&s==="end"&&b||!w&&s==="start"&&D||!w&&s==="end"&&C),R=T||O;(g||S||R)&&(e.flipped=!0,(g||S)&&(r=o[l+1]),R&&(s=vle(s)),e.placement=r+(s?"-"+s:""),e.offsets.popper=Yi({},e.offsets.popper,HI(e.instance.popper,e.offsets.reference,e.placement)),e=GI(e.instance.modifiers,e,"flip"))}),e}function ble(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],s=Math.floor,o=["top","bottom"].indexOf(i)!==-1,a=o?"right":"bottom",l=o?"left":"top",d=o?"width":"height";return n[a]<s(r[l])&&(e.offsets.popper[l]=s(r[l])-n[d]),n[l]>s(r[a])&&(e.offsets.popper[l]=s(r[a])),e}function $le(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+i[1],o=i[2];if(!s)return e;if(o.indexOf("%")===0){var a=void 0;switch(o){case"%p":a=n;break;case"%":case"%r":default:a=r}var l=Pa(a);return l[t]/100*s}else if(o==="vh"||o==="vw"){var d=void 0;return o==="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 xle(e,t,n,r){var i=[0,0],s=["right","left"].indexOf(r)!==-1,o=e.split(/(\+|\-)/).map(function(h){return h.trim()}),a=o.indexOf(Zd(o,function(h){return h.search(/,|\s/)!==-1}));o[a]&&o[a].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,d=a!==-1?[o.slice(0,a).concat([o[a].split(l)[0]]),[o[a].split(l)[1]].concat(o.slice(a+1))]:[o];return d=d.map(function(h,m){var g=(m===1?!s:s)?"height":"width",b=!1;return h.reduce(function(x,C){return x[x.length-1]===""&&["+","-"].indexOf(C)!==-1?(x[x.length-1]=C,b=!0,x):b?(x[x.length-1]+=C,b=!1,x):x.concat(C)},[]).map(function(x){return $le(x,g,t,n)})}),d.forEach(function(h,m){h.forEach(function(g,b){sx(g)&&(i[m]+=g*(h[b-1]==="-"?-1:1))})}),i}function wle(e,t){var n=t.offset,r=e.placement,i=e.offsets,s=i.popper,o=i.reference,a=r.split("-")[0],l=void 0;return sx(+n)?l=[+n,0]:l=xle(n,s,o,a),a==="left"?(s.top+=l[0],s.left-=l[1]):a==="right"?(s.top+=l[0],s.left+=l[1]):a==="top"?(s.left+=l[0],s.top-=l[1]):a==="bottom"&&(s.left+=l[0],s.top+=l[1]),e.popper=s,e}function Cle(e,t){var n=t.boundariesElement||pc(e.instance.popper);e.instance.reference===n&&(n=pc(n));var r=ix("transform"),i=e.instance.popper.style,s=i.top,o=i.left,a=i[r];i.top="",i.left="",i[r]="";var l=rx(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=s,i.left=o,i[r]=a,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])),gc({},b,x)},secondary:function(b){var x=b==="right"?"left":"top",C=h[x];return h[b]>l[b]&&!t.escapeWithReference&&(C=Math.min(h[x],l[b]-(b==="right"?h.width:h.height))),gc({},x,C)}};return d.forEach(function(g){var b=["left","top"].indexOf(g)!==-1?"primary":"secondary";h=Yi({},h,m[b](g))}),e.offsets.popper=h,e}function Sle(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,s=i.reference,o=i.popper,a=["bottom","top"].indexOf(n)!==-1,l=a?"left":"top",d=a?"width":"height",h={start:gc({},l,s[l]),end:gc({},l,s[l]+s[d]-o[d])};e.offsets.popper=Yi({},o,h[r])}return e}function Ele(e){if(!JI(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Zd(e.instance.modifiers,function(r){return r.name==="preventOverflow"}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function Dle(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,s=r.reference,o=["left","right"].indexOf(n)!==-1,a=["top","left"].indexOf(n)===-1;return i[o?"left":"top"]=s[n]-(a?i[o?"width":"height"]:0),e.placement=gm(t),e.offsets.popper=Pa(i),e}var Ale={shift:{order:100,enabled:!0,fn:Sle},offset:{order:200,enabled:!0,fn:wle,offset:0},preventOverflow:{order:300,enabled:!0,fn:Cle,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:ble},arrow:{order:500,enabled:!0,fn:gle,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:yle,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:Dle},hide:{order:800,enabled:!0,fn:Ele},computeStyle:{order:850,enabled:!0,fn:mle,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:fle,onLoad:dle,gpuAcceleration:void 0}},Tle={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Ale},wd=function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Que(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Zue(this.update.bind(this)),this.options=Yi({},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(Yi({},e.Defaults.modifiers,i.modifiers)).forEach(function(o){r.options.modifiers[o]=Yi({},e.Defaults.modifiers[o]||{},i.modifiers?i.modifiers[o]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(o){return Yi({name:o},r.options.modifiers[o])}).sort(function(o,a){return o.order-a.order}),this.modifiers.forEach(function(o){o.enabled&&VI(o.onLoad)&&o.onLoad(r.reference,r.popper,r.options,o,r.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return ele(e,[{key:"update",value:function(){return ile.call(this)}},{key:"destroy",value:function(){return sle.call(this)}},{key:"enableEventListeners",value:function(){return ale.call(this)}},{key:"disableEventListeners",value:function(){return lle.call(this)}}]),e}();wd.Utils=(typeof window<"u"?window:global).PopperUtils;wd.placements=QI;wd.Defaults=Tle;var Ple=["innerHTML","ownerDocument","style","attributes","nodeValue"],_le=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],Mle=["bigint","boolean","null","number","string","symbol","undefined"];function vg(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(Rle(t))return t}function Ps(e){return function(t){return vg(t)===e}}function Rle(e){return _le.includes(e)}function Fc(e){return function(t){return typeof t===e}}function Fle(e){return Mle.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=vg(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 vg(e)==="AsyncGeneratorFunction"};je.asyncFunction=Ps("AsyncFunction");je.bigint=Fc("bigint");je.boolean=function(e){return e===!0||e===!1};je.date=Ps("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)&&Ple.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=Ps("Error");je.function=Fc("function");je.generator=function(e){return je.iterable(e)&&je.function(e.next)&&je.function(e.throw)};je.generatorFunction=Ps("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=Ps("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 Fc("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=Ps("Function");je.plainObject=function(e){if(vg(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};je.primitive=function(e){return je.null(e)||Fle(typeof e)};je.promise=Ps("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=Ps("RegExp");je.set=Ps("Set");je.string=Fc("string");je.symbol=Fc("symbol");je.undefined=Fc("undefined");je.weakMap=Ps("WeakMap");je.weakSet=Ps("WeakSet");function e9(e){return function(t){return typeof t===e}}var kle=e9("function"),Ole=function(e){return e===null},J2=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},Q2=function(e){return!Ile(e)&&!Ole(e)&&(kle(e)||typeof e=="object")},Ile=e9("undefined"),_4=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 Lle(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;r--!==0;)if(!ai(e[r],t[r]))return!1;return!0}function Ble(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 Vle(e,t){var n,r,i,s;if(e.size!==t.size)return!1;try{for(var o=_4(e.entries()),a=o.next();!a.done;a=o.next()){var l=a.value;if(!t.has(l[0]))return!1}}catch(m){n={error:m}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}try{for(var d=_4(e.entries()),h=d.next();!h.done;h=d.next()){var l=h.value;if(!ai(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 Nle(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var i=_4(e.entries()),s=i.next();!s.done;s=i.next()){var o=s.value;if(!t.has(o[0]))return!1}}catch(a){n={error:a}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0}function ai(e,t){if(e===t)return!0;if(e&&Q2(e)&&t&&Q2(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return Lle(e,t);if(e instanceof Map&&t instanceof Map)return Vle(e,t);if(e instanceof Set&&t instanceof Set)return Nle(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return Ble(e,t);if(J2(e)&&J2(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)&&!ai(e[s],t[s]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}function jle(){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 Kle(e,t,n){return t9(e,t)?[e,t].every(je.array)?!e.some(iP(n))&&t.some(iP(n)):[e,t].every(je.plainObject)?!Object.entries(e).some(rP(n))&&Object.entries(t).some(rP(n)):t===n:!1}function eP(e,t,n){var r=n.actual,i=n.key,s=n.previous,o=n.type,a=eo(e,i),l=eo(t,i),d=[a,l].every(je.number)&&(o==="increased"?a<l:a>l);return je.undefined(r)||(d=d&&l===r),je.undefined(s)||(d=d&&a===s),d}function tP(e,t,n){var r=n.key,i=n.type,s=n.value,o=eo(e,r),a=eo(t,r),l=i==="added"?o:a,d=i==="added"?a:o;if(!je.nullOrUndefined(s)){if(je.defined(l)){if(je.array(l)||je.plainObject(l))return Kle(l,d,s)}else return ai(d,s);return!1}return[o,a].every(je.array)?!d.every(ox(l)):[o,a].every(je.plainObject)?Ule(Object.keys(l),Object.keys(d)):![o,a].every(function(h){return je.primitive(h)&&je.defined(h)})&&(i==="added"?!je.defined(o)&&je.defined(a):je.defined(o)&&!je.defined(a))}function nP(e,t,n){var r=n===void 0?{}:n,i=r.key,s=eo(e,i),o=eo(t,i);if(!t9(s,o))throw new TypeError("Inputs have different types");if(!jle(s,o))throw new TypeError("Inputs don't have length");return[s,o].every(je.plainObject)&&(s=Object.keys(s),o=Object.keys(o)),[s,o]}function rP(e){return function(t){var n=t[0],r=t[1];return je.array(e)?ai(e,r)||e.some(function(i){return ai(i,r)||je.array(r)&&ox(r)(i)}):je.plainObject(e)&&e[n]?!!e[n]&&ai(e[n],r):ai(e,r)}}function Ule(e,t){return t.some(function(n){return!e.includes(n)})}function iP(e){return function(t){return je.array(e)?e.some(function(n){return ai(n,t)||je.array(t)&&ox(t)(n)}):ai(e,t)}}function $f(e,t){return je.array(e)?e.some(function(n){return ai(n,t)}):ai(e,t)}function ox(e){return function(t){return e.some(function(n){return ai(n,t)})}}function t9(){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 eo(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 zle(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 tP(e,t,{key:m,type:"added",value:g})}catch{return!1}},r=function(m,g,b){try{var x=eo(e,m),C=eo(t,m),D=je.defined(g),S=je.defined(b);if(D||S){var w=S?$f(b,x):!$f(g,x),T=$f(g,C);return w&&T}return[x,C].every(je.array)||[x,C].every(je.plainObject)?!ai(x,C):x!==C}catch{return!1}},i=function(m,g,b){if(!je.defined(m))return!1;try{var x=eo(e,m),C=eo(t,m),D=je.defined(b);return $f(g,x)&&(D?$f(b,C):!D)}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},o=function(m,g,b){if(!je.defined(m))return!1;try{return eP(e,t,{key:m,actual:g,previous:b,type:"decreased"})}catch{return!1}},a=function(m){try{var g=nP(e,t,{key:m}),b=g[0],x=g[1];return!!b.length&&!x.length}catch{return!1}},l=function(m){try{var g=nP(e,t,{key:m}),b=g[0],x=g[1];return!b.length&&!!x.length}catch{return!1}},d=function(m,g,b){if(!je.defined(m))return!1;try{return eP(e,t,{key:m,actual:g,previous:b,type:"increased"})}catch{return!1}},h=function(m,g){try{return tP(e,t,{key:m,type:"removed",value:g})}catch{return!1}};return{added:n,changed:r,changedFrom:i,changedTo:s,decreased:o,emptied:a,filled:l,increased:d,removed:h}}function sP(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 Pn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sP(Object(n),!0).forEach(function(r){Mr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qle(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,r9(r.key),r)}}function Jd(e,t,n){return t&&qle(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mr(e,t,n){return t=r9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qd(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&M4(e,t)}function vm(e){return vm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vm(e)}function M4(e,t){return M4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},M4(e,t)}function Wle(){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 Hle(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 n9(e,t){if(e==null)return{};var n=Hle(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 Io(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gle(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 Io(e)}function eh(e){var t=Wle();return function(){var r=vm(e),i;if(t){var s=vm(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return Gle(this,i)}}function Yle(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 r9(e){var t=Yle(e,"string");return typeof t=="symbol"?t:String(t)}var Zle={flip:{padding:20},preventOverflow:{padding:10}},Xle="The typeValidator argument must be a function with the signature function(props, propName, componentName).",Jle="The error message is optional, but must be a string if provided.";function Qle(e,t,n,r){return typeof e=="boolean"?e:typeof e=="function"?e(t,n,r):e?!!e:!1}function ece(e,t){return Object.hasOwnProperty.call(e,t)}function tce(e,t,n,r){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}function nce(e,t){if(typeof e!="function")throw new TypeError(Xle);if(t)throw new TypeError(Jle)}function oP(e,t,n){return nce(e,n),function(r,i,s){for(var o=arguments.length,a=new Array(o>3?o-3:0),l=3;l<o;l++)a[l-3]=arguments[l];return Qle(t,r,i,s)?ece(r,i)?e.apply(void 0,[r,i,s].concat(a)):tce(r,i,s):e.apply(void 0,[r,i,s].concat(a))}}var Jt={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing"},xf=Ko.createPortal!==void 0;function Hs(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function q1(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function Qh(e){var t=e.title,n=e.data,r=e.warn,i=r===void 0?!1:r,s=e.debug,o=s===void 0?!1:s,a=i?console.warn||console.error:console.log;o&&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?a.apply(console,[l.key,l.value]):a.apply(console,[l])}):a.apply(console,[n]),console.groupEnd())}function rce(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,n,r)}function ice(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,n,r)}function sce(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;i=function(o){n(o),ice(e,t,i)},rce(e,t,i,r)}function aP(){}var i9=function(e){Qd(n,e);var t=eh(n);function n(){return Xd(this,n),t.apply(this,arguments)}return Jd(n,[{key:"componentDidMount",value:function(){Hs()&&(this.node||this.appendNode(),xf||this.renderPortal())}},{key:"componentDidUpdate",value:function(){Hs()&&(xf||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!Hs()||!this.node||(xf||Ko.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,o=i.zIndex;this.node||(this.node=document.createElement("div"),s&&(this.node.id=s),o&&(this.node.style.zIndex=o),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!Hs())return null;var i=this.props,s=i.children,o=i.setRef;if(this.node||this.appendNode(),xf)return Ko.createPortal(s,this.node);var a=Ko.unstable_renderSubtreeIntoContainer(this,s.length>1?A.createElement("div",null,s):s[0],this.node);return o(a),null}},{key:"renderReact16",value:function(){var i=this.props,s=i.hasChildren,o=i.placement,a=i.target;return s?this.renderPortal():a||o==="center"?this.renderPortal():null}},{key:"render",value:function(){return xf?this.renderReact16():null}}]),n}(A.Component);Mr(i9,"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 s9=function(e){Qd(n,e);var t=eh(n);function n(){return Xd(this,n),t.apply(this,arguments)}return Jd(n,[{key:"parentStyle",get:function(){var i=this.props,s=i.placement,o=i.styles,a=o.arrow.length,l={pointerEvents:"none",position:"absolute",width:"100%"};return s.startsWith("top")?(l.bottom=0,l.left=0,l.right=0,l.height=a):s.startsWith("bottom")?(l.left=0,l.right=0,l.top=0,l.height=a):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,o=i.setArrowRef,a=i.styles,l=a.arrow,d=l.color,h=l.display,m=l.length,g=l.margin,b=l.position,x=l.spread,C={display:h,position:b},D,S=x,w=m;return s.startsWith("top")?(D="0,0 ".concat(S/2,",").concat(w," ").concat(S,",0"),C.bottom=0,C.marginLeft=g,C.marginRight=g):s.startsWith("bottom")?(D="".concat(S,",").concat(w," ").concat(S/2,",0 0,").concat(w),C.top=0,C.marginLeft=g,C.marginRight=g):s.startsWith("left")?(w=x,S=m,D="0,0 ".concat(S,",").concat(w/2," 0,").concat(w),C.right=0,C.marginTop=g,C.marginBottom=g):s.startsWith("right")&&(w=x,S=m,D="".concat(S,",").concat(w," ").concat(S,",0 0,").concat(w/2),C.left=0,C.marginTop=g,C.marginBottom=g),A.createElement("div",{className:"__floater__arrow",style:this.parentStyle},A.createElement("span",{ref:o,style:C},A.createElement("svg",{width:S,height:w,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},A.createElement("polygon",{points:D,fill:d}))))}}]),n}(A.Component);Mr(s9,"propTypes",{placement:nt.string.isRequired,setArrowRef:nt.func.isRequired,styles:nt.object.isRequired});var oce=["color","height","width"];function o9(e){var t=e.handleClick,n=e.styles,r=n.color,i=n.height,s=n.width,o=n9(n,oce);return A.createElement("button",{"aria-label":"close",onClick:t,style:o,type:"button"},A.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"},A.createElement("g",null,A.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r}))))}o9.propTypes={handleClick:nt.func.isRequired,styles:nt.object.isRequired};function a9(e){var t=e.content,n=e.footer,r=e.handleClick,i=e.open,s=e.positionWrapper,o=e.showCloseButton,a=e.title,l=e.styles,d={content:A.isValidElement(t)?t:A.createElement("div",{className:"__floater__content",style:l.content},t)};return a&&(d.title=A.isValidElement(a)?a:A.createElement("div",{className:"__floater__title",style:l.title},a)),n&&(d.footer=A.isValidElement(n)?n:A.createElement("div",{className:"__floater__footer",style:l.footer},n)),(o||s)&&!je.boolean(i)&&(d.close=A.createElement(o9,{styles:l.close,handleClick:r})),A.createElement("div",{className:"__floater__container",style:l.container},d.close,d.title,d.content,d.footer)}a9.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 u9=function(e){Qd(n,e);var t=eh(n);function n(){return Xd(this,n),t.apply(this,arguments)}return Jd(n,[{key:"style",get:function(){var i=this.props,s=i.disableAnimation,o=i.component,a=i.placement,l=i.hideArrow,d=i.status,h=i.styles,m=h.arrow.length,g=h.floater,b=h.floaterCentered,x=h.floaterClosing,C=h.floaterOpening,D=h.floaterWithAnimation,S=h.floaterWithComponent,w={};return l||(a.startsWith("top")?w.padding="0 0 ".concat(m,"px"):a.startsWith("bottom")?w.padding="".concat(m,"px 0 0"):a.startsWith("left")?w.padding="0 ".concat(m,"px 0 0"):a.startsWith("right")&&(w.padding="0 0 0 ".concat(m,"px"))),[Jt.OPENING,Jt.OPEN].indexOf(d)!==-1&&(w=Pn(Pn({},w),C)),d===Jt.CLOSING&&(w=Pn(Pn({},w),x)),d===Jt.OPEN&&!s&&(w=Pn(Pn({},w),D)),a==="center"&&(w=Pn(Pn({},w),b)),o&&(w=Pn(Pn({},w),S)),Pn(Pn({},g),w)}},{key:"render",value:function(){var i=this.props,s=i.component,o=i.handleClick,a=i.hideArrow,l=i.setFloaterRef,d=i.status,h={},m=["__floater"];return s?A.isValidElement(s)?h.content=A.cloneElement(s,{closeFn:o}):h.content=s({closeFn:o}):h.content=A.createElement(a9,this.props),d===Jt.OPEN&&m.push("__floater__open"),a||(h.arrow=A.createElement(s9,this.props)),A.createElement("div",{ref:l,className:m.join(" "),style:this.style},A.createElement("div",{className:"__floater__body"},h.content,h.arrow))}}]),n}(A.Component);Mr(u9,"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 l9=function(e){Qd(n,e);var t=eh(n);function n(){return Xd(this,n),t.apply(this,arguments)}return Jd(n,[{key:"render",value:function(){var i=this.props,s=i.children,o=i.handleClick,a=i.handleMouseEnter,l=i.handleMouseLeave,d=i.setChildRef,h=i.setWrapperRef,m=i.style,g=i.styles,b;if(s)if(A.Children.count(s)===1)if(!A.isValidElement(s))b=A.createElement("span",null,s);else{var x=je.function(s.type)?"innerRef":"ref";b=A.cloneElement(A.Children.only(s),Mr({},x,d))}else b=s;return b?A.createElement("span",{ref:h,style:Pn(Pn({},g),m),onClick:o,onMouseEnter:a,onMouseLeave:l},b):null}}]),n}(A.Component);Mr(l9,"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 ace={zIndex:100};function uce(e){var t=xs(ace,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 lce=["arrow","flip","offset"],cce=["position","top","right","bottom","left"],ax=function(e){Qd(n,e);var t=eh(n);function n(r){var i;return Xd(this,n),i=t.call(this,r),Mr(Io(i),"setArrowRef",function(s){i.arrowRef=s}),Mr(Io(i),"setChildRef",function(s){i.childRef=s}),Mr(Io(i),"setFloaterRef",function(s){i.floaterRef=s}),Mr(Io(i),"setWrapperRef",function(s){i.wrapperRef=s}),Mr(Io(i),"handleTransitionEnd",function(){var s=i.state.status,o=i.props.callback;i.wrapperPopper&&i.wrapperPopper.instance.update(),i.setState({status:s===Jt.OPENING?Jt.OPEN:Jt.IDLE},function(){var a=i.state.status;o(a===Jt.OPEN?"open":"close",i.props)})}),Mr(Io(i),"handleClick",function(){var s=i.props,o=s.event,a=s.open;if(!je.boolean(a)){var l=i.state,d=l.positionWrapper,h=l.status;(i.event==="click"||i.event==="hover"&&d)&&(Qh({title:"click",data:[{event:o,status:h===Jt.OPEN?"closing":"opening"}],debug:i.debug}),i.toggle())}}),Mr(Io(i),"handleMouseEnter",function(){var s=i.props,o=s.event,a=s.open;if(!(je.boolean(a)||q1())){var l=i.state.status;i.event==="hover"&&l===Jt.IDLE&&(Qh({title:"mouseEnter",data:[{key:"originalEvent",value:o}],debug:i.debug}),clearTimeout(i.eventDelayTimeout),i.toggle())}}),Mr(Io(i),"handleMouseLeave",function(){var s=i.props,o=s.event,a=s.eventDelay,l=s.open;if(!(je.boolean(l)||q1())){var d=i.state,h=d.status,m=d.positionWrapper;i.event==="hover"&&(Qh({title:"mouseLeave",data:[{key:"originalEvent",value:o}],debug:i.debug}),a?[Jt.OPENING,Jt.OPEN].indexOf(h)!==-1&&!m&&!i.eventDelayTimeout&&(i.eventDelayTimeout=setTimeout(function(){delete i.eventDelayTimeout,i.toggle()},a*1e3)):i.toggle(Jt.IDLE))}}),i.state={currentPlacement:r.placement,needsUpdate:!1,positionWrapper:r.wrapperOptions.position&&!!r.target,status:Jt.INIT,statusWrapper:Jt.INIT},i._isMounted=!1,i.hasMounted=!1,Hs()&&window.addEventListener("load",function(){i.popper&&i.popper.instance.update(),i.wrapperPopper&&i.wrapperPopper.instance.update()}),i}return Jd(n,[{key:"componentDidMount",value:function(){if(Hs()){var i=this.state.positionWrapper,s=this.props,o=s.children,a=s.open,l=s.target;this._isMounted=!0,Qh({title:"init",data:{hasChildren:!!o,hasTarget:!!l,isControlled:je.boolean(a),positionWrapper:i,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!o&&l&&je.boolean(a)}}},{key:"componentDidUpdate",value:function(i,s){if(Hs()){var o=this.props,a=o.autoOpen,l=o.open,d=o.target,h=o.wrapperOptions,m=zle(s,this.state),g=m.changedFrom,b=m.changed;if(i.open!==l){var x;je.boolean(l)&&(x=l?Jt.OPENING:Jt.CLOSING),this.toggle(x)}(i.wrapperOptions.position!==h.position||i.target!==d)&&this.changeWrapperPosition(this.props),b("status",Jt.IDLE)&&l?this.toggle(Jt.OPEN):g("status",Jt.INIT,Jt.IDLE)&&a&&this.toggle(Jt.OPEN),this.popper&&b("status",Jt.OPENING)&&this.popper.instance.update(),this.floaterRef&&(b("status",Jt.OPENING)||b("status",Jt.CLOSING))&&sce(this.floaterRef,"transitionend",this.handleTransitionEnd),b("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){Hs()&&(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,o=this.state.positionWrapper,a=this.props,l=a.disableFlip,d=a.getPopper,h=a.hideArrow,m=a.offset,g=a.placement,b=a.wrapperOptions,x=g==="top"||g==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(g==="center")this.setState({status:Jt.IDLE});else if(s&&this.floaterRef){var C=this.options,D=C.arrow,S=C.flip,w=C.offset,T=n9(C,lce);new wd(s,this.floaterRef,{placement:g,modifiers:Pn({arrow:Pn({enabled:!h,element:this.arrowRef},D),flip:Pn({enabled:!l,behavior:x},S),offset:Pn({offset:"0, ".concat(m,"px")},w)},T),onCreate:function(k){var K;if(i.popper=k,!((K=i.floaterRef)!==null&&K!==void 0&&K.isConnected)){i.setState({needsUpdate:!0});return}d(k,"floater"),i._isMounted&&i.setState({currentPlacement:k.placement,status:Jt.IDLE}),g!==k.placement&&setTimeout(function(){k.instance.update()},1)},onUpdate:function(k){i.popper=k;var K=i.state.currentPlacement;i._isMounted&&k.placement!==K&&i.setState({currentPlacement:k.placement})}})}if(o){var O=je.undefined(b.offset)?0:b.offset;new wd(this.target,this.wrapperRef,{placement:b.placement||g,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(O,"px")},flip:{enabled:!1}},onCreate:function(k){i.wrapperPopper=k,i._isMounted&&i.setState({statusWrapper:Jt.IDLE}),d(k,"wrapper"),g!==k.placement&&setTimeout(function(){k.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,o=i.wrapperOptions;this.setState({positionWrapper:o.position&&!!s})}},{key:"toggle",value:function(i){var s=this.state.status,o=s===Jt.OPEN?Jt.CLOSING:Jt.OPENING;je.undefined(i)||(o=i),this.setState({status:o})}},{key:"debug",get:function(){var i=this.props.debug;return i||Hs()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var i=this.props,s=i.disableHoverToClick,o=i.event;return o==="hover"&&q1()&&!s?"click":o}},{key:"options",get:function(){var i=this.props.options;return xs(Zle,i||{})}},{key:"styles",get:function(){var i=this,s=this.state,o=s.status,a=s.positionWrapper,l=s.statusWrapper,d=this.props.styles,h=xs(uce(d),d);if(a){var m;[Jt.IDLE].indexOf(o)===-1||[Jt.IDLE].indexOf(l)===-1?m=h.wrapperPosition:m=this.wrapperPopper.styles,h.wrapper=Pn(Pn({},h.wrapper),m)}if(this.target){var g=window.getComputedStyle(this.target);this.wrapperStyles?h.wrapper=Pn(Pn({},h.wrapper),this.wrapperStyles):["relative","static"].indexOf(g.position)===-1&&(this.wrapperStyles={},a||(cce.forEach(function(b){i.wrapperStyles[b]=g[b]}),h.wrapper=Pn(Pn({},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(!Hs())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,o=i.positionWrapper,a=i.status,l=this.props,d=l.children,h=l.component,m=l.content,g=l.disableAnimation,b=l.footer,x=l.hideArrow,C=l.id,D=l.open,S=l.showCloseButton,w=l.style,T=l.target,O=l.title,R=A.createElement(l9,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:w,styles:this.styles.wrapper},d),k={};return o?k.wrapperInPortal=R:k.wrapperAsChildren=R,A.createElement("span",null,A.createElement(i9,{hasChildren:!!d,id:C,placement:s,setRef:this.setFloaterRef,target:T,zIndex:this.styles.options.zIndex},A.createElement(u9,{component:h,content:m,disableAnimation:g,footer:b,handleClick:this.handleClick,hideArrow:x||s==="center",open:D,placement:s,positionWrapper:o,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:S,status:a,styles:this.styles,title:O}),k.wrapperInPortal),k.wrapperAsChildren)}}]),n}(A.Component);Mr(ax,"propTypes",{autoOpen:nt.bool,callback:nt.func,children:nt.node,component:oP(nt.oneOfType([nt.func,nt.element]),function(e){return!e.content}),content:oP(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})});Mr(ax,"defaultProps",{autoOpen:!1,callback:aP,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:aP,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var fce=Object.defineProperty,dce=(e,t,n)=>t in e?fce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mt=(e,t,n)=>dce(e,typeof t!="symbol"?t+"":t,n),on={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},qi={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"},It={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},zt={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished"};function ba(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function c9(e){return e?e.getBoundingClientRect():null}function hce(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,o)=>s-o),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 jo(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 pce(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function Cd(e,t,n){if(!e)return xu();const r=II(e);if(r){if(r.isSameNode(xu()))return n?document:xu();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",xu()}return r}function th(e,t){if(!e)return!1;const n=Cd(e,t);return n?!n.isSameNode(xu()):!1}function mce(e){return e.offsetParent!==document.body}function vc(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=pce(e);return n==="BODY"||n==="HTML"?!1:r&&r.position===t?!0:e.parentNode?vc(e.parentNode,t):!1}function gce(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 vce(e,t,n){var r,i,s;const o=c9(e),a=Cd(e,n),l=th(e,n),d=vc(e);let h=0,m=(r=o==null?void 0:o.top)!=null?r:0;if(l&&d){const g=(i=e==null?void 0:e.offsetTop)!=null?i:0,b=(s=a==null?void 0:a.scrollTop)!=null?s:0;m=g-b}else a instanceof HTMLElement&&(h=a.scrollTop,!l&&!vc(e)&&(m+=h),a.isSameNode(xu())||(m+=xu().scrollTop));return Math.floor(m-t)}function yce(e,t,n){var r;if(!e)return 0;const{offsetTop:i=0,scrollTop:s=0}=(r=II(e))!=null?r:{};let o=e.getBoundingClientRect().top+s;i&&(th(e,n)||mce(e))&&(o-=i);const a=Math.floor(o-t);return a<0?0:a}function xu(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function bce(e,t){const{duration:n,element:r}=t;return new Promise((i,s)=>{const{scrollTop:o}=r,a=e>o?e-o:o-e;_ue.top(r,e,{duration:a<100?50:n},l=>l&&l.message!=="Element already at target scroll position"?s(l):i())})}var wf=Ko.createPortal!==void 0;function f9(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 Ep(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Gs(e,t={}){const{defaultValue:n,step:r,steps:i}=t;let s=O2(e);if(s)(s.includes("{step}")||s.includes("{steps}"))&&r&&i&&(s=s.replace("{step}",r.toString()).replace("{steps}",i.toString()));else if(A.isValidElement(e)&&!Object.values(e.props).length&&Ep(e.type)==="function"){const o=e.type({});s=Gs(o,t)}else s=O2(n);return s}function $ce(e,t){return!ht.plainObject(e)||!ht.array(t)?!1:Object.keys(e).every(n=>t.includes(n))}function xce(e){const t=/^#?([\da-f])([\da-f])([\da-f])$/i,n=e.replace(t,(i,s,o,a)=>s+s+o+o+a+a),r=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(n);return r?[parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16)]:[]}function uP(e){return e.disableBeacon||e.placement==="center"}function lP(){return!["chrome","safari","firefox","opera"].includes(f9())}function _a({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=>{ht.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 wce(e){return Object.keys(e)}function d9(e,...t){if(!ht.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 Cce(e,...t){if(!ht.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 R4(e,t,n){const r=s=>s.replace("{step}",String(t)).replace("{steps}",String(n));if(Ep(e)==="string")return r(e);if(!A.isValidElement(e))return e;const{children:i}=e.props;if(Ep(i)==="string"&&i.includes("{step}"))return A.cloneElement(e,{children:r(i)});if(Array.isArray(i))return A.cloneElement(e,{children:i.map(s=>typeof s=="string"?r(s):R4(s,t,n))});if(Ep(e.type)==="function"&&!Object.values(e.props).length){const s=e.type({});return R4(s,t,n)}return e}function Sce(e){const{isFirstStep:t,lifecycle:n,previousLifecycle:r,scrollToFirstStep:i,step:s,target:o}=e;return!s.disableScrolling&&(!t||i||n===It.TOOLTIP)&&s.placement!=="center"&&(!s.isFixed||!vc(o))&&r!==n&&[It.BEACON,It.TOOLTIP].includes(n)}var Ece={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},h9={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},Dce={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:h9,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},Ace={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:[]},Tce={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},Cf={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},cP={borderRadius:4,position:"absolute"};function Pce(e,t){var n,r,i,s,o;const{floaterProps:a,styles:l}=e,d=xs((n=t.floaterProps)!=null?n:{},a??{}),h=xs(l??{},(r=t.styles)!=null?r:{}),m=xs(Tce,h.options||{}),g=t.placement==="center"||t.disableBeacon;let{width:b}=m;window.innerWidth>480&&(b=380),"width"in m&&(b=typeof m.width=="number"&&window.innerWidth<m.width?window.innerWidth-30:m.width);const x={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:m.zIndex},C={beacon:{...Cf,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(${xce(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:{...Cf,backgroundColor:m.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...Cf,color:m.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...Cf,color:m.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...Cf,color:m.textColor,fontSize:14},overlay:{...x,backgroundColor:m.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...x},overlayLegacyCenter:{...x,backgroundColor:m.overlayColor},spotlight:{...cP,backgroundColor:"gray"},spotlightLegacy:{...cP,boxShadow:`0 0 0 9999px ${m.overlayColor}, ${m.spotlightShadow}`},floaterStyles:{arrow:{color:(o=(s=(i=d==null?void 0:d.styles)==null?void 0:i.arrow)==null?void 0:s.color)!=null?o:m.arrowColor},options:{zIndex:m.zIndex+100}},options:m};return xs(C,h)}function _ce(e){return Cce(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function Sl(e,t){var n,r,i,s,o,a;const l=t??{},d=xs.all([Dce,_ce(e),l],{isMergeableObject:ht.plainObject}),h=Pce(e,d),m=th(jo(d.target),d.disableScrollParentFix),g=xs.all([Ece,(n=e.floaterProps)!=null?n:{},(r=d.floaterProps)!=null?r:{}]);return g.offset=d.offset,g.styles=xs((i=g.styles)!=null?i:{},h.floaterStyles),g.offset+=(o=(s=e.spotlightPadding)!=null?s:d.spotlightPadding)!=null?o:0,d.placementBeacon&&g.wrapperOptions&&(g.wrapperOptions.placement=d.placementBeacon),m&&g.options.preventOverflow&&(g.options.preventOverflow.boundariesElement="window"),{...d,locale:xs.all([h9,(a=e.locale)!=null?a:{},d.locale||{}]),floaterProps:g,styles:d9(h,"floaterStyles")}}function p9(e,t=!1){return ht.plainObject(e)?e.target?!0:(_a({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(_a({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function fP(e,t=!1){return ht.array(e)?e.every(n=>p9(n,t)):(_a({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var m9={action:"init",controlled:!1,index:0,lifecycle:It.INIT,origin:null,size:0,status:zt.IDLE},dP=wce(d9(m9,"controlled","size")),Mce=class{constructor(e){mt(this,"beaconPopper"),mt(this,"tooltipPopper"),mt(this,"data",new Map),mt(this,"listener"),mt(this,"store",new Map),mt(this,"addListener",i=>{this.listener=i}),mt(this,"setSteps",i=>{const{size:s,status:o}=this.getState(),a={size:i.length,status:o};this.data.set("steps",i),o===zt.WAITING&&!s&&i.length&&(a.status=zt.RUNNING),this.setState(a)}),mt(this,"getPopper",i=>i==="beacon"?this.beaconPopper:this.tooltipPopper),mt(this,"setPopper",(i,s)=>{i==="beacon"?this.beaconPopper=s:this.tooltipPopper=s}),mt(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),mt(this,"close",(i=null)=>{const{index:s,status:o}=this.getState();o===zt.RUNNING&&this.setState({...this.getNextState({action:on.CLOSE,index:s+1,origin:i})})}),mt(this,"go",i=>{const{controlled:s,status:o}=this.getState();if(s||o!==zt.RUNNING)return;const a=this.getSteps()[i];this.setState({...this.getNextState({action:on.GO,index:i}),status:a?o:zt.FINISHED})}),mt(this,"info",()=>this.getState()),mt(this,"next",()=>{const{index:i,status:s}=this.getState();s===zt.RUNNING&&this.setState(this.getNextState({action:on.NEXT,index:i+1}))}),mt(this,"open",()=>{const{status:i}=this.getState();i===zt.RUNNING&&this.setState({...this.getNextState({action:on.UPDATE,lifecycle:It.TOOLTIP})})}),mt(this,"prev",()=>{const{index:i,status:s}=this.getState();s===zt.RUNNING&&this.setState({...this.getNextState({action:on.PREV,index:i-1})})}),mt(this,"reset",(i=!1)=>{const{controlled:s}=this.getState();s||this.setState({...this.getNextState({action:on.RESET,index:0}),status:i?zt.RUNNING:zt.READY})}),mt(this,"skip",()=>{const{status:i}=this.getState();i===zt.RUNNING&&this.setState({action:on.SKIP,lifecycle:It.INIT,status:zt.SKIPPED})}),mt(this,"start",i=>{const{index:s,size:o}=this.getState();this.setState({...this.getNextState({action:on.START,index:ht.number(i)?i:s},!0),status:o?zt.RUNNING:zt.WAITING})}),mt(this,"stop",(i=!1)=>{const{index:s,status:o}=this.getState();[zt.FINISHED,zt.SKIPPED].includes(o)||this.setState({...this.getNextState({action:on.STOP,index:s+(i?1:0)}),status:zt.PAUSED})}),mt(this,"update",i=>{var s,o;if(!$ce(i,dP))throw new Error(`State is not valid. Valid keys: ${dP.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...i,action:(s=i.action)!=null?s:on.UPDATE,origin:(o=i.origin)!=null?o:null},!0)})});const{continuous:t=!1,stepIndex:n,steps:r=[]}=e??{};this.setState({action:on.INIT,controlled:ht.number(n),continuous:t,index:ht.number(n)?n:0,lifecycle:It.INIT,origin:null,status:r.length?zt.READY:zt.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")||""}:{...m9}}getNextState(e,t=!1){var n,r,i,s,o;const{action:a,controlled:l,index:d,size:h,status:m}=this.getState(),g=ht.number(e.index)?e.index:d,b=l&&!t?d:Math.min(Math.max(g,0),h);return{action:(n=e.action)!=null?n:a,controlled:l,index:b,lifecycle:(r=e.lifecycle)!=null?r:It.INIT,origin:(i=e.origin)!=null?i:null,size:(s=e.size)!=null?s:h,status:b===h?zt.FINISHED:(o=e.status)!=null?o: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:o=null,size:a,status:l}={...n,...e};this.store.set("action",r),this.store.set("index",i),this.store.set("lifecycle",s),this.store.set("origin",o),this.store.set("size",a),this.store.set("status",l),t&&(this.store.set("controlled",e.controlled),this.store.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(n)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}};function Rce(e){return new Mce(e)}function Fce({styles:e}){return Ge.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}var kce=Fce,Oce=class extends Ge.Component{constructor(){super(...arguments),mt(this,"isActive",!1),mt(this,"resizeTimeout"),mt(this,"scrollTimeout"),mt(this,"scrollParent"),mt(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),mt(this,"hideSpotlight",()=>{const{continuous:e,disableOverlay:t,lifecycle:n}=this.props,r=[It.INIT,It.BEACON,It.COMPLETE,It.ERROR];return t||(e?r.includes(n):n!==It.TOOLTIP)}),mt(this,"handleMouseMove",e=>{const{mouseOverSpotlight:t}=this.state,{height:n,left:r,position:i,top:s,width:o}=this.spotlightStyles,a=i==="fixed"?e.clientY:e.pageY,l=i==="fixed"?e.clientX:e.pageX,d=a>=s&&a<=s+n,m=l>=r&&l<=r+o&&d;m!==t&&this.updateState({mouseOverSpotlight:m})}),mt(this,"handleScroll",()=>{const{target:e}=this.props,t=jo(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 vc(t,"sticky")&&this.updateState({})}),mt(this,"handleResize",()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(()=>{this.isActive&&this.forceUpdate()},100)})}componentDidMount(){const{debug:e,disableScrolling:t,disableScrollParentFix:n=!1,target:r}=this.props,i=jo(r);this.scrollParent=Cd(i??document.body,n,!0),this.isActive=!0,process.env.NODE_ENV!=="production"&&!t&&th(i,!0)&&_a({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:o}=pm(e,this.props);if(o("target")||o("disableScrollParentFix")){const a=jo(s);this.scrollParent=Cd(a??document.body,n,!0)}o("lifecycle",It.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:a}=this.state;a||this.updateState({showSpotlight:!0})},100)),(o("spotlightClicks")||o("disableOverlay")||o("lifecycle"))&&(i&&r===It.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==It.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 lP()&&(i=n==="center"?r.overlayLegacyCenter:r.overlayLegacy),{cursor:t?"default":"pointer",height:hce(),pointerEvents:e?"none":"auto",...i}}get spotlightStyles(){var e,t,n;const{showSpotlight:r}=this.state,{disableScrollParentFix:i=!1,spotlightClicks:s,spotlightPadding:o=0,styles:a,target:l}=this.props,d=jo(l),h=c9(d),m=vc(d),g=vce(d,o,i);return{...lP()?a.spotlightLegacy:a.spotlight,height:Math.round(((e=h==null?void 0:h.height)!=null?e:0)+o*2),left:Math.round(((t=h==null?void 0:h.left)!=null?t:0)-o),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)+o*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 o=n!=="center"&&e&&Ge.createElement(kce,{styles:s});if(f9()==="safari"){const{mixBlendMode:a,zIndex:l,...d}=i;o=Ge.createElement("div",{style:{...d}},o),delete i.backgroundColor}return Ge.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:i},o)}},Ice=class extends Ge.Component{constructor(){super(...arguments),mt(this,"node",null)}componentDidMount(){const{id:e}=this.props;ba()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),wf||this.renderReact15())}componentDidUpdate(){ba()&&(wf||this.renderReact15())}componentWillUnmount(){!ba()||!this.node||(wf||ep.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!ba())return;const{children:e}=this.props;this.node&&ep.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!ba()||!wf)return null;const{children:e}=this.props;return this.node?ep.createPortal(e,this.node):null}render(){return wf?this.renderReact16():null}},Lce=class{constructor(e,t){if(mt(this,"element"),mt(this,"options"),mt(this,"canBeTabbed",n=>{const{tabIndex:r}=n;return r===null||r<0?!1:this.canHaveFocus(n)}),mt(this,"canHaveFocus",n=>{const r=/input|select|textarea|button|object/,i=n.nodeName.toLowerCase();return(r.test(i)&&!n.getAttribute("disabled")||i==="a"&&!!n.getAttribute("href"))&&this.isVisible(n)}),mt(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),mt(this,"handleKeyDown",n=>{const{code:r="Tab"}=this.options;n.code===r&&this.interceptTab(n)}),mt(this,"interceptTab",n=>{n.preventDefault();const r=this.findValidTabElements(),{shiftKey:i}=n;if(!r.length)return;let 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()}),mt(this,"isHidden",n=>{const r=n.offsetWidth<=0&&n.offsetHeight<=0,i=window.getComputedStyle(n);return r&&!n.innerHTML?!0:r&&i.getPropertyValue("overflow")!=="visible"||i.getPropertyValue("display")==="none"}),mt(this,"isVisible",n=>{let r=n;for(;r;)if(r instanceof HTMLElement){if(r===document.body)break;if(this.isHidden(r))return!1;r=r.parentNode}return!0}),mt(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),mt(this,"checkFocus",n=>{document.activeElement!==n&&(n.focus(),window.requestAnimationFrame(()=>this.checkFocus(n)))}),mt(this,"setFocus",()=>{const{selector:n}=this.options;if(!n)return;const r=this.element.querySelector(n);r&&window.requestAnimationFrame(()=>this.checkFocus(r))}),!(e instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=e,this.options=t,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}},Bce=class extends Ge.Component{constructor(e){if(super(e),mt(this,"beacon",null),mt(this,"setBeaconRef",i=>{this.beacon=i}),e.beaconComponent)return;const t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="joyride-beacon-animation",e.nonce&&n.setAttribute("nonce",e.nonce),n.appendChild(document.createTextNode(`
181
- @keyframes joyride-beacon-inner {
182
- 20% {
183
- opacity: 0.9;
184
- }
185
-
186
- 90% {
187
- opacity: 0.7;
188
- }
189
- }
190
-
191
- @keyframes joyride-beacon-outer {
192
- 0% {
193
- transform: scale(1);
194
- }
195
-
196
- 45% {
197
- opacity: 0.7;
198
- transform: scale(0.75);
199
- }
200
-
201
- 100% {
202
- opacity: 0.9;
203
- transform: scale(1);
204
- }
205
- }
206
- `)),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;process.env.NODE_ENV!=="production"&&(ht.domElement(this.beacon)||console.warn("beacon is not a valid DOM element")),setTimeout(()=>{ht.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:o,step:a,styles:l}=this.props,d=Gs(i.open),h={"aria-label":d,onClick:s,onMouseEnter:s,ref:this.setBeaconRef,title:d};let m;if(e){const g=e;m=Ge.createElement(g,{continuous:t,index:n,isLastStep:r,size:o,step:a,...h})}else m=Ge.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:l.beacon,type:"button",...h},Ge.createElement("span",{style:l.beaconInner}),Ge.createElement("span",{style:l.beaconOuter}));return m}};function Vce({styles:e,...t}){const{color:n,height:r,width:i,...s}=e;return A.createElement("button",{style:s,type:"button",...t},A.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"},A.createElement("g",null,A.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 Nce=Vce;function jce(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:s,skipProps:o,step:a,tooltipProps:l}=e,{content:d,hideBackButton:h,hideCloseButton:m,hideFooter:g,showSkipButton:b,styles:x,title:C}=a,D={};return D.primary=Ge.createElement("button",{"data-test-id":"button-primary",style:x.buttonNext,type:"button",...s}),b&&!i&&(D.skip=Ge.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:x.buttonSkip,type:"button",...o})),!h&&r>0&&(D.back=Ge.createElement("button",{"data-test-id":"button-back",style:x.buttonBack,type:"button",...t})),D.close=!m&&Ge.createElement(Nce,{"data-test-id":"button-close",styles:x.buttonClose,...n}),Ge.createElement("div",{key:"JoyrideTooltip","aria-label":Gs(C??d),className:"react-joyride__tooltip",style:x.tooltip,...l},Ge.createElement("div",{style:x.tooltipContainer},C&&Ge.createElement("h1",{"aria-label":Gs(C),style:x.tooltipTitle},C),Ge.createElement("div",{style:x.tooltipContent},d)),!g&&Ge.createElement("div",{style:x.tooltipFooter},Ge.createElement("div",{style:x.tooltipFooterSpacer},D.skip),D.back,D.primary),D.close)}var Kce=jce,Uce=class extends Ge.Component{constructor(){super(...arguments),mt(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),mt(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),mt(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;if(!t){n.close("button_primary");return}n.next()}),mt(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),mt(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:s}=this.props,{back:o,close:a,last:l,next:d,nextLabelWithProgress:h,skip:m}=s.locale,g=Gs(o),b=Gs(a),x=Gs(l),C=Gs(d),D=Gs(m);let S=a,w=b;if(e){if(S=d,w=C,s.showProgress&&!n){const T=Gs(h,{step:t+1,steps:i});S=R4(h,t+1,i),w=T}n&&(S=l,w=x)}return{backProps:{"aria-label":g,children:o,"data-action":"back",onClick:this.handleClickBack,role:"button",title:g},closeProps:{"aria-label":b,children:a,"data-action":"close",onClick:this.handleClickClose,role:"button",title:b},primaryProps:{"aria-label":w,children:S,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:w},skipProps:{"aria-label":D,children:m,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:D},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:o,tooltipComponent:a,...l}=s;let d;if(a){const h={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:l,setTooltipRef:r},m=a;d=Ge.createElement(m,{...h})}else d=Ge.createElement(Kce,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:s});return d}},zce=class extends Ge.Component{constructor(){super(...arguments),mt(this,"scope",null),mt(this,"tooltip",null),mt(this,"handleClickHoverBeacon",e=>{const{step:t,store:n}=this.props;e.type==="mouseenter"&&t.event!=="hover"||n.update({lifecycle:It.TOOLTIP})}),mt(this,"setTooltipRef",e=>{this.tooltip=e}),mt(this,"setPopper",(e,t)=>{var n;const{action:r,lifecycle:i,step:s,store:o}=this.props;t==="wrapper"?o.setPopper("beacon",e):o.setPopper("tooltip",e),o.getPopper("beacon")&&(o.getPopper("tooltip")||s.placement==="center")&&i===It.INIT&&o.update({action:r,lifecycle:It.READY}),(n=s.floaterProps)!=null&&n.getPopper&&s.floaterProps.getPopper(e,t)}),mt(this,"renderTooltip",e=>{const{continuous:t,helpers:n,index:r,size:i,step:s}=this.props;return Ge.createElement(Uce,{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;_a({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:o,helpers:a,index:l,lifecycle:d,shouldScroll:h,status:m,step:g,store:b}=this.props,{changed:x,changedFrom:C}=pm(e,this.props),D=a.info(),S=i&&n!==on.CLOSE&&(l>0||n===on.PREV),w=x("action")||x("index")||x("lifecycle")||x("status"),T=C("lifecycle",[It.TOOLTIP,It.INIT],It.INIT),O=x("action",[on.NEXT,on.PREV,on.SKIP,on.CLOSE]),R=s&&l===e.index;if(O&&(T||R)&&r({...D,index:e.index,lifecycle:It.COMPLETE,step:e.step,type:qi.STEP_AFTER}),g.placement==="center"&&m===zt.RUNNING&&x("index")&&n!==on.START&&d===It.INIT&&b.update({lifecycle:It.READY}),w){const k=jo(g.target),K=!!k;K&&gce(k)?(C("status",zt.READY,zt.RUNNING)||C("lifecycle",It.INIT,It.READY))&&r({...D,step:g,type:qi.STEP_BEFORE}):(console.warn(K?"Target not visible":"Target not mounted",g),r({...D,type:qi.TARGET_NOT_FOUND,step:g}),s||b.update({index:l+(n===on.PREV?-1:1)}))}C("lifecycle",It.INIT,It.READY)&&b.update({lifecycle:uP(g)||S?It.TOOLTIP:It.BEACON}),x("index")&&_a({title:`step:${d}`,data:[{key:"props",value:this.props}],debug:o}),x("lifecycle",It.BEACON)&&r({...D,step:g,type:qi.BEACON}),x("lifecycle",It.TOOLTIP)&&(r({...D,step:g,type:qi.TOOLTIP}),h&&this.tooltip&&(this.scope=new Lce(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),C("lifecycle",[It.TOOLTIP,It.INIT],It.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 uP(t)||e===It.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:s,step:o}=this.props,a=jo(o.target);return!p9(o)||!ht.domElement(a)?null:Ge.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},Ge.createElement(ax,{...o.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:o.placement,target:o.target},Ge.createElement(Bce,{beaconComponent:o.beaconComponent,continuous:e,index:n,isLastStep:n+1===s,locale:o.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:s,step:o,styles:o.styles})))}},g9=class extends Ge.Component{constructor(e){super(e),mt(this,"helpers"),mt(this,"store"),mt(this,"callback",o=>{const{callback:a}=this.props;ht.function(a)&&a(o)}),mt(this,"handleKeyboard",o=>{const{index:a,lifecycle:l}=this.state,{steps:d}=this.props,h=d[a];l===It.TOOLTIP&&o.code==="Escape"&&h&&!h.disableCloseOnEsc&&this.store.close("keyboard")}),mt(this,"handleClickOverlay",()=>{const{index:o}=this.state,{steps:a}=this.props;Sl(this.props,a[o]).disableOverlayClose||this.helpers.close("overlay")}),mt(this,"syncState",o=>{this.setState(o)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:i}=e;this.store=Rce({...e,controlled:r&&ht.number(i)}),this.helpers=this.store.getHelpers();const{addListener:s}=this.store;_a({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(!ba())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;fP(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!ba())return;const{action:n,controlled:r,index:i,status:s}=this.state,{debug:o,run:a,stepIndex:l,steps:d}=this.props,{stepIndex:h,steps:m}=e,{reset:g,setSteps:b,start:x,stop:C,update:D}=this.store,{changed:S}=pm(e,this.props),{changed:w,changedFrom:T}=pm(t,this.state),O=Sl(this.props,d[i]),R=!Wr(m,d),k=ht.number(l)&&S("stepIndex"),K=jo(O.target);if(R&&(fP(d,o)?b(d):console.warn("Steps are not valid",d)),S("run")&&(a?x(l):C()),k){let oe=ht.number(h)&&h<l?on.NEXT:on.PREV;n===on.STOP&&(oe=on.START),[zt.FINISHED,zt.SKIPPED].includes(s)||D({action:n===on.CLOSE?on.CLOSE:oe,index:l,lifecycle:It.INIT})}!r&&s===zt.RUNNING&&i===0&&!K&&(this.store.update({index:i+1}),this.callback({...this.state,type:qi.TARGET_NOT_FOUND,step:O}));const q={...this.state,index:i,step:O};if(w("action",[on.NEXT,on.PREV,on.SKIP,on.CLOSE])&&w("status",zt.PAUSED)){const oe=Sl(this.props,d[t.index]);this.callback({...q,index:t.index,lifecycle:It.COMPLETE,step:oe,type:qi.STEP_AFTER})}if(w("status",[zt.FINISHED,zt.SKIPPED])){const oe=Sl(this.props,d[t.index]);r||this.callback({...q,index:t.index,lifecycle:It.COMPLETE,step:oe,type:qi.STEP_AFTER}),this.callback({...q,type:qi.TOUR_END,step:oe,index:t.index}),g()}else T("status",[zt.IDLE,zt.READY],zt.RUNNING)?this.callback({...q,type:qi.TOUR_START}):(w("status")||w("action",on.RESET))&&this.callback({...q,type:qi.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:o,scrollOffset:a=20,scrollToFirstStep:l=!1,steps:d}=this.props,h=Sl(this.props,d[t]),m=jo(h.target),g=Sce({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:l,step:h,target:m});if(r===zt.RUNNING&&g){const b=th(m,s),x=Cd(m,s);let C=Math.floor(yce(m,a,s))||0;_a({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const D=this.store.getPopper("beacon"),S=this.store.getPopper("tooltip");if(n===It.BEACON&&D){const{offsets:w,placement:T}=D;!["bottom"].includes(T)&&!b&&(C=Math.floor(w.popper.top-a))}else if(n===It.TOOLTIP&&S){const{flipped:w,offsets:T,placement:O}=S;["top","right","left"].includes(O)&&!w&&!b?C=Math.floor(T.popper.top-a):C-=h.spotlightPadding}C=C>=0?C:0,r===zt.RUNNING&&bce(C,{element:x,duration:o}).then(()=>{setTimeout(()=>{var w;(w=this.store.getPopper("tooltip"))==null||w.instance.update()},10)})}}render(){if(!ba())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:s,scrollToFirstStep:o=!1,steps:a}=this.props,l=n===zt.RUNNING,d={};if(l&&a[e]){const h=Sl(this.props,a[e]);d.step=Ge.createElement(zce,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:s,shouldScroll:!h.disableScrolling&&(e!==0||o),step:h,store:this.store}),d.overlay=Ge.createElement(Ice,{id:"react-joyride-portal"},Ge.createElement(Oce,{...h,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return Ge.createElement("div",{className:"react-joyride"},d.step,d.overlay)}};mt(g9,"defaultProps",Ace);var qce=g9;exports.$131cf43a05231e1e$export$6d095e787d2b5e1f=nF;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=U5;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=Fd;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=H5;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=nr;exports.$16f0b7bb276bc17e$export$4c842f6a241dc825=XH;exports.$16f0b7bb276bc17e$export$5591b0b878c1a989=eF;exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7=kr;exports.$28f99e3e86e6ec45$export$e5fda3247f5d67f9=XW;exports.$293f70390ea03370$export$497855f14858aa34=qH;exports.$32489daedd52963e$export$1315d136e6f7581=rG;exports.$337b884510726a0d$export$c6fdb837b070b4ff=AH;exports.$36a0ac60f04457c5$export$136073280381448e=jW;exports.$3c0fc76039f1c516$export$60e84778edff6d26=KF;exports.$40df3f8667284809$export$d55e7ee900f34e93=aG;exports.$46a4342aab3d8076$export$87e0539f600c24e5=BW;exports.$47b897dc8cdb026b$export$8d15029008292ae=tH;exports.$5c3e21d68f1c4674$export$439d29a4e110a164=QW;exports.$6057a3d2a53a12fd$export$42df105a73306d51=QH;exports.$64244302c3013299$export$dd0bbc9b26defe37=aW;exports.$701a24aa0da5b062$export$ea18c227d4417cc3=xW;exports.$887cac91b7cc8801$export$12fd5f0e9f4bb192=oG;exports.$93c38a5e28be6249$export$e50a61c1de9f574=AG;exports.$9942cad8a072a530$export$3ee915f8151bd4f1=LW;exports.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90=uG;exports.$a916eb452884faea$export$b7a616150fdb9f44=$W;exports.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e=pG;exports.$ab5bf3f618090389$export$87194bb378cc3ac2=$G;exports.$bb77f239b46e8c72$export$3274cf84b703fff=$_;exports.$bcca50147b47f54d$export$56b2c08e277f365=eH;exports.$c132121280ec012d$export$50eacbbf140a3141=LH;exports.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2=VH;exports.$c350ade66beef0af$export$8c18d1b4f7232bbf=YH;exports.$e3031d1f8c9d64eb$export$cb95147730a423f5=VW;exports.$eff5d8ee529ac4bb$export$fd53cef0cc796101=TG;exports.$f2f8a6077418541e$export$542a6fd13ac93354=DH;exports.$fae977aafc393c5c$export$588937bcd60ade55=Iq;exports.$fae977aafc393c5c$export$6b862160d295c8e=Oq;exports.ACTIONS=on;exports.AdvancedImage=lJ;exports.Cloudinary=iQ;exports.Controller=kU;exports.EVENTS=qi;exports.FormProvider=RU;exports.Je=hK;exports.LazyMotion=Lie;exports.Lottie=Mie;exports.M=bs;exports.R=Vu;exports.ReorderGroup=gie;exports.ReorderItem=$ie;exports.STATUS=zt;exports.Xe=pK;exports._=PU;exports.autoUpdate=QK;exports.components_default=qce;exports.ct=gK;exports.dayjs=NY;exports.dayjs_minExports=JF;exports.domAnimation=due;exports.ee=t7;exports.flip=oU;exports.isEqual=LY;exports.isNumber=UY;exports.lazyload=nJ;exports.localizedFormat=Sie;exports.lodashExports=e5;exports.m=_se;exports.nt=B4;exports.o=Aie;exports.offset=iU;exports.placeholder=oJ;exports.prismExports=OQ;exports.q=_3;exports.shift=sU;exports.some=FQ;exports.st=OP;exports.useController=l5;exports.useFieldArray=GU;exports.useFloating=bU;exports.useFloating$1=YP;exports.useFocus=CU;exports.useForm=YU;exports.useFormContext=Ad;exports.useHover=gU;exports.useInteractions=SU;exports.useRole=DU;exports.useWatch=u5;