@fluidattacks/design 3.6.1 → 3.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/@core/index.js +1 -1
- package/dist/components/accordion/accordion-content/index.js +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/card/card-header/index.js +1 -1
- package/dist/components/card/card-with-image/index.js +1 -1
- package/dist/components/card/card-with-input/index.js +1 -1
- package/dist/components/card/card-with-selector/index.js +1 -1
- package/dist/components/card/card-with-switch/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/cloud-image/index.js +1 -1
- package/dist/components/code-snippet/index.js +1 -1
- package/dist/components/code-snippet/location-code/index.js +1 -1
- package/dist/components/colors/index.js +1 -1
- package/dist/components/confirm-dialog/index.js +1 -1
- package/dist/components/container/index.js +1 -1
- package/dist/components/content-card/category-tag/index.js +1 -1
- package/dist/components/content-card/event-date/index.js +1 -1
- package/dist/components/content-card/index.js +1 -1
- package/dist/components/content-card-carousel/index.js +1 -1
- package/dist/components/content-card-carousel/scroll-buttons/index.js +1 -1
- package/dist/components/divider/index.js +1 -1
- package/dist/components/empty-state/empty-button/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/file-preview/index.js +1 -1
- package/dist/components/form/index.d.ts +2 -2
- package/dist/components/form/index.js +1 -1
- package/dist/components/form/types.d.ts +2 -2
- package/dist/components/grid-container/index.js +1 -1
- package/dist/components/group-selector/index.js +1 -1
- package/dist/components/group-selector/option-container/index.js +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/indicator-card/index.js +1 -1
- package/dist/components/info-sidebar/index.js +1 -1
- package/dist/components/inputs/fields/combobox/index.js +1 -1
- package/dist/components/inputs/fields/combobox/option/index.js +1 -1
- package/dist/components/inputs/fields/combobox/types.d.ts +2 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date/index.js +1 -1
- package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-range/index.js +1 -1
- package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-time/index.js +1 -1
- package/dist/components/inputs/fields/editable/index.js +1 -1
- package/dist/components/inputs/fields/input/index.js +1 -1
- package/dist/components/inputs/fields/input-file/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/index.js +1 -1
- package/dist/components/inputs/fields/number/index.js +1 -1
- package/dist/components/inputs/fields/number-range/index.js +1 -1
- package/dist/components/inputs/fields/phone/index.js +1 -1
- package/dist/components/inputs/fields/text-area/index.js +1 -1
- package/dist/components/inputs/index.js +1 -1
- package/dist/components/inputs/label/index.js +1 -1
- package/dist/components/inputs/outline-container/index.js +1 -1
- package/dist/components/inputs/utils/action-button/index.js +1 -1
- package/dist/components/inputs/utils/calendar-button/index.js +1 -1
- package/dist/components/inputs/utils/date-selector/index.js +1 -1
- package/dist/components/inputs/utils/date-time-field/index.js +1 -1
- package/dist/components/inputs/utils/dialog/index.js +1 -1
- package/dist/components/inputs/utils/number-field/index.js +1 -1
- package/dist/components/inputs/utils/popover/index.js +1 -1
- package/dist/components/interactive-card/icon/index.js +1 -1
- package/dist/components/interactive-card/index.js +1 -1
- package/dist/components/language-selector/index.js +1 -1
- package/dist/components/language-selector/item-list/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list-item/index.d.ts +1 -1
- package/dist/components/list-item/index.js +1 -1
- package/dist/components/list-item/types.d.ts +1 -0
- package/dist/components/little-flag/index.js +1 -1
- package/dist/components/loading/index.js +1 -1
- package/dist/components/logo/index.js +1 -1
- package/dist/components/logo-carousel/index.js +1 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/components/message-banner/index.js +1 -1
- package/dist/components/modal/index.d.ts +3 -2
- package/dist/components/modal/index.js +1 -1
- package/dist/components/modal/modal-confirm/index.js +1 -1
- package/dist/components/modal/modal-footer/index.d.ts +1 -1
- package/dist/components/modal/modal-footer/index.js +1 -1
- package/dist/components/modal/modal-header/index.js +1 -1
- package/dist/components/modal/styles.d.ts +2 -1
- package/dist/components/modal/types.d.ts +2 -0
- package/dist/components/notification/index.js +1 -1
- package/dist/components/notification-sign/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/oauth-selector/index.js +1 -1
- package/dist/components/oauth-selector/option-container/index.js +1 -1
- package/dist/components/plan-card/index.js +1 -1
- package/dist/components/plan-card/recommended-tag/index.js +1 -1
- package/dist/components/pop-up/description/index.js +1 -1
- package/dist/components/pop-up/index.js +1 -1
- package/dist/components/premium-feature/index.js +1 -1
- package/dist/components/priority-score/index.js +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress-bar/index.js +1 -1
- package/dist/components/radio-button/index.js +1 -1
- package/dist/components/scroll-button/index.js +1 -1
- package/dist/components/search/index.js +1 -1
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-bar/item-searching/index.js +1 -1
- package/dist/components/severity-badge/index.js +1 -1
- package/dist/components/severity-overview/badge/index.js +1 -1
- package/dist/components/severity-overview/index.js +1 -1
- package/dist/components/show-on-hover/index.js +1 -1
- package/dist/components/slide-out-menu/index.js +1 -1
- package/dist/components/slide-out-menu/menu-item/index.js +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/thumb/index.js +1 -1
- package/dist/components/slider/types.d.ts +3 -1
- package/dist/components/sortable-list/index.d.ts +3 -0
- package/dist/components/sortable-list/index.js +1 -0
- package/dist/components/sortable-list/styles.d.ts +4 -0
- package/dist/components/sortable-list/types.d.ts +23 -0
- package/dist/components/step-lapse/index.js +1 -1
- package/dist/components/table-button/index.js +1 -1
- package/dist/components/tabs/fixed-tabs/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/tab/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/timeline/card/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toggle/index.js +1 -1
- package/dist/components/toggle-buttons/index.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tour/index.js +1 -1
- package/dist/components/typography/heading/index.js +1 -1
- package/dist/components/typography/index.js +1 -1
- package/dist/components/typography/span/index.js +1 -1
- package/dist/components/typography/text/index.js +1 -1
- package/dist/components/web-form/index.js +1 -1
- package/dist/{components-C59CBzCj.js → components-BMh9Zf75.js} +197 -193
- package/dist/{components-DS1UVPkm.mjs → components-DyfTfdiM.mjs} +1248 -1146
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{vendor-WdqNSr9B.mjs → vendor-BITLSjGK.mjs} +17859 -13056
- package/dist/vendor-CJw8qEWT.js +223 -0
- package/package.json +1 -1
- package/dist/vendor-BC9dYdeh.js +0 -223
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
"use strict";require('./assets/vendor.css');const b=require("react"),ra=require("react-dom"),wo=require("react/jsx-runtime");function fE(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 qe=fE(b),$f=fE(ra);var Xn=function(){return Xn=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Xn.apply(this,arguments)};function Qa(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function Lk(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Nk=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,jk=Lk(function(e){return Nk.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Js=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ut="-ms-",Zl="-moz-",St="-webkit-",hE="comm",Bh="rule",Bv="decl",Kk="@import",pE="@keyframes",Uk="@layer",mE=Math.abs,Iv=String.fromCharCode,Xg=Object.assign;function zk(e,t){return An(e,0)^45?(((t<<2^An(e,0))<<2^An(e,1))<<2^An(e,2))<<2^An(e,3):0}function gE(e){return e.trim()}function po(e,t){return(e=t.exec(e))?e[0]:e}function at(e,t,n){return e.replace(t,n)}function xf(e,t,n){return e.indexOf(t,n)}function An(e,t){return e.charCodeAt(t)|0}function yu(e,t,n){return e.slice(t,n)}function Fi(e){return e.length}function yE(e){return e.length}function Ll(e,t){return t.push(e),e}function Wk(e,t){return e.map(t).join("")}function l3(e,t){return e.filter(function(n){return!po(n,t)})}var Ih=1,vu=1,vE=0,si=0,gn=0,Nu="";function Vh(e,t,n,r,i,o,a,u){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Ih,column:vu,length:a,return:"",siblings:u}}function Wo(e,t){return Xg(Vh("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function js(e){for(;e.root;)e=Wo(e.root,{children:[e]});Ll(e,e.siblings)}function Hk(){return gn}function Gk(){return gn=si>0?An(Nu,--si):0,vu--,gn===10&&(vu=1,Ih--),gn}function $i(){return gn=si<vE?An(Nu,si++):0,vu++,gn===10&&(vu=1,Ih++),gn}function qa(){return An(Nu,si)}function wf(){return si}function Lh(e,t){return yu(Nu,e,t)}function Qg(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 qk(e){return Ih=vu=1,vE=Fi(Nu=e),si=0,[]}function Yk(e){return Nu="",e}function Vm(e){return gE(Lh(si-1,ey(e===91?e+2:e===40?e+1:e)))}function Zk(e){for(;(gn=qa())&&gn<33;)$i();return Qg(e)>2||Qg(gn)>3?"":" "}function Jk(e,t){for(;--t&&$i()&&!(gn<48||gn>102||gn>57&&gn<65||gn>70&&gn<97););return Lh(e,wf()+(t<6&&qa()==32&&$i()==32))}function ey(e){for(;$i();)switch(gn){case e:return si;case 34:case 39:e!==34&&e!==39&&ey(gn);break;case 40:e===41&&ey(e);break;case 92:$i();break}return si}function Xk(e,t){for(;$i()&&e+gn!==57;)if(e+gn===84&&qa()===47)break;return"/*"+Lh(t,si-1)+"*"+Iv(e===47?e:$i())}function Qk(e){for(;!Qg(qa());)$i();return Lh(e,si)}function eB(e){return Yk(Df("",null,null,null,[""],e=qk(e),0,[0],e))}function Df(e,t,n,r,i,o,a,u,c){for(var d=0,f=0,h=a,m=0,g=0,v=0,$=1,C=1,x=1,y=0,D="",P=i,E=o,T=r,k=D;C;)switch(v=y,y=$i()){case 40:if(v!=108&&An(k,h-1)==58){xf(k+=at(Vm(y),"&","&\f"),"&\f",mE(d?u[d-1]:0))!=-1&&(x=-1);break}case 34:case 39:case 91:k+=Vm(y);break;case 9:case 10:case 13:case 32:k+=Zk(v);break;case 92:k+=Jk(wf()-1,7);continue;case 47:switch(qa()){case 42:case 47:Ll(tB(Xk($i(),wf()),t,n,c),c);break;default:k+="/"}break;case 123*$:u[d++]=Fi(k)*x;case 125*$:case 59:case 0:switch(y){case 0:case 125:C=0;case 59+f:x==-1&&(k=at(k,/\f/g,"")),g>0&&Fi(k)-h&&Ll(g>32?d3(k+";",r,n,h-1,c):d3(at(k," ","")+";",r,n,h-2,c),c);break;case 59:k+=";";default:if(Ll(T=c3(k,t,n,d,f,i,u,D,P=[],E=[],h,o),o),y===123)if(f===0)Df(k,t,T,T,P,o,h,u,E);else switch(m===99&&An(k,3)===110?100:m){case 100:case 108:case 109:case 115:Df(e,T,T,r&&Ll(c3(e,T,T,0,0,i,u,D,i,P=[],h,E),E),i,E,h,u,r?P:E);break;default:Df(k,T,T,T,[""],E,0,u,E)}}d=f=g=0,$=x=1,D=k="",h=a;break;case 58:h=1+Fi(k),g=v;default:if($<1){if(y==123)--$;else if(y==125&&$++==0&&Gk()==125)continue}switch(k+=Iv(y),y*$){case 38:x=f>0?1:(k+="\f",-1);break;case 44:u[d++]=(Fi(k)-1)*x,x=1;break;case 64:qa()===45&&(k+=Vm($i())),m=qa(),f=h=Fi(D=k+=Qk(wf())),y++;break;case 45:v===45&&Fi(k)==2&&($=0)}}return o}function c3(e,t,n,r,i,o,a,u,c,d,f,h){for(var m=i-1,g=i===0?o:[""],v=yE(g),$=0,C=0,x=0;$<r;++$)for(var y=0,D=yu(e,m+1,m=mE(C=a[$])),P=e;y<v;++y)(P=gE(C>0?g[y]+" "+D:at(D,/&\f/g,g[y])))&&(c[x++]=P);return Vh(e,t,n,i===0?Bh:u,c,d,f,h)}function tB(e,t,n,r){return Vh(e,t,n,hE,Iv(Hk()),yu(e,2,-2),0,r)}function d3(e,t,n,r,i){return Vh(e,t,n,Bv,yu(e,0,r),yu(e,r+1,-1),r,i)}function bE(e,t,n){switch(zk(e,t)){case 5103:return St+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return St+e+e;case 4789:return Zl+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return St+e+Zl+e+Ut+e+e;case 5936:switch(An(e,t+11)){case 114:return St+e+Ut+at(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return St+e+Ut+at(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return St+e+Ut+at(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return St+e+Ut+e+e;case 6165:return St+e+Ut+"flex-"+e+e;case 5187:return St+e+at(e,/(\w+).+(:[^]+)/,St+"box-$1$2"+Ut+"flex-$1$2")+e;case 5443:return St+e+Ut+"flex-item-"+at(e,/flex-|-self/g,"")+(po(e,/flex-|baseline/)?"":Ut+"grid-row-"+at(e,/flex-|-self/g,""))+e;case 4675:return St+e+Ut+"flex-line-pack"+at(e,/align-content|flex-|-self/g,"")+e;case 5548:return St+e+Ut+at(e,"shrink","negative")+e;case 5292:return St+e+Ut+at(e,"basis","preferred-size")+e;case 6060:return St+"box-"+at(e,"-grow","")+St+e+Ut+at(e,"grow","positive")+e;case 4554:return St+at(e,/([^-])(transform)/g,"$1"+St+"$2")+e;case 6187:return at(at(at(e,/(zoom-|grab)/,St+"$1"),/(image-set)/,St+"$1"),e,"")+e;case 5495:case 3959:return at(e,/(image-set\([^]*)/,St+"$1$`$1");case 4968:return at(at(e,/(.+:)(flex-)?(.*)/,St+"box-pack:$3"+Ut+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+St+e+e;case 4200:if(!po(e,/flex-|baseline/))return Ut+"grid-column-align"+yu(e,t)+e;break;case 2592:case 3360:return Ut+at(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,po(r.props,/grid-\w+-end/)})?~xf(e+(n=n[t].value),"span",0)?e:Ut+at(e,"-start","")+e+Ut+"grid-row-span:"+(~xf(n,"span",0)?po(n,/\d+/):+po(n,/\d+/)-+po(e,/\d+/))+";":Ut+at(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return po(r.props,/grid-\w+-start/)})?e:Ut+at(at(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return at(e,/(.+)-inline(.+)/,St+"$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(Fi(e)-1-t>6)switch(An(e,t+1)){case 109:if(An(e,t+4)!==45)break;case 102:return at(e,/(.+:)(.+)-([^]+)/,"$1"+St+"$2-$3$1"+Zl+(An(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~xf(e,"stretch",0)?bE(at(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return at(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,a,u,c,d){return Ut+i+":"+o+d+(a?Ut+i+"-span:"+(u?c:+c-+o)+d:"")+e});case 4949:if(An(e,t+6)===121)return at(e,":",":"+St)+e;break;case 6444:switch(An(e,An(e,14)===45?18:11)){case 120:return at(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+St+(An(e,14)===45?"inline-":"")+"box$3$1"+St+"$2$3$1"+Ut+"$2box$3")+e;case 100:return at(e,":",":"+Ut)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return at(e,"scroll-","scroll-snap-")+e}return e}function jf(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function nB(e,t,n,r){switch(e.type){case Uk:if(e.children.length)break;case Kk:case Bv:return e.return=e.return||e.value;case hE:return"";case pE:return e.return=e.value+"{"+jf(e.children,r)+"}";case Bh:if(!Fi(e.value=e.props.join(",")))return""}return Fi(n=jf(e.children,r))?e.return=e.value+"{"+n+"}":""}function rB(e){var t=yE(e);return function(n,r,i,o){for(var a="",u=0;u<t;u++)a+=e[u](n,r,i,o)||"";return a}}function iB(e){return function(t){t.root||(t=t.return)&&e(t)}}function oB(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Bv:e.return=bE(e.value,e.length,n);return;case pE:return jf([Wo(e,{value:at(e.value,"@","@"+St)})],r);case Bh:if(e.length)return Wk(n=e.props,function(i){switch(po(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":js(Wo(e,{props:[at(i,/:(read-\w+)/,":"+Zl+"$1")]})),js(Wo(e,{props:[i]})),Xg(e,{props:l3(n,r)});break;case"::placeholder":js(Wo(e,{props:[at(i,/:(plac\w+)/,":"+St+"input-$1")]})),js(Wo(e,{props:[at(i,/:(plac\w+)/,":"+Zl+"$1")]})),js(Wo(e,{props:[at(i,/:(plac\w+)/,Ut+"input-$1")]})),js(Wo(e,{props:[i]})),Xg(e,{props:l3(n,r)});break}return""})}}var aB={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},es=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",$E="active",xE="data-styled-version",Nh="6.1.14",Vv=`/*!sc*/
|
|
2
|
+
`,Kf=typeof window<"u"&&"HTMLElement"in window,sB=!!(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"),f3=/invalid hook call/i,Yd=new Set,uB=function(e,t){if(process.env.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` has been created dynamically.
|
|
3
|
+
`)+`You may see this warning because you've called styled inside another component.
|
|
4
|
+
To resolve this only create new StyledComponents outside of any render method and function component.`,i=console.error;try{var o=!0;console.error=function(a){for(var u=[],c=1;c<arguments.length;c++)u[c-1]=arguments[c];f3.test(a)?(o=!1,Yd.delete(r)):i.apply(void 0,Qa([a],u,!1))},b.useRef(),o&&!Yd.has(r)&&(console.warn(r),Yd.add(r))}catch(a){f3.test(a.message)&&Yd.delete(r)}finally{console.error=i}}},jh=Object.freeze([]),bu=Object.freeze({});function lB(e,t,n){return n===void 0&&(n=bu),e.theme!==n.theme&&e.theme||t||n.theme}var ty=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"]),cB=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,dB=/(^-|-$)/g;function h3(e){return e.replace(cB,"-").replace(dB,"")}var fB=/(a)(d)/gi,Zd=52,p3=function(e){return String.fromCharCode(e+(e>25?39:97))};function ny(e){var t,n="";for(t=Math.abs(e);t>Zd;t=t/Zd|0)n=p3(t%Zd)+n;return(p3(t%Zd)+n).replace(fB,"$1-$2")}var Lm,wE=5381,Ia=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},DE=function(e){return Ia(wE,e)};function EE(e){return ny(DE(e)>>>0)}function CE(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function Nm(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var SE=typeof Symbol=="function"&&Symbol.for,TE=SE?Symbol.for("react.memo"):60115,hB=SE?Symbol.for("react.forward_ref"):60112,pB={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},mB={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},AE={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},gB=((Lm={})[hB]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Lm[TE]=AE,Lm);function m3(e){return("type"in(t=e)&&t.type.$$typeof)===TE?AE:"$$typeof"in e?gB[e.$$typeof]:pB;var t}var yB=Object.defineProperty,vB=Object.getOwnPropertyNames,g3=Object.getOwnPropertySymbols,bB=Object.getOwnPropertyDescriptor,$B=Object.getPrototypeOf,y3=Object.prototype;function PE(e,t,n){if(typeof t!="string"){if(y3){var r=$B(t);r&&r!==y3&&PE(e,r,n)}var i=vB(t);g3&&(i=i.concat(g3(t)));for(var o=m3(e),a=m3(t),u=0;u<i.length;++u){var c=i[u];if(!(c in mB||n&&n[c]||a&&c in a||o&&c in o)){var d=bB(t,c);try{yB(e,c,d)}catch{}}}}return e}function ts(e){return typeof e=="function"}function Lv(e){return typeof e=="object"&&"styledComponentId"in e}function Na(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ry(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function $u(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function iy(e,t,n){if(n===void 0&&(n=!1),!n&&!$u(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=iy(e[r],t[r]);else if($u(t))for(var r in t)e[r]=iy(e[r],t[r]);return e}function Nv(e,t){Object.defineProperty(e,"toString",{value:t})}var xB=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
5
|
+
|
|
6
|
+
`,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
7
|
+
|
|
8
|
+
- Are you trying to reuse it across renders?
|
|
9
|
+
- Are you accidentally calling collectStyles twice?
|
|
10
|
+
|
|
11
|
+
`,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
|
|
12
|
+
|
|
13
|
+
`,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
|
|
14
|
+
|
|
15
|
+
- Does this error occur on the client and is your target falsy?
|
|
16
|
+
- Does this error occur on the server and is the sheet falsy?
|
|
17
|
+
|
|
18
|
+
`,5:`The clone method cannot be used on the client!
|
|
19
|
+
|
|
20
|
+
- Are you running in a client-like environment on the server?
|
|
21
|
+
- Are you trying to run SSR on the client?
|
|
22
|
+
|
|
23
|
+
`,6:`Trying to insert a new style tag, but the given Node is unmounted!
|
|
24
|
+
|
|
25
|
+
- Are you using a custom target that isn't mounted?
|
|
26
|
+
- Does your document not have a valid head element?
|
|
27
|
+
- Have you accidentally removed a style tag manually?
|
|
28
|
+
|
|
29
|
+
`,7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:`ThemeProvider: Please make your "theme" prop an object.
|
|
30
|
+
|
|
31
|
+
`,9:"Missing document `<head>`\n\n",10:`Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
|
|
32
|
+
|
|
33
|
+
`,11:`_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
|
|
34
|
+
|
|
35
|
+
`,12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:`%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
|
|
36
|
+
|
|
37
|
+
`,14:`ThemeProvider: "theme" prop is required.
|
|
38
|
+
|
|
39
|
+
`,15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:`Reached the limit of how many styled components may be created at group %s.
|
|
40
|
+
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
|
|
41
|
+
as for instance in your render method then you may be running into this limitation.
|
|
42
|
+
|
|
43
|
+
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
44
|
+
Has styled-components' style tag been unmounted or altered by another script?
|
|
45
|
+
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function wB(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],i=1,o=e.length;i<o;i+=1)r.push(e[i]);return r.forEach(function(a){n=n.replace(/%[a-z]/,a)}),n}function Ui(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(wB.apply(void 0,Qa([xB[e]],t,!1)).trim())}var DB=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,o=i;t>=o;)if((o<<=1)<0)throw Ui(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var a=i;a<o;a++)this.groupSizes[a]=0}for(var u=this.indexOfGroup(t+1),c=(a=0,n.length);a<c;a++)this.tag.insertRule(u,n[a])&&(this.groupSizes[t]++,u++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),i=r+n;this.groupSizes[t]=0;for(var o=r;o<i;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),o=i+r,a=i;a<o;a++)n+="".concat(this.tag.getRule(a)).concat(Vv);return n},e}(),EB=1<<30,Ef=new Map,Uf=new Map,Cf=1,Jd=function(e){if(Ef.has(e))return Ef.get(e);for(;Uf.has(Cf);)Cf++;var t=Cf++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>EB))throw Ui(16,"".concat(t));return Ef.set(e,t),Uf.set(t,e),t},CB=function(e,t){Cf=t+1,Ef.set(e,t),Uf.set(t,e)},SB="style[".concat(es,"][").concat(xE,'="').concat(Nh,'"]'),TB=new RegExp("^".concat(es,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),AB=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o<a;o++)(r=i[o])&&e.registerName(t,r)},PB=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(Vv),i=[],o=0,a=r.length;o<a;o++){var u=r[o].trim();if(u){var c=u.match(TB);if(c){var d=0|parseInt(c[1],10),f=c[2];d!==0&&(CB(f,d),AB(e,f,c[3]),e.getTag().insertRules(d,i)),i.length=0}else i.push(u)}}},v3=function(e){for(var t=document.querySelectorAll(SB),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(es)!==$E&&(PB(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function RB(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var RE=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(u){var c=Array.from(u.querySelectorAll("style[".concat(es,"]")));return c[c.length-1]}(n),o=i!==void 0?i.nextSibling:null;r.setAttribute(es,$E),r.setAttribute(xE,Nh);var a=RB();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},_B=function(){function e(t){this.element=RE(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,i=0,o=r.length;i<o;i++){var a=r[i];if(a.ownerNode===n)return a}throw Ui(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}(),OB=function(){function e(t){this.element=RE(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}(),MB=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}(),b3=Kf,FB={isServer:!Kf,useCSSOMInjection:!sB},_E=function(){function e(t,n,r){t===void 0&&(t=bu),n===void 0&&(n={});var i=this;this.options=Xn(Xn({},FB),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Kf&&b3&&(b3=!1,v3(this)),Nv(this,function(){return function(o){for(var a=o.getTag(),u=a.length,c="",d=function(h){var m=function(x){return Uf.get(x)}(h);if(m===void 0)return"continue";var g=o.names.get(m),v=a.getGroup(h);if(g===void 0||!g.size||v.length===0)return"continue";var $="".concat(es,".g").concat(h,'[id="').concat(m,'"]'),C="";g!==void 0&&g.forEach(function(x){x.length>0&&(C+="".concat(x,","))}),c+="".concat(v).concat($,'{content:"').concat(C,'"}').concat(Vv)},f=0;f<u;f++)d(f);return c}(i)})}return e.registerId=function(t){return Jd(t)},e.prototype.rehydrate=function(){!this.server&&Kf&&v3(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(Xn(Xn({},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 MB(i):r?new _B(i):new OB(i)}(this.options),new DB(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(Jd(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(Jd(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Jd(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),kB=/&/g,BB=/^\s*\/\/.*$/gm;function OE(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=OE(n.children,t)),n})}function IB(e){var t,n,r,i=bu,o=i.options,a=o===void 0?bu:o,u=i.plugins,c=u===void 0?jh:u,d=function(m,g,v){return v.startsWith(n)&&v.endsWith(n)&&v.replaceAll(n,"").length>0?".".concat(t):m},f=c.slice();f.push(function(m){m.type===Bh&&m.value.includes("&")&&(m.props[0]=m.props[0].replace(kB,n).replace(r,d))}),a.prefix&&f.push(oB),f.push(nB);var h=function(m,g,v,$){g===void 0&&(g=""),v===void 0&&(v=""),$===void 0&&($="&"),t=$,n=g,r=new RegExp("\\".concat(n,"\\b"),"g");var C=m.replace(BB,""),x=eB(v||g?"".concat(v," ").concat(g," { ").concat(C," }"):C);a.namespace&&(x=OE(x,a.namespace));var y=[];return jf(x,rB(f.concat(iB(function(D){return y.push(D)})))),y};return h.hash=c.length?c.reduce(function(m,g){return g.name||Ui(15),Ia(m,g.name)},wE).toString():"",h}var VB=new _E,oy=IB(),ME=b.createContext({shouldForwardProp:void 0,styleSheet:VB,stylis:oy});ME.Consumer;b.createContext(void 0);function $3(){return b.useContext(ME)}var ay=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=oy);var a=r.name+o.hash;i.hasNameForId(r.id,a)||i.insertRules(r.id,a,o(r.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Nv(this,function(){throw Ui(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=oy),this.name+t.hash},e}(),LB=function(e){return e>="A"&&e<="Z"};function x3(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;LB(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var FE=function(e){return e==null||e===!1||e===""},kE=function(e){var t,n,r=[];for(var i in e){var o=e[i];e.hasOwnProperty(i)&&!FE(o)&&(Array.isArray(o)&&o.isCss||ts(o)?r.push("".concat(x3(i),":"),o,";"):$u(o)?r.push.apply(r,Qa(Qa(["".concat(i," {")],kE(o),!1),["}"],!1)):r.push("".concat(x3(i),": ").concat((t=i,(n=o)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in aB||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Ya(e,t,n,r){if(FE(e))return[];if(Lv(e))return[".".concat(e.styledComponentId)];if(ts(e)){if(!ts(o=e)||o.prototype&&o.prototype.isReactComponent||!t)return[e];var i=e(t);return process.env.NODE_ENV==="production"||typeof i!="object"||Array.isArray(i)||i instanceof ay||$u(i)||i===null||console.error("".concat(CE(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.")),Ya(i,t,n,r)}var o;return e instanceof ay?n?(e.inject(n,r),[e.getName(r)]):[e]:$u(e)?kE(e):Array.isArray(e)?Array.prototype.concat.apply(jh,e.map(function(a){return Ya(a,t,n,r)})):[e.toString()]}function NB(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(ts(n)&&!Lv(n))return!1}return!0}var jB=DE(Nh),KB=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&NB(t),this.componentId=n,this.baseHash=Ia(jB,n),this.baseStyle=r,_E.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=Na(i,this.staticRulesId);else{var o=ry(Ya(this.rules,t,n,r)),a=ny(Ia(this.baseHash,o)>>>0);if(!n.hasNameForId(this.componentId,a)){var u=r(o,".".concat(a),void 0,this.componentId);n.insertRules(this.componentId,a,u)}i=Na(i,a),this.staticRulesId=a}else{for(var c=Ia(this.baseHash,r.hash),d="",f=0;f<this.rules.length;f++){var h=this.rules[f];if(typeof h=="string")d+=h,process.env.NODE_ENV!=="production"&&(c=Ia(c,h));else if(h){var m=ry(Ya(h,t,n,r));c=Ia(c,m+f),d+=m}}if(d){var g=ny(c>>>0);n.hasNameForId(this.componentId,g)||n.insertRules(this.componentId,g,r(d,".".concat(g),void 0,this.componentId)),i=Na(i,g)}}return i},e}(),uc=b.createContext(void 0);uc.Consumer;function UB(){var e=b.useContext(uc);if(!e)throw Ui(18);return e}function zB(e){var t=b.useContext(uc),n=b.useMemo(function(){return function(r,i){if(!r)throw Ui(14);if(ts(r)){var o=r(i);if(process.env.NODE_ENV!=="production"&&(o===null||Array.isArray(o)||typeof o!="object"))throw Ui(7);return o}if(Array.isArray(r)||typeof r!="object")throw Ui(8);return i?Xn(Xn({},i),r):r}(e.theme,t)},[e.theme,t]);return e.children?b.createElement(uc.Provider,{value:n},e.children):null}var jm={},w3=new Set;function WB(e,t,n){var r=Lv(e),i=e,o=!Nm(e),a=t.attrs,u=a===void 0?jh:a,c=t.componentId,d=c===void 0?function(P,E){var T=typeof P!="string"?"sc":h3(P);jm[T]=(jm[T]||0)+1;var k="".concat(T,"-").concat(EE(Nh+T+jm[T]));return E?"".concat(E,"-").concat(k):k}(t.displayName,t.parentComponentId):c,f=t.displayName,h=f===void 0?function(P){return Nm(P)?"styled.".concat(P):"Styled(".concat(CE(P),")")}(e):f,m=t.displayName&&t.componentId?"".concat(h3(t.displayName),"-").concat(t.componentId):t.componentId||d,g=r&&i.attrs?i.attrs.concat(u).filter(Boolean):u,v=t.shouldForwardProp;if(r&&i.shouldForwardProp){var $=i.shouldForwardProp;if(t.shouldForwardProp){var C=t.shouldForwardProp;v=function(P,E){return $(P,E)&&C(P,E)}}else v=$}var x=new KB(n,m,r?i.componentStyle:void 0);function y(P,E){return function(T,k,S){var U=T.attrs,O=T.componentStyle,F=T.defaultProps,G=T.foldedComponentIds,K=T.styledComponentId,W=T.target,j=b.useContext(uc),V=$3(),R=T.shouldForwardProp||V.shouldForwardProp;process.env.NODE_ENV!=="production"&&b.useDebugValue(K);var M=lB(k,j,F)||bu,Y=function(ie,Ee,$e){for(var ne,ye=Xn(Xn({},Ee),{className:void 0,theme:$e}),xe=0;xe<ie.length;xe+=1){var he=ts(ne=ie[xe])?ne(ye):ne;for(var le in he)ye[le]=le==="className"?Na(ye[le],he[le]):le==="style"?Xn(Xn({},ye[le]),he[le]):he[le]}return Ee.className&&(ye.className=Na(ye.className,Ee.className)),ye}(U,k,M),L=Y.as||W,z={};for(var re in Y)Y[re]===void 0||re[0]==="$"||re==="as"||re==="theme"&&Y.theme===M||(re==="forwardedAs"?z.as=Y.forwardedAs:R&&!R(re,L)||(z[re]=Y[re],R||process.env.NODE_ENV!=="development"||jk(re)||w3.has(re)||!ty.has(L)||(w3.add(re),console.warn('styled-components: it looks like an unknown prop "'.concat(re,'" 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 oe=function(ie,Ee){var $e=$3(),ne=ie.generateAndInjectStyles(Ee,$e.styleSheet,$e.stylis);return process.env.NODE_ENV!=="production"&&b.useDebugValue(ne),ne}(O,Y);process.env.NODE_ENV!=="production"&&T.warnTooManyClasses&&T.warnTooManyClasses(oe);var fe=Na(G,K);return oe&&(fe+=" "+oe),Y.className&&(fe+=" "+Y.className),z[Nm(L)&&!ty.has(L)?"class":"className"]=fe,S&&(z.ref=S),b.createElement(L,z)}(D,P,E)}y.displayName=h;var D=b.forwardRef(y);return D.attrs=g,D.componentStyle=x,D.displayName=h,D.shouldForwardProp=v,D.foldedComponentIds=r?Na(i.foldedComponentIds,i.styledComponentId):"",D.styledComponentId=m,D.target=r?i.target:e,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(P){this._foldedDefaultProps=r?function(E){for(var T=[],k=1;k<arguments.length;k++)T[k-1]=arguments[k];for(var S=0,U=T;S<U.length;S++)iy(E,U[S],!0);return E}({},i.defaultProps,P):P}}),process.env.NODE_ENV!=="production"&&(uB(h,m),D.warnTooManyClasses=function(P,E){var T={},k=!1;return function(S){if(!k&&(T[S]=!0,Object.keys(T).length>=200)){var U=E?' with the id of "'.concat(E,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(P).concat(U,`.
|
|
46
|
+
`)+`Consider using the attrs method, together with a style object for frequently changed styles.
|
|
47
|
+
Example:
|
|
48
|
+
const Component = styled.div.attrs(props => ({
|
|
49
|
+
style: {
|
|
50
|
+
background: props.background,
|
|
51
|
+
},
|
|
52
|
+
}))\`width: 100%;\`
|
|
53
|
+
|
|
54
|
+
<Component />`),k=!0,T={}}}}(h,m)),Nv(D,function(){return".".concat(D.styledComponentId)}),o&&PE(D,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function D3(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 E3=function(e){return Object.assign(e,{isCss:!0})};function jv(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(ts(e)||$u(e))return E3(Ya(D3(jh,Qa([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?Ya(r):E3(Ya(D3(r,t)))}function sy(e,t,n){if(n===void 0&&(n=bu),!t)throw Ui(1,t);var r=function(i){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return e(t,n,jv.apply(void 0,Qa([i],o,!1)))};return r.attrs=function(i){return sy(e,t,Xn(Xn({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},r.withConfig=function(i){return sy(e,t,Xn(Xn({},n),i))},r}var BE=function(e){return sy(WB,e)},IE=BE;ty.forEach(function(e){IE[e]=BE(e)});function HB(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=ry(jv.apply(void 0,Qa([e],t,!1))),i=EE(r);return new ay(i,r)}process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
55
|
+
Perhaps you're looking to import 'styled-components/native'?
|
|
56
|
+
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Xd="__sc-".concat(es,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Xd]||(window[Xd]=0),window[Xd]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
57
|
+
|
|
58
|
+
See https://s-c.sh/2BAXzed for more info.`),window[Xd]+=1);const xu=Math.min,Za=Math.max,zf=Math.round,Qd=Math.floor,zi=e=>({x:e,y:e}),GB={left:"right",right:"left",bottom:"top",top:"bottom"},qB={start:"end",end:"start"};function uy(e,t,n){return Za(e,xu(t,n))}function Ac(e,t){return typeof e=="function"?e(t):e}function ns(e){return e.split("-")[0]}function Pc(e){return e.split("-")[1]}function VE(e){return e==="x"?"y":"x"}function Kv(e){return e==="y"?"height":"width"}function wu(e){return["top","bottom"].includes(ns(e))?"y":"x"}function Uv(e){return VE(wu(e))}function YB(e,t,n){n===void 0&&(n=!1);const r=Pc(e),i=Uv(e),o=Kv(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Wf(a)),[a,Wf(a)]}function ZB(e){const t=Wf(e);return[ly(e),t,ly(t)]}function ly(e){return e.replace(/start|end/g,t=>qB[t])}function JB(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}function XB(e,t,n,r){const i=Pc(e);let o=JB(ns(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(ly)))),o}function Wf(e){return e.replace(/left|right|bottom|top/g,t=>GB[t])}function QB(e){return{top:0,right:0,bottom:0,left:0,...e}}function LE(e){return typeof e!="number"?QB(e):{top:e,right:e,bottom:e,left:e}}function Hf(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 C3(e,t,n){let{reference:r,floating:i}=e;const o=wu(t),a=Uv(t),u=Kv(a),c=ns(t),d=o==="y",f=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,m=r[u]/2-i[u]/2;let g;switch(c){case"top":g={x:f,y:r.y-i.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:h};break;case"left":g={x:r.x-i.width,y:h};break;default:g={x:r.x,y:r.y}}switch(Pc(t)){case"start":g[a]-=m*(n&&d?-1:1);break;case"end":g[a]+=m*(n&&d?-1:1);break}return g}const eI=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,u=o.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:h}=C3(d,r,c),m=r,g={},v=0;for(let $=0;$<u.length;$++){const{name:C,fn:x}=u[$],{x:y,y:D,data:P,reset:E}=await x({x:f,y:h,initialPlacement:r,placement:m,strategy:i,middlewareData:g,rects:d,platform:a,elements:{reference:e,floating:t}});f=y??f,h=D??h,g={...g,[C]:{...g[C],...P}},E&&v<=50&&(v++,typeof E=="object"&&(E.placement&&(m=E.placement),E.rects&&(d=E.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):E.rects),{x:f,y:h}=C3(d,m,c)),$=-1)}return{x:f,y:h,placement:m,strategy:i,middlewareData:g}};async function NE(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:u,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:m=!1,padding:g=0}=Ac(t,e),v=LE(g),C=u[m?h==="floating"?"reference":"floating":h],x=Hf(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(C)))==null||n?C:C.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(u.floating)),boundary:d,rootBoundary:f,strategy:c})),y=h==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,D=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u.floating)),P=await(o.isElement==null?void 0:o.isElement(D))?await(o.getScale==null?void 0:o.getScale(D))||{x:1,y:1}:{x:1,y:1},E=Hf(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:y,offsetParent:D,strategy:c}):y);return{top:(x.top-E.top+v.top)/P.y,bottom:(E.bottom-x.bottom+v.bottom)/P.y,left:(x.left-E.left+v.left)/P.x,right:(E.right-x.right+v.right)/P.x}}const tI=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:u,middlewareData:c}=t,{element:d,padding:f=0}=Ac(e,t)||{};if(d==null)return{};const h=LE(f),m={x:n,y:r},g=Uv(i),v=Kv(g),$=await a.getDimensions(d),C=g==="y",x=C?"top":"left",y=C?"bottom":"right",D=C?"clientHeight":"clientWidth",P=o.reference[v]+o.reference[g]-m[g]-o.floating[v],E=m[g]-o.reference[g],T=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let k=T?T[D]:0;(!k||!await(a.isElement==null?void 0:a.isElement(T)))&&(k=u.floating[D]||o.floating[v]);const S=P/2-E/2,U=k/2-$[v]/2-1,O=xu(h[x],U),F=xu(h[y],U),G=O,K=k-$[v]-F,W=k/2-$[v]/2+S,j=uy(G,W,K),V=!c.arrow&&Pc(i)!=null&&W!==j&&o.reference[v]/2-(W<G?O:F)-$[v]/2<0,R=V?W<G?W-G:W-K:0;return{[g]:m[g]+R,data:{[g]:j,centerOffset:W-j-R,...V&&{alignmentOffset:R}},reset:V}}}),nI=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:u,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:$=!0,...C}=Ac(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const x=ns(i),y=wu(u),D=ns(u)===u,P=await(c.isRTL==null?void 0:c.isRTL(d.floating)),E=m||(D||!$?[Wf(u)]:ZB(u)),T=v!=="none";!m&&T&&E.push(...XB(u,$,v,P));const k=[u,...E],S=await NE(t,C),U=[];let O=((r=o.flip)==null?void 0:r.overflows)||[];if(f&&U.push(S[x]),h){const W=YB(i,a,P);U.push(S[W[0]],S[W[1]])}if(O=[...O,{placement:i,overflows:U}],!U.every(W=>W<=0)){var F,G;const W=(((F=o.flip)==null?void 0:F.index)||0)+1,j=k[W];if(j)return{data:{index:W,overflows:O},reset:{placement:j}};let V=(G=O.filter(R=>R.overflows[0]<=0).sort((R,M)=>R.overflows[1]-M.overflows[1])[0])==null?void 0:G.placement;if(!V)switch(g){case"bestFit":{var K;const R=(K=O.filter(M=>{if(T){const Y=wu(M.placement);return Y===y||Y==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(Y=>Y>0).reduce((Y,L)=>Y+L,0)]).sort((M,Y)=>M[1]-Y[1])[0])==null?void 0:K[0];R&&(V=R);break}case"initialPlacement":V=u;break}if(i!==V)return{reset:{placement:V}}}return{}}}};async function rI(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=ns(n),u=Pc(n),c=wu(n)==="y",d=["left","top"].includes(a)?-1:1,f=o&&c?-1:1,h=Ac(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:v}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return u&&typeof v=="number"&&(g=u==="end"?v*-1:v),c?{x:g*f,y:m*d}:{x:m*d,y:g*f}}const iI=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:u}=t,c=await rI(t,e);return a===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:o+c.y,data:{...c,placement:a}}}}},oI=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:u={fn:C=>{let{x,y}=C;return{x,y}}},...c}=Ac(e,t),d={x:n,y:r},f=await NE(t,c),h=wu(ns(i)),m=VE(h);let g=d[m],v=d[h];if(o){const C=m==="y"?"top":"left",x=m==="y"?"bottom":"right",y=g+f[C],D=g-f[x];g=uy(y,g,D)}if(a){const C=h==="y"?"top":"left",x=h==="y"?"bottom":"right",y=v+f[C],D=v-f[x];v=uy(y,v,D)}const $=u.fn({...t,[m]:g,[h]:v});return{...$,data:{x:$.x-n,y:$.y-r,enabled:{[m]:o,[h]:a}}}}}};function Kh(){return typeof window<"u"}function ju(e){return jE(e)?(e.nodeName||"").toLowerCase():"#document"}function Or(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Zi(e){var t;return(t=(jE(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function jE(e){return Kh()?e instanceof Node||e instanceof Or(e).Node:!1}function xi(e){return Kh()?e instanceof Element||e instanceof Or(e).Element:!1}function qi(e){return Kh()?e instanceof HTMLElement||e instanceof Or(e).HTMLElement:!1}function S3(e){return!Kh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Or(e).ShadowRoot}function Rc(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=wi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function aI(e){return["table","td","th"].includes(ju(e))}function Uh(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function zv(e){const t=Wv(),n=xi(e)?wi(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 sI(e){let t=ua(e);for(;qi(t)&&!Du(t);){if(zv(t))return t;if(Uh(t))return null;t=ua(t)}return null}function Wv(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Du(e){return["html","body","#document"].includes(ju(e))}function wi(e){return Or(e).getComputedStyle(e)}function zh(e){return xi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ua(e){if(ju(e)==="html")return e;const t=e.assignedSlot||e.parentNode||S3(e)&&e.host||Zi(e);return S3(t)?t.host:t}function KE(e){const t=ua(e);return Du(t)?e.ownerDocument?e.ownerDocument.body:e.body:qi(t)&&Rc(t)?t:KE(t)}function lc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=KE(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Or(i);if(o){const u=cy(a);return t.concat(a,a.visualViewport||[],Rc(i)?i:[],u&&n?lc(u):[])}return t.concat(i,lc(i,[],n))}function cy(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function UE(e){const t=wi(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=qi(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,u=zf(n)!==o||zf(r)!==a;return u&&(n=o,r=a),{width:n,height:r,$:u}}function Hv(e){return xi(e)?e:e.contextElement}function lu(e){const t=Hv(e);if(!qi(t))return zi(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=UE(t);let a=(o?zf(n.width):n.width)/r,u=(o?zf(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!u||!Number.isFinite(u))&&(u=1),{x:a,y:u}}const uI=zi(0);function zE(e){const t=Or(e);return!Wv()||!t.visualViewport?uI:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function lI(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Or(e)?!1:t}function rs(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Hv(e);let a=zi(1);t&&(r?xi(r)&&(a=lu(r)):a=lu(e));const u=lI(o,n,r)?zE(o):zi(0);let c=(i.left+u.x)/a.x,d=(i.top+u.y)/a.y,f=i.width/a.x,h=i.height/a.y;if(o){const m=Or(o),g=r&&xi(r)?Or(r):r;let v=m,$=cy(v);for(;$&&r&&g!==v;){const C=lu($),x=$.getBoundingClientRect(),y=wi($),D=x.left+($.clientLeft+parseFloat(y.paddingLeft))*C.x,P=x.top+($.clientTop+parseFloat(y.paddingTop))*C.y;c*=C.x,d*=C.y,f*=C.x,h*=C.y,c+=D,d+=P,v=Or($),$=cy(v)}}return Hf({width:f,height:h,x:c,y:d})}function Gv(e,t){const n=zh(e).scrollLeft;return t?t.left+n:rs(Zi(e)).left+n}function WE(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:Gv(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function cI(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=Zi(r),u=t?Uh(t.floating):!1;if(r===a||u&&o)return n;let c={scrollLeft:0,scrollTop:0},d=zi(1);const f=zi(0),h=qi(r);if((h||!h&&!o)&&((ju(r)!=="body"||Rc(a))&&(c=zh(r)),qi(r))){const g=rs(r);d=lu(r),f.x=g.x+r.clientLeft,f.y=g.y+r.clientTop}const m=a&&!h&&!o?WE(a,c,!0):zi(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+f.x+m.x,y:n.y*d.y-c.scrollTop*d.y+f.y+m.y}}function dI(e){return Array.from(e.getClientRects())}function fI(e){const t=Zi(e),n=zh(e),r=e.ownerDocument.body,i=Za(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Za(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Gv(e);const u=-n.scrollTop;return wi(r).direction==="rtl"&&(a+=Za(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:u}}function hI(e,t){const n=Or(e),r=Zi(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,u=0,c=0;if(i){o=i.width,a=i.height;const d=Wv();(!d||d&&t==="fixed")&&(u=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:u,y:c}}function pI(e,t){const n=rs(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=qi(e)?lu(e):zi(1),a=e.clientWidth*o.x,u=e.clientHeight*o.y,c=i*o.x,d=r*o.y;return{width:a,height:u,x:c,y:d}}function T3(e,t,n){let r;if(t==="viewport")r=hI(e,n);else if(t==="document")r=fI(Zi(e));else if(xi(t))r=pI(t,n);else{const i=zE(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Hf(r)}function HE(e,t){const n=ua(e);return n===t||!xi(n)||Du(n)?!1:wi(n).position==="fixed"||HE(n,t)}function mI(e,t){const n=t.get(e);if(n)return n;let r=lc(e,[],!1).filter(u=>xi(u)&&ju(u)!=="body"),i=null;const o=wi(e).position==="fixed";let a=o?ua(e):e;for(;xi(a)&&!Du(a);){const u=wi(a),c=zv(a);!c&&u.position==="fixed"&&(i=null),(o?!c&&!i:!c&&u.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Rc(a)&&!c&&HE(e,a))?r=r.filter(f=>f!==a):i=u,a=ua(a)}return t.set(e,r),r}function gI(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?Uh(t)?[]:mI(t,this._c):[].concat(n),r],u=a[0],c=a.reduce((d,f)=>{const h=T3(t,f,i);return d.top=Za(h.top,d.top),d.right=xu(h.right,d.right),d.bottom=xu(h.bottom,d.bottom),d.left=Za(h.left,d.left),d},T3(t,u,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function yI(e){const{width:t,height:n}=UE(e);return{width:t,height:n}}function vI(e,t,n){const r=qi(t),i=Zi(t),o=n==="fixed",a=rs(e,!0,o,t);let u={scrollLeft:0,scrollTop:0};const c=zi(0);if(r||!r&&!o)if((ju(t)!=="body"||Rc(i))&&(u=zh(t)),r){const m=rs(t,!0,o,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else i&&(c.x=Gv(i));const d=i&&!r&&!o?WE(i,u):zi(0),f=a.left+u.scrollLeft-c.x-d.x,h=a.top+u.scrollTop-c.y-d.y;return{x:f,y:h,width:a.width,height:a.height}}function Km(e){return wi(e).position==="static"}function A3(e,t){if(!qi(e)||wi(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Zi(e)===n&&(n=n.ownerDocument.body),n}function GE(e,t){const n=Or(e);if(Uh(e))return n;if(!qi(e)){let i=ua(e);for(;i&&!Du(i);){if(xi(i)&&!Km(i))return i;i=ua(i)}return n}let r=A3(e,t);for(;r&&aI(r)&&Km(r);)r=A3(r,t);return r&&Du(r)&&Km(r)&&!zv(r)?n:r||sI(e)||n}const bI=async function(e){const t=this.getOffsetParent||GE,n=this.getDimensions,r=await n(e.floating);return{reference:vI(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function $I(e){return wi(e).direction==="rtl"}const xI={convertOffsetParentRelativeRectToViewportRelativeRect:cI,getDocumentElement:Zi,getClippingRect:gI,getOffsetParent:GE,getElementRects:bI,getClientRects:dI,getDimensions:yI,getScale:lu,isElement:xi,isRTL:$I};function qE(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function wI(e,t){let n=null,r;const i=Zi(e);function o(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function a(u,c){u===void 0&&(u=!1),c===void 0&&(c=1),o();const d=e.getBoundingClientRect(),{left:f,top:h,width:m,height:g}=d;if(u||t(),!m||!g)return;const v=Qd(h),$=Qd(i.clientWidth-(f+m)),C=Qd(i.clientHeight-(h+g)),x=Qd(f),D={rootMargin:-v+"px "+-$+"px "+-C+"px "+-x+"px",threshold:Za(0,xu(1,c))||1};let P=!0;function E(T){const k=T[0].intersectionRatio;if(k!==c){if(!P)return a();k?a(!1,k):r=setTimeout(()=>{a(!1,1e-7)},1e3)}k===1&&!qE(d,e.getBoundingClientRect())&&a(),P=!1}try{n=new IntersectionObserver(E,{...D,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,D)}n.observe(e)}return a(!0),o}function YE(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=Hv(e),f=i||o?[...d?lc(d):[],...lc(t)]:[];f.forEach(x=>{i&&x.addEventListener("scroll",n,{passive:!0}),o&&x.addEventListener("resize",n)});const h=d&&u?wI(d,n):null;let m=-1,g=null;a&&(g=new ResizeObserver(x=>{let[y]=x;y&&y.target===d&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var D;(D=g)==null||D.observe(t)})),n()}),d&&!c&&g.observe(d),g.observe(t));let v,$=c?rs(e):null;c&&C();function C(){const x=rs(e);$&&!qE($,x)&&n(),$=x,v=requestAnimationFrame(C)}return n(),()=>{var x;f.forEach(y=>{i&&y.removeEventListener("scroll",n),o&&y.removeEventListener("resize",n)}),h==null||h(),(x=g)==null||x.disconnect(),g=null,c&&cancelAnimationFrame(v)}}const ZE=iI,DI=oI,JE=nI,EI=tI,dy=(e,t,n)=>{const r=new Map,i={platform:xI,...n},o={...i.platform,_c:r};return eI(e,t,{...i,platform:o})};var Sf=typeof document<"u"?b.useLayoutEffect:b.useEffect;function Gf(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(!Gf(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!Gf(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function XE(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function P3(e,t){const n=XE(e);return Math.round(t*n)/n}function Um(e){const t=qe.useRef(e);return Sf(()=>{t.current=e}),t}function CI(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:u=!0,whileElementsMounted:c,open:d}=e,[f,h]=qe.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=qe.useState(r);Gf(m,r)||g(r);const[v,$]=qe.useState(null),[C,x]=qe.useState(null),y=qe.useCallback(M=>{M!==T.current&&(T.current=M,$(M))},[]),D=qe.useCallback(M=>{M!==k.current&&(k.current=M,x(M))},[]),P=o||v,E=a||C,T=qe.useRef(null),k=qe.useRef(null),S=qe.useRef(f),U=c!=null,O=Um(c),F=Um(i),G=Um(d),K=qe.useCallback(()=>{if(!T.current||!k.current)return;const M={placement:t,strategy:n,middleware:m};F.current&&(M.platform=F.current),dy(T.current,k.current,M).then(Y=>{const L={...Y,isPositioned:G.current!==!1};W.current&&!Gf(S.current,L)&&(S.current=L,$f.flushSync(()=>{h(L)}))})},[m,t,n,F,G]);Sf(()=>{d===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,h(M=>({...M,isPositioned:!1})))},[d]);const W=qe.useRef(!1);Sf(()=>(W.current=!0,()=>{W.current=!1}),[]),Sf(()=>{if(P&&(T.current=P),E&&(k.current=E),P&&E){if(O.current)return O.current(P,E,K);K()}},[P,E,K,O,U]);const j=qe.useMemo(()=>({reference:T,floating:k,setReference:y,setFloating:D}),[y,D]),V=qe.useMemo(()=>({reference:P,floating:E}),[P,E]),R=qe.useMemo(()=>{const M={position:n,left:0,top:0};if(!V.floating)return M;const Y=P3(V.floating,f.x),L=P3(V.floating,f.y);return u?{...M,transform:"translate("+Y+"px, "+L+"px)",...XE(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Y,top:L}},[n,u,V.floating,f.x,f.y]);return qe.useMemo(()=>({...f,update:K,refs:j,elements:V,floatingStyles:R}),[f,K,j,V,R])}const SI=(e,t)=>({...ZE(e),options:[e,t]}),TI=(e,t)=>({...JE(e),options:[e,t]});var Nl={exports:{}};/**
|
|
59
|
+
* @license
|
|
60
|
+
* Lodash <https://lodash.com/>
|
|
61
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
62
|
+
* Released under MIT license <https://lodash.com/license>
|
|
63
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
64
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
65
|
+
*/var AI=Nl.exports,R3;function PI(){return R3||(R3=1,function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",u="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,f="__lodash_placeholder__",h=1,m=2,g=4,v=1,$=2,C=1,x=2,y=4,D=8,P=16,E=32,T=64,k=128,S=256,U=512,O=30,F="...",G=800,K=16,W=1,j=2,V=3,R=1/0,M=9007199254740991,Y=17976931348623157e292,L=NaN,z=4294967295,re=z-1,oe=z>>>1,fe=[["ary",k],["bind",C],["bindKey",x],["curry",D],["curryRight",P],["flip",U],["partial",E],["partialRight",T],["rearg",S]],ie="[object Arguments]",Ee="[object Array]",$e="[object AsyncFunction]",ne="[object Boolean]",ye="[object Date]",xe="[object DOMException]",he="[object Error]",le="[object Function]",Fe="[object GeneratorFunction]",et="[object Map]",dt="[object Number]",Dn="[object Null]",yt="[object Object]",q="[object Promise]",Z="[object Proxy]",te="[object RegExp]",pe="[object Set]",Ce="[object String]",De="[object Symbol]",Re="[object Undefined]",Le="[object WeakMap]",mt="[object WeakSet]",ut="[object ArrayBuffer]",_t="[object DataView]",Pn="[object Float32Array]",Rn="[object Float64Array]",Yt="[object Int8Array]",Vn="[object Int16Array]",tn="[object Int32Array]",vt="[object Uint8Array]",Ln="[object Uint8ClampedArray]",Cr="[object Uint16Array]",_n="[object Uint32Array]",er=/\b__p \+= '';/g,On=/\b(__p \+=) '' \+/g,tr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Nn=/&(?:amp|lt|gt|quot|#39);/g,En=/[&<>"']/g,Ir=RegExp(Nn.source),Lt=RegExp(En.source),Cn=/<%-([\s\S]+?)%>/g,Ne=/<%([\s\S]+?)%>/g,tt=/<%=([\s\S]+?)%>/g,nn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fr=/^\w*$/,Te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,je=/[\\^$.*+?()[\]{}|]/g,Ye=RegExp(je.source),Ft=/^\s+/,rn=/\s/,jn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Kt=/\{\n\/\* \[wrapped with (.+)\] \*/,an=/,? & /,kt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,wt=/[()=,{}\[\]\/\s]/,li=/\\(\\)?/g,ya=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,hr=/\w*$/,Po=/^[-+]0x[0-9a-f]+$/i,Ro=/^0b[01]+$/i,_o=/^\[object .+?Constructor\]$/,gt=/^0o[0-7]+$/i,nr=/^(?:0|[1-9]\d*)$/,pr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Kn=/($^)/,Oo=/['\n\r\u2028\u2029\\]/g,Vr="\\ud800-\\udfff",tl="\\u0300-\\u036f",vs="\\ufe20-\\ufe2f",nl="\\u20d0-\\u20ff",Mo=tl+vs+nl,Ai="\\u2700-\\u27bf",va="a-z\\xdf-\\xf6\\xf8-\\xff",ba="\\xac\\xb1\\xd7\\xf7",bs="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",$s="\\u2000-\\u206f",rl=" \\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",xs="A-Z\\xc0-\\xd6\\xd8-\\xde",$a="\\ufe0e\\ufe0f",ws=ba+bs+$s+rl,Xi="['’]",il="["+Vr+"]",Ds="["+ws+"]",Fo="["+Mo+"]",Es="\\d+",B="["+Ai+"]",X="["+va+"]",ue="[^"+Vr+ws+Es+Ai+va+xs+"]",be="\\ud83c[\\udffb-\\udfff]",_e="(?:"+Fo+"|"+be+")",it="[^"+Vr+"]",Ke="(?:\\ud83c[\\udde6-\\uddff]){2}",ze="[\\ud800-\\udbff][\\udc00-\\udfff]",Ot="["+xs+"]",Wt="\\u200d",Mn="(?:"+X+"|"+ue+")",Fn="(?:"+Ot+"|"+ue+")",Lr="(?:"+Xi+"(?:d|ll|m|re|s|t|ve))?",rr="(?:"+Xi+"(?:D|LL|M|RE|S|T|VE))?",Cs=_e+"?",xa="["+$a+"]?",wa="(?:"+Wt+"(?:"+[it,Ke,ze].join("|")+")"+xa+Cs+")*",Qi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Rp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ol=xa+Cs+wa,_p="(?:"+[B,Ke,ze].join("|")+")"+ol,al="(?:"+[it+Fo+"?",Fo,Ke,ze,il].join("|")+")",ud=RegExp(Xi,"g"),Op=RegExp(Fo,"g"),sl=RegExp(be+"(?="+be+")|"+al+ol,"g"),ld=RegExp([Ot+"?"+X+"+"+Lr+"(?="+[Ds,Ot,"$"].join("|")+")",Fn+"+"+rr+"(?="+[Ds,Ot+Mn,"$"].join("|")+")",Ot+"?"+Mn+"+"+Lr,Ot+"+"+rr,Rp,Qi,Es,_p].join("|"),"g"),Mp=RegExp("["+Wt+Vr+Mo+$a+"]"),Ss=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Fp=["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"],ul=-1,Bt={};Bt[Pn]=Bt[Rn]=Bt[Yt]=Bt[Vn]=Bt[tn]=Bt[vt]=Bt[Ln]=Bt[Cr]=Bt[_n]=!0,Bt[ie]=Bt[Ee]=Bt[ut]=Bt[ne]=Bt[_t]=Bt[ye]=Bt[he]=Bt[le]=Bt[et]=Bt[dt]=Bt[yt]=Bt[te]=Bt[pe]=Bt[Ce]=Bt[Le]=!1;var Mt={};Mt[ie]=Mt[Ee]=Mt[ut]=Mt[_t]=Mt[ne]=Mt[ye]=Mt[Pn]=Mt[Rn]=Mt[Yt]=Mt[Vn]=Mt[tn]=Mt[et]=Mt[dt]=Mt[yt]=Mt[te]=Mt[pe]=Mt[Ce]=Mt[De]=Mt[vt]=Mt[Ln]=Mt[Cr]=Mt[_n]=!0,Mt[he]=Mt[le]=Mt[Le]=!1;var N={À:"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"},ae={"&":"&","<":"<",">":">",'"':""","'":"'"},ve={"&":"&","<":"<",">":">",""":'"',"'":"'"},Ie={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},yn=parseFloat,Un=parseInt,Nr=typeof Js=="object"&&Js&&Js.Object===Object&&Js,zn=typeof self=="object"&&self&&self.Object===Object&&self,pn=Nr||zn||Function("return this")(),Pi=t&&!t.nodeType&&t,Ri=Pi&&!0&&e&&!e.nodeType&&e,ll=Ri&&Ri.exports===Pi,Ts=ll&&Nr.process,Wn=function(){try{var Q=Ri&&Ri.require&&Ri.require("util").types;return Q||Ts&&Ts.binding&&Ts.binding("util")}catch{}}(),Da=Wn&&Wn.isArrayBuffer,o1=Wn&&Wn.isDate,a1=Wn&&Wn.isMap,s1=Wn&&Wn.isRegExp,u1=Wn&&Wn.isSet,l1=Wn&&Wn.isTypedArray;function Sr(Q,de,se){switch(se.length){case 0:return Q.call(de);case 1:return Q.call(de,se[0]);case 2:return Q.call(de,se[0],se[1]);case 3:return Q.call(de,se[0],se[1],se[2])}return Q.apply(de,se)}function u_(Q,de,se,Me){for(var Je=-1,bt=Q==null?0:Q.length;++Je<bt;){var vn=Q[Je];de(Me,vn,se(vn),Q)}return Me}function jr(Q,de){for(var se=-1,Me=Q==null?0:Q.length;++se<Me&&de(Q[se],se,Q)!==!1;);return Q}function l_(Q,de){for(var se=Q==null?0:Q.length;se--&&de(Q[se],se,Q)!==!1;);return Q}function c1(Q,de){for(var se=-1,Me=Q==null?0:Q.length;++se<Me;)if(!de(Q[se],se,Q))return!1;return!0}function ko(Q,de){for(var se=-1,Me=Q==null?0:Q.length,Je=0,bt=[];++se<Me;){var vn=Q[se];de(vn,se,Q)&&(bt[Je++]=vn)}return bt}function cd(Q,de){var se=Q==null?0:Q.length;return!!se&&As(Q,de,0)>-1}function kp(Q,de,se){for(var Me=-1,Je=Q==null?0:Q.length;++Me<Je;)if(se(de,Q[Me]))return!0;return!1}function Ht(Q,de){for(var se=-1,Me=Q==null?0:Q.length,Je=Array(Me);++se<Me;)Je[se]=de(Q[se],se,Q);return Je}function Bo(Q,de){for(var se=-1,Me=de.length,Je=Q.length;++se<Me;)Q[Je+se]=de[se];return Q}function Bp(Q,de,se,Me){var Je=-1,bt=Q==null?0:Q.length;for(Me&&bt&&(se=Q[++Je]);++Je<bt;)se=de(se,Q[Je],Je,Q);return se}function c_(Q,de,se,Me){var Je=Q==null?0:Q.length;for(Me&&Je&&(se=Q[--Je]);Je--;)se=de(se,Q[Je],Je,Q);return se}function Ip(Q,de){for(var se=-1,Me=Q==null?0:Q.length;++se<Me;)if(de(Q[se],se,Q))return!0;return!1}var d_=Vp("length");function f_(Q){return Q.split("")}function h_(Q){return Q.match(kt)||[]}function d1(Q,de,se){var Me;return se(Q,function(Je,bt,vn){if(de(Je,bt,vn))return Me=bt,!1}),Me}function dd(Q,de,se,Me){for(var Je=Q.length,bt=se+(Me?1:-1);Me?bt--:++bt<Je;)if(de(Q[bt],bt,Q))return bt;return-1}function As(Q,de,se){return de===de?C_(Q,de,se):dd(Q,f1,se)}function p_(Q,de,se,Me){for(var Je=se-1,bt=Q.length;++Je<bt;)if(Me(Q[Je],de))return Je;return-1}function f1(Q){return Q!==Q}function h1(Q,de){var se=Q==null?0:Q.length;return se?Np(Q,de)/se:L}function Vp(Q){return function(de){return de==null?n:de[Q]}}function Lp(Q){return function(de){return Q==null?n:Q[de]}}function p1(Q,de,se,Me,Je){return Je(Q,function(bt,vn,It){se=Me?(Me=!1,bt):de(se,bt,vn,It)}),se}function m_(Q,de){var se=Q.length;for(Q.sort(de);se--;)Q[se]=Q[se].value;return Q}function Np(Q,de){for(var se,Me=-1,Je=Q.length;++Me<Je;){var bt=de(Q[Me]);bt!==n&&(se=se===n?bt:se+bt)}return se}function jp(Q,de){for(var se=-1,Me=Array(Q);++se<Q;)Me[se]=de(se);return Me}function g_(Q,de){return Ht(de,function(se){return[se,Q[se]]})}function m1(Q){return Q&&Q.slice(0,b1(Q)+1).replace(Ft,"")}function Tr(Q){return function(de){return Q(de)}}function Kp(Q,de){return Ht(de,function(se){return Q[se]})}function cl(Q,de){return Q.has(de)}function g1(Q,de){for(var se=-1,Me=Q.length;++se<Me&&As(de,Q[se],0)>-1;);return se}function y1(Q,de){for(var se=Q.length;se--&&As(de,Q[se],0)>-1;);return se}function y_(Q,de){for(var se=Q.length,Me=0;se--;)Q[se]===de&&++Me;return Me}var v_=Lp(N),b_=Lp(ae);function $_(Q){return"\\"+Ie[Q]}function x_(Q,de){return Q==null?n:Q[de]}function Ps(Q){return Mp.test(Q)}function w_(Q){return Ss.test(Q)}function D_(Q){for(var de,se=[];!(de=Q.next()).done;)se.push(de.value);return se}function Up(Q){var de=-1,se=Array(Q.size);return Q.forEach(function(Me,Je){se[++de]=[Je,Me]}),se}function v1(Q,de){return function(se){return Q(de(se))}}function Io(Q,de){for(var se=-1,Me=Q.length,Je=0,bt=[];++se<Me;){var vn=Q[se];(vn===de||vn===f)&&(Q[se]=f,bt[Je++]=se)}return bt}function fd(Q){var de=-1,se=Array(Q.size);return Q.forEach(function(Me){se[++de]=Me}),se}function E_(Q){var de=-1,se=Array(Q.size);return Q.forEach(function(Me){se[++de]=[Me,Me]}),se}function C_(Q,de,se){for(var Me=se-1,Je=Q.length;++Me<Je;)if(Q[Me]===de)return Me;return-1}function S_(Q,de,se){for(var Me=se+1;Me--;)if(Q[Me]===de)return Me;return Me}function Rs(Q){return Ps(Q)?A_(Q):d_(Q)}function ci(Q){return Ps(Q)?P_(Q):f_(Q)}function b1(Q){for(var de=Q.length;de--&&rn.test(Q.charAt(de)););return de}var T_=Lp(ve);function A_(Q){for(var de=sl.lastIndex=0;sl.test(Q);)++de;return de}function P_(Q){return Q.match(sl)||[]}function R_(Q){return Q.match(ld)||[]}var __=function Q(de){de=de==null?pn:_s.defaults(pn.Object(),de,_s.pick(pn,Fp));var se=de.Array,Me=de.Date,Je=de.Error,bt=de.Function,vn=de.Math,It=de.Object,zp=de.RegExp,O_=de.String,Kr=de.TypeError,hd=se.prototype,M_=bt.prototype,Os=It.prototype,pd=de["__core-js_shared__"],md=M_.toString,At=Os.hasOwnProperty,F_=0,$1=function(){var s=/[^.]+$/.exec(pd&&pd.keys&&pd.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),gd=Os.toString,k_=md.call(It),B_=pn._,I_=zp("^"+md.call(At).replace(je,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yd=ll?de.Buffer:n,Vo=de.Symbol,vd=de.Uint8Array,x1=yd?yd.allocUnsafe:n,bd=v1(It.getPrototypeOf,It),w1=It.create,D1=Os.propertyIsEnumerable,$d=hd.splice,E1=Vo?Vo.isConcatSpreadable:n,dl=Vo?Vo.iterator:n,Ea=Vo?Vo.toStringTag:n,xd=function(){try{var s=Pa(It,"defineProperty");return s({},"",{}),s}catch{}}(),V_=de.clearTimeout!==pn.clearTimeout&&de.clearTimeout,L_=Me&&Me.now!==pn.Date.now&&Me.now,N_=de.setTimeout!==pn.setTimeout&&de.setTimeout,wd=vn.ceil,Dd=vn.floor,Wp=It.getOwnPropertySymbols,j_=yd?yd.isBuffer:n,C1=de.isFinite,K_=hd.join,U_=v1(It.keys,It),bn=vn.max,Hn=vn.min,z_=Me.now,W_=de.parseInt,S1=vn.random,H_=hd.reverse,Hp=Pa(de,"DataView"),fl=Pa(de,"Map"),Gp=Pa(de,"Promise"),Ms=Pa(de,"Set"),hl=Pa(de,"WeakMap"),pl=Pa(It,"create"),Ed=hl&&new hl,Fs={},G_=Ra(Hp),q_=Ra(fl),Y_=Ra(Gp),Z_=Ra(Ms),J_=Ra(hl),Cd=Vo?Vo.prototype:n,ml=Cd?Cd.valueOf:n,T1=Cd?Cd.toString:n;function _(s){if(on(s)&&!Xe(s)&&!(s instanceof ft)){if(s instanceof Ur)return s;if(At.call(s,"__wrapped__"))return A4(s)}return new Ur(s)}var ks=function(){function s(){}return function(l){if(!Zt(l))return{};if(w1)return w1(l);s.prototype=l;var p=new s;return s.prototype=n,p}}();function Sd(){}function Ur(s,l){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=n}_.templateSettings={escape:Cn,evaluate:Ne,interpolate:tt,variable:"",imports:{_}},_.prototype=Sd.prototype,_.prototype.constructor=_,Ur.prototype=ks(Sd.prototype),Ur.prototype.constructor=Ur;function ft(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=z,this.__views__=[]}function X_(){var s=new ft(this.__wrapped__);return s.__actions__=mr(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=mr(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=mr(this.__views__),s}function Q_(){if(this.__filtered__){var s=new ft(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function eO(){var s=this.__wrapped__.value(),l=this.__dir__,p=Xe(s),w=l<0,A=p?s.length:0,I=fM(0,A,this.__views__),H=I.start,J=I.end,ee=J-H,me=w?J:H-1,ge=this.__iteratees__,we=ge.length,Pe=0,Ve=Hn(ee,this.__takeCount__);if(!p||!w&&A==ee&&Ve==ee)return J1(s,this.__actions__);var We=[];e:for(;ee--&&Pe<Ve;){me+=l;for(var ot=-1,He=s[me];++ot<we;){var lt=ge[ot],ht=lt.iteratee,Rr=lt.type,ar=ht(He);if(Rr==j)He=ar;else if(!ar){if(Rr==W)continue e;break e}}We[Pe++]=He}return We}ft.prototype=ks(Sd.prototype),ft.prototype.constructor=ft;function Ca(s){var l=-1,p=s==null?0:s.length;for(this.clear();++l<p;){var w=s[l];this.set(w[0],w[1])}}function tO(){this.__data__=pl?pl(null):{},this.size=0}function nO(s){var l=this.has(s)&&delete this.__data__[s];return this.size-=l?1:0,l}function rO(s){var l=this.__data__;if(pl){var p=l[s];return p===c?n:p}return At.call(l,s)?l[s]:n}function iO(s){var l=this.__data__;return pl?l[s]!==n:At.call(l,s)}function oO(s,l){var p=this.__data__;return this.size+=this.has(s)?0:1,p[s]=pl&&l===n?c:l,this}Ca.prototype.clear=tO,Ca.prototype.delete=nO,Ca.prototype.get=rO,Ca.prototype.has=iO,Ca.prototype.set=oO;function eo(s){var l=-1,p=s==null?0:s.length;for(this.clear();++l<p;){var w=s[l];this.set(w[0],w[1])}}function aO(){this.__data__=[],this.size=0}function sO(s){var l=this.__data__,p=Td(l,s);if(p<0)return!1;var w=l.length-1;return p==w?l.pop():$d.call(l,p,1),--this.size,!0}function uO(s){var l=this.__data__,p=Td(l,s);return p<0?n:l[p][1]}function lO(s){return Td(this.__data__,s)>-1}function cO(s,l){var p=this.__data__,w=Td(p,s);return w<0?(++this.size,p.push([s,l])):p[w][1]=l,this}eo.prototype.clear=aO,eo.prototype.delete=sO,eo.prototype.get=uO,eo.prototype.has=lO,eo.prototype.set=cO;function to(s){var l=-1,p=s==null?0:s.length;for(this.clear();++l<p;){var w=s[l];this.set(w[0],w[1])}}function dO(){this.size=0,this.__data__={hash:new Ca,map:new(fl||eo),string:new Ca}}function fO(s){var l=Ld(this,s).delete(s);return this.size-=l?1:0,l}function hO(s){return Ld(this,s).get(s)}function pO(s){return Ld(this,s).has(s)}function mO(s,l){var p=Ld(this,s),w=p.size;return p.set(s,l),this.size+=p.size==w?0:1,this}to.prototype.clear=dO,to.prototype.delete=fO,to.prototype.get=hO,to.prototype.has=pO,to.prototype.set=mO;function Sa(s){var l=-1,p=s==null?0:s.length;for(this.__data__=new to;++l<p;)this.add(s[l])}function gO(s){return this.__data__.set(s,c),this}function yO(s){return this.__data__.has(s)}Sa.prototype.add=Sa.prototype.push=gO,Sa.prototype.has=yO;function di(s){var l=this.__data__=new eo(s);this.size=l.size}function vO(){this.__data__=new eo,this.size=0}function bO(s){var l=this.__data__,p=l.delete(s);return this.size=l.size,p}function $O(s){return this.__data__.get(s)}function xO(s){return this.__data__.has(s)}function wO(s,l){var p=this.__data__;if(p instanceof eo){var w=p.__data__;if(!fl||w.length<i-1)return w.push([s,l]),this.size=++p.size,this;p=this.__data__=new to(w)}return p.set(s,l),this.size=p.size,this}di.prototype.clear=vO,di.prototype.delete=bO,di.prototype.get=$O,di.prototype.has=xO,di.prototype.set=wO;function A1(s,l){var p=Xe(s),w=!p&&_a(s),A=!p&&!w&&Uo(s),I=!p&&!w&&!A&&Ls(s),H=p||w||A||I,J=H?jp(s.length,O_):[],ee=J.length;for(var me in s)(l||At.call(s,me))&&!(H&&(me=="length"||A&&(me=="offset"||me=="parent")||I&&(me=="buffer"||me=="byteLength"||me=="byteOffset")||oo(me,ee)))&&J.push(me);return J}function P1(s){var l=s.length;return l?s[im(0,l-1)]:n}function DO(s,l){return Nd(mr(s),Ta(l,0,s.length))}function EO(s){return Nd(mr(s))}function qp(s,l,p){(p!==n&&!fi(s[l],p)||p===n&&!(l in s))&&no(s,l,p)}function gl(s,l,p){var w=s[l];(!(At.call(s,l)&&fi(w,p))||p===n&&!(l in s))&&no(s,l,p)}function Td(s,l){for(var p=s.length;p--;)if(fi(s[p][0],l))return p;return-1}function CO(s,l,p,w){return Lo(s,function(A,I,H){l(w,A,p(A),H)}),w}function R1(s,l){return s&&Oi(l,Sn(l),s)}function SO(s,l){return s&&Oi(l,yr(l),s)}function no(s,l,p){l=="__proto__"&&xd?xd(s,l,{configurable:!0,enumerable:!0,value:p,writable:!0}):s[l]=p}function Yp(s,l){for(var p=-1,w=l.length,A=se(w),I=s==null;++p<w;)A[p]=I?n:Pm(s,l[p]);return A}function Ta(s,l,p){return s===s&&(p!==n&&(s=s<=p?s:p),l!==n&&(s=s>=l?s:l)),s}function zr(s,l,p,w,A,I){var H,J=l&h,ee=l&m,me=l&g;if(p&&(H=A?p(s,w,A,I):p(s)),H!==n)return H;if(!Zt(s))return s;var ge=Xe(s);if(ge){if(H=pM(s),!J)return mr(s,H)}else{var we=Gn(s),Pe=we==le||we==Fe;if(Uo(s))return e4(s,J);if(we==yt||we==ie||Pe&&!A){if(H=ee||Pe?{}:b4(s),!J)return ee?rM(s,SO(H,s)):nM(s,R1(H,s))}else{if(!Mt[we])return A?s:{};H=mM(s,we,J)}}I||(I=new di);var Ve=I.get(s);if(Ve)return Ve;I.set(s,H),q4(s)?s.forEach(function(He){H.add(zr(He,l,p,He,s,I))}):H4(s)&&s.forEach(function(He,lt){H.set(lt,zr(He,l,p,lt,s,I))});var We=me?ee?mm:pm:ee?yr:Sn,ot=ge?n:We(s);return jr(ot||s,function(He,lt){ot&&(lt=He,He=s[lt]),gl(H,lt,zr(He,l,p,lt,s,I))}),H}function TO(s){var l=Sn(s);return function(p){return _1(p,s,l)}}function _1(s,l,p){var w=p.length;if(s==null)return!w;for(s=It(s);w--;){var A=p[w],I=l[A],H=s[A];if(H===n&&!(A in s)||!I(H))return!1}return!0}function O1(s,l,p){if(typeof s!="function")throw new Kr(a);return Dl(function(){s.apply(n,p)},l)}function yl(s,l,p,w){var A=-1,I=cd,H=!0,J=s.length,ee=[],me=l.length;if(!J)return ee;p&&(l=Ht(l,Tr(p))),w?(I=kp,H=!1):l.length>=i&&(I=cl,H=!1,l=new Sa(l));e:for(;++A<J;){var ge=s[A],we=p==null?ge:p(ge);if(ge=w||ge!==0?ge:0,H&&we===we){for(var Pe=me;Pe--;)if(l[Pe]===we)continue e;ee.push(ge)}else I(l,we,w)||ee.push(ge)}return ee}var Lo=o4(_i),M1=o4(Jp,!0);function AO(s,l){var p=!0;return Lo(s,function(w,A,I){return p=!!l(w,A,I),p}),p}function Ad(s,l,p){for(var w=-1,A=s.length;++w<A;){var I=s[w],H=l(I);if(H!=null&&(J===n?H===H&&!Pr(H):p(H,J)))var J=H,ee=I}return ee}function PO(s,l,p,w){var A=s.length;for(p=nt(p),p<0&&(p=-p>A?0:A+p),w=w===n||w>A?A:nt(w),w<0&&(w+=A),w=p>w?0:Z4(w);p<w;)s[p++]=l;return s}function F1(s,l){var p=[];return Lo(s,function(w,A,I){l(w,A,I)&&p.push(w)}),p}function kn(s,l,p,w,A){var I=-1,H=s.length;for(p||(p=yM),A||(A=[]);++I<H;){var J=s[I];l>0&&p(J)?l>1?kn(J,l-1,p,w,A):Bo(A,J):w||(A[A.length]=J)}return A}var Zp=a4(),k1=a4(!0);function _i(s,l){return s&&Zp(s,l,Sn)}function Jp(s,l){return s&&k1(s,l,Sn)}function Pd(s,l){return ko(l,function(p){return ao(s[p])})}function Aa(s,l){l=jo(l,s);for(var p=0,w=l.length;s!=null&&p<w;)s=s[Mi(l[p++])];return p&&p==w?s:n}function B1(s,l,p){var w=l(s);return Xe(s)?w:Bo(w,p(s))}function ir(s){return s==null?s===n?Re:Dn:Ea&&Ea in It(s)?dM(s):EM(s)}function Xp(s,l){return s>l}function RO(s,l){return s!=null&&At.call(s,l)}function _O(s,l){return s!=null&&l in It(s)}function OO(s,l,p){return s>=Hn(l,p)&&s<bn(l,p)}function Qp(s,l,p){for(var w=p?kp:cd,A=s[0].length,I=s.length,H=I,J=se(I),ee=1/0,me=[];H--;){var ge=s[H];H&&l&&(ge=Ht(ge,Tr(l))),ee=Hn(ge.length,ee),J[H]=!p&&(l||A>=120&&ge.length>=120)?new Sa(H&&ge):n}ge=s[0];var we=-1,Pe=J[0];e:for(;++we<A&&me.length<ee;){var Ve=ge[we],We=l?l(Ve):Ve;if(Ve=p||Ve!==0?Ve:0,!(Pe?cl(Pe,We):w(me,We,p))){for(H=I;--H;){var ot=J[H];if(!(ot?cl(ot,We):w(s[H],We,p)))continue e}Pe&&Pe.push(We),me.push(Ve)}}return me}function MO(s,l,p,w){return _i(s,function(A,I,H){l(w,p(A),I,H)}),w}function vl(s,l,p){l=jo(l,s),s=D4(s,l);var w=s==null?s:s[Mi(Hr(l))];return w==null?n:Sr(w,s,p)}function I1(s){return on(s)&&ir(s)==ie}function FO(s){return on(s)&&ir(s)==ut}function kO(s){return on(s)&&ir(s)==ye}function bl(s,l,p,w,A){return s===l?!0:s==null||l==null||!on(s)&&!on(l)?s!==s&&l!==l:BO(s,l,p,w,bl,A)}function BO(s,l,p,w,A,I){var H=Xe(s),J=Xe(l),ee=H?Ee:Gn(s),me=J?Ee:Gn(l);ee=ee==ie?yt:ee,me=me==ie?yt:me;var ge=ee==yt,we=me==yt,Pe=ee==me;if(Pe&&Uo(s)){if(!Uo(l))return!1;H=!0,ge=!1}if(Pe&&!ge)return I||(I=new di),H||Ls(s)?g4(s,l,p,w,A,I):lM(s,l,ee,p,w,A,I);if(!(p&v)){var Ve=ge&&At.call(s,"__wrapped__"),We=we&&At.call(l,"__wrapped__");if(Ve||We){var ot=Ve?s.value():s,He=We?l.value():l;return I||(I=new di),A(ot,He,p,w,I)}}return Pe?(I||(I=new di),cM(s,l,p,w,A,I)):!1}function IO(s){return on(s)&&Gn(s)==et}function em(s,l,p,w){var A=p.length,I=A,H=!w;if(s==null)return!I;for(s=It(s);A--;){var J=p[A];if(H&&J[2]?J[1]!==s[J[0]]:!(J[0]in s))return!1}for(;++A<I;){J=p[A];var ee=J[0],me=s[ee],ge=J[1];if(H&&J[2]){if(me===n&&!(ee in s))return!1}else{var we=new di;if(w)var Pe=w(me,ge,ee,s,l,we);if(!(Pe===n?bl(ge,me,v|$,w,we):Pe))return!1}}return!0}function V1(s){if(!Zt(s)||bM(s))return!1;var l=ao(s)?I_:_o;return l.test(Ra(s))}function VO(s){return on(s)&&ir(s)==te}function LO(s){return on(s)&&Gn(s)==pe}function NO(s){return on(s)&&Hd(s.length)&&!!Bt[ir(s)]}function L1(s){return typeof s=="function"?s:s==null?vr:typeof s=="object"?Xe(s)?K1(s[0],s[1]):j1(s):s3(s)}function tm(s){if(!wl(s))return U_(s);var l=[];for(var p in It(s))At.call(s,p)&&p!="constructor"&&l.push(p);return l}function jO(s){if(!Zt(s))return DM(s);var l=wl(s),p=[];for(var w in s)w=="constructor"&&(l||!At.call(s,w))||p.push(w);return p}function nm(s,l){return s<l}function N1(s,l){var p=-1,w=gr(s)?se(s.length):[];return Lo(s,function(A,I,H){w[++p]=l(A,I,H)}),w}function j1(s){var l=ym(s);return l.length==1&&l[0][2]?x4(l[0][0],l[0][1]):function(p){return p===s||em(p,s,l)}}function K1(s,l){return bm(s)&&$4(l)?x4(Mi(s),l):function(p){var w=Pm(p,s);return w===n&&w===l?Rm(p,s):bl(l,w,v|$)}}function Rd(s,l,p,w,A){s!==l&&Zp(l,function(I,H){if(A||(A=new di),Zt(I))KO(s,l,H,p,Rd,w,A);else{var J=w?w(xm(s,H),I,H+"",s,l,A):n;J===n&&(J=I),qp(s,H,J)}},yr)}function KO(s,l,p,w,A,I,H){var J=xm(s,p),ee=xm(l,p),me=H.get(ee);if(me){qp(s,p,me);return}var ge=I?I(J,ee,p+"",s,l,H):n,we=ge===n;if(we){var Pe=Xe(ee),Ve=!Pe&&Uo(ee),We=!Pe&&!Ve&&Ls(ee);ge=ee,Pe||Ve||We?Xe(J)?ge=J:sn(J)?ge=mr(J):Ve?(we=!1,ge=e4(ee,!0)):We?(we=!1,ge=t4(ee,!0)):ge=[]:El(ee)||_a(ee)?(ge=J,_a(J)?ge=J4(J):(!Zt(J)||ao(J))&&(ge=b4(ee))):we=!1}we&&(H.set(ee,ge),A(ge,ee,w,I,H),H.delete(ee)),qp(s,p,ge)}function U1(s,l){var p=s.length;if(p)return l+=l<0?p:0,oo(l,p)?s[l]:n}function z1(s,l,p){l.length?l=Ht(l,function(I){return Xe(I)?function(H){return Aa(H,I.length===1?I[0]:I)}:I}):l=[vr];var w=-1;l=Ht(l,Tr(Ue()));var A=N1(s,function(I,H,J){var ee=Ht(l,function(me){return me(I)});return{criteria:ee,index:++w,value:I}});return m_(A,function(I,H){return tM(I,H,p)})}function UO(s,l){return W1(s,l,function(p,w){return Rm(s,w)})}function W1(s,l,p){for(var w=-1,A=l.length,I={};++w<A;){var H=l[w],J=Aa(s,H);p(J,H)&&$l(I,jo(H,s),J)}return I}function zO(s){return function(l){return Aa(l,s)}}function rm(s,l,p,w){var A=w?p_:As,I=-1,H=l.length,J=s;for(s===l&&(l=mr(l)),p&&(J=Ht(s,Tr(p)));++I<H;)for(var ee=0,me=l[I],ge=p?p(me):me;(ee=A(J,ge,ee,w))>-1;)J!==s&&$d.call(J,ee,1),$d.call(s,ee,1);return s}function H1(s,l){for(var p=s?l.length:0,w=p-1;p--;){var A=l[p];if(p==w||A!==I){var I=A;oo(A)?$d.call(s,A,1):sm(s,A)}}return s}function im(s,l){return s+Dd(S1()*(l-s+1))}function WO(s,l,p,w){for(var A=-1,I=bn(wd((l-s)/(p||1)),0),H=se(I);I--;)H[w?I:++A]=s,s+=p;return H}function om(s,l){var p="";if(!s||l<1||l>M)return p;do l%2&&(p+=s),l=Dd(l/2),l&&(s+=s);while(l);return p}function st(s,l){return wm(w4(s,l,vr),s+"")}function HO(s){return P1(Ns(s))}function GO(s,l){var p=Ns(s);return Nd(p,Ta(l,0,p.length))}function $l(s,l,p,w){if(!Zt(s))return s;l=jo(l,s);for(var A=-1,I=l.length,H=I-1,J=s;J!=null&&++A<I;){var ee=Mi(l[A]),me=p;if(ee==="__proto__"||ee==="constructor"||ee==="prototype")return s;if(A!=H){var ge=J[ee];me=w?w(ge,ee,J):n,me===n&&(me=Zt(ge)?ge:oo(l[A+1])?[]:{})}gl(J,ee,me),J=J[ee]}return s}var G1=Ed?function(s,l){return Ed.set(s,l),s}:vr,qO=xd?function(s,l){return xd(s,"toString",{configurable:!0,enumerable:!1,value:Om(l),writable:!0})}:vr;function YO(s){return Nd(Ns(s))}function Wr(s,l,p){var w=-1,A=s.length;l<0&&(l=-l>A?0:A+l),p=p>A?A:p,p<0&&(p+=A),A=l>p?0:p-l>>>0,l>>>=0;for(var I=se(A);++w<A;)I[w]=s[w+l];return I}function ZO(s,l){var p;return Lo(s,function(w,A,I){return p=l(w,A,I),!p}),!!p}function _d(s,l,p){var w=0,A=s==null?w:s.length;if(typeof l=="number"&&l===l&&A<=oe){for(;w<A;){var I=w+A>>>1,H=s[I];H!==null&&!Pr(H)&&(p?H<=l:H<l)?w=I+1:A=I}return A}return am(s,l,vr,p)}function am(s,l,p,w){var A=0,I=s==null?0:s.length;if(I===0)return 0;l=p(l);for(var H=l!==l,J=l===null,ee=Pr(l),me=l===n;A<I;){var ge=Dd((A+I)/2),we=p(s[ge]),Pe=we!==n,Ve=we===null,We=we===we,ot=Pr(we);if(H)var He=w||We;else me?He=We&&(w||Pe):J?He=We&&Pe&&(w||!Ve):ee?He=We&&Pe&&!Ve&&(w||!ot):Ve||ot?He=!1:He=w?we<=l:we<l;He?A=ge+1:I=ge}return Hn(I,re)}function q1(s,l){for(var p=-1,w=s.length,A=0,I=[];++p<w;){var H=s[p],J=l?l(H):H;if(!p||!fi(J,ee)){var ee=J;I[A++]=H===0?0:H}}return I}function Y1(s){return typeof s=="number"?s:Pr(s)?L:+s}function Ar(s){if(typeof s=="string")return s;if(Xe(s))return Ht(s,Ar)+"";if(Pr(s))return T1?T1.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function No(s,l,p){var w=-1,A=cd,I=s.length,H=!0,J=[],ee=J;if(p)H=!1,A=kp;else if(I>=i){var me=l?null:sM(s);if(me)return fd(me);H=!1,A=cl,ee=new Sa}else ee=l?[]:J;e:for(;++w<I;){var ge=s[w],we=l?l(ge):ge;if(ge=p||ge!==0?ge:0,H&&we===we){for(var Pe=ee.length;Pe--;)if(ee[Pe]===we)continue e;l&&ee.push(we),J.push(ge)}else A(ee,we,p)||(ee!==J&&ee.push(we),J.push(ge))}return J}function sm(s,l){return l=jo(l,s),s=D4(s,l),s==null||delete s[Mi(Hr(l))]}function Z1(s,l,p,w){return $l(s,l,p(Aa(s,l)),w)}function Od(s,l,p,w){for(var A=s.length,I=w?A:-1;(w?I--:++I<A)&&l(s[I],I,s););return p?Wr(s,w?0:I,w?I+1:A):Wr(s,w?I+1:0,w?A:I)}function J1(s,l){var p=s;return p instanceof ft&&(p=p.value()),Bp(l,function(w,A){return A.func.apply(A.thisArg,Bo([w],A.args))},p)}function um(s,l,p){var w=s.length;if(w<2)return w?No(s[0]):[];for(var A=-1,I=se(w);++A<w;)for(var H=s[A],J=-1;++J<w;)J!=A&&(I[A]=yl(I[A]||H,s[J],l,p));return No(kn(I,1),l,p)}function X1(s,l,p){for(var w=-1,A=s.length,I=l.length,H={};++w<A;){var J=w<I?l[w]:n;p(H,s[w],J)}return H}function lm(s){return sn(s)?s:[]}function cm(s){return typeof s=="function"?s:vr}function jo(s,l){return Xe(s)?s:bm(s,l)?[s]:T4(Dt(s))}var JO=st;function Ko(s,l,p){var w=s.length;return p=p===n?w:p,!l&&p>=w?s:Wr(s,l,p)}var Q1=V_||function(s){return pn.clearTimeout(s)};function e4(s,l){if(l)return s.slice();var p=s.length,w=x1?x1(p):new s.constructor(p);return s.copy(w),w}function dm(s){var l=new s.constructor(s.byteLength);return new vd(l).set(new vd(s)),l}function XO(s,l){var p=l?dm(s.buffer):s.buffer;return new s.constructor(p,s.byteOffset,s.byteLength)}function QO(s){var l=new s.constructor(s.source,hr.exec(s));return l.lastIndex=s.lastIndex,l}function eM(s){return ml?It(ml.call(s)):{}}function t4(s,l){var p=l?dm(s.buffer):s.buffer;return new s.constructor(p,s.byteOffset,s.length)}function n4(s,l){if(s!==l){var p=s!==n,w=s===null,A=s===s,I=Pr(s),H=l!==n,J=l===null,ee=l===l,me=Pr(l);if(!J&&!me&&!I&&s>l||I&&H&&ee&&!J&&!me||w&&H&&ee||!p&&ee||!A)return 1;if(!w&&!I&&!me&&s<l||me&&p&&A&&!w&&!I||J&&p&&A||!H&&A||!ee)return-1}return 0}function tM(s,l,p){for(var w=-1,A=s.criteria,I=l.criteria,H=A.length,J=p.length;++w<H;){var ee=n4(A[w],I[w]);if(ee){if(w>=J)return ee;var me=p[w];return ee*(me=="desc"?-1:1)}}return s.index-l.index}function r4(s,l,p,w){for(var A=-1,I=s.length,H=p.length,J=-1,ee=l.length,me=bn(I-H,0),ge=se(ee+me),we=!w;++J<ee;)ge[J]=l[J];for(;++A<H;)(we||A<I)&&(ge[p[A]]=s[A]);for(;me--;)ge[J++]=s[A++];return ge}function i4(s,l,p,w){for(var A=-1,I=s.length,H=-1,J=p.length,ee=-1,me=l.length,ge=bn(I-J,0),we=se(ge+me),Pe=!w;++A<ge;)we[A]=s[A];for(var Ve=A;++ee<me;)we[Ve+ee]=l[ee];for(;++H<J;)(Pe||A<I)&&(we[Ve+p[H]]=s[A++]);return we}function mr(s,l){var p=-1,w=s.length;for(l||(l=se(w));++p<w;)l[p]=s[p];return l}function Oi(s,l,p,w){var A=!p;p||(p={});for(var I=-1,H=l.length;++I<H;){var J=l[I],ee=w?w(p[J],s[J],J,p,s):n;ee===n&&(ee=s[J]),A?no(p,J,ee):gl(p,J,ee)}return p}function nM(s,l){return Oi(s,vm(s),l)}function rM(s,l){return Oi(s,y4(s),l)}function Md(s,l){return function(p,w){var A=Xe(p)?u_:CO,I=l?l():{};return A(p,s,Ue(w,2),I)}}function Bs(s){return st(function(l,p){var w=-1,A=p.length,I=A>1?p[A-1]:n,H=A>2?p[2]:n;for(I=s.length>3&&typeof I=="function"?(A--,I):n,H&&or(p[0],p[1],H)&&(I=A<3?n:I,A=1),l=It(l);++w<A;){var J=p[w];J&&s(l,J,w,I)}return l})}function o4(s,l){return function(p,w){if(p==null)return p;if(!gr(p))return s(p,w);for(var A=p.length,I=l?A:-1,H=It(p);(l?I--:++I<A)&&w(H[I],I,H)!==!1;);return p}}function a4(s){return function(l,p,w){for(var A=-1,I=It(l),H=w(l),J=H.length;J--;){var ee=H[s?J:++A];if(p(I[ee],ee,I)===!1)break}return l}}function iM(s,l,p){var w=l&C,A=xl(s);function I(){var H=this&&this!==pn&&this instanceof I?A:s;return H.apply(w?p:this,arguments)}return I}function s4(s){return function(l){l=Dt(l);var p=Ps(l)?ci(l):n,w=p?p[0]:l.charAt(0),A=p?Ko(p,1).join(""):l.slice(1);return w[s]()+A}}function Is(s){return function(l){return Bp(o3(i3(l).replace(ud,"")),s,"")}}function xl(s){return function(){var l=arguments;switch(l.length){case 0:return new s;case 1:return new s(l[0]);case 2:return new s(l[0],l[1]);case 3:return new s(l[0],l[1],l[2]);case 4:return new s(l[0],l[1],l[2],l[3]);case 5:return new s(l[0],l[1],l[2],l[3],l[4]);case 6:return new s(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new s(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var p=ks(s.prototype),w=s.apply(p,l);return Zt(w)?w:p}}function oM(s,l,p){var w=xl(s);function A(){for(var I=arguments.length,H=se(I),J=I,ee=Vs(A);J--;)H[J]=arguments[J];var me=I<3&&H[0]!==ee&&H[I-1]!==ee?[]:Io(H,ee);if(I-=me.length,I<p)return f4(s,l,Fd,A.placeholder,n,H,me,n,n,p-I);var ge=this&&this!==pn&&this instanceof A?w:s;return Sr(ge,this,H)}return A}function u4(s){return function(l,p,w){var A=It(l);if(!gr(l)){var I=Ue(p,3);l=Sn(l),p=function(J){return I(A[J],J,A)}}var H=s(l,p,w);return H>-1?A[I?l[H]:H]:n}}function l4(s){return io(function(l){var p=l.length,w=p,A=Ur.prototype.thru;for(s&&l.reverse();w--;){var I=l[w];if(typeof I!="function")throw new Kr(a);if(A&&!H&&Vd(I)=="wrapper")var H=new Ur([],!0)}for(w=H?w:p;++w<p;){I=l[w];var J=Vd(I),ee=J=="wrapper"?gm(I):n;ee&&$m(ee[0])&&ee[1]==(k|D|E|S)&&!ee[4].length&&ee[9]==1?H=H[Vd(ee[0])].apply(H,ee[3]):H=I.length==1&&$m(I)?H[J]():H.thru(I)}return function(){var me=arguments,ge=me[0];if(H&&me.length==1&&Xe(ge))return H.plant(ge).value();for(var we=0,Pe=p?l[we].apply(this,me):ge;++we<p;)Pe=l[we].call(this,Pe);return Pe}})}function Fd(s,l,p,w,A,I,H,J,ee,me){var ge=l&k,we=l&C,Pe=l&x,Ve=l&(D|P),We=l&U,ot=Pe?n:xl(s);function He(){for(var lt=arguments.length,ht=se(lt),Rr=lt;Rr--;)ht[Rr]=arguments[Rr];if(Ve)var ar=Vs(He),_r=y_(ht,ar);if(w&&(ht=r4(ht,w,A,Ve)),I&&(ht=i4(ht,I,H,Ve)),lt-=_r,Ve&<<me){var un=Io(ht,ar);return f4(s,l,Fd,He.placeholder,p,ht,un,J,ee,me-lt)}var hi=we?p:this,uo=Pe?hi[s]:s;return lt=ht.length,J?ht=CM(ht,J):We&<>1&&ht.reverse(),ge&&ee<lt&&(ht.length=ee),this&&this!==pn&&this instanceof He&&(uo=ot||xl(uo)),uo.apply(hi,ht)}return He}function c4(s,l){return function(p,w){return MO(p,s,l(w),{})}}function kd(s,l){return function(p,w){var A;if(p===n&&w===n)return l;if(p!==n&&(A=p),w!==n){if(A===n)return w;typeof p=="string"||typeof w=="string"?(p=Ar(p),w=Ar(w)):(p=Y1(p),w=Y1(w)),A=s(p,w)}return A}}function fm(s){return io(function(l){return l=Ht(l,Tr(Ue())),st(function(p){var w=this;return s(l,function(A){return Sr(A,w,p)})})})}function Bd(s,l){l=l===n?" ":Ar(l);var p=l.length;if(p<2)return p?om(l,s):l;var w=om(l,wd(s/Rs(l)));return Ps(l)?Ko(ci(w),0,s).join(""):w.slice(0,s)}function aM(s,l,p,w){var A=l&C,I=xl(s);function H(){for(var J=-1,ee=arguments.length,me=-1,ge=w.length,we=se(ge+ee),Pe=this&&this!==pn&&this instanceof H?I:s;++me<ge;)we[me]=w[me];for(;ee--;)we[me++]=arguments[++J];return Sr(Pe,A?p:this,we)}return H}function d4(s){return function(l,p,w){return w&&typeof w!="number"&&or(l,p,w)&&(p=w=n),l=so(l),p===n?(p=l,l=0):p=so(p),w=w===n?l<p?1:-1:so(w),WO(l,p,w,s)}}function Id(s){return function(l,p){return typeof l=="string"&&typeof p=="string"||(l=Gr(l),p=Gr(p)),s(l,p)}}function f4(s,l,p,w,A,I,H,J,ee,me){var ge=l&D,we=ge?H:n,Pe=ge?n:H,Ve=ge?I:n,We=ge?n:I;l|=ge?E:T,l&=~(ge?T:E),l&y||(l&=-4);var ot=[s,l,A,Ve,we,We,Pe,J,ee,me],He=p.apply(n,ot);return $m(s)&&E4(He,ot),He.placeholder=w,C4(He,s,l)}function hm(s){var l=vn[s];return function(p,w){if(p=Gr(p),w=w==null?0:Hn(nt(w),292),w&&C1(p)){var A=(Dt(p)+"e").split("e"),I=l(A[0]+"e"+(+A[1]+w));return A=(Dt(I)+"e").split("e"),+(A[0]+"e"+(+A[1]-w))}return l(p)}}var sM=Ms&&1/fd(new Ms([,-0]))[1]==R?function(s){return new Ms(s)}:km;function h4(s){return function(l){var p=Gn(l);return p==et?Up(l):p==pe?E_(l):g_(l,s(l))}}function ro(s,l,p,w,A,I,H,J){var ee=l&x;if(!ee&&typeof s!="function")throw new Kr(a);var me=w?w.length:0;if(me||(l&=-97,w=A=n),H=H===n?H:bn(nt(H),0),J=J===n?J:nt(J),me-=A?A.length:0,l&T){var ge=w,we=A;w=A=n}var Pe=ee?n:gm(s),Ve=[s,l,p,w,A,ge,we,I,H,J];if(Pe&&wM(Ve,Pe),s=Ve[0],l=Ve[1],p=Ve[2],w=Ve[3],A=Ve[4],J=Ve[9]=Ve[9]===n?ee?0:s.length:bn(Ve[9]-me,0),!J&&l&(D|P)&&(l&=-25),!l||l==C)var We=iM(s,l,p);else l==D||l==P?We=oM(s,l,J):(l==E||l==(C|E))&&!A.length?We=aM(s,l,p,w):We=Fd.apply(n,Ve);var ot=Pe?G1:E4;return C4(ot(We,Ve),s,l)}function p4(s,l,p,w){return s===n||fi(s,Os[p])&&!At.call(w,p)?l:s}function m4(s,l,p,w,A,I){return Zt(s)&&Zt(l)&&(I.set(l,s),Rd(s,l,n,m4,I),I.delete(l)),s}function uM(s){return El(s)?n:s}function g4(s,l,p,w,A,I){var H=p&v,J=s.length,ee=l.length;if(J!=ee&&!(H&&ee>J))return!1;var me=I.get(s),ge=I.get(l);if(me&&ge)return me==l&&ge==s;var we=-1,Pe=!0,Ve=p&$?new Sa:n;for(I.set(s,l),I.set(l,s);++we<J;){var We=s[we],ot=l[we];if(w)var He=H?w(ot,We,we,l,s,I):w(We,ot,we,s,l,I);if(He!==n){if(He)continue;Pe=!1;break}if(Ve){if(!Ip(l,function(lt,ht){if(!cl(Ve,ht)&&(We===lt||A(We,lt,p,w,I)))return Ve.push(ht)})){Pe=!1;break}}else if(!(We===ot||A(We,ot,p,w,I))){Pe=!1;break}}return I.delete(s),I.delete(l),Pe}function lM(s,l,p,w,A,I,H){switch(p){case _t:if(s.byteLength!=l.byteLength||s.byteOffset!=l.byteOffset)return!1;s=s.buffer,l=l.buffer;case ut:return!(s.byteLength!=l.byteLength||!I(new vd(s),new vd(l)));case ne:case ye:case dt:return fi(+s,+l);case he:return s.name==l.name&&s.message==l.message;case te:case Ce:return s==l+"";case et:var J=Up;case pe:var ee=w&v;if(J||(J=fd),s.size!=l.size&&!ee)return!1;var me=H.get(s);if(me)return me==l;w|=$,H.set(s,l);var ge=g4(J(s),J(l),w,A,I,H);return H.delete(s),ge;case De:if(ml)return ml.call(s)==ml.call(l)}return!1}function cM(s,l,p,w,A,I){var H=p&v,J=pm(s),ee=J.length,me=pm(l),ge=me.length;if(ee!=ge&&!H)return!1;for(var we=ee;we--;){var Pe=J[we];if(!(H?Pe in l:At.call(l,Pe)))return!1}var Ve=I.get(s),We=I.get(l);if(Ve&&We)return Ve==l&&We==s;var ot=!0;I.set(s,l),I.set(l,s);for(var He=H;++we<ee;){Pe=J[we];var lt=s[Pe],ht=l[Pe];if(w)var Rr=H?w(ht,lt,Pe,l,s,I):w(lt,ht,Pe,s,l,I);if(!(Rr===n?lt===ht||A(lt,ht,p,w,I):Rr)){ot=!1;break}He||(He=Pe=="constructor")}if(ot&&!He){var ar=s.constructor,_r=l.constructor;ar!=_r&&"constructor"in s&&"constructor"in l&&!(typeof ar=="function"&&ar instanceof ar&&typeof _r=="function"&&_r instanceof _r)&&(ot=!1)}return I.delete(s),I.delete(l),ot}function io(s){return wm(w4(s,n,_4),s+"")}function pm(s){return B1(s,Sn,vm)}function mm(s){return B1(s,yr,y4)}var gm=Ed?function(s){return Ed.get(s)}:km;function Vd(s){for(var l=s.name+"",p=Fs[l],w=At.call(Fs,l)?p.length:0;w--;){var A=p[w],I=A.func;if(I==null||I==s)return A.name}return l}function Vs(s){var l=At.call(_,"placeholder")?_:s;return l.placeholder}function Ue(){var s=_.iteratee||Mm;return s=s===Mm?L1:s,arguments.length?s(arguments[0],arguments[1]):s}function Ld(s,l){var p=s.__data__;return vM(l)?p[typeof l=="string"?"string":"hash"]:p.map}function ym(s){for(var l=Sn(s),p=l.length;p--;){var w=l[p],A=s[w];l[p]=[w,A,$4(A)]}return l}function Pa(s,l){var p=x_(s,l);return V1(p)?p:n}function dM(s){var l=At.call(s,Ea),p=s[Ea];try{s[Ea]=n;var w=!0}catch{}var A=gd.call(s);return w&&(l?s[Ea]=p:delete s[Ea]),A}var vm=Wp?function(s){return s==null?[]:(s=It(s),ko(Wp(s),function(l){return D1.call(s,l)}))}:Bm,y4=Wp?function(s){for(var l=[];s;)Bo(l,vm(s)),s=bd(s);return l}:Bm,Gn=ir;(Hp&&Gn(new Hp(new ArrayBuffer(1)))!=_t||fl&&Gn(new fl)!=et||Gp&&Gn(Gp.resolve())!=q||Ms&&Gn(new Ms)!=pe||hl&&Gn(new hl)!=Le)&&(Gn=function(s){var l=ir(s),p=l==yt?s.constructor:n,w=p?Ra(p):"";if(w)switch(w){case G_:return _t;case q_:return et;case Y_:return q;case Z_:return pe;case J_:return Le}return l});function fM(s,l,p){for(var w=-1,A=p.length;++w<A;){var I=p[w],H=I.size;switch(I.type){case"drop":s+=H;break;case"dropRight":l-=H;break;case"take":l=Hn(l,s+H);break;case"takeRight":s=bn(s,l-H);break}}return{start:s,end:l}}function hM(s){var l=s.match(Kt);return l?l[1].split(an):[]}function v4(s,l,p){l=jo(l,s);for(var w=-1,A=l.length,I=!1;++w<A;){var H=Mi(l[w]);if(!(I=s!=null&&p(s,H)))break;s=s[H]}return I||++w!=A?I:(A=s==null?0:s.length,!!A&&Hd(A)&&oo(H,A)&&(Xe(s)||_a(s)))}function pM(s){var l=s.length,p=new s.constructor(l);return l&&typeof s[0]=="string"&&At.call(s,"index")&&(p.index=s.index,p.input=s.input),p}function b4(s){return typeof s.constructor=="function"&&!wl(s)?ks(bd(s)):{}}function mM(s,l,p){var w=s.constructor;switch(l){case ut:return dm(s);case ne:case ye:return new w(+s);case _t:return XO(s,p);case Pn:case Rn:case Yt:case Vn:case tn:case vt:case Ln:case Cr:case _n:return t4(s,p);case et:return new w;case dt:case Ce:return new w(s);case te:return QO(s);case pe:return new w;case De:return eM(s)}}function gM(s,l){var p=l.length;if(!p)return s;var w=p-1;return l[w]=(p>1?"& ":"")+l[w],l=l.join(p>2?", ":" "),s.replace(jn,`{
|
|
66
|
+
/* [wrapped with `+l+`] */
|
|
67
|
+
`)}function yM(s){return Xe(s)||_a(s)||!!(E1&&s&&s[E1])}function oo(s,l){var p=typeof s;return l=l??M,!!l&&(p=="number"||p!="symbol"&&nr.test(s))&&s>-1&&s%1==0&&s<l}function or(s,l,p){if(!Zt(p))return!1;var w=typeof l;return(w=="number"?gr(p)&&oo(l,p.length):w=="string"&&l in p)?fi(p[l],s):!1}function bm(s,l){if(Xe(s))return!1;var p=typeof s;return p=="number"||p=="symbol"||p=="boolean"||s==null||Pr(s)?!0:fr.test(s)||!nn.test(s)||l!=null&&s in It(l)}function vM(s){var l=typeof s;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?s!=="__proto__":s===null}function $m(s){var l=Vd(s),p=_[l];if(typeof p!="function"||!(l in ft.prototype))return!1;if(s===p)return!0;var w=gm(p);return!!w&&s===w[0]}function bM(s){return!!$1&&$1 in s}var $M=pd?ao:Im;function wl(s){var l=s&&s.constructor,p=typeof l=="function"&&l.prototype||Os;return s===p}function $4(s){return s===s&&!Zt(s)}function x4(s,l){return function(p){return p==null?!1:p[s]===l&&(l!==n||s in It(p))}}function xM(s){var l=zd(s,function(w){return p.size===d&&p.clear(),w}),p=l.cache;return l}function wM(s,l){var p=s[1],w=l[1],A=p|w,I=A<(C|x|k),H=w==k&&p==D||w==k&&p==S&&s[7].length<=l[8]||w==(k|S)&&l[7].length<=l[8]&&p==D;if(!(I||H))return s;w&C&&(s[2]=l[2],A|=p&C?0:y);var J=l[3];if(J){var ee=s[3];s[3]=ee?r4(ee,J,l[4]):J,s[4]=ee?Io(s[3],f):l[4]}return J=l[5],J&&(ee=s[5],s[5]=ee?i4(ee,J,l[6]):J,s[6]=ee?Io(s[5],f):l[6]),J=l[7],J&&(s[7]=J),w&k&&(s[8]=s[8]==null?l[8]:Hn(s[8],l[8])),s[9]==null&&(s[9]=l[9]),s[0]=l[0],s[1]=A,s}function DM(s){var l=[];if(s!=null)for(var p in It(s))l.push(p);return l}function EM(s){return gd.call(s)}function w4(s,l,p){return l=bn(l===n?s.length-1:l,0),function(){for(var w=arguments,A=-1,I=bn(w.length-l,0),H=se(I);++A<I;)H[A]=w[l+A];A=-1;for(var J=se(l+1);++A<l;)J[A]=w[A];return J[l]=p(H),Sr(s,this,J)}}function D4(s,l){return l.length<2?s:Aa(s,Wr(l,0,-1))}function CM(s,l){for(var p=s.length,w=Hn(l.length,p),A=mr(s);w--;){var I=l[w];s[w]=oo(I,p)?A[I]:n}return s}function xm(s,l){if(!(l==="constructor"&&typeof s[l]=="function")&&l!="__proto__")return s[l]}var E4=S4(G1),Dl=N_||function(s,l){return pn.setTimeout(s,l)},wm=S4(qO);function C4(s,l,p){var w=l+"";return wm(s,gM(w,SM(hM(w),p)))}function S4(s){var l=0,p=0;return function(){var w=z_(),A=K-(w-p);if(p=w,A>0){if(++l>=G)return arguments[0]}else l=0;return s.apply(n,arguments)}}function Nd(s,l){var p=-1,w=s.length,A=w-1;for(l=l===n?w:l;++p<l;){var I=im(p,A),H=s[I];s[I]=s[p],s[p]=H}return s.length=l,s}var T4=xM(function(s){var l=[];return s.charCodeAt(0)===46&&l.push(""),s.replace(Te,function(p,w,A,I){l.push(A?I.replace(li,"$1"):w||p)}),l});function Mi(s){if(typeof s=="string"||Pr(s))return s;var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function Ra(s){if(s!=null){try{return md.call(s)}catch{}try{return s+""}catch{}}return""}function SM(s,l){return jr(fe,function(p){var w="_."+p[0];l&p[1]&&!cd(s,w)&&s.push(w)}),s.sort()}function A4(s){if(s instanceof ft)return s.clone();var l=new Ur(s.__wrapped__,s.__chain__);return l.__actions__=mr(s.__actions__),l.__index__=s.__index__,l.__values__=s.__values__,l}function TM(s,l,p){(p?or(s,l,p):l===n)?l=1:l=bn(nt(l),0);var w=s==null?0:s.length;if(!w||l<1)return[];for(var A=0,I=0,H=se(wd(w/l));A<w;)H[I++]=Wr(s,A,A+=l);return H}function AM(s){for(var l=-1,p=s==null?0:s.length,w=0,A=[];++l<p;){var I=s[l];I&&(A[w++]=I)}return A}function PM(){var s=arguments.length;if(!s)return[];for(var l=se(s-1),p=arguments[0],w=s;w--;)l[w-1]=arguments[w];return Bo(Xe(p)?mr(p):[p],kn(l,1))}var RM=st(function(s,l){return sn(s)?yl(s,kn(l,1,sn,!0)):[]}),_M=st(function(s,l){var p=Hr(l);return sn(p)&&(p=n),sn(s)?yl(s,kn(l,1,sn,!0),Ue(p,2)):[]}),OM=st(function(s,l){var p=Hr(l);return sn(p)&&(p=n),sn(s)?yl(s,kn(l,1,sn,!0),n,p):[]});function MM(s,l,p){var w=s==null?0:s.length;return w?(l=p||l===n?1:nt(l),Wr(s,l<0?0:l,w)):[]}function FM(s,l,p){var w=s==null?0:s.length;return w?(l=p||l===n?1:nt(l),l=w-l,Wr(s,0,l<0?0:l)):[]}function kM(s,l){return s&&s.length?Od(s,Ue(l,3),!0,!0):[]}function BM(s,l){return s&&s.length?Od(s,Ue(l,3),!0):[]}function IM(s,l,p,w){var A=s==null?0:s.length;return A?(p&&typeof p!="number"&&or(s,l,p)&&(p=0,w=A),PO(s,l,p,w)):[]}function P4(s,l,p){var w=s==null?0:s.length;if(!w)return-1;var A=p==null?0:nt(p);return A<0&&(A=bn(w+A,0)),dd(s,Ue(l,3),A)}function R4(s,l,p){var w=s==null?0:s.length;if(!w)return-1;var A=w-1;return p!==n&&(A=nt(p),A=p<0?bn(w+A,0):Hn(A,w-1)),dd(s,Ue(l,3),A,!0)}function _4(s){var l=s==null?0:s.length;return l?kn(s,1):[]}function VM(s){var l=s==null?0:s.length;return l?kn(s,R):[]}function LM(s,l){var p=s==null?0:s.length;return p?(l=l===n?1:nt(l),kn(s,l)):[]}function NM(s){for(var l=-1,p=s==null?0:s.length,w={};++l<p;){var A=s[l];w[A[0]]=A[1]}return w}function O4(s){return s&&s.length?s[0]:n}function jM(s,l,p){var w=s==null?0:s.length;if(!w)return-1;var A=p==null?0:nt(p);return A<0&&(A=bn(w+A,0)),As(s,l,A)}function KM(s){var l=s==null?0:s.length;return l?Wr(s,0,-1):[]}var UM=st(function(s){var l=Ht(s,lm);return l.length&&l[0]===s[0]?Qp(l):[]}),zM=st(function(s){var l=Hr(s),p=Ht(s,lm);return l===Hr(p)?l=n:p.pop(),p.length&&p[0]===s[0]?Qp(p,Ue(l,2)):[]}),WM=st(function(s){var l=Hr(s),p=Ht(s,lm);return l=typeof l=="function"?l:n,l&&p.pop(),p.length&&p[0]===s[0]?Qp(p,n,l):[]});function HM(s,l){return s==null?"":K_.call(s,l)}function Hr(s){var l=s==null?0:s.length;return l?s[l-1]:n}function GM(s,l,p){var w=s==null?0:s.length;if(!w)return-1;var A=w;return p!==n&&(A=nt(p),A=A<0?bn(w+A,0):Hn(A,w-1)),l===l?S_(s,l,A):dd(s,f1,A,!0)}function qM(s,l){return s&&s.length?U1(s,nt(l)):n}var YM=st(M4);function M4(s,l){return s&&s.length&&l&&l.length?rm(s,l):s}function ZM(s,l,p){return s&&s.length&&l&&l.length?rm(s,l,Ue(p,2)):s}function JM(s,l,p){return s&&s.length&&l&&l.length?rm(s,l,n,p):s}var XM=io(function(s,l){var p=s==null?0:s.length,w=Yp(s,l);return H1(s,Ht(l,function(A){return oo(A,p)?+A:A}).sort(n4)),w});function QM(s,l){var p=[];if(!(s&&s.length))return p;var w=-1,A=[],I=s.length;for(l=Ue(l,3);++w<I;){var H=s[w];l(H,w,s)&&(p.push(H),A.push(w))}return H1(s,A),p}function Dm(s){return s==null?s:H_.call(s)}function e9(s,l,p){var w=s==null?0:s.length;return w?(p&&typeof p!="number"&&or(s,l,p)?(l=0,p=w):(l=l==null?0:nt(l),p=p===n?w:nt(p)),Wr(s,l,p)):[]}function t9(s,l){return _d(s,l)}function n9(s,l,p){return am(s,l,Ue(p,2))}function r9(s,l){var p=s==null?0:s.length;if(p){var w=_d(s,l);if(w<p&&fi(s[w],l))return w}return-1}function i9(s,l){return _d(s,l,!0)}function o9(s,l,p){return am(s,l,Ue(p,2),!0)}function a9(s,l){var p=s==null?0:s.length;if(p){var w=_d(s,l,!0)-1;if(fi(s[w],l))return w}return-1}function s9(s){return s&&s.length?q1(s):[]}function u9(s,l){return s&&s.length?q1(s,Ue(l,2)):[]}function l9(s){var l=s==null?0:s.length;return l?Wr(s,1,l):[]}function c9(s,l,p){return s&&s.length?(l=p||l===n?1:nt(l),Wr(s,0,l<0?0:l)):[]}function d9(s,l,p){var w=s==null?0:s.length;return w?(l=p||l===n?1:nt(l),l=w-l,Wr(s,l<0?0:l,w)):[]}function f9(s,l){return s&&s.length?Od(s,Ue(l,3),!1,!0):[]}function h9(s,l){return s&&s.length?Od(s,Ue(l,3)):[]}var p9=st(function(s){return No(kn(s,1,sn,!0))}),m9=st(function(s){var l=Hr(s);return sn(l)&&(l=n),No(kn(s,1,sn,!0),Ue(l,2))}),g9=st(function(s){var l=Hr(s);return l=typeof l=="function"?l:n,No(kn(s,1,sn,!0),n,l)});function y9(s){return s&&s.length?No(s):[]}function v9(s,l){return s&&s.length?No(s,Ue(l,2)):[]}function b9(s,l){return l=typeof l=="function"?l:n,s&&s.length?No(s,n,l):[]}function Em(s){if(!(s&&s.length))return[];var l=0;return s=ko(s,function(p){if(sn(p))return l=bn(p.length,l),!0}),jp(l,function(p){return Ht(s,Vp(p))})}function F4(s,l){if(!(s&&s.length))return[];var p=Em(s);return l==null?p:Ht(p,function(w){return Sr(l,n,w)})}var $9=st(function(s,l){return sn(s)?yl(s,l):[]}),x9=st(function(s){return um(ko(s,sn))}),w9=st(function(s){var l=Hr(s);return sn(l)&&(l=n),um(ko(s,sn),Ue(l,2))}),D9=st(function(s){var l=Hr(s);return l=typeof l=="function"?l:n,um(ko(s,sn),n,l)}),E9=st(Em);function C9(s,l){return X1(s||[],l||[],gl)}function S9(s,l){return X1(s||[],l||[],$l)}var T9=st(function(s){var l=s.length,p=l>1?s[l-1]:n;return p=typeof p=="function"?(s.pop(),p):n,F4(s,p)});function k4(s){var l=_(s);return l.__chain__=!0,l}function A9(s,l){return l(s),s}function jd(s,l){return l(s)}var P9=io(function(s){var l=s.length,p=l?s[0]:0,w=this.__wrapped__,A=function(I){return Yp(I,s)};return l>1||this.__actions__.length||!(w instanceof ft)||!oo(p)?this.thru(A):(w=w.slice(p,+p+(l?1:0)),w.__actions__.push({func:jd,args:[A],thisArg:n}),new Ur(w,this.__chain__).thru(function(I){return l&&!I.length&&I.push(n),I}))});function R9(){return k4(this)}function _9(){return new Ur(this.value(),this.__chain__)}function O9(){this.__values__===n&&(this.__values__=Y4(this.value()));var s=this.__index__>=this.__values__.length,l=s?n:this.__values__[this.__index__++];return{done:s,value:l}}function M9(){return this}function F9(s){for(var l,p=this;p instanceof Sd;){var w=A4(p);w.__index__=0,w.__values__=n,l?A.__wrapped__=w:l=w;var A=w;p=p.__wrapped__}return A.__wrapped__=s,l}function k9(){var s=this.__wrapped__;if(s instanceof ft){var l=s;return this.__actions__.length&&(l=new ft(this)),l=l.reverse(),l.__actions__.push({func:jd,args:[Dm],thisArg:n}),new Ur(l,this.__chain__)}return this.thru(Dm)}function B9(){return J1(this.__wrapped__,this.__actions__)}var I9=Md(function(s,l,p){At.call(s,p)?++s[p]:no(s,p,1)});function V9(s,l,p){var w=Xe(s)?c1:AO;return p&&or(s,l,p)&&(l=n),w(s,Ue(l,3))}function L9(s,l){var p=Xe(s)?ko:F1;return p(s,Ue(l,3))}var N9=u4(P4),j9=u4(R4);function K9(s,l){return kn(Kd(s,l),1)}function U9(s,l){return kn(Kd(s,l),R)}function z9(s,l,p){return p=p===n?1:nt(p),kn(Kd(s,l),p)}function B4(s,l){var p=Xe(s)?jr:Lo;return p(s,Ue(l,3))}function I4(s,l){var p=Xe(s)?l_:M1;return p(s,Ue(l,3))}var W9=Md(function(s,l,p){At.call(s,p)?s[p].push(l):no(s,p,[l])});function H9(s,l,p,w){s=gr(s)?s:Ns(s),p=p&&!w?nt(p):0;var A=s.length;return p<0&&(p=bn(A+p,0)),Gd(s)?p<=A&&s.indexOf(l,p)>-1:!!A&&As(s,l,p)>-1}var G9=st(function(s,l,p){var w=-1,A=typeof l=="function",I=gr(s)?se(s.length):[];return Lo(s,function(H){I[++w]=A?Sr(l,H,p):vl(H,l,p)}),I}),q9=Md(function(s,l,p){no(s,p,l)});function Kd(s,l){var p=Xe(s)?Ht:N1;return p(s,Ue(l,3))}function Y9(s,l,p,w){return s==null?[]:(Xe(l)||(l=l==null?[]:[l]),p=w?n:p,Xe(p)||(p=p==null?[]:[p]),z1(s,l,p))}var Z9=Md(function(s,l,p){s[p?0:1].push(l)},function(){return[[],[]]});function J9(s,l,p){var w=Xe(s)?Bp:p1,A=arguments.length<3;return w(s,Ue(l,4),p,A,Lo)}function X9(s,l,p){var w=Xe(s)?c_:p1,A=arguments.length<3;return w(s,Ue(l,4),p,A,M1)}function Q9(s,l){var p=Xe(s)?ko:F1;return p(s,Wd(Ue(l,3)))}function eF(s){var l=Xe(s)?P1:HO;return l(s)}function tF(s,l,p){(p?or(s,l,p):l===n)?l=1:l=nt(l);var w=Xe(s)?DO:GO;return w(s,l)}function nF(s){var l=Xe(s)?EO:YO;return l(s)}function rF(s){if(s==null)return 0;if(gr(s))return Gd(s)?Rs(s):s.length;var l=Gn(s);return l==et||l==pe?s.size:tm(s).length}function iF(s,l,p){var w=Xe(s)?Ip:ZO;return p&&or(s,l,p)&&(l=n),w(s,Ue(l,3))}var oF=st(function(s,l){if(s==null)return[];var p=l.length;return p>1&&or(s,l[0],l[1])?l=[]:p>2&&or(l[0],l[1],l[2])&&(l=[l[0]]),z1(s,kn(l,1),[])}),Ud=L_||function(){return pn.Date.now()};function aF(s,l){if(typeof l!="function")throw new Kr(a);return s=nt(s),function(){if(--s<1)return l.apply(this,arguments)}}function V4(s,l,p){return l=p?n:l,l=s&&l==null?s.length:l,ro(s,k,n,n,n,n,l)}function L4(s,l){var p;if(typeof l!="function")throw new Kr(a);return s=nt(s),function(){return--s>0&&(p=l.apply(this,arguments)),s<=1&&(l=n),p}}var Cm=st(function(s,l,p){var w=C;if(p.length){var A=Io(p,Vs(Cm));w|=E}return ro(s,w,l,p,A)}),N4=st(function(s,l,p){var w=C|x;if(p.length){var A=Io(p,Vs(N4));w|=E}return ro(l,w,s,p,A)});function j4(s,l,p){l=p?n:l;var w=ro(s,D,n,n,n,n,n,l);return w.placeholder=j4.placeholder,w}function K4(s,l,p){l=p?n:l;var w=ro(s,P,n,n,n,n,n,l);return w.placeholder=K4.placeholder,w}function U4(s,l,p){var w,A,I,H,J,ee,me=0,ge=!1,we=!1,Pe=!0;if(typeof s!="function")throw new Kr(a);l=Gr(l)||0,Zt(p)&&(ge=!!p.leading,we="maxWait"in p,I=we?bn(Gr(p.maxWait)||0,l):I,Pe="trailing"in p?!!p.trailing:Pe);function Ve(un){var hi=w,uo=A;return w=A=n,me=un,H=s.apply(uo,hi),H}function We(un){return me=un,J=Dl(lt,l),ge?Ve(un):H}function ot(un){var hi=un-ee,uo=un-me,u3=l-hi;return we?Hn(u3,I-uo):u3}function He(un){var hi=un-ee,uo=un-me;return ee===n||hi>=l||hi<0||we&&uo>=I}function lt(){var un=Ud();if(He(un))return ht(un);J=Dl(lt,ot(un))}function ht(un){return J=n,Pe&&w?Ve(un):(w=A=n,H)}function Rr(){J!==n&&Q1(J),me=0,w=ee=A=J=n}function ar(){return J===n?H:ht(Ud())}function _r(){var un=Ud(),hi=He(un);if(w=arguments,A=this,ee=un,hi){if(J===n)return We(ee);if(we)return Q1(J),J=Dl(lt,l),Ve(ee)}return J===n&&(J=Dl(lt,l)),H}return _r.cancel=Rr,_r.flush=ar,_r}var sF=st(function(s,l){return O1(s,1,l)}),uF=st(function(s,l,p){return O1(s,Gr(l)||0,p)});function lF(s){return ro(s,U)}function zd(s,l){if(typeof s!="function"||l!=null&&typeof l!="function")throw new Kr(a);var p=function(){var w=arguments,A=l?l.apply(this,w):w[0],I=p.cache;if(I.has(A))return I.get(A);var H=s.apply(this,w);return p.cache=I.set(A,H)||I,H};return p.cache=new(zd.Cache||to),p}zd.Cache=to;function Wd(s){if(typeof s!="function")throw new Kr(a);return function(){var l=arguments;switch(l.length){case 0:return!s.call(this);case 1:return!s.call(this,l[0]);case 2:return!s.call(this,l[0],l[1]);case 3:return!s.call(this,l[0],l[1],l[2])}return!s.apply(this,l)}}function cF(s){return L4(2,s)}var dF=JO(function(s,l){l=l.length==1&&Xe(l[0])?Ht(l[0],Tr(Ue())):Ht(kn(l,1),Tr(Ue()));var p=l.length;return st(function(w){for(var A=-1,I=Hn(w.length,p);++A<I;)w[A]=l[A].call(this,w[A]);return Sr(s,this,w)})}),Sm=st(function(s,l){var p=Io(l,Vs(Sm));return ro(s,E,n,l,p)}),z4=st(function(s,l){var p=Io(l,Vs(z4));return ro(s,T,n,l,p)}),fF=io(function(s,l){return ro(s,S,n,n,n,l)});function hF(s,l){if(typeof s!="function")throw new Kr(a);return l=l===n?l:nt(l),st(s,l)}function pF(s,l){if(typeof s!="function")throw new Kr(a);return l=l==null?0:bn(nt(l),0),st(function(p){var w=p[l],A=Ko(p,0,l);return w&&Bo(A,w),Sr(s,this,A)})}function mF(s,l,p){var w=!0,A=!0;if(typeof s!="function")throw new Kr(a);return Zt(p)&&(w="leading"in p?!!p.leading:w,A="trailing"in p?!!p.trailing:A),U4(s,l,{leading:w,maxWait:l,trailing:A})}function gF(s){return V4(s,1)}function yF(s,l){return Sm(cm(l),s)}function vF(){if(!arguments.length)return[];var s=arguments[0];return Xe(s)?s:[s]}function bF(s){return zr(s,g)}function $F(s,l){return l=typeof l=="function"?l:n,zr(s,g,l)}function xF(s){return zr(s,h|g)}function wF(s,l){return l=typeof l=="function"?l:n,zr(s,h|g,l)}function DF(s,l){return l==null||_1(s,l,Sn(l))}function fi(s,l){return s===l||s!==s&&l!==l}var EF=Id(Xp),CF=Id(function(s,l){return s>=l}),_a=I1(function(){return arguments}())?I1:function(s){return on(s)&&At.call(s,"callee")&&!D1.call(s,"callee")},Xe=se.isArray,SF=Da?Tr(Da):FO;function gr(s){return s!=null&&Hd(s.length)&&!ao(s)}function sn(s){return on(s)&&gr(s)}function TF(s){return s===!0||s===!1||on(s)&&ir(s)==ne}var Uo=j_||Im,AF=o1?Tr(o1):kO;function PF(s){return on(s)&&s.nodeType===1&&!El(s)}function RF(s){if(s==null)return!0;if(gr(s)&&(Xe(s)||typeof s=="string"||typeof s.splice=="function"||Uo(s)||Ls(s)||_a(s)))return!s.length;var l=Gn(s);if(l==et||l==pe)return!s.size;if(wl(s))return!tm(s).length;for(var p in s)if(At.call(s,p))return!1;return!0}function _F(s,l){return bl(s,l)}function OF(s,l,p){p=typeof p=="function"?p:n;var w=p?p(s,l):n;return w===n?bl(s,l,n,p):!!w}function Tm(s){if(!on(s))return!1;var l=ir(s);return l==he||l==xe||typeof s.message=="string"&&typeof s.name=="string"&&!El(s)}function MF(s){return typeof s=="number"&&C1(s)}function ao(s){if(!Zt(s))return!1;var l=ir(s);return l==le||l==Fe||l==$e||l==Z}function W4(s){return typeof s=="number"&&s==nt(s)}function Hd(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=M}function Zt(s){var l=typeof s;return s!=null&&(l=="object"||l=="function")}function on(s){return s!=null&&typeof s=="object"}var H4=a1?Tr(a1):IO;function FF(s,l){return s===l||em(s,l,ym(l))}function kF(s,l,p){return p=typeof p=="function"?p:n,em(s,l,ym(l),p)}function BF(s){return G4(s)&&s!=+s}function IF(s){if($M(s))throw new Je(o);return V1(s)}function VF(s){return s===null}function LF(s){return s==null}function G4(s){return typeof s=="number"||on(s)&&ir(s)==dt}function El(s){if(!on(s)||ir(s)!=yt)return!1;var l=bd(s);if(l===null)return!0;var p=At.call(l,"constructor")&&l.constructor;return typeof p=="function"&&p instanceof p&&md.call(p)==k_}var Am=s1?Tr(s1):VO;function NF(s){return W4(s)&&s>=-9007199254740991&&s<=M}var q4=u1?Tr(u1):LO;function Gd(s){return typeof s=="string"||!Xe(s)&&on(s)&&ir(s)==Ce}function Pr(s){return typeof s=="symbol"||on(s)&&ir(s)==De}var Ls=l1?Tr(l1):NO;function jF(s){return s===n}function KF(s){return on(s)&&Gn(s)==Le}function UF(s){return on(s)&&ir(s)==mt}var zF=Id(nm),WF=Id(function(s,l){return s<=l});function Y4(s){if(!s)return[];if(gr(s))return Gd(s)?ci(s):mr(s);if(dl&&s[dl])return D_(s[dl]());var l=Gn(s),p=l==et?Up:l==pe?fd:Ns;return p(s)}function so(s){if(!s)return s===0?s:0;if(s=Gr(s),s===R||s===-1/0){var l=s<0?-1:1;return l*Y}return s===s?s:0}function nt(s){var l=so(s),p=l%1;return l===l?p?l-p:l:0}function Z4(s){return s?Ta(nt(s),0,z):0}function Gr(s){if(typeof s=="number")return s;if(Pr(s))return L;if(Zt(s)){var l=typeof s.valueOf=="function"?s.valueOf():s;s=Zt(l)?l+"":l}if(typeof s!="string")return s===0?s:+s;s=m1(s);var p=Ro.test(s);return p||gt.test(s)?Un(s.slice(2),p?2:8):Po.test(s)?L:+s}function J4(s){return Oi(s,yr(s))}function HF(s){return s?Ta(nt(s),-9007199254740991,M):s===0?s:0}function Dt(s){return s==null?"":Ar(s)}var GF=Bs(function(s,l){if(wl(l)||gr(l)){Oi(l,Sn(l),s);return}for(var p in l)At.call(l,p)&&gl(s,p,l[p])}),X4=Bs(function(s,l){Oi(l,yr(l),s)}),qd=Bs(function(s,l,p,w){Oi(l,yr(l),s,w)}),qF=Bs(function(s,l,p,w){Oi(l,Sn(l),s,w)}),YF=io(Yp);function ZF(s,l){var p=ks(s);return l==null?p:R1(p,l)}var JF=st(function(s,l){s=It(s);var p=-1,w=l.length,A=w>2?l[2]:n;for(A&&or(l[0],l[1],A)&&(w=1);++p<w;)for(var I=l[p],H=yr(I),J=-1,ee=H.length;++J<ee;){var me=H[J],ge=s[me];(ge===n||fi(ge,Os[me])&&!At.call(s,me))&&(s[me]=I[me])}return s}),XF=st(function(s){return s.push(n,m4),Sr(Q4,n,s)});function QF(s,l){return d1(s,Ue(l,3),_i)}function e8(s,l){return d1(s,Ue(l,3),Jp)}function t8(s,l){return s==null?s:Zp(s,Ue(l,3),yr)}function n8(s,l){return s==null?s:k1(s,Ue(l,3),yr)}function r8(s,l){return s&&_i(s,Ue(l,3))}function i8(s,l){return s&&Jp(s,Ue(l,3))}function o8(s){return s==null?[]:Pd(s,Sn(s))}function a8(s){return s==null?[]:Pd(s,yr(s))}function Pm(s,l,p){var w=s==null?n:Aa(s,l);return w===n?p:w}function s8(s,l){return s!=null&&v4(s,l,RO)}function Rm(s,l){return s!=null&&v4(s,l,_O)}var u8=c4(function(s,l,p){l!=null&&typeof l.toString!="function"&&(l=gd.call(l)),s[l]=p},Om(vr)),l8=c4(function(s,l,p){l!=null&&typeof l.toString!="function"&&(l=gd.call(l)),At.call(s,l)?s[l].push(p):s[l]=[p]},Ue),c8=st(vl);function Sn(s){return gr(s)?A1(s):tm(s)}function yr(s){return gr(s)?A1(s,!0):jO(s)}function d8(s,l){var p={};return l=Ue(l,3),_i(s,function(w,A,I){no(p,l(w,A,I),w)}),p}function f8(s,l){var p={};return l=Ue(l,3),_i(s,function(w,A,I){no(p,A,l(w,A,I))}),p}var h8=Bs(function(s,l,p){Rd(s,l,p)}),Q4=Bs(function(s,l,p,w){Rd(s,l,p,w)}),p8=io(function(s,l){var p={};if(s==null)return p;var w=!1;l=Ht(l,function(I){return I=jo(I,s),w||(w=I.length>1),I}),Oi(s,mm(s),p),w&&(p=zr(p,h|m|g,uM));for(var A=l.length;A--;)sm(p,l[A]);return p});function m8(s,l){return e3(s,Wd(Ue(l)))}var g8=io(function(s,l){return s==null?{}:UO(s,l)});function e3(s,l){if(s==null)return{};var p=Ht(mm(s),function(w){return[w]});return l=Ue(l),W1(s,p,function(w,A){return l(w,A[0])})}function y8(s,l,p){l=jo(l,s);var w=-1,A=l.length;for(A||(A=1,s=n);++w<A;){var I=s==null?n:s[Mi(l[w])];I===n&&(w=A,I=p),s=ao(I)?I.call(s):I}return s}function v8(s,l,p){return s==null?s:$l(s,l,p)}function b8(s,l,p,w){return w=typeof w=="function"?w:n,s==null?s:$l(s,l,p,w)}var t3=h4(Sn),n3=h4(yr);function $8(s,l,p){var w=Xe(s),A=w||Uo(s)||Ls(s);if(l=Ue(l,4),p==null){var I=s&&s.constructor;A?p=w?new I:[]:Zt(s)?p=ao(I)?ks(bd(s)):{}:p={}}return(A?jr:_i)(s,function(H,J,ee){return l(p,H,J,ee)}),p}function x8(s,l){return s==null?!0:sm(s,l)}function w8(s,l,p){return s==null?s:Z1(s,l,cm(p))}function D8(s,l,p,w){return w=typeof w=="function"?w:n,s==null?s:Z1(s,l,cm(p),w)}function Ns(s){return s==null?[]:Kp(s,Sn(s))}function E8(s){return s==null?[]:Kp(s,yr(s))}function C8(s,l,p){return p===n&&(p=l,l=n),p!==n&&(p=Gr(p),p=p===p?p:0),l!==n&&(l=Gr(l),l=l===l?l:0),Ta(Gr(s),l,p)}function S8(s,l,p){return l=so(l),p===n?(p=l,l=0):p=so(p),s=Gr(s),OO(s,l,p)}function T8(s,l,p){if(p&&typeof p!="boolean"&&or(s,l,p)&&(l=p=n),p===n&&(typeof l=="boolean"?(p=l,l=n):typeof s=="boolean"&&(p=s,s=n)),s===n&&l===n?(s=0,l=1):(s=so(s),l===n?(l=s,s=0):l=so(l)),s>l){var w=s;s=l,l=w}if(p||s%1||l%1){var A=S1();return Hn(s+A*(l-s+yn("1e-"+((A+"").length-1))),l)}return im(s,l)}var A8=Is(function(s,l,p){return l=l.toLowerCase(),s+(p?r3(l):l)});function r3(s){return _m(Dt(s).toLowerCase())}function i3(s){return s=Dt(s),s&&s.replace(pr,v_).replace(Op,"")}function P8(s,l,p){s=Dt(s),l=Ar(l);var w=s.length;p=p===n?w:Ta(nt(p),0,w);var A=p;return p-=l.length,p>=0&&s.slice(p,A)==l}function R8(s){return s=Dt(s),s&&Lt.test(s)?s.replace(En,b_):s}function _8(s){return s=Dt(s),s&&Ye.test(s)?s.replace(je,"\\$&"):s}var O8=Is(function(s,l,p){return s+(p?"-":"")+l.toLowerCase()}),M8=Is(function(s,l,p){return s+(p?" ":"")+l.toLowerCase()}),F8=s4("toLowerCase");function k8(s,l,p){s=Dt(s),l=nt(l);var w=l?Rs(s):0;if(!l||w>=l)return s;var A=(l-w)/2;return Bd(Dd(A),p)+s+Bd(wd(A),p)}function B8(s,l,p){s=Dt(s),l=nt(l);var w=l?Rs(s):0;return l&&w<l?s+Bd(l-w,p):s}function I8(s,l,p){s=Dt(s),l=nt(l);var w=l?Rs(s):0;return l&&w<l?Bd(l-w,p)+s:s}function V8(s,l,p){return p||l==null?l=0:l&&(l=+l),W_(Dt(s).replace(Ft,""),l||0)}function L8(s,l,p){return(p?or(s,l,p):l===n)?l=1:l=nt(l),om(Dt(s),l)}function N8(){var s=arguments,l=Dt(s[0]);return s.length<3?l:l.replace(s[1],s[2])}var j8=Is(function(s,l,p){return s+(p?"_":"")+l.toLowerCase()});function K8(s,l,p){return p&&typeof p!="number"&&or(s,l,p)&&(l=p=n),p=p===n?z:p>>>0,p?(s=Dt(s),s&&(typeof l=="string"||l!=null&&!Am(l))&&(l=Ar(l),!l&&Ps(s))?Ko(ci(s),0,p):s.split(l,p)):[]}var U8=Is(function(s,l,p){return s+(p?" ":"")+_m(l)});function z8(s,l,p){return s=Dt(s),p=p==null?0:Ta(nt(p),0,s.length),l=Ar(l),s.slice(p,p+l.length)==l}function W8(s,l,p){var w=_.templateSettings;p&&or(s,l,p)&&(l=n),s=Dt(s),l=qd({},l,w,p4);var A=qd({},l.imports,w.imports,p4),I=Sn(A),H=Kp(A,I),J,ee,me=0,ge=l.interpolate||Kn,we="__p += '",Pe=zp((l.escape||Kn).source+"|"+ge.source+"|"+(ge===tt?ya:Kn).source+"|"+(l.evaluate||Kn).source+"|$","g"),Ve="//# sourceURL="+(At.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ul+"]")+`
|
|
68
|
+
`;s.replace(Pe,function(He,lt,ht,Rr,ar,_r){return ht||(ht=Rr),we+=s.slice(me,_r).replace(Oo,$_),lt&&(J=!0,we+=`' +
|
|
69
|
+
__e(`+lt+`) +
|
|
70
|
+
'`),ar&&(ee=!0,we+=`';
|
|
71
|
+
`+ar+`;
|
|
72
|
+
__p += '`),ht&&(we+=`' +
|
|
73
|
+
((__t = (`+ht+`)) == null ? '' : __t) +
|
|
74
|
+
'`),me=_r+He.length,He}),we+=`';
|
|
75
|
+
`;var We=At.call(l,"variable")&&l.variable;if(!We)we=`with (obj) {
|
|
76
|
+
`+we+`
|
|
77
|
+
}
|
|
78
|
+
`;else if(wt.test(We))throw new Je(u);we=(ee?we.replace(er,""):we).replace(On,"$1").replace(tr,"$1;"),we="function("+(We||"obj")+`) {
|
|
79
|
+
`+(We?"":`obj || (obj = {});
|
|
80
|
+
`)+"var __t, __p = ''"+(J?", __e = _.escape":"")+(ee?`, __j = Array.prototype.join;
|
|
81
|
+
function print() { __p += __j.call(arguments, '') }
|
|
82
|
+
`:`;
|
|
83
|
+
`)+we+`return __p
|
|
84
|
+
}`;var ot=a3(function(){return bt(I,Ve+"return "+we).apply(n,H)});if(ot.source=we,Tm(ot))throw ot;return ot}function H8(s){return Dt(s).toLowerCase()}function G8(s){return Dt(s).toUpperCase()}function q8(s,l,p){if(s=Dt(s),s&&(p||l===n))return m1(s);if(!s||!(l=Ar(l)))return s;var w=ci(s),A=ci(l),I=g1(w,A),H=y1(w,A)+1;return Ko(w,I,H).join("")}function Y8(s,l,p){if(s=Dt(s),s&&(p||l===n))return s.slice(0,b1(s)+1);if(!s||!(l=Ar(l)))return s;var w=ci(s),A=y1(w,ci(l))+1;return Ko(w,0,A).join("")}function Z8(s,l,p){if(s=Dt(s),s&&(p||l===n))return s.replace(Ft,"");if(!s||!(l=Ar(l)))return s;var w=ci(s),A=g1(w,ci(l));return Ko(w,A).join("")}function J8(s,l){var p=O,w=F;if(Zt(l)){var A="separator"in l?l.separator:A;p="length"in l?nt(l.length):p,w="omission"in l?Ar(l.omission):w}s=Dt(s);var I=s.length;if(Ps(s)){var H=ci(s);I=H.length}if(p>=I)return s;var J=p-Rs(w);if(J<1)return w;var ee=H?Ko(H,0,J).join(""):s.slice(0,J);if(A===n)return ee+w;if(H&&(J+=ee.length-J),Am(A)){if(s.slice(J).search(A)){var me,ge=ee;for(A.global||(A=zp(A.source,Dt(hr.exec(A))+"g")),A.lastIndex=0;me=A.exec(ge);)var we=me.index;ee=ee.slice(0,we===n?J:we)}}else if(s.indexOf(Ar(A),J)!=J){var Pe=ee.lastIndexOf(A);Pe>-1&&(ee=ee.slice(0,Pe))}return ee+w}function X8(s){return s=Dt(s),s&&Ir.test(s)?s.replace(Nn,T_):s}var Q8=Is(function(s,l,p){return s+(p?" ":"")+l.toUpperCase()}),_m=s4("toUpperCase");function o3(s,l,p){return s=Dt(s),l=p?n:l,l===n?w_(s)?R_(s):h_(s):s.match(l)||[]}var a3=st(function(s,l){try{return Sr(s,n,l)}catch(p){return Tm(p)?p:new Je(p)}}),ek=io(function(s,l){return jr(l,function(p){p=Mi(p),no(s,p,Cm(s[p],s))}),s});function tk(s){var l=s==null?0:s.length,p=Ue();return s=l?Ht(s,function(w){if(typeof w[1]!="function")throw new Kr(a);return[p(w[0]),w[1]]}):[],st(function(w){for(var A=-1;++A<l;){var I=s[A];if(Sr(I[0],this,w))return Sr(I[1],this,w)}})}function nk(s){return TO(zr(s,h))}function Om(s){return function(){return s}}function rk(s,l){return s==null||s!==s?l:s}var ik=l4(),ok=l4(!0);function vr(s){return s}function Mm(s){return L1(typeof s=="function"?s:zr(s,h))}function ak(s){return j1(zr(s,h))}function sk(s,l){return K1(s,zr(l,h))}var uk=st(function(s,l){return function(p){return vl(p,s,l)}}),lk=st(function(s,l){return function(p){return vl(s,p,l)}});function Fm(s,l,p){var w=Sn(l),A=Pd(l,w);p==null&&!(Zt(l)&&(A.length||!w.length))&&(p=l,l=s,s=this,A=Pd(l,Sn(l)));var I=!(Zt(p)&&"chain"in p)||!!p.chain,H=ao(s);return jr(A,function(J){var ee=l[J];s[J]=ee,H&&(s.prototype[J]=function(){var me=this.__chain__;if(I||me){var ge=s(this.__wrapped__),we=ge.__actions__=mr(this.__actions__);return we.push({func:ee,args:arguments,thisArg:s}),ge.__chain__=me,ge}return ee.apply(s,Bo([this.value()],arguments))})}),s}function ck(){return pn._===this&&(pn._=B_),this}function km(){}function dk(s){return s=nt(s),st(function(l){return U1(l,s)})}var fk=fm(Ht),hk=fm(c1),pk=fm(Ip);function s3(s){return bm(s)?Vp(Mi(s)):zO(s)}function mk(s){return function(l){return s==null?n:Aa(s,l)}}var gk=d4(),yk=d4(!0);function Bm(){return[]}function Im(){return!1}function vk(){return{}}function bk(){return""}function $k(){return!0}function xk(s,l){if(s=nt(s),s<1||s>M)return[];var p=z,w=Hn(s,z);l=Ue(l),s-=z;for(var A=jp(w,l);++p<s;)l(p);return A}function wk(s){return Xe(s)?Ht(s,Mi):Pr(s)?[s]:mr(T4(Dt(s)))}function Dk(s){var l=++F_;return Dt(s)+l}var Ek=kd(function(s,l){return s+l},0),Ck=hm("ceil"),Sk=kd(function(s,l){return s/l},1),Tk=hm("floor");function Ak(s){return s&&s.length?Ad(s,vr,Xp):n}function Pk(s,l){return s&&s.length?Ad(s,Ue(l,2),Xp):n}function Rk(s){return h1(s,vr)}function _k(s,l){return h1(s,Ue(l,2))}function Ok(s){return s&&s.length?Ad(s,vr,nm):n}function Mk(s,l){return s&&s.length?Ad(s,Ue(l,2),nm):n}var Fk=kd(function(s,l){return s*l},1),kk=hm("round"),Bk=kd(function(s,l){return s-l},0);function Ik(s){return s&&s.length?Np(s,vr):0}function Vk(s,l){return s&&s.length?Np(s,Ue(l,2)):0}return _.after=aF,_.ary=V4,_.assign=GF,_.assignIn=X4,_.assignInWith=qd,_.assignWith=qF,_.at=YF,_.before=L4,_.bind=Cm,_.bindAll=ek,_.bindKey=N4,_.castArray=vF,_.chain=k4,_.chunk=TM,_.compact=AM,_.concat=PM,_.cond=tk,_.conforms=nk,_.constant=Om,_.countBy=I9,_.create=ZF,_.curry=j4,_.curryRight=K4,_.debounce=U4,_.defaults=JF,_.defaultsDeep=XF,_.defer=sF,_.delay=uF,_.difference=RM,_.differenceBy=_M,_.differenceWith=OM,_.drop=MM,_.dropRight=FM,_.dropRightWhile=kM,_.dropWhile=BM,_.fill=IM,_.filter=L9,_.flatMap=K9,_.flatMapDeep=U9,_.flatMapDepth=z9,_.flatten=_4,_.flattenDeep=VM,_.flattenDepth=LM,_.flip=lF,_.flow=ik,_.flowRight=ok,_.fromPairs=NM,_.functions=o8,_.functionsIn=a8,_.groupBy=W9,_.initial=KM,_.intersection=UM,_.intersectionBy=zM,_.intersectionWith=WM,_.invert=u8,_.invertBy=l8,_.invokeMap=G9,_.iteratee=Mm,_.keyBy=q9,_.keys=Sn,_.keysIn=yr,_.map=Kd,_.mapKeys=d8,_.mapValues=f8,_.matches=ak,_.matchesProperty=sk,_.memoize=zd,_.merge=h8,_.mergeWith=Q4,_.method=uk,_.methodOf=lk,_.mixin=Fm,_.negate=Wd,_.nthArg=dk,_.omit=p8,_.omitBy=m8,_.once=cF,_.orderBy=Y9,_.over=fk,_.overArgs=dF,_.overEvery=hk,_.overSome=pk,_.partial=Sm,_.partialRight=z4,_.partition=Z9,_.pick=g8,_.pickBy=e3,_.property=s3,_.propertyOf=mk,_.pull=YM,_.pullAll=M4,_.pullAllBy=ZM,_.pullAllWith=JM,_.pullAt=XM,_.range=gk,_.rangeRight=yk,_.rearg=fF,_.reject=Q9,_.remove=QM,_.rest=hF,_.reverse=Dm,_.sampleSize=tF,_.set=v8,_.setWith=b8,_.shuffle=nF,_.slice=e9,_.sortBy=oF,_.sortedUniq=s9,_.sortedUniqBy=u9,_.split=K8,_.spread=pF,_.tail=l9,_.take=c9,_.takeRight=d9,_.takeRightWhile=f9,_.takeWhile=h9,_.tap=A9,_.throttle=mF,_.thru=jd,_.toArray=Y4,_.toPairs=t3,_.toPairsIn=n3,_.toPath=wk,_.toPlainObject=J4,_.transform=$8,_.unary=gF,_.union=p9,_.unionBy=m9,_.unionWith=g9,_.uniq=y9,_.uniqBy=v9,_.uniqWith=b9,_.unset=x8,_.unzip=Em,_.unzipWith=F4,_.update=w8,_.updateWith=D8,_.values=Ns,_.valuesIn=E8,_.without=$9,_.words=o3,_.wrap=yF,_.xor=x9,_.xorBy=w9,_.xorWith=D9,_.zip=E9,_.zipObject=C9,_.zipObjectDeep=S9,_.zipWith=T9,_.entries=t3,_.entriesIn=n3,_.extend=X4,_.extendWith=qd,Fm(_,_),_.add=Ek,_.attempt=a3,_.camelCase=A8,_.capitalize=r3,_.ceil=Ck,_.clamp=C8,_.clone=bF,_.cloneDeep=xF,_.cloneDeepWith=wF,_.cloneWith=$F,_.conformsTo=DF,_.deburr=i3,_.defaultTo=rk,_.divide=Sk,_.endsWith=P8,_.eq=fi,_.escape=R8,_.escapeRegExp=_8,_.every=V9,_.find=N9,_.findIndex=P4,_.findKey=QF,_.findLast=j9,_.findLastIndex=R4,_.findLastKey=e8,_.floor=Tk,_.forEach=B4,_.forEachRight=I4,_.forIn=t8,_.forInRight=n8,_.forOwn=r8,_.forOwnRight=i8,_.get=Pm,_.gt=EF,_.gte=CF,_.has=s8,_.hasIn=Rm,_.head=O4,_.identity=vr,_.includes=H9,_.indexOf=jM,_.inRange=S8,_.invoke=c8,_.isArguments=_a,_.isArray=Xe,_.isArrayBuffer=SF,_.isArrayLike=gr,_.isArrayLikeObject=sn,_.isBoolean=TF,_.isBuffer=Uo,_.isDate=AF,_.isElement=PF,_.isEmpty=RF,_.isEqual=_F,_.isEqualWith=OF,_.isError=Tm,_.isFinite=MF,_.isFunction=ao,_.isInteger=W4,_.isLength=Hd,_.isMap=H4,_.isMatch=FF,_.isMatchWith=kF,_.isNaN=BF,_.isNative=IF,_.isNil=LF,_.isNull=VF,_.isNumber=G4,_.isObject=Zt,_.isObjectLike=on,_.isPlainObject=El,_.isRegExp=Am,_.isSafeInteger=NF,_.isSet=q4,_.isString=Gd,_.isSymbol=Pr,_.isTypedArray=Ls,_.isUndefined=jF,_.isWeakMap=KF,_.isWeakSet=UF,_.join=HM,_.kebabCase=O8,_.last=Hr,_.lastIndexOf=GM,_.lowerCase=M8,_.lowerFirst=F8,_.lt=zF,_.lte=WF,_.max=Ak,_.maxBy=Pk,_.mean=Rk,_.meanBy=_k,_.min=Ok,_.minBy=Mk,_.stubArray=Bm,_.stubFalse=Im,_.stubObject=vk,_.stubString=bk,_.stubTrue=$k,_.multiply=Fk,_.nth=qM,_.noConflict=ck,_.noop=km,_.now=Ud,_.pad=k8,_.padEnd=B8,_.padStart=I8,_.parseInt=V8,_.random=T8,_.reduce=J9,_.reduceRight=X9,_.repeat=L8,_.replace=N8,_.result=y8,_.round=kk,_.runInContext=Q,_.sample=eF,_.size=rF,_.snakeCase=j8,_.some=iF,_.sortedIndex=t9,_.sortedIndexBy=n9,_.sortedIndexOf=r9,_.sortedLastIndex=i9,_.sortedLastIndexBy=o9,_.sortedLastIndexOf=a9,_.startCase=U8,_.startsWith=z8,_.subtract=Bk,_.sum=Ik,_.sumBy=Vk,_.template=W8,_.times=xk,_.toFinite=so,_.toInteger=nt,_.toLength=Z4,_.toLower=H8,_.toNumber=Gr,_.toSafeInteger=HF,_.toString=Dt,_.toUpper=G8,_.trim=q8,_.trimEnd=Y8,_.trimStart=Z8,_.truncate=J8,_.unescape=X8,_.uniqueId=Dk,_.upperCase=Q8,_.upperFirst=_m,_.each=B4,_.eachRight=I4,_.first=O4,Fm(_,function(){var s={};return _i(_,function(l,p){At.call(_.prototype,p)||(s[p]=l)}),s}(),{chain:!1}),_.VERSION=r,jr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){_[s].placeholder=_}),jr(["drop","take"],function(s,l){ft.prototype[s]=function(p){p=p===n?1:bn(nt(p),0);var w=this.__filtered__&&!l?new ft(this):this.clone();return w.__filtered__?w.__takeCount__=Hn(p,w.__takeCount__):w.__views__.push({size:Hn(p,z),type:s+(w.__dir__<0?"Right":"")}),w},ft.prototype[s+"Right"]=function(p){return this.reverse()[s](p).reverse()}}),jr(["filter","map","takeWhile"],function(s,l){var p=l+1,w=p==W||p==V;ft.prototype[s]=function(A){var I=this.clone();return I.__iteratees__.push({iteratee:Ue(A,3),type:p}),I.__filtered__=I.__filtered__||w,I}}),jr(["head","last"],function(s,l){var p="take"+(l?"Right":"");ft.prototype[s]=function(){return this[p](1).value()[0]}}),jr(["initial","tail"],function(s,l){var p="drop"+(l?"":"Right");ft.prototype[s]=function(){return this.__filtered__?new ft(this):this[p](1)}}),ft.prototype.compact=function(){return this.filter(vr)},ft.prototype.find=function(s){return this.filter(s).head()},ft.prototype.findLast=function(s){return this.reverse().find(s)},ft.prototype.invokeMap=st(function(s,l){return typeof s=="function"?new ft(this):this.map(function(p){return vl(p,s,l)})}),ft.prototype.reject=function(s){return this.filter(Wd(Ue(s)))},ft.prototype.slice=function(s,l){s=nt(s);var p=this;return p.__filtered__&&(s>0||l<0)?new ft(p):(s<0?p=p.takeRight(-s):s&&(p=p.drop(s)),l!==n&&(l=nt(l),p=l<0?p.dropRight(-l):p.take(l-s)),p)},ft.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},ft.prototype.toArray=function(){return this.take(z)},_i(ft.prototype,function(s,l){var p=/^(?:filter|find|map|reject)|While$/.test(l),w=/^(?:head|last)$/.test(l),A=_[w?"take"+(l=="last"?"Right":""):l],I=w||/^find/.test(l);A&&(_.prototype[l]=function(){var H=this.__wrapped__,J=w?[1]:arguments,ee=H instanceof ft,me=J[0],ge=ee||Xe(H),we=function(lt){var ht=A.apply(_,Bo([lt],J));return w&&Pe?ht[0]:ht};ge&&p&&typeof me=="function"&&me.length!=1&&(ee=ge=!1);var Pe=this.__chain__,Ve=!!this.__actions__.length,We=I&&!Pe,ot=ee&&!Ve;if(!I&&ge){H=ot?H:new ft(this);var He=s.apply(H,J);return He.__actions__.push({func:jd,args:[we],thisArg:n}),new Ur(He,Pe)}return We&&ot?s.apply(this,J):(He=this.thru(we),We?w?He.value()[0]:He.value():He)})}),jr(["pop","push","shift","sort","splice","unshift"],function(s){var l=hd[s],p=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",w=/^(?:pop|shift)$/.test(s);_.prototype[s]=function(){var A=arguments;if(w&&!this.__chain__){var I=this.value();return l.apply(Xe(I)?I:[],A)}return this[p](function(H){return l.apply(Xe(H)?H:[],A)})}}),_i(ft.prototype,function(s,l){var p=_[l];if(p){var w=p.name+"";At.call(Fs,w)||(Fs[w]=[]),Fs[w].push({name:l,func:p})}}),Fs[Fd(n,x).name]=[{name:"wrapper",func:n}],ft.prototype.clone=X_,ft.prototype.reverse=Q_,ft.prototype.value=eO,_.prototype.at=P9,_.prototype.chain=R9,_.prototype.commit=_9,_.prototype.next=O9,_.prototype.plant=F9,_.prototype.reverse=k9,_.prototype.toJSON=_.prototype.valueOf=_.prototype.value=B9,_.prototype.first=_.prototype.head,dl&&(_.prototype[dl]=M9),_},_s=__();Ri?((Ri.exports=_s)._=_s,Pi._=_s):pn._=_s}).call(AI)}(Nl,Nl.exports)),Nl.exports}var QE=PI();const RI=pa(QE);var zm={exports:{}};/*!
|
|
85
|
+
Copyright (c) 2018 Jed Watson.
|
|
86
|
+
Licensed under the MIT License (MIT), see
|
|
87
|
+
http://jedwatson.github.io/classnames
|
|
88
|
+
*/var _3;function _I(){return _3||(_3=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",a=0;a<arguments.length;a++){var u=arguments[a];u&&(o=i(o,r(u)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var u in o)t.call(o,u)&&o[u]&&(a=i(a,u));return a}function i(o,a){return a?o?o+" "+a:o+a:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(zm)),zm.exports}var OI=_I();const fy=pa(OI);/*
|
|
89
|
+
* React Tooltip
|
|
90
|
+
* {@link https://github.com/ReactTooltip/react-tooltip}
|
|
91
|
+
* @copyright ReactTooltip Team
|
|
92
|
+
* @license MIT
|
|
93
|
+
*/const MI="react-tooltip-core-styles",FI="react-tooltip-base-styles",O3={core:!1,base:!1};function M3({css:e,id:t=FI,type:n="base",ref:r}){var i,o;if(!e||typeof document>"u"||O3[n]||n==="core"&&typeof process<"u"&&(!((i=process==null?void 0:process.env)===null||i===void 0)&&i.REACT_TOOLTIP_DISABLE_CORE_STYLES)||n!=="base"&&typeof process<"u"&&(!((o=process==null?void 0:process.env)===null||o===void 0)&&o.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;n==="core"&&(t=MI),r||(r={});const{insertAt:a}=r;if(document.getElementById(t))return;const u=document.head||document.getElementsByTagName("head")[0],c=document.createElement("style");c.id=t,c.type="text/css",a==="top"&&u.firstChild?u.insertBefore(c,u.firstChild):u.appendChild(c),c.styleSheet?c.styleSheet.cssText=e:c.appendChild(document.createTextNode(e)),O3[n]=!0}const F3=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:i=10,strategy:o="absolute",middlewares:a=[ZE(Number(i)),JE({fallbackAxisSideDirection:"start"}),DI({padding:5})],border:u})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const c=a;return n?(c.push(EI({element:n,padding:5})),dy(e,t,{placement:r,strategy:o,middleware:c}).then(({x:d,y:f,placement:h,middlewareData:m})=>{var g,v;const $={left:`${d}px`,top:`${f}px`,border:u},{x:C,y:x}=(g=m.arrow)!==null&&g!==void 0?g:{x:0,y:0},y=(v={top:"bottom",right:"left",bottom:"top",left:"right"}[h.split("-")[0]])!==null&&v!==void 0?v:"bottom",D=u&&{borderBottom:u,borderRight:u};let P=0;if(u){const E=`${u}`.match(/(\d+)px/);P=E!=null&&E[1]?Number(E[1]):1}return{tooltipStyles:$,tooltipArrowStyles:{left:C!=null?`${C}px`:"",top:x!=null?`${x}px`:"",right:"",bottom:"",...D,[y]:`-${4+P}px`},place:h}})):dy(e,t,{placement:"bottom",strategy:o,middleware:c}).then(({x:d,y:f,placement:h})=>({tooltipStyles:{left:`${d}px`,top:`${f}px`},tooltipArrowStyles:{},place:h}))},k3=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),B3=(e,t,n)=>{let r=null;const i=function(...o){const a=()=>{r=null};!r&&(e.apply(this,o),r=setTimeout(a,t))};return i.cancel=()=>{r&&(clearTimeout(r),r=null)},i},I3=e=>e!==null&&!Array.isArray(e)&&typeof e=="object",hy=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((i,o)=>hy(i,t[o]));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!I3(e)||!I3(t))return e===t;const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>hy(e[i],t[i]))},kI=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(n=>{const r=t.getPropertyValue(n);return r==="auto"||r==="scroll"})},V3=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(kI(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},BI=typeof window<"u"?b.useLayoutEffect:b.useEffect,qr=e=>{e.current&&(clearTimeout(e.current),e.current=null)},II="DEFAULT_TOOLTIP_ID",VI={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},LI=b.createContext({getTooltipData:()=>VI});function eC(e=II){return b.useContext(LI).getTooltipData(e)}var Ks={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},Wm={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const NI=({forwardRef:e,id:t,className:n,classNameArrow:r,variant:i="dark",anchorId:o,anchorSelect:a,place:u="top",offset:c=10,events:d=["hover"],openOnClick:f=!1,positionStrategy:h="absolute",middlewares:m,wrapper:g,delayShow:v=0,delayHide:$=0,float:C=!1,hidden:x=!1,noArrow:y=!1,clickable:D=!1,closeOnEsc:P=!1,closeOnScroll:E=!1,closeOnResize:T=!1,openEvents:k,closeEvents:S,globalCloseEvents:U,imperativeModeOnly:O,style:F,position:G,afterShow:K,afterHide:W,disableTooltip:j,content:V,contentWrapperRef:R,isOpen:M,defaultIsOpen:Y=!1,setIsOpen:L,activeAnchor:z,setActiveAnchor:re,border:oe,opacity:fe,arrowColor:ie,role:Ee="tooltip"})=>{var $e;const ne=b.useRef(null),ye=b.useRef(null),xe=b.useRef(null),he=b.useRef(null),le=b.useRef(null),[Fe,et]=b.useState({tooltipStyles:{},tooltipArrowStyles:{},place:u}),[dt,Dn]=b.useState(!1),[yt,q]=b.useState(!1),[Z,te]=b.useState(null),pe=b.useRef(!1),Ce=b.useRef(null),{anchorRefs:De,setActiveAnchor:Re}=eC(t),Le=b.useRef(!1),[mt,ut]=b.useState([]),_t=b.useRef(!1),Pn=f||d.includes("click"),Rn=Pn||(k==null?void 0:k.click)||(k==null?void 0:k.dblclick)||(k==null?void 0:k.mousedown),Yt=k?{...k}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!k&&Pn&&Object.assign(Yt,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const Vn=S?{...S}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!S&&Pn&&Object.assign(Vn,{mouseleave:!1,blur:!1,mouseout:!1});const tn=U?{...U}:{escape:P||!1,scroll:E||!1,resize:T||!1,clickOutsideAnchor:Rn||!1};O&&(Object.assign(Yt,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Vn,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(tn,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),BI(()=>(_t.current=!0,()=>{_t.current=!1}),[]);const vt=Te=>{_t.current&&(Te&&q(!0),setTimeout(()=>{_t.current&&(L==null||L(Te),M===void 0&&Dn(Te))},10))};b.useEffect(()=>{if(M===void 0)return()=>null;M&&q(!0);const Te=setTimeout(()=>{Dn(M)},10);return()=>{clearTimeout(Te)}},[M]),b.useEffect(()=>{if(dt!==pe.current)if(qr(le),pe.current=dt,dt)K==null||K();else{const Te=(je=>{const Ye=je.match(/^([\d.]+)(ms|s)$/);if(!Ye)return 0;const[,Ft,rn]=Ye;return Number(Ft)*(rn==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));le.current=setTimeout(()=>{q(!1),te(null),W==null||W()},Te+25)}},[dt]);const Ln=Te=>{et(je=>hy(je,Te)?je:Te)},Cr=(Te=v)=>{qr(xe),yt?vt(!0):xe.current=setTimeout(()=>{vt(!0)},Te)},_n=(Te=$)=>{qr(he),he.current=setTimeout(()=>{Le.current||vt(!1)},Te)},er=Te=>{var je;if(!Te)return;const Ye=(je=Te.currentTarget)!==null&&je!==void 0?je:Te.target;if(!(Ye!=null&&Ye.isConnected))return re(null),void Re({current:null});v?Cr():vt(!0),re(Ye),Re({current:Ye}),qr(he)},On=()=>{D?_n($||100):$?_n():vt(!1),qr(xe)},tr=({x:Te,y:je})=>{var Ye;const Ft={getBoundingClientRect:()=>({x:Te,y:je,width:0,height:0,top:je,left:Te,right:Te,bottom:je})};F3({place:(Ye=Z==null?void 0:Z.place)!==null&&Ye!==void 0?Ye:u,offset:c,elementReference:Ft,tooltipReference:ne.current,tooltipArrowReference:ye.current,strategy:h,middlewares:m,border:oe}).then(rn=>{Ln(rn)})},Nn=Te=>{if(!Te)return;const je=Te,Ye={x:je.clientX,y:je.clientY};tr(Ye),Ce.current=Ye},En=Te=>{var je;if(!dt)return;const Ye=Te.target;Ye.isConnected&&(!((je=ne.current)===null||je===void 0)&&je.contains(Ye)||[document.querySelector(`[id='${o}']`),...mt].some(Ft=>Ft==null?void 0:Ft.contains(Ye))||(vt(!1),qr(xe)))},Ir=B3(er,50),Lt=B3(On,50),Cn=Te=>{Lt.cancel(),Ir(Te)},Ne=()=>{Ir.cancel(),Lt()},tt=b.useCallback(()=>{var Te,je;const Ye=(Te=Z==null?void 0:Z.position)!==null&&Te!==void 0?Te:G;Ye?tr(Ye):C?Ce.current&&tr(Ce.current):z!=null&&z.isConnected&&F3({place:(je=Z==null?void 0:Z.place)!==null&&je!==void 0?je:u,offset:c,elementReference:z,tooltipReference:ne.current,tooltipArrowReference:ye.current,strategy:h,middlewares:m,border:oe}).then(Ft=>{_t.current&&Ln(Ft)})},[dt,z,V,F,u,Z==null?void 0:Z.place,c,h,G,Z==null?void 0:Z.position,C]);b.useEffect(()=>{var Te,je;const Ye=new Set(De);mt.forEach(gt=>{j!=null&&j(gt)||Ye.add({current:gt})});const Ft=document.querySelector(`[id='${o}']`);Ft&&!(j!=null&&j(Ft))&&Ye.add({current:Ft});const rn=()=>{vt(!1)},jn=V3(z),Kt=V3(ne.current);tn.scroll&&(window.addEventListener("scroll",rn),jn==null||jn.addEventListener("scroll",rn),Kt==null||Kt.addEventListener("scroll",rn));let an=null;tn.resize?window.addEventListener("resize",rn):z&&ne.current&&(an=YE(z,ne.current,tt,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const kt=gt=>{gt.key==="Escape"&&vt(!1)};tn.escape&&window.addEventListener("keydown",kt),tn.clickOutsideAnchor&&window.addEventListener("click",En);const wt=[],li=gt=>{dt&&(gt==null?void 0:gt.target)===z||er(gt)},ya=gt=>{dt&&(gt==null?void 0:gt.target)===z&&On()},hr=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],Po=["click","dblclick","mousedown","mouseup"];Object.entries(Yt).forEach(([gt,nr])=>{nr&&(hr.includes(gt)?wt.push({event:gt,listener:Cn}):Po.includes(gt)&&wt.push({event:gt,listener:li}))}),Object.entries(Vn).forEach(([gt,nr])=>{nr&&(hr.includes(gt)?wt.push({event:gt,listener:Ne}):Po.includes(gt)&&wt.push({event:gt,listener:ya}))}),C&&wt.push({event:"pointermove",listener:Nn});const Ro=()=>{Le.current=!0},_o=()=>{Le.current=!1,On()};return D&&!Rn&&((Te=ne.current)===null||Te===void 0||Te.addEventListener("mouseenter",Ro),(je=ne.current)===null||je===void 0||je.addEventListener("mouseleave",_o)),wt.forEach(({event:gt,listener:nr})=>{Ye.forEach(pr=>{var Kn;(Kn=pr.current)===null||Kn===void 0||Kn.addEventListener(gt,nr)})}),()=>{var gt,nr;tn.scroll&&(window.removeEventListener("scroll",rn),jn==null||jn.removeEventListener("scroll",rn),Kt==null||Kt.removeEventListener("scroll",rn)),tn.resize?window.removeEventListener("resize",rn):an==null||an(),tn.clickOutsideAnchor&&window.removeEventListener("click",En),tn.escape&&window.removeEventListener("keydown",kt),D&&!Rn&&((gt=ne.current)===null||gt===void 0||gt.removeEventListener("mouseenter",Ro),(nr=ne.current)===null||nr===void 0||nr.removeEventListener("mouseleave",_o)),wt.forEach(({event:pr,listener:Kn})=>{Ye.forEach(Oo=>{var Vr;(Vr=Oo.current)===null||Vr===void 0||Vr.removeEventListener(pr,Kn)})})}},[z,tt,yt,De,mt,k,S,U,Pn,v,$]),b.useEffect(()=>{var Te,je;let Ye=(je=(Te=Z==null?void 0:Z.anchorSelect)!==null&&Te!==void 0?Te:a)!==null&&je!==void 0?je:"";!Ye&&t&&(Ye=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);const Ft=new MutationObserver(rn=>{const jn=[],Kt=[];rn.forEach(an=>{if(an.type==="attributes"&&an.attributeName==="data-tooltip-id"&&(an.target.getAttribute("data-tooltip-id")===t?jn.push(an.target):an.oldValue===t&&Kt.push(an.target)),an.type==="childList"){if(z){const kt=[...an.removedNodes].filter(wt=>wt.nodeType===1);if(Ye)try{Kt.push(...kt.filter(wt=>wt.matches(Ye))),Kt.push(...kt.flatMap(wt=>[...wt.querySelectorAll(Ye)]))}catch{}kt.some(wt=>{var li;return!!(!((li=wt==null?void 0:wt.contains)===null||li===void 0)&&li.call(wt,z))&&(q(!1),vt(!1),re(null),qr(xe),qr(he),!0)})}if(Ye)try{const kt=[...an.addedNodes].filter(wt=>wt.nodeType===1);jn.push(...kt.filter(wt=>wt.matches(Ye))),jn.push(...kt.flatMap(wt=>[...wt.querySelectorAll(Ye)]))}catch{}}}),(jn.length||Kt.length)&&ut(an=>[...an.filter(kt=>!Kt.includes(kt)),...jn])});return Ft.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{Ft.disconnect()}},[t,a,Z==null?void 0:Z.anchorSelect,z]),b.useEffect(()=>{tt()},[tt]),b.useEffect(()=>{if(!(R!=null&&R.current))return()=>null;const Te=new ResizeObserver(()=>{setTimeout(()=>tt())});return Te.observe(R.current),()=>{Te.disconnect()}},[V,R==null?void 0:R.current]),b.useEffect(()=>{var Te;const je=document.querySelector(`[id='${o}']`),Ye=[...mt,je];z&&Ye.includes(z)||re((Te=mt[0])!==null&&Te!==void 0?Te:je)},[o,mt,z]),b.useEffect(()=>(Y&&vt(!0),()=>{qr(xe),qr(he)}),[]),b.useEffect(()=>{var Te;let je=(Te=Z==null?void 0:Z.anchorSelect)!==null&&Te!==void 0?Te:a;if(!je&&t&&(je=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),je)try{const Ye=Array.from(document.querySelectorAll(je));ut(Ye)}catch{ut([])}},[t,a,Z==null?void 0:Z.anchorSelect]),b.useEffect(()=>{xe.current&&(qr(xe),Cr(v))},[v]);const nn=($e=Z==null?void 0:Z.content)!==null&&$e!==void 0?$e:V,fr=dt&&Object.keys(Fe.tooltipStyles).length>0;return b.useImperativeHandle(e,()=>({open:Te=>{if(Te!=null&&Te.anchorSelect)try{document.querySelector(Te.anchorSelect)}catch{return void console.warn(`[react-tooltip] "${Te.anchorSelect}" is not a valid CSS selector`)}te(Te??null),Te!=null&&Te.delay?Cr(Te.delay):vt(!0)},close:Te=>{Te!=null&&Te.delay?_n(Te.delay):vt(!1)},activeAnchor:z,place:Fe.place,isOpen:!!(yt&&!x&&nn&&fr)})),yt&&!x&&nn?b.createElement(g,{id:t,role:Ee,className:fy("react-tooltip",Ks.tooltip,Wm.tooltip,Wm[i],n,`react-tooltip__place-${Fe.place}`,Ks[fr?"show":"closing"],fr?"react-tooltip__show":"react-tooltip__closing",h==="fixed"&&Ks.fixed,D&&Ks.clickable),onTransitionEnd:Te=>{qr(le),dt||Te.propertyName!=="opacity"||(q(!1),te(null),W==null||W())},style:{...F,...Fe.tooltipStyles,opacity:fe!==void 0&&fr?fe:void 0},ref:ne},nn,b.createElement(g,{className:fy("react-tooltip-arrow",Ks.arrow,Wm.arrow,r,y&&Ks.noArrow),style:{...Fe.tooltipArrowStyles,background:ie?`linear-gradient(to right bottom, transparent 50%, ${ie} 50%)`:void 0},ref:ye})):null},jI=({content:e})=>b.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),KI=b.forwardRef(({id:e,anchorId:t,anchorSelect:n,content:r,html:i,render:o,className:a,classNameArrow:u,variant:c="dark",place:d="top",offset:f=10,wrapper:h="div",children:m=null,events:g=["hover"],openOnClick:v=!1,positionStrategy:$="absolute",middlewares:C,delayShow:x=0,delayHide:y=0,float:D=!1,hidden:P=!1,noArrow:E=!1,clickable:T=!1,closeOnEsc:k=!1,closeOnScroll:S=!1,closeOnResize:U=!1,openEvents:O,closeEvents:F,globalCloseEvents:G,imperativeModeOnly:K=!1,style:W,position:j,isOpen:V,defaultIsOpen:R=!1,disableStyleInjection:M=!1,border:Y,opacity:L,arrowColor:z,setIsOpen:re,afterShow:oe,afterHide:fe,disableTooltip:ie,role:Ee="tooltip"},$e)=>{const[ne,ye]=b.useState(r),[xe,he]=b.useState(i),[le,Fe]=b.useState(d),[et,dt]=b.useState(c),[Dn,yt]=b.useState(f),[q,Z]=b.useState(x),[te,pe]=b.useState(y),[Ce,De]=b.useState(D),[Re,Le]=b.useState(P),[mt,ut]=b.useState(h),[_t,Pn]=b.useState(g),[Rn,Yt]=b.useState($),[Vn,tn]=b.useState(null),[vt,Ln]=b.useState(null),Cr=b.useRef(M),{anchorRefs:_n,activeAnchor:er}=eC(e),On=Lt=>Lt==null?void 0:Lt.getAttributeNames().reduce((Cn,Ne)=>{var tt;return Ne.startsWith("data-tooltip-")&&(Cn[Ne.replace(/^data-tooltip-/,"")]=(tt=Lt==null?void 0:Lt.getAttribute(Ne))!==null&&tt!==void 0?tt:null),Cn},{}),tr=Lt=>{const Cn={place:Ne=>{var tt;Fe((tt=Ne)!==null&&tt!==void 0?tt:d)},content:Ne=>{ye(Ne??r)},html:Ne=>{he(Ne??i)},variant:Ne=>{var tt;dt((tt=Ne)!==null&&tt!==void 0?tt:c)},offset:Ne=>{yt(Ne===null?f:Number(Ne))},wrapper:Ne=>{var tt;ut((tt=Ne)!==null&&tt!==void 0?tt:h)},events:Ne=>{const tt=Ne==null?void 0:Ne.split(" ");Pn(tt??g)},"position-strategy":Ne=>{var tt;Yt((tt=Ne)!==null&&tt!==void 0?tt:$)},"delay-show":Ne=>{Z(Ne===null?x:Number(Ne))},"delay-hide":Ne=>{pe(Ne===null?y:Number(Ne))},float:Ne=>{De(Ne===null?D:Ne==="true")},hidden:Ne=>{Le(Ne===null?P:Ne==="true")},"class-name":Ne=>{tn(Ne)}};Object.values(Cn).forEach(Ne=>Ne(null)),Object.entries(Lt).forEach(([Ne,tt])=>{var nn;(nn=Cn[Ne])===null||nn===void 0||nn.call(Cn,tt)})};b.useEffect(()=>{ye(r)},[r]),b.useEffect(()=>{he(i)},[i]),b.useEffect(()=>{Fe(d)},[d]),b.useEffect(()=>{dt(c)},[c]),b.useEffect(()=>{yt(f)},[f]),b.useEffect(()=>{Z(x)},[x]),b.useEffect(()=>{pe(y)},[y]),b.useEffect(()=>{De(D)},[D]),b.useEffect(()=>{Le(P)},[P]),b.useEffect(()=>{Yt($)},[$]),b.useEffect(()=>{Cr.current!==M&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[M]),b.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:M==="core",disableBase:M}}))},[]),b.useEffect(()=>{var Lt;const Cn=new Set(_n);let Ne=n;if(!Ne&&e&&(Ne=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),Ne)try{document.querySelectorAll(Ne).forEach(je=>{Cn.add({current:je})})}catch{console.warn(`[react-tooltip] "${Ne}" is not a valid CSS selector`)}const tt=document.querySelector(`[id='${t}']`);if(tt&&Cn.add({current:tt}),!Cn.size)return()=>null;const nn=(Lt=vt??tt)!==null&&Lt!==void 0?Lt:er.current,fr=new MutationObserver(je=>{je.forEach(Ye=>{var Ft;if(!nn||Ye.type!=="attributes"||!(!((Ft=Ye.attributeName)===null||Ft===void 0)&&Ft.startsWith("data-tooltip-")))return;const rn=On(nn);tr(rn)})}),Te={attributes:!0,childList:!1,subtree:!1};if(nn){const je=On(nn);tr(je),fr.observe(nn,Te)}return()=>{fr.disconnect()}},[_n,er,vt,t,n]),b.useEffect(()=>{W!=null&&W.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),Y&&!k3("border",`${Y}`)&&console.warn(`[react-tooltip] "${Y}" is not a valid \`border\`.`),W!=null&&W.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),L&&!k3("opacity",`${L}`)&&console.warn(`[react-tooltip] "${L}" is not a valid \`opacity\`.`)},[]);let Nn=m;const En=b.useRef(null);if(o){const Lt=o({content:(vt==null?void 0:vt.getAttribute("data-tooltip-content"))||ne||null,activeAnchor:vt});Nn=Lt?b.createElement("div",{ref:En,className:"react-tooltip-content-wrapper"},Lt):null}else ne&&(Nn=ne);xe&&(Nn=b.createElement(jI,{content:xe}));const Ir={forwardRef:$e,id:e,anchorId:t,anchorSelect:n,className:fy(a,Vn),classNameArrow:u,content:Nn,contentWrapperRef:En,place:le,variant:et,offset:Dn,wrapper:mt,events:_t,openOnClick:v,positionStrategy:Rn,middlewares:C,delayShow:q,delayHide:te,float:Ce,hidden:Re,noArrow:E,clickable:T,closeOnEsc:k,closeOnScroll:S,closeOnResize:U,openEvents:O,closeEvents:F,globalCloseEvents:G,imperativeModeOnly:K,style:W,position:j,isOpen:V,defaultIsOpen:R,border:Y,opacity:L,arrowColor:z,setIsOpen:re,afterShow:oe,afterHide:fe,disableTooltip:ie,activeAnchor:vt,setActiveAnchor:Lt=>Ln(Lt),role:Ee};return b.createElement(NI,{...Ir})});typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||M3({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||M3({css:`
|
|
94
|
+
.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});const zt=typeof document<"u"?b.useLayoutEffect:()=>{};function wn(e){const t=b.useRef(null);return zt(()=>{t.current=e},[e]),b.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function UI(e){let[t,n]=b.useState(e),r=b.useRef(null),i=wn(()=>{if(!r.current)return;let a=r.current.next();if(a.done){r.current=null;return}t===a.value?i():n(a.value)});zt(()=>{r.current&&i()});let o=wn(a=>{r.current=a(t),i()});return[t,o]}const qf={prefix:String(Math.round(Math.random()*1e10)),current:0},tC=b.createContext(qf),zI=b.createContext(!1);let WI=!!(typeof window<"u"&&window.document&&window.document.createElement),Hm=new WeakMap;function HI(e=!1){let t=b.useContext(tC),n=b.useRef(null);if(n.current===null&&!e){var r,i;let o=(i=b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let a=Hm.get(o);a==null?Hm.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==a.state&&(t.current=a.id,Hm.delete(o))}n.current=++t.current}return n.current}function GI(e){let t=b.useContext(tC);t===qf&&!WI&&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=HI(!!e),r=t===qf&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function qI(e){let t=b.useId(),[n]=b.useState(qv()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${qf.prefix}`;return e||`${r}-${t}`}const YI=typeof b.useId=="function"?qI:GI;function ZI(){return!1}function JI(){return!0}function XI(e){return()=>{}}function qv(){return typeof b.useSyncExternalStore=="function"?b.useSyncExternalStore(XI,ZI,JI):b.useContext(zI)}let QI=!!(typeof window<"u"&&window.document&&window.document.createElement),Yo=new Map;function Mr(e){let[t,n]=b.useState(e),r=b.useRef(null),i=YI(t),o=b.useCallback(a=>{r.current=a},[]);return QI&&(Yo.has(i)&&!Yo.get(i).includes(o)?Yo.set(i,[...Yo.get(i),o]):Yo.set(i,[o])),zt(()=>{let a=i;return()=>{Yo.delete(a)}},[i]),b.useEffect(()=>{let a=r.current;a&&(r.current=null,n(a))}),i}function eV(e,t){if(e===t)return e;let n=Yo.get(e);if(n)return n.forEach(i=>i(t)),t;let r=Yo.get(t);return r?(r.forEach(i=>i(e)),e):t}function Eu(e=[]){let t=Mr(),[n,r]=UI(t),i=b.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return zt(i,[t,i,...e]),n}function is(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Vt=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},la=e=>e&&"window"in e&&e.window===e?e:Vt(e).defaultView||window;function nC(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=nC(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function tV(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=nC(e))&&(r&&(r+=" "),r+=t);return r}function xt(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let o=t[i],a=r[i];typeof o=="function"&&typeof a=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=is(o,a):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof a=="string"?t[i]=tV(o,a):i==="id"&&o&&a?t.id=eV(o,a):t[i]=a!==void 0?a:o}}return t}const nV=new Set(["id"]),rV=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),iV=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),oV=/^(data-.*)$/;function So(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,o={};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(nV.has(a)||n&&rV.has(a)||r&&iV.has(a)||i!=null&&i.has(a)||oV.test(a))&&(o[a]=e[a]);return o}function vi(e){if(aV())e.focus({preventScroll:!0});else{let t=sV(e);e.focus(),uV(t)}}let ef=null;function aV(){if(ef==null){ef=!1;try{document.createElement("div").focus({get preventScroll(){return ef=!0,!0}})}catch{}}return ef}function sV(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 uV(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Wh(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 Yv(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 To(e){let t=null;return()=>(t==null&&(t=e()),t)}const Do=To(function(){return Yv(/^Mac/i)}),lV=To(function(){return Yv(/^iPhone/i)}),rC=To(function(){return Yv(/^iPad/i)||Do()&&navigator.maxTouchPoints>1}),_c=To(function(){return lV()||rC()}),Tf=To(function(){return Do()||_c()}),Zv=To(function(){return Wh(/AppleWebKit/i)&&!cV()}),cV=To(function(){return Wh(/Chrome/i)}),iC=To(function(){return Wh(/Android/i)}),dV=To(function(){return Wh(/Firefox/i)}),fV=b.createContext({isNative:!0,open:pV,useHref:e=>e});function Hh(){return b.useContext(fV)}function os(e,t,n=!0){var r,i;let{metaKey:o,ctrlKey:a,altKey:u,shiftKey:c}=t;dV()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Do()?o=!0:a=!0);let d=Zv()&&Do()&&!rC()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:a,altKey:u,shiftKey:c}):new MouseEvent("click",{metaKey:o,ctrlKey:a,altKey:u,shiftKey:c,bubbles:!0,cancelable:!0});os.isOpening=n,vi(e),e.dispatchEvent(d),os.isOpening=!1}os.isOpening=!1;function hV(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 pV(e,t){hV(e,n=>os(n,t))}function mV(e){let t=Hh();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 qs=new Map,py=new Set;function L3(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=qs.get(r.target);i||(i=new Set,qs.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=qs.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),qs.delete(r.target)),qs.size===0)){for(let o of py)o();py.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?L3():document.addEventListener("DOMContentLoaded",L3));function oC(e){requestAnimationFrame(()=>{qs.size===0?e():py.add(e)})}function Ku(){let e=b.useRef(new Map),t=b.useCallback((i,o,a,u)=>{let c=u!=null&&u.once?(...d)=>{e.current.delete(a),a(...d)}:a;e.current.set(a,{type:o,eventTarget:i,fn:c,options:u}),i.addEventListener(o,a,u)},[]),n=b.useCallback((i,o,a,u)=>{var c;let d=((c=e.current.get(a))===null||c===void 0?void 0:c.fn)||a;i.removeEventListener(o,d,u),e.current.delete(a)},[]),r=b.useCallback(()=>{e.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return b.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Cu(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Mr(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 N3(e,t){const n=b.useRef(!0),r=b.useRef(null);b.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),b.useEffect(()=>{n.current?n.current=!1:(!r.current||t.some((i,o)=>!Object.is(i,r[o])))&&e(),r.current=t},t)}function gV(){return typeof window.ResizeObserver<"u"}function j3(e){const{ref:t,box:n,onResize:r}=e;b.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(gV()){const o=new window.ResizeObserver(a=>{a.length&&r()});return o.observe(i,{box:n}),()=>{i&&o.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function aC(e,t){zt(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function cc(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 Gh(e,t){let n=e;for(cc(n,t)&&(n=n.parentElement);n&&!cc(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function yV(e,t){const n=[];for(;e&&e!==document.documentElement;)cc(e,t)&&n.push(e),e=e.parentElement;return n}let vV=0;const Gm=new Map;function Oc(e){let[t,n]=b.useState();return zt(()=>{if(!e)return;let r=Gm.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${vV++}`;n(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=e,document.body.appendChild(o),r={refCount:0,element:o},Gm.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Gm.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function ia(e,t,n,r){let i=wn(n),o=n==null;b.useEffect(()=>{if(o||!e.current)return;let a=e.current;return a.addEventListener(t,i,r),()=>{a.removeEventListener(t,i,r)}},[e,t,r,o,i])}function sC(e,t){let n=K3(e,t,"left"),r=K3(e,t,"top"),i=t.offsetWidth,o=t.offsetHeight,a=e.scrollLeft,u=e.scrollTop,{borderTopWidth:c,borderLeftWidth:d}=getComputedStyle(e),f=e.scrollLeft+parseInt(d,10),h=e.scrollTop+parseInt(c,10),m=f+e.clientWidth,g=h+e.clientHeight;n<=a?a=n-parseInt(d,10):n+i>m&&(a+=n+i-m),r<=h?u=r-parseInt(c,10):r+o>g&&(u+=r+o-g),e.scrollLeft=a,e.scrollTop=u}function K3(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 Yf(e,t){if(e&&document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let c=yV(e);for(let d of c)sC(d,e)}else{var n;let{left:c,top:d}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:f,top:h}=e.getBoundingClientRect();if(Math.abs(c-f)>1||Math.abs(d-h)>1){var r,i,o;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(o=e.scrollIntoView)===null||o===void 0||o.call(e,{block:"nearest"})}}}}function my(e){return e.mozInputSource===0&&e.isTrusted?!0:iC()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function bV(e){return!iC()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function uC(e,t){let n=b.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function Jv(e,t,n){let r=b.useRef(t),i=wn(()=>{n&&n(r.current)});b.useEffect(()=>{var o;let a=e==null||(o=e.current)===null||o===void 0?void 0:o.form;return a==null||a.addEventListener("reset",i),()=>{a==null||a.removeEventListener("reset",i)}},[e,i])}function Fr(e,t,n){let[r,i]=b.useState(e||t),o=b.useRef(e!==void 0),a=e!==void 0;b.useEffect(()=>{let d=o.current;d!==a&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),o.current=a},[a]);let u=a?e:r,c=b.useCallback((d,...f)=>{let h=(m,...g)=>{n&&(Object.is(u,m)||n(m,...g)),a||(u=m)};typeof d=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((g,...v)=>{let $=d(a?u:g,...v);return h($,...f),a?g:$})):(a||i(d),h(d,...f))},[a,u,n]);return[u,c]}function Su(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function tf(e,t){let n=e,r=t.toString(),i=r.indexOf("."),o=i>=0?r.length-i:0;if(o>0){let a=Math.pow(10,o);n=Math.round(n*a)/a}return n}function Cl(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,o=tf(Math.abs(i)*2>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return isNaN(t)?!isNaN(n)&&o>n&&(o=Math.floor(tf(n/r,r))*r):o<t?o=t:!isNaN(n)&&o>n&&(o=t+Math.floor(tf((n-t)/r,r))*r),o=tf(o,r),o}let Xs="default",gy="",Af=new WeakMap;function yy(e){if(_c()){if(Xs==="default"){const t=Vt(e);gy=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Xs="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(Af.set(e,e.style.userSelect),e.style.userSelect="none")}function jl(e){if(_c()){if(Xs!=="disabled")return;Xs="restoring",setTimeout(()=>{oC(()=>{if(Xs==="restoring"){const t=Vt(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=gy||""),gy="",Xs="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Af.has(e)){let t=Af.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Af.delete(e)}}const Xv=b.createContext({register:()=>{}});Xv.displayName="PressResponderContext";function $V(e,t){return t.get?t.get.call(e):t.value}function lC(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function xV(e,t){var n=lC(e,t,"get");return $V(e,n)}function wV(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Mc(e,t,n){wV(e,t),t.set(e,n)}function DV(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 U3(e,t,n){var r=lC(e,t,"set");return DV(e,r,n),n}function EV(e){let t=b.useContext(Xv);if(t){let{register:n,...r}=t;e=xt(r,e),n()}return aC(t,e.ref),e}var nf=new WeakMap;class rf{continuePropagation(){U3(this,nf,!1)}get shouldStopPropagation(){return xV(this,nf)}constructor(t,n,r,i){Mc(this,nf,{writable:!0,value:void 0}),U3(this,nf,!0);var o;let a=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:r.currentTarget;const u=a==null?void 0:a.getBoundingClientRect();let c,d=0,f,h=null;r.clientX!=null&&r.clientY!=null&&(f=r.clientX,h=r.clientY),u&&(f!=null&&h!=null?(c=f-u.left,d=h-u.top):(c=u.width/2,d=u.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=c,this.y=d}}const z3=Symbol("linkClicked");function Fc(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,isDisabled:a,isPressed:u,preventFocusOnPress:c,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:h,...m}=EV(e),[g,v]=b.useState(!1),$=b.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:C,removeAllGlobalListeners:x}=Ku(),y=wn((S,U)=>{let O=$.current;if(a||O.didFirePressStart)return!1;let F=!0;if(O.isTriggeringEvent=!0,r){let G=new rf("pressstart",U,S);r(G),F=G.shouldStopPropagation}return n&&n(!0),O.isTriggeringEvent=!1,O.didFirePressStart=!0,v(!0),F}),D=wn((S,U,O=!0)=>{let F=$.current;if(!F.didFirePressStart)return!1;F.ignoreClickAfterPress=!0,F.didFirePressStart=!1,F.isTriggeringEvent=!0;let G=!0;if(i){let K=new rf("pressend",U,S);i(K),G=K.shouldStopPropagation}if(n&&n(!1),v(!1),t&&O&&!a){let K=new rf("press",U,S);t(K),G&&(G=K.shouldStopPropagation)}return F.isTriggeringEvent=!1,G}),P=wn((S,U)=>{let O=$.current;if(a)return!1;if(o){O.isTriggeringEvent=!0;let F=new rf("pressup",U,S);return o(F),O.isTriggeringEvent=!1,F.shouldStopPropagation}return!0}),E=wn(S=>{let U=$.current;U.isPressed&&U.target&&(U.isOverTarget&&U.pointerType!=null&&D(lo(U.target,S),U.pointerType,!1),U.isPressed=!1,U.isOverTarget=!1,U.activePointerId=null,U.pointerType=null,x(),f||jl(U.target))}),T=wn(S=>{d&&E(S)}),k=b.useMemo(()=>{let S=$.current,U={onKeyDown(F){if(qm(F.nativeEvent,F.currentTarget)&&F.currentTarget.contains(F.target)){var G;H3(F.target,F.key)&&F.preventDefault();let K=!0;if(!S.isPressed&&!F.repeat){S.target=F.currentTarget,S.isPressed=!0,K=y(F,"keyboard");let W=F.currentTarget,j=V=>{qm(V,W)&&!V.repeat&&W.contains(V.target)&&S.target&&P(lo(S.target,V),"keyboard")};C(Vt(F.currentTarget),"keyup",is(j,O),!0)}K&&F.stopPropagation(),F.metaKey&&Do()&&((G=S.metaKeyEvents)===null||G===void 0||G.set(F.key,F.nativeEvent))}else F.key==="Meta"&&(S.metaKeyEvents=new Map)},onClick(F){if(!(F&&!F.currentTarget.contains(F.target))&&F&&F.button===0&&!S.isTriggeringEvent&&!os.isOpening){let G=!0;if(a&&F.preventDefault(),!S.ignoreClickAfterPress&&!S.ignoreEmulatedMouseEvents&&!S.isPressed&&(S.pointerType==="virtual"||my(F.nativeEvent))){!a&&!c&&vi(F.currentTarget);let K=y(F,"virtual"),W=P(F,"virtual"),j=D(F,"virtual");G=K&&W&&j}S.ignoreEmulatedMouseEvents=!1,S.ignoreClickAfterPress=!1,G&&F.stopPropagation()}}},O=F=>{var G;if(S.isPressed&&S.target&&qm(F,S.target)){var K;H3(F.target,F.key)&&F.preventDefault();let j=F.target;D(lo(S.target,F),"keyboard",S.target.contains(j)),x(),F.key!=="Enter"&&Qv(S.target)&&S.target.contains(j)&&!F[z3]&&(F[z3]=!0,os(S.target,F,!1)),S.isPressed=!1,(K=S.metaKeyEvents)===null||K===void 0||K.delete(F.key)}else if(F.key==="Meta"&&(!((G=S.metaKeyEvents)===null||G===void 0)&&G.size)){var W;let j=S.metaKeyEvents;S.metaKeyEvents=void 0;for(let V of j.values())(W=S.target)===null||W===void 0||W.dispatchEvent(new KeyboardEvent("keyup",V))}};if(typeof PointerEvent<"u"){U.onPointerDown=j=>{if(j.button!==0||!j.currentTarget.contains(j.target))return;if(bV(j.nativeEvent)){S.pointerType="virtual";return}Ym(j.currentTarget)&&j.preventDefault(),S.pointerType=j.pointerType;let V=!0;S.isPressed||(S.isPressed=!0,S.isOverTarget=!0,S.activePointerId=j.pointerId,S.target=j.currentTarget,!a&&!c&&vi(j.currentTarget),f||yy(S.target),V=y(j,S.pointerType),C(Vt(j.currentTarget),"pointermove",F,!1),C(Vt(j.currentTarget),"pointerup",G,!1),C(Vt(j.currentTarget),"pointercancel",W,!1)),V&&j.stopPropagation()},U.onMouseDown=j=>{j.currentTarget.contains(j.target)&&j.button===0&&(Ym(j.currentTarget)&&j.preventDefault(),j.stopPropagation())},U.onPointerUp=j=>{!j.currentTarget.contains(j.target)||S.pointerType==="virtual"||j.button===0&&Us(j,j.currentTarget)&&P(j,S.pointerType||j.pointerType)};let F=j=>{j.pointerId===S.activePointerId&&(S.target&&Us(j,S.target)?!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,y(lo(S.target,j),S.pointerType)):S.target&&S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,D(lo(S.target,j),S.pointerType,!1),T(j)))},G=j=>{j.pointerId===S.activePointerId&&S.isPressed&&j.button===0&&S.target&&(Us(j,S.target)&&S.pointerType!=null?D(lo(S.target,j),S.pointerType):S.isOverTarget&&S.pointerType!=null&&D(lo(S.target,j),S.pointerType,!1),S.isPressed=!1,S.isOverTarget=!1,S.activePointerId=null,S.pointerType=null,x(),f||jl(S.target),"ontouchend"in S.target&&j.pointerType!=="mouse"&&C(S.target,"touchend",K,{once:!0}))},K=j=>{cC(j.currentTarget)&&j.preventDefault()},W=j=>{E(j)};U.onDragStart=j=>{j.currentTarget.contains(j.target)&&E(j)}}else{U.onMouseDown=K=>{if(K.button!==0||!K.currentTarget.contains(K.target))return;if(Ym(K.currentTarget)&&K.preventDefault(),S.ignoreEmulatedMouseEvents){K.stopPropagation();return}S.isPressed=!0,S.isOverTarget=!0,S.target=K.currentTarget,S.pointerType=my(K.nativeEvent)?"virtual":"mouse",!a&&!c&&vi(K.currentTarget),y(K,S.pointerType)&&K.stopPropagation(),C(Vt(K.currentTarget),"mouseup",F,!1)},U.onMouseEnter=K=>{if(!K.currentTarget.contains(K.target))return;let W=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!0,W=y(K,S.pointerType)),W&&K.stopPropagation()},U.onMouseLeave=K=>{if(!K.currentTarget.contains(K.target))return;let W=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!1,W=D(K,S.pointerType,!1),T(K)),W&&K.stopPropagation()},U.onMouseUp=K=>{K.currentTarget.contains(K.target)&&!S.ignoreEmulatedMouseEvents&&K.button===0&&P(K,S.pointerType||"mouse")};let F=K=>{if(K.button===0){if(S.isPressed=!1,x(),S.ignoreEmulatedMouseEvents){S.ignoreEmulatedMouseEvents=!1;return}S.target&&Us(K,S.target)&&S.pointerType!=null?D(lo(S.target,K),S.pointerType):S.target&&S.isOverTarget&&S.pointerType!=null&&D(lo(S.target,K),S.pointerType,!1),S.isOverTarget=!1}};U.onTouchStart=K=>{if(!K.currentTarget.contains(K.target))return;let W=CV(K.nativeEvent);if(!W)return;S.activePointerId=W.identifier,S.ignoreEmulatedMouseEvents=!0,S.isOverTarget=!0,S.isPressed=!0,S.target=K.currentTarget,S.pointerType="touch",!a&&!c&&vi(K.currentTarget),f||yy(S.target),y(zo(S.target,K),S.pointerType)&&K.stopPropagation(),C(la(K.currentTarget),"scroll",G,!0)},U.onTouchMove=K=>{if(!K.currentTarget.contains(K.target))return;if(!S.isPressed){K.stopPropagation();return}let W=W3(K.nativeEvent,S.activePointerId),j=!0;W&&Us(W,K.currentTarget)?!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,j=y(zo(S.target,K),S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,j=D(zo(S.target,K),S.pointerType,!1),T(zo(S.target,K))),j&&K.stopPropagation()},U.onTouchEnd=K=>{if(!K.currentTarget.contains(K.target))return;if(!S.isPressed){K.stopPropagation();return}let W=W3(K.nativeEvent,S.activePointerId),j=!0;W&&Us(W,K.currentTarget)&&S.pointerType!=null?(P(zo(S.target,K),S.pointerType),j=D(zo(S.target,K),S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(j=D(zo(S.target,K),S.pointerType,!1)),j&&K.stopPropagation(),S.isPressed=!1,S.activePointerId=null,S.isOverTarget=!1,S.ignoreEmulatedMouseEvents=!0,S.target&&!f&&jl(S.target),x()},U.onTouchCancel=K=>{K.currentTarget.contains(K.target)&&(K.stopPropagation(),S.isPressed&&E(zo(S.target,K)))};let G=K=>{S.isPressed&&K.target.contains(S.target)&&E({currentTarget:S.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};U.onDragStart=K=>{K.currentTarget.contains(K.target)&&E(K)}}return U},[C,a,c,x,f,E,T,D,y,P]);return b.useEffect(()=>()=>{var S;f||jl((S=$.current.target)!==null&&S!==void 0?S:void 0)},[f]),{isPressed:u||g,pressProps:xt(m,k)}}function Qv(e){return e.tagName==="A"&&e.hasAttribute("href")}function qm(e,t){const{key:n,code:r}=e,i=t,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof la(i).HTMLInputElement&&!dC(i,n)||i instanceof la(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&Qv(i))&&n!=="Enter")}function CV(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function W3(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 zo(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 lo(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 SV(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 TV(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Us(e,t){let n=t.getBoundingClientRect(),r=SV(e);return TV(n,r)}function Ym(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function cC(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Qv(e)}function H3(e,t){return e instanceof HTMLInputElement?!dC(e,t):cC(e)}const AV=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function dC(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":AV.has(e.type)}function PV({children:e}){let t=b.useMemo(()=>({register:()=>{}}),[]);return b.createElement(Xv.Provider,{value:t},e)}class RV{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function fC(e){let t=b.useRef({isFocused:!1,observer:null});zt(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=wn(r=>{e==null||e(r)});return b.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,o=a=>{t.current.isFocused=!1,i.disabled&&n(new RV("blur",a)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let u=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:u})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:u}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function _V(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=b.useCallback(c=>{if(c.target===c.currentTarget)return r&&r(c),i&&i(!1),!0},[r,i]),a=fC(o),u=b.useCallback(c=>{const d=Vt(c.target);c.target===c.currentTarget&&d.activeElement===c.target&&(n&&n(c),i&&i(!0),a(c))},[i,n,a]);return{focusProps:{onFocus:!t&&(n||i||r)?u:void 0,onBlur:!t&&(r||i)?o:void 0}}}let ds=null,OV=new Set,Jl=new Map,as=!1,vy=!1;function qh(e,t){for(let n of OV)n(e,t)}function MV(e){return!(e.metaKey||!Do()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Zf(e){as=!0,MV(e)&&(ds="keyboard",qh("keyboard",e))}function ni(e){ds="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(as=!0,qh("pointer",e))}function hC(e){my(e)&&(as=!0,ds="virtual")}function pC(e){e.target===window||e.target===document||(!as&&!vy&&(ds="virtual",qh("virtual",e)),as=!1,vy=!1)}function mC(){as=!1,vy=!0}function G3(e){if(typeof window>"u"||Jl.get(la(e)))return;const t=la(e),n=Vt(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){as=!0,r.apply(this,arguments)},n.addEventListener("keydown",Zf,!0),n.addEventListener("keyup",Zf,!0),n.addEventListener("click",hC,!0),t.addEventListener("focus",pC,!0),t.addEventListener("blur",mC,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",ni,!0),n.addEventListener("pointermove",ni,!0),n.addEventListener("pointerup",ni,!0)):(n.addEventListener("mousedown",ni,!0),n.addEventListener("mousemove",ni,!0),n.addEventListener("mouseup",ni,!0)),t.addEventListener("beforeunload",()=>{gC(e)},{once:!0}),Jl.set(t,{focus:r})}const gC=(e,t)=>{const n=la(e),r=Vt(e);t&&r.removeEventListener("DOMContentLoaded",t),Jl.has(n)&&(n.HTMLElement.prototype.focus=Jl.get(n).focus,r.removeEventListener("keydown",Zf,!0),r.removeEventListener("keyup",Zf,!0),r.removeEventListener("click",hC,!0),n.removeEventListener("focus",pC,!0),n.removeEventListener("blur",mC,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",ni,!0),r.removeEventListener("pointermove",ni,!0),r.removeEventListener("pointerup",ni,!0)):(r.removeEventListener("mousedown",ni,!0),r.removeEventListener("mousemove",ni,!0),r.removeEventListener("mouseup",ni,!0)),Jl.delete(n))};function FV(e){const t=Vt(e);let n;return t.readyState!=="loading"?G3(e):(n=()=>{G3(e)},t.addEventListener("DOMContentLoaded",n)),()=>gC(e,n)}typeof document<"u"&&FV();function q3(){return ds!=="pointer"}function Jf(){return ds}function yC(e){ds=e,qh(e,null)}function Uu(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=b.useRef({isFocusWithin:!1}),a=b.useCallback(d=>{o.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(d),i&&i(!1))},[n,i,o]),u=fC(a),c=b.useCallback(d=>{!o.current.isFocusWithin&&document.activeElement===d.target&&(r&&r(d),i&&i(!0),o.current.isFocusWithin=!0,u(d))},[r,i,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:a}}}let Xf=!1,Zm=0;function by(){Xf=!0,setTimeout(()=>{Xf=!1},50)}function Y3(e){e.pointerType==="touch"&&by()}function kV(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Y3):document.addEventListener("touchend",by),Zm++,()=>{Zm--,!(Zm>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Y3):document.removeEventListener("touchend",by))}}function BV(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,a]=b.useState(!1),u=b.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;b.useEffect(kV,[]);let{hoverProps:c,triggerHoverEnd:d}=b.useMemo(()=>{let f=(g,v)=>{if(u.pointerType=v,i||v==="touch"||u.isHovered||!g.currentTarget.contains(g.target))return;u.isHovered=!0;let $=g.currentTarget;u.target=$,t&&t({type:"hoverstart",target:$,pointerType:v}),n&&n(!0),a(!0)},h=(g,v)=>{if(u.pointerType="",u.target=null,v==="touch"||!u.isHovered)return;u.isHovered=!1;let $=g.currentTarget;r&&r({type:"hoverend",target:$,pointerType:v}),n&&n(!1),a(!1)},m={};return typeof PointerEvent<"u"?(m.onPointerEnter=g=>{Xf&&g.pointerType==="mouse"||f(g,g.pointerType)},m.onPointerLeave=g=>{!i&&g.currentTarget.contains(g.target)&&h(g,g.pointerType)}):(m.onTouchStart=()=>{u.ignoreEmulatedMouseEvents=!0},m.onMouseEnter=g=>{!u.ignoreEmulatedMouseEvents&&!Xf&&f(g,"mouse"),u.ignoreEmulatedMouseEvents=!1},m.onMouseLeave=g=>{!i&&g.currentTarget.contains(g.target)&&h(g,"mouse")}),{hoverProps:m,triggerHoverEnd:h}},[t,n,r,i,u]);return b.useEffect(()=>{i&&d({currentTarget:u.target},u.pointerType)},[i]),{hoverProps:c,isHovered:o}}function IV(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,o=b.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=wn(c=>{n&&of(c,t)&&(i&&i(c),o.current.isPointerDown=!0)}),u=wn(c=>{n&&n(c)});b.useEffect(()=>{let c=o.current;if(r)return;const d=t.current,f=Vt(d);if(typeof PointerEvent<"u"){let h=m=>{c.isPointerDown&&of(m,t)&&u(m),c.isPointerDown=!1};return f.addEventListener("pointerdown",a,!0),f.addEventListener("pointerup",h,!0),()=>{f.removeEventListener("pointerdown",a,!0),f.removeEventListener("pointerup",h,!0)}}else{let h=g=>{c.ignoreEmulatedMouseEvents?c.ignoreEmulatedMouseEvents=!1:c.isPointerDown&&of(g,t)&&u(g),c.isPointerDown=!1},m=g=>{c.ignoreEmulatedMouseEvents=!0,c.isPointerDown&&of(g,t)&&u(g),c.isPointerDown=!1};return f.addEventListener("mousedown",a,!0),f.addEventListener("mouseup",h,!0),f.addEventListener("touchstart",a,!0),f.addEventListener("touchend",m,!0),()=>{f.removeEventListener("mousedown",a,!0),f.removeEventListener("mouseup",h,!0),f.removeEventListener("touchstart",a,!0),f.removeEventListener("touchend",m,!0)}}},[t,r,a,u])}function of(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function Z3(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function vC(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Z3(e.onKeyDown),onKeyUp:Z3(e.onKeyUp)}}}function bC(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=b.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:o,removeGlobalListener:a}=Ku(),u=wn((f,h,m,g)=>{m===0&&g===0||(i.current.didMove||(i.current.didMove=!0,t==null||t({type:"movestart",pointerType:h,shiftKey:f.shiftKey,metaKey:f.metaKey,ctrlKey:f.ctrlKey,altKey:f.altKey})),n==null||n({type:"move",pointerType:h,deltaX:m,deltaY:g,shiftKey:f.shiftKey,metaKey:f.metaKey,ctrlKey:f.ctrlKey,altKey:f.altKey}))}),c=wn((f,h)=>{jl(),i.current.didMove&&(r==null||r({type:"moveend",pointerType:h,shiftKey:f.shiftKey,metaKey:f.metaKey,ctrlKey:f.ctrlKey,altKey:f.altKey}))});return{moveProps:b.useMemo(()=>{let f={},h=()=>{yy(),i.current.didMove=!1};if(typeof PointerEvent>"u"){let g=x=>{if(x.button===0){var y,D,P,E;u(x,"mouse",x.pageX-((P=(y=i.current.lastPosition)===null||y===void 0?void 0:y.pageX)!==null&&P!==void 0?P:0),x.pageY-((E=(D=i.current.lastPosition)===null||D===void 0?void 0:D.pageY)!==null&&E!==void 0?E:0)),i.current.lastPosition={pageX:x.pageX,pageY:x.pageY}}},v=x=>{x.button===0&&(c(x,"mouse"),a(window,"mousemove",g,!1),a(window,"mouseup",v,!1))};f.onMouseDown=x=>{x.button===0&&(h(),x.stopPropagation(),x.preventDefault(),i.current.lastPosition={pageX:x.pageX,pageY:x.pageY},o(window,"mousemove",g,!1),o(window,"mouseup",v,!1))};let $=x=>{let y=[...x.changedTouches].findIndex(({identifier:k})=>k===i.current.id);if(y>=0){var D,P;let{pageX:k,pageY:S}=x.changedTouches[y];var E,T;u(x,"touch",k-((E=(D=i.current.lastPosition)===null||D===void 0?void 0:D.pageX)!==null&&E!==void 0?E:0),S-((T=(P=i.current.lastPosition)===null||P===void 0?void 0:P.pageY)!==null&&T!==void 0?T:0)),i.current.lastPosition={pageX:k,pageY:S}}},C=x=>{[...x.changedTouches].findIndex(({identifier:D})=>D===i.current.id)>=0&&(c(x,"touch"),i.current.id=null,a(window,"touchmove",$),a(window,"touchend",C),a(window,"touchcancel",C))};f.onTouchStart=x=>{if(x.changedTouches.length===0||i.current.id!=null)return;let{pageX:y,pageY:D,identifier:P}=x.changedTouches[0];h(),x.stopPropagation(),x.preventDefault(),i.current.lastPosition={pageX:y,pageY:D},i.current.id=P,o(window,"touchmove",$,!1),o(window,"touchend",C,!1),o(window,"touchcancel",C,!1)}}else{let g=$=>{if($.pointerId===i.current.id){var C,x;let P=$.pointerType||"mouse";var y,D;u($,P,$.pageX-((y=(C=i.current.lastPosition)===null||C===void 0?void 0:C.pageX)!==null&&y!==void 0?y:0),$.pageY-((D=(x=i.current.lastPosition)===null||x===void 0?void 0:x.pageY)!==null&&D!==void 0?D:0)),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY}}},v=$=>{if($.pointerId===i.current.id){let C=$.pointerType||"mouse";c($,C),i.current.id=null,a(window,"pointermove",g,!1),a(window,"pointerup",v,!1),a(window,"pointercancel",v,!1)}};f.onPointerDown=$=>{$.button===0&&i.current.id==null&&(h(),$.stopPropagation(),$.preventDefault(),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY},i.current.id=$.pointerId,o(window,"pointermove",g,!1),o(window,"pointerup",v,!1),o(window,"pointercancel",v,!1))}}let m=(g,v,$)=>{h(),u(g,"keyboard",v,$),c(g,"keyboard")};return f.onKeyDown=g=>{switch(g.key){case"Left":case"ArrowLeft":g.preventDefault(),g.stopPropagation(),m(g,-1,0);break;case"Right":case"ArrowRight":g.preventDefault(),g.stopPropagation(),m(g,1,0);break;case"Up":case"ArrowUp":g.preventDefault(),g.stopPropagation(),m(g,0,-1);break;case"Down":case"ArrowDown":g.preventDefault(),g.stopPropagation(),m(g,0,1);break}},f},[i,o,a,u,c])}}const VV=500;function $C(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=VV,accessibilityDescription:a}=e;const u=b.useRef(void 0);let{addGlobalListener:c,removeGlobalListener:d}=Ku(),{pressProps:f}=Fc({isDisabled:t,onPressStart(m){if(m.continuePropagation(),(m.pointerType==="mouse"||m.pointerType==="touch")&&(n&&n({...m,type:"longpressstart"}),u.current=setTimeout(()=>{m.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i({...m,type:"longpress"}),u.current=void 0},o),m.pointerType==="touch")){let g=v=>{v.preventDefault()};c(m.target,"contextmenu",g,{once:!0}),c(window,"pointerup",()=>{setTimeout(()=>{d(m.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(m){u.current&&clearTimeout(u.current),r&&(m.pointerType==="mouse"||m.pointerType==="touch")&&r({...m,type:"longpressend"})}}),h=Oc(i&&!t?a:void 0);return{longPressProps:xt(f,h)}}function ss(e){const t=Vt(e);if(Jf()==="virtual"){let n=t.activeElement;oC(()=>{t.activeElement===n&&e.isConnected&&vi(e)})}else vi(e)}function LV(e){const t=la(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=e.ownerDocument.defaultView;let{display:a,visibility:u}=o(e);i=a!=="none"&&u!=="hidden"&&u!=="collapse"}return i}function NV(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 xC(e,t){return e.nodeName!=="#comment"&&LV(e)&&NV(e,t)&&(!e.parentElement||xC(e.parentElement,e))}const J3=b.createContext(null),$y="react-aria-focus-scope-restore";let Nt=null;function jV(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,o=b.useRef(null),a=b.useRef(null),u=b.useRef([]),{parentNode:c}=b.useContext(J3)||{},d=b.useMemo(()=>new wy({scopeRef:u}),[u]);zt(()=>{let m=c||mn.root;if(mn.getTreeNode(m.scopeRef)&&Nt&&!Qf(Nt,m.scopeRef)){let g=mn.getTreeNode(Nt);g&&(m=g)}m.addChild(d),mn.addNode(d)},[d,c]),zt(()=>{let m=mn.getTreeNode(u);m&&(m.contain=!!n)},[n]),zt(()=>{var m;let g=(m=o.current)===null||m===void 0?void 0:m.nextSibling,v=[],$=C=>C.stopPropagation();for(;g&&g!==a.current;)v.push(g),g.addEventListener($y,$),g=g.nextSibling;return u.current=v,()=>{for(let C of v)C.removeEventListener($y,$)}},[t]),qV(u,r,n),WV(u,n),YV(u,r,n),GV(u,i),b.useEffect(()=>{const m=Vt(u.current?u.current[0]:void 0).activeElement;let g=null;if(ui(m,u.current)){for(let v of mn.traverse())v.scopeRef&&ui(m,v.scopeRef.current)&&(g=v);g===mn.getTreeNode(u)&&(Nt=g.scopeRef)}},[u]),zt(()=>()=>{var m,g,v;let $=(v=(g=mn.getTreeNode(u))===null||g===void 0||(m=g.parent)===null||m===void 0?void 0:m.scopeRef)!==null&&v!==void 0?v:null;(u===Nt||Qf(u,Nt))&&(!$||mn.getTreeNode($))&&(Nt=$),mn.removeTreeNode(u)},[u]);let f=b.useMemo(()=>KV(u),[]),h=b.useMemo(()=>({focusManager:f,parentNode:d}),[d,f]);return b.createElement(J3.Provider,{value:h},b.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),t,b.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function KV(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:o,accept:a}=t,u=r||Vt(n[0]).activeElement,c=n[0].previousElementSibling,d=ja(n),f=wr(d,{tabbable:i,accept:a},n);f.currentNode=ui(u,n)?u:c;let h=f.nextNode();return!h&&o&&(f.currentNode=c,h=f.nextNode()),h&&xr(h,!0),h},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:o,accept:a}=t,u=r||Vt(n[0]).activeElement,c=n[n.length-1].nextElementSibling,d=ja(n),f=wr(d,{tabbable:i,accept:a},n);f.currentNode=ui(u,n)?u:c;let h=f.previousNode();return!h&&o&&(f.currentNode=c,h=f.previousNode()),h&&xr(h,!0),h},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,o=ja(n),a=wr(o,{tabbable:r,accept:i},n);a.currentNode=n[0].previousElementSibling;let u=a.nextNode();return u&&xr(u,!0),u},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,o=ja(n),a=wr(o,{tabbable:r,accept:i},n);a.currentNode=n[n.length-1].nextElementSibling;let u=a.previousNode();return u&&xr(u,!0),u}}}const eb=["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]"],UV=eb.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";eb.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const zV=eb.join(':not([hidden]):not([tabindex="-1"]),');function ja(e){return e[0].parentElement}function Kl(e){let t=mn.getTreeNode(Nt);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function WV(e,t){let n=b.useRef(void 0),r=b.useRef(void 0);zt(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=Vt(i?i[0]:void 0);let a=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!Kl(e)||d.isComposing)return;let f=o.activeElement,h=e.current;if(!h||!ui(f,h))return;let m=ja(h),g=wr(m,{tabbable:!0},h);if(!f)return;g.currentNode=f;let v=d.shiftKey?g.previousNode():g.nextNode();v||(g.currentNode=d.shiftKey?h[h.length-1].nextElementSibling:h[0].previousElementSibling,v=d.shiftKey?g.previousNode():g.nextNode()),d.preventDefault(),v&&xr(v,!0)},u=d=>{(!Nt||Qf(Nt,e))&&ui(d.target,e.current)?(Nt=e,n.current=d.target):Kl(e)&&!Qo(d.target,e)?n.current?n.current.focus():Nt&&Nt.current&&xy(Nt.current):Kl(e)&&(n.current=d.target)},c=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(o.activeElement&&Kl(e)&&!Qo(o.activeElement,e))if(Nt=e,o.body.contains(d.target)){var f;n.current=d.target,(f=n.current)===null||f===void 0||f.focus()}else Nt.current&&xy(Nt.current)})};return o.addEventListener("keydown",a,!1),o.addEventListener("focusin",u,!1),i==null||i.forEach(d=>d.addEventListener("focusin",u,!1)),i==null||i.forEach(d=>d.addEventListener("focusout",c,!1)),()=>{o.removeEventListener("keydown",a,!1),o.removeEventListener("focusin",u,!1),i==null||i.forEach(d=>d.removeEventListener("focusin",u,!1)),i==null||i.forEach(d=>d.removeEventListener("focusout",c,!1))}},[e,t]),zt(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function wC(e){return Qo(e)}function ui(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Qo(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of mn.traverse(mn.getTreeNode(t)))if(n&&ui(e,n.current))return!0;return!1}function HV(e){return Qo(e,Nt)}function Qf(e,t){var n;let r=(n=mn.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function xr(e,t=!1){if(e!=null&&!t)try{ss(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function DC(e,t=!0){let n=e[0].previousElementSibling,r=ja(e),i=wr(r,{tabbable:t},e);i.currentNode=n;let o=i.nextNode();return t&&!o&&(r=ja(e),i=wr(r,{tabbable:!1},e),i.currentNode=n,o=i.nextNode()),o}function xy(e,t=!0){xr(DC(e,t))}function GV(e,t){const n=b.useRef(t);b.useEffect(()=>{if(n.current){Nt=e;const r=Vt(e.current?e.current[0]:void 0);!ui(r.activeElement,Nt.current)&&e.current&&xy(e.current)}n.current=!1},[e])}function qV(e,t,n){zt(()=>{if(t||n)return;let r=e.current;const i=Vt(r?r[0]:void 0);let o=a=>{let u=a.target;ui(u,e.current)?Nt=e:wC(u)||(Nt=null)};return i.addEventListener("focusin",o,!1),r==null||r.forEach(a=>a.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),r==null||r.forEach(a=>a.removeEventListener("focusin",o,!1))}},[e,t,n])}function X3(e){let t=mn.getTreeNode(Nt);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function YV(e,t,n){const r=b.useRef(typeof document<"u"?Vt(e.current?e.current[0]:void 0).activeElement:null);zt(()=>{let i=e.current;const o=Vt(i?i[0]:void 0);if(!t||n)return;let a=()=>{(!Nt||Qf(Nt,e))&&ui(o.activeElement,e.current)&&(Nt=e)};return o.addEventListener("focusin",a,!1),i==null||i.forEach(u=>u.addEventListener("focusin",a,!1)),()=>{o.removeEventListener("focusin",a,!1),i==null||i.forEach(u=>u.removeEventListener("focusin",a,!1))}},[e,n]),zt(()=>{const i=Vt(e.current?e.current[0]:void 0);if(!t)return;let o=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!Kl(e)||a.isComposing)return;let u=i.activeElement;if(!Qo(u,e)||!X3(e))return;let c=mn.getTreeNode(e);if(!c)return;let d=c.nodeToRestore,f=wr(i.body,{tabbable:!0});f.currentNode=u;let h=a.shiftKey?f.previousNode():f.nextNode();if((!d||!i.body.contains(d)||d===i.body)&&(d=void 0,c.nodeToRestore=void 0),(!h||!Qo(h,e))&&d){f.currentNode=d;do h=a.shiftKey?f.previousNode():f.nextNode();while(Qo(h,e));a.preventDefault(),a.stopPropagation(),h?xr(h,!0):wC(d)?xr(d,!0):u.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[e,t,n]),zt(()=>{const i=Vt(e.current?e.current[0]:void 0);if(!t)return;let o=mn.getTreeNode(e);if(o){var a;return o.nodeToRestore=(a=r.current)!==null&&a!==void 0?a:void 0,()=>{let u=mn.getTreeNode(e);if(!u)return;let c=u.nodeToRestore;if(t&&c&&(i.activeElement&&Qo(i.activeElement,e)||i.activeElement===i.body&&X3(e))){let d=mn.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let f=d.getTreeNode(e);for(;f;){if(f.nodeToRestore&&f.nodeToRestore.isConnected){Q3(f.nodeToRestore);return}f=f.parent}for(f=d.getTreeNode(e);f;){if(f.scopeRef&&f.scopeRef.current&&mn.getTreeNode(f.scopeRef)){let h=DC(f.scopeRef.current,!0);Q3(h);return}f=f.parent}}})}}}},[e,t])}function Q3(e){e.dispatchEvent(new CustomEvent($y,{bubbles:!0,cancelable:!0}))&&xr(e)}function wr(e,t,n){let r=t!=null&&t.tabbable?zV:UV,i=Vt(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(o){var a;return!(t==null||(a=t.from)===null||a===void 0)&&a.contains(o)?NodeFilter.FILTER_REJECT:o.matches(r)&&xC(o)&&(!n||ui(o,n))&&(!(t!=null&&t.accept)||t.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}function Yh(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:o=t.tabbable,wrap:a=t.wrap,accept:u=t.accept}=n,c=i||Vt(r).activeElement,d=wr(r,{tabbable:o,accept:u});r.contains(c)&&(d.currentNode=c);let f=d.nextNode();return!f&&a&&(d.currentNode=r,f=d.nextNode()),f&&xr(f,!0),f},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:o=t.tabbable,wrap:a=t.wrap,accept:u=t.accept}=n,c=i||Vt(r).activeElement,d=wr(r,{tabbable:o,accept:u});if(r.contains(c))d.currentNode=c;else{let h=Jm(d);return h&&xr(h,!0),h??null}let f=d.previousNode();if(!f&&a){d.currentNode=r;let h=Jm(d);if(!h)return null;f=h}return f&&xr(f,!0),f??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:o=t.accept}=n,u=wr(r,{tabbable:i,accept:o}).nextNode();return u&&xr(u,!0),u},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:o=t.accept}=n,a=wr(r,{tabbable:i,accept:o}),u=Jm(a);return u&&xr(u,!0),u??null}}}function Jm(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class tb{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let o=new wy({scopeRef:t});i.addChild(o),o.parent=i,this.fastMap.set(t,o),r&&(o.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let o of this.traverse())o!==n&&n.nodeToRestore&&o.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&ui(o.nodeToRestore,n.scopeRef.current)&&(o.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(o=>r&&r.addChild(o))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new tb;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 wy({scopeRef:null}),this.fastMap.set(null,this.root)}}class wy{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 mn=new tb,ZV=b.createContext(null);function JV(e){let t=b.useContext(ZV)||{};aC(t,e);let{ref:n,...r}=t;return r}function nb(e,t){let{focusProps:n}=_V(e),{keyboardProps:r}=vC(e),i=xt(n,r),o=JV(t),a=e.isDisabled?{}:o,u=b.useRef(e.autoFocus);return b.useEffect(()=>{u.current&&t.current&&ss(t.current),u.current=!1},[t]),{focusableProps:xt({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},a)}}const XV=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),QV=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function eL(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 XV.has(n.script)}let t=e.split("-")[0];return QV.has(t)}const tL=Symbol.for("react-aria.i18n.locale");function EC(){let e=typeof window<"u"&&window[tL]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:eL(e)?"rtl":"ltr"}}let Dy=EC(),Ul=new Set;function e$(){Dy=EC();for(let e of Ul)e(Dy)}function nL(){let e=qv(),[t,n]=b.useState(Dy);return b.useEffect(()=>(Ul.size===0&&window.addEventListener("languagechange",e$),Ul.add(n),()=>{Ul.delete(n),Ul.size===0&&window.removeEventListener("languagechange",e$)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const rL=b.createContext(null);function Qn(){let e=nL();return b.useContext(rL)||e}const iL=Symbol.for("react-aria.i18n.locale"),oL=Symbol.for("react-aria.i18n.strings");let zs;class ma{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=aL(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[iL];if(zs===void 0){let i=window[oL];if(!i)return null;zs={};for(let o in i)zs[o]=new ma({[n]:i[o]},n)}let r=zs==null?void 0:zs[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 aL(e,t,n="en-US"){if(t[e])return t[e];let r=sL(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function sL(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const t$=new Map,n$=new Map;class CC{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let o=this.locale+":"+r,a=t$.get(o);a||(a=new Intl.PluralRules(this.locale,{type:r}),t$.set(o,a));let u=a.select(t);return i=n[u]||n.other,typeof i=="function"?i():i}number(t){let n=n$.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),n$.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 r$=new WeakMap;function uL(e){let t=r$.get(e);return t||(t=new ma(e),r$.set(e,t)),t}function SC(e,t){return t&&ma.getGlobalDictionaryForPackage(t)||uL(e)}function Ji(e,t){let{locale:n}=Qn(),r=SC(e,t);return b.useMemo(()=>new CC(n,r),[n,r])}function cu(e,t){return e-t*Math.floor(e/t)}const TC=1721426;function Ka(e,t,n,r){t=kc(e,t);let i=t-1,o=-2;return n<=2?o=0:ea(t)&&(o=-1),TC-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+o+r)}function ea(e){return e%4===0&&(e%100!==0||e%400===0)}function kc(e,t){return e==="BC"?1-t:t}function Zh(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const lL={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 dr{fromJulianDay(t){let n=t,r=n-TC,i=Math.floor(r/146097),o=cu(r,146097),a=Math.floor(o/36524),u=cu(o,36524),c=Math.floor(u/1461),d=cu(u,1461),f=Math.floor(d/365),h=i*400+a*100+c*4+f+(a!==4&&f!==4?1:0),[m,g]=Zh(h),v=n-Ka(m,g,1,1),$=2;n<Ka(m,g,3,1)?$=0:ea(g)&&($=1);let C=Math.floor(((v+$)*12+373)/367),x=n-Ka(m,g,C,1)+1;return new hn(m,g,C,x)}toJulianDay(t){return Ka(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return lL[ea(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return ea(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 cL={"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 xn(e,t){return t=Qt(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function Ey(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function AC(e,t){return xn(e,Jh(t))}function rb(e,t){let n=e.calendar.toJulianDay(e),r=Math.ceil(n+1-gL(t))%7;return r<0&&(r+=7),r}function PC(e){return go(Date.now(),e)}function Jh(e){return cr(PC(e))}function RC(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function _C(e,t){return i$(e)-i$(t)}function i$(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let Xm=null;function Bc(){return Xm==null&&(Xm=new Intl.DateTimeFormat().resolvedOptions().timeZone),Xm}function Ic(e){return e.subtract({days:e.day-1})}function Cy(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function dL(e){return Ic(e.subtract({months:e.month-1}))}function fL(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function hL(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function dc(e,t){let n=rb(e,t);return e.subtract({days:n})}function pL(e,t){return dc(e,t).add({days:6})}const o$=new Map;function mL(e){if(Intl.Locale){let n=o$.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&o$.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function gL(e){let t=mL(e);return t&&cL[t]||0}function yL(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((rb(Ic(e),t)+n)/7)}function ib(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function ob(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function Tu(e){e=Qt(e,new dr);let t=kc(e.era,e.year);return OC(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function OC(e,t,n,r,i,o,a){let u=new Date;return u.setUTCHours(r,i,o,a),u.setUTCFullYear(e,t-1,n),u.getTime()}function Sy(e,t){if(t==="UTC")return 0;if(e>0&&t===Bc())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:o,minute:a,second:u}=MC(e,t);return OC(n,r,i,o,a,u,0)-Math.floor(e/1e3)*1e3}const a$=new Map;function MC(e,t){let n=a$.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"}),a$.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let o of r)o.type!=="literal"&&(i[o.type]=o.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const s$=864e5;function vL(e,t,n,r){return(n===r?[n]:[n,r]).filter(o=>bL(e,t,o))}function bL(e,t,n){let r=MC(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 mo(e,t,n="compatible"){let r=Di(e);if(t==="UTC")return Tu(r);if(t===Bc()&&n==="compatible"){r=Qt(r,new dr);let c=new Date,d=kc(r.era,r.year);return c.setFullYear(d,r.month-1,r.day),c.setHours(r.hour,r.minute,r.second,r.millisecond),c.getTime()}let i=Tu(r),o=Sy(i-s$,t),a=Sy(i+s$,t),u=vL(r,t,i-o,i-a);if(u.length===1)return u[0];if(u.length>1)switch(n){case"compatible":case"earlier":return u[0];case"later":return u[u.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-o,i-a);case"compatible":case"later":return Math.max(i-o,i-a);case"reject":throw new RangeError("No such absolute time found")}}function FC(e,t,n="compatible"){return new Date(mo(e,t,n))}function go(e,t){let n=Sy(e,t),r=new Date(e+n),i=r.getUTCFullYear(),o=r.getUTCMonth()+1,a=r.getUTCDate(),u=r.getUTCHours(),c=r.getUTCMinutes(),d=r.getUTCSeconds(),f=r.getUTCMilliseconds();return new hc(i<1?"BC":"AD",i<1?-i+1:i,o,a,t,n,u,c,d,f)}function cr(e){return new hn(e.calendar,e.era,e.year,e.month,e.day)}function Di(e,t){let n=0,r=0,i=0,o=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:o}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:o}=t),new eh(e.calendar,e.era,e.year,e.month,e.day,n,r,i,o)}function u$(e){return new Vc(e.hour,e.minute,e.second,e.millisecond)}function Qt(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,us(r),r}function kC(e,t,n){if(e instanceof hc)return e.timeZone===t?e:xL(e,t);let r=mo(e,t,n);return go(r,t)}function $L(e){let t=Tu(e)-e.offset;return new Date(t)}function xL(e,t){let n=Tu(e)-e.offset;return Qt(go(n,t),e.calendar)}const Sl=36e5;function Xh(e,t){let n=e.copy(),r="hour"in n?LC(n,t):0;Ty(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Ay(n),BC(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,wL(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var o,a;let c=(o=(a=n.calendar).isInverseEra)===null||o===void 0?void 0:o.call(a,n);n.year=i,n.month=c?1:n.calendar.getMonthsInYear(n),n.day=c?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let u=n.calendar.getMonthsInYear(n);return n.month>u&&(n.month=u,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function Ty(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function Ay(e){for(;e.month<1;)Ty(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Ty(e,1)}function wL(e){for(;e.day<1;)e.month--,Ay(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Ay(e)}function BC(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 us(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),BC(e)}function ab(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function IC(e,t){return Xh(e,ab(t))}function sb(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),us(n),n}function fc(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),VC(n),n}function DL(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=af(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=af(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=af(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=af(e.hour,24),t}function VC(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 af(e,t){let n=e%t;return n<0&&(n+=t),n}function LC(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,DL(e)}function NC(e,t){let n=e.copy();return LC(n,t),n}function EL(e,t){return NC(e,ab(t))}function ub(e,t,n,r){let i=e.copy();switch(t){case"era":{let u=e.calendar.getEras(),c=u.indexOf(e.era);if(c<0)throw new Error("Invalid era: "+e.era);c=yo(c,n,0,u.length-1,r==null?void 0:r.round),i.era=u[c],us(i);break}case"year":var o,a;!((o=(a=i.calendar).isInverseEra)===null||o===void 0)&&o.call(a,i)&&(n=-n),i.year=yo(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=yo(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=yo(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),us(i),i}function lb(e,t,n,r){let i=e.copy();switch(t){case"hour":{let o=e.hour,a=0,u=23;if((r==null?void 0:r.hourCycle)===12){let c=o>=12;a=c?12:0,u=c?23:11}i.hour=yo(o,n,a,u,r==null?void 0:r.round);break}case"minute":i.minute=yo(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=yo(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=yo(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function yo(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let o=Math.abs(t);t>0?e=Math.ceil(e/o)*o:e=Math.floor(e/o)*o,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function jC(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=Xh(Di(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=mo(i,e.timeZone)}else n=Tu(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=go(n,e.timeZone);return Qt(r,e.calendar)}function CL(e,t){return jC(e,ab(t))}function SL(e,t,n,r){switch(t){case"hour":{let i=0,o=23;if((r==null?void 0:r.hourCycle)===12){let v=e.hour>=12;i=v?12:0,o=v?23:11}let a=Di(e),u=Qt(fc(a,{hour:i}),new dr),c=[mo(u,e.timeZone,"earlier"),mo(u,e.timeZone,"later")].filter(v=>go(v,e.timeZone).day===u.day)[0],d=Qt(fc(a,{hour:o}),new dr),f=[mo(d,e.timeZone,"earlier"),mo(d,e.timeZone,"later")].filter(v=>go(v,e.timeZone).day===d.day).pop(),h=Tu(e)-e.offset,m=Math.floor(h/Sl),g=h%Sl;return h=yo(m,n,Math.floor(c/Sl),Math.floor(f/Sl),r==null?void 0:r.round)*Sl+g,Qt(go(h,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return lb(e,t,n,r);case"era":case"year":case"month":case"day":{let i=ub(Di(e),t,n,r),o=mo(i,e.timeZone);return Qt(go(o,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function TL(e,t,n){let r=Di(e),i=fc(sb(r,t),t);if(i.compare(r)===0)return e;let o=mo(i,e.timeZone,n);return Qt(go(o,e.timeZone),e.calendar)}const AL=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/;function PL(e){let t=e.match(AL);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new hn(Qm(t[1],0,9999),Qm(t[2],1,12),1);return n.day=Qm(t[3],0,n.calendar.getDaysInMonth(n)),n}function Qm(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 KC(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 UC(e){let t=Qt(e,new dr),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 zC(e){return`${UC(e)}T${KC(e)}`}function RL(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 _L(e){return`${zC(e)}${RL(e.offset)}[${e.timeZone}]`}function cb(e){let t=typeof e[0]=="object"?e.shift():new dr,n;if(typeof e[0]=="string")n=e.shift();else{let a=t.getEras();n=a[a.length-1]}let r=e.shift(),i=e.shift(),o=e.shift();return[t,n,r,i,o]}var OL=new WeakMap;class hn{copy(){return this.era?new hn(this.calendar,this.era,this.year,this.month,this.day):new hn(this.calendar,this.year,this.month,this.day)}add(t){return Xh(this,t)}subtract(t){return IC(this,t)}set(t){return sb(this,t)}cycle(t,n,r){return ub(this,t,n,r)}toDate(t){return FC(this,t)}toString(){return UC(this)}compare(t){return RC(this,t)}constructor(...t){Mc(this,OL,{writable:!0,value:void 0});let[n,r,i,o,a]=cb(t);this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=a,us(this)}}var ML=new WeakMap;class Vc{copy(){return new Vc(this.hour,this.minute,this.second,this.millisecond)}add(t){return NC(this,t)}subtract(t){return EL(this,t)}set(t){return fc(this,t)}cycle(t,n,r){return lb(this,t,n,r)}toString(){return KC(this)}compare(t){return _C(this,t)}constructor(t=0,n=0,r=0,i=0){Mc(this,ML,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,VC(this)}}var FL=new WeakMap;class eh{copy(){return this.era?new eh(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new eh(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Xh(this,t)}subtract(t){return IC(this,t)}set(t){return sb(fc(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return ub(this,t,n,r);default:return lb(this,t,n,r)}}toDate(t,n){return FC(this,t,n)}toString(){return zC(this)}compare(t){let n=RC(this,t);return n===0?_C(this,Di(t)):n}constructor(...t){Mc(this,FL,{writable:!0,value:void 0});let[n,r,i,o,a]=cb(t);this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=a,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,us(this)}}var kL=new WeakMap;class hc{copy(){return this.era?new hc(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new hc(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return jC(this,t)}subtract(t){return CL(this,t)}set(t,n){return TL(this,t,n)}cycle(t,n,r){return SL(this,t,n,r)}toDate(){return $L(this)}toString(){return _L(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-kC(t,this.timeZone).toDate().getTime()}constructor(...t){Mc(this,kL,{writable:!0,value:void 0});let[n,r,i,o,a]=cb(t),u=t.shift(),c=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=a,this.timeZone=u,this.offset=c,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,us(this)}}const du=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],BL=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Pf=[1867,1911,1925,1988,2018],Zo=["meiji","taisho","showa","heisei","reiwa"];function l$(e){const t=du.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?du.length-1:t===0?0:t-1}function eg(e){let t=Pf[Zo.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new hn(e.year+t,e.month,e.day)}class IL extends dr{fromJulianDay(t){let n=super.fromJulianDay(t),r=l$(n);return new hn(this,Zo[r],n.year-Pf[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(eg(t))}balanceDate(t){let n=eg(t),r=l$(n);Zo[r]!==t.era&&(t.era=Zo[r],t.year=n.year-Pf[r]),this.constrainDate(t)}constrainDate(t){let n=Zo.indexOf(t.era),r=BL[n];if(r!=null){let[i,o,a]=r,u=i-Pf[n];t.year=Math.max(1,Math.min(u,t.year)),t.year===u&&(t.month=Math.min(o,t.month),t.month===o&&(t.day=Math.min(a,t.day)))}if(t.year===1&&n>=0){let[,i,o]=du[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(o,t.day))}}getEras(){return Zo}getYearsInEra(t){let n=Zo.indexOf(t.era),r=du[n],i=du[n+1];if(i==null)return 9999-r[0]+1;let o=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&o++,o}getDaysInMonth(t){return super.getDaysInMonth(eg(t))}getMinimumMonthInYear(t){let n=c$(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=c$(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function c$(e){if(e.year===1){let t=Zo.indexOf(e.era);return du[t]}}const WC=-543;class VL extends dr{fromJulianDay(t){let n=super.fromJulianDay(t),r=kc(n.era,n.year);return new hn(this,r-WC,n.month,n.day)}toJulianDay(t){return super.toJulianDay(d$(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(d$(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function d$(e){let[t,n]=Zh(e.year+WC);return new hn(t,n,e.month,e.day)}const th=1911;function HC(e){return e.era==="minguo"?e.year+th:1-e.year+th}function f$(e){let t=e-th;return t>0?["minguo",t]:["before_minguo",1-t]}class LL extends dr{fromJulianDay(t){let n=super.fromJulianDay(t),r=kc(n.era,n.year),[i,o]=f$(r);return new hn(this,i,o,n.month,n.day)}toJulianDay(t){return super.toJulianDay(h$(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=f$(HC(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(h$(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-th}constructor(...t){super(...t),this.identifier="roc"}}function h$(e){let[t,n]=Zh(HC(e));return new hn(t,n,e.month,e.day)}const p$=1948320,m$=[0,31,62,93,124,155,186,216,246,276,306,336];class NL{fromJulianDay(t){let n=t-p$,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),o=n-i,a=o<216?Math.floor(o/31):Math.floor((o-6)/30),u=o-m$[a]+1;return new hn(this,r,a+1,u)}toJulianDay(t){let n=p$-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=m$[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||cu(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const tg=78,g$=80;class jL extends dr{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-tg,i=t-Ka(n.era,n.year,1,1),o;i<g$?(r--,o=ea(n.year-1)?31:30,i+=o+155+90+10):(o=ea(n.year)?31:30,i-=g$);let a,u;if(i<o)a=1,u=i+1;else{let c=i-o;c<155?(a=Math.floor(c/31)+2,u=c%31+1):(c-=155,a=Math.floor(c/30)+7,u=c%30+1)}return new hn(this,r,a,u)}toJulianDay(t){let n=t.year+tg,[r,i]=Zh(n),o,a;return ea(i)?(o=31,a=Ka(r,i,3,21)):(o=30,a=Ka(r,i,3,22)),t.month===1?a+t.day-1:(a+=o+Math.min(t.month-2,5)*31,t.month>=8&&(a+=(t.month-7)*30),a+=t.day-1,a)}getDaysInMonth(t){return t.month===1&&ea(t.year+tg)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const nh=1948440,y$=1948439,ei=1300,Ws=1600,KL=460322;function rh(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function GC(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+rh(t,r,1,1)))/29.5)+1),o=n-rh(t,r,i,1)+1;return new hn(e,r,i,o)}function v$(e){return(14+11*e)%30<11}class db{fromJulianDay(t){return GC(this,nh,t)}toJulianDay(t){return rh(nh,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&v$(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return v$(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class UL extends db{fromJulianDay(t){return GC(this,y$,t)}toJulianDay(t){return rh(y$,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const zL="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Py,fu;function Rf(e){return KL+fu[e-ei]}function zl(e,t){let n=e-ei,r=1<<11-(t-1);return Py[n]&r?30:29}function b$(e,t){let n=Rf(e);for(let r=1;r<t;r++)n+=zl(e,r);return n}function $$(e){return fu[e+1-ei]-fu[e-ei]}class WL extends db{fromJulianDay(t){let n=t-nh,r=Rf(ei),i=Rf(Ws);if(n<r||n>i)return super.fromJulianDay(t);{let o=ei-1,a=1,u=1;for(;u>0;){o++,u=n-Rf(o)+1;let c=$$(o);if(u===c){a=12;break}else if(u<c){let d=zl(o,a);for(a=1;u>d;)u-=d,a++,d=zl(o,a);break}}return new hn(this,o,a,n-b$(o,a)+1)}}toJulianDay(t){return t.year<ei||t.year>Ws?super.toJulianDay(t):nh+b$(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<ei||t.year>Ws?super.getDaysInMonth(t):zl(t.year,t.month)}getDaysInYear(t){return t.year<ei||t.year>Ws?super.getDaysInYear(t):$$(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Py||(Py=new Uint16Array(Uint8Array.from(atob(zL),t=>t.charCodeAt(0)).buffer)),!fu){fu=new Uint32Array(Ws-ei+1);let t=0;for(let n=ei;n<=Ws;n++){fu[n-ei]=t;for(let r=1;r<=12;r++)t+=zl(n,r)}}}}const x$=347997,qC=1080,YC=24*qC,HL=29,GL=12*qC+793,qL=HL*YC+GL;function Va(e){return cu(e*7+1,19)<7}function _f(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return cu(3*(r+1),7)<3&&(r+=1),r}function YL(e){let t=_f(e-1),n=_f(e);return _f(e+1)-n===356?2:n-t===382?1:0}function Xl(e){return _f(e)+YL(e)}function ZC(e){return Xl(e+1)-Xl(e)}function ZL(e){let t=ZC(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function sf(e,t){if(t>=6&&!Va(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=ZL(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?Va(e)?30:0:30}class JL{fromJulianDay(t){let n=t-x$,r=n*YC/qL,i=Math.floor((19*r+234)/235)+1,o=Xl(i),a=Math.floor(n-o);for(;a<1;)i--,o=Xl(i),a=Math.floor(n-o);let u=1,c=0;for(;c<a;)c+=sf(i,u),u++;u--,c-=sf(i,u);let d=a-c;return new hn(this,i,u,d)}toJulianDay(t){let n=Xl(t.year);for(let r=1;r<t.month;r++)n+=sf(t.year,r);return n+t.day+x$}getDaysInMonth(t){return sf(t.year,t.month)}getMonthsInYear(t){return Va(t.year)?13:12}getDaysInYear(t){return ZC(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(Va(n.year)&&!Va(t.year)&&n.month>6?t.month--:!Va(n.year)&&Va(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const Ry=1723856,w$=1824665,_y=5500;function ih(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function fb(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-ih(e,n,1,1))/30),i=t+1-ih(e,n,r,1);return[n,r,i]}function JC(e){return Math.floor(e%4/3)}function XC(e,t){return t%13!==0?30:JC(e)+5}class hb{fromJulianDay(t){let[n,r,i]=fb(Ry,t),o="AM";return n<=0&&(o="AA",n+=_y),new hn(this,o,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=_y),ih(Ry,n,t.month,t.day)}getDaysInMonth(t){return XC(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+JC(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class XL extends hb{fromJulianDay(t){let[n,r,i]=fb(Ry,t);return n+=_y,new hn(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class QL extends hb{fromJulianDay(t){let[n,r,i]=fb(w$,t),o="CE";return n<=0&&(o="BCE",n=1-n),new hn(this,o,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),ih(w$,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),XC(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 eN(e){switch(e){case"buddhist":return new VL;case"ethiopic":return new hb;case"ethioaa":return new XL;case"coptic":return new QL;case"hebrew":return new JL;case"indian":return new jL;case"islamic-civil":return new db;case"islamic-tbla":return new UL;case"islamic-umalqura":return new WL;case"japanese":return new IL;case"persian":return new NL;case"roc":return new LL;case"gregory":default:return new dr}}let ng=new Map;class ii{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),i=this.formatter.formatToParts(n);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return rN()&&(this.resolvedHourCycle||(this.resolvedHourCycle=iN(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=QC(t,n),this.options=n}}const tN={true:{ja:"h11"},false:{}};function QC(e,t={}){if(typeof t.hour12=="boolean"&&nN()){t={...t};let i=tN[String(t.hour12)][e.split("-")[0]],o=t.hour12?"h12":"h23";t.hourCycle=i??o,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(ng.has(n))return ng.get(n);let r=new Intl.DateTimeFormat(e,t);return ng.set(n,r),r}let rg=null;function nN(){return rg==null&&(rg=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),rg}let ig=null;function rN(){return ig==null&&(ig=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),ig}function iN(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=QC(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(o=>o.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(o=>o.type==="hour").value,10);if(r===0&&i===23)return"h23";if(r===24&&i===23)return"h24";if(r===0&&i===11)return"h11";if(r===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}function Vi(e){e=uC(e??{},oN);let{locale:t}=Qn();return b.useMemo(()=>new ii(t,e),[t,e])}function oN(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 og=new Map,Oy=!1;try{Oy=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let oh=!1;try{oh=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const eS={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class tS{format(t){let n="";if(!Oy&&this.options.signDisplay!=null?n=sN(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!oh){var r;let{unit:i,unitDisplay:o="short",locale:a}=this.resolvedOptions();if(!i)return n;let u=(r=eS[i])===null||r===void 0?void 0:r[o];n+=u[a]||u.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(n);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Oy&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!oh&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=aN(t,n),this.options=n}}function aN(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!oh){var r;let{unit:a,unitDisplay:u="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=eS[a])===null||r===void 0)&&r[u]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${u}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((a,u)=>a[0]<u[0]?-1:1).join():"");if(og.has(i))return og.get(i);let o=new Intl.NumberFormat(e,t);return og.set(i,o),o}function sN(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=e.format(-n),o=e.format(n),a=i.replace(o,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(o,"!!!").replace(a,"+").replace("!!!",o)}else return e.format(n)}}const uN=new RegExp("^.*\\(.*\\).*$"),lN=["latn","arab","hanidec","deva","beng"];class nS{parse(t){return ag(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return ag(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return ag(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const D$=new Map;function ag(e,t,n){let r=E$(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of lN)if(i!==r.options.numberingSystem){let o=E$(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(o.isValidPartialNumber(n))return o}}return r}function E$(e,t){let n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():""),r=D$.get(n);return r||(r=new cN(e,t),D$.set(n,r)),r}class cN{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=uf(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let a=n.indexOf("-");n=n.replace("-","");let u=n.indexOf(".");u===-1&&(u=n.length),n=n.replace(".",""),u-2===0?n=`0.${n}`:u-2===-1?n=`0.0${n}`:u-2===-2?n="0.00":n=`${n.slice(0,u-2)}.${n.slice(u-2)}`,a>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var i,o;let a={...this.options,style:"decimal",minimumFractionDigits:Math.min(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)+2,20),maximumFractionDigits:Math.min(((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)+2,20)};return new nS(this.locale,a).parse(new tS(this.locale,a).format(r))}return this.options.currencySign==="accounting"&&uN.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=uf(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=uf(t,"."," ")),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=uf(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=fN(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 C$=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),dN=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function fN(e,t,n,r){var i,o,a,u;let c=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),d=c.formatToParts(-10000.111),f=c.formatToParts(10000.111),h=dN.map(O=>c.formatToParts(O));var m;let g=(m=(i=d.find(O=>O.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&m!==void 0?m:"-",v=(o=f.find(O=>O.type==="plusSign"))===null||o===void 0?void 0:o.value;!v&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(v="+");let C=(a=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(O=>O.type==="decimal"))===null||a===void 0?void 0:a.value,x=(u=d.find(O=>O.type==="group"))===null||u===void 0?void 0:u.value,y=d.filter(O=>!C$.has(O.type)).map(O=>S$(O.value)),D=h.flatMap(O=>O.filter(F=>!C$.has(F.type)).map(F=>S$(F.value))),P=[...new Set([...y,...D])].sort((O,F)=>F.length-O.length),E=P.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${P.join("|")}|[\\p{White_Space}]`,"gu"),T=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),k=new Map(T.map((O,F)=>[O,F])),S=new RegExp(`[${T.join("")}]`,"g");return{minusSign:g,plusSign:v,decimal:C,group:x,literals:E,numeral:S,index:O=>String(k.get(O))}}function uf(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function S$(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function hN(e={}){let{locale:t}=Qn();return b.useMemo(()=>new tS(t,e),[t,e])}let sg=new Map;function rS(e){let{locale:t}=Qn(),n=t+(e?Object.entries(e).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(sg.has(n))return sg.get(n);let r=new Intl.Collator(t,e);return sg.set(n,r),r}function iS(e){let t=rS({usage:"search",...e}),n=b.useCallback((o,a)=>a.length===0?!0:(o=o.normalize("NFC"),a=a.normalize("NFC"),t.compare(o.slice(0,a.length),a)===0),[t]),r=b.useCallback((o,a)=>a.length===0?!0:(o=o.normalize("NFC"),a=a.normalize("NFC"),t.compare(o.slice(-a.length),a)===0),[t]),i=b.useCallback((o,a)=>{if(a.length===0)return!0;o=o.normalize("NFC"),a=a.normalize("NFC");let u=0,c=a.length;for(;u+c<=o.length;u++){let d=o.slice(u,u+c);if(t.compare(a,d)===0)return!0}return!1},[t]);return b.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function pN(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:a,onPressUp:u,onPressChange:c,preventFocusOnPress:d,allowFocusWhenDisabled:f,onClick:h,href:m,target:g,rel:v,type:$="button"}=e,C;n==="button"?C={type:$,disabled:r}:C={role:"button",tabIndex:r?void 0:0,href:n==="a"&&!r?m:void 0,target:n==="a"?g:void 0,type:n==="input"?$:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?v:void 0};let{pressProps:x,isPressed:y}=Fc({onPressStart:o,onPressEnd:a,onPressChange:c,onPress:i,onPressUp:u,isDisabled:r,preventFocusOnPress:d,ref:t}),{focusableProps:D}=nb(e,t);f&&(D.tabIndex=r?-1:D.tabIndex);let P=xt(D,x,So(e,{labelable:!0}));return{isPressed:y,buttonProps:xt(C,P,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:E=>{h&&(h(E),console.warn("onClick is deprecated, please use onPress"))}})}}var oS={};oS={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 aS={};aS={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 sS={};sS={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 uS={};uS={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 lS={};lS={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 cS={};cS={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 dS={};dS={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 fS={};fS={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 hS={};hS={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 pS={};pS={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 mS={};mS={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 gS={};gS={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 yS={};yS={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 vS={};vS={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 bS={};bS={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 $S={};$S={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 xS={};xS={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 wS={};wS={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 DS={};DS={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 ES={};ES={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 CS={};CS={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 SS={};SS={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 TS={};TS={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 AS={};AS={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 PS={};PS={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 RS={};RS={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 _S={};_S={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 OS={};OS={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 MS={};MS={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 FS={};FS={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 kS={};kS={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 BS={};BS={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 IS={};IS={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 VS={};VS={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 Lc={};Lc={"ar-AE":oS,"bg-BG":aS,"cs-CZ":sS,"da-DK":uS,"de-DE":lS,"el-GR":cS,"en-US":dS,"es-ES":fS,"et-EE":hS,"fi-FI":pS,"fr-FR":mS,"he-IL":gS,"hr-HR":yS,"hu-HU":vS,"it-IT":bS,"ja-JP":$S,"ko-KR":xS,"lt-LT":wS,"lv-LV":DS,"nb-NO":ES,"nl-NL":CS,"pl-PL":SS,"pt-BR":TS,"pt-PT":AS,"ro-RO":PS,"ru-RU":RS,"sk-SK":_S,"sl-SI":OS,"sr-SP":MS,"sv-SE":FS,"tr-TR":kS,"uk-UA":BS,"zh-CN":IS,"zh-TW":VS};function LS(e){return e&&e.__esModule?e.default:e}const pb=new WeakMap;function pc(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function mN(e){let t=Ji(LS(Lc),"@react-aria/calendar"),n,r;var i;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:n=r=(i=e.value)!==null&&i!==void 0?i:void 0;let o=Vi({weekday:"long",month:"long",year:"numeric",day:"numeric",era:pc(n)||pc(r),timeZone:e.timeZone}),a="anchorDate"in e?e.anchorDate:null;return b.useMemo(()=>{if(!a&&n&&r)if(xn(n,r)){let u=o.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:u})}else{let u=Fy(o,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:u})}return""},[n,r,a,e.timeZone,t,o])}function My(e,t,n,r){let i=Ji(LS(Lc),"@react-aria/calendar"),o=pc(e)||pc(t),a=Vi({month:"long",year:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n}),u=Vi({month:"long",year:"numeric",day:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n});return b.useMemo(()=>{if(xn(e,Ic(e))){if(xn(t,Cy(e)))return a.format(e.toDate(n));if(xn(t,Cy(t)))return r?Fy(a,i,e,t,n):a.formatRange(e.toDate(n),t.toDate(n))}return r?Fy(u,i,e,t,n):u.formatRange(e.toDate(n),t.toDate(n))},[e,t,a,u,i,n,r])}function Fy(e,t,n,r,i){let o=e.formatRangeToParts(n.toDate(i),r.toDate(i)),a=-1;for(let d=0;d<o.length;d++){let f=o[d];if(f.source==="shared"&&f.type==="literal")a=d;else if(f.source==="endRange")break}let u="",c="";for(let d=0;d<o.length;d++)d<a?u+=o[d].value:d>a&&(c+=o[d].value);return t.format("dateRange",{startDate:u,endDate:c})}const NS=7e3;let Xr=null;function hu(e,t="assertive",n=NS){Xr?Xr.announce(e,t,n):(Xr=new yN,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Xr.announce(e,t,n):setTimeout(()=>{Xr!=null&&Xr.isAttached()&&(Xr==null||Xr.announce(e,t,n))},100))}function gN(e){Xr&&Xr.clear(e)}class yN{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=NS){var i,o;if(!this.node)return;let a=document.createElement("div");typeof t=="object"?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",t["aria-labelledby"])):a.textContent=t,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(a):(o=this.politeLog)===null||o===void 0||o.appendChild(a),t!==""&&setTimeout(()=>{a.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function vN(e){return e&&e.__esModule?e.default:e}function jS(e,t){let n=Ji(vN(Lc),"@react-aria/calendar"),r=So(e),i=My(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),o=My(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);N3(()=>{t.isFocused||hu(o)},[o]);let a=mN(t);N3(()=>{a&&hu(a,"polite",4e3)},[a]);let u=Eu([!!e.errorMessage,e.isInvalid,e.validationState]);pb.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:u,selectedDateDescription:a});let[c,d]=b.useState(!1),f=e.isDisabled||t.isNextVisibleRangeInvalid();f&&c&&(d(!1),t.setFocused(!0));let[h,m]=b.useState(!1),g=e.isDisabled||t.isPreviousVisibleRangeInvalid();g&&h&&(m(!1),t.setFocused(!0));let v=Cu({id:e.id,"aria-label":[e["aria-label"],o].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:xt(r,v,{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:f,onFocusChange:d},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:g,onFocusChange:m},errorMessageProps:{id:u},title:i}}function bN(e,t){return jS(e,t)}function $N(e,t,n){let r=jS(e,t),i=b.useRef(!1),o=b.useRef(typeof window<"u"?window:null);return ia(o,"pointerdown",u=>{i.current=u.width===0&&u.height===0}),ia(o,"pointerup",u=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let c=u.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(c)||!c.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=u=>{n.current&&(!u.relatedTarget||!n.current.contains(u.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},ia(n,"touchmove",u=>{t.isDragging&&u.preventDefault()},{passive:!1,capture:!0}),r}function xN(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end}=e,{direction:i}=Qn(),o=g=>{switch(g.key){case"Enter":case" ":g.preventDefault(),t.selectFocusedDate();break;case"PageUp":g.preventDefault(),g.stopPropagation(),t.focusPreviousSection(g.shiftKey);break;case"PageDown":g.preventDefault(),g.stopPropagation(),t.focusNextSection(g.shiftKey);break;case"End":g.preventDefault(),g.stopPropagation(),t.focusSectionEnd();break;case"Home":g.preventDefault(),g.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":g.preventDefault(),g.stopPropagation(),i==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":g.preventDefault(),g.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":g.preventDefault(),g.stopPropagation(),i==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":g.preventDefault(),g.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(g.preventDefault(),t.setAnchorDate(null));break}},a=My(n,r,t.timeZone,!0),{ariaLabel:u,ariaLabelledBy:c}=pb.get(t),d=Cu({"aria-label":[u,a].filter(Boolean).join(", "),"aria-labelledby":c}),f=Vi({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:h}=Qn(),m=b.useMemo(()=>{let g=dc(Jh(t.timeZone),h);return[...new Array(7).keys()].map(v=>{let C=g.add({days:v}).toDate(t.timeZone);return f.format(C)})},[h,t.timeZone,f]);return{gridProps:xt(d,{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:m}}function wN(e){return e&&e.__esModule?e.default:e}function DN(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:o,selectedDateDescription:a}=pb.get(t),u=Ji(wN(Lc),"@react-aria/calendar"),c=Vi({weekday:"long",day:"numeric",month:"long",year:"numeric",era:pc(r),timeZone:t.timeZone}),d=t.isSelected(r),f=t.isCellFocused(r);i=i||t.isCellDisabled(r);let h=t.isCellUnavailable(r),m=!i&&!h,g=t.isValueInvalid&&!!("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&xn(t.value,r));g&&(d=!0),r=uC(r,Ey);let v=b.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),$=AC(r,t.timeZone),C=b.useMemo(()=>{let F="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(xn(r,t.value.start)||xn(r,t.value.end))&&(F=a+", "),F+=c.format(v),$?F=u.format(d?"todayDateSelected":"todayDate",{date:F}):d&&(F=u.format("dateSelected",{date:F})),t.minValue&&xn(r,t.minValue)?F+=", "+u.format("minimumDate"):t.maxValue&&xn(r,t.maxValue)&&(F+=", "+u.format("maximumDate")),F},[c,v,u,d,$,r,t,a]),x="";"anchorDate"in t&&f&&!t.isReadOnly&&m&&(t.anchorDate?x=u.format("finishRangeSelectionPrompt"):x=u.format("startRangeSelectionPrompt"));let y=Oc(x),D=b.useRef(!1),P=b.useRef(!1),E=b.useRef(void 0),{pressProps:T,isPressed:k}=Fc({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!m||t.isReadOnly,onPressStart(F){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(F.pointerType==="mouse"||F.pointerType==="touch")){if(t.highlightedRange&&!g){if(xn(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),P.current=!0;return}else if(xn(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),P.current=!0;return}}let G=()=>{t.setDragging(!0),E.current=void 0,t.selectDate(r),t.setFocusedDate(r),D.current=!0};F.pointerType==="touch"?E.current=setTimeout(G,200):G()}},onPressEnd(){P.current=!1,D.current=!1,clearTimeout(E.current),E.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(F){if(!t.isReadOnly&&("anchorDate"in t&&E.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(P.current)t.setAnchorDate(r);else if(t.anchorDate&&!D.current)t.selectDate(r),t.setFocusedDate(r);else if(F.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let G=r.add({days:1});t.isInvalid(G)&&(G=r.subtract({days:1})),t.isInvalid(G)||t.setFocusedDate(G)}else F.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),S;i||(S=xn(r,t.focusedDate)?0:-1),b.useEffect(()=>{f&&n.current&&(vi(n.current),Jf()!=="pointer"&&document.activeElement===n.current&&Yf(n.current,{containingElement:Gh(n.current)}))},[f,n]);let U=Vi({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),O=b.useMemo(()=>U.formatToParts(v).find(F=>F.type==="day").value,[U,v]);return{cellProps:{role:"gridcell","aria-disabled":!m||void 0,"aria-selected":d||void 0,"aria-invalid":g||void 0},buttonProps:xt(T,{onFocus(){i||t.setFocusedDate(r)},tabIndex:S,role:"button","aria-disabled":!m||void 0,"aria-label":C,"aria-invalid":g||void 0,"aria-describedby":[g?o:void 0,y["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(F){"highlightDate"in t&&(F.pointerType!=="touch"||t.isDragging)&&m&&t.highlightDate(r)},onPointerDown(F){"releasePointerCapture"in F.target&&F.target.releasePointerCapture(F.pointerId)},onContextMenu(F){F.preventDefault()}}),isPressed:k,isFocused:f,isSelected:d,isDisabled:i,isUnavailable:h,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:g,formattedDate:O}}const Qh={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},KS={...Qh,customError:!0,valid:!1},La={isInvalid:!1,validationDetails:Qh,validationErrors:[]},EN=b.createContext({}),Au="__formValidationState"+Date.now();function Nc(e){if(e[Au]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}=e[Au];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}}return CN(e)}function CN(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:o,validate:a,validationBehavior:u="aria"}=e;n&&(t||(t=n==="invalid"));let c=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:KS}:null,d=b.useMemo(()=>{if(!a||i==null)return null;let O=SN(a,i);return T$(O)},[a,i]);o!=null&&o.validationDetails.valid&&(o=void 0);let f=b.useContext(EN),h=b.useMemo(()=>r?Array.isArray(r)?r.flatMap(O=>ky(f[O])):ky(f[r]):[],[f,r]),[m,g]=b.useState(f),[v,$]=b.useState(!1);f!==m&&(g(f),$(!1));let C=b.useMemo(()=>T$(v?[]:h),[v,h]),x=b.useRef(La),[y,D]=b.useState(La),P=b.useRef(La),E=()=>{if(!T)return;k(!1);let O=d||o||x.current;ug(O,P.current)||(P.current=O,D(O))},[T,k]=b.useState(!1);return b.useEffect(E),{realtimeValidation:c||C||d||o||La,displayValidation:u==="native"?c||C||y:c||C||d||o||y,updateValidation(O){u==="aria"&&!ug(y,O)?D(O):x.current=O},resetValidation(){let O=La;ug(O,P.current)||(P.current=O,D(O)),u==="native"&&k(!1),$(!0)},commitValidation(){u==="native"&&k(!0),$(!0)}}}function ky(e){return e?Array.isArray(e)?e:[e]:[]}function SN(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return ky(n)}return[]}function T$(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:KS}:null}function ug(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 ah(...e){let t=new Set,n=!1,r={...Qh};for(let a of e){var i,o;for(let u of a.validationErrors)t.add(u);n||(n=a.isInvalid);for(let u in r)(i=r)[o=u]||(i[o]=a.validationDetails[u])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function US(e,t,n){let{validationBehavior:r,focus:i}=e;zt(()=>{if(r==="native"&&(n!=null&&n.current)){let c=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(c),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(AN(n.current))}});let o=wn(()=>{t.resetValidation()}),a=wn(c=>{var d;t.displayValidation.isInvalid||t.commitValidation();let f=n==null||(d=n.current)===null||d===void 0?void 0:d.form;if(!c.defaultPrevented&&n&&f&&PN(f)===n.current){var h;i?i():(h=n.current)===null||h===void 0||h.focus(),yC("keyboard")}c.preventDefault()}),u=wn(()=>{t.commitValidation()});b.useEffect(()=>{let c=n==null?void 0:n.current;if(!c)return;let d=c.form;return c.addEventListener("invalid",a),c.addEventListener("change",u),d==null||d.addEventListener("reset",o),()=>{c.removeEventListener("invalid",a),c.removeEventListener("change",u),d==null||d.removeEventListener("reset",o)}},[n,a,u,o,r])}function TN(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 AN(e){return{isInvalid:!e.validity.valid,validationDetails:TN(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function PN(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function ep(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=e;t=Mr(t);let a=Mr(),u={};n?(r=r?`${a} ${r}`:a,u={id:a,htmlFor:o==="label"?t:void 0}):!r&&!i&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let c=Cu({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:u,fieldProps:c}}function tp(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:o,fieldProps:a}=ep(e),u=Eu([!!t,!!n,r,i]),c=Eu([!!t,!!n,r,i]);return a=xt(a,{"aria-describedby":[u,c,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:a,descriptionProps:{id:u},errorMessageProps:{id:c}}}const RN=0,_N=100,ON=1;function MN(e){const{isDisabled:t=!1,minValue:n=RN,maxValue:r=_N,numberFormatter:i,step:o=ON,orientation:a="horizontal"}=e;let u=b.useMemo(()=>{let z=(r-n)/10;return z=Cl(z,0,z+o,o),Math.max(z,o)},[o,r,n]),c=b.useCallback(z=>z==null?void 0:z.map((re,oe)=>{let fe=oe===0?n:z[oe-1],ie=oe===z.length-1?r:z[oe+1];return Cl(re,fe,ie,o)}),[n,r,o]),d=b.useMemo(()=>c(P$(e.value)),[e.value]),f=b.useMemo(()=>{var z;return c((z=P$(e.defaultValue))!==null&&z!==void 0?z:[n])},[e.defaultValue,n]),h=R$(e.value,e.defaultValue,e.onChange),m=R$(e.value,e.defaultValue,e.onChangeEnd);const[g,v]=Fr(d,f,h),[$,C]=b.useState(new Array(g.length).fill(!1)),x=b.useRef(new Array(g.length).fill(!0)),[y,D]=b.useState(void 0),P=b.useRef(g),E=b.useRef($);let T=z=>{P.current=z,v(z)},k=z=>{E.current=z,C(z)};function S(z){return(z-n)/(r-n)}function U(z){return z===0?n:g[z-1]}function O(z){return z===g.length-1?r:g[z+1]}function F(z){return x.current[z]}function G(z,re){x.current[z]=re}function K(z,re){if(t||!F(z))return;const oe=U(z),fe=O(z);re=Cl(re,oe,fe,o);let ie=A$(P.current,z,re);T(ie)}function W(z,re){if(t||!F(z))return;re&&(P.current=g);const oe=E.current[z];E.current=A$(E.current,z,re),k(E.current),oe&&!E.current.some(Boolean)&&m(P.current)}function j(z){return i.format(z)}function V(z,re){K(z,M(re))}function R(z){return Math.round((z-n)/o)*o+n}function M(z){const re=z*(r-n)+n;return Su(R(re),n,r)}function Y(z,re=1){let oe=Math.max(re,o);K(z,Cl(g[z]+oe,n,r,o))}function L(z,re=1){let oe=Math.max(re,o);K(z,Cl(g[z]-oe,n,r,o))}return{values:g,getThumbValue:z=>g[z],setThumbValue:K,setThumbPercent:V,isThumbDragging:z=>$[z],setThumbDragging:W,focusedThumb:y,setFocusedThumb:D,getThumbPercent:z=>S(g[z]),getValuePercent:S,getThumbValueLabel:z=>j(g[z]),getFormattedValue:j,getThumbMinValue:U,getThumbMaxValue:O,getPercentValue:M,isThumbEditable:F,setThumbEditable:G,incrementThumb:Y,decrementThumb:L,step:o,pageSize:u,orientation:a,isDisabled:t}}function A$(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function P$(e){if(e!=null)return Array.isArray(e)?e:[e]}function R$(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}const _$={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 FN(e={}){let{style:t,isFocusable:n}=e,[r,i]=b.useState(!1),{focusWithinProps:o}=Uu({isDisabled:!n,onFocusWithinChange:u=>i(u)}),a=b.useMemo(()=>r?t:t?{..._$,...t}:_$,[r]);return{visuallyHiddenProps:{...o,style:a}}}function kN(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...o}=e,{visuallyHiddenProps:a}=FN(e);return b.createElement(n,xt(o,a),t)}const mb=new WeakMap;function By(e,t){let n=mb.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function BN(e,t,n){let{labelProps:r,fieldProps:i}=ep(e),o=e.orientation==="vertical";var a;mb.set(t,{id:(a=r.id)!==null&&a!==void 0?a:i.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:u}=Qn(),{addGlobalListener:c,removeGlobalListener:d}=Ku();const f=b.useRef(null),h=u==="rtl",m=b.useRef(null),{moveProps:g}=bC({onMoveStart(){m.current=null},onMove({deltaX:x,deltaY:y}){if(!n.current)return;let{height:D,width:P}=n.current.getBoundingClientRect(),E=o?D:P;m.current==null&&f.current!=null&&(m.current=t.getThumbPercent(f.current)*E);let T=o?y:x;if((o||h)&&(T=-T),m.current+=T,f.current!=null&&n.current){const k=Su(m.current/E,0,1);t.setThumbPercent(f.current,k)}},onMoveEnd(){f.current!=null&&(t.setThumbDragging(f.current,!1),f.current=null)}});let v=b.useRef(void 0),$=(x,y,D,P)=>{if(n.current&&!e.isDisabled&&t.values.every((E,T)=>!t.isThumbDragging(T))){let{height:E,width:T,top:k,left:S}=n.current.getBoundingClientRect(),U=o?E:T,K=((o?P:D)-(o?k:S))/U;(u==="rtl"||o)&&(K=1-K);let W=t.getPercentValue(K),j,V=t.values.findIndex(R=>W-R<0);if(V===0)j=V;else if(V===-1)j=t.values.length-1;else{let R=t.values[V-1],M=t.values[V];Math.abs(R-W)<Math.abs(M-W)?j=V-1:j=V}j>=0&&t.isThumbEditable(j)?(x.preventDefault(),f.current=j,t.setFocusedThumb(j),v.current=y,t.setThumbDragging(f.current,!0),t.setThumbValue(j,W),c(window,"mouseup",C,!1),c(window,"touchend",C,!1),c(window,"pointerup",C,!1)):f.current=null}},C=x=>{var y,D;((D=x.pointerId)!==null&&D!==void 0?D:(y=x.changedTouches)===null||y===void 0?void 0:y[0].identifier)===v.current&&(f.current!=null&&(t.setThumbDragging(f.current,!1),f.current=null),d(window,"mouseup",C,!1),d(window,"touchend",C,!1),d(window,"pointerup",C,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var x;(x=document.getElementById(By(t,0)))===null||x===void 0||x.focus(),yC("keyboard")}),{labelProps:r,groupProps:{role:"group",...i},trackProps:xt({onMouseDown(x){x.button!==0||x.altKey||x.ctrlKey||x.metaKey||$(x,void 0,x.clientX,x.clientY)},onPointerDown(x){x.pointerType==="mouse"&&(x.button!==0||x.altKey||x.ctrlKey||x.metaKey)||$(x,x.pointerId,x.clientX,x.clientY)},onTouchStart(x){$(x,x.changedTouches[0].identifier,x.changedTouches[0].clientX,x.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},g),outputProps:{htmlFor:t.values.map((x,y)=>By(t,y)).join(" "),"aria-live":"off"}}}function IN(e,t){let{index:n=0,isRequired:r,validationState:i,isInvalid:o,trackRef:a,inputRef:u,orientation:c=t.orientation,name:d}=e,f=e.isDisabled||t.isDisabled,h=c==="vertical",{direction:m}=Qn(),{addGlobalListener:g,removeGlobalListener:v}=Ku(),$=mb.get(t);var C;const{labelProps:x,fieldProps:y}=ep({...e,id:By(t,n),"aria-labelledby":`${$.id} ${(C=e["aria-labelledby"])!==null&&C!==void 0?C:""}`.trim()}),D=t.values[n],P=b.useCallback(()=>{u.current&&vi(u.current)},[u]),E=t.focusedThumb===n;b.useEffect(()=>{E&&P()},[E,P]);let T=m==="rtl",k=b.useRef(null),{keyboardProps:S}=vC({onKeyDown(V){let{getThumbMaxValue:R,getThumbMinValue:M,decrementThumb:Y,incrementThumb:L,setThumbValue:z,setThumbDragging:re,pageSize:oe}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(V.key)){V.continuePropagation();return}switch(V.preventDefault(),re(n,!0),V.key){case"PageUp":L(n,oe);break;case"PageDown":Y(n,oe);break;case"Home":z(n,M(n));break;case"End":z(n,R(n));break}re(n,!1)}}),{moveProps:U}=bC({onMoveStart(){k.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:V,deltaY:R,pointerType:M,shiftKey:Y}){const{getThumbPercent:L,setThumbPercent:z,decrementThumb:re,incrementThumb:oe,step:fe,pageSize:ie}=t;if(!a.current)return;let{width:Ee,height:$e}=a.current.getBoundingClientRect(),ne=h?$e:Ee;if(k.current==null&&(k.current=L(n)*ne),M==="keyboard")V>0&&T||V<0&&!T||R>0?re(n,Y?ie:fe):oe(n,Y?ie:fe);else{let ye=h?R:V;(h||T)&&(ye=-ye),k.current+=ye,z(n,Su(k.current/ne,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!f);const{focusableProps:O}=nb(xt(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),u);let F=b.useRef(void 0),G=V=>{P(),F.current=V,t.setThumbDragging(n,!0),g(window,"mouseup",K,!1),g(window,"touchend",K,!1),g(window,"pointerup",K,!1)},K=V=>{var R,M;((M=V.pointerId)!==null&&M!==void 0?M:(R=V.changedTouches)===null||R===void 0?void 0:R[0].identifier)===F.current&&(P(),t.setThumbDragging(n,!1),v(window,"mouseup",K,!1),v(window,"touchend",K,!1),v(window,"pointerup",K,!1))},W=t.getThumbPercent(n);(h||m==="rtl")&&(W=1-W);let j=f?{}:xt(S,U,{onMouseDown:V=>{V.button!==0||V.altKey||V.ctrlKey||V.metaKey||G()},onPointerDown:V=>{V.button!==0||V.altKey||V.ctrlKey||V.metaKey||G(V.pointerId)},onTouchStart:V=>{G(V.changedTouches[0].identifier)}});return Jv(u,D,V=>{t.setThumbValue(n,V)}),{inputProps:xt(O,y,{type:"range",tabIndex:f?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:D,name:d,disabled:f,"aria-orientation":c,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":o||i==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[$["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[$["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:V=>{t.setThumbValue(n,parseFloat(V.target.value))}}),thumbProps:{...j,style:{position:"absolute",[h?"top":"left"]:`${W*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:x,isDragging:t.isThumbDragging(n),isDisabled:f,isFocused:E}}function VN(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:o=!1,type:a="text",validationBehavior:u="aria"}=e,[c,d]=Fr(e.value,e.defaultValue||"",e.onChange),{focusableProps:f}=nb(e,t),h=Nc({...e,value:c}),{isInvalid:m,validationErrors:g,validationDetails:v}=h.displayValidation,{labelProps:$,fieldProps:C,descriptionProps:x,errorMessageProps:y}=tp({...e,isInvalid:m,errorMessage:e.errorMessage||g}),D=So(e,{labelable:!0});const P={type:a,pattern:e.pattern};return Jv(t,c,d),US(e,h,t),b.useEffect(()=>{if(t.current instanceof la(t.current).HTMLTextAreaElement){let E=t.current;Object.defineProperty(E,"defaultValue",{get:()=>E.value,set:()=>{},configurable:!0})}},[t]),{labelProps:$,inputProps:xt(D,n==="input"?P:void 0,{disabled:r,readOnly:o,required:i&&u==="native","aria-required":i&&u==="aria"||void 0,"aria-invalid":m||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:c,onChange:E=>d(E.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,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,...f,...C}),descriptionProps:x,errorMessageProps:y,isInvalid:m,validationErrors:g,validationDetails:v}}var zS={};zS={Empty:"فارغ"};var WS={};WS={Empty:"Изпразни"};var HS={};HS={Empty:"Prázdné"};var GS={};GS={Empty:"Tom"};var qS={};qS={Empty:"Leer"};var YS={};YS={Empty:"Άδειο"};var ZS={};ZS={Empty:"Empty"};var JS={};JS={Empty:"Vacío"};var XS={};XS={Empty:"Tühjenda"};var QS={};QS={Empty:"Tyhjä"};var e5={};e5={Empty:"Vide"};var t5={};t5={Empty:"ריק"};var n5={};n5={Empty:"Prazno"};var r5={};r5={Empty:"Üres"};var i5={};i5={Empty:"Vuoto"};var o5={};o5={Empty:"空"};var a5={};a5={Empty:"비어 있음"};var s5={};s5={Empty:"Tuščias"};var u5={};u5={Empty:"Tukšs"};var l5={};l5={Empty:"Tom"};var c5={};c5={Empty:"Leeg"};var d5={};d5={Empty:"Pusty"};var f5={};f5={Empty:"Vazio"};var h5={};h5={Empty:"Vazio"};var p5={};p5={Empty:"Gol"};var m5={};m5={Empty:"Не заполнено"};var g5={};g5={Empty:"Prázdne"};var y5={};y5={Empty:"Prazen"};var v5={};v5={Empty:"Prazno"};var b5={};b5={Empty:"Tomt"};var $5={};$5={Empty:"Boş"};var x5={};x5={Empty:"Пусто"};var w5={};w5={Empty:"空"};var D5={};D5={Empty:"空白"};var E5={};E5={"ar-AE":zS,"bg-BG":WS,"cs-CZ":HS,"da-DK":GS,"de-DE":qS,"el-GR":YS,"en-US":ZS,"es-ES":JS,"et-EE":XS,"fi-FI":QS,"fr-FR":e5,"he-IL":t5,"hr-HR":n5,"hu-HU":r5,"it-IT":i5,"ja-JP":o5,"ko-KR":a5,"lt-LT":s5,"lv-LV":u5,"nb-NO":l5,"nl-NL":c5,"pl-PL":d5,"pt-BR":f5,"pt-PT":h5,"ro-RO":p5,"ru-RU":m5,"sk-SK":g5,"sl-SI":y5,"sr-SP":v5,"sv-SE":b5,"tr-TR":$5,"uk-UA":x5,"zh-CN":w5,"zh-TW":D5};function LN(e){return e&&e.__esModule?e.default:e}function NN(e){const t=b.useRef(void 0);let{value:n,textValue:r,minValue:i,maxValue:o,isDisabled:a,isReadOnly:u,isRequired:c,onIncrement:d,onIncrementPage:f,onDecrement:h,onDecrementPage:m,onDecrementToMin:g,onIncrementToMax:v}=e;const $=Ji(LN(E5),"@react-aria/spinbutton"),C=()=>clearTimeout(t.current);b.useEffect(()=>()=>C(),[]);let x=F=>{if(!(F.ctrlKey||F.metaKey||F.shiftKey||F.altKey||u))switch(F.key){case"PageUp":if(f){F.preventDefault(),f==null||f();break}case"ArrowUp":case"Up":d&&(F.preventDefault(),d==null||d());break;case"PageDown":if(m){F.preventDefault(),m==null||m();break}case"ArrowDown":case"Down":h&&(F.preventDefault(),h==null||h());break;case"Home":g&&(F.preventDefault(),g==null||g());break;case"End":v&&(F.preventDefault(),v==null||v());break}},y=b.useRef(!1),D=()=>{y.current=!0},P=()=>{y.current=!1},E=r===""?$.format("Empty"):(r||`${n}`).replace("-","−");b.useEffect(()=>{y.current&&(gN("assertive"),hu(E,"assertive"))},[E]);const T=wn(F=>{C(),d==null||d(),t.current=window.setTimeout(()=>{(o===void 0||isNaN(o)||n===void 0||isNaN(n)||n<o)&&T(60)},F)}),k=wn(F=>{C(),h==null||h(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&k(60)},F)});let S=F=>{F.preventDefault()},{addGlobalListener:U,removeAllGlobalListeners:O}=Ku();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":E,"aria-valuemin":i,"aria-valuemax":o,"aria-disabled":a||void 0,"aria-readonly":u||void 0,"aria-required":c||void 0,onKeyDown:x,onFocus:D,onBlur:P},incrementButtonProps:{onPressStart:()=>{T(400),U(window,"contextmenu",S)},onPressEnd:()=>{C(),O()},onFocus:D,onBlur:P},decrementButtonProps:{onPressStart:()=>{k(400),U(window,"contextmenu",S)},onPressEnd:()=>{C(),O()},onFocus:D,onBlur:P}}}var C5={};C5={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 S5={};S5={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 T5={};T5={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 A5={};A5={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 P5={};P5={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 R5={};R5={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 _5={};_5={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 O5={};O5={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 M5={};M5={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 F5={};F5={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 k5={};k5={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 B5={};B5={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 I5={};I5={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 V5={};V5={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 L5={};L5={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 N5={};N5={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 j5={};j5={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 K5={};K5={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 U5={};U5={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 z5={};z5={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 W5={};W5={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 H5={};H5={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 G5={};G5={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 q5={};q5={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 Y5={};Y5={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 Z5={};Z5={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 J5={};J5={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 X5={};X5={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 Q5={};Q5={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 e2={};e2={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 t2={};t2={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 n2={};n2={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 r2={};r2={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 i2={};i2={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 o2={};o2={"ar-AE":C5,"bg-BG":S5,"cs-CZ":T5,"da-DK":A5,"de-DE":P5,"el-GR":R5,"en-US":_5,"es-ES":O5,"et-EE":M5,"fi-FI":F5,"fr-FR":k5,"he-IL":B5,"hr-HR":I5,"hu-HU":V5,"it-IT":L5,"ja-JP":N5,"ko-KR":j5,"lt-LT":K5,"lv-LV":U5,"nb-NO":z5,"nl-NL":W5,"pl-PL":H5,"pt-BR":G5,"pt-PT":q5,"ro-RO":Y5,"ru-RU":Z5,"sk-SK":J5,"sl-SI":X5,"sr-SP":Q5,"sv-SE":e2,"tr-TR":t2,"uk-UA":n2,"zh-CN":r2,"zh-TW":i2};const Li={top:"top",bottom:"top",left:"left",right:"left"},sh={top:"bottom",bottom:"top",left:"right",right:"left"},jN={top:"left",left:"top"},Iy={top:"height",left:"width"},a2={width:"totalWidth",height:"totalHeight"},lf={};let Tn=typeof document<"u"?window.visualViewport:null;function O$(e){let t=0,n=0,r=0,i=0,o=0,a=0,u={};var c;let d=((c=Tn==null?void 0:Tn.scale)!==null&&c!==void 0?c:1)>1;if(e.tagName==="BODY"){let v=document.documentElement;r=v.clientWidth,i=v.clientHeight;var f;t=(f=Tn==null?void 0:Tn.width)!==null&&f!==void 0?f:r;var h;n=(h=Tn==null?void 0:Tn.height)!==null&&h!==void 0?h:i,u.top=v.scrollTop||e.scrollTop,u.left=v.scrollLeft||e.scrollLeft,Tn&&(o=Tn.offsetTop,a=Tn.offsetLeft)}else({width:t,height:n,top:o,left:a}=pu(e)),u.top=e.scrollTop,u.left=e.scrollLeft,r=t,i=n;if(Zv()&&(e.tagName==="BODY"||e.tagName==="HTML")&&d){u.top=0,u.left=0;var m;o=(m=Tn==null?void 0:Tn.pageTop)!==null&&m!==void 0?m:0;var g;a=(g=Tn==null?void 0:Tn.pageLeft)!==null&&g!==void 0?g:0}return{width:t,height:n,totalWidth:r,totalHeight:i,scroll:u,top:o,left:a}}function KN(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function M$(e,t,n,r,i,o,a){var u;let c=(u=i.scroll[e])!==null&&u!==void 0?u:0,d=r[Iy[e]],f=r.scroll[Li[e]]+o,h=d+r.scroll[Li[e]]-o,m=t-c+a[e]-r[Li[e]],g=t-c+n+a[e]-r[Li[e]];return m<f?f-m:g>h?Math.max(h-g,f-m):0}function UN(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 F$(e){if(lf[e])return lf[e];let[t,n]=e.split(" "),r=Li[t]||"right",i=jN[r];Li[n]||(n="center");let o=Iy[r],a=Iy[i];return lf[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:a},lf[e]}function lg(e,t,n,r,i,o,a,u,c,d){let{placement:f,crossPlacement:h,axis:m,crossAxis:g,size:v,crossSize:$}=r,C={};var x;C[g]=(x=e[g])!==null&&x!==void 0?x:0;var y,D,P,E;h==="center"?C[g]+=(((y=e[$])!==null&&y!==void 0?y:0)-((D=n[$])!==null&&D!==void 0?D:0))/2:h!==g&&(C[g]+=((P=e[$])!==null&&P!==void 0?P:0)-((E=n[$])!==null&&E!==void 0?E:0)),C[g]+=o;const T=e[g]-n[$]+c+d,k=e[g]+e[$]-c-d;if(C[g]=Su(C[g],T,k),f===m){const S=u?a[v]:t[a2[v]];C[sh[m]]=Math.floor(S-e[m]+i)}else C[m]=Math.floor(e[m]+e[v]+i);return C}function zN(e,t,n,r,i,o,a,u){const c=r?n.height:t[a2.height];var d;let f=e.top!=null?n.top+e.top:n.top+(c-((d=e.bottom)!==null&&d!==void 0?d:0)-a);var h,m,g,v,$,C;let x=u!=="top"?Math.max(0,t.height+t.top+((h=t.scroll.top)!==null&&h!==void 0?h:0)-f-(((m=i.top)!==null&&m!==void 0?m:0)+((g=i.bottom)!==null&&g!==void 0?g:0)+o)):Math.max(0,f+a-(t.top+((v=t.scroll.top)!==null&&v!==void 0?v:0))-((($=i.top)!==null&&$!==void 0?$:0)+((C=i.bottom)!==null&&C!==void 0?C:0)+o));return Math.min(t.height-o*2,x)}function k$(e,t,n,r,i,o){let{placement:a,axis:u,size:c}=o;var d,f;if(a===u)return Math.max(0,n[u]-e[u]-((d=e.scroll[u])!==null&&d!==void 0?d:0)+t[u]-((f=r[u])!==null&&f!==void 0?f:0)-r[sh[u]]-i);var h;return Math.max(0,e[c]+e[u]+e.scroll[u]-t[u]-n[u]-n[c]-((h=r[u])!==null&&h!==void 0?h:0)-r[sh[u]]-i)}function WN(e,t,n,r,i,o,a,u,c,d,f,h,m,g,v,$){let C=F$(e),{size:x,crossAxis:y,crossSize:D,placement:P,crossPlacement:E}=C,T=lg(t,u,n,C,f,h,d,m,v,$),k=f,S=k$(u,d,t,i,o+f,C);if(a&&r[x]>S){let fe=F$(`${sh[P]} ${E}`),ie=lg(t,u,n,fe,f,h,d,m,v,$);k$(u,d,t,i,o+f,fe)>S&&(C=fe,T=ie,k=f)}let U="bottom";C.axis==="top"?C.placement==="top"?U="top":C.placement==="bottom"&&(U="bottom"):C.crossAxis==="top"&&(C.crossPlacement==="top"?U="bottom":C.crossPlacement==="bottom"&&(U="top"));let O=M$(y,T[y],n[D],u,c,o,d);T[y]+=O;let F=zN(T,u,d,m,i,o,n.height,U);g&&g<F&&(F=g),n.height=Math.min(n.height,F),T=lg(t,u,n,C,k,h,d,m,v,$),O=M$(y,T[y],n[D],u,c,o,d),T[y]+=O;let G={},K=t[y]+.5*t[D]-T[y]-i[Li[y]];const W=v/2+$;var j,V,R,M;const Y=Li[y]==="left"?((j=i.left)!==null&&j!==void 0?j:0)+((V=i.right)!==null&&V!==void 0?V:0):((R=i.top)!==null&&R!==void 0?R:0)+((M=i.bottom)!==null&&M!==void 0?M:0),L=n[D]-Y-v/2-$,z=t[y]+v/2-(T[y]+i[Li[y]]),re=t[y]+t[D]-v/2-(T[y]+i[Li[y]]),oe=Su(K,z,re);return G[y]=Su(oe,W,L),{position:T,maxHeight:F,arrowOffsetLeft:G.left,arrowOffsetTop:G.top,placement:C.placement}}function HN(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:a,boundaryElement:u,offset:c,crossOffset:d,maxHeight:f,arrowSize:h=0,arrowBoundaryOffset:m=0}=e,g=r instanceof HTMLElement?GN(r):document.documentElement,v=g===document.documentElement;const $=window.getComputedStyle(g).position;let C=!!$&&$!=="static",x=v?pu(n):B$(n,g);if(!v){let{marginTop:G,marginLeft:K}=window.getComputedStyle(n);x.top+=parseInt(G,10)||0,x.left+=parseInt(K,10)||0}let y=pu(r),D=UN(r);var P,E;y.width+=((P=D.left)!==null&&P!==void 0?P:0)+((E=D.right)!==null&&E!==void 0?E:0);var T,k;y.height+=((T=D.top)!==null&&T!==void 0?T:0)+((k=D.bottom)!==null&&k!==void 0?k:0);let S=KN(i),U=O$(u),O=O$(g),F=u.tagName==="BODY"?pu(g):B$(g,u);return g.tagName==="HTML"&&u.tagName==="BODY"&&(O.scroll.top=0,O.scroll.left=0),WN(t,x,y,S,D,o,a,U,O,F,c,d,C,f,h,m)}function pu(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),{scrollTop:o,scrollLeft:a,clientTop:u,clientLeft:c}=document.documentElement;return{top:t+o-u,left:n+a-c,width:r,height:i}}function B$(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:i,left:o,width:a,height:u}=e.getBoundingClientRect();r={top:i,left:o,width:a,height:u}}else{r=pu(e);let i=pu(t),o=window.getComputedStyle(t);i.top+=(parseInt(o.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(o.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=i.top,r.left-=i.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function GN(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!I$(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!I$(t);)t=t.parentElement;return t||document.documentElement}function I$(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 s2=new WeakMap;function qN(e){let{triggerRef:t,isOpen:n,onClose:r}=e;b.useEffect(()=>{if(!n||r===null)return;let i=o=>{let a=o.target;if(!t.current||a instanceof Node&&!a.contains(t.current)||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement)return;let u=r||s2.get(t.current);u&&u()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let ln=typeof document<"u"?window.visualViewport:null;function YN(e){let{direction:t}=Qn(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:o=i,placement:a="bottom",containerPadding:u=12,shouldFlip:c=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:f=0,crossOffset:h=0,shouldUpdatePosition:m=!0,isOpen:g=!0,onClose:v,maxHeight:$,arrowBoundaryOffset:C=0}=e,[x,y]=b.useState(null),D=[m,a,i.current,r.current,o.current,u,c,d,f,h,g,t,$,C,n],P=b.useRef(ln==null?void 0:ln.scale);b.useEffect(()=>{g&&(P.current=ln==null?void 0:ln.scale)},[g]);let E=b.useCallback(()=>{if(m===!1||!g||!i.current||!r.current||!d||(ln==null?void 0:ln.scale)!==P.current)return;let O=null;if(o.current&&o.current.contains(document.activeElement)){var F;let M=(F=document.activeElement)===null||F===void 0?void 0:F.getBoundingClientRect(),Y=o.current.getBoundingClientRect();var G;if(O={type:"top",offset:((G=M==null?void 0:M.top)!==null&&G!==void 0?G:0)-Y.top},O.offset>Y.height/2){O.type="bottom";var K;O.offset=((K=M==null?void 0:M.bottom)!==null&&K!==void 0?K:0)-Y.bottom}}let W=i.current;if(!$&&i.current){var j;W.style.top="0px",W.style.bottom="";var V;W.style.maxHeight=((V=(j=window.visualViewport)===null||j===void 0?void 0:j.height)!==null&&V!==void 0?V:window.innerHeight)+"px"}let R=HN({placement:JN(a,t),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:u,shouldFlip:c,boundaryElement:d,offset:f,crossOffset:h,maxHeight:$,arrowSize:n,arrowBoundaryOffset:C});if(R.position){if(W.style.top="",W.style.bottom="",W.style.left="",W.style.right="",Object.keys(R.position).forEach(M=>W.style[M]=R.position[M]+"px"),W.style.maxHeight=R.maxHeight!=null?R.maxHeight+"px":"",O&&document.activeElement&&o.current){let M=document.activeElement.getBoundingClientRect(),Y=o.current.getBoundingClientRect(),L=M[O.type]-Y[O.type];o.current.scrollTop+=L-O.offset}y(R)}},D);zt(E,D),ZN(E),j3({ref:i,onResize:E}),j3({ref:r,onResize:E});let T=b.useRef(!1);zt(()=>{let O,F=()=>{T.current=!0,clearTimeout(O),O=setTimeout(()=>{T.current=!1},500),E()},G=()=>{T.current&&F()};return ln==null||ln.addEventListener("resize",F),ln==null||ln.addEventListener("scroll",G),()=>{ln==null||ln.removeEventListener("resize",F),ln==null||ln.removeEventListener("scroll",G)}},[E]);let k=b.useCallback(()=>{T.current||v==null||v()},[v,T]);qN({triggerRef:r,isOpen:g,onClose:v&&k});var S,U;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...x==null?void 0:x.position,maxHeight:(S=x==null?void 0:x.maxHeight)!==null&&S!==void 0?S:"100vh"}},placement:(U=x==null?void 0:x.placement)!==null&&U!==void 0?U:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:x==null?void 0:x.arrowOffsetLeft,top:x==null?void 0:x.arrowOffsetTop}},updatePosition:E}}function ZN(e){zt(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function JN(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const co=[];function XN(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:u}=e;b.useEffect(()=>(i&&co.push(t),()=>{let v=co.indexOf(t);v>=0&&co.splice(v,1)}),[i,t]);let c=()=>{co[co.length-1]===t&&n&&n()},d=v=>{(!u||u(v.target))&&co[co.length-1]===t&&(v.stopPropagation(),v.preventDefault())},f=v=>{(!u||u(v.target))&&(co[co.length-1]===t&&(v.stopPropagation(),v.preventDefault()),c())},h=v=>{v.key==="Escape"&&!a&&!v.nativeEvent.isComposing&&(v.stopPropagation(),v.preventDefault(),c())};IV({ref:t,onInteractOutside:o&&i?f:void 0,onInteractOutsideStart:d});let{focusWithinProps:m}=Uu({isDisabled:!r,onBlurWithin:v=>{!v.relatedTarget||HV(v.relatedTarget)||(!u||u(v.relatedTarget))&&(n==null||n())}}),g=v=>{v.target===v.currentTarget&&v.preventDefault()};return{overlayProps:{onKeyDown:h,...m},underlayProps:{onPointerDown:g}}}function QN(e,t,n){let{type:r}=e,{isOpen:i}=t;b.useEffect(()=>{n&&n.current&&s2.set(n.current,t.close)});let o;r==="menu"?o=!0:r==="listbox"&&(o="listbox");let a=Mr();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?a:void 0,onPress:t.toggle},overlayProps:{id:a}}}const cg=typeof document<"u"&&window.visualViewport,ej=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let cf=0,dg;function tj(e={}){let{isDisabled:t}=e;zt(()=>{if(!t)return cf++,cf===1&&(_c()?dg=rj():dg=nj()),()=>{cf--,cf===0&&dg()}},[t])}function nj(){return is(Qs(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Qs(document.documentElement,"overflow","hidden"))}function rj(){let e,t,n=d=>{e=Gh(d.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=Qs(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=d=>{let f=d.target;L$(f)&&f!==document.activeElement&&(d.preventDefault(),u(),f.style.transform="translateY(-2000px)",f.focus(),requestAnimationFrame(()=>{f.style.transform=""})),t&&t()},o=d=>{let f=d.target;L$(f)&&(u(),f.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{f.style.transform="",cg&&(cg.height<window.innerHeight?requestAnimationFrame(()=>{V$(f)}):cg.addEventListener("resize",()=>V$(f),{once:!0}))}))},a=null,u=()=>{if(a)return;let d=()=>{window.scrollTo(0,0)},f=window.pageXOffset,h=window.pageYOffset;a=is(Tl(window,"scroll",d),Qs(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Qs(document.documentElement,"overflow","hidden"),Qs(document.body,"marginTop",`-${h}px`),()=>{window.scrollTo(f,h)}),window.scrollTo(0,0)},c=is(Tl(document,"touchstart",n,{passive:!1,capture:!0}),Tl(document,"touchmove",r,{passive:!1,capture:!0}),Tl(document,"touchend",i,{passive:!1,capture:!0}),Tl(document,"focus",o,!0));return()=>{t==null||t(),a==null||a(),c()}}function Qs(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Tl(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function V$(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=Gh(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect().top,o=n.getBoundingClientRect().top;o>i+n.clientHeight&&(r.scrollTop+=o-i)}n=r.parentElement}}function L$(e){return e instanceof HTMLInputElement&&!ej.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let Al=new WeakMap,Yr=[];function u2(e,t=document.body){let n=new Set(e),r=new Set,i=c=>{for(let m of c.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(m);let d=m=>{if(n.has(m)||m.parentElement&&r.has(m.parentElement)&&m.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let g of n)if(m.contains(g))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},f=document.createTreeWalker(c,NodeFilter.SHOW_ELEMENT,{acceptNode:d}),h=d(c);if(h===NodeFilter.FILTER_ACCEPT&&o(c),h!==NodeFilter.FILTER_REJECT){let m=f.nextNode();for(;m!=null;)o(m),m=f.nextNode()}},o=c=>{var d;let f=(d=Al.get(c))!==null&&d!==void 0?d:0;c.getAttribute("aria-hidden")==="true"&&f===0||(f===0&&c.setAttribute("aria-hidden","true"),r.add(c),Al.set(c,f+1))};Yr.length&&Yr[Yr.length-1].disconnect(),i(t);let a=new MutationObserver(c=>{for(let d of c)if(!(d.type!=="childList"||d.addedNodes.length===0)&&![...n,...r].some(f=>f.contains(d.target))){for(let f of d.removedNodes)f instanceof Element&&(n.delete(f),r.delete(f));for(let f of d.addedNodes)(f instanceof HTMLElement||f instanceof SVGElement)&&(f.dataset.liveAnnouncer==="true"||f.dataset.reactAriaTopLayer==="true")?n.add(f):f instanceof Element&&i(f)}});a.observe(t,{childList:!0,subtree:!0});let u={observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return Yr.push(u),()=>{a.disconnect();for(let c of r){let d=Al.get(c);d!=null&&(d===1?(c.removeAttribute("aria-hidden"),Al.delete(c)):Al.set(c,d-1))}u===Yr[Yr.length-1]?(Yr.pop(),Yr.length&&Yr[Yr.length-1].observe()):Yr.splice(Yr.indexOf(u),1)}}function ij(e,t){let{triggerRef:n,popoverRef:r,isNonModal:i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:a,...u}=e,{overlayProps:c,underlayProps:d}=XN({isOpen:t.isOpen&&!u["data-react-aria-top-layer"],onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:a},r),{overlayProps:f,arrowProps:h,placement:m}=YN({...u,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:i?t.close:void 0});return tj({isDisabled:i||!t.isOpen}),zt(()=>{if(t.isOpen&&!i&&r.current)return u2([r.current])},[i,t.isOpen,r]),{popoverProps:xt(c,f),arrowProps:h,underlayProps:d,placement:m}}const oj=b.createContext({});function aj(){var e;return(e=b.useContext(oj))!==null&&e!==void 0?e:{}}const l2=b.createContext(null);function sj(e){let t=qv(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,o]=b.useState(!1),a=b.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:u}=aj();if(!e.portalContainer&&u&&(n=u()),!n)return null;let c=e.children;return e.disableFocusManagement||(c=b.createElement(jV,{restoreFocus:!0,contain:i&&!r},c)),c=b.createElement(l2.Provider,{value:a},b.createElement(PV,null,c)),ra.createPortal(c,n)}function uj(){let e=b.useContext(l2),t=e==null?void 0:e.setContain;zt(()=>{t==null||t(!0)},[t])}const np=new WeakMap;function lj(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function c2(e,t){let n=np.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${lj(t)}`}function Vy(e){return Tf()?e.altKey:e.ctrlKey}function Ys(e){return Do()?e.metaKey:e.ctrlKey}const cj=1e3;function dj(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=b.useRef({search:"",timeout:void 0}).current,o=a=>{let u=fj(a.key);if(!(!u||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target))){if(u===" "&&i.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),i.search+=u,t.getKeyForSearch!=null){let c=t.getKeyForSearch(i.search,n.focusedKey);c==null&&(c=t.getKeyForSearch(i.search)),c!=null&&(n.setFocusedKey(c),r&&r(c))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},cj)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?o:void 0}}}function fj(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function d2(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:a=!1,disallowSelectAll:u=!1,selectOnFocus:c=t.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:f,allowsTabNavigation:h=!1,isVirtualized:m,scrollRef:g=r,linkBehavior:v="action"}=e,{direction:$}=Qn(),C=Hh(),x=O=>{var F;if(O.altKey&&O.key==="Tab"&&O.preventDefault(),!(!((F=r.current)===null||F===void 0)&&F.contains(O.target)))return;const G=(ie,Ee)=>{if(ie!=null){if(t.isLink(ie)&&v==="selection"&&c&&!Vy(O)){var $e;ra.flushSync(()=>{t.setFocusedKey(ie,Ee)});let ne=($e=g.current)===null||$e===void 0?void 0:$e.querySelector(`[data-key="${CSS.escape(ie.toString())}"]`),ye=t.getItemProps(ie);ne&&C.open(ne,O,ye.href,ye.routerOptions);return}if(t.setFocusedKey(ie,Ee),t.isLink(ie)&&v==="override")return;O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(ie):c&&!Vy(O)&&t.replaceSelection(ie)}};switch(O.key){case"ArrowDown":if(n.getKeyBelow){var K,W,j;let ie=t.focusedKey!=null?(K=n.getKeyBelow)===null||K===void 0?void 0:K.call(n,t.focusedKey):(W=n.getFirstKey)===null||W===void 0?void 0:W.call(n);ie==null&&o&&(ie=(j=n.getFirstKey)===null||j===void 0?void 0:j.call(n,t.focusedKey)),ie!=null&&(O.preventDefault(),G(ie))}break;case"ArrowUp":if(n.getKeyAbove){var V,R,M;let ie=t.focusedKey!=null?(V=n.getKeyAbove)===null||V===void 0?void 0:V.call(n,t.focusedKey):(R=n.getLastKey)===null||R===void 0?void 0:R.call(n);ie==null&&o&&(ie=(M=n.getLastKey)===null||M===void 0?void 0:M.call(n,t.focusedKey)),ie!=null&&(O.preventDefault(),G(ie))}break;case"ArrowLeft":if(n.getKeyLeftOf){var Y,L,z;let ie=t.focusedKey!=null?(Y=n.getKeyLeftOf)===null||Y===void 0?void 0:Y.call(n,t.focusedKey):null;ie==null&&o&&(ie=$==="rtl"?(L=n.getFirstKey)===null||L===void 0?void 0:L.call(n,t.focusedKey):(z=n.getLastKey)===null||z===void 0?void 0:z.call(n,t.focusedKey)),ie!=null&&(O.preventDefault(),G(ie,$==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var re,oe,fe;let ie=t.focusedKey!=null?(re=n.getKeyRightOf)===null||re===void 0?void 0:re.call(n,t.focusedKey):null;ie==null&&o&&(ie=$==="rtl"?(oe=n.getLastKey)===null||oe===void 0?void 0:oe.call(n,t.focusedKey):(fe=n.getFirstKey)===null||fe===void 0?void 0:fe.call(n,t.focusedKey)),ie!=null&&(O.preventDefault(),G(ie,$==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){O.preventDefault();let ie=n.getFirstKey(t.focusedKey,Ys(O));t.setFocusedKey(ie),ie!=null&&(Ys(O)&&O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(ie):c&&t.replaceSelection(ie))}break;case"End":if(n.getLastKey){O.preventDefault();let ie=n.getLastKey(t.focusedKey,Ys(O));t.setFocusedKey(ie),ie!=null&&(Ys(O)&&O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(ie):c&&t.replaceSelection(ie))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let ie=n.getKeyPageBelow(t.focusedKey);ie!=null&&(O.preventDefault(),G(ie))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let ie=n.getKeyPageAbove(t.focusedKey);ie!=null&&(O.preventDefault(),G(ie))}break;case"a":Ys(O)&&t.selectionMode==="multiple"&&u!==!0&&(O.preventDefault(),t.selectAll());break;case"Escape":!a&&t.selectedKeys.size!==0&&(O.stopPropagation(),O.preventDefault(),t.clearSelection());break;case"Tab":if(!h){if(O.shiftKey)r.current.focus();else{let ie=wr(r.current,{tabbable:!0}),Ee,$e;do $e=ie.lastChild(),$e&&(Ee=$e);while($e);Ee&&!Ee.contains(document.activeElement)&&vi(Ee)}break}}},y=b.useRef({top:0,left:0});ia(g,"scroll",m?void 0:()=>{var O,F,G,K;y.current={top:(G=(O=g.current)===null||O===void 0?void 0:O.scrollTop)!==null&&G!==void 0?G:0,left:(K=(F=g.current)===null||F===void 0?void 0:F.scrollLeft)!==null&&K!==void 0?K:0}});let D=O=>{if(t.isFocused){O.currentTarget.contains(O.target)||t.setFocused(!1);return}if(O.currentTarget.contains(O.target)){if(t.setFocused(!0),t.focusedKey==null){var F,G;let j=R=>{R!=null&&(t.setFocusedKey(R),c&&t.replaceSelection(R))},V=O.relatedTarget;var K,W;V&&O.currentTarget.compareDocumentPosition(V)&Node.DOCUMENT_POSITION_FOLLOWING?j((K=t.lastSelectedKey)!==null&&K!==void 0?K:(F=n.getLastKey)===null||F===void 0?void 0:F.call(n)):j((W=t.firstSelectedKey)!==null&&W!==void 0?W:(G=n.getFirstKey)===null||G===void 0?void 0:G.call(n))}else!m&&g.current&&(g.current.scrollTop=y.current.top,g.current.scrollLeft=y.current.left);if(t.focusedKey!=null&&g.current){let j=g.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);j&&(j.contains(document.activeElement)||vi(j),Jf()==="keyboard"&&Yf(j,{containingElement:r.current}))}}},P=O=>{O.currentTarget.contains(O.relatedTarget)||t.setFocused(!1)};const E=b.useRef(i);b.useEffect(()=>{if(E.current){var O,F;let W=null;var G;i==="first"&&(W=(G=(O=n.getFirstKey)===null||O===void 0?void 0:O.call(n))!==null&&G!==void 0?G:null);var K;i==="last"&&(W=(K=(F=n.getLastKey)===null||F===void 0?void 0:F.call(n))!==null&&K!==void 0?K:null);let j=t.selectedKeys;if(j.size){for(let V of j)if(t.canSelectItem(V)){W=V;break}}t.setFocused(!0),t.setFocusedKey(W),W==null&&!f&&r.current&&ss(r.current)}},[]);let T=b.useRef(t.focusedKey);b.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==T.current||E.current)&&g.current&&r.current){let O=Jf(),F=r.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);if(!F)return;(O==="keyboard"||E.current)&&(sC(g.current,F),O!=="virtual"&&Yf(F,{containingElement:r.current}))}!f&&t.isFocused&&t.focusedKey==null&&T.current!=null&&r.current&&ss(r.current),T.current=t.focusedKey,E.current=!1}),ia(r,"react-aria-focus-scope-restore",O=>{O.preventDefault(),t.setFocused(!0)});let k={onKeyDown:x,onFocus:D,onBlur:P,onMouseDown(O){g.current===O.target&&O.preventDefault()}},{typeSelectProps:S}=dj({keyboardDelegate:n,selectionManager:t});d||(k=xt(S,k));let U;return f||(U=t.focusedKey==null?0:-1),{collectionProps:{...k,tabIndex:U}}}function hj(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:i,shouldUseVirtualFocus:o,focus:a,isDisabled:u,onAction:c,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=e,h=Hh(),m=R=>{if(R.pointerType==="keyboard"&&Vy(R))t.toggleSelection(n);else{if(t.selectionMode==="none")return;if(t.isLink(n)){if(f==="selection"&&r.current){let M=t.getItemProps(n);h.open(r.current,R,M.href,M.routerOptions),t.setSelectedKeys(t.selectedKeys);return}else if(f==="override"||f==="none")return}t.selectionMode==="single"?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):R&&R.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||R&&(Ys(R)||R.pointerType==="touch"||R.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};b.useEffect(()=>{n===t.focusedKey&&t.isFocused&&!o&&(a?a():document.activeElement!==r.current&&r.current&&ss(r.current))},[r,n,t.focusedKey,t.childFocusStrategy,t.isFocused,o]),u=u||t.isDisabled(n);let g={};!o&&!u?g={tabIndex:n===t.focusedKey?0:-1,onFocus(R){R.target===r.current&&t.setFocusedKey(n)}}:u&&(g.onMouseDown=R=>{R.preventDefault()});let v=t.isLink(n)&&f==="override",$=t.isLink(n)&&f!=="selection"&&f!=="none",C=!u&&t.canSelectItem(n)&&!v,x=(c||$)&&!u,y=x&&(t.selectionBehavior==="replace"?!C:!C||t.isEmpty),D=x&&C&&t.selectionBehavior==="replace",P=y||D,E=b.useRef(null),T=P&&C,k=b.useRef(!1),S=b.useRef(!1),U=R=>{if(c&&c(),$&&r.current){let M=t.getItemProps(n);h.open(r.current,R,M.href,M.routerOptions)}},O={};i?(O.onPressStart=R=>{E.current=R.pointerType,k.current=T,R.pointerType==="keyboard"&&(!P||j$())&&m(R)},d?(O.onPressUp=y?void 0:R=>{R.pointerType!=="keyboard"&&C&&m(R)},O.onPress=y?U:void 0):O.onPress=R=>{if(y||D&&R.pointerType!=="mouse"){if(R.pointerType==="keyboard"&&!N$())return;U(R)}else R.pointerType!=="keyboard"&&C&&m(R)}):(O.onPressStart=R=>{E.current=R.pointerType,k.current=T,S.current=y,C&&(R.pointerType==="mouse"&&!y||R.pointerType==="keyboard"&&(!x||j$()))&&m(R)},O.onPress=R=>{(R.pointerType==="touch"||R.pointerType==="pen"||R.pointerType==="virtual"||R.pointerType==="keyboard"&&P&&N$()||R.pointerType==="mouse"&&S.current)&&(P?U(R):C&&m(R))}),g["data-key"]=n,O.preventFocusOnPress=o;let{pressProps:F,isPressed:G}=Fc(O),K=D?R=>{E.current==="mouse"&&(R.stopPropagation(),R.preventDefault(),U(R))}:void 0,{longPressProps:W}=$C({isDisabled:!T,onLongPress(R){R.pointerType==="touch"&&(m(R),t.setSelectionBehavior("toggle"))}}),j=R=>{E.current==="touch"&&k.current&&R.preventDefault()},V=t.isLink(n)?R=>{os.isOpening||R.preventDefault()}:void 0;return{itemProps:xt(g,C||y?F:{},T?W:{},{onDoubleClick:K,onDragStartCapture:j,onClick:V}),isPressed:G,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:u,allowsSelection:C,hasAction:P}}function N$(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function j$(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class K${getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?n.querySelector(`[data-key="${CSS.escape(t.toString())}"]`):null;if(!r)return null;let i=n.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-i.left+n.scrollLeft,y:o.top-i.top+n.scrollTop,width:o.width,height:o.height}}getContentSize(){let t=this.ref.current;var n,r;return{width:(n=t==null?void 0:t.scrollWidth)!==null&&n!==void 0?n:0,height:(r=t==null?void 0:t.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let t=this.ref.current;var n,r,i,o;return{x:(n=t==null?void 0:t.scrollLeft)!==null&&n!==void 0?n:0,y:(r=t==null?void 0:t.scrollTop)!==null&&r!==void 0?r:0,width:(i=t==null?void 0:t.offsetWidth)!==null&&i!==void 0?i:0,height:(o=t==null?void 0:t.offsetHeight)!==null&&o!==void 0?o:0}}constructor(t){this.ref=t}}class f2{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,n){let r=t;for(;r!=null;){let i=this.collection.getItem(r);if((i==null?void 0:i.type)==="item"&&!this.isDisabled(i))return r;r=n(r)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(t,n,r){let i=t,o=this.layoutDelegate.getItemRect(i);if(!o||i==null)return null;let a=o;do{if(i=n(i),i==null)break;o=this.layoutDelegate.getItemRect(i)}while(o&&r(a,o)&&i!=null);return i}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!cc(n))return this.getFirstKey();let i=t;if(this.orientation==="horizontal"){let o=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!cc(n))return this.getLastKey();let i=t;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let o=r.getItem(i);if(!o)return null;let a=o.textValue.slice(0,t.length);if(o.textValue&&this.collator.compare(a,t)===0)return i;i=this.getNextKey(i)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new K$(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 K$(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function pj(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:o,layoutDelegate:a}=e,u=rS({usage:"search",sensitivity:"base"}),c=t.disabledBehavior,d=b.useMemo(()=>o||new f2({collection:n,disabledKeys:r,disabledBehavior:c,ref:i,collator:u,layoutDelegate:a}),[o,a,n,r,i,u,c]),{collectionProps:f}=d2({...e,ref:i,selectionManager:t,keyboardDelegate:d});return{listProps:f}}function mj(e,t,n){let r=So(e,{labelable:!0}),i=e.selectionBehavior||"toggle",o=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&o==="action"&&(o="override");let{listProps:a}=pj({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:o}),{focusWithinProps:u}=Uu({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),c=Mr(e.id);np.set(t,{id:c,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:o});let{labelProps:d,fieldProps:f}=ep({...e,id:c,labelElementType:"span"});return{labelProps:d,listBoxProps:xt(r,u,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...xt(f,a)})}}function h2(e){return null}h2.getCollectionNode=function*(t,n){let{childItems:r,title:i,children:o}=t,a=t.title||t.children,u=t.textValue||(typeof a=="string"?a:"")||t["aria-label"]||"";!u&&!(n!=null&&n.suppressTextValueWarning)&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:a,textValue:u,"aria-label":t["aria-label"],hasChildNodes:gj(t),*childNodes(){if(r)for(let c of r)yield{type:"item",value:c};else if(i){let c=[];b.Children.forEach(o,d=>{c.push({type:"item",element:d})}),yield*c}}}};function gj(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&b.Children.count(e.children)>0)}let yj=h2;class vj{build(t,n){return this.context=n,U$(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(b.isValidElement(n)&&n.type===b.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let o of r)yield*this.getFullNode({value:o,index:i},{renderer:n}),i++}else{let i=[];b.Children.forEach(n,a=>{a&&i.push(a)});let o=0;for(let a of i){let u=this.getFullNode({element:a,index:o},{});for(let c of u)o++,yield c}}}getKey(t,n,r,i){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let o=n.value;if(o!=null){var a;let u=(a=o.key)!==null&&a!==void 0?a:o.id;if(u==null)throw new Error("No key found for item");return u}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,i){if(b.isValidElement(t.element)&&t.element.type===b.Fragment){let C=[];b.Children.forEach(t.element.props.children,y=>{C.push(y)});var o;let x=(o=t.index)!==null&&o!==void 0?o:0;for(const y of C)yield*this.getFullNode({element:y,index:x++},n,r,i);return}let a=t.element;if(!a&&t.value&&n&&n.renderer){let C=this.cache.get(t.value);if(C&&(!C.shouldInvalidate||!C.shouldInvalidate(this.context))){C.index=t.index,C.parentKey=i?i.key:null,yield C;return}a=n.renderer(t.value)}if(b.isValidElement(a)){let C=a.type;if(typeof C!="function"&&typeof C.getCollectionNode!="function"){let P=a.type;throw new Error(`Unknown element <${P}> in collection.`)}let x=C.getCollectionNode(a.props,this.context);var u;let y=(u=t.index)!==null&&u!==void 0?u:0,D=x.next();for(;!D.done&&D.value;){let P=D.value;t.index=y;var c;let E=(c=P.key)!==null&&c!==void 0?c:null;E==null&&(E=P.element?null:this.getKey(a,t,n,r));let k=[...this.getFullNode({...P,key:E,index:y,wrapper:bj(t.wrapper,P.wrapper)},this.getChildState(n,P),r?`${r}${a.key}`:a.key,i)];for(let S of k){var d,f;S.value=(f=(d=P.value)!==null&&d!==void 0?d:t.value)!==null&&f!==void 0?f:null,S.value&&this.cache.set(S.value,S);var h;if(t.type&&S.type!==t.type)throw new Error(`Unsupported type <${fg(S.type)}> in <${fg((h=i==null?void 0:i.type)!==null&&h!==void 0?h:"unknown parent type")}>. Only <${fg(t.type)}> is supported.`);y++,yield S}D=x.next(k)}return}if(t.key==null||t.type==null)return;let m=this;var g,v;let $={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:(g=t.value)!==null&&g!==void 0?g:null,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:(v=t.textValue)!==null&&v!==void 0?v:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:U$(function*(){if(!t.hasChildNodes||!t.childNodes)return;let C=0;for(let x of t.childNodes()){x.key!=null&&(x.key=`${$.key}${x.key}`);let y=m.getFullNode({...x,index:C},m.getChildState(n,x),$.key,$);for(let D of y)C++,yield D}})};yield $}constructor(){this.cache=new WeakMap}}function U$(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 bj(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function fg(e){return e[0].toUpperCase()+e.slice(1)}function $j(e,t,n){let r=b.useMemo(()=>new vj,[]),{children:i,items:o,collection:a}=e;return b.useMemo(()=>{if(a)return a;let c=r.build({children:i,items:o},n);return t(c)},[r,i,o,a,n,t])}function rp(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function xj(e){return wj(e)}function wj(e,t){for(let n of e)return n}function hg(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...z$(e,t),t],i=[...z$(e,n),n],o=r.slice(0,i.length).findIndex((a,u)=>a!==i[u]);return o!==-1?(t=r[o],n=i[o],t.index-n.index):r.findIndex(a=>a===n)>=0?1:(i.findIndex(a=>a===t)>=0,-1)}function z$(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 W$=new WeakMap;function p2(e){let t=W$.get(e);if(t!=null)return t;let n=0,r=i=>{for(let o of i)o.type==="section"?r(rp(o,e)):n++};return r(e),W$.set(e,n),n}function Dj(e,t,n){var r,i;let{key:o}=e,a=np.get(t);var u;let c=(u=e.isDisabled)!==null&&u!==void 0?u:t.selectionManager.isDisabled(o);var d;let f=(d=e.isSelected)!==null&&d!==void 0?d:t.selectionManager.isSelected(o);var h;let m=(h=e.shouldSelectOnPressUp)!==null&&h!==void 0?h:a==null?void 0:a.shouldSelectOnPressUp;var g;let v=(g=e.shouldFocusOnHover)!==null&&g!==void 0?g:a==null?void 0:a.shouldFocusOnHover;var $;let C=($=e.shouldUseVirtualFocus)!==null&&$!==void 0?$:a==null?void 0:a.shouldUseVirtualFocus;var x;let y=(x=e.isVirtualized)!==null&&x!==void 0?x:a==null?void 0:a.isVirtualized,D=Eu(),P=Eu(),E={role:"option","aria-disabled":c||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?f:void 0};Do()&&Zv()||(E["aria-label"]=e["aria-label"],E["aria-labelledby"]=D,E["aria-describedby"]=P);let T=t.collection.getItem(o);if(y){let V=Number(T==null?void 0:T.index);E["aria-posinset"]=Number.isNaN(V)?void 0:V+1,E["aria-setsize"]=p2(t.collection)}let k=a!=null&&a.onAction?()=>{var V;return a==null||(V=a.onAction)===null||V===void 0?void 0:V.call(a,o)}:void 0,{itemProps:S,isPressed:U,isFocused:O,hasAction:F,allowsSelection:G}=hj({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:m,allowsDifferentPressOrigin:m&&v,isVirtualized:y,shouldUseVirtualFocus:C,isDisabled:c,onAction:k||!(T==null||(r=T.props)===null||r===void 0)&&r.onAction?is(T==null||(i=T.props)===null||i===void 0?void 0:i.onAction,k):void 0,linkBehavior:a==null?void 0:a.linkBehavior}),{hoverProps:K}=BV({isDisabled:c||!v,onHoverStart(){q3()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o))}}),W=So(T==null?void 0:T.props);delete W.id;let j=mV(T==null?void 0:T.props);return{optionProps:{...E,...xt(W,S,K,j),id:c2(t,o)},labelProps:{id:D},descriptionProps:{id:P},isFocused:O,isFocusVisible:O&&q3(),isSelected:f,isDisabled:c,isPressed:U,allowsSelection:G,hasAction:F}}var m2={};m2={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var g2={};g2={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var y2={};y2={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var v2={};v2={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var b2={};b2={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var $2={};$2={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var x2={};x2={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var w2={};w2={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var D2={};D2={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var E2={};E2={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var C2={};C2={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var S2={};S2={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var T2={};T2={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var A2={};A2={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var P2={};P2={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var R2={};R2={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var _2={};_2={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var O2={};O2={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var M2={};M2={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var F2={};F2={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var k2={};k2={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var B2={};B2={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var I2={};I2={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var V2={};V2={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var L2={};L2={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var N2={};N2={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var j2={};j2={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var K2={};K2={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var U2={};U2={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var z2={};z2={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var W2={};W2={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var H2={};H2={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var G2={};G2={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var q2={};q2={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var Y2={};Y2={"ar-AE":m2,"bg-BG":g2,"cs-CZ":y2,"da-DK":v2,"de-DE":b2,"el-GR":$2,"en-US":x2,"es-ES":w2,"et-EE":D2,"fi-FI":E2,"fr-FR":C2,"he-IL":S2,"hr-HR":T2,"hu-HU":A2,"it-IT":P2,"ja-JP":R2,"ko-KR":_2,"lt-LT":O2,"lv-LV":M2,"nb-NO":F2,"nl-NL":k2,"pl-PL":B2,"pt-BR":I2,"pt-PT":V2,"ro-RO":L2,"ru-RU":N2,"sk-SK":j2,"sl-SI":K2,"sr-SP":U2,"sv-SE":z2,"tr-TR":W2,"uk-UA":H2,"zh-CN":G2,"zh-TW":q2};function Ej(e){return e&&e.__esModule?e.default:e}function Cj(e,t,n){let{type:r="menu",isDisabled:i,trigger:o="press"}=e,a=Mr(),{triggerProps:u,overlayProps:c}=QN({type:r},t,n),d=g=>{if(!i&&!(o==="longPress"&&!g.altKey)&&n&&n.current)switch(g.key){case"Enter":case" ":if(o==="longPress")return;case"ArrowDown":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),t.toggle("last");break;default:"continuePropagation"in g&&g.continuePropagation()}},f=Ji(Ej(Y2),"@react-aria/menu"),{longPressProps:h}=$C({isDisabled:i||o!=="longPress",accessibilityDescription:f.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),m={onPressStart(g){g.pointerType!=="touch"&&g.pointerType!=="keyboard"&&!i&&t.open(g.pointerType==="virtual"?"first":null)},onPress(g){g.pointerType==="touch"&&!i&&t.toggle()}};return delete u.onPress,{menuTriggerProps:{...u,...o==="press"?m:h,id:a,onKeyDown:d},menuProps:{...c,"aria-labelledby":a,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function Sj(e){return e&&e.__esModule?e.default:e}function Tj(e,t){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:o,keyboardDelegate:a,layoutDelegate:u,shouldFocusWrap:c,isReadOnly:d,isDisabled:f}=e,h=b.useRef(null);n=n??h;let m=Ji(Sj(o2),"@react-aria/combobox"),{menuTriggerProps:g,menuProps:v}=Cj({type:"listbox",isDisabled:f||d},t,n);np.set(t,{id:v.id});let{collection:$}=t,{disabledKeys:C}=t.selectionManager,x=b.useMemo(()=>a||new f2({collection:$,disabledKeys:C,ref:o,layoutDelegate:u}),[a,u,$,C,o]),{collectionProps:y}=d2({selectionManager:t.selectionManager,keyboardDelegate:x,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:c,ref:i,isVirtualized:!0}),D=Hh(),P=he=>{if(!he.nativeEvent.isComposing)switch(he.key){case"Enter":case"Tab":if(t.isOpen&&he.key==="Enter"&&he.preventDefault(),t.isOpen&&o.current&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){let le=o.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);if(he.key==="Enter"&&le instanceof HTMLAnchorElement){let Fe=t.collection.getItem(t.selectionManager.focusedKey);Fe&&D.open(le,he,Fe.props.href,Fe.props.routerOptions)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&he.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}},E=he=>{var le;let Fe=(n==null?void 0:n.current)&&n.current===he.relatedTarget,et=(le=r.current)===null||le===void 0?void 0:le.contains(he.relatedTarget);Fe||et||(e.onBlur&&e.onBlur(he),t.setFocused(!1))},T=he=>{t.isFocused||(e.onFocus&&e.onFocus(he),t.setFocused(!0))},{isInvalid:k,validationErrors:S,validationDetails:U}=t.displayValidation,{labelProps:O,inputProps:F,descriptionProps:G,errorMessageProps:K}=VN({...e,onChange:t.setInputValue,onKeyDown:d?e.onKeyDown:is(t.isOpen&&y.onKeyDown,P,e.onKeyDown),onBlur:E,value:t.inputValue,onFocus:T,autoComplete:"off",validate:void 0,[Au]:t},i),W=he=>{if(he.pointerType==="touch"){var le;(le=i.current)===null||le===void 0||le.focus(),t.toggle(null,"manual")}},j=he=>{if(he.pointerType!=="touch"){var le;(le=i.current)===null||le===void 0||le.focus(),t.toggle(he.pointerType==="keyboard"||he.pointerType==="virtual"?"first":null,"manual")}},V=Cu({id:g.id,"aria-label":m.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||O.id}),R=Cu({id:v.id,"aria-label":m.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||O.id}),M=b.useRef(0),Y=he=>{if(f||d)return;if(he.timeStamp-M.current<500){var le;he.preventDefault(),(le=i.current)===null||le===void 0||le.focus();return}let Fe=he.target.getBoundingClientRect(),et=he.changedTouches[0],dt=Math.ceil(Fe.left+.5*Fe.width),Dn=Math.ceil(Fe.top+.5*Fe.height);if(et.clientX===dt&&et.clientY===Dn){var yt;he.preventDefault(),(yt=i.current)===null||yt===void 0||yt.focus(),t.toggle(null,"manual"),M.current=he.timeStamp}},L=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var z;let re=(z=L==null?void 0:L.parentKey)!==null&&z!==void 0?z:null;var oe;let fe=(oe=t.selectionManager.focusedKey)!==null&&oe!==void 0?oe:null,ie=b.useRef(re),Ee=b.useRef(fe);b.useEffect(()=>{if(Tf()&&L!=null&&fe!=null&&fe!==Ee.current){let le=t.selectionManager.isSelected(fe),Fe=re!=null?t.collection.getItem(re):null,et=(Fe==null?void 0:Fe["aria-label"])||(typeof(Fe==null?void 0:Fe.rendered)=="string"?Fe.rendered:"")||"";var he;let dt=m.format("focusAnnouncement",{isGroupChange:(he=Fe&&re!==ie.current)!==null&&he!==void 0?he:!1,groupTitle:et,groupCount:Fe?[...rp(Fe,t.collection)].length:0,optionText:L["aria-label"]||L.textValue||"",isSelected:le});hu(dt)}ie.current=re,Ee.current=fe});let $e=p2(t.collection),ne=b.useRef($e),ye=b.useRef(t.isOpen);b.useEffect(()=>{let he=t.isOpen!==ye.current&&(t.selectionManager.focusedKey==null||Tf());if(t.isOpen&&(he||$e!==ne.current)){let le=m.format("countAnnouncement",{optionCount:$e});hu(le)}ne.current=$e,ye.current=t.isOpen});let xe=b.useRef(t.selectedKey);return b.useEffect(()=>{if(Tf()&&t.isFocused&&t.selectedItem&&t.selectedKey!==xe.current){let he=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",le=m.format("selectedAnnouncement",{optionText:he});hu(le)}xe.current=t.selectedKey}),b.useEffect(()=>{if(t.isOpen)return u2([i.current,r.current].filter(he=>he!=null))},[t.isOpen,i,r]),{labelProps:O,buttonProps:{...g,...V,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:W,onPressStart:j,isDisabled:f||d},inputProps:xt(F,{role:"combobox","aria-expanded":g["aria-expanded"],"aria-controls":t.isOpen?v.id:void 0,"aria-autocomplete":"list","aria-activedescendant":L?c2(t,L.key):void 0,onTouchEnd:Y,autoCorrect:"off",spellCheck:"false"}),listBoxProps:xt(v,R,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:G,errorMessageProps:K,isInvalid:k,validationErrors:S,validationDetails:U}}var Z2={};Z2={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 J2={};J2={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 X2={};X2={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 Q2={};Q2={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 eT={};eT={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 tT={};tT={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 nT={};nT={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 rT={};rT={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 iT={};iT={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 oT={};oT={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 aT={};aT={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 sT={};sT={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 uT={};uT={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 lT={};lT={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 cT={};cT={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 dT={};dT={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 fT={};fT={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 hT={};hT={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 pT={};pT={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 mT={};mT={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 gT={};gT={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 yT={};yT={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 vT={};vT={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 bT={};bT={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 $T={};$T={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 xT={};xT={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 wT={};wT={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 DT={};DT={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 ET={};ET={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 CT={};CT={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 ST={};ST={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 TT={};TT={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 AT={};AT={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 PT={};PT={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 jc={};jc={"ar-AE":Z2,"bg-BG":J2,"cs-CZ":X2,"da-DK":Q2,"de-DE":eT,"el-GR":tT,"en-US":nT,"es-ES":rT,"et-EE":iT,"fi-FI":oT,"fr-FR":aT,"he-IL":sT,"hr-HR":uT,"hu-HU":lT,"it-IT":cT,"ja-JP":dT,"ko-KR":fT,"lt-LT":hT,"lv-LV":pT,"nb-NO":mT,"nl-NL":gT,"pl-PL":yT,"pt-BR":vT,"pt-PT":bT,"ro-RO":$T,"ru-RU":xT,"sk-SK":wT,"sl-SI":DT,"sr-SP":ET,"sv-SE":CT,"tr-TR":ST,"uk-UA":TT,"zh-CN":AT,"zh-TW":PT};function gb(e,t,n){let{direction:r}=Qn(),i=b.useMemo(()=>Yh(t),[t]),o=c=>{if(c.currentTarget.contains(c.target)&&(c.altKey&&(c.key==="ArrowDown"||c.key==="ArrowUp")&&"setOpen"in e&&(c.preventDefault(),c.stopPropagation(),e.setOpen(!0)),!n))switch(c.key){case"ArrowLeft":c.preventDefault(),c.stopPropagation(),r==="rtl"?i.focusNext():i.focusPrevious();break;case"ArrowRight":c.preventDefault(),c.stopPropagation(),r==="rtl"?i.focusPrevious():i.focusNext();break}},a=()=>{var c;if(!t.current)return;let d=(c=window.event)===null||c===void 0?void 0:c.target,f=wr(t.current,{tabbable:!0});if(d&&(f.currentNode=d,d=f.previousNode()),!d){let h;do h=f.lastChild(),h&&(d=h);while(h)}for(;d!=null&&d.hasAttribute("data-placeholder");){let h=f.previousNode();if(h&&h.hasAttribute("data-placeholder"))d=h;else break}d&&d.focus()},{pressProps:u}=Fc({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(c){c.pointerType==="mouse"&&a()},onPress(c){c.pointerType!=="mouse"&&a()}});return xt(u,{onKeyDown:o})}function Aj(e){return e&&e.__esModule?e.default:e}const RT=new WeakMap,Ql="__role_"+Date.now(),_T="__focusManager_"+Date.now();function OT(e,t,n){var r;let{isInvalid:i,validationErrors:o,validationDetails:a}=t.displayValidation,{labelProps:u,fieldProps:c,descriptionProps:d,errorMessageProps:f}=tp({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||o}),h=b.useRef(null),{focusWithinProps:m}=Uu({...e,onFocusWithin(O){var F;h.current=t.value,(F=e.onFocus)===null||F===void 0||F.call(e,O)},onBlurWithin:O=>{var F;t.confirmPlaceholder(),t.value!==h.current&&t.commitValidation(),(F=e.onBlur)===null||F===void 0||F.call(e,O)},onFocusWithinChange:e.onFocusChange}),g=Ji(Aj(jc),"@react-aria/datepicker"),v=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",$=t.maxGranularity==="hour"?"time":"date",C=t.value?g.format(v,{[$]:t.formatValue({month:"long"})}):"",x=Oc(C),y=e[Ql]==="presentation"?c["aria-describedby"]:[x["aria-describedby"],c["aria-describedby"]].filter(Boolean).join(" ")||void 0,D=e[_T],P=b.useMemo(()=>D||Yh(n),[D,n]),E=gb(t,n,e[Ql]==="presentation");RT.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[u.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:y,focusManager:P});let T=b.useRef(e.autoFocus),k;e[Ql]==="presentation"?k={role:"presentation"}:k=xt(c,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":y}),b.useEffect(()=>{T.current&&P.focusFirst(),T.current=!1},[P]),Jv(e.inputRef,t.value,t.setValue),US({...e,focus(){P.focusFirst()}},t,e.inputRef);let S={type:"hidden",name:e.name,value:((r=t.value)===null||r===void 0?void 0:r.toString())||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(S.type="text",S.hidden=!0,S.required=e.isRequired,S.onChange=()=>{});let U=So(e);return{labelProps:{...u,onClick:()=>{P.focusFirst()}},fieldProps:xt(U,k,E,m,{onKeyDown(O){e.onKeyDown&&e.onKeyDown(O)},onKeyUp(O){e.onKeyUp&&e.onKeyUp(O)}}),inputProps:S,descriptionProps:d,errorMessageProps:f,isInvalid:i,validationErrors:o,validationDetails:a}}function Pj(e,t,n){var r;let i=OT(e,t,n);return i.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",i}function Rj(e){return e&&e.__esModule?e.default:e}function _j(e,t,n){let r=Mr(),i=Mr(),o=Mr(),a=Ji(Rj(jc),"@react-aria/datepicker"),{isInvalid:u,validationErrors:c,validationDetails:d}=t.displayValidation,{labelProps:f,fieldProps:h,descriptionProps:m,errorMessageProps:g}=tp({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||c}),v=gb(t,n),$=h["aria-labelledby"]||h.id,{locale:C}=Qn(),x=t.formatValue(C,{month:"long"}),y=x?a.format("selectedDateDescription",{date:x}):"",D=Oc(y),P=[D["aria-describedby"],h["aria-describedby"]].filter(Boolean).join(" ")||void 0,E=So(e),T=b.useMemo(()=>Yh(n),[n]),{focusWithinProps:k}=Uu({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:xt(E,v,h,D,k,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":$,"aria-describedby":P,onKeyDown(S){t.isOpen||e.onKeyDown&&e.onKeyDown(S)},onKeyUp(S){t.isOpen||e.onKeyUp&&e.onKeyUp(S)}}),labelProps:{...f,onClick:()=>{T.focusFirst()}},fieldProps:{...h,id:o,[Ql]:"presentation","aria-describedby":P,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,[Au]:t,autoFocus:e.autoFocus,name:e.name},descriptionProps:m,errorMessageProps:g,buttonProps:{...D,id:r,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${r} ${$}`,"aria-describedby":P,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:i,"aria-labelledby":`${r} ${$}`},calendarProps:{autoFocus:!0,value:t.dateValue,onChange:t.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:t.dateValue?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:u,validationErrors:c,validationDetails:d}}function Oj(e){return e&&e.__esModule?e.default:e}function Mj(){let{locale:e}=Qn(),t=SC(Oj(jc),"@react-aria/datepicker");return b.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new Fj(e,t)}},[e,t])}class Fj{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function kj(e,t,n){let r=b.useRef(""),{locale:i}=Qn(),o=Mj(),{ariaLabel:a,ariaLabelledBy:u,ariaDescribedBy:c,focusManager:d}=RT.get(t),f=e.isPlaceholder?"":e.text,h=b.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),m=Vi({month:"long",timeZone:h.timeZone}),g=Vi({hour:"numeric",hour12:h.hour12,timeZone:h.timeZone});if(e.type==="month"&&!e.isPlaceholder){let M=m.format(t.dateValue);f=M!==f?`${f} – ${M}`:M}else e.type==="hour"&&!e.isPlaceholder&&(f=g.format(t.dateValue));let{spinButtonProps:v}=NN({value:e.value,textValue:f,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)}}),$=b.useMemo(()=>new nS(i,{maximumFractionDigits:0}),[i]),C=()=>{if(e.text===e.placeholder&&d.focusPrevious(),$.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let M=e.text.slice(0,-1),Y=$.parse(M);M=Y===0?"":M,M.length===0||Y===0?t.clearSegment(e.type):t.setSegment(e.type,Y),r.current=M}else e.type==="dayPeriod"&&t.clearSegment(e.type)},x=M=>{if(M.key==="a"&&(Do()?M.metaKey:M.ctrlKey)&&M.preventDefault(),!(M.ctrlKey||M.metaKey||M.shiftKey||M.altKey))switch(M.key){case"Backspace":case"Delete":M.preventDefault(),M.stopPropagation(),C();break}},{startsWith:y}=iS({sensitivity:"base"}),D=Vi({hour:"numeric",hour12:!0}),P=b.useMemo(()=>{let M=new Date;return M.setHours(0),D.formatToParts(M).find(Y=>Y.type==="dayPeriod").value},[D]),E=b.useMemo(()=>{let M=new Date;return M.setHours(12),D.formatToParts(M).find(Y=>Y.type==="dayPeriod").value},[D]),T=Vi({year:"numeric",era:"narrow",timeZone:"UTC"}),k=b.useMemo(()=>{if(e.type!=="era")return[];let M=Qt(new hn(1,1,1),t.calendar),Y=t.calendar.getEras().map(z=>{let re=M.set({year:1,month:1,day:1,era:z}).toDate("UTC"),fe=T.formatToParts(re).find(ie=>ie.type==="era").value;return{era:z,formatted:fe}}),L=Bj(Y.map(z=>z.formatted));if(L)for(let z of Y)z.formatted=z.formatted.slice(L);return Y},[T,t.calendar,e.type]),S=M=>{if(t.isDisabled||t.isReadOnly)return;let Y=r.current+M;switch(e.type){case"dayPeriod":if(y(P,M))t.setSegment("dayPeriod",0);else if(y(E,M))t.setSegment("dayPeriod",12);else break;d.focusNext();break;case"era":{let L=k.find(z=>y(z.formatted,M));L&&(t.setSegment("era",L.era),d.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!$.isValidPartialNumber(Y))return;let L=$.parse(Y),z=L,re=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":L>11&&(z=$.parse(M));break;case"h12":re=!1,L>12&&(z=$.parse(M));break}e.value!==void 0&&e.value>=12&&L>1&&(L+=12)}else e.maxValue!==void 0&&L>e.maxValue&&(z=$.parse(M));if(isNaN(L))return;let oe=z!==0||re;oe&&t.setSegment(e.type,z),e.maxValue!==void 0&&(+(L+"0")>e.maxValue||Y.length>=String(e.maxValue).length)?(r.current="",oe&&d.focusNext()):r.current=Y;break}}},U=()=>{r.current="",n.current&&Yf(n.current,{containingElement:Gh(n.current)});let M=window.getSelection();M==null||M.collapse(n.current)},O=b.useRef(typeof document<"u"?document:null);ia(O,"selectionchange",()=>{var M;let Y=window.getSelection();Y!=null&&Y.anchorNode&&(!((M=n.current)===null||M===void 0)&&M.contains(Y==null?void 0:Y.anchorNode))&&Y.collapse(n.current)});let F=b.useRef("");ia(n,"beforeinput",M=>{if(n.current)switch(M.preventDefault(),M.inputType){case"deleteContentBackward":case"deleteContentForward":$.isValidPartialNumber(e.text)&&!t.isReadOnly&&C();break;case"insertCompositionText":F.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:M.data!=null&&S(M.data);break}}),ia(n,"input",M=>{let{inputType:Y,data:L}=M;switch(Y){case"insertCompositionText":n.current&&(n.current.textContent=F.current),L!=null&&(y(P,L)||y(E,L))&&S(L);break}}),zt(()=>{let M=n.current;return()=>{document.activeElement===M&&(d.focusPrevious()||d.focusNext())}},[n,d]);let G=_c()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},K=b.useMemo(()=>t.segments.find(M=>M.isEditable),[t.segments]);e!==K&&!t.isInvalid&&(c=void 0);let W=Mr(),j=!t.isDisabled&&!t.isReadOnly&&e.isEditable,V=e.type==="literal"?"":o.of(e.type),R=Cu({"aria-label":`${V}${a?`, ${a}`:""}${u?", ":""}`,"aria-labelledby":u});return e.type==="literal"?{segmentProps:{"aria-hidden":!0}}:{segmentProps:xt(v,R,{id:W,...G,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":c,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:j,suppressContentEditableWarning:j,spellCheck:j?"false":void 0,autoCorrect:j?"off":void 0,[parseInt(b.version,10)>=17?"enterKeyHint":"enterkeyhint"]:j?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!j?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:x,onFocus:U,style:{caretColor:"transparent"},onPointerDown(M){M.stopPropagation()},onMouseDown(M){M.stopPropagation()}})}}function Bj(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 Ij(e){return e&&e.__esModule?e.default:e}function Vj(e,t,n){var r,i,o;let a=Ji(Ij(jc),"@react-aria/datepicker"),{isInvalid:u,validationErrors:c,validationDetails:d}=t.displayValidation,{labelProps:f,fieldProps:h,descriptionProps:m,errorMessageProps:g}=tp({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||c}),v=h["aria-labelledby"]||h.id,{locale:$}=Qn(),C=t.formatValue($,{month:"long"}),x=C?a.format("selectedRangeDescription",{startDate:C.start,endDate:C.end}):"",y=Oc(x),D={"aria-label":a.format("startDate"),"aria-labelledby":v},P={"aria-label":a.format("endDate"),"aria-labelledby":v},E=Mr(),T=Mr(),k=gb(t,n),S=[y["aria-describedby"],h["aria-describedby"]].filter(Boolean).join(" ")||void 0,U=b.useMemo(()=>Yh(n,{accept:R=>R.id!==E}),[n,E]),O={[_T]:U,[Ql]:"presentation","aria-describedby":S,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},F=So(e),{focusWithinProps:G}=Uu({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),K=b.useRef(La),W=b.useRef(La);var j,V;return{groupProps:xt(F,k,h,y,G,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":S,onKeyDown(R){t.isOpen||e.onKeyDown&&e.onKeyDown(R)},onKeyUp(R){t.isOpen||e.onKeyUp&&e.onKeyUp(R)}}),labelProps:{...f,onClick:()=>{U.focusFirst()}},buttonProps:{...y,id:E,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${E} ${v}`,"aria-describedby":S,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:T,"aria-labelledby":`${E} ${v}`},startFieldProps:{...D,...O,value:(j=(r=t.value)===null||r===void 0?void 0:r.start)!==null&&j!==void 0?j:null,onChange:R=>t.setDateTime("start",R),autoFocus:e.autoFocus,name:e.startName,[Au]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(R){K.current=R,t.updateValidation(ah(R,W.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...P,...O,value:(V=(i=t.value)===null||i===void 0?void 0:i.end)!==null&&V!==void 0?V:null,onChange:R=>t.setDateTime("end",R),name:e.endName,[Au]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(R){W.current=R,t.updateValidation(ah(K.current,R))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:m,errorMessageProps:g,calendarProps:{autoFocus:!0,value:!((o=t.dateRange)===null||o===void 0)&&o.start&&t.dateRange.end?t.dateRange:null,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:u,validationErrors:c,validationDetails:d}}function Lj(e,t){let{role:n="dialog"}=e,r=Eu();r=e["aria-label"]?void 0:r;let i=b.useRef(!1);return b.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){ss(t.current);let o=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),ss(t.current)),i.current=!1)},500);return()=>{clearTimeout(o)}}},[t]),uj(),{dialogProps:{...So(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:o=>{i.current&&o.stopPropagation()}},titleProps:{id:r}}}var Kc=e=>e.type==="checkbox",Ua=e=>e instanceof Date,sr=e=>e==null;const MT=e=>typeof e=="object";var fn=e=>!sr(e)&&!Array.isArray(e)&&MT(e)&&!Ua(e),FT=e=>fn(e)&&e.target?Kc(e.target)?e.target.checked:e.target.value:e,Nj=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,kT=(e,t)=>e.has(Nj(t)),jj=e=>{const t=e.constructor&&e.constructor.prototype;return fn(t)&&t.hasOwnProperty("isPrototypeOf")},yb=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function br(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(!(yb&&(e instanceof Blob||r))&&(n||fn(e)))if(t=n?[]:{},!n&&!jj(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=br(e[i]));else return e;return t}var ip=e=>Array.isArray(e)?e.filter(Boolean):[],dn=e=>e===void 0,Ae=(e,t,n)=>{if(!t||!fn(e))return n;const r=ip(t.split(/[,[\].]+?/)).reduce((i,o)=>sr(i)?i:i[o],e);return dn(r)||r===e?dn(e[t])?n:e[t]:r},ti=e=>typeof e=="boolean",vb=e=>/^\w*$/.test(e),BT=e=>ip(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Tt=(e,t,n)=>{let r=-1;const i=vb(t)?[t]:BT(t),o=i.length,a=o-1;for(;++r<o;){const u=i[r];let c=n;if(r!==a){const d=e[u];c=fn(d)||Array.isArray(d)?d:isNaN(+i[r+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;e[u]=c,e=e[u]}return e};const uh={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},yi={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},fo={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},IT=b.createContext(null),op=()=>b.useContext(IT),Kj=e=>{const{children:t,...n}=e;return b.createElement(IT.Provider,{value:n},t)};var VT=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const a=o;return t._proxyFormState[a]!==yi.all&&(t._proxyFormState[a]=!r||yi.all),n&&(n[a]=!0),e[a]}});return i},$r=e=>fn(e)&&!Object.keys(e).length,LT=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return $r(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(a=>t[a]===(!r||yi.all))},ec=e=>Array.isArray(e)?e:[e],NT=(e,t,n)=>!e||!t||e===t||ec(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function bb(e){const t=b.useRef(e);t.current=e,b.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function Uj(e){const t=op(),{control:n=t.control,disabled:r,name:i,exact:o}=e,[a,u]=b.useState(n._formState),c=b.useRef(!0),d=b.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),f=b.useRef(i);return f.current=i,bb({disabled:r,next:h=>c.current&&NT(f.current,h.name,o)&<(h,d.current,n._updateFormState)&&u({...n._formState,...h}),subject:n._subjects.state}),b.useEffect(()=>(c.current=!0,d.current.isValid&&n._updateValid(!0),()=>{c.current=!1}),[n]),b.useMemo(()=>VT(a,n,d.current,!1),[a,n])}var Ni=e=>typeof e=="string",jT=(e,t,n,r,i)=>Ni(e)?(r&&t.watch.add(e),Ae(n,e,i)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),Ae(n,o))):(r&&(t.watchAll=!0),n);function zj(e){const t=op(),{control:n=t.control,name:r,defaultValue:i,disabled:o,exact:a}=e,u=b.useRef(r);u.current=r,bb({disabled:o,subject:n._subjects.values,next:f=>{NT(u.current,f.name,a)&&d(br(jT(u.current,n._names,f.values||n._formValues,!1,i)))}});const[c,d]=b.useState(n._getWatch(r,i));return b.useEffect(()=>n._removeUnmounted()),c}function Wj(e){const t=op(),{name:n,disabled:r,control:i=t.control,shouldUnregister:o}=e,a=kT(i._names.array,n),u=zj({control:i,name:n,defaultValue:Ae(i._formValues,n,Ae(i._defaultValues,n,e.defaultValue)),exact:!0}),c=Uj({control:i,name:n,exact:!0}),d=b.useRef(i.register(n,{...e.rules,value:u,...ti(e.disabled)?{disabled:e.disabled}:{}})),f=b.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ae(c.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ae(c.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ae(c.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Ae(c.validatingFields,n)},error:{enumerable:!0,get:()=>Ae(c.errors,n)}}),[c,n]),h=b.useMemo(()=>({name:n,value:u,...ti(r)||c.disabled?{disabled:c.disabled||r}:{},onChange:m=>d.current.onChange({target:{value:FT(m),name:n},type:uh.CHANGE}),onBlur:()=>d.current.onBlur({target:{value:Ae(i._formValues,n),name:n},type:uh.BLUR}),ref:m=>{const g=Ae(i._fields,n);g&&m&&(g._f.ref={focus:()=>m.focus(),select:()=>m.select(),setCustomValidity:v=>m.setCustomValidity(v),reportValidity:()=>m.reportValidity()})}}),[n,i._formValues,r,c.disabled,u,i._fields]);return b.useEffect(()=>{const m=i._options.shouldUnregister||o,g=(v,$)=>{const C=Ae(i._fields,v);C&&C._f&&(C._f.mount=$)};if(g(n,!0),m){const v=br(Ae(i._options.defaultValues,n));Tt(i._defaultValues,n,v),dn(Ae(i._formValues,n))&&Tt(i._formValues,n,v)}return!a&&i.register(n),()=>{(a?m&&!i._state.action:m)?i.unregister(n):g(n,!1)}},[n,i,a,o]),b.useEffect(()=>{i._updateDisabledField({disabled:r,fields:i._fields,name:n})},[r,n,i]),b.useMemo(()=>({field:h,formState:c,fieldState:f}),[h,c,f])}var KT=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},H$=e=>({isOnSubmit:!e||e===yi.onSubmit,isOnBlur:e===yi.onBlur,isOnChange:e===yi.onChange,isOnAll:e===yi.all,isOnTouch:e===yi.onTouched}),G$=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const tc=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const o=Ae(e,i);if(o){const{_f:a,...u}=o;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],i)&&!r)return!0;if(a.ref&&t(a.ref,a.name)&&!r)return!0;if(tc(u,t))break}else if(fn(u)&&tc(u,t))break}}};var Hj=(e,t,n)=>{const r=ec(Ae(e,n));return Tt(r,"root",t[n]),Tt(e,n,r),e},$b=e=>e.type==="file",Ii=e=>typeof e=="function",lh=e=>{if(!yb)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Of=e=>Ni(e),xb=e=>e.type==="radio",ch=e=>e instanceof RegExp;const q$={value:!1,isValid:!1},Y$={value:!0,isValid:!0};var UT=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&&!dn(e[0].attributes.value)?dn(e[0].value)||e[0].value===""?Y$:{value:e[0].value,isValid:!0}:Y$:q$}return q$};const Z$={isValid:!1,value:null};var zT=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Z$):Z$;function J$(e,t,n="validate"){if(Of(e)||Array.isArray(e)&&e.every(Of)||ti(e)&&!e)return{type:n,message:Of(e)?e:"",ref:t}}var Hs=e=>fn(e)&&!ch(e)?e:{value:e,message:""},X$=async(e,t,n,r,i,o)=>{const{ref:a,refs:u,required:c,maxLength:d,minLength:f,min:h,max:m,pattern:g,validate:v,name:$,valueAsNumber:C,mount:x}=e._f,y=Ae(n,$);if(!x||t.has($))return{};const D=u?u[0]:a,P=G=>{i&&D.reportValidity&&(D.setCustomValidity(ti(G)?"":G||""),D.reportValidity())},E={},T=xb(a),k=Kc(a),S=T||k,U=(C||$b(a))&&dn(a.value)&&dn(y)||lh(a)&&a.value===""||y===""||Array.isArray(y)&&!y.length,O=KT.bind(null,$,r,E),F=(G,K,W,j=fo.maxLength,V=fo.minLength)=>{const R=G?K:W;E[$]={type:G?j:V,message:R,ref:a,...O(G?j:V,R)}};if(o?!Array.isArray(y)||!y.length:c&&(!S&&(U||sr(y))||ti(y)&&!y||k&&!UT(u).isValid||T&&!zT(u).isValid)){const{value:G,message:K}=Of(c)?{value:!!c,message:c}:Hs(c);if(G&&(E[$]={type:fo.required,message:K,ref:D,...O(fo.required,K)},!r))return P(K),E}if(!U&&(!sr(h)||!sr(m))){let G,K;const W=Hs(m),j=Hs(h);if(!sr(y)&&!isNaN(y)){const V=a.valueAsNumber||y&&+y;sr(W.value)||(G=V>W.value),sr(j.value)||(K=V<j.value)}else{const V=a.valueAsDate||new Date(y),R=L=>new Date(new Date().toDateString()+" "+L),M=a.type=="time",Y=a.type=="week";Ni(W.value)&&y&&(G=M?R(y)>R(W.value):Y?y>W.value:V>new Date(W.value)),Ni(j.value)&&y&&(K=M?R(y)<R(j.value):Y?y<j.value:V<new Date(j.value))}if((G||K)&&(F(!!G,W.message,j.message,fo.max,fo.min),!r))return P(E[$].message),E}if((d||f)&&!U&&(Ni(y)||o&&Array.isArray(y))){const G=Hs(d),K=Hs(f),W=!sr(G.value)&&y.length>+G.value,j=!sr(K.value)&&y.length<+K.value;if((W||j)&&(F(W,G.message,K.message),!r))return P(E[$].message),E}if(g&&!U&&Ni(y)){const{value:G,message:K}=Hs(g);if(ch(G)&&!y.match(G)&&(E[$]={type:fo.pattern,message:K,ref:a,...O(fo.pattern,K)},!r))return P(K),E}if(v){if(Ii(v)){const G=await v(y,n),K=J$(G,D);if(K&&(E[$]={...K,...O(fo.validate,K.message)},!r))return P(K.message),E}else if(fn(v)){let G={};for(const K in v){if(!$r(G)&&!r)break;const W=J$(await v[K](y,n),D,K);W&&(G={...W,...O(K,W.message)},P(W.message),r&&(E[$]=G))}if(!$r(G)&&(E[$]={ref:D,...G},!r))return E}}return P(!0),E};function Gj(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=dn(e)?r++:e[t[r++]];return e}function qj(e){for(const t in e)if(e.hasOwnProperty(t)&&!dn(e[t]))return!1;return!0}function $n(e,t){const n=Array.isArray(t)?t:vb(t)?[t]:BT(t),r=n.length===1?e:Gj(e,n),i=n.length-1,o=n[i];return r&&delete r[o],i!==0&&(fn(r)&&$r(r)||Array.isArray(r)&&qj(r))&&$n(e,n.slice(0,-1)),e}var pg=()=>{let e=[];return{get observers(){return e},next:i=>{for(const o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}},Ly=e=>sr(e)||!MT(e);function Jo(e,t){if(Ly(e)||Ly(t))return e===t;if(Ua(e)&&Ua(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const o=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const a=t[i];if(Ua(o)&&Ua(a)||fn(o)&&fn(a)||Array.isArray(o)&&Array.isArray(a)?!Jo(o,a):o!==a)return!1}}return!0}var WT=e=>e.type==="select-multiple",Yj=e=>xb(e)||Kc(e),mg=e=>lh(e)&&e.isConnected,HT=e=>{for(const t in e)if(Ii(e[t]))return!0;return!1};function dh(e,t={}){const n=Array.isArray(e);if(fn(e)||n)for(const r in e)Array.isArray(e[r])||fn(e[r])&&!HT(e[r])?(t[r]=Array.isArray(e[r])?[]:{},dh(e[r],t[r])):sr(e[r])||(t[r]=!0);return t}function GT(e,t,n){const r=Array.isArray(e);if(fn(e)||r)for(const i in e)Array.isArray(e[i])||fn(e[i])&&!HT(e[i])?dn(t)||Ly(n[i])?n[i]=Array.isArray(e[i])?dh(e[i],[]):{...dh(e[i])}:GT(e[i],sr(t)?{}:t[i],n[i]):n[i]=!Jo(e[i],t[i]);return n}var Pl=(e,t)=>GT(e,t,dh(t)),qT=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>dn(e)?e:t?e===""?NaN:e&&+e:n&&Ni(e)?new Date(e):r?r(e):e;function gg(e){const t=e.ref;return $b(t)?t.files:xb(t)?zT(e.refs).value:WT(t)?[...t.selectedOptions].map(({value:n})=>n):Kc(t)?UT(e.refs).value:qT(dn(t.value)?e.ref.value:t.value,e)}var Zj=(e,t,n,r)=>{const i={};for(const o of e){const a=Ae(t,o);a&&Tt(i,o,a._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Rl=e=>dn(e)?e:ch(e)?e.source:fn(e)?ch(e.value)?e.value.source:e.value:e;const Q$="AsyncFunction";var Jj=e=>!!e&&!!e.validate&&!!(Ii(e.validate)&&e.validate.constructor.name===Q$||fn(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===Q$)),Xj=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function ex(e,t,n){const r=Ae(e,n);if(r||vb(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const o=i.join("."),a=Ae(t,o),u=Ae(e,o);if(a&&!Array.isArray(a)&&n!==o)return{name:n};if(u&&u.type)return{name:o,error:u};i.pop()}return{name:n}}var Qj=(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,eK=(e,t)=>!ip(Ae(e,t)).length&&$n(e,t);const tK={mode:yi.onSubmit,reValidateMode:yi.onChange,shouldFocusError:!0};function nK(e={}){let t={...tK,...e},n={submitCount:0,isDirty:!1,isLoading:Ii(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=fn(t.defaultValues)||fn(t.values)?br(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:br(i),a={action:!1,mount:!1,watch:!1},u={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,d=0;const f={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:pg(),array:pg(),state:pg()},m=H$(t.mode),g=H$(t.reValidateMode),v=t.criteriaMode===yi.all,$=q=>Z=>{clearTimeout(d),d=setTimeout(q,Z)},C=async q=>{if(!t.disabled&&(f.isValid||q)){const Z=t.resolver?$r((await S()).errors):await O(r,!0);Z!==n.isValid&&h.state.next({isValid:Z})}},x=(q,Z)=>{!t.disabled&&(f.isValidating||f.validatingFields)&&((q||Array.from(u.mount)).forEach(te=>{te&&(Z?Tt(n.validatingFields,te,Z):$n(n.validatingFields,te))}),h.state.next({validatingFields:n.validatingFields,isValidating:!$r(n.validatingFields)}))},y=(q,Z=[],te,pe,Ce=!0,De=!0)=>{if(pe&&te&&!t.disabled){if(a.action=!0,De&&Array.isArray(Ae(r,q))){const Re=te(Ae(r,q),pe.argA,pe.argB);Ce&&Tt(r,q,Re)}if(De&&Array.isArray(Ae(n.errors,q))){const Re=te(Ae(n.errors,q),pe.argA,pe.argB);Ce&&Tt(n.errors,q,Re),eK(n.errors,q)}if(f.touchedFields&&De&&Array.isArray(Ae(n.touchedFields,q))){const Re=te(Ae(n.touchedFields,q),pe.argA,pe.argB);Ce&&Tt(n.touchedFields,q,Re)}f.dirtyFields&&(n.dirtyFields=Pl(i,o)),h.state.next({name:q,isDirty:G(q,Z),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Tt(o,q,Z)},D=(q,Z)=>{Tt(n.errors,q,Z),h.state.next({errors:n.errors})},P=q=>{n.errors=q,h.state.next({errors:n.errors,isValid:!1})},E=(q,Z,te,pe)=>{const Ce=Ae(r,q);if(Ce){const De=Ae(o,q,dn(te)?Ae(i,q):te);dn(De)||pe&&pe.defaultChecked||Z?Tt(o,q,Z?De:gg(Ce._f)):j(q,De),a.mount&&C()}},T=(q,Z,te,pe,Ce)=>{let De=!1,Re=!1;const Le={name:q};if(!t.disabled){const mt=!!(Ae(r,q)&&Ae(r,q)._f&&Ae(r,q)._f.disabled);if(!te||pe){f.isDirty&&(Re=n.isDirty,n.isDirty=Le.isDirty=G(),De=Re!==Le.isDirty);const ut=mt||Jo(Ae(i,q),Z);Re=!!(!mt&&Ae(n.dirtyFields,q)),ut||mt?$n(n.dirtyFields,q):Tt(n.dirtyFields,q,!0),Le.dirtyFields=n.dirtyFields,De=De||f.dirtyFields&&Re!==!ut}if(te){const ut=Ae(n.touchedFields,q);ut||(Tt(n.touchedFields,q,te),Le.touchedFields=n.touchedFields,De=De||f.touchedFields&&ut!==te)}De&&Ce&&h.state.next(Le)}return De?Le:{}},k=(q,Z,te,pe)=>{const Ce=Ae(n.errors,q),De=f.isValid&&ti(Z)&&n.isValid!==Z;if(t.delayError&&te?(c=$(()=>D(q,te)),c(t.delayError)):(clearTimeout(d),c=null,te?Tt(n.errors,q,te):$n(n.errors,q)),(te?!Jo(Ce,te):Ce)||!$r(pe)||De){const Re={...pe,...De&&ti(Z)?{isValid:Z}:{},errors:n.errors,name:q};n={...n,...Re},h.state.next(Re)}},S=async q=>{x(q,!0);const Z=await t.resolver(o,t.context,Zj(q||u.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return x(q),Z},U=async q=>{const{errors:Z}=await S(q);if(q)for(const te of q){const pe=Ae(Z,te);pe?Tt(n.errors,te,pe):$n(n.errors,te)}else n.errors=Z;return Z},O=async(q,Z,te={valid:!0})=>{for(const pe in q){const Ce=q[pe];if(Ce){const{_f:De,...Re}=Ce;if(De){const Le=u.array.has(De.name),mt=Ce._f&&Jj(Ce._f);mt&&f.validatingFields&&x([pe],!0);const ut=await X$(Ce,u.disabled,o,v,t.shouldUseNativeValidation&&!Z,Le);if(mt&&f.validatingFields&&x([pe]),ut[De.name]&&(te.valid=!1,Z))break;!Z&&(Ae(ut,De.name)?Le?Hj(n.errors,ut,De.name):Tt(n.errors,De.name,ut[De.name]):$n(n.errors,De.name))}!$r(Re)&&await O(Re,Z,te)}}return te.valid},F=()=>{for(const q of u.unMount){const Z=Ae(r,q);Z&&(Z._f.refs?Z._f.refs.every(te=>!mg(te)):!mg(Z._f.ref))&&Ee(q)}u.unMount=new Set},G=(q,Z)=>!t.disabled&&(q&&Z&&Tt(o,q,Z),!Jo(z(),i)),K=(q,Z,te)=>jT(q,u,{...a.mount?o:dn(Z)?i:Ni(q)?{[q]:Z}:Z},te,Z),W=q=>ip(Ae(a.mount?o:i,q,t.shouldUnregister?Ae(i,q,[]):[])),j=(q,Z,te={})=>{const pe=Ae(r,q);let Ce=Z;if(pe){const De=pe._f;De&&(!De.disabled&&Tt(o,q,qT(Z,De)),Ce=lh(De.ref)&&sr(Z)?"":Z,WT(De.ref)?[...De.ref.options].forEach(Re=>Re.selected=Ce.includes(Re.value)):De.refs?Kc(De.ref)?De.refs.length>1?De.refs.forEach(Re=>(!Re.defaultChecked||!Re.disabled)&&(Re.checked=Array.isArray(Ce)?!!Ce.find(Le=>Le===Re.value):Ce===Re.value)):De.refs[0]&&(De.refs[0].checked=!!Ce):De.refs.forEach(Re=>Re.checked=Re.value===Ce):$b(De.ref)?De.ref.value="":(De.ref.value=Ce,De.ref.type||h.values.next({name:q,values:{...o}})))}(te.shouldDirty||te.shouldTouch)&&T(q,Ce,te.shouldTouch,te.shouldDirty,!0),te.shouldValidate&&L(q)},V=(q,Z,te)=>{for(const pe in Z){const Ce=Z[pe],De=`${q}.${pe}`,Re=Ae(r,De);(u.array.has(q)||fn(Ce)||Re&&!Re._f)&&!Ua(Ce)?V(De,Ce,te):j(De,Ce,te)}},R=(q,Z,te={})=>{const pe=Ae(r,q),Ce=u.array.has(q),De=br(Z);Tt(o,q,De),Ce?(h.array.next({name:q,values:{...o}}),(f.isDirty||f.dirtyFields)&&te.shouldDirty&&h.state.next({name:q,dirtyFields:Pl(i,o),isDirty:G(q,De)})):pe&&!pe._f&&!sr(De)?V(q,De,te):j(q,De,te),G$(q,u)&&h.state.next({...n}),h.values.next({name:a.mount?q:void 0,values:{...o}})},M=async q=>{a.mount=!0;const Z=q.target;let te=Z.name,pe=!0;const Ce=Ae(r,te),De=()=>Z.type?gg(Ce._f):FT(q),Re=Le=>{pe=Number.isNaN(Le)||Ua(Le)&&isNaN(Le.getTime())||Jo(Le,Ae(o,te,Le))};if(Ce){let Le,mt;const ut=De(),_t=q.type===uh.BLUR||q.type===uh.FOCUS_OUT,Pn=!Xj(Ce._f)&&!t.resolver&&!Ae(n.errors,te)&&!Ce._f.deps||Qj(_t,Ae(n.touchedFields,te),n.isSubmitted,g,m),Rn=G$(te,u,_t);Tt(o,te,ut),_t?(Ce._f.onBlur&&Ce._f.onBlur(q),c&&c(0)):Ce._f.onChange&&Ce._f.onChange(q);const Yt=T(te,ut,_t,!1),Vn=!$r(Yt)||Rn;if(!_t&&h.values.next({name:te,type:q.type,values:{...o}}),Pn)return f.isValid&&(t.mode==="onBlur"&&_t?C():_t||C()),Vn&&h.state.next({name:te,...Rn?{}:Yt});if(!_t&&Rn&&h.state.next({...n}),t.resolver){const{errors:tn}=await S([te]);if(Re(ut),pe){const vt=ex(n.errors,r,te),Ln=ex(tn,r,vt.name||te);Le=Ln.error,te=Ln.name,mt=$r(tn)}}else x([te],!0),Le=(await X$(Ce,u.disabled,o,v,t.shouldUseNativeValidation))[te],x([te]),Re(ut),pe&&(Le?mt=!1:f.isValid&&(mt=await O(r,!0)));pe&&(Ce._f.deps&&L(Ce._f.deps),k(te,mt,Le,Yt))}},Y=(q,Z)=>{if(Ae(n.errors,Z)&&q.focus)return q.focus(),1},L=async(q,Z={})=>{let te,pe;const Ce=ec(q);if(t.resolver){const De=await U(dn(q)?q:Ce);te=$r(De),pe=q?!Ce.some(Re=>Ae(De,Re)):te}else q?(pe=(await Promise.all(Ce.map(async De=>{const Re=Ae(r,De);return await O(Re&&Re._f?{[De]:Re}:Re)}))).every(Boolean),!(!pe&&!n.isValid)&&C()):pe=te=await O(r);return h.state.next({...!Ni(q)||f.isValid&&te!==n.isValid?{}:{name:q},...t.resolver||!q?{isValid:te}:{},errors:n.errors}),Z.shouldFocus&&!pe&&tc(r,Y,q?Ce:u.mount),pe},z=q=>{const Z={...a.mount?o:i};return dn(q)?Z:Ni(q)?Ae(Z,q):q.map(te=>Ae(Z,te))},re=(q,Z)=>({invalid:!!Ae((Z||n).errors,q),isDirty:!!Ae((Z||n).dirtyFields,q),error:Ae((Z||n).errors,q),isValidating:!!Ae(n.validatingFields,q),isTouched:!!Ae((Z||n).touchedFields,q)}),oe=q=>{q&&ec(q).forEach(Z=>$n(n.errors,Z)),h.state.next({errors:q?n.errors:{}})},fe=(q,Z,te)=>{const pe=(Ae(r,q,{_f:{}})._f||{}).ref,Ce=Ae(n.errors,q)||{},{ref:De,message:Re,type:Le,...mt}=Ce;Tt(n.errors,q,{...mt,...Z,ref:pe}),h.state.next({name:q,errors:n.errors,isValid:!1}),te&&te.shouldFocus&&pe&&pe.focus&&pe.focus()},ie=(q,Z)=>Ii(q)?h.values.subscribe({next:te=>q(K(void 0,Z),te)}):K(q,Z,!0),Ee=(q,Z={})=>{for(const te of q?ec(q):u.mount)u.mount.delete(te),u.array.delete(te),Z.keepValue||($n(r,te),$n(o,te)),!Z.keepError&&$n(n.errors,te),!Z.keepDirty&&$n(n.dirtyFields,te),!Z.keepTouched&&$n(n.touchedFields,te),!Z.keepIsValidating&&$n(n.validatingFields,te),!t.shouldUnregister&&!Z.keepDefaultValue&&$n(i,te);h.values.next({values:{...o}}),h.state.next({...n,...Z.keepDirty?{isDirty:G()}:{}}),!Z.keepIsValid&&C()},$e=({disabled:q,name:Z,field:te,fields:pe})=>{(ti(q)&&a.mount||q||u.disabled.has(Z))&&(q?u.disabled.add(Z):u.disabled.delete(Z),T(Z,gg(te?te._f:Ae(pe,Z)._f),!1,!1,!0))},ne=(q,Z={})=>{let te=Ae(r,q);const pe=ti(Z.disabled)||ti(t.disabled);return Tt(r,q,{...te||{},_f:{...te&&te._f?te._f:{ref:{name:q}},name:q,mount:!0,...Z}}),u.mount.add(q),te?$e({field:te,disabled:ti(Z.disabled)?Z.disabled:t.disabled,name:q}):E(q,!0,Z.value),{...pe?{disabled:Z.disabled||t.disabled}:{},...t.progressive?{required:!!Z.required,min:Rl(Z.min),max:Rl(Z.max),minLength:Rl(Z.minLength),maxLength:Rl(Z.maxLength),pattern:Rl(Z.pattern)}:{},name:q,onChange:M,onBlur:M,ref:Ce=>{if(Ce){ne(q,Z),te=Ae(r,q);const De=dn(Ce.value)&&Ce.querySelectorAll&&Ce.querySelectorAll("input,select,textarea")[0]||Ce,Re=Yj(De),Le=te._f.refs||[];if(Re?Le.find(mt=>mt===De):De===te._f.ref)return;Tt(r,q,{_f:{...te._f,...Re?{refs:[...Le.filter(mg),De,...Array.isArray(Ae(i,q))?[{}]:[]],ref:{type:De.type,name:q}}:{ref:De}}}),E(q,!1,void 0,De)}else te=Ae(r,q,{}),te._f&&(te._f.mount=!1),(t.shouldUnregister||Z.shouldUnregister)&&!(kT(u.array,q)&&a.action)&&u.unMount.add(q)}}},ye=()=>t.shouldFocusError&&tc(r,Y,u.mount),xe=q=>{ti(q)&&(h.state.next({disabled:q}),tc(r,(Z,te)=>{const pe=Ae(r,te);pe&&(Z.disabled=pe._f.disabled||q,Array.isArray(pe._f.refs)&&pe._f.refs.forEach(Ce=>{Ce.disabled=pe._f.disabled||q}))},0,!1))},he=(q,Z)=>async te=>{let pe;te&&(te.preventDefault&&te.preventDefault(),te.persist&&te.persist());let Ce=br(o);if(u.disabled.size)for(const De of u.disabled)Tt(Ce,De,void 0);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:De,values:Re}=await S();n.errors=De,Ce=Re}else await O(r);if($n(n.errors,"root"),$r(n.errors)){h.state.next({errors:{}});try{await q(Ce,te)}catch(De){pe=De}}else Z&&await Z({...n.errors},te),ye(),setTimeout(ye);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:$r(n.errors)&&!pe,submitCount:n.submitCount+1,errors:n.errors}),pe)throw pe},le=(q,Z={})=>{Ae(r,q)&&(dn(Z.defaultValue)?R(q,br(Ae(i,q))):(R(q,Z.defaultValue),Tt(i,q,br(Z.defaultValue))),Z.keepTouched||$n(n.touchedFields,q),Z.keepDirty||($n(n.dirtyFields,q),n.isDirty=Z.defaultValue?G(q,br(Ae(i,q))):G()),Z.keepError||($n(n.errors,q),f.isValid&&C()),h.state.next({...n}))},Fe=(q,Z={})=>{const te=q?br(q):i,pe=br(te),Ce=$r(q),De=Ce?i:pe;if(Z.keepDefaultValues||(i=te),!Z.keepValues){if(Z.keepDirtyValues){const Re=new Set([...u.mount,...Object.keys(Pl(i,o))]);for(const Le of Array.from(Re))Ae(n.dirtyFields,Le)?Tt(De,Le,Ae(o,Le)):R(Le,Ae(De,Le))}else{if(yb&&dn(q))for(const Re of u.mount){const Le=Ae(r,Re);if(Le&&Le._f){const mt=Array.isArray(Le._f.refs)?Le._f.refs[0]:Le._f.ref;if(lh(mt)){const ut=mt.closest("form");if(ut){ut.reset();break}}}}r={}}o=t.shouldUnregister?Z.keepDefaultValues?br(i):{}:br(De),h.array.next({values:{...De}}),h.values.next({values:{...De}})}u={mount:Z.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!f.isValid||!!Z.keepIsValid||!!Z.keepDirtyValues,a.watch=!!t.shouldUnregister,h.state.next({submitCount:Z.keepSubmitCount?n.submitCount:0,isDirty:Ce?!1:Z.keepDirty?n.isDirty:!!(Z.keepDefaultValues&&!Jo(q,i)),isSubmitted:Z.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Ce?{}:Z.keepDirtyValues?Z.keepDefaultValues&&o?Pl(i,o):n.dirtyFields:Z.keepDefaultValues&&q?Pl(i,q):Z.keepDirty?n.dirtyFields:{},touchedFields:Z.keepTouched?n.touchedFields:{},errors:Z.keepErrors?n.errors:{},isSubmitSuccessful:Z.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},et=(q,Z)=>Fe(Ii(q)?q(o):q,Z);return{control:{register:ne,unregister:Ee,getFieldState:re,handleSubmit:he,setError:fe,_executeSchema:S,_getWatch:K,_getDirty:G,_updateValid:C,_removeUnmounted:F,_updateFieldArray:y,_updateDisabledField:$e,_getFieldArray:W,_reset:Fe,_resetDefaultValues:()=>Ii(t.defaultValues)&&t.defaultValues().then(q=>{et(q,t.resetOptions),h.state.next({isLoading:!1})}),_updateFormState:q=>{n={...n,...q}},_disableForm:xe,_subjects:h,_proxyFormState:f,_setErrors:P,get _fields(){return r},get _formValues(){return o},get _state(){return a},set _state(q){a=q},get _defaultValues(){return i},get _names(){return u},set _names(q){u=q},get _formState(){return n},set _formState(q){n=q},get _options(){return t},set _options(q){t={...t,...q}}},trigger:L,register:ne,handleSubmit:he,watch:ie,setValue:R,getValues:z,reset:et,resetField:le,clearErrors:oe,unregister:Ee,setError:fe,setFocus:(q,Z={})=>{const te=Ae(r,q),pe=te&&te._f;if(pe){const Ce=pe.refs?pe.refs[0]:pe.ref;Ce.focus&&(Ce.focus(),Z.shouldSelect&&Ii(Ce.select)&&Ce.select())}},getFieldState:re}}function rK(e={}){const t=b.useRef(void 0),n=b.useRef(void 0),[r,i]=b.useState({isDirty:!1,isValidating:!1,isLoading:Ii(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Ii(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...nK(e),formState:r});const o=t.current.control;return o._options=e,bb({subject:o._subjects.state,next:a=>{LT(a,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),b.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),b.useEffect(()=>{if(o._proxyFormState.isDirty){const a=o._getDirty();a!==r.isDirty&&o._subjects.state.next({isDirty:a})}},[o,r.isDirty]),b.useEffect(()=>{e.values&&!Jo(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,i(a=>({...a}))):o._resetDefaultValues()},[e.values,o]),b.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),b.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),b.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=VT(r,o),t.current}function mu(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function Ny(e,t,n,r,i){let o={};for(let u in t)o[u]=Math.floor(t[u]/2),o[u]>0&&t[u]%2===0&&o[u]--;let a=za(e,t,n).subtract(o);return mc(e,a,t,n,r,i)}function za(e,t,n,r,i){let o=e;return t.years?o=dL(e):t.months?o=Ic(e):t.weeks&&(o=dc(e,n)),mc(e,o,t,n,r,i)}function jy(e,t,n,r,i){let o={...t};o.days?o.days--:o.weeks?o.weeks--:o.months?o.months--:o.years&&o.years--;let a=za(e,t,n).subtract(o);return mc(e,a,t,n,r,i)}function mc(e,t,n,r,i,o){if(i&&e.compare(i)>=0){let a=ob(t,za(cr(i),n,r));a&&(t=a)}if(o&&e.compare(o)<=0){let a=ib(t,jy(cr(o),n,r));a&&(t=a)}return t}function Ho(e,t,n){if(t){let r=ob(e,cr(t));r&&(e=r)}if(n){let r=ib(e,cr(n));r&&(e=r)}return e}function YT(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 ZT(e){let t=b.useMemo(()=>new ii(e.locale),[e.locale]),n=b.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:o={months:1},minValue:a,maxValue:u,selectionAlignment:c,isDateUnavailable:d,pageBehavior:f="visible"}=e,h=b.useMemo(()=>i(n.calendar),[i,n.calendar]);var m;let[g,v]=Fr(e.value,(m=e.defaultValue)!==null&&m!==void 0?m:null,e.onChange),$=b.useMemo(()=>g?Qt(cr(g),h):null,[g,h]),C=b.useMemo(()=>g&&"timeZone"in g?g.timeZone:n.timeZone,[g,n.timeZone]),x=b.useMemo(()=>e.focusedValue?Ho(Qt(cr(e.focusedValue),h),a,u):void 0,[e.focusedValue,h,a,u]),y=b.useMemo(()=>Ho(e.defaultFocusedValue?Qt(cr(e.defaultFocusedValue),h):$||Qt(Jh(C),h),a,u),[e.defaultFocusedValue,$,C,h,a,u]),[D,P]=Fr(x,y,e.onFocusChange),[E,T]=b.useState(()=>{switch(c){case"start":return za(D,o,r,a,u);case"end":return jy(D,o,r,a,u);case"center":default:return Ny(D,o,r,a,u)}}),[k,S]=b.useState(e.autoFocus||!1),U=b.useMemo(()=>{let L={...o};return L.days?L.days--:L.days=-1,E.add(L)},[E,o]),[O,F]=b.useState(h.identifier);if(h.identifier!==O){let L=Qt(D,h);T(Ny(L,o,r,a,u)),P(L),F(h.identifier)}mu(D,a,u)?P(Ho(D,a,u)):D.compare(E)<0?T(jy(D,o,r,a,u)):D.compare(U)>0&&T(za(D,o,r,a,u));function G(L){L=Ho(L,a,u),P(L)}function K(L){if(!e.isDisabled&&!e.isReadOnly){let z=L;if(z===null){v(null);return}if(z=Ho(z,a,u),z=YT(z,E,d),!z)return;z=Qt(z,(g==null?void 0:g.calendar)||new dr),g&&"hour"in g?v(g.set(z)):v(z)}}let W=b.useMemo(()=>$?d&&d($)?!0:mu($,a,u):!1,[$,d,a,u]),j=e.isInvalid||e.validationState==="invalid"||W,V=j?"invalid":null,R=b.useMemo(()=>f==="visible"?o:yg(o),[f,o]);var M,Y;return{isDisabled:(M=e.isDisabled)!==null&&M!==void 0?M:!1,isReadOnly:(Y=e.isReadOnly)!==null&&Y!==void 0?Y:!1,value:$,setValue:K,visibleRange:{start:E,end:U},minValue:a,maxValue:u,focusedDate:D,timeZone:C,validationState:V,isValueInvalid:j,setFocusedDate(L){G(L),S(!0)},focusNextDay(){G(D.add({days:1}))},focusPreviousDay(){G(D.subtract({days:1}))},focusNextRow(){o.days?this.focusNextPage():(o.weeks||o.months||o.years)&&G(D.add({weeks:1}))},focusPreviousRow(){o.days?this.focusPreviousPage():(o.weeks||o.months||o.years)&&G(D.subtract({weeks:1}))},focusNextPage(){let L=E.add(R);P(Ho(D.add(R),a,u)),T(za(mc(D,L,R,r,a,u),R,r))},focusPreviousPage(){let L=E.subtract(R);P(Ho(D.subtract(R),a,u)),T(za(mc(D,L,R,r,a,u),R,r))},focusSectionStart(){o.days?G(E):o.weeks?G(dc(D,r)):(o.months||o.years)&&G(Ic(D))},focusSectionEnd(){o.days?G(U):o.weeks?G(pL(D,r)):(o.months||o.years)&&G(Cy(D))},focusNextSection(L){if(!L&&!o.days){G(D.add(yg(o)));return}o.days?this.focusNextPage():o.weeks?G(D.add({months:1})):(o.months||o.years)&&G(D.add({years:1}))},focusPreviousSection(L){if(!L&&!o.days){G(D.subtract(yg(o)));return}o.days?this.focusPreviousPage():o.weeks?G(D.subtract({months:1})):(o.months||o.years)&&G(D.subtract({years:1}))},selectFocusedDate(){K(D)},selectDate(L){K(L)},isFocused:k,setFocused:S,isInvalid(L){return mu(L,a,u)},isSelected(L){return $!=null&&xn(L,$)&&!this.isCellDisabled(L)&&!this.isCellUnavailable(L)},isCellFocused(L){return k&&D&&xn(L,D)},isCellDisabled(L){return e.isDisabled||L.compare(E)<0||L.compare(U)>0||this.isInvalid(L)},isCellUnavailable(L){return e.isDateUnavailable?e.isDateUnavailable(L):!1},isPreviousVisibleRangeInvalid(){let L=E.subtract({days:1});return xn(L,E)||this.isInvalid(L)},isNextVisibleRangeInvalid(){let L=U.add({days:1});return xn(L,U)||this.isInvalid(L)},getDatesInWeek(L,z=E){let re=z.add({weeks:L}),oe=[];re=dc(re,r);let fe=rb(re,r);for(let ie=0;ie<fe;ie++)oe.push(null);for(;oe.length<7;){oe.push(re);let ie=re.add({days:1});if(xn(re,ie))break;re=ie}for(;oe.length<7;)oe.push(null);return oe}}}function yg(e){let t={...e};for(let n in e)t[n]=1;return t}function iK(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:o,visibleDuration:a={months:1},minValue:u,maxValue:c,...d}=e,[f,h]=Fr(t,n||null,r),[m,g]=b.useState(null),v="center";if(f&&f.start&&f.end){let M=Ny(cr(f.start),a,o,u,c).add(a).subtract({days:1});f.end.compare(M)>0&&(v="start")}let $=b.useRef(null),[C,x]=b.useState(null),y=b.useMemo(()=>ob(u,C==null?void 0:C.start),[u,C]),D=b.useMemo(()=>ib(c,C==null?void 0:C.end),[c,C]),P=ZT({...d,value:f&&f.start,createCalendar:i,locale:o,visibleDuration:a,minValue:y,maxValue:D,selectionAlignment:v}),E=R=>{if(R&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){const M=nx(R,P,-1),Y=nx(R,P,1);$.current={start:M,end:Y},x($.current)}else $.current=null,x(null)},[T,k]=b.useState(P.visibleRange);(!Ey(P.visibleRange.start,T.start)||!Ey(P.visibleRange.end,T.end))&&(E(m),k(P.visibleRange));let S=R=>{R?(g(R),E(R)):(g(null),E(null))},U=m?vg(m,P.focusedDate):f&&vg(f.start,f.end),O=R=>{if(e.isReadOnly)return;const M=Ho(R,y,D),Y=YT(M,P.visibleRange.start,e.isDateUnavailable);if(Y)if(!m)S(Y);else{let L=vg(m,Y);L&&h({start:tx(L.start,f==null?void 0:f.start),end:tx(L.end,f==null?void 0:f.end)}),S(null)}},[F,G]=b.useState(!1),{isDateUnavailable:K}=e,W=b.useMemo(()=>!f||m?!1:K&&(K(f.start)||K(f.end))?!0:mu(f.start,u,c)||mu(f.end,u,c),[K,f,m,u,c]),j=e.isInvalid||e.validationState==="invalid"||W;return{...P,value:f,setValue:h,anchorDate:m,setAnchorDate:S,highlightedRange:U,validationState:j?"invalid":null,isValueInvalid:j,selectFocusedDate(){O(P.focusedDate)},selectDate:O,highlightDate(R){m&&P.setFocusedDate(R)},isSelected(R){return!!(U&&R.compare(U.start)>=0&&R.compare(U.end)<=0&&!P.isCellDisabled(R)&&!P.isCellUnavailable(R))},isInvalid(R){var M,Y;return P.isInvalid(R)||mu(R,(M=$.current)===null||M===void 0?void 0:M.start,(Y=$.current)===null||Y===void 0?void 0:Y.end)},isDragging:F,setDragging:G}}function vg(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:cr(e),end:cr(t)})}function tx(e,t){return e=Qt(e,(t==null?void 0:t.calendar)||new dr),t&&"hour"in t?t.set(e):e}function nx(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 Ky{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let n=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let u of a.childNodes)n(u)};for(let a of t)n(a);let r=null,i=0;for(let[a,u]of this.keyMap)r?(r.nextKey=a,u.prevKey=r.key):(this.firstKey=a,u.prevKey=void 0),u.type==="item"&&(u.index=i++),r=u,r.nextKey=void 0;var o;this.lastKey=(o=r==null?void 0:r.key)!==null&&o!==void 0?o:null}}class mi extends Set{constructor(t,n,r){super(t),t instanceof mi?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function oK(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function aK(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=e,a=b.useRef(!1),[,u]=b.useState(!1),c=b.useRef(null),d=b.useRef(null),[,f]=b.useState(null),h=b.useMemo(()=>rx(e.selectedKeys),[e.selectedKeys]),m=b.useMemo(()=>rx(e.defaultSelectedKeys,new mi),[e.defaultSelectedKeys]),[g,v]=Fr(h,m,e.onSelectionChange),$=b.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[C,x]=b.useState(i);i==="replace"&&C==="toggle"&&typeof g=="object"&&g.size===0&&x("replace");let y=b.useRef(i);return b.useEffect(()=>{i!==y.current&&(x(i),y.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:C,setSelectionBehavior:x,get isFocused(){return a.current},setFocused(D){a.current=D,u(D)},get focusedKey(){return c.current},get childFocusStrategy(){return d.current},setFocusedKey(D,P="first"){c.current=D,d.current=P,f(D)},selectedKeys:g,setSelectedKeys(D){(r||!oK(D,g))&&v(D)},disabledKeys:$,disabledBehavior:o}}function rx(e,t){return e?e==="all"?"all":new mi(e):t}class sK{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&&hg(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&&hg(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 mi([n],n,n);else{let a=this.state.selectedKeys;var i;let u=(i=a.anchorKey)!==null&&i!==void 0?i:n;r=new mi(a,u,n);var o;for(let c of this.getKeyRange(u,(o=a.currentKey)!==null&&o!==void 0?o:n))r.delete(c);for(let c of this.getKeyRange(n,u))this.canSelectItem(c)&&r.add(c)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),i=this.collection.getItem(n);return r&&i?hg(this.collection,r,i)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let i=[],o=t;for(;o!=null;){let a=this.collection.getItem(o);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===n)return i;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new mi(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 mi([n],n,n):new mi;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new mi;for(let r of t){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let a=this.collection.getItem(r);(a==null?void 0:a.type)==="item"&&t.push(r);var o;a!=null&&a.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&n((o=(i=xj(rp(a,this.collection)))===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new mi)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}constructor(t,n,r){this.collection=t,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function uK(e){let{filter:t,layoutDelegate:n}=e,r=aK(e),i=b.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=b.useCallback(f=>t?new Ky(t(f)):new Ky(f),[t]),a=b.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),u=$j(e,o,a),c=b.useMemo(()=>new sK(u,r,{layoutDelegate:n}),[u,r,n]);const d=b.useRef(null);return b.useEffect(()=>{if(r.focusedKey!=null&&!u.getItem(r.focusedKey)&&d.current){const x=d.current.getItem(r.focusedKey),y=[...d.current.getKeys()].map(S=>{const U=d.current.getItem(S);return(U==null?void 0:U.type)==="item"?U:null}).filter(S=>S!==null),D=[...u.getKeys()].map(S=>{const U=u.getItem(S);return(U==null?void 0:U.type)==="item"?U:null}).filter(S=>S!==null);var f,h;const P=((f=y==null?void 0:y.length)!==null&&f!==void 0?f:0)-((h=D==null?void 0:D.length)!==null&&h!==void 0?h:0);var m,g,v;let E=Math.min(P>1?Math.max(((m=x==null?void 0:x.index)!==null&&m!==void 0?m:0)-P+1,0):(g=x==null?void 0:x.index)!==null&&g!==void 0?g:0,((v=D==null?void 0:D.length)!==null&&v!==void 0?v:0)-1),T=null,k=!1;for(;E>=0;){if(!c.isDisabled(D[E].key)){T=D[E];break}if(E<D.length-1&&!k)E++;else{k=!0;var $,C;E>(($=x==null?void 0:x.index)!==null&&$!==void 0?$:0)&&(E=(C=x==null?void 0:x.index)!==null&&C!==void 0?C:0),E--}}r.setFocusedKey(T?T.key:null)}d.current=u},[u,c,r,r.focusedKey]),{collection:u,disabledKeys:i,selectionManager:c}}function lK(e){var t;let[n,r]=Fr(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),i=b.useMemo(()=>n!=null?[n]:[],[n]),{collection:o,disabledKeys:a,selectionManager:u}=uK({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:d=>{if(d==="all")return;var f;let h=(f=d.values().next().value)!==null&&f!==void 0?f:null;h===n&&e.onSelectionChange&&e.onSelectionChange(h),r(h)}}),c=n!=null?o.getItem(n):null;return{collection:o,disabledKeys:a,selectionManager:u,selectedKey:n,setSelectedKey:r,selectedItem:c}}function wb(e){let[t,n]=Fr(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=b.useCallback(()=>{n(!0)},[n]),i=b.useCallback(()=>{n(!1)},[n]),o=b.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:o}}function cK(e){var t;let{defaultFilter:n,menuTrigger:r="input",allowsEmptyCollection:i=!1,allowsCustomValue:o,shouldCloseOnBlur:a=!0}=e,[u,c]=b.useState(!1),[d,f]=b.useState(!1),[h,m]=b.useState(null),g=Z=>{e.onSelectionChange&&e.onSelectionChange(Z),Z===x&&(fe(),z())};var v;let{collection:$,selectionManager:C,selectedKey:x,setSelectedKey:y,selectedItem:D,disabledKeys:P}=lK({...e,onSelectionChange:g,items:(v=e.items)!==null&&v!==void 0?v:e.defaultItems}),E=e.defaultInputValue;if(E==null){var T,k;x==null?E="":E=(k=(T=$.getItem(x))===null||T===void 0?void 0:T.textValue)!==null&&k!==void 0?k:""}let[S,U]=Fr(e.inputValue,E,e.onInputChange),O=$,F=b.useMemo(()=>e.items!=null||!n?$:dK($,S,n),[$,S,n,e.items]),[G,K]=b.useState(F),W=b.useRef("focus"),V=wb({...e,onOpenChange:Z=>{e.onOpenChange&&e.onOpenChange(Z,Z?W.current:void 0),C.setFocused(Z),Z||C.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),R=(Z=null,te)=>{let pe=te==="manual"||te==="focus"&&r==="focus";(i||F.size>0||pe&&O.size>0||e.items)&&(pe&&!V.isOpen&&e.items===void 0&&c(!0),W.current=te,m(Z),V.open())},M=(Z=null,te)=>{let pe=te==="manual"||te==="focus"&&r==="focus";!(i||F.size>0||pe&&O.size>0||e.items)&&!V.isOpen||(pe&&!V.isOpen&&e.items===void 0&&c(!0),V.isOpen||(W.current=te),L(Z))},Y=b.useCallback(()=>{K(u?O:F)},[u,O,F]),L=b.useCallback((Z=null)=>{V.isOpen&&Y(),m(Z),V.toggle()},[V,Y]),z=b.useCallback(()=>{V.isOpen&&(Y(),V.close())},[V,Y]),[re,oe]=b.useState(S),fe=()=>{var Z,te;let pe=x!=null&&(te=(Z=$.getItem(x))===null||Z===void 0?void 0:Z.textValue)!==null&&te!==void 0?te:"";oe(pe),U(pe)};var ie,Ee;let $e=b.useRef((Ee=(ie=e.selectedKey)!==null&&ie!==void 0?ie:e.defaultSelectedKey)!==null&&Ee!==void 0?Ee:null);var ne;let ye=b.useRef(x!=null&&(ne=(t=$.getItem(x))===null||t===void 0?void 0:t.textValue)!==null&&ne!==void 0?ne:"");b.useEffect(()=>{var Z;d&&(F.size>0||i)&&!V.isOpen&&S!==re&&r!=="manual"&&R(null,"input"),!u&&!i&&V.isOpen&&F.size===0&&z(),x!=null&&x!==$e.current&&z(),S!==re&&(C.setFocusedKey(null),c(!1),S===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&y(null)),x!==$e.current&&(e.inputValue===void 0||e.selectedKey===void 0)?fe():re!==S&&oe(S);var te;let pe=x!=null&&(te=(Z=$.getItem(x))===null||Z===void 0?void 0:Z.textValue)!==null&&te!==void 0?te:"";!d&&x!=null&&e.inputValue===void 0&&x===$e.current&&ye.current!==pe&&(oe(pe),U(pe)),$e.current=x,ye.current=pe});let xe=Nc({...e,value:b.useMemo(()=>({inputValue:S,selectedKey:x}),[S,x])}),he=()=>{o&&x==null?le():Fe()},le=()=>{$e.current=null,y(null),z()},Fe=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var Z,te;(Z=e.onSelectionChange)===null||Z===void 0||Z.call(e,x);var pe;let Ce=x!=null&&(pe=(te=$.getItem(x))===null||te===void 0?void 0:te.textValue)!==null&&pe!==void 0?pe:"";oe(Ce),z()}else fe(),z()};const et=()=>{if(o){var Z,te;const pe=x!=null&&(te=(Z=$.getItem(x))===null||Z===void 0?void 0:Z.textValue)!==null&&te!==void 0?te:"";S===pe?Fe():le()}else Fe()};let dt=()=>{V.isOpen&&C.focusedKey!=null?x===C.focusedKey?Fe():y(C.focusedKey):et()},Dn=b.useRef(S),yt=Z=>{Z?(Dn.current=S,r==="focus"&&!e.isReadOnly&&R(null,"focus")):(a&&et(),S!==Dn.current&&xe.commitValidation()),f(Z)},q=b.useMemo(()=>V.isOpen?u?O:F:G,[V.isOpen,O,F,u,G]);return{...xe,...V,focusStrategy:h,toggle:M,open:R,close:et,selectionManager:C,selectedKey:x,setSelectedKey:y,disabledKeys:P,isFocused:d,setFocused:yt,selectedItem:D,collection:q,inputValue:S,setInputValue:U,commit:dt,revert:he}}function dK(e,t,n){return new Ky(JT(e,e,t,n))}function JT(e,t,n,r){let i=[];for(let o of t)if(o.type==="section"&&o.hasChildNodes){let a=JT(e,rp(o,e),n,r);[...a].some(u=>u.type==="item")&&i.push({...o,childNodes:a})}else o.type==="item"&&r(o.textValue,n)?i.push({...o}):o.type!=="item"&&i.push({...o});return i}var XT={};XT={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var QT={};QT={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var eA={};eA={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 tA={};tA={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 nA={};nA={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 rA={};rA={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var iA={};iA={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 oA={};oA={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 aA={};aA={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 sA={};sA={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 uA={};uA={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 lA={};lA={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var cA={};cA={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 dA={};dA={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 fA={};fA={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 hA={};hA={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var pA={};pA={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var mA={};mA={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 gA={};gA={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 yA={};yA={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 vA={};vA={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 bA={};bA={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 $A={};$A={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 xA={};xA={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 wA={};wA={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 DA={};DA={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var EA={};EA={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 CA={};CA={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 SA={};SA={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 TA={};TA={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 AA={};AA={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 PA={};PA={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var RA={};RA={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var _A={};_A={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var OA={};OA={"ar-AE":XT,"bg-BG":QT,"cs-CZ":eA,"da-DK":tA,"de-DE":nA,"el-GR":rA,"en-US":iA,"es-ES":oA,"et-EE":aA,"fi-FI":sA,"fr-FR":uA,"he-IL":lA,"hr-HR":cA,"hu-HU":dA,"it-IT":fA,"ja-JP":hA,"ko-KR":pA,"lt-LT":mA,"lv-LV":gA,"nb-NO":yA,"nl-NL":vA,"pl-PL":bA,"pt-BR":$A,"pt-PT":xA,"ro-RO":wA,"ru-RU":DA,"sk-SK":EA,"sl-SI":CA,"sr-SP":SA,"sv-SE":TA,"tr-TR":AA,"uk-UA":PA,"zh-CN":RA,"zh-TW":_A};function fK(e){return e&&e.__esModule?e.default:e}const MA=new ma(fK(OA));function FA(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function fh(e,t,n,r,i){let o=e!=null&&n!=null&&e.compare(n)>0,a=e!=null&&t!=null&&e.compare(t)<0,u=e!=null&&(r==null?void 0:r(e))||!1,c=o||a||u,d=[];if(c){let f=FA(),h=ma.getGlobalDictionaryForPackage("@react-stately/datepicker")||MA,m=new CC(f,h),g=new ii(f,bo({},i)),v=g.resolvedOptions().timeZone;a&&t!=null&&d.push(m.format("rangeUnderflow",{minValue:g.format(t.toDate(v))})),o&&n!=null&&d.push(m.format("rangeOverflow",{maxValue:g.format(n.toDate(v))})),u&&d.push(m.format("unavailableDate"))}return{isInvalid:c,validationErrors:d,validationDetails:{badInput:u,customError:!1,patternMismatch:!1,rangeOverflow:o,rangeUnderflow:a,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!c}}}function hK(e,t,n,r,i){var o;let a=fh((o=e==null?void 0:e.start)!==null&&o!==void 0?o:null,t,n,r,i);var u;let c=fh((u=e==null?void 0:e.end)!==null&&u!==void 0?u:null,t,n,r,i),d=ah(a,c);if((e==null?void 0:e.end)!=null&&e.start!=null&&e.end.compare(e.start)<0){let f=ma.getGlobalDictionaryForPackage("@react-stately/datepicker")||MA;d=ah(d,{isInvalid:!0,validationErrors:[f.getStringForLocale("rangeReversed",FA())],validationDetails:{...Qh,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return d}const pK={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},mK={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function bo(e,t){e={...t.shouldForceLeadingZeros?mK:pK,...e};let r=t.granularity||"minute",i=Object.keys(e);var o;let a=i.indexOf((o=t.maxGranularity)!==null&&o!==void 0?o:"year");a<0&&(a=0);let u=i.indexOf(r);if(u<0&&(u=2),a>u)throw new Error("maxGranularity must be greater than granularity");let c=i.slice(a,u+1).reduce((f,h)=>(f[h]=e[h],f),{});return t.hourCycle!=null&&(c.hour12=t.hourCycle===12),c.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(c.timeZoneName="short"),t.showEra&&a===0&&(c.era="short"),c}function eu(e){return e&&"hour"in e?e:new Vc}function kA(e,t){if(e===null)return null;if(e)return Qt(e,t)}function _l(e,t,n,r){if(e)return kA(e,n);let i=Qt(PC(r??Bc()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?cr(i):r?i:Di(i)}function Db(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[i,o]=b.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&o([r,n]),t||(t=e?r:i[0]);let a=e?n:i[1];return[t,a]}function gK(e){let t=wb(e),[n,r]=Fr(e.value,e.defaultValue||null,e.onChange),i=n||e.placeholderValue||null,[o,a]=Db(i,e.granularity),u=n!=null?n.toDate(a??"UTC"):null,c=o==="hour"||o==="minute"||o==="second";var d;let f=(d=e.shouldCloseOnSelect)!==null&&d!==void 0?d:!0,[h,m]=b.useState(null),[g,v]=b.useState(null);if(n&&(h=n,"hour"in n&&(g=n)),i&&!(o in i))throw new Error("Invalid granularity "+o+" for value "+i.toString());let $=(n==null?void 0:n.calendar.identifier)==="gregory"&&n.era==="BC",C=b.useMemo(()=>({granularity:o,timeZone:a,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:$}),[o,e.hourCycle,e.shouldForceLeadingZeros,a,e.hideTimeZone,$]),{minValue:x,maxValue:y,isDateUnavailable:D}=e,P=b.useMemo(()=>fh(n,x,y,D,C),[n,x,y,D,C]),E=Nc({...e,value:n,builtinValidation:P}),T=E.displayValidation.isInvalid,k=e.validationState||(T?"invalid":null),S=(F,G)=>{r("timeZone"in G?G.set(cr(F)):Di(F,G)),m(null),v(null),E.commitValidation()};return{...E,value:n,setValue:r,dateValue:h,timeValue:g,setDateValue:F=>{let G=typeof f=="function"?f():f;c?g||G?S(F,g||eu(e.defaultValue||e.placeholderValue)):m(F):(r(F),E.commitValidation()),G&&t.setOpen(!1)},setTimeValue:F=>{h&&F?S(h,F):v(F)},granularity:o,hasTime:c,...t,setOpen(F){!F&&!n&&h&&c&&S(h,g||eu(e.defaultValue||e.placeholderValue)),t.setOpen(F)},validationState:k,isInvalid:T,formatValue(F,G){if(!u)return"";let K=bo(G,C);return new ii(F,K).format(u)},getDateFormatter(F,G){let K={...C,...G},W=bo({},K);return new ii(F,W)}}}const yK=new ma({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 vK(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?yK.getStringForLocale(e,n):"––"}const df={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},ix={year:5,month:2,day:7,hour:2,minute:15,second:15},bK={dayperiod:"dayPeriod"};function BA(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:o=!1,isRequired:a=!1,minValue:u,maxValue:c,isDateUnavailable:d}=e,f=e.value||e.defaultValue||e.placeholderValue||null,[h,m]=Db(f,e.granularity),g=m||"UTC";if(f&&!(h in f))throw new Error("Invalid granularity "+h+" for value "+f.toString());let v=b.useMemo(()=>new ii(t),[t]),$=b.useMemo(()=>n(v.resolvedOptions().calendar),[n,v]);var C;let[x,y]=Fr(e.value,(C=e.defaultValue)!==null&&C!==void 0?C:null,e.onChange),D=b.useMemo(()=>{var ne;return(ne=kA(x,$))!==null&&ne!==void 0?ne:null},[x,$]),[P,E]=b.useState(()=>_l(e.placeholderValue,h,$,m)),T=D||P,k=$.identifier==="gregory"&&T.era==="BC",S=b.useMemo(()=>{var ne;return{granularity:h,maxGranularity:(ne=e.maxGranularity)!==null&&ne!==void 0?ne:"year",timeZone:m,hideTimeZone:r,hourCycle:e.hourCycle,showEra:k,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,h,e.hourCycle,e.shouldForceLeadingZeros,m,r,k]),U=b.useMemo(()=>bo({},S),[S]),O=b.useMemo(()=>new ii(t,U),[t,U]),F=b.useMemo(()=>O.resolvedOptions(),[O]),G=b.useMemo(()=>O.formatToParts(new Date).filter(ne=>df[ne.type]).reduce((ne,ye)=>(ne[ye.type]=!0,ne),{}),[O]),[K,W]=b.useState(()=>e.value||e.defaultValue?{...G}:{}),j=b.useRef(null),V=b.useRef($.identifier);b.useEffect(()=>{$.identifier!==V.current&&(V.current=$.identifier,E(ne=>Object.keys(K).length>0?Qt(ne,$):_l(e.placeholderValue,h,$,m)))},[$,h,K,m,e.placeholderValue]),x&&Object.keys(K).length<Object.keys(G).length&&(K={...G},W(K)),x==null&&Object.keys(K).length===Object.keys(G).length&&(K={},W(K),E(_l(e.placeholderValue,h,$,m)));let R=D&&Object.keys(K).length>=Object.keys(G).length?D:P,M=ne=>{if(e.isDisabled||e.isReadOnly)return;let ye=Object.keys(K),xe=Object.keys(G);ne==null?(y(null),E(_l(e.placeholderValue,h,$,m)),W({})):ye.length>=xe.length||ye.length===xe.length-1&&G.dayPeriod&&!K.dayPeriod&&j.current!=="dayPeriod"?(ne=Qt(ne,(f==null?void 0:f.calendar)||new dr),y(ne)):E(ne),j.current=null},Y=b.useMemo(()=>R.toDate(g),[R,g]),L=b.useMemo(()=>O.formatToParts(Y).map(ne=>{let ye=df[ne.type];ne.type==="era"&&$.getEras().length===1&&(ye=!1);let xe=df[ne.type]&&!K[ne.type],he=df[ne.type]?vK(ne.type,ne.value,t):null;return{type:bK[ne.type]||ne.type,text:xe?he:ne.value,...$K(R,ne.type,F),isPlaceholder:xe,placeholder:he,isEditable:ye}}),[Y,K,O,F,R,$,t]);G.era&&K.year&&!K.era?(K.era=!0,W({...K})):!G.era&&K.era&&(delete K.era,W({...K}));let z=ne=>{K[ne]=!0,ne==="year"&&G.era&&(K.era=!0),W({...K})},re=(ne,ye)=>{if(K[ne])M(xK(R,ne,ye,F));else{z(ne);let xe=Object.keys(K),he=Object.keys(G);(xe.length>=he.length||xe.length===he.length-1&&G.dayPeriod&&!K.dayPeriod)&&M(R)}},oe=b.useMemo(()=>fh(x,u,c,d,S),[x,u,c,d,S]),fe=Nc({...e,value:x,builtinValidation:oe}),ie=fe.displayValidation.isInvalid,Ee=e.validationState||(ie?"invalid":null);var $e;return{...fe,value:D,dateValue:Y,calendar:$,setValue:M,segments:L,dateFormatter:O,validationState:Ee,isInvalid:ie,granularity:h,maxGranularity:($e=e.maxGranularity)!==null&&$e!==void 0?$e:"year",isDisabled:i,isReadOnly:o,isRequired:a,increment(ne){re(ne,1)},decrement(ne){re(ne,-1)},incrementPage(ne){re(ne,ix[ne]||1)},decrementPage(ne){re(ne,-(ix[ne]||1))},setSegment(ne,ye){z(ne),M(wK(R,ne,ye,F))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let ne=Object.keys(K),ye=Object.keys(G);ne.length===ye.length-1&&G.dayPeriod&&!K.dayPeriod&&(K={...G},W(K),M(R.copy()))},clearSegment(ne){delete K[ne],j.current=ne,W({...K});let ye=_l(e.placeholderValue,h,$,m),xe=R;if(ne==="dayPeriod"&&"hour"in R&&"hour"in ye){let he=R.hour>=12,le=ye.hour>=12;he&&!le?xe=R.set({hour:R.hour-12}):!he&&le&&(xe=R.set({hour:R.hour+12}))}else ne in R&&(xe=R.set({[ne]:ye[ne]}));y(null),M(xe)},formatValue(ne){if(!D)return"";let ye=bo(ne,S);return new ii(t,ye).format(Y)},getDateFormatter(ne,ye){let xe={...S,...ye},he=bo({},xe);return new ii(ne,he)}}}function $K(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:fL(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:hL(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 xK(e,t,n,r){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,n,{round:t==="year"})}if("hour"in e)switch(t){case"dayPeriod":{let i=e.hour,o=i>=12;return e.set({hour:o?i-12:i+12})}case"hour":case"minute":case"second":return e.cycle(t,n,{round:t!=="hour",hourCycle:r.hour12?12:24})}throw new Error("Unknown segment: "+t)}function wK(e,t,n,r){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:n})}if("hour"in e&&typeof n=="number")switch(t){case"dayPeriod":{let i=e.hour,o=i>=12;return n>=12===o?e:e.set({hour:o?i-12:i+12})}case"hour":if(r.hour12){let o=e.hour>=12;!o&&n===12&&(n=0),o&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}throw new Error("Unknown segment: "+t)}function DK(e){var t,n;let r=wb(e),[i,o]=Fr(e.value,e.defaultValue||null,e.onChange),[a,u]=b.useState(()=>i||{start:null,end:null});i==null&&a.start&&a.end&&(a={start:null,end:null},u(a));let c=i||a,d=V=>{u(V||{start:null,end:null}),Oa(V)?o(V):o(null)},f=(c==null?void 0:c.start)||(c==null?void 0:c.end)||e.placeholderValue||null,[h,m]=Db(f,e.granularity),g=h==="hour"||h==="minute"||h==="second";var v;let $=(v=e.shouldCloseOnSelect)!==null&&v!==void 0?v:!0,[C,x]=b.useState(null),[y,D]=b.useState(null);c&&Oa(c)&&(C=c,"hour"in c.start&&(y=c));let P=(V,R)=>{d({start:"timeZone"in R.start?R.start.set(cr(V.start)):Di(V.start,R.start),end:"timeZone"in R.end?R.end.set(cr(V.end)):Di(V.end,R.end)}),x(null),D(null),K.commitValidation()},E=V=>{let R=typeof $=="function"?$():$;g?Oa(V)&&(y!=null&&y.start)&&(y!=null&&y.end)?P(V,{start:(y==null?void 0:y.start)||eu(e.placeholderValue),end:(y==null?void 0:y.end)||eu(e.placeholderValue)}):x(V):Oa(V)?(d(V),K.commitValidation()):x(V),R&&r.setOpen(!1)},T=V=>{Oa(C)&&Oa(V)?P(C,V):D(V)},k=(c==null||(t=c.start)===null||t===void 0?void 0:t.calendar.identifier)==="gregory"&&c.start.era==="BC"||(c==null||(n=c.end)===null||n===void 0?void 0:n.calendar.identifier)==="gregory"&&c.end.era==="BC",S=b.useMemo(()=>({granularity:h,timeZone:m,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:k}),[h,e.hourCycle,e.shouldForceLeadingZeros,m,e.hideTimeZone,k]),{minValue:U,maxValue:O,isDateUnavailable:F}=e,G=b.useMemo(()=>hK(c,U,O,F,S),[c,U,O,F,S]),K=Nc({...e,value:i,name:b.useMemo(()=>[e.startName,e.endName].filter(V=>V!=null),[e.startName,e.endName]),builtinValidation:G}),W=K.displayValidation.isInvalid,j=e.validationState||(W?"invalid":null);return{...K,value:c,setValue:d,dateRange:C,timeRange:y,granularity:h,hasTime:g,setDate(V,R){var M,Y;E(V==="start"?{start:R,end:(M=C==null?void 0:C.end)!==null&&M!==void 0?M:null}:{start:(Y=C==null?void 0:C.start)!==null&&Y!==void 0?Y:null,end:R})},setTime(V,R){var M,Y;T(V==="start"?{start:R,end:(M=y==null?void 0:y.end)!==null&&M!==void 0?M:null}:{start:(Y=y==null?void 0:y.start)!==null&&Y!==void 0?Y:null,end:R})},setDateTime(V,R){var M,Y;d(V==="start"?{start:R,end:(M=c==null?void 0:c.end)!==null&&M!==void 0?M:null}:{start:(Y=c==null?void 0:c.start)!==null&&Y!==void 0?Y:null,end:R})},setDateRange:E,setTimeRange:T,...r,setOpen(V){!V&&!(c!=null&&c.start&&(c!=null&&c.end))&&Oa(C)&&g&&P(C,{start:(y==null?void 0:y.start)||eu(e.placeholderValue),end:(y==null?void 0:y.end)||eu(e.placeholderValue)}),r.setOpen(V)},validationState:j,isInvalid:W,formatValue(V,R){if(!c||!c.start||!c.end)return null;let M="timeZone"in c.start?c.start.timeZone:void 0,Y=e.granularity||(c.start&&"minute"in c.start?"minute":"day"),L="timeZone"in c.end?c.end.timeZone:void 0,z=e.granularity||(c.end&&"minute"in c.end?"minute":"day"),re=bo(R,{granularity:Y,timeZone:M,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:c.start.calendar.identifier==="gregory"&&c.start.era==="BC"||c.end.calendar.identifier==="gregory"&&c.end.era==="BC"}),oe=c.start.toDate(M||"UTC"),fe=c.end.toDate(L||"UTC"),ie=new ii(V,re),Ee;if(M===L&&Y===z&&c.start.compare(c.end)!==0){try{let $e=ie.formatRangeToParts(oe,fe),ne=-1;for(let he=0;he<$e.length;he++){let le=$e[he];if(le.source==="shared"&&le.type==="literal")ne=he;else if(le.source==="endRange")break}let ye="",xe="";for(let he=0;he<$e.length;he++)he<ne?ye+=$e[he].value:he>ne&&(xe+=$e[he].value);return{start:ye,end:xe}}catch{}Ee=ie}else{let $e=bo(R,{granularity:z,timeZone:L,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});Ee=new ii(V,$e)}return{start:ie.format(oe),end:Ee.format(fe)}},getDateFormatter(V,R){let M={...S,...R},Y=bo({},M);return new ii(V,Y)}}}function Oa(e){return(e==null?void 0:e.start)!=null&&e.end!=null}function EK(e){let{placeholderValue:t=new Vc,minValue:n,maxValue:r,granularity:i,validate:o}=e;var a;let[u,c]=Fr(e.value,(a=e.defaultValue)!==null&&a!==void 0?a:null,e.onChange),d=u||t,f=d&&"day"in d?d:void 0,h=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,m=b.useMemo(()=>{let D=d&&"timeZone"in d?d.timeZone:void 0;return(D||h)&&t?kC(Ol(t),D||h):Ol(t)},[t,d,h]),g=b.useMemo(()=>Ol(n,f),[n,f]),v=b.useMemo(()=>Ol(r,f),[r,f]),$=b.useMemo(()=>u&&"day"in u?u$(u):u,[u]),C=b.useMemo(()=>u==null?null:Ol(u),[u]);return{...BA({...e,value:C,defaultValue:void 0,minValue:g,maxValue:v,onChange:D=>{c(f||h?D:D&&u$(D))},granularity:i||"minute",maxGranularity:"hour",placeholderValue:m??void 0,createCalendar:()=>new dr,validate:b.useCallback(()=>o==null?void 0:o(u),[o,u])}),timeValue:$}}function Ol(e,t=Jh(Bc())){return e?"day"in e?e:Di(t,e):null}var Mf={exports:{}},CK=Mf.exports,ox;function SK(){return ox||(ox=1,function(e,t){(function(n,r){e.exports=r()})(CK,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",u="minute",c="hour",d="day",f="week",h="month",m="quarter",g="year",v="date",$="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|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,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(W){var j=["th","st","nd","rd"],V=W%100;return"["+W+(j[(V-20)%10]||j[V]||j[0])+"]"}},D=function(W,j,V){var R=String(W);return!R||R.length>=j?W:""+Array(j+1-R.length).join(V)+W},P={s:D,z:function(W){var j=-W.utcOffset(),V=Math.abs(j),R=Math.floor(V/60),M=V%60;return(j<=0?"+":"-")+D(R,2,"0")+":"+D(M,2,"0")},m:function W(j,V){if(j.date()<V.date())return-W(V,j);var R=12*(V.year()-j.year())+(V.month()-j.month()),M=j.clone().add(R,h),Y=V-M<0,L=j.clone().add(R+(Y?-1:1),h);return+(-(R+(V-M)/(Y?M-L:L-M))||0)},a:function(W){return W<0?Math.ceil(W)||0:Math.floor(W)},p:function(W){return{M:h,y:g,w:f,d,D:v,h:c,m:u,s:a,ms:o,Q:m}[W]||String(W||"").toLowerCase().replace(/s$/,"")},u:function(W){return W===void 0}},E="en",T={};T[E]=y;var k="$isDayjsObject",S=function(W){return W instanceof G||!(!W||!W[k])},U=function W(j,V,R){var M;if(!j)return E;if(typeof j=="string"){var Y=j.toLowerCase();T[Y]&&(M=Y),V&&(T[Y]=V,M=Y);var L=j.split("-");if(!M&&L.length>1)return W(L[0])}else{var z=j.name;T[z]=j,M=z}return!R&&M&&(E=M),M||!R&&E},O=function(W,j){if(S(W))return W.clone();var V=typeof j=="object"?j:{};return V.date=W,V.args=arguments,new G(V)},F=P;F.l=U,F.i=S,F.w=function(W,j){return O(W,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var G=function(){function W(V){this.$L=U(V.locale,null,!0),this.parse(V),this.$x=this.$x||V.x||{},this[k]=!0}var j=W.prototype;return j.parse=function(V){this.$d=function(R){var M=R.date,Y=R.utc;if(M===null)return new Date(NaN);if(F.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var L=M.match(C);if(L){var z=L[2]-1||0,re=(L[7]||"0").substring(0,3);return Y?new Date(Date.UTC(L[1],z,L[3]||1,L[4]||0,L[5]||0,L[6]||0,re)):new Date(L[1],z,L[3]||1,L[4]||0,L[5]||0,L[6]||0,re)}}return new Date(M)}(V),this.init()},j.init=function(){var V=this.$d;this.$y=V.getFullYear(),this.$M=V.getMonth(),this.$D=V.getDate(),this.$W=V.getDay(),this.$H=V.getHours(),this.$m=V.getMinutes(),this.$s=V.getSeconds(),this.$ms=V.getMilliseconds()},j.$utils=function(){return F},j.isValid=function(){return this.$d.toString()!==$},j.isSame=function(V,R){var M=O(V);return this.startOf(R)<=M&&M<=this.endOf(R)},j.isAfter=function(V,R){return O(V)<this.startOf(R)},j.isBefore=function(V,R){return this.endOf(R)<O(V)},j.$g=function(V,R,M){return F.u(V)?this[R]:this.set(M,V)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function(V,R){var M=this,Y=!!F.u(R)||R,L=F.p(V),z=function(ye,xe){var he=F.w(M.$u?Date.UTC(M.$y,xe,ye):new Date(M.$y,xe,ye),M);return Y?he:he.endOf(d)},re=function(ye,xe){return F.w(M.toDate()[ye].apply(M.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(xe)),M)},oe=this.$W,fe=this.$M,ie=this.$D,Ee="set"+(this.$u?"UTC":"");switch(L){case g:return Y?z(1,0):z(31,11);case h:return Y?z(1,fe):z(0,fe+1);case f:var $e=this.$locale().weekStart||0,ne=(oe<$e?oe+7:oe)-$e;return z(Y?ie-ne:ie+(6-ne),fe);case d:case v:return re(Ee+"Hours",0);case c:return re(Ee+"Minutes",1);case u:return re(Ee+"Seconds",2);case a:return re(Ee+"Milliseconds",3);default:return this.clone()}},j.endOf=function(V){return this.startOf(V,!1)},j.$set=function(V,R){var M,Y=F.p(V),L="set"+(this.$u?"UTC":""),z=(M={},M[d]=L+"Date",M[v]=L+"Date",M[h]=L+"Month",M[g]=L+"FullYear",M[c]=L+"Hours",M[u]=L+"Minutes",M[a]=L+"Seconds",M[o]=L+"Milliseconds",M)[Y],re=Y===d?this.$D+(R-this.$W):R;if(Y===h||Y===g){var oe=this.clone().set(v,1);oe.$d[z](re),oe.init(),this.$d=oe.set(v,Math.min(this.$D,oe.daysInMonth())).$d}else z&&this.$d[z](re);return this.init(),this},j.set=function(V,R){return this.clone().$set(V,R)},j.get=function(V){return this[F.p(V)]()},j.add=function(V,R){var M,Y=this;V=Number(V);var L=F.p(R),z=function(fe){var ie=O(Y);return F.w(ie.date(ie.date()+Math.round(fe*V)),Y)};if(L===h)return this.set(h,this.$M+V);if(L===g)return this.set(g,this.$y+V);if(L===d)return z(1);if(L===f)return z(7);var re=(M={},M[u]=r,M[c]=i,M[a]=n,M)[L]||1,oe=this.$d.getTime()+V*re;return F.w(oe,this)},j.subtract=function(V,R){return this.add(-1*V,R)},j.format=function(V){var R=this,M=this.$locale();if(!this.isValid())return M.invalidDate||$;var Y=V||"YYYY-MM-DDTHH:mm:ssZ",L=F.z(this),z=this.$H,re=this.$m,oe=this.$M,fe=M.weekdays,ie=M.months,Ee=M.meridiem,$e=function(xe,he,le,Fe){return xe&&(xe[he]||xe(R,Y))||le[he].slice(0,Fe)},ne=function(xe){return F.s(z%12||12,xe,"0")},ye=Ee||function(xe,he,le){var Fe=xe<12?"AM":"PM";return le?Fe.toLowerCase():Fe};return Y.replace(x,function(xe,he){return he||function(le){switch(le){case"YY":return String(R.$y).slice(-2);case"YYYY":return F.s(R.$y,4,"0");case"M":return oe+1;case"MM":return F.s(oe+1,2,"0");case"MMM":return $e(M.monthsShort,oe,ie,3);case"MMMM":return $e(ie,oe);case"D":return R.$D;case"DD":return F.s(R.$D,2,"0");case"d":return String(R.$W);case"dd":return $e(M.weekdaysMin,R.$W,fe,2);case"ddd":return $e(M.weekdaysShort,R.$W,fe,3);case"dddd":return fe[R.$W];case"H":return String(z);case"HH":return F.s(z,2,"0");case"h":return ne(1);case"hh":return ne(2);case"a":return ye(z,re,!0);case"A":return ye(z,re,!1);case"m":return String(re);case"mm":return F.s(re,2,"0");case"s":return String(R.$s);case"ss":return F.s(R.$s,2,"0");case"SSS":return F.s(R.$ms,3,"0");case"Z":return L}return null}(xe)||L.replace(":","")})},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function(V,R,M){var Y,L=this,z=F.p(R),re=O(V),oe=(re.utcOffset()-this.utcOffset())*r,fe=this-re,ie=function(){return F.m(L,re)};switch(z){case g:Y=ie()/12;break;case h:Y=ie();break;case m:Y=ie()/3;break;case f:Y=(fe-oe)/6048e5;break;case d:Y=(fe-oe)/864e5;break;case c:Y=fe/i;break;case u:Y=fe/r;break;case a:Y=fe/n;break;default:Y=fe}return M?Y:F.a(Y)},j.daysInMonth=function(){return this.endOf(h).$D},j.$locale=function(){return T[this.$L]},j.locale=function(V,R){if(!V)return this.$L;var M=this.clone(),Y=U(V,R,!0);return Y&&(M.$L=Y),M},j.clone=function(){return F.w(this.$d,this)},j.toDate=function(){return new Date(this.valueOf())},j.toJSON=function(){return this.isValid()?this.toISOString():null},j.toISOString=function(){return this.$d.toISOString()},j.toString=function(){return this.$d.toUTCString()},W}(),K=G.prototype;return O.prototype=K,[["$ms",o],["$s",a],["$m",u],["$H",c],["$W",d],["$M",h],["$y",g],["$D",v]].forEach(function(W){K[W[1]]=function(j){return this.$g(j,W[0],W[1])}}),O.extend=function(W,j){return W.$i||(W(j,G,O),W.$i=!0),O},O.locale=U,O.isDayjs=S,O.unix=function(W){return O(1e3*W)},O.en=T[E],O.Ls=T,O.p={},O})}(Mf)),Mf.exports}var TK=SK();const AK=pa(TK);var fs=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["Andorra","ad","376"],["Angola","ao","244"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54","(..) ........",0],["Armenia","am","374",".. ......"],["Aruba","aw","297"],["Australia","au","61",{default:". .... ....","/^4/":"... ... ...","/^5(?!50)/":"... ... ...","/^1(3|8)00/":".... ... ...","/^13/":".. .. ..","/^180/":"... ...."},0,[]],["Austria","at","43"],["Azerbaijan","az","994","(..) ... .. .."],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375","(..) ... .. .."],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55","(..) ........."],["British Indian Ocean Territory","io","246"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599","",1],["Cayman Islands","ky","1","... ... ....",4,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","... .... ...."],["Colombia","co","57","... ... ...."],["Comoros","km","269"],["Congo","cd","243"],["Congo","cg","242"],["Costa Rica","cr","506","....-...."],["Côte d'Ivoire","ci","225",".. .. .. .. .."],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599","",0],["Cyprus","cy","357",".. ......"],["Czech Republic","cz","420","... ... ..."],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253"],["Dominica","dm","1767"],["Dominican Republic","do","1","(...) ...-....",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372",".... ......"],["Ethiopia","et","251"],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49","... ........."],["Ghana","gh","233"],["Greece","gr","30"],["Greenland","gl","299",".. .. .."],["Grenada","gd","1473"],["Guadeloupe","gp","590","",0],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["India","in","91",".....-....."],["Indonesia","id","62"],["Iran","ir","98","... ... ...."],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972","... ... ...."],["Italy","it","39","... .......",0],["Jamaica","jm","1876"],["Japan","jp","81",".. .... ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-..",0],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996","... ... ..."],["Laos","la","856"],["Latvia","lv","371",".. ... ..."],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",{"/^06/":"(.). .........","/^6/":". .........","/^0(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":"(.).. ........","/^(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":".. ........","/^0/":"(.)... .......",default:"... ......."}],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63","... ... ...."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","(...) ...-....",3,["787","939"]],["Qatar","qa","974"],["Réunion","re","262"],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82","... .... ...."],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden","se","46","... ... ..."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380","(..) ... .. .."],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",".... ......"],["United States","us","1","(...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan","uz","998",".. ... .. .."],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ....",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],PK="react-international-phone-",IA=(...e)=>e.filter(t=>!!t).join(" ").trim(),RK=(...e)=>IA(...e).split(" ").map(t=>`${PK}${t}`).join(" "),Jn=({addPrefix:e,rawClassNames:t})=>IA(RK(...e),...t),_K=({value:e,mask:t,maskSymbol:n,offset:r=0,trimNonMaskCharsLeftover:i=!1})=>{if(e.length<r)return e;let o=e.slice(0,r),a=e.slice(r),u=o,c=0;for(let d of t.split("")){if(c>=a.length){if(!i&&d!==n){u+=d;continue}break}d===n?(u+=a[c],c+=1):u+=d}return u},Zs=e=>e?/^\d+$/.test(e):!1,ap=e=>e.replace(/\D/g,""),OK=(e,t)=>{let n=e.style.display;n!=="block"&&(e.style.display="block");let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),o=i.top-r.top,a=r.bottom-i.bottom;o>=0&&a>=0||(Math.abs(o)<Math.abs(a)?e.scrollTop+=o:e.scrollTop-=a),e.style.display=n},MK=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh"),FK=(e,t)=>{let n=t.disableDialCodeAndPrefix?!1:t.forceDialCode,r=t.disableDialCodeAndPrefix?!1:t.insertDialCodeOnEmpty,i=e,o=d=>t.trimNonDigitsEnd?d.trim():d;if(!i)return r&&!i.length||n?o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`):o(i);if(i=ap(i),i===t.dialCode&&!t.disableDialCodeAndPrefix)return o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(t.dialCode.startsWith(i)&&!t.disableDialCodeAndPrefix)return o(n?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:`${t.prefix}${i}`);if(!i.startsWith(t.dialCode)&&!t.disableDialCodeAndPrefix){if(n)return o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(i.length<t.dialCode.length)return o(`${t.prefix}${i}`)}let a=()=>{let d=t.dialCode.length,f=i.slice(0,d),h=i.slice(d);return{phoneLeftSide:f,phoneRightSide:h}},{phoneLeftSide:u,phoneRightSide:c}=a();return u=`${t.prefix}${u}${t.charAfterDialCode}`,c=_K({value:c,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&c.length===0}),t.disableDialCodeAndPrefix&&(u=""),o(`${u}${c}`)},kK=({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:n,cursorPositionAfterInput:r,leftOffset:i=0,deletion:o})=>{if(r<i)return i;if(!e)return n.length;let a=null;for(let f=r-1;f>=0;f-=1)if(Zs(t[f])){a=f;break}if(a===null){for(let f=0;f<t.length;f+=1)if(Zs(n[f]))return f;return t.length}let u=0;for(let f=0;f<a;f+=1)Zs(t[f])&&(u+=1);let c=0,d=0;for(let f=0;f<n.length&&(c+=1,Zs(n[f])&&(d+=1),!(d>=u+1));f+=1);if(o!=="backward")for(;!Zs(n[c])&&c<n.length;)c+=1;return c},Ff=({phone:e,prefix:t})=>e?`${t}${ap(e)}`:"";function Uy({value:e,country:t,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:i,prefix:o,charAfterDialCode:a,forceDialCode:u,disableDialCodeAndPrefix:c,defaultMask:d,countryGuessingEnabled:f,disableFormatting:h}){let m=e;c&&(m=m.startsWith(`${o}`)?m:`${o}${t.dialCode}${m}`);let g=f?zK({phone:m,countries:i,currentCountryIso2:t==null?void 0:t.iso2}):void 0,v=(g==null?void 0:g.country)??t,$=FK(m,{prefix:o,mask:KK({phone:m,country:v,defaultMask:d,disableFormatting:h}),maskChar:VA,dialCode:v.dialCode,trimNonDigitsEnd:r,charAfterDialCode:a,forceDialCode:u,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:c}),C=f&&!(g!=null&&g.fullDialCodeMatch)?t:v;return{phone:Ff({phone:c?`${C.dialCode}${$}`:$,prefix:o}),inputValue:$,country:C}}var BK=e=>{if((e==null?void 0:e.toLocaleLowerCase().includes("delete"))??!1)return e!=null&&e.toLocaleLowerCase().includes("forward")?"forward":"backward"},IK=(e,{country:t,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:i,charAfterDialCode:o,forceDialCode:a,disableDialCodeAndPrefix:u,countryGuessingEnabled:c,defaultMask:d,disableFormatting:f,countries:h})=>{let m=e.nativeEvent,g=m.inputType,v=BK(g),$=!!(g!=null&&g.startsWith("insertFrom")),C=g==="insertText",x=(m==null?void 0:m.data)||void 0,y=e.target.value,D=e.target.selectionStart??0;if(g!=null&&g.includes("history"))return{inputValue:r,phone:Ff({phone:r,prefix:i}),cursorPosition:r.length,country:t};if(C&&!Zs(x)&&y!==i)return{inputValue:r,phone:Ff({phone:u?`${t.dialCode}${r}`:r,prefix:i}),cursorPosition:D-((x==null?void 0:x.length)??0),country:t};if(a&&!y.startsWith(`${i}${t.dialCode}`)&&!$){let S=y?r:`${i}${t.dialCode}${o}`;return{inputValue:S,phone:Ff({phone:S,prefix:i}),cursorPosition:i.length+t.dialCode.length+o.length,country:t}}let{phone:P,inputValue:E,country:T}=Uy({value:y,country:t,trimNonDigitsEnd:v==="backward",insertDialCodeOnEmpty:n,countryGuessingEnabled:c,countries:h,prefix:i,charAfterDialCode:o,forceDialCode:a,disableDialCodeAndPrefix:u,disableFormatting:f,defaultMask:d}),k=kK({cursorPositionAfterInput:D,phoneBeforeInput:r,phoneAfterInput:y,phoneAfterFormatted:E,leftOffset:a?i.length+t.dialCode.length+o.length:0,deletion:v});return{phone:P,inputValue:E,cursorPosition:k,country:T}},VK=(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},LK=()=>{let e=b.useRef(),t=b.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}}},NK={size:20,overrideLastItemDebounceMS:-1};function jK(e,t){let{size:n,overrideLastItemDebounceMS:r,onChange:i}={...NK,...t},[o,a]=b.useState(e),[u,c]=b.useState([o]),[d,f]=b.useState(0),h=LK();return[o,(m,g)=>{if(typeof m=="object"&&typeof o=="object"&&VK(m,o)||m===o)return;let v=r>0,$=h.check(),C=v&&$!==void 0?$>r:!0;if((g==null?void 0:g.overrideLastItem)!==void 0?g.overrideLastItem:!C)c(x=>[...x.slice(0,d),m]);else{let x=u.length>=n;c(y=>[...y.slice(x?1:0,d+1),m]),x||f(y=>y+1)}a(m),i==null||i(m)},()=>{if(d<=0)return{success:!1};let m=u[d-1];return a(m),f(g=>g-1),i==null||i(m),{success:!0,value:m}},()=>{if(d+1>=u.length)return{success:!1};let m=u[d+1];return a(m),f(g=>g+1),i==null||i(m),{success:!0,value:m}}]}var VA=".",Zr={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:fs,preferredCountries:[]},LA=({defaultCountry:e=Zr.defaultCountry,value:t=Zr.value,countries:n=Zr.countries,prefix:r=Zr.prefix,defaultMask:i=Zr.defaultMask,charAfterDialCode:o=Zr.charAfterDialCode,historySaveDebounceMS:a=Zr.historySaveDebounceMS,disableCountryGuess:u=Zr.disableCountryGuess,disableDialCodePrefill:c=Zr.disableDialCodePrefill,forceDialCode:d=Zr.forceDialCode,disableDialCodeAndPrefix:f=Zr.disableDialCodeAndPrefix,disableFormatting:h=Zr.disableFormatting,onChange:m,inputRef:g})=>{let v={countries:n,prefix:r,charAfterDialCode:o,forceDialCode:f?!1:d,disableDialCodeAndPrefix:f,defaultMask:i,countryGuessingEnabled:!u,disableFormatting:h},$=b.useRef(null),C=g||$,x=W=>{Promise.resolve().then(()=>{var j;typeof window>"u"||C.current!==(document==null?void 0:document.activeElement)||((j=C.current)==null||j.setSelectionRange(W,W))})},[{phone:y,inputValue:D,country:P},E,T,k]=jK(()=>{let W=tu({value:e,field:"iso2",countries:n});W||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let j=W||tu({value:"us",field:"iso2",countries:n}),{phone:V,inputValue:R,country:M}=Uy({value:t,country:j,insertDialCodeOnEmpty:!c,...v});return x(R.length),{phone:V,inputValue:R,country:M.iso2}},{overrideLastItemDebounceMS:a,onChange:({inputValue:W,phone:j,country:V})=>{if(!m)return;let R=S(V);m({phone:j,inputValue:W,country:R})}}),S=b.useCallback(W=>tu({value:W,field:"iso2",countries:n}),[n]),U=b.useMemo(()=>S(P),[P,S]);b.useEffect(()=>{let W=C.current;if(!W)return;let j=V=>{if(!V.key)return;let R=V.ctrlKey,M=V.metaKey,Y=V.shiftKey;if(V.key.toLowerCase()==="z"){if(MK()){if(!M)return}else if(!R)return;Y?k():T()}};return W.addEventListener("keydown",j),()=>{W.removeEventListener("keydown",j)}},[C,T,k]);let O=W=>{W.preventDefault();let{phone:j,inputValue:V,country:R,cursorPosition:M}=IK(W,{country:U,phoneBeforeInput:D,insertDialCodeOnEmpty:!1,...v});return E({inputValue:V,phone:j,country:R.iso2}),x(M),t},F=(W,j={focusOnInput:!1})=>{let V=tu({value:W,field:"iso2",countries:n});if(!V){console.error(`[react-international-phone]: can not find a country with "${W}" iso2 code`);return}let R=f?"":`${r}${V.dialCode}${o}`;E({inputValue:R,phone:`${r}${V.dialCode}`,country:V.iso2}),j.focusOnInput&&Promise.resolve().then(()=>{var M;(M=C.current)==null||M.focus()})},[G,K]=b.useState(!1);return b.useEffect(()=>{if(!G){K(!0),t!==y&&(m==null||m({inputValue:D,phone:y,country:U}));return}if(t===y)return;let{phone:W,inputValue:j,country:V}=Uy({value:t,country:U,insertDialCodeOnEmpty:!c,...v});E({phone:W,inputValue:j,country:V.iso2})},[t]),{phone:y,inputValue:D,country:U,setCountry:F,handlePhoneValueChange:O,inputRef:C}},KK=({phone:e,country:t,defaultMask:n="............",disableFormatting:r=!1})=>{let i=t.format,o=u=>r?u.replace(new RegExp(`[^${VA}]`,"g"),""):u;if(!i)return o(n);if(typeof i=="string")return o(i);if(!i.default)return console.error(`[react-international-phone]: default mask for ${t.iso2} is not provided`),o(n);let a=Object.keys(i).find(u=>{if(u==="default")return!1;if(!(u.charAt(0)==="/"&&u.charAt(u.length-1)==="/"))return console.error(`[react-international-phone]: format regex "${u}" for ${t.iso2} is not valid`),!1;let c=new RegExp(u.substring(1,u.length-1)),d=e.replace(t.dialCode,"");return c.test(ap(d))});return o(a?i[a]:i.default)},gi=e=>{let[t,n,r,i,o,a]=e;return{name:t,iso2:n,dialCode:r,format:i,priority:o,areaCodes:a}},UK=e=>`Field "${e}" is not supported`,tu=({field:e,value:t,countries:n=fs})=>{if(["priority"].includes(e))throw new Error(UK(e));let r=n.find(i=>{let o=gi(i);return t===o[e]});if(r)return gi(r)},zK=({phone:e,countries:t=fs,currentCountryIso2:n})=>{var u;let r={country:void 0,fullDialCodeMatch:!1};if(!e)return r;let i=ap(e);if(!i)return r;let o=r,a=({country:c,fullDialCodeMatch:d})=>{var m,g;let f=c.dialCode===((m=o.country)==null?void 0:m.dialCode),h=(c.priority??0)<(((g=o.country)==null?void 0:g.priority)??0);(!f||h)&&(o={country:c,fullDialCodeMatch:d})};for(let c of t){let d=gi(c),{dialCode:f,areaCodes:h}=d;if(i.startsWith(f)){let m=o.country?Number(f)>=Number(o.country.dialCode):!0;if(h){let g=i.substring(f.length);for(let v of h)if(g.startsWith(v))return{country:d,fullDialCodeMatch:!0}}(m||f===i||!o.fullDialCodeMatch)&&a({country:d,fullDialCodeMatch:!0})}o.fullDialCodeMatch||i.length<f.length&&f.startsWith(i)&&(!o.country||Number(f)<=Number(o.country.dialCode))&&a({country:d,fullDialCodeMatch:!1})}if(n){let c=tu({value:n,field:"iso2",countries:t});if(!c)return o;let d=c?(f=>{if(!(f!=null&&f.areaCodes))return!1;let h=i.substring(f.dialCode.length);return f.areaCodes.some(m=>m.startsWith(h))})(c):!1;o&&((u=o.country)==null?void 0:u.dialCode)===c.dialCode&&o.country!==c&&o.fullDialCodeMatch&&(!c.areaCodes||d)&&(o={country:c,fullDialCodeMatch:!0})}return o},WK=(e,t)=>{let n=parseInt(e,16);return Number(n+t).toString(16)},HK="abcdefghijklmnopqrstuvwxyz",GK="1f1e6",ax=HK.split("").reduce((e,t,n)=>({...e,[t]:WK(GK,n)}),{}),qK=e=>[ax[e[0]],ax[e[1]]].join("-"),Eb=({iso2:e,size:t,src:n,protocol:r="https",disableLazyLoading:i,className:o,style:a,...u})=>{if(!e)return b.createElement("img",{className:Jn({addPrefix:["flag-emoji"],rawClassNames:[o]}),width:t,height:t,...u});let c=()=>{if(n)return n;let d=qK(e);return`${r}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${d}.svg`};return b.createElement("img",{className:Jn({addPrefix:["flag-emoji"],rawClassNames:[o]}),src:c(),width:t,height:t,draggable:!1,"data-country":e,loading:i?void 0:"lazy",style:{width:t,height:t,...a},alt:"",...u})},YK=1e3,ZK=({show:e,dialCodePrefix:t="+",selectedCountry:n,countries:r=fs,preferredCountries:i=[],flags:o,onSelect:a,onClose:u,...c})=>{let d=b.useRef(null),f=b.useRef(),h=b.useMemo(()=>{if(!i||!i.length)return r;let T=[],k=[...r];for(let S of i){let U=k.findIndex(O=>gi(O).iso2===S);if(U!==-1){let O=k.splice(U,1)[0];T.push(O)}}return T.concat(k)},[r,i]),m=b.useRef({updatedAt:void 0,value:""}),g=T=>{let k=m.current.updatedAt&&new Date().getTime()-m.current.updatedAt.getTime()>YK;m.current={value:k?T:`${m.current.value}${T}`,updatedAt:new Date};let S=h.findIndex(U=>gi(U).name.toLowerCase().startsWith(m.current.value));S!==-1&&C(S)},v=b.useCallback(T=>h.findIndex(k=>gi(k).iso2===T),[h]),[$,C]=b.useState(v(n)),x=()=>{f.current!==n&&C(v(n))},y=b.useCallback(T=>{C(v(T.iso2)),a==null||a(T)},[a,v]),D=T=>{let k=h.length-1,S=U=>T==="prev"?U-1:T==="next"?U+1:T==="last"?k:0;C(U=>{let O=S(U);return O<0?0:O>k?k:O})},P=T=>{if(T.stopPropagation(),T.key==="Enter"){T.preventDefault();let k=gi(h[$]);y(k);return}if(T.key==="Escape"){u==null||u();return}if(T.key==="ArrowUp"){T.preventDefault(),D("prev");return}if(T.key==="ArrowDown"){T.preventDefault(),D("next");return}if(T.key==="PageUp"){T.preventDefault(),D("first");return}if(T.key==="PageDown"){T.preventDefault(),D("last");return}T.key===" "&&T.preventDefault(),T.key.length===1&&!T.altKey&&!T.ctrlKey&&!T.metaKey&&g(T.key.toLocaleLowerCase())},E=b.useCallback(()=>{if(!d.current||$===void 0)return;let T=gi(h[$]).iso2;if(T===f.current)return;let k=d.current.querySelector(`[data-country="${T}"]`);k&&(OK(d.current,k),f.current=T)},[$,h]);return b.useEffect(()=>{E()},[$,E]),b.useEffect(()=>{d.current&&(e?d.current.focus():x())},[e]),b.useEffect(()=>{x()},[n]),b.createElement("ul",{ref:d,role:"listbox",className:Jn({addPrefix:["country-selector-dropdown"],rawClassNames:[c.className]}),style:{display:e?"block":"none",...c.style},onKeyDown:P,onBlur:u,tabIndex:-1,"aria-activedescendant":`react-international-phone__${gi(h[$]).iso2}-option`},h.map((T,k)=>{let S=gi(T),U=S.iso2===n,O=k===$,F=i.includes(S.iso2),G=k===i.length-1,K=o==null?void 0:o.find(W=>W.iso2===S.iso2);return b.createElement(b.Fragment,{key:S.iso2},b.createElement("li",{"data-country":S.iso2,role:"option","aria-selected":U,"aria-label":`${S.name} ${t}${S.dialCode}`,id:`react-international-phone__${S.iso2}-option`,className:Jn({addPrefix:["country-selector-dropdown__list-item",F&&"country-selector-dropdown__list-item--preferred",U&&"country-selector-dropdown__list-item--selected",O&&"country-selector-dropdown__list-item--focused"],rawClassNames:[c.listItemClassName]}),onClick:()=>y(S),style:c.listItemStyle,title:S.name},b.createElement(Eb,{iso2:S.iso2,src:K==null?void 0:K.src,className:Jn({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[c.listItemFlagClassName]}),style:c.listItemFlagStyle}),b.createElement("span",{className:Jn({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[c.listItemCountryNameClassName]}),style:c.listItemCountryNameStyle},S.name),b.createElement("span",{className:Jn({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[c.listItemDialCodeClassName]}),style:c.listItemDialCodeStyle},t,S.dialCode)),G?b.createElement("hr",{className:Jn({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[c.preferredListDividerClassName]}),style:c.preferredListDividerStyle}):null)}))},JK=({selectedCountry:e,onSelect:t,disabled:n,hideDropdown:r,countries:i=fs,preferredCountries:o=[],flags:a,renderButtonWrapper:u,...c})=>{let[d,f]=b.useState(!1),h=b.useMemo(()=>{if(e)return tu({value:e,field:"iso2",countries:i})},[i,e]),m=b.useRef(null),g=$=>{$.key&&["ArrowUp","ArrowDown"].includes($.key)&&($.preventDefault(),f(!0))},v=()=>{var x;let $={title:h==null?void 0:h.name,onClick:()=>f(y=>!y),onMouseDown:y=>y.preventDefault(),onKeyDown:g,disabled:r||n,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":d},C=b.createElement("div",{className:Jn({addPrefix:["country-selector-button__button-content"],rawClassNames:[c.buttonContentWrapperClassName]}),style:c.buttonContentWrapperStyle},b.createElement(Eb,{iso2:e,src:(x=a==null?void 0:a.find(y=>y.iso2===e))==null?void 0:x.src,className:Jn({addPrefix:["country-selector-button__flag-emoji",n&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[c.flagClassName]}),style:{visibility:e?"visible":"hidden",...c.flagStyle}}),!r&&b.createElement("div",{className:Jn({addPrefix:["country-selector-button__dropdown-arrow",n&&"country-selector-button__dropdown-arrow--disabled",d&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[c.dropdownArrowClassName]}),style:c.dropdownArrowStyle}));return u?u({children:C,rootProps:$}):b.createElement("button",{...$,type:"button",className:Jn({addPrefix:["country-selector-button",d&&"country-selector-button--active",n&&"country-selector-button--disabled",r&&"country-selector-button--hide-dropdown"],rawClassNames:[c.buttonClassName]}),"data-country":e,style:c.buttonStyle},C)};return b.createElement("div",{className:Jn({addPrefix:["country-selector"],rawClassNames:[c.className]}),style:c.style,ref:m},v(),b.createElement(ZK,{show:d,countries:i,preferredCountries:o,flags:a,onSelect:$=>{f(!1),t==null||t($)},selectedCountry:e,onClose:()=>{f(!1)},...c.dropdownStyleProps}))},XK=({dialCode:e,prefix:t,disabled:n,style:r,className:i})=>b.createElement("div",{className:Jn({addPrefix:["dial-code-preview",n&&"dial-code-preview--disabled"],rawClassNames:[i]}),style:r},`${t}${e}`);b.forwardRef(({value:e,onChange:t,countries:n=fs,preferredCountries:r=[],hideDropdown:i,showDisabledDialCodeAndPrefix:o,disableFocusAfterCountrySelect:a,flags:u,style:c,className:d,inputStyle:f,inputClassName:h,countrySelectorStyleProps:m,dialCodePreviewStyleProps:g,inputProps:v,placeholder:$,disabled:C,name:x,onFocus:y,onBlur:D,required:P,autoFocus:E,...T},k)=>{let{phone:S,inputValue:U,inputRef:O,country:F,setCountry:G,handlePhoneValueChange:K}=LA({value:e,countries:n,...T,onChange:j=>{t==null||t(j.phone,{country:j.country,inputValue:j.inputValue})}}),W=T.disableDialCodeAndPrefix&&o&&(F==null?void 0:F.dialCode);return b.useImperativeHandle(k,()=>O.current?Object.assign(O.current,{setCountry:G,state:{phone:S,inputValue:U,country:F}}):null,[O,G,S,U,F]),b.createElement("div",{ref:k,className:Jn({addPrefix:["input-container"],rawClassNames:[d]}),style:c},b.createElement(JK,{onSelect:j=>G(j.iso2,{focusOnInput:!a}),flags:u,selectedCountry:F.iso2,countries:n,preferredCountries:r,disabled:C,hideDropdown:i,...m}),W&&b.createElement(XK,{dialCode:F.dialCode,prefix:T.prefix??"+",disabled:C,...g}),b.createElement("input",{onChange:K,value:U,type:"tel",ref:O,className:Jn({addPrefix:["input",C&&"input--disabled"],rawClassNames:[h]}),placeholder:$,disabled:C,style:f,name:x,onFocus:y,onBlur:D,autoFocus:E,required:P,...v}))});var ta=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},zy={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Array]",u="[object Boolean]",c="[object Date]",d="[object Error]",f="[object Function]",h="[object GeneratorFunction]",m="[object Map]",g="[object Number]",v="[object Object]",$="[object Promise]",C="[object RegExp]",x="[object Set]",y="[object String]",D="[object Symbol]",P="[object WeakMap]",E="[object ArrayBuffer]",T="[object DataView]",k="[object Float32Array]",S="[object Float64Array]",U="[object Int8Array]",O="[object Int16Array]",F="[object Int32Array]",G="[object Uint8Array]",K="[object Uint8ClampedArray]",W="[object Uint16Array]",j="[object Uint32Array]",V=/[\\^$.*+?()[\]{}|]/g,R=/\w*$/,M=/^\[object .+?Constructor\]$/,Y=/^(?:0|[1-9]\d*)$/,L={};L[o]=L[a]=L[E]=L[T]=L[u]=L[c]=L[k]=L[S]=L[U]=L[O]=L[F]=L[m]=L[g]=L[v]=L[C]=L[x]=L[y]=L[D]=L[G]=L[K]=L[W]=L[j]=!0,L[d]=L[f]=L[P]=!1;var z=typeof ta=="object"&&ta&&ta.Object===Object&&ta,re=typeof self=="object"&&self&&self.Object===Object&&self,oe=z||re||Function("return this")(),fe=t&&!t.nodeType&&t,ie=fe&&!0&&e&&!e.nodeType&&e,Ee=ie&&ie.exports===fe;function $e(N,ae){return N.set(ae[0],ae[1]),N}function ne(N,ae){return N.add(ae),N}function ye(N,ae){for(var ve=-1,Ie=N?N.length:0;++ve<Ie&&ae(N[ve],ve,N)!==!1;);return N}function xe(N,ae){for(var ve=-1,Ie=ae.length,yn=N.length;++ve<Ie;)N[yn+ve]=ae[ve];return N}function he(N,ae,ve,Ie){for(var yn=-1,Un=N?N.length:0;++yn<Un;)ve=ae(ve,N[yn],yn,N);return ve}function le(N,ae){for(var ve=-1,Ie=Array(N);++ve<N;)Ie[ve]=ae(ve);return Ie}function Fe(N,ae){return N==null?void 0:N[ae]}function et(N){var ae=!1;if(N!=null&&typeof N.toString!="function")try{ae=!!(N+"")}catch{}return ae}function dt(N){var ae=-1,ve=Array(N.size);return N.forEach(function(Ie,yn){ve[++ae]=[yn,Ie]}),ve}function Dn(N,ae){return function(ve){return N(ae(ve))}}function yt(N){var ae=-1,ve=Array(N.size);return N.forEach(function(Ie){ve[++ae]=Ie}),ve}var q=Array.prototype,Z=Function.prototype,te=Object.prototype,pe=oe["__core-js_shared__"],Ce=function(){var N=/[^.]+$/.exec(pe&&pe.keys&&pe.keys.IE_PROTO||"");return N?"Symbol(src)_1."+N:""}(),De=Z.toString,Re=te.hasOwnProperty,Le=te.toString,mt=RegExp("^"+De.call(Re).replace(V,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ut=Ee?oe.Buffer:void 0,_t=oe.Symbol,Pn=oe.Uint8Array,Rn=Dn(Object.getPrototypeOf,Object),Yt=Object.create,Vn=te.propertyIsEnumerable,tn=q.splice,vt=Object.getOwnPropertySymbols,Ln=ut?ut.isBuffer:void 0,Cr=Dn(Object.keys,Object),_n=ze(oe,"DataView"),er=ze(oe,"Map"),On=ze(oe,"Promise"),tr=ze(oe,"Set"),Nn=ze(oe,"WeakMap"),En=ze(Object,"create"),Ir=Qi(_n),Lt=Qi(er),Cn=Qi(On),Ne=Qi(tr),tt=Qi(Nn),nn=_t?_t.prototype:void 0,fr=nn?nn.valueOf:void 0;function Te(N){var ae=-1,ve=N?N.length:0;for(this.clear();++ae<ve;){var Ie=N[ae];this.set(Ie[0],Ie[1])}}function je(){this.__data__=En?En(null):{}}function Ye(N){return this.has(N)&&delete this.__data__[N]}function Ft(N){var ae=this.__data__;if(En){var ve=ae[N];return ve===r?void 0:ve}return Re.call(ae,N)?ae[N]:void 0}function rn(N){var ae=this.__data__;return En?ae[N]!==void 0:Re.call(ae,N)}function jn(N,ae){var ve=this.__data__;return ve[N]=En&&ae===void 0?r:ae,this}Te.prototype.clear=je,Te.prototype.delete=Ye,Te.prototype.get=Ft,Te.prototype.has=rn,Te.prototype.set=jn;function Kt(N){var ae=-1,ve=N?N.length:0;for(this.clear();++ae<ve;){var Ie=N[ae];this.set(Ie[0],Ie[1])}}function an(){this.__data__=[]}function kt(N){var ae=this.__data__,ve=Ai(ae,N);if(ve<0)return!1;var Ie=ae.length-1;return ve==Ie?ae.pop():tn.call(ae,ve,1),!0}function wt(N){var ae=this.__data__,ve=Ai(ae,N);return ve<0?void 0:ae[ve][1]}function li(N){return Ai(this.__data__,N)>-1}function ya(N,ae){var ve=this.__data__,Ie=Ai(ve,N);return Ie<0?ve.push([N,ae]):ve[Ie][1]=ae,this}Kt.prototype.clear=an,Kt.prototype.delete=kt,Kt.prototype.get=wt,Kt.prototype.has=li,Kt.prototype.set=ya;function hr(N){var ae=-1,ve=N?N.length:0;for(this.clear();++ae<ve;){var Ie=N[ae];this.set(Ie[0],Ie[1])}}function Po(){this.__data__={hash:new Te,map:new(er||Kt),string:new Te}}function Ro(N){return Ke(this,N).delete(N)}function _o(N){return Ke(this,N).get(N)}function gt(N){return Ke(this,N).has(N)}function nr(N,ae){return Ke(this,N).set(N,ae),this}hr.prototype.clear=Po,hr.prototype.delete=Ro,hr.prototype.get=_o,hr.prototype.has=gt,hr.prototype.set=nr;function pr(N){this.__data__=new Kt(N)}function Kn(){this.__data__=new Kt}function Oo(N){return this.__data__.delete(N)}function Vr(N){return this.__data__.get(N)}function tl(N){return this.__data__.has(N)}function vs(N,ae){var ve=this.__data__;if(ve instanceof Kt){var Ie=ve.__data__;if(!er||Ie.length<n-1)return Ie.push([N,ae]),this;ve=this.__data__=new hr(Ie)}return ve.set(N,ae),this}pr.prototype.clear=Kn,pr.prototype.delete=Oo,pr.prototype.get=Vr,pr.prototype.has=tl,pr.prototype.set=vs;function nl(N,ae){var ve=al(N)||_p(N)?le(N.length,String):[],Ie=ve.length,yn=!!Ie;for(var Un in N)Re.call(N,Un)&&!(yn&&(Un=="length"||rr(Un,Ie)))&&ve.push(Un);return ve}function Mo(N,ae,ve){var Ie=N[ae];(!(Re.call(N,ae)&&ol(Ie,ve))||ve===void 0&&!(ae in N))&&(N[ae]=ve)}function Ai(N,ae){for(var ve=N.length;ve--;)if(ol(N[ve][0],ae))return ve;return-1}function va(N,ae){return N&&be(ae,ul(ae),N)}function ba(N,ae,ve,Ie,yn,Un,Nr){var zn;if(Ie&&(zn=Un?Ie(N,yn,Un,Nr):Ie(N)),zn!==void 0)return zn;if(!Ss(N))return N;var pn=al(N);if(pn){if(zn=Mn(N),!ae)return ue(N,zn)}else{var Pi=Wt(N),Ri=Pi==f||Pi==h;if(sl(N))return ws(N,ae);if(Pi==v||Pi==o||Ri&&!Un){if(et(N))return Un?N:{};if(zn=Fn(Ri?{}:N),!ae)return _e(N,va(zn,N))}else{if(!L[Pi])return Un?N:{};zn=Lr(N,Pi,ba,ae)}}Nr||(Nr=new pr);var ll=Nr.get(N);if(ll)return ll;if(Nr.set(N,zn),!pn)var Ts=ve?it(N):ul(N);return ye(Ts||N,function(Wn,Da){Ts&&(Da=Wn,Wn=N[Da]),Mo(zn,Da,ba(Wn,ae,ve,Ie,Da,N,Nr))}),zn}function bs(N){return Ss(N)?Yt(N):{}}function $s(N,ae,ve){var Ie=ae(N);return al(N)?Ie:xe(Ie,ve(N))}function rl(N){return Le.call(N)}function xs(N){if(!Ss(N)||xa(N))return!1;var ae=ld(N)||et(N)?mt:M;return ae.test(Qi(N))}function $a(N){if(!wa(N))return Cr(N);var ae=[];for(var ve in Object(N))Re.call(N,ve)&&ve!="constructor"&&ae.push(ve);return ae}function ws(N,ae){if(ae)return N.slice();var ve=new N.constructor(N.length);return N.copy(ve),ve}function Xi(N){var ae=new N.constructor(N.byteLength);return new Pn(ae).set(new Pn(N)),ae}function il(N,ae){var ve=ae?Xi(N.buffer):N.buffer;return new N.constructor(ve,N.byteOffset,N.byteLength)}function Ds(N,ae,ve){var Ie=ae?ve(dt(N),!0):dt(N);return he(Ie,$e,new N.constructor)}function Fo(N){var ae=new N.constructor(N.source,R.exec(N));return ae.lastIndex=N.lastIndex,ae}function Es(N,ae,ve){var Ie=ae?ve(yt(N),!0):yt(N);return he(Ie,ne,new N.constructor)}function B(N){return fr?Object(fr.call(N)):{}}function X(N,ae){var ve=ae?Xi(N.buffer):N.buffer;return new N.constructor(ve,N.byteOffset,N.length)}function ue(N,ae){var ve=-1,Ie=N.length;for(ae||(ae=Array(Ie));++ve<Ie;)ae[ve]=N[ve];return ae}function be(N,ae,ve,Ie){ve||(ve={});for(var yn=-1,Un=ae.length;++yn<Un;){var Nr=ae[yn],zn=void 0;Mo(ve,Nr,zn===void 0?N[Nr]:zn)}return ve}function _e(N,ae){return be(N,Ot(N),ae)}function it(N){return $s(N,ul,Ot)}function Ke(N,ae){var ve=N.__data__;return Cs(ae)?ve[typeof ae=="string"?"string":"hash"]:ve.map}function ze(N,ae){var ve=Fe(N,ae);return xs(ve)?ve:void 0}var Ot=vt?Dn(vt,Object):Bt,Wt=rl;(_n&&Wt(new _n(new ArrayBuffer(1)))!=T||er&&Wt(new er)!=m||On&&Wt(On.resolve())!=$||tr&&Wt(new tr)!=x||Nn&&Wt(new Nn)!=P)&&(Wt=function(N){var ae=Le.call(N),ve=ae==v?N.constructor:void 0,Ie=ve?Qi(ve):void 0;if(Ie)switch(Ie){case Ir:return T;case Lt:return m;case Cn:return $;case Ne:return x;case tt:return P}return ae});function Mn(N){var ae=N.length,ve=N.constructor(ae);return ae&&typeof N[0]=="string"&&Re.call(N,"index")&&(ve.index=N.index,ve.input=N.input),ve}function Fn(N){return typeof N.constructor=="function"&&!wa(N)?bs(Rn(N)):{}}function Lr(N,ae,ve,Ie){var yn=N.constructor;switch(ae){case E:return Xi(N);case u:case c:return new yn(+N);case T:return il(N,Ie);case k:case S:case U:case O:case F:case G:case K:case W:case j:return X(N,Ie);case m:return Ds(N,Ie,ve);case g:case y:return new yn(N);case C:return Fo(N);case x:return Es(N,Ie,ve);case D:return B(N)}}function rr(N,ae){return ae=ae??i,!!ae&&(typeof N=="number"||Y.test(N))&&N>-1&&N%1==0&&N<ae}function Cs(N){var ae=typeof N;return ae=="string"||ae=="number"||ae=="symbol"||ae=="boolean"?N!=="__proto__":N===null}function xa(N){return!!Ce&&Ce in N}function wa(N){var ae=N&&N.constructor,ve=typeof ae=="function"&&ae.prototype||te;return N===ve}function Qi(N){if(N!=null){try{return De.call(N)}catch{}try{return N+""}catch{}}return""}function Rp(N){return ba(N,!0,!0)}function ol(N,ae){return N===ae||N!==N&&ae!==ae}function _p(N){return Op(N)&&Re.call(N,"callee")&&(!Vn.call(N,"callee")||Le.call(N)==o)}var al=Array.isArray;function ud(N){return N!=null&&Mp(N.length)&&!ld(N)}function Op(N){return Fp(N)&&ud(N)}var sl=Ln||Mt;function ld(N){var ae=Ss(N)?Le.call(N):"";return ae==f||ae==h}function Mp(N){return typeof N=="number"&&N>-1&&N%1==0&&N<=i}function Ss(N){var ae=typeof N;return!!N&&(ae=="object"||ae=="function")}function Fp(N){return!!N&&typeof N=="object"}function ul(N){return ud(N)?nl(N):$a(N)}function Bt(){return[]}function Mt(){return!1}e.exports=Rp})(zy,zy.exports);var na=zy.exports,Wy=function(){return Wy=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Wy.apply(this,arguments)};function QK(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function u(f){try{d(r.next(f))}catch(h){a(h)}}function c(f){try{d(r.throw(f))}catch(h){a(h)}}function d(f){f.done?o(f.value):i(f.value).then(u,c)}d((r=r.apply(e,[])).next())})}function eU(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(d){return function(f){return c([d,f])}}function c(d){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,d[0]&&(n=0)),n;)try{if(r=1,i&&(o=d[0]&2?i.return:d[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,d[1])).done)return o;switch(i=0,o&&(d=[d[0]&2,o.value]),d[0]){case 0:case 1:o=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,i=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){n.label=d[1];break}if(d[0]===6&&n.label<o[1]){n.label=o[1],o=d;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(d);break}o[2]&&n.ops.pop(),n.trys.pop();continue}d=t.call(e,n)}catch(f){d=[6,f],i=0}finally{r=o=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function hh(e,t,n,r,i){return QK(this,void 0,void 0,function(){var o,a;return eU(this,function(u){switch(u.label){case 0:if(n===void 0)return[2];a=0,u.label=1;case 1:return a<n.length?[4,n[a](e,t,r,i,n)]:[3,4];case 2:if(o=u.sent(),o==="canceled")return[3,4];u.label=3;case 3:return a++,[3,1];case 4:return o!=="canceled"?[2,o]:[2]}})})}var Hy=function(e,t){return t===void 0&&(t={}),e?{trackedAnalytics:Wy({sdkCode:e.sdkCode,sdkSemver:e.sdkSemver,techVersion:e.techVersion},t)}:null},tU=function(){function e(t,n,r,i){var o=this;this.isMounted=!0,this.imgElement=t,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var a=na(n);hh(t,a,r,this.htmlPluginState,i).then(function(u){if(o.isMounted){o.htmlPluginState.pluginEventSubscription.forEach(function(d){d()});var c=Hy(i,u);o.imgElement.setAttribute("src",a.toURL(c))}})}return e.prototype.update=function(t,n,r){var i=this,o=na(t);hh(this.imgElement,o,n,this.htmlPluginState).then(function(a){if(i.isMounted){var u=Hy(r,a);i.imgElement.setAttribute("src",o.toURL(u))}})},e.prototype.unmount=function(){this.isMounted=!1},e}();let en=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}},nU=class extends Error{constructor(t="Unsupported"){super(t)}};function Cb(e){return new nU(e)}function rU(){return this._qualifierModel||{error:Cb(`unsupported qualifier ${this.constructor.name}`)}}let iU=class{constructor(){this._qualifierModel={}}toJson(){return rU.apply(this)}},rt=class extends iU{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof en?this.qualifierValue=n:(this.qualifierValue=new en,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}},ai=class extends rt{constructor(t,n){let r;n?r=new en([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}};function oU(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function aU(){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:Cb(`unsupported action ${this.constructor.name}`)}}let sU=class{constructor(){this._actionModel={}}toJson(){return aU.apply(this)}},Ei=class extends sU{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(),oU(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 ai(r)):this.qualifiers.set(n,new rt(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new ai(t)):t instanceof ai&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}};class Sb extends Ei{constructor(t){super(),this.regionType=t,this._actionModel.regionType=t}}class sp extends Sb{constructor(){super("custom")}x(t){return this._actionModel.x=t,this.addQualifier(new rt("x",t)),this}y(t){return this._actionModel.y=t,this.addQualifier(new rt("y",t)),this}width(t){return this._actionModel.width=t,this.addQualifier(new rt("w",t)),this}height(t){return this._actionModel.height=t,this.addQualifier(new rt("h",t)),this}static fromJson(t){const n=new sp;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 uU(){return new sp}function NA(){return new Sb("faces")}function lU(){return new Sb("ocr_text")}class cU extends Ei{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 rt("e",`blur_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new rt("e",`blur_region${t}`)),this.addQualifier(new rt("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new rt("e",`blur_faces${t}`))):this.addQualifier(new rt("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(NA()),r&&r.regionType==="ocr_text"&&i.region(lU()),r&&r.regionType==="custom"&&i.region(sp.fromJson(r)),i}}function hs(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const jA={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},dU={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},KA={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},UA={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},fU={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},zA={444:"CHROMA_444",420:"CHROMA_420"},hU={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"},pU=hs(zA);hs(hU);const mU=hs(jA),gU=hs(dU),WA=hs(KA);hs(UA);hs(fU);class HA extends Ei{constructor(t,n){super(),this._actionModel={},this._actionModel.actionType=WA[t]||t;const r=this.createEffectQualifier(t,n);this.addQualifier(r)}createEffectQualifier(t,n){let r;return n?r=new en([t,`${n}`]).setDelimiter(":"):r=new en(t),new rt("e",r)}static fromJson(t){const{actionType:n,level:r,strength:i}=t,o=KA[n]||n;return new this(o,r||i)}}class yU extends HA{constructor(t,n){super(t,n),this.LEVEL_NAME="level",this._actionModel={},this.effectType=t,this._actionModel.actionType=WA[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 up(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class vU extends Ei{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 en(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(t+=`:${new en(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(t+=`:${new en(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(t+=`:${new en(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(t+=`:${new en(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new rt("e",t))}static fromJson(t){const{actionType:n,paths:r,cornersLevel:i,despeckleLevel:o,detailLevel:a,numOfColors:u}=t,c=new this;return r&&c.paths(r),i&&c.cornersLevel(i),o&&c.despeckleLevel(o),a&&c.detailsLevel(a),u&&c.numOfColors(u),c}}class bU extends yU{level(t){return this._actionModel.level=t,this.setLevel(t)}}class $U extends Ei{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new rt("e",new en("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new rt("e",new en(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(t){return this._actionModel.type="stripes",this._actionModel.stripesStrength=t,this.addQualifier(new rt("e",new en(["assist_colorblind",t]).setDelimiter(":")))}static fromJson(t){const{actionType:n,type:r,stripesStrength:i}=t,o=new this;return r==="xray"&&o.xray(),r==="stripes"&&i&&o.stripesStrength(i),o}}class xU extends bU{color(t){return this._actionModel.color=t,this.addQualifier(new rt("co",new en(up(t))))}static fromJson(t){const{actionType:n,level:r,color:i}=t,o=new this(n,r);return i&&o.color(i),o}}class wU extends Ei{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 rt("e",`pixelate_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new rt("e",`pixelate_region${t}`)),this.addQualifier(new rt("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new rt("e",`pixelate_faces${t}`))):this.addQualifier(new rt("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(NA()),n&&n.regionType==="custom"&&i.region(uU()),i}}function DU(e){return new cU(e)}function EU(){return new HA("grayscale")}function sx(e){return new xU("colorize",e)}function CU(){return new vU}function SU(){return new $U}function TU(e){return new wU(e)}let AU=class extends Ei{constructor(t){super(),this._actionModel={},this.addQualifier(new rt("b",new en(up(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}},ux=class{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:Cb(`unsupported action ${this.constructor.name}`)}}};function PU(e){const t=e;return"error"in t&&!!t.error}function RU(){return new ai("ignore_aspect_ratio")}function _U(){return new ai("lossy")}function OU(){return new ai("preserve_transparency")}function MU(e){return new ai("progressive",e)}function FU(){return new ai("region_relative")}function kU(){return new ai("relative")}let Tb=class extends en{constructor(t){super(t),this.val=t}getValue(){return this.val}},GA=class extends Ei{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof Tb?i=n.getValue():i=n,this._actionModel.actionType=gU[t],this._actionModel[r]=i,this.addQualifier(new rt(t,n))}},BU=class extends ai{constructor(t){super("progressive",t)}},Gy=class extends GA{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(_U()),this}progressive(t){return t instanceof BU?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(MU(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(OU()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:o}=t;let a;return n?a=new this("f",n):a=new this("f"),i&&(i.mode?a.progressive(i.mode):a.progressive()),r&&a.lossy(),o&&a.preserveTransparency(),a}},lp=class qA{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 ux(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof qA?this.actions=this.actions.concat(t.actions):this.actions.push(new ux(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 Gy("q",t)),this}format(t){return this.addAction(new Gy("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 AU(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new Ei;let r=t;return typeof t=="string"&&(r=new ai(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(PU(r))return r;t.push(r)}return{actions:t}}};function lx(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 IU extends en{}class VU extends Ei{constructor(t,n,r){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=mU[t]||t,this.addQualifier(new rt("c",t)),n&&this.width(n),r&&this.height(r)}height(t){return this._actionModel.dimensions.height=t,this.addQualifier(new rt("h",t))}width(t){return this._actionModel.dimensions.width=t,this.addQualifier(new rt("w",t))}aspectRatio(t){if(t instanceof IU)return this._actionModel.dimensions.aspectRatio=`${t}`,this.addQualifier(new rt("ar",t));if(typeof t=="number"||typeof t=="string")return this._actionModel.dimensions.aspectRatio=lx(t),this.addQualifier(new rt("ar",lx(t)));if(t instanceof ai)return this._actionModel.dimensions.aspectRatio=`${t.qualifierValue}`,this.addFlag(t)}relative(){return this._actionModel.relative=!0,this.addFlag(kU())}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(FU())}static fromJson(t){const{actionType:n,dimensions:r,relative:i,regionRelative:o}=t,{aspectRatio:a,width:u,height:c}=r,d=jA[n]||n,f=new this(d,u,c);return a&&f.aspectRatio(a==="ignore_aspect_ratio"?RU():a),i&&f.relative(),o&&f.regionRelative(),f}}class Ab extends rt{constructor(t){super("g",new en(t))}}class YA extends Ab{constructor(){super("auto")}autoFocus(...t){return this.addValue(t),this}}class ZA extends Ab{constructor(t){super(t)}fallbackGravity(t){return this.addValue(t.qualifierValue),this}}class JA extends Ab{constructor(t){super(t)}}function LU(e){return new JA(e)}function XA(...e){const t=[...e];return new ZA(t)}function QA(){return new YA}class Pu extends en{constructor(t){super(),this.name=t}toString(){return this.name}}function NU(){return new Pu("ocr_text")}function jU(e){return e&&`${e}`.split(":")[0]==="auto"}function KU(e){const t=Pb(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}function Pb(e){return`${e}`.replace("g_","")}function UU(e){return{compass:Pb(e),gravityType:"direction"}}function zU(e){return Pb(e)==="ocr_text"}function WU(){return{gravityType:"ocr"}}function HU(e){return`${e.qualifierValue}`.split(":")[0]==="auto"}function GU(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 eP(e){let t;const n=e==="auto"?new YA: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(GU)}}function qU(e){const t=`${e}`.split(":").includes("auto"),n=e.qualifierValue.values,i={gravityType:"object",focusOnObjects:(t?n.slice(0,n.length-1):n).map(o=>`${o}`)};if(t){const o=n[n.length-1].values.slice(1),a=QA().autoFocus(...o);i.fallbackGravity=eP(a)}return i}function YU(e){const n=e.split(":").map(r=>new Pu(r));return new ZA(n)}function ZU(e){return KU(e)?UU(e):zU(e)?WU():jU(e)||HU(e)?eP(e):qU(typeof e=="string"?YU(e):e)}class Rb extends en{constructor(t,n){super(),this._weight=n,this.focusOn=t,this.shouldAvoid=!1}static focusOn(t,n){const r=t instanceof Pu?t:new Pu(t);return new Rb(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 tP extends en{constructor(t){super(),this.val=t}toString(){return this.val}}function JU(e){return e.gravityType==="direction"}function XU(e){return e.gravityType==="ocr"}function QU(e){return e.gravityType==="auto"}function ez(e){const{object:t,weight:n,avoid:r}=e,i=new Rb(new Pu(t));return(n||n===0)&&i.weight(n),r&&i.avoid(),i}function nP(e){const n=(e.autoFocus||[]).map(ez);return QA().autoFocus(...n)}function tz(e){const t=(e.focusOnObjects||[]).map(r=>new Pu(r)),n=XA(...t);if(e.fallbackGravity){const r=nP(e.fallbackGravity);n.fallbackGravity(r)}return n}function nz(e){return JU(e)?new JA(new tP(e.compass)):XU(e)?XA(NU()):QU(e)?nP(e):tz(e)}class _b extends VU{gravity(t){this._actionModel.gravity=ZU(t);const n=typeof t=="string"?new rt("g",t):t;return this.addQualifier(n)}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.gravity&&n.gravity(nz(t.gravity)),n}}class Uc extends rt{constructor(t){super("b"),t&&this.addValue(t)}}const rP=100,rz=0;class iz extends Uc{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}`:`:${rP}:${this.brightnessLevel}`:"";return`b_blurred${t}${n}`}}var iP=iz;class Ob extends Uc{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...t){return this._palette=t.map(n=>up(n)),this}}class oP extends Ob{toString(){return`
|
|
95
|
+
b_auto:border
|
|
96
|
+
${this._contrast?"_contrast":""}
|
|
97
|
+
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
98
|
+
`.replace(/\s+/g,"")}}class aP extends Ob{gradientColors(t){return this._gradientColors=t,this}gradientDirection(t){return this._gradientDirection=t,this}}class sP extends aP{toString(){return`
|
|
99
|
+
b_auto:border_gradient
|
|
100
|
+
${this._contrast?"_contrast":""}
|
|
101
|
+
${this._gradientColors?`:${this._gradientColors}`:""}
|
|
102
|
+
${this._gradientDirection?`:${this._gradientDirection}`:""}
|
|
103
|
+
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
104
|
+
`.replace(/\s+/g,"")}}class uP extends aP{toString(){return`
|
|
105
|
+
b_auto:predominant_gradient
|
|
106
|
+
${this._contrast?"_contrast":""}
|
|
107
|
+
${this._gradientColors?`:${this._gradientColors}`:""}
|
|
108
|
+
${this._gradientDirection?`:${this._gradientDirection}`:""}
|
|
109
|
+
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
110
|
+
`.replace(/\s+/g,"")}}class lP extends Ob{toString(){return`
|
|
111
|
+
b_auto:predominant
|
|
112
|
+
${this._contrast?"_contrast":""}
|
|
113
|
+
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
114
|
+
`.replace(/\s+/g,"")}}class cP extends Uc{constructor(){super("gen_fill"),this._backgroundType="generativeFill"}prompt(t){return this._prompt=t,this}getPrompt(){return this._prompt}getBackgroundType(){return this._backgroundType}toString(){return`b_gen_fill${this._prompt?`:prompt_${this._prompt}`:""}`}}function dP(e){return`${e}`.replace("b_","")}function oz(){return{backgroundType:"auto"}}function az(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 Mb(e){const t=e._contrast,n=e._palette,r={backgroundType:""};return t&&(r.contrast=!0),n&&(r.palette=n),r}function sz(e){return Object.assign(Object.assign({},Mb(e)),{backgroundType:"border"})}function fP(e){const t=e._gradientColors,n=`${e._gradientDirection}`,r=Mb(e);return t&&(r.gradientColors=t),n&&(r.gradientDirection=n),r}function uz(e){return Object.assign(Object.assign({},fP(e)),{backgroundType:"borderGradient"})}function lz(e){return{backgroundType:"color",color:dP(e)}}function cz(e){return Object.assign(Object.assign({},Mb(e)),{backgroundType:"predominant"})}function dz(e){return Object.assign(Object.assign({},fP(e)),{backgroundType:"predominantGradient"})}function fz(e){return Object.assign({backgroundType:e.getBackgroundType()},e.getPrompt()?{prompt:e.getPrompt()}:{})}function hz(e){return dP(e)==="auto"?oz():e instanceof iP?az(e):e instanceof oP?sz(e):e instanceof sP?uz(e):e instanceof lP?cz(e):e instanceof uP?dz(e):e instanceof cP?fz(e):lz(e)}function pz(){return new Tb("svg")}function Fb(){return new Tb("auto")}function hP(){return new oP}function pP(){return new Uc("auto")}function mP(){return new sP}function gP(){return new uP}function yP(){return new lP}function vP(e){return new Uc(up(e))}function mz(){return new iP}function bP(){return new cP}const $P={auto:pP,border:hP,borderGradient:mP,predominantGradient:gP,predominant:yP,color:vP,blurred:mz,generativeFill:bP};function gz(e){const{brightness:t,intensity:n}=e,r=$P.blurred();return r.brightness(t??rz),r.intensity(n??rP),r}function cx(e,t){const{gradientColors:n,gradientDirection:r,contrast:i,palette:o}=t;return i&&e.contrast(),o&&e.palette(...o),n&&e.gradientColors(+n),r&&e.gradientDirection(r),e}function dx(e,t){const{contrast:n,palette:r}=t;return n&&e.contrast(),r&&e.palette(...r),e}function yz(e,t){const{prompt:n}=t;return n&&e.prompt(n),e}function vz(e){const{backgroundType:t}=e;switch(t){case"auto":return pP();case"blurred":return gz(e);case"border":return dx(hP(),e);case"borderGradient":return cx(mP(),e);case"predominant":return dx(yP(),e);case"predominantGradient":return cx(gP(),e);case"generativeFill":return yz(bP(),e);default:return vP(e.color)}}class bz extends _b{background(t){return this._actionModel.background=hz(t),this.addQualifier(t)}offsetX(t){return this._actionModel.x=t,this.addQualifier(new rt("x",t))}offsetY(t){return this._actionModel.y=t,this.addQualifier(new rt("y",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.background&&n.background(vz(t.background)),t.x&&n.offsetX(t.x),t.y&&n.offsetY(t.y),t.zoom&&n.zoom(t.zoom),n}}class $z extends _b{x(t){return this._actionModel.x=t,this.addQualifier(new rt("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new rt("y",t))}zoom(t){return this._actionModel.zoom=t,this.addQualifier(new rt("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 xz extends _b{x(t){return this._actionModel.x=t,this.addQualifier(new rt("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new rt("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 wz(e,t){return new $z("crop",e,t)}function Dz(e,t){return new xz("fill",e,t)}function Ez(e,t){return new bz("pad",e,t)}class Cz extends GA{constructor(t){super("q",t.toString(),"level")}chromaSubSampling(t){this._actionModel.chromaSubSampling=zA[t];const n=new en([this._actionModel.level,t]);return n.setDelimiter(":"),this.addQualifier(new rt("q",n))}quantization(t){this._actionModel.quantization=t;const n=new en([this._actionModel.level,`qmax_${t}`]).setDelimiter(":");return this.addQualifier(new rt("q",n))}static fromJson(t){const{level:n,chromaSubSampling:r,quantization:i}=t,o=UA[n]||n,a=new this(o);if(r){const u=pU[r.toUpperCase()];u&&a.chromaSubSampling(+u)}return i&&a.quantization(i),a}}function cp(e){return new Gy("f",e)}function dp(e){return new Cz(e)}function Sz(){return new tP("north_east")}sx(70).color("black"),sx(40).color("white"),EU(),SU();var Tz=new lp().effect(CU()).delivery(dp("auto")).delivery(cp(pz())),Az=new lp().effect(TU()).delivery(dp("auto")).delivery(cp(Fb())),Pz=new lp().effect(DU(2e3)).delivery(dp("auto")).delivery(cp(Fb())),Rz=new lp().resize(Ez("iw_div_2").aspectRatio(1).background($P.auto())).resize(wz(1,1).gravity(LU(Sz()))).resize(Dz().height("ih").width("iw")).delivery(dp("auto")).delivery(cp(Fb())),fx={vectorize:Tz,pixelate:Az,blur:Pz,"predominant-color":Rz},hx="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",px={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},mx="?_a=",_z=function(){function e(t,n,r,i,o,a,u){var c=this;this.mimeType="video",this.mimeSubTypes=px,this.videoElement=t,this.originalVideo=n,this.videoOptions=u,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var d=na(n);hh(t,n,i,this.htmlPluginState).then(function(){c.htmlPluginState.pluginEventSubscription.forEach(function(f){f()}),c.setVideoAttributes(o,a),c.handleSourceToVideo(d,r)})}return e.prototype.handleSourceToVideo=function(t,n){var r=this;if(n)this.generateUserSources(t,n);else{var i=["webm","mp4","ogv"];i.forEach(function(o){r.appendSourceTag(na(t),o)})}},e.prototype.generateUserSources=function(t,n){var r=this;n.map(function(i){var o=i.type,a=i.codecs,u=i.transcode;return r.appendSourceTag(na(t).transcode(u),o,r.buildMimeType(o,a))})},e.prototype.appendSourceTag=function(t,n,r){var i,o=document.createElement("source"),a=(i=this.videoOptions)===null||i===void 0?void 0:i.useFetchFormat;a&&t.format(n);var u=t.toURL(),c=u.split(mx),d=c[1]?"".concat(mx).concat(c[1]):"",f=a?"":".".concat(n);o.src="".concat(c[0]).concat(f).concat(d),o.type=r||"video/".concat(px[n]||n),this.videoElement.appendChild(o)},e.prototype.buildMimeType=function(t,n){var r="".concat(this.mimeType,"/").concat(this.mimeSubTypes[t]||t);return n&&(r+="; codecs="+(Array.isArray(n)?n.join(", "):n)),r},e.prototype.setVideoAttributes=function(t,n){var r;if(t===void 0&&(t={}),n==="auto"){var i=na(this.originalVideo);t.poster=i.quality("auto").format("jpg").addTransformation("so_auto").toURL()}else n&&(t.poster=(r=n.toURL)===null||r===void 0?void 0:r.call(n));for(var o=0,a=Object.entries(t);o<a.length;o++){var u=a[o],c=u[0],d=u[1];d&&this.videoElement.setAttribute(c,c==="poster"?d:"")}},e.prototype.update=function(t,n,r,i,o){var a=this;if(t!==this.originalVideo){for(var u=this.videoElement.getElementsByTagName("SOURCE");u[0];)u[0].parentNode.removeChild(u[0]);hh(this.videoElement,t,r,this.htmlPluginState).then(function(){a.setVideoAttributes(i,o),a.handleSourceToVideo(t,n),a.videoElement.load()})}},e}(),Oz=typeof ta=="object"&&ta&&ta.Object===Object&&ta,Mz=typeof self=="object"&&self&&self.Object===Object&&self;Oz||Mz||Function("return this")();function kb(){return typeof window<"u"}function Fz(e){return e instanceof HTMLImageElement}function kz(e){var t={},n=t.rootMargin,r=n===void 0?"0px":n,i=t.threshold,o=i===void 0?.1:i;return Bz.bind(null,r,o)}function Bz(e,t,n,r,i,o){return e===void 0&&(e="0px"),t===void 0&&(t=.1),kb()?new Promise(function(a){var u=function(){return a({lazyload:!0})},c=Vz(n,u,e,t);i.cleanupCallbacks.push(function(){c(),a("canceled")})}):!1}function Iz(){return window&&"IntersectionObserver"in window}function Vz(e,t,n,r){try{if(!Iz())return t(),function(){};var i=new IntersectionObserver(function(o){o.forEach(function(a){a.isIntersecting&&(i.unobserve(a.target),t())})},{rootMargin:n,threshold:r});return i.observe(e),function(){e&&i.observe(e)}}catch{t()}}function Lz(e){var t={},n=t.mode,r=n===void 0?"vectorize":n;return Nz.bind(null,r)}function Nz(e,t,n,r,i,o){fx[e]||(e="vectorize");var a=fx[e].actions,u=na(n);if(a.forEach(function(d){u.addAction(d)}),!kb())return n.transformation=u.transformation,!0;if(Fz(t)){u.transformation.actions.forEach(function(d,f){d instanceof Ei&&d.getActionTag()==="responsive"&&delete u.transformation.actions[f]});var c=Hy(i,{placeholder:!0});return t.src=u.toURL(c),t.onerror=function(){t.src=hx},new Promise(function(d){t.onload=function(){d()}}).then(function(){return new Promise(function(d){r.cleanupCallbacks.push(function(){t.src=hx,d("canceled")});var f=new Image;f.src=n.toURL(c),f.onload=function(){d({placeholder:!0})},f.onerror=function(){d({placeholder:!0})}})})}}function jz(e,t,n){var r=na(t);if(e)for(var i=0;i<e.length;i++){var o=e[i](null,r);if(!o)break}return r.toURL({trackedAnalytics:n})}function ph(e){e.cleanupCallbacks.forEach(function(t){t()})}var qy=function(e,t){return qy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},qy(e,t)};function xP(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");qy(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var gc=function(){return gc=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},gc.apply(this,arguments)};function wP(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 yc={exports:{}},Rt={};/*
|
|
115
|
+
object-assign
|
|
116
|
+
(c) Sindre Sorhus
|
|
117
|
+
@license MIT
|
|
118
|
+
*/var gx=Object.getOwnPropertySymbols,Kz=Object.prototype.hasOwnProperty,Uz=Object.prototype.propertyIsEnumerable;function zz(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Wz(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(r.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var DP=Wz()?Object.assign:function(e,t){for(var n,r=zz(e),i,o=1;o<arguments.length;o++){n=Object(arguments[o]);for(var a in n)Kz.call(n,a)&&(r[a]=n[a]);if(gx){i=gx(n);for(var u=0;u<i.length;u++)Uz.call(n,i[u])&&(r[i[u]]=n[i[u]])}}return r};/** @license React v16.14.0
|
|
119
|
+
* react.production.min.js
|
|
120
|
+
*
|
|
121
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
122
|
+
*
|
|
123
|
+
* This source code is licensed under the MIT license found in the
|
|
124
|
+
* LICENSE file in the root directory of this source tree.
|
|
125
|
+
*/var Bb=DP,Ci=typeof Symbol=="function"&&Symbol.for,zc=Ci?Symbol.for("react.element"):60103,Hz=Ci?Symbol.for("react.portal"):60106,Gz=Ci?Symbol.for("react.fragment"):60107,qz=Ci?Symbol.for("react.strict_mode"):60108,Yz=Ci?Symbol.for("react.profiler"):60114,Zz=Ci?Symbol.for("react.provider"):60109,Jz=Ci?Symbol.for("react.context"):60110,Xz=Ci?Symbol.for("react.forward_ref"):60112,Qz=Ci?Symbol.for("react.suspense"):60113,eW=Ci?Symbol.for("react.memo"):60115,tW=Ci?Symbol.for("react.lazy"):60116,yx=typeof Symbol=="function"&&Symbol.iterator;function Wc(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var EP={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},CP={};function zu(e,t,n){this.props=e,this.context=t,this.refs=CP,this.updater=n||EP}zu.prototype.isReactComponent={};zu.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(Wc(85));this.updater.enqueueSetState(this,e,t,"setState")};zu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function SP(){}SP.prototype=zu.prototype;function Ib(e,t,n){this.props=e,this.context=t,this.refs=CP,this.updater=n||EP}var Vb=Ib.prototype=new SP;Vb.constructor=Ib;Bb(Vb,zu.prototype);Vb.isPureReactComponent=!0;var Lb={current:null},TP=Object.prototype.hasOwnProperty,AP={key:!0,ref:!0,__self:!0,__source:!0};function PP(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)TP.call(t,r)&&!AP.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(u===1)i.children=n;else if(1<u){for(var c=Array(u),d=0;d<u;d++)c[d]=arguments[d+2];i.children=c}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)i[r]===void 0&&(i[r]=u[r]);return{$$typeof:zc,type:e,key:o,ref:a,props:i,_owner:Lb.current}}function nW(e,t){return{$$typeof:zc,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Nb(e){return typeof e=="object"&&e!==null&&e.$$typeof===zc}function rW(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(n){return t[n]})}var RP=/\/+/g,mh=[];function _P(e,t,n,r){if(mh.length){var i=mh.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function OP(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>mh.length&&mh.push(e)}function Yy(e,t,n,r){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case zc:case Hz:o=!0}}if(o)return n(r,e,t===""?"."+bg(e,0):t),1;if(o=0,t=t===""?".":t+":",Array.isArray(e))for(var a=0;a<e.length;a++){i=e[a];var u=t+bg(i,a);o+=Yy(i,u,n,r)}else if(e===null||typeof e!="object"?u=null:(u=yx&&e[yx]||e["@@iterator"],u=typeof u=="function"?u:null),typeof u=="function")for(e=u.call(e),a=0;!(i=e.next()).done;)i=i.value,u=t+bg(i,a++),o+=Yy(i,u,n,r);else if(i==="object")throw n=""+e,Error(Wc(31,n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return o}function Zy(e,t,n){return e==null?0:Yy(e,"",t,n)}function bg(e,t){return typeof e=="object"&&e!==null&&e.key!=null?rW(e.key):t.toString(36)}function iW(e,t){e.func.call(e.context,t,e.count++)}function oW(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?Jy(e,r,n,function(o){return o}):e!=null&&(Nb(e)&&(e=nW(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(RP,"$&/")+"/")+n)),r.push(e))}function Jy(e,t,n,r,i){var o="";n!=null&&(o=(""+n).replace(RP,"$&/")+"/"),t=_P(t,o,r,i),Zy(e,oW,t),OP(t)}var MP={current:null};function Ao(){var e=MP.current;if(e===null)throw Error(Wc(321));return e}var aW={ReactCurrentDispatcher:MP,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:Lb,IsSomeRendererActing:{current:!1},assign:Bb};Rt.Children={map:function(e,t,n){if(e==null)return e;var r=[];return Jy(e,r,null,t,n),r},forEach:function(e,t,n){if(e==null)return e;t=_P(null,null,t,n),Zy(e,iW,t),OP(t)},count:function(e){return Zy(e,function(){return null},null)},toArray:function(e){var t=[];return Jy(e,t,null,function(n){return n}),t},only:function(e){if(!Nb(e))throw Error(Wc(143));return e}};Rt.Component=zu;Rt.Fragment=Gz;Rt.Profiler=Yz;Rt.PureComponent=Ib;Rt.StrictMode=qz;Rt.Suspense=Qz;Rt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=aW;Rt.cloneElement=function(e,t,n){if(e==null)throw Error(Wc(267,e));var r=Bb({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=Lb.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)TP.call(t,c)&&!AP.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&u!==void 0?u[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){u=Array(c);for(var d=0;d<c;d++)u[d]=arguments[d+2];r.children=u}return{$$typeof:zc,type:e.type,key:i,ref:o,props:r,_owner:a}};Rt.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:Jz,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:Zz,_context:e},e.Consumer=e};Rt.createElement=PP;Rt.createFactory=function(e){var t=PP.bind(null,e);return t.type=e,t};Rt.createRef=function(){return{current:null}};Rt.forwardRef=function(e){return{$$typeof:Xz,render:e}};Rt.isValidElement=Nb;Rt.lazy=function(e){return{$$typeof:tW,_ctor:e,_status:-1,_result:null}};Rt.memo=function(e,t){return{$$typeof:eW,type:e,compare:t===void 0?null:t}};Rt.useCallback=function(e,t){return Ao().useCallback(e,t)};Rt.useContext=function(e,t){return Ao().useContext(e,t)};Rt.useDebugValue=function(){};Rt.useEffect=function(e,t){return Ao().useEffect(e,t)};Rt.useImperativeHandle=function(e,t,n){return Ao().useImperativeHandle(e,t,n)};Rt.useLayoutEffect=function(e,t){return Ao().useLayoutEffect(e,t)};Rt.useMemo=function(e,t){return Ao().useMemo(e,t)};Rt.useReducer=function(e,t,n){return Ao().useReducer(e,t,n)};Rt.useRef=function(e){return Ao().useRef(e)};Rt.useState=function(e){return Ao().useState(e)};Rt.version="16.14.0";var Pt={},sW="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",uW=sW,lW=Function.call.bind(Object.prototype.hasOwnProperty),Xy=function(){};if(process.env.NODE_ENV!=="production"){var cW=uW,Qy={},dW=lW;Xy=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}}}function FP(e,t,n,r,i){if(process.env.NODE_ENV!=="production"){for(var o in e)if(dW(e,o)){var a;try{if(typeof e[o]!="function"){var u=Error((r||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}a=e[o](t,o,r,n,null,cW)}catch(d){a=d}if(a&&!(a instanceof Error)&&Xy((r||"React class")+": type specification of "+n+" `"+o+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof a+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),a instanceof Error&&!(a.message in Qy)){Qy[a.message]=!0;var c=i?i():"";Xy("Failed "+n+" type: "+a.message+(c??""))}}}}FP.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(Qy={})};var fW=FP;/** @license React v16.14.0
|
|
126
|
+
* react.development.js
|
|
127
|
+
*
|
|
128
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
129
|
+
*
|
|
130
|
+
* This source code is licensed under the MIT license found in the
|
|
131
|
+
* LICENSE file in the root directory of this source tree.
|
|
132
|
+
*/process.env.NODE_ENV!=="production"&&function(){var e=DP,t=fW,n="16.14.0",r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,u=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,d=r?Symbol.for("react.provider"):60109,f=r?Symbol.for("react.context"):60110,h=r?Symbol.for("react.concurrent_mode"):60111,m=r?Symbol.for("react.forward_ref"):60112,g=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.suspense_list"):60120,$=r?Symbol.for("react.memo"):60115,C=r?Symbol.for("react.lazy"):60116,x=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,D=r?Symbol.for("react.responder"):60118,P=r?Symbol.for("react.scope"):60119,E=typeof Symbol=="function"&&Symbol.iterator,T="@@iterator";function k(B){if(B===null||typeof B!="object")return null;var X=E&&B[E]||B[T];return typeof X=="function"?X:null}var S={current:null},U={suspense:null},O={current:null},F=/^(.*)[\\\/]/;function G(B,X,ue){var be="";if(X){var _e=X.fileName,it=_e.replace(F,"");if(/^index\./.test(it)){var Ke=_e.match(F);if(Ke){var ze=Ke[1];if(ze){var Ot=ze.replace(F,"");it=Ot+"/"+it}}}be=" (at "+it+":"+X.lineNumber+")"}else ue&&(be=" (created by "+ue+")");return`
|
|
133
|
+
in `+(B||"Unknown")+be}var K=1;function W(B){return B._status===K?B._result:null}function j(B,X,ue){var be=X.displayName||X.name||"";return B.displayName||(be!==""?ue+"("+be+")":ue)}function V(B){if(B==null)return null;if(typeof B.tag=="number"&&oe("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof B=="function")return B.displayName||B.name||null;if(typeof B=="string")return B;switch(B){case a:return"Fragment";case o:return"Portal";case c:return"Profiler";case u:return"StrictMode";case g:return"Suspense";case v:return"SuspenseList"}if(typeof B=="object")switch(B.$$typeof){case f:return"Context.Consumer";case d:return"Context.Provider";case m:return j(B,B.render,"ForwardRef");case $:return V(B.type);case x:return V(B.render);case C:{var X=B,ue=W(X);if(ue)return V(ue);break}}return null}var R={},M=null;function Y(B){M=B}R.getCurrentStack=null,R.getStackAddendum=function(){var B="";if(M){var X=V(M.type),ue=M._owner;B+=G(X,M._source,ue&&V(ue.type))}var be=R.getCurrentStack;return be&&(B+=be()||""),B};var L={current:!1},z={ReactCurrentDispatcher:S,ReactCurrentBatchConfig:U,ReactCurrentOwner:O,IsSomeRendererActing:L,assign:e};e(z,{ReactDebugCurrentFrame:R,ReactComponentTreeHook:{}});function re(B){{for(var X=arguments.length,ue=new Array(X>1?X-1:0),be=1;be<X;be++)ue[be-1]=arguments[be];fe("warn",B,ue)}}function oe(B){{for(var X=arguments.length,ue=new Array(X>1?X-1:0),be=1;be<X;be++)ue[be-1]=arguments[be];fe("error",B,ue)}}function fe(B,X,ue){{var be=ue.length>0&&typeof ue[ue.length-1]=="string"&&ue[ue.length-1].indexOf(`
|
|
134
|
+
in`)===0;if(!be){var _e=z.ReactDebugCurrentFrame,it=_e.getStackAddendum();it!==""&&(X+="%s",ue=ue.concat([it]))}var Ke=ue.map(function(Wt){return""+Wt});Ke.unshift("Warning: "+X),Function.prototype.apply.call(console[B],console,Ke);try{var ze=0,Ot="Warning: "+X.replace(/%s/g,function(){return ue[ze++]});throw new Error(Ot)}catch{}}}var ie={};function Ee(B,X){{var ue=B.constructor,be=ue&&(ue.displayName||ue.name)||"ReactClass",_e=be+"."+X;if(ie[_e])return;oe("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",X,be),ie[_e]=!0}}var $e={isMounted:function(B){return!1},enqueueForceUpdate:function(B,X,ue){Ee(B,"forceUpdate")},enqueueReplaceState:function(B,X,ue,be){Ee(B,"replaceState")},enqueueSetState:function(B,X,ue,be){Ee(B,"setState")}},ne={};Object.freeze(ne);function ye(B,X,ue){this.props=B,this.context=X,this.refs=ne,this.updater=ue||$e}ye.prototype.isReactComponent={},ye.prototype.setState=function(B,X){if(!(typeof B=="object"||typeof B=="function"||B==null))throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,B,X,"setState")},ye.prototype.forceUpdate=function(B){this.updater.enqueueForceUpdate(this,B,"forceUpdate")};{var xe={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},he=function(B,X){Object.defineProperty(ye.prototype,B,{get:function(){re("%s(...) is deprecated in plain JavaScript React classes. %s",X[0],X[1])}})};for(var le in xe)xe.hasOwnProperty(le)&&he(le,xe[le])}function Fe(){}Fe.prototype=ye.prototype;function et(B,X,ue){this.props=B,this.context=X,this.refs=ne,this.updater=ue||$e}var dt=et.prototype=new Fe;dt.constructor=et,e(dt,ye.prototype),dt.isPureReactComponent=!0;function Dn(){var B={current:null};return Object.seal(B),B}var yt=Object.prototype.hasOwnProperty,q={key:!0,ref:!0,__self:!0,__source:!0},Z,te,pe;pe={};function Ce(B){if(yt.call(B,"ref")){var X=Object.getOwnPropertyDescriptor(B,"ref").get;if(X&&X.isReactWarning)return!1}return B.ref!==void 0}function De(B){if(yt.call(B,"key")){var X=Object.getOwnPropertyDescriptor(B,"key").get;if(X&&X.isReactWarning)return!1}return B.key!==void 0}function Re(B,X){var ue=function(){Z||(Z=!0,oe("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",X))};ue.isReactWarning=!0,Object.defineProperty(B,"key",{get:ue,configurable:!0})}function Le(B,X){var ue=function(){te||(te=!0,oe("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",X))};ue.isReactWarning=!0,Object.defineProperty(B,"ref",{get:ue,configurable:!0})}function mt(B){if(typeof B.ref=="string"&&O.current&&B.__self&&O.current.stateNode!==B.__self){var X=V(O.current.type);pe[X]||(oe('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref',V(O.current.type),B.ref),pe[X]=!0)}}var ut=function(B,X,ue,be,_e,it,Ke){var ze={$$typeof:i,type:B,key:X,ref:ue,props:Ke,_owner:it};return ze._store={},Object.defineProperty(ze._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ze,"_self",{configurable:!1,enumerable:!1,writable:!1,value:be}),Object.defineProperty(ze,"_source",{configurable:!1,enumerable:!1,writable:!1,value:_e}),Object.freeze&&(Object.freeze(ze.props),Object.freeze(ze)),ze};function _t(B,X,ue){var be,_e={},it=null,Ke=null,ze=null,Ot=null;if(X!=null){Ce(X)&&(Ke=X.ref,mt(X)),De(X)&&(it=""+X.key),ze=X.__self===void 0?null:X.__self,Ot=X.__source===void 0?null:X.__source;for(be in X)yt.call(X,be)&&!q.hasOwnProperty(be)&&(_e[be]=X[be])}var Wt=arguments.length-2;if(Wt===1)_e.children=ue;else if(Wt>1){for(var Mn=Array(Wt),Fn=0;Fn<Wt;Fn++)Mn[Fn]=arguments[Fn+2];Object.freeze&&Object.freeze(Mn),_e.children=Mn}if(B&&B.defaultProps){var Lr=B.defaultProps;for(be in Lr)_e[be]===void 0&&(_e[be]=Lr[be])}if(it||Ke){var rr=typeof B=="function"?B.displayName||B.name||"Unknown":B;it&&Re(_e,rr),Ke&&Le(_e,rr)}return ut(B,it,Ke,ze,Ot,O.current,_e)}function Pn(B,X){var ue=ut(B.type,X,B.ref,B._self,B._source,B._owner,B.props);return ue}function Rn(B,X,ue){if(B==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+B+".");var be,_e=e({},B.props),it=B.key,Ke=B.ref,ze=B._self,Ot=B._source,Wt=B._owner;if(X!=null){Ce(X)&&(Ke=X.ref,Wt=O.current),De(X)&&(it=""+X.key);var Mn;B.type&&B.type.defaultProps&&(Mn=B.type.defaultProps);for(be in X)yt.call(X,be)&&!q.hasOwnProperty(be)&&(X[be]===void 0&&Mn!==void 0?_e[be]=Mn[be]:_e[be]=X[be])}var Fn=arguments.length-2;if(Fn===1)_e.children=ue;else if(Fn>1){for(var Lr=Array(Fn),rr=0;rr<Fn;rr++)Lr[rr]=arguments[rr+2];_e.children=Lr}return ut(B.type,it,Ke,ze,Ot,Wt,_e)}function Yt(B){return typeof B=="object"&&B!==null&&B.$$typeof===i}var Vn=".",tn=":";function vt(B){var X=/[=:]/g,ue={"=":"=0",":":"=2"},be=(""+B).replace(X,function(_e){return ue[_e]});return"$"+be}var Ln=!1,Cr=/\/+/g;function _n(B){return(""+B).replace(Cr,"$&/")}var er=10,On=[];function tr(B,X,ue,be){if(On.length){var _e=On.pop();return _e.result=B,_e.keyPrefix=X,_e.func=ue,_e.context=be,_e.count=0,_e}else return{result:B,keyPrefix:X,func:ue,context:be,count:0}}function Nn(B){B.result=null,B.keyPrefix=null,B.func=null,B.context=null,B.count=0,On.length<er&&On.push(B)}function En(B,X,ue,be){var _e=typeof B;(_e==="undefined"||_e==="boolean")&&(B=null);var it=!1;if(B===null)it=!0;else switch(_e){case"string":case"number":it=!0;break;case"object":switch(B.$$typeof){case i:case o:it=!0}}if(it)return ue(be,B,X===""?Vn+Lt(B,0):X),1;var Ke,ze,Ot=0,Wt=X===""?Vn:X+tn;if(Array.isArray(B))for(var Mn=0;Mn<B.length;Mn++)Ke=B[Mn],ze=Wt+Lt(Ke,Mn),Ot+=En(Ke,ze,ue,be);else{var Fn=k(B);if(typeof Fn=="function"){Fn===B.entries&&(Ln||re("Using Maps as children is deprecated and will be removed in a future major release. Consider converting children to an array of keyed ReactElements instead."),Ln=!0);for(var Lr=Fn.call(B),rr,Cs=0;!(rr=Lr.next()).done;)Ke=rr.value,ze=Wt+Lt(Ke,Cs++),Ot+=En(Ke,ze,ue,be)}else if(_e==="object"){var xa="";xa=" If you meant to render a collection of children, use an array instead."+R.getStackAddendum();var wa=""+B;throw Error("Objects are not valid as a React child (found: "+(wa==="[object Object]"?"object with keys {"+Object.keys(B).join(", ")+"}":wa)+")."+xa)}}return Ot}function Ir(B,X,ue){return B==null?0:En(B,"",X,ue)}function Lt(B,X){return typeof B=="object"&&B!==null&&B.key!=null?vt(B.key):X.toString(36)}function Cn(B,X,ue){var be=B.func,_e=B.context;be.call(_e,X,B.count++)}function Ne(B,X,ue){if(B==null)return B;var be=tr(null,null,X,ue);Ir(B,Cn,be),Nn(be)}function tt(B,X,ue){var be=B.result,_e=B.keyPrefix,it=B.func,Ke=B.context,ze=it.call(Ke,X,B.count++);Array.isArray(ze)?nn(ze,be,ue,function(Ot){return Ot}):ze!=null&&(Yt(ze)&&(ze=Pn(ze,_e+(ze.key&&(!X||X.key!==ze.key)?_n(ze.key)+"/":"")+ue)),be.push(ze))}function nn(B,X,ue,be,_e){var it="";ue!=null&&(it=_n(ue)+"/");var Ke=tr(X,it,be,_e);Ir(B,tt,Ke),Nn(Ke)}function fr(B,X,ue){if(B==null)return B;var be=[];return nn(B,be,null,X,ue),be}function Te(B){return Ir(B,function(){return null},null)}function je(B){var X=[];return nn(B,X,null,function(ue){return ue}),X}function Ye(B){if(!Yt(B))throw Error("React.Children.only expected to receive a single React element child.");return B}function Ft(B,X){X===void 0?X=null:X!==null&&typeof X!="function"&&oe("createContext: Expected the optional second argument to be a function. Instead received: %s",X);var ue={$$typeof:f,_calculateChangedBits:X,_currentValue:B,_currentValue2:B,_threadCount:0,Provider:null,Consumer:null};ue.Provider={$$typeof:d,_context:ue};var be=!1,_e=!1;{var it={$$typeof:f,_context:ue,_calculateChangedBits:ue._calculateChangedBits};Object.defineProperties(it,{Provider:{get:function(){return _e||(_e=!0,oe("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),ue.Provider},set:function(Ke){ue.Provider=Ke}},_currentValue:{get:function(){return ue._currentValue},set:function(Ke){ue._currentValue=Ke}},_currentValue2:{get:function(){return ue._currentValue2},set:function(Ke){ue._currentValue2=Ke}},_threadCount:{get:function(){return ue._threadCount},set:function(Ke){ue._threadCount=Ke}},Consumer:{get:function(){return be||(be=!0,oe("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),ue.Consumer}}}),ue.Consumer=it}return ue._currentRenderer=null,ue._currentRenderer2=null,ue}function rn(B){var X={$$typeof:C,_ctor:B,_status:-1,_result:null};{var ue,be;Object.defineProperties(X,{defaultProps:{configurable:!0,get:function(){return ue},set:function(_e){oe("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),ue=_e,Object.defineProperty(X,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return be},set:function(_e){oe("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),be=_e,Object.defineProperty(X,"propTypes",{enumerable:!0})}}})}return X}function jn(B){return B!=null&&B.$$typeof===$?oe("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof B!="function"?oe("forwardRef requires a render function but was given %s.",B===null?"null":typeof B):B.length!==0&&B.length!==2&&oe("forwardRef render functions accept exactly two parameters: props and ref. %s",B.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),B!=null&&(B.defaultProps!=null||B.propTypes!=null)&&oe("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:m,render:B}}function Kt(B){return typeof B=="string"||typeof B=="function"||B===a||B===h||B===c||B===u||B===g||B===v||typeof B=="object"&&B!==null&&(B.$$typeof===C||B.$$typeof===$||B.$$typeof===d||B.$$typeof===f||B.$$typeof===m||B.$$typeof===y||B.$$typeof===D||B.$$typeof===P||B.$$typeof===x)}function an(B,X){return Kt(B)||oe("memo: The first argument must be a component. Instead received: %s",B===null?"null":typeof B),{$$typeof:$,type:B,compare:X===void 0?null:X}}function kt(){var B=S.current;if(B===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
135
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
136
|
+
2. You might be breaking the Rules of Hooks
|
|
137
|
+
3. You might have more than one copy of React in the same app
|
|
138
|
+
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.`);return B}function wt(B,X){var ue=kt();if(X!==void 0&&oe("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",X,typeof X=="number"&&Array.isArray(arguments[2])?`
|
|
139
|
+
|
|
140
|
+
Did you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks`:""),B._context!==void 0){var be=B._context;be.Consumer===B?oe("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):be.Provider===B&&oe("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return ue.useContext(B,X)}function li(B){var X=kt();return X.useState(B)}function ya(B,X,ue){var be=kt();return be.useReducer(B,X,ue)}function hr(B){var X=kt();return X.useRef(B)}function Po(B,X){var ue=kt();return ue.useEffect(B,X)}function Ro(B,X){var ue=kt();return ue.useLayoutEffect(B,X)}function _o(B,X){var ue=kt();return ue.useCallback(B,X)}function gt(B,X){var ue=kt();return ue.useMemo(B,X)}function nr(B,X,ue){var be=kt();return be.useImperativeHandle(B,X,ue)}function pr(B,X){{var ue=kt();return ue.useDebugValue(B,X)}}var Kn;Kn=!1;function Oo(){if(O.current){var B=V(O.current.type);if(B)return`
|
|
141
|
+
|
|
142
|
+
Check the render method of \``+B+"`."}return""}function Vr(B){if(B!==void 0){var X=B.fileName.replace(/^.*[\\\/]/,""),ue=B.lineNumber;return`
|
|
143
|
+
|
|
144
|
+
Check your code at `+X+":"+ue+"."}return""}function tl(B){return B!=null?Vr(B.__source):""}var vs={};function nl(B){var X=Oo();if(!X){var ue=typeof B=="string"?B:B.displayName||B.name;ue&&(X=`
|
|
145
|
+
|
|
146
|
+
Check the top-level render call using <`+ue+">.")}return X}function Mo(B,X){if(!(!B._store||B._store.validated||B.key!=null)){B._store.validated=!0;var ue=nl(X);if(!vs[ue]){vs[ue]=!0;var be="";B&&B._owner&&B._owner!==O.current&&(be=" It was passed a child from "+V(B._owner.type)+"."),Y(B),oe('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',ue,be),Y(null)}}}function Ai(B,X){if(typeof B=="object"){if(Array.isArray(B))for(var ue=0;ue<B.length;ue++){var be=B[ue];Yt(be)&&Mo(be,X)}else if(Yt(B))B._store&&(B._store.validated=!0);else if(B){var _e=k(B);if(typeof _e=="function"&&_e!==B.entries)for(var it=_e.call(B),Ke;!(Ke=it.next()).done;)Yt(Ke.value)&&Mo(Ke.value,X)}}}function va(B){{var X=B.type;if(X==null||typeof X=="string")return;var ue=V(X),be;if(typeof X=="function")be=X.propTypes;else if(typeof X=="object"&&(X.$$typeof===m||X.$$typeof===$))be=X.propTypes;else return;be?(Y(B),t(be,B.props,"prop",ue,R.getStackAddendum),Y(null)):X.PropTypes!==void 0&&!Kn&&(Kn=!0,oe("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ue||"Unknown")),typeof X.getDefaultProps=="function"&&!X.getDefaultProps.isReactClassApproved&&oe("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ba(B){{Y(B);for(var X=Object.keys(B.props),ue=0;ue<X.length;ue++){var be=X[ue];if(be!=="children"&&be!=="key"){oe("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",be);break}}B.ref!==null&&oe("Invalid attribute `ref` supplied to `React.Fragment`."),Y(null)}}function bs(B,X,ue){var be=Kt(B);if(!be){var _e="";(B===void 0||typeof B=="object"&&B!==null&&Object.keys(B).length===0)&&(_e+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var it=tl(X);it?_e+=it:_e+=Oo();var Ke;B===null?Ke="null":Array.isArray(B)?Ke="array":B!==void 0&&B.$$typeof===i?(Ke="<"+(V(B.type)||"Unknown")+" />",_e=" Did you accidentally export a JSX literal instead of a component?"):Ke=typeof B,oe("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ke,_e)}var ze=_t.apply(this,arguments);if(ze==null)return ze;if(be)for(var Ot=2;Ot<arguments.length;Ot++)Ai(arguments[Ot],B);return B===a?ba(ze):va(ze),ze}var $s=!1;function rl(B){var X=bs.bind(null,B);return X.type=B,$s||($s=!0,re("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(X,"type",{enumerable:!1,get:function(){return re("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:B}),B}}),X}function xs(B,X,ue){for(var be=Rn.apply(this,arguments),_e=2;_e<arguments.length;_e++)Ai(arguments[_e],be.type);return va(be),be}try{var $a=Object.freeze({}),ws=new Map([[$a,null]]),Xi=new Set([$a]);ws.set(0,0),Xi.add(0)}catch{}var il=bs,Ds=xs,Fo=rl,Es={map:fr,forEach:Ne,count:Te,toArray:je,only:Ye};Pt.Children=Es,Pt.Component=ye,Pt.Fragment=a,Pt.Profiler=c,Pt.PureComponent=et,Pt.StrictMode=u,Pt.Suspense=g,Pt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z,Pt.cloneElement=Ds,Pt.createContext=Ft,Pt.createElement=il,Pt.createFactory=Fo,Pt.createRef=Dn,Pt.forwardRef=jn,Pt.isValidElement=Yt,Pt.lazy=rn,Pt.memo=an,Pt.useCallback=_o,Pt.useContext=wt,Pt.useDebugValue=pr,Pt.useEffect=Po,Pt.useImperativeHandle=nr,Pt.useLayoutEffect=Ro,Pt.useMemo=gt,Pt.useReducer=ya,Pt.useRef=hr,Pt.useState=li,Pt.version=n}();process.env.NODE_ENV==="production"?yc.exports=Rt:yc.exports=Pt;var nu=yc.exports,$g={sdkSemver:"1.13.1",techVersion:nu.version,sdkCode:"J"},hW=function(e){xP(t,e);function t(n){var r=e.call(this,n)||this;return r.imageRef=nu.createRef(),r}return t.prototype.componentDidMount=function(){this.htmlLayerInstance=new tU(this.imageRef.current,this.props.cldImg,this.props.plugins,$g)},t.prototype.componentDidUpdate=function(){ph(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,$g)},t.prototype.componentWillUnmount=function(){ph(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},t.prototype.render=function(){var n=this.props;n.cldImg,n.plugins;var r=wP(n,["cldImg","plugins"]);if(kb())return nu.createElement("img",gc({suppressHydrationWarning:!0},r,{ref:this.imageRef}));var i=jz(this.props.plugins,this.props.cldImg,$g);return nu.createElement("img",gc({},r,{src:i}))},t}(nu.Component),pW=["controls","loop","muted","poster","preload","autoplay","playsinline"];(function(e){xP(t,e);function t(n){var r=e.call(this,n)||this;return r.videoRef=yc.exports.createRef(),r.attachRef=r.attachRef.bind(r),r}return t.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new _z(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(){ph(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},t.prototype.componentWillUnmount=function(){ph(this.htmlVideoLayerInstance.htmlPluginState)},t.prototype.getVideoAttributes=function(){var n=this,r={};return pW.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=wP(n,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return nu.createElement("video",gc({},r,{ref:this.attachRef}))},t})(yc.exports.Component);function mW(e){return!(typeof e!="object"||e instanceof Array)}class gW{filterOutNonSupportedKeys(t,n){const r=Object.create({});return mW(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 vx=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class jb extends gW{constructor(t){super();const n=this.filterOutNonSupportedKeys(t,vx);Object.assign(this,{secure:!0},n)}extend(t){const n=this.filterOutNonSupportedKeys(t,vx);return new jb(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 vc{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 yW extends Error{constructor(t="Unsupported"){super(t)}}function Kb(e){return new yW(e)}function vW(){return this._qualifierModel||{error:Kb(`unsupported qualifier ${this.constructor.name}`)}}class bW{constructor(){this._qualifierModel={}}toJson(){return vW.apply(this)}}class fp extends bW{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof vc?this.qualifierValue=n:(this.qualifierValue=new vc,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 oa extends fp{constructor(t,n){let r;n?r=new vc([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function $W(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function xW(){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:Kb(`unsupported action ${this.constructor.name}`)}}class wW{constructor(){this._actionModel={}}toJson(){return xW.apply(this)}}class Ub extends wW{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(),$W(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 oa(r)):this.qualifiers.set(n,new fp(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new oa(t)):t instanceof oa&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}}function DW(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class EW extends Ub{constructor(t){super(),this._actionModel={},this.addQualifier(new fp("b",new vc(DW(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}}class bx{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:Kb(`unsupported action ${this.constructor.name}`)}}}function CW(e){const t=e;return"error"in t&&!!t.error}function SW(){return new oa("lossy")}function TW(){return new oa("preserve_transparency")}function AW(e){return new oa("progressive",e)}class PW extends vc{constructor(t){super(t),this.val=t}getValue(){return this.val}}function ps(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const RW={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},_W={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},OW={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},MW={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},FW={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},kW={444:"CHROMA_444",420:"CHROMA_420"},BW={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"};ps(kW);ps(BW);ps(RW);const IW=ps(_W);ps(OW);ps(MW);ps(FW);class VW extends Ub{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof PW?i=n.getValue():i=n,this._actionModel.actionType=IW[t],this._actionModel[r]=i,this.addQualifier(new fp(t,n))}}class LW extends oa{constructor(t){super("progressive",t)}}class gh extends VW{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(SW()),this}progressive(t){return t instanceof LW?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(AW(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(TW()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:o}=t;let a;return n?a=new this("f",n):a=new this("f"),i&&(i.mode?a.progressive(i.mode):a.progressive()),r&&a.lossy(),o&&a.preserveTransparency(),a}}class hp{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 bx(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof hp?this.actions=this.actions.concat(t.actions):this.actions.push(new bx(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 gh("q",t)),this}format(t){return this.addAction(new gh("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 EW(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new Ub;let r=t;return typeof t=="string"&&(r=new oa(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(CW(r))return r;t.push(r)}return{actions:t}}}class NW extends hp{}class jW extends hp{}function KW(e){return e.match(/^https?:\//)}function UW(e){return e.indexOf("/")<0}function zW(e){return e.match(/^v[0-9]+/)}function WW(e,t){const n=t.secure,r=t.privateCdn,i=t.cname,o=t.secureDistribution;return!n&&!i?`http://res.cloudinary.com/${e}`:n&&!o&&r?`https://${e}-res.cloudinary.com`:n&&!o?`https://res.cloudinary.com/${e}`:n&&o&&r?`https://${o}`:n&&o?`https://${o}/${e}`:!n&&i?`http://${i}/${e}`:"ERROR"}function HW(e){return e||"image"}function GW(e){return e||"upload"}function qW(e,t,n){const r=n!==!1;return t?`v${t}`:zW(e)||KW(e)||UW(e)?"":r?"v1":""}function zb(e,t,n){let r=t>>0,i=String(n);return e.length>r?String(e):(r=r-e.length,r>i.length&&(i+=YW(i,r/i.length)),i.slice(0,r)+String(e))}function YW(e,t){let n=t,r="";for(;n>0;)r+=e,n--;return r}const ZW="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yh={};let $x=0;ZW.split("").forEach(e=>{let t=$x.toString(2);t=zb(t,6,"0"),yh[t]=e,$x++});function JW(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").reverse().join(".")}function XW(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 zb(t,2,"0")}).join(".")}function xx(e){let t="";const r=e.split(".").length*6,i=JW(e),o=XW(i);let u=parseInt(o.split(".").join("")).toString(2);if(u=zb(u,r,"0"),u.length%6!==0)throw"Version must be smaller than 43.21.26)";return u.match(/.{1,6}/g).forEach(c=>{t+=yh[c]}),t}function QW(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 eH="1.21.0";function tH(e){const[t,n]=e.split("."),r=parseInt(t).toString(2),i=parseInt(n).toString(2),o=r.padStart(6,"0"),a=i.padStart(6,"0");return yh[o]+yh[a]}function nH(){const e="0.0.0";if(typeof window<"u")return e;try{return process.versions.node||e}catch{return e}}function rH(e){const t={techVersion:nH(),sdkCode:"T",sdkSemver:eH.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 wx(e){const t=rH(e),n=QW(t);try{const r=iH(n.techVersion),i=xx(n.sdkSemver),o=xx(r),a=tH(n.osVersion),u=n.feature,c=n.sdkCode,{product:d,osType:f}=n;return`D${d}${c}${i}${o}${f}${a}${u}`}catch{return"E"}}function iH(e){const t=e.split(".");return`${t[0]}.${t[1]}`}const Dx={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class oH{constructor(t,n={},r){this.setPublicID(t),this.setCloudConfig(n),this.setURLConfig(r)}setURLConfig(t){return this.urlConfig=new jb(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=HW(this.assetType),n=GW(this.deliveryType),r=!!this.suffix,i=`${t}/${n}`,o=Dx[`${t}/${n}`],a=this.urlConfig.useRootPath,u=this.urlConfig.shorten;if(a){if(i==="image/upload")return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${i} instead`)}if(u&&i==="image/upload")return"iu";if(r){if(o)return o;throw new Error(`URL Suffix only supported for ${Object.keys(Dx).join(", ")}, Provided: ${i} instead`)}return i}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(t,n){if(!this.publicID)return"";this.validateAssetForURLCreation();const r=WW(this.cloudName,this.urlConfig),i=t?t.toString():"",o=qW(this.publicID,this.version,this.urlConfig.forceVersion),a=this.publicID;if(typeof t=="string")return[r,this.getResourceType(),this.getSignature(),i,o,a.replace(/,/g,"%2C"),this.suffix].filter(c=>c).join("/");{const u=[encodeURI(r),this.getResourceType(),this.getSignature(),encodeURI(i),o,encodeURI(a).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(f=>f).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),c=this.urlConfig.analytics!==!1&&!a.includes("?");let d="";if(typeof this.urlConfig.queryParams=="object")try{const f=new URLSearchParams(this.urlConfig.queryParams);c&&f.set("_a",wx(n)),d=f.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||"",c&&(d+=`${d.length>0?"&":""}_a=${wx(n)}`);return d?`${u}?${d}`:u}}}class kP extends oH{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 gh("q",t)),this}format(t){return this.addAction(new gh("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 aH extends kP{constructor(t,n,r){super(t,n,r,new NW)}}class sH extends kP{constructor(t,n,r){super(t,n,r,new jW),this.assetType="video"}transcode(t){return this.transformation.transcode(t),this}videoEdit(t){return this.transformation.videoEdit(t),this}}class uH{constructor(t){t&&(this.cloudinaryConfig=t)}image(t){return new aH(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(t){return new sH(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(t){return this.cloudinaryConfig=t,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}var xg={exports:{}},Ex;function lH(){return Ex||(Ex=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
147
|
+
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
148
|
+
*
|
|
149
|
+
* @license MIT <https://opensource.org/licenses/MIT>
|
|
150
|
+
* @author Lea Verou <https://lea.verou.me>
|
|
151
|
+
* @namespace
|
|
152
|
+
* @public
|
|
153
|
+
*/var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,a={},u={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function y(D){return D instanceof c?new c(D.type,y(D.content),D.alias):Array.isArray(D)?D.map(y):D.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(y){return Object.prototype.toString.call(y).slice(8,-1)},objId:function(y){return y.__id||Object.defineProperty(y,"__id",{value:++o}),y.__id},clone:function y(D,P){P=P||{};var E,T;switch(u.util.type(D)){case"Object":if(T=u.util.objId(D),P[T])return P[T];E={},P[T]=E;for(var k in D)D.hasOwnProperty(k)&&(E[k]=y(D[k],P));return E;case"Array":return T=u.util.objId(D),P[T]?P[T]:(E=[],P[T]=E,D.forEach(function(S,U){E[U]=y(S,P)}),E);default:return D}},getLanguage:function(y){for(;y;){var D=i.exec(y.className);if(D)return D[1].toLowerCase();y=y.parentElement}return"none"},setLanguage:function(y,D){y.className=y.className.replace(RegExp(i,"gi"),""),y.classList.add("language-"+D)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(E){var y=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(E.stack)||[])[1];if(y){var D=document.getElementsByTagName("script");for(var P in D)if(D[P].src==y)return D[P]}return null}},isActive:function(y,D,P){for(var E="no-"+D;y;){var T=y.classList;if(T.contains(D))return!0;if(T.contains(E))return!1;y=y.parentElement}return!!P}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(y,D){var P=u.util.clone(u.languages[y]);for(var E in D)P[E]=D[E];return P},insertBefore:function(y,D,P,E){E=E||u.languages;var T=E[y],k={};for(var S in T)if(T.hasOwnProperty(S)){if(S==D)for(var U in P)P.hasOwnProperty(U)&&(k[U]=P[U]);P.hasOwnProperty(S)||(k[S]=T[S])}var O=E[y];return E[y]=k,u.languages.DFS(u.languages,function(F,G){G===O&&F!=y&&(this[F]=k)}),k},DFS:function y(D,P,E,T){T=T||{};var k=u.util.objId;for(var S in D)if(D.hasOwnProperty(S)){P.call(D,S,D[S],E||S);var U=D[S],O=u.util.type(U);O==="Object"&&!T[k(U)]?(T[k(U)]=!0,y(U,P,null,T)):O==="Array"&&!T[k(U)]&&(T[k(U)]=!0,y(U,P,S,T))}}},plugins:{},highlightAll:function(y,D){u.highlightAllUnder(document,y,D)},highlightAllUnder:function(y,D,P){var E={callback:P,container:y,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};u.hooks.run("before-highlightall",E),E.elements=Array.prototype.slice.apply(E.container.querySelectorAll(E.selector)),u.hooks.run("before-all-elements-highlight",E);for(var T=0,k;k=E.elements[T++];)u.highlightElement(k,D===!0,E.callback)},highlightElement:function(y,D,P){var E=u.util.getLanguage(y),T=u.languages[E];u.util.setLanguage(y,E);var k=y.parentElement;k&&k.nodeName.toLowerCase()==="pre"&&u.util.setLanguage(k,E);var S=y.textContent,U={element:y,language:E,grammar:T,code:S};function O(G){U.highlightedCode=G,u.hooks.run("before-insert",U),U.element.innerHTML=U.highlightedCode,u.hooks.run("after-highlight",U),u.hooks.run("complete",U),P&&P.call(U.element)}if(u.hooks.run("before-sanity-check",U),k=U.element.parentElement,k&&k.nodeName.toLowerCase()==="pre"&&!k.hasAttribute("tabindex")&&k.setAttribute("tabindex","0"),!U.code){u.hooks.run("complete",U),P&&P.call(U.element);return}if(u.hooks.run("before-highlight",U),!U.grammar){O(u.util.encode(U.code));return}if(D&&r.Worker){var F=new Worker(u.filename);F.onmessage=function(G){O(G.data)},F.postMessage(JSON.stringify({language:U.language,code:U.code,immediateClose:!0}))}else O(u.highlight(U.code,U.grammar,U.language))},highlight:function(y,D,P){var E={code:y,grammar:D,language:P};if(u.hooks.run("before-tokenize",E),!E.grammar)throw new Error('The language "'+E.language+'" has no grammar.');return E.tokens=u.tokenize(E.code,E.grammar),u.hooks.run("after-tokenize",E),c.stringify(u.util.encode(E.tokens),E.language)},tokenize:function(y,D){var P=D.rest;if(P){for(var E in P)D[E]=P[E];delete D.rest}var T=new h;return m(T,T.head,y),f(y,T,D,T.head,0),v(T)},hooks:{all:{},add:function(y,D){var P=u.hooks.all;P[y]=P[y]||[],P[y].push(D)},run:function(y,D){var P=u.hooks.all[y];if(!(!P||!P.length))for(var E=0,T;T=P[E++];)T(D)}},Token:c};r.Prism=u;function c(y,D,P,E){this.type=y,this.content=D,this.alias=P,this.length=(E||"").length|0}c.stringify=function y(D,P){if(typeof D=="string")return D;if(Array.isArray(D)){var E="";return D.forEach(function(O){E+=y(O,P)}),E}var T={type:D.type,content:y(D.content,P),tag:"span",classes:["token",D.type],attributes:{},language:P},k=D.alias;k&&(Array.isArray(k)?Array.prototype.push.apply(T.classes,k):T.classes.push(k)),u.hooks.run("wrap",T);var S="";for(var U in T.attributes)S+=" "+U+'="'+(T.attributes[U]||"").replace(/"/g,""")+'"';return"<"+T.tag+' class="'+T.classes.join(" ")+'"'+S+">"+T.content+"</"+T.tag+">"};function d(y,D,P,E){y.lastIndex=D;var T=y.exec(P);if(T&&E&&T[1]){var k=T[1].length;T.index+=k,T[0]=T[0].slice(k)}return T}function f(y,D,P,E,T,k){for(var S in P)if(!(!P.hasOwnProperty(S)||!P[S])){var U=P[S];U=Array.isArray(U)?U:[U];for(var O=0;O<U.length;++O){if(k&&k.cause==S+","+O)return;var F=U[O],G=F.inside,K=!!F.lookbehind,W=!!F.greedy,j=F.alias;if(W&&!F.pattern.global){var V=F.pattern.toString().match(/[imsuy]*$/)[0];F.pattern=RegExp(F.pattern.source,V+"g")}for(var R=F.pattern||F,M=E.next,Y=T;M!==D.tail&&!(k&&Y>=k.reach);Y+=M.value.length,M=M.next){var L=M.value;if(D.length>y.length)return;if(!(L instanceof c)){var z=1,re;if(W){if(re=d(R,Y,y,K),!re||re.index>=y.length)break;var Ee=re.index,oe=re.index+re[0].length,fe=Y;for(fe+=M.value.length;Ee>=fe;)M=M.next,fe+=M.value.length;if(fe-=M.value.length,Y=fe,M.value instanceof c)continue;for(var ie=M;ie!==D.tail&&(fe<oe||typeof ie.value=="string");ie=ie.next)z++,fe+=ie.value.length;z--,L=y.slice(Y,fe),re.index-=Y}else if(re=d(R,0,L,K),!re)continue;var Ee=re.index,$e=re[0],ne=L.slice(0,Ee),ye=L.slice(Ee+$e.length),xe=Y+L.length;k&&xe>k.reach&&(k.reach=xe);var he=M.prev;ne&&(he=m(D,he,ne),Y+=ne.length),g(D,he,z);var le=new c(S,G?u.tokenize($e,G):$e,j,$e);if(M=m(D,he,le),ye&&m(D,M,ye),z>1){var Fe={cause:S+","+O,reach:xe};f(y,D,P,M.prev,Y,Fe),k&&Fe.reach>k.reach&&(k.reach=Fe.reach)}}}}}}function h(){var y={value:null,prev:null,next:null},D={value:null,prev:y,next:null};y.next=D,this.head=y,this.tail=D,this.length=0}function m(y,D,P){var E=D.next,T={value:P,prev:D,next:E};return D.next=T,E.prev=T,y.length++,T}function g(y,D,P){for(var E=D.next,T=0;T<P&&E!==y.tail;T++)E=E.next;D.next=E,E.prev=D,y.length-=T}function v(y){for(var D=[],P=y.head.next;P!==y.tail;)D.push(P.value),P=P.next;return D}if(!r.document)return r.addEventListener&&(u.disableWorkerMessageHandler||r.addEventListener("message",function(y){var D=JSON.parse(y.data),P=D.language,E=D.code,T=D.immediateClose;r.postMessage(u.highlight(E,u.languages[P],P)),T&&r.close()},!1)),u;var $=u.util.currentScript();$&&(u.filename=$.src,$.hasAttribute("data-manual")&&(u.manual=!0));function C(){u.manual||u.highlightAll()}if(!u.manual){var x=document.readyState;x==="loading"||x==="interactive"&&$&&$.defer?document.addEventListener("DOMContentLoaded",C):window.requestAnimationFrame?window.requestAnimationFrame(C):window.setTimeout(C,16)}return u}(t);e.exports&&(e.exports=n),typeof Js<"u"&&(Js.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(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,o){var a={};a["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[o]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var u={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};u["language-"+o]={pattern:/[\s\S]+/,inside:n.languages[o]};var c={};c[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:u},n.languages.insertBefore("markup","cdata",c)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var o=r.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading…",i=function($,C){return"✖ Error "+$+" while fetching file: "+C},o="✖ Error: File does not exist or is empty",a={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},u="data-src-status",c="loading",d="loaded",f="failed",h="pre[data-src]:not(["+u+'="'+d+'"]):not(['+u+'="'+c+'"])';function m($,C,x){var y=new XMLHttpRequest;y.open("GET",$,!0),y.onreadystatechange=function(){y.readyState==4&&(y.status<400&&y.responseText?C(y.responseText):y.status>=400?x(i(y.status,y.statusText)):x(o))},y.send(null)}function g($){var C=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec($||"");if(C){var x=Number(C[1]),y=C[2],D=C[3];return y?D?[x,Number(D)]:[x,void 0]:[x,x]}}n.hooks.add("before-highlightall",function($){$.selector+=", "+h}),n.hooks.add("before-sanity-check",function($){var C=$.element;if(C.matches(h)){$.code="",C.setAttribute(u,c);var x=C.appendChild(document.createElement("CODE"));x.textContent=r;var y=C.getAttribute("data-src"),D=$.language;if(D==="none"){var P=(/\.(\w+)$/.exec(y)||[,"none"])[1];D=a[P]||P}n.util.setLanguage(x,D),n.util.setLanguage(C,D);var E=n.plugins.autoloader;E&&E.loadLanguages(D),m(y,function(T){C.setAttribute(u,d);var k=g(C.getAttribute("data-range"));if(k){var S=T.split(/\r\n?|\n/g),U=k[0],O=k[1]==null?S.length:k[1];U<0&&(U+=S.length),U=Math.max(0,Math.min(U-1,S.length)),O<0&&(O+=S.length),O=Math.max(0,Math.min(O,S.length)),T=S.slice(U,O).join(`
|
|
154
|
+
`),C.hasAttribute("data-start")||C.setAttribute("data-start",String(U+1))}x.textContent=T,n.highlightElement(x)},function(T){C.setAttribute(u,f),x.textContent=T})}}),n.plugins.fileHighlight={highlight:function(C){for(var x=(C||document).querySelectorAll(h),y=0,D;D=x[y++];)n.highlightElement(D)}};var v=!1;n.fileHighlight=function(){v||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),v=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()}(xg)),xg.exports}var cH=lH();(function(){if(typeof Prism>"u"||typeof document>"u"||!document.querySelector)return;var e="line-numbers",t="linkable-line-numbers",n=/\n(?!$)/g;function r(m,g){return Array.prototype.slice.call((g||document).querySelectorAll(m))}function i(m,g){return m.classList.contains(g)}function o(m){m()}var a=function(){var m;return function(){if(typeof m>"u"){var g=document.createElement("div");g.style.fontSize="13px",g.style.lineHeight="1.5",g.style.padding="0",g.style.border="0",g.innerHTML=" <br /> ",document.body.appendChild(g),m=g.offsetHeight===38,document.body.removeChild(g)}return m}}();function u(m,g){var v=getComputedStyle(m),$=getComputedStyle(g);function C(x){return+x.substr(0,x.length-2)}return g.offsetTop+C($.borderTopWidth)+C($.paddingTop)-C(v.paddingTop)}function c(m){return!m||!/pre/i.test(m.nodeName)?!1:!!(m.hasAttribute("data-line")||m.id&&Prism.util.isActive(m,t))}var d=!0;Prism.plugins.lineHighlight={highlightLines:function(g,v,$){v=typeof v=="string"?v:g.getAttribute("data-line")||"";var C=v.replace(/\s+/g,"").split(",").filter(Boolean),x=+g.getAttribute("data-line-offset")||0,y=a()?parseInt:parseFloat,D=y(getComputedStyle(g).lineHeight),P=Prism.util.isActive(g,e),E=g.querySelector("code"),T=P?g:E||g,k=[],S=E.textContent.match(n),U=S?S.length+1:1,O=!E||T==E?0:u(g,E);C.forEach(function(K){var W=K.split("-"),j=+W[0],V=+W[1]||j;if(V=Math.min(U+x,V),!(V<j)){var R=g.querySelector('.line-highlight[data-range="'+K+'"]')||document.createElement("div");if(k.push(function(){R.setAttribute("aria-hidden","true"),R.setAttribute("data-range",K),R.className=($||"")+" line-highlight"}),P&&Prism.plugins.lineNumbers){var M=Prism.plugins.lineNumbers.getLine(g,j),Y=Prism.plugins.lineNumbers.getLine(g,V);if(M){var L=M.offsetTop+O+"px";k.push(function(){R.style.top=L})}if(Y){var z=Y.offsetTop-M.offsetTop+Y.offsetHeight+"px";k.push(function(){R.style.height=z})}}else k.push(function(){R.setAttribute("data-start",String(j)),V>j&&R.setAttribute("data-end",String(V)),R.style.top=(j-x-1)*D+O+"px",R.textContent=new Array(V-j+2).join(`
|
|
155
|
+
`)});k.push(function(){R.style.width=g.scrollWidth+"px"}),k.push(function(){T.appendChild(R)})}});var F=g.id;if(P&&Prism.util.isActive(g,t)&&F){i(g,t)||k.push(function(){g.classList.add(t)});var G=parseInt(g.getAttribute("data-start")||"1");r(".line-numbers-rows > span",g).forEach(function(K,W){var j=W+G;K.onclick=function(){var V=F+"."+j;d=!1,location.hash=V,setTimeout(function(){d=!0},1)}})}return function(){k.forEach(o)}}};function f(){var m=location.hash.slice(1);r(".temporary.line-highlight").forEach(function(x){x.parentNode.removeChild(x)});var g=(m.match(/\.([\d,-]+)$/)||[,""])[1];if(!(!g||document.getElementById(m))){var v=m.slice(0,m.lastIndexOf(".")),$=document.getElementById(v);if($){$.hasAttribute("data-line")||$.setAttribute("data-line","");var C=Prism.plugins.lineHighlight.highlightLines($,g,"temporary ");C(),d&&document.querySelector(".temporary.line-highlight").scrollIntoView()}}}var h=0;Prism.hooks.add("before-sanity-check",function(m){var g=m.element.parentElement;if(c(g)){var v=0;r(".line-highlight",g).forEach(function($){v+=$.textContent.length,$.parentNode.removeChild($)}),v&&/^(?: \n)+$/.test(m.code.slice(-v))&&(m.code=m.code.slice(0,-v))}}),Prism.hooks.add("complete",function m(g){var v=g.element.parentElement;if(c(v)){clearTimeout(h);var $=Prism.plugins.lineNumbers,C=g.plugins&&g.plugins.lineNumbers;if(i(v,e)&&$&&!C)Prism.hooks.add("line-numbers",m);else{var x=Prism.plugins.lineHighlight.highlightLines(v);x(),h=setTimeout(f,1)}}}),window.addEventListener("hashchange",f),window.addEventListener("resize",function(){var m=r("pre").filter(c).map(function(g){return Prism.plugins.lineHighlight.highlightLines(g)});m.forEach(o)})})();const Cx=(e,t,n)=>{if(e&&"reportValidity"in e){const r=Ae(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},BP=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?Cx(r.ref,n,e):r.refs&&r.refs.forEach(i=>Cx(i,n,e))}},dH=(e,t)=>{t.shouldUseNativeValidation&&BP(e,t);const n={};for(const r in e){const i=Ae(t.fields,r),o=Object.assign(e[r]||{},{ref:i&&i.ref});if(fH(t.names||Object.keys(e),r)){const a=Object.assign({},Ae(n,r));Tt(a,"root",o),Tt(n,r,a)}else Tt(n,r,o)}return n},fH=(e,t)=>e.some(n=>n.startsWith(t+"."));function hH(e,t,n){return t===void 0&&(t={}),n===void 0&&(n={}),function(r,i,o){try{return Promise.resolve(function(a,u){try{var c=(t.context&&process.env.NODE_ENV==="development"&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(e[n.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then(function(d){return o.shouldUseNativeValidation&&BP({},o),{values:n.raw?r:d,errors:{}}}))}catch(d){return u(d)}return c&&c.then?c.then(void 0,u):c}(0,function(a){if(!a.inner)throw a;return{values:{},errors:dH((u=a,c=!o.shouldUseNativeValidation&&o.criteriaMode==="all",(u.inner||[]).reduce(function(d,f){if(d[f.path]||(d[f.path]={message:f.message,type:f.type}),c){var h=d[f.path].types,m=h&&h[f.type];d[f.path]=KT(f.path,c,d,f.type,m?[].concat(m,f.message):f.message)}return d},{})),o)};var u,c}))}catch(a){return Promise.reject(a)}}}const Sx=new Set;function pp(e,t,n){e||Sx.has(t)||(console.warn(t),Sx.add(t))}function pH(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&pp(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}function mp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const ev=e=>Array.isArray(e);function IP(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function bc(e){return typeof e=="string"||Array.isArray(e)}function Tx(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Wb(e,t,n,r){if(typeof t=="function"){const[i,o]=Tx(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Tx(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function gp(e,t,n){const r=e.getProps();return Wb(r,t,n!==void 0?n:r.custom,e)}const Hb=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Gb=["initial",...Hb],Hc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ms=new Set(Hc),$o=e=>e*1e3,aa=e=>e/1e3,mH={type:"spring",stiffness:500,damping:25,restSpeed:10},gH=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),yH={type:"keyframes",duration:.8},vH={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},bH=(e,{keyframes:t})=>t.length>2?yH:ms.has(e)?e.startsWith("scale")?gH(t[1]):mH:vH;function VP(e,t){return e?e[t]||e.default||e:void 0}const $H={skipAnimations:!1,useManualTiming:!1},xH=e=>e!==null;function yp(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(xH),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const ca=e=>e;let Wu=ca,ls=ca;process.env.NODE_ENV!=="production"&&(Wu=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},ls=(e,t)=>{if(!e)throw new Error(t)});function wH(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function u(d){o.has(d)&&(c.schedule(d),e()),d(a)}const c={schedule:(d,f=!1,h=!1)=>{const g=h&&r?t:n;return f&&o.add(d),g.has(d)||g.add(d),d},cancel:d=>{n.delete(d),o.delete(d)},process:d=>{if(a=d,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(u),t.clear(),r=!1,i&&(i=!1,c.process(d))}};return c}const ff=["read","resolveKeyframes","update","preRender","render","postRender"],DH=40;function LP(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=ff.reduce((x,y)=>(x[y]=wH(o),x),{}),{read:u,resolveKeyframes:c,update:d,preRender:f,render:h,postRender:m}=a,g=()=>{const x=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,DH),1),i.timestamp=x,i.isProcessing=!0,u.process(i),c.process(i),d.process(i),f.process(i),h.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},v=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:ff.reduce((x,y)=>{const D=a[y];return x[y]=(P,E=!1,T=!1)=>(n||v(),D.schedule(P,E,T)),x},{}),cancel:x=>{for(let y=0;y<ff.length;y++)a[ff[y]].cancel(x)},state:i,steps:a}}const{schedule:kr,cancel:tv,state:vh,steps:yre}=LP(typeof requestAnimationFrame<"u"?requestAnimationFrame:ca,!0),NP=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,EH=1e-7,CH=12;function SH(e,t,n,r,i){let o,a,u=0;do a=t+(n-t)/2,o=NP(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>EH&&++u<CH);return a}function Gc(e,t,n,r){if(e===t&&n===r)return ca;const i=o=>SH(o,0,1,e,n);return o=>o===0||o===1?o:NP(i(o),t,r)}const jP=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,KP=e=>t=>1-e(1-t),UP=Gc(.33,1.53,.69,.99),qb=KP(UP),zP=jP(qb),WP=e=>(e*=2)<1?.5*qb(e):.5*(2-Math.pow(2,-10*(e-1))),Yb=e=>1-Math.sin(Math.acos(e)),TH=KP(Yb),HP=jP(Yb),GP=e=>/^0[^.\s]+$/u.test(e);function AH(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||GP(e):!0}const qP=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),YP=e=>t=>typeof t=="string"&&t.startsWith(e),ZP=YP("--"),PH=YP("var(--"),Zb=e=>PH(e)?RH.test(e.split("/*")[0].trim()):!1,RH=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,_H=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function OH(e){const t=_H.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const MH=4;function JP(e,t,n=1){ls(n<=MH,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=OH(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return qP(a)?parseFloat(a):a}return Zb(i)?JP(i,t,n+1):i}const cs=(e,t,n)=>n>t?t:n<e?e:n,Hu={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},$c={...Hu,transform:e=>cs(0,1,e)},hf={...Hu,default:1},qc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Go=qc("deg"),gu=qc("%"),Ze=qc("px"),FH=qc("vh"),kH=qc("vw"),Ax={...gu,parse:e=>gu.parse(e)/100,transform:e=>gu.transform(e*100)},BH=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Px=e=>e===Hu||e===Ze,Rx=(e,t)=>parseFloat(e.split(", ")[t]),_x=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Rx(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?Rx(o[1],e):0}},IH=new Set(["x","y","z"]),VH=Hc.filter(e=>!IH.has(e));function LH(e){const t=[];return VH.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Ru={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:_x(4,13),y:_x(5,14)};Ru.translateX=Ru.x;Ru.translateY=Ru.y;const XP=e=>t=>t.test(e),NH={test:e=>e==="auto",parse:e=>e},QP=[Hu,Ze,gu,Go,kH,FH,NH],Ox=e=>QP.find(XP(e)),Ja=new Set;let nv=!1,rv=!1;function e6(){if(rv){const e=Array.from(Ja).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=LH(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var u;(u=r.getValue(o))===null||u===void 0||u.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}rv=!1,nv=!1,Ja.forEach(e=>e.complete()),Ja.clear()}function t6(){Ja.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(rv=!0)})}function jH(){t6(),e6()}let Jb=class{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ja.add(this),nv||(nv=!0,kr.read(t6),kr.resolveKeyframes(e6))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),u=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const c=r.readValue(n,u);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=u),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Ja.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Ja.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const nc=e=>Math.round(e*1e5)/1e5,Xb=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function KH(e){return e==null}const UH=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Qb=(e,t)=>n=>!!(typeof n=="string"&&UH.test(n)&&n.startsWith(e)||t&&!KH(n)&&Object.prototype.hasOwnProperty.call(n,t)),n6=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,u]=r.match(Xb);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:u!==void 0?parseFloat(u):1}},zH=e=>cs(0,255,e),wg={...Hu,transform:e=>Math.round(zH(e))},Wa={test:Qb("rgb","red"),parse:n6("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+wg.transform(e)+", "+wg.transform(t)+", "+wg.transform(n)+", "+nc($c.transform(r))+")"};function WH(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 iv={test:Qb("#"),parse:WH,transform:Wa.transform},ru={test:Qb("hsl","hue"),parse:n6("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+gu.transform(nc(t))+", "+gu.transform(nc(n))+", "+nc($c.transform(r))+")"},qn={test:e=>Wa.test(e)||iv.test(e)||ru.test(e),parse:e=>Wa.test(e)?Wa.parse(e):ru.test(e)?ru.parse(e):iv.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Wa.transform(e):ru.transform(e)},HH=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function GH(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Xb))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(HH))===null||n===void 0?void 0:n.length)||0)>0}const r6="number",i6="color",qH="var",YH="var(",Mx="${}",ZH=/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 xc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const u=t.replace(ZH,c=>(qn.test(c)?(r.color.push(o),i.push(i6),n.push(qn.parse(c))):c.startsWith(YH)?(r.var.push(o),i.push(qH),n.push(c)):(r.number.push(o),i.push(r6),n.push(parseFloat(c))),++o,Mx)).split(Mx);return{values:n,split:u,indexes:r,types:i}}function o6(e){return xc(e).values}function a6(e){const{split:t,types:n}=xc(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const u=n[a];u===r6?o+=nc(i[a]):u===i6?o+=qn.transform(i[a]):o+=i[a]}return o}}const JH=e=>typeof e=="number"?0:e;function XH(e){const t=o6(e);return a6(e)(t.map(JH))}const Gu={test:GH,parse:o6,createTransformer:a6,getAnimatableNone:XH},QH=new Set(["brightness","contrast","saturate","opacity"]);function eG(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Xb)||[];if(!r)return e;const i=n.replace(r,"");let o=QH.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const tG=/\b([a-z-]*)\(.*?\)/gu,ov={...Gu,getAnimatableNone:e=>{const t=e.match(tG);return t?t.map(eG).join(" "):e}},nG={borderWidth:Ze,borderTopWidth:Ze,borderRightWidth:Ze,borderBottomWidth:Ze,borderLeftWidth:Ze,borderRadius:Ze,radius:Ze,borderTopLeftRadius:Ze,borderTopRightRadius:Ze,borderBottomRightRadius:Ze,borderBottomLeftRadius:Ze,width:Ze,maxWidth:Ze,height:Ze,maxHeight:Ze,top:Ze,right:Ze,bottom:Ze,left:Ze,padding:Ze,paddingTop:Ze,paddingRight:Ze,paddingBottom:Ze,paddingLeft:Ze,margin:Ze,marginTop:Ze,marginRight:Ze,marginBottom:Ze,marginLeft:Ze,backgroundPositionX:Ze,backgroundPositionY:Ze},rG={rotate:Go,rotateX:Go,rotateY:Go,rotateZ:Go,scale:hf,scaleX:hf,scaleY:hf,scaleZ:hf,skew:Go,skewX:Go,skewY:Go,distance:Ze,translateX:Ze,translateY:Ze,translateZ:Ze,x:Ze,y:Ze,z:Ze,perspective:Ze,transformPerspective:Ze,opacity:$c,originX:Ax,originY:Ax,originZ:Ze},Fx={...Hu,transform:Math.round},e0={...nG,...rG,zIndex:Fx,size:Ze,fillOpacity:$c,strokeOpacity:$c,numOctaves:Fx},iG={...e0,color:qn,backgroundColor:qn,outlineColor:qn,fill:qn,stroke:qn,borderColor:qn,borderTopColor:qn,borderRightColor:qn,borderBottomColor:qn,borderLeftColor:qn,filter:ov,WebkitFilter:ov},t0=e=>iG[e];function s6(e,t){let n=t0(e);return n!==ov&&(n=Gu),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const oG=new Set(["auto","none","0"]);function aG(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!oG.has(o)&&xc(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=s6(n,i)}let u6=class extends Jb{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),Zb(d))){const f=JP(d,n.current);f!==void 0&&(t[c]=f),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!BH.has(r)||t.length!==2)return;const[i,o]=t,a=Ox(i),u=Ox(o);if(a!==u)if(Px(a)&&Px(u))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)AH(t[i])&&r.push(i);r.length&&aG(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ru[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,u=i[a];i[a]=Ru[r](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([c,d])=>{n.getValue(c).set(d)}),this.resolveNoneKeyframes()}};function n0(e){return typeof e=="function"}let kf;function sG(){kf=void 0}const sa={now:()=>(kf===void 0&&sa.set(vh.isProcessing||$H.useManualTiming?vh.timestamp:performance.now()),kf),set:e=>{kf=e,queueMicrotask(sG)}},kx=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Gu.test(e)||e==="0")&&!e.startsWith("url("));function uG(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 lG(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=kx(i,t),u=kx(o,t);return Wu(a===u,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!u?!1:uG(e)||(n==="spring"||n0(n))&&r}const cG=40;let l6=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=sa.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>cG?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&jH(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=sa.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:u,onUpdate:c,isGenerator:d}=this.options;if(!d&&!lG(t,r,i,o))if(a)this.options.duration=0;else{c==null||c(yp(t,this.options,n)),u==null||u(),this.resolveFinishedPromise();return}const f=this.initPlayback(t,n);f!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...f},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};const r0=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},c6=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(r0(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function d6(e,t){return t?e*(1e3/t):0}const dG=5;function f6(e,t,n){const r=Math.max(t-dG,0);return d6(n-e(r),t-r)}const Jt={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},Bx=.001;function fG({duration:e=Jt.duration,bounce:t=Jt.bounce,velocity:n=Jt.velocity,mass:r=Jt.mass}){let i,o;Wu(e<=$o(Jt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=cs(Jt.minDamping,Jt.maxDamping,a),e=cs(Jt.minDuration,Jt.maxDuration,aa(e)),a<1?(i=d=>{const f=d*a,h=f*e,m=f-n,g=av(d,a),v=Math.exp(-h);return Bx-m/g*v},o=d=>{const h=d*a*e,m=h*n+n,g=Math.pow(a,2)*Math.pow(d,2)*e,v=Math.exp(-h),$=av(Math.pow(d,2),a);return(-i(d)+Bx>0?-1:1)*((m-g)*v)/$}):(i=d=>{const f=Math.exp(-d*e),h=(d-n)*e+1;return-.001+f*h},o=d=>{const f=Math.exp(-d*e),h=(n-d)*(e*e);return f*h});const u=5/e,c=pG(i,o,u);if(e=$o(e),isNaN(c))return{stiffness:Jt.stiffness,damping:Jt.damping,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const hG=12;function pG(e,t,n){let r=n;for(let i=1;i<hG;i++)r=r-e(r)/t(r);return r}function av(e,t){return e*Math.sqrt(1-t*t)}const sv=2e4;function h6(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<sv;)t+=n,r=e.next(t);return t>=sv?1/0:t}const mG=["duration","bounce"],gG=["stiffness","damping","mass"];function Ix(e,t){return t.some(n=>e[n]!==void 0)}function yG(e){let t={velocity:Jt.velocity,stiffness:Jt.stiffness,damping:Jt.damping,mass:Jt.mass,isResolvedFromDuration:!1,...e};if(!Ix(e,gG)&&Ix(e,mG))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*cs(.05,1,1-e.bounce)*Math.sqrt(i);t={...t,mass:Jt.mass,stiffness:i,damping:o}}else{const n=fG(e);t={...t,...n,mass:Jt.mass},t.isResolvedFromDuration=!0}return t}function p6(e=Jt.visualDuration,t=Jt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],u={done:!1,value:o},{stiffness:c,damping:d,mass:f,duration:h,velocity:m,isResolvedFromDuration:g}=yG({...n,velocity:-aa(n.velocity||0)}),v=m||0,$=d/(2*Math.sqrt(c*f)),C=a-o,x=aa(Math.sqrt(c/f)),y=Math.abs(C)<5;r||(r=y?Jt.restSpeed.granular:Jt.restSpeed.default),i||(i=y?Jt.restDelta.granular:Jt.restDelta.default);let D;if($<1){const E=av(x,$);D=T=>{const k=Math.exp(-$*x*T);return a-k*((v+$*x*C)/E*Math.sin(E*T)+C*Math.cos(E*T))}}else if($===1)D=E=>a-Math.exp(-x*E)*(C+(v+x*C)*E);else{const E=x*Math.sqrt($*$-1);D=T=>{const k=Math.exp(-$*x*T),S=Math.min(E*T,300);return a-k*((v+$*x*C)*Math.sinh(S)+E*C*Math.cosh(S))/E}}const P={calculatedDuration:g&&h||null,next:E=>{const T=D(E);if(g)u.done=E>=h;else{let k=0;$<1&&(k=E===0?$o(v):f6(D,E,T));const S=Math.abs(k)<=r,U=Math.abs(a-T)<=i;u.done=S&&U}return u.value=u.done?a:T,u},toString:()=>{const E=Math.min(h6(P),sv),T=c6(k=>P.next(E*k).value,E,30);return E+"ms "+T}};return P}function Vx({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:u,max:c,restDelta:d=.5,restSpeed:f}){const h=e[0],m={done:!1,value:h},g=S=>u!==void 0&&S<u||c!==void 0&&S>c,v=S=>u===void 0?c:c===void 0||Math.abs(u-S)<Math.abs(c-S)?u:c;let $=n*t;const C=h+$,x=a===void 0?C:a(C);x!==C&&($=x-h);const y=S=>-$*Math.exp(-S/r),D=S=>x+y(S),P=S=>{const U=y(S),O=D(S);m.done=Math.abs(U)<=d,m.value=m.done?x:O};let E,T;const k=S=>{g(m.value)&&(E=S,T=p6({keyframes:[m.value,v(m.value)],velocity:f6(D,S,m.value),damping:i,stiffness:o,restDelta:d,restSpeed:f}))};return k(0),{calculatedDuration:null,next:S=>{let U=!1;return!T&&E===void 0&&(U=!0,P(S),k(S)),E!==void 0&&S>=E?T.next(S-E):(!U&&P(S),m)}}}const vG=Gc(.42,0,1,1),bG=Gc(0,0,.58,1),m6=Gc(.42,0,.58,1),$G=e=>Array.isArray(e)&&typeof e[0]!="number",i0=e=>Array.isArray(e)&&typeof e[0]=="number",Lx={linear:ca,easeIn:vG,easeInOut:m6,easeOut:bG,circIn:Yb,circInOut:HP,circOut:TH,backIn:qb,backInOut:zP,backOut:UP,anticipate:WP},Nx=e=>{if(i0(e)){ls(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Gc(t,n,r,i)}else if(typeof e=="string")return ls(Lx[e]!==void 0,`Invalid easing type '${e}'`),Lx[e];return e},xG=(e,t)=>n=>t(e(n)),vp=(...e)=>e.reduce(xG),bp=(e,t,n)=>e+(t-e)*n;function Dg(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 wG({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const u=n<.5?n*(1+t):n+t-n*t,c=2*n-u;i=Dg(c,u,e+1/3),o=Dg(c,u,e),a=Dg(c,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function bh(e,t){return n=>n>0?t:e}const Eg=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},DG=[iv,Wa,ru],EG=e=>DG.find(t=>t.test(e));function jx(e){const t=EG(e);if(Wu(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===ru&&(n=wG(n)),n}const Kx=(e,t)=>{const n=jx(e),r=jx(t);if(!n||!r)return bh(e,t);const i={...n};return o=>(i.red=Eg(n.red,r.red,o),i.green=Eg(n.green,r.green,o),i.blue=Eg(n.blue,r.blue,o),i.alpha=bp(n.alpha,r.alpha,o),Wa.transform(i))},uv=new Set(["none","hidden"]);function CG(e,t){return uv.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function SG(e,t){return n=>bp(e,t,n)}function o0(e){return typeof e=="number"?SG:typeof e=="string"?Zb(e)?bh:qn.test(e)?Kx:PG:Array.isArray(e)?g6:typeof e=="object"?qn.test(e)?Kx:TG:bh}function g6(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>o0(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function TG(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=o0(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function AG(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],u=e.indexes[a][i[a]],c=(n=e.values[u])!==null&&n!==void 0?n:0;r[o]=c,i[a]++}return r}const PG=(e,t)=>{const n=Gu.createTransformer(t),r=xc(e),i=xc(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?uv.has(e)&&!i.values.length||uv.has(t)&&!r.values.length?CG(e,t):vp(g6(AG(r,i),i.values),n):(Wu(!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.`),bh(e,t))};function y6(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?bp(e,t,n):o0(e)(e,t)}function RG(e,t,n){const r=[],i=n||y6,o=e.length-1;for(let a=0;a<o;a++){let u=i(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||ca:t;u=vp(c,u)}r.push(u)}return r}function _G(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(ls(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=RG(t,r,i),u=a.length,c=d=>{let f=0;if(u>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const h=r0(e[f],e[f+1],d);return a[f](h)};return n?d=>c(cs(e[0],e[o-1],d)):c}function OG(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=r0(0,t,r);e.push(bp(n,1,i))}}function MG(e){const t=[0];return OG(t,e.length-1),t}function FG(e,t){return e.map(n=>n*t)}function kG(e,t){return e.map(()=>t||m6).splice(0,e.length-1)}function $h({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=$G(r)?r.map(Nx):Nx(r),o={done:!1,value:t[0]},a=FG(n&&n.length===t.length?n:MG(t),e),u=_G(a,t,{ease:Array.isArray(i)?i:kG(t,i)});return{calculatedDuration:e,next:c=>(o.value=u(c),o.done=c>=e,o)}}const BG=e=>{const t=({timestamp:n})=>e(n);return{start:()=>kr.update(t,!0),stop:()=>tv(t),now:()=>vh.isProcessing?vh.timestamp:sa.now()}},IG={decay:Vx,inertia:Vx,tween:$h,keyframes:$h,spring:p6},VG=e=>e/100;let a0=class extends l6{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:c}=this.options;c&&c()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||Jb,u=(c,d)=>this.onKeyframesResolved(c,d);this.resolver=new a(o,u,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,u=n0(n)?n:IG[n]||$h;let c,d;u!==$h&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&ls(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c=vp(VG,y6(t[0],t[1])),t=[0,100]);const f=u({...this.options,keyframes:t});o==="mirror"&&(d=u({...this.options,keyframes:[...t].reverse(),velocity:-a})),f.calculatedDuration===null&&(f.calculatedDuration=h6(f));const{calculatedDuration:h}=f,m=h+i,g=m*(r+1)-i;return{generator:f,mirroredGenerator:d,mapPercentToKeyframes:c,calculatedDuration:h,resolvedDuration:m,totalDuration:g}}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:S}=this.options;return{done:!0,value:S[S.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:u,keyframes:c,calculatedDuration:d,totalDuration:f,resolvedDuration:h}=r;if(this.startTime===null)return o.next(0);const{delay:m,repeat:g,repeatType:v,repeatDelay:$,onUpdate:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-f/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 x=this.currentTime-m*(this.speed>=0?1:-1),y=this.speed>=0?x<0:x>f;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=f);let D=this.currentTime,P=o;if(g){const S=Math.min(this.currentTime,f)/h;let U=Math.floor(S),O=S%1;!O&&S>=1&&(O=1),O===1&&U--,U=Math.min(U,g+1),!!(U%2)&&(v==="reverse"?(O=1-O,$&&(O-=$/h)):v==="mirror"&&(P=a)),D=cs(0,1,O)*h}const E=y?{done:!1,value:c[0]}:P.next(D);u&&(E.value=u(E.value));let{done:T}=E;!y&&d!==null&&(T=this.speed>=0?this.currentTime>=f:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return k&&i!==void 0&&(E.value=yp(c,this.options,i)),C&&C(E.value),k&&this.finish(),E}get duration(){const{resolved:t}=this;return t?aa(t.calculatedDuration):0}get time(){return aa(this.currentTime)}set time(t){t=$o(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=aa(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=BG,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}};const LG=new Set(["opacity","clipPath","filter","transform"]);function s0(e){let t;return()=>(t===void 0&&(t=e()),t)}const NG={linearEasing:void 0};function jG(e,t){const n=s0(e);return()=>{var r;return(r=NG[t])!==null&&r!==void 0?r:n()}}const xh=jG(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function v6(e){return!!(typeof e=="function"&&xh()||!e||typeof e=="string"&&(e in lv||xh())||i0(e)||Array.isArray(e)&&e.every(v6))}const Wl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,lv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Wl([0,.65,.55,1]),circOut:Wl([.55,0,1,.45]),backIn:Wl([.31,.01,.66,-.59]),backOut:Wl([.33,1.53,.69,.99])};function b6(e,t){if(e)return typeof e=="function"&&xh()?c6(e,t):i0(e)?Wl(e):Array.isArray(e)?e.map(n=>b6(n,t)||lv.easeOut):lv[e]}function KG(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:u="easeInOut",times:c}={}){const d={[t]:n};c&&(d.offset=c);const f=b6(u,i);return Array.isArray(f)&&(d.easing=f),e.animate(d,{delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}function Ux(e,t){e.timeline=t,e.onfinish=null}const UG=s0(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),wh=10,zG=2e4;function WG(e){return n0(e.type)||e.type==="spring"||!v6(e.ease)}function HG(e,t){const n=new a0({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<zG;)r=n.sample(o),i.push(r.value),o+=wh;return{times:void 0,keyframes:i,duration:o-wh,ease:"linear"}}const $6={anticipate:WP,backInOut:zP,circInOut:HP};function GG(e){return e in $6}let zx=class extends l6{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new u6(o,(a,u)=>this.onKeyframesResolved(a,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:a,type:u,motionValue:c,name:d,startTime:f}=this.options;if(!(!((r=c.owner)===null||r===void 0)&&r.current))return!1;if(typeof a=="string"&&xh()&&GG(a)&&(a=$6[a]),WG(this.options)){const{onComplete:m,onUpdate:g,motionValue:v,element:$,...C}=this.options,x=HG(t,C);t=x.keyframes,t.length===1&&(t[1]=t[0]),i=x.duration,o=x.times,a=x.ease,u="keyframes"}const h=KG(c.owner.current,d,t,{...this.options,duration:i,times:o,ease:a});return h.startTime=f??this.calcStartTime(),this.pendingTimeline?(Ux(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(yp(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:i,times:o,type:u,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return aa(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return aa(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=$o(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return ca;const{animation:r}=n;Ux(r,t)}return ca}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:f,onComplete:h,element:m,...g}=this.options,v=new a0({...g,keyframes:r,duration:i,type:o,ease:a,times:u,isGenerator:!0}),$=$o(this.time);d.setWithVelocity(v.sample($-wh).value,v.sample($).value,wh)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:u}=t;return UG()&&r&&LG.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&a!==0&&u!=="inertia"}};const qG=s0(()=>window.ScrollTimeline!==void 0);let YG=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>qG()&&i.attachTimeline?i.attachTimeline(t):n(i));return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}};function ZG({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:u,from:c,elapsed:d,...f}){return!!Object.keys(f).length}const JG=(e,t,n,r={},i,o)=>a=>{const u=VP(r,e)||{},c=u.delay||r.delay||0;let{elapsed:d=0}=r;d=d-$o(c);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:m=>{t.set(m),u.onUpdate&&u.onUpdate(m)},onComplete:()=>{a(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:o?void 0:i};ZG(u)||(f={...f,...bH(e,f)}),f.duration&&(f.duration=$o(f.duration)),f.repeatDelay&&(f.repeatDelay=$o(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let h=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(h=!0)),h&&!o&&t.get()!==void 0){const m=yp(f.keyframes,u);if(m!==void 0)return kr.update(()=>{f.onUpdate(m),f.onComplete()}),new YG([])}return!o&&zx.supports(f)?new zx(f):new a0(f)},XG=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),QG=e=>ev(e)?e[e.length-1]||0:e;function eq(e,t){e.indexOf(t)===-1&&e.push(t)}function tq(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let x6=class{constructor(){this.subscriptions=[]}add(t){return eq(this.subscriptions,t),()=>tq(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};const Wx=30,nq=e=>!isNaN(parseFloat(e));let rq=class{constructor(t,n={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=sa.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=sa.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=nq(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&pp(!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 x6);const r=this.events[t].add(n);return t==="change"?()=>{r(),kr.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=sa.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Wx)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Wx);return d6(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 Dh(e,t){return new rq(e,t)}function iq(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Dh(n))}function oq(e,t){const n=gp(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const u=QG(o[a]);iq(e,a,u)}}const u0=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),aq="framerAppearId",w6="data-"+u0(aq);function sq(e){return e.props[w6]}const ur=e=>!!(e&&e.getVelocity);function uq(e){return!!(ur(e)&&e.add)}function lq(e,t){const n=e.getValue("willChange");if(uq(n))return n.add(t)}function cq({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function D6(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:u,...c}=t;r&&(a=r);const d=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const h in c){const m=e.getValue(h,(o=e.latestValues[h])!==null&&o!==void 0?o:null),g=c[h];if(g===void 0||f&&cq(f,h))continue;const v={delay:n,...VP(a||{},h)};let $=!1;if(window.MotionHandoffAnimation){const x=sq(e);if(x){const y=window.MotionHandoffAnimation(x,h,kr);y!==null&&(v.startTime=y,$=!0)}}lq(e,h),m.start(JG(h,m,g,e.shouldReduceMotion&&ms.has(h)?{type:!1}:v,e,$));const C=m.animation;C&&d.push(C)}return u&&Promise.all(d).then(()=>{kr.update(()=>{u&&oq(e,u)})}),d}function cv(e,t,n={}){var r;const i=gp(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(D6(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:f=0,staggerChildren:h,staggerDirection:m}=o;return dq(e,t,f+d,h,m,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[d,f]=c==="beforeChildren"?[a,u]:[u,a];return d().then(()=>f())}else return Promise.all([a(),u(n.delay)])}function dq(e,t,n=0,r=0,i=1,o){const a=[],u=(e.variantChildren.size-1)*r,c=i===1?(d=0)=>d*r:(d=0)=>u-d*r;return Array.from(e.variantChildren).sort(fq).forEach((d,f)=>{d.notify("AnimationStart",t),a.push(cv(d,t,{...o,delay:n+c(f)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function fq(e,t){return e.sortNodePosition(t)}function hq(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>cv(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=cv(e,t,n);else{const i=typeof t=="function"?gp(e,t,n.custom):t;r=Promise.all(D6(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const pq=Gb.length;function E6(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?E6(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<pq;n++){const r=Gb[n],i=e.props[r];(bc(i)||i===!1)&&(t[r]=i)}return t}const mq=[...Hb].reverse(),gq=Hb.length;function yq(e){return t=>Promise.all(t.map(({animation:n,options:r})=>hq(e,n,r)))}function vq(e){let t=yq(e),n=Hx(),r=!0;const i=c=>(d,f)=>{var h;const m=gp(e,f,c==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(m){const{transition:g,transitionEnd:v,...$}=m;d={...d,...$,...v}}return d};function o(c){t=c(e)}function a(c){const{props:d}=e,f=E6(e.parent)||{},h=[],m=new Set;let g={},v=1/0;for(let C=0;C<gq;C++){const x=mq[C],y=n[x],D=d[x]!==void 0?d[x]:f[x],P=bc(D),E=x===c?y.isActive:null;E===!1&&(v=C);let T=D===f[x]&&D!==d[x]&&P;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),y.protectedKeys={...g},!y.isActive&&E===null||!D&&!y.prevProp||mp(D)||typeof D=="boolean")continue;const k=bq(y.prevProp,D);let S=k||x===c&&y.isActive&&!T&&P||C>v&&P,U=!1;const O=Array.isArray(D)?D:[D];let F=O.reduce(i(x),{});E===!1&&(F={});const{prevResolvedValues:G={}}=y,K={...G,...F},W=R=>{S=!0,m.has(R)&&(U=!0,m.delete(R)),y.needsAnimating[R]=!0;const M=e.getValue(R);M&&(M.liveStyle=!1)};for(const R in K){const M=F[R],Y=G[R];if(g.hasOwnProperty(R))continue;let L=!1;ev(M)&&ev(Y)?L=!IP(M,Y):L=M!==Y,L?M!=null?W(R):m.add(R):M!==void 0&&m.has(R)?W(R):y.protectedKeys[R]=!0}y.prevProp=D,y.prevResolvedValues=F,y.isActive&&(g={...g,...F}),r&&e.blockInitialAnimation&&(S=!1),S&&(!(T&&k)||U)&&h.push(...O.map(R=>({animation:R,options:{type:x}})))}if(m.size){const C={};m.forEach(x=>{const y=e.getBaseTarget(x),D=e.getValue(x);D&&(D.liveStyle=!0),C[x]=y??null}),h.push({animation:C})}let $=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&($=!1),r=!1,$?t(h):Promise.resolve()}function u(c,d){var f;if(n[c].isActive===d)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(m=>{var g;return(g=m.animationState)===null||g===void 0?void 0:g.setActive(c,d)}),n[c].isActive=d;const h=a(c);for(const m in n)n[m].protectedKeys={};return h}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Hx(),r=!0}}}function bq(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!IP(t,e):!1}function Ma(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Hx(){return{animate:Ma(!0),whileInView:Ma(),whileHover:Ma(),whileTap:Ma(),whileDrag:Ma(),whileFocus:Ma(),exit:Ma()}}let qu=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},$q=class extends qu{constructor(t){super(t),t.animationState||(t.animationState=vq(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();mp(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}},xq=0,wq=class extends qu{constructor(){super(...arguments),this.id=xq++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}};const Dq={animation:{Feature:$q},exit:{Feature:wq}},Eq={x:!1,y:!1};function Cq(){return Eq.y}const Sq=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function C6(e){return{point:{x:e.pageX,y:e.pageY}}}function Gx(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function S6(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const qx=()=>({min:0,max:0}),T6=()=>({x:qx(),y:qx()});function Tq({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Aq(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Pq(e,t){return Tq(Aq(e.getBoundingClientRect(),t))}const A6=b.createContext(null),Rq=b.createContext({}),_q=b.createContext({}),Oq={},{schedule:Mq,cancel:Pre}=LP(queueMicrotask,!1);function Fq(e){const t=ur(e)?e.get():e;return XG(t)?t.toValue():t}function kq(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function P6(e,t){const n=kq(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Yx(e){return t=>{t.pointerType==="touch"||Cq()||e(t)}}function Bq(e,t,n={}){const[r,i,o]=P6(e,n),a=Yx(u=>{const{target:c}=u,d=t(u);if(!d||!c)return;const f=Yx(h=>{d(h),c.removeEventListener("pointerleave",f)});c.addEventListener("pointerleave",f,i)});return r.forEach(u=>{u.addEventListener("pointerenter",a,i)}),o}function Zx(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&kr.postRender(()=>o(t,C6(t)))}let Iq=class extends qu{mount(){const{current:t}=this.node;t&&(this.unmount=Bq(t,n=>(Zx(this.node,n,"Start"),r=>Zx(this.node,r,"End"))))}unmount(){}},Vq=class extends qu{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=vp(Gx(this.node.current,"focus",()=>this.onFocus()),Gx(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};const Hl=new WeakSet;function Jx(e){return t=>{t.key==="Enter"&&e(t)}}function Cg(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Lq=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Jx(()=>{if(Hl.has(n))return;Cg(n,"down");const i=Jx(()=>{Cg(n,"up")}),o=()=>Cg(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)},Nq=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function jq(e){return Nq.has(e.tagName)||e.tabIndex!==-1}const R6=(e,t)=>t?e===t?!0:R6(e,t.parentElement):!1;function Xx(e){return Sq(e)&&!0}function Kq(e,t,n={}){const[r,i,o]=P6(e,n),a=u=>{const c=u.currentTarget;if(!Xx(u)||Hl.has(c))return;Hl.add(c);const d=t(u),f=(g,v)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",m),!(!Xx(g)||!Hl.has(c))&&(Hl.delete(c),d&&d(g,{success:v}))},h=g=>{f(g,n.useGlobalTarget||R6(c,g.target))},m=g=>{f(g,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",m,i)};return r.forEach(u=>{jq(u)||(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",a,i),u.addEventListener("focus",d=>Lq(d,i),i)}),o}function Qx(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&kr.postRender(()=>o(t,C6(t)))}let Uq=class extends qu{mount(){const{current:t}=this.node;t&&(this.unmount=Kq(t,n=>(Qx(this.node,n,"Start"),(r,{success:i})=>Qx(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const dv=new WeakMap,Sg=new WeakMap,zq=e=>{const t=dv.get(e.target);t&&t(e)},Wq=e=>{e.forEach(zq)};function Hq({root:e,...t}){const n=e||document;Sg.has(n)||Sg.set(n,{});const r=Sg.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Wq,{root:e,...t})),r[i]}function Gq(e,t,n){const r=Hq(t);return dv.set(e,n),r.observe(e),()=>{dv.delete(e),r.unobserve(e)}}const qq={some:0,all:1};let Yq=class extends qu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:qq[i]},u=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),m=d?f:h;m&&m(c)};return Gq(this.node.current,a,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Zq(t,n))&&this.startObserver()}unmount(){}};function Zq({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Jq={inView:{Feature:Yq},tap:{Feature:Uq},focus:{Feature:Vq},hover:{Feature:Iq}},_6=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),$p=b.createContext({}),l0=typeof window<"u",Xq=l0?b.useLayoutEffect:b.useEffect,c0=b.createContext({strict:!1});function Qq(e,t,n,r,i){var o,a;const{visualElement:u}=b.useContext($p),c=b.useContext(c0),d=b.useContext(A6),f=b.useContext(_6).reducedMotion,h=b.useRef(null);r=r||c.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:u,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:f}));const m=h.current,g=b.useContext(_q);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&eY(h.current,n,i,g);const v=b.useRef(!1);b.useInsertionEffect(()=>{m&&v.current&&m.update(n,d)});const $=n[w6],C=b.useRef(!!$&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,$))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,$)));return Xq(()=>{m&&(v.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),Mq.render(m.render),C.current&&m.animationState&&m.animationState.animateChanges())}),b.useEffect(()=>{m&&(!C.current&&m.animationState&&m.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var x;(x=window.MotionHandoffMarkAsComplete)===null||x===void 0||x.call(window,$)}),C.current=!1))}),m}function eY(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:u,layoutScroll:c,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:O6(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||u&&S6(u),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:d})}function O6(e){if(e)return e.options.allowProjection!==!1?e.projection:O6(e.parent)}function tY(e,t,n){return b.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):S6(n)&&(n.current=r))},[t])}function xp(e){return mp(e.animate)||Gb.some(t=>bc(e[t]))}function M6(e){return!!(xp(e)||e.variants)}function nY(e,t){if(xp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||bc(n)?n:void 0,animate:bc(r)?r:void 0}}return e.inherit!==!1?t:{}}function rY(e){const{initial:t,animate:n}=nY(e,b.useContext($p));return b.useMemo(()=>({initial:t,animate:n}),[ew(t),ew(n)])}function ew(e){return Array.isArray(e)?e.join(" "):e}const tw={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"]},_u={};for(const e in tw)_u[e]={isEnabled:t=>tw[e].some(n=>!!t[n])};function fv(e){for(const t in e)_u[t]={..._u[t],...e[t]}}const iY=Symbol.for("motionComponentSymbol");function oY({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&fv(e);function o(u,c){let d;const f={...b.useContext(_6),...u,layoutId:aY(u)},{isStatic:h}=f,m=rY(u),g=r(u,h);if(!h&&l0){sY(f,e);const v=uY(f);d=v.MeasureLayout,m.visualElement=Qq(i,g,f,t,v.ProjectionNode)}return wo.jsxs($p.Provider,{value:m,children:[d&&m.visualElement?wo.jsx(d,{visualElement:m.visualElement,...f}):null,n(i,u,tY(g,m.visualElement,c),g,h,m.visualElement)]})}const a=b.forwardRef(o);return a[iY]=i,a}function aY({layoutId:e}){const t=b.useContext(Rq).id;return t&&e!==void 0?t+"-"+e:e}function sY(e,t){const n=b.useContext(c0).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?Wu(!1,r):ls(!1,r)}}function uY(e){const{drag:t,layout:n}=_u;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 lY=["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 d0(e){return typeof e!="string"||e.includes("-")?!1:!!(lY.indexOf(e)>-1||/[A-Z]/u.test(e))}function F6(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const k6=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 B6(e,t,n,r){F6(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(k6.has(i)?i:u0(i),t.attrs[i])}function I6(e,{layout:t,layoutId:n}){return ms.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Oq[e]||e==="opacity")}function f0(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(ur(i[a])||t.style&&ur(t.style[a])||I6(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function V6(e,t,n){const r=f0(e,t,n);for(const i in e)if(ur(e[i])||ur(t[i])){const o=Hc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function cY(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}function dY({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const a={latestValues:fY(r,i,o,e),renderState:t()};return n&&(a.mount=u=>n(r,u,a)),a}const L6=e=>(t,n)=>{const r=b.useContext($p),i=b.useContext(A6),o=()=>dY(e,t,r,i);return n?o():cY(o)};function fY(e,t,n,r){const i={},o=r(e,{});for(const m in o)i[m]=Fq(o[m]);let{initial:a,animate:u}=e;const c=xp(e),d=M6(e);t&&d&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),u===void 0&&(u=t.animate));let f=n?n.initial===!1:!1;f=f||a===!1;const h=f?u:a;if(h&&typeof h!="boolean"&&!mp(h)){const m=Array.isArray(h)?h:[h];for(let g=0;g<m.length;g++){const v=Wb(e,m[g]);if(v){const{transitionEnd:$,transition:C,...x}=v;for(const y in x){let D=x[y];if(Array.isArray(D)){const P=f?D.length-1:0;D=D[P]}D!==null&&(i[y]=D)}for(const y in $)i[y]=$[y]}}}return i}const h0=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),N6=()=>({...h0(),attrs:{}}),j6=(e,t)=>t&&typeof e=="number"?t.transform(e):e,hY={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},pY=Hc.length;function mY(e,t,n){let r="",i=!0;for(let o=0;o<pY;o++){const a=Hc[o],u=e[a];if(u===void 0)continue;let c=!0;if(typeof u=="number"?c=u===(a.startsWith("scale")?1:0):c=parseFloat(u)===0,!c||n){const d=j6(u,e0[a]);if(!c){i=!1;const f=hY[a]||a;r+=`${f}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function p0(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,u=!1;for(const c in t){const d=t[c];if(ms.has(c)){a=!0;continue}else if(ZP(c)){i[c]=d;continue}else{const f=j6(d,e0[c]);c.startsWith("origin")?(u=!0,o[c]=f):r[c]=f}}if(t.transform||(a||n?r.transform=mY(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:c="50%",originY:d="50%",originZ:f=0}=o;r.transformOrigin=`${c} ${d} ${f}`}}function nw(e,t,n){return typeof e=="string"?e:Ze.transform(t+n*e)}function gY(e,t,n){const r=nw(t,e.x,e.width),i=nw(n,e.y,e.height);return`${r} ${i}`}const yY={offset:"stroke-dashoffset",array:"stroke-dasharray"},vY={offset:"strokeDashoffset",array:"strokeDasharray"};function bY(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?yY:vY;e[o.offset]=Ze.transform(-r);const a=Ze.transform(t),u=Ze.transform(n);e[o.array]=`${a} ${u}`}function m0(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:u=1,pathOffset:c=0,...d},f,h){if(p0(e,d,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g,dimensions:v}=e;m.transform&&(v&&(g.transform=m.transform),delete m.transform),v&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=gY(v,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),a!==void 0&&bY(m,a,u,c,!1)}const g0=e=>typeof e=="string"&&e.toLowerCase()==="svg",$Y={useVisualState:L6({scrapeMotionValuesFromProps:V6,createRenderState:N6,onMount:(e,t,{renderState:n,latestValues:r})=>{kr.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),kr.render(()=>{m0(n,r,g0(t.tagName),e.transformTemplate),B6(t,n)})}})},xY={useVisualState:L6({scrapeMotionValuesFromProps:f0,createRenderState:h0})};function K6(e,t,n){for(const r in t)!ur(t[r])&&!I6(r,n)&&(e[r]=t[r])}function wY({transformTemplate:e},t){return b.useMemo(()=>{const n=h0();return p0(n,t,e),Object.assign({},n.vars,n.style)},[t])}function DY(e,t){const n=e.style||{},r={};return K6(r,n,e),Object.assign(r,wY(e,t)),r}function EY(e,t){const n={},r=DY(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 CY=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 Eh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||CY.has(e)}let U6=e=>!Eh(e);function SY(e){e&&(U6=t=>t.startsWith("on")?!Eh(t):e(t))}try{SY(require("@emotion/is-prop-valid").default)}catch{}function TY(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(U6(i)||n===!0&&Eh(i)||!t&&!Eh(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function AY(e,t,n,r){const i=b.useMemo(()=>{const o=N6();return m0(o,t,g0(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};K6(o,e.style,e),i.style={...o,...i.style}}return i}function PY(e=!1){return(n,r,i,{latestValues:o},a)=>{const c=(d0(n)?AY:EY)(r,o,a,n),d=TY(r,typeof n=="string",e),f=n!==b.Fragment?{...d,...c,ref:i}:{},{children:h}=r,m=b.useMemo(()=>ur(h)?h.get():h,[h]);return b.createElement(n,{...f,children:m})}}function RY(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...d0(r)?$Y:xY,preloadedFeatures:e,useRender:PY(i),createVisualElement:t,Component:r};return oY(a)}}const hv={current:null},z6={current:!1};function _Y(){if(z6.current=!0,!!l0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>hv.current=e.matches;e.addListener(t),t()}else hv.current=!1}function OY(e,t,n){for(const r in t){const i=t[r],o=n[r];if(ur(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&pp(i.version==="11.15.0",`Attempting to mix Motion versions ${i.version} with 11.15.0 may not work as expected.`);else if(ur(o))e.addValue(r,Dh(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,Dh(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const rw=new WeakMap,MY=[...QP,qn,Gu],FY=e=>MY.find(XP(e)),iw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let kY=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Jb,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 m=sa.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,kr.render(this.render,!1,!0))};const{latestValues:c,renderState:d}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=xp(n),this.isVariantNode=M6(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in h){const g=h[m];c[m]!==void 0&&ur(g)&&g.set(c[m],!1)}}mount(t){this.current=t,rw.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)),z6.current||_Y(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:hv.current,process.env.NODE_ENV!=="production"&&pp(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(){rw.delete(this.current),this.projection&&this.projection.unmount(),tv(this.notifyUpdate),tv(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=ms.has(t),i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&kr.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in _u){const n=_u[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):T6()}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<iw.length;r++){const i=iw[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=OY(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Dh(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(qP(i)||GP(i))?i=parseFloat(i):!FY(i)&&Gu.test(n)&&(i=s6(t,n)),this.setBaseTarget(t,ur(i)?i.get():i)),ur(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=Wb(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!ur(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new x6),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},W6=class extends kY{constructor(){super(...arguments),this.KeyframeResolver=u6}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;ur(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function BY(e){return window.getComputedStyle(e)}let IY=class extends W6{constructor(){super(...arguments),this.type="html",this.renderInstance=F6}readValueFromInstance(t,n){if(ms.has(n)){const r=t0(n);return r&&r.default||0}else{const r=BY(t),i=(ZP(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Pq(t,n)}build(t,n,r){p0(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return f0(t,n,r)}},VY=class extends W6{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=T6}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ms.has(n)){const r=t0(n);return r&&r.default||0}return n=k6.has(n)?n:u0(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return V6(t,n,r)}build(t,n,r){m0(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){B6(t,n,r,i)}mount(t){this.isSVGTag=g0(t.tagName),super.mount(t)}};const LY=(e,t)=>d0(e)?new VY(t):new IY(t,{allowProjection:e!==b.Fragment}),NY=RY(),jY=pH(NY);function KY({children:e,features:t,strict:n=!1}){const[,r]=b.useState(!Tg(t)),i=b.useRef(void 0);if(!Tg(t)){const{renderer:o,...a}=t;i.current=o,fv(a)}return b.useEffect(()=>{Tg(t)&&t().then(({renderer:o,...a})=>{fv(a),i.current=o,r(!0)})},[]),wo.jsx(c0.Provider,{value:{renderer:i.current,strict:n},children:e})}function Tg(e){return typeof e=="function"}const UY={renderer:LY,...Dq,...Jq},H6=b.createContext({});function Yc(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const y0=b.createContext(null),v0=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function zY(e=!0){const t=b.useContext(y0);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=b.useId();b.useEffect(()=>{e&&i(o)},[e]);const a=b.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const b0=typeof window<"u",G6=b0?b.useLayoutEffect:b.useEffect,Er=e=>e;let Yu=Er,Yi=Er;process.env.NODE_ENV!=="production"&&(Yu=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Yi=(e,t)=>{if(!e)throw new Error(t)});function $0(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ou=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Wi=e=>e*1e3,xo=e=>e/1e3,WY={skipAnimations:!1,useManualTiming:!1};function HY(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function u(d){o.has(d)&&(c.schedule(d),e()),d(a)}const c={schedule:(d,f=!1,h=!1)=>{const g=h&&r?t:n;return f&&o.add(d),g.has(d)||g.add(d),d},cancel:d=>{n.delete(d),o.delete(d)},process:d=>{if(a=d,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(u),t.clear(),r=!1,i&&(i=!1,c.process(d))}};return c}const pf=["read","resolveKeyframes","update","preRender","render","postRender"],GY=40;function q6(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=pf.reduce((x,y)=>(x[y]=HY(o),x),{}),{read:u,resolveKeyframes:c,update:d,preRender:f,render:h,postRender:m}=a,g=()=>{const x=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,GY),1),i.timestamp=x,i.isProcessing=!0,u.process(i),c.process(i),d.process(i),f.process(i),h.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},v=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:pf.reduce((x,y)=>{const D=a[y];return x[y]=(P,E=!1,T=!1)=>(n||v(),D.schedule(P,E,T)),x},{}),cancel:x=>{for(let y=0;y<pf.length;y++)a[pf[y]].cancel(x)},state:i,steps:a}}const{schedule:jt,cancel:Eo,state:Bn,steps:Ag}=q6(typeof requestAnimationFrame<"u"?requestAnimationFrame:Er,!0),Y6=b.createContext({strict:!1}),ow={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"]},Mu={};for(const e in ow)Mu[e]={isEnabled:t=>ow[e].some(n=>!!t[n])};function qY(e){for(const t in e)Mu[t]={...Mu[t],...e[t]}}const YY=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 Ch(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||YY.has(e)}let Z6=e=>!Ch(e);function ZY(e){e&&(Z6=t=>t.startsWith("on")?!Ch(t):e(t))}try{ZY(require("@emotion/is-prop-valid").default)}catch{}function JY(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Z6(i)||n===!0&&Ch(i)||!t&&!Ch(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const aw=new Set;function wp(e,t,n){e||aw.has(t)||(console.warn(t),aw.add(t))}function XY(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&wp(!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 Dp=b.createContext({});function wc(e){return typeof e=="string"||Array.isArray(e)}function Ep(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const x0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],w0=["initial",...x0];function Cp(e){return Ep(e.animate)||w0.some(t=>wc(e[t]))}function J6(e){return!!(Cp(e)||e.variants)}function QY(e,t){if(Cp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||wc(n)?n:void 0,animate:wc(r)?r:void 0}}return e.inherit!==!1?t:{}}function eZ(e){const{initial:t,animate:n}=QY(e,b.useContext(Dp));return b.useMemo(()=>({initial:t,animate:n}),[sw(t),sw(n)])}function sw(e){return Array.isArray(e)?e.join(" "):e}const tZ=Symbol.for("motionComponentSymbol");function iu(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function nZ(e,t,n){return b.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):iu(n)&&(n.current=r))},[t])}const D0=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),rZ="framerAppearId",X6="data-"+D0(rZ),{schedule:E0,cancel:Vre}=q6(queueMicrotask,!1),Q6=b.createContext({});function iZ(e,t,n,r,i){var o,a;const{visualElement:u}=b.useContext(Dp),c=b.useContext(Y6),d=b.useContext(y0),f=b.useContext(v0).reducedMotion,h=b.useRef(null);r=r||c.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:u,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:f}));const m=h.current,g=b.useContext(Q6);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&oZ(h.current,n,i,g);const v=b.useRef(!1);b.useInsertionEffect(()=>{m&&v.current&&m.update(n,d)});const $=n[X6],C=b.useRef(!!$&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,$))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,$)));return G6(()=>{m&&(v.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),E0.render(m.render),C.current&&m.animationState&&m.animationState.animateChanges())}),b.useEffect(()=>{m&&(!C.current&&m.animationState&&m.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var x;(x=window.MotionHandoffMarkAsComplete)===null||x===void 0||x.call(window,$)}),C.current=!1))}),m}function oZ(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:u,layoutScroll:c,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:e7(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||u&&iu(u),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:d})}function e7(e){if(e)return e.options.allowProjection!==!1?e.projection:e7(e.parent)}function aZ({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&qY(e);function u(d,f){let h;const m={...b.useContext(v0),...d,layoutId:sZ(d)},{isStatic:g}=m,v=eZ(d),$=r(d,g);if(!g&&b0){uZ(m,e);const C=lZ(m);h=C.MeasureLayout,v.visualElement=iZ(i,$,m,t,C.ProjectionNode)}return wo.jsxs(Dp.Provider,{value:v,children:[h&&v.visualElement?wo.jsx(h,{visualElement:v.visualElement,...m}):null,n(i,d,nZ($,v.visualElement,f),$,g,v.visualElement)]})}u.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const c=b.forwardRef(u);return c[tZ]=i,c}function sZ({layoutId:e}){const t=b.useContext(H6).id;return t&&e!==void 0?t+"-"+e:e}function uZ(e,t){const n=b.useContext(Y6).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?Yu(!1,r):Yi(!1,r)}}function lZ(e){const{drag:t,layout:n}=Mu;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 cZ=["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 C0(e){return typeof e!="string"||e.includes("-")?!1:!!(cZ.indexOf(e)>-1||/[A-Z]/u.test(e))}function uw(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function S0(e,t,n,r){if(typeof t=="function"){const[i,o]=uw(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=uw(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const pv=e=>Array.isArray(e),dZ=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),fZ=e=>pv(e)?e[e.length-1]||0:e,In=e=>!!(e&&e.getVelocity);function Bf(e){const t=In(e)?e.get():e;return dZ(t)?t.toValue():t}function hZ({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:pZ(r,i,o,e),renderState:t()};return n&&(a.onMount=u=>n({props:r,current:u,...a}),a.onUpdate=u=>n(u)),a}const t7=e=>(t,n)=>{const r=b.useContext(Dp),i=b.useContext(y0),o=()=>hZ(e,t,r,i);return n?o():Yc(o)};function pZ(e,t,n,r){const i={},o=r(e,{});for(const m in o)i[m]=Bf(o[m]);let{initial:a,animate:u}=e;const c=Cp(e),d=J6(e);t&&d&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),u===void 0&&(u=t.animate));let f=n?n.initial===!1:!1;f=f||a===!1;const h=f?u:a;if(h&&typeof h!="boolean"&&!Ep(h)){const m=Array.isArray(h)?h:[h];for(let g=0;g<m.length;g++){const v=S0(e,m[g]);if(v){const{transitionEnd:$,transition:C,...x}=v;for(const y in x){let D=x[y];if(Array.isArray(D)){const P=f?D.length-1:0;D=D[P]}D!==null&&(i[y]=D)}for(const y in $)i[y]=$[y]}}}return i}const Zu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],gs=new Set(Zu),n7=e=>t=>typeof t=="string"&&t.startsWith(e),r7=n7("--"),mZ=n7("var(--"),T0=e=>mZ(e)?gZ.test(e.split("/*")[0].trim()):!1,gZ=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,i7=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Co=(e,t,n)=>n>t?t:n<e?e:n,Ju={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Dc={...Ju,transform:e=>Co(0,1,e)},mf={...Ju,default:1},Zc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),qo=Zc("deg"),Hi=Zc("%"),Ge=Zc("px"),yZ=Zc("vh"),vZ=Zc("vw"),lw={...Hi,parse:e=>Hi.parse(e)/100,transform:e=>Hi.transform(e*100)},bZ={borderWidth:Ge,borderTopWidth:Ge,borderRightWidth:Ge,borderBottomWidth:Ge,borderLeftWidth:Ge,borderRadius:Ge,radius:Ge,borderTopLeftRadius:Ge,borderTopRightRadius:Ge,borderBottomRightRadius:Ge,borderBottomLeftRadius:Ge,width:Ge,maxWidth:Ge,height:Ge,maxHeight:Ge,top:Ge,right:Ge,bottom:Ge,left:Ge,padding:Ge,paddingTop:Ge,paddingRight:Ge,paddingBottom:Ge,paddingLeft:Ge,margin:Ge,marginTop:Ge,marginRight:Ge,marginBottom:Ge,marginLeft:Ge,backgroundPositionX:Ge,backgroundPositionY:Ge},$Z={rotate:qo,rotateX:qo,rotateY:qo,rotateZ:qo,scale:mf,scaleX:mf,scaleY:mf,scaleZ:mf,skew:qo,skewX:qo,skewY:qo,distance:Ge,translateX:Ge,translateY:Ge,translateZ:Ge,x:Ge,y:Ge,z:Ge,perspective:Ge,transformPerspective:Ge,opacity:Dc,originX:lw,originY:lw,originZ:Ge},cw={...Ju,transform:Math.round},A0={...bZ,...$Z,zIndex:cw,size:Ge,fillOpacity:Dc,strokeOpacity:Dc,numOctaves:cw},xZ={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},wZ=Zu.length;function DZ(e,t,n){let r="",i=!0;for(let o=0;o<wZ;o++){const a=Zu[o],u=e[a];if(u===void 0)continue;let c=!0;if(typeof u=="number"?c=u===(a.startsWith("scale")?1:0):c=parseFloat(u)===0,!c||n){const d=i7(u,A0[a]);if(!c){i=!1;const f=xZ[a]||a;r+=`${f}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function P0(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,u=!1;for(const c in t){const d=t[c];if(gs.has(c)){a=!0;continue}else if(r7(c)){i[c]=d;continue}else{const f=i7(d,A0[c]);c.startsWith("origin")?(u=!0,o[c]=f):r[c]=f}}if(t.transform||(a||n?r.transform=DZ(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:c="50%",originY:d="50%",originZ:f=0}=o;r.transformOrigin=`${c} ${d} ${f}`}}function dw(e,t,n){return typeof e=="string"?e:Ge.transform(t+n*e)}function EZ(e,t,n){const r=dw(t,e.x,e.width),i=dw(n,e.y,e.height);return`${r} ${i}`}const CZ={offset:"stroke-dashoffset",array:"stroke-dasharray"},SZ={offset:"strokeDashoffset",array:"strokeDasharray"};function TZ(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?CZ:SZ;e[o.offset]=Ge.transform(-r);const a=Ge.transform(t),u=Ge.transform(n);e[o.array]=`${a} ${u}`}function R0(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:u=1,pathOffset:c=0,...d},f,h){if(P0(e,d,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g,dimensions:v}=e;m.transform&&(v&&(g.transform=m.transform),delete m.transform),v&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=EZ(v,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),a!==void 0&&TZ(m,a,u,c,!1)}const _0=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),o7=()=>({..._0(),attrs:{}}),O0=e=>typeof e=="string"&&e.toLowerCase()==="svg";function a7(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const s7=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 u7(e,t,n,r){a7(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(s7.has(i)?i:D0(i),t.attrs[i])}const Sh={};function AZ(e){Object.assign(Sh,e)}function l7(e,{layout:t,layoutId:n}){return gs.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Sh[e]||e==="opacity")}function M0(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(In(i[a])||t.style&&In(t.style[a])||l7(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function c7(e,t,n){const r=M0(e,t,n);for(const i in e)if(In(e[i])||In(t[i])){const o=Zu.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function PZ(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const fw=["x","y","width","height","cx","cy","r"],RZ={useVisualState:t7({scrapeMotionValuesFromProps:c7,createRenderState:o7,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const u in i)if(gs.has(u)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let u=0;u<fw.length;u++){const c=fw[u];e[c]!==t[c]&&(a=!0)}a&&(jt.read(()=>PZ(n,r)),jt.render(()=>{R0(r,i,O0(n.tagName),e.transformTemplate),u7(n,r)}))}})},_Z={useVisualState:t7({scrapeMotionValuesFromProps:M0,createRenderState:_0})};function d7(e,t,n){for(const r in t)!In(t[r])&&!l7(r,n)&&(e[r]=t[r])}function OZ({transformTemplate:e},t){return b.useMemo(()=>{const n=_0();return P0(n,t,e),Object.assign({},n.vars,n.style)},[t])}function MZ(e,t){const n=e.style||{},r={};return d7(r,n,e),Object.assign(r,OZ(e,t)),r}function FZ(e,t){const n={},r=MZ(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}function kZ(e,t,n,r){const i=b.useMemo(()=>{const o=o7();return R0(o,t,O0(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};d7(o,e.style,e),i.style={...o,...i.style}}return i}function BZ(e=!1){return(n,r,i,{latestValues:o},a)=>{const c=(C0(n)?kZ:FZ)(r,o,a,n),d=JY(r,typeof n=="string",e),f=n!==b.Fragment?{...d,...c,ref:i}:{},{children:h}=r,m=b.useMemo(()=>In(h)?h.get():h,[h]);return b.createElement(n,{...f,children:m})}}function IZ(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...C0(r)?RZ:_Z,preloadedFeatures:e,useRender:BZ(i),createVisualElement:t,Component:r};return aZ(a)}}function f7(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Sp(e,t,n){const r=e.getProps();return S0(r,t,n!==void 0?n:r.custom,e)}const VZ=$0(()=>window.ScrollTimeline!==void 0);class LZ{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(VZ()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class NZ extends LZ{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function F0(e,t){return e?e[t]||e.default||e:void 0}const mv=2e4;function h7(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<mv;)t+=n,r=e.next(t);return t>=mv?1/0:t}function k0(e){return typeof e=="function"}function hw(e,t){e.timeline=t,e.onfinish=null}const B0=e=>Array.isArray(e)&&typeof e[0]=="number",jZ={linearEasing:void 0};function KZ(e,t){const n=$0(e);return()=>{var r;return(r=jZ[t])!==null&&r!==void 0?r:n()}}const Th=KZ(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),p7=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(Ou(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function m7(e){return!!(typeof e=="function"&&Th()||!e||typeof e=="string"&&(e in gv||Th())||B0(e)||Array.isArray(e)&&e.every(m7))}const Gl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,gv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Gl([0,.65,.55,1]),circOut:Gl([.55,0,1,.45]),backIn:Gl([.31,.01,.66,-.59]),backOut:Gl([.33,1.53,.69,.99])};function g7(e,t){if(e)return typeof e=="function"&&Th()?p7(e,t):B0(e)?Gl(e):Array.isArray(e)?e.map(n=>g7(n,t)||gv.easeOut):gv[e]}const pi={x:!1,y:!1};function y7(){return pi.x||pi.y}function UZ(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function v7(e,t){const n=UZ(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function pw(e){return t=>{t.pointerType==="touch"||y7()||e(t)}}function zZ(e,t,n={}){const[r,i,o]=v7(e,n),a=pw(u=>{const{target:c}=u,d=t(u);if(typeof d!="function"||!c)return;const f=pw(h=>{d(h),c.removeEventListener("pointerleave",f)});c.addEventListener("pointerleave",f,i)});return r.forEach(u=>{u.addEventListener("pointerenter",a,i)}),o}const b7=(e,t)=>t?e===t?!0:b7(e,t.parentElement):!1,I0=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,WZ=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function HZ(e){return WZ.has(e.tagName)||e.tabIndex!==-1}const ql=new WeakSet;function mw(e){return t=>{t.key==="Enter"&&e(t)}}function Pg(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const GZ=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=mw(()=>{if(ql.has(n))return;Pg(n,"down");const i=mw(()=>{Pg(n,"up")}),o=()=>Pg(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function gw(e){return I0(e)&&!y7()}function qZ(e,t,n={}){const[r,i,o]=v7(e,n),a=u=>{const c=u.currentTarget;if(!gw(u)||ql.has(c))return;ql.add(c);const d=t(u),f=(g,v)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",m),!(!gw(g)||!ql.has(c))&&(ql.delete(c),typeof d=="function"&&d(g,{success:v}))},h=g=>{f(g,n.useGlobalTarget||b7(c,g.target))},m=g=>{f(g,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",m,i)};return r.forEach(u=>{!HZ(u)&&u.getAttribute("tabindex")===null&&(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",a,i),u.addEventListener("focus",d=>GZ(d,i),i)}),o}function YZ(e){return e==="x"||e==="y"?pi[e]?null:(pi[e]=!0,()=>{pi[e]=!1}):pi.x||pi.y?null:(pi.x=pi.y=!0,()=>{pi.x=pi.y=!1})}const $7=new Set(["width","height","top","left","right","bottom",...Zu]);let If;function ZZ(){If=void 0}const Gi={now:()=>(If===void 0&&Gi.set(Bn.isProcessing||WY.useManualTiming?Bn.timestamp:performance.now()),If),set:e=>{If=e,queueMicrotask(ZZ)}};function V0(e,t){e.indexOf(t)===-1&&e.push(t)}function L0(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function JZ([...e],t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const i=n<0?e.length+n:n,[o]=e.splice(t,1);e.splice(i,0,o)}return e}class N0{constructor(){this.subscriptions=[]}add(t){return V0(this.subscriptions,t),()=>L0(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function x7(e,t){return t?e*(1e3/t):0}const yw=30,XZ=e=>!isNaN(parseFloat(e)),rc={current:void 0};class QZ{constructor(t,n={}){this.version="11.18.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Gi.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Gi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=XZ(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&wp(!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 N0);const r=this.events[t].add(n);return t==="change"?()=>{r(),jt.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 rc.current&&rc.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Gi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>yw)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,yw);return x7(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 Fu(e,t){return new QZ(e,t)}function eJ(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Fu(n))}function tJ(e,t){const n=Sp(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const u=fZ(o[a]);eJ(e,a,u)}}function nJ(e){return!!(In(e)&&e.add)}function yv(e,t){const n=e.getValue("willChange");if(nJ(n))return n.add(t)}function w7(e){return e.props[X6]}const D7=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,rJ=1e-7,iJ=12;function oJ(e,t,n,r,i){let o,a,u=0;do a=t+(n-t)/2,o=D7(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>rJ&&++u<iJ);return a}function Jc(e,t,n,r){if(e===t&&n===r)return Er;const i=o=>oJ(o,0,1,e,n);return o=>o===0||o===1?o:D7(i(o),t,r)}const E7=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,C7=e=>t=>1-e(1-t),S7=Jc(.33,1.53,.69,.99),j0=C7(S7),T7=E7(j0),A7=e=>(e*=2)<1?.5*j0(e):.5*(2-Math.pow(2,-10*(e-1))),K0=e=>1-Math.sin(Math.acos(e)),P7=C7(K0),R7=E7(K0),_7=e=>/^0[^.\s]+$/u.test(e);function aJ(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||_7(e):!0}const ic=e=>Math.round(e*1e5)/1e5,U0=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function sJ(e){return e==null}const uJ=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,z0=(e,t)=>n=>!!(typeof n=="string"&&uJ.test(n)&&n.startsWith(e)||t&&!sJ(n)&&Object.prototype.hasOwnProperty.call(n,t)),O7=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,u]=r.match(U0);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:u!==void 0?parseFloat(u):1}},lJ=e=>Co(0,255,e),Rg={...Ju,transform:e=>Math.round(lJ(e))},Ha={test:z0("rgb","red"),parse:O7("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Rg.transform(e)+", "+Rg.transform(t)+", "+Rg.transform(n)+", "+ic(Dc.transform(r))+")"};function cJ(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 vv={test:z0("#"),parse:cJ,transform:Ha.transform},ou={test:z0("hsl","hue"),parse:O7("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Hi.transform(ic(t))+", "+Hi.transform(ic(n))+", "+ic(Dc.transform(r))+")"},Yn={test:e=>Ha.test(e)||vv.test(e)||ou.test(e),parse:e=>Ha.test(e)?Ha.parse(e):ou.test(e)?ou.parse(e):vv.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ha.transform(e):ou.transform(e)},dJ=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function fJ(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(U0))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(dJ))===null||n===void 0?void 0:n.length)||0)>0}const M7="number",F7="color",hJ="var",pJ="var(",vw="${}",mJ=/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 Ec(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const u=t.replace(mJ,c=>(Yn.test(c)?(r.color.push(o),i.push(F7),n.push(Yn.parse(c))):c.startsWith(pJ)?(r.var.push(o),i.push(hJ),n.push(c)):(r.number.push(o),i.push(M7),n.push(parseFloat(c))),++o,vw)).split(vw);return{values:n,split:u,indexes:r,types:i}}function k7(e){return Ec(e).values}function B7(e){const{split:t,types:n}=Ec(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const u=n[a];u===M7?o+=ic(i[a]):u===F7?o+=Yn.transform(i[a]):o+=i[a]}return o}}const gJ=e=>typeof e=="number"?0:e;function yJ(e){const t=k7(e);return B7(e)(t.map(gJ))}const da={test:fJ,parse:k7,createTransformer:B7,getAnimatableNone:yJ},vJ=new Set(["brightness","contrast","saturate","opacity"]);function bJ(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(U0)||[];if(!r)return e;const i=n.replace(r,"");let o=vJ.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const $J=/\b([a-z-]*)\(.*?\)/gu,bv={...da,getAnimatableNone:e=>{const t=e.match($J);return t?t.map(bJ).join(" "):e}},xJ={...A0,color:Yn,backgroundColor:Yn,outlineColor:Yn,fill:Yn,stroke:Yn,borderColor:Yn,borderTopColor:Yn,borderRightColor:Yn,borderBottomColor:Yn,borderLeftColor:Yn,filter:bv,WebkitFilter:bv},W0=e=>xJ[e];function I7(e,t){let n=W0(e);return n!==bv&&(n=da),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const wJ=new Set(["auto","none","0"]);function DJ(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!wJ.has(o)&&Ec(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=I7(n,i)}const bw=e=>e===Ju||e===Ge,$w=(e,t)=>parseFloat(e.split(", ")[t]),xw=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return $w(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?$w(o[1],e):0}},EJ=new Set(["x","y","z"]),CJ=Zu.filter(e=>!EJ.has(e));function SJ(e){const t=[];return CJ.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ku={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:xw(4,13),y:xw(5,14)};ku.translateX=ku.x;ku.translateY=ku.y;const Xa=new Set;let $v=!1,xv=!1;function V7(){if(xv){const e=Array.from(Xa).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=SJ(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var u;(u=r.getValue(o))===null||u===void 0||u.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}xv=!1,$v=!1,Xa.forEach(e=>e.complete()),Xa.clear()}function L7(){Xa.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(xv=!0)})}function TJ(){L7(),V7()}class H0{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Xa.add(this),$v||($v=!0,jt.read(L7),jt.resolveKeyframes(V7))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),u=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const c=r.readValue(n,u);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=u),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Xa.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Xa.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const N7=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),AJ=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function PJ(e){const t=AJ.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const RJ=4;function j7(e,t,n=1){Yi(n<=RJ,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=PJ(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return N7(a)?parseFloat(a):a}return T0(i)?j7(i,t,n+1):i}const K7=e=>t=>t.test(e),_J={test:e=>e==="auto",parse:e=>e},U7=[Ju,Ge,Hi,qo,vZ,yZ,_J],ww=e=>U7.find(K7(e));class z7 extends H0{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),T0(d))){const f=j7(d,n.current);f!==void 0&&(t[c]=f),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!$7.has(r)||t.length!==2)return;const[i,o]=t,a=ww(i),u=ww(o);if(a!==u)if(bw(a)&&bw(u))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)aJ(t[i])&&r.push(i);r.length&&DJ(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=ku[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,u=i[a];i[a]=ku[r](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([c,d])=>{n.getValue(c).set(d)}),this.resolveNoneKeyframes()}}const Dw=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(da.test(e)||e==="0")&&!e.startsWith("url("));function OJ(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 MJ(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=Dw(i,t),u=Dw(o,t);return Yu(a===u,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!u?!1:OJ(e)||(n==="spring"||k0(n))&&r}const FJ=e=>e!==null;function Tp(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(FJ),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const kJ=40;class W7{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Gi.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>kJ?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&TJ(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Gi.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:u,onUpdate:c,isGenerator:d}=this.options;if(!d&&!MJ(t,r,i,o))if(a)this.options.duration=0;else{c==null||c(Tp(t,this.options,n)),u==null||u(),this.resolveFinishedPromise();return}const f=this.initPlayback(t,n);f!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...f},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const qt=(e,t,n)=>e+(t-e)*n;function _g(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 BJ({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const u=n<.5?n*(1+t):n+t-n*t,c=2*n-u;i=_g(c,u,e+1/3),o=_g(c,u,e),a=_g(c,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Ah(e,t){return n=>n>0?t:e}const Og=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},IJ=[vv,Ha,ou],VJ=e=>IJ.find(t=>t.test(e));function Ew(e){const t=VJ(e);if(Yu(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===ou&&(n=BJ(n)),n}const Cw=(e,t)=>{const n=Ew(e),r=Ew(t);if(!n||!r)return Ah(e,t);const i={...n};return o=>(i.red=Og(n.red,r.red,o),i.green=Og(n.green,r.green,o),i.blue=Og(n.blue,r.blue,o),i.alpha=qt(n.alpha,r.alpha,o),Ha.transform(i))},LJ=(e,t)=>n=>t(e(n)),Xc=(...e)=>e.reduce(LJ),wv=new Set(["none","hidden"]);function NJ(e,t){return wv.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function jJ(e,t){return n=>qt(e,t,n)}function G0(e){return typeof e=="number"?jJ:typeof e=="string"?T0(e)?Ah:Yn.test(e)?Cw:zJ:Array.isArray(e)?H7:typeof e=="object"?Yn.test(e)?Cw:KJ:Ah}function H7(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>G0(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function KJ(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=G0(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function UJ(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],u=e.indexes[a][i[a]],c=(n=e.values[u])!==null&&n!==void 0?n:0;r[o]=c,i[a]++}return r}const zJ=(e,t)=>{const n=da.createTransformer(t),r=Ec(e),i=Ec(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?wv.has(e)&&!i.values.length||wv.has(t)&&!r.values.length?NJ(e,t):Xc(H7(UJ(r,i),i.values),n):(Yu(!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.`),Ah(e,t))};function G7(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?qt(e,t,n):G0(e)(e,t)}const WJ=5;function q7(e,t,n){const r=Math.max(t-WJ,0);return x7(n-e(r),t-r)}const Xt={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},Sw=.001;function HJ({duration:e=Xt.duration,bounce:t=Xt.bounce,velocity:n=Xt.velocity,mass:r=Xt.mass}){let i,o;Yu(e<=Wi(Xt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Co(Xt.minDamping,Xt.maxDamping,a),e=Co(Xt.minDuration,Xt.maxDuration,xo(e)),a<1?(i=d=>{const f=d*a,h=f*e,m=f-n,g=Dv(d,a),v=Math.exp(-h);return Sw-m/g*v},o=d=>{const h=d*a*e,m=h*n+n,g=Math.pow(a,2)*Math.pow(d,2)*e,v=Math.exp(-h),$=Dv(Math.pow(d,2),a);return(-i(d)+Sw>0?-1:1)*((m-g)*v)/$}):(i=d=>{const f=Math.exp(-d*e),h=(d-n)*e+1;return-.001+f*h},o=d=>{const f=Math.exp(-d*e),h=(n-d)*(e*e);return f*h});const u=5/e,c=qJ(i,o,u);if(e=Wi(e),isNaN(c))return{stiffness:Xt.stiffness,damping:Xt.damping,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const GJ=12;function qJ(e,t,n){let r=n;for(let i=1;i<GJ;i++)r=r-e(r)/t(r);return r}function Dv(e,t){return e*Math.sqrt(1-t*t)}const YJ=["duration","bounce"],ZJ=["stiffness","damping","mass"];function Tw(e,t){return t.some(n=>e[n]!==void 0)}function JJ(e){let t={velocity:Xt.velocity,stiffness:Xt.stiffness,damping:Xt.damping,mass:Xt.mass,isResolvedFromDuration:!1,...e};if(!Tw(e,ZJ)&&Tw(e,YJ))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Co(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Xt.mass,stiffness:i,damping:o}}else{const n=HJ(e);t={...t,...n,mass:Xt.mass},t.isResolvedFromDuration=!0}return t}function Y7(e=Xt.visualDuration,t=Xt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],u={done:!1,value:o},{stiffness:c,damping:d,mass:f,duration:h,velocity:m,isResolvedFromDuration:g}=JJ({...n,velocity:-xo(n.velocity||0)}),v=m||0,$=d/(2*Math.sqrt(c*f)),C=a-o,x=xo(Math.sqrt(c/f)),y=Math.abs(C)<5;r||(r=y?Xt.restSpeed.granular:Xt.restSpeed.default),i||(i=y?Xt.restDelta.granular:Xt.restDelta.default);let D;if($<1){const E=Dv(x,$);D=T=>{const k=Math.exp(-$*x*T);return a-k*((v+$*x*C)/E*Math.sin(E*T)+C*Math.cos(E*T))}}else if($===1)D=E=>a-Math.exp(-x*E)*(C+(v+x*C)*E);else{const E=x*Math.sqrt($*$-1);D=T=>{const k=Math.exp(-$*x*T),S=Math.min(E*T,300);return a-k*((v+$*x*C)*Math.sinh(S)+E*C*Math.cosh(S))/E}}const P={calculatedDuration:g&&h||null,next:E=>{const T=D(E);if(g)u.done=E>=h;else{let k=0;$<1&&(k=E===0?Wi(v):q7(D,E,T));const S=Math.abs(k)<=r,U=Math.abs(a-T)<=i;u.done=S&&U}return u.value=u.done?a:T,u},toString:()=>{const E=Math.min(h7(P),mv),T=p7(k=>P.next(E*k).value,E,30);return E+"ms "+T}};return P}function Aw({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:u,max:c,restDelta:d=.5,restSpeed:f}){const h=e[0],m={done:!1,value:h},g=S=>u!==void 0&&S<u||c!==void 0&&S>c,v=S=>u===void 0?c:c===void 0||Math.abs(u-S)<Math.abs(c-S)?u:c;let $=n*t;const C=h+$,x=a===void 0?C:a(C);x!==C&&($=x-h);const y=S=>-$*Math.exp(-S/r),D=S=>x+y(S),P=S=>{const U=y(S),O=D(S);m.done=Math.abs(U)<=d,m.value=m.done?x:O};let E,T;const k=S=>{g(m.value)&&(E=S,T=Y7({keyframes:[m.value,v(m.value)],velocity:q7(D,S,m.value),damping:i,stiffness:o,restDelta:d,restSpeed:f}))};return k(0),{calculatedDuration:null,next:S=>{let U=!1;return!T&&E===void 0&&(U=!0,P(S),k(S)),E!==void 0&&S>=E?T.next(S-E):(!U&&P(S),m)}}}const XJ=Jc(.42,0,1,1),QJ=Jc(0,0,.58,1),Z7=Jc(.42,0,.58,1),eX=e=>Array.isArray(e)&&typeof e[0]!="number",Pw={linear:Er,easeIn:XJ,easeInOut:Z7,easeOut:QJ,circIn:K0,circInOut:R7,circOut:P7,backIn:j0,backInOut:T7,backOut:S7,anticipate:A7},Rw=e=>{if(B0(e)){Yi(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Jc(t,n,r,i)}else if(typeof e=="string")return Yi(Pw[e]!==void 0,`Invalid easing type '${e}'`),Pw[e];return e};function tX(e,t,n){const r=[],i=n||G7,o=e.length-1;for(let a=0;a<o;a++){let u=i(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||Er:t;u=Xc(c,u)}r.push(u)}return r}function J7(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Yi(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=tX(t,r,i),c=u.length,d=f=>{if(a&&f<e[0])return t[0];let h=0;if(c>1)for(;h<e.length-2&&!(f<e[h+1]);h++);const m=Ou(e[h],e[h+1],f);return u[h](m)};return n?f=>d(Co(e[0],e[o-1],f)):d}function nX(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Ou(0,t,r);e.push(qt(n,1,i))}}function rX(e){const t=[0];return nX(t,e.length-1),t}function iX(e,t){return e.map(n=>n*t)}function oX(e,t){return e.map(()=>t||Z7).splice(0,e.length-1)}function Ph({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=eX(r)?r.map(Rw):Rw(r),o={done:!1,value:t[0]},a=iX(n&&n.length===t.length?n:rX(t),e),u=J7(a,t,{ease:Array.isArray(i)?i:oX(t,i)});return{calculatedDuration:e,next:c=>(o.value=u(c),o.done=c>=e,o)}}const aX=e=>{const t=({timestamp:n})=>e(n);return{start:()=>jt.update(t,!0),stop:()=>Eo(t),now:()=>Bn.isProcessing?Bn.timestamp:Gi.now()}},sX={decay:Aw,inertia:Aw,tween:Ph,keyframes:Ph,spring:Y7},uX=e=>e/100;class q0 extends W7{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:c}=this.options;c&&c()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||H0,u=(c,d)=>this.onKeyframesResolved(c,d);this.resolver=new a(o,u,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,u=k0(n)?n:sX[n]||Ph;let c,d;u!==Ph&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&Yi(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c=Xc(uX,G7(t[0],t[1])),t=[0,100]);const f=u({...this.options,keyframes:t});o==="mirror"&&(d=u({...this.options,keyframes:[...t].reverse(),velocity:-a})),f.calculatedDuration===null&&(f.calculatedDuration=h7(f));const{calculatedDuration:h}=f,m=h+i,g=m*(r+1)-i;return{generator:f,mirroredGenerator:d,mapPercentToKeyframes:c,calculatedDuration:h,resolvedDuration:m,totalDuration:g}}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:S}=this.options;return{done:!0,value:S[S.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:u,keyframes:c,calculatedDuration:d,totalDuration:f,resolvedDuration:h}=r;if(this.startTime===null)return o.next(0);const{delay:m,repeat:g,repeatType:v,repeatDelay:$,onUpdate:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-f/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 x=this.currentTime-m*(this.speed>=0?1:-1),y=this.speed>=0?x<0:x>f;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=f);let D=this.currentTime,P=o;if(g){const S=Math.min(this.currentTime,f)/h;let U=Math.floor(S),O=S%1;!O&&S>=1&&(O=1),O===1&&U--,U=Math.min(U,g+1),!!(U%2)&&(v==="reverse"?(O=1-O,$&&(O-=$/h)):v==="mirror"&&(P=a)),D=Co(0,1,O)*h}const E=y?{done:!1,value:c[0]}:P.next(D);u&&(E.value=u(E.value));let{done:T}=E;!y&&d!==null&&(T=this.speed>=0?this.currentTime>=f:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return k&&i!==void 0&&(E.value=Tp(c,this.options,i)),C&&C(E.value),k&&this.finish(),E}get duration(){const{resolved:t}=this;return t?xo(t.calculatedDuration):0}get time(){return xo(this.currentTime)}set time(t){t=Wi(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=xo(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=aX,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const lX=new Set(["opacity","clipPath","filter","transform"]);function cX(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:u="easeInOut",times:c}={}){const d={[t]:n};c&&(d.offset=c);const f=g7(u,i);return Array.isArray(f)&&(d.easing=f),e.animate(d,{delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const dX=$0(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Rh=10,fX=2e4;function hX(e){return k0(e.type)||e.type==="spring"||!m7(e.ease)}function pX(e,t){const n=new q0({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<fX;)r=n.sample(o),i.push(r.value),o+=Rh;return{times:void 0,keyframes:i,duration:o-Rh,ease:"linear"}}const X7={anticipate:A7,backInOut:T7,circInOut:R7};function mX(e){return e in X7}class _w extends W7{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new z7(o,(a,u)=>this.onKeyframesResolved(a,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:a,type:u,motionValue:c,name:d,startTime:f}=this.options;if(!(!((r=c.owner)===null||r===void 0)&&r.current))return!1;if(typeof a=="string"&&Th()&&mX(a)&&(a=X7[a]),hX(this.options)){const{onComplete:m,onUpdate:g,motionValue:v,element:$,...C}=this.options,x=pX(t,C);t=x.keyframes,t.length===1&&(t[1]=t[0]),i=x.duration,o=x.times,a=x.ease,u="keyframes"}const h=cX(c.owner.current,d,t,{...this.options,duration:i,times:o,ease:a});return h.startTime=f??this.calcStartTime(),this.pendingTimeline?(hw(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(Tp(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:i,times:o,type:u,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return xo(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return xo(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Wi(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Er;const{animation:r}=n;hw(r,t)}return Er}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:f,onComplete:h,element:m,...g}=this.options,v=new q0({...g,keyframes:r,duration:i,type:o,ease:a,times:u,isGenerator:!0}),$=Wi(this.time);d.setWithVelocity(v.sample($-Rh).value,v.sample($).value,Rh)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:u}=t;return dX()&&r&&lX.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&a!==0&&u!=="inertia"}}const gX={type:"spring",stiffness:500,damping:25,restSpeed:10},yX=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),vX={type:"keyframes",duration:.8},bX={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},$X=(e,{keyframes:t})=>t.length>2?vX:gs.has(e)?e.startsWith("scale")?yX(t[1]):gX:bX;function xX({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:u,from:c,elapsed:d,...f}){return!!Object.keys(f).length}const Y0=(e,t,n,r={},i,o)=>a=>{const u=F0(r,e)||{},c=u.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Wi(c);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:m=>{t.set(m),u.onUpdate&&u.onUpdate(m)},onComplete:()=>{a(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:o?void 0:i};xX(u)||(f={...f,...$X(e,f)}),f.duration&&(f.duration=Wi(f.duration)),f.repeatDelay&&(f.repeatDelay=Wi(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let h=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(h=!0)),h&&!o&&t.get()!==void 0){const m=Tp(f.keyframes,u);if(m!==void 0)return jt.update(()=>{f.onUpdate(m),f.onComplete()}),new NZ([])}return!o&&_w.supports(f)?new _w(f):new q0(f)};function wX({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Q7(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:u,...c}=t;r&&(a=r);const d=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const h in c){const m=e.getValue(h,(o=e.latestValues[h])!==null&&o!==void 0?o:null),g=c[h];if(g===void 0||f&&wX(f,h))continue;const v={delay:n,...F0(a||{},h)};let $=!1;if(window.MotionHandoffAnimation){const x=w7(e);if(x){const y=window.MotionHandoffAnimation(x,h,jt);y!==null&&(v.startTime=y,$=!0)}}yv(e,h),m.start(Y0(h,m,g,e.shouldReduceMotion&&$7.has(h)?{type:!1}:v,e,$));const C=m.animation;C&&d.push(C)}return u&&Promise.all(d).then(()=>{jt.update(()=>{u&&tJ(e,u)})}),d}function Ev(e,t,n={}){var r;const i=Sp(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(Q7(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:f=0,staggerChildren:h,staggerDirection:m}=o;return DX(e,t,f+d,h,m,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[d,f]=c==="beforeChildren"?[a,u]:[u,a];return d().then(()=>f())}else return Promise.all([a(),u(n.delay)])}function DX(e,t,n=0,r=0,i=1,o){const a=[],u=(e.variantChildren.size-1)*r,c=i===1?(d=0)=>d*r:(d=0)=>u-d*r;return Array.from(e.variantChildren).sort(EX).forEach((d,f)=>{d.notify("AnimationStart",t),a.push(Ev(d,t,{...o,delay:n+c(f)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function EX(e,t){return e.sortNodePosition(t)}function CX(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Ev(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Ev(e,t,n);else{const i=typeof t=="function"?Sp(e,t,n.custom):t;r=Promise.all(Q7(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const SX=w0.length;function eR(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?eR(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<SX;n++){const r=w0[n],i=e.props[r];(wc(i)||i===!1)&&(t[r]=i)}return t}const TX=[...x0].reverse(),AX=x0.length;function PX(e){return t=>Promise.all(t.map(({animation:n,options:r})=>CX(e,n,r)))}function RX(e){let t=PX(e),n=Ow(),r=!0;const i=c=>(d,f)=>{var h;const m=Sp(e,f,c==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(m){const{transition:g,transitionEnd:v,...$}=m;d={...d,...$,...v}}return d};function o(c){t=c(e)}function a(c){const{props:d}=e,f=eR(e.parent)||{},h=[],m=new Set;let g={},v=1/0;for(let C=0;C<AX;C++){const x=TX[C],y=n[x],D=d[x]!==void 0?d[x]:f[x],P=wc(D),E=x===c?y.isActive:null;E===!1&&(v=C);let T=D===f[x]&&D!==d[x]&&P;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),y.protectedKeys={...g},!y.isActive&&E===null||!D&&!y.prevProp||Ep(D)||typeof D=="boolean")continue;const k=_X(y.prevProp,D);let S=k||x===c&&y.isActive&&!T&&P||C>v&&P,U=!1;const O=Array.isArray(D)?D:[D];let F=O.reduce(i(x),{});E===!1&&(F={});const{prevResolvedValues:G={}}=y,K={...G,...F},W=R=>{S=!0,m.has(R)&&(U=!0,m.delete(R)),y.needsAnimating[R]=!0;const M=e.getValue(R);M&&(M.liveStyle=!1)};for(const R in K){const M=F[R],Y=G[R];if(g.hasOwnProperty(R))continue;let L=!1;pv(M)&&pv(Y)?L=!f7(M,Y):L=M!==Y,L?M!=null?W(R):m.add(R):M!==void 0&&m.has(R)?W(R):y.protectedKeys[R]=!0}y.prevProp=D,y.prevResolvedValues=F,y.isActive&&(g={...g,...F}),r&&e.blockInitialAnimation&&(S=!1),S&&(!(T&&k)||U)&&h.push(...O.map(R=>({animation:R,options:{type:x}})))}if(m.size){const C={};m.forEach(x=>{const y=e.getBaseTarget(x),D=e.getValue(x);D&&(D.liveStyle=!0),C[x]=y??null}),h.push({animation:C})}let $=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&($=!1),r=!1,$?t(h):Promise.resolve()}function u(c,d){var f;if(n[c].isActive===d)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(m=>{var g;return(g=m.animationState)===null||g===void 0?void 0:g.setActive(c,d)}),n[c].isActive=d;const h=a(c);for(const m in n)n[m].protectedKeys={};return h}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Ow(),r=!0}}}function _X(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!f7(t,e):!1}function Fa(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ow(){return{animate:Fa(!0),whileInView:Fa(),whileHover:Fa(),whileTap:Fa(),whileDrag:Fa(),whileFocus:Fa(),exit:Fa()}}class ga{constructor(t){this.isMounted=!1,this.node=t}update(){}}class OX extends ga{constructor(t){super(t),t.animationState||(t.animationState=RX(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ep(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let MX=0;class FX extends ga{constructor(){super(...arguments),this.id=MX++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const kX={animation:{Feature:OX},exit:{Feature:FX}};function Cc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Qc(e){return{point:{x:e.pageX,y:e.pageY}}}const BX=e=>t=>I0(t)&&e(t,Qc(t));function oc(e,t,n,r){return Cc(e,t,BX(n),r)}const Mw=(e,t)=>Math.abs(e-t);function IX(e,t){const n=Mw(e.x,t.x),r=Mw(e.y,t.y);return Math.sqrt(n**2+r**2)}class tR{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Fg(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=IX(h.offset,{x:0,y:0})>=3;if(!m&&!g)return;const{point:v}=h,{timestamp:$}=Bn;this.history.push({...v,timestamp:$});const{onStart:C,onMove:x}=this.handlers;m||(C&&C(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=Mg(m,this.transformPagePoint),jt.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{this.end();const{onEnd:g,onSessionEnd:v,resumeAnimation:$}=this.handlers;if(this.dragSnapToOrigin&&$&&$(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=Fg(h.type==="pointercancel"?this.lastMoveEventInfo:Mg(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,C),v&&v(h,C)},!I0(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Qc(t),u=Mg(a,this.transformPagePoint),{point:c}=u,{timestamp:d}=Bn;this.history=[{...c,timestamp:d}];const{onSessionStart:f}=n;f&&f(t,Fg(u,this.history)),this.removeListeners=Xc(oc(this.contextWindow,"pointermove",this.handlePointerMove),oc(this.contextWindow,"pointerup",this.handlePointerUp),oc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Eo(this.updatePoint)}}function Mg(e,t){return t?{point:t(e.point)}:e}function Fw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Fg({point:e},t){return{point:e,delta:Fw(e,nR(t)),offset:Fw(e,VX(t)),velocity:LX(t,.1)}}function VX(e){return e[0]}function nR(e){return e[e.length-1]}function LX(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=nR(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Wi(t)));)n--;if(!r)return{x:0,y:0};const o=xo(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const rR=1e-4,NX=1-rR,jX=1+rR,iR=.01,KX=0-iR,UX=0+iR;function Br(e){return e.max-e.min}function zX(e,t,n){return Math.abs(e-t)<=n}function kw(e,t,n,r=.5){e.origin=r,e.originPoint=qt(t.min,t.max,e.origin),e.scale=Br(n)/Br(t),e.translate=qt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=NX&&e.scale<=jX||isNaN(e.scale))&&(e.scale=1),(e.translate>=KX&&e.translate<=UX||isNaN(e.translate))&&(e.translate=0)}function ac(e,t,n,r){kw(e.x,t.x,n.x,r?r.originX:void 0),kw(e.y,t.y,n.y,r?r.originY:void 0)}function Bw(e,t,n){e.min=n.min+t.min,e.max=e.min+Br(t)}function WX(e,t,n){Bw(e.x,t.x,n.x),Bw(e.y,t.y,n.y)}function Iw(e,t,n){e.min=t.min-n.min,e.max=e.min+Br(t)}function sc(e,t,n){Iw(e.x,t.x,n.x),Iw(e.y,t.y,n.y)}function HX(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?qt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?qt(n,e,r.max):Math.min(e,n)),e}function Vw(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 GX(e,{top:t,left:n,bottom:r,right:i}){return{x:Vw(e.x,n,i),y:Vw(e.y,t,r)}}function Lw(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 qX(e,t){return{x:Lw(e.x,t.x),y:Lw(e.y,t.y)}}function YX(e,t){let n=.5;const r=Br(e),i=Br(t);return i>r?n=Ou(t.min,t.max-r,e.min):r>i&&(n=Ou(e.min,e.max-i,t.min)),Co(0,1,n)}function ZX(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 Cv=.35;function JX(e=Cv){return e===!1?e=0:e===!0&&(e=Cv),{x:Nw(e,"left","right"),y:Nw(e,"top","bottom")}}function Nw(e,t,n){return{min:jw(e,t),max:jw(e,n)}}function jw(e,t){return typeof e=="number"?e:e[t]||0}const Kw=()=>({translate:0,scale:1,origin:0,originPoint:0}),au=()=>({x:Kw(),y:Kw()}),Uw=()=>({min:0,max:0}),cn=()=>({x:Uw(),y:Uw()});function Qr(e){return[e("x"),e("y")]}function oR({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function XX({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function QX(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function kg(e){return e===void 0||e===1}function Sv({scale:e,scaleX:t,scaleY:n}){return!kg(e)||!kg(t)||!kg(n)}function ka(e){return Sv(e)||aR(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function aR(e){return zw(e.x)||zw(e.y)}function zw(e){return e&&e!=="0%"}function _h(e,t,n){const r=e-n,i=t*r;return n+i}function Ww(e,t,n,r,i){return i!==void 0&&(e=_h(e,i,r)),_h(e,n,r)+t}function Tv(e,t=0,n=1,r,i){e.min=Ww(e.min,t,n,r,i),e.max=Ww(e.max,t,n,r,i)}function sR(e,{x:t,y:n}){Tv(e.x,t.translate,t.scale,t.originPoint),Tv(e.y,n.translate,n.scale,n.originPoint)}const Hw=.999999999999,Gw=1.0000000000001;function eQ(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let u=0;u<i;u++){o=n[u],a=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&uu(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,sR(e,a)),r&&ka(o.latestValues)&&uu(e,o.latestValues))}t.x<Gw&&t.x>Hw&&(t.x=1),t.y<Gw&&t.y>Hw&&(t.y=1)}function su(e,t){e.min=e.min+t,e.max=e.max+t}function qw(e,t,n,r,i=.5){const o=qt(e.min,e.max,i);Tv(e,t,n,o,r)}function uu(e,t){qw(e.x,t.x,t.scaleX,t.scale,t.originX),qw(e.y,t.y,t.scaleY,t.scale,t.originY)}function uR(e,t){return oR(QX(e.getBoundingClientRect(),t))}function tQ(e,t,n){const r=uR(e,n),{scroll:i}=t;return i&&(su(r.x,i.offset.x),su(r.y,i.offset.y)),r}const lR=({current:e})=>e?e.ownerDocument.defaultView:null,nQ=new WeakMap;class rQ{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=cn(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=f=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Qc(f).point)},o=(f,h)=>{const{drag:m,dragPropagation:g,onDragStart:v}=this.getProps();if(m&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=YZ(m),!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),Qr(C=>{let x=this.getAxisMotionValue(C).get()||0;if(Hi.test(x)){const{projection:y}=this.visualElement;if(y&&y.layout){const D=y.layout.layoutBox[C];D&&(x=Br(D)*(parseFloat(x)/100))}}this.originPoint[C]=x}),v&&jt.postRender(()=>v(f,h)),yv(this.visualElement,"transform");const{animationState:$}=this.visualElement;$&&$.setActive("whileDrag",!0)},a=(f,h)=>{const{dragPropagation:m,dragDirectionLock:g,onDirectionLock:v,onDrag:$}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:C}=h;if(g&&this.currentDirection===null){this.currentDirection=iQ(C),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",h.point,C),this.updateAxis("y",h.point,C),this.visualElement.render(),$&&$(f,h)},u=(f,h)=>this.stop(f,h),c=()=>Qr(f=>{var h;return this.getAnimationState(f)==="paused"&&((h=this.getAxisMotionValue(f).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new tR(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:u,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:lR(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&jt.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!gf(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=HX(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&iu(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=GX(i.layoutBox,n):this.constraints=!1,this.elastic=JX(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Qr(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=ZX(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!iu(t))return!1;const r=t.current;Yi(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=tQ(r,i.root,this.visualElement.getTransformPagePoint());let a=qX(i.layout.layoutBox,o);if(n){const u=n(XX(a));this.hasMutatedConstraints=!!u,u&&(a=oR(u))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:u}=this.getProps(),c=this.constraints||{},d=Qr(f=>{if(!gf(f,n,this.currentDirection))return;let h=c[f]||{};a&&(h={min:0,max:0});const m=i?200:1e6,g=i?40:1e7,v={type:"inertia",velocity:r?t[f]:0,bounceStiffness:m,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(f,v)});return Promise.all(d).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return yv(this.visualElement,t),r.start(Y0(t,r,0,n,this.visualElement,!1))}stopAnimation(){Qr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Qr(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Qr(n=>{const{drag:r}=this.getProps();if(!gf(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:u}=i.layout.layoutBox[n];o.set(t[n]-qt(a,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!iu(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Qr(a=>{const u=this.getAxisMotionValue(a);if(u&&this.constraints!==!1){const c=u.get();i[a]=YX({min:c,max:c},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Qr(a=>{if(!gf(a,t,null))return;const u=this.getAxisMotionValue(a),{min:c,max:d}=this.constraints[a];u.set(qt(c,d,i[a]))})}addListeners(){if(!this.visualElement.current)return;nQ.set(this.visualElement,this);const t=this.visualElement.current,n=oc(t,"pointerdown",c=>{const{drag:d,dragListener:f=!0}=this.getProps();d&&f&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();iu(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),jt.read(r);const a=Cc(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Qr(f=>{const h=this.getAxisMotionValue(f);h&&(this.originPoint[f]+=c[f].translate,h.set(h.get()+c[f].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=Cv,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:u}}}function gf(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function iQ(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class oQ extends ga{constructor(t){super(t),this.removeGroupControls=Er,this.removeListeners=Er,this.controls=new rQ(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Er}unmount(){this.removeGroupControls(),this.removeListeners()}}const Yw=e=>(t,n)=>{e&&jt.postRender(()=>e(t,n))};class aQ extends ga{constructor(){super(...arguments),this.removePointerDownListener=Er}onPointerDown(t){this.session=new tR(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:lR(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Yw(t),onStart:Yw(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&jt.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=oc(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 Vf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Zw(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ml={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ge.test(e))e=parseFloat(e);else return e;const n=Zw(e,t.target.x),r=Zw(e,t.target.y);return`${n}% ${r}%`}},sQ={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=da.parse(e);if(i.length>5)return r;const o=da.createTransformer(e),a=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;i[0+a]/=u,i[1+a]/=c;const d=qt(u,c,.5);return typeof i[2+a]=="number"&&(i[2+a]/=d),typeof i[3+a]=="number"&&(i[3+a]/=d),o(i)}};class uQ extends b.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;AZ(lQ),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Vf.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||jt.postRender(()=>{const u=a.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),E0.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 cR(e){const[t,n]=zY(),r=b.useContext(H6);return wo.jsx(uQ,{...e,layoutGroup:r,switchLayoutGroup:b.useContext(Q6),isPresent:t,safeToRemove:n})}const lQ={borderRadius:{...Ml,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ml,borderTopRightRadius:Ml,borderBottomLeftRadius:Ml,borderBottomRightRadius:Ml,boxShadow:sQ};function cQ(e,t,n){const r=In(e)?e:Fu(e);return r.start(Y0("",r,t,n)),r.animation}function dQ(e){return e instanceof SVGElement&&e.tagName!=="svg"}const fQ=(e,t)=>e.depth-t.depth;class hQ{constructor(){this.children=[],this.isDirty=!1}add(t){V0(this.children,t),this.isDirty=!0}remove(t){L0(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(fQ),this.isDirty=!1,this.children.forEach(t)}}function pQ(e,t){const n=Gi.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Eo(r),e(o-t))};return jt.read(r,!0),()=>Eo(r)}const dR=["TopLeft","TopRight","BottomLeft","BottomRight"],mQ=dR.length,Jw=e=>typeof e=="string"?parseFloat(e):e,Xw=e=>typeof e=="number"||Ge.test(e);function gQ(e,t,n,r,i,o){i?(e.opacity=qt(0,n.opacity!==void 0?n.opacity:1,yQ(r)),e.opacityExit=qt(t.opacity!==void 0?t.opacity:1,0,vQ(r))):o&&(e.opacity=qt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<mQ;a++){const u=`border${dR[a]}Radius`;let c=Qw(t,u),d=Qw(n,u);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||Xw(c)===Xw(d)?(e[u]=Math.max(qt(Jw(c),Jw(d),r),0),(Hi.test(d)||Hi.test(c))&&(e[u]+="%")):e[u]=d}(t.rotate||n.rotate)&&(e.rotate=qt(t.rotate||0,n.rotate||0,r))}function Qw(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const yQ=fR(0,.5,P7),vQ=fR(.5,.95,Er);function fR(e,t,n){return r=>r<e?0:r>t?1:n(Ou(e,t,r))}function eD(e,t){e.min=t.min,e.max=t.max}function Jr(e,t){eD(e.x,t.x),eD(e.y,t.y)}function tD(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function nD(e,t,n,r,i){return e-=t,e=_h(e,1/n,r),i!==void 0&&(e=_h(e,1/i,r)),e}function bQ(e,t=0,n=1,r=.5,i,o=e,a=e){if(Hi.test(t)&&(t=parseFloat(t),t=qt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let u=qt(o.min,o.max,r);e===o&&(u-=t),e.min=nD(e.min,t,n,u,i),e.max=nD(e.max,t,n,u,i)}function rD(e,t,[n,r,i],o,a){bQ(e,t[n],t[r],t[i],t.scale,o,a)}const $Q=["x","scaleX","originX"],xQ=["y","scaleY","originY"];function iD(e,t,n,r){rD(e.x,t,$Q,n?n.x:void 0,r?r.x:void 0),rD(e.y,t,xQ,n?n.y:void 0,r?r.y:void 0)}function oD(e){return e.translate===0&&e.scale===1}function hR(e){return oD(e.x)&&oD(e.y)}function aD(e,t){return e.min===t.min&&e.max===t.max}function wQ(e,t){return aD(e.x,t.x)&&aD(e.y,t.y)}function sD(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function pR(e,t){return sD(e.x,t.x)&&sD(e.y,t.y)}function uD(e){return Br(e.x)/Br(e.y)}function lD(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class DQ{constructor(){this.members=[]}add(t){V0(this.members,t),t.scheduleRender()}remove(t){if(L0(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function EQ(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:f,rotateX:h,rotateY:m,skewX:g,skewY:v}=n;d&&(r=`perspective(${d}px) ${r}`),f&&(r+=`rotate(${f}deg) `),h&&(r+=`rotateX(${h}deg) `),m&&(r+=`rotateY(${m}deg) `),g&&(r+=`skewX(${g}deg) `),v&&(r+=`skewY(${v}deg) `)}const u=e.x.scale*t.x,c=e.y.scale*t.y;return(u!==1||c!==1)&&(r+=`scale(${u}, ${c})`),r||"none"}const Ba={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Yl=typeof window<"u"&&window.MotionDebug!==void 0,Bg=["","X","Y","Z"],CQ={visibility:"hidden"},cD=1e3;let SQ=0;function Ig(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function mR(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=w7(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",jt,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&mR(r)}function gR({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},u=t==null?void 0:t()){this.id=SQ++,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,Yl&&(Ba.totalNodes=Ba.resolvedTargetDeltas=Ba.recalculatedProjection=0),this.nodes.forEach(PQ),this.nodes.forEach(FQ),this.nodes.forEach(kQ),this.nodes.forEach(RQ),Yl&&window.MotionDebug.record(Ba)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new hQ)}addEventListener(a,u){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new N0),this.eventHandlers.get(a).add(u)}notifyListeners(a,...u){const c=this.eventHandlers.get(a);c&&c.notify(...u)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,u=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=dQ(a),this.instance=a;const{layoutId:c,layout:d,visualElement:f}=this.options;if(f&&!f.current&&f.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),u&&(d||c)&&(this.isLayoutDirty=!0),e){let h;const m=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=pQ(m,250),Vf.hasAnimatedSinceResize&&(Vf.hasAnimatedSinceResize=!1,this.nodes.forEach(fD))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&f&&(c||d)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m,hasRelativeTargetChanged:g,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const $=this.options.transition||f.getDefaultTransition()||NQ,{onLayoutAnimationStart:C,onLayoutAnimationComplete:x}=f.getProps(),y=!this.targetLayout||!pR(this.targetLayout,v)||g,D=!m&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||D||m&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,D);const P={...F0($,"layout"),onPlay:C,onComplete:x};(f.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P)}else m||fD(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Eo(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(BQ),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&mR(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const h=this.path[f];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:u,layout:c}=this.options;if(u===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(dD);return}this.isUpdating||this.nodes.forEach(OQ),this.isUpdating=!1,this.nodes.forEach(MQ),this.nodes.forEach(TQ),this.nodes.forEach(AQ),this.clearAllSnapshots();const u=Gi.now();Bn.delta=Co(0,1e3/60,u-Bn.timestamp),Bn.timestamp=u,Bn.isProcessing=!0,Ag.update.process(Bn),Ag.preRender.process(Bn),Ag.render.process(Bn),Bn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,E0.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(_Q),this.sharedNodes.forEach(IQ)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,jt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){jt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=cn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(u=!1),u){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!hR(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,f=d!==this.prevTransformTemplateValue;a&&(u||ka(this.latestValues)||f)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const u=this.measurePageBox();let c=this.removeElementScroll(u);return a&&(c=this.removeTransform(c)),jQ(c),{animationId:this.root.animationId,measuredBox:u,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:u}=this.options;if(!u)return cn();const c=u.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(KQ))){const{scroll:f}=this.root;f&&(su(c.x,f.offset.x),su(c.y,f.offset.y))}return c}removeElementScroll(a){var u;const c=cn();if(Jr(c,a),!((u=this.scroll)===null||u===void 0)&&u.wasRoot)return c;for(let d=0;d<this.path.length;d++){const f=this.path[d],{scroll:h,options:m}=f;f!==this.root&&h&&m.layoutScroll&&(h.wasRoot&&Jr(c,a),su(c.x,h.offset.x),su(c.y,h.offset.y))}return c}applyTransform(a,u=!1){const c=cn();Jr(c,a);for(let d=0;d<this.path.length;d++){const f=this.path[d];!u&&f.options.layoutScroll&&f.scroll&&f!==f.root&&uu(c,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),ka(f.latestValues)&&uu(c,f.latestValues)}return ka(this.latestValues)&&uu(c,this.latestValues),c}removeTransform(a){const u=cn();Jr(u,a);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!ka(d.latestValues))continue;Sv(d.latestValues)&&d.updateSnapshot();const f=cn(),h=d.measurePageBox();Jr(f,h),iD(u,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,f)}return ka(this.latestValues)&&iD(u,this.latestValues),u}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Bn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var u;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==c;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:m}=this.options;if(!(!this.layout||!(h||m))){if(this.resolvedRelativeTargetAt=Bn.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=cn(),this.relativeTargetOrigin=cn(),sc(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),Jr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=cn(),this.targetWithTransforms=cn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),WX(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Jr(this.target,this.layout.layoutBox),sR(this.target,this.targetDelta)):Jr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=cn(),this.relativeTargetOrigin=cn(),sc(this.relativeTargetOrigin,this.target,g.target),Jr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Yl&&Ba.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Sv(this.parent.latestValues)||aR(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 a;const u=this.getLead(),c=!!this.resumingFrom||this!==u;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===Bn.timestamp&&(d=!1),d)return;const{layout:f,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||!(f||h))return;Jr(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,g=this.treeScale.y;eQ(this.layoutCorrected,this.treeScale,this.path,c),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=cn());const{target:v}=u;if(!v){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(tD(this.prevProjectionDelta.x,this.projectionDelta.x),tD(this.prevProjectionDelta.y,this.projectionDelta.y)),ac(this.projectionDelta,this.layoutCorrected,v,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!lD(this.projectionDelta.x,this.prevProjectionDelta.x)||!lD(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v)),Yl&&Ba.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var u;if((u=this.options.visualElement)===null||u===void 0||u.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=au(),this.projectionDelta=au(),this.projectionDeltaWithTransform=au()}setAnimationOrigin(a,u=!1){const c=this.snapshot,d=c?c.latestValues:{},f={...this.latestValues},h=au();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const m=cn(),g=c?c.source:void 0,v=this.layout?this.layout.source:void 0,$=g!==v,C=this.getStack(),x=!C||C.members.length<=1,y=!!($&&!x&&this.options.crossfade===!0&&!this.path.some(LQ));this.animationProgress=0;let D;this.mixTargetDelta=P=>{const E=P/1e3;hD(h.x,a.x,E),hD(h.y,a.y,E),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(sc(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),VQ(this.relativeTarget,this.relativeTargetOrigin,m,E),D&&wQ(this.relativeTarget,D)&&(this.isProjectionDirty=!1),D||(D=cn()),Jr(D,this.relativeTarget)),$&&(this.animationValues=f,gQ(f,d,this.latestValues,E,y,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Eo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=jt.update(()=>{Vf.hasAnimatedSinceResize=!0,this.currentAnimation=cQ(0,cD,{...a,onUpdate:u=>{this.mixTargetDelta(u),a.onUpdate&&a.onUpdate(u)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(cD),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:u,target:c,layout:d,latestValues:f}=a;if(!(!u||!c||!d)){if(this!==a&&this.layout&&d&&yR(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||cn();const h=Br(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+h;const m=Br(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+m}Jr(u,c),uu(u,f),ac(this.projectionDeltaWithTransform,this.layoutCorrected,u,f)}}registerSharedNode(a,u){this.sharedNodes.has(a)||this.sharedNodes.set(a,new DQ),this.sharedNodes.get(a).add(u);const d=u.options.initialPromotionConfig;u.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(u):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:u}=this.options;return u?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:u}=this.options;return u?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:u,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let u=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(u=!0),!u)return;const d={};c.z&&Ig("z",a,d,this.animationValues);for(let f=0;f<Bg.length;f++)Ig(`rotate${Bg[f]}`,a,d,this.animationValues),Ig(`skew${Bg[f]}`,a,d,this.animationValues);a.render();for(const f in d)a.setStaticValue(f,d[f]),this.animationValues&&(this.animationValues[f]=d[f]);a.scheduleRender()}getProjectionStyles(a){var u,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return CQ;const d={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Bf(a==null?void 0:a.pointerEvents)||"",d.transform=f?f(this.latestValues,""):"none",d;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const $={};return this.options.layoutId&&($.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,$.pointerEvents=Bf(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!ka(this.latestValues)&&($.transform=f?f({},""):"none",this.hasProjected=!1),$}const m=h.animationValues||h.latestValues;this.applyTransformsToTarget(),d.transform=EQ(this.projectionDeltaWithTransform,this.treeScale,m),f&&(d.transform=f(m,d.transform));const{x:g,y:v}=this.projectionDelta;d.transformOrigin=`${g.origin*100}% ${v.origin*100}% 0`,h.animationValues?d.opacity=h===this?(c=(u=m.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:d.opacity=h===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const $ in Sh){if(m[$]===void 0)continue;const{correct:C,applyTo:x}=Sh[$],y=d.transform==="none"?m[$]:C(m[$],h);if(x){const D=x.length;for(let P=0;P<D;P++)d[x[P]]=y}else d[$]=y}return this.options.layoutId&&(d.pointerEvents=h===this?Bf(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var u;return(u=a.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(dD),this.root.sharedNodes.clear()}}}function TQ(e){e.updateLayout()}function AQ(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?Qr(h=>{const m=a?n.measuredBox[h]:n.layoutBox[h],g=Br(m);m.min=r[h].min,m.max=m.min+g}):yR(o,n.layoutBox,r)&&Qr(h=>{const m=a?n.measuredBox[h]:n.layoutBox[h],g=Br(r[h]);m.max=m.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+g)});const u=au();ac(u,r,n.layoutBox);const c=au();a?ac(c,e.applyTransform(i,!0),n.measuredBox):ac(c,r,n.layoutBox);const d=!hR(u);let f=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:m,layout:g}=h;if(m&&g){const v=cn();sc(v,n.layoutBox,m.layoutBox);const $=cn();sc($,r,g.layoutBox),pR(v,$)||(f=!0),h.options.layoutRoot&&(e.relativeTarget=$,e.relativeTargetOrigin=v,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:u,hasLayoutChanged:d,hasRelativeTargetChanged:f})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function PQ(e){Yl&&Ba.totalNodes++,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 RQ(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function _Q(e){e.clearSnapshot()}function dD(e){e.clearMeasurements()}function OQ(e){e.isLayoutDirty=!1}function MQ(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function fD(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function FQ(e){e.resolveTargetDelta()}function kQ(e){e.calcProjection()}function BQ(e){e.resetSkewAndRotation()}function IQ(e){e.removeLeadSnapshot()}function hD(e,t,n){e.translate=qt(t.translate,0,n),e.scale=qt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function pD(e,t,n,r){e.min=qt(t.min,n.min,r),e.max=qt(t.max,n.max,r)}function VQ(e,t,n,r){pD(e.x,t.x,n.x,r),pD(e.y,t.y,n.y,r)}function LQ(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const NQ={duration:.45,ease:[.4,0,.1,1]},mD=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),gD=mD("applewebkit/")&&!mD("chrome/")?Math.round:Er;function yD(e){e.min=gD(e.min),e.max=gD(e.max)}function jQ(e){yD(e.x),yD(e.y)}function yR(e,t,n){return e==="position"||e==="preserve-aspect"&&!zX(uD(t),uD(n),.2)}function KQ(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const UQ=gR({attachResizeListener:(e,t)=>Cc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Vg={current:void 0},vR=gR({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Vg.current){const e=new UQ({});e.mount(window),e.setOptions({layoutScroll:!0}),Vg.current=e}return Vg.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),zQ={pan:{Feature:aQ},drag:{Feature:oQ,ProjectionNode:vR,MeasureLayout:cR}};function vD(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&jt.postRender(()=>o(t,Qc(t)))}class WQ extends ga{mount(){const{current:t}=this.node;t&&(this.unmount=zZ(t,n=>(vD(this.node,n,"Start"),r=>vD(this.node,r,"End"))))}unmount(){}}class HQ extends ga{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=Xc(Cc(this.node.current,"focus",()=>this.onFocus()),Cc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function bD(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&jt.postRender(()=>o(t,Qc(t)))}class GQ extends ga{mount(){const{current:t}=this.node;t&&(this.unmount=qZ(t,n=>(bD(this.node,n,"Start"),(r,{success:i})=>bD(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Av=new WeakMap,Lg=new WeakMap,qQ=e=>{const t=Av.get(e.target);t&&t(e)},YQ=e=>{e.forEach(qQ)};function ZQ({root:e,...t}){const n=e||document;Lg.has(n)||Lg.set(n,{});const r=Lg.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(YQ,{root:e,...t})),r[i]}function JQ(e,t,n){const r=ZQ(t);return Av.set(e,n),r.observe(e),()=>{Av.delete(e),r.unobserve(e)}}const XQ={some:0,all:1};class QQ extends ga{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:XQ[i]},u=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),m=d?f:h;m&&m(c)};return JQ(this.node.current,a,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(eee(t,n))&&this.startObserver()}unmount(){}}function eee({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const tee={inView:{Feature:QQ},tap:{Feature:GQ},focus:{Feature:HQ},hover:{Feature:WQ}},nee={layout:{ProjectionNode:vR,MeasureLayout:cR}},Pv={current:null},bR={current:!1};function ree(){if(bR.current=!0,!!b0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Pv.current=e.matches;e.addListener(t),t()}else Pv.current=!1}const iee=[...U7,Yn,da],oee=e=>iee.find(K7(e)),$D=new WeakMap;function aee(e,t,n){for(const r in t){const i=t[r],o=n[r];if(In(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&wp(i.version==="11.18.0",`Attempting to mix Motion versions ${i.version} with 11.18.0 may not work as expected.`);else if(In(o))e.addValue(r,Fu(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,Fu(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const xD=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class see{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=H0,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=Gi.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,jt.render(this.render,!1,!0))};const{latestValues:c,renderState:d,onUpdate:f}=a;this.onUpdate=f,this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=Cp(n),this.isVariantNode=J6(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in m){const v=m[g];c[g]!==void 0&&In(v)&&v.set(c[g],!1)}}mount(t){this.current=t,$D.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)),bR.current||ree(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Pv.current,process.env.NODE_ENV!=="production"&&wp(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(){$D.delete(this.current),this.projection&&this.projection.unmount(),Eo(this.notifyUpdate),Eo(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=gs.has(t),i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&jt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Mu){const n=Mu[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):cn()}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<xD.length;r++){const i=xD[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=aee(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=Fu(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(N7(i)||_7(i))?i=parseFloat(i):!oee(i)&&da.test(n)&&(i=I7(t,n)),this.setBaseTarget(t,In(i)?i.get():i)),In(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=S0(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!In(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new N0),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class $R extends see{constructor(){super(...arguments),this.KeyframeResolver=z7}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;In(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function uee(e){return window.getComputedStyle(e)}class lee extends $R{constructor(){super(...arguments),this.type="html",this.renderInstance=a7}readValueFromInstance(t,n){if(gs.has(n)){const r=W0(n);return r&&r.default||0}else{const r=uee(t),i=(r7(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return uR(t,n)}build(t,n,r){P0(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return M0(t,n,r)}}class cee extends $R{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=cn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(gs.has(n)){const r=W0(n);return r&&r.default||0}return n=s7.has(n)?n:D0(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return c7(t,n,r)}build(t,n,r){R0(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){u7(t,n,r,i)}mount(t){this.isSVGTag=O0(t.tagName),super.mount(t)}}const dee=(e,t)=>C0(e)?new cee(t):new lee(t,{allowProjection:e!==b.Fragment}),fee=IZ({...kX,...tee,...zQ,...nee},dee),xR=XY(fee);function wR(e){const t=Yc(()=>Fu(e)),{isStatic:n}=b.useContext(v0);if(n){const[,r]=b.useState(e);b.useEffect(()=>t.on("change",r),[])}return t}function DR(e,t){const n=wR(t()),r=()=>n.set(t());return r(),G6(()=>{const i=()=>jt.preRender(r,!1,!0),o=e.map(a=>a.on("change",i));return()=>{o.forEach(a=>a()),Eo(r)}}),n}const hee=e=>e&&typeof e=="object"&&e.mix,pee=e=>hee(e)?e.mix:void 0;function mee(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],o=e[2+n],a=e[3+n],u=J7(i,o,{mixer:pee(o[0]),...a});return t?u(r):u}function gee(e){rc.current=[],e();const t=DR(rc.current,e);return rc.current=void 0,t}function yee(e,t,n,r){if(typeof e=="function")return gee(e);const i=typeof t=="function"?t:mee(t,n,r);return Array.isArray(e)?wD(e,i):wD([e],([o])=>i(o))}function wD(e,t){const n=Yc(()=>[]);return DR(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}const ER=b.createContext(null);function vee(e,t,n,r){if(!r)return e;const i=e.findIndex(f=>f.value===t);if(i===-1)return e;const o=r>0?1:-1,a=e[i+o];if(!a)return e;const u=e[i],c=a.layout,d=qt(c.min,c.max,.5);return o===1&&u.layout.max+n>d||o===-1&&u.layout.min+n<d?JZ(e,i,i+o):e}function bee({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...o},a){const u=Yc(()=>xR[t]),c=[],d=b.useRef(!1);Yi(!!i,"Reorder.Group must be provided a values prop");const f={axis:n,registerItem:(h,m)=>{const g=c.findIndex(v=>h===v.value);g!==-1?c[g].layout=m[n]:c.push({value:h,layout:m[n]}),c.sort(wee)},updateOrder:(h,m,g)=>{if(d.current)return;const v=vee(c,h,m,g);c!==v&&(d.current=!0,r(v.map(xee).filter($=>i.indexOf($)!==-1)))}};return b.useEffect(()=>{d.current=!1}),wo.jsx(u,{...o,ref:a,ignoreStrict:!0,children:wo.jsx(ER.Provider,{value:f,children:e})})}const $ee=b.forwardRef(bee);function xee(e){return e.value}function wee(e,t){return e.layout.min-t.layout.min}function DD(e,t=0){return In(e)?e:wR(t)}function Dee({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:o=!0,...a},u){const c=Yc(()=>xR[r]),d=b.useContext(ER),f={x:DD(t.x),y:DD(t.y)},h=yee([f.x,f.y],([$,C])=>$||C?1:"unset");Yi(!!d,"Reorder.Item must be a child of Reorder.Group");const{axis:m,registerItem:g,updateOrder:v}=d;return wo.jsx(c,{drag:m,...a,dragSnapToOrigin:!0,style:{...t,x:f.x,y:f.y,zIndex:h},layout:o,onDrag:($,C)=>{const{velocity:x}=C;x[m]&&v(n,f[m].get(),x[m]),i&&i($,C)},onLayoutMeasure:$=>g(n,$),ref:u,ignoreStrict:!0,children:e})}const Eee=b.forwardRef(Dee);function CR(e){return t=>typeof t===e}var Cee=CR("function"),See=e=>e===null,ED=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",CD=e=>!Tee(e)&&!See(e)&&(Cee(e)||typeof e=="object"),Tee=CR("undefined");function Aee(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!lr(e[r],t[r]))return!1;return!0}function Pee(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 Ree(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(!lr(n[1],t.get(n[0])))return!1;return!0}function _ee(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 lr(e,t){if(e===t)return!0;if(e&&CD(e)&&t&&CD(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return Aee(e,t);if(e instanceof Map&&t instanceof Map)return Ree(e,t);if(e instanceof Set&&t instanceof Set)return _ee(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return Pee(e,t);if(ED(e)&&ED(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(let i=n.length;i--!==0;){const o=n[i];if(!(o==="_owner"&&e.$$typeof)&&!lr(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var Oee=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],Mee=["bigint","boolean","null","number","string","symbol","undefined"];function Ap(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(Fee(t))return t}function Si(e){return t=>Ap(t)===e}function Fee(e){return Oee.includes(e)}function Xu(e){return t=>typeof t===e}function kee(e){return Mee.includes(e)}var Bee=["innerHTML","ownerDocument","style","attributes","nodeValue"];function Oe(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(Oe.array(e))return"Array";if(Oe.plainFunction(e))return"Function";const t=Ap(e);return t||"Object"}Oe.array=Array.isArray;Oe.arrayOf=(e,t)=>!Oe.array(e)&&!Oe.function(t)?!1:e.every(n=>t(n));Oe.asyncGeneratorFunction=e=>Ap(e)==="AsyncGeneratorFunction";Oe.asyncFunction=Si("AsyncFunction");Oe.bigint=Xu("bigint");Oe.boolean=e=>e===!0||e===!1;Oe.date=Si("Date");Oe.defined=e=>!Oe.undefined(e);Oe.domElement=e=>Oe.object(e)&&!Oe.plainObject(e)&&e.nodeType===1&&Oe.string(e.nodeName)&&Bee.every(t=>t in e);Oe.empty=e=>Oe.string(e)&&e.length===0||Oe.array(e)&&e.length===0||Oe.object(e)&&!Oe.map(e)&&!Oe.set(e)&&Object.keys(e).length===0||Oe.set(e)&&e.size===0||Oe.map(e)&&e.size===0;Oe.error=Si("Error");Oe.function=Xu("function");Oe.generator=e=>Oe.iterable(e)&&Oe.function(e.next)&&Oe.function(e.throw);Oe.generatorFunction=Si("GeneratorFunction");Oe.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;Oe.iterable=e=>!Oe.nullOrUndefined(e)&&Oe.function(e[Symbol.iterator]);Oe.map=Si("Map");Oe.nan=e=>Number.isNaN(e);Oe.null=e=>e===null;Oe.nullOrUndefined=e=>Oe.null(e)||Oe.undefined(e);Oe.number=e=>Xu("number")(e)&&!Oe.nan(e);Oe.numericString=e=>Oe.string(e)&&e.length>0&&!Number.isNaN(Number(e));Oe.object=e=>!Oe.nullOrUndefined(e)&&(Oe.function(e)||typeof e=="object");Oe.oneOf=(e,t)=>Oe.array(e)?e.indexOf(t)>-1:!1;Oe.plainFunction=Si("Function");Oe.plainObject=e=>{if(Ap(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};Oe.primitive=e=>Oe.null(e)||kee(typeof e);Oe.promise=Si("Promise");Oe.propertyOf=(e,t,n)=>{if(!Oe.object(e)||!t)return!1;const r=e[t];return Oe.function(n)?n(r):Oe.defined(r)};Oe.regexp=Si("RegExp");Oe.set=Si("Set");Oe.string=Xu("string");Oe.symbol=Xu("symbol");Oe.undefined=Xu("undefined");Oe.weakMap=Si("WeakMap");Oe.weakSet=Si("WeakSet");var ke=Oe;function Iee(...e){return e.every(t=>ke.string(t)||ke.array(t)||ke.plainObject(t))}function Vee(e,t,n){return SR(e,t)?[e,t].every(ke.array)?!e.some(RD(n))&&t.some(RD(n)):[e,t].every(ke.plainObject)?!Object.entries(e).some(PD(n))&&Object.entries(t).some(PD(n)):t===n:!1}function SD(e,t,n){const{actual:r,key:i,previous:o,type:a}=n,u=ji(e,i),c=ji(t,i);let d=[u,c].every(ke.number)&&(a==="increased"?u<c:u>c);return ke.undefined(r)||(d=d&&c===r),ke.undefined(o)||(d=d&&u===o),d}function TD(e,t,n){const{key:r,type:i,value:o}=n,a=ji(e,r),u=ji(t,r),c=i==="added"?a:u,d=i==="added"?u:a;if(!ke.nullOrUndefined(o)){if(ke.defined(c)){if(ke.array(c)||ke.plainObject(c))return Vee(c,d,o)}else return lr(d,o);return!1}return[a,u].every(ke.array)?!d.every(Z0(c)):[a,u].every(ke.plainObject)?Lee(Object.keys(c),Object.keys(d)):![a,u].every(f=>ke.primitive(f)&&ke.defined(f))&&(i==="added"?!ke.defined(a)&&ke.defined(u):ke.defined(a)&&!ke.defined(u))}function AD(e,t,{key:n}={}){let r=ji(e,n),i=ji(t,n);if(!SR(r,i))throw new TypeError("Inputs have different types");if(!Iee(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(ke.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function PD(e){return([t,n])=>ke.array(e)?lr(e,n)||e.some(r=>lr(r,n)||ke.array(n)&&Z0(n)(r)):ke.plainObject(e)&&e[t]?!!e[t]&&lr(e[t],n):lr(e,n)}function Lee(e,t){return t.some(n=>!e.includes(n))}function RD(e){return t=>ke.array(e)?e.some(n=>lr(n,t)||ke.array(t)&&Z0(t)(n)):lr(e,t)}function Fl(e,t){return ke.array(e)?e.some(n=>lr(n,t)):lr(e,t)}function Z0(e){return t=>e.some(n=>lr(n,t))}function SR(...e){return e.every(ke.array)||e.every(ke.number)||e.every(ke.plainObject)||e.every(ke.string)}function ji(e,t){return ke.plainObject(e)||ke.array(e)?ke.string(t)?t.split(".").reduce((r,i)=>r&&r[i],e):ke.number(t)?e[t]:e:e}function Oh(e,t){if([e,t].some(ke.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(f=>ke.plainObject(f)||ke.array(f)))throw new Error("Expected plain objects or array");return{added:(f,h)=>{try{return TD(e,t,{key:f,type:"added",value:h})}catch{return!1}},changed:(f,h,m)=>{try{const g=ji(e,f),v=ji(t,f),$=ke.defined(h),C=ke.defined(m);if($||C){const x=C?Fl(m,g):!Fl(h,g),y=Fl(h,v);return x&&y}return[g,v].every(ke.array)||[g,v].every(ke.plainObject)?!lr(g,v):g!==v}catch{return!1}},changedFrom:(f,h,m)=>{if(!ke.defined(f))return!1;try{const g=ji(e,f),v=ji(t,f),$=ke.defined(m);return Fl(h,g)&&($?Fl(m,v):!$)}catch{return!1}},decreased:(f,h,m)=>{if(!ke.defined(f))return!1;try{return SD(e,t,{key:f,actual:h,previous:m,type:"decreased"})}catch{return!1}},emptied:f=>{try{const[h,m]=AD(e,t,{key:f});return!!h.length&&!m.length}catch{return!1}},filled:f=>{try{const[h,m]=AD(e,t,{key:f});return!h.length&&!!m.length}catch{return!1}},increased:(f,h,m)=>{if(!ke.defined(f))return!1;try{return SD(e,t,{key:f,actual:h,previous:m,type:"increased"})}catch{return!1}},removed:(f,h)=>{try{return TD(e,t,{key:f,type:"removed",value:h})}catch{return!1}}}}var Ng,_D;function Nee(){if(_D)return Ng;_D=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;Ng={left:i("scrollLeft"),top:i("scrollTop")};function i(u){return function(d,f,h,m){h=h||{},typeof h=="function"&&(m=h,h={}),typeof m!="function"&&(m=a);var g=r(),v=d[u],$=h.ease||o,C=isNaN(h.duration)?350:+h.duration,x=!1;return v===f?m(e,d[u]):requestAnimationFrame(D),y;function y(){x=!0}function D(P){if(x)return m(t,d[u]);var E=r(),T=n(1,(E-g)/C),k=$(T);d[u]=k*(f-v)+v,T<1?requestAnimationFrame(D):requestAnimationFrame(function(){m(null,d[u])})}}}function o(u){return .5*(1-Math.cos(Math.PI*u))}function a(){}return Ng}var jee=Nee();const Kee=pa(jee);var Lf={exports:{}},Uee=Lf.exports,OD;function zee(){return OD||(OD=1,function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(Uee,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})}(Lf)),Lf.exports}var Wee=zee();const TR=pa(Wee);var jg,MD;function Hee(){if(MD)return jg;MD=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,jg=n,jg}var Gee=Hee();const FD=pa(Gee);var Kg,kD;function qee(){if(kD)return Kg;kD=1;var e=function(y){return t(y)&&!n(y)};function t(x){return!!x&&typeof x=="object"}function n(x){var y=Object.prototype.toString.call(x);return y==="[object RegExp]"||y==="[object Date]"||o(x)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function o(x){return x.$$typeof===i}function a(x){return Array.isArray(x)?[]:{}}function u(x,y){return y.clone!==!1&&y.isMergeableObject(x)?$(a(x),x,y):x}function c(x,y,D){return x.concat(y).map(function(P){return u(P,D)})}function d(x,y){if(!y.customMerge)return $;var D=y.customMerge(x);return typeof D=="function"?D:$}function f(x){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(x).filter(function(y){return Object.propertyIsEnumerable.call(x,y)}):[]}function h(x){return Object.keys(x).concat(f(x))}function m(x,y){try{return y in x}catch{return!1}}function g(x,y){return m(x,y)&&!(Object.hasOwnProperty.call(x,y)&&Object.propertyIsEnumerable.call(x,y))}function v(x,y,D){var P={};return D.isMergeableObject(x)&&h(x).forEach(function(E){P[E]=u(x[E],D)}),h(y).forEach(function(E){g(x,E)||(m(x,E)&&D.isMergeableObject(y[E])?P[E]=d(E,D)(x[E],y[E],D):P[E]=u(y[E],D))}),P}function $(x,y,D){D=D||{},D.arrayMerge=D.arrayMerge||c,D.isMergeableObject=D.isMergeableObject||e,D.cloneUnlessOtherwiseSpecified=u;var P=Array.isArray(y),E=Array.isArray(x),T=P===E;return T?P?D.arrayMerge(x,y,D):v(x,y,D):u(y,D)}$.all=function(y,D){if(!Array.isArray(y))throw new Error("first argument should be an array");return y.reduce(function(P,E){return $(P,E,D)},{})};var C=$;return Kg=C,Kg}var Yee=qee();const bi=pa(Yee);var yf={exports:{}},vf={exports:{}},Et={};/** @license React v16.13.1
|
|
156
|
+
* react-is.production.min.js
|
|
157
|
+
*
|
|
158
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
159
|
+
*
|
|
160
|
+
* This source code is licensed under the MIT license found in the
|
|
161
|
+
* LICENSE file in the root directory of this source tree.
|
|
162
|
+
*/var BD;function Zee(){if(BD)return Et;BD=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,$=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function D(E){if(typeof E=="object"&&E!==null){var T=E.$$typeof;switch(T){case t:switch(E=E.type,E){case c:case d:case r:case o:case i:case h:return E;default:switch(E=E&&E.$$typeof,E){case u:case f:case v:case g:case a:return E;default:return T}}case n:return T}}}function P(E){return D(E)===d}return Et.AsyncMode=c,Et.ConcurrentMode=d,Et.ContextConsumer=u,Et.ContextProvider=a,Et.Element=t,Et.ForwardRef=f,Et.Fragment=r,Et.Lazy=v,Et.Memo=g,Et.Portal=n,Et.Profiler=o,Et.StrictMode=i,Et.Suspense=h,Et.isAsyncMode=function(E){return P(E)||D(E)===c},Et.isConcurrentMode=P,Et.isContextConsumer=function(E){return D(E)===u},Et.isContextProvider=function(E){return D(E)===a},Et.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===t},Et.isForwardRef=function(E){return D(E)===f},Et.isFragment=function(E){return D(E)===r},Et.isLazy=function(E){return D(E)===v},Et.isMemo=function(E){return D(E)===g},Et.isPortal=function(E){return D(E)===n},Et.isProfiler=function(E){return D(E)===o},Et.isStrictMode=function(E){return D(E)===i},Et.isSuspense=function(E){return D(E)===h},Et.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===r||E===d||E===o||E===i||E===h||E===m||typeof E=="object"&&E!==null&&(E.$$typeof===v||E.$$typeof===g||E.$$typeof===a||E.$$typeof===u||E.$$typeof===f||E.$$typeof===C||E.$$typeof===x||E.$$typeof===y||E.$$typeof===$)},Et.typeOf=D,Et}var Ct={};/** @license React v16.13.1
|
|
163
|
+
* react-is.development.js
|
|
164
|
+
*
|
|
165
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
166
|
+
*
|
|
167
|
+
* This source code is licensed under the MIT license found in the
|
|
168
|
+
* LICENSE file in the root directory of this source tree.
|
|
169
|
+
*/var ID;function Jee(){return ID||(ID=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,$=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function D(le){return typeof le=="string"||typeof le=="function"||le===r||le===d||le===o||le===i||le===h||le===m||typeof le=="object"&&le!==null&&(le.$$typeof===v||le.$$typeof===g||le.$$typeof===a||le.$$typeof===u||le.$$typeof===f||le.$$typeof===C||le.$$typeof===x||le.$$typeof===y||le.$$typeof===$)}function P(le){if(typeof le=="object"&&le!==null){var Fe=le.$$typeof;switch(Fe){case t:var et=le.type;switch(et){case c:case d:case r:case o:case i:case h:return et;default:var dt=et&&et.$$typeof;switch(dt){case u:case f:case v:case g:case a:return dt;default:return Fe}}case n:return Fe}}}var E=c,T=d,k=u,S=a,U=t,O=f,F=r,G=v,K=g,W=n,j=o,V=i,R=h,M=!1;function Y(le){return M||(M=!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.")),L(le)||P(le)===c}function L(le){return P(le)===d}function z(le){return P(le)===u}function re(le){return P(le)===a}function oe(le){return typeof le=="object"&&le!==null&&le.$$typeof===t}function fe(le){return P(le)===f}function ie(le){return P(le)===r}function Ee(le){return P(le)===v}function $e(le){return P(le)===g}function ne(le){return P(le)===n}function ye(le){return P(le)===o}function xe(le){return P(le)===i}function he(le){return P(le)===h}Ct.AsyncMode=E,Ct.ConcurrentMode=T,Ct.ContextConsumer=k,Ct.ContextProvider=S,Ct.Element=U,Ct.ForwardRef=O,Ct.Fragment=F,Ct.Lazy=G,Ct.Memo=K,Ct.Portal=W,Ct.Profiler=j,Ct.StrictMode=V,Ct.Suspense=R,Ct.isAsyncMode=Y,Ct.isConcurrentMode=L,Ct.isContextConsumer=z,Ct.isContextProvider=re,Ct.isElement=oe,Ct.isForwardRef=fe,Ct.isFragment=ie,Ct.isLazy=Ee,Ct.isMemo=$e,Ct.isPortal=ne,Ct.isProfiler=ye,Ct.isStrictMode=xe,Ct.isSuspense=he,Ct.isValidElementType=D,Ct.typeOf=P}()),Ct}var VD;function AR(){return VD||(VD=1,process.env.NODE_ENV==="production"?vf.exports=Zee():vf.exports=Jee()),vf.exports}/*
|
|
170
|
+
object-assign
|
|
171
|
+
(c) Sindre Sorhus
|
|
172
|
+
@license MIT
|
|
173
|
+
*/var Ug,LD;function Xee(){if(LD)return Ug;LD=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},u=0;u<10;u++)a["_"+String.fromCharCode(u)]=u;var c=Object.getOwnPropertyNames(a).map(function(f){return a[f]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(f){d[f]=f}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ug=i()?Object.assign:function(o,a){for(var u,c=r(o),d,f=1;f<arguments.length;f++){u=Object(arguments[f]);for(var h in u)t.call(u,h)&&(c[h]=u[h]);if(e){d=e(u);for(var m=0;m<d.length;m++)n.call(u,d[m])&&(c[d[m]]=u[d[m]])}}return c},Ug}var zg,ND;function J0(){if(ND)return zg;ND=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return zg=e,zg}var Wg,jD;function PR(){return jD||(jD=1,Wg=Function.call.bind(Object.prototype.hasOwnProperty)),Wg}var Hg,KD;function Qee(){if(KD)return Hg;KD=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=J0(),n={},r=PR();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,u,c,d){if(process.env.NODE_ENV!=="production"){for(var f in o)if(r(o,f)){var h;try{if(typeof o[f]!="function"){var m=Error((c||"React class")+": "+u+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}h=o[f](a,f,c,u,null,t)}catch(v){h=v}if(h&&!(h instanceof Error)&&e((c||"React class")+": type specification of "+u+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in n)){n[h.message]=!0;var g=d?d():"";e("Failed "+u+" type: "+h.message+(g??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Hg=i,Hg}var Gg,UD;function ete(){if(UD)return Gg;UD=1;var e=AR(),t=Xee(),n=J0(),r=PR(),i=Qee(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(u){var c="Warning: "+u;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return Gg=function(u,c){var d=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function h(L){var z=L&&(d&&L[d]||L[f]);if(typeof z=="function")return z}var m="<<anonymous>>",g={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:y(),arrayOf:D,element:P(),elementType:E(),instanceOf:T,node:O(),objectOf:S,oneOf:k,oneOfType:U,shape:G,exact:K};function v(L,z){return L===z?L!==0||1/L===1/z:L!==L&&z!==z}function $(L,z){this.message=L,this.data=z&&typeof z=="object"?z:{},this.stack=""}$.prototype=Error.prototype;function C(L){if(process.env.NODE_ENV!=="production")var z={},re=0;function oe(ie,Ee,$e,ne,ye,xe,he){if(ne=ne||m,xe=xe||$e,he!==n){if(c){var le=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 le.name="Invariant Violation",le}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Fe=ne+":"+$e;!z[Fe]&&re<3&&(o("You are manually calling a React.PropTypes validation function for the `"+xe+"` prop on `"+ne+"`. 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."),z[Fe]=!0,re++)}}return Ee[$e]==null?ie?Ee[$e]===null?new $("The "+ye+" `"+xe+"` is marked as required "+("in `"+ne+"`, but its value is `null`.")):new $("The "+ye+" `"+xe+"` is marked as required in "+("`"+ne+"`, but its value is `undefined`.")):null:L(Ee,$e,ne,ye,xe)}var fe=oe.bind(null,!1);return fe.isRequired=oe.bind(null,!0),fe}function x(L){function z(re,oe,fe,ie,Ee,$e){var ne=re[oe],ye=V(ne);if(ye!==L){var xe=R(ne);return new $("Invalid "+ie+" `"+Ee+"` of type "+("`"+xe+"` supplied to `"+fe+"`, expected ")+("`"+L+"`."),{expectedType:L})}return null}return C(z)}function y(){return C(a)}function D(L){function z(re,oe,fe,ie,Ee){if(typeof L!="function")return new $("Property `"+Ee+"` of component `"+fe+"` has invalid PropType notation inside arrayOf.");var $e=re[oe];if(!Array.isArray($e)){var ne=V($e);return new $("Invalid "+ie+" `"+Ee+"` of type "+("`"+ne+"` supplied to `"+fe+"`, expected an array."))}for(var ye=0;ye<$e.length;ye++){var xe=L($e,ye,fe,ie,Ee+"["+ye+"]",n);if(xe instanceof Error)return xe}return null}return C(z)}function P(){function L(z,re,oe,fe,ie){var Ee=z[re];if(!u(Ee)){var $e=V(Ee);return new $("Invalid "+fe+" `"+ie+"` of type "+("`"+$e+"` supplied to `"+oe+"`, expected a single ReactElement."))}return null}return C(L)}function E(){function L(z,re,oe,fe,ie){var Ee=z[re];if(!e.isValidElementType(Ee)){var $e=V(Ee);return new $("Invalid "+fe+" `"+ie+"` of type "+("`"+$e+"` supplied to `"+oe+"`, expected a single ReactElement type."))}return null}return C(L)}function T(L){function z(re,oe,fe,ie,Ee){if(!(re[oe]instanceof L)){var $e=L.name||m,ne=Y(re[oe]);return new $("Invalid "+ie+" `"+Ee+"` of type "+("`"+ne+"` supplied to `"+fe+"`, expected ")+("instance of `"+$e+"`."))}return null}return C(z)}function k(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function z(re,oe,fe,ie,Ee){for(var $e=re[oe],ne=0;ne<L.length;ne++)if(v($e,L[ne]))return null;var ye=JSON.stringify(L,function(he,le){var Fe=R(le);return Fe==="symbol"?String(le):le});return new $("Invalid "+ie+" `"+Ee+"` of value `"+String($e)+"` "+("supplied to `"+fe+"`, expected one of "+ye+"."))}return C(z)}function S(L){function z(re,oe,fe,ie,Ee){if(typeof L!="function")return new $("Property `"+Ee+"` of component `"+fe+"` has invalid PropType notation inside objectOf.");var $e=re[oe],ne=V($e);if(ne!=="object")return new $("Invalid "+ie+" `"+Ee+"` of type "+("`"+ne+"` supplied to `"+fe+"`, expected an object."));for(var ye in $e)if(r($e,ye)){var xe=L($e,ye,fe,ie,Ee+"."+ye,n);if(xe instanceof Error)return xe}return null}return C(z)}function U(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var z=0;z<L.length;z++){var re=L[z];if(typeof re!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+M(re)+" at index "+z+"."),a}function oe(fe,ie,Ee,$e,ne){for(var ye=[],xe=0;xe<L.length;xe++){var he=L[xe],le=he(fe,ie,Ee,$e,ne,n);if(le==null)return null;le.data&&r(le.data,"expectedType")&&ye.push(le.data.expectedType)}var Fe=ye.length>0?", expected one of type ["+ye.join(", ")+"]":"";return new $("Invalid "+$e+" `"+ne+"` supplied to "+("`"+Ee+"`"+Fe+"."))}return C(oe)}function O(){function L(z,re,oe,fe,ie){return W(z[re])?null:new $("Invalid "+fe+" `"+ie+"` supplied to "+("`"+oe+"`, expected a ReactNode."))}return C(L)}function F(L,z,re,oe,fe){return new $((L||"React class")+": "+z+" type `"+re+"."+oe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+fe+"`.")}function G(L){function z(re,oe,fe,ie,Ee){var $e=re[oe],ne=V($e);if(ne!=="object")return new $("Invalid "+ie+" `"+Ee+"` of type `"+ne+"` "+("supplied to `"+fe+"`, expected `object`."));for(var ye in L){var xe=L[ye];if(typeof xe!="function")return F(fe,ie,Ee,ye,R(xe));var he=xe($e,ye,fe,ie,Ee+"."+ye,n);if(he)return he}return null}return C(z)}function K(L){function z(re,oe,fe,ie,Ee){var $e=re[oe],ne=V($e);if(ne!=="object")return new $("Invalid "+ie+" `"+Ee+"` of type `"+ne+"` "+("supplied to `"+fe+"`, expected `object`."));var ye=t({},re[oe],L);for(var xe in ye){var he=L[xe];if(r(L,xe)&&typeof he!="function")return F(fe,ie,Ee,xe,R(he));if(!he)return new $("Invalid "+ie+" `"+Ee+"` key `"+xe+"` supplied to `"+fe+"`.\nBad object: "+JSON.stringify(re[oe],null," ")+`
|
|
174
|
+
Valid keys: `+JSON.stringify(Object.keys(L),null," "));var le=he($e,xe,fe,ie,Ee+"."+xe,n);if(le)return le}return null}return C(z)}function W(L){switch(typeof L){case"number":case"string":case"undefined":return!0;case"boolean":return!L;case"object":if(Array.isArray(L))return L.every(W);if(L===null||u(L))return!0;var z=h(L);if(z){var re=z.call(L),oe;if(z!==L.entries){for(;!(oe=re.next()).done;)if(!W(oe.value))return!1}else for(;!(oe=re.next()).done;){var fe=oe.value;if(fe&&!W(fe[1]))return!1}}else return!1;return!0;default:return!1}}function j(L,z){return L==="symbol"?!0:z?z["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&z instanceof Symbol:!1}function V(L){var z=typeof L;return Array.isArray(L)?"array":L instanceof RegExp?"object":j(z,L)?"symbol":z}function R(L){if(typeof L>"u"||L===null)return""+L;var z=V(L);if(z==="object"){if(L instanceof Date)return"date";if(L instanceof RegExp)return"regexp"}return z}function M(L){var z=R(L);switch(z){case"array":case"object":return"an "+z;case"boolean":case"date":case"regexp":return"a "+z;default:return z}}function Y(L){return!L.constructor||!L.constructor.name?m:L.constructor.name}return g.checkPropTypes=i,g.resetWarningCache=i.resetWarningCache,g.PropTypes=g,g},Gg}var qg,zD;function tte(){if(zD)return qg;zD=1;var e=J0();function t(){}function n(){}return n.resetWarningCache=t,qg=function(){function r(a,u,c,d,f,h){if(h!==e){var m=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 m.name="Invariant Violation",m}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},qg}var WD;function nte(){if(WD)return yf.exports;if(WD=1,process.env.NODE_ENV!=="production"){var e=AR(),t=!0;yf.exports=ete()(e.isElement,t)}else yf.exports=tte()();return yf.exports}var rte=nte();const Se=pa(rte);/**!
|
|
175
|
+
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
|
176
|
+
* @version 1.16.1
|
|
177
|
+
* @license
|
|
178
|
+
* Copyright (c) 2016 Federico Zivolo and contributors
|
|
179
|
+
*
|
|
180
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
181
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
182
|
+
* in the Software without restriction, including without limitation the rights
|
|
183
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
184
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
185
|
+
* furnished to do so, subject to the following conditions:
|
|
186
|
+
*
|
|
187
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
188
|
+
* copies or substantial portions of the Software.
|
|
189
|
+
*
|
|
190
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
191
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
192
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
193
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
194
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
195
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
196
|
+
* SOFTWARE.
|
|
197
|
+
*/var ed=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",ite=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(ed&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function ote(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function ate(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},ite))}}var ste=ed&&window.Promise,ute=ste?ote:ate;function RR(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function ys(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function X0(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function td(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=ys(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:td(X0(e))}function _R(e){return e&&e.referenceNode?e.referenceNode:e}var HD=ed&&!!(window.MSInputMethodContext&&document.documentMode),GD=ed&&/MSIE 10/.test(navigator.userAgent);function Qu(e){return e===11?HD:e===10?GD:HD||GD}function Bu(e){if(!e)return document.documentElement;for(var t=Qu(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&&ys(n,"position")==="static"?Bu(n):n}function lte(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||Bu(e.firstElementChild)===e}function Rv(e){return e.parentNode!==null?Rv(e.parentNode):e}function Mh(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a=o.commonAncestorContainer;if(e!==a&&t!==a||r.contains(i))return lte(a)?a:Bu(a);var u=Rv(e);return u.host?Mh(u.host,t):Mh(e,Rv(t).host)}function Iu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",n=t==="top"?"scrollTop":"scrollLeft",r=e.nodeName;if(r==="BODY"||r==="HTML"){var i=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||i;return o[n]}return e[n]}function cte(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Iu(t,"top"),i=Iu(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function qD(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 YD(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Qu(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function OR(e){var t=e.body,n=e.documentElement,r=Qu(10)&&getComputedStyle(n);return{height:YD("Height",t,n,r),width:YD("Width",t,n,r)}}var dte=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},fte=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}}(),Vu=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},oi=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 fa(e){return oi({},e,{right:e.left+e.width,bottom:e.top+e.height})}function _v(e){var t={};try{if(Qu(10)){t=e.getBoundingClientRect();var n=Iu(e,"top"),r=Iu(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch{}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o=e.nodeName==="HTML"?OR(e.ownerDocument):{},a=o.width||e.clientWidth||i.width,u=o.height||e.clientHeight||i.height,c=e.offsetWidth-a,d=e.offsetHeight-u;if(c||d){var f=ys(e);c-=qD(f,"x"),d-=qD(f,"y"),i.width-=c,i.height-=d}return fa(i)}function Q0(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Qu(10),i=t.nodeName==="HTML",o=_v(e),a=_v(t),u=td(e),c=ys(t),d=parseFloat(c.borderTopWidth),f=parseFloat(c.borderLeftWidth);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var h=fa({top:o.top-a.top-d,left:o.left-a.left-f,width:o.width,height:o.height});if(h.marginTop=0,h.marginLeft=0,!r&&i){var m=parseFloat(c.marginTop),g=parseFloat(c.marginLeft);h.top-=d-m,h.bottom-=d-m,h.left-=f-g,h.right-=f-g,h.marginTop=m,h.marginLeft=g}return(r&&!n?t.contains(u):t===u&&u.nodeName!=="BODY")&&(h=cte(h,t)),h}function hte(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=Q0(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:Iu(n),u=t?0:Iu(n,"left"),c={top:a-r.top+r.marginTop,left:u-r.left+r.marginLeft,width:i,height:o};return fa(c)}function MR(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(ys(e,"position")==="fixed")return!0;var n=X0(e);return n?MR(n):!1}function FR(e){if(!e||!e.parentElement||Qu())return document.documentElement;for(var t=e.parentElement;t&&ys(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function e1(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,o={top:0,left:0},a=i?FR(e):Mh(e,_R(t));if(r==="viewport")o=hte(a,i);else{var u=void 0;r==="scrollParent"?(u=td(X0(t)),u.nodeName==="BODY"&&(u=e.ownerDocument.documentElement)):r==="window"?u=e.ownerDocument.documentElement:u=r;var c=Q0(u,a,i);if(u.nodeName==="HTML"&&!MR(a)){var d=OR(e.ownerDocument),f=d.height,h=d.width;o.top+=c.top-c.marginTop,o.bottom=f+c.top,o.left+=c.left-c.marginLeft,o.right=h+c.left}else o=c}n=n||0;var m=typeof n=="number";return o.left+=m?n:n.left||0,o.top+=m?n:n.top||0,o.right-=m?n:n.right||0,o.bottom-=m?n:n.bottom||0,o}function pte(e){var t=e.width,n=e.height;return t*n}function kR(e,t,n,r,i){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var a=e1(n,r,o,i),u={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},c=Object.keys(u).map(function(m){return oi({key:m},u[m],{area:pte(u[m])})}).sort(function(m,g){return g.area-m.area}),d=c.filter(function(m){var g=m.width,v=m.height;return g>=n.clientWidth&&v>=n.clientHeight}),f=d.length>0?d[0].key:c[0].key,h=e.split("-")[1];return f+(h?"-"+h:"")}function BR(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=r?FR(t):Mh(t,_R(n));return Q0(n,i,r)}function IR(e){var t=e.ownerDocument.defaultView,n=t.getComputedStyle(e),r=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),i=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0),o={width:e.offsetWidth+i,height:e.offsetHeight+r};return o}function Fh(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 VR(e,t,n){n=n.split("-")[0];var r=IR(e),i={width:r.width,height:r.height},o=["right","left"].indexOf(n)!==-1,a=o?"top":"left",u=o?"left":"top",c=o?"height":"width",d=o?"width":"height";return i[a]=t[a]+t[c]/2-r[c]/2,n===u?i[u]=t[u]-r[d]:i[u]=t[Fh(u)],i}function nd(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function mte(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===n});var r=nd(e,function(i){return i[t]===n});return e.indexOf(r)}function LR(e,t,n){var r=n===void 0?e:e.slice(0,mte(e,"name",n));return r.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var o=i.function||i.fn;i.enabled&&RR(o)&&(t.offsets.popper=fa(t.offsets.popper),t.offsets.reference=fa(t.offsets.reference),t=o(t,i))}),t}function gte(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=BR(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=kR(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=VR(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=LR(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function NR(e,t){return e.some(function(n){var r=n.name,i=n.enabled;return i&&r===t})}function t1(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if(typeof document.body.style[o]<"u")return o}return null}function yte(){return this.state.isDestroyed=!0,NR(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[t1("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function jR(e){var t=e.ownerDocument;return t?t.defaultView:window}function KR(e,t,n,r){var i=e.nodeName==="BODY",o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||KR(td(o.parentNode),t,n,r),r.push(o)}function vte(e,t,n,r){n.updateBound=r,jR(e).addEventListener("resize",n.updateBound,{passive:!0});var i=td(e);return KR(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function bte(){this.state.eventsEnabled||(this.state=vte(this.reference,this.options,this.state,this.scheduleUpdate))}function $te(e,t){return jR(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 xte(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=$te(this.reference,this.state))}function n1(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function Ov(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&n1(t[n])&&(r="px"),e.style[n]=t[n]+r})}function wte(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function Dte(e){return Ov(e.instance.popper,e.styles),wte(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&Ov(e.arrowElement,e.arrowStyles),e}function Ete(e,t,n,r,i){var o=BR(i,t,e,n.positionFixed),a=kR(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),Ov(t,{position:n.positionFixed?"fixed":"absolute"}),n}function Cte(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,u=function(x){return x},c=o(i.width),d=o(r.width),f=["left","right"].indexOf(e.placement)!==-1,h=e.placement.indexOf("-")!==-1,m=c%2===d%2,g=c%2===1&&d%2===1,v=t?f||h||m?o:a:u,$=t?o:u;return{left:v(g&&!h&&t?r.left-1:r.left),top:$(r.top),bottom:$(r.bottom),right:v(r.right)}}var Ste=ed&&/Firefox/i.test(navigator.userAgent);function Tte(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=nd(e.instance.modifiers,function(D){return D.name==="applyStyle"}).gpuAcceleration;o!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=o!==void 0?o:t.gpuAcceleration,u=Bu(e.instance.popper),c=_v(u),d={position:i.position},f=Cte(e,window.devicePixelRatio<2||!Ste),h=n==="bottom"?"top":"bottom",m=r==="right"?"left":"right",g=t1("transform"),v=void 0,$=void 0;if(h==="bottom"?u.nodeName==="HTML"?$=-u.clientHeight+f.bottom:$=-c.height+f.bottom:$=f.top,m==="right"?u.nodeName==="HTML"?v=-u.clientWidth+f.right:v=-c.width+f.right:v=f.left,a&&g)d[g]="translate3d("+v+"px, "+$+"px, 0)",d[h]=0,d[m]=0,d.willChange="transform";else{var C=h==="bottom"?-1:1,x=m==="right"?-1:1;d[h]=$*C,d[m]=v*x,d.willChange=h+", "+m}var y={"x-placement":e.placement};return e.attributes=oi({},y,e.attributes),e.styles=oi({},d,e.styles),e.arrowStyles=oi({},e.offsets.arrow,e.arrowStyles),e}function UR(e,t,n){var r=nd(e,function(u){var c=u.name;return c===t}),i=!!r&&e.some(function(u){return u.name===n&&u.enabled&&u.order<r.order});if(!i){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}function Ate(e,t){var n;if(!UR(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if(typeof r=="string"){if(r=e.instance.popper.querySelector(r),!r)return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,a=o.popper,u=o.reference,c=["left","right"].indexOf(i)!==-1,d=c?"height":"width",f=c?"Top":"Left",h=f.toLowerCase(),m=c?"left":"top",g=c?"bottom":"right",v=IR(r)[d];u[g]-v<a[h]&&(e.offsets.popper[h]-=a[h]-(u[g]-v)),u[h]+v>a[g]&&(e.offsets.popper[h]+=u[h]+v-a[g]),e.offsets.popper=fa(e.offsets.popper);var $=u[h]+u[d]/2-v/2,C=ys(e.instance.popper),x=parseFloat(C["margin"+f]),y=parseFloat(C["border"+f+"Width"]),D=$-e.offsets.popper[h]-x-y;return D=Math.max(Math.min(a[d]-v,D),0),e.arrowElement=r,e.offsets.arrow=(n={},Vu(n,h,Math.round(D)),Vu(n,m,""),n),e}function Pte(e){return e==="end"?"start":e==="start"?"end":e}var zR=["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"],Yg=zR.slice(3);function ZD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Yg.indexOf(e),r=Yg.slice(n+1).concat(Yg.slice(0,n));return t?r.reverse():r}var Zg={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Rte(e,t){if(NR(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=e1(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=Fh(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Zg.FLIP:a=[r,i];break;case Zg.CLOCKWISE:a=ZD(r);break;case Zg.COUNTERCLOCKWISE:a=ZD(r,!0);break;default:a=t.behavior}return a.forEach(function(u,c){if(r!==u||a.length===c+1)return e;r=e.placement.split("-")[0],i=Fh(r);var d=e.offsets.popper,f=e.offsets.reference,h=Math.floor,m=r==="left"&&h(d.right)>h(f.left)||r==="right"&&h(d.left)<h(f.right)||r==="top"&&h(d.bottom)>h(f.top)||r==="bottom"&&h(d.top)<h(f.bottom),g=h(d.left)<h(n.left),v=h(d.right)>h(n.right),$=h(d.top)<h(n.top),C=h(d.bottom)>h(n.bottom),x=r==="left"&&g||r==="right"&&v||r==="top"&&$||r==="bottom"&&C,y=["top","bottom"].indexOf(r)!==-1,D=!!t.flipVariations&&(y&&o==="start"&&g||y&&o==="end"&&v||!y&&o==="start"&&$||!y&&o==="end"&&C),P=!!t.flipVariationsByContent&&(y&&o==="start"&&v||y&&o==="end"&&g||!y&&o==="start"&&C||!y&&o==="end"&&$),E=D||P;(m||x||E)&&(e.flipped=!0,(m||x)&&(r=a[c+1]),E&&(o=Pte(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=oi({},e.offsets.popper,VR(e.instance.popper,e.offsets.reference,e.placement)),e=LR(e.instance.modifiers,e,"flip"))}),e}function _te(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=["top","bottom"].indexOf(i)!==-1,u=a?"right":"bottom",c=a?"left":"top",d=a?"width":"height";return n[u]<o(r[c])&&(e.offsets.popper[c]=o(r[c])-n[d]),n[c]>o(r[u])&&(e.offsets.popper[c]=o(r[u])),e}function Ote(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(a.indexOf("%")===0){var u=void 0;switch(a){case"%p":u=n;break;case"%":case"%r":default:u=r}var c=fa(u);return c[t]/100*o}else if(a==="vh"||a==="vw"){var d=void 0;return a==="vh"?d=Math.max(document.documentElement.clientHeight,window.innerHeight||0):d=Math.max(document.documentElement.clientWidth,window.innerWidth||0),d/100*o}else return o}function Mte(e,t,n,r){var i=[0,0],o=["right","left"].indexOf(r)!==-1,a=e.split(/(\+|\-)/).map(function(f){return f.trim()}),u=a.indexOf(nd(a,function(f){return f.search(/,|\s/)!==-1}));a[u]&&a[u].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,d=u!==-1?[a.slice(0,u).concat([a[u].split(c)[0]]),[a[u].split(c)[1]].concat(a.slice(u+1))]:[a];return d=d.map(function(f,h){var m=(h===1?!o:o)?"height":"width",g=!1;return f.reduce(function(v,$){return v[v.length-1]===""&&["+","-"].indexOf($)!==-1?(v[v.length-1]=$,g=!0,v):g?(v[v.length-1]+=$,g=!1,v):v.concat($)},[]).map(function(v){return Ote(v,m,t,n)})}),d.forEach(function(f,h){f.forEach(function(m,g){n1(m)&&(i[h]+=m*(f[g-1]==="-"?-1:1))})}),i}function Fte(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,u=r.split("-")[0],c=void 0;return n1(+n)?c=[+n,0]:c=Mte(n,o,a,u),u==="left"?(o.top+=c[0],o.left-=c[1]):u==="right"?(o.top+=c[0],o.left+=c[1]):u==="top"?(o.left+=c[0],o.top-=c[1]):u==="bottom"&&(o.left+=c[0],o.top+=c[1]),e.popper=o,e}function kte(e,t){var n=t.boundariesElement||Bu(e.instance.popper);e.instance.reference===n&&(n=Bu(n));var r=t1("transform"),i=e.instance.popper.style,o=i.top,a=i.left,u=i[r];i.top="",i.left="",i[r]="";var c=e1(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=u,t.boundaries=c;var d=t.priority,f=e.offsets.popper,h={primary:function(g){var v=f[g];return f[g]<c[g]&&!t.escapeWithReference&&(v=Math.max(f[g],c[g])),Vu({},g,v)},secondary:function(g){var v=g==="right"?"left":"top",$=f[v];return f[g]>c[g]&&!t.escapeWithReference&&($=Math.min(f[v],c[g]-(g==="right"?f.width:f.height))),Vu({},v,$)}};return d.forEach(function(m){var g=["left","top"].indexOf(m)!==-1?"primary":"secondary";f=oi({},f,h[g](m))}),e.offsets.popper=f,e}function Bte(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,u=["bottom","top"].indexOf(n)!==-1,c=u?"left":"top",d=u?"width":"height",f={start:Vu({},c,o[c]),end:Vu({},c,o[c]+o[d]-a[d])};e.offsets.popper=oi({},a,f[r])}return e}function Ite(e){if(!UR(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=nd(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 Vte(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=["left","right"].indexOf(n)!==-1,u=["top","left"].indexOf(n)===-1;return i[a?"left":"top"]=o[n]-(u?i[a?"width":"height"]:0),e.placement=Fh(t),e.offsets.popper=fa(i),e}var Lte={shift:{order:100,enabled:!0,fn:Bte},offset:{order:200,enabled:!0,fn:Fte,offset:0},preventOverflow:{order:300,enabled:!0,fn:kte,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:_te},arrow:{order:500,enabled:!0,fn:Ate,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:Rte,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:Vte},hide:{order:800,enabled:!0,fn:Ite},computeStyle:{order:850,enabled:!0,fn:Tte,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:Dte,onLoad:Ete,gpuAcceleration:void 0}},Nte={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Lte},Sc=function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};dte(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=ute(this.update.bind(this)),this.options=oi({},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(oi({},e.Defaults.modifiers,i.modifiers)).forEach(function(a){r.options.modifiers[a]=oi({},e.Defaults.modifiers[a]||{},i.modifiers?i.modifiers[a]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(a){return oi({name:a},r.options.modifiers[a])}).sort(function(a,u){return a.order-u.order}),this.modifiers.forEach(function(a){a.enabled&&RR(a.onLoad)&&a.onLoad(r.reference,r.popper,r.options,a,r.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return fte(e,[{key:"update",value:function(){return gte.call(this)}},{key:"destroy",value:function(){return yte.call(this)}},{key:"enableEventListeners",value:function(){return bte.call(this)}},{key:"disableEventListeners",value:function(){return xte.call(this)}}]),e}();Sc.Utils=(typeof window<"u"?window:global).PopperUtils;Sc.placements=zR;Sc.Defaults=Nte;var jte=["innerHTML","ownerDocument","style","attributes","nodeValue"],Kte=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],Ute=["bigint","boolean","null","number","string","symbol","undefined"];function Pp(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(zte(t))return t}function Ti(e){return function(t){return Pp(t)===e}}function zte(e){return Kte.includes(e)}function el(e){return function(t){return typeof t===e}}function Wte(e){return Ute.includes(e)}function ce(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(ce.array(e))return"Array";if(ce.plainFunction(e))return"Function";var t=Pp(e);return t||"Object"}ce.array=Array.isArray;ce.arrayOf=function(e,t){return!ce.array(e)&&!ce.function(t)?!1:e.every(function(n){return t(n)})};ce.asyncGeneratorFunction=function(e){return Pp(e)==="AsyncGeneratorFunction"};ce.asyncFunction=Ti("AsyncFunction");ce.bigint=el("bigint");ce.boolean=function(e){return e===!0||e===!1};ce.date=Ti("Date");ce.defined=function(e){return!ce.undefined(e)};ce.domElement=function(e){return ce.object(e)&&!ce.plainObject(e)&&e.nodeType===1&&ce.string(e.nodeName)&&jte.every(function(t){return t in e})};ce.empty=function(e){return ce.string(e)&&e.length===0||ce.array(e)&&e.length===0||ce.object(e)&&!ce.map(e)&&!ce.set(e)&&Object.keys(e).length===0||ce.set(e)&&e.size===0||ce.map(e)&&e.size===0};ce.error=Ti("Error");ce.function=el("function");ce.generator=function(e){return ce.iterable(e)&&ce.function(e.next)&&ce.function(e.throw)};ce.generatorFunction=Ti("GeneratorFunction");ce.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype};ce.iterable=function(e){return!ce.nullOrUndefined(e)&&ce.function(e[Symbol.iterator])};ce.map=Ti("Map");ce.nan=function(e){return Number.isNaN(e)};ce.null=function(e){return e===null};ce.nullOrUndefined=function(e){return ce.null(e)||ce.undefined(e)};ce.number=function(e){return el("number")(e)&&!ce.nan(e)};ce.numericString=function(e){return ce.string(e)&&e.length>0&&!Number.isNaN(Number(e))};ce.object=function(e){return!ce.nullOrUndefined(e)&&(ce.function(e)||typeof e=="object")};ce.oneOf=function(e,t){return ce.array(e)?e.indexOf(t)>-1:!1};ce.plainFunction=Ti("Function");ce.plainObject=function(e){if(Pp(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};ce.primitive=function(e){return ce.null(e)||Wte(typeof e)};ce.promise=Ti("Promise");ce.propertyOf=function(e,t,n){if(!ce.object(e)||!t)return!1;var r=e[t];return ce.function(n)?n(r):ce.defined(r)};ce.regexp=Ti("RegExp");ce.set=Ti("Set");ce.string=el("string");ce.symbol=el("symbol");ce.undefined=el("undefined");ce.weakMap=Ti("WeakMap");ce.weakSet=Ti("WeakSet");function WR(e){return function(t){return typeof t===e}}var Hte=WR("function"),Gte=function(e){return e===null},JD=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},XD=function(e){return!qte(e)&&!Gte(e)&&(Hte(e)||typeof e=="object")},qte=WR("undefined"),Mv=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 Yte(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;r--!==0;)if(!Dr(e[r],t[r]))return!1;return!0}function Zte(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 Jte(e,t){var n,r,i,o;if(e.size!==t.size)return!1;try{for(var a=Mv(e.entries()),u=a.next();!u.done;u=a.next()){var c=u.value;if(!t.has(c[0]))return!1}}catch(h){n={error:h}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}try{for(var d=Mv(e.entries()),f=d.next();!f.done;f=d.next()){var c=f.value;if(!Dr(c[1],t.get(c[0])))return!1}}catch(h){i={error:h}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}return!0}function Xte(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var i=Mv(e.entries()),o=i.next();!o.done;o=i.next()){var a=o.value;if(!t.has(a[0]))return!1}}catch(u){n={error:u}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0}function Dr(e,t){if(e===t)return!0;if(e&&XD(e)&&t&&XD(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return Yte(e,t);if(e instanceof Map&&t instanceof Map)return Jte(e,t);if(e instanceof Set&&t instanceof Set)return Xte(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return Zte(e,t);if(JD(e)&&JD(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(var i=n.length;i--!==0;){var o=n[i];if(!(o==="_owner"&&e.$$typeof)&&!Dr(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}function Qte(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(n){return ce.string(n)||ce.array(n)||ce.plainObject(n)})}function ene(e,t,n){return HR(e,t)?[e,t].every(ce.array)?!e.some(rE(n))&&t.some(rE(n)):[e,t].every(ce.plainObject)?!Object.entries(e).some(nE(n))&&Object.entries(t).some(nE(n)):t===n:!1}function QD(e,t,n){var r=n.actual,i=n.key,o=n.previous,a=n.type,u=Ki(e,i),c=Ki(t,i),d=[u,c].every(ce.number)&&(a==="increased"?u<c:u>c);return ce.undefined(r)||(d=d&&c===r),ce.undefined(o)||(d=d&&u===o),d}function eE(e,t,n){var r=n.key,i=n.type,o=n.value,a=Ki(e,r),u=Ki(t,r),c=i==="added"?a:u,d=i==="added"?u:a;if(!ce.nullOrUndefined(o)){if(ce.defined(c)){if(ce.array(c)||ce.plainObject(c))return ene(c,d,o)}else return Dr(d,o);return!1}return[a,u].every(ce.array)?!d.every(r1(c)):[a,u].every(ce.plainObject)?tne(Object.keys(c),Object.keys(d)):![a,u].every(function(f){return ce.primitive(f)&&ce.defined(f)})&&(i==="added"?!ce.defined(a)&&ce.defined(u):ce.defined(a)&&!ce.defined(u))}function tE(e,t,n){var r=n===void 0?{}:n,i=r.key,o=Ki(e,i),a=Ki(t,i);if(!HR(o,a))throw new TypeError("Inputs have different types");if(!Qte(o,a))throw new TypeError("Inputs don't have length");return[o,a].every(ce.plainObject)&&(o=Object.keys(o),a=Object.keys(a)),[o,a]}function nE(e){return function(t){var n=t[0],r=t[1];return ce.array(e)?Dr(e,r)||e.some(function(i){return Dr(i,r)||ce.array(r)&&r1(r)(i)}):ce.plainObject(e)&&e[n]?!!e[n]&&Dr(e[n],r):Dr(e,r)}}function tne(e,t){return t.some(function(n){return!e.includes(n)})}function rE(e){return function(t){return ce.array(e)?e.some(function(n){return Dr(n,t)||ce.array(t)&&r1(t)(n)}):Dr(e,t)}}function kl(e,t){return ce.array(e)?e.some(function(n){return Dr(n,t)}):Dr(e,t)}function r1(e){return function(t){return e.some(function(n){return Dr(n,t)})}}function HR(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(ce.array)||e.every(ce.number)||e.every(ce.plainObject)||e.every(ce.string)}function Ki(e,t){if(ce.plainObject(e)||ce.array(e)){if(ce.string(t)){var n=t.split(".");return n.reduce(function(r,i){return r&&r[i]},e)}return ce.number(t)?e[t]:e}return e}function nne(e,t){if([e,t].some(ce.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(h){return ce.plainObject(h)||ce.array(h)}))throw new Error("Expected plain objects or array");var n=function(h,m){try{return eE(e,t,{key:h,type:"added",value:m})}catch{return!1}},r=function(h,m,g){try{var v=Ki(e,h),$=Ki(t,h),C=ce.defined(m),x=ce.defined(g);if(C||x){var y=x?kl(g,v):!kl(m,v),D=kl(m,$);return y&&D}return[v,$].every(ce.array)||[v,$].every(ce.plainObject)?!Dr(v,$):v!==$}catch{return!1}},i=function(h,m,g){if(!ce.defined(h))return!1;try{var v=Ki(e,h),$=Ki(t,h),C=ce.defined(g);return kl(m,v)&&(C?kl(g,$):!C)}catch{return!1}},o=function(h,m){return ce.defined(h)?(process.env.NODE_ENV==="development"&&console.warn("`changedTo` is deprecated! Replace it with `change`"),r(h,m)):!1},a=function(h,m,g){if(!ce.defined(h))return!1;try{return QD(e,t,{key:h,actual:m,previous:g,type:"decreased"})}catch{return!1}},u=function(h){try{var m=tE(e,t,{key:h}),g=m[0],v=m[1];return!!g.length&&!v.length}catch{return!1}},c=function(h){try{var m=tE(e,t,{key:h}),g=m[0],v=m[1];return!g.length&&!!v.length}catch{return!1}},d=function(h,m,g){if(!ce.defined(h))return!1;try{return QD(e,t,{key:h,actual:m,previous:g,type:"increased"})}catch{return!1}},f=function(h,m){try{return eE(e,t,{key:h,type:"removed",value:m})}catch{return!1}};return{added:n,changed:r,changedFrom:i,changedTo:o,decreased:a,emptied:u,filled:c,increased:d,removed:f}}function iE(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 Gt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iE(Object(n),!0).forEach(function(r){Zn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rne(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,qR(r.key),r)}}function id(e,t,n){return t&&rne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zn(e,t,n){return t=qR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function od(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&&Fv(e,t)}function kh(e){return kh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},kh(e)}function Fv(e,t){return Fv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Fv(e,t)}function ine(){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 one(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function GR(e,t){if(e==null)return{};var n=one(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ho(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ane(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 ho(e)}function ad(e){var t=ine();return function(){var r=kh(e),i;if(t){var o=kh(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return ane(this,i)}}function sne(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qR(e){var t=sne(e,"string");return typeof t=="symbol"?t:String(t)}var une={flip:{padding:20},preventOverflow:{padding:10}},lne="The typeValidator argument must be a function with the signature function(props, propName, componentName).",cne="The error message is optional, but must be a string if provided.";function dne(e,t,n,r){return typeof e=="boolean"?e:typeof e=="function"?e(t,n,r):e?!!e:!1}function fne(e,t){return Object.hasOwnProperty.call(e,t)}function hne(e,t,n,r){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}function pne(e,t){if(typeof e!="function")throw new TypeError(lne);if(t)throw new TypeError(cne)}function oE(e,t,n){return pne(e,n),function(r,i,o){for(var a=arguments.length,u=new Array(a>3?a-3:0),c=3;c<a;c++)u[c-3]=arguments[c];return dne(t,r,i,o)?fne(r,i)?e.apply(void 0,[r,i,o].concat(u)):hne(r,i,o):e.apply(void 0,[r,i,o].concat(u))}}var pt={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing",ERROR:"error"},Bl=ra.createPortal!==void 0;function ki(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Jg(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function bf(e){var t=e.title,n=e.data,r=e.warn,i=r===void 0?!1:r,o=e.debug,a=o===void 0?!1:o,u=i?console.warn||console.error:console.log;a&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach(function(c){ce.plainObject(c)&&c.key?u.apply(console,[c.key,c.value]):u.apply(console,[c])}):u.apply(console,[n]),console.groupEnd())}function mne(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,n,r)}function gne(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,n,r)}function yne(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;i=function(a){n(a),gne(e,t,i)},mne(e,t,i,r)}function aE(){}var YR=function(e){od(n,e);var t=ad(n);function n(){return rd(this,n),t.apply(this,arguments)}return id(n,[{key:"componentDidMount",value:function(){ki()&&(this.node||this.appendNode(),Bl||this.renderPortal())}},{key:"componentDidUpdate",value:function(){ki()&&(Bl||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!ki()||!this.node||(Bl||ra.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))}},{key:"appendNode",value:function(){var i=this.props,o=i.id,a=i.zIndex;this.node||(this.node=document.createElement("div"),o&&(this.node.id=o),a&&(this.node.style.zIndex=a),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!ki())return null;var i=this.props,o=i.children,a=i.setRef;if(this.node||this.appendNode(),Bl)return ra.createPortal(o,this.node);var u=ra.unstable_renderSubtreeIntoContainer(this,o.length>1?b.createElement("div",null,o):o[0],this.node);return a(u),null}},{key:"renderReact16",value:function(){var i=this.props,o=i.hasChildren,a=i.placement,u=i.target;return o?this.renderPortal():u||a==="center"?this.renderPortal():null}},{key:"render",value:function(){return Bl?this.renderReact16():null}}]),n}(b.Component);Zn(YR,"propTypes",{children:Se.oneOfType([Se.element,Se.array]),hasChildren:Se.bool,id:Se.oneOfType([Se.string,Se.number]),placement:Se.string,setRef:Se.func.isRequired,target:Se.oneOfType([Se.object,Se.string]),zIndex:Se.number});var ZR=function(e){od(n,e);var t=ad(n);function n(){return rd(this,n),t.apply(this,arguments)}return id(n,[{key:"parentStyle",get:function(){var i=this.props,o=i.placement,a=i.styles,u=a.arrow.length,c={pointerEvents:"none",position:"absolute",width:"100%"};return o.startsWith("top")?(c.bottom=0,c.left=0,c.right=0,c.height=u):o.startsWith("bottom")?(c.left=0,c.right=0,c.top=0,c.height=u):o.startsWith("left")?(c.right=0,c.top=0,c.bottom=0):o.startsWith("right")&&(c.left=0,c.top=0),c}},{key:"render",value:function(){var i=this.props,o=i.placement,a=i.setArrowRef,u=i.styles,c=u.arrow,d=c.color,f=c.display,h=c.length,m=c.margin,g=c.position,v=c.spread,$={display:f,position:g},C,x=v,y=h;return o.startsWith("top")?(C="0,0 ".concat(x/2,",").concat(y," ").concat(x,",0"),$.bottom=0,$.marginLeft=m,$.marginRight=m):o.startsWith("bottom")?(C="".concat(x,",").concat(y," ").concat(x/2,",0 0,").concat(y),$.top=0,$.marginLeft=m,$.marginRight=m):o.startsWith("left")?(y=v,x=h,C="0,0 ".concat(x,",").concat(y/2," 0,").concat(y),$.right=0,$.marginTop=m,$.marginBottom=m):o.startsWith("right")&&(y=v,x=h,C="".concat(x,",").concat(y," ").concat(x,",0 0,").concat(y/2),$.left=0,$.marginTop=m,$.marginBottom=m),b.createElement("div",{className:"__floater__arrow",style:this.parentStyle},b.createElement("span",{ref:a,style:$},b.createElement("svg",{width:x,height:y,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b.createElement("polygon",{points:C,fill:d}))))}}]),n}(b.Component);Zn(ZR,"propTypes",{placement:Se.string.isRequired,setArrowRef:Se.func.isRequired,styles:Se.object.isRequired});var vne=["color","height","width"];function JR(e){var t=e.handleClick,n=e.styles,r=n.color,i=n.height,o=n.width,a=GR(n,vne);return b.createElement("button",{"aria-label":"close",onClick:t,style:a,type:"button"},b.createElement("svg",{width:"".concat(o,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},b.createElement("g",null,b.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}))))}JR.propTypes={handleClick:Se.func.isRequired,styles:Se.object.isRequired};function XR(e){var t=e.content,n=e.footer,r=e.handleClick,i=e.open,o=e.positionWrapper,a=e.showCloseButton,u=e.title,c=e.styles,d={content:b.isValidElement(t)?t:b.createElement("div",{className:"__floater__content",style:c.content},t)};return u&&(d.title=b.isValidElement(u)?u:b.createElement("div",{className:"__floater__title",style:c.title},u)),n&&(d.footer=b.isValidElement(n)?n:b.createElement("div",{className:"__floater__footer",style:c.footer},n)),(a||o)&&!ce.boolean(i)&&(d.close=b.createElement(JR,{styles:c.close,handleClick:r})),b.createElement("div",{className:"__floater__container",style:c.container},d.close,d.title,d.content,d.footer)}XR.propTypes={content:Se.node.isRequired,footer:Se.node,handleClick:Se.func.isRequired,open:Se.bool,positionWrapper:Se.bool.isRequired,showCloseButton:Se.bool.isRequired,styles:Se.object.isRequired,title:Se.node};var QR=function(e){od(n,e);var t=ad(n);function n(){return rd(this,n),t.apply(this,arguments)}return id(n,[{key:"style",get:function(){var i=this.props,o=i.disableAnimation,a=i.component,u=i.placement,c=i.hideArrow,d=i.status,f=i.styles,h=f.arrow.length,m=f.floater,g=f.floaterCentered,v=f.floaterClosing,$=f.floaterOpening,C=f.floaterWithAnimation,x=f.floaterWithComponent,y={};return c||(u.startsWith("top")?y.padding="0 0 ".concat(h,"px"):u.startsWith("bottom")?y.padding="".concat(h,"px 0 0"):u.startsWith("left")?y.padding="0 ".concat(h,"px 0 0"):u.startsWith("right")&&(y.padding="0 0 0 ".concat(h,"px"))),[pt.OPENING,pt.OPEN].indexOf(d)!==-1&&(y=Gt(Gt({},y),$)),d===pt.CLOSING&&(y=Gt(Gt({},y),v)),d===pt.OPEN&&!o&&(y=Gt(Gt({},y),C)),u==="center"&&(y=Gt(Gt({},y),g)),a&&(y=Gt(Gt({},y),x)),Gt(Gt({},m),y)}},{key:"render",value:function(){var i=this.props,o=i.component,a=i.handleClick,u=i.hideArrow,c=i.setFloaterRef,d=i.status,f={},h=["__floater"];return o?b.isValidElement(o)?f.content=b.cloneElement(o,{closeFn:a}):f.content=o({closeFn:a}):f.content=b.createElement(XR,this.props),d===pt.OPEN&&h.push("__floater__open"),u||(f.arrow=b.createElement(ZR,this.props)),b.createElement("div",{ref:c,className:h.join(" "),style:this.style},b.createElement("div",{className:"__floater__body"},f.content,f.arrow))}}]),n}(b.Component);Zn(QR,"propTypes",{component:Se.oneOfType([Se.func,Se.element]),content:Se.node,disableAnimation:Se.bool.isRequired,footer:Se.node,handleClick:Se.func.isRequired,hideArrow:Se.bool.isRequired,open:Se.bool,placement:Se.string.isRequired,positionWrapper:Se.bool.isRequired,setArrowRef:Se.func.isRequired,setFloaterRef:Se.func.isRequired,showCloseButton:Se.bool,status:Se.string.isRequired,styles:Se.object.isRequired,title:Se.node});var e_=function(e){od(n,e);var t=ad(n);function n(){return rd(this,n),t.apply(this,arguments)}return id(n,[{key:"render",value:function(){var i=this.props,o=i.children,a=i.handleClick,u=i.handleMouseEnter,c=i.handleMouseLeave,d=i.setChildRef,f=i.setWrapperRef,h=i.style,m=i.styles,g;if(o)if(b.Children.count(o)===1)if(!b.isValidElement(o))g=b.createElement("span",null,o);else{var v=ce.function(o.type)?"innerRef":"ref";g=b.cloneElement(b.Children.only(o),Zn({},v,d))}else g=o;return g?b.createElement("span",{ref:f,style:Gt(Gt({},m),h),onClick:a,onMouseEnter:u,onMouseLeave:c},g):null}}]),n}(b.Component);Zn(e_,"propTypes",{children:Se.node,handleClick:Se.func.isRequired,handleMouseEnter:Se.func.isRequired,handleMouseLeave:Se.func.isRequired,setChildRef:Se.func.isRequired,setWrapperRef:Se.func.isRequired,style:Se.object,styles:Se.object.isRequired});var bne={zIndex:100};function $ne(e){var t=bi(bne,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 xne=["arrow","flip","offset"],wne=["position","top","right","bottom","left"],i1=function(e){od(n,e);var t=ad(n);function n(r){var i;return rd(this,n),i=t.call(this,r),Zn(ho(i),"setArrowRef",function(o){i.arrowRef=o}),Zn(ho(i),"setChildRef",function(o){i.childRef=o}),Zn(ho(i),"setFloaterRef",function(o){i.floaterRef=o}),Zn(ho(i),"setWrapperRef",function(o){i.wrapperRef=o}),Zn(ho(i),"handleTransitionEnd",function(){var o=i.state.status,a=i.props.callback;i.wrapperPopper&&i.wrapperPopper.instance.update(),i.setState({status:o===pt.OPENING?pt.OPEN:pt.IDLE},function(){var u=i.state.status;a(u===pt.OPEN?"open":"close",i.props)})}),Zn(ho(i),"handleClick",function(){var o=i.props,a=o.event,u=o.open;if(!ce.boolean(u)){var c=i.state,d=c.positionWrapper,f=c.status;(i.event==="click"||i.event==="hover"&&d)&&(bf({title:"click",data:[{event:a,status:f===pt.OPEN?"closing":"opening"}],debug:i.debug}),i.toggle())}}),Zn(ho(i),"handleMouseEnter",function(){var o=i.props,a=o.event,u=o.open;if(!(ce.boolean(u)||Jg())){var c=i.state.status;i.event==="hover"&&c===pt.IDLE&&(bf({title:"mouseEnter",data:[{key:"originalEvent",value:a}],debug:i.debug}),clearTimeout(i.eventDelayTimeout),i.toggle())}}),Zn(ho(i),"handleMouseLeave",function(){var o=i.props,a=o.event,u=o.eventDelay,c=o.open;if(!(ce.boolean(c)||Jg())){var d=i.state,f=d.status,h=d.positionWrapper;i.event==="hover"&&(bf({title:"mouseLeave",data:[{key:"originalEvent",value:a}],debug:i.debug}),u?[pt.OPENING,pt.OPEN].indexOf(f)!==-1&&!h&&!i.eventDelayTimeout&&(i.eventDelayTimeout=setTimeout(function(){delete i.eventDelayTimeout,i.toggle()},u*1e3)):i.toggle(pt.IDLE))}}),i.state={currentPlacement:r.placement,needsUpdate:!1,positionWrapper:r.wrapperOptions.position&&!!r.target,status:pt.INIT,statusWrapper:pt.INIT},i._isMounted=!1,i.hasMounted=!1,ki()&&window.addEventListener("load",function(){i.popper&&i.popper.instance.update(),i.wrapperPopper&&i.wrapperPopper.instance.update()}),i}return id(n,[{key:"componentDidMount",value:function(){if(ki()){var i=this.state.positionWrapper,o=this.props,a=o.children,u=o.open,c=o.target;this._isMounted=!0,bf({title:"init",data:{hasChildren:!!a,hasTarget:!!c,isControlled:ce.boolean(u),positionWrapper:i,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!a&&c&&ce.boolean(u)}}},{key:"componentDidUpdate",value:function(i,o){if(ki()){var a=this.props,u=a.autoOpen,c=a.open,d=a.target,f=a.wrapperOptions,h=nne(o,this.state),m=h.changedFrom,g=h.changed;if(i.open!==c){var v;ce.boolean(c)&&(v=c?pt.OPENING:pt.CLOSING),this.toggle(v)}(i.wrapperOptions.position!==f.position||i.target!==d)&&this.changeWrapperPosition(this.props),g("status",pt.IDLE)&&c?this.toggle(pt.OPEN):m("status",pt.INIT,pt.IDLE)&&u&&this.toggle(pt.OPEN),this.popper&&g("status",pt.OPENING)&&this.popper.instance.update(),this.floaterRef&&(g("status",pt.OPENING)||g("status",pt.CLOSING))&&yne(this.floaterRef,"transitionend",this.handleTransitionEnd),g("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){ki()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target,a=this.state.positionWrapper,u=this.props,c=u.disableFlip,d=u.getPopper,f=u.hideArrow,h=u.offset,m=u.placement,g=u.wrapperOptions,v=m==="top"||m==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(m==="center")this.setState({status:pt.IDLE});else if(o&&this.floaterRef){var $=this.options,C=$.arrow,x=$.flip,y=$.offset,D=GR($,xne);new Sc(o,this.floaterRef,{placement:m,modifiers:Gt({arrow:Gt({enabled:!f,element:this.arrowRef},C),flip:Gt({enabled:!c,behavior:v},x),offset:Gt({offset:"0, ".concat(h,"px")},y)},D),onCreate:function(T){var k;if(i.popper=T,!((k=i.floaterRef)!==null&&k!==void 0&&k.isConnected)){i.setState({needsUpdate:!0});return}d(T,"floater"),i._isMounted&&i.setState({currentPlacement:T.placement,status:pt.IDLE}),m!==T.placement&&setTimeout(function(){T.instance.update()},1)},onUpdate:function(T){i.popper=T;var k=i.state.currentPlacement;i._isMounted&&T.placement!==k&&i.setState({currentPlacement:T.placement})}})}if(a){var P=ce.undefined(g.offset)?0:g.offset;new Sc(this.target,this.wrapperRef,{placement:g.placement||m,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(P,"px")},flip:{enabled:!1}},onCreate:function(T){i.wrapperPopper=T,i._isMounted&&i.setState({statusWrapper:pt.IDLE}),d(T,"wrapper"),m!==T.placement&&setTimeout(function(){T.instance.update()},1)}})}}},{key:"rebuildPopper",value:function(){var i=this;this.floaterRefInterval=setInterval(function(){var o;(o=i.floaterRef)!==null&&o!==void 0&&o.isConnected&&(clearInterval(i.floaterRefInterval),i.setState({needsUpdate:!1}),i.initPopper())},50)}},{key:"changeWrapperPosition",value:function(i){var o=i.target,a=i.wrapperOptions;this.setState({positionWrapper:a.position&&!!o})}},{key:"toggle",value:function(i){var o=this.state.status,a=o===pt.OPEN?pt.CLOSING:pt.OPENING;ce.undefined(i)||(a=i),this.setState({status:a})}},{key:"debug",get:function(){var i=this.props.debug;return i||ki()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var i=this.props,o=i.disableHoverToClick,a=i.event;return a==="hover"&&Jg()&&!o?"click":a}},{key:"options",get:function(){var i=this.props.options;return bi(une,i||{})}},{key:"styles",get:function(){var i=this,o=this.state,a=o.status,u=o.positionWrapper,c=o.statusWrapper,d=this.props.styles,f=bi($ne(d),d);if(u){var h;[pt.IDLE].indexOf(a)===-1||[pt.IDLE].indexOf(c)===-1?h=f.wrapperPosition:h=this.wrapperPopper.styles,f.wrapper=Gt(Gt({},f.wrapper),h)}if(this.target){var m=window.getComputedStyle(this.target);this.wrapperStyles?f.wrapper=Gt(Gt({},f.wrapper),this.wrapperStyles):["relative","static"].indexOf(m.position)===-1&&(this.wrapperStyles={},u||(wne.forEach(function(g){i.wrapperStyles[g]=m[g]}),f.wrapper=Gt(Gt({},f.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 f}},{key:"target",get:function(){if(!ki())return null;var i=this.props.target;return i?ce.domElement(i)?i:document.querySelector(i):this.childRef||this.wrapperRef}},{key:"render",value:function(){var i=this.state,o=i.currentPlacement,a=i.positionWrapper,u=i.status,c=this.props,d=c.children,f=c.component,h=c.content,m=c.disableAnimation,g=c.footer,v=c.hideArrow,$=c.id,C=c.open,x=c.showCloseButton,y=c.style,D=c.target,P=c.title,E=b.createElement(e_,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:y,styles:this.styles.wrapper},d),T={};return a?T.wrapperInPortal=E:T.wrapperAsChildren=E,b.createElement("span",null,b.createElement(YR,{hasChildren:!!d,id:$,placement:o,setRef:this.setFloaterRef,target:D,zIndex:this.styles.options.zIndex},b.createElement(QR,{component:f,content:h,disableAnimation:m,footer:g,handleClick:this.handleClick,hideArrow:v||o==="center",open:C,placement:o,positionWrapper:a,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:x,status:u,styles:this.styles,title:P}),T.wrapperInPortal),T.wrapperAsChildren)}}]),n}(b.Component);Zn(i1,"propTypes",{autoOpen:Se.bool,callback:Se.func,children:Se.node,component:oE(Se.oneOfType([Se.func,Se.element]),function(e){return!e.content}),content:oE(Se.node,function(e){return!e.component}),debug:Se.bool,disableAnimation:Se.bool,disableFlip:Se.bool,disableHoverToClick:Se.bool,event:Se.oneOf(["hover","click"]),eventDelay:Se.number,footer:Se.node,getPopper:Se.func,hideArrow:Se.bool,id:Se.oneOfType([Se.string,Se.number]),offset:Se.number,open:Se.bool,options:Se.object,placement:Se.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:Se.bool,style:Se.object,styles:Se.object,target:Se.oneOfType([Se.object,Se.string]),title:Se.node,wrapperOptions:Se.shape({offset:Se.number,placement:Se.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:Se.bool})});Zn(i1,"defaultProps",{autoOpen:!1,callback:aE,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:aE,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var Dne=Object.defineProperty,Ene=(e,t,n)=>t in e?Dne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Be=(e,t,n)=>Ene(e,typeof t!="symbol"?t+"":t,n),$t={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},ri={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found",ERROR:"error"},Qe={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},ct={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"};function Xo(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function t_(e){return e?e.getBoundingClientRect():null}function Cne(e=!1){const{body:t,documentElement:n}=document;if(!t||!n)return 0;if(e){const r=[t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight].sort((o,a)=>o-a),i=Math.floor(r.length/2);return r.length%2===0?(r[i-1]+r[i])/2:r[i]}return Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}function vo(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 Sne(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function Tc(e,t,n){if(!e)return Ga();const r=TR(e);if(r){if(r.isSameNode(Ga()))return n?document:Ga();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",Ga()}return r}function sd(e,t){if(!e)return!1;const n=Tc(e,t);return n?!n.isSameNode(Ga()):!1}function Tne(e){return e.offsetParent!==document.body}function Lu(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=Sne(e);return n==="BODY"||n==="HTML"?!1:r&&r.position===t?!0:e.parentNode?Lu(e.parentNode,t):!1}function Ane(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 Pne(e,t,n){var r,i,o;const a=t_(e),u=Tc(e,n),c=sd(e,n),d=Lu(e);let f=0,h=(r=a==null?void 0:a.top)!=null?r:0;if(c&&d){const m=(i=e==null?void 0:e.offsetTop)!=null?i:0,g=(o=u==null?void 0:u.scrollTop)!=null?o:0;h=m-g}else u instanceof HTMLElement&&(f=u.scrollTop,!c&&!Lu(e)&&(h+=f),u.isSameNode(Ga())||(h+=Ga().scrollTop));return Math.floor(h-t)}function Rne(e,t,n){var r;if(!e)return 0;const{offsetTop:i=0,scrollTop:o=0}=(r=TR(e))!=null?r:{};let a=e.getBoundingClientRect().top+o;i&&(sd(e,n)||Tne(e))&&(a-=i);const u=Math.floor(a-t);return u<0?0:u}function Ga(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function _ne(e,t){const{duration:n,element:r}=t;return new Promise((i,o)=>{const{scrollTop:a}=r,u=e>a?e-a:a-e;Kee.top(r,e,{duration:u<100?50:n},c=>c&&c.message!=="Element already at target scroll position"?o(c):i())})}var Il=ra.createPortal!==void 0;function n_(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 Nf(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Bi(e,t={}){const{defaultValue:n,step:r,steps:i}=t;let o=FD(e);if(o)(o.includes("{step}")||o.includes("{steps}"))&&r&&i&&(o=o.replace("{step}",r.toString()).replace("{steps}",i.toString()));else if(b.isValidElement(e)&&!Object.values(e.props).length&&Nf(e.type)==="function"){const a=e.type({});o=Bi(a,t)}else o=FD(n);return o}function One(e,t){return!ke.plainObject(e)||!ke.array(t)?!1:Object.keys(e).every(n=>t.includes(n))}function Mne(e){const t=/^#?([\da-f])([\da-f])([\da-f])$/i,n=e.replace(t,(i,o,a,u)=>o+o+a+a+u+u),r=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(n);return r?[parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16)]:[]}function sE(e){return e.disableBeacon||e.placement==="center"}function uE(){return!["chrome","safari","firefox","opera"].includes(n_())}function ha({data:e,debug:t=!1,title:n,warn:r=!1}){const i=r?console.warn||console.error:console.log;t&&(n&&e?(console.groupCollapsed(`%creact-joyride: ${n}`,"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(e)?e.forEach(o=>{ke.plainObject(o)&&o.key?i.apply(console,[o.key,o.value]):i.apply(console,[o])}):i.apply(console,[e]),console.groupEnd()):console.error("Missing title or data props"))}function Fne(e){return Object.keys(e)}function r_(e,...t){if(!ke.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 kne(e,...t){if(!ke.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 kv(e,t,n){const r=o=>o.replace("{step}",String(t)).replace("{steps}",String(n));if(Nf(e)==="string")return r(e);if(!b.isValidElement(e))return e;const{children:i}=e.props;if(Nf(i)==="string"&&i.includes("{step}"))return b.cloneElement(e,{children:r(i)});if(Array.isArray(i))return b.cloneElement(e,{children:i.map(o=>typeof o=="string"?r(o):kv(o,t,n))});if(Nf(e.type)==="function"&&!Object.values(e.props).length){const o=e.type({});return kv(o,t,n)}return e}function Bne(e){const{isFirstStep:t,lifecycle:n,previousLifecycle:r,scrollToFirstStep:i,step:o,target:a}=e;return!o.disableScrolling&&(!t||i||n===Qe.TOOLTIP)&&o.placement!=="center"&&(!o.isFixed||!Lu(a))&&r!==n&&[Qe.BEACON,Qe.TOOLTIP].includes(n)}var Ine={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},i_={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},Vne={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:i_,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},Lne={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:[]},Nne={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},Vl={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},lE={borderRadius:4,position:"absolute"};function jne(e,t){var n,r,i,o,a;const{floaterProps:u,styles:c}=e,d=bi((n=t.floaterProps)!=null?n:{},u??{}),f=bi(c??{},(r=t.styles)!=null?r:{}),h=bi(Nne,f.options||{}),m=t.placement==="center"||t.disableBeacon;let{width:g}=h;window.innerWidth>480&&(g=380),"width"in h&&(g=typeof h.width=="number"&&window.innerWidth<h.width?window.innerWidth-30:h.width);const v={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:h.zIndex},$={beacon:{...Vl,display:m?"none":"inline-block",height:h.beaconSize,position:"relative",width:h.beaconSize,zIndex:h.zIndex},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:h.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(${Mne(h.primaryColor).join(",")}, 0.2)`,border:`2px solid ${h.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:h.backgroundColor,borderRadius:5,boxSizing:"border-box",color:h.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:g},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:{...Vl,backgroundColor:h.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...Vl,color:h.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...Vl,color:h.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...Vl,color:h.textColor,fontSize:14},overlay:{...v,backgroundColor:h.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...v},overlayLegacyCenter:{...v,backgroundColor:h.overlayColor},spotlight:{...lE,backgroundColor:"gray"},spotlightLegacy:{...lE,boxShadow:`0 0 0 9999px ${h.overlayColor}, ${h.spotlightShadow}`},floaterStyles:{arrow:{color:(a=(o=(i=d==null?void 0:d.styles)==null?void 0:i.arrow)==null?void 0:o.color)!=null?a:h.arrowColor},options:{zIndex:h.zIndex+100}},options:h};return bi($,f)}function Kne(e){return kne(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function Gs(e,t){var n,r,i,o,a,u;const c=t??{},d=bi.all([Vne,Kne(e),c],{isMergeableObject:ke.plainObject}),f=jne(e,d),h=sd(vo(d.target),d.disableScrollParentFix),m=bi.all([Ine,(n=e.floaterProps)!=null?n:{},(r=d.floaterProps)!=null?r:{}]);return m.offset=d.offset,m.styles=bi((i=m.styles)!=null?i:{},f.floaterStyles),m.offset+=(a=(o=e.spotlightPadding)!=null?o:d.spotlightPadding)!=null?a:0,d.placementBeacon&&m.wrapperOptions&&(m.wrapperOptions.placement=d.placementBeacon),h&&m.options.preventOverflow&&(m.options.preventOverflow.boundariesElement="window"),{...d,locale:bi.all([i_,(u=e.locale)!=null?u:{},d.locale||{}]),floaterProps:m,styles:r_(f,"floaterStyles")}}function o_(e,t=!1){return ke.plainObject(e)?e.target?!0:(ha({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(ha({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function cE(e,t=!1){return ke.array(e)?e.every(n=>o_(n,t)):(ha({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var a_={action:"init",controlled:!1,index:0,lifecycle:Qe.INIT,origin:null,size:0,status:ct.IDLE},dE=Fne(r_(a_,"controlled","size")),Une=class{constructor(e){Be(this,"beaconPopper"),Be(this,"tooltipPopper"),Be(this,"data",new Map),Be(this,"listener"),Be(this,"store",new Map),Be(this,"addListener",i=>{this.listener=i}),Be(this,"setSteps",i=>{const{size:o,status:a}=this.getState(),u={size:i.length,status:a};this.data.set("steps",i),a===ct.WAITING&&!o&&i.length&&(u.status=ct.RUNNING),this.setState(u)}),Be(this,"getPopper",i=>i==="beacon"?this.beaconPopper:this.tooltipPopper),Be(this,"setPopper",(i,o)=>{i==="beacon"?this.beaconPopper=o:this.tooltipPopper=o}),Be(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),Be(this,"close",(i=null)=>{const{index:o,status:a}=this.getState();a===ct.RUNNING&&this.setState({...this.getNextState({action:$t.CLOSE,index:o+1,origin:i})})}),Be(this,"go",i=>{const{controlled:o,status:a}=this.getState();if(o||a!==ct.RUNNING)return;const u=this.getSteps()[i];this.setState({...this.getNextState({action:$t.GO,index:i}),status:u?a:ct.FINISHED})}),Be(this,"info",()=>this.getState()),Be(this,"next",()=>{const{index:i,status:o}=this.getState();o===ct.RUNNING&&this.setState(this.getNextState({action:$t.NEXT,index:i+1}))}),Be(this,"open",()=>{const{status:i}=this.getState();i===ct.RUNNING&&this.setState({...this.getNextState({action:$t.UPDATE,lifecycle:Qe.TOOLTIP})})}),Be(this,"prev",()=>{const{index:i,status:o}=this.getState();o===ct.RUNNING&&this.setState({...this.getNextState({action:$t.PREV,index:i-1})})}),Be(this,"reset",(i=!1)=>{const{controlled:o}=this.getState();o||this.setState({...this.getNextState({action:$t.RESET,index:0}),status:i?ct.RUNNING:ct.READY})}),Be(this,"skip",()=>{const{status:i}=this.getState();i===ct.RUNNING&&this.setState({action:$t.SKIP,lifecycle:Qe.INIT,status:ct.SKIPPED})}),Be(this,"start",i=>{const{index:o,size:a}=this.getState();this.setState({...this.getNextState({action:$t.START,index:ke.number(i)?i:o},!0),status:a?ct.RUNNING:ct.WAITING})}),Be(this,"stop",(i=!1)=>{const{index:o,status:a}=this.getState();[ct.FINISHED,ct.SKIPPED].includes(a)||this.setState({...this.getNextState({action:$t.STOP,index:o+(i?1:0)}),status:ct.PAUSED})}),Be(this,"update",i=>{var o,a;if(!One(i,dE))throw new Error(`State is not valid. Valid keys: ${dE.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...i,action:(o=i.action)!=null?o:$t.UPDATE,origin:(a=i.origin)!=null?a:null},!0)})});const{continuous:t=!1,stepIndex:n,steps:r=[]}=e??{};this.setState({action:$t.INIT,controlled:ke.number(n),continuous:t,index:ke.number(n)?n:0,lifecycle:Qe.INIT,origin:null,status:r.length?ct.READY:ct.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")||""}:{...a_}}getNextState(e,t=!1){var n,r,i,o,a;const{action:u,controlled:c,index:d,size:f,status:h}=this.getState(),m=ke.number(e.index)?e.index:d,g=c&&!t?d:Math.min(Math.max(m,0),f);return{action:(n=e.action)!=null?n:u,controlled:c,index:g,lifecycle:(r=e.lifecycle)!=null?r:Qe.INIT,origin:(i=e.origin)!=null?i:null,size:(o=e.size)!=null?o:f,status:g===f?ct.FINISHED:(a=e.status)!=null?a:h}}getSteps(){const e=this.data.get("steps");return Array.isArray(e)?e:[]}hasUpdatedState(e){const t=JSON.stringify(e),n=JSON.stringify(this.getState());return t!==n}setState(e,t=!1){const n=this.getState(),{action:r,index:i,lifecycle:o,origin:a=null,size:u,status:c}={...n,...e};this.store.set("action",r),this.store.set("index",i),this.store.set("lifecycle",o),this.store.set("origin",a),this.store.set("size",u),this.store.set("status",c),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 zne(e){return new Une(e)}function Wne({styles:e}){return qe.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}var Hne=Wne,Gne=class extends qe.Component{constructor(){super(...arguments),Be(this,"isActive",!1),Be(this,"resizeTimeout"),Be(this,"scrollTimeout"),Be(this,"scrollParent"),Be(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),Be(this,"hideSpotlight",()=>{const{continuous:e,disableOverlay:t,lifecycle:n}=this.props,r=[Qe.INIT,Qe.BEACON,Qe.COMPLETE,Qe.ERROR];return t||(e?r.includes(n):n!==Qe.TOOLTIP)}),Be(this,"handleMouseMove",e=>{const{mouseOverSpotlight:t}=this.state,{height:n,left:r,position:i,top:o,width:a}=this.spotlightStyles,u=i==="fixed"?e.clientY:e.pageY,c=i==="fixed"?e.clientX:e.pageX,d=u>=o&&u<=o+n,h=c>=r&&c<=r+a&&d;h!==t&&this.updateState({mouseOverSpotlight:h})}),Be(this,"handleScroll",()=>{const{target:e}=this.props,t=vo(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 Lu(t,"sticky")&&this.updateState({})}),Be(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=vo(r);this.scrollParent=Tc(i??document.body,n,!0),this.isActive=!0,process.env.NODE_ENV!=="production"&&!t&&sd(i,!0)&&ha({title:"step has a custom scroll parent and can cause trouble with scrolling",data:[{key:"parent",value:this.scrollParent}],debug:e}),window.addEventListener("resize",this.handleResize)}componentDidUpdate(e){var t;const{disableScrollParentFix:n,lifecycle:r,spotlightClicks:i,target:o}=this.props,{changed:a}=Oh(e,this.props);if(a("target")||a("disableScrollParentFix")){const u=vo(o);this.scrollParent=Tc(u??document.body,n,!0)}a("lifecycle",Qe.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:u}=this.state;u||this.updateState({showSpotlight:!0})},100)),(a("spotlightClicks")||a("disableOverlay")||a("lifecycle"))&&(i&&r===Qe.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==Qe.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 uE()&&(i=n==="center"?r.overlayLegacyCenter:r.overlayLegacy),{cursor:t?"default":"pointer",height:Cne(),pointerEvents:e?"none":"auto",...i}}get spotlightStyles(){var e,t,n;const{showSpotlight:r}=this.state,{disableScrollParentFix:i=!1,spotlightClicks:o,spotlightPadding:a=0,styles:u,target:c}=this.props,d=vo(c),f=t_(d),h=Lu(d),m=Pne(d,a,i);return{...uE()?u.spotlightLegacy:u.spotlight,height:Math.round(((e=f==null?void 0:f.height)!=null?e:0)+a*2),left:Math.round(((t=f==null?void 0:f.left)!=null?t:0)-a),opacity:r?1:0,pointerEvents:o?"none":"auto",position:h?"fixed":"absolute",top:m,transition:"opacity 0.2s",width:Math.round(((n=f==null?void 0:f.width)!=null?n:0)+a*2)}}updateState(e){this.isActive&&this.setState(t=>({...t,...e}))}render(){const{showSpotlight:e}=this.state,{onClickOverlay:t,placement:n}=this.props,{hideSpotlight:r,overlayStyles:i,spotlightStyles:o}=this;if(r())return null;let a=n!=="center"&&e&&qe.createElement(Hne,{styles:o});if(n_()==="safari"){const{mixBlendMode:u,zIndex:c,...d}=i;a=qe.createElement("div",{style:{...d}},a),delete i.backgroundColor}return qe.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:i},a)}},qne=class extends qe.Component{constructor(){super(...arguments),Be(this,"node",null)}componentDidMount(){const{id:e}=this.props;Xo()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),Il||this.renderReact15())}componentDidUpdate(){Xo()&&(Il||this.renderReact15())}componentWillUnmount(){!Xo()||!this.node||(Il||$f.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!Xo())return;const{children:e}=this.props;this.node&&$f.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!Xo()||!Il)return null;const{children:e}=this.props;return this.node?$f.createPortal(e,this.node):null}render(){return Il?this.renderReact16():null}},Yne=class{constructor(e,t){if(Be(this,"element"),Be(this,"options"),Be(this,"canBeTabbed",n=>{const{tabIndex:r}=n;return r===null||r<0?!1:this.canHaveFocus(n)}),Be(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)}),Be(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),Be(this,"handleKeyDown",n=>{const{code:r="Tab"}=this.options;n.code===r&&this.interceptTab(n)}),Be(this,"interceptTab",n=>{n.preventDefault();const r=this.findValidTabElements(),{shiftKey:i}=n;if(!r.length)return;let o=document.activeElement?r.indexOf(document.activeElement):0;o===-1||!i&&o+1===r.length?o=0:i&&o===0?o=r.length-1:o+=i?-1:1,r[o].focus()}),Be(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"}),Be(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}),Be(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),Be(this,"checkFocus",n=>{document.activeElement!==n&&(n.focus(),window.requestAnimationFrame(()=>this.checkFocus(n)))}),Be(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()}},Zne=class extends qe.Component{constructor(e){if(super(e),Be(this,"beacon",null),Be(this,"setBeaconRef",i=>{this.beacon=i}),e.beaconComponent)return;const t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="joyride-beacon-animation",e.nonce&&n.setAttribute("nonce",e.nonce),n.appendChild(document.createTextNode(`
|
|
198
|
+
@keyframes joyride-beacon-inner {
|
|
199
|
+
20% {
|
|
200
|
+
opacity: 0.9;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
90% {
|
|
204
|
+
opacity: 0.7;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
@keyframes joyride-beacon-outer {
|
|
209
|
+
0% {
|
|
210
|
+
transform: scale(1);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
45% {
|
|
214
|
+
opacity: 0.7;
|
|
215
|
+
transform: scale(0.75);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
100% {
|
|
219
|
+
opacity: 0.9;
|
|
220
|
+
transform: scale(1);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
`)),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;process.env.NODE_ENV!=="production"&&(ke.domElement(this.beacon)||console.warn("beacon is not a valid DOM element")),setTimeout(()=>{ke.domElement(this.beacon)&&e&&this.beacon.focus()},0)}componentWillUnmount(){const e=document.getElementById("joyride-beacon-animation");e!=null&&e.parentNode&&e.parentNode.removeChild(e)}render(){const{beaconComponent:e,continuous:t,index:n,isLastStep:r,locale:i,onClickOrHover:o,size:a,step:u,styles:c}=this.props,d=Bi(i.open),f={"aria-label":d,onClick:o,onMouseEnter:o,ref:this.setBeaconRef,title:d};let h;if(e){const m=e;h=qe.createElement(m,{continuous:t,index:n,isLastStep:r,size:a,step:u,...f})}else h=qe.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:c.beacon,type:"button",...f},qe.createElement("span",{style:c.beaconInner}),qe.createElement("span",{style:c.beaconOuter}));return h}};function Jne({styles:e,...t}){const{color:n,height:r,width:i,...o}=e;return b.createElement("button",{style:o,type:"button",...t},b.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"},b.createElement("g",null,b.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 Xne=Jne;function Qne(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:o,skipProps:a,step:u,tooltipProps:c}=e,{content:d,hideBackButton:f,hideCloseButton:h,hideFooter:m,showSkipButton:g,styles:v,title:$}=u,C={};return C.primary=qe.createElement("button",{"data-test-id":"button-primary",style:v.buttonNext,type:"button",...o}),g&&!i&&(C.skip=qe.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:v.buttonSkip,type:"button",...a})),!f&&r>0&&(C.back=qe.createElement("button",{"data-test-id":"button-back",style:v.buttonBack,type:"button",...t})),C.close=!h&&qe.createElement(Xne,{"data-test-id":"button-close",styles:v.buttonClose,...n}),qe.createElement("div",{key:"JoyrideTooltip","aria-label":Bi($??d),className:"react-joyride__tooltip",style:v.tooltip,...c},qe.createElement("div",{style:v.tooltipContainer},$&&qe.createElement("h1",{"aria-label":Bi($),style:v.tooltipTitle},$),qe.createElement("div",{style:v.tooltipContent},d)),!m&&qe.createElement("div",{style:v.tooltipFooter},qe.createElement("div",{style:v.tooltipFooterSpacer},C.skip),C.back,C.primary),C.close)}var ere=Qne,tre=class extends qe.Component{constructor(){super(...arguments),Be(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),Be(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),Be(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;if(!t){n.close("button_primary");return}n.next()}),Be(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),Be(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{back:a,close:u,last:c,next:d,nextLabelWithProgress:f,skip:h}=o.locale,m=Bi(a),g=Bi(u),v=Bi(c),$=Bi(d),C=Bi(h);let x=u,y=g;if(e){if(x=d,y=$,o.showProgress&&!n){const D=Bi(f,{step:t+1,steps:i});x=kv(f,t+1,i),y=D}n&&(x=c,y=v)}return{backProps:{"aria-label":m,children:a,"data-action":"back",onClick:this.handleClickBack,role:"button",title:m},closeProps:{"aria-label":g,children:u,"data-action":"close",onClick:this.handleClickClose,role:"button",title:g},primaryProps:{"aria-label":y,children:x,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:y},skipProps:{"aria-label":C,children:h,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:C},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})}render(){const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{beaconComponent:a,tooltipComponent:u,...c}=o;let d;if(u){const f={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:c,setTooltipRef:r},h=u;d=qe.createElement(h,{...f})}else d=qe.createElement(ere,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:o});return d}},nre=class extends qe.Component{constructor(){super(...arguments),Be(this,"scope",null),Be(this,"tooltip",null),Be(this,"handleClickHoverBeacon",e=>{const{step:t,store:n}=this.props;e.type==="mouseenter"&&t.event!=="hover"||n.update({lifecycle:Qe.TOOLTIP})}),Be(this,"setTooltipRef",e=>{this.tooltip=e}),Be(this,"setPopper",(e,t)=>{var n;const{action:r,lifecycle:i,step:o,store:a}=this.props;t==="wrapper"?a.setPopper("beacon",e):a.setPopper("tooltip",e),a.getPopper("beacon")&&(a.getPopper("tooltip")||o.placement==="center")&&i===Qe.INIT&&a.update({action:r,lifecycle:Qe.READY}),(n=o.floaterProps)!=null&&n.getPopper&&o.floaterProps.getPopper(e,t)}),Be(this,"renderTooltip",e=>{const{continuous:t,helpers:n,index:r,size:i,step:o}=this.props;return qe.createElement(tre,{continuous:t,helpers:n,index:r,isLastStep:r+1===i,setTooltipRef:this.setTooltipRef,size:i,step:o,...e})})}componentDidMount(){const{debug:e,index:t}=this.props;ha({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:n,callback:r,continuous:i,controlled:o,debug:a,helpers:u,index:c,lifecycle:d,shouldScroll:f,status:h,step:m,store:g}=this.props,{changed:v,changedFrom:$}=Oh(e,this.props),C=u.info(),x=i&&n!==$t.CLOSE&&(c>0||n===$t.PREV),y=v("action")||v("index")||v("lifecycle")||v("status"),D=$("lifecycle",[Qe.TOOLTIP,Qe.INIT],Qe.INIT),P=v("action",[$t.NEXT,$t.PREV,$t.SKIP,$t.CLOSE]),E=o&&c===e.index;if(P&&(D||E)&&r({...C,index:e.index,lifecycle:Qe.COMPLETE,step:e.step,type:ri.STEP_AFTER}),m.placement==="center"&&h===ct.RUNNING&&v("index")&&n!==$t.START&&d===Qe.INIT&&g.update({lifecycle:Qe.READY}),y){const T=vo(m.target),k=!!T;k&&Ane(T)?($("status",ct.READY,ct.RUNNING)||$("lifecycle",Qe.INIT,Qe.READY))&&r({...C,step:m,type:ri.STEP_BEFORE}):(console.warn(k?"Target not visible":"Target not mounted",m),r({...C,type:ri.TARGET_NOT_FOUND,step:m}),o||g.update({index:c+(n===$t.PREV?-1:1)}))}$("lifecycle",Qe.INIT,Qe.READY)&&g.update({lifecycle:sE(m)||x?Qe.TOOLTIP:Qe.BEACON}),v("index")&&ha({title:`step:${d}`,data:[{key:"props",value:this.props}],debug:a}),v("lifecycle",Qe.BEACON)&&r({...C,step:m,type:ri.BEACON}),v("lifecycle",Qe.TOOLTIP)&&(r({...C,step:m,type:ri.TOOLTIP}),f&&this.tooltip&&(this.scope=new Yne(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),$("lifecycle",[Qe.TOOLTIP,Qe.INIT],Qe.INIT)&&((t=this.scope)==null||t.removeScope(),g.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return sE(t)||e===Qe.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:o,step:a}=this.props,u=vo(a.target);return!o_(a)||!ke.domElement(u)?null:qe.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},qe.createElement(i1,{...a.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:a.placement,target:a.target},qe.createElement(Zne,{beaconComponent:a.beaconComponent,continuous:e,index:n,isLastStep:n+1===o,locale:a.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:o,step:a,styles:a.styles})))}},s_=class extends qe.Component{constructor(e){super(e),Be(this,"helpers"),Be(this,"store"),Be(this,"callback",a=>{const{callback:u}=this.props;ke.function(u)&&u(a)}),Be(this,"handleKeyboard",a=>{const{index:u,lifecycle:c}=this.state,{steps:d}=this.props,f=d[u];c===Qe.TOOLTIP&&a.code==="Escape"&&f&&!f.disableCloseOnEsc&&this.store.close("keyboard")}),Be(this,"handleClickOverlay",()=>{const{index:a}=this.state,{steps:u}=this.props;Gs(this.props,u[a]).disableOverlayClose||this.helpers.close("overlay")}),Be(this,"syncState",a=>{this.setState(a)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:i}=e;this.store=zne({...e,controlled:r&&ke.number(i)}),this.helpers=this.store.getHelpers();const{addListener:o}=this.store;ha({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),o(this.syncState),n&&n(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!Xo())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;cE(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!Xo())return;const{action:n,controlled:r,index:i,status:o}=this.state,{debug:a,run:u,stepIndex:c,steps:d}=this.props,{stepIndex:f,steps:h}=e,{reset:m,setSteps:g,start:v,stop:$,update:C}=this.store,{changed:x}=Oh(e,this.props),{changed:y,changedFrom:D}=Oh(t,this.state),P=Gs(this.props,d[i]),E=!lr(h,d),T=ke.number(c)&&x("stepIndex"),k=vo(P.target);if(E&&(cE(d,a)?g(d):console.warn("Steps are not valid",d)),x("run")&&(u?v(c):$()),T){let O=ke.number(f)&&f<c?$t.NEXT:$t.PREV;n===$t.STOP&&(O=$t.START),[ct.FINISHED,ct.SKIPPED].includes(o)||C({action:n===$t.CLOSE?$t.CLOSE:O,index:c,lifecycle:Qe.INIT})}!r&&o===ct.RUNNING&&i===0&&!k&&(this.store.update({index:i+1}),this.callback({...this.state,type:ri.TARGET_NOT_FOUND,step:P}));const S={...this.state,index:i,step:P};if(y("action",[$t.NEXT,$t.PREV,$t.SKIP,$t.CLOSE])&&y("status",ct.PAUSED)){const O=Gs(this.props,d[t.index]);this.callback({...S,index:t.index,lifecycle:Qe.COMPLETE,step:O,type:ri.STEP_AFTER})}if(y("status",[ct.FINISHED,ct.SKIPPED])){const O=Gs(this.props,d[t.index]);r||this.callback({...S,index:t.index,lifecycle:Qe.COMPLETE,step:O,type:ri.STEP_AFTER}),this.callback({...S,type:ri.TOUR_END,step:O,index:t.index}),m()}else D("status",[ct.IDLE,ct.READY],ct.RUNNING)?this.callback({...S,type:ri.TOUR_START}):(y("status")||y("action",$t.RESET))&&this.callback({...S,type:ri.TOUR_STATUS});this.scrollToStep(t)}componentWillUnmount(){const{disableCloseOnEsc:e}=this.props;e||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(e){const{index:t,lifecycle:n,status:r}=this.state,{debug:i,disableScrollParentFix:o=!1,scrollDuration:a,scrollOffset:u=20,scrollToFirstStep:c=!1,steps:d}=this.props,f=Gs(this.props,d[t]),h=vo(f.target),m=Bne({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:c,step:f,target:h});if(r===ct.RUNNING&&m){const g=sd(h,o),v=Tc(h,o);let $=Math.floor(Rne(h,u,o))||0;ha({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const C=this.store.getPopper("beacon"),x=this.store.getPopper("tooltip");if(n===Qe.BEACON&&C){const{offsets:y,placement:D}=C;!["bottom"].includes(D)&&!g&&($=Math.floor(y.popper.top-u))}else if(n===Qe.TOOLTIP&&x){const{flipped:y,offsets:D,placement:P}=x;["top","right","left"].includes(P)&&!y&&!g?$=Math.floor(D.popper.top-u):$-=f.spotlightPadding}$=$>=0?$:0,r===ct.RUNNING&&_ne($,{element:v,duration:a}).then(()=>{setTimeout(()=>{var y;(y=this.store.getPopper("tooltip"))==null||y.instance.update()},10)})}}render(){if(!Xo())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:o,scrollToFirstStep:a=!1,steps:u}=this.props,c=n===ct.RUNNING,d={};if(c&&u[e]){const f=Gs(this.props,u[e]);d.step=qe.createElement(nre,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:o,shouldScroll:!f.disableScrolling&&(e!==0||a),step:f,store:this.store}),d.overlay=qe.createElement(qne,{id:"react-joyride-portal"},qe.createElement(Gne,{...f,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return qe.createElement("div",{className:"react-joyride"},d.step,d.overlay)}};Be(s_,"defaultProps",Lne);var rre=s_;exports.$131cf43a05231e1e$export$6d095e787d2b5e1f=ZT;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=AC;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=Bc;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=yL;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=xn;exports.$16f0b7bb276bc17e$export$4c842f6a241dc825=Pj;exports.$16f0b7bb276bc17e$export$5591b0b878c1a989=OT;exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7=Qn;exports.$28f99e3e86e6ec45$export$e5fda3247f5d67f9=MN;exports.$293f70390ea03370$export$497855f14858aa34=Dj;exports.$32489daedd52963e$export$1315d136e6f7581=kj;exports.$337b884510726a0d$export$c6fdb837b070b4ff=sj;exports.$36a0ac60f04457c5$export$136073280381448e=DN;exports.$3c0fc76039f1c516$export$60e84778edff6d26=BA;exports.$40df3f8667284809$export$d55e7ee900f34e93=Lj;exports.$46a4342aab3d8076$export$87e0539f600c24e5=$N;exports.$47b897dc8cdb026b$export$8d15029008292ae=IN;exports.$5c3e21d68f1c4674$export$439d29a4e110a164=kN;exports.$6057a3d2a53a12fd$export$42df105a73306d51=_j;exports.$64244302c3013299$export$dd0bbc9b26defe37=eN;exports.$701a24aa0da5b062$export$ea18c227d4417cc3=pN;exports.$887cac91b7cc8801$export$12fd5f0e9f4bb192=Vj;exports.$93c38a5e28be6249$export$e50a61c1de9f574=DK;exports.$9942cad8a072a530$export$3ee915f8151bd4f1=bN;exports.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90=iK;exports.$a916eb452884faea$export$b7a616150fdb9f44=hN;exports.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e=cK;exports.$ab5bf3f618090389$export$87194bb378cc3ac2=gK;exports.$bb77f239b46e8c72$export$3274cf84b703fff=iS;exports.$bcca50147b47f54d$export$56b2c08e277f365=BN;exports.$c132121280ec012d$export$50eacbbf140a3141=mj;exports.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2=yj;exports.$c350ade66beef0af$export$8c18d1b4f7232bbf=Tj;exports.$e3031d1f8c9d64eb$export$cb95147730a423f5=xN;exports.$eff5d8ee529ac4bb$export$fd53cef0cc796101=EK;exports.$f2f8a6077418541e$export$542a6fd13ac93354=ij;exports.$fae977aafc393c5c$export$6b862160d295c8e=PL;exports.ACTIONS=$t;exports.AdvancedImage=hW;exports.Cloudinary=uH;exports.EVENTS=ri;exports.FormProvider=Kj;exports.LazyMotion=KY;exports.M=KI;exports.M$1=gi;exports.R=fs;exports.ReorderGroup=$ee;exports.ReorderItem=Eee;exports.STATUS=ct;exports._=RI;exports.autoUpdate=YE;exports.components_default=rre;exports.dayjs=AK;exports.domAnimation=UY;exports.dt=IE;exports.ee=LA;exports.flip=TI;exports.lazyload=kz;exports.lodashExports=QE;exports.lt=jv;exports.m=jY;exports.mt=HB;exports.nt=UB;exports.o=hH;exports.offset=SI;exports.ot=zB;exports.placeholder=Lz;exports.prismExports=cH;exports.q=Eb;exports.useController=Wj;exports.useFloating=CI;exports.useForm=rK;exports.useFormContext=op;
|