@fluidattacks/design 3.9.1 → 3.9.2-pr
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/index.css +1 -1
- 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/avatar/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-options/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.js +1 -1
- 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/icon-button/index.stories.d.ts +0 -14
- package/dist/components/indicator-card/index.js +1 -1
- package/dist/components/info-sidebar/index.js +1 -1
- package/dist/components/inputs/fields/combobox/field/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/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/field/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/layout/categories/buttons/index.js +1 -1
- package/dist/components/layout/categories/column/index.js +1 -1
- package/dist/components/layout/categories/gap/index.js +1 -1
- package/dist/components/layout/categories/row/index.js +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list-item/index.js +1 -1
- 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/columns-modal/index.js +1 -1
- package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
- package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
- package/dist/components/modal/filters-modal/fields/options-selector/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-control/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/index.js +1 -1
- package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
- package/dist/components/modal/filters-modal/index.js +1 -1
- package/dist/components/modal/filters-modal/single-column-filters/index.js +1 -1
- package/dist/components/modal/filters-modal/two-columns-filters/index.js +1 -1
- package/dist/components/modal/footer/index.js +1 -1
- package/dist/components/modal/header/index.js +1 -1
- package/dist/components/modal/index.js +1 -1
- package/dist/components/modal/modal-confirm/index.js +1 -1
- 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/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.d.ts +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/types.d.ts +2 -2
- 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-DhWxTOlR.js → components-CPl37mZL.js} +57 -60
- package/dist/{components-B9N9gyh8.mjs → components-hkFGg-Tn.mjs} +1329 -1331
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/vendor-B1UgKeXD.js +213 -0
- package/dist/{vendor-Dh2Vj-4I.mjs → vendor-B5QH33Qh.mjs} +13158 -13008
- package/package.json +1 -1
- package/dist/vendor-CqvV2Skw.js +0 -223
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
"use strict";require('./assets/vendor.css');const C=require("react"),ra=require("react/jsx-runtime"),Na=require("react-dom");function c2(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 be=c2(C),Sd=c2(Na);var En=function(){return En=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},En.apply(this,arguments)};function Vo(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function rj(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var ij=/^((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)-.*))$/,aj=rj(function(e){return ij.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),yi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var At="-ms-",tc="-moz-",mt="-webkit-",f2="comm",Kh="rule",c1="decl",oj="@import",d2="@keyframes",sj="@layer",h2=Math.abs,f1=String.fromCharCode,Tb=Object.assign;function uj(e,t){return ln(e,0)^45?(((t<<2^ln(e,0))<<2^ln(e,1))<<2^ln(e,2))<<2^ln(e,3):0}function p2(e){return e.trim()}function Yi(e,t){return(e=t.exec(e))?e[0]:e}function et(e,t,n){return e.replace(t,n)}function Td(e,t,n){return e.indexOf(t,n)}function ln(e,t){return e.charCodeAt(t)|0}function nu(e,t,n){return e.slice(t,n)}function hi(e){return e.length}function m2(e){return e.length}function jl(e,t){return t.push(e),e}function lj(e,t){return e.map(t).join("")}function Wx(e,t){return e.filter(function(n){return!Yi(n,t)})}var Uh=1,ru=1,g2=0,Ar=0,Qt=0,Su="";function zh(e,t,n,r,i,a,o,u){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Uh,column:ru,length:o,return:"",siblings:u}}function Aa(e,t){return Tb(zh("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ps(e){for(;e.root;)e=Aa(e.root,{children:[e]});jl(e,e.siblings)}function cj(){return Qt}function fj(){return Qt=Ar>0?ln(Su,--Ar):0,ru--,Qt===10&&(ru=1,Uh--),Qt}function qr(){return Qt=Ar<g2?ln(Su,Ar++):0,ru++,Qt===10&&(ru=1,Uh++),Qt}function Fo(){return ln(Su,Ar)}function Ad(){return Ar}function qh(e,t){return nu(Su,e,t)}function Ab(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 dj(e){return Uh=ru=1,g2=hi(Su=e),Ar=0,[]}function hj(e){return Su="",e}function Qm(e){return p2(qh(Ar-1,Pb(e===91?e+2:e===40?e+1:e)))}function pj(e){for(;(Qt=Fo())&&Qt<33;)qr();return Ab(e)>2||Ab(Qt)>3?"":" "}function mj(e,t){for(;--t&&qr()&&!(Qt<48||Qt>102||Qt>57&&Qt<65||Qt>70&&Qt<97););return qh(e,Ad()+(t<6&&Fo()==32&&qr()==32))}function Pb(e){for(;qr();)switch(Qt){case e:return Ar;case 34:case 39:e!==34&&e!==39&&Pb(Qt);break;case 40:e===41&&Pb(e);break;case 92:qr();break}return Ar}function gj(e,t){for(;qr()&&e+Qt!==57;)if(e+Qt===84&&Fo()===47)break;return"/*"+qh(t,Ar-1)+"*"+f1(e===47?e:qr())}function yj(e){for(;!Ab(Fo());)qr();return qh(e,Ar)}function vj(e){return hj(Pd("",null,null,null,[""],e=dj(e),0,[0],e))}function Pd(e,t,n,r,i,a,o,u,l){for(var f=0,d=0,h=o,p=0,g=0,y=0,$=1,D=1,b=1,v=0,w="",T=i,E=a,A=r,M=w;D;)switch(y=v,v=qr()){case 40:if(y!=108&&ln(M,h-1)==58){Td(M+=et(Qm(v),"&","&\f"),"&\f",h2(f?u[f-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:M+=Qm(v);break;case 9:case 10:case 13:case 32:M+=pj(y);break;case 92:M+=mj(Ad()-1,7);continue;case 47:switch(Fo()){case 42:case 47:jl(bj(gj(qr(),Ad()),t,n,l),l);break;default:M+="/"}break;case 123*$:u[f++]=hi(M)*b;case 125*$:case 59:case 0:switch(v){case 0:case 125:D=0;case 59+d:b==-1&&(M=et(M,/\f/g,"")),g>0&&hi(M)-h&&jl(g>32?Gx(M+";",r,n,h-1,l):Gx(et(M," ","")+";",r,n,h-2,l),l);break;case 59:M+=";";default:if(jl(A=Hx(M,t,n,f,d,i,u,w,T=[],E=[],h,a),a),v===123)if(d===0)Pd(M,t,A,A,T,a,h,u,E);else switch(p===99&&ln(M,3)===110?100:p){case 100:case 108:case 109:case 115:Pd(e,A,A,r&&jl(Hx(e,A,A,0,0,i,u,w,i,T=[],h,E),E),i,E,h,u,r?T:E);break;default:Pd(M,A,A,A,[""],E,0,u,E)}}f=d=g=0,$=b=1,w=M="",h=o;break;case 58:h=1+hi(M),g=y;default:if($<1){if(v==123)--$;else if(v==125&&$++==0&&fj()==125)continue}switch(M+=f1(v),v*$){case 38:b=d>0?1:(M+="\f",-1);break;case 44:u[f++]=(hi(M)-1)*b,b=1;break;case 64:Fo()===45&&(M+=Qm(qr())),p=Fo(),d=h=hi(w=M+=yj(Ad())),v++;break;case 45:y===45&&hi(M)==2&&($=0)}}return a}function Hx(e,t,n,r,i,a,o,u,l,f,d,h){for(var p=i-1,g=i===0?a:[""],y=m2(g),$=0,D=0,b=0;$<r;++$)for(var v=0,w=nu(e,p+1,p=h2(D=o[$])),T=e;v<y;++v)(T=p2(D>0?g[v]+" "+w:et(w,/&\f/g,g[v])))&&(l[b++]=T);return zh(e,t,n,i===0?Kh:u,l,f,d,h)}function bj(e,t,n,r){return zh(e,t,n,f2,f1(cj()),nu(e,2,-2),0,r)}function Gx(e,t,n,r,i){return zh(e,t,n,c1,nu(e,0,r),nu(e,r+1,-1),r,i)}function y2(e,t,n){switch(uj(e,t)){case 5103:return mt+"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 mt+e+e;case 4789:return tc+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return mt+e+tc+e+At+e+e;case 5936:switch(ln(e,t+11)){case 114:return mt+e+At+et(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return mt+e+At+et(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return mt+e+At+et(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return mt+e+At+e+e;case 6165:return mt+e+At+"flex-"+e+e;case 5187:return mt+e+et(e,/(\w+).+(:[^]+)/,mt+"box-$1$2"+At+"flex-$1$2")+e;case 5443:return mt+e+At+"flex-item-"+et(e,/flex-|-self/g,"")+(Yi(e,/flex-|baseline/)?"":At+"grid-row-"+et(e,/flex-|-self/g,""))+e;case 4675:return mt+e+At+"flex-line-pack"+et(e,/align-content|flex-|-self/g,"")+e;case 5548:return mt+e+At+et(e,"shrink","negative")+e;case 5292:return mt+e+At+et(e,"basis","preferred-size")+e;case 6060:return mt+"box-"+et(e,"-grow","")+mt+e+At+et(e,"grow","positive")+e;case 4554:return mt+et(e,/([^-])(transform)/g,"$1"+mt+"$2")+e;case 6187:return et(et(et(e,/(zoom-|grab)/,mt+"$1"),/(image-set)/,mt+"$1"),e,"")+e;case 5495:case 3959:return et(e,/(image-set\([^]*)/,mt+"$1$`$1");case 4968:return et(et(e,/(.+:)(flex-)?(.*)/,mt+"box-pack:$3"+At+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+mt+e+e;case 4200:if(!Yi(e,/flex-|baseline/))return At+"grid-column-align"+nu(e,t)+e;break;case 2592:case 3360:return At+et(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,Yi(r.props,/grid-\w+-end/)})?~Td(e+(n=n[t].value),"span",0)?e:At+et(e,"-start","")+e+At+"grid-row-span:"+(~Td(n,"span",0)?Yi(n,/\d+/):+Yi(n,/\d+/)-+Yi(e,/\d+/))+";":At+et(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Yi(r.props,/grid-\w+-start/)})?e:At+et(et(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return et(e,/(.+)-inline(.+)/,mt+"$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(hi(e)-1-t>6)switch(ln(e,t+1)){case 109:if(ln(e,t+4)!==45)break;case 102:return et(e,/(.+:)(.+)-([^]+)/,"$1"+mt+"$2-$3$1"+tc+(ln(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Td(e,"stretch",0)?y2(et(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return et(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,a,o,u,l,f){return At+i+":"+a+f+(o?At+i+"-span:"+(u?l:+l-+a)+f:"")+e});case 4949:if(ln(e,t+6)===121)return et(e,":",":"+mt)+e;break;case 6444:switch(ln(e,ln(e,14)===45?18:11)){case 120:return et(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+mt+(ln(e,14)===45?"inline-":"")+"box$3$1"+mt+"$2$3$1"+At+"$2box$3")+e;case 100:return et(e,":",":"+At)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return et(e,"scroll-","scroll-snap-")+e}return e}function Gd(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function $j(e,t,n,r){switch(e.type){case sj:if(e.children.length)break;case oj:case c1:return e.return=e.return||e.value;case f2:return"";case d2:return e.return=e.value+"{"+Gd(e.children,r)+"}";case Kh:if(!hi(e.value=e.props.join(",")))return""}return hi(n=Gd(e.children,r))?e.return=e.value+"{"+n+"}":""}function xj(e){var t=m2(e);return function(n,r,i,a){for(var o="",u=0;u<t;u++)o+=e[u](n,r,i,a)||"";return o}}function wj(e){return function(t){t.root||(t=t.return)&&e(t)}}function Dj(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case c1:e.return=y2(e.value,e.length,n);return;case d2:return Gd([Aa(e,{value:et(e.value,"@","@"+mt)})],r);case Kh:if(e.length)return lj(n=e.props,function(i){switch(Yi(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ps(Aa(e,{props:[et(i,/:(read-\w+)/,":"+tc+"$1")]})),Ps(Aa(e,{props:[i]})),Tb(e,{props:Wx(n,r)});break;case"::placeholder":Ps(Aa(e,{props:[et(i,/:(plac\w+)/,":"+mt+"input-$1")]})),Ps(Aa(e,{props:[et(i,/:(plac\w+)/,":"+tc+"$1")]})),Ps(Aa(e,{props:[et(i,/:(plac\w+)/,At+"input-$1")]})),Ps(Aa(e,{props:[i]})),Tb(e,{props:Wx(n,r)});break}return""})}}var Cj={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},No=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",v2="active",b2="data-styled-version",Wh="6.1.14",d1=`/*!sc*/
|
|
2
|
+
`,Yd=typeof window<"u"&&"HTMLElement"in window,Ej=!!(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"),Yx=/invalid hook call/i,nd=new Set,Sj=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 a=!0;console.error=function(o){for(var u=[],l=1;l<arguments.length;l++)u[l-1]=arguments[l];Yx.test(o)?(a=!1,nd.delete(r)):i.apply(void 0,Vo([o],u,!1))},C.useRef(),a&&!nd.has(r)&&(console.warn(r),nd.add(r))}catch(o){Yx.test(o.message)&&nd.delete(r)}finally{console.error=i}}},Hh=Object.freeze([]),iu=Object.freeze({});function Tj(e,t,n){return n===void 0&&(n=iu),e.theme!==n.theme&&e.theme||t||n.theme}var _b=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"]),Aj=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Pj=/(^-|-$)/g;function Zx(e){return e.replace(Aj,"-").replace(Pj,"")}var _j=/(a)(d)/gi,rd=52,Jx=function(e){return String.fromCharCode(e+(e>25?39:97))};function Rb(e){var t,n="";for(t=Math.abs(e);t>rd;t=t/rd|0)n=Jx(t%rd)+n;return(Jx(t%rd)+n).replace(_j,"$1-$2")}var eg,$2=5381,Do=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},x2=function(e){return Do($2,e)};function w2(e){return Rb(x2(e)>>>0)}function D2(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function tg(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var C2=typeof Symbol=="function"&&Symbol.for,E2=C2?Symbol.for("react.memo"):60115,Rj=C2?Symbol.for("react.forward_ref"):60112,Oj={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Mj={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},S2={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Fj=((eg={})[Rj]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},eg[E2]=S2,eg);function Xx(e){return("type"in(t=e)&&t.type.$$typeof)===E2?S2:"$$typeof"in e?Fj[e.$$typeof]:Oj;var t}var kj=Object.defineProperty,Ij=Object.getOwnPropertyNames,Qx=Object.getOwnPropertySymbols,Bj=Object.getOwnPropertyDescriptor,Lj=Object.getPrototypeOf,ew=Object.prototype;function T2(e,t,n){if(typeof t!="string"){if(ew){var r=Lj(t);r&&r!==ew&&T2(e,r,n)}var i=Ij(t);Qx&&(i=i.concat(Qx(t)));for(var a=Xx(e),o=Xx(t),u=0;u<i.length;++u){var l=i[u];if(!(l in Mj||n&&n[l]||o&&l in o||a&&l in a)){var f=Bj(t,l);try{kj(e,l,f)}catch{}}}}return e}function jo(e){return typeof e=="function"}function h1(e){return typeof e=="object"&&"styledComponentId"in e}function So(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Ob(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function au(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Mb(e,t,n){if(n===void 0&&(n=!1),!n&&!au(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Mb(e[r],t[r]);else if(au(t))for(var r in t)e[r]=Mb(e[r],t[r]);return e}function p1(e,t){Object.defineProperty(e,"toString",{value:t})}var Vj=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 Nj(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],i=1,a=e.length;i<a;i+=1)r.push(e[i]);return r.forEach(function(o){n=n.replace(/%[a-z]/,o)}),n}function Ci(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(Nj.apply(void 0,Vo([Vj[e]],t,!1)).trim())}var jj=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,a=i;t>=a;)if((a<<=1)<0)throw Ci(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(r),this.length=a;for(var o=i;o<a;o++)this.groupSizes[o]=0}for(var u=this.indexOfGroup(t+1),l=(o=0,n.length);o<l;o++)this.tag.insertRule(u,n[o])&&(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 a=r;a<i;a++)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),a=i+r,o=i;o<a;o++)n+="".concat(this.tag.getRule(o)).concat(d1);return n},e}(),Kj=1<<30,_d=new Map,Zd=new Map,Rd=1,id=function(e){if(_d.has(e))return _d.get(e);for(;Zd.has(Rd);)Rd++;var t=Rd++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Kj))throw Ci(16,"".concat(t));return _d.set(e,t),Zd.set(t,e),t},Uj=function(e,t){Rd=t+1,_d.set(e,t),Zd.set(t,e)},zj="style[".concat(No,"][").concat(b2,'="').concat(Wh,'"]'),qj=new RegExp("^".concat(No,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Wj=function(e,t,n){for(var r,i=n.split(","),a=0,o=i.length;a<o;a++)(r=i[a])&&e.registerName(t,r)},Hj=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(d1),i=[],a=0,o=r.length;a<o;a++){var u=r[a].trim();if(u){var l=u.match(qj);if(l){var f=0|parseInt(l[1],10),d=l[2];f!==0&&(Uj(d,f),Wj(e,d,l[3]),e.getTag().insertRules(f,i)),i.length=0}else i.push(u)}}},tw=function(e){for(var t=document.querySelectorAll(zj),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(No)!==v2&&(Hj(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function Gj(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var A2=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(u){var l=Array.from(u.querySelectorAll("style[".concat(No,"]")));return l[l.length-1]}(n),a=i!==void 0?i.nextSibling:null;r.setAttribute(No,v2),r.setAttribute(b2,Wh);var o=Gj();return o&&r.setAttribute("nonce",o),n.insertBefore(r,a),r},Yj=function(){function e(t){this.element=A2(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,i=0,a=r.length;i<a;i++){var o=r[i];if(o.ownerNode===n)return o}throw Ci(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}(),Zj=function(){function e(t){this.element=A2(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}(),Jj=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}(),nw=Yd,Xj={isServer:!Yd,useCSSOMInjection:!Ej},P2=function(){function e(t,n,r){t===void 0&&(t=iu),n===void 0&&(n={});var i=this;this.options=En(En({},Xj),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Yd&&nw&&(nw=!1,tw(this)),p1(this,function(){return function(a){for(var o=a.getTag(),u=o.length,l="",f=function(h){var p=function(b){return Zd.get(b)}(h);if(p===void 0)return"continue";var g=a.names.get(p),y=o.getGroup(h);if(g===void 0||!g.size||y.length===0)return"continue";var $="".concat(No,".g").concat(h,'[id="').concat(p,'"]'),D="";g!==void 0&&g.forEach(function(b){b.length>0&&(D+="".concat(b,","))}),l+="".concat(y).concat($,'{content:"').concat(D,'"}').concat(d1)},d=0;d<u;d++)f(d);return l}(i)})}return e.registerId=function(t){return id(t)},e.prototype.rehydrate=function(){!this.server&&Yd&&tw(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(En(En({},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 Jj(i):r?new Yj(i):new Zj(i)}(this.options),new jj(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(id(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(id(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(id(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Qj=/&/g,eK=/^\s*\/\/.*$/gm;function _2(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=_2(n.children,t)),n})}function tK(e){var t,n,r,i=iu,a=i.options,o=a===void 0?iu:a,u=i.plugins,l=u===void 0?Hh:u,f=function(p,g,y){return y.startsWith(n)&&y.endsWith(n)&&y.replaceAll(n,"").length>0?".".concat(t):p},d=l.slice();d.push(function(p){p.type===Kh&&p.value.includes("&")&&(p.props[0]=p.props[0].replace(Qj,n).replace(r,f))}),o.prefix&&d.push(Dj),d.push($j);var h=function(p,g,y,$){g===void 0&&(g=""),y===void 0&&(y=""),$===void 0&&($="&"),t=$,n=g,r=new RegExp("\\".concat(n,"\\b"),"g");var D=p.replace(eK,""),b=vj(y||g?"".concat(y," ").concat(g," { ").concat(D," }"):D);o.namespace&&(b=_2(b,o.namespace));var v=[];return Gd(b,xj(d.concat(wj(function(w){return v.push(w)})))),v};return h.hash=l.length?l.reduce(function(p,g){return g.name||Ci(15),Do(p,g.name)},$2).toString():"",h}var nK=new P2,Fb=tK(),R2=C.createContext({shouldForwardProp:void 0,styleSheet:nK,stylis:Fb});R2.Consumer;C.createContext(void 0);function rw(){return C.useContext(R2)}var kb=function(){function e(t,n){var r=this;this.inject=function(i,a){a===void 0&&(a=Fb);var o=r.name+a.hash;i.hasNameForId(r.id,o)||i.insertRules(r.id,o,a(r.rules,o,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,p1(this,function(){throw Ci(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Fb),this.name+t.hash},e}(),rK=function(e){return e>="A"&&e<="Z"};function iw(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;rK(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var O2=function(e){return e==null||e===!1||e===""},M2=function(e){var t,n,r=[];for(var i in e){var a=e[i];e.hasOwnProperty(i)&&!O2(a)&&(Array.isArray(a)&&a.isCss||jo(a)?r.push("".concat(iw(i),":"),a,";"):au(a)?r.push.apply(r,Vo(Vo(["".concat(i," {")],M2(a),!1),["}"],!1)):r.push("".concat(iw(i),": ").concat((t=i,(n=a)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in Cj||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ko(e,t,n,r){if(O2(e))return[];if(h1(e))return[".".concat(e.styledComponentId)];if(jo(e)){if(!jo(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var i=e(t);return process.env.NODE_ENV==="production"||typeof i!="object"||Array.isArray(i)||i instanceof kb||au(i)||i===null||console.error("".concat(D2(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.")),ko(i,t,n,r)}var a;return e instanceof kb?n?(e.inject(n,r),[e.getName(r)]):[e]:au(e)?M2(e):Array.isArray(e)?Array.prototype.concat.apply(Hh,e.map(function(o){return ko(o,t,n,r)})):[e.toString()]}function iK(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(jo(n)&&!h1(n))return!1}return!0}var aK=x2(Wh),oK=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&iK(t),this.componentId=n,this.baseHash=Do(aK,n),this.baseStyle=r,P2.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=So(i,this.staticRulesId);else{var a=Ob(ko(this.rules,t,n,r)),o=Rb(Do(this.baseHash,a)>>>0);if(!n.hasNameForId(this.componentId,o)){var u=r(a,".".concat(o),void 0,this.componentId);n.insertRules(this.componentId,o,u)}i=So(i,o),this.staticRulesId=o}else{for(var l=Do(this.baseHash,r.hash),f="",d=0;d<this.rules.length;d++){var h=this.rules[d];if(typeof h=="string")f+=h,process.env.NODE_ENV!=="production"&&(l=Do(l,h));else if(h){var p=Ob(ko(h,t,n,r));l=Do(l,p+d),f+=p}}if(f){var g=Rb(l>>>0);n.hasNameForId(this.componentId,g)||n.insertRules(this.componentId,g,r(f,".".concat(g),void 0,this.componentId)),i=So(i,g)}}return i},e}(),hc=C.createContext(void 0);hc.Consumer;function sK(){var e=C.useContext(hc);if(!e)throw Ci(18);return e}function uK(e){var t=C.useContext(hc),n=C.useMemo(function(){return function(r,i){if(!r)throw Ci(14);if(jo(r)){var a=r(i);if(process.env.NODE_ENV!=="production"&&(a===null||Array.isArray(a)||typeof a!="object"))throw Ci(7);return a}if(Array.isArray(r)||typeof r!="object")throw Ci(8);return i?En(En({},i),r):r}(e.theme,t)},[e.theme,t]);return e.children?C.createElement(hc.Provider,{value:n},e.children):null}var ng={},aw=new Set;function lK(e,t,n){var r=h1(e),i=e,a=!tg(e),o=t.attrs,u=o===void 0?Hh:o,l=t.componentId,f=l===void 0?function(T,E){var A=typeof T!="string"?"sc":Zx(T);ng[A]=(ng[A]||0)+1;var M="".concat(A,"-").concat(w2(Wh+A+ng[A]));return E?"".concat(E,"-").concat(M):M}(t.displayName,t.parentComponentId):l,d=t.displayName,h=d===void 0?function(T){return tg(T)?"styled.".concat(T):"Styled(".concat(D2(T),")")}(e):d,p=t.displayName&&t.componentId?"".concat(Zx(t.displayName),"-").concat(t.componentId):t.componentId||f,g=r&&i.attrs?i.attrs.concat(u).filter(Boolean):u,y=t.shouldForwardProp;if(r&&i.shouldForwardProp){var $=i.shouldForwardProp;if(t.shouldForwardProp){var D=t.shouldForwardProp;y=function(T,E){return $(T,E)&&D(T,E)}}else y=$}var b=new oK(n,p,r?i.componentStyle:void 0);function v(T,E){return function(A,M,S){var z=A.attrs,j=A.componentStyle,O=A.defaultProps,Z=A.foldedComponentIds,R=A.styledComponentId,V=A.target,W=C.useContext(hc),L=rw(),k=A.shouldForwardProp||L.shouldForwardProp;process.env.NODE_ENV!=="production"&&C.useDebugValue(R);var _=Tj(M,W,O)||iu,H=function(xe,De,Ee){for(var J,ye=En(En({},De),{className:void 0,theme:Ee}),we=0;we<xe.length;we+=1){var me=jo(J=xe[we])?J(ye):J;for(var ue in me)ye[ue]=ue==="className"?So(ye[ue],me[ue]):ue==="style"?En(En({},ye[ue]),me[ue]):me[ue]}return De.className&&(ye.className=So(ye.className,De.className)),ye}(z,M,_),U=H.as||V,N={};for(var ne in H)H[ne]===void 0||ne[0]==="$"||ne==="as"||ne==="theme"&&H.theme===_||(ne==="forwardedAs"?N.as=H.forwardedAs:k&&!k(ne,U)||(N[ne]=H[ne],k||process.env.NODE_ENV!=="development"||aj(ne)||aw.has(ne)||!_b.has(U)||(aw.add(ne),console.warn('styled-components: it looks like an unknown prop "'.concat(ne,'" 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 ie=function(xe,De){var Ee=rw(),J=xe.generateAndInjectStyles(De,Ee.styleSheet,Ee.stylis);return process.env.NODE_ENV!=="production"&&C.useDebugValue(J),J}(j,H);process.env.NODE_ENV!=="production"&&A.warnTooManyClasses&&A.warnTooManyClasses(ie);var ce=So(Z,R);return ie&&(ce+=" "+ie),H.className&&(ce+=" "+H.className),N[tg(U)&&!_b.has(U)?"class":"className"]=ce,S&&(N.ref=S),C.createElement(U,N)}(w,T,E)}v.displayName=h;var w=C.forwardRef(v);return w.attrs=g,w.componentStyle=b,w.displayName=h,w.shouldForwardProp=y,w.foldedComponentIds=r?So(i.foldedComponentIds,i.styledComponentId):"",w.styledComponentId=p,w.target=r?i.target:e,Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(T){this._foldedDefaultProps=r?function(E){for(var A=[],M=1;M<arguments.length;M++)A[M-1]=arguments[M];for(var S=0,z=A;S<z.length;S++)Mb(E,z[S],!0);return E}({},i.defaultProps,T):T}}),process.env.NODE_ENV!=="production"&&(Sj(h,p),w.warnTooManyClasses=function(T,E){var A={},M=!1;return function(S){if(!M&&(A[S]=!0,Object.keys(A).length>=200)){var z=E?' with the id of "'.concat(E,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(T).concat(z,`.
|
|
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 />`),M=!0,A={}}}}(h,p)),p1(w,function(){return".".concat(w.styledComponentId)}),a&&T2(w,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),w}function ow(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 sw=function(e){return Object.assign(e,{isCss:!0})};function m1(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(jo(e)||au(e))return sw(ko(ow(Hh,Vo([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?ko(r):sw(ko(ow(r,t)))}function Ib(e,t,n){if(n===void 0&&(n=iu),!t)throw Ci(1,t);var r=function(i){for(var a=[],o=1;o<arguments.length;o++)a[o-1]=arguments[o];return e(t,n,m1.apply(void 0,Vo([i],a,!1)))};return r.attrs=function(i){return Ib(e,t,En(En({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},r.withConfig=function(i){return Ib(e,t,En(En({},n),i))},r}var F2=function(e){return Ib(lK,e)},k2=F2;_b.forEach(function(e){k2[e]=F2(e)});function cK(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=Ob(m1.apply(void 0,Vo([e],t,!1))),i=w2(r);return new kb(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 ad="__sc-".concat(No,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[ad]||(window[ad]=0),window[ad]===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[ad]+=1);function Gh(){return typeof window<"u"}function Tu(e){return I2(e)?(e.nodeName||"").toLowerCase():"#document"}function Hn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function _i(e){var t;return(t=(I2(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function I2(e){return Gh()?e instanceof Node||e instanceof Hn(e).Node:!1}function en(e){return Gh()?e instanceof Element||e instanceof Hn(e).Element:!1}function Pr(e){return Gh()?e instanceof HTMLElement||e instanceof Hn(e).HTMLElement:!1}function Bb(e){return!Gh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Hn(e).ShadowRoot}function kc(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Wr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function fK(e){return["table","td","th"].includes(Tu(e))}function Yh(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function g1(e){const t=y1(),n=en(e)?Wr(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 dK(e){let t=za(e);for(;Pr(t)&&!ou(t);){if(g1(t))return t;if(Yh(t))return null;t=za(t)}return null}function y1(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ou(e){return["html","body","#document"].includes(Tu(e))}function Wr(e){return Hn(e).getComputedStyle(e)}function Zh(e){return en(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function za(e){if(Tu(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Bb(e)&&e.host||_i(e);return Bb(t)?t.host:t}function B2(e){const t=za(e);return ou(t)?e.ownerDocument?e.ownerDocument.body:e.body:Pr(t)&&kc(t)?t:B2(t)}function pc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=B2(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),o=Hn(i);if(a){const u=Lb(o);return t.concat(o,o.visualViewport||[],kc(i)?i:[],u&&n?pc(u):[])}return t.concat(i,pc(i,[],n))}function Lb(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function uw(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function Vb(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Bb(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function L2(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function V2(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function hK(e){return gK()?!1:!lw()&&e.width===0&&e.height===0||lw()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function pK(){return/apple/i.test(navigator.vendor)}function lw(){const e=/android/i;return e.test(L2())||e.test(V2())}function mK(){return L2().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function gK(){return V2().includes("jsdom/")}function Nb(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}function Kl(e){return(e==null?void 0:e.ownerDocument)||document}function yK(e){return"composedPath"in e?e.composedPath()[0]:e.target}const vK="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function bK(e){return Pr(e)&&e.matches(vK)}const Jd=Math.min,Io=Math.max,Xd=Math.round,od=Math.floor,Ei=e=>({x:e,y:e}),$K={left:"right",right:"left",bottom:"top",top:"bottom"},xK={start:"end",end:"start"};function cw(e,t,n){return Io(e,Jd(t,n))}function Jh(e,t){return typeof e=="function"?e(t):e}function Ko(e){return e.split("-")[0]}function Xh(e){return e.split("-")[1]}function N2(e){return e==="x"?"y":"x"}function j2(e){return e==="y"?"height":"width"}function su(e){return["top","bottom"].includes(Ko(e))?"y":"x"}function K2(e){return N2(su(e))}function wK(e,t,n){n===void 0&&(n=!1);const r=Xh(e),i=K2(e),a=j2(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=Qd(o)),[o,Qd(o)]}function DK(e){const t=Qd(e);return[jb(e),t,jb(t)]}function jb(e){return e.replace(/start|end/g,t=>xK[t])}function CK(e,t,n){const r=["left","right"],i=["right","left"],a=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?a:o;default:return[]}}function EK(e,t,n,r){const i=Xh(e);let a=CK(Ko(e),n==="start",r);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(jb)))),a}function Qd(e){return e.replace(/left|right|bottom|top/g,t=>$K[t])}function SK(e){return{top:0,right:0,bottom:0,left:0,...e}}function TK(e){return typeof e!="number"?SK(e):{top:e,right:e,bottom:e,left:e}}function eh(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 fw(e,t,n){let{reference:r,floating:i}=e;const a=su(t),o=K2(t),u=j2(o),l=Ko(t),f=a==="y",d=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,p=r[u]/2-i[u]/2;let g;switch(l){case"top":g={x:d,y:r.y-i.height};break;case"bottom":g={x:d,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(Xh(t)){case"start":g[o]-=p*(n&&f?-1:1);break;case"end":g[o]+=p*(n&&f?-1:1);break}return g}const AK=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,u=a.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let f=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:h}=fw(f,r,l),p=r,g={},y=0;for(let $=0;$<u.length;$++){const{name:D,fn:b}=u[$],{x:v,y:w,data:T,reset:E}=await b({x:d,y:h,initialPlacement:r,placement:p,strategy:i,middlewareData:g,rects:f,platform:o,elements:{reference:e,floating:t}});d=v??d,h=w??h,g={...g,[D]:{...g[D],...T}},E&&y<=50&&(y++,typeof E=="object"&&(E.placement&&(p=E.placement),E.rects&&(f=E.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):E.rects),{x:d,y:h}=fw(f,p,l)),$=-1)}return{x:d,y:h,placement:p,strategy:i,middlewareData:g}};async function U2(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:o,elements:u,strategy:l}=e,{boundary:f="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:p=!1,padding:g=0}=Jh(t,e),y=TK(g),D=u[p?h==="floating"?"reference":"floating":h],b=eh(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(D)))==null||n?D:D.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(u.floating)),boundary:f,rootBoundary:d,strategy:l})),v=h==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u.floating)),T=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},E=eh(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:v,offsetParent:w,strategy:l}):v);return{top:(b.top-E.top+y.top)/T.y,bottom:(E.bottom-b.bottom+y.bottom)/T.y,left:(b.left-E.left+y.left)/T.x,right:(E.right-b.right+y.right)/T.x}}const PK=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:o,initialPlacement:u,platform:l,elements:f}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:$=!0,...D}=Jh(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const b=Ko(i),v=su(u),w=Ko(u)===u,T=await(l.isRTL==null?void 0:l.isRTL(f.floating)),E=p||(w||!$?[Qd(u)]:DK(u)),A=y!=="none";!p&&A&&E.push(...EK(u,$,y,T));const M=[u,...E],S=await U2(t,D),z=[];let j=((r=a.flip)==null?void 0:r.overflows)||[];if(d&&z.push(S[b]),h){const V=wK(i,o,T);z.push(S[V[0]],S[V[1]])}if(j=[...j,{placement:i,overflows:z}],!z.every(V=>V<=0)){var O,Z;const V=(((O=a.flip)==null?void 0:O.index)||0)+1,W=M[V];if(W)return{data:{index:V,overflows:j},reset:{placement:W}};let L=(Z=j.filter(k=>k.overflows[0]<=0).sort((k,_)=>k.overflows[1]-_.overflows[1])[0])==null?void 0:Z.placement;if(!L)switch(g){case"bestFit":{var R;const k=(R=j.filter(_=>{if(A){const H=su(_.placement);return H===v||H==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(H=>H>0).reduce((H,U)=>H+U,0)]).sort((_,H)=>_[1]-H[1])[0])==null?void 0:R[0];k&&(L=k);break}case"initialPlacement":L=u;break}if(i!==L)return{reset:{placement:L}}}return{}}}};async function _K(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Ko(n),u=Xh(n),l=su(n)==="y",f=["left","top"].includes(o)?-1:1,d=a&&l?-1:1,h=Jh(t,e);let{mainAxis:p,crossAxis:g,alignmentAxis:y}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return u&&typeof y=="number"&&(g=u==="end"?y*-1:y),l?{x:g*d,y:p*f}:{x:p*f,y:g*d}}const RK=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:o,middlewareData:u}=t,l=await _K(t,e);return o===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:o}}}}},OK=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:u={fn:D=>{let{x:b,y:v}=D;return{x:b,y:v}}},...l}=Jh(e,t),f={x:n,y:r},d=await U2(t,l),h=su(Ko(i)),p=N2(h);let g=f[p],y=f[h];if(a){const D=p==="y"?"top":"left",b=p==="y"?"bottom":"right",v=g+d[D],w=g-d[b];g=cw(v,g,w)}if(o){const D=h==="y"?"top":"left",b=h==="y"?"bottom":"right",v=y+d[D],w=y-d[b];y=cw(v,y,w)}const $=u.fn({...t,[p]:g,[h]:y});return{...$,data:{x:$.x-n,y:$.y-r,enabled:{[p]:a,[h]:o}}}}}};function z2(e){const t=Wr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Pr(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,u=Xd(n)!==a||Xd(r)!==o;return u&&(n=a,r=o),{width:n,height:r,$:u}}function v1(e){return en(e)?e:e.contextElement}function Gs(e){const t=v1(e);if(!Pr(t))return Ei(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=z2(t);let o=(a?Xd(n.width):n.width)/r,u=(a?Xd(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!u||!Number.isFinite(u))&&(u=1),{x:o,y:u}}const MK=Ei(0);function q2(e){const t=Hn(e);return!y1()||!t.visualViewport?MK:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function FK(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Hn(e)?!1:t}function Uo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=v1(e);let o=Ei(1);t&&(r?en(r)&&(o=Gs(r)):o=Gs(e));const u=FK(a,n,r)?q2(a):Ei(0);let l=(i.left+u.x)/o.x,f=(i.top+u.y)/o.y,d=i.width/o.x,h=i.height/o.y;if(a){const p=Hn(a),g=r&&en(r)?Hn(r):r;let y=p,$=Lb(y);for(;$&&r&&g!==y;){const D=Gs($),b=$.getBoundingClientRect(),v=Wr($),w=b.left+($.clientLeft+parseFloat(v.paddingLeft))*D.x,T=b.top+($.clientTop+parseFloat(v.paddingTop))*D.y;l*=D.x,f*=D.y,d*=D.x,h*=D.y,l+=w,f+=T,y=Hn($),$=Lb(y)}}return eh({width:d,height:h,x:l,y:f})}function b1(e,t){const n=Zh(e).scrollLeft;return t?t.left+n:Uo(_i(e)).left+n}function W2(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:b1(e,r)),a=r.top+t.scrollTop;return{x:i,y:a}}function kK(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",o=_i(r),u=t?Yh(t.floating):!1;if(r===o||u&&a)return n;let l={scrollLeft:0,scrollTop:0},f=Ei(1);const d=Ei(0),h=Pr(r);if((h||!h&&!a)&&((Tu(r)!=="body"||kc(o))&&(l=Zh(r)),Pr(r))){const g=Uo(r);f=Gs(r),d.x=g.x+r.clientLeft,d.y=g.y+r.clientTop}const p=o&&!h&&!a?W2(o,l,!0):Ei(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-l.scrollLeft*f.x+d.x+p.x,y:n.y*f.y-l.scrollTop*f.y+d.y+p.y}}function IK(e){return Array.from(e.getClientRects())}function BK(e){const t=_i(e),n=Zh(e),r=e.ownerDocument.body,i=Io(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Io(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+b1(e);const u=-n.scrollTop;return Wr(r).direction==="rtl"&&(o+=Io(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:u}}function LK(e,t){const n=Hn(e),r=_i(e),i=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,u=0,l=0;if(i){a=i.width,o=i.height;const f=y1();(!f||f&&t==="fixed")&&(u=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:u,y:l}}function VK(e,t){const n=Uo(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Pr(e)?Gs(e):Ei(1),o=e.clientWidth*a.x,u=e.clientHeight*a.y,l=i*a.x,f=r*a.y;return{width:o,height:u,x:l,y:f}}function dw(e,t,n){let r;if(t==="viewport")r=LK(e,n);else if(t==="document")r=BK(_i(e));else if(en(t))r=VK(t,n);else{const i=q2(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return eh(r)}function H2(e,t){const n=za(e);return n===t||!en(n)||ou(n)?!1:Wr(n).position==="fixed"||H2(n,t)}function NK(e,t){const n=t.get(e);if(n)return n;let r=pc(e,[],!1).filter(u=>en(u)&&Tu(u)!=="body"),i=null;const a=Wr(e).position==="fixed";let o=a?za(e):e;for(;en(o)&&!ou(o);){const u=Wr(o),l=g1(o);!l&&u.position==="fixed"&&(i=null),(a?!l&&!i:!l&&u.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||kc(o)&&!l&&H2(e,o))?r=r.filter(d=>d!==o):i=u,o=za(o)}return t.set(e,r),r}function jK(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?Yh(t)?[]:NK(t,this._c):[].concat(n),r],u=o[0],l=o.reduce((f,d)=>{const h=dw(t,d,i);return f.top=Io(h.top,f.top),f.right=Jd(h.right,f.right),f.bottom=Jd(h.bottom,f.bottom),f.left=Io(h.left,f.left),f},dw(t,u,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function KK(e){const{width:t,height:n}=z2(e);return{width:t,height:n}}function UK(e,t,n){const r=Pr(t),i=_i(t),a=n==="fixed",o=Uo(e,!0,a,t);let u={scrollLeft:0,scrollTop:0};const l=Ei(0);if(r||!r&&!a)if((Tu(t)!=="body"||kc(i))&&(u=Zh(t)),r){const p=Uo(t,!0,a,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&(l.x=b1(i));const f=i&&!r&&!a?W2(i,u):Ei(0),d=o.left+u.scrollLeft-l.x-f.x,h=o.top+u.scrollTop-l.y-f.y;return{x:d,y:h,width:o.width,height:o.height}}function rg(e){return Wr(e).position==="static"}function hw(e,t){if(!Pr(e)||Wr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return _i(e)===n&&(n=n.ownerDocument.body),n}function G2(e,t){const n=Hn(e);if(Yh(e))return n;if(!Pr(e)){let i=za(e);for(;i&&!ou(i);){if(en(i)&&!rg(i))return i;i=za(i)}return n}let r=hw(e,t);for(;r&&fK(r)&&rg(r);)r=hw(r,t);return r&&ou(r)&&rg(r)&&!g1(r)?n:r||dK(e)||n}const zK=async function(e){const t=this.getOffsetParent||G2,n=this.getDimensions,r=await n(e.floating);return{reference:UK(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function qK(e){return Wr(e).direction==="rtl"}const WK={convertOffsetParentRelativeRectToViewportRelativeRect:kK,getDocumentElement:_i,getClippingRect:jK,getOffsetParent:G2,getElementRects:zK,getClientRects:IK,getDimensions:KK,getScale:Gs,isElement:en,isRTL:qK};function Y2(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function HK(e,t){let n=null,r;const i=_i(e);function a(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function o(u,l){u===void 0&&(u=!1),l===void 0&&(l=1),a();const f=e.getBoundingClientRect(),{left:d,top:h,width:p,height:g}=f;if(u||t(),!p||!g)return;const y=od(h),$=od(i.clientWidth-(d+p)),D=od(i.clientHeight-(h+g)),b=od(d),w={rootMargin:-y+"px "+-$+"px "+-D+"px "+-b+"px",threshold:Io(0,Jd(1,l))||1};let T=!0;function E(A){const M=A[0].intersectionRatio;if(M!==l){if(!T)return o();M?o(!1,M):r=setTimeout(()=>{o(!1,1e-7)},1e3)}M===1&&!Y2(f,e.getBoundingClientRect())&&o(),T=!1}try{n=new IntersectionObserver(E,{...w,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,w)}n.observe(e)}return o(!0),a}function GK(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,f=v1(e),d=i||a?[...f?pc(f):[],...pc(t)]:[];d.forEach(b=>{i&&b.addEventListener("scroll",n,{passive:!0}),a&&b.addEventListener("resize",n)});const h=f&&u?HK(f,n):null;let p=-1,g=null;o&&(g=new ResizeObserver(b=>{let[v]=b;v&&v.target===f&&g&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),n()}),f&&!l&&g.observe(f),g.observe(t));let y,$=l?Uo(e):null;l&&D();function D(){const b=Uo(e);$&&!Y2($,b)&&n(),$=b,y=requestAnimationFrame(D)}return n(),()=>{var b;d.forEach(v=>{i&&v.removeEventListener("scroll",n),a&&v.removeEventListener("resize",n)}),h==null||h(),(b=g)==null||b.disconnect(),g=null,l&&cancelAnimationFrame(y)}}const YK=RK,ZK=OK,JK=PK,XK=(e,t,n)=>{const r=new Map,i={platform:WK,...n},a={...i.platform,_c:r};return AK(e,t,{...i,platform:a})};var Od=typeof document<"u"?C.useLayoutEffect:C.useEffect;function th(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(!th(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 a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!th(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Z2(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pw(e,t){const n=Z2(e);return Math.round(t*n)/n}function ig(e){const t=be.useRef(e);return Od(()=>{t.current=e}),t}function J2(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:u=!0,whileElementsMounted:l,open:f}=e,[d,h]=be.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,g]=be.useState(r);th(p,r)||g(r);const[y,$]=be.useState(null),[D,b]=be.useState(null),v=be.useCallback(_=>{_!==A.current&&(A.current=_,$(_))},[]),w=be.useCallback(_=>{_!==M.current&&(M.current=_,b(_))},[]),T=a||y,E=o||D,A=be.useRef(null),M=be.useRef(null),S=be.useRef(d),z=l!=null,j=ig(l),O=ig(i),Z=ig(f),R=be.useCallback(()=>{if(!A.current||!M.current)return;const _={placement:t,strategy:n,middleware:p};O.current&&(_.platform=O.current),XK(A.current,M.current,_).then(H=>{const U={...H,isPositioned:Z.current!==!1};V.current&&!th(S.current,U)&&(S.current=U,Sd.flushSync(()=>{h(U)}))})},[p,t,n,O,Z]);Od(()=>{f===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,h(_=>({..._,isPositioned:!1})))},[f]);const V=be.useRef(!1);Od(()=>(V.current=!0,()=>{V.current=!1}),[]),Od(()=>{if(T&&(A.current=T),E&&(M.current=E),T&&E){if(j.current)return j.current(T,E,R);R()}},[T,E,R,j,z]);const W=be.useMemo(()=>({reference:A,floating:M,setReference:v,setFloating:w}),[v,w]),L=be.useMemo(()=>({reference:T,floating:E}),[T,E]),k=be.useMemo(()=>{const _={position:n,left:0,top:0};if(!L.floating)return _;const H=pw(L.floating,d.x),U=pw(L.floating,d.y);return u?{..._,transform:"translate("+H+"px, "+U+"px)",...Z2(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:H,top:U}},[n,u,L.floating,d.x,d.y]);return be.useMemo(()=>({...d,update:R,refs:W,elements:L,floatingStyles:k}),[d,R,W,L,k])}const QK=(e,t)=>({...YK(e),options:[e,t]}),eU=(e,t)=>({...ZK(e),options:[e,t]}),tU=(e,t)=>({...JK(e),options:[e,t]}),X2={...be},nU=X2.useInsertionEffect,rU=nU||(e=>e());function Md(e){const t=be.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return rU(()=>{t.current=e}),be.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var uu=typeof document<"u"?C.useLayoutEffect:C.useEffect;let mw=!1,iU=0;const gw=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+iU++;function aU(){const[e,t]=be.useState(()=>mw?gw():void 0);return uu(()=>{e==null&&t(gw())},[]),be.useEffect(()=>{mw=!0},[]),e}const oU=X2.useId,Q2=oU||aU;let Kb;process.env.NODE_ENV!=="production"&&(Kb=new Set);function sU(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((e=Kb)!=null&&e.has(i))){var a;(a=Kb)==null||a.add(i),console.error(i)}}function uU(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const lU=be.createContext(null),cU=be.createContext(null),$1=()=>{var e;return((e=be.useContext(lU))==null?void 0:e.id)||null},eA=()=>be.useContext(cU);function tA(e){return"data-floating-ui-"+e}function ag(e){const t=C.useRef(e);return uu(()=>{t.current=e}),t}const yw=tA("safe-polygon");function og(e,t,n){return n&&!Nb(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function fU(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:a,elements:o}=e,{enabled:u=!0,delay:l=0,handleClose:f=null,mouseOnly:d=!1,restMs:h=0,move:p=!0}=t,g=eA(),y=$1(),$=ag(f),D=ag(l),b=ag(n),v=be.useRef(),w=be.useRef(-1),T=be.useRef(),E=be.useRef(-1),A=be.useRef(!0),M=be.useRef(!1),S=be.useRef(()=>{}),z=be.useRef(!1),j=be.useCallback(()=>{var k;const _=(k=i.current.openEvent)==null?void 0:k.type;return(_==null?void 0:_.includes("mouse"))&&_!=="mousedown"},[i]);be.useEffect(()=>{if(!u)return;function k(_){let{open:H}=_;H||(clearTimeout(w.current),clearTimeout(E.current),A.current=!0,z.current=!1)}return a.on("openchange",k),()=>{a.off("openchange",k)}},[u,a]),be.useEffect(()=>{if(!u||!$.current||!n)return;function k(H){j()&&r(!1,H,"hover")}const _=Kl(o.floating).documentElement;return _.addEventListener("mouseleave",k),()=>{_.removeEventListener("mouseleave",k)}},[o.floating,n,r,u,$,j]);const O=be.useCallback(function(k,_,H){_===void 0&&(_=!0),H===void 0&&(H="hover");const U=og(D.current,"close",v.current);U&&!T.current?(clearTimeout(w.current),w.current=window.setTimeout(()=>r(!1,k,H),U)):_&&(clearTimeout(w.current),r(!1,k,H))},[D,r]),Z=Md(()=>{S.current(),T.current=void 0}),R=Md(()=>{if(M.current){const k=Kl(o.floating).body;k.style.pointerEvents="",k.removeAttribute(yw),M.current=!1}}),V=Md(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);be.useEffect(()=>{if(!u)return;function k(N){if(clearTimeout(w.current),A.current=!1,d&&!Nb(v.current)||h>0&&!og(D.current,"open"))return;const ne=og(D.current,"open",v.current);ne?w.current=window.setTimeout(()=>{b.current||r(!0,N,"hover")},ne):n||r(!0,N,"hover")}function _(N){if(V())return;S.current();const ne=Kl(o.floating);if(clearTimeout(E.current),z.current=!1,$.current&&i.current.floatingContext){n||clearTimeout(w.current),T.current=$.current({...i.current.floatingContext,tree:g,x:N.clientX,y:N.clientY,onClose(){R(),Z(),V()||O(N,!0,"safe-polygon")}});const ce=T.current;ne.addEventListener("mousemove",ce),S.current=()=>{ne.removeEventListener("mousemove",ce)};return}(v.current==="touch"?!Vb(o.floating,N.relatedTarget):!0)&&O(N)}function H(N){V()||i.current.floatingContext&&($.current==null||$.current({...i.current.floatingContext,tree:g,x:N.clientX,y:N.clientY,onClose(){R(),Z(),V()||O(N)}})(N))}if(en(o.domReference)){var U;const N=o.domReference;return n&&N.addEventListener("mouseleave",H),(U=o.floating)==null||U.addEventListener("mouseleave",H),p&&N.addEventListener("mousemove",k,{once:!0}),N.addEventListener("mouseenter",k),N.addEventListener("mouseleave",_),()=>{var ne;n&&N.removeEventListener("mouseleave",H),(ne=o.floating)==null||ne.removeEventListener("mouseleave",H),p&&N.removeEventListener("mousemove",k),N.removeEventListener("mouseenter",k),N.removeEventListener("mouseleave",_)}}},[o,u,e,d,h,p,O,Z,R,r,n,b,g,D,$,i,V]),uu(()=>{var k;if(u&&n&&(k=$.current)!=null&&k.__options.blockPointerEvents&&j()){M.current=!0;const H=o.floating;if(en(o.domReference)&&H){var _;const U=Kl(o.floating).body;U.setAttribute(yw,"");const N=o.domReference,ne=g==null||(_=g.nodesRef.current.find(ie=>ie.id===y))==null||(_=_.context)==null?void 0:_.elements.floating;return ne&&(ne.style.pointerEvents=""),U.style.pointerEvents="none",N.style.pointerEvents="auto",H.style.pointerEvents="auto",()=>{U.style.pointerEvents="",N.style.pointerEvents="",H.style.pointerEvents=""}}}},[u,n,y,o,g,$,j]),uu(()=>{n||(v.current=void 0,z.current=!1,Z(),R())},[n,Z,R]),be.useEffect(()=>()=>{Z(),clearTimeout(w.current),clearTimeout(E.current),R()},[u,o.domReference,Z,R]);const W=be.useMemo(()=>{function k(_){v.current=_.pointerType}return{onPointerDown:k,onPointerEnter:k,onMouseMove(_){const{nativeEvent:H}=_;function U(){!A.current&&!b.current&&r(!0,H,"hover")}d&&!Nb(v.current)||n||h===0||z.current&&_.movementX**2+_.movementY**2<2||(clearTimeout(E.current),v.current==="touch"?U():(z.current=!0,E.current=window.setTimeout(U,h)))}}},[d,r,n,b,h]),L=be.useMemo(()=>({onMouseEnter(){clearTimeout(w.current)},onMouseLeave(k){V()||O(k.nativeEvent,!1)}}),[O,V]);return be.useMemo(()=>u?{reference:W,floating:L}:{},[u,W,L])}const dU="data-floating-ui-focusable";function hU(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Q2(),a=be.useRef({}),[o]=be.useState(()=>uU()),u=$1()!=null;if(process.env.NODE_ENV!=="production"){const g=r.reference;g&&!en(g)&&sU("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,f]=be.useState(r.reference),d=Md((g,y,$)=>{a.current.openEvent=g?y:void 0,o.emit("openchange",{open:g,event:y,reason:$,nested:u}),n==null||n(g,y,$)}),h=be.useMemo(()=>({setPositionReference:f}),[]),p=be.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return be.useMemo(()=>({dataRef:a,open:t,onOpenChange:d,elements:p,events:o,floatingId:i,refs:h}),[t,d,p,o,i,h])}function pU(e){e===void 0&&(e={});const{nodeId:t}=e,n=hU({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[a,o]=be.useState(null),[u,l]=be.useState(null),d=(i==null?void 0:i.domReference)||a,h=be.useRef(null),p=eA();uu(()=>{d&&(h.current=d)},[d]);const g=J2({...e,elements:{...i,...u&&{reference:u}}}),y=be.useCallback(w=>{const T=en(w)?{getBoundingClientRect:()=>w.getBoundingClientRect(),contextElement:w}:w;l(T),g.refs.setReference(T)},[g.refs]),$=be.useCallback(w=>{(en(w)||w===null)&&(h.current=w,o(w)),(en(g.refs.reference.current)||g.refs.reference.current===null||w!==null&&!en(w))&&g.refs.setReference(w)},[g.refs]),D=be.useMemo(()=>({...g.refs,setReference:$,setPositionReference:y,domReference:h}),[g.refs,$,y]),b=be.useMemo(()=>({...g.elements,domReference:d}),[g.elements,d]),v=be.useMemo(()=>({...g,...r,refs:D,elements:b,nodeId:t}),[g,D,b,t,r]);return uu(()=>{r.dataRef.current.floatingContext=v;const w=p==null?void 0:p.nodesRef.current.find(T=>T.id===t);w&&(w.context=v)}),be.useMemo(()=>({...g,context:v,refs:D,elements:b}),[g,D,b,v])}function mU(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:a,elements:o}=e,{enabled:u=!0,visibleOnly:l=!0}=t,f=be.useRef(!1),d=be.useRef(),h=be.useRef(!0);be.useEffect(()=>{if(!u)return;const g=Hn(o.domReference);function y(){!n&&Pr(o.domReference)&&o.domReference===uw(Kl(o.domReference))&&(f.current=!0)}function $(){h.current=!0}return g.addEventListener("blur",y),g.addEventListener("keydown",$,!0),()=>{g.removeEventListener("blur",y),g.removeEventListener("keydown",$,!0)}},[o.domReference,n,u]),be.useEffect(()=>{if(!u)return;function g(y){let{reason:$}=y;($==="reference-press"||$==="escape-key")&&(f.current=!0)}return i.on("openchange",g),()=>{i.off("openchange",g)}},[i,u]),be.useEffect(()=>()=>{clearTimeout(d.current)},[]);const p=be.useMemo(()=>({onPointerDown(g){hK(g.nativeEvent)||(h.current=!1)},onMouseLeave(){f.current=!1},onFocus(g){if(f.current)return;const y=yK(g.nativeEvent);if(l&&en(y))try{if(pK()&&mK())throw Error();if(!y.matches(":focus-visible"))return}catch{if(!h.current&&!bK(y))return}r(!0,g.nativeEvent,"focus")},onBlur(g){f.current=!1;const y=g.relatedTarget,$=g.nativeEvent,D=en(y)&&y.hasAttribute(tA("focus-guard"))&&y.getAttribute("data-type")==="outside";d.current=window.setTimeout(()=>{var b;const v=uw(o.domReference?o.domReference.ownerDocument:document);!y&&v===o.domReference||Vb((b=a.current.floatingContext)==null?void 0:b.refs.floating.current,v)||Vb(o.domReference,v)||D||r(!1,$,"focus")})}}),[a,o.domReference,r,l]);return be.useMemo(()=>u?{reference:p}:{},[u,p])}const vw="active",bw="selected";function sg(e,t,n){const r=new Map,i=n==="item";let a=e;if(i&&e){const{[vw]:o,[bw]:u,...l}=e;a=l}return{...n==="floating"&&{tabIndex:-1,[dU]:""},...a,...t.map(o=>{const u=o?o[n]:null;return typeof u=="function"?e?u(e):null:u}).concat(e).reduce((o,u)=>(u&&Object.entries(u).forEach(l=>{let[f,d]=l;if(!(i&&[vw,bw].includes(f)))if(f.indexOf("on")===0){if(r.has(f)||r.set(f,[]),typeof d=="function"){var h;(h=r.get(f))==null||h.push(d),o[f]=function(){for(var p,g=arguments.length,y=new Array(g),$=0;$<g;$++)y[$]=arguments[$];return(p=r.get(f))==null?void 0:p.map(D=>D(...y)).find(D=>D!==void 0)}}}else o[f]=d}),o),{})}}function gU(e){e===void 0&&(e=[]);const t=e.map(u=>u==null?void 0:u.reference),n=e.map(u=>u==null?void 0:u.floating),r=e.map(u=>u==null?void 0:u.item),i=be.useCallback(u=>sg(u,e,"reference"),t),a=be.useCallback(u=>sg(u,e,"floating"),n),o=be.useCallback(u=>sg(u,e,"item"),r);return be.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}const yU=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function vU(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:a=!0,role:o="dialog"}=t,u=(n=yU.get(o))!=null?n:o,l=Q2(),d=$1()!=null,h=be.useMemo(()=>u==="tooltip"||o==="label"?{["aria-"+(o==="label"?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":u==="alertdialog"?"dialog":u,"aria-controls":r?i:void 0,...u==="listbox"&&{role:"combobox"},...u==="menu"&&{id:l},...u==="menu"&&d&&{role:"menuitem"},...o==="select"&&{"aria-autocomplete":"none"},...o==="combobox"&&{"aria-autocomplete":"list"}},[u,i,d,r,l,o]),p=be.useMemo(()=>{const y={id:i,...u&&{role:u}};return u==="tooltip"||o==="label"?y:{...y,...u==="menu"&&{"aria-labelledby":l}}},[u,i,l,o]),g=be.useCallback(y=>{let{active:$,selected:D}=y;const b={role:"option",...$&&{id:i+"-option"}};switch(o){case"select":return{...b,"aria-selected":$&&D};case"combobox":return{...b,...$&&{"aria-selected":!0}}}return{}},[i,o]);return be.useMemo(()=>a?{reference:h,floating:p,item:g}:{},[a,h,p,g])}var Ul={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 bU=Ul.exports,$w;function $U(){return $w||($w=1,function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",u="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",f=500,d="__lodash_placeholder__",h=1,p=2,g=4,y=1,$=2,D=1,b=2,v=4,w=8,T=16,E=32,A=64,M=128,S=256,z=512,j=30,O="...",Z=800,R=16,V=1,W=2,L=3,k=1/0,_=9007199254740991,H=17976931348623157e292,U=NaN,N=4294967295,ne=N-1,ie=N>>>1,ce=[["ary",M],["bind",D],["bindKey",b],["curry",w],["curryRight",T],["flip",z],["partial",E],["partialRight",A],["rearg",S]],xe="[object Arguments]",De="[object Array]",Ee="[object AsyncFunction]",J="[object Boolean]",ye="[object Date]",we="[object DOMException]",me="[object Error]",ue="[object Function]",Le="[object GeneratorFunction]",nt="[object Map]",Nt="[object Number]",Zn="[object Null]",Pt="[object Object]",G="[object Promise]",Q="[object Proxy]",re="[object RegExp]",ve="[object Set]",Se="[object String]",Ce="[object Symbol]",Fe="[object Undefined]",Ne="[object WeakMap]",_t="[object WeakSet]",ut="[object ArrayBuffer]",Zt="[object DataView]",Xr="[object Float32Array]",Rr="[object Float64Array]",mn="[object Int8Array]",Qr="[object Int16Array]",ei="[object Int32Array]",ti="[object Uint8Array]",Or="[object Uint8ClampedArray]",Xa="[object Uint16Array]",ni="[object Uint32Array]",Oi=/\b__p \+= '';/g,ri=/\b(__p \+=) '' \+/g,ha=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Mi=/&(?:amp|lt|gt|quot|#39);/g,or=/[&<>"']/g,Qa=RegExp(Mi.source),eo=RegExp(or.source),Uu=/<%-([\s\S]+?)%>/g,zu=/<%([\s\S]+?)%>/g,rs=/<%=([\s\S]+?)%>/g,pa=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,is=/^\w*$/,Mr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,to=/[\\^$.*+?()[\]{}|]/g,qu=RegExp(to.source),no=/^\s+/,Wu=/\s/,Hu=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,In=/\{\n\/\* \[wrapped with (.+)\] \*/,Gu=/,? & /,Bn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Yu=/[()=,{}\[\]\/\s]/,Zu=/\\(\\)?/g,Ju=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Fr=/\w*$/,Xu=/^[-+]0x[0-9a-f]+$/i,Qu=/^0b[01]+$/i,el=/^\[object .+?Constructor\]$/,tl=/^0o[0-7]+$/i,nl=/^(?:0|[1-9]\d*)$/,ii=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ai=/($^)/,as=/['\n\r\u2028\u2029\\]/g,ma="\\ud800-\\udfff",rl="\\u0300-\\u036f",os="\\ufe20-\\ufe2f",il="\\u20d0-\\u20ff",ga=rl+os+il,oi="\\u2700-\\u27bf",ro="a-z\\xdf-\\xf6\\xf8-\\xff",io="\\xac\\xb1\\xd7\\xf7",ss="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",us="\\u2000-\\u206f",al=" \\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",ls="A-Z\\xc0-\\xd6\\xd8-\\xde",ao="\\ufe0e\\ufe0f",cs=io+ss+us+al,Fi="['’]",ol="["+ma+"]",fs="["+cs+"]",ya="["+ga+"]",ds="\\d+",I="["+oi+"]",X="["+ro+"]",se="[^"+ma+cs+ds+oi+ro+ls+"]",ge="\\ud83c[\\udffb-\\udfff]",_e="(?:"+ya+"|"+ge+")",Xe="[^"+ma+"]",Ve="(?:\\ud83c[\\udde6-\\uddff]){2}",Ke="[\\ud800-\\udbff][\\udc00-\\udfff]",$t="["+ls+"]",Rt="\\u200d",cn="(?:"+X+"|"+se+")",fn="(?:"+$t+"|"+se+")",sr="(?:"+Fi+"(?:d|ll|m|re|s|t|ve))?",Tn="(?:"+Fi+"(?:D|LL|M|RE|S|T|VE))?",hs=_e+"?",oo="["+ao+"]?",so="(?:"+Rt+"(?:"+[Xe,Ve,Ke].join("|")+")"+oo+hs+")*",ki="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",qp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",sl=oo+hs+so,Wp="(?:"+[I,Ve,Ke].join("|")+")"+sl,ul="(?:"+[Xe+ya+"?",ya,Ve,Ke,ol].join("|")+")",mf=RegExp(Fi,"g"),Hp=RegExp(ya,"g"),ll=RegExp(ge+"(?="+ge+")|"+ul+sl,"g"),gf=RegExp([$t+"?"+X+"+"+sr+"(?="+[fs,$t,"$"].join("|")+")",fn+"+"+Tn+"(?="+[fs,$t+cn,"$"].join("|")+")",$t+"?"+cn+"+"+sr,$t+"+"+Tn,qp,ki,ds,Wp].join("|"),"g"),Gp=RegExp("["+Rt+ma+ga+ao+"]"),ps=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Yp=["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"],cl=-1,wt={};wt[Xr]=wt[Rr]=wt[mn]=wt[Qr]=wt[ei]=wt[ti]=wt[Or]=wt[Xa]=wt[ni]=!0,wt[xe]=wt[De]=wt[ut]=wt[J]=wt[Zt]=wt[ye]=wt[me]=wt[ue]=wt[nt]=wt[Nt]=wt[Pt]=wt[re]=wt[ve]=wt[Se]=wt[Ne]=!1;var xt={};xt[xe]=xt[De]=xt[ut]=xt[Zt]=xt[J]=xt[ye]=xt[Xr]=xt[Rr]=xt[mn]=xt[Qr]=xt[ei]=xt[nt]=xt[Nt]=xt[Pt]=xt[re]=xt[ve]=xt[Se]=xt[Ce]=xt[ti]=xt[Or]=xt[Xa]=xt[ni]=!0,xt[me]=xt[ue]=xt[Ne]=!1;var K={À:"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={"&":"&","<":"<",">":">",'"':""","'":"'"},pe={"&":"&","<":"<",">":">",""":'"',"'":"'"},Ie={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tn=parseFloat,gn=parseInt,ur=typeof yi=="object"&&yi&&yi.Object===Object&&yi,yn=typeof self=="object"&&self&&self.Object===Object&&self,Jt=ur||yn||Function("return this")(),si=t&&!t.nodeType&&t,ui=si&&!0&&e&&!e.nodeType&&e,fl=ui&&ui.exports===si,ms=fl&&ur.process,vn=function(){try{var ee=ui&&ui.require&&ui.require("util").types;return ee||ms&&ms.binding&&ms.binding("util")}catch{}}(),uo=vn&&vn.isArrayBuffer,K3=vn&&vn.isDate,U3=vn&&vn.isMap,z3=vn&&vn.isRegExp,q3=vn&&vn.isSet,W3=vn&&vn.isTypedArray;function Jn(ee,fe,oe){switch(oe.length){case 0:return ee.call(fe);case 1:return ee.call(fe,oe[0]);case 2:return ee.call(fe,oe[0],oe[1]);case 3:return ee.call(fe,oe[0],oe[1],oe[2])}return ee.apply(fe,oe)}function S8(ee,fe,oe,Oe){for(var He=-1,lt=ee==null?0:ee.length;++He<lt;){var nn=ee[He];fe(Oe,nn,oe(nn),ee)}return Oe}function lr(ee,fe){for(var oe=-1,Oe=ee==null?0:ee.length;++oe<Oe&&fe(ee[oe],oe,ee)!==!1;);return ee}function T8(ee,fe){for(var oe=ee==null?0:ee.length;oe--&&fe(ee[oe],oe,ee)!==!1;);return ee}function H3(ee,fe){for(var oe=-1,Oe=ee==null?0:ee.length;++oe<Oe;)if(!fe(ee[oe],oe,ee))return!1;return!0}function va(ee,fe){for(var oe=-1,Oe=ee==null?0:ee.length,He=0,lt=[];++oe<Oe;){var nn=ee[oe];fe(nn,oe,ee)&&(lt[He++]=nn)}return lt}function yf(ee,fe){var oe=ee==null?0:ee.length;return!!oe&&gs(ee,fe,0)>-1}function Zp(ee,fe,oe){for(var Oe=-1,He=ee==null?0:ee.length;++Oe<He;)if(oe(fe,ee[Oe]))return!0;return!1}function Ot(ee,fe){for(var oe=-1,Oe=ee==null?0:ee.length,He=Array(Oe);++oe<Oe;)He[oe]=fe(ee[oe],oe,ee);return He}function ba(ee,fe){for(var oe=-1,Oe=fe.length,He=ee.length;++oe<Oe;)ee[He+oe]=fe[oe];return ee}function Jp(ee,fe,oe,Oe){var He=-1,lt=ee==null?0:ee.length;for(Oe&<&&(oe=ee[++He]);++He<lt;)oe=fe(oe,ee[He],He,ee);return oe}function A8(ee,fe,oe,Oe){var He=ee==null?0:ee.length;for(Oe&&He&&(oe=ee[--He]);He--;)oe=fe(oe,ee[He],He,ee);return oe}function Xp(ee,fe){for(var oe=-1,Oe=ee==null?0:ee.length;++oe<Oe;)if(fe(ee[oe],oe,ee))return!0;return!1}var P8=Qp("length");function _8(ee){return ee.split("")}function R8(ee){return ee.match(Bn)||[]}function G3(ee,fe,oe){var Oe;return oe(ee,function(He,lt,nn){if(fe(He,lt,nn))return Oe=lt,!1}),Oe}function vf(ee,fe,oe,Oe){for(var He=ee.length,lt=oe+(Oe?1:-1);Oe?lt--:++lt<He;)if(fe(ee[lt],lt,ee))return lt;return-1}function gs(ee,fe,oe){return fe===fe?U8(ee,fe,oe):vf(ee,Y3,oe)}function O8(ee,fe,oe,Oe){for(var He=oe-1,lt=ee.length;++He<lt;)if(Oe(ee[He],fe))return He;return-1}function Y3(ee){return ee!==ee}function Z3(ee,fe){var oe=ee==null?0:ee.length;return oe?tm(ee,fe)/oe:U}function Qp(ee){return function(fe){return fe==null?n:fe[ee]}}function em(ee){return function(fe){return ee==null?n:ee[fe]}}function J3(ee,fe,oe,Oe,He){return He(ee,function(lt,nn,Dt){oe=Oe?(Oe=!1,lt):fe(oe,lt,nn,Dt)}),oe}function M8(ee,fe){var oe=ee.length;for(ee.sort(fe);oe--;)ee[oe]=ee[oe].value;return ee}function tm(ee,fe){for(var oe,Oe=-1,He=ee.length;++Oe<He;){var lt=fe(ee[Oe]);lt!==n&&(oe=oe===n?lt:oe+lt)}return oe}function nm(ee,fe){for(var oe=-1,Oe=Array(ee);++oe<ee;)Oe[oe]=fe(oe);return Oe}function F8(ee,fe){return Ot(fe,function(oe){return[oe,ee[oe]]})}function X3(ee){return ee&&ee.slice(0,n$(ee)+1).replace(no,"")}function Xn(ee){return function(fe){return ee(fe)}}function rm(ee,fe){return Ot(fe,function(oe){return ee[oe]})}function dl(ee,fe){return ee.has(fe)}function Q3(ee,fe){for(var oe=-1,Oe=ee.length;++oe<Oe&&gs(fe,ee[oe],0)>-1;);return oe}function e$(ee,fe){for(var oe=ee.length;oe--&&gs(fe,ee[oe],0)>-1;);return oe}function k8(ee,fe){for(var oe=ee.length,Oe=0;oe--;)ee[oe]===fe&&++Oe;return Oe}var I8=em(K),B8=em(ae);function L8(ee){return"\\"+Ie[ee]}function V8(ee,fe){return ee==null?n:ee[fe]}function ys(ee){return Gp.test(ee)}function N8(ee){return ps.test(ee)}function j8(ee){for(var fe,oe=[];!(fe=ee.next()).done;)oe.push(fe.value);return oe}function im(ee){var fe=-1,oe=Array(ee.size);return ee.forEach(function(Oe,He){oe[++fe]=[He,Oe]}),oe}function t$(ee,fe){return function(oe){return ee(fe(oe))}}function $a(ee,fe){for(var oe=-1,Oe=ee.length,He=0,lt=[];++oe<Oe;){var nn=ee[oe];(nn===fe||nn===d)&&(ee[oe]=d,lt[He++]=oe)}return lt}function bf(ee){var fe=-1,oe=Array(ee.size);return ee.forEach(function(Oe){oe[++fe]=Oe}),oe}function K8(ee){var fe=-1,oe=Array(ee.size);return ee.forEach(function(Oe){oe[++fe]=[Oe,Oe]}),oe}function U8(ee,fe,oe){for(var Oe=oe-1,He=ee.length;++Oe<He;)if(ee[Oe]===fe)return Oe;return-1}function z8(ee,fe,oe){for(var Oe=oe+1;Oe--;)if(ee[Oe]===fe)return Oe;return Oe}function vs(ee){return ys(ee)?W8(ee):P8(ee)}function kr(ee){return ys(ee)?H8(ee):_8(ee)}function n$(ee){for(var fe=ee.length;fe--&&Wu.test(ee.charAt(fe)););return fe}var q8=em(pe);function W8(ee){for(var fe=ll.lastIndex=0;ll.test(ee);)++fe;return fe}function H8(ee){return ee.match(ll)||[]}function G8(ee){return ee.match(gf)||[]}var Y8=function ee(fe){fe=fe==null?Jt:bs.defaults(Jt.Object(),fe,bs.pick(Jt,Yp));var oe=fe.Array,Oe=fe.Date,He=fe.Error,lt=fe.Function,nn=fe.Math,Dt=fe.Object,am=fe.RegExp,Z8=fe.String,cr=fe.TypeError,$f=oe.prototype,J8=lt.prototype,$s=Dt.prototype,xf=fe["__core-js_shared__"],wf=J8.toString,yt=$s.hasOwnProperty,X8=0,r$=function(){var s=/[^.]+$/.exec(xf&&xf.keys&&xf.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Df=$s.toString,Q8=wf.call(Dt),ek=Jt._,tk=am("^"+wf.call(yt).replace(to,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Cf=fl?fe.Buffer:n,xa=fe.Symbol,Ef=fe.Uint8Array,i$=Cf?Cf.allocUnsafe:n,Sf=t$(Dt.getPrototypeOf,Dt),a$=Dt.create,o$=$s.propertyIsEnumerable,Tf=$f.splice,s$=xa?xa.isConcatSpreadable:n,hl=xa?xa.iterator:n,lo=xa?xa.toStringTag:n,Af=function(){try{var s=mo(Dt,"defineProperty");return s({},"",{}),s}catch{}}(),nk=fe.clearTimeout!==Jt.clearTimeout&&fe.clearTimeout,rk=Oe&&Oe.now!==Jt.Date.now&&Oe.now,ik=fe.setTimeout!==Jt.setTimeout&&fe.setTimeout,Pf=nn.ceil,_f=nn.floor,om=Dt.getOwnPropertySymbols,ak=Cf?Cf.isBuffer:n,u$=fe.isFinite,ok=$f.join,sk=t$(Dt.keys,Dt),rn=nn.max,bn=nn.min,uk=Oe.now,lk=fe.parseInt,l$=nn.random,ck=$f.reverse,sm=mo(fe,"DataView"),pl=mo(fe,"Map"),um=mo(fe,"Promise"),xs=mo(fe,"Set"),ml=mo(fe,"WeakMap"),gl=mo(Dt,"create"),Rf=ml&&new ml,ws={},fk=go(sm),dk=go(pl),hk=go(um),pk=go(xs),mk=go(ml),Of=xa?xa.prototype:n,yl=Of?Of.valueOf:n,c$=Of?Of.toString:n;function F(s){if(jt(s)&&!Ge(s)&&!(s instanceof at)){if(s instanceof fr)return s;if(yt.call(s,"__wrapped__"))return fx(s)}return new fr(s)}var Ds=function(){function s(){}return function(c){if(!kt(c))return{};if(a$)return a$(c);s.prototype=c;var m=new s;return s.prototype=n,m}}();function Mf(){}function fr(s,c){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!c,this.__index__=0,this.__values__=n}F.templateSettings={escape:Uu,evaluate:zu,interpolate:rs,variable:"",imports:{_:F}},F.prototype=Mf.prototype,F.prototype.constructor=F,fr.prototype=Ds(Mf.prototype),fr.prototype.constructor=fr;function at(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=N,this.__views__=[]}function gk(){var s=new at(this.__wrapped__);return s.__actions__=Ln(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Ln(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Ln(this.__views__),s}function yk(){if(this.__filtered__){var s=new at(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function vk(){var s=this.__wrapped__.value(),c=this.__dir__,m=Ge(s),x=c<0,P=m?s.length:0,B=_I(0,P,this.__views__),q=B.start,Y=B.end,te=Y-q,de=x?Y:q-1,he=this.__iteratees__,$e=he.length,Pe=0,Be=bn(te,this.__takeCount__);if(!m||!x&&P==te&&Be==te)return F$(s,this.__actions__);var Ue=[];e:for(;te--&&Pe<Be;){de+=c;for(var Qe=-1,ze=s[de];++Qe<$e;){var rt=he[Qe],ot=rt.iteratee,tr=rt.type,_n=ot(ze);if(tr==W)ze=_n;else if(!_n){if(tr==V)continue e;break e}}Ue[Pe++]=ze}return Ue}at.prototype=Ds(Mf.prototype),at.prototype.constructor=at;function co(s){var c=-1,m=s==null?0:s.length;for(this.clear();++c<m;){var x=s[c];this.set(x[0],x[1])}}function bk(){this.__data__=gl?gl(null):{},this.size=0}function $k(s){var c=this.has(s)&&delete this.__data__[s];return this.size-=c?1:0,c}function xk(s){var c=this.__data__;if(gl){var m=c[s];return m===l?n:m}return yt.call(c,s)?c[s]:n}function wk(s){var c=this.__data__;return gl?c[s]!==n:yt.call(c,s)}function Dk(s,c){var m=this.__data__;return this.size+=this.has(s)?0:1,m[s]=gl&&c===n?l:c,this}co.prototype.clear=bk,co.prototype.delete=$k,co.prototype.get=xk,co.prototype.has=wk,co.prototype.set=Dk;function Ii(s){var c=-1,m=s==null?0:s.length;for(this.clear();++c<m;){var x=s[c];this.set(x[0],x[1])}}function Ck(){this.__data__=[],this.size=0}function Ek(s){var c=this.__data__,m=Ff(c,s);if(m<0)return!1;var x=c.length-1;return m==x?c.pop():Tf.call(c,m,1),--this.size,!0}function Sk(s){var c=this.__data__,m=Ff(c,s);return m<0?n:c[m][1]}function Tk(s){return Ff(this.__data__,s)>-1}function Ak(s,c){var m=this.__data__,x=Ff(m,s);return x<0?(++this.size,m.push([s,c])):m[x][1]=c,this}Ii.prototype.clear=Ck,Ii.prototype.delete=Ek,Ii.prototype.get=Sk,Ii.prototype.has=Tk,Ii.prototype.set=Ak;function Bi(s){var c=-1,m=s==null?0:s.length;for(this.clear();++c<m;){var x=s[c];this.set(x[0],x[1])}}function Pk(){this.size=0,this.__data__={hash:new co,map:new(pl||Ii),string:new co}}function _k(s){var c=Wf(this,s).delete(s);return this.size-=c?1:0,c}function Rk(s){return Wf(this,s).get(s)}function Ok(s){return Wf(this,s).has(s)}function Mk(s,c){var m=Wf(this,s),x=m.size;return m.set(s,c),this.size+=m.size==x?0:1,this}Bi.prototype.clear=Pk,Bi.prototype.delete=_k,Bi.prototype.get=Rk,Bi.prototype.has=Ok,Bi.prototype.set=Mk;function fo(s){var c=-1,m=s==null?0:s.length;for(this.__data__=new Bi;++c<m;)this.add(s[c])}function Fk(s){return this.__data__.set(s,l),this}function kk(s){return this.__data__.has(s)}fo.prototype.add=fo.prototype.push=Fk,fo.prototype.has=kk;function Ir(s){var c=this.__data__=new Ii(s);this.size=c.size}function Ik(){this.__data__=new Ii,this.size=0}function Bk(s){var c=this.__data__,m=c.delete(s);return this.size=c.size,m}function Lk(s){return this.__data__.get(s)}function Vk(s){return this.__data__.has(s)}function Nk(s,c){var m=this.__data__;if(m instanceof Ii){var x=m.__data__;if(!pl||x.length<i-1)return x.push([s,c]),this.size=++m.size,this;m=this.__data__=new Bi(x)}return m.set(s,c),this.size=m.size,this}Ir.prototype.clear=Ik,Ir.prototype.delete=Bk,Ir.prototype.get=Lk,Ir.prototype.has=Vk,Ir.prototype.set=Nk;function f$(s,c){var m=Ge(s),x=!m&&yo(s),P=!m&&!x&&Sa(s),B=!m&&!x&&!P&&Ts(s),q=m||x||P||B,Y=q?nm(s.length,Z8):[],te=Y.length;for(var de in s)(c||yt.call(s,de))&&!(q&&(de=="length"||P&&(de=="offset"||de=="parent")||B&&(de=="buffer"||de=="byteLength"||de=="byteOffset")||ji(de,te)))&&Y.push(de);return Y}function d$(s){var c=s.length;return c?s[bm(0,c-1)]:n}function jk(s,c){return Hf(Ln(s),ho(c,0,s.length))}function Kk(s){return Hf(Ln(s))}function lm(s,c,m){(m!==n&&!Br(s[c],m)||m===n&&!(c in s))&&Li(s,c,m)}function vl(s,c,m){var x=s[c];(!(yt.call(s,c)&&Br(x,m))||m===n&&!(c in s))&&Li(s,c,m)}function Ff(s,c){for(var m=s.length;m--;)if(Br(s[m][0],c))return m;return-1}function Uk(s,c,m,x){return wa(s,function(P,B,q){c(x,P,m(P),q)}),x}function h$(s,c){return s&&ci(c,sn(c),s)}function zk(s,c){return s&&ci(c,Nn(c),s)}function Li(s,c,m){c=="__proto__"&&Af?Af(s,c,{configurable:!0,enumerable:!0,value:m,writable:!0}):s[c]=m}function cm(s,c){for(var m=-1,x=c.length,P=oe(x),B=s==null;++m<x;)P[m]=B?n:zm(s,c[m]);return P}function ho(s,c,m){return s===s&&(m!==n&&(s=s<=m?s:m),c!==n&&(s=s>=c?s:c)),s}function dr(s,c,m,x,P,B){var q,Y=c&h,te=c&p,de=c&g;if(m&&(q=P?m(s,x,P,B):m(s)),q!==n)return q;if(!kt(s))return s;var he=Ge(s);if(he){if(q=OI(s),!Y)return Ln(s,q)}else{var $e=$n(s),Pe=$e==ue||$e==Le;if(Sa(s))return B$(s,Y);if($e==Pt||$e==xe||Pe&&!P){if(q=te||Pe?{}:nx(s),!Y)return te?xI(s,zk(q,s)):$I(s,h$(q,s))}else{if(!xt[$e])return P?s:{};q=MI(s,$e,Y)}}B||(B=new Ir);var Be=B.get(s);if(Be)return Be;B.set(s,q),Rx(s)?s.forEach(function(ze){q.add(dr(ze,c,m,ze,s,B))}):Px(s)&&s.forEach(function(ze,rt){q.set(rt,dr(ze,c,m,rt,s,B))});var Ue=de?te?_m:Pm:te?Nn:sn,Qe=he?n:Ue(s);return lr(Qe||s,function(ze,rt){Qe&&(rt=ze,ze=s[rt]),vl(q,rt,dr(ze,c,m,rt,s,B))}),q}function qk(s){var c=sn(s);return function(m){return p$(m,s,c)}}function p$(s,c,m){var x=m.length;if(s==null)return!x;for(s=Dt(s);x--;){var P=m[x],B=c[P],q=s[P];if(q===n&&!(P in s)||!B(q))return!1}return!0}function m$(s,c,m){if(typeof s!="function")throw new cr(o);return El(function(){s.apply(n,m)},c)}function bl(s,c,m,x){var P=-1,B=yf,q=!0,Y=s.length,te=[],de=c.length;if(!Y)return te;m&&(c=Ot(c,Xn(m))),x?(B=Zp,q=!1):c.length>=i&&(B=dl,q=!1,c=new fo(c));e:for(;++P<Y;){var he=s[P],$e=m==null?he:m(he);if(he=x||he!==0?he:0,q&&$e===$e){for(var Pe=de;Pe--;)if(c[Pe]===$e)continue e;te.push(he)}else B(c,$e,x)||te.push(he)}return te}var wa=K$(li),g$=K$(dm,!0);function Wk(s,c){var m=!0;return wa(s,function(x,P,B){return m=!!c(x,P,B),m}),m}function kf(s,c,m){for(var x=-1,P=s.length;++x<P;){var B=s[x],q=c(B);if(q!=null&&(Y===n?q===q&&!er(q):m(q,Y)))var Y=q,te=B}return te}function Hk(s,c,m,x){var P=s.length;for(m=Ze(m),m<0&&(m=-m>P?0:P+m),x=x===n||x>P?P:Ze(x),x<0&&(x+=P),x=m>x?0:Mx(x);m<x;)s[m++]=c;return s}function y$(s,c){var m=[];return wa(s,function(x,P,B){c(x,P,B)&&m.push(x)}),m}function dn(s,c,m,x,P){var B=-1,q=s.length;for(m||(m=kI),P||(P=[]);++B<q;){var Y=s[B];c>0&&m(Y)?c>1?dn(Y,c-1,m,x,P):ba(P,Y):x||(P[P.length]=Y)}return P}var fm=U$(),v$=U$(!0);function li(s,c){return s&&fm(s,c,sn)}function dm(s,c){return s&&v$(s,c,sn)}function If(s,c){return va(c,function(m){return Ki(s[m])})}function po(s,c){c=Ca(c,s);for(var m=0,x=c.length;s!=null&&m<x;)s=s[fi(c[m++])];return m&&m==x?s:n}function b$(s,c,m){var x=c(s);return Ge(s)?x:ba(x,m(s))}function An(s){return s==null?s===n?Fe:Zn:lo&&lo in Dt(s)?PI(s):KI(s)}function hm(s,c){return s>c}function Gk(s,c){return s!=null&&yt.call(s,c)}function Yk(s,c){return s!=null&&c in Dt(s)}function Zk(s,c,m){return s>=bn(c,m)&&s<rn(c,m)}function pm(s,c,m){for(var x=m?Zp:yf,P=s[0].length,B=s.length,q=B,Y=oe(B),te=1/0,de=[];q--;){var he=s[q];q&&c&&(he=Ot(he,Xn(c))),te=bn(he.length,te),Y[q]=!m&&(c||P>=120&&he.length>=120)?new fo(q&&he):n}he=s[0];var $e=-1,Pe=Y[0];e:for(;++$e<P&&de.length<te;){var Be=he[$e],Ue=c?c(Be):Be;if(Be=m||Be!==0?Be:0,!(Pe?dl(Pe,Ue):x(de,Ue,m))){for(q=B;--q;){var Qe=Y[q];if(!(Qe?dl(Qe,Ue):x(s[q],Ue,m)))continue e}Pe&&Pe.push(Ue),de.push(Be)}}return de}function Jk(s,c,m,x){return li(s,function(P,B,q){c(x,m(P),B,q)}),x}function $l(s,c,m){c=Ca(c,s),s=ox(s,c);var x=s==null?s:s[fi(pr(c))];return x==null?n:Jn(x,s,m)}function $$(s){return jt(s)&&An(s)==xe}function Xk(s){return jt(s)&&An(s)==ut}function Qk(s){return jt(s)&&An(s)==ye}function xl(s,c,m,x,P){return s===c?!0:s==null||c==null||!jt(s)&&!jt(c)?s!==s&&c!==c:eI(s,c,m,x,xl,P)}function eI(s,c,m,x,P,B){var q=Ge(s),Y=Ge(c),te=q?De:$n(s),de=Y?De:$n(c);te=te==xe?Pt:te,de=de==xe?Pt:de;var he=te==Pt,$e=de==Pt,Pe=te==de;if(Pe&&Sa(s)){if(!Sa(c))return!1;q=!0,he=!1}if(Pe&&!he)return B||(B=new Ir),q||Ts(s)?Q$(s,c,m,x,P,B):TI(s,c,te,m,x,P,B);if(!(m&y)){var Be=he&&yt.call(s,"__wrapped__"),Ue=$e&&yt.call(c,"__wrapped__");if(Be||Ue){var Qe=Be?s.value():s,ze=Ue?c.value():c;return B||(B=new Ir),P(Qe,ze,m,x,B)}}return Pe?(B||(B=new Ir),AI(s,c,m,x,P,B)):!1}function tI(s){return jt(s)&&$n(s)==nt}function mm(s,c,m,x){var P=m.length,B=P,q=!x;if(s==null)return!B;for(s=Dt(s);P--;){var Y=m[P];if(q&&Y[2]?Y[1]!==s[Y[0]]:!(Y[0]in s))return!1}for(;++P<B;){Y=m[P];var te=Y[0],de=s[te],he=Y[1];if(q&&Y[2]){if(de===n&&!(te in s))return!1}else{var $e=new Ir;if(x)var Pe=x(de,he,te,s,c,$e);if(!(Pe===n?xl(he,de,y|$,x,$e):Pe))return!1}}return!0}function x$(s){if(!kt(s)||BI(s))return!1;var c=Ki(s)?tk:el;return c.test(go(s))}function nI(s){return jt(s)&&An(s)==re}function rI(s){return jt(s)&&$n(s)==ve}function iI(s){return jt(s)&&Qf(s.length)&&!!wt[An(s)]}function w$(s){return typeof s=="function"?s:s==null?jn:typeof s=="object"?Ge(s)?E$(s[0],s[1]):C$(s):zx(s)}function gm(s){if(!Cl(s))return sk(s);var c=[];for(var m in Dt(s))yt.call(s,m)&&m!="constructor"&&c.push(m);return c}function aI(s){if(!kt(s))return jI(s);var c=Cl(s),m=[];for(var x in s)x=="constructor"&&(c||!yt.call(s,x))||m.push(x);return m}function ym(s,c){return s<c}function D$(s,c){var m=-1,x=Vn(s)?oe(s.length):[];return wa(s,function(P,B,q){x[++m]=c(P,B,q)}),x}function C$(s){var c=Om(s);return c.length==1&&c[0][2]?ix(c[0][0],c[0][1]):function(m){return m===s||mm(m,s,c)}}function E$(s,c){return Fm(s)&&rx(c)?ix(fi(s),c):function(m){var x=zm(m,s);return x===n&&x===c?qm(m,s):xl(c,x,y|$)}}function Bf(s,c,m,x,P){s!==c&&fm(c,function(B,q){if(P||(P=new Ir),kt(B))oI(s,c,q,m,Bf,x,P);else{var Y=x?x(Im(s,q),B,q+"",s,c,P):n;Y===n&&(Y=B),lm(s,q,Y)}},Nn)}function oI(s,c,m,x,P,B,q){var Y=Im(s,m),te=Im(c,m),de=q.get(te);if(de){lm(s,m,de);return}var he=B?B(Y,te,m+"",s,c,q):n,$e=he===n;if($e){var Pe=Ge(te),Be=!Pe&&Sa(te),Ue=!Pe&&!Be&&Ts(te);he=te,Pe||Be||Ue?Ge(Y)?he=Y:Kt(Y)?he=Ln(Y):Be?($e=!1,he=B$(te,!0)):Ue?($e=!1,he=L$(te,!0)):he=[]:Sl(te)||yo(te)?(he=Y,yo(Y)?he=Fx(Y):(!kt(Y)||Ki(Y))&&(he=nx(te))):$e=!1}$e&&(q.set(te,he),P(he,te,x,B,q),q.delete(te)),lm(s,m,he)}function S$(s,c){var m=s.length;if(m)return c+=c<0?m:0,ji(c,m)?s[c]:n}function T$(s,c,m){c.length?c=Ot(c,function(B){return Ge(B)?function(q){return po(q,B.length===1?B[0]:B)}:B}):c=[jn];var x=-1;c=Ot(c,Xn(je()));var P=D$(s,function(B,q,Y){var te=Ot(c,function(de){return de(B)});return{criteria:te,index:++x,value:B}});return M8(P,function(B,q){return bI(B,q,m)})}function sI(s,c){return A$(s,c,function(m,x){return qm(s,x)})}function A$(s,c,m){for(var x=-1,P=c.length,B={};++x<P;){var q=c[x],Y=po(s,q);m(Y,q)&&wl(B,Ca(q,s),Y)}return B}function uI(s){return function(c){return po(c,s)}}function vm(s,c,m,x){var P=x?O8:gs,B=-1,q=c.length,Y=s;for(s===c&&(c=Ln(c)),m&&(Y=Ot(s,Xn(m)));++B<q;)for(var te=0,de=c[B],he=m?m(de):de;(te=P(Y,he,te,x))>-1;)Y!==s&&Tf.call(Y,te,1),Tf.call(s,te,1);return s}function P$(s,c){for(var m=s?c.length:0,x=m-1;m--;){var P=c[m];if(m==x||P!==B){var B=P;ji(P)?Tf.call(s,P,1):wm(s,P)}}return s}function bm(s,c){return s+_f(l$()*(c-s+1))}function lI(s,c,m,x){for(var P=-1,B=rn(Pf((c-s)/(m||1)),0),q=oe(B);B--;)q[x?B:++P]=s,s+=m;return q}function $m(s,c){var m="";if(!s||c<1||c>_)return m;do c%2&&(m+=s),c=_f(c/2),c&&(s+=s);while(c);return m}function tt(s,c){return Bm(ax(s,c,jn),s+"")}function cI(s){return d$(As(s))}function fI(s,c){var m=As(s);return Hf(m,ho(c,0,m.length))}function wl(s,c,m,x){if(!kt(s))return s;c=Ca(c,s);for(var P=-1,B=c.length,q=B-1,Y=s;Y!=null&&++P<B;){var te=fi(c[P]),de=m;if(te==="__proto__"||te==="constructor"||te==="prototype")return s;if(P!=q){var he=Y[te];de=x?x(he,te,Y):n,de===n&&(de=kt(he)?he:ji(c[P+1])?[]:{})}vl(Y,te,de),Y=Y[te]}return s}var _$=Rf?function(s,c){return Rf.set(s,c),s}:jn,dI=Af?function(s,c){return Af(s,"toString",{configurable:!0,enumerable:!1,value:Hm(c),writable:!0})}:jn;function hI(s){return Hf(As(s))}function hr(s,c,m){var x=-1,P=s.length;c<0&&(c=-c>P?0:P+c),m=m>P?P:m,m<0&&(m+=P),P=c>m?0:m-c>>>0,c>>>=0;for(var B=oe(P);++x<P;)B[x]=s[x+c];return B}function pI(s,c){var m;return wa(s,function(x,P,B){return m=c(x,P,B),!m}),!!m}function Lf(s,c,m){var x=0,P=s==null?x:s.length;if(typeof c=="number"&&c===c&&P<=ie){for(;x<P;){var B=x+P>>>1,q=s[B];q!==null&&!er(q)&&(m?q<=c:q<c)?x=B+1:P=B}return P}return xm(s,c,jn,m)}function xm(s,c,m,x){var P=0,B=s==null?0:s.length;if(B===0)return 0;c=m(c);for(var q=c!==c,Y=c===null,te=er(c),de=c===n;P<B;){var he=_f((P+B)/2),$e=m(s[he]),Pe=$e!==n,Be=$e===null,Ue=$e===$e,Qe=er($e);if(q)var ze=x||Ue;else de?ze=Ue&&(x||Pe):Y?ze=Ue&&Pe&&(x||!Be):te?ze=Ue&&Pe&&!Be&&(x||!Qe):Be||Qe?ze=!1:ze=x?$e<=c:$e<c;ze?P=he+1:B=he}return bn(B,ne)}function R$(s,c){for(var m=-1,x=s.length,P=0,B=[];++m<x;){var q=s[m],Y=c?c(q):q;if(!m||!Br(Y,te)){var te=Y;B[P++]=q===0?0:q}}return B}function O$(s){return typeof s=="number"?s:er(s)?U:+s}function Qn(s){if(typeof s=="string")return s;if(Ge(s))return Ot(s,Qn)+"";if(er(s))return c$?c$.call(s):"";var c=s+"";return c=="0"&&1/s==-1/0?"-0":c}function Da(s,c,m){var x=-1,P=yf,B=s.length,q=!0,Y=[],te=Y;if(m)q=!1,P=Zp;else if(B>=i){var de=c?null:EI(s);if(de)return bf(de);q=!1,P=dl,te=new fo}else te=c?[]:Y;e:for(;++x<B;){var he=s[x],$e=c?c(he):he;if(he=m||he!==0?he:0,q&&$e===$e){for(var Pe=te.length;Pe--;)if(te[Pe]===$e)continue e;c&&te.push($e),Y.push(he)}else P(te,$e,m)||(te!==Y&&te.push($e),Y.push(he))}return Y}function wm(s,c){return c=Ca(c,s),s=ox(s,c),s==null||delete s[fi(pr(c))]}function M$(s,c,m,x){return wl(s,c,m(po(s,c)),x)}function Vf(s,c,m,x){for(var P=s.length,B=x?P:-1;(x?B--:++B<P)&&c(s[B],B,s););return m?hr(s,x?0:B,x?B+1:P):hr(s,x?B+1:0,x?P:B)}function F$(s,c){var m=s;return m instanceof at&&(m=m.value()),Jp(c,function(x,P){return P.func.apply(P.thisArg,ba([x],P.args))},m)}function Dm(s,c,m){var x=s.length;if(x<2)return x?Da(s[0]):[];for(var P=-1,B=oe(x);++P<x;)for(var q=s[P],Y=-1;++Y<x;)Y!=P&&(B[P]=bl(B[P]||q,s[Y],c,m));return Da(dn(B,1),c,m)}function k$(s,c,m){for(var x=-1,P=s.length,B=c.length,q={};++x<P;){var Y=x<B?c[x]:n;m(q,s[x],Y)}return q}function Cm(s){return Kt(s)?s:[]}function Em(s){return typeof s=="function"?s:jn}function Ca(s,c){return Ge(s)?s:Fm(s,c)?[s]:cx(dt(s))}var mI=tt;function Ea(s,c,m){var x=s.length;return m=m===n?x:m,!c&&m>=x?s:hr(s,c,m)}var I$=nk||function(s){return Jt.clearTimeout(s)};function B$(s,c){if(c)return s.slice();var m=s.length,x=i$?i$(m):new s.constructor(m);return s.copy(x),x}function Sm(s){var c=new s.constructor(s.byteLength);return new Ef(c).set(new Ef(s)),c}function gI(s,c){var m=c?Sm(s.buffer):s.buffer;return new s.constructor(m,s.byteOffset,s.byteLength)}function yI(s){var c=new s.constructor(s.source,Fr.exec(s));return c.lastIndex=s.lastIndex,c}function vI(s){return yl?Dt(yl.call(s)):{}}function L$(s,c){var m=c?Sm(s.buffer):s.buffer;return new s.constructor(m,s.byteOffset,s.length)}function V$(s,c){if(s!==c){var m=s!==n,x=s===null,P=s===s,B=er(s),q=c!==n,Y=c===null,te=c===c,de=er(c);if(!Y&&!de&&!B&&s>c||B&&q&&te&&!Y&&!de||x&&q&&te||!m&&te||!P)return 1;if(!x&&!B&&!de&&s<c||de&&m&&P&&!x&&!B||Y&&m&&P||!q&&P||!te)return-1}return 0}function bI(s,c,m){for(var x=-1,P=s.criteria,B=c.criteria,q=P.length,Y=m.length;++x<q;){var te=V$(P[x],B[x]);if(te){if(x>=Y)return te;var de=m[x];return te*(de=="desc"?-1:1)}}return s.index-c.index}function N$(s,c,m,x){for(var P=-1,B=s.length,q=m.length,Y=-1,te=c.length,de=rn(B-q,0),he=oe(te+de),$e=!x;++Y<te;)he[Y]=c[Y];for(;++P<q;)($e||P<B)&&(he[m[P]]=s[P]);for(;de--;)he[Y++]=s[P++];return he}function j$(s,c,m,x){for(var P=-1,B=s.length,q=-1,Y=m.length,te=-1,de=c.length,he=rn(B-Y,0),$e=oe(he+de),Pe=!x;++P<he;)$e[P]=s[P];for(var Be=P;++te<de;)$e[Be+te]=c[te];for(;++q<Y;)(Pe||P<B)&&($e[Be+m[q]]=s[P++]);return $e}function Ln(s,c){var m=-1,x=s.length;for(c||(c=oe(x));++m<x;)c[m]=s[m];return c}function ci(s,c,m,x){var P=!m;m||(m={});for(var B=-1,q=c.length;++B<q;){var Y=c[B],te=x?x(m[Y],s[Y],Y,m,s):n;te===n&&(te=s[Y]),P?Li(m,Y,te):vl(m,Y,te)}return m}function $I(s,c){return ci(s,Mm(s),c)}function xI(s,c){return ci(s,ex(s),c)}function Nf(s,c){return function(m,x){var P=Ge(m)?S8:Uk,B=c?c():{};return P(m,s,je(x,2),B)}}function Cs(s){return tt(function(c,m){var x=-1,P=m.length,B=P>1?m[P-1]:n,q=P>2?m[2]:n;for(B=s.length>3&&typeof B=="function"?(P--,B):n,q&&Pn(m[0],m[1],q)&&(B=P<3?n:B,P=1),c=Dt(c);++x<P;){var Y=m[x];Y&&s(c,Y,x,B)}return c})}function K$(s,c){return function(m,x){if(m==null)return m;if(!Vn(m))return s(m,x);for(var P=m.length,B=c?P:-1,q=Dt(m);(c?B--:++B<P)&&x(q[B],B,q)!==!1;);return m}}function U$(s){return function(c,m,x){for(var P=-1,B=Dt(c),q=x(c),Y=q.length;Y--;){var te=q[s?Y:++P];if(m(B[te],te,B)===!1)break}return c}}function wI(s,c,m){var x=c&D,P=Dl(s);function B(){var q=this&&this!==Jt&&this instanceof B?P:s;return q.apply(x?m:this,arguments)}return B}function z$(s){return function(c){c=dt(c);var m=ys(c)?kr(c):n,x=m?m[0]:c.charAt(0),P=m?Ea(m,1).join(""):c.slice(1);return x[s]()+P}}function Es(s){return function(c){return Jp(Kx(jx(c).replace(mf,"")),s,"")}}function Dl(s){return function(){var c=arguments;switch(c.length){case 0:return new s;case 1:return new s(c[0]);case 2:return new s(c[0],c[1]);case 3:return new s(c[0],c[1],c[2]);case 4:return new s(c[0],c[1],c[2],c[3]);case 5:return new s(c[0],c[1],c[2],c[3],c[4]);case 6:return new s(c[0],c[1],c[2],c[3],c[4],c[5]);case 7:return new s(c[0],c[1],c[2],c[3],c[4],c[5],c[6])}var m=Ds(s.prototype),x=s.apply(m,c);return kt(x)?x:m}}function DI(s,c,m){var x=Dl(s);function P(){for(var B=arguments.length,q=oe(B),Y=B,te=Ss(P);Y--;)q[Y]=arguments[Y];var de=B<3&&q[0]!==te&&q[B-1]!==te?[]:$a(q,te);if(B-=de.length,B<m)return Y$(s,c,jf,P.placeholder,n,q,de,n,n,m-B);var he=this&&this!==Jt&&this instanceof P?x:s;return Jn(he,this,q)}return P}function q$(s){return function(c,m,x){var P=Dt(c);if(!Vn(c)){var B=je(m,3);c=sn(c),m=function(Y){return B(P[Y],Y,P)}}var q=s(c,m,x);return q>-1?P[B?c[q]:q]:n}}function W$(s){return Ni(function(c){var m=c.length,x=m,P=fr.prototype.thru;for(s&&c.reverse();x--;){var B=c[x];if(typeof B!="function")throw new cr(o);if(P&&!q&&qf(B)=="wrapper")var q=new fr([],!0)}for(x=q?x:m;++x<m;){B=c[x];var Y=qf(B),te=Y=="wrapper"?Rm(B):n;te&&km(te[0])&&te[1]==(M|w|E|S)&&!te[4].length&&te[9]==1?q=q[qf(te[0])].apply(q,te[3]):q=B.length==1&&km(B)?q[Y]():q.thru(B)}return function(){var de=arguments,he=de[0];if(q&&de.length==1&&Ge(he))return q.plant(he).value();for(var $e=0,Pe=m?c[$e].apply(this,de):he;++$e<m;)Pe=c[$e].call(this,Pe);return Pe}})}function jf(s,c,m,x,P,B,q,Y,te,de){var he=c&M,$e=c&D,Pe=c&b,Be=c&(w|T),Ue=c&z,Qe=Pe?n:Dl(s);function ze(){for(var rt=arguments.length,ot=oe(rt),tr=rt;tr--;)ot[tr]=arguments[tr];if(Be)var _n=Ss(ze),nr=k8(ot,_n);if(x&&(ot=N$(ot,x,P,Be)),B&&(ot=j$(ot,B,q,Be)),rt-=nr,Be&&rt<de){var Ut=$a(ot,_n);return Y$(s,c,jf,ze.placeholder,m,ot,Ut,Y,te,de-rt)}var Lr=$e?m:this,zi=Pe?Lr[s]:s;return rt=ot.length,Y?ot=UI(ot,Y):Ue&&rt>1&&ot.reverse(),he&&te<rt&&(ot.length=te),this&&this!==Jt&&this instanceof ze&&(zi=Qe||Dl(zi)),zi.apply(Lr,ot)}return ze}function H$(s,c){return function(m,x){return Jk(m,s,c(x),{})}}function Kf(s,c){return function(m,x){var P;if(m===n&&x===n)return c;if(m!==n&&(P=m),x!==n){if(P===n)return x;typeof m=="string"||typeof x=="string"?(m=Qn(m),x=Qn(x)):(m=O$(m),x=O$(x)),P=s(m,x)}return P}}function Tm(s){return Ni(function(c){return c=Ot(c,Xn(je())),tt(function(m){var x=this;return s(c,function(P){return Jn(P,x,m)})})})}function Uf(s,c){c=c===n?" ":Qn(c);var m=c.length;if(m<2)return m?$m(c,s):c;var x=$m(c,Pf(s/vs(c)));return ys(c)?Ea(kr(x),0,s).join(""):x.slice(0,s)}function CI(s,c,m,x){var P=c&D,B=Dl(s);function q(){for(var Y=-1,te=arguments.length,de=-1,he=x.length,$e=oe(he+te),Pe=this&&this!==Jt&&this instanceof q?B:s;++de<he;)$e[de]=x[de];for(;te--;)$e[de++]=arguments[++Y];return Jn(Pe,P?m:this,$e)}return q}function G$(s){return function(c,m,x){return x&&typeof x!="number"&&Pn(c,m,x)&&(m=x=n),c=Ui(c),m===n?(m=c,c=0):m=Ui(m),x=x===n?c<m?1:-1:Ui(x),lI(c,m,x,s)}}function zf(s){return function(c,m){return typeof c=="string"&&typeof m=="string"||(c=mr(c),m=mr(m)),s(c,m)}}function Y$(s,c,m,x,P,B,q,Y,te,de){var he=c&w,$e=he?q:n,Pe=he?n:q,Be=he?B:n,Ue=he?n:B;c|=he?E:A,c&=~(he?A:E),c&v||(c&=-4);var Qe=[s,c,P,Be,$e,Ue,Pe,Y,te,de],ze=m.apply(n,Qe);return km(s)&&sx(ze,Qe),ze.placeholder=x,ux(ze,s,c)}function Am(s){var c=nn[s];return function(m,x){if(m=mr(m),x=x==null?0:bn(Ze(x),292),x&&u$(m)){var P=(dt(m)+"e").split("e"),B=c(P[0]+"e"+(+P[1]+x));return P=(dt(B)+"e").split("e"),+(P[0]+"e"+(+P[1]-x))}return c(m)}}var EI=xs&&1/bf(new xs([,-0]))[1]==k?function(s){return new xs(s)}:Zm;function Z$(s){return function(c){var m=$n(c);return m==nt?im(c):m==ve?K8(c):F8(c,s(c))}}function Vi(s,c,m,x,P,B,q,Y){var te=c&b;if(!te&&typeof s!="function")throw new cr(o);var de=x?x.length:0;if(de||(c&=-97,x=P=n),q=q===n?q:rn(Ze(q),0),Y=Y===n?Y:Ze(Y),de-=P?P.length:0,c&A){var he=x,$e=P;x=P=n}var Pe=te?n:Rm(s),Be=[s,c,m,x,P,he,$e,B,q,Y];if(Pe&&NI(Be,Pe),s=Be[0],c=Be[1],m=Be[2],x=Be[3],P=Be[4],Y=Be[9]=Be[9]===n?te?0:s.length:rn(Be[9]-de,0),!Y&&c&(w|T)&&(c&=-25),!c||c==D)var Ue=wI(s,c,m);else c==w||c==T?Ue=DI(s,c,Y):(c==E||c==(D|E))&&!P.length?Ue=CI(s,c,m,x):Ue=jf.apply(n,Be);var Qe=Pe?_$:sx;return ux(Qe(Ue,Be),s,c)}function J$(s,c,m,x){return s===n||Br(s,$s[m])&&!yt.call(x,m)?c:s}function X$(s,c,m,x,P,B){return kt(s)&&kt(c)&&(B.set(c,s),Bf(s,c,n,X$,B),B.delete(c)),s}function SI(s){return Sl(s)?n:s}function Q$(s,c,m,x,P,B){var q=m&y,Y=s.length,te=c.length;if(Y!=te&&!(q&&te>Y))return!1;var de=B.get(s),he=B.get(c);if(de&&he)return de==c&&he==s;var $e=-1,Pe=!0,Be=m&$?new fo:n;for(B.set(s,c),B.set(c,s);++$e<Y;){var Ue=s[$e],Qe=c[$e];if(x)var ze=q?x(Qe,Ue,$e,c,s,B):x(Ue,Qe,$e,s,c,B);if(ze!==n){if(ze)continue;Pe=!1;break}if(Be){if(!Xp(c,function(rt,ot){if(!dl(Be,ot)&&(Ue===rt||P(Ue,rt,m,x,B)))return Be.push(ot)})){Pe=!1;break}}else if(!(Ue===Qe||P(Ue,Qe,m,x,B))){Pe=!1;break}}return B.delete(s),B.delete(c),Pe}function TI(s,c,m,x,P,B,q){switch(m){case Zt:if(s.byteLength!=c.byteLength||s.byteOffset!=c.byteOffset)return!1;s=s.buffer,c=c.buffer;case ut:return!(s.byteLength!=c.byteLength||!B(new Ef(s),new Ef(c)));case J:case ye:case Nt:return Br(+s,+c);case me:return s.name==c.name&&s.message==c.message;case re:case Se:return s==c+"";case nt:var Y=im;case ve:var te=x&y;if(Y||(Y=bf),s.size!=c.size&&!te)return!1;var de=q.get(s);if(de)return de==c;x|=$,q.set(s,c);var he=Q$(Y(s),Y(c),x,P,B,q);return q.delete(s),he;case Ce:if(yl)return yl.call(s)==yl.call(c)}return!1}function AI(s,c,m,x,P,B){var q=m&y,Y=Pm(s),te=Y.length,de=Pm(c),he=de.length;if(te!=he&&!q)return!1;for(var $e=te;$e--;){var Pe=Y[$e];if(!(q?Pe in c:yt.call(c,Pe)))return!1}var Be=B.get(s),Ue=B.get(c);if(Be&&Ue)return Be==c&&Ue==s;var Qe=!0;B.set(s,c),B.set(c,s);for(var ze=q;++$e<te;){Pe=Y[$e];var rt=s[Pe],ot=c[Pe];if(x)var tr=q?x(ot,rt,Pe,c,s,B):x(rt,ot,Pe,s,c,B);if(!(tr===n?rt===ot||P(rt,ot,m,x,B):tr)){Qe=!1;break}ze||(ze=Pe=="constructor")}if(Qe&&!ze){var _n=s.constructor,nr=c.constructor;_n!=nr&&"constructor"in s&&"constructor"in c&&!(typeof _n=="function"&&_n instanceof _n&&typeof nr=="function"&&nr instanceof nr)&&(Qe=!1)}return B.delete(s),B.delete(c),Qe}function Ni(s){return Bm(ax(s,n,px),s+"")}function Pm(s){return b$(s,sn,Mm)}function _m(s){return b$(s,Nn,ex)}var Rm=Rf?function(s){return Rf.get(s)}:Zm;function qf(s){for(var c=s.name+"",m=ws[c],x=yt.call(ws,c)?m.length:0;x--;){var P=m[x],B=P.func;if(B==null||B==s)return P.name}return c}function Ss(s){var c=yt.call(F,"placeholder")?F:s;return c.placeholder}function je(){var s=F.iteratee||Gm;return s=s===Gm?w$:s,arguments.length?s(arguments[0],arguments[1]):s}function Wf(s,c){var m=s.__data__;return II(c)?m[typeof c=="string"?"string":"hash"]:m.map}function Om(s){for(var c=sn(s),m=c.length;m--;){var x=c[m],P=s[x];c[m]=[x,P,rx(P)]}return c}function mo(s,c){var m=V8(s,c);return x$(m)?m:n}function PI(s){var c=yt.call(s,lo),m=s[lo];try{s[lo]=n;var x=!0}catch{}var P=Df.call(s);return x&&(c?s[lo]=m:delete s[lo]),P}var Mm=om?function(s){return s==null?[]:(s=Dt(s),va(om(s),function(c){return o$.call(s,c)}))}:Jm,ex=om?function(s){for(var c=[];s;)ba(c,Mm(s)),s=Sf(s);return c}:Jm,$n=An;(sm&&$n(new sm(new ArrayBuffer(1)))!=Zt||pl&&$n(new pl)!=nt||um&&$n(um.resolve())!=G||xs&&$n(new xs)!=ve||ml&&$n(new ml)!=Ne)&&($n=function(s){var c=An(s),m=c==Pt?s.constructor:n,x=m?go(m):"";if(x)switch(x){case fk:return Zt;case dk:return nt;case hk:return G;case pk:return ve;case mk:return Ne}return c});function _I(s,c,m){for(var x=-1,P=m.length;++x<P;){var B=m[x],q=B.size;switch(B.type){case"drop":s+=q;break;case"dropRight":c-=q;break;case"take":c=bn(c,s+q);break;case"takeRight":s=rn(s,c-q);break}}return{start:s,end:c}}function RI(s){var c=s.match(In);return c?c[1].split(Gu):[]}function tx(s,c,m){c=Ca(c,s);for(var x=-1,P=c.length,B=!1;++x<P;){var q=fi(c[x]);if(!(B=s!=null&&m(s,q)))break;s=s[q]}return B||++x!=P?B:(P=s==null?0:s.length,!!P&&Qf(P)&&ji(q,P)&&(Ge(s)||yo(s)))}function OI(s){var c=s.length,m=new s.constructor(c);return c&&typeof s[0]=="string"&&yt.call(s,"index")&&(m.index=s.index,m.input=s.input),m}function nx(s){return typeof s.constructor=="function"&&!Cl(s)?Ds(Sf(s)):{}}function MI(s,c,m){var x=s.constructor;switch(c){case ut:return Sm(s);case J:case ye:return new x(+s);case Zt:return gI(s,m);case Xr:case Rr:case mn:case Qr:case ei:case ti:case Or:case Xa:case ni:return L$(s,m);case nt:return new x;case Nt:case Se:return new x(s);case re:return yI(s);case ve:return new x;case Ce:return vI(s)}}function FI(s,c){var m=c.length;if(!m)return s;var x=m-1;return c[x]=(m>1?"& ":"")+c[x],c=c.join(m>2?", ":" "),s.replace(Hu,`{
|
|
66
|
+
/* [wrapped with `+c+`] */
|
|
67
|
+
`)}function kI(s){return Ge(s)||yo(s)||!!(s$&&s&&s[s$])}function ji(s,c){var m=typeof s;return c=c??_,!!c&&(m=="number"||m!="symbol"&&nl.test(s))&&s>-1&&s%1==0&&s<c}function Pn(s,c,m){if(!kt(m))return!1;var x=typeof c;return(x=="number"?Vn(m)&&ji(c,m.length):x=="string"&&c in m)?Br(m[c],s):!1}function Fm(s,c){if(Ge(s))return!1;var m=typeof s;return m=="number"||m=="symbol"||m=="boolean"||s==null||er(s)?!0:is.test(s)||!pa.test(s)||c!=null&&s in Dt(c)}function II(s){var c=typeof s;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?s!=="__proto__":s===null}function km(s){var c=qf(s),m=F[c];if(typeof m!="function"||!(c in at.prototype))return!1;if(s===m)return!0;var x=Rm(m);return!!x&&s===x[0]}function BI(s){return!!r$&&r$ in s}var LI=xf?Ki:Xm;function Cl(s){var c=s&&s.constructor,m=typeof c=="function"&&c.prototype||$s;return s===m}function rx(s){return s===s&&!kt(s)}function ix(s,c){return function(m){return m==null?!1:m[s]===c&&(c!==n||s in Dt(m))}}function VI(s){var c=Jf(s,function(x){return m.size===f&&m.clear(),x}),m=c.cache;return c}function NI(s,c){var m=s[1],x=c[1],P=m|x,B=P<(D|b|M),q=x==M&&m==w||x==M&&m==S&&s[7].length<=c[8]||x==(M|S)&&c[7].length<=c[8]&&m==w;if(!(B||q))return s;x&D&&(s[2]=c[2],P|=m&D?0:v);var Y=c[3];if(Y){var te=s[3];s[3]=te?N$(te,Y,c[4]):Y,s[4]=te?$a(s[3],d):c[4]}return Y=c[5],Y&&(te=s[5],s[5]=te?j$(te,Y,c[6]):Y,s[6]=te?$a(s[5],d):c[6]),Y=c[7],Y&&(s[7]=Y),x&M&&(s[8]=s[8]==null?c[8]:bn(s[8],c[8])),s[9]==null&&(s[9]=c[9]),s[0]=c[0],s[1]=P,s}function jI(s){var c=[];if(s!=null)for(var m in Dt(s))c.push(m);return c}function KI(s){return Df.call(s)}function ax(s,c,m){return c=rn(c===n?s.length-1:c,0),function(){for(var x=arguments,P=-1,B=rn(x.length-c,0),q=oe(B);++P<B;)q[P]=x[c+P];P=-1;for(var Y=oe(c+1);++P<c;)Y[P]=x[P];return Y[c]=m(q),Jn(s,this,Y)}}function ox(s,c){return c.length<2?s:po(s,hr(c,0,-1))}function UI(s,c){for(var m=s.length,x=bn(c.length,m),P=Ln(s);x--;){var B=c[x];s[x]=ji(B,m)?P[B]:n}return s}function Im(s,c){if(!(c==="constructor"&&typeof s[c]=="function")&&c!="__proto__")return s[c]}var sx=lx(_$),El=ik||function(s,c){return Jt.setTimeout(s,c)},Bm=lx(dI);function ux(s,c,m){var x=c+"";return Bm(s,FI(x,zI(RI(x),m)))}function lx(s){var c=0,m=0;return function(){var x=uk(),P=R-(x-m);if(m=x,P>0){if(++c>=Z)return arguments[0]}else c=0;return s.apply(n,arguments)}}function Hf(s,c){var m=-1,x=s.length,P=x-1;for(c=c===n?x:c;++m<c;){var B=bm(m,P),q=s[B];s[B]=s[m],s[m]=q}return s.length=c,s}var cx=VI(function(s){var c=[];return s.charCodeAt(0)===46&&c.push(""),s.replace(Mr,function(m,x,P,B){c.push(P?B.replace(Zu,"$1"):x||m)}),c});function fi(s){if(typeof s=="string"||er(s))return s;var c=s+"";return c=="0"&&1/s==-1/0?"-0":c}function go(s){if(s!=null){try{return wf.call(s)}catch{}try{return s+""}catch{}}return""}function zI(s,c){return lr(ce,function(m){var x="_."+m[0];c&m[1]&&!yf(s,x)&&s.push(x)}),s.sort()}function fx(s){if(s instanceof at)return s.clone();var c=new fr(s.__wrapped__,s.__chain__);return c.__actions__=Ln(s.__actions__),c.__index__=s.__index__,c.__values__=s.__values__,c}function qI(s,c,m){(m?Pn(s,c,m):c===n)?c=1:c=rn(Ze(c),0);var x=s==null?0:s.length;if(!x||c<1)return[];for(var P=0,B=0,q=oe(Pf(x/c));P<x;)q[B++]=hr(s,P,P+=c);return q}function WI(s){for(var c=-1,m=s==null?0:s.length,x=0,P=[];++c<m;){var B=s[c];B&&(P[x++]=B)}return P}function HI(){var s=arguments.length;if(!s)return[];for(var c=oe(s-1),m=arguments[0],x=s;x--;)c[x-1]=arguments[x];return ba(Ge(m)?Ln(m):[m],dn(c,1))}var GI=tt(function(s,c){return Kt(s)?bl(s,dn(c,1,Kt,!0)):[]}),YI=tt(function(s,c){var m=pr(c);return Kt(m)&&(m=n),Kt(s)?bl(s,dn(c,1,Kt,!0),je(m,2)):[]}),ZI=tt(function(s,c){var m=pr(c);return Kt(m)&&(m=n),Kt(s)?bl(s,dn(c,1,Kt,!0),n,m):[]});function JI(s,c,m){var x=s==null?0:s.length;return x?(c=m||c===n?1:Ze(c),hr(s,c<0?0:c,x)):[]}function XI(s,c,m){var x=s==null?0:s.length;return x?(c=m||c===n?1:Ze(c),c=x-c,hr(s,0,c<0?0:c)):[]}function QI(s,c){return s&&s.length?Vf(s,je(c,3),!0,!0):[]}function eB(s,c){return s&&s.length?Vf(s,je(c,3),!0):[]}function tB(s,c,m,x){var P=s==null?0:s.length;return P?(m&&typeof m!="number"&&Pn(s,c,m)&&(m=0,x=P),Hk(s,c,m,x)):[]}function dx(s,c,m){var x=s==null?0:s.length;if(!x)return-1;var P=m==null?0:Ze(m);return P<0&&(P=rn(x+P,0)),vf(s,je(c,3),P)}function hx(s,c,m){var x=s==null?0:s.length;if(!x)return-1;var P=x-1;return m!==n&&(P=Ze(m),P=m<0?rn(x+P,0):bn(P,x-1)),vf(s,je(c,3),P,!0)}function px(s){var c=s==null?0:s.length;return c?dn(s,1):[]}function nB(s){var c=s==null?0:s.length;return c?dn(s,k):[]}function rB(s,c){var m=s==null?0:s.length;return m?(c=c===n?1:Ze(c),dn(s,c)):[]}function iB(s){for(var c=-1,m=s==null?0:s.length,x={};++c<m;){var P=s[c];x[P[0]]=P[1]}return x}function mx(s){return s&&s.length?s[0]:n}function aB(s,c,m){var x=s==null?0:s.length;if(!x)return-1;var P=m==null?0:Ze(m);return P<0&&(P=rn(x+P,0)),gs(s,c,P)}function oB(s){var c=s==null?0:s.length;return c?hr(s,0,-1):[]}var sB=tt(function(s){var c=Ot(s,Cm);return c.length&&c[0]===s[0]?pm(c):[]}),uB=tt(function(s){var c=pr(s),m=Ot(s,Cm);return c===pr(m)?c=n:m.pop(),m.length&&m[0]===s[0]?pm(m,je(c,2)):[]}),lB=tt(function(s){var c=pr(s),m=Ot(s,Cm);return c=typeof c=="function"?c:n,c&&m.pop(),m.length&&m[0]===s[0]?pm(m,n,c):[]});function cB(s,c){return s==null?"":ok.call(s,c)}function pr(s){var c=s==null?0:s.length;return c?s[c-1]:n}function fB(s,c,m){var x=s==null?0:s.length;if(!x)return-1;var P=x;return m!==n&&(P=Ze(m),P=P<0?rn(x+P,0):bn(P,x-1)),c===c?z8(s,c,P):vf(s,Y3,P,!0)}function dB(s,c){return s&&s.length?S$(s,Ze(c)):n}var hB=tt(gx);function gx(s,c){return s&&s.length&&c&&c.length?vm(s,c):s}function pB(s,c,m){return s&&s.length&&c&&c.length?vm(s,c,je(m,2)):s}function mB(s,c,m){return s&&s.length&&c&&c.length?vm(s,c,n,m):s}var gB=Ni(function(s,c){var m=s==null?0:s.length,x=cm(s,c);return P$(s,Ot(c,function(P){return ji(P,m)?+P:P}).sort(V$)),x});function yB(s,c){var m=[];if(!(s&&s.length))return m;var x=-1,P=[],B=s.length;for(c=je(c,3);++x<B;){var q=s[x];c(q,x,s)&&(m.push(q),P.push(x))}return P$(s,P),m}function Lm(s){return s==null?s:ck.call(s)}function vB(s,c,m){var x=s==null?0:s.length;return x?(m&&typeof m!="number"&&Pn(s,c,m)?(c=0,m=x):(c=c==null?0:Ze(c),m=m===n?x:Ze(m)),hr(s,c,m)):[]}function bB(s,c){return Lf(s,c)}function $B(s,c,m){return xm(s,c,je(m,2))}function xB(s,c){var m=s==null?0:s.length;if(m){var x=Lf(s,c);if(x<m&&Br(s[x],c))return x}return-1}function wB(s,c){return Lf(s,c,!0)}function DB(s,c,m){return xm(s,c,je(m,2),!0)}function CB(s,c){var m=s==null?0:s.length;if(m){var x=Lf(s,c,!0)-1;if(Br(s[x],c))return x}return-1}function EB(s){return s&&s.length?R$(s):[]}function SB(s,c){return s&&s.length?R$(s,je(c,2)):[]}function TB(s){var c=s==null?0:s.length;return c?hr(s,1,c):[]}function AB(s,c,m){return s&&s.length?(c=m||c===n?1:Ze(c),hr(s,0,c<0?0:c)):[]}function PB(s,c,m){var x=s==null?0:s.length;return x?(c=m||c===n?1:Ze(c),c=x-c,hr(s,c<0?0:c,x)):[]}function _B(s,c){return s&&s.length?Vf(s,je(c,3),!1,!0):[]}function RB(s,c){return s&&s.length?Vf(s,je(c,3)):[]}var OB=tt(function(s){return Da(dn(s,1,Kt,!0))}),MB=tt(function(s){var c=pr(s);return Kt(c)&&(c=n),Da(dn(s,1,Kt,!0),je(c,2))}),FB=tt(function(s){var c=pr(s);return c=typeof c=="function"?c:n,Da(dn(s,1,Kt,!0),n,c)});function kB(s){return s&&s.length?Da(s):[]}function IB(s,c){return s&&s.length?Da(s,je(c,2)):[]}function BB(s,c){return c=typeof c=="function"?c:n,s&&s.length?Da(s,n,c):[]}function Vm(s){if(!(s&&s.length))return[];var c=0;return s=va(s,function(m){if(Kt(m))return c=rn(m.length,c),!0}),nm(c,function(m){return Ot(s,Qp(m))})}function yx(s,c){if(!(s&&s.length))return[];var m=Vm(s);return c==null?m:Ot(m,function(x){return Jn(c,n,x)})}var LB=tt(function(s,c){return Kt(s)?bl(s,c):[]}),VB=tt(function(s){return Dm(va(s,Kt))}),NB=tt(function(s){var c=pr(s);return Kt(c)&&(c=n),Dm(va(s,Kt),je(c,2))}),jB=tt(function(s){var c=pr(s);return c=typeof c=="function"?c:n,Dm(va(s,Kt),n,c)}),KB=tt(Vm);function UB(s,c){return k$(s||[],c||[],vl)}function zB(s,c){return k$(s||[],c||[],wl)}var qB=tt(function(s){var c=s.length,m=c>1?s[c-1]:n;return m=typeof m=="function"?(s.pop(),m):n,yx(s,m)});function vx(s){var c=F(s);return c.__chain__=!0,c}function WB(s,c){return c(s),s}function Gf(s,c){return c(s)}var HB=Ni(function(s){var c=s.length,m=c?s[0]:0,x=this.__wrapped__,P=function(B){return cm(B,s)};return c>1||this.__actions__.length||!(x instanceof at)||!ji(m)?this.thru(P):(x=x.slice(m,+m+(c?1:0)),x.__actions__.push({func:Gf,args:[P],thisArg:n}),new fr(x,this.__chain__).thru(function(B){return c&&!B.length&&B.push(n),B}))});function GB(){return vx(this)}function YB(){return new fr(this.value(),this.__chain__)}function ZB(){this.__values__===n&&(this.__values__=Ox(this.value()));var s=this.__index__>=this.__values__.length,c=s?n:this.__values__[this.__index__++];return{done:s,value:c}}function JB(){return this}function XB(s){for(var c,m=this;m instanceof Mf;){var x=fx(m);x.__index__=0,x.__values__=n,c?P.__wrapped__=x:c=x;var P=x;m=m.__wrapped__}return P.__wrapped__=s,c}function QB(){var s=this.__wrapped__;if(s instanceof at){var c=s;return this.__actions__.length&&(c=new at(this)),c=c.reverse(),c.__actions__.push({func:Gf,args:[Lm],thisArg:n}),new fr(c,this.__chain__)}return this.thru(Lm)}function eL(){return F$(this.__wrapped__,this.__actions__)}var tL=Nf(function(s,c,m){yt.call(s,m)?++s[m]:Li(s,m,1)});function nL(s,c,m){var x=Ge(s)?H3:Wk;return m&&Pn(s,c,m)&&(c=n),x(s,je(c,3))}function rL(s,c){var m=Ge(s)?va:y$;return m(s,je(c,3))}var iL=q$(dx),aL=q$(hx);function oL(s,c){return dn(Yf(s,c),1)}function sL(s,c){return dn(Yf(s,c),k)}function uL(s,c,m){return m=m===n?1:Ze(m),dn(Yf(s,c),m)}function bx(s,c){var m=Ge(s)?lr:wa;return m(s,je(c,3))}function $x(s,c){var m=Ge(s)?T8:g$;return m(s,je(c,3))}var lL=Nf(function(s,c,m){yt.call(s,m)?s[m].push(c):Li(s,m,[c])});function cL(s,c,m,x){s=Vn(s)?s:As(s),m=m&&!x?Ze(m):0;var P=s.length;return m<0&&(m=rn(P+m,0)),ed(s)?m<=P&&s.indexOf(c,m)>-1:!!P&&gs(s,c,m)>-1}var fL=tt(function(s,c,m){var x=-1,P=typeof c=="function",B=Vn(s)?oe(s.length):[];return wa(s,function(q){B[++x]=P?Jn(c,q,m):$l(q,c,m)}),B}),dL=Nf(function(s,c,m){Li(s,m,c)});function Yf(s,c){var m=Ge(s)?Ot:D$;return m(s,je(c,3))}function hL(s,c,m,x){return s==null?[]:(Ge(c)||(c=c==null?[]:[c]),m=x?n:m,Ge(m)||(m=m==null?[]:[m]),T$(s,c,m))}var pL=Nf(function(s,c,m){s[m?0:1].push(c)},function(){return[[],[]]});function mL(s,c,m){var x=Ge(s)?Jp:J3,P=arguments.length<3;return x(s,je(c,4),m,P,wa)}function gL(s,c,m){var x=Ge(s)?A8:J3,P=arguments.length<3;return x(s,je(c,4),m,P,g$)}function yL(s,c){var m=Ge(s)?va:y$;return m(s,Xf(je(c,3)))}function vL(s){var c=Ge(s)?d$:cI;return c(s)}function bL(s,c,m){(m?Pn(s,c,m):c===n)?c=1:c=Ze(c);var x=Ge(s)?jk:fI;return x(s,c)}function $L(s){var c=Ge(s)?Kk:hI;return c(s)}function xL(s){if(s==null)return 0;if(Vn(s))return ed(s)?vs(s):s.length;var c=$n(s);return c==nt||c==ve?s.size:gm(s).length}function wL(s,c,m){var x=Ge(s)?Xp:pI;return m&&Pn(s,c,m)&&(c=n),x(s,je(c,3))}var DL=tt(function(s,c){if(s==null)return[];var m=c.length;return m>1&&Pn(s,c[0],c[1])?c=[]:m>2&&Pn(c[0],c[1],c[2])&&(c=[c[0]]),T$(s,dn(c,1),[])}),Zf=rk||function(){return Jt.Date.now()};function CL(s,c){if(typeof c!="function")throw new cr(o);return s=Ze(s),function(){if(--s<1)return c.apply(this,arguments)}}function xx(s,c,m){return c=m?n:c,c=s&&c==null?s.length:c,Vi(s,M,n,n,n,n,c)}function wx(s,c){var m;if(typeof c!="function")throw new cr(o);return s=Ze(s),function(){return--s>0&&(m=c.apply(this,arguments)),s<=1&&(c=n),m}}var Nm=tt(function(s,c,m){var x=D;if(m.length){var P=$a(m,Ss(Nm));x|=E}return Vi(s,x,c,m,P)}),Dx=tt(function(s,c,m){var x=D|b;if(m.length){var P=$a(m,Ss(Dx));x|=E}return Vi(c,x,s,m,P)});function Cx(s,c,m){c=m?n:c;var x=Vi(s,w,n,n,n,n,n,c);return x.placeholder=Cx.placeholder,x}function Ex(s,c,m){c=m?n:c;var x=Vi(s,T,n,n,n,n,n,c);return x.placeholder=Ex.placeholder,x}function Sx(s,c,m){var x,P,B,q,Y,te,de=0,he=!1,$e=!1,Pe=!0;if(typeof s!="function")throw new cr(o);c=mr(c)||0,kt(m)&&(he=!!m.leading,$e="maxWait"in m,B=$e?rn(mr(m.maxWait)||0,c):B,Pe="trailing"in m?!!m.trailing:Pe);function Be(Ut){var Lr=x,zi=P;return x=P=n,de=Ut,q=s.apply(zi,Lr),q}function Ue(Ut){return de=Ut,Y=El(rt,c),he?Be(Ut):q}function Qe(Ut){var Lr=Ut-te,zi=Ut-de,qx=c-Lr;return $e?bn(qx,B-zi):qx}function ze(Ut){var Lr=Ut-te,zi=Ut-de;return te===n||Lr>=c||Lr<0||$e&&zi>=B}function rt(){var Ut=Zf();if(ze(Ut))return ot(Ut);Y=El(rt,Qe(Ut))}function ot(Ut){return Y=n,Pe&&x?Be(Ut):(x=P=n,q)}function tr(){Y!==n&&I$(Y),de=0,x=te=P=Y=n}function _n(){return Y===n?q:ot(Zf())}function nr(){var Ut=Zf(),Lr=ze(Ut);if(x=arguments,P=this,te=Ut,Lr){if(Y===n)return Ue(te);if($e)return I$(Y),Y=El(rt,c),Be(te)}return Y===n&&(Y=El(rt,c)),q}return nr.cancel=tr,nr.flush=_n,nr}var EL=tt(function(s,c){return m$(s,1,c)}),SL=tt(function(s,c,m){return m$(s,mr(c)||0,m)});function TL(s){return Vi(s,z)}function Jf(s,c){if(typeof s!="function"||c!=null&&typeof c!="function")throw new cr(o);var m=function(){var x=arguments,P=c?c.apply(this,x):x[0],B=m.cache;if(B.has(P))return B.get(P);var q=s.apply(this,x);return m.cache=B.set(P,q)||B,q};return m.cache=new(Jf.Cache||Bi),m}Jf.Cache=Bi;function Xf(s){if(typeof s!="function")throw new cr(o);return function(){var c=arguments;switch(c.length){case 0:return!s.call(this);case 1:return!s.call(this,c[0]);case 2:return!s.call(this,c[0],c[1]);case 3:return!s.call(this,c[0],c[1],c[2])}return!s.apply(this,c)}}function AL(s){return wx(2,s)}var PL=mI(function(s,c){c=c.length==1&&Ge(c[0])?Ot(c[0],Xn(je())):Ot(dn(c,1),Xn(je()));var m=c.length;return tt(function(x){for(var P=-1,B=bn(x.length,m);++P<B;)x[P]=c[P].call(this,x[P]);return Jn(s,this,x)})}),jm=tt(function(s,c){var m=$a(c,Ss(jm));return Vi(s,E,n,c,m)}),Tx=tt(function(s,c){var m=$a(c,Ss(Tx));return Vi(s,A,n,c,m)}),_L=Ni(function(s,c){return Vi(s,S,n,n,n,c)});function RL(s,c){if(typeof s!="function")throw new cr(o);return c=c===n?c:Ze(c),tt(s,c)}function OL(s,c){if(typeof s!="function")throw new cr(o);return c=c==null?0:rn(Ze(c),0),tt(function(m){var x=m[c],P=Ea(m,0,c);return x&&ba(P,x),Jn(s,this,P)})}function ML(s,c,m){var x=!0,P=!0;if(typeof s!="function")throw new cr(o);return kt(m)&&(x="leading"in m?!!m.leading:x,P="trailing"in m?!!m.trailing:P),Sx(s,c,{leading:x,maxWait:c,trailing:P})}function FL(s){return xx(s,1)}function kL(s,c){return jm(Em(c),s)}function IL(){if(!arguments.length)return[];var s=arguments[0];return Ge(s)?s:[s]}function BL(s){return dr(s,g)}function LL(s,c){return c=typeof c=="function"?c:n,dr(s,g,c)}function VL(s){return dr(s,h|g)}function NL(s,c){return c=typeof c=="function"?c:n,dr(s,h|g,c)}function jL(s,c){return c==null||p$(s,c,sn(c))}function Br(s,c){return s===c||s!==s&&c!==c}var KL=zf(hm),UL=zf(function(s,c){return s>=c}),yo=$$(function(){return arguments}())?$$:function(s){return jt(s)&&yt.call(s,"callee")&&!o$.call(s,"callee")},Ge=oe.isArray,zL=uo?Xn(uo):Xk;function Vn(s){return s!=null&&Qf(s.length)&&!Ki(s)}function Kt(s){return jt(s)&&Vn(s)}function qL(s){return s===!0||s===!1||jt(s)&&An(s)==J}var Sa=ak||Xm,WL=K3?Xn(K3):Qk;function HL(s){return jt(s)&&s.nodeType===1&&!Sl(s)}function GL(s){if(s==null)return!0;if(Vn(s)&&(Ge(s)||typeof s=="string"||typeof s.splice=="function"||Sa(s)||Ts(s)||yo(s)))return!s.length;var c=$n(s);if(c==nt||c==ve)return!s.size;if(Cl(s))return!gm(s).length;for(var m in s)if(yt.call(s,m))return!1;return!0}function YL(s,c){return xl(s,c)}function ZL(s,c,m){m=typeof m=="function"?m:n;var x=m?m(s,c):n;return x===n?xl(s,c,n,m):!!x}function Km(s){if(!jt(s))return!1;var c=An(s);return c==me||c==we||typeof s.message=="string"&&typeof s.name=="string"&&!Sl(s)}function JL(s){return typeof s=="number"&&u$(s)}function Ki(s){if(!kt(s))return!1;var c=An(s);return c==ue||c==Le||c==Ee||c==Q}function Ax(s){return typeof s=="number"&&s==Ze(s)}function Qf(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=_}function kt(s){var c=typeof s;return s!=null&&(c=="object"||c=="function")}function jt(s){return s!=null&&typeof s=="object"}var Px=U3?Xn(U3):tI;function XL(s,c){return s===c||mm(s,c,Om(c))}function QL(s,c,m){return m=typeof m=="function"?m:n,mm(s,c,Om(c),m)}function eV(s){return _x(s)&&s!=+s}function tV(s){if(LI(s))throw new He(a);return x$(s)}function nV(s){return s===null}function rV(s){return s==null}function _x(s){return typeof s=="number"||jt(s)&&An(s)==Nt}function Sl(s){if(!jt(s)||An(s)!=Pt)return!1;var c=Sf(s);if(c===null)return!0;var m=yt.call(c,"constructor")&&c.constructor;return typeof m=="function"&&m instanceof m&&wf.call(m)==Q8}var Um=z3?Xn(z3):nI;function iV(s){return Ax(s)&&s>=-9007199254740991&&s<=_}var Rx=q3?Xn(q3):rI;function ed(s){return typeof s=="string"||!Ge(s)&&jt(s)&&An(s)==Se}function er(s){return typeof s=="symbol"||jt(s)&&An(s)==Ce}var Ts=W3?Xn(W3):iI;function aV(s){return s===n}function oV(s){return jt(s)&&$n(s)==Ne}function sV(s){return jt(s)&&An(s)==_t}var uV=zf(ym),lV=zf(function(s,c){return s<=c});function Ox(s){if(!s)return[];if(Vn(s))return ed(s)?kr(s):Ln(s);if(hl&&s[hl])return j8(s[hl]());var c=$n(s),m=c==nt?im:c==ve?bf:As;return m(s)}function Ui(s){if(!s)return s===0?s:0;if(s=mr(s),s===k||s===-1/0){var c=s<0?-1:1;return c*H}return s===s?s:0}function Ze(s){var c=Ui(s),m=c%1;return c===c?m?c-m:c:0}function Mx(s){return s?ho(Ze(s),0,N):0}function mr(s){if(typeof s=="number")return s;if(er(s))return U;if(kt(s)){var c=typeof s.valueOf=="function"?s.valueOf():s;s=kt(c)?c+"":c}if(typeof s!="string")return s===0?s:+s;s=X3(s);var m=Qu.test(s);return m||tl.test(s)?gn(s.slice(2),m?2:8):Xu.test(s)?U:+s}function Fx(s){return ci(s,Nn(s))}function cV(s){return s?ho(Ze(s),-9007199254740991,_):s===0?s:0}function dt(s){return s==null?"":Qn(s)}var fV=Cs(function(s,c){if(Cl(c)||Vn(c)){ci(c,sn(c),s);return}for(var m in c)yt.call(c,m)&&vl(s,m,c[m])}),kx=Cs(function(s,c){ci(c,Nn(c),s)}),td=Cs(function(s,c,m,x){ci(c,Nn(c),s,x)}),dV=Cs(function(s,c,m,x){ci(c,sn(c),s,x)}),hV=Ni(cm);function pV(s,c){var m=Ds(s);return c==null?m:h$(m,c)}var mV=tt(function(s,c){s=Dt(s);var m=-1,x=c.length,P=x>2?c[2]:n;for(P&&Pn(c[0],c[1],P)&&(x=1);++m<x;)for(var B=c[m],q=Nn(B),Y=-1,te=q.length;++Y<te;){var de=q[Y],he=s[de];(he===n||Br(he,$s[de])&&!yt.call(s,de))&&(s[de]=B[de])}return s}),gV=tt(function(s){return s.push(n,X$),Jn(Ix,n,s)});function yV(s,c){return G3(s,je(c,3),li)}function vV(s,c){return G3(s,je(c,3),dm)}function bV(s,c){return s==null?s:fm(s,je(c,3),Nn)}function $V(s,c){return s==null?s:v$(s,je(c,3),Nn)}function xV(s,c){return s&&li(s,je(c,3))}function wV(s,c){return s&&dm(s,je(c,3))}function DV(s){return s==null?[]:If(s,sn(s))}function CV(s){return s==null?[]:If(s,Nn(s))}function zm(s,c,m){var x=s==null?n:po(s,c);return x===n?m:x}function EV(s,c){return s!=null&&tx(s,c,Gk)}function qm(s,c){return s!=null&&tx(s,c,Yk)}var SV=H$(function(s,c,m){c!=null&&typeof c.toString!="function"&&(c=Df.call(c)),s[c]=m},Hm(jn)),TV=H$(function(s,c,m){c!=null&&typeof c.toString!="function"&&(c=Df.call(c)),yt.call(s,c)?s[c].push(m):s[c]=[m]},je),AV=tt($l);function sn(s){return Vn(s)?f$(s):gm(s)}function Nn(s){return Vn(s)?f$(s,!0):aI(s)}function PV(s,c){var m={};return c=je(c,3),li(s,function(x,P,B){Li(m,c(x,P,B),x)}),m}function _V(s,c){var m={};return c=je(c,3),li(s,function(x,P,B){Li(m,P,c(x,P,B))}),m}var RV=Cs(function(s,c,m){Bf(s,c,m)}),Ix=Cs(function(s,c,m,x){Bf(s,c,m,x)}),OV=Ni(function(s,c){var m={};if(s==null)return m;var x=!1;c=Ot(c,function(B){return B=Ca(B,s),x||(x=B.length>1),B}),ci(s,_m(s),m),x&&(m=dr(m,h|p|g,SI));for(var P=c.length;P--;)wm(m,c[P]);return m});function MV(s,c){return Bx(s,Xf(je(c)))}var FV=Ni(function(s,c){return s==null?{}:sI(s,c)});function Bx(s,c){if(s==null)return{};var m=Ot(_m(s),function(x){return[x]});return c=je(c),A$(s,m,function(x,P){return c(x,P[0])})}function kV(s,c,m){c=Ca(c,s);var x=-1,P=c.length;for(P||(P=1,s=n);++x<P;){var B=s==null?n:s[fi(c[x])];B===n&&(x=P,B=m),s=Ki(B)?B.call(s):B}return s}function IV(s,c,m){return s==null?s:wl(s,c,m)}function BV(s,c,m,x){return x=typeof x=="function"?x:n,s==null?s:wl(s,c,m,x)}var Lx=Z$(sn),Vx=Z$(Nn);function LV(s,c,m){var x=Ge(s),P=x||Sa(s)||Ts(s);if(c=je(c,4),m==null){var B=s&&s.constructor;P?m=x?new B:[]:kt(s)?m=Ki(B)?Ds(Sf(s)):{}:m={}}return(P?lr:li)(s,function(q,Y,te){return c(m,q,Y,te)}),m}function VV(s,c){return s==null?!0:wm(s,c)}function NV(s,c,m){return s==null?s:M$(s,c,Em(m))}function jV(s,c,m,x){return x=typeof x=="function"?x:n,s==null?s:M$(s,c,Em(m),x)}function As(s){return s==null?[]:rm(s,sn(s))}function KV(s){return s==null?[]:rm(s,Nn(s))}function UV(s,c,m){return m===n&&(m=c,c=n),m!==n&&(m=mr(m),m=m===m?m:0),c!==n&&(c=mr(c),c=c===c?c:0),ho(mr(s),c,m)}function zV(s,c,m){return c=Ui(c),m===n?(m=c,c=0):m=Ui(m),s=mr(s),Zk(s,c,m)}function qV(s,c,m){if(m&&typeof m!="boolean"&&Pn(s,c,m)&&(c=m=n),m===n&&(typeof c=="boolean"?(m=c,c=n):typeof s=="boolean"&&(m=s,s=n)),s===n&&c===n?(s=0,c=1):(s=Ui(s),c===n?(c=s,s=0):c=Ui(c)),s>c){var x=s;s=c,c=x}if(m||s%1||c%1){var P=l$();return bn(s+P*(c-s+tn("1e-"+((P+"").length-1))),c)}return bm(s,c)}var WV=Es(function(s,c,m){return c=c.toLowerCase(),s+(m?Nx(c):c)});function Nx(s){return Wm(dt(s).toLowerCase())}function jx(s){return s=dt(s),s&&s.replace(ii,I8).replace(Hp,"")}function HV(s,c,m){s=dt(s),c=Qn(c);var x=s.length;m=m===n?x:ho(Ze(m),0,x);var P=m;return m-=c.length,m>=0&&s.slice(m,P)==c}function GV(s){return s=dt(s),s&&eo.test(s)?s.replace(or,B8):s}function YV(s){return s=dt(s),s&&qu.test(s)?s.replace(to,"\\$&"):s}var ZV=Es(function(s,c,m){return s+(m?"-":"")+c.toLowerCase()}),JV=Es(function(s,c,m){return s+(m?" ":"")+c.toLowerCase()}),XV=z$("toLowerCase");function QV(s,c,m){s=dt(s),c=Ze(c);var x=c?vs(s):0;if(!c||x>=c)return s;var P=(c-x)/2;return Uf(_f(P),m)+s+Uf(Pf(P),m)}function eN(s,c,m){s=dt(s),c=Ze(c);var x=c?vs(s):0;return c&&x<c?s+Uf(c-x,m):s}function tN(s,c,m){s=dt(s),c=Ze(c);var x=c?vs(s):0;return c&&x<c?Uf(c-x,m)+s:s}function nN(s,c,m){return m||c==null?c=0:c&&(c=+c),lk(dt(s).replace(no,""),c||0)}function rN(s,c,m){return(m?Pn(s,c,m):c===n)?c=1:c=Ze(c),$m(dt(s),c)}function iN(){var s=arguments,c=dt(s[0]);return s.length<3?c:c.replace(s[1],s[2])}var aN=Es(function(s,c,m){return s+(m?"_":"")+c.toLowerCase()});function oN(s,c,m){return m&&typeof m!="number"&&Pn(s,c,m)&&(c=m=n),m=m===n?N:m>>>0,m?(s=dt(s),s&&(typeof c=="string"||c!=null&&!Um(c))&&(c=Qn(c),!c&&ys(s))?Ea(kr(s),0,m):s.split(c,m)):[]}var sN=Es(function(s,c,m){return s+(m?" ":"")+Wm(c)});function uN(s,c,m){return s=dt(s),m=m==null?0:ho(Ze(m),0,s.length),c=Qn(c),s.slice(m,m+c.length)==c}function lN(s,c,m){var x=F.templateSettings;m&&Pn(s,c,m)&&(c=n),s=dt(s),c=td({},c,x,J$);var P=td({},c.imports,x.imports,J$),B=sn(P),q=rm(P,B),Y,te,de=0,he=c.interpolate||ai,$e="__p += '",Pe=am((c.escape||ai).source+"|"+he.source+"|"+(he===rs?Ju:ai).source+"|"+(c.evaluate||ai).source+"|$","g"),Be="//# sourceURL="+(yt.call(c,"sourceURL")?(c.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++cl+"]")+`
|
|
68
|
+
`;s.replace(Pe,function(ze,rt,ot,tr,_n,nr){return ot||(ot=tr),$e+=s.slice(de,nr).replace(as,L8),rt&&(Y=!0,$e+=`' +
|
|
69
|
+
__e(`+rt+`) +
|
|
70
|
+
'`),_n&&(te=!0,$e+=`';
|
|
71
|
+
`+_n+`;
|
|
72
|
+
__p += '`),ot&&($e+=`' +
|
|
73
|
+
((__t = (`+ot+`)) == null ? '' : __t) +
|
|
74
|
+
'`),de=nr+ze.length,ze}),$e+=`';
|
|
75
|
+
`;var Ue=yt.call(c,"variable")&&c.variable;if(!Ue)$e=`with (obj) {
|
|
76
|
+
`+$e+`
|
|
77
|
+
}
|
|
78
|
+
`;else if(Yu.test(Ue))throw new He(u);$e=(te?$e.replace(Oi,""):$e).replace(ri,"$1").replace(ha,"$1;"),$e="function("+(Ue||"obj")+`) {
|
|
79
|
+
`+(Ue?"":`obj || (obj = {});
|
|
80
|
+
`)+"var __t, __p = ''"+(Y?", __e = _.escape":"")+(te?`, __j = Array.prototype.join;
|
|
81
|
+
function print() { __p += __j.call(arguments, '') }
|
|
82
|
+
`:`;
|
|
83
|
+
`)+$e+`return __p
|
|
84
|
+
}`;var Qe=Ux(function(){return lt(B,Be+"return "+$e).apply(n,q)});if(Qe.source=$e,Km(Qe))throw Qe;return Qe}function cN(s){return dt(s).toLowerCase()}function fN(s){return dt(s).toUpperCase()}function dN(s,c,m){if(s=dt(s),s&&(m||c===n))return X3(s);if(!s||!(c=Qn(c)))return s;var x=kr(s),P=kr(c),B=Q3(x,P),q=e$(x,P)+1;return Ea(x,B,q).join("")}function hN(s,c,m){if(s=dt(s),s&&(m||c===n))return s.slice(0,n$(s)+1);if(!s||!(c=Qn(c)))return s;var x=kr(s),P=e$(x,kr(c))+1;return Ea(x,0,P).join("")}function pN(s,c,m){if(s=dt(s),s&&(m||c===n))return s.replace(no,"");if(!s||!(c=Qn(c)))return s;var x=kr(s),P=Q3(x,kr(c));return Ea(x,P).join("")}function mN(s,c){var m=j,x=O;if(kt(c)){var P="separator"in c?c.separator:P;m="length"in c?Ze(c.length):m,x="omission"in c?Qn(c.omission):x}s=dt(s);var B=s.length;if(ys(s)){var q=kr(s);B=q.length}if(m>=B)return s;var Y=m-vs(x);if(Y<1)return x;var te=q?Ea(q,0,Y).join(""):s.slice(0,Y);if(P===n)return te+x;if(q&&(Y+=te.length-Y),Um(P)){if(s.slice(Y).search(P)){var de,he=te;for(P.global||(P=am(P.source,dt(Fr.exec(P))+"g")),P.lastIndex=0;de=P.exec(he);)var $e=de.index;te=te.slice(0,$e===n?Y:$e)}}else if(s.indexOf(Qn(P),Y)!=Y){var Pe=te.lastIndexOf(P);Pe>-1&&(te=te.slice(0,Pe))}return te+x}function gN(s){return s=dt(s),s&&Qa.test(s)?s.replace(Mi,q8):s}var yN=Es(function(s,c,m){return s+(m?" ":"")+c.toUpperCase()}),Wm=z$("toUpperCase");function Kx(s,c,m){return s=dt(s),c=m?n:c,c===n?N8(s)?G8(s):R8(s):s.match(c)||[]}var Ux=tt(function(s,c){try{return Jn(s,n,c)}catch(m){return Km(m)?m:new He(m)}}),vN=Ni(function(s,c){return lr(c,function(m){m=fi(m),Li(s,m,Nm(s[m],s))}),s});function bN(s){var c=s==null?0:s.length,m=je();return s=c?Ot(s,function(x){if(typeof x[1]!="function")throw new cr(o);return[m(x[0]),x[1]]}):[],tt(function(x){for(var P=-1;++P<c;){var B=s[P];if(Jn(B[0],this,x))return Jn(B[1],this,x)}})}function $N(s){return qk(dr(s,h))}function Hm(s){return function(){return s}}function xN(s,c){return s==null||s!==s?c:s}var wN=W$(),DN=W$(!0);function jn(s){return s}function Gm(s){return w$(typeof s=="function"?s:dr(s,h))}function CN(s){return C$(dr(s,h))}function EN(s,c){return E$(s,dr(c,h))}var SN=tt(function(s,c){return function(m){return $l(m,s,c)}}),TN=tt(function(s,c){return function(m){return $l(s,m,c)}});function Ym(s,c,m){var x=sn(c),P=If(c,x);m==null&&!(kt(c)&&(P.length||!x.length))&&(m=c,c=s,s=this,P=If(c,sn(c)));var B=!(kt(m)&&"chain"in m)||!!m.chain,q=Ki(s);return lr(P,function(Y){var te=c[Y];s[Y]=te,q&&(s.prototype[Y]=function(){var de=this.__chain__;if(B||de){var he=s(this.__wrapped__),$e=he.__actions__=Ln(this.__actions__);return $e.push({func:te,args:arguments,thisArg:s}),he.__chain__=de,he}return te.apply(s,ba([this.value()],arguments))})}),s}function AN(){return Jt._===this&&(Jt._=ek),this}function Zm(){}function PN(s){return s=Ze(s),tt(function(c){return S$(c,s)})}var _N=Tm(Ot),RN=Tm(H3),ON=Tm(Xp);function zx(s){return Fm(s)?Qp(fi(s)):uI(s)}function MN(s){return function(c){return s==null?n:po(s,c)}}var FN=G$(),kN=G$(!0);function Jm(){return[]}function Xm(){return!1}function IN(){return{}}function BN(){return""}function LN(){return!0}function VN(s,c){if(s=Ze(s),s<1||s>_)return[];var m=N,x=bn(s,N);c=je(c),s-=N;for(var P=nm(x,c);++m<s;)c(m);return P}function NN(s){return Ge(s)?Ot(s,fi):er(s)?[s]:Ln(cx(dt(s)))}function jN(s){var c=++X8;return dt(s)+c}var KN=Kf(function(s,c){return s+c},0),UN=Am("ceil"),zN=Kf(function(s,c){return s/c},1),qN=Am("floor");function WN(s){return s&&s.length?kf(s,jn,hm):n}function HN(s,c){return s&&s.length?kf(s,je(c,2),hm):n}function GN(s){return Z3(s,jn)}function YN(s,c){return Z3(s,je(c,2))}function ZN(s){return s&&s.length?kf(s,jn,ym):n}function JN(s,c){return s&&s.length?kf(s,je(c,2),ym):n}var XN=Kf(function(s,c){return s*c},1),QN=Am("round"),ej=Kf(function(s,c){return s-c},0);function tj(s){return s&&s.length?tm(s,jn):0}function nj(s,c){return s&&s.length?tm(s,je(c,2)):0}return F.after=CL,F.ary=xx,F.assign=fV,F.assignIn=kx,F.assignInWith=td,F.assignWith=dV,F.at=hV,F.before=wx,F.bind=Nm,F.bindAll=vN,F.bindKey=Dx,F.castArray=IL,F.chain=vx,F.chunk=qI,F.compact=WI,F.concat=HI,F.cond=bN,F.conforms=$N,F.constant=Hm,F.countBy=tL,F.create=pV,F.curry=Cx,F.curryRight=Ex,F.debounce=Sx,F.defaults=mV,F.defaultsDeep=gV,F.defer=EL,F.delay=SL,F.difference=GI,F.differenceBy=YI,F.differenceWith=ZI,F.drop=JI,F.dropRight=XI,F.dropRightWhile=QI,F.dropWhile=eB,F.fill=tB,F.filter=rL,F.flatMap=oL,F.flatMapDeep=sL,F.flatMapDepth=uL,F.flatten=px,F.flattenDeep=nB,F.flattenDepth=rB,F.flip=TL,F.flow=wN,F.flowRight=DN,F.fromPairs=iB,F.functions=DV,F.functionsIn=CV,F.groupBy=lL,F.initial=oB,F.intersection=sB,F.intersectionBy=uB,F.intersectionWith=lB,F.invert=SV,F.invertBy=TV,F.invokeMap=fL,F.iteratee=Gm,F.keyBy=dL,F.keys=sn,F.keysIn=Nn,F.map=Yf,F.mapKeys=PV,F.mapValues=_V,F.matches=CN,F.matchesProperty=EN,F.memoize=Jf,F.merge=RV,F.mergeWith=Ix,F.method=SN,F.methodOf=TN,F.mixin=Ym,F.negate=Xf,F.nthArg=PN,F.omit=OV,F.omitBy=MV,F.once=AL,F.orderBy=hL,F.over=_N,F.overArgs=PL,F.overEvery=RN,F.overSome=ON,F.partial=jm,F.partialRight=Tx,F.partition=pL,F.pick=FV,F.pickBy=Bx,F.property=zx,F.propertyOf=MN,F.pull=hB,F.pullAll=gx,F.pullAllBy=pB,F.pullAllWith=mB,F.pullAt=gB,F.range=FN,F.rangeRight=kN,F.rearg=_L,F.reject=yL,F.remove=yB,F.rest=RL,F.reverse=Lm,F.sampleSize=bL,F.set=IV,F.setWith=BV,F.shuffle=$L,F.slice=vB,F.sortBy=DL,F.sortedUniq=EB,F.sortedUniqBy=SB,F.split=oN,F.spread=OL,F.tail=TB,F.take=AB,F.takeRight=PB,F.takeRightWhile=_B,F.takeWhile=RB,F.tap=WB,F.throttle=ML,F.thru=Gf,F.toArray=Ox,F.toPairs=Lx,F.toPairsIn=Vx,F.toPath=NN,F.toPlainObject=Fx,F.transform=LV,F.unary=FL,F.union=OB,F.unionBy=MB,F.unionWith=FB,F.uniq=kB,F.uniqBy=IB,F.uniqWith=BB,F.unset=VV,F.unzip=Vm,F.unzipWith=yx,F.update=NV,F.updateWith=jV,F.values=As,F.valuesIn=KV,F.without=LB,F.words=Kx,F.wrap=kL,F.xor=VB,F.xorBy=NB,F.xorWith=jB,F.zip=KB,F.zipObject=UB,F.zipObjectDeep=zB,F.zipWith=qB,F.entries=Lx,F.entriesIn=Vx,F.extend=kx,F.extendWith=td,Ym(F,F),F.add=KN,F.attempt=Ux,F.camelCase=WV,F.capitalize=Nx,F.ceil=UN,F.clamp=UV,F.clone=BL,F.cloneDeep=VL,F.cloneDeepWith=NL,F.cloneWith=LL,F.conformsTo=jL,F.deburr=jx,F.defaultTo=xN,F.divide=zN,F.endsWith=HV,F.eq=Br,F.escape=GV,F.escapeRegExp=YV,F.every=nL,F.find=iL,F.findIndex=dx,F.findKey=yV,F.findLast=aL,F.findLastIndex=hx,F.findLastKey=vV,F.floor=qN,F.forEach=bx,F.forEachRight=$x,F.forIn=bV,F.forInRight=$V,F.forOwn=xV,F.forOwnRight=wV,F.get=zm,F.gt=KL,F.gte=UL,F.has=EV,F.hasIn=qm,F.head=mx,F.identity=jn,F.includes=cL,F.indexOf=aB,F.inRange=zV,F.invoke=AV,F.isArguments=yo,F.isArray=Ge,F.isArrayBuffer=zL,F.isArrayLike=Vn,F.isArrayLikeObject=Kt,F.isBoolean=qL,F.isBuffer=Sa,F.isDate=WL,F.isElement=HL,F.isEmpty=GL,F.isEqual=YL,F.isEqualWith=ZL,F.isError=Km,F.isFinite=JL,F.isFunction=Ki,F.isInteger=Ax,F.isLength=Qf,F.isMap=Px,F.isMatch=XL,F.isMatchWith=QL,F.isNaN=eV,F.isNative=tV,F.isNil=rV,F.isNull=nV,F.isNumber=_x,F.isObject=kt,F.isObjectLike=jt,F.isPlainObject=Sl,F.isRegExp=Um,F.isSafeInteger=iV,F.isSet=Rx,F.isString=ed,F.isSymbol=er,F.isTypedArray=Ts,F.isUndefined=aV,F.isWeakMap=oV,F.isWeakSet=sV,F.join=cB,F.kebabCase=ZV,F.last=pr,F.lastIndexOf=fB,F.lowerCase=JV,F.lowerFirst=XV,F.lt=uV,F.lte=lV,F.max=WN,F.maxBy=HN,F.mean=GN,F.meanBy=YN,F.min=ZN,F.minBy=JN,F.stubArray=Jm,F.stubFalse=Xm,F.stubObject=IN,F.stubString=BN,F.stubTrue=LN,F.multiply=XN,F.nth=dB,F.noConflict=AN,F.noop=Zm,F.now=Zf,F.pad=QV,F.padEnd=eN,F.padStart=tN,F.parseInt=nN,F.random=qV,F.reduce=mL,F.reduceRight=gL,F.repeat=rN,F.replace=iN,F.result=kV,F.round=QN,F.runInContext=ee,F.sample=vL,F.size=xL,F.snakeCase=aN,F.some=wL,F.sortedIndex=bB,F.sortedIndexBy=$B,F.sortedIndexOf=xB,F.sortedLastIndex=wB,F.sortedLastIndexBy=DB,F.sortedLastIndexOf=CB,F.startCase=sN,F.startsWith=uN,F.subtract=ej,F.sum=tj,F.sumBy=nj,F.template=lN,F.times=VN,F.toFinite=Ui,F.toInteger=Ze,F.toLength=Mx,F.toLower=cN,F.toNumber=mr,F.toSafeInteger=cV,F.toString=dt,F.toUpper=fN,F.trim=dN,F.trimEnd=hN,F.trimStart=pN,F.truncate=mN,F.unescape=gN,F.uniqueId=jN,F.upperCase=yN,F.upperFirst=Wm,F.each=bx,F.eachRight=$x,F.first=mx,Ym(F,function(){var s={};return li(F,function(c,m){yt.call(F.prototype,m)||(s[m]=c)}),s}(),{chain:!1}),F.VERSION=r,lr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){F[s].placeholder=F}),lr(["drop","take"],function(s,c){at.prototype[s]=function(m){m=m===n?1:rn(Ze(m),0);var x=this.__filtered__&&!c?new at(this):this.clone();return x.__filtered__?x.__takeCount__=bn(m,x.__takeCount__):x.__views__.push({size:bn(m,N),type:s+(x.__dir__<0?"Right":"")}),x},at.prototype[s+"Right"]=function(m){return this.reverse()[s](m).reverse()}}),lr(["filter","map","takeWhile"],function(s,c){var m=c+1,x=m==V||m==L;at.prototype[s]=function(P){var B=this.clone();return B.__iteratees__.push({iteratee:je(P,3),type:m}),B.__filtered__=B.__filtered__||x,B}}),lr(["head","last"],function(s,c){var m="take"+(c?"Right":"");at.prototype[s]=function(){return this[m](1).value()[0]}}),lr(["initial","tail"],function(s,c){var m="drop"+(c?"":"Right");at.prototype[s]=function(){return this.__filtered__?new at(this):this[m](1)}}),at.prototype.compact=function(){return this.filter(jn)},at.prototype.find=function(s){return this.filter(s).head()},at.prototype.findLast=function(s){return this.reverse().find(s)},at.prototype.invokeMap=tt(function(s,c){return typeof s=="function"?new at(this):this.map(function(m){return $l(m,s,c)})}),at.prototype.reject=function(s){return this.filter(Xf(je(s)))},at.prototype.slice=function(s,c){s=Ze(s);var m=this;return m.__filtered__&&(s>0||c<0)?new at(m):(s<0?m=m.takeRight(-s):s&&(m=m.drop(s)),c!==n&&(c=Ze(c),m=c<0?m.dropRight(-c):m.take(c-s)),m)},at.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},at.prototype.toArray=function(){return this.take(N)},li(at.prototype,function(s,c){var m=/^(?:filter|find|map|reject)|While$/.test(c),x=/^(?:head|last)$/.test(c),P=F[x?"take"+(c=="last"?"Right":""):c],B=x||/^find/.test(c);P&&(F.prototype[c]=function(){var q=this.__wrapped__,Y=x?[1]:arguments,te=q instanceof at,de=Y[0],he=te||Ge(q),$e=function(rt){var ot=P.apply(F,ba([rt],Y));return x&&Pe?ot[0]:ot};he&&m&&typeof de=="function"&&de.length!=1&&(te=he=!1);var Pe=this.__chain__,Be=!!this.__actions__.length,Ue=B&&!Pe,Qe=te&&!Be;if(!B&&he){q=Qe?q:new at(this);var ze=s.apply(q,Y);return ze.__actions__.push({func:Gf,args:[$e],thisArg:n}),new fr(ze,Pe)}return Ue&&Qe?s.apply(this,Y):(ze=this.thru($e),Ue?x?ze.value()[0]:ze.value():ze)})}),lr(["pop","push","shift","sort","splice","unshift"],function(s){var c=$f[s],m=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",x=/^(?:pop|shift)$/.test(s);F.prototype[s]=function(){var P=arguments;if(x&&!this.__chain__){var B=this.value();return c.apply(Ge(B)?B:[],P)}return this[m](function(q){return c.apply(Ge(q)?q:[],P)})}}),li(at.prototype,function(s,c){var m=F[c];if(m){var x=m.name+"";yt.call(ws,x)||(ws[x]=[]),ws[x].push({name:c,func:m})}}),ws[jf(n,b).name]=[{name:"wrapper",func:n}],at.prototype.clone=gk,at.prototype.reverse=yk,at.prototype.value=vk,F.prototype.at=HB,F.prototype.chain=GB,F.prototype.commit=YB,F.prototype.next=ZB,F.prototype.plant=XB,F.prototype.reverse=QB,F.prototype.toJSON=F.prototype.valueOf=F.prototype.value=eL,F.prototype.first=F.prototype.head,hl&&(F.prototype[hl]=JB),F},bs=Y8();ui?((ui.exports=bs)._=bs,si._=bs):Jt._=bs}).call(bU)}(Ul,Ul.exports)),Ul.exports}var nA=$U();const xU=sa(nA);var Ic=e=>e.type==="checkbox",To=e=>e instanceof Date,Rn=e=>e==null;const rA=e=>typeof e=="object";var Gt=e=>!Rn(e)&&!Array.isArray(e)&&rA(e)&&!To(e),iA=e=>Gt(e)&&e.target?Ic(e.target)?e.target.checked:e.target.value:e,wU=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,aA=(e,t)=>e.has(wU(t)),DU=e=>{const t=e.constructor&&e.constructor.prototype;return Gt(t)&&t.hasOwnProperty("isPrototypeOf")},x1=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Kn(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(!(x1&&(e instanceof Blob||r))&&(n||Gt(e)))if(t=n?[]:{},!n&&!DU(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=Kn(e[i]));else return e;return t}var Qh=e=>Array.isArray(e)?e.filter(Boolean):[],Wt=e=>e===void 0,Ae=(e,t,n)=>{if(!t||!Gt(e))return n;const r=Qh(t.split(/[,[\].]+?/)).reduce((i,a)=>Rn(i)?i:i[a],e);return Wt(r)||r===e?Wt(e[t])?n:e[t]:r},wr=e=>typeof e=="boolean",w1=e=>/^\w*$/.test(e),oA=e=>Qh(e.replace(/["|']|\]/g,"").split(/\.|\[/)),gt=(e,t,n)=>{let r=-1;const i=w1(t)?[t]:oA(t),a=i.length,o=a-1;for(;++r<a;){const u=i[r];let l=n;if(r!==o){const f=e[u];l=Gt(f)||Array.isArray(f)?f:isNaN(+i[r+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;e[u]=l,e=e[u]}return e};const nh={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Kr={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},qi={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},sA=C.createContext(null),ep=()=>C.useContext(sA),CU=e=>{const{children:t,...n}=e;return C.createElement(sA.Provider,{value:n},t)};var uA=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==Kr.all&&(t._proxyFormState[o]=!r||Kr.all),n&&(n[o]=!0),e[o]}});return i},Un=e=>Gt(e)&&!Object.keys(e).length,lA=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return Un(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!r||Kr.all))},nc=e=>Array.isArray(e)?e:[e],cA=(e,t,n)=>!e||!t||e===t||nc(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function D1(e){const t=C.useRef(e);t.current=e,C.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function EU(e){const t=ep(),{control:n=t.control,disabled:r,name:i,exact:a}=e||{},[o,u]=C.useState(n._formState),l=C.useRef(!0),f=C.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=C.useRef(i);return d.current=i,D1({disabled:r,next:h=>l.current&&cA(d.current,h.name,a)&&lA(h,f.current,n._updateFormState)&&u({...n._formState,...h}),subject:n._subjects.state}),C.useEffect(()=>(l.current=!0,f.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),C.useMemo(()=>uA(o,n,f.current,!1),[o,n])}var vi=e=>typeof e=="string",fA=(e,t,n,r,i)=>vi(e)?(r&&t.watch.add(e),Ae(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),Ae(n,a))):(r&&(t.watchAll=!0),n);function dA(e){const t=ep(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:o}=e||{},u=C.useRef(r);u.current=r,D1({disabled:a,subject:n._subjects.values,next:d=>{cA(u.current,d.name,o)&&f(Kn(fA(u.current,n._names,d.values||n._formValues,!1,i)))}});const[l,f]=C.useState(n._getWatch(r,i));return C.useEffect(()=>n._removeUnmounted()),l}function SU(e){const t=ep(),{name:n,disabled:r,control:i=t.control,shouldUnregister:a}=e,o=aA(i._names.array,n),u=dA({control:i,name:n,defaultValue:Ae(i._formValues,n,Ae(i._defaultValues,n,e.defaultValue)),exact:!0}),l=EU({control:i,name:n,exact:!0}),f=C.useRef(i.register(n,{...e.rules,value:u,...wr(e.disabled)?{disabled:e.disabled}:{}})),d=C.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ae(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ae(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ae(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Ae(l.validatingFields,n)},error:{enumerable:!0,get:()=>Ae(l.errors,n)}}),[l,n]),h=C.useMemo(()=>({name:n,value:u,...wr(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:p=>f.current.onChange({target:{value:iA(p),name:n},type:nh.CHANGE}),onBlur:()=>f.current.onBlur({target:{value:Ae(i._formValues,n),name:n},type:nh.BLUR}),ref:p=>{const g=Ae(i._fields,n);g&&p&&(g._f.ref={focus:()=>p.focus(),select:()=>p.select(),setCustomValidity:y=>p.setCustomValidity(y),reportValidity:()=>p.reportValidity()})}}),[n,i._formValues,r,l.disabled,u,i._fields]);return C.useEffect(()=>{const p=i._options.shouldUnregister||a,g=(y,$)=>{const D=Ae(i._fields,y);D&&D._f&&(D._f.mount=$)};if(g(n,!0),p){const y=Kn(Ae(i._options.defaultValues,n));gt(i._defaultValues,n,y),Wt(Ae(i._formValues,n))&>(i._formValues,n,y)}return!o&&i.register(n),()=>{(o?p&&!i._state.action:p)?i.unregister(n):g(n,!1)}},[n,i,o,a]),C.useEffect(()=>{i._updateDisabledField({disabled:r,fields:i._fields,name:n})},[r,n,i]),C.useMemo(()=>({field:h,formState:l,fieldState:d}),[h,l,d])}const TU=e=>e.render(SU(e));var hA=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},xw=e=>({isOnSubmit:!e||e===Kr.onSubmit,isOnBlur:e===Kr.onBlur,isOnChange:e===Kr.onChange,isOnAll:e===Kr.all,isOnTouch:e===Kr.onTouched}),ww=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const rc=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const a=Ae(e,i);if(a){const{_f:o,...u}=a;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],i)&&!r)return!0;if(o.ref&&t(o.ref,o.name)&&!r)return!0;if(rc(u,t))break}else if(Gt(u)&&rc(u,t))break}}};var AU=(e,t,n)=>{const r=nc(Ae(e,n));return gt(r,"root",t[n]),gt(e,n,r),e},C1=e=>e.type==="file",gi=e=>typeof e=="function",rh=e=>{if(!x1)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Fd=e=>vi(e),E1=e=>e.type==="radio",ih=e=>e instanceof RegExp;const Dw={value:!1,isValid:!1},Cw={value:!0,isValid:!0};var pA=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&&!Wt(e[0].attributes.value)?Wt(e[0].value)||e[0].value===""?Cw:{value:e[0].value,isValid:!0}:Cw:Dw}return Dw};const Ew={isValid:!1,value:null};var mA=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Ew):Ew;function Sw(e,t,n="validate"){if(Fd(e)||Array.isArray(e)&&e.every(Fd)||wr(e)&&!e)return{type:n,message:Fd(e)?e:"",ref:t}}var _s=e=>Gt(e)&&!ih(e)?e:{value:e,message:""},Tw=async(e,t,n,r,i,a)=>{const{ref:o,refs:u,required:l,maxLength:f,minLength:d,min:h,max:p,pattern:g,validate:y,name:$,valueAsNumber:D,mount:b}=e._f,v=Ae(n,$);if(!b||t.has($))return{};const w=u?u[0]:o,T=Z=>{i&&w.reportValidity&&(w.setCustomValidity(wr(Z)?"":Z||""),w.reportValidity())},E={},A=E1(o),M=Ic(o),S=A||M,z=(D||C1(o))&&Wt(o.value)&&Wt(v)||rh(o)&&o.value===""||v===""||Array.isArray(v)&&!v.length,j=hA.bind(null,$,r,E),O=(Z,R,V,W=qi.maxLength,L=qi.minLength)=>{const k=Z?R:V;E[$]={type:Z?W:L,message:k,ref:o,...j(Z?W:L,k)}};if(a?!Array.isArray(v)||!v.length:l&&(!S&&(z||Rn(v))||wr(v)&&!v||M&&!pA(u).isValid||A&&!mA(u).isValid)){const{value:Z,message:R}=Fd(l)?{value:!!l,message:l}:_s(l);if(Z&&(E[$]={type:qi.required,message:R,ref:w,...j(qi.required,R)},!r))return T(R),E}if(!z&&(!Rn(h)||!Rn(p))){let Z,R;const V=_s(p),W=_s(h);if(!Rn(v)&&!isNaN(v)){const L=o.valueAsNumber||v&&+v;Rn(V.value)||(Z=L>V.value),Rn(W.value)||(R=L<W.value)}else{const L=o.valueAsDate||new Date(v),k=U=>new Date(new Date().toDateString()+" "+U),_=o.type=="time",H=o.type=="week";vi(V.value)&&v&&(Z=_?k(v)>k(V.value):H?v>V.value:L>new Date(V.value)),vi(W.value)&&v&&(R=_?k(v)<k(W.value):H?v<W.value:L<new Date(W.value))}if((Z||R)&&(O(!!Z,V.message,W.message,qi.max,qi.min),!r))return T(E[$].message),E}if((f||d)&&!z&&(vi(v)||a&&Array.isArray(v))){const Z=_s(f),R=_s(d),V=!Rn(Z.value)&&v.length>+Z.value,W=!Rn(R.value)&&v.length<+R.value;if((V||W)&&(O(V,Z.message,R.message),!r))return T(E[$].message),E}if(g&&!z&&vi(v)){const{value:Z,message:R}=_s(g);if(ih(Z)&&!v.match(Z)&&(E[$]={type:qi.pattern,message:R,ref:o,...j(qi.pattern,R)},!r))return T(R),E}if(y){if(gi(y)){const Z=await y(v,n),R=Sw(Z,w);if(R&&(E[$]={...R,...j(qi.validate,R.message)},!r))return T(R.message),E}else if(Gt(y)){let Z={};for(const R in y){if(!Un(Z)&&!r)break;const V=Sw(await y[R](v,n),w,R);V&&(Z={...V,...j(R,V.message)},T(V.message),r&&(E[$]=Z))}if(!Un(Z)&&(E[$]={ref:w,...Z},!r))return E}}return T(!0),E};function PU(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Wt(e)?r++:e[t[r++]];return e}function _U(e){for(const t in e)if(e.hasOwnProperty(t)&&!Wt(e[t]))return!1;return!0}function an(e,t){const n=Array.isArray(t)?t:w1(t)?[t]:oA(t),r=n.length===1?e:PU(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(Gt(r)&&Un(r)||Array.isArray(r)&&_U(r))&&an(e,n.slice(0,-1)),e}var ug=()=>{let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}},Ub=e=>Rn(e)||!rA(e);function Fa(e,t){if(Ub(e)||Ub(t))return e===t;if(To(e)&&To(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 a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const o=t[i];if(To(a)&&To(o)||Gt(a)&&Gt(o)||Array.isArray(a)&&Array.isArray(o)?!Fa(a,o):a!==o)return!1}}return!0}var gA=e=>e.type==="select-multiple",RU=e=>E1(e)||Ic(e),lg=e=>rh(e)&&e.isConnected,yA=e=>{for(const t in e)if(gi(e[t]))return!0;return!1};function ah(e,t={}){const n=Array.isArray(e);if(Gt(e)||n)for(const r in e)Array.isArray(e[r])||Gt(e[r])&&!yA(e[r])?(t[r]=Array.isArray(e[r])?[]:{},ah(e[r],t[r])):Rn(e[r])||(t[r]=!0);return t}function vA(e,t,n){const r=Array.isArray(e);if(Gt(e)||r)for(const i in e)Array.isArray(e[i])||Gt(e[i])&&!yA(e[i])?Wt(t)||Ub(n[i])?n[i]=Array.isArray(e[i])?ah(e[i],[]):{...ah(e[i])}:vA(e[i],Rn(t)?{}:t[i],n[i]):n[i]=!Fa(e[i],t[i]);return n}var Tl=(e,t)=>vA(e,t,ah(t)),bA=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Wt(e)?e:t?e===""?NaN:e&&+e:n&&vi(e)?new Date(e):r?r(e):e;function cg(e){const t=e.ref;return C1(t)?t.files:E1(t)?mA(e.refs).value:gA(t)?[...t.selectedOptions].map(({value:n})=>n):Ic(t)?pA(e.refs).value:bA(Wt(t.value)?e.ref.value:t.value,e)}var OU=(e,t,n,r)=>{const i={};for(const a of e){const o=Ae(t,a);o&>(i,a,o._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Al=e=>Wt(e)?e:ih(e)?e.source:Gt(e)?ih(e.value)?e.value.source:e.value:e;const Aw="AsyncFunction";var MU=e=>!!e&&!!e.validate&&!!(gi(e.validate)&&e.validate.constructor.name===Aw||Gt(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===Aw)),FU=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Pw(e,t,n){const r=Ae(e,n);if(r||w1(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),o=Ae(t,a),u=Ae(e,a);if(o&&!Array.isArray(o)&&n!==a)return{name:n};if(u&&u.type)return{name:a,error:u};i.pop()}return{name:n}}var kU=(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,IU=(e,t)=>!Qh(Ae(e,t)).length&&an(e,t);const BU={mode:Kr.onSubmit,reValidateMode:Kr.onChange,shouldFocusError:!0};function LU(e={}){let t={...BU,...e},n={submitCount:0,isDirty:!1,isLoading:gi(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=Gt(t.defaultValues)||Gt(t.values)?Kn(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:Kn(i),o={action:!1,mount:!1,watch:!1},u={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,f=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:ug(),array:ug(),state:ug()},p=xw(t.mode),g=xw(t.reValidateMode),y=t.criteriaMode===Kr.all,$=G=>Q=>{clearTimeout(f),f=setTimeout(G,Q)},D=async G=>{if(!t.disabled&&(d.isValid||G)){const Q=t.resolver?Un((await S()).errors):await j(r,!0);Q!==n.isValid&&h.state.next({isValid:Q})}},b=(G,Q)=>{!t.disabled&&(d.isValidating||d.validatingFields)&&((G||Array.from(u.mount)).forEach(re=>{re&&(Q?gt(n.validatingFields,re,Q):an(n.validatingFields,re))}),h.state.next({validatingFields:n.validatingFields,isValidating:!Un(n.validatingFields)}))},v=(G,Q=[],re,ve,Se=!0,Ce=!0)=>{if(ve&&re&&!t.disabled){if(o.action=!0,Ce&&Array.isArray(Ae(r,G))){const Fe=re(Ae(r,G),ve.argA,ve.argB);Se&>(r,G,Fe)}if(Ce&&Array.isArray(Ae(n.errors,G))){const Fe=re(Ae(n.errors,G),ve.argA,ve.argB);Se&>(n.errors,G,Fe),IU(n.errors,G)}if(d.touchedFields&&Ce&&Array.isArray(Ae(n.touchedFields,G))){const Fe=re(Ae(n.touchedFields,G),ve.argA,ve.argB);Se&>(n.touchedFields,G,Fe)}d.dirtyFields&&(n.dirtyFields=Tl(i,a)),h.state.next({name:G,isDirty:Z(G,Q),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else gt(a,G,Q)},w=(G,Q)=>{gt(n.errors,G,Q),h.state.next({errors:n.errors})},T=G=>{n.errors=G,h.state.next({errors:n.errors,isValid:!1})},E=(G,Q,re,ve)=>{const Se=Ae(r,G);if(Se){const Ce=Ae(a,G,Wt(re)?Ae(i,G):re);Wt(Ce)||ve&&ve.defaultChecked||Q?gt(a,G,Q?Ce:cg(Se._f)):W(G,Ce),o.mount&&D()}},A=(G,Q,re,ve,Se)=>{let Ce=!1,Fe=!1;const Ne={name:G};if(!t.disabled){const _t=!!(Ae(r,G)&&Ae(r,G)._f&&Ae(r,G)._f.disabled);if(!re||ve){d.isDirty&&(Fe=n.isDirty,n.isDirty=Ne.isDirty=Z(),Ce=Fe!==Ne.isDirty);const ut=_t||Fa(Ae(i,G),Q);Fe=!!(!_t&&Ae(n.dirtyFields,G)),ut||_t?an(n.dirtyFields,G):gt(n.dirtyFields,G,!0),Ne.dirtyFields=n.dirtyFields,Ce=Ce||d.dirtyFields&&Fe!==!ut}if(re){const ut=Ae(n.touchedFields,G);ut||(gt(n.touchedFields,G,re),Ne.touchedFields=n.touchedFields,Ce=Ce||d.touchedFields&&ut!==re)}Ce&&Se&&h.state.next(Ne)}return Ce?Ne:{}},M=(G,Q,re,ve)=>{const Se=Ae(n.errors,G),Ce=d.isValid&&wr(Q)&&n.isValid!==Q;if(t.delayError&&re?(l=$(()=>w(G,re)),l(t.delayError)):(clearTimeout(f),l=null,re?gt(n.errors,G,re):an(n.errors,G)),(re?!Fa(Se,re):Se)||!Un(ve)||Ce){const Fe={...ve,...Ce&&wr(Q)?{isValid:Q}:{},errors:n.errors,name:G};n={...n,...Fe},h.state.next(Fe)}},S=async G=>{b(G,!0);const Q=await t.resolver(a,t.context,OU(G||u.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return b(G),Q},z=async G=>{const{errors:Q}=await S(G);if(G)for(const re of G){const ve=Ae(Q,re);ve?gt(n.errors,re,ve):an(n.errors,re)}else n.errors=Q;return Q},j=async(G,Q,re={valid:!0})=>{for(const ve in G){const Se=G[ve];if(Se){const{_f:Ce,...Fe}=Se;if(Ce){const Ne=u.array.has(Ce.name),_t=Se._f&&MU(Se._f);_t&&d.validatingFields&&b([ve],!0);const ut=await Tw(Se,u.disabled,a,y,t.shouldUseNativeValidation&&!Q,Ne);if(_t&&d.validatingFields&&b([ve]),ut[Ce.name]&&(re.valid=!1,Q))break;!Q&&(Ae(ut,Ce.name)?Ne?AU(n.errors,ut,Ce.name):gt(n.errors,Ce.name,ut[Ce.name]):an(n.errors,Ce.name))}!Un(Fe)&&await j(Fe,Q,re)}}return re.valid},O=()=>{for(const G of u.unMount){const Q=Ae(r,G);Q&&(Q._f.refs?Q._f.refs.every(re=>!lg(re)):!lg(Q._f.ref))&&De(G)}u.unMount=new Set},Z=(G,Q)=>!t.disabled&&(G&&Q&>(a,G,Q),!Fa(N(),i)),R=(G,Q,re)=>fA(G,u,{...o.mount?a:Wt(Q)?i:vi(G)?{[G]:Q}:Q},re,Q),V=G=>Qh(Ae(o.mount?a:i,G,t.shouldUnregister?Ae(i,G,[]):[])),W=(G,Q,re={})=>{const ve=Ae(r,G);let Se=Q;if(ve){const Ce=ve._f;Ce&&(!Ce.disabled&>(a,G,bA(Q,Ce)),Se=rh(Ce.ref)&&Rn(Q)?"":Q,gA(Ce.ref)?[...Ce.ref.options].forEach(Fe=>Fe.selected=Se.includes(Fe.value)):Ce.refs?Ic(Ce.ref)?Ce.refs.length>1?Ce.refs.forEach(Fe=>(!Fe.defaultChecked||!Fe.disabled)&&(Fe.checked=Array.isArray(Se)?!!Se.find(Ne=>Ne===Fe.value):Se===Fe.value)):Ce.refs[0]&&(Ce.refs[0].checked=!!Se):Ce.refs.forEach(Fe=>Fe.checked=Fe.value===Se):C1(Ce.ref)?Ce.ref.value="":(Ce.ref.value=Se,Ce.ref.type||h.values.next({name:G,values:{...a}})))}(re.shouldDirty||re.shouldTouch)&&A(G,Se,re.shouldTouch,re.shouldDirty,!0),re.shouldValidate&&U(G)},L=(G,Q,re)=>{for(const ve in Q){const Se=Q[ve],Ce=`${G}.${ve}`,Fe=Ae(r,Ce);(u.array.has(G)||Gt(Se)||Fe&&!Fe._f)&&!To(Se)?L(Ce,Se,re):W(Ce,Se,re)}},k=(G,Q,re={})=>{const ve=Ae(r,G),Se=u.array.has(G),Ce=Kn(Q);gt(a,G,Ce),Se?(h.array.next({name:G,values:{...a}}),(d.isDirty||d.dirtyFields)&&re.shouldDirty&&h.state.next({name:G,dirtyFields:Tl(i,a),isDirty:Z(G,Ce)})):ve&&!ve._f&&!Rn(Ce)?L(G,Ce,re):W(G,Ce,re),ww(G,u)&&h.state.next({...n}),h.values.next({name:o.mount?G:void 0,values:{...a}})},_=async G=>{o.mount=!0;const Q=G.target;let re=Q.name,ve=!0;const Se=Ae(r,re),Ce=()=>Q.type?cg(Se._f):iA(G),Fe=Ne=>{ve=Number.isNaN(Ne)||To(Ne)&&isNaN(Ne.getTime())||Fa(Ne,Ae(a,re,Ne))};if(Se){let Ne,_t;const ut=Ce(),Zt=G.type===nh.BLUR||G.type===nh.FOCUS_OUT,Xr=!FU(Se._f)&&!t.resolver&&!Ae(n.errors,re)&&!Se._f.deps||kU(Zt,Ae(n.touchedFields,re),n.isSubmitted,g,p),Rr=ww(re,u,Zt);gt(a,re,ut),Zt?(Se._f.onBlur&&Se._f.onBlur(G),l&&l(0)):Se._f.onChange&&Se._f.onChange(G);const mn=A(re,ut,Zt,!1),Qr=!Un(mn)||Rr;if(!Zt&&h.values.next({name:re,type:G.type,values:{...a}}),Xr)return d.isValid&&(t.mode==="onBlur"&&Zt?D():Zt||D()),Qr&&h.state.next({name:re,...Rr?{}:mn});if(!Zt&&Rr&&h.state.next({...n}),t.resolver){const{errors:ei}=await S([re]);if(Fe(ut),ve){const ti=Pw(n.errors,r,re),Or=Pw(ei,r,ti.name||re);Ne=Or.error,re=Or.name,_t=Un(ei)}}else b([re],!0),Ne=(await Tw(Se,u.disabled,a,y,t.shouldUseNativeValidation))[re],b([re]),Fe(ut),ve&&(Ne?_t=!1:d.isValid&&(_t=await j(r,!0)));ve&&(Se._f.deps&&U(Se._f.deps),M(re,_t,Ne,mn))}},H=(G,Q)=>{if(Ae(n.errors,Q)&&G.focus)return G.focus(),1},U=async(G,Q={})=>{let re,ve;const Se=nc(G);if(t.resolver){const Ce=await z(Wt(G)?G:Se);re=Un(Ce),ve=G?!Se.some(Fe=>Ae(Ce,Fe)):re}else G?(ve=(await Promise.all(Se.map(async Ce=>{const Fe=Ae(r,Ce);return await j(Fe&&Fe._f?{[Ce]:Fe}:Fe)}))).every(Boolean),!(!ve&&!n.isValid)&&D()):ve=re=await j(r);return h.state.next({...!vi(G)||d.isValid&&re!==n.isValid?{}:{name:G},...t.resolver||!G?{isValid:re}:{},errors:n.errors}),Q.shouldFocus&&!ve&&rc(r,H,G?Se:u.mount),ve},N=G=>{const Q={...o.mount?a:i};return Wt(G)?Q:vi(G)?Ae(Q,G):G.map(re=>Ae(Q,re))},ne=(G,Q)=>({invalid:!!Ae((Q||n).errors,G),isDirty:!!Ae((Q||n).dirtyFields,G),error:Ae((Q||n).errors,G),isValidating:!!Ae(n.validatingFields,G),isTouched:!!Ae((Q||n).touchedFields,G)}),ie=G=>{G&&nc(G).forEach(Q=>an(n.errors,Q)),h.state.next({errors:G?n.errors:{}})},ce=(G,Q,re)=>{const ve=(Ae(r,G,{_f:{}})._f||{}).ref,Se=Ae(n.errors,G)||{},{ref:Ce,message:Fe,type:Ne,..._t}=Se;gt(n.errors,G,{..._t,...Q,ref:ve}),h.state.next({name:G,errors:n.errors,isValid:!1}),re&&re.shouldFocus&&ve&&ve.focus&&ve.focus()},xe=(G,Q)=>gi(G)?h.values.subscribe({next:re=>G(R(void 0,Q),re)}):R(G,Q,!0),De=(G,Q={})=>{for(const re of G?nc(G):u.mount)u.mount.delete(re),u.array.delete(re),Q.keepValue||(an(r,re),an(a,re)),!Q.keepError&&an(n.errors,re),!Q.keepDirty&&an(n.dirtyFields,re),!Q.keepTouched&&an(n.touchedFields,re),!Q.keepIsValidating&&an(n.validatingFields,re),!t.shouldUnregister&&!Q.keepDefaultValue&&an(i,re);h.values.next({values:{...a}}),h.state.next({...n,...Q.keepDirty?{isDirty:Z()}:{}}),!Q.keepIsValid&&D()},Ee=({disabled:G,name:Q,field:re,fields:ve})=>{(wr(G)&&o.mount||G||u.disabled.has(Q))&&(G?u.disabled.add(Q):u.disabled.delete(Q),A(Q,cg(re?re._f:Ae(ve,Q)._f),!1,!1,!0))},J=(G,Q={})=>{let re=Ae(r,G);const ve=wr(Q.disabled)||wr(t.disabled);return gt(r,G,{...re||{},_f:{...re&&re._f?re._f:{ref:{name:G}},name:G,mount:!0,...Q}}),u.mount.add(G),re?Ee({field:re,disabled:wr(Q.disabled)?Q.disabled:t.disabled,name:G}):E(G,!0,Q.value),{...ve?{disabled:Q.disabled||t.disabled}:{},...t.progressive?{required:!!Q.required,min:Al(Q.min),max:Al(Q.max),minLength:Al(Q.minLength),maxLength:Al(Q.maxLength),pattern:Al(Q.pattern)}:{},name:G,onChange:_,onBlur:_,ref:Se=>{if(Se){J(G,Q),re=Ae(r,G);const Ce=Wt(Se.value)&&Se.querySelectorAll&&Se.querySelectorAll("input,select,textarea")[0]||Se,Fe=RU(Ce),Ne=re._f.refs||[];if(Fe?Ne.find(_t=>_t===Ce):Ce===re._f.ref)return;gt(r,G,{_f:{...re._f,...Fe?{refs:[...Ne.filter(lg),Ce,...Array.isArray(Ae(i,G))?[{}]:[]],ref:{type:Ce.type,name:G}}:{ref:Ce}}}),E(G,!1,void 0,Ce)}else re=Ae(r,G,{}),re._f&&(re._f.mount=!1),(t.shouldUnregister||Q.shouldUnregister)&&!(aA(u.array,G)&&o.action)&&u.unMount.add(G)}}},ye=()=>t.shouldFocusError&&rc(r,H,u.mount),we=G=>{wr(G)&&(h.state.next({disabled:G}),rc(r,(Q,re)=>{const ve=Ae(r,re);ve&&(Q.disabled=ve._f.disabled||G,Array.isArray(ve._f.refs)&&ve._f.refs.forEach(Se=>{Se.disabled=ve._f.disabled||G}))},0,!1))},me=(G,Q)=>async re=>{let ve;re&&(re.preventDefault&&re.preventDefault(),re.persist&&re.persist());let Se=Kn(a);if(u.disabled.size)for(const Ce of u.disabled)gt(Se,Ce,void 0);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:Ce,values:Fe}=await S();n.errors=Ce,Se=Fe}else await j(r);if(an(n.errors,"root"),Un(n.errors)){h.state.next({errors:{}});try{await G(Se,re)}catch(Ce){ve=Ce}}else Q&&await Q({...n.errors},re),ye(),setTimeout(ye);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Un(n.errors)&&!ve,submitCount:n.submitCount+1,errors:n.errors}),ve)throw ve},ue=(G,Q={})=>{Ae(r,G)&&(Wt(Q.defaultValue)?k(G,Kn(Ae(i,G))):(k(G,Q.defaultValue),gt(i,G,Kn(Q.defaultValue))),Q.keepTouched||an(n.touchedFields,G),Q.keepDirty||(an(n.dirtyFields,G),n.isDirty=Q.defaultValue?Z(G,Kn(Ae(i,G))):Z()),Q.keepError||(an(n.errors,G),d.isValid&&D()),h.state.next({...n}))},Le=(G,Q={})=>{const re=G?Kn(G):i,ve=Kn(re),Se=Un(G),Ce=Se?i:ve;if(Q.keepDefaultValues||(i=re),!Q.keepValues){if(Q.keepDirtyValues){const Fe=new Set([...u.mount,...Object.keys(Tl(i,a))]);for(const Ne of Array.from(Fe))Ae(n.dirtyFields,Ne)?gt(Ce,Ne,Ae(a,Ne)):k(Ne,Ae(Ce,Ne))}else{if(x1&&Wt(G))for(const Fe of u.mount){const Ne=Ae(r,Fe);if(Ne&&Ne._f){const _t=Array.isArray(Ne._f.refs)?Ne._f.refs[0]:Ne._f.ref;if(rh(_t)){const ut=_t.closest("form");if(ut){ut.reset();break}}}}r={}}a=t.shouldUnregister?Q.keepDefaultValues?Kn(i):{}:Kn(Ce),h.array.next({values:{...Ce}}),h.values.next({values:{...Ce}})}u={mount:Q.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!d.isValid||!!Q.keepIsValid||!!Q.keepDirtyValues,o.watch=!!t.shouldUnregister,h.state.next({submitCount:Q.keepSubmitCount?n.submitCount:0,isDirty:Se?!1:Q.keepDirty?n.isDirty:!!(Q.keepDefaultValues&&!Fa(G,i)),isSubmitted:Q.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Se?{}:Q.keepDirtyValues?Q.keepDefaultValues&&a?Tl(i,a):n.dirtyFields:Q.keepDefaultValues&&G?Tl(i,G):Q.keepDirty?n.dirtyFields:{},touchedFields:Q.keepTouched?n.touchedFields:{},errors:Q.keepErrors?n.errors:{},isSubmitSuccessful:Q.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},nt=(G,Q)=>Le(gi(G)?G(a):G,Q);return{control:{register:J,unregister:De,getFieldState:ne,handleSubmit:me,setError:ce,_executeSchema:S,_getWatch:R,_getDirty:Z,_updateValid:D,_removeUnmounted:O,_updateFieldArray:v,_updateDisabledField:Ee,_getFieldArray:V,_reset:Le,_resetDefaultValues:()=>gi(t.defaultValues)&&t.defaultValues().then(G=>{nt(G,t.resetOptions),h.state.next({isLoading:!1})}),_updateFormState:G=>{n={...n,...G}},_disableForm:we,_subjects:h,_proxyFormState:d,_setErrors:T,get _fields(){return r},get _formValues(){return a},get _state(){return o},set _state(G){o=G},get _defaultValues(){return i},get _names(){return u},set _names(G){u=G},get _formState(){return n},set _formState(G){n=G},get _options(){return t},set _options(G){t={...t,...G}}},trigger:U,register:J,handleSubmit:me,watch:xe,setValue:k,getValues:N,reset:nt,resetField:ue,clearErrors:ie,unregister:De,setError:ce,setFocus:(G,Q={})=>{const re=Ae(r,G),ve=re&&re._f;if(ve){const Se=ve.refs?ve.refs[0]:ve.ref;Se.focus&&(Se.focus(),Q.shouldSelect&&gi(Se.select)&&Se.select())}},getFieldState:ne}}function VU(e={}){const t=C.useRef(void 0),n=C.useRef(void 0),[r,i]=C.useState({isDirty:!1,isValidating:!1,isLoading:gi(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:gi(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...LU(e),formState:r});const a=t.current.control;return a._options=e,D1({subject:a._subjects.state,next:o=>{lA(o,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),C.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),C.useEffect(()=>{if(a._proxyFormState.isDirty){const o=a._getDirty();o!==r.isDirty&&a._subjects.state.next({isDirty:o})}},[a,r.isDirty]),C.useEffect(()=>{e.values&&!Fa(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values,i(o=>({...o}))):a._resetDefaultValues()},[e.values,a]),C.useEffect(()=>{e.errors&&a._setErrors(e.errors)},[e.errors,a]),C.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),C.useEffect(()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})},[e.shouldUnregister,a]),t.current.formState=uA(r,a),t.current}const Ct=typeof document<"u"?C.useLayoutEffect:()=>{};function Ht(e){const t=C.useRef(null);return Ct(()=>{t.current=e},[e]),C.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function NU(e){let[t,n]=C.useState(e),r=C.useRef(null),i=Ht(()=>{if(!r.current)return;let o=r.current.next();if(o.done){r.current=null;return}t===o.value?i():n(o.value)});Ct(()=>{r.current&&i()});let a=Ht(o=>{r.current=o(t),i()});return[t,a]}const oh={prefix:String(Math.round(Math.random()*1e10)),current:0},$A=C.createContext(oh),jU=C.createContext(!1);let KU=!!(typeof window<"u"&&window.document&&window.document.createElement),fg=new WeakMap;function UU(e=!1){let t=C.useContext($A),n=C.useRef(null);if(n.current===null&&!e){var r,i;let a=(i=C.__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(a){let o=fg.get(a);o==null?fg.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==o.state&&(t.current=o.id,fg.delete(a))}n.current=++t.current}return n.current}function zU(e){let t=C.useContext($A);t===oh&&!KU&&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=UU(!!e),r=t===oh&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function qU(e){let t=C.useId(),[n]=C.useState(S1()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${oh.prefix}`;return e||`${r}-${t}`}const WU=typeof C.useId=="function"?qU:zU;function HU(){return!1}function GU(){return!0}function YU(e){return()=>{}}function S1(){return typeof C.useSyncExternalStore=="function"?C.useSyncExternalStore(YU,HU,GU):C.useContext(jU)}let ZU=!!(typeof window<"u"&&window.document&&window.document.createElement),Oa=new Map;function Gn(e){let[t,n]=C.useState(e),r=C.useRef(null),i=WU(t),a=C.useCallback(o=>{r.current=o},[]);return ZU&&(Oa.has(i)&&!Oa.get(i).includes(a)?Oa.set(i,[...Oa.get(i),a]):Oa.set(i,[a])),Ct(()=>{let o=i;return()=>{Oa.delete(o)}},[i]),C.useEffect(()=>{let o=r.current;o&&(r.current=null,n(o))}),i}function JU(e,t){if(e===t)return e;let n=Oa.get(e);if(n)return n.forEach(i=>i(t)),t;let r=Oa.get(t);return r?(r.forEach(i=>i(e)),e):t}function lu(e=[]){let t=Gn(),[n,r]=NU(t),i=C.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Ct(i,[t,i,...e]),n}function zo(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const St=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},qa=e=>e&&"window"in e&&e.window===e?e:St(e).defaultView||window;function xA(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=xA(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function XU(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=xA(e))&&(r&&(r+=" "),r+=t);return r}function ft(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let a=t[i],o=r[i];typeof a=="function"&&typeof o=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=zo(a,o):(i==="className"||i==="UNSAFE_className")&&typeof a=="string"&&typeof o=="string"?t[i]=XU(a,o):i==="id"&&a&&o?t.id=JU(a,o):t[i]=o!==void 0?o:a}}return t}const QU=new Set(["id"]),ez=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),tz=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),nz=/^(data-.*)$/;function ua(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,a={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(QU.has(o)||n&&ez.has(o)||r&&tz.has(o)||i!=null&&i.has(o)||nz.test(o))&&(a[o]=e[o]);return a}function Ur(e){if(rz())e.focus({preventScroll:!0});else{let t=iz(e);e.focus(),az(t)}}let sd=null;function rz(){if(sd==null){sd=!1;try{document.createElement("div").focus({get preventScroll(){return sd=!0,!0}})}catch{}}return sd}function iz(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 az(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function tp(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 T1(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 la(e){let t=null;return()=>(t==null&&(t=e()),t)}const ia=la(function(){return T1(/^Mac/i)}),oz=la(function(){return T1(/^iPhone/i)}),wA=la(function(){return T1(/^iPad/i)||ia()&&navigator.maxTouchPoints>1}),Bc=la(function(){return oz()||wA()}),kd=la(function(){return ia()||Bc()}),A1=la(function(){return tp(/AppleWebKit/i)&&!DA()}),DA=la(function(){return tp(/Chrome/i)}),P1=la(function(){return tp(/Android/i)}),sz=la(function(){return tp(/Firefox/i)}),uz=C.createContext({isNative:!0,open:cz,useHref:e=>e});function np(){return C.useContext(uz)}function qo(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:o,altKey:u,shiftKey:l}=t;sz()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(ia()?a=!0:o=!0);let f=A1()&&ia()&&!wA()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:o,altKey:u,shiftKey:l}):new MouseEvent("click",{metaKey:a,ctrlKey:o,altKey:u,shiftKey:l,bubbles:!0,cancelable:!0});qo.isOpening=n,Ur(e),e.dispatchEvent(f),qo.isOpening=!1}qo.isOpening=!1;function lz(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 cz(e,t){lz(e,n=>qo(n,t))}function fz(e){let t=np();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 Fs=new Map,zb=new Set;function _w(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=Fs.get(r.target);i||(i=new Set,Fs.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=Fs.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),Fs.delete(r.target)),Fs.size===0)){for(let a of zb)a();zb.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?_w():document.addEventListener("DOMContentLoaded",_w));function CA(e){requestAnimationFrame(()=>{Fs.size===0?e():zb.add(e)})}function Au(){let e=C.useRef(new Map),t=C.useCallback((i,a,o,u)=>{let l=u!=null&&u.once?(...f)=>{e.current.delete(o),o(...f)}:o;e.current.set(o,{type:a,eventTarget:i,fn:l,options:u}),i.addEventListener(a,l,u)},[]),n=C.useCallback((i,a,o,u)=>{var l;let f=((l=e.current.get(o))===null||l===void 0?void 0:l.fn)||o;i.removeEventListener(a,f,u),e.current.delete(o)},[]),r=C.useCallback(()=>{e.current.forEach((i,a)=>{n(i.eventTarget,i.type,a,i.options)})},[n]);return C.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=Gn(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 Rw(e,t){const n=C.useRef(!0),r=C.useRef(null);C.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),C.useEffect(()=>{n.current?n.current=!1:(!r.current||t.some((i,a)=>!Object.is(i,r[a])))&&e(),r.current=t},t)}function Ow(e,t){const n=C.useRef(!0),r=C.useRef(null);Ct(()=>(n.current=!0,()=>{n.current=!1}),[]),Ct(()=>{n.current?n.current=!1:(!r.current||t.some((i,a)=>!Object.is(i,r[a])))&&e(),r.current=t},t)}function dz(){return typeof window.ResizeObserver<"u"}function Mw(e){const{ref:t,box:n,onResize:r}=e;C.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(dz()){const a=new window.ResizeObserver(o=>{o.length&&r()});return a.observe(i,{box:n}),()=>{i&&a.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function EA(e,t){Ct(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function mc(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 rp(e,t){let n=e;for(mc(n,t)&&(n=n.parentElement);n&&!mc(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function hz(e,t){const n=[];for(;e&&e!==document.documentElement;)mc(e,t)&&n.push(e),e=e.parentElement;return n}let pz=0;const dg=new Map;function Lc(e){let[t,n]=C.useState();return Ct(()=>{if(!e)return;let r=dg.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${pz++}`;n(i);let a=document.createElement("div");a.id=i,a.style.display="none",a.textContent=e,document.body.appendChild(a),r={refCount:0,element:a},dg.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),dg.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function bi(e,t,n,r){let i=Ht(n),a=n==null;C.useEffect(()=>{if(a||!e.current)return;let o=e.current;return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[e,t,r,a,i])}function SA(e,t){let n=Fw(e,t,"left"),r=Fw(e,t,"top"),i=t.offsetWidth,a=t.offsetHeight,o=e.scrollLeft,u=e.scrollTop,{borderTopWidth:l,borderLeftWidth:f,scrollPaddingTop:d,scrollPaddingRight:h,scrollPaddingBottom:p,scrollPaddingLeft:g}=getComputedStyle(e),y=o+parseInt(f,10),$=u+parseInt(l,10),D=y+e.clientWidth,b=$+e.clientHeight,v=parseInt(d,10)||0,w=parseInt(p,10)||0,T=parseInt(h,10)||0,E=parseInt(g,10)||0;n<=o+E?o=n-parseInt(f,10)-E:n+i>D-T&&(o+=n+i-D+T),r<=$+v?u=r-parseInt(l,10)-v:r+a>b-w&&(u+=r+a-b+w),e.scrollLeft=o,e.scrollTop=u}function Fw(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 sh(e,t){if(e&&document.contains(e)){let o=document.scrollingElement||document.documentElement;if(window.getComputedStyle(o).overflow==="hidden"){let l=hz(e);for(let f of l)SA(f,e)}else{var n;let{left:l,top:f}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:d,top:h}=e.getBoundingClientRect();if(Math.abs(l-d)>1||Math.abs(f-h)>1){var r,i,a;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(a=e.scrollIntoView)===null||a===void 0||a.call(e,{block:"nearest"})}}}}function qb(e){return e.mozInputSource===0&&e.isTrusted?!0:P1()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function mz(e){return!P1()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function TA(e,t){let n=C.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function _1(e,t,n){let r=C.useRef(t),i=Ht(()=>{n&&n(r.current)});C.useEffect(()=>{var a;let o=e==null||(a=e.current)===null||a===void 0?void 0:a.form;return o==null||o.addEventListener("reset",i),()=>{o==null||o.removeEventListener("reset",i)}},[e,i])}const gz="react-aria-clear-focus",yz="react-aria-focus",AA="react-aria-update-activedescendant";function ks(e){return ia()?e.metaKey:e.ctrlKey}function rr(e,t,n){let[r,i]=C.useState(e||t),a=C.useRef(e!==void 0),o=e!==void 0;C.useEffect(()=>{let f=a.current;f!==o&&console.warn(`WARN: A component changed from ${f?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),a.current=o},[o]);let u=o?e:r,l=C.useCallback((f,...d)=>{let h=(p,...g)=>{n&&(Object.is(u,p)||n(p,...g)),o||(u=p)};typeof f=="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,...y)=>{let $=f(o?u:g,...y);return h($,...d),o?g:$})):(o||i(f),h(f,...d))},[o,u,n]);return[u,l]}function fu(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function ud(e,t){let n=e,r=t.toString(),i=r.indexOf("."),a=i>=0?r.length-i:0;if(a>0){let o=Math.pow(10,a);n=Math.round(n*o)/o}return n}function Pl(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,a=ud(Math.abs(i)*2>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return isNaN(t)?!isNaN(n)&&a>n&&(a=Math.floor(ud(n/r,r))*r):a<t?a=t:!isNaN(n)&&a>n&&(a=t+Math.floor(ud((n-t)/r,r))*r),a=ud(a,r),a}let Bs="default",Wb="",Id=new WeakMap;function Hb(e){if(Bc()){if(Bs==="default"){const t=St(e);Wb=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Bs="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(Id.set(e,e.style.userSelect),e.style.userSelect="none")}function zl(e){if(Bc()){if(Bs!=="disabled")return;Bs="restoring",setTimeout(()=>{CA(()=>{if(Bs==="restoring"){const t=St(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Wb||""),Wb="",Bs="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Id.has(e)){let t=Id.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Id.delete(e)}}const R1=C.createContext({register:()=>{}});R1.displayName="PressResponderContext";function vz(e,t){return t.get?t.get.call(e):t.value}function PA(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function bz(e,t){var n=PA(e,t,"get");return vz(e,n)}function $z(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Vc(e,t,n){$z(e,t),t.set(e,n)}function xz(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 kw(e,t,n){var r=PA(e,t,"set");return xz(e,r,n),n}function wz(e){let t=C.useContext(R1);if(t){let{register:n,...r}=t;e=ft(r,e),n()}return EA(t,e.ref),e}var ld=new WeakMap;class cd{continuePropagation(){kw(this,ld,!1)}get shouldStopPropagation(){return bz(this,ld)}constructor(t,n,r,i){Vc(this,ld,{writable:!0,value:void 0}),kw(this,ld,!0);var a;let o=(a=i==null?void 0:i.target)!==null&&a!==void 0?a:r.currentTarget;const u=o==null?void 0:o.getBoundingClientRect();let l,f=0,d,h=null;r.clientX!=null&&r.clientY!=null&&(d=r.clientX,h=r.clientY),u&&(d!=null&&h!=null?(l=d-u.left,f=h-u.top):(l=u.width/2,f=u.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=f}}const Iw=Symbol("linkClicked");function Nc(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,isDisabled:o,isPressed:u,preventFocusOnPress:l,shouldCancelOnPointerExit:f,allowTextSelectionOnPress:d,ref:h,...p}=wz(e),[g,y]=C.useState(!1),$=C.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:D,removeAllGlobalListeners:b}=Au(),v=Ht((S,z)=>{let j=$.current;if(o||j.didFirePressStart)return!1;let O=!0;if(j.isTriggeringEvent=!0,r){let Z=new cd("pressstart",z,S);r(Z),O=Z.shouldStopPropagation}return n&&n(!0),j.isTriggeringEvent=!1,j.didFirePressStart=!0,y(!0),O}),w=Ht((S,z,j=!0)=>{let O=$.current;if(!O.didFirePressStart)return!1;O.ignoreClickAfterPress=!0,O.didFirePressStart=!1,O.isTriggeringEvent=!0;let Z=!0;if(i){let R=new cd("pressend",z,S);i(R),Z=R.shouldStopPropagation}if(n&&n(!1),y(!1),t&&j&&!o){let R=new cd("press",z,S);t(R),Z&&(Z=R.shouldStopPropagation)}return O.isTriggeringEvent=!1,Z}),T=Ht((S,z)=>{let j=$.current;if(o)return!1;if(a){j.isTriggeringEvent=!0;let O=new cd("pressup",z,S);return a(O),j.isTriggeringEvent=!1,O.shouldStopPropagation}return!0}),E=Ht(S=>{let z=$.current;z.isPressed&&z.target&&(z.isOverTarget&&z.pointerType!=null&&w(Wi(z.target,S),z.pointerType,!1),z.isPressed=!1,z.isOverTarget=!1,z.activePointerId=null,z.pointerType=null,b(),d||zl(z.target))}),A=Ht(S=>{f&&E(S)}),M=C.useMemo(()=>{let S=$.current,z={onKeyDown(O){if(hg(O.nativeEvent,O.currentTarget)&&O.currentTarget.contains(O.target)){var Z;Lw(O.target,O.key)&&O.preventDefault();let R=!0;if(!S.isPressed&&!O.repeat){S.target=O.currentTarget,S.isPressed=!0,R=v(O,"keyboard");let V=O.currentTarget,W=L=>{hg(L,V)&&!L.repeat&&V.contains(L.target)&&S.target&&T(Wi(S.target,L),"keyboard")};D(St(O.currentTarget),"keyup",zo(W,j),!0)}R&&O.stopPropagation(),O.metaKey&&ia()&&((Z=S.metaKeyEvents)===null||Z===void 0||Z.set(O.key,O.nativeEvent))}else O.key==="Meta"&&(S.metaKeyEvents=new Map)},onClick(O){if(!(O&&!O.currentTarget.contains(O.target))&&O&&O.button===0&&!S.isTriggeringEvent&&!qo.isOpening){let Z=!0;if(o&&O.preventDefault(),!S.ignoreClickAfterPress&&!S.ignoreEmulatedMouseEvents&&!S.isPressed&&(S.pointerType==="virtual"||qb(O.nativeEvent))){!o&&!l&&Ur(O.currentTarget);let R=v(O,"virtual"),V=T(O,"virtual"),W=w(O,"virtual");Z=R&&V&&W}S.ignoreEmulatedMouseEvents=!1,S.ignoreClickAfterPress=!1,Z&&O.stopPropagation()}}},j=O=>{var Z;if(S.isPressed&&S.target&&hg(O,S.target)){var R;Lw(O.target,O.key)&&O.preventDefault();let W=O.target;w(Wi(S.target,O),"keyboard",S.target.contains(W)),b(),O.key!=="Enter"&&O1(S.target)&&S.target.contains(W)&&!O[Iw]&&(O[Iw]=!0,qo(S.target,O,!1)),S.isPressed=!1,(R=S.metaKeyEvents)===null||R===void 0||R.delete(O.key)}else if(O.key==="Meta"&&(!((Z=S.metaKeyEvents)===null||Z===void 0)&&Z.size)){var V;let W=S.metaKeyEvents;S.metaKeyEvents=void 0;for(let L of W.values())(V=S.target)===null||V===void 0||V.dispatchEvent(new KeyboardEvent("keyup",L))}};if(typeof PointerEvent<"u"){z.onPointerDown=V=>{if(V.button!==0||!V.currentTarget.contains(V.target))return;if(mz(V.nativeEvent)){S.pointerType="virtual";return}mg(V.currentTarget)&&V.preventDefault(),S.pointerType=V.pointerType;let W=!0;if(!S.isPressed){S.isPressed=!0,S.isOverTarget=!0,S.activePointerId=V.pointerId,S.target=V.currentTarget,!o&&!l&&Ur(V.currentTarget),d||Hb(S.target),W=v(V,S.pointerType);let L=V.target;"releasePointerCapture"in L&&L.releasePointerCapture(V.pointerId),D(St(V.currentTarget),"pointerup",O,!1),D(St(V.currentTarget),"pointercancel",R,!1)}W&&V.stopPropagation()},z.onMouseDown=V=>{V.currentTarget.contains(V.target)&&V.button===0&&(mg(V.currentTarget)&&V.preventDefault(),V.stopPropagation())},z.onPointerUp=V=>{!V.currentTarget.contains(V.target)||S.pointerType==="virtual"||V.button===0&&T(V,S.pointerType||V.pointerType)},z.onPointerEnter=V=>{V.pointerId===S.activePointerId&&S.target&&!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,v(Wi(S.target,V),S.pointerType))},z.onPointerLeave=V=>{V.pointerId===S.activePointerId&&S.target&&S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,w(Wi(S.target,V),S.pointerType,!1),A(V))};let O=V=>{V.pointerId===S.activePointerId&&S.isPressed&&V.button===0&&S.target&&(S.target.contains(V.target)&&S.pointerType!=null?w(Wi(S.target,V),S.pointerType):S.isOverTarget&&S.pointerType!=null&&w(Wi(S.target,V),S.pointerType,!1),S.isPressed=!1,S.isOverTarget=!1,S.activePointerId=null,S.pointerType=null,b(),d||zl(S.target),"ontouchend"in S.target&&V.pointerType!=="mouse"&&D(S.target,"touchend",Z,{once:!0}))},Z=V=>{_A(V.currentTarget)&&V.preventDefault()},R=V=>{E(V)};z.onDragStart=V=>{V.currentTarget.contains(V.target)&&E(V)}}else{z.onMouseDown=R=>{if(R.button!==0||!R.currentTarget.contains(R.target))return;if(mg(R.currentTarget)&&R.preventDefault(),S.ignoreEmulatedMouseEvents){R.stopPropagation();return}S.isPressed=!0,S.isOverTarget=!0,S.target=R.currentTarget,S.pointerType=qb(R.nativeEvent)?"virtual":"mouse",!o&&!l&&Ur(R.currentTarget),v(R,S.pointerType)&&R.stopPropagation(),D(St(R.currentTarget),"mouseup",O,!1)},z.onMouseEnter=R=>{if(!R.currentTarget.contains(R.target))return;let V=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!0,V=v(R,S.pointerType)),V&&R.stopPropagation()},z.onMouseLeave=R=>{if(!R.currentTarget.contains(R.target))return;let V=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!1,V=w(R,S.pointerType,!1),A(R)),V&&R.stopPropagation()},z.onMouseUp=R=>{R.currentTarget.contains(R.target)&&!S.ignoreEmulatedMouseEvents&&R.button===0&&T(R,S.pointerType||"mouse")};let O=R=>{if(R.button===0){if(S.isPressed=!1,b(),S.ignoreEmulatedMouseEvents){S.ignoreEmulatedMouseEvents=!1;return}S.target&&pg(R,S.target)&&S.pointerType!=null?w(Wi(S.target,R),S.pointerType):S.target&&S.isOverTarget&&S.pointerType!=null&&w(Wi(S.target,R),S.pointerType,!1),S.isOverTarget=!1}};z.onTouchStart=R=>{if(!R.currentTarget.contains(R.target))return;let V=Dz(R.nativeEvent);if(!V)return;S.activePointerId=V.identifier,S.ignoreEmulatedMouseEvents=!0,S.isOverTarget=!0,S.isPressed=!0,S.target=R.currentTarget,S.pointerType="touch",!o&&!l&&Ur(R.currentTarget),d||Hb(S.target),v(Ta(S.target,R),S.pointerType)&&R.stopPropagation(),D(qa(R.currentTarget),"scroll",Z,!0)},z.onTouchMove=R=>{if(!R.currentTarget.contains(R.target))return;if(!S.isPressed){R.stopPropagation();return}let V=Bw(R.nativeEvent,S.activePointerId),W=!0;V&&pg(V,R.currentTarget)?!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,W=v(Ta(S.target,R),S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,W=w(Ta(S.target,R),S.pointerType,!1),A(Ta(S.target,R))),W&&R.stopPropagation()},z.onTouchEnd=R=>{if(!R.currentTarget.contains(R.target))return;if(!S.isPressed){R.stopPropagation();return}let V=Bw(R.nativeEvent,S.activePointerId),W=!0;V&&pg(V,R.currentTarget)&&S.pointerType!=null?(T(Ta(S.target,R),S.pointerType),W=w(Ta(S.target,R),S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(W=w(Ta(S.target,R),S.pointerType,!1)),W&&R.stopPropagation(),S.isPressed=!1,S.activePointerId=null,S.isOverTarget=!1,S.ignoreEmulatedMouseEvents=!0,S.target&&!d&&zl(S.target),b()},z.onTouchCancel=R=>{R.currentTarget.contains(R.target)&&(R.stopPropagation(),S.isPressed&&E(Ta(S.target,R)))};let Z=R=>{S.isPressed&&R.target.contains(S.target)&&E({currentTarget:S.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};z.onDragStart=R=>{R.currentTarget.contains(R.target)&&E(R)}}return z},[D,o,l,b,d,E,A,w,v,T]);return C.useEffect(()=>()=>{var S;d||zl((S=$.current.target)!==null&&S!==void 0?S:void 0)},[d]),{isPressed:u||g,pressProps:ft(p,M)}}function O1(e){return e.tagName==="A"&&e.hasAttribute("href")}function hg(e,t){const{key:n,code:r}=e,i=t,a=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof qa(i).HTMLInputElement&&!RA(i,n)||i instanceof qa(i).HTMLTextAreaElement||i.isContentEditable)&&!((a==="link"||!a&&O1(i))&&n!=="Enter")}function Dz(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Bw(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 Ta(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 Wi(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 Cz(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 Ez(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function pg(e,t){let n=t.getBoundingClientRect(),r=Cz(e);return Ez(n,r)}function mg(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function _A(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!O1(e)}function Lw(e,t){return e instanceof HTMLInputElement?!RA(e,t):_A(e)}const Sz=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function RA(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Sz.has(e.type)}function Tz({children:e}){let t=C.useMemo(()=>({register:()=>{}}),[]);return C.createElement(R1.Provider,{value:t},e)}class Az{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 OA(e){let t=C.useRef({isFocused:!1,observer:null});Ct(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Ht(r=>{e==null||e(r)});return C.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,a=o=>{t.current.isFocused=!1,i.disabled&&n(new Az("blur",o)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var o;(o=t.current.observer)===null||o===void 0||o.disconnect();let 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 Pz(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=C.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),o=OA(a),u=C.useCallback(l=>{const f=St(l.target);l.target===l.currentTarget&&f.activeElement===l.target&&(n&&n(l),i&&i(!0),o(l))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?u:void 0,onBlur:!t&&(r||i)?a:void 0}}}let Zo=null,_z=new Set,ic=new Map,Wo=!1,Gb=!1;function ip(e,t){for(let n of _z)n(e,t)}function Rz(e){return!(e.metaKey||!ia()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function uh(e){Wo=!0,Rz(e)&&(Zo="keyboard",ip("keyboard",e))}function Dr(e){Zo="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Wo=!0,ip("pointer",e))}function MA(e){qb(e)&&(Wo=!0,Zo="virtual")}function FA(e){e.target===window||e.target===document||(!Wo&&!Gb&&(Zo="virtual",ip("virtual",e)),Wo=!1,Gb=!1)}function kA(){Wo=!1,Gb=!0}function Vw(e){if(typeof window>"u"||ic.get(qa(e)))return;const t=qa(e),n=St(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Wo=!0,r.apply(this,arguments)},n.addEventListener("keydown",uh,!0),n.addEventListener("keyup",uh,!0),n.addEventListener("click",MA,!0),t.addEventListener("focus",FA,!0),t.addEventListener("blur",kA,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Dr,!0),n.addEventListener("pointermove",Dr,!0),n.addEventListener("pointerup",Dr,!0)):(n.addEventListener("mousedown",Dr,!0),n.addEventListener("mousemove",Dr,!0),n.addEventListener("mouseup",Dr,!0)),t.addEventListener("beforeunload",()=>{IA(e)},{once:!0}),ic.set(t,{focus:r})}const IA=(e,t)=>{const n=qa(e),r=St(e);t&&r.removeEventListener("DOMContentLoaded",t),ic.has(n)&&(n.HTMLElement.prototype.focus=ic.get(n).focus,r.removeEventListener("keydown",uh,!0),r.removeEventListener("keyup",uh,!0),r.removeEventListener("click",MA,!0),n.removeEventListener("focus",FA,!0),n.removeEventListener("blur",kA,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Dr,!0),r.removeEventListener("pointermove",Dr,!0),r.removeEventListener("pointerup",Dr,!0)):(r.removeEventListener("mousedown",Dr,!0),r.removeEventListener("mousemove",Dr,!0),r.removeEventListener("mouseup",Dr,!0)),ic.delete(n))};function Oz(e){const t=St(e);let n;return t.readyState!=="loading"?Vw(e):(n=()=>{Vw(e)},t.addEventListener("DOMContentLoaded",n)),()=>IA(e,n)}typeof document<"u"&&Oz();function Nw(){return Zo!=="pointer"}function gc(){return Zo}function BA(e){Zo=e,ip(e,null)}function Pu(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=C.useRef({isFocusWithin:!1}),o=C.useCallback(f=>{a.current.isFocusWithin&&!f.currentTarget.contains(f.relatedTarget)&&(a.current.isFocusWithin=!1,n&&n(f),i&&i(!1))},[n,i,a]),u=OA(o),l=C.useCallback(f=>{!a.current.isFocusWithin&&document.activeElement===f.target&&(r&&r(f),i&&i(!0),a.current.isFocusWithin=!0,u(f))},[r,i,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:o}}}let lh=!1,gg=0;function Yb(){lh=!0,setTimeout(()=>{lh=!1},50)}function jw(e){e.pointerType==="touch"&&Yb()}function Mz(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",jw):document.addEventListener("touchend",Yb),gg++,()=>{gg--,!(gg>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",jw):document.removeEventListener("touchend",Yb))}}function Fz(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,o]=C.useState(!1),u=C.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;C.useEffect(Mz,[]);let{hoverProps:l,triggerHoverEnd:f}=C.useMemo(()=>{let d=(g,y)=>{if(u.pointerType=y,i||y==="touch"||u.isHovered||!g.currentTarget.contains(g.target))return;u.isHovered=!0;let $=g.currentTarget;u.target=$,t&&t({type:"hoverstart",target:$,pointerType:y}),n&&n(!0),o(!0)},h=(g,y)=>{if(u.pointerType="",u.target=null,y==="touch"||!u.isHovered)return;u.isHovered=!1;let $=g.currentTarget;r&&r({type:"hoverend",target:$,pointerType:y}),n&&n(!1),o(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=g=>{lh&&g.pointerType==="mouse"||d(g,g.pointerType)},p.onPointerLeave=g=>{!i&&g.currentTarget.contains(g.target)&&h(g,g.pointerType)}):(p.onTouchStart=()=>{u.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=g=>{!u.ignoreEmulatedMouseEvents&&!lh&&d(g,"mouse"),u.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=g=>{!i&&g.currentTarget.contains(g.target)&&h(g,"mouse")}),{hoverProps:p,triggerHoverEnd:h}},[t,n,r,i,u]);return C.useEffect(()=>{i&&f({currentTarget:u.target},u.pointerType)},[i]),{hoverProps:l,isHovered:a}}function kz(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,a=C.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=Ht(l=>{n&&fd(l,t)&&(i&&i(l),a.current.isPointerDown=!0)}),u=Ht(l=>{n&&n(l)});C.useEffect(()=>{let l=a.current;if(r)return;const f=t.current,d=St(f);if(typeof PointerEvent<"u"){let h=p=>{l.isPointerDown&&fd(p,t)&&u(p),l.isPointerDown=!1};return d.addEventListener("pointerdown",o,!0),d.addEventListener("pointerup",h,!0),()=>{d.removeEventListener("pointerdown",o,!0),d.removeEventListener("pointerup",h,!0)}}else{let h=g=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&fd(g,t)&&u(g),l.isPointerDown=!1},p=g=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&fd(g,t)&&u(g),l.isPointerDown=!1};return d.addEventListener("mousedown",o,!0),d.addEventListener("mouseup",h,!0),d.addEventListener("touchstart",o,!0),d.addEventListener("touchend",p,!0),()=>{d.removeEventListener("mousedown",o,!0),d.removeEventListener("mouseup",h,!0),d.removeEventListener("touchstart",o,!0),d.removeEventListener("touchend",p,!0)}}},[t,r,o,u])}function fd(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 Kw(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(r),t&&n.stopPropagation()}}function LA(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Kw(e.onKeyDown),onKeyUp:Kw(e.onKeyUp)}}}function VA(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=C.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:a,removeGlobalListener:o}=Au(),u=Ht((d,h,p,g)=>{p===0&&g===0||(i.current.didMove||(i.current.didMove=!0,t==null||t({type:"movestart",pointerType:h,shiftKey:d.shiftKey,metaKey:d.metaKey,ctrlKey:d.ctrlKey,altKey:d.altKey})),n==null||n({type:"move",pointerType:h,deltaX:p,deltaY:g,shiftKey:d.shiftKey,metaKey:d.metaKey,ctrlKey:d.ctrlKey,altKey:d.altKey}))}),l=Ht((d,h)=>{zl(),i.current.didMove&&(r==null||r({type:"moveend",pointerType:h,shiftKey:d.shiftKey,metaKey:d.metaKey,ctrlKey:d.ctrlKey,altKey:d.altKey}))});return{moveProps:C.useMemo(()=>{let d={},h=()=>{Hb(),i.current.didMove=!1};if(typeof PointerEvent>"u"){let g=b=>{if(b.button===0){var v,w,T,E;u(b,"mouse",b.pageX-((T=(v=i.current.lastPosition)===null||v===void 0?void 0:v.pageX)!==null&&T!==void 0?T:0),b.pageY-((E=(w=i.current.lastPosition)===null||w===void 0?void 0:w.pageY)!==null&&E!==void 0?E:0)),i.current.lastPosition={pageX:b.pageX,pageY:b.pageY}}},y=b=>{b.button===0&&(l(b,"mouse"),o(window,"mousemove",g,!1),o(window,"mouseup",y,!1))};d.onMouseDown=b=>{b.button===0&&(h(),b.stopPropagation(),b.preventDefault(),i.current.lastPosition={pageX:b.pageX,pageY:b.pageY},a(window,"mousemove",g,!1),a(window,"mouseup",y,!1))};let $=b=>{let v=[...b.changedTouches].findIndex(({identifier:M})=>M===i.current.id);if(v>=0){var w,T;let{pageX:M,pageY:S}=b.changedTouches[v];var E,A;u(b,"touch",M-((E=(w=i.current.lastPosition)===null||w===void 0?void 0:w.pageX)!==null&&E!==void 0?E:0),S-((A=(T=i.current.lastPosition)===null||T===void 0?void 0:T.pageY)!==null&&A!==void 0?A:0)),i.current.lastPosition={pageX:M,pageY:S}}},D=b=>{[...b.changedTouches].findIndex(({identifier:w})=>w===i.current.id)>=0&&(l(b,"touch"),i.current.id=null,o(window,"touchmove",$),o(window,"touchend",D),o(window,"touchcancel",D))};d.onTouchStart=b=>{if(b.changedTouches.length===0||i.current.id!=null)return;let{pageX:v,pageY:w,identifier:T}=b.changedTouches[0];h(),b.stopPropagation(),b.preventDefault(),i.current.lastPosition={pageX:v,pageY:w},i.current.id=T,a(window,"touchmove",$,!1),a(window,"touchend",D,!1),a(window,"touchcancel",D,!1)}}else{let g=$=>{if($.pointerId===i.current.id){var D,b;let T=$.pointerType||"mouse";var v,w;u($,T,$.pageX-((v=(D=i.current.lastPosition)===null||D===void 0?void 0:D.pageX)!==null&&v!==void 0?v:0),$.pageY-((w=(b=i.current.lastPosition)===null||b===void 0?void 0:b.pageY)!==null&&w!==void 0?w:0)),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY}}},y=$=>{if($.pointerId===i.current.id){let D=$.pointerType||"mouse";l($,D),i.current.id=null,o(window,"pointermove",g,!1),o(window,"pointerup",y,!1),o(window,"pointercancel",y,!1)}};d.onPointerDown=$=>{$.button===0&&i.current.id==null&&(h(),$.stopPropagation(),$.preventDefault(),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY},i.current.id=$.pointerId,a(window,"pointermove",g,!1),a(window,"pointerup",y,!1),a(window,"pointercancel",y,!1))}}let p=(g,y,$)=>{h(),u(g,"keyboard",y,$),l(g,"keyboard")};return d.onKeyDown=g=>{switch(g.key){case"Left":case"ArrowLeft":g.preventDefault(),g.stopPropagation(),p(g,-1,0);break;case"Right":case"ArrowRight":g.preventDefault(),g.stopPropagation(),p(g,1,0);break;case"Up":case"ArrowUp":g.preventDefault(),g.stopPropagation(),p(g,0,-1);break;case"Down":case"ArrowDown":g.preventDefault(),g.stopPropagation(),p(g,0,1);break}},d},[i,a,o,u,l])}}const Iz=500;function NA(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:a=Iz,accessibilityDescription:o}=e;const u=C.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:f}=Au(),{pressProps:d}=Nc({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),u.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i({...p,type:"longpress"}),u.current=void 0},a),p.pointerType==="touch")){let g=y=>{y.preventDefault()};l(p.target,"contextmenu",g,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{f(p.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(p){u.current&&clearTimeout(u.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),h=Lc(i&&!t?o:void 0);return{longPressProps:ft(d,h)}}function Ho(e){const t=St(e);if(gc()==="virtual"){let n=t.activeElement;CA(()=>{t.activeElement===n&&e.isConnected&&Ur(e)})}else Ur(e)}function Bz(e){const t=qa(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:a}=e.ownerDocument.defaultView;let{display:o,visibility:u}=a(e);i=o!=="none"&&u!=="hidden"&&u!=="collapse"}return i}function Lz(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 jA(e,t){return e.nodeName!=="#comment"&&Bz(e)&&Lz(e,t)&&(!e.parentElement||jA(e.parentElement,e))}const Uw=C.createContext(null),Zb="react-aria-focus-scope-restore";let Et=null;function Vz(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,a=C.useRef(null),o=C.useRef(null),u=C.useRef([]),{parentNode:l}=C.useContext(Uw)||{},f=C.useMemo(()=>new Xb({scopeRef:u}),[u]);Ct(()=>{let p=l||Xt.root;if(Xt.getTreeNode(p.scopeRef)&&Et&&!ch(Et,p.scopeRef)){let g=Xt.getTreeNode(Et);g&&(p=g)}p.addChild(f),Xt.addNode(f)},[f,l]),Ct(()=>{let p=Xt.getTreeNode(u);p&&(p.contain=!!n)},[n]),Ct(()=>{var p;let g=(p=a.current)===null||p===void 0?void 0:p.nextSibling,y=[],$=D=>D.stopPropagation();for(;g&&g!==o.current;)y.push(g),g.addEventListener(Zb,$),g=g.nextSibling;return u.current=y,()=>{for(let D of y)D.removeEventListener(Zb,$)}},[t]),Wz(u,r,n),Uz(u,n),Hz(u,r,n),qz(u,i),C.useEffect(()=>{const p=St(u.current?u.current[0]:void 0).activeElement;let g=null;if(_r(p,u.current)){for(let y of Xt.traverse())y.scopeRef&&_r(p,y.scopeRef.current)&&(g=y);g===Xt.getTreeNode(u)&&(Et=g.scopeRef)}},[u]),Ct(()=>()=>{var p,g,y;let $=(y=(g=Xt.getTreeNode(u))===null||g===void 0||(p=g.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&y!==void 0?y:null;(u===Et||ch(u,Et))&&(!$||Xt.getTreeNode($))&&(Et=$),Xt.removeTreeNode(u)},[u]);let d=C.useMemo(()=>Nz(u),[]),h=C.useMemo(()=>({focusManager:d,parentNode:f}),[f,d]);return C.createElement(Uw.Provider,{value:h},C.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,C.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:o}))}function Nz(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t,u=r||St(n[0]).activeElement,l=n[0].previousElementSibling,f=Ao(n),d=qn(f,{tabbable:i,accept:o},n);d.currentNode=_r(u,n)?u:l;let h=d.nextNode();return!h&&a&&(d.currentNode=l,h=d.nextNode()),h&&zn(h,!0),h},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t,u=r||St(n[0]).activeElement,l=n[n.length-1].nextElementSibling,f=Ao(n),d=qn(f,{tabbable:i,accept:o},n);d.currentNode=_r(u,n)?u:l;let h=d.previousNode();return!h&&a&&(d.currentNode=l,h=d.previousNode()),h&&zn(h,!0),h},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=Ao(n),o=qn(a,{tabbable:r,accept:i},n);o.currentNode=n[0].previousElementSibling;let u=o.nextNode();return u&&zn(u,!0),u},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=Ao(n),o=qn(a,{tabbable:r,accept:i},n);o.currentNode=n[n.length-1].nextElementSibling;let u=o.previousNode();return u&&zn(u,!0),u}}}const M1=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])'],jz=M1.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";M1.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Kz=M1.join(':not([hidden]):not([tabindex="-1"]),');function Ao(e){return e[0].parentElement}function ql(e){let t=Xt.getTreeNode(Et);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function Uz(e,t){let n=C.useRef(void 0),r=C.useRef(void 0);Ct(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const a=St(i?i[0]:void 0);let o=f=>{if(f.key!=="Tab"||f.altKey||f.ctrlKey||f.metaKey||!ql(e)||f.isComposing)return;let d=a.activeElement,h=e.current;if(!h||!_r(d,h))return;let p=Ao(h),g=qn(p,{tabbable:!0},h);if(!d)return;g.currentNode=d;let y=f.shiftKey?g.previousNode():g.nextNode();y||(g.currentNode=f.shiftKey?h[h.length-1].nextElementSibling:h[0].previousElementSibling,y=f.shiftKey?g.previousNode():g.nextNode()),f.preventDefault(),y&&zn(y,!0)},u=f=>{(!Et||ch(Et,e))&&_r(f.target,e.current)?(Et=e,n.current=f.target):ql(e)&&!Ia(f.target,e)?n.current?n.current.focus():Et&&Et.current&&Jb(Et.current):ql(e)&&(n.current=f.target)},l=f=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let d=gc();if(!((d==="virtual"||d===null)&&P1()&&DA())&&a.activeElement&&ql(e)&&!Ia(a.activeElement,e))if(Et=e,a.body.contains(f.target)){var p;n.current=f.target,(p=n.current)===null||p===void 0||p.focus()}else Et.current&&Jb(Et.current)})};return a.addEventListener("keydown",o,!1),a.addEventListener("focusin",u,!1),i==null||i.forEach(f=>f.addEventListener("focusin",u,!1)),i==null||i.forEach(f=>f.addEventListener("focusout",l,!1)),()=>{a.removeEventListener("keydown",o,!1),a.removeEventListener("focusin",u,!1),i==null||i.forEach(f=>f.removeEventListener("focusin",u,!1)),i==null||i.forEach(f=>f.removeEventListener("focusout",l,!1))}},[e,t]),Ct(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function KA(e){return Ia(e)}function _r(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Ia(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Xt.traverse(Xt.getTreeNode(t)))if(n&&_r(e,n.current))return!0;return!1}function zz(e){return Ia(e,Et)}function ch(e,t){var n;let r=(n=Xt.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function zn(e,t=!1){if(e!=null&&!t)try{Ho(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function UA(e,t=!0){let n=e[0].previousElementSibling,r=Ao(e),i=qn(r,{tabbable:t},e);i.currentNode=n;let a=i.nextNode();return t&&!a&&(r=Ao(e),i=qn(r,{tabbable:!1},e),i.currentNode=n,a=i.nextNode()),a}function Jb(e,t=!0){zn(UA(e,t))}function qz(e,t){const n=C.useRef(t);C.useEffect(()=>{if(n.current){Et=e;const r=St(e.current?e.current[0]:void 0);!_r(r.activeElement,Et.current)&&e.current&&Jb(e.current)}n.current=!1},[e])}function Wz(e,t,n){Ct(()=>{if(t||n)return;let r=e.current;const i=St(r?r[0]:void 0);let a=o=>{let u=o.target;_r(u,e.current)?Et=e:KA(u)||(Et=null)};return i.addEventListener("focusin",a,!1),r==null||r.forEach(o=>o.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),r==null||r.forEach(o=>o.removeEventListener("focusin",a,!1))}},[e,t,n])}function zw(e){let t=Xt.getTreeNode(Et);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function Hz(e,t,n){const r=C.useRef(typeof document<"u"?St(e.current?e.current[0]:void 0).activeElement:null);Ct(()=>{let i=e.current;const a=St(i?i[0]:void 0);if(!t||n)return;let o=()=>{(!Et||ch(Et,e))&&_r(a.activeElement,e.current)&&(Et=e)};return a.addEventListener("focusin",o,!1),i==null||i.forEach(u=>u.addEventListener("focusin",o,!1)),()=>{a.removeEventListener("focusin",o,!1),i==null||i.forEach(u=>u.removeEventListener("focusin",o,!1))}},[e,n]),Ct(()=>{const i=St(e.current?e.current[0]:void 0);if(!t)return;let a=o=>{if(o.key!=="Tab"||o.altKey||o.ctrlKey||o.metaKey||!ql(e)||o.isComposing)return;let u=i.activeElement;if(!Ia(u,e)||!zw(e))return;let l=Xt.getTreeNode(e);if(!l)return;let f=l.nodeToRestore,d=qn(i.body,{tabbable:!0});d.currentNode=u;let h=o.shiftKey?d.previousNode():d.nextNode();if((!f||!i.body.contains(f)||f===i.body)&&(f=void 0,l.nodeToRestore=void 0),(!h||!Ia(h,e))&&f){d.currentNode=f;do h=o.shiftKey?d.previousNode():d.nextNode();while(Ia(h,e));o.preventDefault(),o.stopPropagation(),h?zn(h,!0):KA(f)?zn(f,!0):u.blur()}};return n||i.addEventListener("keydown",a,!0),()=>{n||i.removeEventListener("keydown",a,!0)}},[e,t,n]),Ct(()=>{const i=St(e.current?e.current[0]:void 0);if(!t)return;let a=Xt.getTreeNode(e);if(a){var o;return a.nodeToRestore=(o=r.current)!==null&&o!==void 0?o:void 0,()=>{let u=Xt.getTreeNode(e);if(!u)return;let l=u.nodeToRestore;if(t&&l&&(i.activeElement&&Ia(i.activeElement,e)||i.activeElement===i.body&&zw(e))){let f=Xt.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let d=f.getTreeNode(e);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){qw(d.nodeToRestore);return}d=d.parent}for(d=f.getTreeNode(e);d;){if(d.scopeRef&&d.scopeRef.current&&Xt.getTreeNode(d.scopeRef)){let h=UA(d.scopeRef.current,!0);qw(h);return}d=d.parent}}})}}}},[e,t])}function qw(e){e.dispatchEvent(new CustomEvent(Zb,{bubbles:!0,cancelable:!0}))&&zn(e)}function qn(e,t,n){let r=t!=null&&t.tabbable?Kz:jz,i=St(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var o;return!(t==null||(o=t.from)===null||o===void 0)&&o.contains(a)?NodeFilter.FILTER_REJECT:a.matches(r)&&jA(a)&&(!n||_r(a,n))&&(!(t!=null&&t.accept)||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}function ap(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:u=t.accept}=n,l=i||St(r).activeElement,f=qn(r,{tabbable:a,accept:u});r.contains(l)&&(f.currentNode=l);let d=f.nextNode();return!d&&o&&(f.currentNode=r,d=f.nextNode()),d&&zn(d,!0),d},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:u=t.accept}=n,l=i||St(r).activeElement,f=qn(r,{tabbable:a,accept:u});if(r.contains(l))f.currentNode=l;else{let h=yg(f);return h&&zn(h,!0),h??null}let d=f.previousNode();if(!d&&o){f.currentNode=r;let h=yg(f);if(!h)return null;d=h}return d&&zn(d,!0),d??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,u=qn(r,{tabbable:i,accept:a}).nextNode();return u&&zn(u,!0),u},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=qn(r,{tabbable:i,accept:a}),u=yg(o);return u&&zn(u,!0),u??null}}}function yg(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class F1{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 a=new Xb({scopeRef:t});i.addChild(a),a.parent=i,this.fastMap.set(t,a),r&&(a.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 a of this.traverse())a!==n&&n.nodeToRestore&&a.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&_r(a.nodeToRestore,n.scopeRef.current)&&(a.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(a=>r&&r.addChild(a))),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 F1;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 Xb({scopeRef:null}),this.fastMap.set(null,this.root)}}class Xb{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 Xt=new F1,Gz=C.createContext(null);function Yz(e){let t=C.useContext(Gz)||{};EA(t,e);let{ref:n,...r}=t;return r}function k1(e,t){let{focusProps:n}=Pz(e),{keyboardProps:r}=LA(e),i=ft(n,r),a=Yz(t),o=e.isDisabled?{}:a,u=C.useRef(e.autoFocus);return C.useEffect(()=>{u.current&&t.current&&Ho(t.current),u.current=!1},[t]),{focusableProps:ft({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},o)}}const Zz=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Jz=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Xz(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 Zz.has(n.script)}let t=e.split("-")[0];return Jz.has(t)}const Qz=Symbol.for("react-aria.i18n.locale");function zA(){let e=typeof window<"u"&&window[Qz]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Xz(e)?"rtl":"ltr"}}let Qb=zA(),Wl=new Set;function Ww(){Qb=zA();for(let e of Wl)e(Qb)}function eq(){let e=S1(),[t,n]=C.useState(Qb);return C.useEffect(()=>(Wl.size===0&&window.addEventListener("languagechange",Ww),Wl.add(n),()=>{Wl.delete(n),Wl.size===0&&window.removeEventListener("languagechange",Ww)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const tq=C.createContext(null);function Sn(){let e=eq();return C.useContext(tq)||e}const nq=Symbol.for("react-aria.i18n.locale"),rq=Symbol.for("react-aria.i18n.strings");let Rs;class Za{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=iq(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[nq];if(Rs===void 0){let i=window[rq];if(!i)return null;Rs={};for(let a in i)Rs[a]=new Za({[n]:i[a]},n)}let r=Rs==null?void 0:Rs[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 iq(e,t,n="en-US"){if(t[e])return t[e];let r=aq(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function aq(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const Hw=new Map,Gw=new Map;class qA{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 a=this.locale+":"+r,o=Hw.get(a);o||(o=new Intl.PluralRules(this.locale,{type:r}),Hw.set(a,o));let u=o.select(t);return i=n[u]||n.other,typeof i=="function"?i():i}number(t){let n=Gw.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Gw.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 Yw=new WeakMap;function oq(e){let t=Yw.get(e);return t||(t=new Za(e),Yw.set(e,t)),t}function WA(e,t){return t&&Za.getGlobalDictionaryForPackage(t)||oq(e)}function Ri(e,t){let{locale:n}=Sn(),r=WA(e,t);return C.useMemo(()=>new qA(n,r),[n,r])}function Ys(e,t){return e-t*Math.floor(e/t)}const HA=1721426;function Po(e,t,n,r){t=jc(e,t);let i=t-1,a=-2;return n<=2?a=0:Ba(t)&&(a=-1),HA-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function Ba(e){return e%4===0&&(e%100!==0||e%400===0)}function jc(e,t){return e==="BC"?1-t:t}function op(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const sq={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 kn{fromJulianDay(t){let n=t,r=n-HA,i=Math.floor(r/146097),a=Ys(r,146097),o=Math.floor(a/36524),u=Ys(a,36524),l=Math.floor(u/1461),f=Ys(u,1461),d=Math.floor(f/365),h=i*400+o*100+l*4+d+(o!==4&&d!==4?1:0),[p,g]=op(h),y=n-Po(p,g,1,1),$=2;n<Po(p,g,3,1)?$=0:Ba(g)&&($=1);let D=Math.floor(((y+$)*12+373)/367),b=n-Po(p,g,D,1)+1;return new Yt(p,g,D,b)}toJulianDay(t){return Po(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return sq[Ba(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Ba(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 uq={"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 on(e,t){return t=Lt(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function e0(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 GA(e,t){return on(e,sp(t))}const lq={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function I1(e,t,n){let r=e.calendar.toJulianDay(e),i=n?lq[n]:mq(t),a=Math.ceil(r+1-i)%7;return a<0&&(a+=7),a}function YA(e){return Ji(Date.now(),e)}function sp(e){return Fn(YA(e))}function ZA(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function JA(e,t){return Zw(e)-Zw(t)}function Zw(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let vg=null;function Kc(){return vg==null&&(vg=new Intl.DateTimeFormat().resolvedOptions().timeZone),vg}function Uc(e){return e.subtract({days:e.day-1})}function t0(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function cq(e){return Uc(e.subtract({months:e.month-1}))}function fq(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function dq(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function yc(e,t,n){let r=I1(e,t,n);return e.subtract({days:r})}function hq(e,t,n){return yc(e,t,n).add({days:6})}const Jw=new Map;function pq(e){if(Intl.Locale){let n=Jw.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&Jw.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function mq(e){let t=pq(e);return t&&uq[t]||0}function gq(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((I1(Uc(e),t,n)+r)/7)}function B1(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function L1(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function du(e){e=Lt(e,new kn);let t=jc(e.era,e.year);return XA(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function XA(e,t,n,r,i,a,o){let u=new Date;return u.setUTCHours(r,i,a,o),u.setUTCFullYear(e,t-1,n),u.getTime()}function n0(e,t){if(t==="UTC")return 0;if(e>0&&t===Kc())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:o,second:u}=QA(e,t);return XA(n,r,i,a,o,u,0)-Math.floor(e/1e3)*1e3}const Xw=new Map;function QA(e,t){let n=Xw.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"}),Xw.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let a of r)a.type!=="literal"&&(i[a.type]=a.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 Qw=864e5;function yq(e,t,n,r){return(n===r?[n]:[n,r]).filter(a=>vq(e,t,a))}function vq(e,t,n){let r=QA(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 Zi(e,t,n="compatible"){let r=Hr(e);if(t==="UTC")return du(r);if(t===Kc()&&n==="compatible"){r=Lt(r,new kn);let l=new Date,f=jc(r.era,r.year);return l.setFullYear(f,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let i=du(r),a=n0(i-Qw,t),o=n0(i+Qw,t),u=yq(r,t,i-a,i-o);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-a,i-o);case"compatible":case"later":return Math.max(i-a,i-o);case"reject":throw new RangeError("No such absolute time found")}}function eP(e,t,n="compatible"){return new Date(Zi(e,t,n))}function Ji(e,t){let n=n0(e,t),r=new Date(e+n),i=r.getUTCFullYear(),a=r.getUTCMonth()+1,o=r.getUTCDate(),u=r.getUTCHours(),l=r.getUTCMinutes(),f=r.getUTCSeconds(),d=r.getUTCMilliseconds();return new $c(i<1?"BC":"AD",i<1?-i+1:i,a,o,t,n,u,l,f,d)}function Fn(e){return new Yt(e.calendar,e.era,e.year,e.month,e.day)}function Hr(e,t){let n=0,r=0,i=0,a=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new bc(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function eD(e){return new zc(e.hour,e.minute,e.second,e.millisecond)}function Lt(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,Go(r),r}function tP(e,t,n){if(e instanceof $c)return e.timeZone===t?e:$q(e,t);let r=Zi(e,t,n);return Ji(r,t)}function bq(e){let t=du(e)-e.offset;return new Date(t)}function $q(e,t){let n=du(e)-e.offset;return Lt(Ji(n,t),e.calendar)}const _l=36e5;function up(e,t){let n=e.copy(),r="hour"in n?aP(n,t):0;r0(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,i0(n),nP(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,xq(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 a,o;let l=(a=(o=n.calendar).isInverseEra)===null||a===void 0?void 0:a.call(o,n);n.year=i,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let 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 r0(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function i0(e){for(;e.month<1;)r0(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,r0(e,1)}function xq(e){for(;e.day<1;)e.month--,i0(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,i0(e)}function nP(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 Go(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),nP(e)}function V1(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function rP(e,t){return up(e,V1(t))}function N1(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),Go(n),n}function vc(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),iP(n),n}function wq(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=dd(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=dd(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=dd(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=dd(e.hour,24),t}function iP(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 dd(e,t){let n=e%t;return n<0&&(n+=t),n}function aP(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,wq(e)}function oP(e,t){let n=e.copy();return aP(n,t),n}function Dq(e,t){return oP(e,V1(t))}function j1(e,t,n,r){let i=e.copy();switch(t){case"era":{let u=e.calendar.getEras(),l=u.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=Xi(l,n,0,u.length-1,r==null?void 0:r.round),i.era=u[l],Go(i);break}case"year":var a,o;!((a=(o=i.calendar).isInverseEra)===null||a===void 0)&&a.call(o,i)&&(n=-n),i.year=Xi(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=Xi(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=Xi(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),Go(i),i}function K1(e,t,n,r){let i=e.copy();switch(t){case"hour":{let a=e.hour,o=0,u=23;if((r==null?void 0:r.hourCycle)===12){let l=a>=12;o=l?12:0,u=l?23:11}i.hour=Xi(a,n,o,u,r==null?void 0:r.round);break}case"minute":i.minute=Xi(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=Xi(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=Xi(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function Xi(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function sP(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=up(Hr(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=Zi(i,e.timeZone)}else n=du(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=Ji(n,e.timeZone);return Lt(r,e.calendar)}function Cq(e,t){return sP(e,V1(t))}function Eq(e,t,n,r){switch(t){case"hour":{let i=0,a=23;if((r==null?void 0:r.hourCycle)===12){let y=e.hour>=12;i=y?12:0,a=y?23:11}let o=Hr(e),u=Lt(vc(o,{hour:i}),new kn),l=[Zi(u,e.timeZone,"earlier"),Zi(u,e.timeZone,"later")].filter(y=>Ji(y,e.timeZone).day===u.day)[0],f=Lt(vc(o,{hour:a}),new kn),d=[Zi(f,e.timeZone,"earlier"),Zi(f,e.timeZone,"later")].filter(y=>Ji(y,e.timeZone).day===f.day).pop(),h=du(e)-e.offset,p=Math.floor(h/_l),g=h%_l;return h=Xi(p,n,Math.floor(l/_l),Math.floor(d/_l),r==null?void 0:r.round)*_l+g,Lt(Ji(h,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return K1(e,t,n,r);case"era":case"year":case"month":case"day":{let i=j1(Hr(e),t,n,r),a=Zi(i,e.timeZone);return Lt(Ji(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function Sq(e,t,n){let r=Hr(e),i=vc(N1(r,t),t);if(i.compare(r)===0)return e;let a=Zi(i,e.timeZone,n);return Lt(Ji(a,e.timeZone),e.calendar)}const Tq=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,Aq=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;function Pq(e){let t=e.match(Tq);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new Yt(di(t[1],0,9999),di(t[2],1,12),1);return n.day=di(t[3],0,n.calendar.getDaysInMonth(n)),n}function _q(e){let t=e.match(Aq);if(!t)throw new Error("Invalid ISO 8601 date time string: "+e);let n=di(t[1],-9999,9999),r=n<1?"BC":"AD",i=new bc(r,n<1?-n+1:n,di(t[2],1,12),1,t[4]?di(t[4],0,23):0,t[5]?di(t[5],0,59):0,t[6]?di(t[6],0,59):0,t[7]?di(t[7],0,1/0)*1e3:0);return i.day=di(t[3],0,i.calendar.getDaysInMonth(i)),i}function di(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 uP(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 lP(e){let t=Lt(e,new kn),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 cP(e){return`${lP(e)}T${uP(e)}`}function Rq(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 Oq(e){return`${cP(e)}${Rq(e.offset)}[${e.timeZone}]`}function U1(e){let t=typeof e[0]=="object"?e.shift():new kn,n;if(typeof e[0]=="string")n=e.shift();else{let o=t.getEras();n=o[o.length-1]}let r=e.shift(),i=e.shift(),a=e.shift();return[t,n,r,i,a]}var Mq=new WeakMap;class Yt{copy(){return this.era?new Yt(this.calendar,this.era,this.year,this.month,this.day):new Yt(this.calendar,this.year,this.month,this.day)}add(t){return up(this,t)}subtract(t){return rP(this,t)}set(t){return N1(this,t)}cycle(t,n,r){return j1(this,t,n,r)}toDate(t){return eP(this,t)}toString(){return lP(this)}compare(t){return ZA(this,t)}constructor(...t){Vc(this,Mq,{writable:!0,value:void 0});let[n,r,i,a,o]=U1(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,Go(this)}}var Fq=new WeakMap;class zc{copy(){return new zc(this.hour,this.minute,this.second,this.millisecond)}add(t){return oP(this,t)}subtract(t){return Dq(this,t)}set(t){return vc(this,t)}cycle(t,n,r){return K1(this,t,n,r)}toString(){return uP(this)}compare(t){return JA(this,t)}constructor(t=0,n=0,r=0,i=0){Vc(this,Fq,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,iP(this)}}var kq=new WeakMap;class bc{copy(){return this.era?new bc(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new bc(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return up(this,t)}subtract(t){return rP(this,t)}set(t){return N1(vc(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return j1(this,t,n,r);default:return K1(this,t,n,r)}}toDate(t,n){return eP(this,t,n)}toString(){return cP(this)}compare(t){let n=ZA(this,t);return n===0?JA(this,Hr(t)):n}constructor(...t){Vc(this,kq,{writable:!0,value:void 0});let[n,r,i,a,o]=U1(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Go(this)}}var Iq=new WeakMap;class $c{copy(){return this.era?new $c(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new $c(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return sP(this,t)}subtract(t){return Cq(this,t)}set(t,n){return Sq(this,t,n)}cycle(t,n,r){return Eq(this,t,n,r)}toDate(){return bq(this)}toString(){return Oq(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-tP(t,this.timeZone).toDate().getTime()}constructor(...t){Vc(this,Iq,{writable:!0,value:void 0});let[n,r,i,a,o]=U1(t),u=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,this.timeZone=u,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Go(this)}}const Zs=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],Bq=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Bd=[1867,1911,1925,1988,2018],Ma=["meiji","taisho","showa","heisei","reiwa"];function tD(e){const t=Zs.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?Zs.length-1:t===0?0:t-1}function bg(e){let t=Bd[Ma.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Yt(e.year+t,e.month,e.day)}class Lq extends kn{fromJulianDay(t){let n=super.fromJulianDay(t),r=tD(n);return new Yt(this,Ma[r],n.year-Bd[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(bg(t))}balanceDate(t){let n=bg(t),r=tD(n);Ma[r]!==t.era&&(t.era=Ma[r],t.year=n.year-Bd[r]),this.constrainDate(t)}constrainDate(t){let n=Ma.indexOf(t.era),r=Bq[n];if(r!=null){let[i,a,o]=r,u=i-Bd[n];t.year=Math.max(1,Math.min(u,t.year)),t.year===u&&(t.month=Math.min(a,t.month),t.month===a&&(t.day=Math.min(o,t.day)))}if(t.year===1&&n>=0){let[,i,a]=Zs[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(a,t.day))}}getEras(){return Ma}getYearsInEra(t){let n=Ma.indexOf(t.era),r=Zs[n],i=Zs[n+1];if(i==null)return 9999-r[0]+1;let a=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&a++,a}getDaysInMonth(t){return super.getDaysInMonth(bg(t))}getMinimumMonthInYear(t){let n=nD(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=nD(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function nD(e){if(e.year===1){let t=Ma.indexOf(e.era);return Zs[t]}}const fP=-543;class Vq extends kn{fromJulianDay(t){let n=super.fromJulianDay(t),r=jc(n.era,n.year);return new Yt(this,r-fP,n.month,n.day)}toJulianDay(t){return super.toJulianDay(rD(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(rD(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function rD(e){let[t,n]=op(e.year+fP);return new Yt(t,n,e.month,e.day)}const fh=1911;function dP(e){return e.era==="minguo"?e.year+fh:1-e.year+fh}function iD(e){let t=e-fh;return t>0?["minguo",t]:["before_minguo",1-t]}class Nq extends kn{fromJulianDay(t){let n=super.fromJulianDay(t),r=jc(n.era,n.year),[i,a]=iD(r);return new Yt(this,i,a,n.month,n.day)}toJulianDay(t){return super.toJulianDay(aD(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=iD(dP(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(aD(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-fh}constructor(...t){super(...t),this.identifier="roc"}}function aD(e){let[t,n]=op(dP(e));return new Yt(t,n,e.month,e.day)}const oD=1948320,sD=[0,31,62,93,124,155,186,216,246,276,306,336];class jq{fromJulianDay(t){let n=t-oD,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),a=n-i,o=a<216?Math.floor(a/31):Math.floor((a-6)/30),u=a-sD[o]+1;return new Yt(this,r,o+1,u)}toJulianDay(t){let n=oD-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=sD[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||Ys(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const $g=78,uD=80;class Kq extends kn{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-$g,i=t-Po(n.era,n.year,1,1),a;i<uD?(r--,a=Ba(n.year-1)?31:30,i+=a+155+90+10):(a=Ba(n.year)?31:30,i-=uD);let o,u;if(i<a)o=1,u=i+1;else{let l=i-a;l<155?(o=Math.floor(l/31)+2,u=l%31+1):(l-=155,o=Math.floor(l/30)+7,u=l%30+1)}return new Yt(this,r,o,u)}toJulianDay(t){let n=t.year+$g,[r,i]=op(n),a,o;return Ba(i)?(a=31,o=Po(r,i,3,21)):(a=30,o=Po(r,i,3,22)),t.month===1?o+t.day-1:(o+=a+Math.min(t.month-2,5)*31,t.month>=8&&(o+=(t.month-7)*30),o+=t.day-1,o)}getDaysInMonth(t){return t.month===1&&Ba(t.year+$g)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const dh=1948440,lD=1948439,xr=1300,Os=1600,Uq=460322;function hh(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function hP(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+hh(t,r,1,1)))/29.5)+1),a=n-hh(t,r,i,1)+1;return new Yt(e,r,i,a)}function cD(e){return(14+11*e)%30<11}class z1{fromJulianDay(t){return hP(this,dh,t)}toJulianDay(t){return hh(dh,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&cD(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return cD(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class zq extends z1{fromJulianDay(t){return hP(this,lD,t)}toJulianDay(t){return hh(lD,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const qq="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let a0,Js;function Ld(e){return Uq+Js[e-xr]}function Hl(e,t){let n=e-xr,r=1<<11-(t-1);return a0[n]&r?30:29}function fD(e,t){let n=Ld(e);for(let r=1;r<t;r++)n+=Hl(e,r);return n}function dD(e){return Js[e+1-xr]-Js[e-xr]}class Wq extends z1{fromJulianDay(t){let n=t-dh,r=Ld(xr),i=Ld(Os);if(n<r||n>i)return super.fromJulianDay(t);{let a=xr-1,o=1,u=1;for(;u>0;){a++,u=n-Ld(a)+1;let l=dD(a);if(u===l){o=12;break}else if(u<l){let f=Hl(a,o);for(o=1;u>f;)u-=f,o++,f=Hl(a,o);break}}return new Yt(this,a,o,n-fD(a,o)+1)}}toJulianDay(t){return t.year<xr||t.year>Os?super.toJulianDay(t):dh+fD(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<xr||t.year>Os?super.getDaysInMonth(t):Hl(t.year,t.month)}getDaysInYear(t){return t.year<xr||t.year>Os?super.getDaysInYear(t):dD(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",a0||(a0=new Uint16Array(Uint8Array.from(atob(qq),t=>t.charCodeAt(0)).buffer)),!Js){Js=new Uint32Array(Os-xr+1);let t=0;for(let n=xr;n<=Os;n++){Js[n-xr]=t;for(let r=1;r<=12;r++)t+=Hl(n,r)}}}}const hD=347997,pP=1080,mP=24*pP,Hq=29,Gq=12*pP+793,Yq=Hq*mP+Gq;function Co(e){return Ys(e*7+1,19)<7}function Vd(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return Ys(3*(r+1),7)<3&&(r+=1),r}function Zq(e){let t=Vd(e-1),n=Vd(e);return Vd(e+1)-n===356?2:n-t===382?1:0}function ac(e){return Vd(e)+Zq(e)}function gP(e){return ac(e+1)-ac(e)}function Jq(e){let t=gP(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function hd(e,t){if(t>=6&&!Co(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=Jq(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?Co(e)?30:0:30}class Xq{fromJulianDay(t){let n=t-hD,r=n*mP/Yq,i=Math.floor((19*r+234)/235)+1,a=ac(i),o=Math.floor(n-a);for(;o<1;)i--,a=ac(i),o=Math.floor(n-a);let u=1,l=0;for(;l<o;)l+=hd(i,u),u++;u--,l-=hd(i,u);let f=o-l;return new Yt(this,i,u,f)}toJulianDay(t){let n=ac(t.year);for(let r=1;r<t.month;r++)n+=hd(t.year,r);return n+t.day+hD}getDaysInMonth(t){return hd(t.year,t.month)}getMonthsInYear(t){return Co(t.year)?13:12}getDaysInYear(t){return gP(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(Co(n.year)&&!Co(t.year)&&n.month>6?t.month--:!Co(n.year)&&Co(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const o0=1723856,pD=1824665,s0=5500;function ph(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function q1(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-ph(e,n,1,1))/30),i=t+1-ph(e,n,r,1);return[n,r,i]}function yP(e){return Math.floor(e%4/3)}function vP(e,t){return t%13!==0?30:yP(e)+5}class W1{fromJulianDay(t){let[n,r,i]=q1(o0,t),a="AM";return n<=0&&(a="AA",n+=s0),new Yt(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=s0),ph(o0,n,t.month,t.day)}getDaysInMonth(t){return vP(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+yP(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class Qq extends W1{fromJulianDay(t){let[n,r,i]=q1(o0,t);return n+=s0,new Yt(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class eW extends W1{fromJulianDay(t){let[n,r,i]=q1(pD,t),a="CE";return n<=0&&(a="BCE",n=1-n),new Yt(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),ph(pD,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),vP(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 tW(e){switch(e){case"buddhist":return new Vq;case"ethiopic":return new W1;case"ethioaa":return new Qq;case"coptic":return new eW;case"hebrew":return new Xq;case"indian":return new Kq;case"islamic-civil":return new z1;case"islamic-tbla":return new zq;case"islamic-umalqura":return new Wq;case"japanese":return new Lq;case"persian":return new jq;case"roc":return new Nq;case"gregory":default:return new kn}}let xg=new Map;class Er{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(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return iW()&&(this.resolvedHourCycle||(this.resolvedHourCycle=aW(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=bP(t,n),this.options=n}}const nW={true:{ja:"h11"},false:{}};function bP(e,t={}){if(typeof t.hour12=="boolean"&&rW()){t={...t};let i=nW[String(t.hour12)][e.split("-")[0]],a=t.hour12?"h12":"h23";t.hourCycle=i??a,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(xg.has(n))return xg.get(n);let r=new Intl.DateTimeFormat(e,t);return xg.set(n,r),r}let wg=null;function rW(){return wg==null&&(wg=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),wg}let Dg=null;function iW(){return Dg==null&&(Dg=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Dg}function aW(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=bP(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(a=>a.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(a=>a.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 $i(e){e=TA(e??{},oW);let{locale:t}=Sn();return C.useMemo(()=>new Er(t,e),[t,e])}function oW(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 Cg=new Map,u0=!1;try{u0=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let mh=!1;try{mh=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const $P={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class xP{format(t){let n="";if(!u0&&this.options.signDisplay!=null?n=uW(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!mh){var r;let{unit:i,unitDisplay:a="short",locale:o}=this.resolvedOptions();if(!i)return n;let u=(r=$P[i])===null||r===void 0?void 0:r[a];n+=u[o]||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(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!u0&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!mh&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=sW(t,n),this.options=n}}function sW(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!mh){var r;let{unit:o,unitDisplay:u="short"}=t;if(!o)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=$P[o])===null||r===void 0)&&r[u]))throw new Error(`Unsupported unit ${o} with unitDisplay = ${u}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((o,u)=>o[0]<u[0]?-1:1).join():"");if(Cg.has(i))return Cg.get(i);let a=new Intl.NumberFormat(e,t);return Cg.set(i,a),a}function uW(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),a=e.format(n),o=i.replace(a,"").replace(/\u200e|\u061C/,"");return[...o].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(a,"!!!").replace(o,"+").replace("!!!",a)}else return e.format(n)}}const lW=new RegExp("^.*\\(.*\\).*$"),cW=["latn","arab","hanidec","deva","beng"];class wP{parse(t){return Eg(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return Eg(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return Eg(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const mD=new Map;function Eg(e,t,n){let r=gD(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of cW)if(i!==r.options.numberingSystem){let a=gD(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(a.isValidPartialNumber(n))return a}}return r}function gD(e,t){let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():""),r=mD.get(n);return r||(r=new fW(e,t),mD.set(n,r)),r}class fW{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=pd(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let o=n.indexOf("-");n=n.replace("-","");let 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)}`,o>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var i,a;let o={...this.options,style:"decimal",minimumFractionDigits:Math.min(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)+2,20),maximumFractionDigits:Math.min(((a=this.options.maximumFractionDigits)!==null&&a!==void 0?a:0)+2,20)};return new wP(this.locale,o).parse(new xP(this.locale,o).format(r))}return this.options.currencySign==="accounting"&&lW.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=pd(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=pd(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=pd(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=hW(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 yD=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),dW=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function hW(e,t,n,r){var i,a,o,u;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),f=l.formatToParts(-10000.111),d=l.formatToParts(10000.111),h=dW.map(j=>l.formatToParts(j));var p;let g=(p=(i=f.find(j=>j.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&p!==void 0?p:"-",y=(a=d.find(j=>j.type==="plusSign"))===null||a===void 0?void 0:a.value;!y&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(y="+");let D=(o=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(j=>j.type==="decimal"))===null||o===void 0?void 0:o.value,b=(u=f.find(j=>j.type==="group"))===null||u===void 0?void 0:u.value,v=f.filter(j=>!yD.has(j.type)).map(j=>vD(j.value)),w=h.flatMap(j=>j.filter(O=>!yD.has(O.type)).map(O=>vD(O.value))),T=[...new Set([...v,...w])].sort((j,O)=>O.length-j.length),E=T.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${T.join("|")}|[\\p{White_Space}]`,"gu"),A=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),M=new Map(A.map((j,O)=>[j,O])),S=new RegExp(`[${A.join("")}]`,"g");return{minusSign:g,plusSign:y,decimal:D,group:b,literals:E,numeral:S,index:j=>String(M.get(j))}}function pd(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function vD(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function pW(e={}){let{locale:t}=Sn();return C.useMemo(()=>new xP(t,e),[t,e])}let Sg=new Map;function DP(e){let{locale:t}=Sn(),n=t+(e?Object.entries(e).sort((i,a)=>i[0]<a[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 CP(e){let t=DP({usage:"search",...e}),n=C.useCallback((a,o)=>o.length===0?!0:(a=a.normalize("NFC"),o=o.normalize("NFC"),t.compare(a.slice(0,o.length),o)===0),[t]),r=C.useCallback((a,o)=>o.length===0?!0:(a=a.normalize("NFC"),o=o.normalize("NFC"),t.compare(a.slice(-o.length),o)===0),[t]),i=C.useCallback((a,o)=>{if(o.length===0)return!0;a=a.normalize("NFC"),o=o.normalize("NFC");let u=0,l=o.length;for(;u+l<=a.length;u++){let f=a.slice(u,u+l);if(t.compare(o,f)===0)return!0}return!1},[t]);return C.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function mW(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:a,onPressEnd:o,onPressUp:u,onPressChange:l,preventFocusOnPress:f,allowFocusWhenDisabled:d,onClick:h,href:p,target:g,rel:y,type:$="button"}=e,D;n==="button"?D={type:$,disabled:r}:D={role:"button",tabIndex:r?void 0:0,href:n==="a"&&!r?p: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"?y:void 0};let{pressProps:b,isPressed:v}=Nc({onPressStart:a,onPressEnd:o,onPressChange:l,onPress:i,onPressUp:u,isDisabled:r,preventFocusOnPress:f,ref:t}),{focusableProps:w}=k1(e,t);d&&(w.tabIndex=r?-1:w.tabIndex);let T=ft(w,b,ua(e,{labelable:!0}));return{isPressed:v,buttonProps:ft(D,T,{"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 EP={};EP={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 SP={};SP={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 TP={};TP={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 AP={};AP={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 PP={};PP={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 _P={};_P={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 RP={};RP={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 OP={};OP={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 MP={};MP={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 FP={};FP={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 kP={};kP={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 IP={};IP={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 BP={};BP={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 LP={};LP={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 VP={};VP={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 NP={};NP={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 jP={};jP={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 KP={};KP={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 UP={};UP={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 zP={};zP={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 qP={};qP={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 WP={};WP={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 HP={};HP={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 GP={};GP={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 YP={};YP={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 ZP={};ZP={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 JP={};JP={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 XP={};XP={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 QP={};QP={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 e6={};e6={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 t6={};t6={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 n6={};n6={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 r6={};r6={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var i6={};i6={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var qc={};qc={"ar-AE":EP,"bg-BG":SP,"cs-CZ":TP,"da-DK":AP,"de-DE":PP,"el-GR":_P,"en-US":RP,"es-ES":OP,"et-EE":MP,"fi-FI":FP,"fr-FR":kP,"he-IL":IP,"hr-HR":BP,"hu-HU":LP,"it-IT":VP,"ja-JP":NP,"ko-KR":jP,"lt-LT":KP,"lv-LV":UP,"nb-NO":zP,"nl-NL":qP,"pl-PL":WP,"pt-BR":HP,"pt-PT":GP,"ro-RO":YP,"ru-RU":ZP,"sk-SK":JP,"sl-SI":XP,"sr-SP":QP,"sv-SE":e6,"tr-TR":t6,"uk-UA":n6,"zh-CN":r6,"zh-TW":i6};function a6(e){return e&&e.__esModule?e.default:e}const H1=new WeakMap;function xc(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function gW(e){let t=Ri(a6(qc),"@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 a=$i({weekday:"long",month:"long",year:"numeric",day:"numeric",era:xc(n)||xc(r),timeZone:e.timeZone}),o="anchorDate"in e?e.anchorDate:null;return C.useMemo(()=>{if(!o&&n&&r)if(on(n,r)){let u=a.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:u})}else{let u=c0(a,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:u})}return""},[n,r,o,e.timeZone,t,a])}function l0(e,t,n,r){let i=Ri(a6(qc),"@react-aria/calendar"),a=xc(e)||xc(t),o=$i({month:"long",year:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n}),u=$i({month:"long",year:"numeric",day:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n});return C.useMemo(()=>{if(on(e,Uc(e))){if(on(t,t0(e)))return o.format(e.toDate(n));if(on(t,t0(t)))return r?c0(o,i,e,t,n):o.formatRange(e.toDate(n),t.toDate(n))}return r?c0(u,i,e,t,n):u.formatRange(e.toDate(n),t.toDate(n))},[e,t,o,u,i,n,r])}function c0(e,t,n,r,i){let a=e.formatRangeToParts(n.toDate(i),r.toDate(i)),o=-1;for(let f=0;f<a.length;f++){let d=a[f];if(d.source==="shared"&&d.type==="literal")o=f;else if(d.source==="endRange")break}let u="",l="";for(let f=0;f<a.length;f++)f<o?u+=a[f].value:f>o&&(l+=a[f].value);return t.format("dateRange",{startDate:u,endDate:l})}const o6=7e3;let br=null;function Xs(e,t="assertive",n=o6){br?br.announce(e,t,n):(br=new vW,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?br.announce(e,t,n):setTimeout(()=>{br!=null&&br.isAttached()&&(br==null||br.announce(e,t,n))},100))}function yW(e){br&&br.clear(e)}class vW{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=o6){var i,a;if(!this.node)return;let o=document.createElement("div");typeof t=="object"?(o.setAttribute("role","img"),o.setAttribute("aria-labelledby",t["aria-labelledby"])):o.textContent=t,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(o):(a=this.politeLog)===null||a===void 0||a.appendChild(o),t!==""&&setTimeout(()=>{o.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function bW(e){return e&&e.__esModule?e.default:e}function s6(e,t){let n=Ri(bW(qc),"@react-aria/calendar"),r=ua(e),i=l0(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),a=l0(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);Rw(()=>{t.isFocused||Xs(a)},[a]);let o=gW(t);Rw(()=>{o&&Xs(o,"polite",4e3)},[o]);let u=lu([!!e.errorMessage,e.isInvalid,e.validationState]);H1.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:u,selectedDateDescription:o});let[l,f]=C.useState(!1),d=e.isDisabled||t.isNextVisibleRangeInvalid();d&&l&&(f(!1),t.setFocused(!0));let[h,p]=C.useState(!1),g=e.isDisabled||t.isPreviousVisibleRangeInvalid();g&&h&&(p(!1),t.setFocused(!0));let y=cu({id:e.id,"aria-label":[e["aria-label"],a].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:ft(r,y,{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:d,onFocusChange:f},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:g,onFocusChange:p},errorMessageProps:{id:u},title:i}}function $W(e,t){return s6(e,t)}function xW(e,t,n){let r=s6(e,t),i=C.useRef(!1),a=C.useRef(typeof window<"u"?window:null);return bi(a,"pointerdown",u=>{i.current=u.width===0&&u.height===0}),bi(a,"pointerup",u=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let l=u.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(l)||!l.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=u=>{n.current&&(!u.relatedTarget||!n.current.contains(u.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},bi(n,"touchmove",u=>{t.isDragging&&u.preventDefault()},{passive:!1,capture:!0}),r}function wW(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end,firstDayOfWeek:i}=e,{direction:a}=Sn(),o=y=>{switch(y.key){case"Enter":case" ":y.preventDefault(),t.selectFocusedDate();break;case"PageUp":y.preventDefault(),y.stopPropagation(),t.focusPreviousSection(y.shiftKey);break;case"PageDown":y.preventDefault(),y.stopPropagation(),t.focusNextSection(y.shiftKey);break;case"End":y.preventDefault(),y.stopPropagation(),t.focusSectionEnd();break;case"Home":y.preventDefault(),y.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":y.preventDefault(),y.stopPropagation(),a==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":y.preventDefault(),y.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":y.preventDefault(),y.stopPropagation(),a==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":y.preventDefault(),y.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(y.preventDefault(),t.setAnchorDate(null));break}},u=l0(n,r,t.timeZone,!0),{ariaLabel:l,ariaLabelledBy:f}=H1.get(t),d=cu({"aria-label":[l,u].filter(Boolean).join(", "),"aria-labelledby":f}),h=$i({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:p}=Sn(),g=C.useMemo(()=>{let y=yc(sp(t.timeZone),p,i);return[...new Array(7).keys()].map($=>{let b=y.add({days:$}).toDate(t.timeZone);return h.format(b)})},[p,t.timeZone,h,i]);return{gridProps:ft(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:g}}function DW(e){return e&&e.__esModule?e.default:e}function CW(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:a,selectedDateDescription:o}=H1.get(t),u=Ri(DW(qc),"@react-aria/calendar"),l=$i({weekday:"long",day:"numeric",month:"long",year:"numeric",era:xc(r),timeZone:t.timeZone}),f=t.isSelected(r),d=t.isCellFocused(r);i=i||t.isCellDisabled(r);let h=t.isCellUnavailable(r),p=!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&&on(t.value,r));g&&(f=!0),r=TA(r,e0);let y=C.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),$=GA(r,t.timeZone),D=C.useMemo(()=>{let O="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(on(r,t.value.start)||on(r,t.value.end))&&(O=o+", "),O+=l.format(y),$?O=u.format(f?"todayDateSelected":"todayDate",{date:O}):f&&(O=u.format("dateSelected",{date:O})),t.minValue&&on(r,t.minValue)?O+=", "+u.format("minimumDate"):t.maxValue&&on(r,t.maxValue)&&(O+=", "+u.format("maximumDate")),O},[l,y,u,f,$,r,t,o]),b="";"anchorDate"in t&&d&&!t.isReadOnly&&p&&(t.anchorDate?b=u.format("finishRangeSelectionPrompt"):b=u.format("startRangeSelectionPrompt"));let v=Lc(b),w=C.useRef(!1),T=C.useRef(!1),E=C.useRef(void 0),{pressProps:A,isPressed:M}=Nc({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!p||t.isReadOnly,onPressStart(O){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(O.pointerType==="mouse"||O.pointerType==="touch")){if(t.highlightedRange&&!g){if(on(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),T.current=!0;return}else if(on(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),T.current=!0;return}}let Z=()=>{t.setDragging(!0),E.current=void 0,t.selectDate(r),t.setFocusedDate(r),w.current=!0};O.pointerType==="touch"?E.current=setTimeout(Z,200):Z()}},onPressEnd(){T.current=!1,w.current=!1,clearTimeout(E.current),E.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(O){if(!t.isReadOnly&&("anchorDate"in t&&E.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(T.current)t.setAnchorDate(r);else if(t.anchorDate&&!w.current)t.selectDate(r),t.setFocusedDate(r);else if(O.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let Z=r.add({days:1});t.isInvalid(Z)&&(Z=r.subtract({days:1})),t.isInvalid(Z)||t.setFocusedDate(Z)}else O.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),S;i||(S=on(r,t.focusedDate)?0:-1),C.useEffect(()=>{d&&n.current&&(Ur(n.current),gc()!=="pointer"&&document.activeElement===n.current&&sh(n.current,{containingElement:rp(n.current)}))},[d,n]);let z=$i({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),j=C.useMemo(()=>z.formatToParts(y).find(O=>O.type==="day").value,[z,y]);return{cellProps:{role:"gridcell","aria-disabled":!p||void 0,"aria-selected":f||void 0,"aria-invalid":g||void 0},buttonProps:ft(A,{onFocus(){i||t.setFocusedDate(r)},tabIndex:S,role:"button","aria-disabled":!p||void 0,"aria-label":D,"aria-invalid":g||void 0,"aria-describedby":[g?a:void 0,v["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(O){"highlightDate"in t&&(O.pointerType!=="touch"||t.isDragging)&&p&&t.highlightDate(r)},onPointerDown(O){"releasePointerCapture"in O.target&&O.target.releasePointerCapture(O.pointerId)},onContextMenu(O){O.preventDefault()}}),isPressed:M,isFocused:d,isSelected:f,isDisabled:i,isUnavailable:h,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:g,formattedDate:j}}const lp={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},u6={...lp,customError:!0,valid:!1},Eo={isInvalid:!1,validationDetails:lp,validationErrors:[]},EW=C.createContext({}),hu="__formValidationState"+Date.now();function Wc(e){if(e[hu]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[hu];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return SW(e)}function SW(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:a,validate:o,validationBehavior:u="aria"}=e;n&&(t||(t=n==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:u6}:null,f=C.useMemo(()=>{if(!o||i==null)return null;let j=TW(o,i);return bD(j)},[o,i]);a!=null&&a.validationDetails.valid&&(a=void 0);let d=C.useContext(EW),h=C.useMemo(()=>r?Array.isArray(r)?r.flatMap(j=>f0(d[j])):f0(d[r]):[],[d,r]),[p,g]=C.useState(d),[y,$]=C.useState(!1);d!==p&&(g(d),$(!1));let D=C.useMemo(()=>bD(y?[]:h),[y,h]),b=C.useRef(Eo),[v,w]=C.useState(Eo),T=C.useRef(Eo),E=()=>{if(!A)return;M(!1);let j=f||a||b.current;Tg(j,T.current)||(T.current=j,w(j))},[A,M]=C.useState(!1);return C.useEffect(E),{realtimeValidation:l||D||f||a||Eo,displayValidation:u==="native"?l||D||v:l||D||f||a||v,updateValidation(j){u==="aria"&&!Tg(v,j)?w(j):b.current=j},resetValidation(){let j=Eo;Tg(j,T.current)||(T.current=j,w(j)),u==="native"&&M(!1),$(!0)},commitValidation(){u==="native"&&M(!0),$(!0)}}}function f0(e){return e?Array.isArray(e)?e:[e]:[]}function TW(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return f0(n)}return[]}function bD(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:u6}:null}function Tg(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 gh(...e){let t=new Set,n=!1,r={...lp};for(let o of e){var i,a;for(let u of o.validationErrors)t.add(u);n||(n=o.isInvalid);for(let u in r)(i=r)[a=u]||(i[a]=o.validationDetails[u])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function l6(e,t,n){let{validationBehavior:r,focus:i}=e;Ct(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){let l=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(l),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(PW(n.current))}});let a=Ht(()=>{t.resetValidation()}),o=Ht(l=>{var f;t.displayValidation.isInvalid||t.commitValidation();let d=n==null||(f=n.current)===null||f===void 0?void 0:f.form;if(!l.defaultPrevented&&n&&d&&_W(d)===n.current){var h;i?i():(h=n.current)===null||h===void 0||h.focus(),BA("keyboard")}l.preventDefault()}),u=Ht(()=>{t.commitValidation()});C.useEffect(()=>{let l=n==null?void 0:n.current;if(!l)return;let f=l.form;return l.addEventListener("invalid",o),l.addEventListener("change",u),f==null||f.addEventListener("reset",a),()=>{l.removeEventListener("invalid",o),l.removeEventListener("change",u),f==null||f.removeEventListener("reset",a)}},[n,o,u,a,r])}function AW(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 PW(e){return{isInvalid:!e.validity.valid,validationDetails:AW(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function _W(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function cp(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a="label"}=e;t=Gn(t);let o=Gn(),u={};n?(r=r?`${o} ${r}`:o,u={id:o,htmlFor:a==="label"?t:void 0}):!r&&!i&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=cu({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:u,fieldProps:l}}function fp(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:o}=cp(e),u=lu([!!t,!!n,r,i]),l=lu([!!t,!!n,r,i]);return o=ft(o,{"aria-describedby":[u,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:o,descriptionProps:{id:u},errorMessageProps:{id:l}}}const RW=0,OW=100,MW=1;function FW(e){const{isDisabled:t=!1,minValue:n=RW,maxValue:r=OW,numberFormatter:i,step:a=MW,orientation:o="horizontal"}=e;let u=C.useMemo(()=>{let N=(r-n)/10;return N=Pl(N,0,N+a,a),Math.max(N,a)},[a,r,n]),l=C.useCallback(N=>N==null?void 0:N.map((ne,ie)=>{let ce=ie===0?n:N[ie-1],xe=ie===N.length-1?r:N[ie+1];return Pl(ne,ce,xe,a)}),[n,r,a]),f=C.useMemo(()=>l(xD(e.value)),[e.value]),d=C.useMemo(()=>{var N;return l((N=xD(e.defaultValue))!==null&&N!==void 0?N:[n])},[e.defaultValue,n]),h=wD(e.value,e.defaultValue,e.onChange),p=wD(e.value,e.defaultValue,e.onChangeEnd);const[g,y]=rr(f,d,h),[$,D]=C.useState(new Array(g.length).fill(!1)),b=C.useRef(new Array(g.length).fill(!0)),[v,w]=C.useState(void 0),T=C.useRef(g),E=C.useRef($);let A=N=>{T.current=N,y(N)},M=N=>{E.current=N,D(N)};function S(N){return(N-n)/(r-n)}function z(N){return N===0?n:g[N-1]}function j(N){return N===g.length-1?r:g[N+1]}function O(N){return b.current[N]}function Z(N,ne){b.current[N]=ne}function R(N,ne){if(t||!O(N))return;const ie=z(N),ce=j(N);ne=Pl(ne,ie,ce,a);let xe=$D(T.current,N,ne);A(xe)}function V(N,ne){if(t||!O(N))return;ne&&(T.current=g);const ie=E.current[N];E.current=$D(E.current,N,ne),M(E.current),p&&ie&&!E.current.some(Boolean)&&p(T.current)}function W(N){return i.format(N)}function L(N,ne){R(N,_(ne))}function k(N){return Math.round((N-n)/a)*a+n}function _(N){const ne=N*(r-n)+n;return fu(k(ne),n,r)}function H(N,ne=1){let ie=Math.max(ne,a);R(N,Pl(g[N]+ie,n,r,a))}function U(N,ne=1){let ie=Math.max(ne,a);R(N,Pl(g[N]-ie,n,r,a))}return{values:g,getThumbValue:N=>g[N],setThumbValue:R,setThumbPercent:L,isThumbDragging:N=>$[N],setThumbDragging:V,focusedThumb:v,setFocusedThumb:w,getThumbPercent:N=>S(g[N]),getValuePercent:S,getThumbValueLabel:N=>W(g[N]),getFormattedValue:W,getThumbMinValue:z,getThumbMaxValue:j,getPercentValue:_,isThumbEditable:O,setThumbEditable:Z,incrementThumb:H,decrementThumb:U,step:a,pageSize:u,orientation:o,isDisabled:t}}function $D(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function xD(e){if(e!=null)return Array.isArray(e)?e:[e]}function wD(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}const DD={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 kW(e={}){let{style:t,isFocusable:n}=e,[r,i]=C.useState(!1),{focusWithinProps:a}=Pu({isDisabled:!n,onFocusWithinChange:u=>i(u)}),o=C.useMemo(()=>r?t:t?{...DD,...t}:DD,[r]);return{visuallyHiddenProps:{...a,style:o}}}function IW(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:o}=kW(e);return C.createElement(n,ft(a,o),t)}const G1=new WeakMap;function d0(e,t){let n=G1.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function BW(e,t,n){let{labelProps:r,fieldProps:i}=cp(e),a=e.orientation==="vertical";var o;G1.set(t,{id:(o=r.id)!==null&&o!==void 0?o:i.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:u}=Sn(),{addGlobalListener:l,removeGlobalListener:f}=Au();const d=C.useRef(null),h=u==="rtl",p=C.useRef(null),{moveProps:g}=VA({onMoveStart(){p.current=null},onMove({deltaX:b,deltaY:v}){if(!n.current)return;let{height:w,width:T}=n.current.getBoundingClientRect(),E=a?w:T;p.current==null&&d.current!=null&&(p.current=t.getThumbPercent(d.current)*E);let A=a?v:b;if((a||h)&&(A=-A),p.current+=A,d.current!=null&&n.current){const M=fu(p.current/E,0,1);t.setThumbPercent(d.current,M)}},onMoveEnd(){d.current!=null&&(t.setThumbDragging(d.current,!1),d.current=null)}});let y=C.useRef(void 0),$=(b,v,w,T)=>{if(n.current&&!e.isDisabled&&t.values.every((E,A)=>!t.isThumbDragging(A))){let{height:E,width:A,top:M,left:S}=n.current.getBoundingClientRect(),z=a?E:A,R=((a?T:w)-(a?M:S))/z;(u==="rtl"||a)&&(R=1-R);let V=t.getPercentValue(R),W,L=t.values.findIndex(k=>V-k<0);if(L===0)W=L;else if(L===-1)W=t.values.length-1;else{let k=t.values[L-1],_=t.values[L];Math.abs(k-V)<Math.abs(_-V)?W=L-1:W=L}W>=0&&t.isThumbEditable(W)?(b.preventDefault(),d.current=W,t.setFocusedThumb(W),y.current=v,t.setThumbDragging(d.current,!0),t.setThumbValue(W,V),l(window,"mouseup",D,!1),l(window,"touchend",D,!1),l(window,"pointerup",D,!1)):d.current=null}},D=b=>{var v,w;((w=b.pointerId)!==null&&w!==void 0?w:(v=b.changedTouches)===null||v===void 0?void 0:v[0].identifier)===y.current&&(d.current!=null&&(t.setThumbDragging(d.current,!1),d.current=null),f(window,"mouseup",D,!1),f(window,"touchend",D,!1),f(window,"pointerup",D,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var b;(b=document.getElementById(d0(t,0)))===null||b===void 0||b.focus(),BA("keyboard")}),{labelProps:r,groupProps:{role:"group",...i},trackProps:ft({onMouseDown(b){b.button!==0||b.altKey||b.ctrlKey||b.metaKey||$(b,void 0,b.clientX,b.clientY)},onPointerDown(b){b.pointerType==="mouse"&&(b.button!==0||b.altKey||b.ctrlKey||b.metaKey)||$(b,b.pointerId,b.clientX,b.clientY)},onTouchStart(b){$(b,b.changedTouches[0].identifier,b.changedTouches[0].clientX,b.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},g),outputProps:{htmlFor:t.values.map((b,v)=>d0(t,v)).join(" "),"aria-live":"off"}}}function LW(e,t){let{index:n=0,isRequired:r,validationState:i,isInvalid:a,trackRef:o,inputRef:u,orientation:l=t.orientation,name:f}=e,d=e.isDisabled||t.isDisabled,h=l==="vertical",{direction:p}=Sn(),{addGlobalListener:g,removeGlobalListener:y}=Au(),$=G1.get(t);var D;const{labelProps:b,fieldProps:v}=cp({...e,id:d0(t,n),"aria-labelledby":`${$.id} ${(D=e["aria-labelledby"])!==null&&D!==void 0?D:""}`.trim()}),w=t.values[n],T=C.useCallback(()=>{u.current&&Ur(u.current)},[u]),E=t.focusedThumb===n;C.useEffect(()=>{E&&T()},[E,T]);let A=p==="rtl",M=C.useRef(null),{keyboardProps:S}=LA({onKeyDown(L){let{getThumbMaxValue:k,getThumbMinValue:_,decrementThumb:H,incrementThumb:U,setThumbValue:N,setThumbDragging:ne,pageSize:ie}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(L.key)){L.continuePropagation();return}switch(L.preventDefault(),ne(n,!0),L.key){case"PageUp":U(n,ie);break;case"PageDown":H(n,ie);break;case"Home":N(n,_(n));break;case"End":N(n,k(n));break}ne(n,!1)}}),{moveProps:z}=VA({onMoveStart(){M.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:L,deltaY:k,pointerType:_,shiftKey:H}){const{getThumbPercent:U,setThumbPercent:N,decrementThumb:ne,incrementThumb:ie,step:ce,pageSize:xe}=t;if(!o.current)return;let{width:De,height:Ee}=o.current.getBoundingClientRect(),J=h?Ee:De;if(M.current==null&&(M.current=U(n)*J),_==="keyboard")L>0&&A||L<0&&!A||k>0?ne(n,H?xe:ce):ie(n,H?xe:ce);else{let ye=h?k:L;(h||A)&&(ye=-ye),M.current+=ye,N(n,fu(M.current/J,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!d);const{focusableProps:j}=k1(ft(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),u);let O=C.useRef(void 0),Z=L=>{T(),O.current=L,t.setThumbDragging(n,!0),g(window,"mouseup",R,!1),g(window,"touchend",R,!1),g(window,"pointerup",R,!1)},R=L=>{var k,_;((_=L.pointerId)!==null&&_!==void 0?_:(k=L.changedTouches)===null||k===void 0?void 0:k[0].identifier)===O.current&&(T(),t.setThumbDragging(n,!1),y(window,"mouseup",R,!1),y(window,"touchend",R,!1),y(window,"pointerup",R,!1))},V=t.getThumbPercent(n);(h||p==="rtl")&&(V=1-V);let W=d?{}:ft(S,z,{onMouseDown:L=>{L.button!==0||L.altKey||L.ctrlKey||L.metaKey||Z()},onPointerDown:L=>{L.button!==0||L.altKey||L.ctrlKey||L.metaKey||Z(L.pointerId)},onTouchStart:L=>{Z(L.changedTouches[0].identifier)}});return _1(u,w,L=>{t.setThumbValue(n,L)}),{inputProps:ft(j,v,{type:"range",tabIndex:d?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:w,name:f,disabled:d,"aria-orientation":l,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":a||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:L=>{t.setThumbValue(n,parseFloat(L.target.value))}}),thumbProps:{...W,style:{position:"absolute",[h?"top":"left"]:`${V*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:b,isDragging:t.isThumbDragging(n),isDisabled:d,isFocused:E}}function VW(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:a=!1,type:o="text",validationBehavior:u="aria"}=e,[l,f]=rr(e.value,e.defaultValue||"",e.onChange),{focusableProps:d}=k1(e,t),h=Wc({...e,value:l}),{isInvalid:p,validationErrors:g,validationDetails:y}=h.displayValidation,{labelProps:$,fieldProps:D,descriptionProps:b,errorMessageProps:v}=fp({...e,isInvalid:p,errorMessage:e.errorMessage||g}),w=ua(e,{labelable:!0});const T={type:o,pattern:e.pattern};return _1(t,l,f),l6(e,h,t),C.useEffect(()=>{if(t.current instanceof qa(t.current).HTMLTextAreaElement){let E=t.current;Object.defineProperty(E,"defaultValue",{get:()=>E.value,set:()=>{},configurable:!0})}},[t]),{labelProps:$,inputProps:ft(w,n==="input"?T:void 0,{disabled:r,readOnly:a,required:i&&u==="native","aria-required":i&&u==="aria"||void 0,"aria-invalid":p||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:l,onChange:E=>f(E.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...d,...D}),descriptionProps:b,errorMessageProps:v,isInvalid:p,validationErrors:g,validationDetails:y}}var c6={};c6={Empty:"فارغ"};var f6={};f6={Empty:"Изпразни"};var d6={};d6={Empty:"Prázdné"};var h6={};h6={Empty:"Tom"};var p6={};p6={Empty:"Leer"};var m6={};m6={Empty:"Άδειο"};var g6={};g6={Empty:"Empty"};var y6={};y6={Empty:"Vacío"};var v6={};v6={Empty:"Tühjenda"};var b6={};b6={Empty:"Tyhjä"};var $6={};$6={Empty:"Vide"};var x6={};x6={Empty:"ריק"};var w6={};w6={Empty:"Prazno"};var D6={};D6={Empty:"Üres"};var C6={};C6={Empty:"Vuoto"};var E6={};E6={Empty:"空"};var S6={};S6={Empty:"비어 있음"};var T6={};T6={Empty:"Tuščias"};var A6={};A6={Empty:"Tukšs"};var P6={};P6={Empty:"Tom"};var _6={};_6={Empty:"Leeg"};var R6={};R6={Empty:"Pusty"};var O6={};O6={Empty:"Vazio"};var M6={};M6={Empty:"Vazio"};var F6={};F6={Empty:"Gol"};var k6={};k6={Empty:"Не заполнено"};var I6={};I6={Empty:"Prázdne"};var B6={};B6={Empty:"Prazen"};var L6={};L6={Empty:"Prazno"};var V6={};V6={Empty:"Tomt"};var N6={};N6={Empty:"Boş"};var j6={};j6={Empty:"Пусто"};var K6={};K6={Empty:"空"};var U6={};U6={Empty:"空白"};var z6={};z6={"ar-AE":c6,"bg-BG":f6,"cs-CZ":d6,"da-DK":h6,"de-DE":p6,"el-GR":m6,"en-US":g6,"es-ES":y6,"et-EE":v6,"fi-FI":b6,"fr-FR":$6,"he-IL":x6,"hr-HR":w6,"hu-HU":D6,"it-IT":C6,"ja-JP":E6,"ko-KR":S6,"lt-LT":T6,"lv-LV":A6,"nb-NO":P6,"nl-NL":_6,"pl-PL":R6,"pt-BR":O6,"pt-PT":M6,"ro-RO":F6,"ru-RU":k6,"sk-SK":I6,"sl-SI":B6,"sr-SP":L6,"sv-SE":V6,"tr-TR":N6,"uk-UA":j6,"zh-CN":K6,"zh-TW":U6};function NW(e){return e&&e.__esModule?e.default:e}function jW(e){const t=C.useRef(void 0);let{value:n,textValue:r,minValue:i,maxValue:a,isDisabled:o,isReadOnly:u,isRequired:l,onIncrement:f,onIncrementPage:d,onDecrement:h,onDecrementPage:p,onDecrementToMin:g,onIncrementToMax:y}=e;const $=Ri(NW(z6),"@react-aria/spinbutton"),D=()=>clearTimeout(t.current);C.useEffect(()=>()=>D(),[]);let b=O=>{if(!(O.ctrlKey||O.metaKey||O.shiftKey||O.altKey||u))switch(O.key){case"PageUp":if(d){O.preventDefault(),d==null||d();break}case"ArrowUp":case"Up":f&&(O.preventDefault(),f==null||f());break;case"PageDown":if(p){O.preventDefault(),p==null||p();break}case"ArrowDown":case"Down":h&&(O.preventDefault(),h==null||h());break;case"Home":g&&(O.preventDefault(),g==null||g());break;case"End":y&&(O.preventDefault(),y==null||y());break}},v=C.useRef(!1),w=()=>{v.current=!0},T=()=>{v.current=!1},E=r===""?$.format("Empty"):(r||`${n}`).replace("-","−");C.useEffect(()=>{v.current&&(yW("assertive"),Xs(E,"assertive"))},[E]);const A=Ht(O=>{D(),f==null||f(),t.current=window.setTimeout(()=>{(a===void 0||isNaN(a)||n===void 0||isNaN(n)||n<a)&&A(60)},O)}),M=Ht(O=>{D(),h==null||h(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&M(60)},O)});let S=O=>{O.preventDefault()},{addGlobalListener:z,removeAllGlobalListeners:j}=Au();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":E,"aria-valuemin":i,"aria-valuemax":a,"aria-disabled":o||void 0,"aria-readonly":u||void 0,"aria-required":l||void 0,onKeyDown:b,onFocus:w,onBlur:T},incrementButtonProps:{onPressStart:()=>{A(400),z(window,"contextmenu",S)},onPressEnd:()=>{D(),j()},onFocus:w,onBlur:T},decrementButtonProps:{onPressStart:()=>{M(400),z(window,"contextmenu",S)},onPressEnd:()=>{D(),j()},onFocus:w,onBlur:T}}}var q6={};q6={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 W6={};W6={buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`};var H6={};H6={buttonLabel:"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 G6={};G6={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 Y6={};Y6={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 Z6={};Z6={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`};var J6={};J6={focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var X6={};X6={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 Q6={};Q6={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 e_={};e_={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 t_={};t_={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 n_={};n_={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 r_={};r_={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 i_={};i_={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 a_={};a_={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 o_={};o_={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 s_={};s_={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 u_={};u_={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 l_={};l_={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 c_={};c_={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 f_={};f_={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 d_={};d_={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 h_={};h_={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 p_={};p_={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 m_={};m_={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 g_={};g_={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 y_={};y_={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 v_={};v_={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 b_={};b_={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 $_={};$_={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 x_={};x_={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 w_={};w_={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 D_={};D_={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 C_={};C_={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 E_={};E_={"ar-AE":q6,"bg-BG":W6,"cs-CZ":H6,"da-DK":G6,"de-DE":Y6,"el-GR":Z6,"en-US":J6,"es-ES":X6,"et-EE":Q6,"fi-FI":e_,"fr-FR":t_,"he-IL":n_,"hr-HR":r_,"hu-HU":i_,"it-IT":a_,"ja-JP":o_,"ko-KR":s_,"lt-LT":u_,"lv-LV":l_,"nb-NO":c_,"nl-NL":f_,"pl-PL":d_,"pt-BR":h_,"pt-PT":p_,"ro-RO":m_,"ru-RU":g_,"sk-SK":y_,"sl-SI":v_,"sr-SP":b_,"sv-SE":$_,"tr-TR":x_,"uk-UA":w_,"zh-CN":D_,"zh-TW":C_};const xi={top:"top",bottom:"top",left:"left",right:"left"},yh={top:"bottom",bottom:"top",left:"right",right:"left"},KW={top:"left",left:"top"},h0={top:"height",left:"width"},S_={width:"totalWidth",height:"totalHeight"},md={};let un=typeof document<"u"?window.visualViewport:null;function CD(e){let t=0,n=0,r=0,i=0,a=0,o=0,u={};var l;let f=((l=un==null?void 0:un.scale)!==null&&l!==void 0?l:1)>1;if(e.tagName==="BODY"){let y=document.documentElement;r=y.clientWidth,i=y.clientHeight;var d;t=(d=un==null?void 0:un.width)!==null&&d!==void 0?d:r;var h;n=(h=un==null?void 0:un.height)!==null&&h!==void 0?h:i,u.top=y.scrollTop||e.scrollTop,u.left=y.scrollLeft||e.scrollLeft,un&&(a=un.offsetTop,o=un.offsetLeft)}else({width:t,height:n,top:a,left:o}=Qs(e)),u.top=e.scrollTop,u.left=e.scrollLeft,r=t,i=n;if(A1()&&(e.tagName==="BODY"||e.tagName==="HTML")&&f){u.top=0,u.left=0;var p;a=(p=un==null?void 0:un.pageTop)!==null&&p!==void 0?p:0;var g;o=(g=un==null?void 0:un.pageLeft)!==null&&g!==void 0?g:0}return{width:t,height:n,totalWidth:r,totalHeight:i,scroll:u,top:a,left:o}}function UW(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function ED(e,t,n,r,i,a,o){var u;let l=(u=i.scroll[e])!==null&&u!==void 0?u:0,f=r[h0[e]],d=r.scroll[xi[e]]+a,h=f+r.scroll[xi[e]]-a,p=t-l+o[e]-r[xi[e]],g=t-l+n+o[e]-r[xi[e]];return p<d?d-p:g>h?Math.max(h-g,d-p):0}function zW(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 SD(e){if(md[e])return md[e];let[t,n]=e.split(" "),r=xi[t]||"right",i=KW[r];xi[n]||(n="center");let a=h0[r],o=h0[i];return md[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:a,crossSize:o},md[e]}function Ag(e,t,n,r,i,a,o,u,l,f){let{placement:d,crossPlacement:h,axis:p,crossAxis:g,size:y,crossSize:$}=r,D={};var b;D[g]=(b=e[g])!==null&&b!==void 0?b:0;var v,w,T,E;h==="center"?D[g]+=(((v=e[$])!==null&&v!==void 0?v:0)-((w=n[$])!==null&&w!==void 0?w:0))/2:h!==g&&(D[g]+=((T=e[$])!==null&&T!==void 0?T:0)-((E=n[$])!==null&&E!==void 0?E:0)),D[g]+=a;const A=e[g]-n[$]+l+f,M=e[g]+e[$]-l-f;if(D[g]=fu(D[g],A,M),d===p){const S=u?o[y]:t[S_[y]];D[yh[p]]=Math.floor(S-e[p]+i)}else D[p]=Math.floor(e[p]+e[y]+i);return D}function qW(e,t,n,r,i,a,o,u){const l=r?n.height:t[S_.height];var f;let d=e.top!=null?n.top+e.top:n.top+(l-((f=e.bottom)!==null&&f!==void 0?f:0)-o);var h,p,g,y,$,D;let b=u!=="top"?Math.max(0,t.height+t.top+((h=t.scroll.top)!==null&&h!==void 0?h:0)-d-(((p=i.top)!==null&&p!==void 0?p:0)+((g=i.bottom)!==null&&g!==void 0?g:0)+a)):Math.max(0,d+o-(t.top+((y=t.scroll.top)!==null&&y!==void 0?y:0))-((($=i.top)!==null&&$!==void 0?$:0)+((D=i.bottom)!==null&&D!==void 0?D:0)+a));return Math.min(t.height-a*2,b)}function TD(e,t,n,r,i,a){let{placement:o,axis:u,size:l}=a;var f,d;if(o===u)return Math.max(0,n[u]-e[u]-((f=e.scroll[u])!==null&&f!==void 0?f:0)+t[u]-((d=r[u])!==null&&d!==void 0?d:0)-r[yh[u]]-i);var h;return Math.max(0,e[l]+e[u]+e.scroll[u]-t[u]-n[u]-n[l]-((h=r[u])!==null&&h!==void 0?h:0)-r[yh[u]]-i)}function WW(e,t,n,r,i,a,o,u,l,f,d,h,p,g,y,$){let D=SD(e),{size:b,crossAxis:v,crossSize:w,placement:T,crossPlacement:E}=D,A=Ag(t,u,n,D,d,h,f,p,y,$),M=d,S=TD(u,f,t,i,a+d,D);if(o&&r[b]>S){let ce=SD(`${yh[T]} ${E}`),xe=Ag(t,u,n,ce,d,h,f,p,y,$);TD(u,f,t,i,a+d,ce)>S&&(D=ce,A=xe,M=d)}let z="bottom";D.axis==="top"?D.placement==="top"?z="top":D.placement==="bottom"&&(z="bottom"):D.crossAxis==="top"&&(D.crossPlacement==="top"?z="bottom":D.crossPlacement==="bottom"&&(z="top"));let j=ED(v,A[v],n[w],u,l,a,f);A[v]+=j;let O=qW(A,u,f,p,i,a,n.height,z);g&&g<O&&(O=g),n.height=Math.min(n.height,O),A=Ag(t,u,n,D,M,h,f,p,y,$),j=ED(v,A[v],n[w],u,l,a,f),A[v]+=j;let Z={},R=t[v]+.5*t[w]-A[v]-i[xi[v]];const V=y/2+$;var W,L,k,_;const H=xi[v]==="left"?((W=i.left)!==null&&W!==void 0?W:0)+((L=i.right)!==null&&L!==void 0?L:0):((k=i.top)!==null&&k!==void 0?k:0)+((_=i.bottom)!==null&&_!==void 0?_:0),U=n[w]-H-y/2-$,N=t[v]+y/2-(A[v]+i[xi[v]]),ne=t[v]+t[w]-y/2-(A[v]+i[xi[v]]),ie=fu(R,N,ne);return Z[v]=fu(ie,V,U),{position:A,maxHeight:O,arrowOffsetLeft:Z.left,arrowOffsetTop:Z.top,placement:D.placement}}function HW(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:a,shouldFlip:o,boundaryElement:u,offset:l,crossOffset:f,maxHeight:d,arrowSize:h=0,arrowBoundaryOffset:p=0}=e,g=r instanceof HTMLElement?GW(r):document.documentElement,y=g===document.documentElement;const $=window.getComputedStyle(g).position;let D=!!$&&$!=="static",b=y?Qs(n):AD(n,g);if(!y){let{marginTop:Z,marginLeft:R}=window.getComputedStyle(n);b.top+=parseInt(Z,10)||0,b.left+=parseInt(R,10)||0}let v=Qs(r),w=zW(r);var T,E;v.width+=((T=w.left)!==null&&T!==void 0?T:0)+((E=w.right)!==null&&E!==void 0?E:0);var A,M;v.height+=((A=w.top)!==null&&A!==void 0?A:0)+((M=w.bottom)!==null&&M!==void 0?M:0);let S=UW(i),z=CD(u),j=CD(g),O=u.tagName==="BODY"?Qs(g):AD(g,u);return g.tagName==="HTML"&&u.tagName==="BODY"&&(j.scroll.top=0,j.scroll.left=0),WW(t,b,v,S,w,a,o,z,j,O,l,f,D,d,h,p)}function Qs(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),{scrollTop:a,scrollLeft:o,clientTop:u,clientLeft:l}=document.documentElement;return{top:t+a-u,left:n+o-l,width:r,height:i}}function AD(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:i,left:a,width:o,height:u}=e.getBoundingClientRect();r={top:i,left:a,width:o,height:u}}else{r=Qs(e);let i=Qs(t),a=window.getComputedStyle(t);i.top+=(parseInt(a.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(a.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 GW(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!PD(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!PD(t);)t=t.parentElement;return t||document.documentElement}function PD(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 T_=new WeakMap;function YW(e){let{triggerRef:t,isOpen:n,onClose:r}=e;C.useEffect(()=>{if(!n||r===null)return;let i=a=>{let o=a.target;if(!t.current||o instanceof Node&&!o.contains(t.current)||a.target instanceof HTMLInputElement||a.target instanceof HTMLTextAreaElement)return;let u=r||T_.get(t.current);u&&u()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let zt=typeof document<"u"?window.visualViewport:null;function ZW(e){let{direction:t}=Sn(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:a=i,placement:o="bottom",containerPadding:u=12,shouldFlip:l=!0,boundaryElement:f=typeof document<"u"?document.body:null,offset:d=0,crossOffset:h=0,shouldUpdatePosition:p=!0,isOpen:g=!0,onClose:y,maxHeight:$,arrowBoundaryOffset:D=0}=e,[b,v]=C.useState(null),w=[p,o,i.current,r.current,a.current,u,l,f,d,h,g,t,$,D,n],T=C.useRef(zt==null?void 0:zt.scale);C.useEffect(()=>{g&&(T.current=zt==null?void 0:zt.scale)},[g]);let E=C.useCallback(()=>{if(p===!1||!g||!i.current||!r.current||!f||(zt==null?void 0:zt.scale)!==T.current)return;let j=null;if(a.current&&a.current.contains(document.activeElement)){var O;let _=(O=document.activeElement)===null||O===void 0?void 0:O.getBoundingClientRect(),H=a.current.getBoundingClientRect();var Z;if(j={type:"top",offset:((Z=_==null?void 0:_.top)!==null&&Z!==void 0?Z:0)-H.top},j.offset>H.height/2){j.type="bottom";var R;j.offset=((R=_==null?void 0:_.bottom)!==null&&R!==void 0?R:0)-H.bottom}}let V=i.current;if(!$&&i.current){var W;V.style.top="0px",V.style.bottom="";var L;V.style.maxHeight=((L=(W=window.visualViewport)===null||W===void 0?void 0:W.height)!==null&&L!==void 0?L:window.innerHeight)+"px"}let k=HW({placement:XW(o,t),overlayNode:i.current,targetNode:r.current,scrollNode:a.current||i.current,padding:u,shouldFlip:l,boundaryElement:f,offset:d,crossOffset:h,maxHeight:$,arrowSize:n,arrowBoundaryOffset:D});if(k.position){if(V.style.top="",V.style.bottom="",V.style.left="",V.style.right="",Object.keys(k.position).forEach(_=>V.style[_]=k.position[_]+"px"),V.style.maxHeight=k.maxHeight!=null?k.maxHeight+"px":"",j&&document.activeElement&&a.current){let _=document.activeElement.getBoundingClientRect(),H=a.current.getBoundingClientRect(),U=_[j.type]-H[j.type];a.current.scrollTop+=U-j.offset}v(k)}},w);Ct(E,w),JW(E),Mw({ref:i,onResize:E}),Mw({ref:r,onResize:E});let A=C.useRef(!1);Ct(()=>{let j,O=()=>{A.current=!0,clearTimeout(j),j=setTimeout(()=>{A.current=!1},500),E()},Z=()=>{A.current&&O()};return zt==null||zt.addEventListener("resize",O),zt==null||zt.addEventListener("scroll",Z),()=>{zt==null||zt.removeEventListener("resize",O),zt==null||zt.removeEventListener("scroll",Z)}},[E]);let M=C.useCallback(()=>{A.current||y==null||y()},[y,A]);YW({triggerRef:r,isOpen:g,onClose:y&&M});var S,z;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...b==null?void 0:b.position,maxHeight:(S=b==null?void 0:b.maxHeight)!==null&&S!==void 0?S:"100vh"}},placement:(z=b==null?void 0:b.placement)!==null&&z!==void 0?z:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:b==null?void 0:b.arrowOffsetLeft,top:b==null?void 0:b.arrowOffsetTop}},updatePosition:E}}function JW(e){Ct(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function XW(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Hi=[];function QW(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:o=!1,shouldCloseOnInteractOutside:u}=e;C.useEffect(()=>(i&&Hi.push(t),()=>{let y=Hi.indexOf(t);y>=0&&Hi.splice(y,1)}),[i,t]);let l=()=>{Hi[Hi.length-1]===t&&n&&n()},f=y=>{(!u||u(y.target))&&Hi[Hi.length-1]===t&&(y.stopPropagation(),y.preventDefault())},d=y=>{(!u||u(y.target))&&(Hi[Hi.length-1]===t&&(y.stopPropagation(),y.preventDefault()),l())},h=y=>{y.key==="Escape"&&!o&&!y.nativeEvent.isComposing&&(y.stopPropagation(),y.preventDefault(),l())};kz({ref:t,onInteractOutside:a&&i?d:void 0,onInteractOutsideStart:f});let{focusWithinProps:p}=Pu({isDisabled:!r,onBlurWithin:y=>{!y.relatedTarget||zz(y.relatedTarget)||(!u||u(y.relatedTarget))&&(n==null||n())}}),g=y=>{y.target===y.currentTarget&&y.preventDefault()};return{overlayProps:{onKeyDown:h,...p},underlayProps:{onPointerDown:g}}}function eH(e,t,n){let{type:r}=e,{isOpen:i}=t;C.useEffect(()=>{n&&n.current&&T_.set(n.current,t.close)});let a;r==="menu"?a=!0:r==="listbox"&&(a="listbox");let o=Gn();return{triggerProps:{"aria-haspopup":a,"aria-expanded":i,"aria-controls":i?o:void 0,onPress:t.toggle},overlayProps:{id:o}}}const Pg=typeof document<"u"&&window.visualViewport,tH=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let gd=0,_g;function nH(e={}){let{isDisabled:t}=e;Ct(()=>{if(!t)return gd++,gd===1&&(Bc()?_g=iH():_g=rH()),()=>{gd--,gd===0&&_g()}},[t])}function rH(){return zo(Ls(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Ls(document.documentElement,"overflow","hidden"))}function iH(){let e,t,n=f=>{e=rp(f.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=Ls(e,"overscrollBehavior","contain"))},r=f=>{if(!e||e===document.documentElement||e===document.body){f.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&f.preventDefault()},i=()=>{t&&t()},a=f=>{let d=f.target;aH(d)&&(u(),d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",Pg&&(Pg.height<window.innerHeight?requestAnimationFrame(()=>{_D(d)}):Pg.addEventListener("resize",()=>_D(d),{once:!0}))}))},o=null,u=()=>{if(o)return;let f=()=>{window.scrollTo(0,0)},d=window.pageXOffset,h=window.pageYOffset;o=zo(Rl(window,"scroll",f),Ls(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Ls(document.documentElement,"overflow","hidden"),Ls(document.body,"marginTop",`-${h}px`),()=>{window.scrollTo(d,h)}),window.scrollTo(0,0)},l=zo(Rl(document,"touchstart",n,{passive:!1,capture:!0}),Rl(document,"touchmove",r,{passive:!1,capture:!0}),Rl(document,"touchend",i,{passive:!1,capture:!0}),Rl(document,"focus",a,!0));return()=>{t==null||t(),o==null||o(),l()}}function Ls(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Rl(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function _D(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=rp(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect().top,a=n.getBoundingClientRect().top;a>i+n.clientHeight&&(r.scrollTop+=a-i)}n=r.parentElement}}function aH(e){return e instanceof HTMLInputElement&&!tH.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let Ol=new WeakMap,gr=[];function A_(e,t=document.body){let n=new Set(e),r=new Set,i=l=>{for(let p of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(p);let f=p=>{if(n.has(p)||p.parentElement&&r.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let g of n)if(p.contains(g))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:f}),h=f(l);if(h===NodeFilter.FILTER_ACCEPT&&a(l),h!==NodeFilter.FILTER_REJECT){let p=d.nextNode();for(;p!=null;)a(p),p=d.nextNode()}},a=l=>{var f;let d=(f=Ol.get(l))!==null&&f!==void 0?f:0;l.getAttribute("aria-hidden")==="true"&&d===0||(d===0&&l.setAttribute("aria-hidden","true"),r.add(l),Ol.set(l,d+1))};gr.length&&gr[gr.length-1].disconnect(),i(t);let o=new MutationObserver(l=>{for(let f of l)if(!(f.type!=="childList"||f.addedNodes.length===0)&&![...n,...r].some(d=>d.contains(f.target))){for(let d of f.removedNodes)d instanceof Element&&(n.delete(d),r.delete(d));for(let d of f.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?n.add(d):d instanceof Element&&i(d)}});o.observe(t,{childList:!0,subtree:!0});let u={observe(){o.observe(t,{childList:!0,subtree:!0})},disconnect(){o.disconnect()}};return gr.push(u),()=>{o.disconnect();for(let l of r){let f=Ol.get(l);f!=null&&(f===1?(l.removeAttribute("aria-hidden"),Ol.delete(l)):Ol.set(l,f-1))}u===gr[gr.length-1]?(gr.pop(),gr.length&&gr[gr.length-1].observe()):gr.splice(gr.indexOf(u),1)}}function oH(e,t){let{triggerRef:n,popoverRef:r,isNonModal:i,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:o,...u}=e,{overlayProps:l,underlayProps:f}=QW({isOpen:t.isOpen&&!u["data-react-aria-top-layer"],onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:o},r),{overlayProps:d,arrowProps:h,placement:p}=ZW({...u,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:i?t.close:null});return nH({isDisabled:i||!t.isOpen}),Ct(()=>{if(t.isOpen&&!i&&r.current)return A_([r.current])},[i,t.isOpen,r]),{popoverProps:ft(l,d),arrowProps:h,underlayProps:f,placement:p}}const sH=C.createContext({});function uH(){var e;return(e=C.useContext(sH))!==null&&e!==void 0?e:{}}const P_=C.createContext(null);function lH(e){let t=S1(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,a]=C.useState(!1),o=C.useMemo(()=>({contain:i,setContain:a}),[i,a]),{getContainer:u}=uH();if(!e.portalContainer&&u&&(n=u()),!n)return null;let l=e.children;return e.disableFocusManagement||(l=C.createElement(Vz,{restoreFocus:!0,contain:i&&!r},l)),l=C.createElement(P_.Provider,{value:o},C.createElement(Tz,null,l)),Na.createPortal(l,n)}function cH(){let e=C.useContext(P_),t=e==null?void 0:e.setContain;Ct(()=>{t==null||t(!0)},[t])}const dp=new WeakMap;function fH(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function __(e,t){let n=dp.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${fH(t)}`}function p0(e){return kd()?e.altKey:e.ctrlKey}const dH=1e3;function hH(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=C.useRef({search:"",timeout:void 0}).current,a=o=>{let u=pH(o.key);if(!(!u||o.ctrlKey||o.metaKey||!o.currentTarget.contains(o.target))){if(u===" "&&i.search.trim().length>0&&(o.preventDefault(),"continuePropagation"in o||o.stopPropagation()),i.search+=u,t.getKeyForSearch!=null){let l=t.getKeyForSearch(i.search,n.focusedKey);l==null&&(l=t.getKeyForSearch(i.search)),l!=null&&(n.setFocusedKey(l),r&&r(l))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},dH)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:void 0}}}function pH(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function R_(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:a=!1,disallowEmptySelection:o=!1,disallowSelectAll:u=!1,selectOnFocus:l=t.selectionBehavior==="replace",disallowTypeAhead:f=!1,shouldUseVirtualFocus:d,allowsTabNavigation:h=!1,isVirtualized:p,scrollRef:g=r,linkBehavior:y="action"}=e,{direction:$}=Sn(),D=np(),b=R=>{var V;if(R.altKey&&R.key==="Tab"&&R.preventDefault(),!(!((V=r.current)===null||V===void 0)&&V.contains(R.target)))return;const W=(J,ye)=>{if(J!=null){if(t.isLink(J)&&y==="selection"&&l&&!p0(R)){var we;Na.flushSync(()=>{t.setFocusedKey(J,ye)});let me=(we=g.current)===null||we===void 0?void 0:we.querySelector(`[data-key="${CSS.escape(J.toString())}"]`),ue=t.getItemProps(J);me&&D.open(me,R,ue.href,ue.routerOptions);return}if(t.setFocusedKey(J,ye),t.isLink(J)&&y==="override")return;R.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(J):l&&!p0(R)&&t.replaceSelection(J)}};switch(R.key){case"ArrowDown":if(n.getKeyBelow){var L,k,_;let J=t.focusedKey!=null?(L=n.getKeyBelow)===null||L===void 0?void 0:L.call(n,t.focusedKey):(k=n.getFirstKey)===null||k===void 0?void 0:k.call(n);J==null&&a&&(J=(_=n.getFirstKey)===null||_===void 0?void 0:_.call(n,t.focusedKey)),J!=null&&(R.preventDefault(),W(J))}break;case"ArrowUp":if(n.getKeyAbove){var H,U,N;let J=t.focusedKey!=null?(H=n.getKeyAbove)===null||H===void 0?void 0:H.call(n,t.focusedKey):(U=n.getLastKey)===null||U===void 0?void 0:U.call(n);J==null&&a&&(J=(N=n.getLastKey)===null||N===void 0?void 0:N.call(n,t.focusedKey)),J!=null&&(R.preventDefault(),W(J))}break;case"ArrowLeft":if(n.getKeyLeftOf){var ne,ie,ce;let J=t.focusedKey!=null?(ne=n.getKeyLeftOf)===null||ne===void 0?void 0:ne.call(n,t.focusedKey):null;J==null&&a&&(J=$==="rtl"?(ie=n.getFirstKey)===null||ie===void 0?void 0:ie.call(n,t.focusedKey):(ce=n.getLastKey)===null||ce===void 0?void 0:ce.call(n,t.focusedKey)),J!=null&&(R.preventDefault(),W(J,$==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var xe,De,Ee;let J=t.focusedKey!=null?(xe=n.getKeyRightOf)===null||xe===void 0?void 0:xe.call(n,t.focusedKey):null;J==null&&a&&(J=$==="rtl"?(De=n.getLastKey)===null||De===void 0?void 0:De.call(n,t.focusedKey):(Ee=n.getFirstKey)===null||Ee===void 0?void 0:Ee.call(n,t.focusedKey)),J!=null&&(R.preventDefault(),W(J,$==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&R.shiftKey)return;R.preventDefault();let J=n.getFirstKey(t.focusedKey,ks(R));t.setFocusedKey(J),J!=null&&(ks(R)&&R.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(J):l&&t.replaceSelection(J))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&R.shiftKey)return;R.preventDefault();let J=n.getLastKey(t.focusedKey,ks(R));t.setFocusedKey(J),J!=null&&(ks(R)&&R.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(J):l&&t.replaceSelection(J))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let J=n.getKeyPageBelow(t.focusedKey);J!=null&&(R.preventDefault(),W(J))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let J=n.getKeyPageAbove(t.focusedKey);J!=null&&(R.preventDefault(),W(J))}break;case"a":ks(R)&&t.selectionMode==="multiple"&&u!==!0&&(R.preventDefault(),t.selectAll());break;case"Escape":!o&&t.selectedKeys.size!==0&&(R.stopPropagation(),R.preventDefault(),t.clearSelection());break;case"Tab":if(!h){if(R.shiftKey)r.current.focus();else{let J=qn(r.current,{tabbable:!0}),ye,we;do we=J.lastChild(),we&&(ye=we);while(we);ye&&!ye.contains(document.activeElement)&&Ur(ye)}break}}},v=C.useRef({top:0,left:0});bi(g,"scroll",p?void 0:()=>{var R,V,W,L;v.current={top:(W=(R=g.current)===null||R===void 0?void 0:R.scrollTop)!==null&&W!==void 0?W:0,left:(L=(V=g.current)===null||V===void 0?void 0:V.scrollLeft)!==null&&L!==void 0?L:0}});let w=R=>{if(t.isFocused){R.currentTarget.contains(R.target)||t.setFocused(!1);return}if(R.currentTarget.contains(R.target)){if(t.setFocused(!0),t.focusedKey==null){var V,W;let _=U=>{U!=null&&(t.setFocusedKey(U),l&&t.replaceSelection(U))},H=R.relatedTarget;var L,k;H&&R.currentTarget.compareDocumentPosition(H)&Node.DOCUMENT_POSITION_FOLLOWING?_((L=t.lastSelectedKey)!==null&&L!==void 0?L:(V=n.getLastKey)===null||V===void 0?void 0:V.call(n)):_((k=t.firstSelectedKey)!==null&&k!==void 0?k:(W=n.getFirstKey)===null||W===void 0?void 0:W.call(n))}else!p&&g.current&&(g.current.scrollTop=v.current.top,g.current.scrollLeft=v.current.left);if(t.focusedKey!=null&&g.current){let _=g.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);_&&(_.contains(document.activeElement)||Ur(_),gc()==="keyboard"&&sh(_,{containingElement:r.current}))}}},T=R=>{R.currentTarget.contains(R.relatedTarget)||t.setFocused(!1)},E=C.useRef(!1);bi(r,yz,d?R=>{let{detail:V}=R;R.stopPropagation(),t.setFocused(!0),(V==null?void 0:V.focusStrategy)==="first"&&(E.current=!0)}:void 0);let A=Ht(()=>{var R,V;let W=(V=(R=n.getFirstKey)===null||R===void 0?void 0:R.call(n))!==null&&V!==void 0?V:null;if(W==null){var L;(L=r.current)===null||L===void 0||L.dispatchEvent(new CustomEvent(AA,{cancelable:!0,bubbles:!0})),t.collection.size>0&&(E.current=!1)}else t.setFocusedKey(W),E.current=!1});Ow(()=>{E.current&&A()},[t.collection,A]);let M=Ht(()=>{t.collection.size>0&&(E.current=!1)});Ow(()=>{M()},[t.focusedKey,M]),bi(r,gz,d?R=>{R.stopPropagation(),t.setFocused(!1),t.setFocusedKey(null)}:void 0);const S=C.useRef(i);C.useEffect(()=>{if(S.current){var R,V;let k=null;var W;i==="first"&&(k=(W=(R=n.getFirstKey)===null||R===void 0?void 0:R.call(n))!==null&&W!==void 0?W:null);var L;i==="last"&&(k=(L=(V=n.getLastKey)===null||V===void 0?void 0:V.call(n))!==null&&L!==void 0?L:null);let _=t.selectedKeys;if(_.size){for(let H of _)if(t.canSelectItem(H)){k=H;break}}t.setFocused(!0),t.setFocusedKey(k),k==null&&!d&&r.current&&Ho(r.current)}},[]);let z=C.useRef(t.focusedKey);C.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==z.current||S.current)&&g.current&&r.current){let R=gc(),V=r.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);if(!V)return;(R==="keyboard"||S.current)&&(SA(g.current,V),R!=="virtual"&&sh(V,{containingElement:r.current}))}!d&&t.isFocused&&t.focusedKey==null&&z.current!=null&&r.current&&Ho(r.current),z.current=t.focusedKey,S.current=!1}),bi(r,"react-aria-focus-scope-restore",R=>{R.preventDefault(),t.setFocused(!0)});let j={onKeyDown:b,onFocus:w,onBlur:T,onMouseDown(R){g.current===R.target&&R.preventDefault()}},{typeSelectProps:O}=hH({keyboardDelegate:n,selectionManager:t});f||(j=ft(O,j));let Z;return d?Z=-1:Z=t.focusedKey==null?0:-1,{collectionProps:{...j,tabIndex:Z}}}function mH(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:a,shouldUseVirtualFocus:o,focus:u,isDisabled:l,onAction:f,allowsDifferentPressOrigin:d,linkBehavior:h="action"}=e,p=np();t=Gn(t);let g=_=>{if(_.pointerType==="keyboard"&&p0(_))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(h==="selection"&&i.current){let H=n.getItemProps(r);p.open(i.current,_,H.href,H.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(h==="override"||h==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):_&&_.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||_&&(ks(_)||_.pointerType==="touch"||_.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};C.useEffect(()=>{if(r===n.focusedKey&&n.isFocused)if(!o)u?u():document.activeElement!==i.current&&i.current&&Ho(i.current);else{var H;let U=new CustomEvent(AA,{cancelable:!0,bubbles:!0});(H=i.current)===null||H===void 0||H.dispatchEvent(U)}},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,o]),l=l||n.isDisabled(r);let y={};!o&&!l?y={tabIndex:r===n.focusedKey?0:-1,onFocus(_){_.target===i.current&&n.setFocusedKey(r)}}:l&&(y.onMouseDown=_=>{_.preventDefault()});let $=n.isLink(r)&&h==="override",D=n.isLink(r)&&h!=="selection"&&h!=="none",b=!l&&n.canSelectItem(r)&&!$,v=(f||D)&&!l,w=v&&(n.selectionBehavior==="replace"?!b:!b||n.isEmpty),T=v&&b&&n.selectionBehavior==="replace",E=w||T,A=C.useRef(null),M=E&&b,S=C.useRef(!1),z=C.useRef(!1),j=_=>{if(f&&f(),D&&i.current){let H=n.getItemProps(r);p.open(i.current,_,H.href,H.routerOptions)}},O={};a?(O.onPressStart=_=>{A.current=_.pointerType,S.current=M,_.pointerType==="keyboard"&&(!E||OD())&&g(_)},d?(O.onPressUp=w?void 0:_=>{_.pointerType==="mouse"&&b&&g(_)},O.onPress=w?j:_=>{_.pointerType!=="keyboard"&&_.pointerType!=="mouse"&&b&&g(_)}):O.onPress=_=>{if(w||T&&_.pointerType!=="mouse"){if(_.pointerType==="keyboard"&&!RD())return;j(_)}else _.pointerType!=="keyboard"&&b&&g(_)}):(O.onPressStart=_=>{A.current=_.pointerType,S.current=M,z.current=w,b&&(_.pointerType==="mouse"&&!w||_.pointerType==="keyboard"&&(!v||OD()))&&g(_)},O.onPress=_=>{(_.pointerType==="touch"||_.pointerType==="pen"||_.pointerType==="virtual"||_.pointerType==="keyboard"&&E&&RD()||_.pointerType==="mouse"&&z.current)&&(E?j(_):b&&g(_))}),y["data-key"]=r,O.preventFocusOnPress=o;let{pressProps:Z,isPressed:R}=Nc(O),V=T?_=>{A.current==="mouse"&&(_.stopPropagation(),_.preventDefault(),j(_))}:void 0,{longPressProps:W}=NA({isDisabled:!M,onLongPress(_){_.pointerType==="touch"&&(g(_),n.setSelectionBehavior("toggle"))}}),L=_=>{A.current==="touch"&&S.current&&_.preventDefault()},k=n.isLink(r)?_=>{qo.isOpening||_.preventDefault()}:void 0;return{itemProps:ft(y,b||w?Z:{},M?W:{},{onDoubleClick:V,onDragStartCapture:L,onClick:k,id:t}),isPressed:R,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:l,allowsSelection:b,hasAction:E}}function RD(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function OD(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class MD{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(),a=r.getBoundingClientRect();return{x:a.left-i.left+n.scrollLeft,y:a.top-i.top+n.scrollTop,width:a.width,height:a.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,a;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:(a=t==null?void 0:t.offsetHeight)!==null&&a!==void 0?a:0}}constructor(t){this.ref=t}}class O_{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,a=this.layoutDelegate.getItemRect(i);if(!a||i==null)return null;let o=a;do{if(i=n(i),i==null)break;a=this.layoutDelegate.getItemRect(i)}while(a&&r(o,a)&&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&&!mc(n))return this.getFirstKey();let i=t;if(this.orientation==="horizontal"){let a=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>a&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let a=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>a&&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&&!mc(n))return this.getLastKey();let i=t;if(this.orientation==="horizontal"){let a=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<a&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let a=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<a&&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 a=r.getItem(i);if(!a)return null;let o=a.textValue.slice(0,t.length);if(a.textValue&&this.collator.compare(o,t)===0)return i;i=this.getNextKey(i)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new MD(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 MD(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function gH(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a,layoutDelegate:o}=e,u=DP({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,f=C.useMemo(()=>a||new O_({collection:n,disabledKeys:r,disabledBehavior:l,ref:i,collator:u,layoutDelegate:o}),[a,o,n,r,i,u,l]),{collectionProps:d}=R_({...e,ref:i,selectionManager:t,keyboardDelegate:f});return{listProps:d}}function yH(e,t,n){let r=ua(e,{labelable:!0}),i=e.selectionBehavior||"toggle",a=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&a==="action"&&(a="override");let{listProps:o}=gH({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:a}),{focusWithinProps:u}=Pu({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=Gn(e.id);dp.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:a});let{labelProps:f,fieldProps:d}=cp({...e,id:l,labelElementType:"span"});return{labelProps:f,listBoxProps:ft(r,u,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...ft(d,o)})}}function M_(e){return null}M_.getCollectionNode=function*(t,n){let{childItems:r,title:i,children:a}=t,o=t.title||t.children,u=t.textValue||(typeof o=="string"?o:"")||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:o,textValue:u,"aria-label":t["aria-label"],hasChildNodes:vH(t),*childNodes(){if(r)for(let l of r)yield{type:"item",value:l};else if(i){let l=[];C.Children.forEach(a,f=>{l.push({type:"item",element:f})}),yield*l}}}};function vH(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&C.Children.count(e.children)>0)}let bH=M_;class $H{build(t,n){return this.context=n,FD(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(C.isValidElement(n)&&n.type===C.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 a of r)yield*this.getFullNode({value:a,index:i},{renderer:n}),i++}else{let i=[];C.Children.forEach(n,o=>{o&&i.push(o)});let a=0;for(let o of i){let u=this.getFullNode({element:o,index:a},{});for(let l of u)a++,yield l}}}getKey(t,n,r,i){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let a=n.value;if(a!=null){var o;let u=(o=a.key)!==null&&o!==void 0?o:a.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(C.isValidElement(t.element)&&t.element.type===C.Fragment){let D=[];C.Children.forEach(t.element.props.children,v=>{D.push(v)});var a;let b=(a=t.index)!==null&&a!==void 0?a:0;for(const v of D)yield*this.getFullNode({element:v,index:b++},n,r,i);return}let o=t.element;if(!o&&t.value&&n&&n.renderer){let D=this.cache.get(t.value);if(D&&(!D.shouldInvalidate||!D.shouldInvalidate(this.context))){D.index=t.index,D.parentKey=i?i.key:null,yield D;return}o=n.renderer(t.value)}if(C.isValidElement(o)){let D=o.type;if(typeof D!="function"&&typeof D.getCollectionNode!="function"){let T=o.type;throw new Error(`Unknown element <${T}> in collection.`)}let b=D.getCollectionNode(o.props,this.context);var u;let v=(u=t.index)!==null&&u!==void 0?u:0,w=b.next();for(;!w.done&&w.value;){let T=w.value;t.index=v;var l;let E=(l=T.key)!==null&&l!==void 0?l:null;E==null&&(E=T.element?null:this.getKey(o,t,n,r));let M=[...this.getFullNode({...T,key:E,index:v,wrapper:xH(t.wrapper,T.wrapper)},this.getChildState(n,T),r?`${r}${o.key}`:o.key,i)];for(let S of M){var f,d;S.value=(d=(f=T.value)!==null&&f!==void 0?f:t.value)!==null&&d!==void 0?d:null,S.value&&this.cache.set(S.value,S);var h;if(t.type&&S.type!==t.type)throw new Error(`Unsupported type <${Rg(S.type)}> in <${Rg((h=i==null?void 0:i.type)!==null&&h!==void 0?h:"unknown parent type")}>. Only <${Rg(t.type)}> is supported.`);v++,yield S}w=b.next(M)}return}if(t.key==null||t.type==null)return;let p=this;var g,y;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:(y=t.textValue)!==null&&y!==void 0?y:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:FD(function*(){if(!t.hasChildNodes||!t.childNodes)return;let D=0;for(let b of t.childNodes()){b.key!=null&&(b.key=`${$.key}${b.key}`);let v=p.getFullNode({...b,index:D},p.getChildState(n,b),$.key,$);for(let w of v)D++,yield w}})};yield $}constructor(){this.cache=new WeakMap}}function FD(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 xH(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Rg(e){return e[0].toUpperCase()+e.slice(1)}function wH(e,t,n){let r=C.useMemo(()=>new $H,[]),{children:i,items:a,collection:o}=e;return C.useMemo(()=>{if(o)return o;let l=r.build({children:i,items:a},n);return t(l)},[r,i,a,o,n,t])}function hp(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function DH(e){return CH(e)}function CH(e,t){for(let n of e)return n}function Og(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...kD(e,t),t],i=[...kD(e,n),n],a=r.slice(0,i.length).findIndex((o,u)=>o!==i[u]);return a!==-1?(t=r[a],n=i[a],t.index-n.index):r.findIndex(o=>o===n)>=0?1:(i.findIndex(o=>o===t)>=0,-1)}function kD(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 ID=new WeakMap;function F_(e){let t=ID.get(e);if(t!=null)return t;let n=0,r=i=>{for(let a of i)a.type==="section"?r(hp(a,e)):n++};return r(e),ID.set(e,n),n}function EH(e,t,n){var r,i;let{key:a}=e,o=dp.get(t);var u;let l=(u=e.isDisabled)!==null&&u!==void 0?u:t.selectionManager.isDisabled(a);var f;let d=(f=e.isSelected)!==null&&f!==void 0?f:t.selectionManager.isSelected(a);var h;let p=(h=e.shouldSelectOnPressUp)!==null&&h!==void 0?h:o==null?void 0:o.shouldSelectOnPressUp;var g;let y=(g=e.shouldFocusOnHover)!==null&&g!==void 0?g:o==null?void 0:o.shouldFocusOnHover;var $;let D=($=e.shouldUseVirtualFocus)!==null&&$!==void 0?$:o==null?void 0:o.shouldUseVirtualFocus;var b;let v=(b=e.isVirtualized)!==null&&b!==void 0?b:o==null?void 0:o.isVirtualized,w=lu(),T=lu(),E={role:"option","aria-disabled":l||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?d:void 0};ia()&&A1()||(E["aria-label"]=e["aria-label"],E["aria-labelledby"]=w,E["aria-describedby"]=T);let A=t.collection.getItem(a);if(v){let k=Number(A==null?void 0:A.index);E["aria-posinset"]=Number.isNaN(k)?void 0:k+1,E["aria-setsize"]=F_(t.collection)}let M=o!=null&&o.onAction?()=>{var k;return o==null||(k=o.onAction)===null||k===void 0?void 0:k.call(o,a)}:void 0,S=__(t,a),{itemProps:z,isPressed:j,isFocused:O,hasAction:Z,allowsSelection:R}=mH({selectionManager:t.selectionManager,key:a,ref:n,shouldSelectOnPressUp:p,allowsDifferentPressOrigin:p&&y,isVirtualized:v,shouldUseVirtualFocus:D,isDisabled:l,onAction:M||!(A==null||(r=A.props)===null||r===void 0)&&r.onAction?zo(A==null||(i=A.props)===null||i===void 0?void 0:i.onAction,M):void 0,linkBehavior:o==null?void 0:o.linkBehavior,id:S}),{hoverProps:V}=Fz({isDisabled:l||!y,onHoverStart(){Nw()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(a))}}),W=ua(A==null?void 0:A.props);delete W.id;let L=fz(A==null?void 0:A.props);return{optionProps:{...E,...ft(W,z,V,L),id:S},labelProps:{id:w},descriptionProps:{id:T},isFocused:O,isFocusVisible:O&&Nw(),isSelected:d,isDisabled:l,isPressed:j,allowsSelection:R,hasAction:Z}}var k_={};k_={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var I_={};I_={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var B_={};B_={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var L_={};L_={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var V_={};V_={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var N_={};N_={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var j_={};j_={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var K_={};K_={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var U_={};U_={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var z_={};z_={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var q_={};q_={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var W_={};W_={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var H_={};H_={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var G_={};G_={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var Y_={};Y_={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var Z_={};Z_={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var J_={};J_={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var X_={};X_={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var Q_={};Q_={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var eR={};eR={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var tR={};tR={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var nR={};nR={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var rR={};rR={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var iR={};iR={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var aR={};aR={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var oR={};oR={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var sR={};sR={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var uR={};uR={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var lR={};lR={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var cR={};cR={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var fR={};fR={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var dR={};dR={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var hR={};hR={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var pR={};pR={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var mR={};mR={"ar-AE":k_,"bg-BG":I_,"cs-CZ":B_,"da-DK":L_,"de-DE":V_,"el-GR":N_,"en-US":j_,"es-ES":K_,"et-EE":U_,"fi-FI":z_,"fr-FR":q_,"he-IL":W_,"hr-HR":H_,"hu-HU":G_,"it-IT":Y_,"ja-JP":Z_,"ko-KR":J_,"lt-LT":X_,"lv-LV":Q_,"nb-NO":eR,"nl-NL":tR,"pl-PL":nR,"pt-BR":rR,"pt-PT":iR,"ro-RO":aR,"ru-RU":oR,"sk-SK":sR,"sl-SI":uR,"sr-SP":lR,"sv-SE":cR,"tr-TR":fR,"uk-UA":dR,"zh-CN":hR,"zh-TW":pR};function SH(e){return e&&e.__esModule?e.default:e}function TH(e,t,n){let{type:r="menu",isDisabled:i,trigger:a="press"}=e,o=Gn(),{triggerProps:u,overlayProps:l}=eH({type:r},t,n),f=g=>{if(!i&&!(a==="longPress"&&!g.altKey)&&n&&n.current)switch(g.key){case"Enter":case" ":if(a==="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()}},d=Ri(SH(mR),"@react-aria/menu"),{longPressProps:h}=NA({isDisabled:i||a!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),p={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,...a==="press"?p:h,id:o,onKeyDown:f},menuProps:{...l,"aria-labelledby":o,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function AH(e){return e&&e.__esModule?e.default:e}function PH(e,t){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:a,keyboardDelegate:o,layoutDelegate:u,shouldFocusWrap:l,isReadOnly:f,isDisabled:d}=e,h=C.useRef(null);n=n??h;let p=Ri(AH(E_),"@react-aria/combobox"),{menuTriggerProps:g,menuProps:y}=TH({type:"listbox",isDisabled:d||f},t,n);dp.set(t,{id:y.id});let{collection:$}=t,{disabledKeys:D}=t.selectionManager,b=C.useMemo(()=>o||new O_({collection:$,disabledKeys:D,ref:a,layoutDelegate:u}),[o,u,$,D,a]),{collectionProps:v}=R_({selectionManager:t.selectionManager,keyboardDelegate:b,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:l,ref:i,isVirtualized:!0}),w=np(),T=me=>{if(!me.nativeEvent.isComposing)switch(me.key){case"Enter":case"Tab":if(t.isOpen&&me.key==="Enter"&&me.preventDefault(),t.isOpen&&a.current&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){let ue=a.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);if(me.key==="Enter"&&ue instanceof HTMLAnchorElement){let Le=t.collection.getItem(t.selectionManager.focusedKey);Le&&w.open(ue,me,Le.props.href,Le.props.routerOptions)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&me.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=me=>{var ue;let Le=(n==null?void 0:n.current)&&n.current===me.relatedTarget,nt=(ue=r.current)===null||ue===void 0?void 0:ue.contains(me.relatedTarget);Le||nt||(e.onBlur&&e.onBlur(me),t.setFocused(!1))},A=me=>{t.isFocused||(e.onFocus&&e.onFocus(me),t.setFocused(!0))},{isInvalid:M,validationErrors:S,validationDetails:z}=t.displayValidation,{labelProps:j,inputProps:O,descriptionProps:Z,errorMessageProps:R}=VW({...e,onChange:t.setInputValue,onKeyDown:f?e.onKeyDown:zo(t.isOpen&&v.onKeyDown,T,e.onKeyDown),onBlur:E,value:t.inputValue,onFocus:A,autoComplete:"off",validate:void 0,[hu]:t},i),V=me=>{if(me.pointerType==="touch"){var ue;(ue=i.current)===null||ue===void 0||ue.focus(),t.toggle(null,"manual")}},W=me=>{if(me.pointerType!=="touch"){var ue;(ue=i.current)===null||ue===void 0||ue.focus(),t.toggle(me.pointerType==="keyboard"||me.pointerType==="virtual"?"first":null,"manual")}},L=cu({id:g.id,"aria-label":p.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||j.id}),k=cu({id:y.id,"aria-label":p.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||j.id}),_=C.useRef(0),H=me=>{if(d||f)return;if(me.timeStamp-_.current<500){var ue;me.preventDefault(),(ue=i.current)===null||ue===void 0||ue.focus();return}let Le=me.target.getBoundingClientRect(),nt=me.changedTouches[0],Nt=Math.ceil(Le.left+.5*Le.width),Zn=Math.ceil(Le.top+.5*Le.height);if(nt.clientX===Nt&&nt.clientY===Zn){var Pt;me.preventDefault(),(Pt=i.current)===null||Pt===void 0||Pt.focus(),t.toggle(null,"manual"),_.current=me.timeStamp}},U=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var N;let ne=(N=U==null?void 0:U.parentKey)!==null&&N!==void 0?N:null;var ie;let ce=(ie=t.selectionManager.focusedKey)!==null&&ie!==void 0?ie:null,xe=C.useRef(ne),De=C.useRef(ce);C.useEffect(()=>{if(kd()&&U!=null&&ce!=null&&ce!==De.current){let ue=t.selectionManager.isSelected(ce),Le=ne!=null?t.collection.getItem(ne):null,nt=(Le==null?void 0:Le["aria-label"])||(typeof(Le==null?void 0:Le.rendered)=="string"?Le.rendered:"")||"";var me;let Nt=p.format("focusAnnouncement",{isGroupChange:(me=Le&&ne!==xe.current)!==null&&me!==void 0?me:!1,groupTitle:nt,groupCount:Le?[...hp(Le,t.collection)].length:0,optionText:U["aria-label"]||U.textValue||"",isSelected:ue});Xs(Nt)}xe.current=ne,De.current=ce});let Ee=F_(t.collection),J=C.useRef(Ee),ye=C.useRef(t.isOpen);C.useEffect(()=>{let me=t.isOpen!==ye.current&&(t.selectionManager.focusedKey==null||kd());if(t.isOpen&&(me||Ee!==J.current)){let ue=p.format("countAnnouncement",{optionCount:Ee});Xs(ue)}J.current=Ee,ye.current=t.isOpen});let we=C.useRef(t.selectedKey);return C.useEffect(()=>{if(kd()&&t.isFocused&&t.selectedItem&&t.selectedKey!==we.current){let me=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",ue=p.format("selectedAnnouncement",{optionText:me});Xs(ue)}we.current=t.selectedKey}),C.useEffect(()=>{if(t.isOpen)return A_([i.current,r.current].filter(me=>me!=null))},[t.isOpen,i,r]),{labelProps:j,buttonProps:{...g,...L,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:V,onPressStart:W,isDisabled:d||f},inputProps:ft(O,{role:"combobox","aria-expanded":g["aria-expanded"],"aria-controls":t.isOpen?y.id:void 0,"aria-autocomplete":"list","aria-activedescendant":U?__(t,U.key):void 0,onTouchEnd:H,autoCorrect:"off",spellCheck:"false"}),listBoxProps:ft(y,k,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:Z,errorMessageProps:R,isInvalid:M,validationErrors:S,validationDetails:z}}var gR={};gR={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 yR={};yR={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var vR={};vR={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 bR={};bR={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 $R={};$R={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 xR={};xR={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var wR={};wR={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 DR={};DR={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 CR={};CR={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 ER={};ER={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 SR={};SR={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 TR={};TR={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var AR={};AR={calendar:"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 PR={};PR={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 _R={};_R={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 RR={};RR={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var OR={};OR={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var MR={};MR={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 FR={};FR={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 kR={};kR={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 IR={};IR={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 BR={};BR={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 LR={};LR={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 VR={};VR={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 NR={};NR={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 jR={};jR={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 KR={};KR={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 UR={};UR={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 zR={};zR={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 qR={};qR={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 WR={};WR={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 HR={};HR={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 GR={};GR={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 YR={};YR={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var Hc={};Hc={"ar-AE":gR,"bg-BG":yR,"cs-CZ":vR,"da-DK":bR,"de-DE":$R,"el-GR":xR,"en-US":wR,"es-ES":DR,"et-EE":CR,"fi-FI":ER,"fr-FR":SR,"he-IL":TR,"hr-HR":AR,"hu-HU":PR,"it-IT":_R,"ja-JP":RR,"ko-KR":OR,"lt-LT":MR,"lv-LV":FR,"nb-NO":kR,"nl-NL":IR,"pl-PL":BR,"pt-BR":LR,"pt-PT":VR,"ro-RO":NR,"ru-RU":jR,"sk-SK":KR,"sl-SI":UR,"sr-SP":zR,"sv-SE":qR,"tr-TR":WR,"uk-UA":HR,"zh-CN":GR,"zh-TW":YR};function Y1(e,t,n){let{direction:r}=Sn(),i=C.useMemo(()=>ap(t),[t]),a=l=>{if(l.currentTarget.contains(l.target)&&(l.altKey&&(l.key==="ArrowDown"||l.key==="ArrowUp")&&"setOpen"in e&&(l.preventDefault(),l.stopPropagation(),e.setOpen(!0)),!n))switch(l.key){case"ArrowLeft":l.preventDefault(),l.stopPropagation(),r==="rtl"?i.focusNext():i.focusPrevious();break;case"ArrowRight":l.preventDefault(),l.stopPropagation(),r==="rtl"?i.focusPrevious():i.focusNext();break}},o=()=>{var l;if(!t.current)return;let f=(l=window.event)===null||l===void 0?void 0:l.target,d=qn(t.current,{tabbable:!0});if(f&&(d.currentNode=f,f=d.previousNode()),!f){let h;do h=d.lastChild(),h&&(f=h);while(h)}for(;f!=null&&f.hasAttribute("data-placeholder");){let h=d.previousNode();if(h&&h.hasAttribute("data-placeholder"))f=h;else break}f&&f.focus()},{pressProps:u}=Nc({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&o()},onPress(l){l.pointerType!=="mouse"&&o()}});return ft(u,{onKeyDown:a})}function _H(e){return e&&e.__esModule?e.default:e}const ZR=new WeakMap,oc="__role_"+Date.now(),JR="__focusManager_"+Date.now();function XR(e,t,n){var r;let{isInvalid:i,validationErrors:a,validationDetails:o}=t.displayValidation,{labelProps:u,fieldProps:l,descriptionProps:f,errorMessageProps:d}=fp({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||a}),h=C.useRef(null),{focusWithinProps:p}=Pu({...e,onFocusWithin(j){var O;h.current=t.value,(O=e.onFocus)===null||O===void 0||O.call(e,j)},onBlurWithin:j=>{var O;t.confirmPlaceholder(),t.value!==h.current&&t.commitValidation(),(O=e.onBlur)===null||O===void 0||O.call(e,j)},onFocusWithinChange:e.onFocusChange}),g=Ri(_H(Hc),"@react-aria/datepicker"),y=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",$=t.maxGranularity==="hour"?"time":"date",D=t.value?g.format(y,{[$]:t.formatValue({month:"long"})}):"",b=Lc(D),v=e[oc]==="presentation"?l["aria-describedby"]:[b["aria-describedby"],l["aria-describedby"]].filter(Boolean).join(" ")||void 0,w=e[JR],T=C.useMemo(()=>w||ap(n),[w,n]),E=Y1(t,n,e[oc]==="presentation");ZR.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[u.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:v,focusManager:T});let A=C.useRef(e.autoFocus),M;e[oc]==="presentation"?M={role:"presentation"}:M=ft(l,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":v}),C.useEffect(()=>{A.current&&T.focusFirst(),A.current=!1},[T]),_1(e.inputRef,t.value,t.setValue),l6({...e,focus(){T.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 z=ua(e);return{labelProps:{...u,onClick:()=>{T.focusFirst()}},fieldProps:ft(z,M,E,p,{onKeyDown(j){e.onKeyDown&&e.onKeyDown(j)},onKeyUp(j){e.onKeyUp&&e.onKeyUp(j)}}),inputProps:S,descriptionProps:f,errorMessageProps:d,isInvalid:i,validationErrors:a,validationDetails:o}}function RH(e,t,n){var r;let i=XR(e,t,n);return i.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",i}function OH(e){return e&&e.__esModule?e.default:e}function MH(e,t,n){let r=Gn(),i=Gn(),a=Gn(),o=Ri(OH(Hc),"@react-aria/datepicker"),{isInvalid:u,validationErrors:l,validationDetails:f}=t.displayValidation,{labelProps:d,fieldProps:h,descriptionProps:p,errorMessageProps:g}=fp({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||l}),y=Y1(t,n),$=h["aria-labelledby"]||h.id,{locale:D}=Sn(),b=t.formatValue(D,{month:"long"}),v=b?o.format("selectedDateDescription",{date:b}):"",w=Lc(v),T=[w["aria-describedby"],h["aria-describedby"]].filter(Boolean).join(" ")||void 0,E=ua(e),A=C.useMemo(()=>ap(n),[n]),{focusWithinProps:M}=Pu({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:ft(E,y,h,w,M,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":$,"aria-describedby":T,onKeyDown(S){t.isOpen||e.onKeyDown&&e.onKeyDown(S)},onKeyUp(S){t.isOpen||e.onKeyUp&&e.onKeyUp(S)}}),labelProps:{...d,onClick:()=>{A.focusFirst()}},fieldProps:{...h,id:a,[oc]:"presentation","aria-describedby":T,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,[hu]:t,autoFocus:e.autoFocus,name:e.name},descriptionProps:p,errorMessageProps:g,buttonProps:{...w,id:r,"aria-haspopup":"dialog","aria-label":o.format("calendar"),"aria-labelledby":`${r} ${$}`,"aria-describedby":T,"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:l,validationDetails:f}}function FH(e){return e&&e.__esModule?e.default:e}function kH(){let{locale:e}=Sn(),t=WA(FH(Hc),"@react-aria/datepicker");return C.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new IH(e,t)}},[e,t])}class IH{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function BH(e,t,n){let r=C.useRef(""),{locale:i}=Sn(),a=kH(),{ariaLabel:o,ariaLabelledBy:u,ariaDescribedBy:l,focusManager:f}=ZR.get(t),d=e.isPlaceholder?"":e.text,h=C.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),p=$i({month:"long",timeZone:h.timeZone}),g=$i({hour:"numeric",hour12:h.hour12,timeZone:h.timeZone});if(e.type==="month"&&!e.isPlaceholder){let _=p.format(t.dateValue);d=_!==d?`${d} – ${_}`:_}else e.type==="hour"&&!e.isPlaceholder&&(d=g.format(t.dateValue));let{spinButtonProps:y}=jW({value:e.value,textValue:d,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current="",t.increment(e.type)},onDecrement:()=>{r.current="",t.decrement(e.type)},onIncrementPage:()=>{r.current="",t.incrementPage(e.type)},onDecrementPage:()=>{r.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{r.current="",e.maxValue!==void 0&&t.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{r.current="",e.minValue!==void 0&&t.setSegment(e.type,e.minValue)}}),$=C.useMemo(()=>new wP(i,{maximumFractionDigits:0}),[i]),D=()=>{if(e.text===e.placeholder&&f.focusPrevious(),$.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let _=e.text.slice(0,-1),H=$.parse(_);_=H===0?"":_,_.length===0||H===0?t.clearSegment(e.type):t.setSegment(e.type,H),r.current=_}else e.type==="dayPeriod"&&t.clearSegment(e.type)},b=_=>{if(_.key==="a"&&(ia()?_.metaKey:_.ctrlKey)&&_.preventDefault(),!(_.ctrlKey||_.metaKey||_.shiftKey||_.altKey))switch(_.key){case"Backspace":case"Delete":_.preventDefault(),_.stopPropagation(),D();break}},{startsWith:v}=CP({sensitivity:"base"}),w=$i({hour:"numeric",hour12:!0}),T=C.useMemo(()=>{let _=new Date;return _.setHours(0),w.formatToParts(_).find(H=>H.type==="dayPeriod").value},[w]),E=C.useMemo(()=>{let _=new Date;return _.setHours(12),w.formatToParts(_).find(H=>H.type==="dayPeriod").value},[w]),A=$i({year:"numeric",era:"narrow",timeZone:"UTC"}),M=C.useMemo(()=>{if(e.type!=="era")return[];let _=Lt(new Yt(1,1,1),t.calendar),H=t.calendar.getEras().map(N=>{let ne=_.set({year:1,month:1,day:1,era:N}).toDate("UTC"),ce=A.formatToParts(ne).find(xe=>xe.type==="era").value;return{era:N,formatted:ce}}),U=LH(H.map(N=>N.formatted));if(U)for(let N of H)N.formatted=N.formatted.slice(U);return H},[A,t.calendar,e.type]),S=_=>{if(t.isDisabled||t.isReadOnly)return;let H=r.current+_;switch(e.type){case"dayPeriod":if(v(T,_))t.setSegment("dayPeriod",0);else if(v(E,_))t.setSegment("dayPeriod",12);else break;f.focusNext();break;case"era":{let U=M.find(N=>v(N.formatted,_));U&&(t.setSegment("era",U.era),f.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!$.isValidPartialNumber(H))return;let U=$.parse(H),N=U,ne=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":U>11&&(N=$.parse(_));break;case"h12":ne=!1,U>12&&(N=$.parse(_));break}e.value!==void 0&&e.value>=12&&U>1&&(U+=12)}else e.maxValue!==void 0&&U>e.maxValue&&(N=$.parse(_));if(isNaN(U))return;let ie=N!==0||ne;ie&&t.setSegment(e.type,N),e.maxValue!==void 0&&(+(U+"0")>e.maxValue||H.length>=String(e.maxValue).length)?(r.current="",ie&&f.focusNext()):r.current=H;break}}},z=()=>{r.current="",n.current&&sh(n.current,{containingElement:rp(n.current)});let _=window.getSelection();_==null||_.collapse(n.current)},j=C.useRef(typeof document<"u"?document:null);bi(j,"selectionchange",()=>{var _;let H=window.getSelection();H!=null&&H.anchorNode&&(!((_=n.current)===null||_===void 0)&&_.contains(H==null?void 0:H.anchorNode))&&H.collapse(n.current)});let O=C.useRef("");bi(n,"beforeinput",_=>{if(n.current)switch(_.preventDefault(),_.inputType){case"deleteContentBackward":case"deleteContentForward":$.isValidPartialNumber(e.text)&&!t.isReadOnly&&D();break;case"insertCompositionText":O.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:_.data!=null&&S(_.data);break}}),bi(n,"input",_=>{let{inputType:H,data:U}=_;switch(H){case"insertCompositionText":n.current&&(n.current.textContent=O.current),U!=null&&(v(T,U)||v(E,U))&&S(U);break}}),Ct(()=>{let _=n.current;return()=>{document.activeElement===_&&(f.focusPrevious()||f.focusNext())}},[n,f]);let Z=Bc()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},R=C.useMemo(()=>t.segments.find(_=>_.isEditable),[t.segments]);e!==R&&!t.isInvalid&&(l=void 0);let V=Gn(),W=!t.isDisabled&&!t.isReadOnly&&e.isEditable,L=e.type==="literal"?"":a.of(e.type),k=cu({"aria-label":`${L}${o?`, ${o}`:""}${u?", ":""}`,"aria-labelledby":u});return e.type==="literal"?{segmentProps:{"aria-hidden":!0}}:{segmentProps:ft(y,k,{id:V,...Z,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":l,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:W,suppressContentEditableWarning:W,spellCheck:W?"false":void 0,autoCorrect:W?"off":void 0,[parseInt(C.version,10)>=17?"enterKeyHint":"enterkeyhint"]:W?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!W?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:b,onFocus:z,style:{caretColor:"transparent"},onPointerDown(_){_.stopPropagation()},onMouseDown(_){_.stopPropagation()}})}}function LH(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 VH(e){return e&&e.__esModule?e.default:e}function NH(e,t,n){var r,i,a;let o=Ri(VH(Hc),"@react-aria/datepicker"),{isInvalid:u,validationErrors:l,validationDetails:f}=t.displayValidation,{labelProps:d,fieldProps:h,descriptionProps:p,errorMessageProps:g}=fp({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||l}),y=h["aria-labelledby"]||h.id,{locale:$}=Sn(),D=t.formatValue($,{month:"long"}),b=D?o.format("selectedRangeDescription",{startDate:D.start,endDate:D.end}):"",v=Lc(b),w={"aria-label":o.format("startDate"),"aria-labelledby":y},T={"aria-label":o.format("endDate"),"aria-labelledby":y},E=Gn(),A=Gn(),M=Y1(t,n),S=[v["aria-describedby"],h["aria-describedby"]].filter(Boolean).join(" ")||void 0,z=C.useMemo(()=>ap(n,{accept:k=>k.id!==E}),[n,E]),j={[JR]:z,[oc]:"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},O=ua(e),{focusWithinProps:Z}=Pu({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),R=C.useRef(Eo),V=C.useRef(Eo);var W,L;return{groupProps:ft(O,M,h,v,Z,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":S,onKeyDown(k){t.isOpen||e.onKeyDown&&e.onKeyDown(k)},onKeyUp(k){t.isOpen||e.onKeyUp&&e.onKeyUp(k)}}),labelProps:{...d,onClick:()=>{z.focusFirst()}},buttonProps:{...v,id:E,"aria-haspopup":"dialog","aria-label":o.format("calendar"),"aria-labelledby":`${E} ${y}`,"aria-describedby":S,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:A,"aria-labelledby":`${E} ${y}`},startFieldProps:{...w,...j,value:(W=(r=t.value)===null||r===void 0?void 0:r.start)!==null&&W!==void 0?W:null,onChange:k=>t.setDateTime("start",k),autoFocus:e.autoFocus,name:e.startName,[hu]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(k){R.current=k,t.updateValidation(gh(k,V.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...T,...j,value:(L=(i=t.value)===null||i===void 0?void 0:i.end)!==null&&L!==void 0?L:null,onChange:k=>t.setDateTime("end",k),name:e.endName,[hu]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(k){V.current=k,t.updateValidation(gh(R.current,k))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:p,errorMessageProps:g,calendarProps:{autoFocus:!0,value:!((a=t.dateRange)===null||a===void 0)&&a.start&&t.dateRange.end?t.dateRange:null,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:u,validationErrors:l,validationDetails:f}}function jH(e,t){let{role:n="dialog"}=e,r=lu();r=e["aria-label"]?void 0:r;let i=C.useRef(!1);return C.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Ho(t.current);let a=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),Ho(t.current)),i.current=!1)},500);return()=>{clearTimeout(a)}}},[t]),cH(),{dialogProps:{...ua(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:a=>{i.current&&a.stopPropagation()}},titleProps:{id:r}}}function eu(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function m0(e,t,n,r,i){let a={};for(let u in t)a[u]=Math.floor(t[u]/2),a[u]>0&&t[u]%2===0&&a[u]--;let o=_o(e,t,n).subtract(a);return wc(e,o,t,n,r,i)}function _o(e,t,n,r,i){let a=e;return t.years?a=cq(e):t.months?a=Uc(e):t.weeks&&(a=yc(e,n)),wc(e,a,t,n,r,i)}function g0(e,t,n,r,i){let a={...t};a.days?a.days--:a.weeks?a.weeks--:a.months?a.months--:a.years&&a.years--;let o=_o(e,t,n).subtract(a);return wc(e,o,t,n,r,i)}function wc(e,t,n,r,i,a){if(i&&e.compare(i)>=0){let o=L1(t,_o(Fn(i),n,r));o&&(t=o)}if(a&&e.compare(a)<=0){let o=B1(t,g0(Fn(a),n,r));o&&(t=o)}return t}function Pa(e,t,n){if(t){let r=L1(e,Fn(t));r&&(e=r)}if(n){let r=B1(e,Fn(n));r&&(e=r)}return e}function QR(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 e7(e){let t=C.useMemo(()=>new Er(e.locale),[e.locale]),n=C.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:a={months:1},minValue:o,maxValue:u,selectionAlignment:l,isDateUnavailable:f,pageBehavior:d="visible",firstDayOfWeek:h}=e,p=C.useMemo(()=>i(n.calendar),[i,n.calendar]);var g;let[y,$]=rr(e.value,(g=e.defaultValue)!==null&&g!==void 0?g:null,e.onChange),D=C.useMemo(()=>y?Lt(Fn(y),p):null,[y,p]),b=C.useMemo(()=>y&&"timeZone"in y?y.timeZone:n.timeZone,[y,n.timeZone]),v=C.useMemo(()=>e.focusedValue?Pa(Lt(Fn(e.focusedValue),p),o,u):void 0,[e.focusedValue,p,o,u]),w=C.useMemo(()=>Pa(e.defaultFocusedValue?Lt(Fn(e.defaultFocusedValue),p):D||Lt(sp(b),p),o,u),[e.defaultFocusedValue,D,b,p,o,u]),[T,E]=rr(v,w,e.onFocusChange),[A,M]=C.useState(()=>{switch(l){case"start":return _o(T,a,r,o,u);case"end":return g0(T,a,r,o,u);case"center":default:return m0(T,a,r,o,u)}}),[S,z]=C.useState(e.autoFocus||!1),j=C.useMemo(()=>{let N={...a};return N.days?N.days--:N.days=-1,A.add(N)},[A,a]),[O,Z]=C.useState(p.identifier);if(p.identifier!==O){let N=Lt(T,p);M(m0(N,a,r,o,u)),E(N),Z(p.identifier)}eu(T,o,u)?E(Pa(T,o,u)):T.compare(A)<0?M(g0(T,a,r,o,u)):T.compare(j)>0&&M(_o(T,a,r,o,u));function R(N){N=Pa(N,o,u),E(N)}function V(N){if(!e.isDisabled&&!e.isReadOnly){let ne=N;if(ne===null){$(null);return}if(ne=Pa(ne,o,u),ne=QR(ne,A,f),!ne)return;ne=Lt(ne,(y==null?void 0:y.calendar)||new kn),y&&"hour"in y?$(y.set(ne)):$(ne)}}let W=C.useMemo(()=>D?f&&f(D)?!0:eu(D,o,u):!1,[D,f,o,u]),L=e.isInvalid||e.validationState==="invalid"||W,k=L?"invalid":null,_=C.useMemo(()=>d==="visible"?a:Mg(a),[d,a]);var H,U;return{isDisabled:(H=e.isDisabled)!==null&&H!==void 0?H:!1,isReadOnly:(U=e.isReadOnly)!==null&&U!==void 0?U:!1,value:D,setValue:V,visibleRange:{start:A,end:j},minValue:o,maxValue:u,focusedDate:T,timeZone:b,validationState:k,isValueInvalid:L,setFocusedDate(N){R(N),z(!0)},focusNextDay(){R(T.add({days:1}))},focusPreviousDay(){R(T.subtract({days:1}))},focusNextRow(){a.days?this.focusNextPage():(a.weeks||a.months||a.years)&&R(T.add({weeks:1}))},focusPreviousRow(){a.days?this.focusPreviousPage():(a.weeks||a.months||a.years)&&R(T.subtract({weeks:1}))},focusNextPage(){let N=A.add(_);E(Pa(T.add(_),o,u)),M(_o(wc(T,N,_,r,o,u),_,r))},focusPreviousPage(){let N=A.subtract(_);E(Pa(T.subtract(_),o,u)),M(_o(wc(T,N,_,r,o,u),_,r))},focusSectionStart(){a.days?R(A):a.weeks?R(yc(T,r)):(a.months||a.years)&&R(Uc(T))},focusSectionEnd(){a.days?R(j):a.weeks?R(hq(T,r)):(a.months||a.years)&&R(t0(T))},focusNextSection(N){if(!N&&!a.days){R(T.add(Mg(a)));return}a.days?this.focusNextPage():a.weeks?R(T.add({months:1})):(a.months||a.years)&&R(T.add({years:1}))},focusPreviousSection(N){if(!N&&!a.days){R(T.subtract(Mg(a)));return}a.days?this.focusPreviousPage():a.weeks?R(T.subtract({months:1})):(a.months||a.years)&&R(T.subtract({years:1}))},selectFocusedDate(){f&&f(T)||V(T)},selectDate(N){V(N)},isFocused:S,setFocused:z,isInvalid(N){return eu(N,o,u)},isSelected(N){return D!=null&&on(N,D)&&!this.isCellDisabled(N)&&!this.isCellUnavailable(N)},isCellFocused(N){return S&&T&&on(N,T)},isCellDisabled(N){return e.isDisabled||N.compare(A)<0||N.compare(j)>0||this.isInvalid(N)},isCellUnavailable(N){return e.isDateUnavailable?e.isDateUnavailable(N):!1},isPreviousVisibleRangeInvalid(){let N=A.subtract({days:1});return on(N,A)||this.isInvalid(N)},isNextVisibleRangeInvalid(){let N=j.add({days:1});return on(N,j)||this.isInvalid(N)},getDatesInWeek(N,ne=A){let ie=ne.add({weeks:N}),ce=[];ie=yc(ie,r,h);let xe=I1(ie,r,h);for(let De=0;De<xe;De++)ce.push(null);for(;ce.length<7;){ce.push(ie);let De=ie.add({days:1});if(on(ie,De))break;ie=De}for(;ce.length<7;)ce.push(null);return ce}}}function Mg(e){let t={...e};for(let n in e)t[n]=1;return t}function KH(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:a,visibleDuration:o={months:1},minValue:u,maxValue:l,...f}=e,[d,h]=rr(t,n||null,r),[p,g]=C.useState(null),y="center";if(d&&d.start&&d.end){let _=m0(Fn(d.start),o,a,u,l).add(o).subtract({days:1});d.end.compare(_)>0&&(y="start")}let $=C.useRef(null),[D,b]=C.useState(null),v=C.useMemo(()=>L1(u,D==null?void 0:D.start),[u,D]),w=C.useMemo(()=>B1(l,D==null?void 0:D.end),[l,D]),T=e7({...f,value:d&&d.start,createCalendar:i,locale:a,visibleDuration:o,minValue:v,maxValue:w,selectionAlignment:y}),E=k=>{if(k&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){const _=LD(k,T,-1),H=LD(k,T,1);$.current={start:_,end:H},b($.current)}else $.current=null,b(null)},[A,M]=C.useState(T.visibleRange);(!e0(T.visibleRange.start,A.start)||!e0(T.visibleRange.end,A.end))&&(E(p),M(T.visibleRange));let S=k=>{k?(g(k),E(k)):(g(null),E(null))},z=p?Fg(p,T.focusedDate):d&&Fg(d.start,d.end),j=k=>{if(e.isReadOnly)return;const _=Pa(k,v,w),H=QR(_,T.visibleRange.start,e.isDateUnavailable);if(H)if(!p)S(H);else{let U=Fg(p,H);U&&h({start:BD(U.start,d==null?void 0:d.start),end:BD(U.end,d==null?void 0:d.end)}),S(null)}},[O,Z]=C.useState(!1),{isDateUnavailable:R}=e,V=C.useMemo(()=>!d||p?!1:R&&(R(d.start)||R(d.end))?!0:eu(d.start,u,l)||eu(d.end,u,l),[R,d,p,u,l]),W=e.isInvalid||e.validationState==="invalid"||V;return{...T,value:d,setValue:h,anchorDate:p,setAnchorDate:S,highlightedRange:z,validationState:W?"invalid":null,isValueInvalid:W,selectFocusedDate(){j(T.focusedDate)},selectDate:j,highlightDate(k){p&&T.setFocusedDate(k)},isSelected(k){return!!(z&&k.compare(z.start)>=0&&k.compare(z.end)<=0&&!T.isCellDisabled(k)&&!T.isCellUnavailable(k))},isInvalid(k){var _,H;return T.isInvalid(k)||eu(k,(_=$.current)===null||_===void 0?void 0:_.start,(H=$.current)===null||H===void 0?void 0:H.end)},isDragging:O,setDragging:Z}}function Fg(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:Fn(e),end:Fn(t)})}function BD(e,t){return e=Lt(e,(t==null?void 0:t.calendar)||new kn),t&&"hour"in t?t.set(e):e}function LD(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 y0{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let n=o=>{if(this.keyMap.set(o.key,o),o.childNodes&&o.type==="section")for(let u of o.childNodes)n(u)};for(let o of t)n(o);let r=null,i=0;for(let[o,u]of this.keyMap)r?(r.nextKey=o,u.prevKey=r.key):(this.firstKey=o,u.prevKey=void 0),u.type==="item"&&(u.index=i++),r=u,r.nextKey=void 0;var a;this.lastKey=(a=r==null?void 0:r.key)!==null&&a!==void 0?a:null}}class Nr extends Set{constructor(t,n,r){super(t),t instanceof Nr?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function UH(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function zH(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:a="all"}=e,o=C.useRef(!1),[,u]=C.useState(!1),l=C.useRef(null),f=C.useRef(null),[,d]=C.useState(null),h=C.useMemo(()=>VD(e.selectedKeys),[e.selectedKeys]),p=C.useMemo(()=>VD(e.defaultSelectedKeys,new Nr),[e.defaultSelectedKeys]),[g,y]=rr(h,p,e.onSelectionChange),$=C.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[D,b]=C.useState(i);i==="replace"&&D==="toggle"&&typeof g=="object"&&g.size===0&&b("replace");let v=C.useRef(i);return C.useEffect(()=>{i!==v.current&&(b(i),v.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:D,setSelectionBehavior:b,get isFocused(){return o.current},setFocused(w){o.current=w,u(w)},get focusedKey(){return l.current},get childFocusStrategy(){return f.current},setFocusedKey(w,T="first"){l.current=w,f.current=T,d(w)},selectedKeys:g,setSelectedKeys(w){(r||!UH(w,g))&&y(w)},disabledKeys:$,disabledBehavior:a}}function VD(e,t){return e?e==="all"?"all":new Nr(e):t}class qH{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&&Og(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&&Og(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 Nr([n],n,n);else{let o=this.state.selectedKeys;var i;let u=(i=o.anchorKey)!==null&&i!==void 0?i:n;r=new Nr(o,u,n);var a;for(let l of this.getKeyRange(u,(a=o.currentKey)!==null&&a!==void 0?a:n))r.delete(l);for(let l of this.getKeyRange(n,u))this.canSelectItem(l)&&r.add(l)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),i=this.collection.getItem(n);return r&&i?Og(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=[],a=t;for(;a!=null;){let o=this.collection.getItem(a);if(o&&(o.type==="item"||o.type==="cell"&&this.allowsCellSelection)&&i.push(a),a===n)return i;a=this.collection.getKeyAfter(a)}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 Nr(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 Nr([n],n,n):new Nr;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new Nr;for(let r of t){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let o=this.collection.getItem(r);(o==null?void 0:o.type)==="item"&&t.push(r);var a;o!=null&&o.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&n((a=(i=DH(hp(o,this.collection)))===null||i===void 0?void 0:i.key)!==null&&a!==void 0?a: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 Nr)}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 WH(e){let{filter:t,layoutDelegate:n}=e,r=zH(e),i=C.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=C.useCallback(d=>t?new y0(t(d)):new y0(d),[t]),o=C.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),u=wH(e,a,o),l=C.useMemo(()=>new qH(u,r,{layoutDelegate:n}),[u,r,n]);const f=C.useRef(null);return C.useEffect(()=>{if(r.focusedKey!=null&&!u.getItem(r.focusedKey)&&f.current){const b=f.current.getItem(r.focusedKey),v=[...f.current.getKeys()].map(S=>{const z=f.current.getItem(S);return(z==null?void 0:z.type)==="item"?z:null}).filter(S=>S!==null),w=[...u.getKeys()].map(S=>{const z=u.getItem(S);return(z==null?void 0:z.type)==="item"?z:null}).filter(S=>S!==null);var d,h;const T=((d=v==null?void 0:v.length)!==null&&d!==void 0?d:0)-((h=w==null?void 0:w.length)!==null&&h!==void 0?h:0);var p,g,y;let E=Math.min(T>1?Math.max(((p=b==null?void 0:b.index)!==null&&p!==void 0?p:0)-T+1,0):(g=b==null?void 0:b.index)!==null&&g!==void 0?g:0,((y=w==null?void 0:w.length)!==null&&y!==void 0?y:0)-1),A=null,M=!1;for(;E>=0;){if(!l.isDisabled(w[E].key)){A=w[E];break}if(E<w.length-1&&!M)E++;else{M=!0;var $,D;E>(($=b==null?void 0:b.index)!==null&&$!==void 0?$:0)&&(E=(D=b==null?void 0:b.index)!==null&&D!==void 0?D:0),E--}}r.setFocusedKey(A?A.key:null)}f.current=u},[u,l,r,r.focusedKey]),{collection:u,disabledKeys:i,selectionManager:l}}function HH(e){var t;let[n,r]=rr(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),i=C.useMemo(()=>n!=null?[n]:[],[n]),{collection:a,disabledKeys:o,selectionManager:u}=WH({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:f=>{if(f==="all")return;var d;let h=(d=f.values().next().value)!==null&&d!==void 0?d:null;h===n&&e.onSelectionChange&&e.onSelectionChange(h),r(h)}}),l=n!=null?a.getItem(n):null;return{collection:a,disabledKeys:o,selectionManager:u,selectedKey:n,setSelectedKey:r,selectedItem:l}}function Z1(e){let[t,n]=rr(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=C.useCallback(()=>{n(!0)},[n]),i=C.useCallback(()=>{n(!1)},[n]),a=C.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:a}}function GH(e){var t;let{defaultFilter:n,menuTrigger:r="input",allowsEmptyCollection:i=!1,allowsCustomValue:a,shouldCloseOnBlur:o=!0}=e,[u,l]=C.useState(!1),[f,d]=C.useState(!1),[h,p]=C.useState(null),g=Q=>{e.onSelectionChange&&e.onSelectionChange(Q),Q===b&&(ce(),N())};var y;let{collection:$,selectionManager:D,selectedKey:b,setSelectedKey:v,selectedItem:w,disabledKeys:T}=HH({...e,onSelectionChange:g,items:(y=e.items)!==null&&y!==void 0?y:e.defaultItems}),E=e.defaultInputValue;if(E==null){var A,M;b==null?E="":E=(M=(A=$.getItem(b))===null||A===void 0?void 0:A.textValue)!==null&&M!==void 0?M:""}let[S,z]=rr(e.inputValue,E,e.onInputChange),j=$,O=C.useMemo(()=>e.items!=null||!n?$:YH($,S,n),[$,S,n,e.items]),[Z,R]=C.useState(O),V=C.useRef("focus"),L=Z1({...e,onOpenChange:Q=>{e.onOpenChange&&e.onOpenChange(Q,Q?V.current:void 0),D.setFocused(Q),Q||D.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),k=(Q=null,re)=>{let ve=re==="manual"||re==="focus"&&r==="focus";(i||O.size>0||ve&&j.size>0||e.items)&&(ve&&!L.isOpen&&e.items===void 0&&l(!0),V.current=re,p(Q),L.open())},_=(Q=null,re)=>{let ve=re==="manual"||re==="focus"&&r==="focus";!(i||O.size>0||ve&&j.size>0||e.items)&&!L.isOpen||(ve&&!L.isOpen&&e.items===void 0&&l(!0),L.isOpen||(V.current=re),U(Q))},H=C.useCallback(()=>{R(u?j:O)},[u,j,O]),U=C.useCallback((Q=null)=>{L.isOpen&&H(),p(Q),L.toggle()},[L,H]),N=C.useCallback(()=>{L.isOpen&&(H(),L.close())},[L,H]),[ne,ie]=C.useState(S),ce=()=>{var Q,re;let ve=b!=null&&(re=(Q=$.getItem(b))===null||Q===void 0?void 0:Q.textValue)!==null&&re!==void 0?re:"";ie(ve),z(ve)};var xe,De;let Ee=C.useRef((De=(xe=e.selectedKey)!==null&&xe!==void 0?xe:e.defaultSelectedKey)!==null&&De!==void 0?De:null);var J;let ye=C.useRef(b!=null&&(J=(t=$.getItem(b))===null||t===void 0?void 0:t.textValue)!==null&&J!==void 0?J:"");C.useEffect(()=>{var Q;f&&(O.size>0||i)&&!L.isOpen&&S!==ne&&r!=="manual"&&k(null,"input"),!u&&!i&&L.isOpen&&O.size===0&&N(),b!=null&&b!==Ee.current&&N(),S!==ne&&(D.setFocusedKey(null),l(!1),S===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&v(null)),b!==Ee.current&&(e.inputValue===void 0||e.selectedKey===void 0)?ce():ne!==S&&ie(S);var re;let ve=b!=null&&(re=(Q=$.getItem(b))===null||Q===void 0?void 0:Q.textValue)!==null&&re!==void 0?re:"";!f&&b!=null&&e.inputValue===void 0&&b===Ee.current&&ye.current!==ve&&(ie(ve),z(ve)),Ee.current=b,ye.current=ve});let we=Wc({...e,value:C.useMemo(()=>({inputValue:S,selectedKey:b}),[S,b])}),me=()=>{a&&b==null?ue():Le()},ue=()=>{Ee.current=null,v(null),N()},Le=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var Q,re;(Q=e.onSelectionChange)===null||Q===void 0||Q.call(e,b);var ve;let Se=b!=null&&(ve=(re=$.getItem(b))===null||re===void 0?void 0:re.textValue)!==null&&ve!==void 0?ve:"";ie(Se),N()}else ce(),N()};const nt=()=>{if(a){var Q,re;const ve=b!=null&&(re=(Q=$.getItem(b))===null||Q===void 0?void 0:Q.textValue)!==null&&re!==void 0?re:"";S===ve?Le():ue()}else Le()};let Nt=()=>{L.isOpen&&D.focusedKey!=null?b===D.focusedKey?Le():v(D.focusedKey):nt()},Zn=C.useRef(S),Pt=Q=>{Q?(Zn.current=S,r==="focus"&&!e.isReadOnly&&k(null,"focus")):(o&&nt(),S!==Zn.current&&we.commitValidation()),d(Q)},G=C.useMemo(()=>L.isOpen?u?j:O:Z,[L.isOpen,j,O,u,Z]);return{...we,...L,focusStrategy:h,toggle:_,open:k,close:nt,selectionManager:D,selectedKey:b,setSelectedKey:v,disabledKeys:T,isFocused:f,setFocused:Pt,selectedItem:w,collection:G,inputValue:S,setInputValue:z,commit:Nt,revert:me}}function YH(e,t,n){return new y0(t7(e,e,t,n))}function t7(e,t,n,r){let i=[];for(let a of t)if(a.type==="section"&&a.hasChildNodes){let o=t7(e,hp(a,e),n,r);[...o].some(u=>u.type==="item")&&i.push({...a,childNodes:o})}else a.type==="item"&&r(a.textValue,n)?i.push({...a}):a.type!=="item"&&i.push({...a});return i}var n7={};n7={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var r7={};r7={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var i7={};i7={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 a7={};a7={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 o7={};o7={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 s7={};s7={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var u7={};u7={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 l7={};l7={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 c7={};c7={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 f7={};f7={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 d7={};d7={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 h7={};h7={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var p7={};p7={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 m7={};m7={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 g7={};g7={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 y7={};y7={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var v7={};v7={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var b7={};b7={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 $7={};$7={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 x7={};x7={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 w7={};w7={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 D7={};D7={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 C7={};C7={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 E7={};E7={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 S7={};S7={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 T7={};T7={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var A7={};A7={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 P7={};P7={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 _7={};_7={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 R7={};R7={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 O7={};O7={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 M7={};M7={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var F7={};F7={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var k7={};k7={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var I7={};I7={"ar-AE":n7,"bg-BG":r7,"cs-CZ":i7,"da-DK":a7,"de-DE":o7,"el-GR":s7,"en-US":u7,"es-ES":l7,"et-EE":c7,"fi-FI":f7,"fr-FR":d7,"he-IL":h7,"hr-HR":p7,"hu-HU":m7,"it-IT":g7,"ja-JP":y7,"ko-KR":v7,"lt-LT":b7,"lv-LV":$7,"nb-NO":x7,"nl-NL":w7,"pl-PL":D7,"pt-BR":C7,"pt-PT":E7,"ro-RO":S7,"ru-RU":T7,"sk-SK":A7,"sl-SI":P7,"sr-SP":_7,"sv-SE":R7,"tr-TR":O7,"uk-UA":M7,"zh-CN":F7,"zh-TW":k7};function ZH(e){return e&&e.__esModule?e.default:e}const B7=new Za(ZH(I7));function L7(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function vh(e,t,n,r,i){let a=e!=null&&n!=null&&e.compare(n)>0,o=e!=null&&t!=null&&e.compare(t)<0,u=e!=null&&(r==null?void 0:r(e))||!1,l=a||o||u,f=[];if(l){let d=L7(),h=Za.getGlobalDictionaryForPackage("@react-stately/datepicker")||B7,p=new qA(d,h),g=new Er(d,ea({},i)),y=g.resolvedOptions().timeZone;o&&t!=null&&f.push(p.format("rangeUnderflow",{minValue:g.format(t.toDate(y))})),a&&n!=null&&f.push(p.format("rangeOverflow",{maxValue:g.format(n.toDate(y))})),u&&f.push(p.format("unavailableDate"))}return{isInvalid:l,validationErrors:f,validationDetails:{badInput:u,customError:!1,patternMismatch:!1,rangeOverflow:a,rangeUnderflow:o,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}function JH(e,t,n,r,i){var a;let o=vh((a=e==null?void 0:e.start)!==null&&a!==void 0?a:null,t,n,r,i);var u;let l=vh((u=e==null?void 0:e.end)!==null&&u!==void 0?u:null,t,n,r,i),f=gh(o,l);if((e==null?void 0:e.end)!=null&&e.start!=null&&e.end.compare(e.start)<0){let d=Za.getGlobalDictionaryForPackage("@react-stately/datepicker")||B7;f=gh(f,{isInvalid:!0,validationErrors:[d.getStringForLocale("rangeReversed",L7())],validationDetails:{...lp,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return f}const XH={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},QH={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function ea(e,t){e={...t.shouldForceLeadingZeros?QH:XH,...e};let r=t.granularity||"minute",i=Object.keys(e);var a;let o=i.indexOf((a=t.maxGranularity)!==null&&a!==void 0?a:"year");o<0&&(o=0);let u=i.indexOf(r);if(u<0&&(u=2),o>u)throw new Error("maxGranularity must be greater than granularity");let l=i.slice(o,u+1).reduce((d,h)=>(d[h]=e[h],d),{});return t.hourCycle!=null&&(l.hour12=t.hourCycle===12),l.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(l.timeZoneName="short"),t.showEra&&o===0&&(l.era="short"),l}function Vs(e){return e&&"hour"in e?e:new zc}function V7(e,t){if(e===null)return null;if(e)return Lt(e,t)}function Ml(e,t,n,r){if(e)return V7(e,n);let i=Lt(YA(r??Kc()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?Fn(i):r?i:Hr(i)}function J1(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,a]=C.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&a([r,n]),t||(t=e?r:i[0]);let o=e?n:i[1];return[t,o]}function eG(e){let t=Z1(e),[n,r]=rr(e.value,e.defaultValue||null,e.onChange),i=n||e.placeholderValue||null,[a,o]=J1(i,e.granularity),u=n!=null?n.toDate(o??"UTC"):null,l=a==="hour"||a==="minute"||a==="second";var f;let d=(f=e.shouldCloseOnSelect)!==null&&f!==void 0?f:!0,[h,p]=C.useState(null),[g,y]=C.useState(null);if(n&&(h=n,"hour"in n&&(g=n)),i&&!(a in i))throw new Error("Invalid granularity "+a+" for value "+i.toString());let $=(n==null?void 0:n.calendar.identifier)==="gregory"&&n.era==="BC",D=C.useMemo(()=>({granularity:a,timeZone:o,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:$}),[a,e.hourCycle,e.shouldForceLeadingZeros,o,e.hideTimeZone,$]),{minValue:b,maxValue:v,isDateUnavailable:w}=e,T=C.useMemo(()=>vh(n,b,v,w,D),[n,b,v,w,D]),E=Wc({...e,value:n,builtinValidation:T}),A=E.displayValidation.isInvalid,M=e.validationState||(A?"invalid":null),S=(O,Z)=>{r("timeZone"in Z?Z.set(Fn(O)):Hr(O,Z)),p(null),y(null),E.commitValidation()};return{...E,value:n,setValue:r,dateValue:h,timeValue:g,setDateValue:O=>{let Z=typeof d=="function"?d():d;l?g||Z?S(O,g||Vs(e.defaultValue||e.placeholderValue)):p(O):(r(O),E.commitValidation()),Z&&t.setOpen(!1)},setTimeValue:O=>{h&&O?S(h,O):y(O)},granularity:a,hasTime:l,...t,setOpen(O){!O&&!n&&h&&l&&S(h,g||Vs(e.defaultValue||e.placeholderValue)),t.setOpen(O)},validationState:M,isInvalid:A,formatValue(O,Z){if(!u)return"";let R=ea(Z,D);return new Er(O,R).format(u)},getDateFormatter(O,Z){let R={...D,...Z},V=ea({},R);return new Er(O,V)}}}const tG=new Za({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 nG(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?tG.getStringForLocale(e,n):"––"}const yd={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},ND={year:5,month:2,day:7,hour:2,minute:15,second:15},rG={dayperiod:"dayPeriod"};function N7(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:a=!1,isRequired:o=!1,minValue:u,maxValue:l,isDateUnavailable:f}=e,d=e.value||e.defaultValue||e.placeholderValue||null,[h,p]=J1(d,e.granularity),g=p||"UTC";if(d&&!(h in d))throw new Error("Invalid granularity "+h+" for value "+d.toString());let y=C.useMemo(()=>new Er(t),[t]),$=C.useMemo(()=>n(y.resolvedOptions().calendar),[n,y]);var D;let[b,v]=rr(e.value,(D=e.defaultValue)!==null&&D!==void 0?D:null,e.onChange),w=C.useMemo(()=>{var J;return(J=V7(b,$))!==null&&J!==void 0?J:null},[b,$]),[T,E]=C.useState(()=>Ml(e.placeholderValue,h,$,p)),A=w||T,M=$.identifier==="gregory"&&A.era==="BC",S=C.useMemo(()=>{var J;return{granularity:h,maxGranularity:(J=e.maxGranularity)!==null&&J!==void 0?J:"year",timeZone:p,hideTimeZone:r,hourCycle:e.hourCycle,showEra:M,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,h,e.hourCycle,e.shouldForceLeadingZeros,p,r,M]),z=C.useMemo(()=>ea({},S),[S]),j=C.useMemo(()=>new Er(t,z),[t,z]),O=C.useMemo(()=>j.resolvedOptions(),[j]),Z=C.useMemo(()=>j.formatToParts(new Date).filter(J=>yd[J.type]).reduce((J,ye)=>(J[ye.type]=!0,J),{}),[j]),[R,V]=C.useState(()=>e.value||e.defaultValue?{...Z}:{}),W=C.useRef(null),L=C.useRef($.identifier);C.useEffect(()=>{$.identifier!==L.current&&(L.current=$.identifier,E(J=>Object.keys(R).length>0?Lt(J,$):Ml(e.placeholderValue,h,$,p)))},[$,h,R,p,e.placeholderValue]),b&&Object.keys(R).length<Object.keys(Z).length&&(R={...Z},V(R)),b==null&&Object.keys(R).length===Object.keys(Z).length&&(R={},V(R),E(Ml(e.placeholderValue,h,$,p)));let k=w&&Object.keys(R).length>=Object.keys(Z).length?w:T,_=J=>{if(e.isDisabled||e.isReadOnly)return;let ye=Object.keys(R),we=Object.keys(Z);J==null?(v(null),E(Ml(e.placeholderValue,h,$,p)),V({})):ye.length>=we.length||ye.length===we.length-1&&Z.dayPeriod&&!R.dayPeriod&&W.current!=="dayPeriod"?(J=Lt(J,(d==null?void 0:d.calendar)||new kn),v(J)):E(J),W.current=null},H=C.useMemo(()=>k.toDate(g),[k,g]),U=C.useMemo(()=>j.formatToParts(H).map(J=>{let ye=yd[J.type];J.type==="era"&&$.getEras().length===1&&(ye=!1);let we=yd[J.type]&&!R[J.type],me=yd[J.type]?nG(J.type,J.value,t):null;return{type:rG[J.type]||J.type,text:we?me:J.value,...iG(k,J.type,O),isPlaceholder:we,placeholder:me,isEditable:ye}}),[H,R,j,O,k,$,t]);Z.era&&R.year&&!R.era?(R.era=!0,V({...R})):!Z.era&&R.era&&(delete R.era,V({...R}));let N=J=>{R[J]=!0,J==="year"&&Z.era&&(R.era=!0),V({...R})},ne=(J,ye)=>{if(R[J])_(aG(k,J,ye,O));else{N(J);let we=Object.keys(R),me=Object.keys(Z);(we.length>=me.length||we.length===me.length-1&&Z.dayPeriod&&!R.dayPeriod)&&_(k)}},ie=C.useMemo(()=>vh(b,u,l,f,S),[b,u,l,f,S]),ce=Wc({...e,value:b,builtinValidation:ie}),xe=ce.displayValidation.isInvalid,De=e.validationState||(xe?"invalid":null);var Ee;return{...ce,value:w,dateValue:H,calendar:$,setValue:_,segments:U,dateFormatter:j,validationState:De,isInvalid:xe,granularity:h,maxGranularity:(Ee=e.maxGranularity)!==null&&Ee!==void 0?Ee:"year",isDisabled:i,isReadOnly:a,isRequired:o,increment(J){ne(J,1)},decrement(J){ne(J,-1)},incrementPage(J){ne(J,ND[J]||1)},decrementPage(J){ne(J,-(ND[J]||1))},setSegment(J,ye){N(J),_(oG(k,J,ye,O))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let J=Object.keys(R),ye=Object.keys(Z);J.length===ye.length-1&&Z.dayPeriod&&!R.dayPeriod&&(R={...Z},V(R),_(k.copy()))},clearSegment(J){delete R[J],W.current=J,V({...R});let ye=Ml(e.placeholderValue,h,$,p),we=k;if(J==="dayPeriod"&&"hour"in k&&"hour"in ye){let me=k.hour>=12,ue=ye.hour>=12;me&&!ue?we=k.set({hour:k.hour-12}):!me&&ue&&(we=k.set({hour:k.hour+12}))}else J in k&&(we=k.set({[J]:ye[J]}));v(null),_(we)},formatValue(J){if(!w)return"";let ye=ea(J,S);return new Er(t,ye).format(H)},getDateFormatter(J,ye){let we={...S,...ye},me=ea({},we);return new Er(J,me)}}}function iG(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:fq(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:dq(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 aG(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,a=i>=12;return e.set({hour:a?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 oG(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,a=i>=12;return n>=12===a?e:e.set({hour:a?i-12:i+12})}case"hour":if(r.hour12){let a=e.hour>=12;!a&&n===12&&(n=0),a&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}throw new Error("Unknown segment: "+t)}function sG(e){var t,n;let r=Z1(e),[i,a]=rr(e.value,e.defaultValue||null,e.onChange),[o,u]=C.useState(()=>i||{start:null,end:null});i==null&&o.start&&o.end&&(o={start:null,end:null},u(o));let l=i||o,f=L=>{u(L||{start:null,end:null}),vo(L)?a(L):a(null)},d=(l==null?void 0:l.start)||(l==null?void 0:l.end)||e.placeholderValue||null,[h,p]=J1(d,e.granularity),g=h==="hour"||h==="minute"||h==="second";var y;let $=(y=e.shouldCloseOnSelect)!==null&&y!==void 0?y:!0,[D,b]=C.useState(null),[v,w]=C.useState(null);l&&vo(l)&&(D=l,"hour"in l.start&&(v=l));let T=(L,k)=>{f({start:"timeZone"in k.start?k.start.set(Fn(L.start)):Hr(L.start,k.start),end:"timeZone"in k.end?k.end.set(Fn(L.end)):Hr(L.end,k.end)}),b(null),w(null),R.commitValidation()},E=L=>{let k=typeof $=="function"?$():$;g?vo(L)&&(v!=null&&v.start)&&(v!=null&&v.end)?T(L,{start:(v==null?void 0:v.start)||Vs(e.placeholderValue),end:(v==null?void 0:v.end)||Vs(e.placeholderValue)}):b(L):vo(L)?(f(L),R.commitValidation()):b(L),k&&r.setOpen(!1)},A=L=>{vo(D)&&vo(L)?T(D,L):w(L)},M=(l==null||(t=l.start)===null||t===void 0?void 0:t.calendar.identifier)==="gregory"&&l.start.era==="BC"||(l==null||(n=l.end)===null||n===void 0?void 0:n.calendar.identifier)==="gregory"&&l.end.era==="BC",S=C.useMemo(()=>({granularity:h,timeZone:p,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:M}),[h,e.hourCycle,e.shouldForceLeadingZeros,p,e.hideTimeZone,M]),{minValue:z,maxValue:j,isDateUnavailable:O}=e,Z=C.useMemo(()=>JH(l,z,j,O,S),[l,z,j,O,S]),R=Wc({...e,value:i,name:C.useMemo(()=>[e.startName,e.endName].filter(L=>L!=null),[e.startName,e.endName]),builtinValidation:Z}),V=R.displayValidation.isInvalid,W=e.validationState||(V?"invalid":null);return{...R,value:l,setValue:f,dateRange:D,timeRange:v,granularity:h,hasTime:g,setDate(L,k){var _,H;E(L==="start"?{start:k,end:(_=D==null?void 0:D.end)!==null&&_!==void 0?_:null}:{start:(H=D==null?void 0:D.start)!==null&&H!==void 0?H:null,end:k})},setTime(L,k){var _,H;A(L==="start"?{start:k,end:(_=v==null?void 0:v.end)!==null&&_!==void 0?_:null}:{start:(H=v==null?void 0:v.start)!==null&&H!==void 0?H:null,end:k})},setDateTime(L,k){var _,H;f(L==="start"?{start:k,end:(_=l==null?void 0:l.end)!==null&&_!==void 0?_:null}:{start:(H=l==null?void 0:l.start)!==null&&H!==void 0?H:null,end:k})},setDateRange:E,setTimeRange:A,...r,setOpen(L){!L&&!(l!=null&&l.start&&(l!=null&&l.end))&&vo(D)&&g&&T(D,{start:(v==null?void 0:v.start)||Vs(e.placeholderValue),end:(v==null?void 0:v.end)||Vs(e.placeholderValue)}),r.setOpen(L)},validationState:W,isInvalid:V,formatValue(L,k){if(!l||!l.start||!l.end)return null;let _="timeZone"in l.start?l.start.timeZone:void 0,H=e.granularity||(l.start&&"minute"in l.start?"minute":"day"),U="timeZone"in l.end?l.end.timeZone:void 0,N=e.granularity||(l.end&&"minute"in l.end?"minute":"day"),ne=ea(k,{granularity:H,timeZone:_,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:l.start.calendar.identifier==="gregory"&&l.start.era==="BC"||l.end.calendar.identifier==="gregory"&&l.end.era==="BC"}),ie=l.start.toDate(_||"UTC"),ce=l.end.toDate(U||"UTC"),xe=new Er(L,ne),De;if(_===U&&H===N&&l.start.compare(l.end)!==0){try{let Ee=xe.formatRangeToParts(ie,ce),J=-1;for(let me=0;me<Ee.length;me++){let ue=Ee[me];if(ue.source==="shared"&&ue.type==="literal")J=me;else if(ue.source==="endRange")break}let ye="",we="";for(let me=0;me<Ee.length;me++)me<J?ye+=Ee[me].value:me>J&&(we+=Ee[me].value);return{start:ye,end:we}}catch{}De=xe}else{let Ee=ea(k,{granularity:N,timeZone:U,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});De=new Er(L,Ee)}return{start:xe.format(ie),end:De.format(ce)}},getDateFormatter(L,k){let _={...S,...k},H=ea({},_);return new Er(L,H)}}}function vo(e){return(e==null?void 0:e.start)!=null&&e.end!=null}function uG(e){let{placeholderValue:t=new zc,minValue:n,maxValue:r,granularity:i,validate:a}=e;var o;let[u,l]=rr(e.value,(o=e.defaultValue)!==null&&o!==void 0?o:null,e.onChange),f=u||t,d=f&&"day"in f?f:void 0,h=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,p=C.useMemo(()=>{let w=f&&"timeZone"in f?f.timeZone:void 0;return(w||h)&&t?tP(Fl(t),w||h):Fl(t)},[t,f,h]),g=C.useMemo(()=>Fl(n,d),[n,d]),y=C.useMemo(()=>Fl(r,d),[r,d]),$=C.useMemo(()=>u&&"day"in u?eD(u):u,[u]),D=C.useMemo(()=>u==null?null:Fl(u),[u]);return{...N7({...e,value:D,defaultValue:void 0,minValue:g,maxValue:y,onChange:w=>{l(d||h?w:w&&eD(w))},granularity:i||"minute",maxGranularity:"hour",placeholderValue:p??void 0,createCalendar:()=>new kn,validate:C.useCallback(()=>a==null?void 0:a(u),[a,u])}),timeValue:$}}function Fl(e,t=sp(Kc())){return e?"day"in e?e:Hr(t,e):null}var Nd={exports:{}},lG=Nd.exports,jD;function cG(){return jD||(jD=1,function(e,t){(function(n,r){e.exports=r()})(lG,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",o="second",u="minute",l="hour",f="day",d="week",h="month",p="quarter",g="year",y="date",$="Invalid Date",D=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|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,v={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(V){var W=["th","st","nd","rd"],L=V%100;return"["+V+(W[(L-20)%10]||W[L]||W[0])+"]"}},w=function(V,W,L){var k=String(V);return!k||k.length>=W?V:""+Array(W+1-k.length).join(L)+V},T={s:w,z:function(V){var W=-V.utcOffset(),L=Math.abs(W),k=Math.floor(L/60),_=L%60;return(W<=0?"+":"-")+w(k,2,"0")+":"+w(_,2,"0")},m:function V(W,L){if(W.date()<L.date())return-V(L,W);var k=12*(L.year()-W.year())+(L.month()-W.month()),_=W.clone().add(k,h),H=L-_<0,U=W.clone().add(k+(H?-1:1),h);return+(-(k+(L-_)/(H?_-U:U-_))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:h,y:g,w:d,d:f,D:y,h:l,m:u,s:o,ms:a,Q:p}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return V===void 0}},E="en",A={};A[E]=v;var M="$isDayjsObject",S=function(V){return V instanceof Z||!(!V||!V[M])},z=function V(W,L,k){var _;if(!W)return E;if(typeof W=="string"){var H=W.toLowerCase();A[H]&&(_=H),L&&(A[H]=L,_=H);var U=W.split("-");if(!_&&U.length>1)return V(U[0])}else{var N=W.name;A[N]=W,_=N}return!k&&_&&(E=_),_||!k&&E},j=function(V,W){if(S(V))return V.clone();var L=typeof W=="object"?W:{};return L.date=V,L.args=arguments,new Z(L)},O=T;O.l=z,O.i=S,O.w=function(V,W){return j(V,{locale:W.$L,utc:W.$u,x:W.$x,$offset:W.$offset})};var Z=function(){function V(L){this.$L=z(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[M]=!0}var W=V.prototype;return W.parse=function(L){this.$d=function(k){var _=k.date,H=k.utc;if(_===null)return new Date(NaN);if(O.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var U=_.match(D);if(U){var N=U[2]-1||0,ne=(U[7]||"0").substring(0,3);return H?new Date(Date.UTC(U[1],N,U[3]||1,U[4]||0,U[5]||0,U[6]||0,ne)):new Date(U[1],N,U[3]||1,U[4]||0,U[5]||0,U[6]||0,ne)}}return new Date(_)}(L),this.init()},W.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds()},W.$utils=function(){return O},W.isValid=function(){return this.$d.toString()!==$},W.isSame=function(L,k){var _=j(L);return this.startOf(k)<=_&&_<=this.endOf(k)},W.isAfter=function(L,k){return j(L)<this.startOf(k)},W.isBefore=function(L,k){return this.endOf(k)<j(L)},W.$g=function(L,k,_){return O.u(L)?this[k]:this.set(_,L)},W.unix=function(){return Math.floor(this.valueOf()/1e3)},W.valueOf=function(){return this.$d.getTime()},W.startOf=function(L,k){var _=this,H=!!O.u(k)||k,U=O.p(L),N=function(ye,we){var me=O.w(_.$u?Date.UTC(_.$y,we,ye):new Date(_.$y,we,ye),_);return H?me:me.endOf(f)},ne=function(ye,we){return O.w(_.toDate()[ye].apply(_.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(we)),_)},ie=this.$W,ce=this.$M,xe=this.$D,De="set"+(this.$u?"UTC":"");switch(U){case g:return H?N(1,0):N(31,11);case h:return H?N(1,ce):N(0,ce+1);case d:var Ee=this.$locale().weekStart||0,J=(ie<Ee?ie+7:ie)-Ee;return N(H?xe-J:xe+(6-J),ce);case f:case y:return ne(De+"Hours",0);case l:return ne(De+"Minutes",1);case u:return ne(De+"Seconds",2);case o:return ne(De+"Milliseconds",3);default:return this.clone()}},W.endOf=function(L){return this.startOf(L,!1)},W.$set=function(L,k){var _,H=O.p(L),U="set"+(this.$u?"UTC":""),N=(_={},_[f]=U+"Date",_[y]=U+"Date",_[h]=U+"Month",_[g]=U+"FullYear",_[l]=U+"Hours",_[u]=U+"Minutes",_[o]=U+"Seconds",_[a]=U+"Milliseconds",_)[H],ne=H===f?this.$D+(k-this.$W):k;if(H===h||H===g){var ie=this.clone().set(y,1);ie.$d[N](ne),ie.init(),this.$d=ie.set(y,Math.min(this.$D,ie.daysInMonth())).$d}else N&&this.$d[N](ne);return this.init(),this},W.set=function(L,k){return this.clone().$set(L,k)},W.get=function(L){return this[O.p(L)]()},W.add=function(L,k){var _,H=this;L=Number(L);var U=O.p(k),N=function(ce){var xe=j(H);return O.w(xe.date(xe.date()+Math.round(ce*L)),H)};if(U===h)return this.set(h,this.$M+L);if(U===g)return this.set(g,this.$y+L);if(U===f)return N(1);if(U===d)return N(7);var ne=(_={},_[u]=r,_[l]=i,_[o]=n,_)[U]||1,ie=this.$d.getTime()+L*ne;return O.w(ie,this)},W.subtract=function(L,k){return this.add(-1*L,k)},W.format=function(L){var k=this,_=this.$locale();if(!this.isValid())return _.invalidDate||$;var H=L||"YYYY-MM-DDTHH:mm:ssZ",U=O.z(this),N=this.$H,ne=this.$m,ie=this.$M,ce=_.weekdays,xe=_.months,De=_.meridiem,Ee=function(we,me,ue,Le){return we&&(we[me]||we(k,H))||ue[me].slice(0,Le)},J=function(we){return O.s(N%12||12,we,"0")},ye=De||function(we,me,ue){var Le=we<12?"AM":"PM";return ue?Le.toLowerCase():Le};return H.replace(b,function(we,me){return me||function(ue){switch(ue){case"YY":return String(k.$y).slice(-2);case"YYYY":return O.s(k.$y,4,"0");case"M":return ie+1;case"MM":return O.s(ie+1,2,"0");case"MMM":return Ee(_.monthsShort,ie,xe,3);case"MMMM":return Ee(xe,ie);case"D":return k.$D;case"DD":return O.s(k.$D,2,"0");case"d":return String(k.$W);case"dd":return Ee(_.weekdaysMin,k.$W,ce,2);case"ddd":return Ee(_.weekdaysShort,k.$W,ce,3);case"dddd":return ce[k.$W];case"H":return String(N);case"HH":return O.s(N,2,"0");case"h":return J(1);case"hh":return J(2);case"a":return ye(N,ne,!0);case"A":return ye(N,ne,!1);case"m":return String(ne);case"mm":return O.s(ne,2,"0");case"s":return String(k.$s);case"ss":return O.s(k.$s,2,"0");case"SSS":return O.s(k.$ms,3,"0");case"Z":return U}return null}(we)||U.replace(":","")})},W.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},W.diff=function(L,k,_){var H,U=this,N=O.p(k),ne=j(L),ie=(ne.utcOffset()-this.utcOffset())*r,ce=this-ne,xe=function(){return O.m(U,ne)};switch(N){case g:H=xe()/12;break;case h:H=xe();break;case p:H=xe()/3;break;case d:H=(ce-ie)/6048e5;break;case f:H=(ce-ie)/864e5;break;case l:H=ce/i;break;case u:H=ce/r;break;case o:H=ce/n;break;default:H=ce}return _?H:O.a(H)},W.daysInMonth=function(){return this.endOf(h).$D},W.$locale=function(){return A[this.$L]},W.locale=function(L,k){if(!L)return this.$L;var _=this.clone(),H=z(L,k,!0);return H&&(_.$L=H),_},W.clone=function(){return O.w(this.$d,this)},W.toDate=function(){return new Date(this.valueOf())},W.toJSON=function(){return this.isValid()?this.toISOString():null},W.toISOString=function(){return this.$d.toISOString()},W.toString=function(){return this.$d.toUTCString()},V}(),R=Z.prototype;return j.prototype=R,[["$ms",a],["$s",o],["$m",u],["$H",l],["$W",f],["$M",h],["$y",g],["$D",y]].forEach(function(V){R[V[1]]=function(W){return this.$g(W,V[0],V[1])}}),j.extend=function(V,W){return V.$i||(V(W,Z,j),V.$i=!0),j},j.locale=z,j.isDayjs=S,j.unix=function(V){return j(1e3*V)},j.en=A[E],j.Ls=A,j.p={},j})}(Nd)),Nd.exports}var fG=cG();const dG=sa(fG);var Jo=[["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"]],hG="react-international-phone-",j7=(...e)=>e.filter(t=>!!t).join(" ").trim(),pG=(...e)=>j7(...e).split(" ").map(t=>`${hG}${t}`).join(" "),Cn=({addPrefix:e,rawClassNames:t})=>j7(pG(...e),...t),mG=({value:e,mask:t,maskSymbol:n,offset:r=0,trimNonMaskCharsLeftover:i=!1})=>{if(e.length<r)return e;let a=e.slice(0,r),o=e.slice(r),u=a,l=0;for(let f of t.split("")){if(l>=o.length){if(!i&&f!==n){u+=f;continue}break}f===n?(u+=o[l],l+=1):u+=f}return u},Is=e=>e?/^\d+$/.test(e):!1,pp=e=>e.replace(/\D/g,""),gG=(e,t)=>{let n=e.style.display;n!=="block"&&(e.style.display="block");let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),a=i.top-r.top,o=r.bottom-i.bottom;a>=0&&o>=0||(Math.abs(a)<Math.abs(o)?e.scrollTop+=a:e.scrollTop-=o),e.style.display=n},yG=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh"),vG=(e,t)=>{let n=t.disableDialCodeAndPrefix?!1:t.forceDialCode,r=t.disableDialCodeAndPrefix?!1:t.insertDialCodeOnEmpty,i=e,a=f=>t.trimNonDigitsEnd?f.trim():f;if(!i)return r&&!i.length||n?a(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`):a(i);if(i=pp(i),i===t.dialCode&&!t.disableDialCodeAndPrefix)return a(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(t.dialCode.startsWith(i)&&!t.disableDialCodeAndPrefix)return a(n?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:`${t.prefix}${i}`);if(!i.startsWith(t.dialCode)&&!t.disableDialCodeAndPrefix){if(n)return a(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(i.length<t.dialCode.length)return a(`${t.prefix}${i}`)}let o=()=>{let f=t.dialCode.length,d=i.slice(0,f),h=i.slice(f);return{phoneLeftSide:d,phoneRightSide:h}},{phoneLeftSide:u,phoneRightSide:l}=o();return u=`${t.prefix}${u}${t.charAfterDialCode}`,l=mG({value:l,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&l.length===0}),t.disableDialCodeAndPrefix&&(u=""),a(`${u}${l}`)},bG=({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:n,cursorPositionAfterInput:r,leftOffset:i=0,deletion:a})=>{if(r<i)return i;if(!e)return n.length;let o=null;for(let d=r-1;d>=0;d-=1)if(Is(t[d])){o=d;break}if(o===null){for(let d=0;d<t.length;d+=1)if(Is(n[d]))return d;return t.length}let u=0;for(let d=0;d<o;d+=1)Is(t[d])&&(u+=1);let l=0,f=0;for(let d=0;d<n.length&&(l+=1,Is(n[d])&&(f+=1),!(f>=u+1));d+=1);if(a!=="backward")for(;!Is(n[l])&&l<n.length;)l+=1;return l},jd=({phone:e,prefix:t})=>e?`${t}${pp(e)}`:"";function v0({value:e,country:t,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:i,prefix:a,charAfterDialCode:o,forceDialCode:u,disableDialCodeAndPrefix:l,defaultMask:f,countryGuessingEnabled:d,disableFormatting:h}){let p=e;l&&(p=p.startsWith(`${a}`)?p:`${a}${t.dialCode}${p}`);let g=d?AG({phone:p,countries:i,currentCountryIso2:t==null?void 0:t.iso2}):void 0,y=(g==null?void 0:g.country)??t,$=vG(p,{prefix:a,mask:SG({phone:p,country:y,defaultMask:f,disableFormatting:h}),maskChar:K7,dialCode:y.dialCode,trimNonDigitsEnd:r,charAfterDialCode:o,forceDialCode:u,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:l}),D=d&&!(g!=null&&g.fullDialCodeMatch)?t:y;return{phone:jd({phone:l?`${D.dialCode}${$}`:$,prefix:a}),inputValue:$,country:D}}var $G=e=>{if((e==null?void 0:e.toLocaleLowerCase().includes("delete"))??!1)return e!=null&&e.toLocaleLowerCase().includes("forward")?"forward":"backward"},xG=(e,{country:t,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:i,charAfterDialCode:a,forceDialCode:o,disableDialCodeAndPrefix:u,countryGuessingEnabled:l,defaultMask:f,disableFormatting:d,countries:h})=>{let p=e.nativeEvent,g=p.inputType,y=$G(g),$=!!(g!=null&&g.startsWith("insertFrom")),D=g==="insertText",b=(p==null?void 0:p.data)||void 0,v=e.target.value,w=e.target.selectionStart??0;if(g!=null&&g.includes("history"))return{inputValue:r,phone:jd({phone:r,prefix:i}),cursorPosition:r.length,country:t};if(D&&!Is(b)&&v!==i)return{inputValue:r,phone:jd({phone:u?`${t.dialCode}${r}`:r,prefix:i}),cursorPosition:w-((b==null?void 0:b.length)??0),country:t};if(o&&!v.startsWith(`${i}${t.dialCode}`)&&!$){let S=v?r:`${i}${t.dialCode}${a}`;return{inputValue:S,phone:jd({phone:S,prefix:i}),cursorPosition:i.length+t.dialCode.length+a.length,country:t}}let{phone:T,inputValue:E,country:A}=v0({value:v,country:t,trimNonDigitsEnd:y==="backward",insertDialCodeOnEmpty:n,countryGuessingEnabled:l,countries:h,prefix:i,charAfterDialCode:a,forceDialCode:o,disableDialCodeAndPrefix:u,disableFormatting:d,defaultMask:f}),M=bG({cursorPositionAfterInput:w,phoneBeforeInput:r,phoneAfterInput:v,phoneAfterFormatted:E,leftOffset:o?i.length+t.dialCode.length+a.length:0,deletion:y});return{phone:T,inputValue:E,cursorPosition:M,country:A}},wG=(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},DG=()=>{let e=C.useRef(),t=C.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}}},CG={size:20,overrideLastItemDebounceMS:-1};function EG(e,t){let{size:n,overrideLastItemDebounceMS:r,onChange:i}={...CG,...t},[a,o]=C.useState(e),[u,l]=C.useState([a]),[f,d]=C.useState(0),h=DG();return[a,(p,g)=>{if(typeof p=="object"&&typeof a=="object"&&wG(p,a)||p===a)return;let y=r>0,$=h.check(),D=y&&$!==void 0?$>r:!0;if((g==null?void 0:g.overrideLastItem)!==void 0?g.overrideLastItem:!D)l(b=>[...b.slice(0,f),p]);else{let b=u.length>=n;l(v=>[...v.slice(b?1:0,f+1),p]),b||d(v=>v+1)}o(p),i==null||i(p)},()=>{if(f<=0)return{success:!1};let p=u[f-1];return o(p),d(g=>g-1),i==null||i(p),{success:!0,value:p}},()=>{if(f+1>=u.length)return{success:!1};let p=u[f+1];return o(p),d(g=>g+1),i==null||i(p),{success:!0,value:p}}]}var K7=".",yr={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:Jo},U7=({defaultCountry:e=yr.defaultCountry,value:t=yr.value,countries:n=yr.countries,prefix:r=yr.prefix,defaultMask:i=yr.defaultMask,charAfterDialCode:a=yr.charAfterDialCode,historySaveDebounceMS:o=yr.historySaveDebounceMS,disableCountryGuess:u=yr.disableCountryGuess,disableDialCodePrefill:l=yr.disableDialCodePrefill,forceDialCode:f=yr.forceDialCode,disableDialCodeAndPrefix:d=yr.disableDialCodeAndPrefix,disableFormatting:h=yr.disableFormatting,onChange:p,inputRef:g})=>{let y={countries:n,prefix:r,charAfterDialCode:a,forceDialCode:d?!1:f,disableDialCodeAndPrefix:d,defaultMask:i,countryGuessingEnabled:!u,disableFormatting:h},$=C.useRef(null),D=g||$,b=V=>{Promise.resolve().then(()=>{var W;typeof window>"u"||D.current!==(document==null?void 0:document.activeElement)||((W=D.current)==null||W.setSelectionRange(V,V))})},[{phone:v,inputValue:w,country:T},E,A,M]=EG(()=>{let V=Ns({value:e,field:"iso2",countries:n});V||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let W=V||Ns({value:"us",field:"iso2",countries:n}),{phone:L,inputValue:k,country:_}=v0({value:t,country:W,insertDialCodeOnEmpty:!l,...y});return b(k.length),{phone:L,inputValue:k,country:_.iso2}},{overrideLastItemDebounceMS:o,onChange:({inputValue:V,phone:W,country:L})=>{if(!p)return;let k=S(L);p({phone:W,inputValue:V,country:k})}}),S=C.useCallback(V=>Ns({value:V,field:"iso2",countries:n}),[n]),z=C.useMemo(()=>S(T),[T,S]);C.useEffect(()=>{let V=D.current;if(!V)return;let W=L=>{if(!L.key)return;let k=L.ctrlKey,_=L.metaKey,H=L.shiftKey;if(L.key.toLowerCase()==="z"){if(yG()){if(!_)return}else if(!k)return;H?M():A()}};return V.addEventListener("keydown",W),()=>{V.removeEventListener("keydown",W)}},[D,A,M]);let j=V=>{V.preventDefault();let{phone:W,inputValue:L,country:k,cursorPosition:_}=xG(V,{country:z,phoneBeforeInput:w,insertDialCodeOnEmpty:!1,...y});return E({inputValue:L,phone:W,country:k.iso2}),b(_),t},O=(V,W={focusOnInput:!1})=>{let L=Ns({value:V,field:"iso2",countries:n});if(!L){console.error(`[react-international-phone]: can not find a country with "${V}" iso2 code`);return}let k=d?"":`${r}${L.dialCode}${a}`;E({inputValue:k,phone:`${r}${L.dialCode}`,country:L.iso2}),W.focusOnInput&&Promise.resolve().then(()=>{var _;(_=D.current)==null||_.focus()})},[Z,R]=C.useState(!1);return C.useEffect(()=>{if(!Z){R(!0),t!==v&&(p==null||p({inputValue:w,phone:v,country:z}));return}if(t===v)return;let{phone:V,inputValue:W,country:L}=v0({value:t,country:z,insertDialCodeOnEmpty:!l,...y});E({phone:V,inputValue:W,country:L.iso2})},[t]),{phone:v,inputValue:w,country:z,setCountry:O,handlePhoneValueChange:j,inputRef:D}},SG=({phone:e,country:t,defaultMask:n="............",disableFormatting:r=!1})=>{let i=t.format,a=u=>r?u.replace(new RegExp(`[^${K7}]`,"g"),""):u;if(!i)return a(n);if(typeof i=="string")return a(i);if(!i.default)return console.error(`[react-international-phone]: default mask for ${t.iso2} is not provided`),a(n);let o=Object.keys(i).find(u=>{if(u==="default")return!1;if(!(u.charAt(0)==="/"&&u.charAt(u.length-1)==="/"))return console.error(`[react-international-phone]: format regex "${u}" for ${t.iso2} is not valid`),!1;let l=new RegExp(u.substring(1,u.length-1)),f=e.replace(t.dialCode,"");return l.test(pp(f))});return a(o?i[o]:i.default)},jr=e=>{let[t,n,r,i,a,o]=e;return{name:t,iso2:n,dialCode:r,format:i,priority:a,areaCodes:o}},TG=e=>`Field "${e}" is not supported`,Ns=({field:e,value:t,countries:n=Jo})=>{if(["priority"].includes(e))throw new Error(TG(e));let r=n.find(i=>{let a=jr(i);return t===a[e]});if(r)return jr(r)},AG=({phone:e,countries:t=Jo,currentCountryIso2:n})=>{var u;let r={country:void 0,fullDialCodeMatch:!1};if(!e)return r;let i=pp(e);if(!i)return r;let a=r,o=({country:l,fullDialCodeMatch:f})=>{var p,g;let d=l.dialCode===((p=a.country)==null?void 0:p.dialCode),h=(l.priority??0)<(((g=a.country)==null?void 0:g.priority)??0);(!d||h)&&(a={country:l,fullDialCodeMatch:f})};for(let l of t){let f=jr(l),{dialCode:d,areaCodes:h}=f;if(i.startsWith(d)){let p=a.country?Number(d)>=Number(a.country.dialCode):!0;if(h){let g=i.substring(d.length);for(let y of h)if(g.startsWith(y))return{country:f,fullDialCodeMatch:!0}}(p||d===i||!a.fullDialCodeMatch)&&o({country:f,fullDialCodeMatch:!0})}a.fullDialCodeMatch||i.length<d.length&&d.startsWith(i)&&(!a.country||Number(d)<=Number(a.country.dialCode))&&o({country:f,fullDialCodeMatch:!1})}if(n){let l=Ns({value:n,field:"iso2",countries:t});if(!l)return a;let f=l?(d=>{if(!(d!=null&&d.areaCodes))return!1;let h=i.substring(d.dialCode.length);return d.areaCodes.some(p=>p.startsWith(h))})(l):!1;a&&((u=a.country)==null?void 0:u.dialCode)===l.dialCode&&a.country!==l&&a.fullDialCodeMatch&&(!l.areaCodes||f)&&(a={country:l,fullDialCodeMatch:!0})}return a},PG=(e,t)=>{let n=parseInt(e,16);return Number(n+t).toString(16)},_G="abcdefghijklmnopqrstuvwxyz",RG="1f1e6",KD=_G.split("").reduce((e,t,n)=>({...e,[t]:PG(RG,n)}),{}),OG=e=>[KD[e[0]],KD[e[1]]].join("-"),X1=({iso2:e,size:t,src:n,protocol:r="https",disableLazyLoading:i,className:a,style:o,...u})=>{if(!e)return C.createElement("img",{className:Cn({addPrefix:["flag-emoji"],rawClassNames:[a]}),width:t,height:t,...u});let l=()=>{if(n)return n;let f=OG(e);return`${r}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${f}.svg`};return C.createElement("img",{className:Cn({addPrefix:["flag-emoji"],rawClassNames:[a]}),src:l(),width:t,height:t,draggable:!1,"data-country":e,loading:i?void 0:"lazy",style:{width:t,height:t,...o},alt:"",...u})},MG=1e3,FG=({show:e,dialCodePrefix:t="+",selectedCountry:n,countries:r=Jo,preferredCountries:i=[],flags:a,onSelect:o,onClose:u,...l})=>{let f=C.useRef(null),d=C.useRef(),h=C.useMemo(()=>{if(!i||!i.length)return r;let A=[],M=[...r];for(let S of i){let z=M.findIndex(j=>jr(j).iso2===S);if(z!==-1){let j=M.splice(z,1)[0];A.push(j)}}return A.concat(M)},[r,i]),p=C.useRef({updatedAt:void 0,value:""}),g=A=>{let M=p.current.updatedAt&&new Date().getTime()-p.current.updatedAt.getTime()>MG;p.current={value:M?A:`${p.current.value}${A}`,updatedAt:new Date};let S=h.findIndex(z=>jr(z).name.toLowerCase().startsWith(p.current.value));S!==-1&&D(S)},y=C.useCallback(A=>h.findIndex(M=>jr(M).iso2===A),[h]),[$,D]=C.useState(y(n)),b=()=>{d.current!==n&&D(y(n))},v=C.useCallback(A=>{D(y(A.iso2)),o==null||o(A)},[o,y]),w=A=>{let M=h.length-1,S=z=>A==="prev"?z-1:A==="next"?z+1:A==="last"?M:0;D(z=>{let j=S(z);return j<0?0:j>M?M:j})},T=A=>{if(A.stopPropagation(),A.key==="Enter"){A.preventDefault();let M=jr(h[$]);v(M);return}if(A.key==="Escape"){u==null||u();return}if(A.key==="ArrowUp"){A.preventDefault(),w("prev");return}if(A.key==="ArrowDown"){A.preventDefault(),w("next");return}if(A.key==="PageUp"){A.preventDefault(),w("first");return}if(A.key==="PageDown"){A.preventDefault(),w("last");return}A.key===" "&&A.preventDefault(),A.key.length===1&&!A.altKey&&!A.ctrlKey&&!A.metaKey&&g(A.key.toLocaleLowerCase())},E=C.useCallback(()=>{if(!f.current||$===void 0)return;let A=jr(h[$]).iso2;if(A===d.current)return;let M=f.current.querySelector(`[data-country="${A}"]`);M&&(gG(f.current,M),d.current=A)},[$,h]);return C.useEffect(()=>{E()},[$,E]),C.useEffect(()=>{f.current&&(e?f.current.focus():b())},[e]),C.useEffect(()=>{b()},[n]),C.createElement("ul",{ref:f,role:"listbox",className:Cn({addPrefix:["country-selector-dropdown"],rawClassNames:[l.className]}),style:{display:e?"block":"none",...l.style},onKeyDown:T,onBlur:u,tabIndex:-1,"aria-activedescendant":`react-international-phone__${jr(h[$]).iso2}-option`},h.map((A,M)=>{let S=jr(A),z=S.iso2===n,j=M===$,O=i.includes(S.iso2),Z=M===i.length-1,R=a==null?void 0:a.find(V=>V.iso2===S.iso2);return C.createElement(C.Fragment,{key:S.iso2},C.createElement("li",{"data-country":S.iso2,role:"option","aria-selected":z,"aria-label":`${S.name} ${t}${S.dialCode}`,id:`react-international-phone__${S.iso2}-option`,className:Cn({addPrefix:["country-selector-dropdown__list-item",O&&"country-selector-dropdown__list-item--preferred",z&&"country-selector-dropdown__list-item--selected",j&&"country-selector-dropdown__list-item--focused"],rawClassNames:[l.listItemClassName]}),onClick:()=>v(S),style:l.listItemStyle,title:S.name},C.createElement(X1,{iso2:S.iso2,src:R==null?void 0:R.src,className:Cn({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[l.listItemFlagClassName]}),style:l.listItemFlagStyle}),C.createElement("span",{className:Cn({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[l.listItemCountryNameClassName]}),style:l.listItemCountryNameStyle},S.name),C.createElement("span",{className:Cn({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[l.listItemDialCodeClassName]}),style:l.listItemDialCodeStyle},t,S.dialCode)),Z?C.createElement("hr",{className:Cn({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[l.preferredListDividerClassName]}),style:l.preferredListDividerStyle}):null)}))},kG=({selectedCountry:e,onSelect:t,disabled:n,hideDropdown:r,countries:i=Jo,preferredCountries:a=[],flags:o,renderButtonWrapper:u,...l})=>{let[f,d]=C.useState(!1),h=C.useMemo(()=>{if(e)return Ns({value:e,field:"iso2",countries:i})},[i,e]),p=C.useRef(null),g=$=>{$.key&&["ArrowUp","ArrowDown"].includes($.key)&&($.preventDefault(),d(!0))},y=()=>{var b;let $={title:h==null?void 0:h.name,onClick:()=>d(v=>!v),onMouseDown:v=>v.preventDefault(),onKeyDown:g,disabled:r||n,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":f},D=C.createElement("div",{className:Cn({addPrefix:["country-selector-button__button-content"],rawClassNames:[l.buttonContentWrapperClassName]}),style:l.buttonContentWrapperStyle},C.createElement(X1,{iso2:e,src:(b=o==null?void 0:o.find(v=>v.iso2===e))==null?void 0:b.src,className:Cn({addPrefix:["country-selector-button__flag-emoji",n&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[l.flagClassName]}),style:{visibility:e?"visible":"hidden",...l.flagStyle}}),!r&&C.createElement("div",{className:Cn({addPrefix:["country-selector-button__dropdown-arrow",n&&"country-selector-button__dropdown-arrow--disabled",f&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[l.dropdownArrowClassName]}),style:l.dropdownArrowStyle}));return u?u({children:D,rootProps:$}):C.createElement("button",{...$,type:"button",className:Cn({addPrefix:["country-selector-button",f&&"country-selector-button--active",n&&"country-selector-button--disabled",r&&"country-selector-button--hide-dropdown"],rawClassNames:[l.buttonClassName]}),"data-country":e,style:l.buttonStyle},D)};return C.createElement("div",{className:Cn({addPrefix:["country-selector"],rawClassNames:[l.className]}),style:l.style,ref:p},y(),C.createElement(FG,{show:f,countries:i,preferredCountries:a,flags:o,onSelect:$=>{d(!1),t==null||t($)},selectedCountry:e,onClose:()=>{d(!1)},...l.dropdownStyleProps}))},IG=({dialCode:e,prefix:t,disabled:n,style:r,className:i})=>C.createElement("div",{className:Cn({addPrefix:["dial-code-preview",n&&"dial-code-preview--disabled"],rawClassNames:[i]}),style:r},`${t}${e}`);C.forwardRef(({value:e,onChange:t,countries:n=Jo,preferredCountries:r=[],hideDropdown:i,showDisabledDialCodeAndPrefix:a,disableFocusAfterCountrySelect:o,flags:u,style:l,className:f,inputStyle:d,inputClassName:h,countrySelectorStyleProps:p,dialCodePreviewStyleProps:g,inputProps:y,placeholder:$,disabled:D,name:b,onFocus:v,onBlur:w,required:T,autoFocus:E,...A},M)=>{let{phone:S,inputValue:z,inputRef:j,country:O,setCountry:Z,handlePhoneValueChange:R}=U7({value:e,countries:n,...A,onChange:W=>{t==null||t(W.phone,{country:W.country,inputValue:W.inputValue})}}),V=A.disableDialCodeAndPrefix&&a&&(O==null?void 0:O.dialCode);return C.useImperativeHandle(M,()=>j.current?Object.assign(j.current,{setCountry:Z,state:{phone:S,inputValue:z,country:O}}):null,[j,Z,S,z,O]),C.createElement("div",{ref:M,className:Cn({addPrefix:["input-container"],rawClassNames:[f]}),style:l},C.createElement(kG,{onSelect:W=>Z(W.iso2,{focusOnInput:!o}),flags:u,selectedCountry:O.iso2,countries:n,preferredCountries:r,disabled:D,hideDropdown:i,...p}),V&&C.createElement(IG,{dialCode:O.dialCode,prefix:A.prefix??"+",disabled:D,...g}),C.createElement("input",{onChange:R,value:z,type:"tel",ref:j,className:Cn({addPrefix:["input",D&&"input--disabled"],rawClassNames:[h]}),placeholder:$,disabled:D,style:d,name:b,onFocus:v,onBlur:w,autoFocus:E,required:T,...y}))});var La=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},b0={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",o="[object Array]",u="[object Boolean]",l="[object Date]",f="[object Error]",d="[object Function]",h="[object GeneratorFunction]",p="[object Map]",g="[object Number]",y="[object Object]",$="[object Promise]",D="[object RegExp]",b="[object Set]",v="[object String]",w="[object Symbol]",T="[object WeakMap]",E="[object ArrayBuffer]",A="[object DataView]",M="[object Float32Array]",S="[object Float64Array]",z="[object Int8Array]",j="[object Int16Array]",O="[object Int32Array]",Z="[object Uint8Array]",R="[object Uint8ClampedArray]",V="[object Uint16Array]",W="[object Uint32Array]",L=/[\\^$.*+?()[\]{}|]/g,k=/\w*$/,_=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,U={};U[a]=U[o]=U[E]=U[A]=U[u]=U[l]=U[M]=U[S]=U[z]=U[j]=U[O]=U[p]=U[g]=U[y]=U[D]=U[b]=U[v]=U[w]=U[Z]=U[R]=U[V]=U[W]=!0,U[f]=U[d]=U[T]=!1;var N=typeof La=="object"&&La&&La.Object===Object&&La,ne=typeof self=="object"&&self&&self.Object===Object&&self,ie=N||ne||Function("return this")(),ce=t&&!t.nodeType&&t,xe=ce&&!0&&e&&!e.nodeType&&e,De=xe&&xe.exports===ce;function Ee(K,ae){return K.set(ae[0],ae[1]),K}function J(K,ae){return K.add(ae),K}function ye(K,ae){for(var pe=-1,Ie=K?K.length:0;++pe<Ie&&ae(K[pe],pe,K)!==!1;);return K}function we(K,ae){for(var pe=-1,Ie=ae.length,tn=K.length;++pe<Ie;)K[tn+pe]=ae[pe];return K}function me(K,ae,pe,Ie){for(var tn=-1,gn=K?K.length:0;++tn<gn;)pe=ae(pe,K[tn],tn,K);return pe}function ue(K,ae){for(var pe=-1,Ie=Array(K);++pe<K;)Ie[pe]=ae(pe);return Ie}function Le(K,ae){return K==null?void 0:K[ae]}function nt(K){var ae=!1;if(K!=null&&typeof K.toString!="function")try{ae=!!(K+"")}catch{}return ae}function Nt(K){var ae=-1,pe=Array(K.size);return K.forEach(function(Ie,tn){pe[++ae]=[tn,Ie]}),pe}function Zn(K,ae){return function(pe){return K(ae(pe))}}function Pt(K){var ae=-1,pe=Array(K.size);return K.forEach(function(Ie){pe[++ae]=Ie}),pe}var G=Array.prototype,Q=Function.prototype,re=Object.prototype,ve=ie["__core-js_shared__"],Se=function(){var K=/[^.]+$/.exec(ve&&ve.keys&&ve.keys.IE_PROTO||"");return K?"Symbol(src)_1."+K:""}(),Ce=Q.toString,Fe=re.hasOwnProperty,Ne=re.toString,_t=RegExp("^"+Ce.call(Fe).replace(L,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ut=De?ie.Buffer:void 0,Zt=ie.Symbol,Xr=ie.Uint8Array,Rr=Zn(Object.getPrototypeOf,Object),mn=Object.create,Qr=re.propertyIsEnumerable,ei=G.splice,ti=Object.getOwnPropertySymbols,Or=ut?ut.isBuffer:void 0,Xa=Zn(Object.keys,Object),ni=Ke(ie,"DataView"),Oi=Ke(ie,"Map"),ri=Ke(ie,"Promise"),ha=Ke(ie,"Set"),Mi=Ke(ie,"WeakMap"),or=Ke(Object,"create"),Qa=ki(ni),eo=ki(Oi),Uu=ki(ri),zu=ki(ha),rs=ki(Mi),pa=Zt?Zt.prototype:void 0,is=pa?pa.valueOf:void 0;function Mr(K){var ae=-1,pe=K?K.length:0;for(this.clear();++ae<pe;){var Ie=K[ae];this.set(Ie[0],Ie[1])}}function to(){this.__data__=or?or(null):{}}function qu(K){return this.has(K)&&delete this.__data__[K]}function no(K){var ae=this.__data__;if(or){var pe=ae[K];return pe===r?void 0:pe}return Fe.call(ae,K)?ae[K]:void 0}function Wu(K){var ae=this.__data__;return or?ae[K]!==void 0:Fe.call(ae,K)}function Hu(K,ae){var pe=this.__data__;return pe[K]=or&&ae===void 0?r:ae,this}Mr.prototype.clear=to,Mr.prototype.delete=qu,Mr.prototype.get=no,Mr.prototype.has=Wu,Mr.prototype.set=Hu;function In(K){var ae=-1,pe=K?K.length:0;for(this.clear();++ae<pe;){var Ie=K[ae];this.set(Ie[0],Ie[1])}}function Gu(){this.__data__=[]}function Bn(K){var ae=this.__data__,pe=oi(ae,K);if(pe<0)return!1;var Ie=ae.length-1;return pe==Ie?ae.pop():ei.call(ae,pe,1),!0}function Yu(K){var ae=this.__data__,pe=oi(ae,K);return pe<0?void 0:ae[pe][1]}function Zu(K){return oi(this.__data__,K)>-1}function Ju(K,ae){var pe=this.__data__,Ie=oi(pe,K);return Ie<0?pe.push([K,ae]):pe[Ie][1]=ae,this}In.prototype.clear=Gu,In.prototype.delete=Bn,In.prototype.get=Yu,In.prototype.has=Zu,In.prototype.set=Ju;function Fr(K){var ae=-1,pe=K?K.length:0;for(this.clear();++ae<pe;){var Ie=K[ae];this.set(Ie[0],Ie[1])}}function Xu(){this.__data__={hash:new Mr,map:new(Oi||In),string:new Mr}}function Qu(K){return Ve(this,K).delete(K)}function el(K){return Ve(this,K).get(K)}function tl(K){return Ve(this,K).has(K)}function nl(K,ae){return Ve(this,K).set(K,ae),this}Fr.prototype.clear=Xu,Fr.prototype.delete=Qu,Fr.prototype.get=el,Fr.prototype.has=tl,Fr.prototype.set=nl;function ii(K){this.__data__=new In(K)}function ai(){this.__data__=new In}function as(K){return this.__data__.delete(K)}function ma(K){return this.__data__.get(K)}function rl(K){return this.__data__.has(K)}function os(K,ae){var pe=this.__data__;if(pe instanceof In){var Ie=pe.__data__;if(!Oi||Ie.length<n-1)return Ie.push([K,ae]),this;pe=this.__data__=new Fr(Ie)}return pe.set(K,ae),this}ii.prototype.clear=ai,ii.prototype.delete=as,ii.prototype.get=ma,ii.prototype.has=rl,ii.prototype.set=os;function il(K,ae){var pe=ul(K)||Wp(K)?ue(K.length,String):[],Ie=pe.length,tn=!!Ie;for(var gn in K)Fe.call(K,gn)&&!(tn&&(gn=="length"||Tn(gn,Ie)))&&pe.push(gn);return pe}function ga(K,ae,pe){var Ie=K[ae];(!(Fe.call(K,ae)&&sl(Ie,pe))||pe===void 0&&!(ae in K))&&(K[ae]=pe)}function oi(K,ae){for(var pe=K.length;pe--;)if(sl(K[pe][0],ae))return pe;return-1}function ro(K,ae){return K&&ge(ae,cl(ae),K)}function io(K,ae,pe,Ie,tn,gn,ur){var yn;if(Ie&&(yn=gn?Ie(K,tn,gn,ur):Ie(K)),yn!==void 0)return yn;if(!ps(K))return K;var Jt=ul(K);if(Jt){if(yn=cn(K),!ae)return se(K,yn)}else{var si=Rt(K),ui=si==d||si==h;if(ll(K))return cs(K,ae);if(si==y||si==a||ui&&!gn){if(nt(K))return gn?K:{};if(yn=fn(ui?{}:K),!ae)return _e(K,ro(yn,K))}else{if(!U[si])return gn?K:{};yn=sr(K,si,io,ae)}}ur||(ur=new ii);var fl=ur.get(K);if(fl)return fl;if(ur.set(K,yn),!Jt)var ms=pe?Xe(K):cl(K);return ye(ms||K,function(vn,uo){ms&&(uo=vn,vn=K[uo]),ga(yn,uo,io(vn,ae,pe,Ie,uo,K,ur))}),yn}function ss(K){return ps(K)?mn(K):{}}function us(K,ae,pe){var Ie=ae(K);return ul(K)?Ie:we(Ie,pe(K))}function al(K){return Ne.call(K)}function ls(K){if(!ps(K)||oo(K))return!1;var ae=gf(K)||nt(K)?_t:_;return ae.test(ki(K))}function ao(K){if(!so(K))return Xa(K);var ae=[];for(var pe in Object(K))Fe.call(K,pe)&&pe!="constructor"&&ae.push(pe);return ae}function cs(K,ae){if(ae)return K.slice();var pe=new K.constructor(K.length);return K.copy(pe),pe}function Fi(K){var ae=new K.constructor(K.byteLength);return new Xr(ae).set(new Xr(K)),ae}function ol(K,ae){var pe=ae?Fi(K.buffer):K.buffer;return new K.constructor(pe,K.byteOffset,K.byteLength)}function fs(K,ae,pe){var Ie=ae?pe(Nt(K),!0):Nt(K);return me(Ie,Ee,new K.constructor)}function ya(K){var ae=new K.constructor(K.source,k.exec(K));return ae.lastIndex=K.lastIndex,ae}function ds(K,ae,pe){var Ie=ae?pe(Pt(K),!0):Pt(K);return me(Ie,J,new K.constructor)}function I(K){return is?Object(is.call(K)):{}}function X(K,ae){var pe=ae?Fi(K.buffer):K.buffer;return new K.constructor(pe,K.byteOffset,K.length)}function se(K,ae){var pe=-1,Ie=K.length;for(ae||(ae=Array(Ie));++pe<Ie;)ae[pe]=K[pe];return ae}function ge(K,ae,pe,Ie){pe||(pe={});for(var tn=-1,gn=ae.length;++tn<gn;){var ur=ae[tn],yn=void 0;ga(pe,ur,yn===void 0?K[ur]:yn)}return pe}function _e(K,ae){return ge(K,$t(K),ae)}function Xe(K){return us(K,cl,$t)}function Ve(K,ae){var pe=K.__data__;return hs(ae)?pe[typeof ae=="string"?"string":"hash"]:pe.map}function Ke(K,ae){var pe=Le(K,ae);return ls(pe)?pe:void 0}var $t=ti?Zn(ti,Object):wt,Rt=al;(ni&&Rt(new ni(new ArrayBuffer(1)))!=A||Oi&&Rt(new Oi)!=p||ri&&Rt(ri.resolve())!=$||ha&&Rt(new ha)!=b||Mi&&Rt(new Mi)!=T)&&(Rt=function(K){var ae=Ne.call(K),pe=ae==y?K.constructor:void 0,Ie=pe?ki(pe):void 0;if(Ie)switch(Ie){case Qa:return A;case eo:return p;case Uu:return $;case zu:return b;case rs:return T}return ae});function cn(K){var ae=K.length,pe=K.constructor(ae);return ae&&typeof K[0]=="string"&&Fe.call(K,"index")&&(pe.index=K.index,pe.input=K.input),pe}function fn(K){return typeof K.constructor=="function"&&!so(K)?ss(Rr(K)):{}}function sr(K,ae,pe,Ie){var tn=K.constructor;switch(ae){case E:return Fi(K);case u:case l:return new tn(+K);case A:return ol(K,Ie);case M:case S:case z:case j:case O:case Z:case R:case V:case W:return X(K,Ie);case p:return fs(K,Ie,pe);case g:case v:return new tn(K);case D:return ya(K);case b:return ds(K,Ie,pe);case w:return I(K)}}function Tn(K,ae){return ae=ae??i,!!ae&&(typeof K=="number"||H.test(K))&&K>-1&&K%1==0&&K<ae}function hs(K){var ae=typeof K;return ae=="string"||ae=="number"||ae=="symbol"||ae=="boolean"?K!=="__proto__":K===null}function oo(K){return!!Se&&Se in K}function so(K){var ae=K&&K.constructor,pe=typeof ae=="function"&&ae.prototype||re;return K===pe}function ki(K){if(K!=null){try{return Ce.call(K)}catch{}try{return K+""}catch{}}return""}function qp(K){return io(K,!0,!0)}function sl(K,ae){return K===ae||K!==K&&ae!==ae}function Wp(K){return Hp(K)&&Fe.call(K,"callee")&&(!Qr.call(K,"callee")||Ne.call(K)==a)}var ul=Array.isArray;function mf(K){return K!=null&&Gp(K.length)&&!gf(K)}function Hp(K){return Yp(K)&&mf(K)}var ll=Or||xt;function gf(K){var ae=ps(K)?Ne.call(K):"";return ae==d||ae==h}function Gp(K){return typeof K=="number"&&K>-1&&K%1==0&&K<=i}function ps(K){var ae=typeof K;return!!K&&(ae=="object"||ae=="function")}function Yp(K){return!!K&&typeof K=="object"}function cl(K){return mf(K)?il(K):ao(K)}function wt(){return[]}function xt(){return!1}e.exports=qp})(b0,b0.exports);var Va=b0.exports,$0=function(){return $0=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},$0.apply(this,arguments)};function BG(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function u(d){try{f(r.next(d))}catch(h){o(h)}}function l(d){try{f(r.throw(d))}catch(h){o(h)}}function f(d){d.done?a(d.value):i(d.value).then(u,l)}f((r=r.apply(e,[])).next())})}function LG(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=u(0),o.throw=u(1),o.return=u(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(f){return function(d){return l([f,d])}}function l(f){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,f[0]&&(n=0)),n;)try{if(r=1,i&&(a=f[0]&2?i.return:f[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;switch(i=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,i=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){n.label=f[1];break}if(f[0]===6&&n.label<a[1]){n.label=a[1],a=f;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(f);break}a[2]&&n.ops.pop(),n.trys.pop();continue}f=t.call(e,n)}catch(d){f=[6,d],i=0}finally{r=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function bh(e,t,n,r,i){return BG(this,void 0,void 0,function(){var a,o;return LG(this,function(u){switch(u.label){case 0:if(n===void 0)return[2];o=0,u.label=1;case 1:return o<n.length?[4,n[o](e,t,r,i,n)]:[3,4];case 2:if(a=u.sent(),a==="canceled")return[3,4];u.label=3;case 3:return o++,[3,1];case 4:return a!=="canceled"?[2,a]:[2]}})})}var x0=function(e,t){return t===void 0&&(t={}),e?{trackedAnalytics:$0({sdkCode:e.sdkCode,sdkSemver:e.sdkSemver,techVersion:e.techVersion},t)}:null},VG=function(){function e(t,n,r,i){var a=this;this.isMounted=!0,this.imgElement=t,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var o=Va(n);bh(t,o,r,this.htmlPluginState,i).then(function(u){if(a.isMounted){a.htmlPluginState.pluginEventSubscription.forEach(function(f){f()});var l=x0(i,u);a.imgElement.setAttribute("src",o.toURL(l))}})}return e.prototype.update=function(t,n,r){var i=this,a=Va(t);bh(this.imgElement,a,n,this.htmlPluginState).then(function(o){if(i.isMounted){var u=x0(r,o);i.imgElement.setAttribute("src",a.toURL(u))}})},e.prototype.unmount=function(){this.isMounted=!1},e}();let Vt=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}},NG=class extends Error{constructor(t="Unsupported"){super(t)}};function Q1(e){return new NG(e)}function jG(){return this._qualifierModel||{error:Q1(`unsupported qualifier ${this.constructor.name}`)}}let KG=class{constructor(){this._qualifierModel={}}toJson(){return jG.apply(this)}},Je=class extends KG{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof Vt?this.qualifierValue=n:(this.qualifierValue=new Vt,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}},Tr=class extends Je{constructor(t,n){let r;n?r=new Vt([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}};function UG(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function zG(){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:Q1(`unsupported action ${this.constructor.name}`)}}let qG=class{constructor(){this._actionModel={}}toJson(){return zG.apply(this)}},Gr=class extends qG{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(),UG(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 Tr(r)):this.qualifiers.set(n,new Je(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new Tr(t)):t instanceof Tr&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}};class e4 extends Gr{constructor(t){super(),this.regionType=t,this._actionModel.regionType=t}}class mp extends e4{constructor(){super("custom")}x(t){return this._actionModel.x=t,this.addQualifier(new Je("x",t)),this}y(t){return this._actionModel.y=t,this.addQualifier(new Je("y",t)),this}width(t){return this._actionModel.width=t,this.addQualifier(new Je("w",t)),this}height(t){return this._actionModel.height=t,this.addQualifier(new Je("h",t)),this}static fromJson(t){const n=new mp;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 WG(){return new mp}function z7(){return new e4("faces")}function HG(){return new e4("ocr_text")}class GG extends Gr{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 Je("e",`blur_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new Je("e",`blur_region${t}`)),this.addQualifier(new Je("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new Je("e",`blur_faces${t}`))):this.addQualifier(new Je("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(z7()),r&&r.regionType==="ocr_text"&&i.region(HG()),r&&r.regionType==="custom"&&i.region(mp.fromJson(r)),i}}function Xo(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const q7={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},YG={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},W7={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},H7={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},ZG={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},G7={444:"CHROMA_444",420:"CHROMA_420"},JG={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"},XG=Xo(G7);Xo(JG);const QG=Xo(q7),eY=Xo(YG),Y7=Xo(W7);Xo(H7);Xo(ZG);class Z7 extends Gr{constructor(t,n){super(),this._actionModel={},this._actionModel.actionType=Y7[t]||t;const r=this.createEffectQualifier(t,n);this.addQualifier(r)}createEffectQualifier(t,n){let r;return n?r=new Vt([t,`${n}`]).setDelimiter(":"):r=new Vt(t),new Je("e",r)}static fromJson(t){const{actionType:n,level:r,strength:i}=t,a=W7[n]||n;return new this(a,r||i)}}class tY extends Z7{constructor(t,n){super(t,n),this.LEVEL_NAME="level",this._actionModel={},this.effectType=t,this._actionModel.actionType=Y7[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 gp(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class nY extends Gr{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 Vt(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(t+=`:${new Vt(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(t+=`:${new Vt(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(t+=`:${new Vt(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(t+=`:${new Vt(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new Je("e",t))}static fromJson(t){const{actionType:n,paths:r,cornersLevel:i,despeckleLevel:a,detailLevel:o,numOfColors:u}=t,l=new this;return r&&l.paths(r),i&&l.cornersLevel(i),a&&l.despeckleLevel(a),o&&l.detailsLevel(o),u&&l.numOfColors(u),l}}class rY extends tY{level(t){return this._actionModel.level=t,this.setLevel(t)}}class iY extends Gr{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new Je("e",new Vt("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new Je("e",new Vt(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(t){return this._actionModel.type="stripes",this._actionModel.stripesStrength=t,this.addQualifier(new Je("e",new Vt(["assist_colorblind",t]).setDelimiter(":")))}static fromJson(t){const{actionType:n,type:r,stripesStrength:i}=t,a=new this;return r==="xray"&&a.xray(),r==="stripes"&&i&&a.stripesStrength(i),a}}class aY extends rY{color(t){return this._actionModel.color=t,this.addQualifier(new Je("co",new Vt(gp(t))))}static fromJson(t){const{actionType:n,level:r,color:i}=t,a=new this(n,r);return i&&a.color(i),a}}class oY extends Gr{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 Je("e",`pixelate_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new Je("e",`pixelate_region${t}`)),this.addQualifier(new Je("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new Je("e",`pixelate_faces${t}`))):this.addQualifier(new Je("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(z7()),n&&n.regionType==="custom"&&i.region(WG()),i}}function sY(e){return new GG(e)}function uY(){return new Z7("grayscale")}function UD(e){return new aY("colorize",e)}function lY(){return new nY}function cY(){return new iY}function fY(e){return new oY(e)}let dY=class extends Gr{constructor(t){super(),this._actionModel={},this.addQualifier(new Je("b",new Vt(gp(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}},zD=class{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:Q1(`unsupported action ${this.constructor.name}`)}}};function hY(e){const t=e;return"error"in t&&!!t.error}function pY(){return new Tr("ignore_aspect_ratio")}function mY(){return new Tr("lossy")}function gY(){return new Tr("preserve_transparency")}function yY(e){return new Tr("progressive",e)}function vY(){return new Tr("region_relative")}function bY(){return new Tr("relative")}let t4=class extends Vt{constructor(t){super(t),this.val=t}getValue(){return this.val}},J7=class extends Gr{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof t4?i=n.getValue():i=n,this._actionModel.actionType=eY[t],this._actionModel[r]=i,this.addQualifier(new Je(t,n))}},$Y=class extends Tr{constructor(t){super("progressive",t)}},w0=class extends J7{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(mY()),this}progressive(t){return t instanceof $Y?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(yY(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(gY()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:a}=t;let o;return n?o=new this("f",n):o=new this("f"),i&&(i.mode?o.progressive(i.mode):o.progressive()),r&&o.lossy(),a&&o.preserveTransparency(),o}},yp=class X7{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 zD(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof X7?this.actions=this.actions.concat(t.actions):this.actions.push(new zD(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 w0("q",t)),this}format(t){return this.addAction(new w0("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 dY(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new Gr;let r=t;return typeof t=="string"&&(r=new Tr(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(hY(r))return r;t.push(r)}return{actions:t}}};function qD(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 xY extends Vt{}class wY extends Gr{constructor(t,n,r){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=QG[t]||t,this.addQualifier(new Je("c",t)),n&&this.width(n),r&&this.height(r)}height(t){return this._actionModel.dimensions.height=t,this.addQualifier(new Je("h",t))}width(t){return this._actionModel.dimensions.width=t,this.addQualifier(new Je("w",t))}aspectRatio(t){if(t instanceof xY)return this._actionModel.dimensions.aspectRatio=`${t}`,this.addQualifier(new Je("ar",t));if(typeof t=="number"||typeof t=="string")return this._actionModel.dimensions.aspectRatio=qD(t),this.addQualifier(new Je("ar",qD(t)));if(t instanceof Tr)return this._actionModel.dimensions.aspectRatio=`${t.qualifierValue}`,this.addFlag(t)}relative(){return this._actionModel.relative=!0,this.addFlag(bY())}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(vY())}static fromJson(t){const{actionType:n,dimensions:r,relative:i,regionRelative:a}=t,{aspectRatio:o,width:u,height:l}=r,f=q7[n]||n,d=new this(f,u,l);return o&&d.aspectRatio(o==="ignore_aspect_ratio"?pY():o),i&&d.relative(),a&&d.regionRelative(),d}}class n4 extends Je{constructor(t){super("g",new Vt(t))}}class Q7 extends n4{constructor(){super("auto")}autoFocus(...t){return this.addValue(t),this}}class eO extends n4{constructor(t){super(t)}fallbackGravity(t){return this.addValue(t.qualifierValue),this}}class tO extends n4{constructor(t){super(t)}}function DY(e){return new tO(e)}function nO(...e){const t=[...e];return new eO(t)}function rO(){return new Q7}class pu extends Vt{constructor(t){super(),this.name=t}toString(){return this.name}}function CY(){return new pu("ocr_text")}function EY(e){return e&&`${e}`.split(":")[0]==="auto"}function SY(e){const t=r4(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}function r4(e){return`${e}`.replace("g_","")}function TY(e){return{compass:r4(e),gravityType:"direction"}}function AY(e){return r4(e)==="ocr_text"}function PY(){return{gravityType:"ocr"}}function _Y(e){return`${e.qualifierValue}`.split(":")[0]==="auto"}function RY(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 iO(e){let t;const n=e==="auto"?new Q7: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(RY)}}function OY(e){const t=`${e}`.split(":").includes("auto"),n=e.qualifierValue.values,i={gravityType:"object",focusOnObjects:(t?n.slice(0,n.length-1):n).map(a=>`${a}`)};if(t){const a=n[n.length-1].values.slice(1),o=rO().autoFocus(...a);i.fallbackGravity=iO(o)}return i}function MY(e){const n=e.split(":").map(r=>new pu(r));return new eO(n)}function FY(e){return SY(e)?TY(e):AY(e)?PY():EY(e)||_Y(e)?iO(e):OY(typeof e=="string"?MY(e):e)}class i4 extends Vt{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 i4(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 aO extends Vt{constructor(t){super(),this.val=t}toString(){return this.val}}function kY(e){return e.gravityType==="direction"}function IY(e){return e.gravityType==="ocr"}function BY(e){return e.gravityType==="auto"}function LY(e){const{object:t,weight:n,avoid:r}=e,i=new i4(new pu(t));return(n||n===0)&&i.weight(n),r&&i.avoid(),i}function oO(e){const n=(e.autoFocus||[]).map(LY);return rO().autoFocus(...n)}function VY(e){const t=(e.focusOnObjects||[]).map(r=>new pu(r)),n=nO(...t);if(e.fallbackGravity){const r=oO(e.fallbackGravity);n.fallbackGravity(r)}return n}function NY(e){return kY(e)?new tO(new aO(e.compass)):IY(e)?nO(CY()):BY(e)?oO(e):VY(e)}class a4 extends wY{gravity(t){this._actionModel.gravity=FY(t);const n=typeof t=="string"?new Je("g",t):t;return this.addQualifier(n)}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.gravity&&n.gravity(NY(t.gravity)),n}}class Gc extends Je{constructor(t){super("b"),t&&this.addValue(t)}}const sO=100,jY=0;class KY extends Gc{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}`:`:${sO}:${this.brightnessLevel}`:"";return`b_blurred${t}${n}`}}var uO=KY;class o4 extends Gc{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...t){return this._palette=t.map(n=>gp(n)),this}}class lO extends o4{toString(){return`
|
|
85
|
+
b_auto:border
|
|
86
|
+
${this._contrast?"_contrast":""}
|
|
87
|
+
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
88
|
+
`.replace(/\s+/g,"")}}class cO extends o4{gradientColors(t){return this._gradientColors=t,this}gradientDirection(t){return this._gradientDirection=t,this}}class fO extends cO{toString(){return`
|
|
89
|
+
b_auto:border_gradient
|
|
90
|
+
${this._contrast?"_contrast":""}
|
|
91
|
+
${this._gradientColors?`:${this._gradientColors}`:""}
|
|
92
|
+
${this._gradientDirection?`:${this._gradientDirection}`:""}
|
|
93
|
+
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
94
|
+
`.replace(/\s+/g,"")}}class dO extends cO{toString(){return`
|
|
95
|
+
b_auto:predominant_gradient
|
|
96
|
+
${this._contrast?"_contrast":""}
|
|
97
|
+
${this._gradientColors?`:${this._gradientColors}`:""}
|
|
98
|
+
${this._gradientDirection?`:${this._gradientDirection}`:""}
|
|
99
|
+
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
100
|
+
`.replace(/\s+/g,"")}}class hO extends o4{toString(){return`
|
|
101
|
+
b_auto:predominant
|
|
102
|
+
${this._contrast?"_contrast":""}
|
|
103
|
+
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
104
|
+
`.replace(/\s+/g,"")}}class pO extends Gc{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 mO(e){return`${e}`.replace("b_","")}function UY(){return{backgroundType:"auto"}}function zY(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 s4(e){const t=e._contrast,n=e._palette,r={backgroundType:""};return t&&(r.contrast=!0),n&&(r.palette=n),r}function qY(e){return Object.assign(Object.assign({},s4(e)),{backgroundType:"border"})}function gO(e){const t=e._gradientColors,n=`${e._gradientDirection}`,r=s4(e);return t&&(r.gradientColors=t),n&&(r.gradientDirection=n),r}function WY(e){return Object.assign(Object.assign({},gO(e)),{backgroundType:"borderGradient"})}function HY(e){return{backgroundType:"color",color:mO(e)}}function GY(e){return Object.assign(Object.assign({},s4(e)),{backgroundType:"predominant"})}function YY(e){return Object.assign(Object.assign({},gO(e)),{backgroundType:"predominantGradient"})}function ZY(e){return Object.assign({backgroundType:e.getBackgroundType()},e.getPrompt()?{prompt:e.getPrompt()}:{})}function JY(e){return mO(e)==="auto"?UY():e instanceof uO?zY(e):e instanceof lO?qY(e):e instanceof fO?WY(e):e instanceof hO?GY(e):e instanceof dO?YY(e):e instanceof pO?ZY(e):HY(e)}function XY(){return new t4("svg")}function u4(){return new t4("auto")}function yO(){return new lO}function vO(){return new Gc("auto")}function bO(){return new fO}function $O(){return new dO}function xO(){return new hO}function wO(e){return new Gc(gp(e))}function QY(){return new uO}function DO(){return new pO}const CO={auto:vO,border:yO,borderGradient:bO,predominantGradient:$O,predominant:xO,color:wO,blurred:QY,generativeFill:DO};function eZ(e){const{brightness:t,intensity:n}=e,r=CO.blurred();return r.brightness(t??jY),r.intensity(n??sO),r}function WD(e,t){const{gradientColors:n,gradientDirection:r,contrast:i,palette:a}=t;return i&&e.contrast(),a&&e.palette(...a),n&&e.gradientColors(+n),r&&e.gradientDirection(r),e}function HD(e,t){const{contrast:n,palette:r}=t;return n&&e.contrast(),r&&e.palette(...r),e}function tZ(e,t){const{prompt:n}=t;return n&&e.prompt(n),e}function nZ(e){const{backgroundType:t}=e;switch(t){case"auto":return vO();case"blurred":return eZ(e);case"border":return HD(yO(),e);case"borderGradient":return WD(bO(),e);case"predominant":return HD(xO(),e);case"predominantGradient":return WD($O(),e);case"generativeFill":return tZ(DO(),e);default:return wO(e.color)}}class rZ extends a4{background(t){return this._actionModel.background=JY(t),this.addQualifier(t)}offsetX(t){return this._actionModel.x=t,this.addQualifier(new Je("x",t))}offsetY(t){return this._actionModel.y=t,this.addQualifier(new Je("y",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.background&&n.background(nZ(t.background)),t.x&&n.offsetX(t.x),t.y&&n.offsetY(t.y),t.zoom&&n.zoom(t.zoom),n}}class iZ extends a4{x(t){return this._actionModel.x=t,this.addQualifier(new Je("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new Je("y",t))}zoom(t){return this._actionModel.zoom=t,this.addQualifier(new Je("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 aZ extends a4{x(t){return this._actionModel.x=t,this.addQualifier(new Je("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new Je("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 oZ(e,t){return new iZ("crop",e,t)}function sZ(e,t){return new aZ("fill",e,t)}function uZ(e,t){return new rZ("pad",e,t)}class lZ extends J7{constructor(t){super("q",t.toString(),"level")}chromaSubSampling(t){this._actionModel.chromaSubSampling=G7[t];const n=new Vt([this._actionModel.level,t]);return n.setDelimiter(":"),this.addQualifier(new Je("q",n))}quantization(t){this._actionModel.quantization=t;const n=new Vt([this._actionModel.level,`qmax_${t}`]).setDelimiter(":");return this.addQualifier(new Je("q",n))}static fromJson(t){const{level:n,chromaSubSampling:r,quantization:i}=t,a=H7[n]||n,o=new this(a);if(r){const u=XG[r.toUpperCase()];u&&o.chromaSubSampling(+u)}return i&&o.quantization(i),o}}function vp(e){return new w0("f",e)}function bp(e){return new lZ(e)}function cZ(){return new aO("north_east")}UD(70).color("black"),UD(40).color("white"),uY(),cY();var fZ=new yp().effect(lY()).delivery(bp("auto")).delivery(vp(XY())),dZ=new yp().effect(fY()).delivery(bp("auto")).delivery(vp(u4())),hZ=new yp().effect(sY(2e3)).delivery(bp("auto")).delivery(vp(u4())),pZ=new yp().resize(uZ("iw_div_2").aspectRatio(1).background(CO.auto())).resize(oZ(1,1).gravity(DY(cZ()))).resize(sZ().height("ih").width("iw")).delivery(bp("auto")).delivery(vp(u4())),GD={vectorize:fZ,pixelate:dZ,blur:hZ,"predominant-color":pZ},YD="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ZD={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},JD="?_a=",mZ=function(){function e(t,n,r,i,a,o,u){var l=this;this.mimeType="video",this.mimeSubTypes=ZD,this.videoElement=t,this.originalVideo=n,this.videoOptions=u,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var f=Va(n);bh(t,n,i,this.htmlPluginState).then(function(){l.htmlPluginState.pluginEventSubscription.forEach(function(d){d()}),l.setVideoAttributes(a,o),l.handleSourceToVideo(f,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(a){r.appendSourceTag(Va(t),a)})}},e.prototype.generateUserSources=function(t,n){var r=this;n.map(function(i){var a=i.type,o=i.codecs,u=i.transcode;return r.appendSourceTag(Va(t).transcode(u),a,r.buildMimeType(a,o))})},e.prototype.appendSourceTag=function(t,n,r){var i,a=document.createElement("source"),o=(i=this.videoOptions)===null||i===void 0?void 0:i.useFetchFormat;o&&t.format(n);var u=t.toURL(),l=u.split(JD),f=l[1]?"".concat(JD).concat(l[1]):"",d=o?"":".".concat(n);a.src="".concat(l[0]).concat(d).concat(f),a.type=r||"video/".concat(ZD[n]||n),this.videoElement.appendChild(a)},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=Va(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 a=0,o=Object.entries(t);a<o.length;a++){var u=o[a],l=u[0],f=u[1];f&&this.videoElement.setAttribute(l,l==="poster"?f:"")}},e.prototype.update=function(t,n,r,i,a){var o=this;if(t!==this.originalVideo){for(var u=this.videoElement.getElementsByTagName("SOURCE");u[0];)u[0].parentNode.removeChild(u[0]);bh(this.videoElement,t,r,this.htmlPluginState).then(function(){o.setVideoAttributes(i,a),o.handleSourceToVideo(t,n),o.videoElement.load()})}},e}(),gZ=typeof La=="object"&&La&&La.Object===Object&&La,yZ=typeof self=="object"&&self&&self.Object===Object&&self;gZ||yZ||Function("return this")();function l4(){return typeof window<"u"}function vZ(e){return e instanceof HTMLImageElement}function bZ(e){var t={},n=t.rootMargin,r=n===void 0?"0px":n,i=t.threshold,a=i===void 0?.1:i;return $Z.bind(null,r,a)}function $Z(e,t,n,r,i,a){return e===void 0&&(e="0px"),t===void 0&&(t=.1),l4()?new Promise(function(o){var u=function(){return o({lazyload:!0})},l=wZ(n,u,e,t);i.cleanupCallbacks.push(function(){l(),o("canceled")})}):!1}function xZ(){return window&&"IntersectionObserver"in window}function wZ(e,t,n,r){try{if(!xZ())return t(),function(){};var i=new IntersectionObserver(function(a){a.forEach(function(o){o.isIntersecting&&(i.unobserve(o.target),t())})},{rootMargin:n,threshold:r});return i.observe(e),function(){e&&i.observe(e)}}catch{t()}}function DZ(e){var t={},n=t.mode,r=n===void 0?"vectorize":n;return CZ.bind(null,r)}function CZ(e,t,n,r,i,a){GD[e]||(e="vectorize");var o=GD[e].actions,u=Va(n);if(o.forEach(function(f){u.addAction(f)}),!l4())return n.transformation=u.transformation,!0;if(vZ(t)){u.transformation.actions.forEach(function(f,d){f instanceof Gr&&f.getActionTag()==="responsive"&&delete u.transformation.actions[d]});var l=x0(i,{placeholder:!0});return t.src=u.toURL(l),t.onerror=function(){t.src=YD},new Promise(function(f){t.onload=function(){f()}}).then(function(){return new Promise(function(f){r.cleanupCallbacks.push(function(){t.src=YD,f("canceled")});var d=new Image;d.src=n.toURL(l),d.onload=function(){f({placeholder:!0})},d.onerror=function(){f({placeholder:!0})}})})}}function EZ(e,t,n){var r=Va(t);if(e)for(var i=0;i<e.length;i++){var a=e[i](null,r);if(!a)break}return r.toURL(n?{trackedAnalytics:n}:null)}function $h(e){e.cleanupCallbacks.forEach(function(t){t()})}var D0=function(e,t){return D0=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])},D0(e,t)};function EO(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");D0(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Dc=function(){return Dc=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Dc.apply(this,arguments)};function SO(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 Cc={exports:{}},bt={};/*
|
|
105
|
+
object-assign
|
|
106
|
+
(c) Sindre Sorhus
|
|
107
|
+
@license MIT
|
|
108
|
+
*/var XD=Object.getOwnPropertySymbols,SZ=Object.prototype.hasOwnProperty,TZ=Object.prototype.propertyIsEnumerable;function AZ(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function PZ(){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(a){return t[a]});if(r.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(a){i[a]=a}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var TO=PZ()?Object.assign:function(e,t){for(var n,r=AZ(e),i,a=1;a<arguments.length;a++){n=Object(arguments[a]);for(var o in n)SZ.call(n,o)&&(r[o]=n[o]);if(XD){i=XD(n);for(var u=0;u<i.length;u++)TZ.call(n,i[u])&&(r[i[u]]=n[i[u]])}}return r};/** @license React v16.14.0
|
|
109
|
+
* react.production.min.js
|
|
110
|
+
*
|
|
111
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
112
|
+
*
|
|
113
|
+
* This source code is licensed under the MIT license found in the
|
|
114
|
+
* LICENSE file in the root directory of this source tree.
|
|
115
|
+
*/var c4=TO,Yr=typeof Symbol=="function"&&Symbol.for,Yc=Yr?Symbol.for("react.element"):60103,_Z=Yr?Symbol.for("react.portal"):60106,RZ=Yr?Symbol.for("react.fragment"):60107,OZ=Yr?Symbol.for("react.strict_mode"):60108,MZ=Yr?Symbol.for("react.profiler"):60114,FZ=Yr?Symbol.for("react.provider"):60109,kZ=Yr?Symbol.for("react.context"):60110,IZ=Yr?Symbol.for("react.forward_ref"):60112,BZ=Yr?Symbol.for("react.suspense"):60113,LZ=Yr?Symbol.for("react.memo"):60115,VZ=Yr?Symbol.for("react.lazy"):60116,QD=typeof Symbol=="function"&&Symbol.iterator;function Zc(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 AO={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},PO={};function _u(e,t,n){this.props=e,this.context=t,this.refs=PO,this.updater=n||AO}_u.prototype.isReactComponent={};_u.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(Zc(85));this.updater.enqueueSetState(this,e,t,"setState")};_u.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function _O(){}_O.prototype=_u.prototype;function f4(e,t,n){this.props=e,this.context=t,this.refs=PO,this.updater=n||AO}var d4=f4.prototype=new _O;d4.constructor=f4;c4(d4,_u.prototype);d4.isPureReactComponent=!0;var h4={current:null},RO=Object.prototype.hasOwnProperty,OO={key:!0,ref:!0,__self:!0,__source:!0};function MO(e,t,n){var r,i={},a=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)RO.call(t,r)&&!OO.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(u===1)i.children=n;else if(1<u){for(var l=Array(u),f=0;f<u;f++)l[f]=arguments[f+2];i.children=l}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)i[r]===void 0&&(i[r]=u[r]);return{$$typeof:Yc,type:e,key:a,ref:o,props:i,_owner:h4.current}}function NZ(e,t){return{$$typeof:Yc,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function p4(e){return typeof e=="object"&&e!==null&&e.$$typeof===Yc}function jZ(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(n){return t[n]})}var FO=/\/+/g,xh=[];function kO(e,t,n,r){if(xh.length){var i=xh.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 IO(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>xh.length&&xh.push(e)}function C0(e,t,n,r){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Yc:case _Z:a=!0}}if(a)return n(r,e,t===""?"."+kg(e,0):t),1;if(a=0,t=t===""?".":t+":",Array.isArray(e))for(var o=0;o<e.length;o++){i=e[o];var u=t+kg(i,o);a+=C0(i,u,n,r)}else if(e===null||typeof e!="object"?u=null:(u=QD&&e[QD]||e["@@iterator"],u=typeof u=="function"?u:null),typeof u=="function")for(e=u.call(e),o=0;!(i=e.next()).done;)i=i.value,u=t+kg(i,o++),a+=C0(i,u,n,r);else if(i==="object")throw n=""+e,Error(Zc(31,n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return a}function E0(e,t,n){return e==null?0:C0(e,"",t,n)}function kg(e,t){return typeof e=="object"&&e!==null&&e.key!=null?jZ(e.key):t.toString(36)}function KZ(e,t){e.func.call(e.context,t,e.count++)}function UZ(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?S0(e,r,n,function(a){return a}):e!=null&&(p4(e)&&(e=NZ(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(FO,"$&/")+"/")+n)),r.push(e))}function S0(e,t,n,r,i){var a="";n!=null&&(a=(""+n).replace(FO,"$&/")+"/"),t=kO(t,a,r,i),E0(e,UZ,t),IO(t)}var BO={current:null};function ca(){var e=BO.current;if(e===null)throw Error(Zc(321));return e}var zZ={ReactCurrentDispatcher:BO,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:h4,IsSomeRendererActing:{current:!1},assign:c4};bt.Children={map:function(e,t,n){if(e==null)return e;var r=[];return S0(e,r,null,t,n),r},forEach:function(e,t,n){if(e==null)return e;t=kO(null,null,t,n),E0(e,KZ,t),IO(t)},count:function(e){return E0(e,function(){return null},null)},toArray:function(e){var t=[];return S0(e,t,null,function(n){return n}),t},only:function(e){if(!p4(e))throw Error(Zc(143));return e}};bt.Component=_u;bt.Fragment=RZ;bt.Profiler=MZ;bt.PureComponent=f4;bt.StrictMode=OZ;bt.Suspense=BZ;bt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=zZ;bt.cloneElement=function(e,t,n){if(e==null)throw Error(Zc(267,e));var r=c4({},e.props),i=e.key,a=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,o=h4.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(l in t)RO.call(t,l)&&!OO.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&u!==void 0?u[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){u=Array(l);for(var f=0;f<l;f++)u[f]=arguments[f+2];r.children=u}return{$$typeof:Yc,type:e.type,key:i,ref:a,props:r,_owner:o}};bt.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:kZ,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:FZ,_context:e},e.Consumer=e};bt.createElement=MO;bt.createFactory=function(e){var t=MO.bind(null,e);return t.type=e,t};bt.createRef=function(){return{current:null}};bt.forwardRef=function(e){return{$$typeof:IZ,render:e}};bt.isValidElement=p4;bt.lazy=function(e){return{$$typeof:VZ,_ctor:e,_status:-1,_result:null}};bt.memo=function(e,t){return{$$typeof:LZ,type:e,compare:t===void 0?null:t}};bt.useCallback=function(e,t){return ca().useCallback(e,t)};bt.useContext=function(e,t){return ca().useContext(e,t)};bt.useDebugValue=function(){};bt.useEffect=function(e,t){return ca().useEffect(e,t)};bt.useImperativeHandle=function(e,t,n){return ca().useImperativeHandle(e,t,n)};bt.useLayoutEffect=function(e,t){return ca().useLayoutEffect(e,t)};bt.useMemo=function(e,t){return ca().useMemo(e,t)};bt.useReducer=function(e,t,n){return ca().useReducer(e,t,n)};bt.useRef=function(e){return ca().useRef(e)};bt.useState=function(e){return ca().useState(e)};bt.version="16.14.0";var vt={},qZ="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",WZ=qZ,HZ=Function.call.bind(Object.prototype.hasOwnProperty),T0=function(){};if(process.env.NODE_ENV!=="production"){var GZ=WZ,A0={},YZ=HZ;T0=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}}}function LO(e,t,n,r,i){if(process.env.NODE_ENV!=="production"){for(var a in e)if(YZ(e,a)){var o;try{if(typeof e[a]!="function"){var u=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}o=e[a](t,a,r,n,null,GZ)}catch(f){o=f}if(o&&!(o instanceof Error)&&T0((r||"React class")+": type specification of "+n+" `"+a+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof o+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),o instanceof Error&&!(o.message in A0)){A0[o.message]=!0;var l=i?i():"";T0("Failed "+n+" type: "+o.message+(l??""))}}}}LO.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(A0={})};var ZZ=LO;/** @license React v16.14.0
|
|
116
|
+
* react.development.js
|
|
117
|
+
*
|
|
118
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
119
|
+
*
|
|
120
|
+
* This source code is licensed under the MIT license found in the
|
|
121
|
+
* LICENSE file in the root directory of this source tree.
|
|
122
|
+
*/process.env.NODE_ENV!=="production"&&function(){var e=TO,t=ZZ,n="16.14.0",r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,u=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,f=r?Symbol.for("react.provider"):60109,d=r?Symbol.for("react.context"):60110,h=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,g=r?Symbol.for("react.suspense"):60113,y=r?Symbol.for("react.suspense_list"):60120,$=r?Symbol.for("react.memo"):60115,D=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,T=r?Symbol.for("react.scope"):60119,E=typeof Symbol=="function"&&Symbol.iterator,A="@@iterator";function M(I){if(I===null||typeof I!="object")return null;var X=E&&I[E]||I[A];return typeof X=="function"?X:null}var S={current:null},z={suspense:null},j={current:null},O=/^(.*)[\\\/]/;function Z(I,X,se){var ge="";if(X){var _e=X.fileName,Xe=_e.replace(O,"");if(/^index\./.test(Xe)){var Ve=_e.match(O);if(Ve){var Ke=Ve[1];if(Ke){var $t=Ke.replace(O,"");Xe=$t+"/"+Xe}}}ge=" (at "+Xe+":"+X.lineNumber+")"}else se&&(ge=" (created by "+se+")");return`
|
|
123
|
+
in `+(I||"Unknown")+ge}var R=1;function V(I){return I._status===R?I._result:null}function W(I,X,se){var ge=X.displayName||X.name||"";return I.displayName||(ge!==""?se+"("+ge+")":se)}function L(I){if(I==null)return null;if(typeof I.tag=="number"&&ie("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof I=="function")return I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){case o:return"Fragment";case a:return"Portal";case l:return"Profiler";case u:return"StrictMode";case g:return"Suspense";case y:return"SuspenseList"}if(typeof I=="object")switch(I.$$typeof){case d:return"Context.Consumer";case f:return"Context.Provider";case p:return W(I,I.render,"ForwardRef");case $:return L(I.type);case b:return L(I.render);case D:{var X=I,se=V(X);if(se)return L(se);break}}return null}var k={},_=null;function H(I){_=I}k.getCurrentStack=null,k.getStackAddendum=function(){var I="";if(_){var X=L(_.type),se=_._owner;I+=Z(X,_._source,se&&L(se.type))}var ge=k.getCurrentStack;return ge&&(I+=ge()||""),I};var U={current:!1},N={ReactCurrentDispatcher:S,ReactCurrentBatchConfig:z,ReactCurrentOwner:j,IsSomeRendererActing:U,assign:e};e(N,{ReactDebugCurrentFrame:k,ReactComponentTreeHook:{}});function ne(I){{for(var X=arguments.length,se=new Array(X>1?X-1:0),ge=1;ge<X;ge++)se[ge-1]=arguments[ge];ce("warn",I,se)}}function ie(I){{for(var X=arguments.length,se=new Array(X>1?X-1:0),ge=1;ge<X;ge++)se[ge-1]=arguments[ge];ce("error",I,se)}}function ce(I,X,se){{var ge=se.length>0&&typeof se[se.length-1]=="string"&&se[se.length-1].indexOf(`
|
|
124
|
+
in`)===0;if(!ge){var _e=N.ReactDebugCurrentFrame,Xe=_e.getStackAddendum();Xe!==""&&(X+="%s",se=se.concat([Xe]))}var Ve=se.map(function(Rt){return""+Rt});Ve.unshift("Warning: "+X),Function.prototype.apply.call(console[I],console,Ve);try{var Ke=0,$t="Warning: "+X.replace(/%s/g,function(){return se[Ke++]});throw new Error($t)}catch{}}}var xe={};function De(I,X){{var se=I.constructor,ge=se&&(se.displayName||se.name)||"ReactClass",_e=ge+"."+X;if(xe[_e])return;ie("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,ge),xe[_e]=!0}}var Ee={isMounted:function(I){return!1},enqueueForceUpdate:function(I,X,se){De(I,"forceUpdate")},enqueueReplaceState:function(I,X,se,ge){De(I,"replaceState")},enqueueSetState:function(I,X,se,ge){De(I,"setState")}},J={};Object.freeze(J);function ye(I,X,se){this.props=I,this.context=X,this.refs=J,this.updater=se||Ee}ye.prototype.isReactComponent={},ye.prototype.setState=function(I,X){if(!(typeof I=="object"||typeof I=="function"||I==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,I,X,"setState")},ye.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};{var we={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)."]},me=function(I,X){Object.defineProperty(ye.prototype,I,{get:function(){ne("%s(...) is deprecated in plain JavaScript React classes. %s",X[0],X[1])}})};for(var ue in we)we.hasOwnProperty(ue)&&me(ue,we[ue])}function Le(){}Le.prototype=ye.prototype;function nt(I,X,se){this.props=I,this.context=X,this.refs=J,this.updater=se||Ee}var Nt=nt.prototype=new Le;Nt.constructor=nt,e(Nt,ye.prototype),Nt.isPureReactComponent=!0;function Zn(){var I={current:null};return Object.seal(I),I}var Pt=Object.prototype.hasOwnProperty,G={key:!0,ref:!0,__self:!0,__source:!0},Q,re,ve;ve={};function Se(I){if(Pt.call(I,"ref")){var X=Object.getOwnPropertyDescriptor(I,"ref").get;if(X&&X.isReactWarning)return!1}return I.ref!==void 0}function Ce(I){if(Pt.call(I,"key")){var X=Object.getOwnPropertyDescriptor(I,"key").get;if(X&&X.isReactWarning)return!1}return I.key!==void 0}function Fe(I,X){var se=function(){Q||(Q=!0,ie("%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))};se.isReactWarning=!0,Object.defineProperty(I,"key",{get:se,configurable:!0})}function Ne(I,X){var se=function(){re||(re=!0,ie("%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))};se.isReactWarning=!0,Object.defineProperty(I,"ref",{get:se,configurable:!0})}function _t(I){if(typeof I.ref=="string"&&j.current&&I.__self&&j.current.stateNode!==I.__self){var X=L(j.current.type);ve[X]||(ie('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',L(j.current.type),I.ref),ve[X]=!0)}}var ut=function(I,X,se,ge,_e,Xe,Ve){var Ke={$$typeof:i,type:I,key:X,ref:se,props:Ve,_owner:Xe};return Ke._store={},Object.defineProperty(Ke._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ke,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ge}),Object.defineProperty(Ke,"_source",{configurable:!1,enumerable:!1,writable:!1,value:_e}),Object.freeze&&(Object.freeze(Ke.props),Object.freeze(Ke)),Ke};function Zt(I,X,se){var ge,_e={},Xe=null,Ve=null,Ke=null,$t=null;if(X!=null){Se(X)&&(Ve=X.ref,_t(X)),Ce(X)&&(Xe=""+X.key),Ke=X.__self===void 0?null:X.__self,$t=X.__source===void 0?null:X.__source;for(ge in X)Pt.call(X,ge)&&!G.hasOwnProperty(ge)&&(_e[ge]=X[ge])}var Rt=arguments.length-2;if(Rt===1)_e.children=se;else if(Rt>1){for(var cn=Array(Rt),fn=0;fn<Rt;fn++)cn[fn]=arguments[fn+2];Object.freeze&&Object.freeze(cn),_e.children=cn}if(I&&I.defaultProps){var sr=I.defaultProps;for(ge in sr)_e[ge]===void 0&&(_e[ge]=sr[ge])}if(Xe||Ve){var Tn=typeof I=="function"?I.displayName||I.name||"Unknown":I;Xe&&Fe(_e,Tn),Ve&&Ne(_e,Tn)}return ut(I,Xe,Ve,Ke,$t,j.current,_e)}function Xr(I,X){var se=ut(I.type,X,I.ref,I._self,I._source,I._owner,I.props);return se}function Rr(I,X,se){if(I==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+I+".");var ge,_e=e({},I.props),Xe=I.key,Ve=I.ref,Ke=I._self,$t=I._source,Rt=I._owner;if(X!=null){Se(X)&&(Ve=X.ref,Rt=j.current),Ce(X)&&(Xe=""+X.key);var cn;I.type&&I.type.defaultProps&&(cn=I.type.defaultProps);for(ge in X)Pt.call(X,ge)&&!G.hasOwnProperty(ge)&&(X[ge]===void 0&&cn!==void 0?_e[ge]=cn[ge]:_e[ge]=X[ge])}var fn=arguments.length-2;if(fn===1)_e.children=se;else if(fn>1){for(var sr=Array(fn),Tn=0;Tn<fn;Tn++)sr[Tn]=arguments[Tn+2];_e.children=sr}return ut(I.type,Xe,Ve,Ke,$t,Rt,_e)}function mn(I){return typeof I=="object"&&I!==null&&I.$$typeof===i}var Qr=".",ei=":";function ti(I){var X=/[=:]/g,se={"=":"=0",":":"=2"},ge=(""+I).replace(X,function(_e){return se[_e]});return"$"+ge}var Or=!1,Xa=/\/+/g;function ni(I){return(""+I).replace(Xa,"$&/")}var Oi=10,ri=[];function ha(I,X,se,ge){if(ri.length){var _e=ri.pop();return _e.result=I,_e.keyPrefix=X,_e.func=se,_e.context=ge,_e.count=0,_e}else return{result:I,keyPrefix:X,func:se,context:ge,count:0}}function Mi(I){I.result=null,I.keyPrefix=null,I.func=null,I.context=null,I.count=0,ri.length<Oi&&ri.push(I)}function or(I,X,se,ge){var _e=typeof I;(_e==="undefined"||_e==="boolean")&&(I=null);var Xe=!1;if(I===null)Xe=!0;else switch(_e){case"string":case"number":Xe=!0;break;case"object":switch(I.$$typeof){case i:case a:Xe=!0}}if(Xe)return se(ge,I,X===""?Qr+eo(I,0):X),1;var Ve,Ke,$t=0,Rt=X===""?Qr:X+ei;if(Array.isArray(I))for(var cn=0;cn<I.length;cn++)Ve=I[cn],Ke=Rt+eo(Ve,cn),$t+=or(Ve,Ke,se,ge);else{var fn=M(I);if(typeof fn=="function"){fn===I.entries&&(Or||ne("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."),Or=!0);for(var sr=fn.call(I),Tn,hs=0;!(Tn=sr.next()).done;)Ve=Tn.value,Ke=Rt+eo(Ve,hs++),$t+=or(Ve,Ke,se,ge)}else if(_e==="object"){var oo="";oo=" If you meant to render a collection of children, use an array instead."+k.getStackAddendum();var so=""+I;throw Error("Objects are not valid as a React child (found: "+(so==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":so)+")."+oo)}}return $t}function Qa(I,X,se){return I==null?0:or(I,"",X,se)}function eo(I,X){return typeof I=="object"&&I!==null&&I.key!=null?ti(I.key):X.toString(36)}function Uu(I,X,se){var ge=I.func,_e=I.context;ge.call(_e,X,I.count++)}function zu(I,X,se){if(I==null)return I;var ge=ha(null,null,X,se);Qa(I,Uu,ge),Mi(ge)}function rs(I,X,se){var ge=I.result,_e=I.keyPrefix,Xe=I.func,Ve=I.context,Ke=Xe.call(Ve,X,I.count++);Array.isArray(Ke)?pa(Ke,ge,se,function($t){return $t}):Ke!=null&&(mn(Ke)&&(Ke=Xr(Ke,_e+(Ke.key&&(!X||X.key!==Ke.key)?ni(Ke.key)+"/":"")+se)),ge.push(Ke))}function pa(I,X,se,ge,_e){var Xe="";se!=null&&(Xe=ni(se)+"/");var Ve=ha(X,Xe,ge,_e);Qa(I,rs,Ve),Mi(Ve)}function is(I,X,se){if(I==null)return I;var ge=[];return pa(I,ge,null,X,se),ge}function Mr(I){return Qa(I,function(){return null},null)}function to(I){var X=[];return pa(I,X,null,function(se){return se}),X}function qu(I){if(!mn(I))throw Error("React.Children.only expected to receive a single React element child.");return I}function no(I,X){X===void 0?X=null:X!==null&&typeof X!="function"&&ie("createContext: Expected the optional second argument to be a function. Instead received: %s",X);var se={$$typeof:d,_calculateChangedBits:X,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null};se.Provider={$$typeof:f,_context:se};var ge=!1,_e=!1;{var Xe={$$typeof:d,_context:se,_calculateChangedBits:se._calculateChangedBits};Object.defineProperties(Xe,{Provider:{get:function(){return _e||(_e=!0,ie("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),se.Provider},set:function(Ve){se.Provider=Ve}},_currentValue:{get:function(){return se._currentValue},set:function(Ve){se._currentValue=Ve}},_currentValue2:{get:function(){return se._currentValue2},set:function(Ve){se._currentValue2=Ve}},_threadCount:{get:function(){return se._threadCount},set:function(Ve){se._threadCount=Ve}},Consumer:{get:function(){return ge||(ge=!0,ie("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),se.Consumer}}}),se.Consumer=Xe}return se._currentRenderer=null,se._currentRenderer2=null,se}function Wu(I){var X={$$typeof:D,_ctor:I,_status:-1,_result:null};{var se,ge;Object.defineProperties(X,{defaultProps:{configurable:!0,get:function(){return se},set:function(_e){ie("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."),se=_e,Object.defineProperty(X,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return ge},set:function(_e){ie("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."),ge=_e,Object.defineProperty(X,"propTypes",{enumerable:!0})}}})}return X}function Hu(I){return I!=null&&I.$$typeof===$?ie("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof I!="function"?ie("forwardRef requires a render function but was given %s.",I===null?"null":typeof I):I.length!==0&&I.length!==2&&ie("forwardRef render functions accept exactly two parameters: props and ref. %s",I.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),I!=null&&(I.defaultProps!=null||I.propTypes!=null)&&ie("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:p,render:I}}function In(I){return typeof I=="string"||typeof I=="function"||I===o||I===h||I===l||I===u||I===g||I===y||typeof I=="object"&&I!==null&&(I.$$typeof===D||I.$$typeof===$||I.$$typeof===f||I.$$typeof===d||I.$$typeof===p||I.$$typeof===v||I.$$typeof===w||I.$$typeof===T||I.$$typeof===b)}function Gu(I,X){return In(I)||ie("memo: The first argument must be a component. Instead received: %s",I===null?"null":typeof I),{$$typeof:$,type:I,compare:X===void 0?null:X}}function Bn(){var I=S.current;if(I===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
125
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
126
|
+
2. You might be breaking the Rules of Hooks
|
|
127
|
+
3. You might have more than one copy of React in the same app
|
|
128
|
+
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.`);return I}function Yu(I,X){var se=Bn();if(X!==void 0&&ie("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])?`
|
|
129
|
+
|
|
130
|
+
Did you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks`:""),I._context!==void 0){var ge=I._context;ge.Consumer===I?ie("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?"):ge.Provider===I&&ie("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return se.useContext(I,X)}function Zu(I){var X=Bn();return X.useState(I)}function Ju(I,X,se){var ge=Bn();return ge.useReducer(I,X,se)}function Fr(I){var X=Bn();return X.useRef(I)}function Xu(I,X){var se=Bn();return se.useEffect(I,X)}function Qu(I,X){var se=Bn();return se.useLayoutEffect(I,X)}function el(I,X){var se=Bn();return se.useCallback(I,X)}function tl(I,X){var se=Bn();return se.useMemo(I,X)}function nl(I,X,se){var ge=Bn();return ge.useImperativeHandle(I,X,se)}function ii(I,X){{var se=Bn();return se.useDebugValue(I,X)}}var ai;ai=!1;function as(){if(j.current){var I=L(j.current.type);if(I)return`
|
|
131
|
+
|
|
132
|
+
Check the render method of \``+I+"`."}return""}function ma(I){if(I!==void 0){var X=I.fileName.replace(/^.*[\\\/]/,""),se=I.lineNumber;return`
|
|
133
|
+
|
|
134
|
+
Check your code at `+X+":"+se+"."}return""}function rl(I){return I!=null?ma(I.__source):""}var os={};function il(I){var X=as();if(!X){var se=typeof I=="string"?I:I.displayName||I.name;se&&(X=`
|
|
135
|
+
|
|
136
|
+
Check the top-level render call using <`+se+">.")}return X}function ga(I,X){if(!(!I._store||I._store.validated||I.key!=null)){I._store.validated=!0;var se=il(X);if(!os[se]){os[se]=!0;var ge="";I&&I._owner&&I._owner!==j.current&&(ge=" It was passed a child from "+L(I._owner.type)+"."),H(I),ie('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',se,ge),H(null)}}}function oi(I,X){if(typeof I=="object"){if(Array.isArray(I))for(var se=0;se<I.length;se++){var ge=I[se];mn(ge)&&ga(ge,X)}else if(mn(I))I._store&&(I._store.validated=!0);else if(I){var _e=M(I);if(typeof _e=="function"&&_e!==I.entries)for(var Xe=_e.call(I),Ve;!(Ve=Xe.next()).done;)mn(Ve.value)&&ga(Ve.value,X)}}}function ro(I){{var X=I.type;if(X==null||typeof X=="string")return;var se=L(X),ge;if(typeof X=="function")ge=X.propTypes;else if(typeof X=="object"&&(X.$$typeof===p||X.$$typeof===$))ge=X.propTypes;else return;ge?(H(I),t(ge,I.props,"prop",se,k.getStackAddendum),H(null)):X.PropTypes!==void 0&&!ai&&(ai=!0,ie("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",se||"Unknown")),typeof X.getDefaultProps=="function"&&!X.getDefaultProps.isReactClassApproved&&ie("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function io(I){{H(I);for(var X=Object.keys(I.props),se=0;se<X.length;se++){var ge=X[se];if(ge!=="children"&&ge!=="key"){ie("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ge);break}}I.ref!==null&&ie("Invalid attribute `ref` supplied to `React.Fragment`."),H(null)}}function ss(I,X,se){var ge=In(I);if(!ge){var _e="";(I===void 0||typeof I=="object"&&I!==null&&Object.keys(I).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 Xe=rl(X);Xe?_e+=Xe:_e+=as();var Ve;I===null?Ve="null":Array.isArray(I)?Ve="array":I!==void 0&&I.$$typeof===i?(Ve="<"+(L(I.type)||"Unknown")+" />",_e=" Did you accidentally export a JSX literal instead of a component?"):Ve=typeof I,ie("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ve,_e)}var Ke=Zt.apply(this,arguments);if(Ke==null)return Ke;if(ge)for(var $t=2;$t<arguments.length;$t++)oi(arguments[$t],I);return I===o?io(Ke):ro(Ke),Ke}var us=!1;function al(I){var X=ss.bind(null,I);return X.type=I,us||(us=!0,ne("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 ne("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:I}),I}}),X}function ls(I,X,se){for(var ge=Rr.apply(this,arguments),_e=2;_e<arguments.length;_e++)oi(arguments[_e],ge.type);return ro(ge),ge}try{var ao=Object.freeze({}),cs=new Map([[ao,null]]),Fi=new Set([ao]);cs.set(0,0),Fi.add(0)}catch{}var ol=ss,fs=ls,ya=al,ds={map:is,forEach:zu,count:Mr,toArray:to,only:qu};vt.Children=ds,vt.Component=ye,vt.Fragment=o,vt.Profiler=l,vt.PureComponent=nt,vt.StrictMode=u,vt.Suspense=g,vt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,vt.cloneElement=fs,vt.createContext=no,vt.createElement=ol,vt.createFactory=ya,vt.createRef=Zn,vt.forwardRef=Hu,vt.isValidElement=mn,vt.lazy=Wu,vt.memo=Gu,vt.useCallback=el,vt.useContext=Yu,vt.useDebugValue=ii,vt.useEffect=Xu,vt.useImperativeHandle=nl,vt.useLayoutEffect=Qu,vt.useMemo=tl,vt.useReducer=Ju,vt.useRef=Fr,vt.useState=Zu,vt.version=n}();process.env.NODE_ENV==="production"?Cc.exports=bt:Cc.exports=vt;var js=Cc.exports,Ig={sdkSemver:"1.13.1",techVersion:js.version,sdkCode:"J"},JZ=function(e){EO(t,e);function t(n){var r=e.call(this,n)||this;return r.imageRef=js.createRef(),r}return t.prototype.componentDidMount=function(){this.htmlLayerInstance=new VG(this.imageRef.current,this.props.cldImg,this.props.plugins,Ig)},t.prototype.componentDidUpdate=function(){$h(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,Ig)},t.prototype.componentWillUnmount=function(){$h(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},t.prototype.render=function(){var n=this.props;n.cldImg,n.plugins;var r=SO(n,["cldImg","plugins"]);if(l4())return js.createElement("img",Dc({suppressHydrationWarning:!0},r,{ref:this.imageRef}));var i=EZ(this.props.plugins,this.props.cldImg,Ig);return js.createElement("img",Dc({},r,{src:i}))},t}(js.Component),XZ=["controls","loop","muted","poster","preload","autoplay","playsinline"];(function(e){EO(t,e);function t(n){var r=e.call(this,n)||this;return r.videoRef=Cc.exports.createRef(),r.attachRef=r.attachRef.bind(r),r}return t.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new mZ(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(){$h(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},t.prototype.componentWillUnmount=function(){$h(this.htmlVideoLayerInstance.htmlPluginState)},t.prototype.getVideoAttributes=function(){var n=this,r={};return XZ.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=SO(n,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return js.createElement("video",Dc({},r,{ref:this.attachRef}))},t})(Cc.exports.Component);function QZ(e){return!(typeof e!="object"||e instanceof Array)}class eJ{filterOutNonSupportedKeys(t,n){const r=Object.create({});return QZ(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 eC=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class m4 extends eJ{constructor(t){super();const n=this.filterOutNonSupportedKeys(t,eC);Object.assign(this,{secure:!0},n)}extend(t){const n=this.filterOutNonSupportedKeys(t,eC);return new m4(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 Ec{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 tJ extends Error{constructor(t="Unsupported"){super(t)}}function g4(e){return new tJ(e)}function nJ(){return this._qualifierModel||{error:g4(`unsupported qualifier ${this.constructor.name}`)}}class rJ{constructor(){this._qualifierModel={}}toJson(){return nJ.apply(this)}}class $p extends rJ{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof Ec?this.qualifierValue=n:(this.qualifierValue=new Ec,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 ja extends $p{constructor(t,n){let r;n?r=new Ec([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function iJ(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function aJ(){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:g4(`unsupported action ${this.constructor.name}`)}}class oJ{constructor(){this._actionModel={}}toJson(){return aJ.apply(this)}}class y4 extends oJ{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(),iJ(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 ja(r)):this.qualifiers.set(n,new $p(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new ja(t)):t instanceof ja&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}}function sJ(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class uJ extends y4{constructor(t){super(),this._actionModel={},this.addQualifier(new $p("b",new Ec(sJ(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}}class tC{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:g4(`unsupported action ${this.constructor.name}`)}}}function lJ(e){const t=e;return"error"in t&&!!t.error}function cJ(){return new ja("lossy")}function fJ(){return new ja("preserve_transparency")}function dJ(e){return new ja("progressive",e)}class hJ extends Ec{constructor(t){super(t),this.val=t}getValue(){return this.val}}function Qo(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const pJ={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},mJ={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},gJ={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},yJ={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},vJ={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},bJ={444:"CHROMA_444",420:"CHROMA_420"},$J={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"};Qo(bJ);Qo($J);Qo(pJ);const xJ=Qo(mJ);Qo(gJ);Qo(yJ);Qo(vJ);class wJ extends y4{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof hJ?i=n.getValue():i=n,this._actionModel.actionType=xJ[t],this._actionModel[r]=i,this.addQualifier(new $p(t,n))}}class DJ extends ja{constructor(t){super("progressive",t)}}class wh extends wJ{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(cJ()),this}progressive(t){return t instanceof DJ?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(dJ(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(fJ()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:a}=t;let o;return n?o=new this("f",n):o=new this("f"),i&&(i.mode?o.progressive(i.mode):o.progressive()),r&&o.lossy(),a&&o.preserveTransparency(),o}}class xp{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 tC(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof xp?this.actions=this.actions.concat(t.actions):this.actions.push(new tC(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 wh("q",t)),this}format(t){return this.addAction(new wh("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 uJ(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new y4;let r=t;return typeof t=="string"&&(r=new ja(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(lJ(r))return r;t.push(r)}return{actions:t}}}class CJ extends xp{}class EJ extends xp{}function SJ(e){return e.match(/^https?:\//)}function TJ(e){return e.indexOf("/")<0}function AJ(e){return e.match(/^v[0-9]+/)}function PJ(e,t){const n=t.secure,r=t.privateCdn,i=t.cname,a=t.secureDistribution;return!n&&!i?`http://res.cloudinary.com/${e}`:n&&!a&&r?`https://${e}-res.cloudinary.com`:n&&!a?`https://res.cloudinary.com/${e}`:n&&a&&r?`https://${a}`:n&&a?`https://${a}/${e}`:!n&&i?`http://${i}/${e}`:"ERROR"}function _J(e){return e||"image"}function RJ(e){return e||"upload"}function OJ(e,t,n){const r=n!==!1;return t?`v${t}`:AJ(e)||SJ(e)||TJ(e)?"":r?"v1":""}function v4(e,t,n){let r=t>>0,i=String(n);return e.length>r?String(e):(r=r-e.length,r>i.length&&(i+=MJ(i,r/i.length)),i.slice(0,r)+String(e))}function MJ(e,t){let n=t,r="";for(;n>0;)r+=e,n--;return r}const FJ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Dh={};let nC=0;FJ.split("").forEach(e=>{let t=nC.toString(2);t=v4(t,6,"0"),Dh[t]=e,nC++});function kJ(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").reverse().join(".")}function IJ(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 v4(t,2,"0")}).join(".")}function rC(e){let t="";const r=e.split(".").length*6,i=kJ(e),a=IJ(i);let u=parseInt(a.split(".").join("")).toString(2);if(u=v4(u,r,"0"),u.length%6!==0)throw"Version must be smaller than 43.21.26)";return u.match(/.{1,6}/g).forEach(l=>{t+=Dh[l]}),t}function BJ(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 LJ="1.21.0";function VJ(e){const[t,n]=e.split("."),r=parseInt(t).toString(2),i=parseInt(n).toString(2),a=r.padStart(6,"0"),o=i.padStart(6,"0");return Dh[a]+Dh[o]}function NJ(){const e="0.0.0";if(typeof window<"u")return e;try{return process.versions.node||e}catch{return e}}function jJ(e){const t={techVersion:NJ(),sdkCode:"T",sdkSemver:LJ.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 iC(e){const t=jJ(e),n=BJ(t);try{const r=KJ(n.techVersion),i=rC(n.sdkSemver),a=rC(r),o=VJ(n.osVersion),u=n.feature,l=n.sdkCode,{product:f,osType:d}=n;return`D${f}${l}${i}${a}${d}${o}${u}`}catch{return"E"}}function KJ(e){const t=e.split(".");return`${t[0]}.${t[1]}`}const aC={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class UJ{constructor(t,n={},r){this.setPublicID(t),this.setCloudConfig(n),this.setURLConfig(r)}setURLConfig(t){return this.urlConfig=new m4(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=_J(this.assetType),n=RJ(this.deliveryType),r=!!this.suffix,i=`${t}/${n}`,a=aC[`${t}/${n}`],o=this.urlConfig.useRootPath,u=this.urlConfig.shorten;if(o){if(i==="image/upload")return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${i} instead`)}if(u&&i==="image/upload")return"iu";if(r){if(a)return a;throw new Error(`URL Suffix only supported for ${Object.keys(aC).join(", ")}, Provided: ${i} instead`)}return i}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(t,n){if(!this.publicID)return"";this.validateAssetForURLCreation();const r=PJ(this.cloudName,this.urlConfig),i=t?t.toString():"",a=OJ(this.publicID,this.version,this.urlConfig.forceVersion),o=this.publicID;if(typeof t=="string")return[r,this.getResourceType(),this.getSignature(),i,a,o.replace(/,/g,"%2C"),this.suffix].filter(l=>l).join("/");{const u=[encodeURI(r),this.getResourceType(),this.getSignature(),encodeURI(i),a,encodeURI(o).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(d=>d).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),l=this.urlConfig.analytics!==!1&&!o.includes("?");let f="";if(typeof this.urlConfig.queryParams=="object")try{const d=new URLSearchParams(this.urlConfig.queryParams);l&&d.set("_a",iC(n)),f=d.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 f=this.urlConfig.queryParams||"",l&&(f+=`${f.length>0?"&":""}_a=${iC(n)}`);return f?`${u}?${f}`:u}}}class VO extends UJ{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 wh("q",t)),this}format(t){return this.addAction(new wh("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 zJ extends VO{constructor(t,n,r){super(t,n,r,new CJ)}}class qJ extends VO{constructor(t,n,r){super(t,n,r,new EJ),this.assetType="video"}transcode(t){return this.transformation.transcode(t),this}videoEdit(t){return this.transformation.videoEdit(t),this}}class WJ{constructor(t){t&&(this.cloudinaryConfig=t)}image(t){return new zJ(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(t){return new qJ(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(t){return this.cloudinaryConfig=t,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}var Bg,oC;function NO(){if(oC)return Bg;oC=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(t[r],r,t))return!0;return!1}return Bg=e,Bg}var Lg,sC;function HJ(){if(sC)return Lg;sC=1;function e(){this.__data__=[],this.size=0}return Lg=e,Lg}var Vg,uC;function b4(){if(uC)return Vg;uC=1;function e(t,n){return t===n||t!==t&&n!==n}return Vg=e,Vg}var Ng,lC;function wp(){if(lC)return Ng;lC=1;var e=b4();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return Ng=t,Ng}var jg,cC;function GJ(){if(cC)return jg;cC=1;var e=wp(),t=Array.prototype,n=t.splice;function r(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var u=a.length-1;return o==u?a.pop():n.call(a,o,1),--this.size,!0}return jg=r,jg}var Kg,fC;function YJ(){if(fC)return Kg;fC=1;var e=wp();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return Kg=t,Kg}var Ug,dC;function ZJ(){if(dC)return Ug;dC=1;var e=wp();function t(n){return e(this.__data__,n)>-1}return Ug=t,Ug}var zg,hC;function JJ(){if(hC)return zg;hC=1;var e=wp();function t(n,r){var i=this.__data__,a=e(i,n);return a<0?(++this.size,i.push([n,r])):i[a][1]=r,this}return zg=t,zg}var qg,pC;function Dp(){if(pC)return qg;pC=1;var e=HJ(),t=GJ(),n=YJ(),r=ZJ(),i=JJ();function a(o){var u=-1,l=o==null?0:o.length;for(this.clear();++u<l;){var f=o[u];this.set(f[0],f[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,qg=a,qg}var Wg,mC;function XJ(){if(mC)return Wg;mC=1;var e=Dp();function t(){this.__data__=new e,this.size=0}return Wg=t,Wg}var Hg,gC;function QJ(){if(gC)return Hg;gC=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return Hg=e,Hg}var Gg,yC;function eX(){if(yC)return Gg;yC=1;function e(t){return this.__data__.get(t)}return Gg=e,Gg}var Yg,vC;function tX(){if(vC)return Yg;vC=1;function e(t){return this.__data__.has(t)}return Yg=e,Yg}var Zg,bC;function jO(){if(bC)return Zg;bC=1;var e=typeof yi=="object"&&yi&&yi.Object===Object&&yi;return Zg=e,Zg}var Jg,$C;function fa(){if($C)return Jg;$C=1;var e=jO(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Jg=n,Jg}var Xg,xC;function Cp(){if(xC)return Xg;xC=1;var e=fa(),t=e.Symbol;return Xg=t,Xg}var Qg,wC;function nX(){if(wC)return Qg;wC=1;var e=Cp(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function a(o){var u=n.call(o,i),l=o[i];try{o[i]=void 0;var f=!0}catch{}var d=r.call(o);return f&&(u?o[i]=l:delete o[i]),d}return Qg=a,Qg}var ey,DC;function rX(){if(DC)return ey;DC=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return ey=n,ey}var ty,CC;function Ru(){if(CC)return ty;CC=1;var e=Cp(),t=nX(),n=rX(),r="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(u){return u==null?u===void 0?i:r:a&&a in Object(u)?t(u):n(u)}return ty=o,ty}var ny,EC;function Ep(){if(EC)return ny;EC=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return ny=e,ny}var ry,SC;function KO(){if(SC)return ry;SC=1;var e=Ru(),t=Ep(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(u){if(!t(u))return!1;var l=e(u);return l==r||l==i||l==n||l==a}return ry=o,ry}var iy,TC;function iX(){if(TC)return iy;TC=1;var e=fa(),t=e["__core-js_shared__"];return iy=t,iy}var ay,AC;function aX(){if(AC)return ay;AC=1;var e=iX(),t=function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function n(r){return!!t&&t in r}return ay=n,ay}var oy,PC;function UO(){if(PC)return oy;PC=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return oy=n,oy}var sy,_C;function oX(){if(_C)return sy;_C=1;var e=KO(),t=aX(),n=Ep(),r=UO(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,l=o.toString,f=u.hasOwnProperty,d=RegExp("^"+l.call(f).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function h(p){if(!n(p)||t(p))return!1;var g=e(p)?d:a;return g.test(r(p))}return sy=h,sy}var uy,RC;function sX(){if(RC)return uy;RC=1;function e(t,n){return t==null?void 0:t[n]}return uy=e,uy}var ly,OC;function Ou(){if(OC)return ly;OC=1;var e=oX(),t=sX();function n(r,i){var a=t(r,i);return e(a)?a:void 0}return ly=n,ly}var cy,MC;function $4(){if(MC)return cy;MC=1;var e=Ou(),t=fa(),n=e(t,"Map");return cy=n,cy}var fy,FC;function Sp(){if(FC)return fy;FC=1;var e=Ou(),t=e(Object,"create");return fy=t,fy}var dy,kC;function uX(){if(kC)return dy;kC=1;var e=Sp();function t(){this.__data__=e?e(null):{},this.size=0}return dy=t,dy}var hy,IC;function lX(){if(IC)return hy;IC=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return hy=e,hy}var py,BC;function cX(){if(BC)return py;BC=1;var e=Sp(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(a){var o=this.__data__;if(e){var u=o[a];return u===t?void 0:u}return r.call(o,a)?o[a]:void 0}return py=i,py}var my,LC;function fX(){if(LC)return my;LC=1;var e=Sp(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var a=this.__data__;return e?a[i]!==void 0:n.call(a,i)}return my=r,my}var gy,VC;function dX(){if(VC)return gy;VC=1;var e=Sp(),t="__lodash_hash_undefined__";function n(r,i){var a=this.__data__;return this.size+=this.has(r)?0:1,a[r]=e&&i===void 0?t:i,this}return gy=n,gy}var yy,NC;function hX(){if(NC)return yy;NC=1;var e=uX(),t=lX(),n=cX(),r=fX(),i=dX();function a(o){var u=-1,l=o==null?0:o.length;for(this.clear();++u<l;){var f=o[u];this.set(f[0],f[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,yy=a,yy}var vy,jC;function pX(){if(jC)return vy;jC=1;var e=hX(),t=Dp(),n=$4();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return vy=r,vy}var by,KC;function mX(){if(KC)return by;KC=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return by=e,by}var $y,UC;function Tp(){if(UC)return $y;UC=1;var e=mX();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return $y=t,$y}var xy,zC;function gX(){if(zC)return xy;zC=1;var e=Tp();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return xy=t,xy}var wy,qC;function yX(){if(qC)return wy;qC=1;var e=Tp();function t(n){return e(this,n).get(n)}return wy=t,wy}var Dy,WC;function vX(){if(WC)return Dy;WC=1;var e=Tp();function t(n){return e(this,n).has(n)}return Dy=t,Dy}var Cy,HC;function bX(){if(HC)return Cy;HC=1;var e=Tp();function t(n,r){var i=e(this,n),a=i.size;return i.set(n,r),this.size+=i.size==a?0:1,this}return Cy=t,Cy}var Ey,GC;function x4(){if(GC)return Ey;GC=1;var e=pX(),t=gX(),n=yX(),r=vX(),i=bX();function a(o){var u=-1,l=o==null?0:o.length;for(this.clear();++u<l;){var f=o[u];this.set(f[0],f[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,Ey=a,Ey}var Sy,YC;function $X(){if(YC)return Sy;YC=1;var e=Dp(),t=$4(),n=x4(),r=200;function i(a,o){var u=this.__data__;if(u instanceof e){var l=u.__data__;if(!t||l.length<r-1)return l.push([a,o]),this.size=++u.size,this;u=this.__data__=new n(l)}return u.set(a,o),this.size=u.size,this}return Sy=i,Sy}var Ty,ZC;function zO(){if(ZC)return Ty;ZC=1;var e=Dp(),t=XJ(),n=QJ(),r=eX(),i=tX(),a=$X();function o(u){var l=this.__data__=new e(u);this.size=l.size}return o.prototype.clear=t,o.prototype.delete=n,o.prototype.get=r,o.prototype.has=i,o.prototype.set=a,Ty=o,Ty}var Ay,JC;function xX(){if(JC)return Ay;JC=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return Ay=t,Ay}var Py,XC;function wX(){if(XC)return Py;XC=1;function e(t){return this.__data__.has(t)}return Py=e,Py}var _y,QC;function DX(){if(QC)return _y;QC=1;var e=x4(),t=xX(),n=wX();function r(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,_y=r,_y}var Ry,eE;function CX(){if(eE)return Ry;eE=1;function e(t,n){return t.has(n)}return Ry=e,Ry}var Oy,tE;function qO(){if(tE)return Oy;tE=1;var e=DX(),t=NO(),n=CX(),r=1,i=2;function a(o,u,l,f,d,h){var p=l&r,g=o.length,y=u.length;if(g!=y&&!(p&&y>g))return!1;var $=h.get(o),D=h.get(u);if($&&D)return $==u&&D==o;var b=-1,v=!0,w=l&i?new e:void 0;for(h.set(o,u),h.set(u,o);++b<g;){var T=o[b],E=u[b];if(f)var A=p?f(E,T,b,u,o,h):f(T,E,b,o,u,h);if(A!==void 0){if(A)continue;v=!1;break}if(w){if(!t(u,function(M,S){if(!n(w,S)&&(T===M||d(T,M,l,f,h)))return w.push(S)})){v=!1;break}}else if(!(T===E||d(T,E,l,f,h))){v=!1;break}}return h.delete(o),h.delete(u),v}return Oy=a,Oy}var My,nE;function EX(){if(nE)return My;nE=1;var e=fa(),t=e.Uint8Array;return My=t,My}var Fy,rE;function SX(){if(rE)return Fy;rE=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,a){r[++n]=[a,i]}),r}return Fy=e,Fy}var ky,iE;function TX(){if(iE)return ky;iE=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return ky=e,ky}var Iy,aE;function AX(){if(aE)return Iy;aE=1;var e=Cp(),t=EX(),n=b4(),r=qO(),i=SX(),a=TX(),o=1,u=2,l="[object Boolean]",f="[object Date]",d="[object Error]",h="[object Map]",p="[object Number]",g="[object RegExp]",y="[object Set]",$="[object String]",D="[object Symbol]",b="[object ArrayBuffer]",v="[object DataView]",w=e?e.prototype:void 0,T=w?w.valueOf:void 0;function E(A,M,S,z,j,O,Z){switch(S){case v:if(A.byteLength!=M.byteLength||A.byteOffset!=M.byteOffset)return!1;A=A.buffer,M=M.buffer;case b:return!(A.byteLength!=M.byteLength||!O(new t(A),new t(M)));case l:case f:case p:return n(+A,+M);case d:return A.name==M.name&&A.message==M.message;case g:case $:return A==M+"";case h:var R=i;case y:var V=z&o;if(R||(R=a),A.size!=M.size&&!V)return!1;var W=Z.get(A);if(W)return W==M;z|=u,Z.set(A,M);var L=r(R(A),R(M),z,j,O,Z);return Z.delete(A),L;case D:if(T)return T.call(A)==T.call(M)}return!1}return Iy=E,Iy}var By,oE;function PX(){if(oE)return By;oE=1;function e(t,n){for(var r=-1,i=n.length,a=t.length;++r<i;)t[a+r]=n[r];return t}return By=e,By}var Ly,sE;function da(){if(sE)return Ly;sE=1;var e=Array.isArray;return Ly=e,Ly}var Vy,uE;function _X(){if(uE)return Vy;uE=1;var e=PX(),t=da();function n(r,i,a){var o=i(r);return t(r)?o:e(o,a(r))}return Vy=n,Vy}var Ny,lE;function RX(){if(lE)return Ny;lE=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,a=0,o=[];++r<i;){var u=t[r];n(u,r,t)&&(o[a++]=u)}return o}return Ny=e,Ny}var jy,cE;function OX(){if(cE)return jy;cE=1;function e(){return[]}return jy=e,jy}var Ky,fE;function MX(){if(fE)return Ky;fE=1;var e=RX(),t=OX(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(u){return r.call(o,u)}))}:t;return Ky=a,Ky}var Uy,dE;function FX(){if(dE)return Uy;dE=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return Uy=e,Uy}var zy,hE;function Mu(){if(hE)return zy;hE=1;function e(t){return t!=null&&typeof t=="object"}return zy=e,zy}var qy,pE;function kX(){if(pE)return qy;pE=1;var e=Ru(),t=Mu(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return qy=r,qy}var Wy,mE;function WO(){if(mE)return Wy;mE=1;var e=kX(),t=Mu(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,a=e(function(){return arguments}())?e:function(o){return t(o)&&r.call(o,"callee")&&!i.call(o,"callee")};return Wy=a,Wy}var Gl={exports:{}},Hy,gE;function IX(){if(gE)return Hy;gE=1;function e(){return!1}return Hy=e,Hy}Gl.exports;var yE;function HO(){return yE||(yE=1,function(e,t){var n=fa(),r=IX(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,u=o?n.Buffer:void 0,l=u?u.isBuffer:void 0,f=l||r;e.exports=f}(Gl,Gl.exports)),Gl.exports}var Gy,vE;function w4(){if(vE)return Gy;vE=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,i){var a=typeof r;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<i}return Gy=n,Gy}var Yy,bE;function D4(){if(bE)return Yy;bE=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return Yy=t,Yy}var Zy,$E;function BX(){if($E)return Zy;$E=1;var e=Ru(),t=D4(),n=Mu(),r="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",u="[object Error]",l="[object Function]",f="[object Map]",d="[object Number]",h="[object Object]",p="[object RegExp]",g="[object Set]",y="[object String]",$="[object WeakMap]",D="[object ArrayBuffer]",b="[object DataView]",v="[object Float32Array]",w="[object Float64Array]",T="[object Int8Array]",E="[object Int16Array]",A="[object Int32Array]",M="[object Uint8Array]",S="[object Uint8ClampedArray]",z="[object Uint16Array]",j="[object Uint32Array]",O={};O[v]=O[w]=O[T]=O[E]=O[A]=O[M]=O[S]=O[z]=O[j]=!0,O[r]=O[i]=O[D]=O[a]=O[b]=O[o]=O[u]=O[l]=O[f]=O[d]=O[h]=O[p]=O[g]=O[y]=O[$]=!1;function Z(R){return n(R)&&t(R.length)&&!!O[e(R)]}return Zy=Z,Zy}var Jy,xE;function LX(){if(xE)return Jy;xE=1;function e(t){return function(n){return t(n)}}return Jy=e,Jy}var Yl={exports:{}};Yl.exports;var wE;function VX(){return wE||(wE=1,function(e,t){var n=jO(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a&&n.process,u=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=u}(Yl,Yl.exports)),Yl.exports}var Xy,DE;function GO(){if(DE)return Xy;DE=1;var e=BX(),t=LX(),n=VX(),r=n&&n.isTypedArray,i=r?t(r):e;return Xy=i,Xy}var Qy,CE;function NX(){if(CE)return Qy;CE=1;var e=FX(),t=WO(),n=da(),r=HO(),i=w4(),a=GO(),o=Object.prototype,u=o.hasOwnProperty;function l(f,d){var h=n(f),p=!h&&t(f),g=!h&&!p&&r(f),y=!h&&!p&&!g&&a(f),$=h||p||g||y,D=$?e(f.length,String):[],b=D.length;for(var v in f)(d||u.call(f,v))&&!($&&(v=="length"||g&&(v=="offset"||v=="parent")||y&&(v=="buffer"||v=="byteLength"||v=="byteOffset")||i(v,b)))&&D.push(v);return D}return Qy=l,Qy}var ev,EE;function jX(){if(EE)return ev;EE=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return ev=t,ev}var tv,SE;function KX(){if(SE)return tv;SE=1;function e(t,n){return function(r){return t(n(r))}}return tv=e,tv}var nv,TE;function UX(){if(TE)return nv;TE=1;var e=KX(),t=e(Object.keys,Object);return nv=t,nv}var rv,AE;function zX(){if(AE)return rv;AE=1;var e=jX(),t=UX(),n=Object.prototype,r=n.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var u in Object(a))r.call(a,u)&&u!="constructor"&&o.push(u);return o}return rv=i,rv}var iv,PE;function C4(){if(PE)return iv;PE=1;var e=KO(),t=D4();function n(r){return r!=null&&t(r.length)&&!e(r)}return iv=n,iv}var av,_E;function E4(){if(_E)return av;_E=1;var e=NX(),t=zX(),n=C4();function r(i){return n(i)?e(i):t(i)}return av=r,av}var ov,RE;function qX(){if(RE)return ov;RE=1;var e=_X(),t=MX(),n=E4();function r(i){return e(i,n,t)}return ov=r,ov}var sv,OE;function WX(){if(OE)return sv;OE=1;var e=qX(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(a,o,u,l,f,d){var h=u&t,p=e(a),g=p.length,y=e(o),$=y.length;if(g!=$&&!h)return!1;for(var D=g;D--;){var b=p[D];if(!(h?b in o:r.call(o,b)))return!1}var v=d.get(a),w=d.get(o);if(v&&w)return v==o&&w==a;var T=!0;d.set(a,o),d.set(o,a);for(var E=h;++D<g;){b=p[D];var A=a[b],M=o[b];if(l)var S=h?l(M,A,b,o,a,d):l(A,M,b,a,o,d);if(!(S===void 0?A===M||f(A,M,u,l,d):S)){T=!1;break}E||(E=b=="constructor")}if(T&&!E){var z=a.constructor,j=o.constructor;z!=j&&"constructor"in a&&"constructor"in o&&!(typeof z=="function"&&z instanceof z&&typeof j=="function"&&j instanceof j)&&(T=!1)}return d.delete(a),d.delete(o),T}return sv=i,sv}var uv,ME;function HX(){if(ME)return uv;ME=1;var e=Ou(),t=fa(),n=e(t,"DataView");return uv=n,uv}var lv,FE;function GX(){if(FE)return lv;FE=1;var e=Ou(),t=fa(),n=e(t,"Promise");return lv=n,lv}var cv,kE;function YX(){if(kE)return cv;kE=1;var e=Ou(),t=fa(),n=e(t,"Set");return cv=n,cv}var fv,IE;function ZX(){if(IE)return fv;IE=1;var e=Ou(),t=fa(),n=e(t,"WeakMap");return fv=n,fv}var dv,BE;function JX(){if(BE)return dv;BE=1;var e=HX(),t=$4(),n=GX(),r=YX(),i=ZX(),a=Ru(),o=UO(),u="[object Map]",l="[object Object]",f="[object Promise]",d="[object Set]",h="[object WeakMap]",p="[object DataView]",g=o(e),y=o(t),$=o(n),D=o(r),b=o(i),v=a;return(e&&v(new e(new ArrayBuffer(1)))!=p||t&&v(new t)!=u||n&&v(n.resolve())!=f||r&&v(new r)!=d||i&&v(new i)!=h)&&(v=function(w){var T=a(w),E=T==l?w.constructor:void 0,A=E?o(E):"";if(A)switch(A){case g:return p;case y:return u;case $:return f;case D:return d;case b:return h}return T}),dv=v,dv}var hv,LE;function XX(){if(LE)return hv;LE=1;var e=zO(),t=qO(),n=AX(),r=WX(),i=JX(),a=da(),o=HO(),u=GO(),l=1,f="[object Arguments]",d="[object Array]",h="[object Object]",p=Object.prototype,g=p.hasOwnProperty;function y($,D,b,v,w,T){var E=a($),A=a(D),M=E?d:i($),S=A?d:i(D);M=M==f?h:M,S=S==f?h:S;var z=M==h,j=S==h,O=M==S;if(O&&o($)){if(!o(D))return!1;E=!0,z=!1}if(O&&!z)return T||(T=new e),E||u($)?t($,D,b,v,w,T):n($,D,M,b,v,w,T);if(!(b&l)){var Z=z&&g.call($,"__wrapped__"),R=j&&g.call(D,"__wrapped__");if(Z||R){var V=Z?$.value():$,W=R?D.value():D;return T||(T=new e),w(V,W,b,v,T)}}return O?(T||(T=new e),r($,D,b,v,w,T)):!1}return hv=y,hv}var pv,VE;function YO(){if(VE)return pv;VE=1;var e=XX(),t=Mu();function n(r,i,a,o,u){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,a,o,n,u)}return pv=n,pv}var mv,NE;function QX(){if(NE)return mv;NE=1;var e=zO(),t=YO(),n=1,r=2;function i(a,o,u,l){var f=u.length,d=f,h=!l;if(a==null)return!d;for(a=Object(a);f--;){var p=u[f];if(h&&p[2]?p[1]!==a[p[0]]:!(p[0]in a))return!1}for(;++f<d;){p=u[f];var g=p[0],y=a[g],$=p[1];if(h&&p[2]){if(y===void 0&&!(g in a))return!1}else{var D=new e;if(l)var b=l(y,$,g,a,o,D);if(!(b===void 0?t($,y,n|r,l,D):b))return!1}}return!0}return mv=i,mv}var gv,jE;function ZO(){if(jE)return gv;jE=1;var e=Ep();function t(n){return n===n&&!e(n)}return gv=t,gv}var yv,KE;function eQ(){if(KE)return yv;KE=1;var e=ZO(),t=E4();function n(r){for(var i=t(r),a=i.length;a--;){var o=i[a],u=r[o];i[a]=[o,u,e(u)]}return i}return yv=n,yv}var vv,UE;function JO(){if(UE)return vv;UE=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return vv=e,vv}var bv,zE;function tQ(){if(zE)return bv;zE=1;var e=QX(),t=eQ(),n=JO();function r(i){var a=t(i);return a.length==1&&a[0][2]?n(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return bv=r,bv}var $v,qE;function S4(){if(qE)return $v;qE=1;var e=Ru(),t=Mu(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return $v=r,$v}var xv,WE;function T4(){if(WE)return xv;WE=1;var e=da(),t=S4(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(a,o){if(e(a))return!1;var u=typeof a;return u=="number"||u=="symbol"||u=="boolean"||a==null||t(a)?!0:r.test(a)||!n.test(a)||o!=null&&a in Object(o)}return xv=i,xv}var wv,HE;function nQ(){if(HE)return wv;HE=1;var e=x4(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,u=i?i.apply(this,o):o[0],l=a.cache;if(l.has(u))return l.get(u);var f=r.apply(this,o);return a.cache=l.set(u,f)||l,f};return a.cache=new(n.Cache||e),a}return n.Cache=e,wv=n,wv}var Dv,GE;function rQ(){if(GE)return Dv;GE=1;var e=nQ(),t=500;function n(r){var i=e(r,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return Dv=n,Dv}var Cv,YE;function iQ(){if(YE)return Cv;YE=1;var e=rQ(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,u,l,f){a.push(l?f.replace(n,"$1"):u||o)}),a});return Cv=r,Cv}var Ev,ZE;function aQ(){if(ZE)return Ev;ZE=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,a=Array(i);++r<i;)a[r]=n(t[r],r,t);return a}return Ev=e,Ev}var Sv,JE;function oQ(){if(JE)return Sv;JE=1;var e=Cp(),t=aQ(),n=da(),r=S4(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(u){if(typeof u=="string")return u;if(n(u))return t(u,o)+"";if(r(u))return a?a.call(u):"";var l=u+"";return l=="0"&&1/u==-1/0?"-0":l}return Sv=o,Sv}var Tv,XE;function sQ(){if(XE)return Tv;XE=1;var e=oQ();function t(n){return n==null?"":e(n)}return Tv=t,Tv}var Av,QE;function XO(){if(QE)return Av;QE=1;var e=da(),t=T4(),n=iQ(),r=sQ();function i(a,o){return e(a)?a:t(a,o)?[a]:n(r(a))}return Av=i,Av}var Pv,eS;function Ap(){if(eS)return Pv;eS=1;var e=S4();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return Pv=t,Pv}var _v,tS;function QO(){if(tS)return _v;tS=1;var e=XO(),t=Ap();function n(r,i){i=e(i,r);for(var a=0,o=i.length;r!=null&&a<o;)r=r[t(i[a++])];return a&&a==o?r:void 0}return _v=n,_v}var Rv,nS;function uQ(){if(nS)return Rv;nS=1;var e=QO();function t(n,r,i){var a=n==null?void 0:e(n,r);return a===void 0?i:a}return Rv=t,Rv}var Ov,rS;function lQ(){if(rS)return Ov;rS=1;function e(t,n){return t!=null&&n in Object(t)}return Ov=e,Ov}var Mv,iS;function cQ(){if(iS)return Mv;iS=1;var e=XO(),t=WO(),n=da(),r=w4(),i=D4(),a=Ap();function o(u,l,f){l=e(l,u);for(var d=-1,h=l.length,p=!1;++d<h;){var g=a(l[d]);if(!(p=u!=null&&f(u,g)))break;u=u[g]}return p||++d!=h?p:(h=u==null?0:u.length,!!h&&i(h)&&r(g,h)&&(n(u)||t(u)))}return Mv=o,Mv}var Fv,aS;function fQ(){if(aS)return Fv;aS=1;var e=lQ(),t=cQ();function n(r,i){return r!=null&&t(r,i,e)}return Fv=n,Fv}var kv,oS;function dQ(){if(oS)return kv;oS=1;var e=YO(),t=uQ(),n=fQ(),r=T4(),i=ZO(),a=JO(),o=Ap(),u=1,l=2;function f(d,h){return r(d)&&i(h)?a(o(d),h):function(p){var g=t(p,d);return g===void 0&&g===h?n(p,d):e(h,g,u|l)}}return kv=f,kv}var Iv,sS;function hQ(){if(sS)return Iv;sS=1;function e(t){return t}return Iv=e,Iv}var Bv,uS;function pQ(){if(uS)return Bv;uS=1;function e(t){return function(n){return n==null?void 0:n[t]}}return Bv=e,Bv}var Lv,lS;function mQ(){if(lS)return Lv;lS=1;var e=QO();function t(n){return function(r){return e(r,n)}}return Lv=t,Lv}var Vv,cS;function gQ(){if(cS)return Vv;cS=1;var e=pQ(),t=mQ(),n=T4(),r=Ap();function i(a){return n(a)?e(r(a)):t(a)}return Vv=i,Vv}var Nv,fS;function yQ(){if(fS)return Nv;fS=1;var e=tQ(),t=dQ(),n=hQ(),r=da(),i=gQ();function a(o){return typeof o=="function"?o:o==null?n:typeof o=="object"?r(o)?t(o[0],o[1]):e(o):i(o)}return Nv=a,Nv}var jv,dS;function vQ(){if(dS)return jv;dS=1;function e(t){return function(n,r,i){for(var a=-1,o=Object(n),u=i(n),l=u.length;l--;){var f=u[t?l:++a];if(r(o[f],f,o)===!1)break}return n}}return jv=e,jv}var Kv,hS;function bQ(){if(hS)return Kv;hS=1;var e=vQ(),t=e();return Kv=t,Kv}var Uv,pS;function $Q(){if(pS)return Uv;pS=1;var e=bQ(),t=E4();function n(r,i){return r&&e(r,i,t)}return Uv=n,Uv}var zv,mS;function xQ(){if(mS)return zv;mS=1;var e=C4();function t(n,r){return function(i,a){if(i==null)return i;if(!e(i))return n(i,a);for(var o=i.length,u=r?o:-1,l=Object(i);(r?u--:++u<o)&&a(l[u],u,l)!==!1;);return i}}return zv=t,zv}var qv,gS;function wQ(){if(gS)return qv;gS=1;var e=$Q(),t=xQ(),n=t(e);return qv=n,qv}var Wv,yS;function DQ(){if(yS)return Wv;yS=1;var e=wQ();function t(n,r){var i;return e(n,function(a,o,u){return i=r(a,o,u),!i}),!!i}return Wv=t,Wv}var Hv,vS;function CQ(){if(vS)return Hv;vS=1;var e=b4(),t=C4(),n=w4(),r=Ep();function i(a,o,u){if(!r(u))return!1;var l=typeof o;return(l=="number"?t(u)&&n(o,u.length):l=="string"&&o in u)?e(u[o],a):!1}return Hv=i,Hv}var Gv,bS;function EQ(){if(bS)return Gv;bS=1;var e=NO(),t=yQ(),n=DQ(),r=da(),i=CQ();function a(o,u,l){var f=r(o)?e:n;return l&&i(o,u,l)&&(u=void 0),f(o,t(u,3))}return Gv=a,Gv}var SQ=EQ();const TQ=sa(SQ);var Yv={exports:{}},$S;function AQ(){return $S||($S=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
137
|
+
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
138
|
+
*
|
|
139
|
+
* @license MIT <https://opensource.org/licenses/MIT>
|
|
140
|
+
* @author Lea Verou <https://lea.verou.me>
|
|
141
|
+
* @namespace
|
|
142
|
+
* @public
|
|
143
|
+
*/var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,a=0,o={},u={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function v(w){return w instanceof l?new l(w.type,v(w.content),w.alias):Array.isArray(w)?w.map(v):w.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(v){return Object.prototype.toString.call(v).slice(8,-1)},objId:function(v){return v.__id||Object.defineProperty(v,"__id",{value:++a}),v.__id},clone:function v(w,T){T=T||{};var E,A;switch(u.util.type(w)){case"Object":if(A=u.util.objId(w),T[A])return T[A];E={},T[A]=E;for(var M in w)w.hasOwnProperty(M)&&(E[M]=v(w[M],T));return E;case"Array":return A=u.util.objId(w),T[A]?T[A]:(E=[],T[A]=E,w.forEach(function(S,z){E[z]=v(S,T)}),E);default:return w}},getLanguage:function(v){for(;v;){var w=i.exec(v.className);if(w)return w[1].toLowerCase();v=v.parentElement}return"none"},setLanguage:function(v,w){v.className=v.className.replace(RegExp(i,"gi"),""),v.classList.add("language-"+w)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(E){var v=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(E.stack)||[])[1];if(v){var w=document.getElementsByTagName("script");for(var T in w)if(w[T].src==v)return w[T]}return null}},isActive:function(v,w,T){for(var E="no-"+w;v;){var A=v.classList;if(A.contains(w))return!0;if(A.contains(E))return!1;v=v.parentElement}return!!T}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(v,w){var T=u.util.clone(u.languages[v]);for(var E in w)T[E]=w[E];return T},insertBefore:function(v,w,T,E){E=E||u.languages;var A=E[v],M={};for(var S in A)if(A.hasOwnProperty(S)){if(S==w)for(var z in T)T.hasOwnProperty(z)&&(M[z]=T[z]);T.hasOwnProperty(S)||(M[S]=A[S])}var j=E[v];return E[v]=M,u.languages.DFS(u.languages,function(O,Z){Z===j&&O!=v&&(this[O]=M)}),M},DFS:function v(w,T,E,A){A=A||{};var M=u.util.objId;for(var S in w)if(w.hasOwnProperty(S)){T.call(w,S,w[S],E||S);var z=w[S],j=u.util.type(z);j==="Object"&&!A[M(z)]?(A[M(z)]=!0,v(z,T,null,A)):j==="Array"&&!A[M(z)]&&(A[M(z)]=!0,v(z,T,S,A))}}},plugins:{},highlightAll:function(v,w){u.highlightAllUnder(document,v,w)},highlightAllUnder:function(v,w,T){var E={callback:T,container:v,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 A=0,M;M=E.elements[A++];)u.highlightElement(M,w===!0,E.callback)},highlightElement:function(v,w,T){var E=u.util.getLanguage(v),A=u.languages[E];u.util.setLanguage(v,E);var M=v.parentElement;M&&M.nodeName.toLowerCase()==="pre"&&u.util.setLanguage(M,E);var S=v.textContent,z={element:v,language:E,grammar:A,code:S};function j(Z){z.highlightedCode=Z,u.hooks.run("before-insert",z),z.element.innerHTML=z.highlightedCode,u.hooks.run("after-highlight",z),u.hooks.run("complete",z),T&&T.call(z.element)}if(u.hooks.run("before-sanity-check",z),M=z.element.parentElement,M&&M.nodeName.toLowerCase()==="pre"&&!M.hasAttribute("tabindex")&&M.setAttribute("tabindex","0"),!z.code){u.hooks.run("complete",z),T&&T.call(z.element);return}if(u.hooks.run("before-highlight",z),!z.grammar){j(u.util.encode(z.code));return}if(w&&r.Worker){var O=new Worker(u.filename);O.onmessage=function(Z){j(Z.data)},O.postMessage(JSON.stringify({language:z.language,code:z.code,immediateClose:!0}))}else j(u.highlight(z.code,z.grammar,z.language))},highlight:function(v,w,T){var E={code:v,grammar:w,language:T};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),l.stringify(u.util.encode(E.tokens),E.language)},tokenize:function(v,w){var T=w.rest;if(T){for(var E in T)w[E]=T[E];delete w.rest}var A=new h;return p(A,A.head,v),d(v,A,w,A.head,0),y(A)},hooks:{all:{},add:function(v,w){var T=u.hooks.all;T[v]=T[v]||[],T[v].push(w)},run:function(v,w){var T=u.hooks.all[v];if(!(!T||!T.length))for(var E=0,A;A=T[E++];)A(w)}},Token:l};r.Prism=u;function l(v,w,T,E){this.type=v,this.content=w,this.alias=T,this.length=(E||"").length|0}l.stringify=function v(w,T){if(typeof w=="string")return w;if(Array.isArray(w)){var E="";return w.forEach(function(j){E+=v(j,T)}),E}var A={type:w.type,content:v(w.content,T),tag:"span",classes:["token",w.type],attributes:{},language:T},M=w.alias;M&&(Array.isArray(M)?Array.prototype.push.apply(A.classes,M):A.classes.push(M)),u.hooks.run("wrap",A);var S="";for(var z in A.attributes)S+=" "+z+'="'+(A.attributes[z]||"").replace(/"/g,""")+'"';return"<"+A.tag+' class="'+A.classes.join(" ")+'"'+S+">"+A.content+"</"+A.tag+">"};function f(v,w,T,E){v.lastIndex=w;var A=v.exec(T);if(A&&E&&A[1]){var M=A[1].length;A.index+=M,A[0]=A[0].slice(M)}return A}function d(v,w,T,E,A,M){for(var S in T)if(!(!T.hasOwnProperty(S)||!T[S])){var z=T[S];z=Array.isArray(z)?z:[z];for(var j=0;j<z.length;++j){if(M&&M.cause==S+","+j)return;var O=z[j],Z=O.inside,R=!!O.lookbehind,V=!!O.greedy,W=O.alias;if(V&&!O.pattern.global){var L=O.pattern.toString().match(/[imsuy]*$/)[0];O.pattern=RegExp(O.pattern.source,L+"g")}for(var k=O.pattern||O,_=E.next,H=A;_!==w.tail&&!(M&&H>=M.reach);H+=_.value.length,_=_.next){var U=_.value;if(w.length>v.length)return;if(!(U instanceof l)){var N=1,ne;if(V){if(ne=f(k,H,v,R),!ne||ne.index>=v.length)break;var De=ne.index,ie=ne.index+ne[0].length,ce=H;for(ce+=_.value.length;De>=ce;)_=_.next,ce+=_.value.length;if(ce-=_.value.length,H=ce,_.value instanceof l)continue;for(var xe=_;xe!==w.tail&&(ce<ie||typeof xe.value=="string");xe=xe.next)N++,ce+=xe.value.length;N--,U=v.slice(H,ce),ne.index-=H}else if(ne=f(k,0,U,R),!ne)continue;var De=ne.index,Ee=ne[0],J=U.slice(0,De),ye=U.slice(De+Ee.length),we=H+U.length;M&&we>M.reach&&(M.reach=we);var me=_.prev;J&&(me=p(w,me,J),H+=J.length),g(w,me,N);var ue=new l(S,Z?u.tokenize(Ee,Z):Ee,W,Ee);if(_=p(w,me,ue),ye&&p(w,_,ye),N>1){var Le={cause:S+","+j,reach:we};d(v,w,T,_.prev,H,Le),M&&Le.reach>M.reach&&(M.reach=Le.reach)}}}}}}function h(){var v={value:null,prev:null,next:null},w={value:null,prev:v,next:null};v.next=w,this.head=v,this.tail=w,this.length=0}function p(v,w,T){var E=w.next,A={value:T,prev:w,next:E};return w.next=A,E.prev=A,v.length++,A}function g(v,w,T){for(var E=w.next,A=0;A<T&&E!==v.tail;A++)E=E.next;w.next=E,E.prev=w,v.length-=A}function y(v){for(var w=[],T=v.head.next;T!==v.tail;)w.push(T.value),T=T.next;return w}if(!r.document)return r.addEventListener&&(u.disableWorkerMessageHandler||r.addEventListener("message",function(v){var w=JSON.parse(v.data),T=w.language,E=w.code,A=w.immediateClose;r.postMessage(u.highlight(E,u.languages[T],T)),A&&r.close()},!1)),u;var $=u.util.currentScript();$&&(u.filename=$.src,$.hasAttribute("data-manual")&&(u.manual=!0));function D(){u.manual||u.highlightAll()}if(!u.manual){var b=document.readyState;b==="loading"||b==="interactive"&&$&&$.defer?document.addEventListener("DOMContentLoaded",D):window.requestAnimationFrame?window.requestAnimationFrame(D):window.setTimeout(D,16)}return u}(t);e.exports&&(e.exports=n),typeof yi<"u"&&(yi.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,a){var o={};o["language-"+a]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[a]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var u={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};u["language-"+a]={pattern:/[\s\S]+/,inside:n.languages[a]};var l={};l[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:u},n.languages.insertBefore("markup","cdata",l)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var a=r.languages.markup;a&&(a.tag.addInlined("style","css"),a.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($,D){return"✖ Error "+$+" while fetching file: "+D},a="✖ Error: File does not exist or is empty",o={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},u="data-src-status",l="loading",f="loaded",d="failed",h="pre[data-src]:not(["+u+'="'+f+'"]):not(['+u+'="'+l+'"])';function p($,D,b){var v=new XMLHttpRequest;v.open("GET",$,!0),v.onreadystatechange=function(){v.readyState==4&&(v.status<400&&v.responseText?D(v.responseText):v.status>=400?b(i(v.status,v.statusText)):b(a))},v.send(null)}function g($){var D=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec($||"");if(D){var b=Number(D[1]),v=D[2],w=D[3];return v?w?[b,Number(w)]:[b,void 0]:[b,b]}}n.hooks.add("before-highlightall",function($){$.selector+=", "+h}),n.hooks.add("before-sanity-check",function($){var D=$.element;if(D.matches(h)){$.code="",D.setAttribute(u,l);var b=D.appendChild(document.createElement("CODE"));b.textContent=r;var v=D.getAttribute("data-src"),w=$.language;if(w==="none"){var T=(/\.(\w+)$/.exec(v)||[,"none"])[1];w=o[T]||T}n.util.setLanguage(b,w),n.util.setLanguage(D,w);var E=n.plugins.autoloader;E&&E.loadLanguages(w),p(v,function(A){D.setAttribute(u,f);var M=g(D.getAttribute("data-range"));if(M){var S=A.split(/\r\n?|\n/g),z=M[0],j=M[1]==null?S.length:M[1];z<0&&(z+=S.length),z=Math.max(0,Math.min(z-1,S.length)),j<0&&(j+=S.length),j=Math.max(0,Math.min(j,S.length)),A=S.slice(z,j).join(`
|
|
144
|
+
`),D.hasAttribute("data-start")||D.setAttribute("data-start",String(z+1))}b.textContent=A,n.highlightElement(b)},function(A){D.setAttribute(u,d),b.textContent=A})}}),n.plugins.fileHighlight={highlight:function(D){for(var b=(D||document).querySelectorAll(h),v=0,w;w=b[v++];)n.highlightElement(w)}};var y=!1;n.fileHighlight=function(){y||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),y=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()}(Yv)),Yv.exports}var PQ=AQ();(function(){if(typeof Prism>"u"||typeof document>"u"||!document.querySelector)return;var e="line-numbers",t="linkable-line-numbers",n=/\n(?!$)/g;function r(p,g){return Array.prototype.slice.call((g||document).querySelectorAll(p))}function i(p,g){return p.classList.contains(g)}function a(p){p()}var o=function(){var p;return function(){if(typeof p>"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),p=g.offsetHeight===38,document.body.removeChild(g)}return p}}();function u(p,g){var y=getComputedStyle(p),$=getComputedStyle(g);function D(b){return+b.substr(0,b.length-2)}return g.offsetTop+D($.borderTopWidth)+D($.paddingTop)-D(y.paddingTop)}function l(p){return!p||!/pre/i.test(p.nodeName)?!1:!!(p.hasAttribute("data-line")||p.id&&Prism.util.isActive(p,t))}var f=!0;Prism.plugins.lineHighlight={highlightLines:function(g,y,$){y=typeof y=="string"?y:g.getAttribute("data-line")||"";var D=y.replace(/\s+/g,"").split(",").filter(Boolean),b=+g.getAttribute("data-line-offset")||0,v=o()?parseInt:parseFloat,w=v(getComputedStyle(g).lineHeight),T=Prism.util.isActive(g,e),E=g.querySelector("code"),A=T?g:E||g,M=[],S=E.textContent.match(n),z=S?S.length+1:1,j=!E||A==E?0:u(g,E);D.forEach(function(R){var V=R.split("-"),W=+V[0],L=+V[1]||W;if(L=Math.min(z+b,L),!(L<W)){var k=g.querySelector('.line-highlight[data-range="'+R+'"]')||document.createElement("div");if(M.push(function(){k.setAttribute("aria-hidden","true"),k.setAttribute("data-range",R),k.className=($||"")+" line-highlight"}),T&&Prism.plugins.lineNumbers){var _=Prism.plugins.lineNumbers.getLine(g,W),H=Prism.plugins.lineNumbers.getLine(g,L);if(_){var U=_.offsetTop+j+"px";M.push(function(){k.style.top=U})}if(H){var N=H.offsetTop-_.offsetTop+H.offsetHeight+"px";M.push(function(){k.style.height=N})}}else M.push(function(){k.setAttribute("data-start",String(W)),L>W&&k.setAttribute("data-end",String(L)),k.style.top=(W-b-1)*w+j+"px",k.textContent=new Array(L-W+2).join(`
|
|
145
|
+
`)});M.push(function(){k.style.width=g.scrollWidth+"px"}),M.push(function(){A.appendChild(k)})}});var O=g.id;if(T&&Prism.util.isActive(g,t)&&O){i(g,t)||M.push(function(){g.classList.add(t)});var Z=parseInt(g.getAttribute("data-start")||"1");r(".line-numbers-rows > span",g).forEach(function(R,V){var W=V+Z;R.onclick=function(){var L=O+"."+W;f=!1,location.hash=L,setTimeout(function(){f=!0},1)}})}return function(){M.forEach(a)}}};function d(){var p=location.hash.slice(1);r(".temporary.line-highlight").forEach(function(b){b.parentNode.removeChild(b)});var g=(p.match(/\.([\d,-]+)$/)||[,""])[1];if(!(!g||document.getElementById(p))){var y=p.slice(0,p.lastIndexOf(".")),$=document.getElementById(y);if($){$.hasAttribute("data-line")||$.setAttribute("data-line","");var D=Prism.plugins.lineHighlight.highlightLines($,g,"temporary ");D(),f&&document.querySelector(".temporary.line-highlight").scrollIntoView()}}}var h=0;Prism.hooks.add("before-sanity-check",function(p){var g=p.element.parentElement;if(l(g)){var y=0;r(".line-highlight",g).forEach(function($){y+=$.textContent.length,$.parentNode.removeChild($)}),y&&/^(?: \n)+$/.test(p.code.slice(-y))&&(p.code=p.code.slice(0,-y))}}),Prism.hooks.add("complete",function p(g){var y=g.element.parentElement;if(l(y)){clearTimeout(h);var $=Prism.plugins.lineNumbers,D=g.plugins&&g.plugins.lineNumbers;if(i(y,e)&&$&&!D)Prism.hooks.add("line-numbers",p);else{var b=Prism.plugins.lineHighlight.highlightLines(y);b(),h=setTimeout(d,1)}}}),window.addEventListener("hashchange",d),window.addEventListener("resize",function(){var p=r("pre").filter(l).map(function(g){return Prism.plugins.lineHighlight.highlightLines(g)});p.forEach(a)})})();const eM=C.createContext({});function Jc(e){const t=C.useRef(null);return t.current===null&&(t.current=e()),t.current}const A4=C.createContext(null),P4=C.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function _Q(e=!0){const t=C.useContext(A4);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,a=C.useId();C.useEffect(()=>{e&&i(a)},[e]);const o=C.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}const _4=typeof window<"u",tM=_4?C.useLayoutEffect:C.useEffect,Yn=e=>e;let Fu=Yn,Pi=Yn;process.env.NODE_ENV!=="production"&&(Fu=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Pi=(e,t)=>{if(!e)throw new Error(t)});function R4(e){let t;return()=>(t===void 0&&(t=e()),t)}const mu=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Si=e=>e*1e3,ta=e=>e/1e3,RQ={useManualTiming:!1};function OQ(e){let t=new Set,n=new Set,r=!1,i=!1;const a=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function u(f){a.has(f)&&(l.schedule(f),e()),f(o)}const l={schedule:(f,d=!1,h=!1)=>{const g=h&&r?t:n;return d&&a.add(f),g.has(f)||g.add(f),f},cancel:f=>{n.delete(f),a.delete(f)},process:f=>{if(o=f,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(u),t.clear(),r=!1,i&&(i=!1,l.process(f))}};return l}const vd=["read","resolveKeyframes","update","preRender","render","postRender"],MQ=40;function nM(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=vd.reduce((b,v)=>(b[v]=OQ(a),b),{}),{read:u,resolveKeyframes:l,update:f,preRender:d,render:h,postRender:p}=o,g=()=>{const b=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(b-i.timestamp,MQ),1),i.timestamp=b,i.isProcessing=!0,u.process(i),l.process(i),f.process(i),d.process(i),h.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},y=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:vd.reduce((b,v)=>{const w=o[v];return b[v]=(T,E=!1,A=!1)=>(n||y(),w.schedule(T,E,A)),b},{}),cancel:b=>{for(let v=0;v<vd.length;v++)o[vd[v]].cancel(b)},state:i,steps:o}}const{schedule:Tt,cancel:aa,state:hn,steps:Zv}=nM(typeof requestAnimationFrame<"u"?requestAnimationFrame:Yn,!0),rM=C.createContext({strict:!1}),xS={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"]},gu={};for(const e in xS)gu[e]={isEnabled:t=>xS[e].some(n=>!!t[n])};function FQ(e){for(const t in e)gu[t]={...gu[t],...e[t]}}const kQ=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")||kQ.has(e)}let iM=e=>!Ch(e);function IQ(e){e&&(iM=t=>t.startsWith("on")?!Ch(t):e(t))}try{IQ(require("@emotion/is-prop-valid").default)}catch{}function BQ(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(iM(i)||n===!0&&Ch(i)||!t&&!Ch(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const wS=new Set;function Pp(e,t,n){e||wS.has(t)||(console.warn(t),wS.add(t))}function LQ(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))})}const _p=C.createContext({});function Sc(e){return typeof e=="string"||Array.isArray(e)}function Rp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const O4=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],M4=["initial",...O4];function Op(e){return Rp(e.animate)||M4.some(t=>Sc(e[t]))}function aM(e){return!!(Op(e)||e.variants)}function VQ(e,t){if(Op(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Sc(n)?n:void 0,animate:Sc(r)?r:void 0}}return e.inherit!==!1?t:{}}function NQ(e){const{initial:t,animate:n}=VQ(e,C.useContext(_p));return C.useMemo(()=>({initial:t,animate:n}),[DS(t),DS(n)])}function DS(e){return Array.isArray(e)?e.join(" "):e}const jQ=Symbol.for("motionComponentSymbol");function Ks(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function KQ(e,t,n){return C.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ks(n)&&(n.current=r))},[t])}const F4=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),UQ="framerAppearId",oM="data-"+F4(UQ),{schedule:k4}=nM(queueMicrotask,!1),sM=C.createContext({});function zQ(e,t,n,r,i){var a,o;const{visualElement:u}=C.useContext(_p),l=C.useContext(rM),f=C.useContext(A4),d=C.useContext(P4).reducedMotion,h=C.useRef(null);r=r||l.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:u,props:n,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:d}));const p=h.current,g=C.useContext(sM);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&qQ(h.current,n,i,g);const y=C.useRef(!1);C.useInsertionEffect(()=>{p&&y.current&&p.update(n,f)});const $=n[oM],D=C.useRef(!!$&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,$))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,$)));return tM(()=>{p&&(y.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),k4.render(p.render),D.current&&p.animationState&&p.animationState.animateChanges())}),C.useEffect(()=>{p&&(!D.current&&p.animationState&&p.animationState.animateChanges(),D.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,$)}),D.current=!1))}),p}function qQ(e,t,n,r){const{layoutId:i,layout:a,drag:o,dragConstraints:u,layoutScroll:l,layoutRoot:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:uM(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||u&&Ks(u),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:f})}function uM(e){if(e)return e.options.allowProjection!==!1?e.projection:uM(e.parent)}function WQ({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var a,o;e&&FQ(e);function u(f,d){let h;const p={...C.useContext(P4),...f,layoutId:HQ(f)},{isStatic:g}=p,y=NQ(f),$=r(f,g);if(!g&&_4){GQ(p,e);const D=YQ(p);h=D.MeasureLayout,y.visualElement=zQ(i,$,p,t,D.ProjectionNode)}return ra.jsxs(_p.Provider,{value:y,children:[h&&y.visualElement?ra.jsx(h,{visualElement:y.visualElement,...p}):null,n(i,f,KQ($,y.visualElement,d),$,g,y.visualElement)]})}u.displayName=`motion.${typeof i=="string"?i:`create(${(o=(a=i.displayName)!==null&&a!==void 0?a:i.name)!==null&&o!==void 0?o:""})`}`;const l=C.forwardRef(u);return l[jQ]=i,l}function HQ({layoutId:e}){const t=C.useContext(eM).id;return t&&e!==void 0?t+"-"+e:e}function GQ(e,t){const n=C.useContext(rM).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?Fu(!1,r):Pi(!1,r)}}function YQ(e){const{drag:t,layout:n}=gu;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 ZQ=["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 I4(e){return typeof e!="string"||e.includes("-")?!1:!!(ZQ.indexOf(e)>-1||/[A-Z]/u.test(e))}function CS(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function B4(e,t,n,r){if(typeof t=="function"){const[i,a]=CS(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=CS(r);t=t(n!==void 0?n:e.custom,i,a)}return t}const P0=e=>Array.isArray(e),JQ=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),XQ=e=>P0(e)?e[e.length-1]||0:e,pn=e=>!!(e&&e.getVelocity);function Kd(e){const t=pn(e)?e.get():e;return JQ(t)?t.toValue():t}function QQ({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,a){const o={latestValues:eee(r,i,a,e),renderState:t()};return n&&(o.onMount=u=>n({props:r,current:u,...o}),o.onUpdate=u=>n(u)),o}const lM=e=>(t,n)=>{const r=C.useContext(_p),i=C.useContext(A4),a=()=>QQ(e,t,r,i);return n?a():Jc(a)};function eee(e,t,n,r){const i={},a=r(e,{});for(const p in a)i[p]=Kd(a[p]);let{initial:o,animate:u}=e;const l=Op(e),f=aM(e);t&&f&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),u===void 0&&(u=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const h=d?u:o;if(h&&typeof h!="boolean"&&!Rp(h)){const p=Array.isArray(h)?h:[h];for(let g=0;g<p.length;g++){const y=B4(e,p[g]);if(y){const{transitionEnd:$,transition:D,...b}=y;for(const v in b){let w=b[v];if(Array.isArray(w)){const T=d?w.length-1:0;w=w[T]}w!==null&&(i[v]=w)}for(const v in $)i[v]=$[v]}}}return i}const ku=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],es=new Set(ku),cM=e=>t=>typeof t=="string"&&t.startsWith(e),fM=cM("--"),tee=cM("var(--"),L4=e=>tee(e)?nee.test(e.split("/*")[0].trim()):!1,nee=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,dM=(e,t)=>t&&typeof e=="number"?t.transform(e):e,oa=(e,t,n)=>n>t?t:n<e?e:n,Iu={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Tc={...Iu,transform:e=>oa(0,1,e)},bd={...Iu,default:1},Xc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),_a=Xc("deg"),Ti=Xc("%"),qe=Xc("px"),ree=Xc("vh"),iee=Xc("vw"),ES={...Ti,parse:e=>Ti.parse(e)/100,transform:e=>Ti.transform(e*100)},aee={borderWidth:qe,borderTopWidth:qe,borderRightWidth:qe,borderBottomWidth:qe,borderLeftWidth:qe,borderRadius:qe,radius:qe,borderTopLeftRadius:qe,borderTopRightRadius:qe,borderBottomRightRadius:qe,borderBottomLeftRadius:qe,width:qe,maxWidth:qe,height:qe,maxHeight:qe,top:qe,right:qe,bottom:qe,left:qe,padding:qe,paddingTop:qe,paddingRight:qe,paddingBottom:qe,paddingLeft:qe,margin:qe,marginTop:qe,marginRight:qe,marginBottom:qe,marginLeft:qe,backgroundPositionX:qe,backgroundPositionY:qe},oee={rotate:_a,rotateX:_a,rotateY:_a,rotateZ:_a,scale:bd,scaleX:bd,scaleY:bd,scaleZ:bd,skew:_a,skewX:_a,skewY:_a,distance:qe,translateX:qe,translateY:qe,translateZ:qe,x:qe,y:qe,z:qe,perspective:qe,transformPerspective:qe,opacity:Tc,originX:ES,originY:ES,originZ:qe},SS={...Iu,transform:Math.round},V4={...aee,...oee,zIndex:SS,size:qe,fillOpacity:Tc,strokeOpacity:Tc,numOctaves:SS},see={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},uee=ku.length;function lee(e,t,n){let r="",i=!0;for(let a=0;a<uee;a++){const o=ku[a],u=e[o];if(u===void 0)continue;let l=!0;if(typeof u=="number"?l=u===(o.startsWith("scale")?1:0):l=parseFloat(u)===0,!l||n){const f=dM(u,V4[o]);if(!l){i=!1;const d=see[o]||o;r+=`${d}(${f}) `}n&&(t[o]=f)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function N4(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let o=!1,u=!1;for(const l in t){const f=t[l];if(es.has(l)){o=!0;continue}else if(fM(l)){i[l]=f;continue}else{const d=dM(f,V4[l]);l.startsWith("origin")?(u=!0,a[l]=d):r[l]=d}}if(t.transform||(o||n?r.transform=lee(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:l="50%",originY:f="50%",originZ:d=0}=a;r.transformOrigin=`${l} ${f} ${d}`}}const cee={offset:"stroke-dashoffset",array:"stroke-dasharray"},fee={offset:"strokeDashoffset",array:"strokeDasharray"};function dee(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?cee:fee;e[a.offset]=qe.transform(-r);const o=qe.transform(t),u=qe.transform(n);e[a.array]=`${o} ${u}`}function TS(e,t,n){return typeof e=="string"?e:qe.transform(t+n*e)}function hee(e,t,n){const r=TS(t,e.x,e.width),i=TS(n,e.y,e.height);return`${r} ${i}`}function j4(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:o,pathSpacing:u=1,pathOffset:l=0,...f},d,h){if(N4(e,f,h),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:g,dimensions:y}=e;p.transform&&(y&&(g.transform=p.transform),delete p.transform),y&&(i!==void 0||a!==void 0||g.transform)&&(g.transformOrigin=hee(y,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),o!==void 0&&dee(p,o,u,l,!1)}const K4=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),hM=()=>({...K4(),attrs:{}}),U4=e=>typeof e=="string"&&e.toLowerCase()==="svg";function pM(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const mM=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 gM(e,t,n,r){pM(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(mM.has(i)?i:F4(i),t.attrs[i])}const Eh={};function pee(e){Object.assign(Eh,e)}function yM(e,{layout:t,layoutId:n}){return es.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Eh[e]||e==="opacity")}function z4(e,t,n){var r;const{style:i}=e,a={};for(const o in i)(pn(i[o])||t.style&&pn(t.style[o])||yM(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(a[o]=i[o]);return a}function vM(e,t,n){const r=z4(e,t,n);for(const i in e)if(pn(e[i])||pn(t[i])){const a=ku.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}function mee(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 AS=["x","y","width","height","cx","cy","r"],gee={useVisualState:lM({scrapeMotionValuesFromProps:vM,createRenderState:hM,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let a=!!e.drag;if(!a){for(const u in i)if(es.has(u)){a=!0;break}}if(!a)return;let o=!t;if(t)for(let u=0;u<AS.length;u++){const l=AS[u];e[l]!==t[l]&&(o=!0)}o&&Tt.read(()=>{mee(n,r),Tt.render(()=>{j4(r,i,U4(n.tagName),e.transformTemplate),gM(n,r)})})}})},yee={useVisualState:lM({scrapeMotionValuesFromProps:z4,createRenderState:K4})};function bM(e,t,n){for(const r in t)!pn(t[r])&&!yM(r,n)&&(e[r]=t[r])}function vee({transformTemplate:e},t){return C.useMemo(()=>{const n=K4();return N4(n,t,e),Object.assign({},n.vars,n.style)},[t])}function bee(e,t){const n=e.style||{},r={};return bM(r,n,e),Object.assign(r,vee(e,t)),r}function $ee(e,t){const n={},r=bee(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 xee(e,t,n,r){const i=C.useMemo(()=>{const a=hM();return j4(a,t,U4(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};bM(a,e.style,e),i.style={...a,...i.style}}return i}function wee(e=!1){return(n,r,i,{latestValues:a},o)=>{const l=(I4(n)?xee:$ee)(r,a,o,n),f=BQ(r,typeof n=="string",e),d=n!==C.Fragment?{...f,...l,ref:i}:{},{children:h}=r,p=C.useMemo(()=>pn(h)?h.get():h,[h]);return C.createElement(n,{...d,children:p})}}function Dee(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...I4(r)?gee:yee,preloadedFeatures:e,useRender:wee(i),createVisualElement:t,Component:r};return WQ(o)}}function $M(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 Mp(e,t,n){const r=e.getProps();return B4(r,t,n!==void 0?n:r.custom,e)}const Cee=R4(()=>window.ScrollTimeline!==void 0);class Eee{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(Cee()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,a)=>{i&&i(),this.animations[a].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")}}let See=class extends Eee{then(t,n){return Promise.all(this.animations).then(t).catch(n)}};function q4(e,t){return e?e[t]||e.default||e:void 0}const _0=2e4;function xM(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<_0;)t+=n,r=e.next(t);return t>=_0?1/0:t}function W4(e){return typeof e=="function"}function PS(e,t){e.timeline=t,e.onfinish=null}const H4=e=>Array.isArray(e)&&typeof e[0]=="number",Tee={linearEasing:void 0};function Aee(e,t){const n=R4(e);return()=>{var r;return(r=Tee[t])!==null&&r!==void 0?r:n()}}const Sh=Aee(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),wM=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=e(mu(0,i-1,a))+", ";return`linear(${r.substring(0,r.length-2)})`};function DM(e){return!!(typeof e=="function"&&Sh()||!e||typeof e=="string"&&(e in R0||Sh())||H4(e)||Array.isArray(e)&&e.every(DM))}const Zl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,R0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Zl([0,.65,.55,1]),circOut:Zl([.55,0,1,.45]),backIn:Zl([.31,.01,.66,-.59]),backOut:Zl([.33,1.53,.69,.99])};function CM(e,t){if(e)return typeof e=="function"&&Sh()?wM(e,t):H4(e)?Zl(e):Array.isArray(e)?e.map(n=>CM(n,t)||R0.easeOut):R0[e]}const Vr={x:!1,y:!1};function EM(){return Vr.x||Vr.y}function Pee(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const a=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}function SM(e,t){const n=Pee(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function _S(e){return t=>{t.pointerType==="touch"||EM()||e(t)}}function _ee(e,t,n={}){const[r,i,a]=SM(e,n),o=_S(u=>{const{target:l}=u,f=t(u);if(typeof f!="function"||!l)return;const d=_S(h=>{f(h),l.removeEventListener("pointerleave",d)});l.addEventListener("pointerleave",d,i)});return r.forEach(u=>{u.addEventListener("pointerenter",o,i)}),a}const TM=(e,t)=>t?e===t?!0:TM(e,t.parentElement):!1,G4=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Ree=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Oee(e){return Ree.has(e.tagName)||e.tabIndex!==-1}const Jl=new WeakSet;function RS(e){return t=>{t.key==="Enter"&&e(t)}}function Jv(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Mee=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=RS(()=>{if(Jl.has(n))return;Jv(n,"down");const i=RS(()=>{Jv(n,"up")}),a=()=>Jv(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function OS(e){return G4(e)&&!EM()}function Fee(e,t,n={}){const[r,i,a]=SM(e,n),o=u=>{const l=u.currentTarget;if(!OS(u)||Jl.has(l))return;Jl.add(l);const f=t(u),d=(g,y)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",p),!(!OS(g)||!Jl.has(l))&&(Jl.delete(l),typeof f=="function"&&f(g,{success:y}))},h=g=>{d(g,n.useGlobalTarget||TM(l,g.target))},p=g=>{d(g,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",p,i)};return r.forEach(u=>{!Oee(u)&&u.getAttribute("tabindex")===null&&(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",o,i),u.addEventListener("focus",f=>Mee(f,i),i)}),a}function kee(e){return e==="x"||e==="y"?Vr[e]?null:(Vr[e]=!0,()=>{Vr[e]=!1}):Vr.x||Vr.y?null:(Vr.x=Vr.y=!0,()=>{Vr.x=Vr.y=!1})}const AM=new Set(["width","height","top","left","right","bottom",...ku]);let Ud;function Iee(){Ud=void 0}const Ai={now:()=>(Ud===void 0&&Ai.set(hn.isProcessing||RQ.useManualTiming?hn.timestamp:performance.now()),Ud),set:e=>{Ud=e,queueMicrotask(Iee)}};function Y4(e,t){e.indexOf(t)===-1&&e.push(t)}function Z4(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function Bee([...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,[a]=e.splice(t,1);e.splice(i,0,a)}return e}let J4=class{constructor(){this.subscriptions=[]}add(t){return Y4(this.subscriptions,t),()=>Z4(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 a=0;a<i;a++){const o=this.subscriptions[a];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function PM(e,t){return t?e*(1e3/t):0}const MS=30,Lee=e=>!isNaN(parseFloat(e)),sc={current:void 0};let Vee=class{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const a=Ai.now();this.updatedAt!==a&&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=Ai.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Lee(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 J4);const r=this.events[t].add(n);return t==="change"?()=>{r(),Tt.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 sc.current&&sc.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Ai.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>MS)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,MS);return PM(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 yu(e,t){return new Vee(e,t)}function Nee(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,yu(n))}function jee(e,t){const n=Mp(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const o in a){const u=XQ(a[o]);Nee(e,o,u)}}function Kee(e){return!!(pn(e)&&e.add)}function O0(e,t){const n=e.getValue("willChange");if(Kee(n))return n.add(t)}function _M(e){return e.props[oM]}const RM=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Uee=1e-7,zee=12;function qee(e,t,n,r,i){let a,o,u=0;do o=t+(n-t)/2,a=RM(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Uee&&++u<zee);return o}function Qc(e,t,n,r){if(e===t&&n===r)return Yn;const i=a=>qee(a,0,1,e,n);return a=>a===0||a===1?a:RM(i(a),t,r)}const OM=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,MM=e=>t=>1-e(1-t),FM=Qc(.33,1.53,.69,.99),X4=MM(FM),kM=OM(X4),IM=e=>(e*=2)<1?.5*X4(e):.5*(2-Math.pow(2,-10*(e-1))),Q4=e=>1-Math.sin(Math.acos(e)),BM=MM(Q4),LM=OM(Q4),VM=e=>/^0[^.\s]+$/u.test(e);function Wee(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||VM(e):!0}const uc=e=>Math.round(e*1e5)/1e5,e3=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Hee(e){return e==null}const Gee=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,t3=(e,t)=>n=>!!(typeof n=="string"&&Gee.test(n)&&n.startsWith(e)||t&&!Hee(n)&&Object.prototype.hasOwnProperty.call(n,t)),NM=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,o,u]=r.match(e3);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:u!==void 0?parseFloat(u):1}},Yee=e=>oa(0,255,e),Xv={...Iu,transform:e=>Math.round(Yee(e))},Ro={test:t3("rgb","red"),parse:NM("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Xv.transform(e)+", "+Xv.transform(t)+", "+Xv.transform(n)+", "+uc(Tc.transform(r))+")"};function Zee(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 M0={test:t3("#"),parse:Zee,transform:Ro.transform},Us={test:t3("hsl","hue"),parse:NM("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ti.transform(uc(t))+", "+Ti.transform(uc(n))+", "+uc(Tc.transform(r))+")"},xn={test:e=>Ro.test(e)||M0.test(e)||Us.test(e),parse:e=>Ro.test(e)?Ro.parse(e):Us.test(e)?Us.parse(e):M0.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ro.transform(e):Us.transform(e)},Jee=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Xee(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(e3))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Jee))===null||n===void 0?void 0:n.length)||0)>0}const jM="number",KM="color",Qee="var",ete="var(",FS="${}",tte=/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 Ac(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const u=t.replace(tte,l=>(xn.test(l)?(r.color.push(a),i.push(KM),n.push(xn.parse(l))):l.startsWith(ete)?(r.var.push(a),i.push(Qee),n.push(l)):(r.number.push(a),i.push(jM),n.push(parseFloat(l))),++a,FS)).split(FS);return{values:n,split:u,indexes:r,types:i}}function UM(e){return Ac(e).values}function zM(e){const{split:t,types:n}=Ac(e),r=t.length;return i=>{let a="";for(let o=0;o<r;o++)if(a+=t[o],i[o]!==void 0){const u=n[o];u===jM?a+=uc(i[o]):u===KM?a+=xn.transform(i[o]):a+=i[o]}return a}}const nte=e=>typeof e=="number"?0:e;function rte(e){const t=UM(e);return zM(e)(t.map(nte))}const Wa={test:Xee,parse:UM,createTransformer:zM,getAnimatableNone:rte},ite=new Set(["brightness","contrast","saturate","opacity"]);function ate(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(e3)||[];if(!r)return e;const i=n.replace(r,"");let a=ite.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const ote=/\b([a-z-]*)\(.*?\)/gu,F0={...Wa,getAnimatableNone:e=>{const t=e.match(ote);return t?t.map(ate).join(" "):e}},ste={...V4,color:xn,backgroundColor:xn,outlineColor:xn,fill:xn,stroke:xn,borderColor:xn,borderTopColor:xn,borderRightColor:xn,borderBottomColor:xn,borderLeftColor:xn,filter:F0,WebkitFilter:F0},n3=e=>ste[e];function qM(e,t){let n=n3(e);return n!==F0&&(n=Wa),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const ute=new Set(["auto","none","0"]);function lte(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!ute.has(a)&&Ac(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=qM(n,i)}const kS=e=>e===Iu||e===qe,IS=(e,t)=>parseFloat(e.split(", ")[t]),BS=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return IS(i[1],t);{const a=r.match(/^matrix\((.+)\)$/u);return a?IS(a[1],e):0}},cte=new Set(["x","y","z"]),fte=ku.filter(e=>!cte.has(e));function dte(e){const t=[];return fte.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const vu={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:BS(4,13),y:BS(5,14)};vu.translateX=vu.x;vu.translateY=vu.y;const Bo=new Set;let k0=!1,I0=!1;function WM(){if(I0){const e=Array.from(Bo).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=dte(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(([a,o])=>{var u;(u=r.getValue(a))===null||u===void 0||u.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}I0=!1,k0=!1,Bo.forEach(e=>e.complete()),Bo.clear()}function HM(){Bo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(I0=!0)})}function hte(){HM(),WM()}let r3=class{constructor(t,n,r,i,a,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Bo.add(this),k0||(k0=!0,Tt.read(HM),Tt.resolveKeyframes(WM))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let a=0;a<t.length;a++)if(t[a]===null)if(a===0){const o=i==null?void 0:i.get(),u=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const l=r.readValue(n,u);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=u),i&&o===void 0&&i.set(t[0])}else t[a]=t[a-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Bo.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Bo.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const GM=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),pte=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function mte(e){const t=pte.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const gte=4;function YM(e,t,n=1){Pi(n<=gte,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=mte(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const o=a.trim();return GM(o)?parseFloat(o):o}return L4(i)?YM(i,t,n+1):i}const ZM=e=>t=>t.test(e),yte={test:e=>e==="auto",parse:e=>e},JM=[Iu,qe,Ti,_a,iee,ree,yte],LS=e=>JM.find(ZM(e));let XM=class extends r3{constructor(t,n,r,i,a){super(t,n,r,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let f=t[l];if(typeof f=="string"&&(f=f.trim(),L4(f))){const d=YM(f,n.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!AM.has(r)||t.length!==2)return;const[i,a]=t,o=LS(i),u=LS(a);if(o!==u)if(kS(o)&&kS(u))for(let l=0;l<t.length;l++){const f=t[l];typeof f=="string"&&(t[l]=parseFloat(f))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)Wee(t[i])&&r.push(i);r.length&<e(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=vu[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 a=n.getValue(r);a&&a.jump(this.measuredOrigin,!1);const o=i.length-1,u=i[o];i[o]=vu[r](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,f])=>{n.getValue(l).set(f)}),this.resolveNoneKeyframes()}};const VS=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Wa.test(e)||e==="0")&&!e.startsWith("url("));function vte(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 bte(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],o=VS(i,t),u=VS(a,t);return Fu(o===u,`You are trying to animate ${t} from "${i}" to "${a}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${a} via the \`style\` property.`),!o||!u?!1:vte(e)||(n==="spring"||W4(n))&&r}const $te=e=>e!==null;function Fp(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter($te),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const xte=40;let QM=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:o="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Ai.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:o,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>xte?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&hte(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Ai.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:a,delay:o,onComplete:u,onUpdate:l,isGenerator:f}=this.options;if(!f&&!bte(t,r,i,a))if(o)this.options.duration=0;else{l&&l(Fp(t,this.options,n)),u&&u(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},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 Ft=(e,t,n)=>e+(t-e)*n;function Qv(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 wte({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{const u=n<.5?n*(1+t):n+t-n*t,l=2*n-u;i=Qv(l,u,e+1/3),a=Qv(l,u,e),o=Qv(l,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Th(e,t){return n=>n>0?t:e}const eb=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Dte=[M0,Ro,Us],Cte=e=>Dte.find(t=>t.test(e));function NS(e){const t=Cte(e);if(Fu(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Us&&(n=wte(n)),n}const jS=(e,t)=>{const n=NS(e),r=NS(t);if(!n||!r)return Th(e,t);const i={...n};return a=>(i.red=eb(n.red,r.red,a),i.green=eb(n.green,r.green,a),i.blue=eb(n.blue,r.blue,a),i.alpha=Ft(n.alpha,r.alpha,a),Ro.transform(i))},Ete=(e,t)=>n=>t(e(n)),ef=(...e)=>e.reduce(Ete),B0=new Set(["none","hidden"]);function Ste(e,t){return B0.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Tte(e,t){return n=>Ft(e,t,n)}function i3(e){return typeof e=="number"?Tte:typeof e=="string"?L4(e)?Th:xn.test(e)?jS:_te:Array.isArray(e)?eF:typeof e=="object"?xn.test(e)?jS:Ate:Th}function eF(e,t){const n=[...e],r=n.length,i=e.map((a,o)=>i3(a)(a,t[o]));return a=>{for(let o=0;o<r;o++)n[o]=i[o](a);return n}}function Ate(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=i3(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function Pte(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const o=t.types[a],u=e.indexes[o][i[o]],l=(n=e.values[u])!==null&&n!==void 0?n:0;r[a]=l,i[o]++}return r}const _te=(e,t)=>{const n=Wa.createTransformer(t),r=Ac(e),i=Ac(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?B0.has(e)&&!i.values.length||B0.has(t)&&!r.values.length?Ste(e,t):ef(eF(Pte(r,i),i.values),n):(Fu(!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.`),Th(e,t))};function tF(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ft(e,t,n):i3(e)(e,t)}const Rte=5;function nF(e,t,n){const r=Math.max(t-Rte,0);return PM(n-e(r),t-r)}const It={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},KS=.001;function Ote({duration:e=It.duration,bounce:t=It.bounce,velocity:n=It.velocity,mass:r=It.mass}){let i,a;Fu(e<=Si(It.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=oa(It.minDamping,It.maxDamping,o),e=oa(It.minDuration,It.maxDuration,ta(e)),o<1?(i=f=>{const d=f*o,h=d*e,p=d-n,g=L0(f,o),y=Math.exp(-h);return KS-p/g*y},a=f=>{const h=f*o*e,p=h*n+n,g=Math.pow(o,2)*Math.pow(f,2)*e,y=Math.exp(-h),$=L0(Math.pow(f,2),o);return(-i(f)+KS>0?-1:1)*((p-g)*y)/$}):(i=f=>{const d=Math.exp(-f*e),h=(f-n)*e+1;return-.001+d*h},a=f=>{const d=Math.exp(-f*e),h=(n-f)*(e*e);return d*h});const u=5/e,l=Fte(i,a,u);if(e=Si(e),isNaN(l))return{stiffness:It.stiffness,damping:It.damping,duration:e};{const f=Math.pow(l,2)*r;return{stiffness:f,damping:o*2*Math.sqrt(r*f),duration:e}}}const Mte=12;function Fte(e,t,n){let r=n;for(let i=1;i<Mte;i++)r=r-e(r)/t(r);return r}function L0(e,t){return e*Math.sqrt(1-t*t)}const kte=["duration","bounce"],Ite=["stiffness","damping","mass"];function US(e,t){return t.some(n=>e[n]!==void 0)}function Bte(e){let t={velocity:It.velocity,stiffness:It.stiffness,damping:It.damping,mass:It.mass,isResolvedFromDuration:!1,...e};if(!US(e,Ite)&&US(e,kte))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*oa(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:It.mass,stiffness:i,damping:a}}else{const n=Ote(e);t={...t,...n,mass:It.mass},t.isResolvedFromDuration=!0}return t}function rF(e=It.visualDuration,t=It.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],u={done:!1,value:a},{stiffness:l,damping:f,mass:d,duration:h,velocity:p,isResolvedFromDuration:g}=Bte({...n,velocity:-ta(n.velocity||0)}),y=p||0,$=f/(2*Math.sqrt(l*d)),D=o-a,b=ta(Math.sqrt(l/d)),v=Math.abs(D)<5;r||(r=v?It.restSpeed.granular:It.restSpeed.default),i||(i=v?It.restDelta.granular:It.restDelta.default);let w;if($<1){const E=L0(b,$);w=A=>{const M=Math.exp(-$*b*A);return o-M*((y+$*b*D)/E*Math.sin(E*A)+D*Math.cos(E*A))}}else if($===1)w=E=>o-Math.exp(-b*E)*(D+(y+b*D)*E);else{const E=b*Math.sqrt($*$-1);w=A=>{const M=Math.exp(-$*b*A),S=Math.min(E*A,300);return o-M*((y+$*b*D)*Math.sinh(S)+E*D*Math.cosh(S))/E}}const T={calculatedDuration:g&&h||null,next:E=>{const A=w(E);if(g)u.done=E>=h;else{let M=0;$<1&&(M=E===0?Si(y):nF(w,E,A));const S=Math.abs(M)<=r,z=Math.abs(o-A)<=i;u.done=S&&z}return u.value=u.done?o:A,u},toString:()=>{const E=Math.min(xM(T),_0),A=wM(M=>T.next(E*M).value,E,30);return E+"ms "+A}};return T}function zS({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:u,max:l,restDelta:f=.5,restSpeed:d}){const h=e[0],p={done:!1,value:h},g=S=>u!==void 0&&S<u||l!==void 0&&S>l,y=S=>u===void 0?l:l===void 0||Math.abs(u-S)<Math.abs(l-S)?u:l;let $=n*t;const D=h+$,b=o===void 0?D:o(D);b!==D&&($=b-h);const v=S=>-$*Math.exp(-S/r),w=S=>b+v(S),T=S=>{const z=v(S),j=w(S);p.done=Math.abs(z)<=f,p.value=p.done?b:j};let E,A;const M=S=>{g(p.value)&&(E=S,A=rF({keyframes:[p.value,y(p.value)],velocity:nF(w,S,p.value),damping:i,stiffness:a,restDelta:f,restSpeed:d}))};return M(0),{calculatedDuration:null,next:S=>{let z=!1;return!A&&E===void 0&&(z=!0,T(S),M(S)),E!==void 0&&S>=E?A.next(S-E):(!z&&T(S),p)}}}const Lte=Qc(.42,0,1,1),Vte=Qc(0,0,.58,1),iF=Qc(.42,0,.58,1),Nte=e=>Array.isArray(e)&&typeof e[0]!="number",qS={linear:Yn,easeIn:Lte,easeInOut:iF,easeOut:Vte,circIn:Q4,circInOut:LM,circOut:BM,backIn:X4,backInOut:kM,backOut:FM,anticipate:IM},WS=e=>{if(H4(e)){Pi(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Qc(t,n,r,i)}else if(typeof e=="string")return Pi(qS[e]!==void 0,`Invalid easing type '${e}'`),qS[e];return e};function jte(e,t,n){const r=[],i=n||tF,a=e.length-1;for(let o=0;o<a;o++){let u=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Yn:t;u=ef(l,u)}r.push(u)}return r}function aF(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(Pi(a===t.length,"Both input and output ranges must be the same length"),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=jte(t,r,i),l=u.length,f=d=>{if(o&&d<e[0])return t[0];let h=0;if(l>1)for(;h<e.length-2&&!(d<e[h+1]);h++);const p=mu(e[h],e[h+1],d);return u[h](p)};return n?d=>f(oa(e[0],e[a-1],d)):f}function Kte(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=mu(0,t,r);e.push(Ft(n,1,i))}}function Ute(e){const t=[0];return Kte(t,e.length-1),t}function zte(e,t){return e.map(n=>n*t)}function qte(e,t){return e.map(()=>t||iF).splice(0,e.length-1)}function Ah({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Nte(r)?r.map(WS):WS(r),a={done:!1,value:t[0]},o=zte(n&&n.length===t.length?n:Ute(t),e),u=aF(o,t,{ease:Array.isArray(i)?i:qte(t,i)});return{calculatedDuration:e,next:l=>(a.value=u(l),a.done=l>=e,a)}}const Wte=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Tt.update(t,!0),stop:()=>aa(t),now:()=>hn.isProcessing?hn.timestamp:Ai.now()}},Hte={decay:zS,inertia:zS,tween:Ah,keyframes:Ah,spring:rF},Gte=e=>e/100;let a3=class extends QM{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:a}=this.options,o=(i==null?void 0:i.KeyframeResolver)||r3,u=(l,f)=>this.onKeyframesResolved(l,f);this.resolver=new o(a,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:a,velocity:o=0}=this.options,u=W4(n)?n:Hte[n]||Ah;let l,f;u!==Ah&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&Pi(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),l=ef(Gte,tF(t[0],t[1])),t=[0,100]);const d=u({...this.options,keyframes:t});a==="mirror"&&(f=u({...this.options,keyframes:[...t].reverse(),velocity:-o})),d.calculatedDuration===null&&(d.calculatedDuration=xM(d));const{calculatedDuration:h}=d,p=h+i,g=p*(r+1)-i;return{generator:d,mirroredGenerator:f,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:p,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:a,mirroredGenerator:o,mapPercentToKeyframes:u,keyframes:l,calculatedDuration:f,totalDuration:d,resolvedDuration:h}=r;if(this.startTime===null)return a.next(0);const{delay:p,repeat:g,repeatType:y,repeatDelay:$,onUpdate:D}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/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 b=this.currentTime-p*(this.speed>=0?1:-1),v=this.speed>=0?b<0:b>d;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let w=this.currentTime,T=a;if(g){const S=Math.min(this.currentTime,d)/h;let z=Math.floor(S),j=S%1;!j&&S>=1&&(j=1),j===1&&z--,z=Math.min(z,g+1),!!(z%2)&&(y==="reverse"?(j=1-j,$&&(j-=$/h)):y==="mirror"&&(T=o)),w=oa(0,1,j)*h}const E=v?{done:!1,value:l[0]}:T.next(w);u&&(E.value=u(E.value));let{done:A}=E;!v&&f!==null&&(A=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return M&&i!==void 0&&(E.value=Fp(l,this.options,i)),D&&D(E.value),M&&this.finish(),E}get duration(){const{resolved:t}=this;return t?ta(t.calculatedDuration):0}get time(){return ta(this.currentTime)}set time(t){t=Si(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=ta(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Wte,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),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 Yte=new Set(["opacity","clipPath","filter","transform"]);function Zte(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:u="easeInOut",times:l}={}){const f={[t]:n};l&&(f.offset=l);const d=CM(u,i);return Array.isArray(d)&&(f.easing=d),e.animate(f,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"})}const Jte=R4(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ph=10,Xte=2e4;function Qte(e){return W4(e.type)||e.type==="spring"||!DM(e.ease)}function ene(e,t){const n=new a3({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let a=0;for(;!r.done&&a<Xte;)r=n.sample(a),i.push(r.value),a+=Ph;return{times:void 0,keyframes:i,duration:a-Ph,ease:"linear"}}const oF={anticipate:IM,backInOut:kM,circInOut:LM};function tne(e){return e in oF}let HS=class extends QM{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:a}=this.options;this.resolver=new XM(a,(o,u)=>this.onKeyframesResolved(o,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:a,type:o,motionValue:u,name:l,startTime:f}=this.options;if(!u.owner||!u.owner.current)return!1;if(typeof a=="string"&&Sh()&&tne(a)&&(a=oF[a]),Qte(this.options)){const{onComplete:h,onUpdate:p,motionValue:g,element:y,...$}=this.options,D=ene(t,$);t=D.keyframes,t.length===1&&(t[1]=t[0]),r=D.duration,i=D.times,a=D.ease,o="keyframes"}const d=Zte(u.owner.current,l,t,{...this.options,duration:r,times:i,ease:a});return d.startTime=f??this.calcStartTime(),this.pendingTimeline?(PS(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:h}=this.options;u.set(Fp(t,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:i,type:o,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return ta(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return ta(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Si(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 Yn;const{animation:r}=n;PS(r,t)}return Yn}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:a,ease:o,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:f,onUpdate:d,onComplete:h,element:p,...g}=this.options,y=new a3({...g,keyframes:r,duration:i,type:a,ease:o,times:u,isGenerator:!0}),$=Si(this.time);f.setWithVelocity(y.sample($-Ph).value,y.sample($).value,Ph)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:a,damping:o,type:u}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:f}=n.owner.getProps();return Jte()&&r&&Yte.has(r)&&!l&&!f&&!i&&a!=="mirror"&&o!==0&&u!=="inertia"}};const nne={type:"spring",stiffness:500,damping:25,restSpeed:10},rne=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ine={type:"keyframes",duration:.8},ane={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},one=(e,{keyframes:t})=>t.length>2?ine:es.has(e)?e.startsWith("scale")?rne(t[1]):nne:ane;function sne({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:u,from:l,elapsed:f,...d}){return!!Object.keys(d).length}const o3=(e,t,n,r={},i,a)=>o=>{const u=q4(r,e)||{},l=u.delay||r.delay||0;let{elapsed:f=0}=r;f=f-Si(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-f,onUpdate:p=>{t.set(p),u.onUpdate&&u.onUpdate(p)},onComplete:()=>{o(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:a?void 0:i};sne(u)||(d={...d,...one(e,d)}),d.duration&&(d.duration=Si(d.duration)),d.repeatDelay&&(d.repeatDelay=Si(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let h=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(h=!0)),h&&!a&&t.get()!==void 0){const p=Fp(d.keyframes,u);if(p!==void 0)return Tt.update(()=>{d.onUpdate(p),d.onComplete()}),new See([])}return!a&&HS.supports(d)?new HS(d):new a3(d)};function une({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function sF(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var a;let{transition:o=e.getDefaultTransition(),transitionEnd:u,...l}=t;r&&(o=r);const f=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const h in l){const p=e.getValue(h,(a=e.latestValues[h])!==null&&a!==void 0?a:null),g=l[h];if(g===void 0||d&&une(d,h))continue;const y={delay:n,...q4(o||{},h)};let $=!1;if(window.MotionHandoffAnimation){const b=_M(e);if(b){const v=window.MotionHandoffAnimation(b,h,Tt);v!==null&&(y.startTime=v,$=!0)}}O0(e,h),p.start(o3(h,p,g,e.shouldReduceMotion&&AM.has(h)?{type:!1}:y,e,$));const D=p.animation;D&&f.push(D)}return u&&Promise.all(f).then(()=>{Tt.update(()=>{u&&jee(e,u)})}),f}function V0(e,t,n={}){var r;const i=Mp(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);const o=i?()=>Promise.all(sF(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:d=0,staggerChildren:h,staggerDirection:p}=a;return lne(e,t,d+f,h,p,n)}:()=>Promise.resolve(),{when:l}=a;if(l){const[f,d]=l==="beforeChildren"?[o,u]:[u,o];return f().then(()=>d())}else return Promise.all([o(),u(n.delay)])}function lne(e,t,n=0,r=0,i=1,a){const o=[],u=(e.variantChildren.size-1)*r,l=i===1?(f=0)=>f*r:(f=0)=>u-f*r;return Array.from(e.variantChildren).sort(cne).forEach((f,d)=>{f.notify("AnimationStart",t),o.push(V0(f,t,{...a,delay:n+l(d)}).then(()=>f.notify("AnimationComplete",t)))}),Promise.all(o)}function cne(e,t){return e.sortNodePosition(t)}function fne(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>V0(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=V0(e,t,n);else{const i=typeof t=="function"?Mp(e,t,n.custom):t;r=Promise.all(sF(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const dne=M4.length;function uF(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?uF(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<dne;n++){const r=M4[n],i=e.props[r];(Sc(i)||i===!1)&&(t[r]=i)}return t}const hne=[...O4].reverse(),pne=O4.length;function mne(e){return t=>Promise.all(t.map(({animation:n,options:r})=>fne(e,n,r)))}function gne(e){let t=mne(e),n=GS(),r=!0;const i=l=>(f,d)=>{var h;const p=Mp(e,d,l==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(p){const{transition:g,transitionEnd:y,...$}=p;f={...f,...$,...y}}return f};function a(l){t=l(e)}function o(l){const{props:f}=e,d=uF(e.parent)||{},h=[],p=new Set;let g={},y=1/0;for(let D=0;D<pne;D++){const b=hne[D],v=n[b],w=f[b]!==void 0?f[b]:d[b],T=Sc(w),E=b===l?v.isActive:null;E===!1&&(y=D);let A=w===d[b]&&w!==f[b]&&T;if(A&&r&&e.manuallyAnimateOnMount&&(A=!1),v.protectedKeys={...g},!v.isActive&&E===null||!w&&!v.prevProp||Rp(w)||typeof w=="boolean")continue;const M=yne(v.prevProp,w);let S=M||b===l&&v.isActive&&!A&&T||D>y&&T,z=!1;const j=Array.isArray(w)?w:[w];let O=j.reduce(i(b),{});E===!1&&(O={});const{prevResolvedValues:Z={}}=v,R={...Z,...O},V=k=>{S=!0,p.has(k)&&(z=!0,p.delete(k)),v.needsAnimating[k]=!0;const _=e.getValue(k);_&&(_.liveStyle=!1)};for(const k in R){const _=O[k],H=Z[k];if(g.hasOwnProperty(k))continue;let U=!1;P0(_)&&P0(H)?U=!$M(_,H):U=_!==H,U?_!=null?V(k):p.add(k):_!==void 0&&p.has(k)?V(k):v.protectedKeys[k]=!0}v.prevProp=w,v.prevResolvedValues=O,v.isActive&&(g={...g,...O}),r&&e.blockInitialAnimation&&(S=!1),S&&(!(A&&M)||z)&&h.push(...j.map(k=>({animation:k,options:{type:b}})))}if(p.size){const D={};p.forEach(b=>{const v=e.getBaseTarget(b),w=e.getValue(b);w&&(w.liveStyle=!0),D[b]=v??null}),h.push({animation:D})}let $=!!h.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&($=!1),r=!1,$?t(h):Promise.resolve()}function u(l,f){var d;if(n[l].isActive===f)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(p=>{var g;return(g=p.animationState)===null||g===void 0?void 0:g.setActive(l,f)}),n[l].isActive=f;const h=o(l);for(const p in n)n[p].protectedKeys={};return h}return{animateChanges:o,setActive:u,setAnimateFunction:a,getState:()=>n,reset:()=>{n=GS(),r=!0}}}function yne(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!$M(t,e):!1}function bo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function GS(){return{animate:bo(!0),whileInView:bo(),whileHover:bo(),whileTap:bo(),whileDrag:bo(),whileFocus:bo(),exit:bo()}}let Ja=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},vne=class extends Ja{constructor(t){super(t),t.animationState||(t.animationState=gne(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Rp(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)}},bne=0,$ne=class extends Ja{constructor(){super(...arguments),this.id=bne++}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 xne={animation:{Feature:vne},exit:{Feature:$ne}};function Pc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function tf(e){return{point:{x:e.pageX,y:e.pageY}}}const wne=e=>t=>G4(t)&&e(t,tf(t));function lc(e,t,n,r){return Pc(e,t,wne(n),r)}const YS=(e,t)=>Math.abs(e-t);function Dne(e,t){const n=YS(e.x,t.x),r=YS(e.y,t.y);return Math.sqrt(n**2+r**2)}class lF{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:a=!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=nb(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,g=Dne(h.offset,{x:0,y:0})>=3;if(!p&&!g)return;const{point:y}=h,{timestamp:$}=hn;this.history.push({...y,timestamp:$});const{onStart:D,onMove:b}=this.handlers;p||(D&&D(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,h)},this.handlePointerMove=(h,p)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=tb(p,this.transformPagePoint),Tt.update(this.updatePoint,!0)},this.handlePointerUp=(h,p)=>{this.end();const{onEnd:g,onSessionEnd:y,resumeAnimation:$}=this.handlers;if(this.dragSnapToOrigin&&$&&$(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const D=nb(h.type==="pointercancel"?this.lastMoveEventInfo:tb(p,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,D),y&&y(h,D)},!G4(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=tf(t),u=tb(o,this.transformPagePoint),{point:l}=u,{timestamp:f}=hn;this.history=[{...l,timestamp:f}];const{onSessionStart:d}=n;d&&d(t,nb(u,this.history)),this.removeListeners=ef(lc(this.contextWindow,"pointermove",this.handlePointerMove),lc(this.contextWindow,"pointerup",this.handlePointerUp),lc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),aa(this.updatePoint)}}function tb(e,t){return t?{point:t(e.point)}:e}function ZS(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nb({point:e},t){return{point:e,delta:ZS(e,cF(t)),offset:ZS(e,Cne(t)),velocity:Ene(t,.1)}}function Cne(e){return e[0]}function cF(e){return e[e.length-1]}function Ene(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=cF(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Si(t)));)n--;if(!r)return{x:0,y:0};const a=ta(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const fF=1e-4,Sne=1-fF,Tne=1+fF,dF=.01,Ane=0-dF,Pne=0+dF;function ir(e){return e.max-e.min}function _ne(e,t,n){return Math.abs(e-t)<=n}function JS(e,t,n,r=.5){e.origin=r,e.originPoint=Ft(t.min,t.max,e.origin),e.scale=ir(n)/ir(t),e.translate=Ft(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Sne&&e.scale<=Tne||isNaN(e.scale))&&(e.scale=1),(e.translate>=Ane&&e.translate<=Pne||isNaN(e.translate))&&(e.translate=0)}function cc(e,t,n,r){JS(e.x,t.x,n.x,r?r.originX:void 0),JS(e.y,t.y,n.y,r?r.originY:void 0)}function XS(e,t,n){e.min=n.min+t.min,e.max=e.min+ir(t)}function Rne(e,t,n){XS(e.x,t.x,n.x),XS(e.y,t.y,n.y)}function QS(e,t,n){e.min=t.min-n.min,e.max=e.min+ir(t)}function fc(e,t,n){QS(e.x,t.x,n.x),QS(e.y,t.y,n.y)}function One(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Ft(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Ft(n,e,r.max):Math.min(e,n)),e}function e5(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 Mne(e,{top:t,left:n,bottom:r,right:i}){return{x:e5(e.x,n,i),y:e5(e.y,t,r)}}function t5(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 Fne(e,t){return{x:t5(e.x,t.x),y:t5(e.y,t.y)}}function kne(e,t){let n=.5;const r=ir(e),i=ir(t);return i>r?n=mu(t.min,t.max-r,e.min):r>i&&(n=mu(e.min,e.max-i,t.min)),oa(0,1,n)}function Ine(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 N0=.35;function Bne(e=N0){return e===!1?e=0:e===!0&&(e=N0),{x:n5(e,"left","right"),y:n5(e,"top","bottom")}}function n5(e,t,n){return{min:r5(e,t),max:r5(e,n)}}function r5(e,t){return typeof e=="number"?e:e[t]||0}const i5=()=>({translate:0,scale:1,origin:0,originPoint:0}),zs=()=>({x:i5(),y:i5()}),a5=()=>({min:0,max:0}),qt=()=>({x:a5(),y:a5()});function $r(e){return[e("x"),e("y")]}function hF({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Lne({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Vne(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 rb(e){return e===void 0||e===1}function j0({scale:e,scaleX:t,scaleY:n}){return!rb(e)||!rb(t)||!rb(n)}function xo(e){return j0(e)||pF(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function pF(e){return o5(e.x)||o5(e.y)}function o5(e){return e&&e!=="0%"}function _h(e,t,n){const r=e-n,i=t*r;return n+i}function s5(e,t,n,r,i){return i!==void 0&&(e=_h(e,i,r)),_h(e,n,r)+t}function K0(e,t=0,n=1,r,i){e.min=s5(e.min,t,n,r,i),e.max=s5(e.max,t,n,r,i)}function mF(e,{x:t,y:n}){K0(e.x,t.translate,t.scale,t.originPoint),K0(e.y,n.translate,n.scale,n.originPoint)}const u5=.999999999999,l5=1.0000000000001;function Nne(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let u=0;u<i;u++){a=n[u],o=a.projectionDelta;const{visualElement:l}=a.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Ws(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,mF(e,o)),r&&xo(a.latestValues)&&Ws(e,a.latestValues))}t.x<l5&&t.x>u5&&(t.x=1),t.y<l5&&t.y>u5&&(t.y=1)}function qs(e,t){e.min=e.min+t,e.max=e.max+t}function c5(e,t,n,r,i=.5){const a=Ft(e.min,e.max,i);K0(e,t,n,a,r)}function Ws(e,t){c5(e.x,t.x,t.scaleX,t.scale,t.originX),c5(e.y,t.y,t.scaleY,t.scale,t.originY)}function gF(e,t){return hF(Vne(e.getBoundingClientRect(),t))}function jne(e,t,n){const r=gF(e,n),{scroll:i}=t;return i&&(qs(r.x,i.offset.x),qs(r.y,i.offset.y)),r}const yF=({current:e})=>e?e.ownerDocument.defaultView:null,Kne=new WeakMap;class Une{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=qt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(tf(d).point)},a=(d,h)=>{const{drag:p,dragPropagation:g,onDragStart:y}=this.getProps();if(p&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=kee(p),!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),$r(D=>{let b=this.getAxisMotionValue(D).get()||0;if(Ti.test(b)){const{projection:v}=this.visualElement;if(v&&v.layout){const w=v.layout.layoutBox[D];w&&(b=ir(w)*(parseFloat(b)/100))}}this.originPoint[D]=b}),y&&Tt.postRender(()=>y(d,h)),O0(this.visualElement,"transform");const{animationState:$}=this.visualElement;$&&$.setActive("whileDrag",!0)},o=(d,h)=>{const{dragPropagation:p,dragDirectionLock:g,onDirectionLock:y,onDrag:$}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:D}=h;if(g&&this.currentDirection===null){this.currentDirection=zne(D),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",h.point,D),this.updateAxis("y",h.point,D),this.visualElement.render(),$&&$(d,h)},u=(d,h)=>this.stop(d,h),l=()=>$r(d=>{var h;return this.getAnimationState(d)==="paused"&&((h=this.getAxisMotionValue(d).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:f}=this.getProps();this.panSession=new lF(t,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:u,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:f,contextWindow:yF(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&Tt.postRender(()=>a(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||!$d(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=One(o,this.constraints[t],this.elastic[t])),a.set(o)}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,a=this.constraints;n&&Ks(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Mne(i.layoutBox,n):this.constraints=!1,this.elastic=Bne(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&$r(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Ine(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ks(t))return!1;const r=t.current;Pi(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 a=jne(r,i.root,this.visualElement.getTransformPagePoint());let o=Fne(i.layout.layoutBox,a);if(n){const u=n(Lne(o));this.hasMutatedConstraints=!!u,u&&(o=hF(u))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:u}=this.getProps(),l=this.constraints||{},f=$r(d=>{if(!$d(d,n,this.currentDirection))return;let h=l&&l[d]||{};o&&(h={min:0,max:0});const p=i?200:1e6,g=i?40:1e7,y={type:"inertia",velocity:r?t[d]:0,bounceStiffness:p,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...a,...h};return this.startAxisValueAnimation(d,y)});return Promise.all(f).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return O0(this.visualElement,t),r.start(o3(t,r,0,n,this.visualElement,!1))}stopAnimation(){$r(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){$r(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){$r(n=>{const{drag:r}=this.getProps();if(!$d(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:u}=i.layout.layoutBox[n];a.set(t[n]-Ft(o,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ks(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};$r(o=>{const u=this.getAxisMotionValue(o);if(u&&this.constraints!==!1){const l=u.get();i[o]=kne({min:l,max:l},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),$r(o=>{if(!$d(o,t,null))return;const u=this.getAxisMotionValue(o),{min:l,max:f}=this.constraints[o];u.set(Ft(l,f,i[o]))})}addListeners(){if(!this.visualElement.current)return;Kne.set(this.visualElement,this);const t=this.visualElement.current,n=lc(t,"pointerdown",l=>{const{drag:f,dragListener:d=!0}=this.getProps();f&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Ks(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Tt.read(r);const o=Pc(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:f})=>{this.isDragging&&f&&($r(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=l[d].translate,h.set(h.get()+l[d].translate))}),this.visualElement.render())});return()=>{o(),n(),a(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:o=N0,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:o,dragMomentum:u}}}function $d(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function zne(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class qne extends Ja{constructor(t){super(t),this.removeGroupControls=Yn,this.removeListeners=Yn,this.controls=new Une(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Yn}unmount(){this.removeGroupControls(),this.removeListeners()}}const f5=e=>(t,n)=>{e&&Tt.postRender(()=>e(t,n))};class Wne extends Ja{constructor(){super(...arguments),this.removePointerDownListener=Yn}onPointerDown(t){this.session=new lF(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:yF(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:f5(t),onStart:f5(n),onMove:r,onEnd:(a,o)=>{delete this.session,i&&Tt.postRender(()=>i(a,o))}}}mount(){this.removePointerDownListener=lc(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 zd={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function d5(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const kl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(qe.test(e))e=parseFloat(e);else return e;const n=d5(e,t.target.x),r=d5(e,t.target.y);return`${n}% ${r}%`}},Hne={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Wa.parse(e);if(i.length>5)return r;const a=Wa.createTransformer(e),o=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=u,i[1+o]/=l;const f=Ft(u,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=f),typeof i[3+o]=="number"&&(i[3+o]/=f),a(i)}};class Gne extends C.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;pee(Yne),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),zd.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,o=r.projection;return o&&(o.isPresent=a,i||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?o.promote():o.relegate()||Tt.postRender(()=>{const u=o.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),k4.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 vF(e){const[t,n]=_Q(),r=C.useContext(eM);return ra.jsx(Gne,{...e,layoutGroup:r,switchLayoutGroup:C.useContext(sM),isPresent:t,safeToRemove:n})}const Yne={borderRadius:{...kl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:kl,borderTopRightRadius:kl,borderBottomLeftRadius:kl,borderBottomRightRadius:kl,boxShadow:Hne};function Zne(e,t,n){const r=pn(e)?e:yu(e);return r.start(o3("",r,t,n)),r.animation}function Jne(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Xne=(e,t)=>e.depth-t.depth;class Qne{constructor(){this.children=[],this.isDirty=!1}add(t){Y4(this.children,t),this.isDirty=!0}remove(t){Z4(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Xne),this.isDirty=!1,this.children.forEach(t)}}function ere(e,t){const n=Ai.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(aa(r),e(a-t))};return Tt.read(r,!0),()=>aa(r)}const bF=["TopLeft","TopRight","BottomLeft","BottomRight"],tre=bF.length,h5=e=>typeof e=="string"?parseFloat(e):e,p5=e=>typeof e=="number"||qe.test(e);function nre(e,t,n,r,i,a){i?(e.opacity=Ft(0,n.opacity!==void 0?n.opacity:1,rre(r)),e.opacityExit=Ft(t.opacity!==void 0?t.opacity:1,0,ire(r))):a&&(e.opacity=Ft(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<tre;o++){const u=`border${bF[o]}Radius`;let l=m5(t,u),f=m5(n,u);if(l===void 0&&f===void 0)continue;l||(l=0),f||(f=0),l===0||f===0||p5(l)===p5(f)?(e[u]=Math.max(Ft(h5(l),h5(f),r),0),(Ti.test(f)||Ti.test(l))&&(e[u]+="%")):e[u]=f}(t.rotate||n.rotate)&&(e.rotate=Ft(t.rotate||0,n.rotate||0,r))}function m5(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const rre=$F(0,.5,BM),ire=$F(.5,.95,Yn);function $F(e,t,n){return r=>r<e?0:r>t?1:n(mu(e,t,r))}function g5(e,t){e.min=t.min,e.max=t.max}function vr(e,t){g5(e.x,t.x),g5(e.y,t.y)}function y5(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function v5(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 are(e,t=0,n=1,r=.5,i,a=e,o=e){if(Ti.test(t)&&(t=parseFloat(t),t=Ft(o.min,o.max,t/100)-o.min),typeof t!="number")return;let u=Ft(a.min,a.max,r);e===a&&(u-=t),e.min=v5(e.min,t,n,u,i),e.max=v5(e.max,t,n,u,i)}function b5(e,t,[n,r,i],a,o){are(e,t[n],t[r],t[i],t.scale,a,o)}const ore=["x","scaleX","originX"],sre=["y","scaleY","originY"];function $5(e,t,n,r){b5(e.x,t,ore,n?n.x:void 0,r?r.x:void 0),b5(e.y,t,sre,n?n.y:void 0,r?r.y:void 0)}function x5(e){return e.translate===0&&e.scale===1}function xF(e){return x5(e.x)&&x5(e.y)}function w5(e,t){return e.min===t.min&&e.max===t.max}function ure(e,t){return w5(e.x,t.x)&&w5(e.y,t.y)}function D5(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function wF(e,t){return D5(e.x,t.x)&&D5(e.y,t.y)}function C5(e){return ir(e.x)/ir(e.y)}function E5(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class lre{constructor(){this.members=[]}add(t){Y4(this.members,t),t.scheduleRender()}remove(t){if(Z4(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 a=this.members[i];if(a.isPresent!==!1){r=a;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 cre(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:f,rotate:d,rotateX:h,rotateY:p,skewX:g,skewY:y}=n;f&&(r=`perspective(${f}px) ${r}`),d&&(r+=`rotate(${d}deg) `),h&&(r+=`rotateX(${h}deg) `),p&&(r+=`rotateY(${p}deg) `),g&&(r+=`skewX(${g}deg) `),y&&(r+=`skewY(${y}deg) `)}const u=e.x.scale*t.x,l=e.y.scale*t.y;return(u!==1||l!==1)&&(r+=`scale(${u}, ${l})`),r||"none"}const wo={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Xl=typeof window<"u"&&window.MotionDebug!==void 0,ib=["","X","Y","Z"],fre={visibility:"hidden"},S5=1e3;let dre=0;function ab(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function DF(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=_M(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Tt,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&DF(r)}function CF({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},u=t==null?void 0:t()){this.id=dre++,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,Xl&&(wo.totalNodes=wo.resolvedTargetDeltas=wo.recalculatedProjection=0),this.nodes.forEach(mre),this.nodes.forEach($re),this.nodes.forEach(xre),this.nodes.forEach(gre),Xl&&window.MotionDebug.record(wo)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Qne)}addEventListener(o,u){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new J4),this.eventHandlers.get(o).add(u)}notifyListeners(o,...u){const l=this.eventHandlers.get(o);l&&l.notify(...u)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,u=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Jne(o),this.instance=o;const{layoutId:l,layout:f,visualElement:d}=this.options;if(d&&!d.current&&d.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),u&&(f||l)&&(this.isLayoutDirty=!0),e){let h;const p=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=ere(p,250),zd.hasAnimatedSinceResize&&(zd.hasAnimatedSinceResize=!1,this.nodes.forEach(A5))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||f)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:p,hasRelativeTargetChanged:g,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const $=this.options.transition||d.getDefaultTransition()||Sre,{onLayoutAnimationStart:D,onLayoutAnimationComplete:b}=d.getProps(),v=!this.targetLayout||!wF(this.targetLayout,y)||g,w=!p&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||w||p&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,w);const T={...q4($,"layout"),onPlay:D,onComplete:b};(d.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else p||A5(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,aa(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(wre),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&DF(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const h=this.path[d];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:u,layout:l}=this.options;if(u===void 0&&!l)return;const f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(T5);return}this.isUpdating||this.nodes.forEach(vre),this.isUpdating=!1,this.nodes.forEach(bre),this.nodes.forEach(hre),this.nodes.forEach(pre),this.clearAllSnapshots();const u=Ai.now();hn.delta=oa(0,1e3/60,u-hn.timestamp),hn.timestamp=u,hn.isProcessing=!0,Zv.update.process(hn),Zv.preRender.process(hn),Zv.render.process(hn),hn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,k4.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(yre),this.sharedNodes.forEach(Dre)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Tt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Tt.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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=qt(),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,o?o.layoutBox:void 0)}updateScroll(o="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(u=!1),u){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!xF(this.projectionDelta),l=this.getTransformTemplate(),f=l?l(this.latestValues,""):void 0,d=f!==this.prevTransformTemplateValue;o&&(u||xo(this.latestValues)||d)&&(i(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const u=this.measurePageBox();let l=this.removeElementScroll(u);return o&&(l=this.removeTransform(l)),Tre(l),{animationId:this.root.animationId,measuredBox:u,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:u}=this.options;if(!u)return qt();const l=u.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(Are))){const{scroll:d}=this.root;d&&(qs(l.x,d.offset.x),qs(l.y,d.offset.y))}return l}removeElementScroll(o){var u;const l=qt();if(vr(l,o),!((u=this.scroll)===null||u===void 0)&&u.wasRoot)return l;for(let f=0;f<this.path.length;f++){const d=this.path[f],{scroll:h,options:p}=d;d!==this.root&&h&&p.layoutScroll&&(h.wasRoot&&vr(l,o),qs(l.x,h.offset.x),qs(l.y,h.offset.y))}return l}applyTransform(o,u=!1){const l=qt();vr(l,o);for(let f=0;f<this.path.length;f++){const d=this.path[f];!u&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Ws(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),xo(d.latestValues)&&Ws(l,d.latestValues)}return xo(this.latestValues)&&Ws(l,this.latestValues),l}removeTransform(o){const u=qt();vr(u,o);for(let l=0;l<this.path.length;l++){const f=this.path[l];if(!f.instance||!xo(f.latestValues))continue;j0(f.latestValues)&&f.updateSnapshot();const d=qt(),h=f.measurePageBox();vr(d,h),$5(u,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,d)}return xo(this.latestValues)&&$5(u,this.latestValues),u}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==hn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var u;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==l;if(!(o||f&&this.isSharedProjectionDirty||this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:p}=this.options;if(!(!this.layout||!(h||p))){if(this.resolvedRelativeTargetAt=hn.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=qt(),this.relativeTargetOrigin=qt(),fc(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),vr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=qt(),this.targetWithTransforms=qt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Rne(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):vr(this.target,this.layout.layoutBox),mF(this.target,this.targetDelta)):vr(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=qt(),this.relativeTargetOrigin=qt(),fc(this.relativeTargetOrigin,this.target,g.target),vr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Xl&&wo.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||j0(this.parent.latestValues)||pF(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 o;const u=this.getLead(),l=!!this.resumingFrom||this!==u;let f=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(f=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===hn.timestamp&&(f=!1),f)return;const{layout:d,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||h))return;vr(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,g=this.treeScale.y;Nne(this.layoutCorrected,this.treeScale,this.path,l),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=qt());const{target:y}=u;if(!y){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(y5(this.prevProjectionDelta.x,this.projectionDelta.x),y5(this.prevProjectionDelta.y,this.projectionDelta.y)),cc(this.projectionDelta,this.layoutCorrected,y,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==g||!E5(this.projectionDelta.x,this.prevProjectionDelta.x)||!E5(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y)),Xl&&wo.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var u;if((u=this.options.visualElement)===null||u===void 0||u.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=zs(),this.projectionDelta=zs(),this.projectionDeltaWithTransform=zs()}setAnimationOrigin(o,u=!1){const l=this.snapshot,f=l?l.latestValues:{},d={...this.latestValues},h=zs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const p=qt(),g=l?l.source:void 0,y=this.layout?this.layout.source:void 0,$=g!==y,D=this.getStack(),b=!D||D.members.length<=1,v=!!($&&!b&&this.options.crossfade===!0&&!this.path.some(Ere));this.animationProgress=0;let w;this.mixTargetDelta=T=>{const E=T/1e3;P5(h.x,o.x,E),P5(h.y,o.y,E),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(fc(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Cre(this.relativeTarget,this.relativeTargetOrigin,p,E),w&&ure(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=qt()),vr(w,this.relativeTarget)),$&&(this.animationValues=d,nre(d,f,this.latestValues,E,v,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(aa(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Tt.update(()=>{zd.hasAnimatedSinceResize=!0,this.currentAnimation=Zne(0,S5,{...o,onUpdate:u=>{this.mixTargetDelta(u),o.onUpdate&&o.onUpdate(u)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(S5),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:u,target:l,layout:f,latestValues:d}=o;if(!(!u||!l||!f)){if(this!==o&&this.layout&&f&&EF(this.options.animationType,this.layout.layoutBox,f.layoutBox)){l=this.target||qt();const h=ir(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+h;const p=ir(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+p}vr(u,l),Ws(u,d),cc(this.projectionDeltaWithTransform,this.layoutCorrected,u,d)}}registerSharedNode(o,u){this.sharedNodes.has(o)||this.sharedNodes.set(o,new lre),this.sharedNodes.get(o).add(u);const f=u.options.initialPromotionConfig;u.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(u):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:u}=this.options;return u?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:u}=this.options;return u?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:u,preserveFollowOpacity:l}={}){const f=this.getStack();f&&f.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let u=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(u=!0),!u)return;const f={};l.z&&ab("z",o,f,this.animationValues);for(let d=0;d<ib.length;d++)ab(`rotate${ib[d]}`,o,f,this.animationValues),ab(`skew${ib[d]}`,o,f,this.animationValues);o.render();for(const d in f)o.setStaticValue(d,f[d]),this.animationValues&&(this.animationValues[d]=f[d]);o.scheduleRender()}getProjectionStyles(o){var u,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return fre;const f={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,f.opacity="",f.pointerEvents=Kd(o==null?void 0:o.pointerEvents)||"",f.transform=d?d(this.latestValues,""):"none",f;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=Kd(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!xo(this.latestValues)&&($.transform=d?d({},""):"none",this.hasProjected=!1),$}const p=h.animationValues||h.latestValues;this.applyTransformsToTarget(),f.transform=cre(this.projectionDeltaWithTransform,this.treeScale,p),d&&(f.transform=d(p,f.transform));const{x:g,y}=this.projectionDelta;f.transformOrigin=`${g.origin*100}% ${y.origin*100}% 0`,h.animationValues?f.opacity=h===this?(l=(u=p.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:f.opacity=h===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const $ in Eh){if(p[$]===void 0)continue;const{correct:D,applyTo:b}=Eh[$],v=f.transform==="none"?p[$]:D(p[$],h);if(b){const w=b.length;for(let T=0;T<w;T++)f[b[T]]=v}else f[$]=v}return this.options.layoutId&&(f.pointerEvents=h===this?Kd(o==null?void 0:o.pointerEvents)||"":"none"),f}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var u;return(u=o.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(T5),this.root.sharedNodes.clear()}}}function hre(e){e.updateLayout()}function pre(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:a}=e.options,o=n.source!==e.layout.source;a==="size"?$r(h=>{const p=o?n.measuredBox[h]:n.layoutBox[h],g=ir(p);p.min=r[h].min,p.max=p.min+g}):EF(a,n.layoutBox,r)&&$r(h=>{const p=o?n.measuredBox[h]:n.layoutBox[h],g=ir(r[h]);p.max=p.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+g)});const u=zs();cc(u,r,n.layoutBox);const l=zs();o?cc(l,e.applyTransform(i,!0),n.measuredBox):cc(l,r,n.layoutBox);const f=!xF(u);let d=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:p,layout:g}=h;if(p&&g){const y=qt();fc(y,n.layoutBox,p.layoutBox);const $=qt();fc($,r,g.layoutBox),wF(y,$)||(d=!0),h.options.layoutRoot&&(e.relativeTarget=$,e.relativeTargetOrigin=y,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:u,hasLayoutChanged:f,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function mre(e){Xl&&wo.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 gre(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function yre(e){e.clearSnapshot()}function T5(e){e.clearMeasurements()}function vre(e){e.isLayoutDirty=!1}function bre(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function A5(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function $re(e){e.resolveTargetDelta()}function xre(e){e.calcProjection()}function wre(e){e.resetSkewAndRotation()}function Dre(e){e.removeLeadSnapshot()}function P5(e,t,n){e.translate=Ft(t.translate,0,n),e.scale=Ft(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function _5(e,t,n,r){e.min=Ft(t.min,n.min,r),e.max=Ft(t.max,n.max,r)}function Cre(e,t,n,r){_5(e.x,t.x,n.x,r),_5(e.y,t.y,n.y,r)}function Ere(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Sre={duration:.45,ease:[.4,0,.1,1]},R5=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),O5=R5("applewebkit/")&&!R5("chrome/")?Math.round:Yn;function M5(e){e.min=O5(e.min),e.max=O5(e.max)}function Tre(e){M5(e.x),M5(e.y)}function EF(e,t,n){return e==="position"||e==="preserve-aspect"&&!_ne(C5(t),C5(n),.2)}function Are(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const Pre=CF({attachResizeListener:(e,t)=>Pc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ob={current:void 0},SF=CF({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ob.current){const e=new Pre({});e.mount(window),e.setOptions({layoutScroll:!0}),ob.current=e}return ob.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),_re={pan:{Feature:Wne},drag:{Feature:qne,ProjectionNode:SF,MeasureLayout:vF}};function F5(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&&Tt.postRender(()=>a(t,tf(t)))}let Rre=class extends Ja{mount(){const{current:t}=this.node;t&&(this.unmount=_ee(t,n=>(F5(this.node,n,"Start"),r=>F5(this.node,r,"End"))))}unmount(){}},Ore=class extends Ja{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=ef(Pc(this.node.current,"focus",()=>this.onFocus()),Pc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function k5(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&&Tt.postRender(()=>a(t,tf(t)))}let Mre=class extends Ja{mount(){const{current:t}=this.node;t&&(this.unmount=Fee(t,n=>(k5(this.node,n,"Start"),(r,{success:i})=>k5(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const U0=new WeakMap,sb=new WeakMap,Fre=e=>{const t=U0.get(e.target);t&&t(e)},kre=e=>{e.forEach(Fre)};function Ire({root:e,...t}){const n=e||document;sb.has(n)||sb.set(n,{});const r=sb.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(kre,{root:e,...t})),r[i]}function Bre(e,t,n){const r=Ire(t);return U0.set(e,n),r.observe(e),()=>{U0.delete(e),r.unobserve(e)}}const Lre={some:0,all:1};let Vre=class extends Ja{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:a}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Lre[i]},u=l=>{const{isIntersecting:f}=l;if(this.isInView===f||(this.isInView=f,a&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:d,onViewportLeave:h}=this.node.getProps(),p=f?d:h;p&&p(l)};return Bre(this.node.current,o,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Nre(t,n))&&this.startObserver()}unmount(){}};function Nre({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const jre={inView:{Feature:Vre},tap:{Feature:Mre},focus:{Feature:Ore},hover:{Feature:Rre}},Kre={layout:{ProjectionNode:SF,MeasureLayout:vF}},z0={current:null},TF={current:!1};function Ure(){if(TF.current=!0,!!_4)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>z0.current=e.matches;e.addListener(t),t()}else z0.current=!1}const zre=[...JM,xn,Wa],qre=e=>zre.find(ZM(e)),I5=new WeakMap;function Wre(e,t,n){for(const r in t){const i=t[r],a=n[r];if(pn(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&Pp(i.version==="11.18.2",`Attempting to mix Motion versions ${i.version} with 11.18.2 may not work as expected.`);else if(pn(a))e.addValue(r,yu(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,yu(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const B5=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Hre=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:o},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=r3,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=Ai.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Tt.render(this.render,!1,!0))};const{latestValues:l,renderState:f,onUpdate:d}=o;this.onUpdate=d,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=f,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!a,this.isControllingVariants=Op(n),this.isVariantNode=aM(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in p){const y=p[g];l[g]!==void 0&&pn(y)&&y.set(l[g],!1)}}mount(t){this.current=t,I5.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)),TF.current||Ure(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:z0.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(){I5.delete(this.current),this.projection&&this.projection.unmount(),aa(this.notifyUpdate),aa(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=es.has(t),i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&Tt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in gu){const n=gu[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 a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):qt()}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<B5.length;r++){const i=B5[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,o=t[a];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Wre(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=yu(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"&&(GM(i)||VM(i))?i=parseFloat(i):!qre(i)&&Wa.test(n)&&(i=qM(t,n)),this.setBaseTarget(t,pn(i)?i.get():i)),pn(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 o=B4(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!pn(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new J4),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},AF=class extends Hre{constructor(){super(...arguments),this.KeyframeResolver=XM}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;pn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function Gre(e){return window.getComputedStyle(e)}let Yre=class extends AF{constructor(){super(...arguments),this.type="html",this.renderInstance=pM}readValueFromInstance(t,n){if(es.has(n)){const r=n3(n);return r&&r.default||0}else{const r=Gre(t),i=(fM(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return gF(t,n)}build(t,n,r){N4(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return z4(t,n,r)}},Zre=class extends AF{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=qt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(es.has(n)){const r=n3(n);return r&&r.default||0}return n=mM.has(n)?n:F4(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return vM(t,n,r)}build(t,n,r){j4(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){gM(t,n,r,i)}mount(t){this.isSVGTag=U4(t.tagName),super.mount(t)}};const Jre=(e,t)=>I4(e)?new Zre(t):new Yre(t,{allowProjection:e!==C.Fragment}),Xre=Dee({...xne,...jre,..._re,...Kre},Jre),PF=LQ(Xre);function _F(e){const t=Jc(()=>yu(e)),{isStatic:n}=C.useContext(P4);if(n){const[,r]=C.useState(e);C.useEffect(()=>t.on("change",r),[])}return t}function RF(e,t){const n=_F(t()),r=()=>n.set(t());return r(),tM(()=>{const i=()=>Tt.preRender(r,!1,!0),a=e.map(o=>o.on("change",i));return()=>{a.forEach(o=>o()),aa(r)}}),n}const Qre=e=>e&&typeof e=="object"&&e.mix,eie=e=>Qre(e)?e.mix:void 0;function tie(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],u=aF(i,a,{mixer:eie(a[0]),...o});return t?u(r):u}function nie(e){sc.current=[],e();const t=RF(sc.current,e);return sc.current=void 0,t}function rie(e,t,n,r){if(typeof e=="function")return nie(e);const i=typeof t=="function"?t:tie(t,n,r);return Array.isArray(e)?L5(e,i):L5([e],([a])=>i(a))}function L5(e,t){const n=Jc(()=>[]);return RF(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}const OF=C.createContext(null);function iie(e,t,n,r){if(!r)return e;const i=e.findIndex(d=>d.value===t);if(i===-1)return e;const a=r>0?1:-1,o=e[i+a];if(!o)return e;const u=e[i],l=o.layout,f=Ft(l.min,l.max,.5);return a===1&&u.layout.max+n>f||a===-1&&u.layout.min+n<f?Bee(e,i,i+a):e}function aie({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...a},o){const u=Jc(()=>PF[t]),l=[],f=C.useRef(!1);Pi(!!i,"Reorder.Group must be provided a values prop");const d={axis:n,registerItem:(h,p)=>{const g=l.findIndex(y=>h===y.value);g!==-1?l[g].layout=p[n]:l.push({value:h,layout:p[n]}),l.sort(uie)},updateOrder:(h,p,g)=>{if(f.current)return;const y=iie(l,h,p,g);l!==y&&(f.current=!0,r(y.map(sie).filter($=>i.indexOf($)!==-1)))}};return C.useEffect(()=>{f.current=!1}),ra.jsx(u,{...a,ref:o,ignoreStrict:!0,children:ra.jsx(OF.Provider,{value:d,children:e})})}const oie=C.forwardRef(aie);function sie(e){return e.value}function uie(e,t){return e.layout.min-t.layout.min}function V5(e,t=0){return pn(e)?e:_F(t)}function lie({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:a=!0,...o},u){const l=Jc(()=>PF[r]),f=C.useContext(OF),d={x:V5(t.x),y:V5(t.y)},h=rie([d.x,d.y],([$,D])=>$||D?1:"unset");Pi(!!f,"Reorder.Item must be a child of Reorder.Group");const{axis:p,registerItem:g,updateOrder:y}=f;return ra.jsx(l,{drag:p,...o,dragSnapToOrigin:!0,style:{...t,x:d.x,y:d.y,zIndex:h},layout:a,onDrag:($,D)=>{const{velocity:b}=D;b[p]&&y(n,d[p].get(),b[p]),i&&i($,D)},onLayoutMeasure:$=>g(n,$),ref:u,ignoreStrict:!0,children:e})}const cie=C.forwardRef(lie),N5=(e,t,n)=>{if(e&&"reportValidity"in e){const r=Ae(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},MF=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?N5(r.ref,n,e):r.refs&&r.refs.forEach(i=>N5(i,n,e))}},fie=(e,t)=>{t.shouldUseNativeValidation&&MF(e,t);const n={};for(const r in e){const i=Ae(t.fields,r),a=Object.assign(e[r]||{},{ref:i&&i.ref});if(die(t.names||Object.keys(e),r)){const o=Object.assign({},Ae(n,r));gt(o,"root",a),gt(n,r,o)}else gt(n,r,a)}return n},die=(e,t)=>e.some(n=>n.startsWith(t+"."));function hie(e,t,n){return t===void 0&&(t={}),n===void 0&&(n={}),function(r,i,a){try{return Promise.resolve(function(o,u){try{var l=(t.context&&process.env.NODE_ENV==="development"&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(e[n.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then(function(f){return a.shouldUseNativeValidation&&MF({},a),{values:n.raw?r:f,errors:{}}}))}catch(f){return u(f)}return l&&l.then?l.then(void 0,u):l}(0,function(o){if(!o.inner)throw o;return{values:{},errors:fie((u=o,l=!a.shouldUseNativeValidation&&a.criteriaMode==="all",(u.inner||[]).reduce(function(f,d){if(f[d.path]||(f[d.path]={message:d.message,type:d.type}),l){var h=f[d.path].types,p=h&&h[d.type];f[d.path]=hA(d.path,l,f,d.type,p?[].concat(p,d.message):d.message)}return f},{})),a)};var u,l}))}catch(o){return Promise.reject(o)}}}var ub,j5;function pie(){if(j5)return ub;j5=1;var e=Ru(),t=Mu(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return ub=r,ub}var mie=pie();const gie=sa(mie),K5=new Set;function kp(e,t,n){e||K5.has(t)||(console.warn(t),K5.add(t))}function yie(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&kp(!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 Ip(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const q0=e=>Array.isArray(e);function FF(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 _c(e){return typeof e=="string"||Array.isArray(e)}function U5(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function s3(e,t,n,r){if(typeof t=="function"){const[i,a]=U5(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=U5(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function Bp(e,t,n){const r=e.getProps();return s3(r,t,n!==void 0?n:r.custom,e)}const u3=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],l3=["initial",...u3],nf=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ts=new Set(nf),na=e=>e*1e3,Ka=e=>e/1e3,vie={type:"spring",stiffness:500,damping:25,restSpeed:10},bie=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),$ie={type:"keyframes",duration:.8},xie={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},wie=(e,{keyframes:t})=>t.length>2?$ie:ts.has(e)?e.startsWith("scale")?bie(t[1]):vie:xie;function kF(e,t){return e?e[t]||e.default||e:void 0}const Die={useManualTiming:!1},Cie=e=>e!==null;function Lp(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Cie),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const Ha=e=>e;let rf=Ha,bu=Ha;process.env.NODE_ENV!=="production"&&(rf=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},bu=(e,t)=>{if(!e)throw new Error(t)});function Eie(e){let t=new Set,n=new Set,r=!1,i=!1;const a=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function u(f){a.has(f)&&(l.schedule(f),e()),f(o)}const l={schedule:(f,d=!1,h=!1)=>{const g=h&&r?t:n;return d&&a.add(f),g.has(f)||g.add(f),f},cancel:f=>{n.delete(f),a.delete(f)},process:f=>{if(o=f,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(u),t.clear(),r=!1,i&&(i=!1,l.process(f))}};return l}const xd=["read","resolveKeyframes","update","preRender","render","postRender"],Sie=40;function IF(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=xd.reduce((b,v)=>(b[v]=Eie(a),b),{}),{read:u,resolveKeyframes:l,update:f,preRender:d,render:h,postRender:p}=o,g=()=>{const b=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(b-i.timestamp,Sie),1),i.timestamp=b,i.isProcessing=!0,u.process(i),l.process(i),f.process(i),d.process(i),h.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},y=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:xd.reduce((b,v)=>{const w=o[v];return b[v]=(T,E=!1,A=!1)=>(n||y(),w.schedule(T,E,A)),b},{}),cancel:b=>{for(let v=0;v<xd.length;v++)o[xd[v]].cancel(b)},state:i,steps:o}}const{schedule:ar,cancel:W0,state:Rh}=IF(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ha,!0),BF=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Tie=1e-7,Aie=12;function Pie(e,t,n,r,i){let a,o,u=0;do o=t+(n-t)/2,a=BF(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Tie&&++u<Aie);return o}function af(e,t,n,r){if(e===t&&n===r)return Ha;const i=a=>Pie(a,0,1,e,n);return a=>a===0||a===1?a:BF(i(a),t,r)}const LF=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,VF=e=>t=>1-e(1-t),NF=af(.33,1.53,.69,.99),c3=VF(NF),jF=LF(c3),KF=e=>(e*=2)<1?.5*c3(e):.5*(2-Math.pow(2,-10*(e-1))),f3=e=>1-Math.sin(Math.acos(e)),_ie=VF(f3),UF=LF(f3),zF=e=>/^0[^.\s]+$/u.test(e);function Rie(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||zF(e):!0}const qF=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),WF=e=>t=>typeof t=="string"&&t.startsWith(e),HF=WF("--"),Oie=WF("var(--"),d3=e=>Oie(e)?Mie.test(e.split("/*")[0].trim()):!1,Mie=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Fie=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function kie(e){const t=Fie.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const Iie=4;function GF(e,t,n=1){bu(n<=Iie,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=kie(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const o=a.trim();return qF(o)?parseFloat(o):o}return d3(i)?GF(i,t,n+1):i}const Yo=(e,t,n)=>n>t?t:n<e?e:n,Bu={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Rc={...Bu,transform:e=>Yo(0,1,e)},wd={...Bu,default:1},of=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ra=of("deg"),tu=of("%"),We=of("px"),Bie=of("vh"),Lie=of("vw"),z5={...tu,parse:e=>tu.parse(e)/100,transform:e=>tu.transform(e*100)},Vie=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),q5=e=>e===Bu||e===We,W5=(e,t)=>parseFloat(e.split(", ")[t]),H5=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return W5(i[1],t);{const a=r.match(/^matrix\((.+)\)$/u);return a?W5(a[1],e):0}},Nie=new Set(["x","y","z"]),jie=nf.filter(e=>!Nie.has(e));function Kie(e){const t=[];return jie.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const $u={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:H5(4,13),y:H5(5,14)};$u.translateX=$u.x;$u.translateY=$u.y;const YF=e=>t=>t.test(e),Uie={test:e=>e==="auto",parse:e=>e},ZF=[Bu,We,tu,Ra,Lie,Bie,Uie],G5=e=>ZF.find(YF(e)),Lo=new Set;let H0=!1,G0=!1;function JF(){if(G0){const e=Array.from(Lo).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Kie(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(([a,o])=>{var u;(u=r.getValue(a))===null||u===void 0||u.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}G0=!1,H0=!1,Lo.forEach(e=>e.complete()),Lo.clear()}function XF(){Lo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(G0=!0)})}function zie(){XF(),JF()}class h3{constructor(t,n,r,i,a,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Lo.add(this),H0||(H0=!0,ar.read(XF),ar.resolveKeyframes(JF))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let a=0;a<t.length;a++)if(t[a]===null)if(a===0){const o=i==null?void 0:i.get(),u=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const l=r.readValue(n,u);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=u),i&&o===void 0&&i.set(t[0])}else t[a]=t[a-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Lo.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Lo.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const dc=e=>Math.round(e*1e5)/1e5,p3=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function qie(e){return e==null}const Wie=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,m3=(e,t)=>n=>!!(typeof n=="string"&&Wie.test(n)&&n.startsWith(e)||t&&!qie(n)&&Object.prototype.hasOwnProperty.call(n,t)),QF=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,o,u]=r.match(p3);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:u!==void 0?parseFloat(u):1}},Hie=e=>Yo(0,255,e),lb={...Bu,transform:e=>Math.round(Hie(e))},Oo={test:m3("rgb","red"),parse:QF("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+lb.transform(e)+", "+lb.transform(t)+", "+lb.transform(n)+", "+dc(Rc.transform(r))+")"};function Gie(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 Y0={test:m3("#"),parse:Gie,transform:Oo.transform},Hs={test:m3("hsl","hue"),parse:QF("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+tu.transform(dc(t))+", "+tu.transform(dc(n))+", "+dc(Rc.transform(r))+")"},wn={test:e=>Oo.test(e)||Y0.test(e)||Hs.test(e),parse:e=>Oo.test(e)?Oo.parse(e):Hs.test(e)?Hs.parse(e):Y0.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Oo.transform(e):Hs.transform(e)},Yie=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Zie(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(p3))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Yie))===null||n===void 0?void 0:n.length)||0)>0}const e9="number",t9="color",Jie="var",Xie="var(",Y5="${}",Qie=/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 Oc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const u=t.replace(Qie,l=>(wn.test(l)?(r.color.push(a),i.push(t9),n.push(wn.parse(l))):l.startsWith(Xie)?(r.var.push(a),i.push(Jie),n.push(l)):(r.number.push(a),i.push(e9),n.push(parseFloat(l))),++a,Y5)).split(Y5);return{values:n,split:u,indexes:r,types:i}}function n9(e){return Oc(e).values}function r9(e){const{split:t,types:n}=Oc(e),r=t.length;return i=>{let a="";for(let o=0;o<r;o++)if(a+=t[o],i[o]!==void 0){const u=n[o];u===e9?a+=dc(i[o]):u===t9?a+=wn.transform(i[o]):a+=i[o]}return a}}const eae=e=>typeof e=="number"?0:e;function tae(e){const t=n9(e);return r9(e)(t.map(eae))}const Lu={test:Zie,parse:n9,createTransformer:r9,getAnimatableNone:tae},nae=new Set(["brightness","contrast","saturate","opacity"]);function rae(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(p3)||[];if(!r)return e;const i=n.replace(r,"");let a=nae.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const iae=/\b([a-z-]*)\(.*?\)/gu,Z0={...Lu,getAnimatableNone:e=>{const t=e.match(iae);return t?t.map(rae).join(" "):e}},aae={borderWidth:We,borderTopWidth:We,borderRightWidth:We,borderBottomWidth:We,borderLeftWidth:We,borderRadius:We,radius:We,borderTopLeftRadius:We,borderTopRightRadius:We,borderBottomRightRadius:We,borderBottomLeftRadius:We,width:We,maxWidth:We,height:We,maxHeight:We,top:We,right:We,bottom:We,left:We,padding:We,paddingTop:We,paddingRight:We,paddingBottom:We,paddingLeft:We,margin:We,marginTop:We,marginRight:We,marginBottom:We,marginLeft:We,backgroundPositionX:We,backgroundPositionY:We},oae={rotate:Ra,rotateX:Ra,rotateY:Ra,rotateZ:Ra,scale:wd,scaleX:wd,scaleY:wd,scaleZ:wd,skew:Ra,skewX:Ra,skewY:Ra,distance:We,translateX:We,translateY:We,translateZ:We,x:We,y:We,z:We,perspective:We,transformPerspective:We,opacity:Rc,originX:z5,originY:z5,originZ:We},Z5={...Bu,transform:Math.round},g3={...aae,...oae,zIndex:Z5,size:We,fillOpacity:Rc,strokeOpacity:Rc,numOctaves:Z5},sae={...g3,color:wn,backgroundColor:wn,outlineColor:wn,fill:wn,stroke:wn,borderColor:wn,borderTopColor:wn,borderRightColor:wn,borderBottomColor:wn,borderLeftColor:wn,filter:Z0,WebkitFilter:Z0},y3=e=>sae[e];function i9(e,t){let n=y3(e);return n!==Z0&&(n=Lu),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const uae=new Set(["auto","none","0"]);function lae(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!uae.has(a)&&Oc(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=i9(n,i)}class a9 extends h3{constructor(t,n,r,i,a){super(t,n,r,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let f=t[l];if(typeof f=="string"&&(f=f.trim(),d3(f))){const d=GF(f,n.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!Vie.has(r)||t.length!==2)return;const[i,a]=t,o=G5(i),u=G5(a);if(o!==u)if(q5(o)&&q5(u))for(let l=0;l<t.length;l++){const f=t[l];typeof f=="string"&&(t[l]=parseFloat(f))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)Rie(t[i])&&r.push(i);r.length&&lae(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=$u[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 a=n.getValue(r);a&&a.jump(this.measuredOrigin,!1);const o=i.length-1,u=i[o];i[o]=$u[r](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,f])=>{n.getValue(l).set(f)}),this.resolveNoneKeyframes()}}function v3(e){return typeof e=="function"}let qd;function cae(){qd=void 0}const Ua={now:()=>(qd===void 0&&Ua.set(Rh.isProcessing||Die.useManualTiming?Rh.timestamp:performance.now()),qd),set:e=>{qd=e,queueMicrotask(cae)}},J5=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Lu.test(e)||e==="0")&&!e.startsWith("url("));function fae(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 dae(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],o=J5(i,t),u=J5(a,t);return rf(o===u,`You are trying to animate ${t} from "${i}" to "${a}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${a} via the \`style\` property.`),!o||!u?!1:fae(e)||(n==="spring"||v3(n))&&r}const hae=40;class o9{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:o="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Ua.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:o,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>hae?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&zie(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Ua.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:a,delay:o,onComplete:u,onUpdate:l,isGenerator:f}=this.options;if(!f&&!dae(t,r,i,a))if(o)this.options.duration=0;else{l==null||l(Lp(t,this.options,n)),u==null||u(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},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 b3=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},s9=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=e(b3(0,i-1,a))+", ";return`linear(${r.substring(0,r.length-2)})`};function u9(e,t){return t?e*(1e3/t):0}const pae=5;function l9(e,t,n){const r=Math.max(t-pae,0);return u9(n-e(r),t-r)}const Bt={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},X5=.001;function mae({duration:e=Bt.duration,bounce:t=Bt.bounce,velocity:n=Bt.velocity,mass:r=Bt.mass}){let i,a;rf(e<=na(Bt.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=Yo(Bt.minDamping,Bt.maxDamping,o),e=Yo(Bt.minDuration,Bt.maxDuration,Ka(e)),o<1?(i=f=>{const d=f*o,h=d*e,p=d-n,g=J0(f,o),y=Math.exp(-h);return X5-p/g*y},a=f=>{const h=f*o*e,p=h*n+n,g=Math.pow(o,2)*Math.pow(f,2)*e,y=Math.exp(-h),$=J0(Math.pow(f,2),o);return(-i(f)+X5>0?-1:1)*((p-g)*y)/$}):(i=f=>{const d=Math.exp(-f*e),h=(f-n)*e+1;return-.001+d*h},a=f=>{const d=Math.exp(-f*e),h=(n-f)*(e*e);return d*h});const u=5/e,l=yae(i,a,u);if(e=na(e),isNaN(l))return{stiffness:Bt.stiffness,damping:Bt.damping,duration:e};{const f=Math.pow(l,2)*r;return{stiffness:f,damping:o*2*Math.sqrt(r*f),duration:e}}}const gae=12;function yae(e,t,n){let r=n;for(let i=1;i<gae;i++)r=r-e(r)/t(r);return r}function J0(e,t){return e*Math.sqrt(1-t*t)}const X0=2e4;function c9(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<X0;)t+=n,r=e.next(t);return t>=X0?1/0:t}const vae=["duration","bounce"],bae=["stiffness","damping","mass"];function Q5(e,t){return t.some(n=>e[n]!==void 0)}function $ae(e){let t={velocity:Bt.velocity,stiffness:Bt.stiffness,damping:Bt.damping,mass:Bt.mass,isResolvedFromDuration:!1,...e};if(!Q5(e,bae)&&Q5(e,vae))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Yo(.05,1,1-e.bounce)*Math.sqrt(i);t={...t,mass:Bt.mass,stiffness:i,damping:a}}else{const n=mae(e);t={...t,...n,mass:Bt.mass},t.isResolvedFromDuration=!0}return t}function f9(e=Bt.visualDuration,t=Bt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],u={done:!1,value:a},{stiffness:l,damping:f,mass:d,duration:h,velocity:p,isResolvedFromDuration:g}=$ae({...n,velocity:-Ka(n.velocity||0)}),y=p||0,$=f/(2*Math.sqrt(l*d)),D=o-a,b=Ka(Math.sqrt(l/d)),v=Math.abs(D)<5;r||(r=v?Bt.restSpeed.granular:Bt.restSpeed.default),i||(i=v?Bt.restDelta.granular:Bt.restDelta.default);let w;if($<1){const E=J0(b,$);w=A=>{const M=Math.exp(-$*b*A);return o-M*((y+$*b*D)/E*Math.sin(E*A)+D*Math.cos(E*A))}}else if($===1)w=E=>o-Math.exp(-b*E)*(D+(y+b*D)*E);else{const E=b*Math.sqrt($*$-1);w=A=>{const M=Math.exp(-$*b*A),S=Math.min(E*A,300);return o-M*((y+$*b*D)*Math.sinh(S)+E*D*Math.cosh(S))/E}}const T={calculatedDuration:g&&h||null,next:E=>{const A=w(E);if(g)u.done=E>=h;else{let M=0;$<1&&(M=E===0?na(y):l9(w,E,A));const S=Math.abs(M)<=r,z=Math.abs(o-A)<=i;u.done=S&&z}return u.value=u.done?o:A,u},toString:()=>{const E=Math.min(c9(T),X0),A=s9(M=>T.next(E*M).value,E,30);return E+"ms "+A}};return T}function eT({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:u,max:l,restDelta:f=.5,restSpeed:d}){const h=e[0],p={done:!1,value:h},g=S=>u!==void 0&&S<u||l!==void 0&&S>l,y=S=>u===void 0?l:l===void 0||Math.abs(u-S)<Math.abs(l-S)?u:l;let $=n*t;const D=h+$,b=o===void 0?D:o(D);b!==D&&($=b-h);const v=S=>-$*Math.exp(-S/r),w=S=>b+v(S),T=S=>{const z=v(S),j=w(S);p.done=Math.abs(z)<=f,p.value=p.done?b:j};let E,A;const M=S=>{g(p.value)&&(E=S,A=f9({keyframes:[p.value,y(p.value)],velocity:l9(w,S,p.value),damping:i,stiffness:a,restDelta:f,restSpeed:d}))};return M(0),{calculatedDuration:null,next:S=>{let z=!1;return!A&&E===void 0&&(z=!0,T(S),M(S)),E!==void 0&&S>=E?A.next(S-E):(!z&&T(S),p)}}}const xae=af(.42,0,1,1),wae=af(0,0,.58,1),d9=af(.42,0,.58,1),Dae=e=>Array.isArray(e)&&typeof e[0]!="number",$3=e=>Array.isArray(e)&&typeof e[0]=="number",tT={linear:Ha,easeIn:xae,easeInOut:d9,easeOut:wae,circIn:f3,circInOut:UF,circOut:_ie,backIn:c3,backInOut:jF,backOut:NF,anticipate:KF},nT=e=>{if($3(e)){bu(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return af(t,n,r,i)}else if(typeof e=="string")return bu(tT[e]!==void 0,`Invalid easing type '${e}'`),tT[e];return e},Cae=(e,t)=>n=>t(e(n)),Vp=(...e)=>e.reduce(Cae),Np=(e,t,n)=>e+(t-e)*n;function cb(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 Eae({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{const u=n<.5?n*(1+t):n+t-n*t,l=2*n-u;i=cb(l,u,e+1/3),a=cb(l,u,e),o=cb(l,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Oh(e,t){return n=>n>0?t:e}const fb=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Sae=[Y0,Oo,Hs],Tae=e=>Sae.find(t=>t.test(e));function rT(e){const t=Tae(e);if(rf(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Hs&&(n=Eae(n)),n}const iT=(e,t)=>{const n=rT(e),r=rT(t);if(!n||!r)return Oh(e,t);const i={...n};return a=>(i.red=fb(n.red,r.red,a),i.green=fb(n.green,r.green,a),i.blue=fb(n.blue,r.blue,a),i.alpha=Np(n.alpha,r.alpha,a),Oo.transform(i))},Q0=new Set(["none","hidden"]);function Aae(e,t){return Q0.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Pae(e,t){return n=>Np(e,t,n)}function x3(e){return typeof e=="number"?Pae:typeof e=="string"?d3(e)?Oh:wn.test(e)?iT:Oae:Array.isArray(e)?h9:typeof e=="object"?wn.test(e)?iT:_ae:Oh}function h9(e,t){const n=[...e],r=n.length,i=e.map((a,o)=>x3(a)(a,t[o]));return a=>{for(let o=0;o<r;o++)n[o]=i[o](a);return n}}function _ae(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=x3(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function Rae(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const o=t.types[a],u=e.indexes[o][i[o]],l=(n=e.values[u])!==null&&n!==void 0?n:0;r[a]=l,i[o]++}return r}const Oae=(e,t)=>{const n=Lu.createTransformer(t),r=Oc(e),i=Oc(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?Q0.has(e)&&!i.values.length||Q0.has(t)&&!r.values.length?Aae(e,t):Vp(h9(Rae(r,i),i.values),n):(rf(!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.`),Oh(e,t))};function p9(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Np(e,t,n):x3(e)(e,t)}function Mae(e,t,n){const r=[],i=n||p9,a=e.length-1;for(let o=0;o<a;o++){let u=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Ha:t;u=Vp(l,u)}r.push(u)}return r}function Fae(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(bu(a===t.length,"Both input and output ranges must be the same length"),a===1)return()=>t[0];if(a===2&&e[0]===e[1])return()=>t[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=Mae(t,r,i),u=o.length,l=f=>{let d=0;if(u>1)for(;d<e.length-2&&!(f<e[d+1]);d++);const h=b3(e[d],e[d+1],f);return o[d](h)};return n?f=>l(Yo(e[0],e[a-1],f)):l}function kae(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=b3(0,t,r);e.push(Np(n,1,i))}}function Iae(e){const t=[0];return kae(t,e.length-1),t}function Bae(e,t){return e.map(n=>n*t)}function Lae(e,t){return e.map(()=>t||d9).splice(0,e.length-1)}function Mh({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Dae(r)?r.map(nT):nT(r),a={done:!1,value:t[0]},o=Bae(n&&n.length===t.length?n:Iae(t),e),u=Fae(o,t,{ease:Array.isArray(i)?i:Lae(t,i)});return{calculatedDuration:e,next:l=>(a.value=u(l),a.done=l>=e,a)}}const Vae=e=>{const t=({timestamp:n})=>e(n);return{start:()=>ar.update(t,!0),stop:()=>W0(t),now:()=>Rh.isProcessing?Rh.timestamp:Ua.now()}},Nae={decay:eT,inertia:eT,tween:Mh,keyframes:Mh,spring:f9},jae=e=>e/100;class w3 extends o9{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:a}=this.options,o=(i==null?void 0:i.KeyframeResolver)||h3,u=(l,f)=>this.onKeyframesResolved(l,f);this.resolver=new o(a,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:a,velocity:o=0}=this.options,u=v3(n)?n:Nae[n]||Mh;let l,f;u!==Mh&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&bu(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),l=Vp(jae,p9(t[0],t[1])),t=[0,100]);const d=u({...this.options,keyframes:t});a==="mirror"&&(f=u({...this.options,keyframes:[...t].reverse(),velocity:-o})),d.calculatedDuration===null&&(d.calculatedDuration=c9(d));const{calculatedDuration:h}=d,p=h+i,g=p*(r+1)-i;return{generator:d,mirroredGenerator:f,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:p,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:a,mirroredGenerator:o,mapPercentToKeyframes:u,keyframes:l,calculatedDuration:f,totalDuration:d,resolvedDuration:h}=r;if(this.startTime===null)return a.next(0);const{delay:p,repeat:g,repeatType:y,repeatDelay:$,onUpdate:D}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/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 b=this.currentTime-p*(this.speed>=0?1:-1),v=this.speed>=0?b<0:b>d;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let w=this.currentTime,T=a;if(g){const S=Math.min(this.currentTime,d)/h;let z=Math.floor(S),j=S%1;!j&&S>=1&&(j=1),j===1&&z--,z=Math.min(z,g+1),!!(z%2)&&(y==="reverse"?(j=1-j,$&&(j-=$/h)):y==="mirror"&&(T=o)),w=Yo(0,1,j)*h}const E=v?{done:!1,value:l[0]}:T.next(w);u&&(E.value=u(E.value));let{done:A}=E;!v&&f!==null&&(A=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return M&&i!==void 0&&(E.value=Lp(l,this.options,i)),D&&D(E.value),M&&this.finish(),E}get duration(){const{resolved:t}=this;return t?Ka(t.calculatedDuration):0}get time(){return Ka(this.currentTime)}set time(t){t=na(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=Ka(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Vae,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),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 Kae=new Set(["opacity","clipPath","filter","transform"]);function D3(e){let t;return()=>(t===void 0&&(t=e()),t)}const Uae={linearEasing:void 0};function zae(e,t){const n=D3(e);return()=>{var r;return(r=Uae[t])!==null&&r!==void 0?r:n()}}const Fh=zae(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function m9(e){return!!(typeof e=="function"&&Fh()||!e||typeof e=="string"&&(e in e1||Fh())||$3(e)||Array.isArray(e)&&e.every(m9))}const Ql=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,e1={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ql([0,.65,.55,1]),circOut:Ql([.55,0,1,.45]),backIn:Ql([.31,.01,.66,-.59]),backOut:Ql([.33,1.53,.69,.99])};function g9(e,t){if(e)return typeof e=="function"&&Fh()?s9(e,t):$3(e)?Ql(e):Array.isArray(e)?e.map(n=>g9(n,t)||e1.easeOut):e1[e]}function qae(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:u="easeInOut",times:l}={}){const f={[t]:n};l&&(f.offset=l);const d=g9(u,i);return Array.isArray(d)&&(f.easing=d),e.animate(f,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"})}function aT(e,t){e.timeline=t,e.onfinish=null}const Wae=D3(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),kh=10,Hae=2e4;function Gae(e){return v3(e.type)||e.type==="spring"||!m9(e.ease)}function Yae(e,t){const n=new w3({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let a=0;for(;!r.done&&a<Hae;)r=n.sample(a),i.push(r.value),a+=kh;return{times:void 0,keyframes:i,duration:a-kh,ease:"linear"}}const y9={anticipate:KF,backInOut:jF,circInOut:UF};function Zae(e){return e in y9}class oT extends o9{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:a}=this.options;this.resolver=new a9(a,(o,u)=>this.onKeyframesResolved(o,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:a,ease:o,type:u,motionValue:l,name:f,startTime:d}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(typeof o=="string"&&Fh()&&Zae(o)&&(o=y9[o]),Gae(this.options)){const{onComplete:p,onUpdate:g,motionValue:y,element:$,...D}=this.options,b=Yae(t,D);t=b.keyframes,t.length===1&&(t[1]=t[0]),i=b.duration,a=b.times,o=b.ease,u="keyframes"}const h=qae(l.owner.current,f,t,{...this.options,duration:i,times:a,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(aT(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:p}=this.options;l.set(Lp(t,this.options,n)),p&&p(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:i,times:a,type:u,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Ka(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Ka(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=na(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 Ha;const{animation:r}=n;aT(r,t)}return Ha}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:a,ease:o,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:f,onUpdate:d,onComplete:h,element:p,...g}=this.options,y=new w3({...g,keyframes:r,duration:i,type:a,ease:o,times:u,isGenerator:!0}),$=na(this.time);f.setWithVelocity(y.sample($-kh).value,y.sample($).value,kh)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:a,damping:o,type:u}=t;return Wae()&&r&&Kae.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&a!=="mirror"&&o!==0&&u!=="inertia"}}const Jae=D3(()=>window.ScrollTimeline!==void 0);class Xae{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=>Jae()&&i.attachTimeline?i.attachTimeline(t):n(i));return()=>{r.forEach((i,a)=>{i&&i(),this.animations[a].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 Qae({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:u,from:l,elapsed:f,...d}){return!!Object.keys(d).length}const eoe=(e,t,n,r={},i,a)=>o=>{const u=kF(r,e)||{},l=u.delay||r.delay||0;let{elapsed:f=0}=r;f=f-na(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-f,onUpdate:p=>{t.set(p),u.onUpdate&&u.onUpdate(p)},onComplete:()=>{o(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:a?void 0:i};Qae(u)||(d={...d,...wie(e,d)}),d.duration&&(d.duration=na(d.duration)),d.repeatDelay&&(d.repeatDelay=na(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let h=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(h=!0)),h&&!a&&t.get()!==void 0){const p=Lp(d.keyframes,u);if(p!==void 0)return ar.update(()=>{d.onUpdate(p),d.onComplete()}),new Xae([])}return!a&&oT.supports(d)?new oT(d):new w3(d)},toe=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),noe=e=>q0(e)?e[e.length-1]||0:e;function roe(e,t){e.indexOf(t)===-1&&e.push(t)}function ioe(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class v9{constructor(){this.subscriptions=[]}add(t){return roe(this.subscriptions,t),()=>ioe(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 a=0;a<i;a++){const o=this.subscriptions[a];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const sT=30,aoe=e=>!isNaN(parseFloat(e));class ooe{constructor(t,n={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const a=Ua.now();this.updatedAt!==a&&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=Ua.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=aoe(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&kp(!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 v9);const r=this.events[t].add(n);return t==="change"?()=>{r(),ar.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=Ua.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>sT)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,sT);return u9(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 Ih(e,t){return new ooe(e,t)}function soe(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ih(n))}function uoe(e,t){const n=Bp(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const o in a){const u=noe(a[o]);soe(e,o,u)}}const C3=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),loe="framerAppearId",b9="data-"+C3(loe);function coe(e){return e.props[b9]}const On=e=>!!(e&&e.getVelocity);function foe(e){return!!(On(e)&&e.add)}function doe(e,t){const n=e.getValue("willChange");if(foe(n))return n.add(t)}function hoe({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function $9(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var a;let{transition:o=e.getDefaultTransition(),transitionEnd:u,...l}=t;r&&(o=r);const f=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const h in l){const p=e.getValue(h,(a=e.latestValues[h])!==null&&a!==void 0?a:null),g=l[h];if(g===void 0||d&&hoe(d,h))continue;const y={delay:n,...kF(o||{},h)};let $=!1;if(window.MotionHandoffAnimation){const b=coe(e);if(b){const v=window.MotionHandoffAnimation(b,h,ar);v!==null&&(y.startTime=v,$=!0)}}doe(e,h),p.start(eoe(h,p,g,e.shouldReduceMotion&&ts.has(h)?{type:!1}:y,e,$));const D=p.animation;D&&f.push(D)}return u&&Promise.all(f).then(()=>{ar.update(()=>{u&&uoe(e,u)})}),f}function t1(e,t,n={}){var r;const i=Bp(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);const o=i?()=>Promise.all($9(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:d=0,staggerChildren:h,staggerDirection:p}=a;return poe(e,t,d+f,h,p,n)}:()=>Promise.resolve(),{when:l}=a;if(l){const[f,d]=l==="beforeChildren"?[o,u]:[u,o];return f().then(()=>d())}else return Promise.all([o(),u(n.delay)])}function poe(e,t,n=0,r=0,i=1,a){const o=[],u=(e.variantChildren.size-1)*r,l=i===1?(f=0)=>f*r:(f=0)=>u-f*r;return Array.from(e.variantChildren).sort(moe).forEach((f,d)=>{f.notify("AnimationStart",t),o.push(t1(f,t,{...a,delay:n+l(d)}).then(()=>f.notify("AnimationComplete",t)))}),Promise.all(o)}function moe(e,t){return e.sortNodePosition(t)}function goe(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>t1(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=t1(e,t,n);else{const i=typeof t=="function"?Bp(e,t,n.custom):t;r=Promise.all($9(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const yoe=l3.length;function x9(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?x9(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<yoe;n++){const r=l3[n],i=e.props[r];(_c(i)||i===!1)&&(t[r]=i)}return t}const voe=[...u3].reverse(),boe=u3.length;function $oe(e){return t=>Promise.all(t.map(({animation:n,options:r})=>goe(e,n,r)))}function xoe(e){let t=$oe(e),n=uT(),r=!0;const i=l=>(f,d)=>{var h;const p=Bp(e,d,l==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(p){const{transition:g,transitionEnd:y,...$}=p;f={...f,...$,...y}}return f};function a(l){t=l(e)}function o(l){const{props:f}=e,d=x9(e.parent)||{},h=[],p=new Set;let g={},y=1/0;for(let D=0;D<boe;D++){const b=voe[D],v=n[b],w=f[b]!==void 0?f[b]:d[b],T=_c(w),E=b===l?v.isActive:null;E===!1&&(y=D);let A=w===d[b]&&w!==f[b]&&T;if(A&&r&&e.manuallyAnimateOnMount&&(A=!1),v.protectedKeys={...g},!v.isActive&&E===null||!w&&!v.prevProp||Ip(w)||typeof w=="boolean")continue;const M=woe(v.prevProp,w);let S=M||b===l&&v.isActive&&!A&&T||D>y&&T,z=!1;const j=Array.isArray(w)?w:[w];let O=j.reduce(i(b),{});E===!1&&(O={});const{prevResolvedValues:Z={}}=v,R={...Z,...O},V=k=>{S=!0,p.has(k)&&(z=!0,p.delete(k)),v.needsAnimating[k]=!0;const _=e.getValue(k);_&&(_.liveStyle=!1)};for(const k in R){const _=O[k],H=Z[k];if(g.hasOwnProperty(k))continue;let U=!1;q0(_)&&q0(H)?U=!FF(_,H):U=_!==H,U?_!=null?V(k):p.add(k):_!==void 0&&p.has(k)?V(k):v.protectedKeys[k]=!0}v.prevProp=w,v.prevResolvedValues=O,v.isActive&&(g={...g,...O}),r&&e.blockInitialAnimation&&(S=!1),S&&(!(A&&M)||z)&&h.push(...j.map(k=>({animation:k,options:{type:b}})))}if(p.size){const D={};p.forEach(b=>{const v=e.getBaseTarget(b),w=e.getValue(b);w&&(w.liveStyle=!0),D[b]=v??null}),h.push({animation:D})}let $=!!h.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&($=!1),r=!1,$?t(h):Promise.resolve()}function u(l,f){var d;if(n[l].isActive===f)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(p=>{var g;return(g=p.animationState)===null||g===void 0?void 0:g.setActive(l,f)}),n[l].isActive=f;const h=o(l);for(const p in n)n[p].protectedKeys={};return h}return{animateChanges:o,setActive:u,setAnimateFunction:a,getState:()=>n,reset:()=>{n=uT(),r=!0}}}function woe(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!FF(t,e):!1}function $o(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function uT(){return{animate:$o(!0),whileInView:$o(),whileHover:$o(),whileTap:$o(),whileDrag:$o(),whileFocus:$o(),exit:$o()}}class Vu{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Doe extends Vu{constructor(t){super(t),t.animationState||(t.animationState=xoe(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ip(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 Coe=0;class Eoe extends Vu{constructor(){super(...arguments),this.id=Coe++}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 Soe={animation:{Feature:Doe},exit:{Feature:Eoe}},Toe={y:!1};function Aoe(){return Toe.y}const Poe=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function w9(e){return{point:{x:e.pageX,y:e.pageY}}}function lT(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function D9(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const cT=()=>({min:0,max:0}),C9=()=>({x:cT(),y:cT()});function _oe({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Roe(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 Ooe(e,t){return _oe(Roe(e.getBoundingClientRect(),t))}const E9=C.createContext(null),Moe=C.createContext({}),Foe=C.createContext({}),koe={},{schedule:Ioe}=IF(queueMicrotask,!1);function Boe(e){const t=On(e)?e.get():e;return toe(t)?t.toValue():t}function Loe(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const a=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}function S9(e,t){const n=Loe(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function fT(e){return t=>{t.pointerType==="touch"||Aoe()||e(t)}}function Voe(e,t,n={}){const[r,i,a]=S9(e,n),o=fT(u=>{const{target:l}=u,f=t(u);if(!f||!l)return;const d=fT(h=>{f(h),l.removeEventListener("pointerleave",d)});l.addEventListener("pointerleave",d,i)});return r.forEach(u=>{u.addEventListener("pointerenter",o,i)}),a}function dT(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&&ar.postRender(()=>a(t,w9(t)))}class Noe extends Vu{mount(){const{current:t}=this.node;t&&(this.unmount=Voe(t,n=>(dT(this.node,n,"Start"),r=>dT(this.node,r,"End"))))}unmount(){}}class joe extends Vu{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(lT(this.node.current,"focus",()=>this.onFocus()),lT(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const ec=new WeakSet;function hT(e){return t=>{t.key==="Enter"&&e(t)}}function db(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Koe=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=hT(()=>{if(ec.has(n))return;db(n,"down");const i=hT(()=>{db(n,"up")}),a=()=>db(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)},Uoe=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function zoe(e){return Uoe.has(e.tagName)||e.tabIndex!==-1}const T9=(e,t)=>t?e===t?!0:T9(e,t.parentElement):!1;function pT(e){return Poe(e)&&!0}function qoe(e,t,n={}){const[r,i,a]=S9(e,n),o=u=>{const l=u.currentTarget;if(!pT(u)||ec.has(l))return;ec.add(l);const f=t(u),d=(g,y)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",p),!(!pT(g)||!ec.has(l))&&(ec.delete(l),f&&f(g,{success:y}))},h=g=>{d(g,n.useGlobalTarget||T9(l,g.target))},p=g=>{d(g,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",p,i)};return r.forEach(u=>{zoe(u)||(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",o,i),u.addEventListener("focus",f=>Koe(f,i),i)}),a}function mT(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&&ar.postRender(()=>a(t,w9(t)))}class Woe extends Vu{mount(){const{current:t}=this.node;t&&(this.unmount=qoe(t,n=>(mT(this.node,n,"Start"),(r,{success:i})=>mT(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const n1=new WeakMap,hb=new WeakMap,Hoe=e=>{const t=n1.get(e.target);t&&t(e)},Goe=e=>{e.forEach(Hoe)};function Yoe({root:e,...t}){const n=e||document;hb.has(n)||hb.set(n,{});const r=hb.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Goe,{root:e,...t})),r[i]}function Zoe(e,t,n){const r=Yoe(t);return n1.set(e,n),r.observe(e),()=>{n1.delete(e),r.unobserve(e)}}const Joe={some:0,all:1};class Xoe extends Vu{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:a}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Joe[i]},u=l=>{const{isIntersecting:f}=l;if(this.isInView===f||(this.isInView=f,a&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:d,onViewportLeave:h}=this.node.getProps(),p=f?d:h;p&&p(l)};return Zoe(this.node.current,o,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Qoe(t,n))&&this.startObserver()}unmount(){}}function Qoe({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const ese={inView:{Feature:Xoe},tap:{Feature:Woe},focus:{Feature:joe},hover:{Feature:Noe}},A9=C.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),jp=C.createContext({}),E3=typeof window<"u",tse=E3?C.useLayoutEffect:C.useEffect,S3=C.createContext({strict:!1});function nse(e,t,n,r,i){var a,o;const{visualElement:u}=C.useContext(jp),l=C.useContext(S3),f=C.useContext(E9),d=C.useContext(A9).reducedMotion,h=C.useRef(null);r=r||l.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:u,props:n,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:d}));const p=h.current,g=C.useContext(Foe);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&rse(h.current,n,i,g);const y=C.useRef(!1);C.useInsertionEffect(()=>{p&&y.current&&p.update(n,f)});const $=n[b9],D=C.useRef(!!$&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,$))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,$)));return tse(()=>{p&&(y.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),Ioe.render(p.render),D.current&&p.animationState&&p.animationState.animateChanges())}),C.useEffect(()=>{p&&(!D.current&&p.animationState&&p.animationState.animateChanges(),D.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,$)}),D.current=!1))}),p}function rse(e,t,n,r){const{layoutId:i,layout:a,drag:o,dragConstraints:u,layoutScroll:l,layoutRoot:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:P9(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||u&&D9(u),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:f})}function P9(e){if(e)return e.options.allowProjection!==!1?e.projection:P9(e.parent)}function ise(e,t,n){return C.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):D9(n)&&(n.current=r))},[t])}function Kp(e){return Ip(e.animate)||l3.some(t=>_c(e[t]))}function _9(e){return!!(Kp(e)||e.variants)}function ase(e,t){if(Kp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||_c(n)?n:void 0,animate:_c(r)?r:void 0}}return e.inherit!==!1?t:{}}function ose(e){const{initial:t,animate:n}=ase(e,C.useContext(jp));return C.useMemo(()=>({initial:t,animate:n}),[gT(t),gT(n)])}function gT(e){return Array.isArray(e)?e.join(" "):e}const yT={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"]},xu={};for(const e in yT)xu[e]={isEnabled:t=>yT[e].some(n=>!!t[n])};function vT(e){for(const t in e)xu[t]={...xu[t],...e[t]}}const sse=Symbol.for("motionComponentSymbol");function use({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){function a(u,l){let f;const d={...C.useContext(A9),...u,layoutId:lse(u)},{isStatic:h}=d,p=ose(u),g=r(u,h);if(!h&&E3){cse(d,e);const y=fse(d);f=y.MeasureLayout,p.visualElement=nse(i,g,d,t,y.ProjectionNode)}return ra.jsxs(jp.Provider,{value:p,children:[f&&p.visualElement?ra.jsx(f,{visualElement:p.visualElement,...d}):null,n(i,u,ise(g,p.visualElement,l),g,h,p.visualElement)]})}const o=C.forwardRef(a);return o[sse]=i,o}function lse({layoutId:e}){const t=C.useContext(Moe).id;return t&&e!==void 0?t+"-"+e:e}function cse(e,t){C.useContext(S3).strict,process.env.NODE_ENV}function fse(e){const{drag:t,layout:n}=xu;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 dse=["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 T3(e){return typeof e!="string"||e.includes("-")?!1:!!(dse.indexOf(e)>-1||/[A-Z]/u.test(e))}function R9(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const O9=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 M9(e,t,n,r){R9(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(O9.has(i)?i:C3(i),t.attrs[i])}function F9(e,{layout:t,layoutId:n}){return ts.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!koe[e]||e==="opacity")}function A3(e,t,n){var r;const{style:i}=e,a={};for(const o in i)(On(i[o])||t.style&&On(t.style[o])||F9(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(a[o]=i[o]);return a}function k9(e,t,n){const r=A3(e,t,n);for(const i in e)if(On(e[i])||On(t[i])){const a=nf.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}function hse(e){const t=C.useRef(null);return t.current===null&&(t.current=e()),t.current}function pse({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,a){const o={latestValues:mse(r,i,a,e),renderState:t()};return n&&(o.mount=u=>n(r,u,o)),o}const I9=e=>(t,n)=>{const r=C.useContext(jp),i=C.useContext(E9),a=()=>pse(e,t,r,i);return n?a():hse(a)};function mse(e,t,n,r){const i={},a=r(e,{});for(const p in a)i[p]=Boe(a[p]);let{initial:o,animate:u}=e;const l=Kp(e),f=_9(e);t&&f&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),u===void 0&&(u=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const h=d?u:o;if(h&&typeof h!="boolean"&&!Ip(h)){const p=Array.isArray(h)?h:[h];for(let g=0;g<p.length;g++){const y=s3(e,p[g]);if(y){const{transitionEnd:$,transition:D,...b}=y;for(const v in b){let w=b[v];if(Array.isArray(w)){const T=d?w.length-1:0;w=w[T]}w!==null&&(i[v]=w)}for(const v in $)i[v]=$[v]}}}return i}const P3=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),B9=()=>({...P3(),attrs:{}}),L9=(e,t)=>t&&typeof e=="number"?t.transform(e):e,gse={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},yse=nf.length;function vse(e,t,n){let r="",i=!0;for(let a=0;a<yse;a++){const o=nf[a],u=e[o];if(u===void 0)continue;let l=!0;if(typeof u=="number"?l=u===(o.startsWith("scale")?1:0):l=parseFloat(u)===0,!l||n){const f=L9(u,g3[o]);if(!l){i=!1;const d=gse[o]||o;r+=`${d}(${f}) `}n&&(t[o]=f)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function _3(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let o=!1,u=!1;for(const l in t){const f=t[l];if(ts.has(l)){o=!0;continue}else if(HF(l)){i[l]=f;continue}else{const d=L9(f,g3[l]);l.startsWith("origin")?(u=!0,a[l]=d):r[l]=d}}if(t.transform||(o||n?r.transform=vse(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:l="50%",originY:f="50%",originZ:d=0}=a;r.transformOrigin=`${l} ${f} ${d}`}}function bT(e,t,n){return typeof e=="string"?e:We.transform(t+n*e)}function bse(e,t,n){const r=bT(t,e.x,e.width),i=bT(n,e.y,e.height);return`${r} ${i}`}const $se={offset:"stroke-dashoffset",array:"stroke-dasharray"},xse={offset:"strokeDashoffset",array:"strokeDasharray"};function wse(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?$se:xse;e[a.offset]=We.transform(-r);const o=We.transform(t),u=We.transform(n);e[a.array]=`${o} ${u}`}function R3(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:o,pathSpacing:u=1,pathOffset:l=0,...f},d,h){if(_3(e,f,h),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:g,dimensions:y}=e;p.transform&&(y&&(g.transform=p.transform),delete p.transform),y&&(i!==void 0||a!==void 0||g.transform)&&(g.transformOrigin=bse(y,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),o!==void 0&&wse(p,o,u,l,!1)}const O3=e=>typeof e=="string"&&e.toLowerCase()==="svg",Dse={useVisualState:I9({scrapeMotionValuesFromProps:k9,createRenderState:B9,onMount:(e,t,{renderState:n,latestValues:r})=>{ar.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),ar.render(()=>{R3(n,r,O3(t.tagName),e.transformTemplate),M9(t,n)})}})},Cse={useVisualState:I9({scrapeMotionValuesFromProps:A3,createRenderState:P3})};function V9(e,t,n){for(const r in t)!On(t[r])&&!F9(r,n)&&(e[r]=t[r])}function Ese({transformTemplate:e},t){return C.useMemo(()=>{const n=P3();return _3(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Sse(e,t){const n=e.style||{},r={};return V9(r,n,e),Object.assign(r,Ese(e,t)),r}function Tse(e,t){const n={},r=Sse(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 Ase=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Bh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Ase.has(e)}let N9=e=>!Bh(e);function Pse(e){e&&(N9=t=>t.startsWith("on")?!Bh(t):e(t))}try{Pse(require("@emotion/is-prop-valid").default)}catch{}function _se(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(N9(i)||n===!0&&Bh(i)||!t&&!Bh(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Rse(e,t,n,r){const i=C.useMemo(()=>{const a=B9();return R3(a,t,O3(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};V9(a,e.style,e),i.style={...a,...i.style}}return i}function Ose(e=!1){return(n,r,i,{latestValues:a},o)=>{const l=(T3(n)?Rse:Tse)(r,a,o,n),f=_se(r,typeof n=="string",e),d=n!==C.Fragment?{...f,...l,ref:i}:{},{children:h}=r,p=C.useMemo(()=>On(h)?h.get():h,[h]);return C.createElement(n,{...d,children:p})}}function Mse(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...T3(r)?Dse:Cse,preloadedFeatures:e,useRender:Ose(i),createVisualElement:t,Component:r};return use(o)}}const r1={current:null},j9={current:!1};function Fse(){if(j9.current=!0,!!E3)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>r1.current=e.matches;e.addListener(t),t()}else r1.current=!1}function kse(e,t,n){for(const r in t){const i=t[r],a=n[r];if(On(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&kp(i.version==="11.15.0",`Attempting to mix Motion versions ${i.version} with 11.15.0 may not work as expected.`);else if(On(a))e.addValue(r,Ih(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,Ih(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const $T=new WeakMap,Ise=[...ZF,wn,Lu],Bse=e=>Ise.find(YF(e)),xT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Lse{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:o},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=h3,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 p=Ua.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,ar.render(this.render,!1,!0))};const{latestValues:l,renderState:f}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=f,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!a,this.isControllingVariants=Kp(n),this.isVariantNode=_9(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in h){const g=h[p];l[p]!==void 0&&On(g)&&g.set(l[p],!1)}}mount(t){this.current=t,$T.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)),j9.current||Fse(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:r1.current,process.env.NODE_ENV!=="production"&&kp(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(){$T.delete(this.current),this.projection&&this.projection.unmount(),W0(this.notifyUpdate),W0(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=ts.has(t),i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&ar.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in xu){const n=xu[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 a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):C9()}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<xT.length;r++){const i=xT[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,o=t[a];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=kse(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=Ih(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"&&(qF(i)||zF(i))?i=parseFloat(i):!Bse(i)&&Lu.test(n)&&(i=i9(t,n)),this.setBaseTarget(t,On(i)?i.get():i)),On(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 o=s3(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!On(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new v9),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class K9 extends Lse{constructor(){super(...arguments),this.KeyframeResolver=a9}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;On(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Vse(e){return window.getComputedStyle(e)}class Nse extends K9{constructor(){super(...arguments),this.type="html",this.renderInstance=R9}readValueFromInstance(t,n){if(ts.has(n)){const r=y3(n);return r&&r.default||0}else{const r=Vse(t),i=(HF(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Ooe(t,n)}build(t,n,r){_3(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return A3(t,n,r)}}class jse extends K9{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=C9}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ts.has(n)){const r=y3(n);return r&&r.default||0}return n=O9.has(n)?n:C3(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return k9(t,n,r)}build(t,n,r){R3(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){M9(t,n,r,i)}mount(t){this.isSVGTag=O3(t.tagName),super.mount(t)}}const Kse=(e,t)=>T3(e)?new jse(t):new Nse(t,{allowProjection:e!==C.Fragment}),Use=Mse(),zse=yie(Use);function qse({children:e,features:t,strict:n=!1}){const[,r]=C.useState(!pb(t)),i=C.useRef(void 0);if(!pb(t)){const{renderer:a,...o}=t;i.current=a,vT(o)}return C.useEffect(()=>{pb(t)&&t().then(({renderer:a,...o})=>{vT(o),i.current=a,r(!0)})},[]),ra.jsx(S3.Provider,{value:{renderer:i.current,strict:n},children:e})}function pb(e){return typeof e=="function"}const Wse={renderer:Kse,...Soe,...ese};function U9(e){return t=>typeof t===e}var Hse=U9("function"),Gse=e=>e===null,wT=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",DT=e=>!Yse(e)&&!Gse(e)&&(Hse(e)||typeof e=="object"),Yse=U9("undefined");function Zse(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!Mn(e[r],t[r]))return!1;return!0}function Jse(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 Xse(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(!Mn(n[1],t.get(n[0])))return!1;return!0}function Qse(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 Mn(e,t){if(e===t)return!0;if(e&&DT(e)&&t&&DT(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return Zse(e,t);if(e instanceof Map&&t instanceof Map)return Xse(e,t);if(e instanceof Set&&t instanceof Set)return Qse(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return Jse(e,t);if(wT(e)&&wT(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 a=n[i];if(!(a==="_owner"&&e.$$typeof)&&!Mn(e[a],t[a]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var eue=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],tue=["bigint","boolean","null","number","string","symbol","undefined"];function Up(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(nue(t))return t}function Zr(e){return t=>Up(t)===e}function nue(e){return eue.includes(e)}function Nu(e){return t=>typeof t===e}function rue(e){return tue.includes(e)}var iue=["innerHTML","ownerDocument","style","attributes","nodeValue"];function Re(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(Re.array(e))return"Array";if(Re.plainFunction(e))return"Function";const t=Up(e);return t||"Object"}Re.array=Array.isArray;Re.arrayOf=(e,t)=>!Re.array(e)&&!Re.function(t)?!1:e.every(n=>t(n));Re.asyncGeneratorFunction=e=>Up(e)==="AsyncGeneratorFunction";Re.asyncFunction=Zr("AsyncFunction");Re.bigint=Nu("bigint");Re.boolean=e=>e===!0||e===!1;Re.date=Zr("Date");Re.defined=e=>!Re.undefined(e);Re.domElement=e=>Re.object(e)&&!Re.plainObject(e)&&e.nodeType===1&&Re.string(e.nodeName)&&iue.every(t=>t in e);Re.empty=e=>Re.string(e)&&e.length===0||Re.array(e)&&e.length===0||Re.object(e)&&!Re.map(e)&&!Re.set(e)&&Object.keys(e).length===0||Re.set(e)&&e.size===0||Re.map(e)&&e.size===0;Re.error=Zr("Error");Re.function=Nu("function");Re.generator=e=>Re.iterable(e)&&Re.function(e.next)&&Re.function(e.throw);Re.generatorFunction=Zr("GeneratorFunction");Re.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;Re.iterable=e=>!Re.nullOrUndefined(e)&&Re.function(e[Symbol.iterator]);Re.map=Zr("Map");Re.nan=e=>Number.isNaN(e);Re.null=e=>e===null;Re.nullOrUndefined=e=>Re.null(e)||Re.undefined(e);Re.number=e=>Nu("number")(e)&&!Re.nan(e);Re.numericString=e=>Re.string(e)&&e.length>0&&!Number.isNaN(Number(e));Re.object=e=>!Re.nullOrUndefined(e)&&(Re.function(e)||typeof e=="object");Re.oneOf=(e,t)=>Re.array(e)?e.indexOf(t)>-1:!1;Re.plainFunction=Zr("Function");Re.plainObject=e=>{if(Up(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};Re.primitive=e=>Re.null(e)||rue(typeof e);Re.promise=Zr("Promise");Re.propertyOf=(e,t,n)=>{if(!Re.object(e)||!t)return!1;const r=e[t];return Re.function(n)?n(r):Re.defined(r)};Re.regexp=Zr("RegExp");Re.set=Zr("Set");Re.string=Nu("string");Re.symbol=Nu("symbol");Re.undefined=Nu("undefined");Re.weakMap=Zr("WeakMap");Re.weakSet=Zr("WeakSet");var Me=Re;function aue(...e){return e.every(t=>Me.string(t)||Me.array(t)||Me.plainObject(t))}function oue(e,t,n){return z9(e,t)?[e,t].every(Me.array)?!e.some(AT(n))&&t.some(AT(n)):[e,t].every(Me.plainObject)?!Object.entries(e).some(TT(n))&&Object.entries(t).some(TT(n)):t===n:!1}function CT(e,t,n){const{actual:r,key:i,previous:a,type:o}=n,u=wi(e,i),l=wi(t,i);let f=[u,l].every(Me.number)&&(o==="increased"?u<l:u>l);return Me.undefined(r)||(f=f&&l===r),Me.undefined(a)||(f=f&&u===a),f}function ET(e,t,n){const{key:r,type:i,value:a}=n,o=wi(e,r),u=wi(t,r),l=i==="added"?o:u,f=i==="added"?u:o;if(!Me.nullOrUndefined(a)){if(Me.defined(l)){if(Me.array(l)||Me.plainObject(l))return oue(l,f,a)}else return Mn(f,a);return!1}return[o,u].every(Me.array)?!f.every(M3(l)):[o,u].every(Me.plainObject)?sue(Object.keys(l),Object.keys(f)):![o,u].every(d=>Me.primitive(d)&&Me.defined(d))&&(i==="added"?!Me.defined(o)&&Me.defined(u):Me.defined(o)&&!Me.defined(u))}function ST(e,t,{key:n}={}){let r=wi(e,n),i=wi(t,n);if(!z9(r,i))throw new TypeError("Inputs have different types");if(!aue(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(Me.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function TT(e){return([t,n])=>Me.array(e)?Mn(e,n)||e.some(r=>Mn(r,n)||Me.array(n)&&M3(n)(r)):Me.plainObject(e)&&e[t]?!!e[t]&&Mn(e[t],n):Mn(e,n)}function sue(e,t){return t.some(n=>!e.includes(n))}function AT(e){return t=>Me.array(e)?e.some(n=>Mn(n,t)||Me.array(t)&&M3(t)(n)):Mn(e,t)}function Il(e,t){return Me.array(e)?e.some(n=>Mn(n,t)):Mn(e,t)}function M3(e){return t=>e.some(n=>Mn(n,t))}function z9(...e){return e.every(Me.array)||e.every(Me.number)||e.every(Me.plainObject)||e.every(Me.string)}function wi(e,t){return Me.plainObject(e)||Me.array(e)?Me.string(t)?t.split(".").reduce((r,i)=>r&&r[i],e):Me.number(t)?e[t]:e:e}function Lh(e,t){if([e,t].some(Me.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(d=>Me.plainObject(d)||Me.array(d)))throw new Error("Expected plain objects or array");return{added:(d,h)=>{try{return ET(e,t,{key:d,type:"added",value:h})}catch{return!1}},changed:(d,h,p)=>{try{const g=wi(e,d),y=wi(t,d),$=Me.defined(h),D=Me.defined(p);if($||D){const b=D?Il(p,g):!Il(h,g),v=Il(h,y);return b&&v}return[g,y].every(Me.array)||[g,y].every(Me.plainObject)?!Mn(g,y):g!==y}catch{return!1}},changedFrom:(d,h,p)=>{if(!Me.defined(d))return!1;try{const g=wi(e,d),y=wi(t,d),$=Me.defined(p);return Il(h,g)&&($?Il(p,y):!$)}catch{return!1}},decreased:(d,h,p)=>{if(!Me.defined(d))return!1;try{return CT(e,t,{key:d,actual:h,previous:p,type:"decreased"})}catch{return!1}},emptied:d=>{try{const[h,p]=ST(e,t,{key:d});return!!h.length&&!p.length}catch{return!1}},filled:d=>{try{const[h,p]=ST(e,t,{key:d});return!h.length&&!!p.length}catch{return!1}},increased:(d,h,p)=>{if(!Me.defined(d))return!1;try{return CT(e,t,{key:d,actual:h,previous:p,type:"increased"})}catch{return!1}},removed:(d,h)=>{try{return ET(e,t,{key:d,type:"removed",value:h})}catch{return!1}}}}var mb,PT;function uue(){if(PT)return mb;PT=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;mb={left:i("scrollLeft"),top:i("scrollTop")};function i(u){return function(f,d,h,p){h=h||{},typeof h=="function"&&(p=h,h={}),typeof p!="function"&&(p=o);var g=r(),y=f[u],$=h.ease||a,D=isNaN(h.duration)?350:+h.duration,b=!1;return y===d?p(e,f[u]):requestAnimationFrame(w),v;function v(){b=!0}function w(T){if(b)return p(t,f[u]);var E=r(),A=n(1,(E-g)/D),M=$(A);f[u]=M*(d-y)+y,A<1?requestAnimationFrame(w):requestAnimationFrame(function(){p(null,f[u])})}}}function a(u){return .5*(1-Math.cos(Math.PI*u))}function o(){}return mb}var lue=uue();const cue=sa(lue);var Wd={exports:{}},fue=Wd.exports,_T;function due(){return _T||(_T=1,function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(fue,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})}(Wd)),Wd.exports}var hue=due();const q9=sa(hue);var gb,RT;function pue(){if(RT)return gb;RT=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,gb=n,gb}var mue=pue();const OT=sa(mue);var yb,MT;function gue(){if(MT)return yb;MT=1;var e=function(v){return t(v)&&!n(v)};function t(b){return!!b&&typeof b=="object"}function n(b){var v=Object.prototype.toString.call(b);return v==="[object RegExp]"||v==="[object Date]"||a(b)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function a(b){return b.$$typeof===i}function o(b){return Array.isArray(b)?[]:{}}function u(b,v){return v.clone!==!1&&v.isMergeableObject(b)?$(o(b),b,v):b}function l(b,v,w){return b.concat(v).map(function(T){return u(T,w)})}function f(b,v){if(!v.customMerge)return $;var w=v.customMerge(b);return typeof w=="function"?w:$}function d(b){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(b).filter(function(v){return Object.propertyIsEnumerable.call(b,v)}):[]}function h(b){return Object.keys(b).concat(d(b))}function p(b,v){try{return v in b}catch{return!1}}function g(b,v){return p(b,v)&&!(Object.hasOwnProperty.call(b,v)&&Object.propertyIsEnumerable.call(b,v))}function y(b,v,w){var T={};return w.isMergeableObject(b)&&h(b).forEach(function(E){T[E]=u(b[E],w)}),h(v).forEach(function(E){g(b,E)||(p(b,E)&&w.isMergeableObject(v[E])?T[E]=f(E,w)(b[E],v[E],w):T[E]=u(v[E],w))}),T}function $(b,v,w){w=w||{},w.arrayMerge=w.arrayMerge||l,w.isMergeableObject=w.isMergeableObject||e,w.cloneUnlessOtherwiseSpecified=u;var T=Array.isArray(v),E=Array.isArray(b),A=T===E;return A?T?w.arrayMerge(b,v,w):y(b,v,w):u(v,w)}$.all=function(v,w){if(!Array.isArray(v))throw new Error("first argument should be an array");return v.reduce(function(T,E){return $(T,E,w)},{})};var D=$;return yb=D,yb}var yue=gue();const zr=sa(yue);var Dd={exports:{}},Cd={exports:{}},ht={};/** @license React v16.13.1
|
|
146
|
+
* react-is.production.min.js
|
|
147
|
+
*
|
|
148
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
149
|
+
*
|
|
150
|
+
* This source code is licensed under the MIT license found in the
|
|
151
|
+
* LICENSE file in the root directory of this source tree.
|
|
152
|
+
*/var FT;function vue(){if(FT)return ht;FT=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,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,$=e?Symbol.for("react.block"):60121,D=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function w(E){if(typeof E=="object"&&E!==null){var A=E.$$typeof;switch(A){case t:switch(E=E.type,E){case l:case f:case r:case a:case i:case h:return E;default:switch(E=E&&E.$$typeof,E){case u:case d:case y:case g:case o:return E;default:return A}}case n:return A}}}function T(E){return w(E)===f}return ht.AsyncMode=l,ht.ConcurrentMode=f,ht.ContextConsumer=u,ht.ContextProvider=o,ht.Element=t,ht.ForwardRef=d,ht.Fragment=r,ht.Lazy=y,ht.Memo=g,ht.Portal=n,ht.Profiler=a,ht.StrictMode=i,ht.Suspense=h,ht.isAsyncMode=function(E){return T(E)||w(E)===l},ht.isConcurrentMode=T,ht.isContextConsumer=function(E){return w(E)===u},ht.isContextProvider=function(E){return w(E)===o},ht.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===t},ht.isForwardRef=function(E){return w(E)===d},ht.isFragment=function(E){return w(E)===r},ht.isLazy=function(E){return w(E)===y},ht.isMemo=function(E){return w(E)===g},ht.isPortal=function(E){return w(E)===n},ht.isProfiler=function(E){return w(E)===a},ht.isStrictMode=function(E){return w(E)===i},ht.isSuspense=function(E){return w(E)===h},ht.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===r||E===f||E===a||E===i||E===h||E===p||typeof E=="object"&&E!==null&&(E.$$typeof===y||E.$$typeof===g||E.$$typeof===o||E.$$typeof===u||E.$$typeof===d||E.$$typeof===D||E.$$typeof===b||E.$$typeof===v||E.$$typeof===$)},ht.typeOf=w,ht}var pt={};/** @license React v16.13.1
|
|
153
|
+
* react-is.development.js
|
|
154
|
+
*
|
|
155
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
156
|
+
*
|
|
157
|
+
* This source code is licensed under the MIT license found in the
|
|
158
|
+
* LICENSE file in the root directory of this source tree.
|
|
159
|
+
*/var kT;function bue(){return kT||(kT=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,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,$=e?Symbol.for("react.block"):60121,D=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function w(ue){return typeof ue=="string"||typeof ue=="function"||ue===r||ue===f||ue===a||ue===i||ue===h||ue===p||typeof ue=="object"&&ue!==null&&(ue.$$typeof===y||ue.$$typeof===g||ue.$$typeof===o||ue.$$typeof===u||ue.$$typeof===d||ue.$$typeof===D||ue.$$typeof===b||ue.$$typeof===v||ue.$$typeof===$)}function T(ue){if(typeof ue=="object"&&ue!==null){var Le=ue.$$typeof;switch(Le){case t:var nt=ue.type;switch(nt){case l:case f:case r:case a:case i:case h:return nt;default:var Nt=nt&&nt.$$typeof;switch(Nt){case u:case d:case y:case g:case o:return Nt;default:return Le}}case n:return Le}}}var E=l,A=f,M=u,S=o,z=t,j=d,O=r,Z=y,R=g,V=n,W=a,L=i,k=h,_=!1;function H(ue){return _||(_=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),U(ue)||T(ue)===l}function U(ue){return T(ue)===f}function N(ue){return T(ue)===u}function ne(ue){return T(ue)===o}function ie(ue){return typeof ue=="object"&&ue!==null&&ue.$$typeof===t}function ce(ue){return T(ue)===d}function xe(ue){return T(ue)===r}function De(ue){return T(ue)===y}function Ee(ue){return T(ue)===g}function J(ue){return T(ue)===n}function ye(ue){return T(ue)===a}function we(ue){return T(ue)===i}function me(ue){return T(ue)===h}pt.AsyncMode=E,pt.ConcurrentMode=A,pt.ContextConsumer=M,pt.ContextProvider=S,pt.Element=z,pt.ForwardRef=j,pt.Fragment=O,pt.Lazy=Z,pt.Memo=R,pt.Portal=V,pt.Profiler=W,pt.StrictMode=L,pt.Suspense=k,pt.isAsyncMode=H,pt.isConcurrentMode=U,pt.isContextConsumer=N,pt.isContextProvider=ne,pt.isElement=ie,pt.isForwardRef=ce,pt.isFragment=xe,pt.isLazy=De,pt.isMemo=Ee,pt.isPortal=J,pt.isProfiler=ye,pt.isStrictMode=we,pt.isSuspense=me,pt.isValidElementType=w,pt.typeOf=T}()),pt}var IT;function W9(){return IT||(IT=1,process.env.NODE_ENV==="production"?Cd.exports=vue():Cd.exports=bue()),Cd.exports}/*
|
|
160
|
+
object-assign
|
|
161
|
+
(c) Sindre Sorhus
|
|
162
|
+
@license MIT
|
|
163
|
+
*/var vb,BT;function $ue(){if(BT)return vb;BT=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},u=0;u<10;u++)o["_"+String.fromCharCode(u)]=u;var l=Object.getOwnPropertyNames(o).map(function(d){return o[d]});if(l.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(d){f[d]=d}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return vb=i()?Object.assign:function(a,o){for(var u,l=r(a),f,d=1;d<arguments.length;d++){u=Object(arguments[d]);for(var h in u)t.call(u,h)&&(l[h]=u[h]);if(e){f=e(u);for(var p=0;p<f.length;p++)n.call(u,f[p])&&(l[f[p]]=u[f[p]])}}return l},vb}var bb,LT;function F3(){if(LT)return bb;LT=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return bb=e,bb}var $b,VT;function H9(){return VT||(VT=1,$b=Function.call.bind(Object.prototype.hasOwnProperty)),$b}var xb,NT;function xue(){if(NT)return xb;NT=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=F3(),n={},r=H9();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,u,l,f){if(process.env.NODE_ENV!=="production"){for(var d in a)if(r(a,d)){var h;try{if(typeof a[d]!="function"){var p=Error((l||"React class")+": "+u+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}h=a[d](o,d,l,u,null,t)}catch(y){h=y}if(h&&!(h instanceof Error)&&e((l||"React class")+": type specification of "+u+" `"+d+"` 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=f?f():"";e("Failed "+u+" type: "+h.message+(g??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},xb=i,xb}var wb,jT;function wue(){if(jT)return wb;jT=1;var e=W9(),t=$ue(),n=F3(),r=H9(),i=xue(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(u){var l="Warning: "+u;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return wb=function(u,l){var f=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function h(U){var N=U&&(f&&U[f]||U[d]);if(typeof N=="function")return N}var p="<<anonymous>>",g={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:v(),arrayOf:w,element:T(),elementType:E(),instanceOf:A,node:j(),objectOf:S,oneOf:M,oneOfType:z,shape:Z,exact:R};function y(U,N){return U===N?U!==0||1/U===1/N:U!==U&&N!==N}function $(U,N){this.message=U,this.data=N&&typeof N=="object"?N:{},this.stack=""}$.prototype=Error.prototype;function D(U){if(process.env.NODE_ENV!=="production")var N={},ne=0;function ie(xe,De,Ee,J,ye,we,me){if(J=J||p,we=we||Ee,me!==n){if(l){var ue=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 ue.name="Invariant Violation",ue}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Le=J+":"+Ee;!N[Le]&&ne<3&&(a("You are manually calling a React.PropTypes validation function for the `"+we+"` prop on `"+J+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),N[Le]=!0,ne++)}}return De[Ee]==null?xe?De[Ee]===null?new $("The "+ye+" `"+we+"` is marked as required "+("in `"+J+"`, but its value is `null`.")):new $("The "+ye+" `"+we+"` is marked as required in "+("`"+J+"`, but its value is `undefined`.")):null:U(De,Ee,J,ye,we)}var ce=ie.bind(null,!1);return ce.isRequired=ie.bind(null,!0),ce}function b(U){function N(ne,ie,ce,xe,De,Ee){var J=ne[ie],ye=L(J);if(ye!==U){var we=k(J);return new $("Invalid "+xe+" `"+De+"` of type "+("`"+we+"` supplied to `"+ce+"`, expected ")+("`"+U+"`."),{expectedType:U})}return null}return D(N)}function v(){return D(o)}function w(U){function N(ne,ie,ce,xe,De){if(typeof U!="function")return new $("Property `"+De+"` of component `"+ce+"` has invalid PropType notation inside arrayOf.");var Ee=ne[ie];if(!Array.isArray(Ee)){var J=L(Ee);return new $("Invalid "+xe+" `"+De+"` of type "+("`"+J+"` supplied to `"+ce+"`, expected an array."))}for(var ye=0;ye<Ee.length;ye++){var we=U(Ee,ye,ce,xe,De+"["+ye+"]",n);if(we instanceof Error)return we}return null}return D(N)}function T(){function U(N,ne,ie,ce,xe){var De=N[ne];if(!u(De)){var Ee=L(De);return new $("Invalid "+ce+" `"+xe+"` of type "+("`"+Ee+"` supplied to `"+ie+"`, expected a single ReactElement."))}return null}return D(U)}function E(){function U(N,ne,ie,ce,xe){var De=N[ne];if(!e.isValidElementType(De)){var Ee=L(De);return new $("Invalid "+ce+" `"+xe+"` of type "+("`"+Ee+"` supplied to `"+ie+"`, expected a single ReactElement type."))}return null}return D(U)}function A(U){function N(ne,ie,ce,xe,De){if(!(ne[ie]instanceof U)){var Ee=U.name||p,J=H(ne[ie]);return new $("Invalid "+xe+" `"+De+"` of type "+("`"+J+"` supplied to `"+ce+"`, expected ")+("instance of `"+Ee+"`."))}return null}return D(N)}function M(U){if(!Array.isArray(U))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("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])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function N(ne,ie,ce,xe,De){for(var Ee=ne[ie],J=0;J<U.length;J++)if(y(Ee,U[J]))return null;var ye=JSON.stringify(U,function(me,ue){var Le=k(ue);return Le==="symbol"?String(ue):ue});return new $("Invalid "+xe+" `"+De+"` of value `"+String(Ee)+"` "+("supplied to `"+ce+"`, expected one of "+ye+"."))}return D(N)}function S(U){function N(ne,ie,ce,xe,De){if(typeof U!="function")return new $("Property `"+De+"` of component `"+ce+"` has invalid PropType notation inside objectOf.");var Ee=ne[ie],J=L(Ee);if(J!=="object")return new $("Invalid "+xe+" `"+De+"` of type "+("`"+J+"` supplied to `"+ce+"`, expected an object."));for(var ye in Ee)if(r(Ee,ye)){var we=U(Ee,ye,ce,xe,De+"."+ye,n);if(we instanceof Error)return we}return null}return D(N)}function z(U){if(!Array.isArray(U))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var N=0;N<U.length;N++){var ne=U[N];if(typeof ne!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+_(ne)+" at index "+N+"."),o}function ie(ce,xe,De,Ee,J){for(var ye=[],we=0;we<U.length;we++){var me=U[we],ue=me(ce,xe,De,Ee,J,n);if(ue==null)return null;ue.data&&r(ue.data,"expectedType")&&ye.push(ue.data.expectedType)}var Le=ye.length>0?", expected one of type ["+ye.join(", ")+"]":"";return new $("Invalid "+Ee+" `"+J+"` supplied to "+("`"+De+"`"+Le+"."))}return D(ie)}function j(){function U(N,ne,ie,ce,xe){return V(N[ne])?null:new $("Invalid "+ce+" `"+xe+"` supplied to "+("`"+ie+"`, expected a ReactNode."))}return D(U)}function O(U,N,ne,ie,ce){return new $((U||"React class")+": "+N+" type `"+ne+"."+ie+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ce+"`.")}function Z(U){function N(ne,ie,ce,xe,De){var Ee=ne[ie],J=L(Ee);if(J!=="object")return new $("Invalid "+xe+" `"+De+"` of type `"+J+"` "+("supplied to `"+ce+"`, expected `object`."));for(var ye in U){var we=U[ye];if(typeof we!="function")return O(ce,xe,De,ye,k(we));var me=we(Ee,ye,ce,xe,De+"."+ye,n);if(me)return me}return null}return D(N)}function R(U){function N(ne,ie,ce,xe,De){var Ee=ne[ie],J=L(Ee);if(J!=="object")return new $("Invalid "+xe+" `"+De+"` of type `"+J+"` "+("supplied to `"+ce+"`, expected `object`."));var ye=t({},ne[ie],U);for(var we in ye){var me=U[we];if(r(U,we)&&typeof me!="function")return O(ce,xe,De,we,k(me));if(!me)return new $("Invalid "+xe+" `"+De+"` key `"+we+"` supplied to `"+ce+"`.\nBad object: "+JSON.stringify(ne[ie],null," ")+`
|
|
164
|
+
Valid keys: `+JSON.stringify(Object.keys(U),null," "));var ue=me(Ee,we,ce,xe,De+"."+we,n);if(ue)return ue}return null}return D(N)}function V(U){switch(typeof U){case"number":case"string":case"undefined":return!0;case"boolean":return!U;case"object":if(Array.isArray(U))return U.every(V);if(U===null||u(U))return!0;var N=h(U);if(N){var ne=N.call(U),ie;if(N!==U.entries){for(;!(ie=ne.next()).done;)if(!V(ie.value))return!1}else for(;!(ie=ne.next()).done;){var ce=ie.value;if(ce&&!V(ce[1]))return!1}}else return!1;return!0;default:return!1}}function W(U,N){return U==="symbol"?!0:N?N["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&N instanceof Symbol:!1}function L(U){var N=typeof U;return Array.isArray(U)?"array":U instanceof RegExp?"object":W(N,U)?"symbol":N}function k(U){if(typeof U>"u"||U===null)return""+U;var N=L(U);if(N==="object"){if(U instanceof Date)return"date";if(U instanceof RegExp)return"regexp"}return N}function _(U){var N=k(U);switch(N){case"array":case"object":return"an "+N;case"boolean":case"date":case"regexp":return"a "+N;default:return N}}function H(U){return!U.constructor||!U.constructor.name?p:U.constructor.name}return g.checkPropTypes=i,g.resetWarningCache=i.resetWarningCache,g.PropTypes=g,g},wb}var Db,KT;function Due(){if(KT)return Db;KT=1;var e=F3();function t(){}function n(){}return n.resetWarningCache=t,Db=function(){function r(o,u,l,f,d,h){if(h!==e){var p=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 p.name="Invariant Violation",p}}r.isRequired=r;function i(){return r}var a={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 a.PropTypes=a,a},Db}var UT;function Cue(){if(UT)return Dd.exports;if(UT=1,process.env.NODE_ENV!=="production"){var e=W9(),t=!0;Dd.exports=wue()(e.isElement,t)}else Dd.exports=Due()();return Dd.exports}var Eue=Cue();const Te=sa(Eue);/**!
|
|
165
|
+
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
|
166
|
+
* @version 1.16.1
|
|
167
|
+
* @license
|
|
168
|
+
* Copyright (c) 2016 Federico Zivolo and contributors
|
|
169
|
+
*
|
|
170
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
171
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
172
|
+
* in the Software without restriction, including without limitation the rights
|
|
173
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
174
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
175
|
+
* furnished to do so, subject to the following conditions:
|
|
176
|
+
*
|
|
177
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
178
|
+
* copies or substantial portions of the Software.
|
|
179
|
+
*
|
|
180
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
181
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
182
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
183
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
184
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
185
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
186
|
+
* SOFTWARE.
|
|
187
|
+
*/var sf=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",Sue=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(sf&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function Tue(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function Aue(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Sue))}}var Pue=sf&&window.Promise,_ue=Pue?Tue:Aue;function G9(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function ns(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function k3(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function uf(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=ns(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:uf(k3(e))}function Y9(e){return e&&e.referenceNode?e.referenceNode:e}var zT=sf&&!!(window.MSInputMethodContext&&document.documentMode),qT=sf&&/MSIE 10/.test(navigator.userAgent);function ju(e){return e===11?zT:e===10?qT:zT||qT}function wu(e){if(!e)return document.documentElement;for(var t=ju(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&&ns(n,"position")==="static"?wu(n):n}function Rue(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||wu(e.firstElementChild)===e}function i1(e){return e.parentNode!==null?i1(e.parentNode):e}function Vh(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,a=document.createRange();a.setStart(r,0),a.setEnd(i,0);var o=a.commonAncestorContainer;if(e!==o&&t!==o||r.contains(i))return Rue(o)?o:wu(o);var u=i1(e);return u.host?Vh(u.host,t):Vh(e,i1(t).host)}function Du(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,a=e.ownerDocument.scrollingElement||i;return a[n]}return e[n]}function Oue(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Du(t,"top"),i=Du(t,"left"),a=n?-1:1;return e.top+=r*a,e.bottom+=r*a,e.left+=i*a,e.right+=i*a,e}function WT(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 HT(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],ju(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function Z9(e){var t=e.body,n=e.documentElement,r=ju(10)&&getComputedStyle(n);return{height:HT("Height",t,n,r),width:HT("Width",t,n,r)}}var Mue=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Fue=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}}(),Cu=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Sr=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 Ga(e){return Sr({},e,{right:e.left+e.width,bottom:e.top+e.height})}function a1(e){var t={};try{if(ju(10)){t=e.getBoundingClientRect();var n=Du(e,"top"),r=Du(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},a=e.nodeName==="HTML"?Z9(e.ownerDocument):{},o=a.width||e.clientWidth||i.width,u=a.height||e.clientHeight||i.height,l=e.offsetWidth-o,f=e.offsetHeight-u;if(l||f){var d=ns(e);l-=WT(d,"x"),f-=WT(d,"y"),i.width-=l,i.height-=f}return Ga(i)}function I3(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=ju(10),i=t.nodeName==="HTML",a=a1(e),o=a1(t),u=uf(e),l=ns(t),f=parseFloat(l.borderTopWidth),d=parseFloat(l.borderLeftWidth);n&&i&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var h=Ga({top:a.top-o.top-f,left:a.left-o.left-d,width:a.width,height:a.height});if(h.marginTop=0,h.marginLeft=0,!r&&i){var p=parseFloat(l.marginTop),g=parseFloat(l.marginLeft);h.top-=f-p,h.bottom-=f-p,h.left-=d-g,h.right-=d-g,h.marginTop=p,h.marginLeft=g}return(r&&!n?t.contains(u):t===u&&u.nodeName!=="BODY")&&(h=Oue(h,t)),h}function kue(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=I3(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),o=t?0:Du(n),u=t?0:Du(n,"left"),l={top:o-r.top+r.marginTop,left:u-r.left+r.marginLeft,width:i,height:a};return Ga(l)}function J9(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(ns(e,"position")==="fixed")return!0;var n=k3(e);return n?J9(n):!1}function X9(e){if(!e||!e.parentElement||ju())return document.documentElement;for(var t=e.parentElement;t&&ns(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function B3(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,a={top:0,left:0},o=i?X9(e):Vh(e,Y9(t));if(r==="viewport")a=kue(o,i);else{var u=void 0;r==="scrollParent"?(u=uf(k3(t)),u.nodeName==="BODY"&&(u=e.ownerDocument.documentElement)):r==="window"?u=e.ownerDocument.documentElement:u=r;var l=I3(u,o,i);if(u.nodeName==="HTML"&&!J9(o)){var f=Z9(e.ownerDocument),d=f.height,h=f.width;a.top+=l.top-l.marginTop,a.bottom=d+l.top,a.left+=l.left-l.marginLeft,a.right=h+l.left}else a=l}n=n||0;var p=typeof n=="number";return a.left+=p?n:n.left||0,a.top+=p?n:n.top||0,a.right-=p?n:n.right||0,a.bottom-=p?n:n.bottom||0,a}function Iue(e){var t=e.width,n=e.height;return t*n}function Q9(e,t,n,r,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var o=B3(n,r,a,i),u={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},l=Object.keys(u).map(function(p){return Sr({key:p},u[p],{area:Iue(u[p])})}).sort(function(p,g){return g.area-p.area}),f=l.filter(function(p){var g=p.width,y=p.height;return g>=n.clientWidth&&y>=n.clientHeight}),d=f.length>0?f[0].key:l[0].key,h=e.split("-")[1];return d+(h?"-"+h:"")}function e8(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=r?X9(t):Vh(t,Y9(n));return I3(n,i,r)}function t8(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),a={width:e.offsetWidth+i,height:e.offsetHeight+r};return a}function Nh(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 n8(e,t,n){n=n.split("-")[0];var r=t8(e),i={width:r.width,height:r.height},a=["right","left"].indexOf(n)!==-1,o=a?"top":"left",u=a?"left":"top",l=a?"height":"width",f=a?"width":"height";return i[o]=t[o]+t[l]/2-r[l]/2,n===u?i[u]=t[u]-r[f]:i[u]=t[Nh(u)],i}function lf(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Bue(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===n});var r=lf(e,function(i){return i[t]===n});return e.indexOf(r)}function r8(e,t,n){var r=n===void 0?e:e.slice(0,Bue(e,"name",n));return r.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var a=i.function||i.fn;i.enabled&&G9(a)&&(t.offsets.popper=Ga(t.offsets.popper),t.offsets.reference=Ga(t.offsets.reference),t=a(t,i))}),t}function Lue(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=e8(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Q9(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=n8(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=r8(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function i8(e,t){return e.some(function(n){var r=n.name,i=n.enabled;return i&&r===t})}function L3(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],a=i?""+i+n:e;if(typeof document.body.style[a]<"u")return a}return null}function Vue(){return this.state.isDestroyed=!0,i8(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[L3("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function a8(e){var t=e.ownerDocument;return t?t.defaultView:window}function o8(e,t,n,r){var i=e.nodeName==="BODY",a=i?e.ownerDocument.defaultView:e;a.addEventListener(t,n,{passive:!0}),i||o8(uf(a.parentNode),t,n,r),r.push(a)}function Nue(e,t,n,r){n.updateBound=r,a8(e).addEventListener("resize",n.updateBound,{passive:!0});var i=uf(e);return o8(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function jue(){this.state.eventsEnabled||(this.state=Nue(this.reference,this.options,this.state,this.scheduleUpdate))}function Kue(e,t){return a8(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 Uue(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=Kue(this.reference,this.state))}function V3(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function o1(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&V3(t[n])&&(r="px"),e.style[n]=t[n]+r})}function zue(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function que(e){return o1(e.instance.popper,e.styles),zue(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&o1(e.arrowElement,e.arrowStyles),e}function Wue(e,t,n,r,i){var a=e8(i,t,e,n.positionFixed),o=Q9(n.placement,a,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",o),o1(t,{position:n.positionFixed?"fixed":"absolute"}),n}function Hue(e,t){var n=e.offsets,r=n.popper,i=n.reference,a=Math.round,o=Math.floor,u=function(b){return b},l=a(i.width),f=a(r.width),d=["left","right"].indexOf(e.placement)!==-1,h=e.placement.indexOf("-")!==-1,p=l%2===f%2,g=l%2===1&&f%2===1,y=t?d||h||p?a:o:u,$=t?a:u;return{left:y(g&&!h&&t?r.left-1:r.left),top:$(r.top),bottom:$(r.bottom),right:y(r.right)}}var Gue=sf&&/Firefox/i.test(navigator.userAgent);function Yue(e,t){var n=t.x,r=t.y,i=e.offsets.popper,a=lf(e.instance.modifiers,function(w){return w.name==="applyStyle"}).gpuAcceleration;a!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o=a!==void 0?a:t.gpuAcceleration,u=wu(e.instance.popper),l=a1(u),f={position:i.position},d=Hue(e,window.devicePixelRatio<2||!Gue),h=n==="bottom"?"top":"bottom",p=r==="right"?"left":"right",g=L3("transform"),y=void 0,$=void 0;if(h==="bottom"?u.nodeName==="HTML"?$=-u.clientHeight+d.bottom:$=-l.height+d.bottom:$=d.top,p==="right"?u.nodeName==="HTML"?y=-u.clientWidth+d.right:y=-l.width+d.right:y=d.left,o&&g)f[g]="translate3d("+y+"px, "+$+"px, 0)",f[h]=0,f[p]=0,f.willChange="transform";else{var D=h==="bottom"?-1:1,b=p==="right"?-1:1;f[h]=$*D,f[p]=y*b,f.willChange=h+", "+p}var v={"x-placement":e.placement};return e.attributes=Sr({},v,e.attributes),e.styles=Sr({},f,e.styles),e.arrowStyles=Sr({},e.offsets.arrow,e.arrowStyles),e}function s8(e,t,n){var r=lf(e,function(u){var l=u.name;return l===t}),i=!!r&&e.some(function(u){return u.name===n&&u.enabled&&u.order<r.order});if(!i){var a="`"+t+"`",o="`"+n+"`";console.warn(o+" modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return i}function Zue(e,t){var n;if(!s8(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],a=e.offsets,o=a.popper,u=a.reference,l=["left","right"].indexOf(i)!==-1,f=l?"height":"width",d=l?"Top":"Left",h=d.toLowerCase(),p=l?"left":"top",g=l?"bottom":"right",y=t8(r)[f];u[g]-y<o[h]&&(e.offsets.popper[h]-=o[h]-(u[g]-y)),u[h]+y>o[g]&&(e.offsets.popper[h]+=u[h]+y-o[g]),e.offsets.popper=Ga(e.offsets.popper);var $=u[h]+u[f]/2-y/2,D=ns(e.instance.popper),b=parseFloat(D["margin"+d]),v=parseFloat(D["border"+d+"Width"]),w=$-e.offsets.popper[h]-b-v;return w=Math.max(Math.min(o[f]-y,w),0),e.arrowElement=r,e.offsets.arrow=(n={},Cu(n,h,Math.round(w)),Cu(n,p,""),n),e}function Jue(e){return e==="end"?"start":e==="start"?"end":e}var u8=["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"],Cb=u8.slice(3);function GT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Cb.indexOf(e),r=Cb.slice(n+1).concat(Cb.slice(0,n));return t?r.reverse():r}var Eb={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Xue(e,t){if(i8(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=B3(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=Nh(r),a=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case Eb.FLIP:o=[r,i];break;case Eb.CLOCKWISE:o=GT(r);break;case Eb.COUNTERCLOCKWISE:o=GT(r,!0);break;default:o=t.behavior}return o.forEach(function(u,l){if(r!==u||o.length===l+1)return e;r=e.placement.split("-")[0],i=Nh(r);var f=e.offsets.popper,d=e.offsets.reference,h=Math.floor,p=r==="left"&&h(f.right)>h(d.left)||r==="right"&&h(f.left)<h(d.right)||r==="top"&&h(f.bottom)>h(d.top)||r==="bottom"&&h(f.top)<h(d.bottom),g=h(f.left)<h(n.left),y=h(f.right)>h(n.right),$=h(f.top)<h(n.top),D=h(f.bottom)>h(n.bottom),b=r==="left"&&g||r==="right"&&y||r==="top"&&$||r==="bottom"&&D,v=["top","bottom"].indexOf(r)!==-1,w=!!t.flipVariations&&(v&&a==="start"&&g||v&&a==="end"&&y||!v&&a==="start"&&$||!v&&a==="end"&&D),T=!!t.flipVariationsByContent&&(v&&a==="start"&&y||v&&a==="end"&&g||!v&&a==="start"&&D||!v&&a==="end"&&$),E=w||T;(p||b||E)&&(e.flipped=!0,(p||b)&&(r=o[l+1]),E&&(a=Jue(a)),e.placement=r+(a?"-"+a:""),e.offsets.popper=Sr({},e.offsets.popper,n8(e.instance.popper,e.offsets.reference,e.placement)),e=r8(e.instance.modifiers,e,"flip"))}),e}function Que(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],a=Math.floor,o=["top","bottom"].indexOf(i)!==-1,u=o?"right":"bottom",l=o?"left":"top",f=o?"width":"height";return n[u]<a(r[l])&&(e.offsets.popper[l]=a(r[l])-n[f]),n[l]>a(r[u])&&(e.offsets.popper[l]=a(r[u])),e}function ele(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+i[1],o=i[2];if(!a)return e;if(o.indexOf("%")===0){var u=void 0;switch(o){case"%p":u=n;break;case"%":case"%r":default:u=r}var l=Ga(u);return l[t]/100*a}else if(o==="vh"||o==="vw"){var f=void 0;return o==="vh"?f=Math.max(document.documentElement.clientHeight,window.innerHeight||0):f=Math.max(document.documentElement.clientWidth,window.innerWidth||0),f/100*a}else return a}function tle(e,t,n,r){var i=[0,0],a=["right","left"].indexOf(r)!==-1,o=e.split(/(\+|\-)/).map(function(d){return d.trim()}),u=o.indexOf(lf(o,function(d){return d.search(/,|\s/)!==-1}));o[u]&&o[u].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,f=u!==-1?[o.slice(0,u).concat([o[u].split(l)[0]]),[o[u].split(l)[1]].concat(o.slice(u+1))]:[o];return f=f.map(function(d,h){var p=(h===1?!a:a)?"height":"width",g=!1;return d.reduce(function(y,$){return y[y.length-1]===""&&["+","-"].indexOf($)!==-1?(y[y.length-1]=$,g=!0,y):g?(y[y.length-1]+=$,g=!1,y):y.concat($)},[]).map(function(y){return ele(y,p,t,n)})}),f.forEach(function(d,h){d.forEach(function(p,g){V3(p)&&(i[h]+=p*(d[g-1]==="-"?-1:1))})}),i}function nle(e,t){var n=t.offset,r=e.placement,i=e.offsets,a=i.popper,o=i.reference,u=r.split("-")[0],l=void 0;return V3(+n)?l=[+n,0]:l=tle(n,a,o,u),u==="left"?(a.top+=l[0],a.left-=l[1]):u==="right"?(a.top+=l[0],a.left+=l[1]):u==="top"?(a.left+=l[0],a.top-=l[1]):u==="bottom"&&(a.left+=l[0],a.top+=l[1]),e.popper=a,e}function rle(e,t){var n=t.boundariesElement||wu(e.instance.popper);e.instance.reference===n&&(n=wu(n));var r=L3("transform"),i=e.instance.popper.style,a=i.top,o=i.left,u=i[r];i.top="",i.left="",i[r]="";var l=B3(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=a,i.left=o,i[r]=u,t.boundaries=l;var f=t.priority,d=e.offsets.popper,h={primary:function(g){var y=d[g];return d[g]<l[g]&&!t.escapeWithReference&&(y=Math.max(d[g],l[g])),Cu({},g,y)},secondary:function(g){var y=g==="right"?"left":"top",$=d[y];return d[g]>l[g]&&!t.escapeWithReference&&($=Math.min(d[y],l[g]-(g==="right"?d.width:d.height))),Cu({},y,$)}};return f.forEach(function(p){var g=["left","top"].indexOf(p)!==-1?"primary":"secondary";d=Sr({},d,h[g](p))}),e.offsets.popper=d,e}function ile(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,a=i.reference,o=i.popper,u=["bottom","top"].indexOf(n)!==-1,l=u?"left":"top",f=u?"width":"height",d={start:Cu({},l,a[l]),end:Cu({},l,a[l]+a[f]-o[f])};e.offsets.popper=Sr({},o,d[r])}return e}function ale(e){if(!s8(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=lf(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 ole(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,a=r.reference,o=["left","right"].indexOf(n)!==-1,u=["top","left"].indexOf(n)===-1;return i[o?"left":"top"]=a[n]-(u?i[o?"width":"height"]:0),e.placement=Nh(t),e.offsets.popper=Ga(i),e}var sle={shift:{order:100,enabled:!0,fn:ile},offset:{order:200,enabled:!0,fn:nle,offset:0},preventOverflow:{order:300,enabled:!0,fn:rle,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:Que},arrow:{order:500,enabled:!0,fn:Zue,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:Xue,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:ole},hide:{order:800,enabled:!0,fn:ale},computeStyle:{order:850,enabled:!0,fn:Yue,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:que,onLoad:Wue,gpuAcceleration:void 0}},ule={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:sle},Mc=function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Mue(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=_ue(this.update.bind(this)),this.options=Sr({},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(Sr({},e.Defaults.modifiers,i.modifiers)).forEach(function(o){r.options.modifiers[o]=Sr({},e.Defaults.modifiers[o]||{},i.modifiers?i.modifiers[o]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(o){return Sr({name:o},r.options.modifiers[o])}).sort(function(o,u){return o.order-u.order}),this.modifiers.forEach(function(o){o.enabled&&G9(o.onLoad)&&o.onLoad(r.reference,r.popper,r.options,o,r.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return Fue(e,[{key:"update",value:function(){return Lue.call(this)}},{key:"destroy",value:function(){return Vue.call(this)}},{key:"enableEventListeners",value:function(){return jue.call(this)}},{key:"disableEventListeners",value:function(){return Uue.call(this)}}]),e}();Mc.Utils=(typeof window<"u"?window:global).PopperUtils;Mc.placements=u8;Mc.Defaults=ule;var lle=["innerHTML","ownerDocument","style","attributes","nodeValue"],cle=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],fle=["bigint","boolean","null","number","string","symbol","undefined"];function zp(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(dle(t))return t}function Jr(e){return function(t){return zp(t)===e}}function dle(e){return cle.includes(e)}function Ku(e){return function(t){return typeof t===e}}function hle(e){return fle.includes(e)}function le(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(le.array(e))return"Array";if(le.plainFunction(e))return"Function";var t=zp(e);return t||"Object"}le.array=Array.isArray;le.arrayOf=function(e,t){return!le.array(e)&&!le.function(t)?!1:e.every(function(n){return t(n)})};le.asyncGeneratorFunction=function(e){return zp(e)==="AsyncGeneratorFunction"};le.asyncFunction=Jr("AsyncFunction");le.bigint=Ku("bigint");le.boolean=function(e){return e===!0||e===!1};le.date=Jr("Date");le.defined=function(e){return!le.undefined(e)};le.domElement=function(e){return le.object(e)&&!le.plainObject(e)&&e.nodeType===1&&le.string(e.nodeName)&&lle.every(function(t){return t in e})};le.empty=function(e){return le.string(e)&&e.length===0||le.array(e)&&e.length===0||le.object(e)&&!le.map(e)&&!le.set(e)&&Object.keys(e).length===0||le.set(e)&&e.size===0||le.map(e)&&e.size===0};le.error=Jr("Error");le.function=Ku("function");le.generator=function(e){return le.iterable(e)&&le.function(e.next)&&le.function(e.throw)};le.generatorFunction=Jr("GeneratorFunction");le.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype};le.iterable=function(e){return!le.nullOrUndefined(e)&&le.function(e[Symbol.iterator])};le.map=Jr("Map");le.nan=function(e){return Number.isNaN(e)};le.null=function(e){return e===null};le.nullOrUndefined=function(e){return le.null(e)||le.undefined(e)};le.number=function(e){return Ku("number")(e)&&!le.nan(e)};le.numericString=function(e){return le.string(e)&&e.length>0&&!Number.isNaN(Number(e))};le.object=function(e){return!le.nullOrUndefined(e)&&(le.function(e)||typeof e=="object")};le.oneOf=function(e,t){return le.array(e)?e.indexOf(t)>-1:!1};le.plainFunction=Jr("Function");le.plainObject=function(e){if(zp(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};le.primitive=function(e){return le.null(e)||hle(typeof e)};le.promise=Jr("Promise");le.propertyOf=function(e,t,n){if(!le.object(e)||!t)return!1;var r=e[t];return le.function(n)?n(r):le.defined(r)};le.regexp=Jr("RegExp");le.set=Jr("Set");le.string=Ku("string");le.symbol=Ku("symbol");le.undefined=Ku("undefined");le.weakMap=Jr("WeakMap");le.weakSet=Jr("WeakSet");function l8(e){return function(t){return typeof t===e}}var ple=l8("function"),mle=function(e){return e===null},YT=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},ZT=function(e){return!gle(e)&&!mle(e)&&(ple(e)||typeof e=="object")},gle=l8("undefined"),s1=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 yle(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;r--!==0;)if(!Wn(e[r],t[r]))return!1;return!0}function vle(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 ble(e,t){var n,r,i,a;if(e.size!==t.size)return!1;try{for(var o=s1(e.entries()),u=o.next();!u.done;u=o.next()){var l=u.value;if(!t.has(l[0]))return!1}}catch(h){n={error:h}}finally{try{u&&!u.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}try{for(var f=s1(e.entries()),d=f.next();!d.done;d=f.next()){var l=d.value;if(!Wn(l[1],t.get(l[0])))return!1}}catch(h){i={error:h}}finally{try{d&&!d.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}return!0}function $le(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var i=s1(e.entries()),a=i.next();!a.done;a=i.next()){var o=a.value;if(!t.has(o[0]))return!1}}catch(u){n={error:u}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0}function Wn(e,t){if(e===t)return!0;if(e&&ZT(e)&&t&&ZT(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return yle(e,t);if(e instanceof Map&&t instanceof Map)return ble(e,t);if(e instanceof Set&&t instanceof Set)return $le(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return vle(e,t);if(YT(e)&&YT(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 a=n[i];if(!(a==="_owner"&&e.$$typeof)&&!Wn(e[a],t[a]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}function xle(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(n){return le.string(n)||le.array(n)||le.plainObject(n)})}function wle(e,t,n){return c8(e,t)?[e,t].every(le.array)?!e.some(t2(n))&&t.some(t2(n)):[e,t].every(le.plainObject)?!Object.entries(e).some(e2(n))&&Object.entries(t).some(e2(n)):t===n:!1}function JT(e,t,n){var r=n.actual,i=n.key,a=n.previous,o=n.type,u=Di(e,i),l=Di(t,i),f=[u,l].every(le.number)&&(o==="increased"?u<l:u>l);return le.undefined(r)||(f=f&&l===r),le.undefined(a)||(f=f&&u===a),f}function XT(e,t,n){var r=n.key,i=n.type,a=n.value,o=Di(e,r),u=Di(t,r),l=i==="added"?o:u,f=i==="added"?u:o;if(!le.nullOrUndefined(a)){if(le.defined(l)){if(le.array(l)||le.plainObject(l))return wle(l,f,a)}else return Wn(f,a);return!1}return[o,u].every(le.array)?!f.every(N3(l)):[o,u].every(le.plainObject)?Dle(Object.keys(l),Object.keys(f)):![o,u].every(function(d){return le.primitive(d)&&le.defined(d)})&&(i==="added"?!le.defined(o)&&le.defined(u):le.defined(o)&&!le.defined(u))}function QT(e,t,n){var r=n===void 0?{}:n,i=r.key,a=Di(e,i),o=Di(t,i);if(!c8(a,o))throw new TypeError("Inputs have different types");if(!xle(a,o))throw new TypeError("Inputs don't have length");return[a,o].every(le.plainObject)&&(a=Object.keys(a),o=Object.keys(o)),[a,o]}function e2(e){return function(t){var n=t[0],r=t[1];return le.array(e)?Wn(e,r)||e.some(function(i){return Wn(i,r)||le.array(r)&&N3(r)(i)}):le.plainObject(e)&&e[n]?!!e[n]&&Wn(e[n],r):Wn(e,r)}}function Dle(e,t){return t.some(function(n){return!e.includes(n)})}function t2(e){return function(t){return le.array(e)?e.some(function(n){return Wn(n,t)||le.array(t)&&N3(t)(n)}):Wn(e,t)}}function Bl(e,t){return le.array(e)?e.some(function(n){return Wn(n,t)}):Wn(e,t)}function N3(e){return function(t){return e.some(function(n){return Wn(n,t)})}}function c8(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(le.array)||e.every(le.number)||e.every(le.plainObject)||e.every(le.string)}function Di(e,t){if(le.plainObject(e)||le.array(e)){if(le.string(t)){var n=t.split(".");return n.reduce(function(r,i){return r&&r[i]},e)}return le.number(t)?e[t]:e}return e}function Cle(e,t){if([e,t].some(le.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(h){return le.plainObject(h)||le.array(h)}))throw new Error("Expected plain objects or array");var n=function(h,p){try{return XT(e,t,{key:h,type:"added",value:p})}catch{return!1}},r=function(h,p,g){try{var y=Di(e,h),$=Di(t,h),D=le.defined(p),b=le.defined(g);if(D||b){var v=b?Bl(g,y):!Bl(p,y),w=Bl(p,$);return v&&w}return[y,$].every(le.array)||[y,$].every(le.plainObject)?!Wn(y,$):y!==$}catch{return!1}},i=function(h,p,g){if(!le.defined(h))return!1;try{var y=Di(e,h),$=Di(t,h),D=le.defined(g);return Bl(p,y)&&(D?Bl(g,$):!D)}catch{return!1}},a=function(h,p){return le.defined(h)?(process.env.NODE_ENV==="development"&&console.warn("`changedTo` is deprecated! Replace it with `change`"),r(h,p)):!1},o=function(h,p,g){if(!le.defined(h))return!1;try{return JT(e,t,{key:h,actual:p,previous:g,type:"decreased"})}catch{return!1}},u=function(h){try{var p=QT(e,t,{key:h}),g=p[0],y=p[1];return!!g.length&&!y.length}catch{return!1}},l=function(h){try{var p=QT(e,t,{key:h}),g=p[0],y=p[1];return!g.length&&!!y.length}catch{return!1}},f=function(h,p,g){if(!le.defined(h))return!1;try{return JT(e,t,{key:h,actual:p,previous:g,type:"increased"})}catch{return!1}},d=function(h,p){try{return XT(e,t,{key:h,type:"removed",value:p})}catch{return!1}};return{added:n,changed:r,changedFrom:i,changedTo:a,decreased:o,emptied:u,filled:l,increased:f,removed:d}}function n2(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 Mt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n2(Object(n),!0).forEach(function(r){Dn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ele(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,d8(r.key),r)}}function ff(e,t,n){return t&&Ele(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dn(e,t,n){return t=d8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function df(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&&u1(e,t)}function jh(e){return jh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jh(e)}function u1(e,t){return u1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},u1(e,t)}function Sle(){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 Tle(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function f8(e,t){if(e==null)return{};var n=Tle(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Gi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ale(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 Gi(e)}function hf(e){var t=Sle();return function(){var r=jh(e),i;if(t){var a=jh(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Ale(this,i)}}function Ple(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function d8(e){var t=Ple(e,"string");return typeof t=="symbol"?t:String(t)}var _le={flip:{padding:20},preventOverflow:{padding:10}},Rle="The typeValidator argument must be a function with the signature function(props, propName, componentName).",Ole="The error message is optional, but must be a string if provided.";function Mle(e,t,n,r){return typeof e=="boolean"?e:typeof e=="function"?e(t,n,r):e?!!e:!1}function Fle(e,t){return Object.hasOwnProperty.call(e,t)}function kle(e,t,n,r){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}function Ile(e,t){if(typeof e!="function")throw new TypeError(Rle);if(t)throw new TypeError(Ole)}function r2(e,t,n){return Ile(e,n),function(r,i,a){for(var o=arguments.length,u=new Array(o>3?o-3:0),l=3;l<o;l++)u[l-3]=arguments[l];return Mle(t,r,i,a)?Fle(r,i)?e.apply(void 0,[r,i,a].concat(u)):kle(r,i,a):e.apply(void 0,[r,i,a].concat(u))}}var st={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing"},Ll=Na.createPortal!==void 0;function pi(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Sb(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function Ed(e){var t=e.title,n=e.data,r=e.warn,i=r===void 0?!1:r,a=e.debug,o=a===void 0?!1:a,u=i?console.warn||console.error:console.log;o&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach(function(l){le.plainObject(l)&&l.key?u.apply(console,[l.key,l.value]):u.apply(console,[l])}):u.apply(console,[n]),console.groupEnd())}function Ble(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,n,r)}function Lle(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,n,r)}function Vle(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;i=function(o){n(o),Lle(e,t,i)},Ble(e,t,i,r)}function i2(){}var h8=function(e){df(n,e);var t=hf(n);function n(){return cf(this,n),t.apply(this,arguments)}return ff(n,[{key:"componentDidMount",value:function(){pi()&&(this.node||this.appendNode(),Ll||this.renderPortal())}},{key:"componentDidUpdate",value:function(){pi()&&(Ll||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!pi()||!this.node||(Ll||Na.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,a=i.id,o=i.zIndex;this.node||(this.node=document.createElement("div"),a&&(this.node.id=a),o&&(this.node.style.zIndex=o),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!pi())return null;var i=this.props,a=i.children,o=i.setRef;if(this.node||this.appendNode(),Ll)return Na.createPortal(a,this.node);var u=Na.unstable_renderSubtreeIntoContainer(this,a.length>1?C.createElement("div",null,a):a[0],this.node);return o(u),null}},{key:"renderReact16",value:function(){var i=this.props,a=i.hasChildren,o=i.placement,u=i.target;return a?this.renderPortal():u||o==="center"?this.renderPortal():null}},{key:"render",value:function(){return Ll?this.renderReact16():null}}]),n}(C.Component);Dn(h8,"propTypes",{children:Te.oneOfType([Te.element,Te.array]),hasChildren:Te.bool,id:Te.oneOfType([Te.string,Te.number]),placement:Te.string,setRef:Te.func.isRequired,target:Te.oneOfType([Te.object,Te.string]),zIndex:Te.number});var p8=function(e){df(n,e);var t=hf(n);function n(){return cf(this,n),t.apply(this,arguments)}return ff(n,[{key:"parentStyle",get:function(){var i=this.props,a=i.placement,o=i.styles,u=o.arrow.length,l={pointerEvents:"none",position:"absolute",width:"100%"};return a.startsWith("top")?(l.bottom=0,l.left=0,l.right=0,l.height=u):a.startsWith("bottom")?(l.left=0,l.right=0,l.top=0,l.height=u):a.startsWith("left")?(l.right=0,l.top=0,l.bottom=0):a.startsWith("right")&&(l.left=0,l.top=0),l}},{key:"render",value:function(){var i=this.props,a=i.placement,o=i.setArrowRef,u=i.styles,l=u.arrow,f=l.color,d=l.display,h=l.length,p=l.margin,g=l.position,y=l.spread,$={display:d,position:g},D,b=y,v=h;return a.startsWith("top")?(D="0,0 ".concat(b/2,",").concat(v," ").concat(b,",0"),$.bottom=0,$.marginLeft=p,$.marginRight=p):a.startsWith("bottom")?(D="".concat(b,",").concat(v," ").concat(b/2,",0 0,").concat(v),$.top=0,$.marginLeft=p,$.marginRight=p):a.startsWith("left")?(v=y,b=h,D="0,0 ".concat(b,",").concat(v/2," 0,").concat(v),$.right=0,$.marginTop=p,$.marginBottom=p):a.startsWith("right")&&(v=y,b=h,D="".concat(b,",").concat(v," ").concat(b,",0 0,").concat(v/2),$.left=0,$.marginTop=p,$.marginBottom=p),C.createElement("div",{className:"__floater__arrow",style:this.parentStyle},C.createElement("span",{ref:o,style:$},C.createElement("svg",{width:b,height:v,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},C.createElement("polygon",{points:D,fill:f}))))}}]),n}(C.Component);Dn(p8,"propTypes",{placement:Te.string.isRequired,setArrowRef:Te.func.isRequired,styles:Te.object.isRequired});var Nle=["color","height","width"];function m8(e){var t=e.handleClick,n=e.styles,r=n.color,i=n.height,a=n.width,o=f8(n,Nle);return C.createElement("button",{"aria-label":"close",onClick:t,style:o,type:"button"},C.createElement("svg",{width:"".concat(a,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},C.createElement("g",null,C.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}))))}m8.propTypes={handleClick:Te.func.isRequired,styles:Te.object.isRequired};function g8(e){var t=e.content,n=e.footer,r=e.handleClick,i=e.open,a=e.positionWrapper,o=e.showCloseButton,u=e.title,l=e.styles,f={content:C.isValidElement(t)?t:C.createElement("div",{className:"__floater__content",style:l.content},t)};return u&&(f.title=C.isValidElement(u)?u:C.createElement("div",{className:"__floater__title",style:l.title},u)),n&&(f.footer=C.isValidElement(n)?n:C.createElement("div",{className:"__floater__footer",style:l.footer},n)),(o||a)&&!le.boolean(i)&&(f.close=C.createElement(m8,{styles:l.close,handleClick:r})),C.createElement("div",{className:"__floater__container",style:l.container},f.close,f.title,f.content,f.footer)}g8.propTypes={content:Te.node.isRequired,footer:Te.node,handleClick:Te.func.isRequired,open:Te.bool,positionWrapper:Te.bool.isRequired,showCloseButton:Te.bool.isRequired,styles:Te.object.isRequired,title:Te.node};var y8=function(e){df(n,e);var t=hf(n);function n(){return cf(this,n),t.apply(this,arguments)}return ff(n,[{key:"style",get:function(){var i=this.props,a=i.disableAnimation,o=i.component,u=i.placement,l=i.hideArrow,f=i.status,d=i.styles,h=d.arrow.length,p=d.floater,g=d.floaterCentered,y=d.floaterClosing,$=d.floaterOpening,D=d.floaterWithAnimation,b=d.floaterWithComponent,v={};return l||(u.startsWith("top")?v.padding="0 0 ".concat(h,"px"):u.startsWith("bottom")?v.padding="".concat(h,"px 0 0"):u.startsWith("left")?v.padding="0 ".concat(h,"px 0 0"):u.startsWith("right")&&(v.padding="0 0 0 ".concat(h,"px"))),[st.OPENING,st.OPEN].indexOf(f)!==-1&&(v=Mt(Mt({},v),$)),f===st.CLOSING&&(v=Mt(Mt({},v),y)),f===st.OPEN&&!a&&(v=Mt(Mt({},v),D)),u==="center"&&(v=Mt(Mt({},v),g)),o&&(v=Mt(Mt({},v),b)),Mt(Mt({},p),v)}},{key:"render",value:function(){var i=this.props,a=i.component,o=i.handleClick,u=i.hideArrow,l=i.setFloaterRef,f=i.status,d={},h=["__floater"];return a?C.isValidElement(a)?d.content=C.cloneElement(a,{closeFn:o}):d.content=a({closeFn:o}):d.content=C.createElement(g8,this.props),f===st.OPEN&&h.push("__floater__open"),u||(d.arrow=C.createElement(p8,this.props)),C.createElement("div",{ref:l,className:h.join(" "),style:this.style},C.createElement("div",{className:"__floater__body"},d.content,d.arrow))}}]),n}(C.Component);Dn(y8,"propTypes",{component:Te.oneOfType([Te.func,Te.element]),content:Te.node,disableAnimation:Te.bool.isRequired,footer:Te.node,handleClick:Te.func.isRequired,hideArrow:Te.bool.isRequired,open:Te.bool,placement:Te.string.isRequired,positionWrapper:Te.bool.isRequired,setArrowRef:Te.func.isRequired,setFloaterRef:Te.func.isRequired,showCloseButton:Te.bool,status:Te.string.isRequired,styles:Te.object.isRequired,title:Te.node});var v8=function(e){df(n,e);var t=hf(n);function n(){return cf(this,n),t.apply(this,arguments)}return ff(n,[{key:"render",value:function(){var i=this.props,a=i.children,o=i.handleClick,u=i.handleMouseEnter,l=i.handleMouseLeave,f=i.setChildRef,d=i.setWrapperRef,h=i.style,p=i.styles,g;if(a)if(C.Children.count(a)===1)if(!C.isValidElement(a))g=C.createElement("span",null,a);else{var y=le.function(a.type)?"innerRef":"ref";g=C.cloneElement(C.Children.only(a),Dn({},y,f))}else g=a;return g?C.createElement("span",{ref:d,style:Mt(Mt({},p),h),onClick:o,onMouseEnter:u,onMouseLeave:l},g):null}}]),n}(C.Component);Dn(v8,"propTypes",{children:Te.node,handleClick:Te.func.isRequired,handleMouseEnter:Te.func.isRequired,handleMouseLeave:Te.func.isRequired,setChildRef:Te.func.isRequired,setWrapperRef:Te.func.isRequired,style:Te.object,styles:Te.object.isRequired});var jle={zIndex:100};function Kle(e){var t=zr(jle,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 Ule=["arrow","flip","offset"],zle=["position","top","right","bottom","left"],j3=function(e){df(n,e);var t=hf(n);function n(r){var i;return cf(this,n),i=t.call(this,r),Dn(Gi(i),"setArrowRef",function(a){i.arrowRef=a}),Dn(Gi(i),"setChildRef",function(a){i.childRef=a}),Dn(Gi(i),"setFloaterRef",function(a){i.floaterRef=a}),Dn(Gi(i),"setWrapperRef",function(a){i.wrapperRef=a}),Dn(Gi(i),"handleTransitionEnd",function(){var a=i.state.status,o=i.props.callback;i.wrapperPopper&&i.wrapperPopper.instance.update(),i.setState({status:a===st.OPENING?st.OPEN:st.IDLE},function(){var u=i.state.status;o(u===st.OPEN?"open":"close",i.props)})}),Dn(Gi(i),"handleClick",function(){var a=i.props,o=a.event,u=a.open;if(!le.boolean(u)){var l=i.state,f=l.positionWrapper,d=l.status;(i.event==="click"||i.event==="hover"&&f)&&(Ed({title:"click",data:[{event:o,status:d===st.OPEN?"closing":"opening"}],debug:i.debug}),i.toggle())}}),Dn(Gi(i),"handleMouseEnter",function(){var a=i.props,o=a.event,u=a.open;if(!(le.boolean(u)||Sb())){var l=i.state.status;i.event==="hover"&&l===st.IDLE&&(Ed({title:"mouseEnter",data:[{key:"originalEvent",value:o}],debug:i.debug}),clearTimeout(i.eventDelayTimeout),i.toggle())}}),Dn(Gi(i),"handleMouseLeave",function(){var a=i.props,o=a.event,u=a.eventDelay,l=a.open;if(!(le.boolean(l)||Sb())){var f=i.state,d=f.status,h=f.positionWrapper;i.event==="hover"&&(Ed({title:"mouseLeave",data:[{key:"originalEvent",value:o}],debug:i.debug}),u?[st.OPENING,st.OPEN].indexOf(d)!==-1&&!h&&!i.eventDelayTimeout&&(i.eventDelayTimeout=setTimeout(function(){delete i.eventDelayTimeout,i.toggle()},u*1e3)):i.toggle(st.IDLE))}}),i.state={currentPlacement:r.placement,needsUpdate:!1,positionWrapper:r.wrapperOptions.position&&!!r.target,status:st.INIT,statusWrapper:st.INIT},i._isMounted=!1,i.hasMounted=!1,pi()&&window.addEventListener("load",function(){i.popper&&i.popper.instance.update(),i.wrapperPopper&&i.wrapperPopper.instance.update()}),i}return ff(n,[{key:"componentDidMount",value:function(){if(pi()){var i=this.state.positionWrapper,a=this.props,o=a.children,u=a.open,l=a.target;this._isMounted=!0,Ed({title:"init",data:{hasChildren:!!o,hasTarget:!!l,isControlled:le.boolean(u),positionWrapper:i,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!o&&l&&le.boolean(u)}}},{key:"componentDidUpdate",value:function(i,a){if(pi()){var o=this.props,u=o.autoOpen,l=o.open,f=o.target,d=o.wrapperOptions,h=Cle(a,this.state),p=h.changedFrom,g=h.changed;if(i.open!==l){var y;le.boolean(l)&&(y=l?st.OPENING:st.CLOSING),this.toggle(y)}(i.wrapperOptions.position!==d.position||i.target!==f)&&this.changeWrapperPosition(this.props),g("status",st.IDLE)&&l?this.toggle(st.OPEN):p("status",st.INIT,st.IDLE)&&u&&this.toggle(st.OPEN),this.popper&&g("status",st.OPENING)&&this.popper.instance.update(),this.floaterRef&&(g("status",st.OPENING)||g("status",st.CLOSING))&&Vle(this.floaterRef,"transitionend",this.handleTransitionEnd),g("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){pi()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var i=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target,o=this.state.positionWrapper,u=this.props,l=u.disableFlip,f=u.getPopper,d=u.hideArrow,h=u.offset,p=u.placement,g=u.wrapperOptions,y=p==="top"||p==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(p==="center")this.setState({status:st.IDLE});else if(a&&this.floaterRef){var $=this.options,D=$.arrow,b=$.flip,v=$.offset,w=f8($,Ule);new Mc(a,this.floaterRef,{placement:p,modifiers:Mt({arrow:Mt({enabled:!d,element:this.arrowRef},D),flip:Mt({enabled:!l,behavior:y},b),offset:Mt({offset:"0, ".concat(h,"px")},v)},w),onCreate:function(A){var M;if(i.popper=A,!((M=i.floaterRef)!==null&&M!==void 0&&M.isConnected)){i.setState({needsUpdate:!0});return}f(A,"floater"),i._isMounted&&i.setState({currentPlacement:A.placement,status:st.IDLE}),p!==A.placement&&setTimeout(function(){A.instance.update()},1)},onUpdate:function(A){i.popper=A;var M=i.state.currentPlacement;i._isMounted&&A.placement!==M&&i.setState({currentPlacement:A.placement})}})}if(o){var T=le.undefined(g.offset)?0:g.offset;new Mc(this.target,this.wrapperRef,{placement:g.placement||p,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(T,"px")},flip:{enabled:!1}},onCreate:function(A){i.wrapperPopper=A,i._isMounted&&i.setState({statusWrapper:st.IDLE}),f(A,"wrapper"),p!==A.placement&&setTimeout(function(){A.instance.update()},1)}})}}},{key:"rebuildPopper",value:function(){var i=this;this.floaterRefInterval=setInterval(function(){var a;(a=i.floaterRef)!==null&&a!==void 0&&a.isConnected&&(clearInterval(i.floaterRefInterval),i.setState({needsUpdate:!1}),i.initPopper())},50)}},{key:"changeWrapperPosition",value:function(i){var a=i.target,o=i.wrapperOptions;this.setState({positionWrapper:o.position&&!!a})}},{key:"toggle",value:function(i){var a=this.state.status,o=a===st.OPEN?st.CLOSING:st.OPENING;le.undefined(i)||(o=i),this.setState({status:o})}},{key:"debug",get:function(){var i=this.props.debug;return i||pi()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var i=this.props,a=i.disableHoverToClick,o=i.event;return o==="hover"&&Sb()&&!a?"click":o}},{key:"options",get:function(){var i=this.props.options;return zr(_le,i||{})}},{key:"styles",get:function(){var i=this,a=this.state,o=a.status,u=a.positionWrapper,l=a.statusWrapper,f=this.props.styles,d=zr(Kle(f),f);if(u){var h;[st.IDLE].indexOf(o)===-1||[st.IDLE].indexOf(l)===-1?h=d.wrapperPosition:h=this.wrapperPopper.styles,d.wrapper=Mt(Mt({},d.wrapper),h)}if(this.target){var p=window.getComputedStyle(this.target);this.wrapperStyles?d.wrapper=Mt(Mt({},d.wrapper),this.wrapperStyles):["relative","static"].indexOf(p.position)===-1&&(this.wrapperStyles={},u||(zle.forEach(function(g){i.wrapperStyles[g]=p[g]}),d.wrapper=Mt(Mt({},d.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 d}},{key:"target",get:function(){if(!pi())return null;var i=this.props.target;return i?le.domElement(i)?i:document.querySelector(i):this.childRef||this.wrapperRef}},{key:"render",value:function(){var i=this.state,a=i.currentPlacement,o=i.positionWrapper,u=i.status,l=this.props,f=l.children,d=l.component,h=l.content,p=l.disableAnimation,g=l.footer,y=l.hideArrow,$=l.id,D=l.open,b=l.showCloseButton,v=l.style,w=l.target,T=l.title,E=C.createElement(v8,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:v,styles:this.styles.wrapper},f),A={};return o?A.wrapperInPortal=E:A.wrapperAsChildren=E,C.createElement("span",null,C.createElement(h8,{hasChildren:!!f,id:$,placement:a,setRef:this.setFloaterRef,target:w,zIndex:this.styles.options.zIndex},C.createElement(y8,{component:d,content:h,disableAnimation:p,footer:g,handleClick:this.handleClick,hideArrow:y||a==="center",open:D,placement:a,positionWrapper:o,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:b,status:u,styles:this.styles,title:T}),A.wrapperInPortal),A.wrapperAsChildren)}}]),n}(C.Component);Dn(j3,"propTypes",{autoOpen:Te.bool,callback:Te.func,children:Te.node,component:r2(Te.oneOfType([Te.func,Te.element]),function(e){return!e.content}),content:r2(Te.node,function(e){return!e.component}),debug:Te.bool,disableAnimation:Te.bool,disableFlip:Te.bool,disableHoverToClick:Te.bool,event:Te.oneOf(["hover","click"]),eventDelay:Te.number,footer:Te.node,getPopper:Te.func,hideArrow:Te.bool,id:Te.oneOfType([Te.string,Te.number]),offset:Te.number,open:Te.bool,options:Te.object,placement:Te.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:Te.bool,style:Te.object,styles:Te.object,target:Te.oneOfType([Te.object,Te.string]),title:Te.node,wrapperOptions:Te.shape({offset:Te.number,placement:Te.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:Te.bool})});Dn(j3,"defaultProps",{autoOpen:!1,callback:i2,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:i2,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var qle=Object.defineProperty,Wle=(e,t,n)=>t in e?qle(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ke=(e,t,n)=>Wle(e,typeof t!="symbol"?t+"":t,n),ct={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},Cr={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"},Ye={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},it={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished"};function ka(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function b8(e){return e?e.getBoundingClientRect():null}function Hle(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((a,o)=>a-o),i=Math.floor(r.length/2);return r.length%2===0?(r[i-1]+r[i])/2:r[i]}return Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}function Qi(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 Gle(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function Fc(e,t,n){if(!e)return Mo();const r=q9(e);if(r){if(r.isSameNode(Mo()))return n?document:Mo();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",Mo()}return r}function pf(e,t){if(!e)return!1;const n=Fc(e,t);return n?!n.isSameNode(Mo()):!1}function Yle(e){return e.offsetParent!==document.body}function Eu(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=Gle(e);return n==="BODY"||n==="HTML"?!1:r&&r.position===t?!0:e.parentNode?Eu(e.parentNode,t):!1}function Zle(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 Jle(e,t,n){var r,i,a;const o=b8(e),u=Fc(e,n),l=pf(e,n),f=Eu(e);let d=0,h=(r=o==null?void 0:o.top)!=null?r:0;if(l&&f){const p=(i=e==null?void 0:e.offsetTop)!=null?i:0,g=(a=u==null?void 0:u.scrollTop)!=null?a:0;h=p-g}else u instanceof HTMLElement&&(d=u.scrollTop,!l&&!Eu(e)&&(h+=d),u.isSameNode(Mo())||(h+=Mo().scrollTop));return Math.floor(h-t)}function Xle(e,t,n){var r;if(!e)return 0;const{offsetTop:i=0,scrollTop:a=0}=(r=q9(e))!=null?r:{};let o=e.getBoundingClientRect().top+a;i&&(pf(e,n)||Yle(e))&&(o-=i);const u=Math.floor(o-t);return u<0?0:u}function Mo(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function Qle(e,t){const{duration:n,element:r}=t;return new Promise((i,a)=>{const{scrollTop:o}=r,u=e>o?e-o:o-e;cue.top(r,e,{duration:u<100?50:n},l=>l&&l.message!=="Element already at target scroll position"?a(l):i())})}var Vl=Na.createPortal!==void 0;function $8(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 Hd(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function mi(e,t={}){const{defaultValue:n,step:r,steps:i}=t;let a=OT(e);if(a)(a.includes("{step}")||a.includes("{steps}"))&&r&&i&&(a=a.replace("{step}",r.toString()).replace("{steps}",i.toString()));else if(C.isValidElement(e)&&!Object.values(e.props).length&&Hd(e.type)==="function"){const o=e.type({});a=mi(o,t)}else a=OT(n);return a}function ece(e,t){return!Me.plainObject(e)||!Me.array(t)?!1:Object.keys(e).every(n=>t.includes(n))}function tce(e){const t=/^#?([\da-f])([\da-f])([\da-f])$/i,n=e.replace(t,(i,a,o,u)=>a+a+o+o+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 a2(e){return e.disableBeacon||e.placement==="center"}function o2(){return!["chrome","safari","firefox","opera"].includes($8())}function Ya({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(a=>{Me.plainObject(a)&&a.key?i.apply(console,[a.key,a.value]):i.apply(console,[a])}):i.apply(console,[e]),console.groupEnd()):console.error("Missing title or data props"))}function nce(e){return Object.keys(e)}function x8(e,...t){if(!Me.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 rce(e,...t){if(!Me.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 l1(e,t,n){const r=a=>a.replace("{step}",String(t)).replace("{steps}",String(n));if(Hd(e)==="string")return r(e);if(!C.isValidElement(e))return e;const{children:i}=e.props;if(Hd(i)==="string"&&i.includes("{step}"))return C.cloneElement(e,{children:r(i)});if(Array.isArray(i))return C.cloneElement(e,{children:i.map(a=>typeof a=="string"?r(a):l1(a,t,n))});if(Hd(e.type)==="function"&&!Object.values(e.props).length){const a=e.type({});return l1(a,t,n)}return e}function ice(e){const{isFirstStep:t,lifecycle:n,previousLifecycle:r,scrollToFirstStep:i,step:a,target:o}=e;return!a.disableScrolling&&(!t||i||n===Ye.TOOLTIP)&&a.placement!=="center"&&(!a.isFixed||!Eu(o))&&r!==n&&[Ye.BEACON,Ye.TOOLTIP].includes(n)}var ace={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},w8={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},oce={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:w8,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},sce={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:[]},uce={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},Nl={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},s2={borderRadius:4,position:"absolute"};function lce(e,t){var n,r,i,a,o;const{floaterProps:u,styles:l}=e,f=zr((n=t.floaterProps)!=null?n:{},u??{}),d=zr(l??{},(r=t.styles)!=null?r:{}),h=zr(uce,d.options||{}),p=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 y={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:h.zIndex},$={beacon:{...Nl,display:p?"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(${tce(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:{...Nl,backgroundColor:h.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...Nl,color:h.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...Nl,color:h.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...Nl,color:h.textColor,fontSize:14},overlay:{...y,backgroundColor:h.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...y},overlayLegacyCenter:{...y,backgroundColor:h.overlayColor},spotlight:{...s2,backgroundColor:"gray"},spotlightLegacy:{...s2,boxShadow:`0 0 0 9999px ${h.overlayColor}, ${h.spotlightShadow}`},floaterStyles:{arrow:{color:(o=(a=(i=f==null?void 0:f.styles)==null?void 0:i.arrow)==null?void 0:a.color)!=null?o:h.arrowColor},options:{zIndex:h.zIndex+100}},options:h};return zr($,d)}function cce(e){return rce(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function Ms(e,t){var n,r,i,a,o,u;const l=t??{},f=zr.all([oce,cce(e),l],{isMergeableObject:Me.plainObject}),d=lce(e,f),h=pf(Qi(f.target),f.disableScrollParentFix),p=zr.all([ace,(n=e.floaterProps)!=null?n:{},(r=f.floaterProps)!=null?r:{}]);return p.offset=f.offset,p.styles=zr((i=p.styles)!=null?i:{},d.floaterStyles),p.offset+=(o=(a=e.spotlightPadding)!=null?a:f.spotlightPadding)!=null?o:0,f.placementBeacon&&p.wrapperOptions&&(p.wrapperOptions.placement=f.placementBeacon),h&&p.options.preventOverflow&&(p.options.preventOverflow.boundariesElement="window"),{...f,locale:zr.all([w8,(u=e.locale)!=null?u:{},f.locale||{}]),floaterProps:p,styles:x8(d,"floaterStyles")}}function D8(e,t=!1){return Me.plainObject(e)?e.target?!0:(Ya({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(Ya({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function u2(e,t=!1){return Me.array(e)?e.every(n=>D8(n,t)):(Ya({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var C8={action:"init",controlled:!1,index:0,lifecycle:Ye.INIT,origin:null,size:0,status:it.IDLE},l2=nce(x8(C8,"controlled","size")),fce=class{constructor(e){ke(this,"beaconPopper"),ke(this,"tooltipPopper"),ke(this,"data",new Map),ke(this,"listener"),ke(this,"store",new Map),ke(this,"addListener",i=>{this.listener=i}),ke(this,"setSteps",i=>{const{size:a,status:o}=this.getState(),u={size:i.length,status:o};this.data.set("steps",i),o===it.WAITING&&!a&&i.length&&(u.status=it.RUNNING),this.setState(u)}),ke(this,"getPopper",i=>i==="beacon"?this.beaconPopper:this.tooltipPopper),ke(this,"setPopper",(i,a)=>{i==="beacon"?this.beaconPopper=a:this.tooltipPopper=a}),ke(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),ke(this,"close",(i=null)=>{const{index:a,status:o}=this.getState();o===it.RUNNING&&this.setState({...this.getNextState({action:ct.CLOSE,index:a+1,origin:i})})}),ke(this,"go",i=>{const{controlled:a,status:o}=this.getState();if(a||o!==it.RUNNING)return;const u=this.getSteps()[i];this.setState({...this.getNextState({action:ct.GO,index:i}),status:u?o:it.FINISHED})}),ke(this,"info",()=>this.getState()),ke(this,"next",()=>{const{index:i,status:a}=this.getState();a===it.RUNNING&&this.setState(this.getNextState({action:ct.NEXT,index:i+1}))}),ke(this,"open",()=>{const{status:i}=this.getState();i===it.RUNNING&&this.setState({...this.getNextState({action:ct.UPDATE,lifecycle:Ye.TOOLTIP})})}),ke(this,"prev",()=>{const{index:i,status:a}=this.getState();a===it.RUNNING&&this.setState({...this.getNextState({action:ct.PREV,index:i-1})})}),ke(this,"reset",(i=!1)=>{const{controlled:a}=this.getState();a||this.setState({...this.getNextState({action:ct.RESET,index:0}),status:i?it.RUNNING:it.READY})}),ke(this,"skip",()=>{const{status:i}=this.getState();i===it.RUNNING&&this.setState({action:ct.SKIP,lifecycle:Ye.INIT,status:it.SKIPPED})}),ke(this,"start",i=>{const{index:a,size:o}=this.getState();this.setState({...this.getNextState({action:ct.START,index:Me.number(i)?i:a},!0),status:o?it.RUNNING:it.WAITING})}),ke(this,"stop",(i=!1)=>{const{index:a,status:o}=this.getState();[it.FINISHED,it.SKIPPED].includes(o)||this.setState({...this.getNextState({action:ct.STOP,index:a+(i?1:0)}),status:it.PAUSED})}),ke(this,"update",i=>{var a,o;if(!ece(i,l2))throw new Error(`State is not valid. Valid keys: ${l2.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...i,action:(a=i.action)!=null?a:ct.UPDATE,origin:(o=i.origin)!=null?o:null},!0)})});const{continuous:t=!1,stepIndex:n,steps:r=[]}=e??{};this.setState({action:ct.INIT,controlled:Me.number(n),continuous:t,index:Me.number(n)?n:0,lifecycle:Ye.INIT,origin:null,status:r.length?it.READY:it.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")||""}:{...C8}}getNextState(e,t=!1){var n,r,i,a,o;const{action:u,controlled:l,index:f,size:d,status:h}=this.getState(),p=Me.number(e.index)?e.index:f,g=l&&!t?f:Math.min(Math.max(p,0),d);return{action:(n=e.action)!=null?n:u,controlled:l,index:g,lifecycle:(r=e.lifecycle)!=null?r:Ye.INIT,origin:(i=e.origin)!=null?i:null,size:(a=e.size)!=null?a:d,status:g===d?it.FINISHED:(o=e.status)!=null?o: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:a,origin:o=null,size:u,status:l}={...n,...e};this.store.set("action",r),this.store.set("index",i),this.store.set("lifecycle",a),this.store.set("origin",o),this.store.set("size",u),this.store.set("status",l),t&&(this.store.set("controlled",e.controlled),this.store.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(n)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}};function dce(e){return new fce(e)}function hce({styles:e}){return be.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}var pce=hce,mce=class extends be.Component{constructor(){super(...arguments),ke(this,"isActive",!1),ke(this,"resizeTimeout"),ke(this,"scrollTimeout"),ke(this,"scrollParent"),ke(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),ke(this,"hideSpotlight",()=>{const{continuous:e,disableOverlay:t,lifecycle:n}=this.props,r=[Ye.INIT,Ye.BEACON,Ye.COMPLETE,Ye.ERROR];return t||(e?r.includes(n):n!==Ye.TOOLTIP)}),ke(this,"handleMouseMove",e=>{const{mouseOverSpotlight:t}=this.state,{height:n,left:r,position:i,top:a,width:o}=this.spotlightStyles,u=i==="fixed"?e.clientY:e.pageY,l=i==="fixed"?e.clientX:e.pageX,f=u>=a&&u<=a+n,h=l>=r&&l<=r+o&&f;h!==t&&this.updateState({mouseOverSpotlight:h})}),ke(this,"handleScroll",()=>{const{target:e}=this.props,t=Qi(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 Eu(t,"sticky")&&this.updateState({})}),ke(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=Qi(r);this.scrollParent=Fc(i??document.body,n,!0),this.isActive=!0,process.env.NODE_ENV!=="production"&&!t&&pf(i,!0)&&Ya({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:a}=this.props,{changed:o}=Lh(e,this.props);if(o("target")||o("disableScrollParentFix")){const u=Qi(a);this.scrollParent=Fc(u??document.body,n,!0)}o("lifecycle",Ye.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:u}=this.state;u||this.updateState({showSpotlight:!0})},100)),(o("spotlightClicks")||o("disableOverlay")||o("lifecycle"))&&(i&&r===Ye.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==Ye.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 o2()&&(i=n==="center"?r.overlayLegacyCenter:r.overlayLegacy),{cursor:t?"default":"pointer",height:Hle(),pointerEvents:e?"none":"auto",...i}}get spotlightStyles(){var e,t,n;const{showSpotlight:r}=this.state,{disableScrollParentFix:i=!1,spotlightClicks:a,spotlightPadding:o=0,styles:u,target:l}=this.props,f=Qi(l),d=b8(f),h=Eu(f),p=Jle(f,o,i);return{...o2()?u.spotlightLegacy:u.spotlight,height:Math.round(((e=d==null?void 0:d.height)!=null?e:0)+o*2),left:Math.round(((t=d==null?void 0:d.left)!=null?t:0)-o),opacity:r?1:0,pointerEvents:a?"none":"auto",position:h?"fixed":"absolute",top:p,transition:"opacity 0.2s",width:Math.round(((n=d==null?void 0:d.width)!=null?n:0)+o*2)}}updateState(e){this.isActive&&this.setState(t=>({...t,...e}))}render(){const{showSpotlight:e}=this.state,{onClickOverlay:t,placement:n}=this.props,{hideSpotlight:r,overlayStyles:i,spotlightStyles:a}=this;if(r())return null;let o=n!=="center"&&e&&be.createElement(pce,{styles:a});if($8()==="safari"){const{mixBlendMode:u,zIndex:l,...f}=i;o=be.createElement("div",{style:{...f}},o),delete i.backgroundColor}return be.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:i},o)}},gce=class extends be.Component{constructor(){super(...arguments),ke(this,"node",null)}componentDidMount(){const{id:e}=this.props;ka()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),Vl||this.renderReact15())}componentDidUpdate(){ka()&&(Vl||this.renderReact15())}componentWillUnmount(){!ka()||!this.node||(Vl||Sd.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!ka())return;const{children:e}=this.props;this.node&&Sd.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!ka()||!Vl)return null;const{children:e}=this.props;return this.node?Sd.createPortal(e,this.node):null}render(){return Vl?this.renderReact16():null}},yce=class{constructor(e,t){if(ke(this,"element"),ke(this,"options"),ke(this,"canBeTabbed",n=>{const{tabIndex:r}=n;return r===null||r<0?!1:this.canHaveFocus(n)}),ke(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)}),ke(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),ke(this,"handleKeyDown",n=>{const{code:r="Tab"}=this.options;n.code===r&&this.interceptTab(n)}),ke(this,"interceptTab",n=>{n.preventDefault();const r=this.findValidTabElements(),{shiftKey:i}=n;if(!r.length)return;let a=document.activeElement?r.indexOf(document.activeElement):0;a===-1||!i&&a+1===r.length?a=0:i&&a===0?a=r.length-1:a+=i?-1:1,r[a].focus()}),ke(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"}),ke(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}),ke(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),ke(this,"checkFocus",n=>{document.activeElement!==n&&(n.focus(),window.requestAnimationFrame(()=>this.checkFocus(n)))}),ke(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()}},vce=class extends be.Component{constructor(e){if(super(e),ke(this,"beacon",null),ke(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(`
|
|
188
|
+
@keyframes joyride-beacon-inner {
|
|
189
|
+
20% {
|
|
190
|
+
opacity: 0.9;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
90% {
|
|
194
|
+
opacity: 0.7;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
@keyframes joyride-beacon-outer {
|
|
199
|
+
0% {
|
|
200
|
+
transform: scale(1);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
45% {
|
|
204
|
+
opacity: 0.7;
|
|
205
|
+
transform: scale(0.75);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
100% {
|
|
209
|
+
opacity: 0.9;
|
|
210
|
+
transform: scale(1);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
`)),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;process.env.NODE_ENV!=="production"&&(Me.domElement(this.beacon)||console.warn("beacon is not a valid DOM element")),setTimeout(()=>{Me.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:a,size:o,step:u,styles:l}=this.props,f=mi(i.open),d={"aria-label":f,onClick:a,onMouseEnter:a,ref:this.setBeaconRef,title:f};let h;if(e){const p=e;h=be.createElement(p,{continuous:t,index:n,isLastStep:r,size:o,step:u,...d})}else h=be.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:l.beacon,type:"button",...d},be.createElement("span",{style:l.beaconInner}),be.createElement("span",{style:l.beaconOuter}));return h}};function bce({styles:e,...t}){const{color:n,height:r,width:i,...a}=e;return C.createElement("button",{style:a,type:"button",...t},C.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"},C.createElement("g",null,C.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 $ce=bce;function xce(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:a,skipProps:o,step:u,tooltipProps:l}=e,{content:f,hideBackButton:d,hideCloseButton:h,hideFooter:p,showSkipButton:g,styles:y,title:$}=u,D={};return D.primary=be.createElement("button",{"data-test-id":"button-primary",style:y.buttonNext,type:"button",...a}),g&&!i&&(D.skip=be.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:y.buttonSkip,type:"button",...o})),!d&&r>0&&(D.back=be.createElement("button",{"data-test-id":"button-back",style:y.buttonBack,type:"button",...t})),D.close=!h&&be.createElement($ce,{"data-test-id":"button-close",styles:y.buttonClose,...n}),be.createElement("div",{key:"JoyrideTooltip","aria-label":mi($??f),className:"react-joyride__tooltip",style:y.tooltip,...l},be.createElement("div",{style:y.tooltipContainer},$&&be.createElement("h1",{"aria-label":mi($),style:y.tooltipTitle},$),be.createElement("div",{style:y.tooltipContent},f)),!p&&be.createElement("div",{style:y.tooltipFooter},be.createElement("div",{style:y.tooltipFooterSpacer},D.skip),D.back,D.primary),D.close)}var wce=xce,Dce=class extends be.Component{constructor(){super(...arguments),ke(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),ke(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),ke(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;if(!t){n.close("button_primary");return}n.next()}),ke(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),ke(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:a}=this.props,{back:o,close:u,last:l,next:f,nextLabelWithProgress:d,skip:h}=a.locale,p=mi(o),g=mi(u),y=mi(l),$=mi(f),D=mi(h);let b=u,v=g;if(e){if(b=f,v=$,a.showProgress&&!n){const w=mi(d,{step:t+1,steps:i});b=l1(d,t+1,i),v=w}n&&(b=l,v=y)}return{backProps:{"aria-label":p,children:o,"data-action":"back",onClick:this.handleClickBack,role:"button",title:p},closeProps:{"aria-label":g,children:u,"data-action":"close",onClick:this.handleClickClose,role:"button",title:g},primaryProps:{"aria-label":v,children:b,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:v},skipProps:{"aria-label":D,children:h,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:D},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})}render(){const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:a}=this.props,{beaconComponent:o,tooltipComponent:u,...l}=a;let f;if(u){const d={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:l,setTooltipRef:r},h=u;f=be.createElement(h,{...d})}else f=be.createElement(wce,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:a});return f}},Cce=class extends be.Component{constructor(){super(...arguments),ke(this,"scope",null),ke(this,"tooltip",null),ke(this,"handleClickHoverBeacon",e=>{const{step:t,store:n}=this.props;e.type==="mouseenter"&&t.event!=="hover"||n.update({lifecycle:Ye.TOOLTIP})}),ke(this,"setTooltipRef",e=>{this.tooltip=e}),ke(this,"setPopper",(e,t)=>{var n;const{action:r,lifecycle:i,step:a,store:o}=this.props;t==="wrapper"?o.setPopper("beacon",e):o.setPopper("tooltip",e),o.getPopper("beacon")&&(o.getPopper("tooltip")||a.placement==="center")&&i===Ye.INIT&&o.update({action:r,lifecycle:Ye.READY}),(n=a.floaterProps)!=null&&n.getPopper&&a.floaterProps.getPopper(e,t)}),ke(this,"renderTooltip",e=>{const{continuous:t,helpers:n,index:r,size:i,step:a}=this.props;return be.createElement(Dce,{continuous:t,helpers:n,index:r,isLastStep:r+1===i,setTooltipRef:this.setTooltipRef,size:i,step:a,...e})})}componentDidMount(){const{debug:e,index:t}=this.props;Ya({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:n,callback:r,continuous:i,controlled:a,debug:o,helpers:u,index:l,lifecycle:f,shouldScroll:d,status:h,step:p,store:g}=this.props,{changed:y,changedFrom:$}=Lh(e,this.props),D=u.info(),b=i&&n!==ct.CLOSE&&(l>0||n===ct.PREV),v=y("action")||y("index")||y("lifecycle")||y("status"),w=$("lifecycle",[Ye.TOOLTIP,Ye.INIT],Ye.INIT),T=y("action",[ct.NEXT,ct.PREV,ct.SKIP,ct.CLOSE]),E=a&&l===e.index;if(T&&(w||E)&&r({...D,index:e.index,lifecycle:Ye.COMPLETE,step:e.step,type:Cr.STEP_AFTER}),p.placement==="center"&&h===it.RUNNING&&y("index")&&n!==ct.START&&f===Ye.INIT&&g.update({lifecycle:Ye.READY}),v){const A=Qi(p.target),M=!!A;M&&Zle(A)?($("status",it.READY,it.RUNNING)||$("lifecycle",Ye.INIT,Ye.READY))&&r({...D,step:p,type:Cr.STEP_BEFORE}):(console.warn(M?"Target not visible":"Target not mounted",p),r({...D,type:Cr.TARGET_NOT_FOUND,step:p}),a||g.update({index:l+(n===ct.PREV?-1:1)}))}$("lifecycle",Ye.INIT,Ye.READY)&&g.update({lifecycle:a2(p)||b?Ye.TOOLTIP:Ye.BEACON}),y("index")&&Ya({title:`step:${f}`,data:[{key:"props",value:this.props}],debug:o}),y("lifecycle",Ye.BEACON)&&r({...D,step:p,type:Cr.BEACON}),y("lifecycle",Ye.TOOLTIP)&&(r({...D,step:p,type:Cr.TOOLTIP}),d&&this.tooltip&&(this.scope=new yce(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),$("lifecycle",[Ye.TOOLTIP,Ye.INIT],Ye.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 a2(t)||e===Ye.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:a,step:o}=this.props,u=Qi(o.target);return!D8(o)||!Me.domElement(u)?null:be.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},be.createElement(j3,{...o.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:o.placement,target:o.target},be.createElement(vce,{beaconComponent:o.beaconComponent,continuous:e,index:n,isLastStep:n+1===a,locale:o.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:a,step:o,styles:o.styles})))}},E8=class extends be.Component{constructor(e){super(e),ke(this,"helpers"),ke(this,"store"),ke(this,"callback",o=>{const{callback:u}=this.props;Me.function(u)&&u(o)}),ke(this,"handleKeyboard",o=>{const{index:u,lifecycle:l}=this.state,{steps:f}=this.props,d=f[u];l===Ye.TOOLTIP&&o.code==="Escape"&&d&&!d.disableCloseOnEsc&&this.store.close("keyboard")}),ke(this,"handleClickOverlay",()=>{const{index:o}=this.state,{steps:u}=this.props;Ms(this.props,u[o]).disableOverlayClose||this.helpers.close("overlay")}),ke(this,"syncState",o=>{this.setState(o)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:i}=e;this.store=dce({...e,controlled:r&&Me.number(i)}),this.helpers=this.store.getHelpers();const{addListener:a}=this.store;Ya({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),a(this.syncState),n&&n(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!ka())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;u2(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!ka())return;const{action:n,controlled:r,index:i,status:a}=this.state,{debug:o,run:u,stepIndex:l,steps:f}=this.props,{stepIndex:d,steps:h}=e,{reset:p,setSteps:g,start:y,stop:$,update:D}=this.store,{changed:b}=Lh(e,this.props),{changed:v,changedFrom:w}=Lh(t,this.state),T=Ms(this.props,f[i]),E=!Mn(h,f),A=Me.number(l)&&b("stepIndex"),M=Qi(T.target);if(E&&(u2(f,o)?g(f):console.warn("Steps are not valid",f)),b("run")&&(u?y(l):$()),A){let j=Me.number(d)&&d<l?ct.NEXT:ct.PREV;n===ct.STOP&&(j=ct.START),[it.FINISHED,it.SKIPPED].includes(a)||D({action:n===ct.CLOSE?ct.CLOSE:j,index:l,lifecycle:Ye.INIT})}!r&&a===it.RUNNING&&i===0&&!M&&(this.store.update({index:i+1}),this.callback({...this.state,type:Cr.TARGET_NOT_FOUND,step:T}));const S={...this.state,index:i,step:T};if(v("action",[ct.NEXT,ct.PREV,ct.SKIP,ct.CLOSE])&&v("status",it.PAUSED)){const j=Ms(this.props,f[t.index]);this.callback({...S,index:t.index,lifecycle:Ye.COMPLETE,step:j,type:Cr.STEP_AFTER})}if(v("status",[it.FINISHED,it.SKIPPED])){const j=Ms(this.props,f[t.index]);r||this.callback({...S,index:t.index,lifecycle:Ye.COMPLETE,step:j,type:Cr.STEP_AFTER}),this.callback({...S,type:Cr.TOUR_END,step:j,index:t.index}),p()}else w("status",[it.IDLE,it.READY],it.RUNNING)?this.callback({...S,type:Cr.TOUR_START}):(v("status")||v("action",ct.RESET))&&this.callback({...S,type:Cr.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:a=!1,scrollDuration:o,scrollOffset:u=20,scrollToFirstStep:l=!1,steps:f}=this.props,d=Ms(this.props,f[t]),h=Qi(d.target),p=ice({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:l,step:d,target:h});if(r===it.RUNNING&&p){const g=pf(h,a),y=Fc(h,a);let $=Math.floor(Xle(h,u,a))||0;Ya({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const D=this.store.getPopper("beacon"),b=this.store.getPopper("tooltip");if(n===Ye.BEACON&&D){const{offsets:v,placement:w}=D;!["bottom"].includes(w)&&!g&&($=Math.floor(v.popper.top-u))}else if(n===Ye.TOOLTIP&&b){const{flipped:v,offsets:w,placement:T}=b;["top","right","left"].includes(T)&&!v&&!g?$=Math.floor(w.popper.top-u):$-=d.spotlightPadding}$=$>=0?$:0,r===it.RUNNING&&Qle($,{element:y,duration:o}).then(()=>{setTimeout(()=>{var v;(v=this.store.getPopper("tooltip"))==null||v.instance.update()},10)})}}render(){if(!ka())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:a,scrollToFirstStep:o=!1,steps:u}=this.props,l=n===it.RUNNING,f={};if(l&&u[e]){const d=Ms(this.props,u[e]);f.step=be.createElement(Cce,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:a,shouldScroll:!d.disableScrolling&&(e!==0||o),step:d,store:this.store}),f.overlay=be.createElement(gce,{id:"react-joyride-portal"},be.createElement(mce,{...d,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return be.createElement("div",{className:"react-joyride"},f.step,f.overlay)}};ke(E8,"defaultProps",sce);var Ece=E8;exports.$131cf43a05231e1e$export$6d095e787d2b5e1f=e7;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=GA;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=Kc;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=gq;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=on;exports.$16f0b7bb276bc17e$export$4c842f6a241dc825=RH;exports.$16f0b7bb276bc17e$export$5591b0b878c1a989=XR;exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7=Sn;exports.$28f99e3e86e6ec45$export$e5fda3247f5d67f9=FW;exports.$293f70390ea03370$export$497855f14858aa34=EH;exports.$32489daedd52963e$export$1315d136e6f7581=BH;exports.$337b884510726a0d$export$c6fdb837b070b4ff=lH;exports.$36a0ac60f04457c5$export$136073280381448e=CW;exports.$3c0fc76039f1c516$export$60e84778edff6d26=N7;exports.$40df3f8667284809$export$d55e7ee900f34e93=jH;exports.$46a4342aab3d8076$export$87e0539f600c24e5=xW;exports.$47b897dc8cdb026b$export$8d15029008292ae=LW;exports.$5c3e21d68f1c4674$export$439d29a4e110a164=IW;exports.$6057a3d2a53a12fd$export$42df105a73306d51=MH;exports.$64244302c3013299$export$dd0bbc9b26defe37=tW;exports.$701a24aa0da5b062$export$ea18c227d4417cc3=mW;exports.$887cac91b7cc8801$export$12fd5f0e9f4bb192=NH;exports.$93c38a5e28be6249$export$e50a61c1de9f574=sG;exports.$9942cad8a072a530$export$3ee915f8151bd4f1=$W;exports.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90=KH;exports.$a916eb452884faea$export$b7a616150fdb9f44=pW;exports.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e=GH;exports.$ab5bf3f618090389$export$87194bb378cc3ac2=eG;exports.$bb77f239b46e8c72$export$3274cf84b703fff=CP;exports.$bcca50147b47f54d$export$56b2c08e277f365=BW;exports.$c132121280ec012d$export$50eacbbf140a3141=yH;exports.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2=bH;exports.$c350ade66beef0af$export$8c18d1b4f7232bbf=PH;exports.$e3031d1f8c9d64eb$export$cb95147730a423f5=wW;exports.$eff5d8ee529ac4bb$export$fd53cef0cc796101=uG;exports.$f2f8a6077418541e$export$542a6fd13ac93354=oH;exports.$fae977aafc393c5c$export$588937bcd60ade55=_q;exports.$fae977aafc393c5c$export$6b862160d295c8e=Pq;exports.ACTIONS=ct;exports.AdvancedImage=JZ;exports.Cloudinary=WJ;exports.Controller=TU;exports.EVENTS=Cr;exports.FormProvider=CU;exports.LazyMotion=qse;exports.M=jr;exports.R=Jo;exports.ReorderGroup=oie;exports.ReorderItem=cie;exports.STATUS=it;exports._=xU;exports.autoUpdate=GK;exports.components_default=Ece;exports.dayjs=dG;exports.domAnimation=Wse;exports.dt=k2;exports.ee=U7;exports.flip=tU;exports.isNumber=gie;exports.lazyload=bZ;exports.lodashExports=nA;exports.lt=m1;exports.m=zse;exports.mt=cK;exports.nt=sK;exports.o=hie;exports.offset=QK;exports.ot=uK;exports.placeholder=DZ;exports.prismExports=PQ;exports.q=X1;exports.shift=eU;exports.some=TQ;exports.useFloating=pU;exports.useFloating$1=J2;exports.useFocus=mU;exports.useForm=VU;exports.useFormContext=ep;exports.useHover=fU;exports.useInteractions=gU;exports.useRole=vU;exports.useWatch=dA;
|