@fluidattacks/design 3.6.1 → 3.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/@core/index.js +1 -1
- package/dist/components/accordion/accordion-content/index.js +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/card/card-header/index.js +1 -1
- package/dist/components/card/card-with-image/index.js +1 -1
- package/dist/components/card/card-with-input/index.js +1 -1
- package/dist/components/card/card-with-selector/index.js +1 -1
- package/dist/components/card/card-with-switch/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/cloud-image/index.js +1 -1
- package/dist/components/code-snippet/index.js +1 -1
- package/dist/components/code-snippet/location-code/index.js +1 -1
- package/dist/components/colors/index.js +1 -1
- package/dist/components/confirm-dialog/index.js +1 -1
- package/dist/components/container/index.js +1 -1
- package/dist/components/content-card/category-tag/index.js +1 -1
- package/dist/components/content-card/event-date/index.js +1 -1
- package/dist/components/content-card/index.js +1 -1
- package/dist/components/content-card-carousel/index.js +1 -1
- package/dist/components/content-card-carousel/scroll-buttons/index.js +1 -1
- package/dist/components/divider/index.js +1 -1
- package/dist/components/empty-state/empty-button/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/file-preview/index.js +1 -1
- package/dist/components/form/index.d.ts +2 -2
- package/dist/components/form/index.js +1 -1
- package/dist/components/form/types.d.ts +2 -2
- package/dist/components/grid-container/index.js +1 -1
- package/dist/components/group-selector/index.js +1 -1
- package/dist/components/group-selector/option-container/index.js +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/indicator-card/index.js +1 -1
- package/dist/components/info-sidebar/index.js +1 -1
- package/dist/components/inputs/fields/combobox/index.js +1 -1
- package/dist/components/inputs/fields/combobox/option/index.js +1 -1
- package/dist/components/inputs/fields/combobox/types.d.ts +2 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date/index.js +1 -1
- package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-range/index.js +1 -1
- package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-time/index.js +1 -1
- package/dist/components/inputs/fields/editable/index.js +1 -1
- package/dist/components/inputs/fields/input/index.js +1 -1
- package/dist/components/inputs/fields/input-file/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/index.js +1 -1
- package/dist/components/inputs/fields/number/index.js +1 -1
- package/dist/components/inputs/fields/number-range/index.js +1 -1
- package/dist/components/inputs/fields/phone/index.js +1 -1
- package/dist/components/inputs/fields/text-area/index.js +1 -1
- package/dist/components/inputs/index.js +1 -1
- package/dist/components/inputs/label/index.js +1 -1
- package/dist/components/inputs/outline-container/index.js +1 -1
- package/dist/components/inputs/utils/action-button/index.js +1 -1
- package/dist/components/inputs/utils/calendar-button/index.js +1 -1
- package/dist/components/inputs/utils/date-selector/index.js +1 -1
- package/dist/components/inputs/utils/date-time-field/index.js +1 -1
- package/dist/components/inputs/utils/dialog/index.js +1 -1
- package/dist/components/inputs/utils/number-field/index.js +1 -1
- package/dist/components/inputs/utils/popover/index.js +1 -1
- package/dist/components/interactive-card/icon/index.js +1 -1
- package/dist/components/interactive-card/index.js +1 -1
- package/dist/components/language-selector/index.js +1 -1
- package/dist/components/language-selector/item-list/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list-item/index.d.ts +1 -1
- package/dist/components/list-item/index.js +1 -1
- package/dist/components/list-item/types.d.ts +1 -0
- package/dist/components/little-flag/index.js +1 -1
- package/dist/components/loading/index.js +1 -1
- package/dist/components/logo/index.js +1 -1
- package/dist/components/logo-carousel/index.js +1 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/components/message-banner/index.js +1 -1
- package/dist/components/modal/index.d.ts +3 -2
- package/dist/components/modal/index.js +1 -1
- package/dist/components/modal/modal-confirm/index.js +1 -1
- package/dist/components/modal/modal-footer/index.d.ts +1 -1
- package/dist/components/modal/modal-footer/index.js +1 -1
- package/dist/components/modal/modal-header/index.js +1 -1
- package/dist/components/modal/styles.d.ts +2 -1
- package/dist/components/modal/types.d.ts +2 -0
- package/dist/components/notification/index.js +1 -1
- package/dist/components/notification-sign/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/oauth-selector/index.js +1 -1
- package/dist/components/oauth-selector/option-container/index.js +1 -1
- package/dist/components/plan-card/index.js +1 -1
- package/dist/components/plan-card/recommended-tag/index.js +1 -1
- package/dist/components/pop-up/description/index.js +1 -1
- package/dist/components/pop-up/index.js +1 -1
- package/dist/components/premium-feature/index.js +1 -1
- package/dist/components/priority-score/index.js +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress-bar/index.js +1 -1
- package/dist/components/radio-button/index.js +1 -1
- package/dist/components/scroll-button/index.js +1 -1
- package/dist/components/search/index.js +1 -1
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-bar/item-searching/index.js +1 -1
- package/dist/components/severity-badge/index.js +1 -1
- package/dist/components/severity-overview/badge/index.js +1 -1
- package/dist/components/severity-overview/index.js +1 -1
- package/dist/components/show-on-hover/index.js +1 -1
- package/dist/components/slide-out-menu/index.js +1 -1
- package/dist/components/slide-out-menu/menu-item/index.js +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/thumb/index.js +1 -1
- package/dist/components/slider/types.d.ts +3 -1
- package/dist/components/sortable-list/index.d.ts +3 -0
- package/dist/components/sortable-list/index.js +1 -0
- package/dist/components/sortable-list/styles.d.ts +4 -0
- package/dist/components/sortable-list/types.d.ts +23 -0
- package/dist/components/step-lapse/index.js +1 -1
- package/dist/components/table-button/index.js +1 -1
- package/dist/components/tabs/fixed-tabs/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/tab/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/timeline/card/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toggle/index.js +1 -1
- package/dist/components/toggle-buttons/index.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tour/index.js +1 -1
- package/dist/components/typography/heading/index.js +1 -1
- package/dist/components/typography/index.js +1 -1
- package/dist/components/typography/span/index.js +1 -1
- package/dist/components/typography/text/index.js +1 -1
- package/dist/components/web-form/index.js +1 -1
- package/dist/{components-C59CBzCj.js → components-BMh9Zf75.js} +197 -193
- package/dist/{components-DS1UVPkm.mjs → components-DyfTfdiM.mjs} +1248 -1146
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{vendor-WdqNSr9B.mjs → vendor-BITLSjGK.mjs} +17859 -13056
- package/dist/vendor-CJw8qEWT.js +223 -0
- package/package.json +1 -1
- package/dist/vendor-BC9dYdeh.js +0 -223
package/dist/vendor-BC9dYdeh.js
DELETED
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
"use strict";require('./assets/vendor.css');const b=require("react"),ko=require("react-dom"),mm=require("react/jsx-runtime");function g$(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Ge=g$(b),cd=g$(ko);var zn=function(){return zn=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},zn.apply(this,arguments)};function Ea(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function cR(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var dR=/^((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)-.*))$/,fR=cR(function(e){return dR.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),xu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jt="-ms-",il="-moz-",Ct="-webkit-",y$="comm",yf="rule",Lg="decl",pR="@import",v$="@keyframes",hR="@layer",b$=Math.abs,Vg=String.fromCharCode,gm=Object.assign;function mR(e,t){return Dn(e,0)^45?(((t<<2^Dn(e,0))<<2^Dn(e,1))<<2^Dn(e,2))<<2^Dn(e,3):0}function $$(e){return e.trim()}function Zi(e,t){return(e=t.exec(e))?e[0]:e}function ot(e,t,n){return e.replace(t,n)}function dd(e,t,n){return e.indexOf(t,n)}function Dn(e,t){return e.charCodeAt(t)|0}function Bu(e,t,n){return e.slice(t,n)}function xi(e){return e.length}function x$(e){return e.length}function Zs(e,t){return t.push(e),e}function gR(e,t){return e.map(t).join("")}function O0(e,t){return e.filter(function(n){return!Zi(n,t)})}var vf=1,Iu=1,w$=0,Yr=0,dn=0,ts="";function bf(e,t,n,r,i,o,u,l){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:vf,column:Iu,length:u,return:"",siblings:l}}function Eo(e,t){return gm(bf("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function du(e){for(;e.root;)e=Eo(e.root,{children:[e]});Zs(e,e.siblings)}function yR(){return dn}function vR(){return dn=Yr>0?Dn(ts,--Yr):0,Iu--,dn===10&&(Iu=1,vf--),dn}function ui(){return dn=Yr<w$?Dn(ts,Yr++):0,Iu++,dn===10&&(Iu=1,vf++),dn}function $a(){return Dn(ts,Yr)}function fd(){return Yr}function $f(e,t){return Bu(ts,e,t)}function ym(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 bR(e){return vf=Iu=1,w$=xi(ts=e),Yr=0,[]}function $R(e){return ts="",e}function ph(e){return $$($f(Yr-1,vm(e===91?e+2:e===40?e+1:e)))}function xR(e){for(;(dn=$a())&&dn<33;)ui();return ym(e)>2||ym(dn)>3?"":" "}function wR(e,t){for(;--t&&ui()&&!(dn<48||dn>102||dn>57&&dn<65||dn>70&&dn<97););return $f(e,fd()+(t<6&&$a()==32&&ui()==32))}function vm(e){for(;ui();)switch(dn){case e:return Yr;case 34:case 39:e!==34&&e!==39&&vm(dn);break;case 40:e===41&&vm(e);break;case 92:ui();break}return Yr}function DR(e,t){for(;ui()&&e+dn!==57;)if(e+dn===84&&$a()===47)break;return"/*"+$f(t,Yr-1)+"*"+Vg(e===47?e:ui())}function ER(e){for(;!ym($a());)ui();return $f(e,Yr)}function CR(e){return $R(pd("",null,null,null,[""],e=bR(e),0,[0],e))}function pd(e,t,n,r,i,o,u,l,c){for(var d=0,f=0,h=u,g=0,m=0,$=0,w=1,C=1,x=1,v=0,D="",P=i,E=o,T=r,V=D;C;)switch($=v,v=ui()){case 40:if($!=108&&Dn(V,h-1)==58){dd(V+=ot(ph(v),"&","&\f"),"&\f",b$(d?l[d-1]:0))!=-1&&(x=-1);break}case 34:case 39:case 91:V+=ph(v);break;case 9:case 10:case 13:case 32:V+=xR($);break;case 92:V+=wR(fd()-1,7);continue;case 47:switch($a()){case 42:case 47:Zs(SR(DR(ui(),fd()),t,n,c),c);break;default:V+="/"}break;case 123*w:l[d++]=xi(V)*x;case 125*w:case 59:case 0:switch(v){case 0:case 125:C=0;case 59+f:x==-1&&(V=ot(V,/\f/g,"")),m>0&&xi(V)-h&&Zs(m>32?M0(V+";",r,n,h-1,c):M0(ot(V," ","")+";",r,n,h-2,c),c);break;case 59:V+=";";default:if(Zs(T=F0(V,t,n,d,f,i,l,D,P=[],E=[],h,o),o),v===123)if(f===0)pd(V,t,T,T,P,o,h,l,E);else switch(g===99&&Dn(V,3)===110?100:g){case 100:case 108:case 109:case 115:pd(e,T,T,r&&Zs(F0(e,T,T,0,0,i,l,D,i,P=[],h,E),E),i,E,h,l,r?P:E);break;default:pd(V,T,T,T,[""],E,0,l,E)}}d=f=m=0,w=x=1,D=V="",h=u;break;case 58:h=1+xi(V),m=$;default:if(w<1){if(v==123)--w;else if(v==125&&w++==0&&vR()==125)continue}switch(V+=Vg(v),v*w){case 38:x=f>0?1:(V+="\f",-1);break;case 44:l[d++]=(xi(V)-1)*x,x=1;break;case 64:$a()===45&&(V+=ph(ui())),g=$a(),f=h=xi(D=V+=ER(fd())),v++;break;case 45:$===45&&xi(V)==2&&(w=0)}}return o}function F0(e,t,n,r,i,o,u,l,c,d,f,h){for(var g=i-1,m=i===0?o:[""],$=x$(m),w=0,C=0,x=0;w<r;++w)for(var v=0,D=Bu(e,g+1,g=b$(C=u[w])),P=e;v<$;++v)(P=$$(C>0?m[v]+" "+D:ot(D,/&\f/g,m[v])))&&(c[x++]=P);return bf(e,t,n,i===0?yf:l,c,d,f,h)}function SR(e,t,n,r){return bf(e,t,n,y$,Vg(yR()),Bu(e,2,-2),0,r)}function M0(e,t,n,r,i){return bf(e,t,n,Lg,Bu(e,0,r),Bu(e,r+1,-1),r,i)}function D$(e,t,n){switch(mR(e,t)){case 5103:return Ct+"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 Ct+e+e;case 4789:return il+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ct+e+il+e+jt+e+e;case 5936:switch(Dn(e,t+11)){case 114:return Ct+e+jt+ot(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ct+e+jt+ot(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ct+e+jt+ot(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Ct+e+jt+e+e;case 6165:return Ct+e+jt+"flex-"+e+e;case 5187:return Ct+e+ot(e,/(\w+).+(:[^]+)/,Ct+"box-$1$2"+jt+"flex-$1$2")+e;case 5443:return Ct+e+jt+"flex-item-"+ot(e,/flex-|-self/g,"")+(Zi(e,/flex-|baseline/)?"":jt+"grid-row-"+ot(e,/flex-|-self/g,""))+e;case 4675:return Ct+e+jt+"flex-line-pack"+ot(e,/align-content|flex-|-self/g,"")+e;case 5548:return Ct+e+jt+ot(e,"shrink","negative")+e;case 5292:return Ct+e+jt+ot(e,"basis","preferred-size")+e;case 6060:return Ct+"box-"+ot(e,"-grow","")+Ct+e+jt+ot(e,"grow","positive")+e;case 4554:return Ct+ot(e,/([^-])(transform)/g,"$1"+Ct+"$2")+e;case 6187:return ot(ot(ot(e,/(zoom-|grab)/,Ct+"$1"),/(image-set)/,Ct+"$1"),e,"")+e;case 5495:case 3959:return ot(e,/(image-set\([^]*)/,Ct+"$1$`$1");case 4968:return ot(ot(e,/(.+:)(flex-)?(.*)/,Ct+"box-pack:$3"+jt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ct+e+e;case 4200:if(!Zi(e,/flex-|baseline/))return jt+"grid-column-align"+Bu(e,t)+e;break;case 2592:case 3360:return jt+ot(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,Zi(r.props,/grid-\w+-end/)})?~dd(e+(n=n[t].value),"span",0)?e:jt+ot(e,"-start","")+e+jt+"grid-row-span:"+(~dd(n,"span",0)?Zi(n,/\d+/):+Zi(n,/\d+/)-+Zi(e,/\d+/))+";":jt+ot(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Zi(r.props,/grid-\w+-start/)})?e:jt+ot(ot(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return ot(e,/(.+)-inline(.+)/,Ct+"$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(xi(e)-1-t>6)switch(Dn(e,t+1)){case 109:if(Dn(e,t+4)!==45)break;case 102:return ot(e,/(.+:)(.+)-([^]+)/,"$1"+Ct+"$2-$3$1"+il+(Dn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~dd(e,"stretch",0)?D$(ot(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return ot(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,u,l,c,d){return jt+i+":"+o+d+(u?jt+i+"-span:"+(l?c:+c-+o)+d:"")+e});case 4949:if(Dn(e,t+6)===121)return ot(e,":",":"+Ct)+e;break;case 6444:switch(Dn(e,Dn(e,14)===45?18:11)){case 120:return ot(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ct+(Dn(e,14)===45?"inline-":"")+"box$3$1"+Ct+"$2$3$1"+jt+"$2box$3")+e;case 100:return ot(e,":",":"+jt)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ot(e,"scroll-","scroll-snap-")+e}return e}function Td(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function AR(e,t,n,r){switch(e.type){case hR:if(e.children.length)break;case pR:case Lg:return e.return=e.return||e.value;case y$:return"";case v$:return e.return=e.value+"{"+Td(e.children,r)+"}";case yf:if(!xi(e.value=e.props.join(",")))return""}return xi(n=Td(e.children,r))?e.return=e.value+"{"+n+"}":""}function TR(e){var t=x$(e);return function(n,r,i,o){for(var u="",l=0;l<t;l++)u+=e[l](n,r,i,o)||"";return u}}function PR(e){return function(t){t.root||(t=t.return)&&e(t)}}function _R(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Lg:e.return=D$(e.value,e.length,n);return;case v$:return Td([Eo(e,{value:ot(e.value,"@","@"+Ct)})],r);case yf:if(e.length)return gR(n=e.props,function(i){switch(Zi(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":du(Eo(e,{props:[ot(i,/:(read-\w+)/,":"+il+"$1")]})),du(Eo(e,{props:[i]})),gm(e,{props:O0(n,r)});break;case"::placeholder":du(Eo(e,{props:[ot(i,/:(plac\w+)/,":"+Ct+"input-$1")]})),du(Eo(e,{props:[ot(i,/:(plac\w+)/,":"+il+"$1")]})),du(Eo(e,{props:[ot(i,/:(plac\w+)/,jt+"input-$1")]})),du(Eo(e,{props:[i]})),gm(e,{props:O0(n,r)});break}return""})}}var RR={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},Ca=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",E$="active",C$="data-styled-version",xf="6.1.14",Ng=`/*!sc*/
|
|
2
|
-
`,Pd=typeof window<"u"&&"HTMLElement"in window,OR=!!(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"),k0=/invalid hook call/i,Uc=new Set,FR=function(e,t){if(process.env.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` has been created dynamically.
|
|
3
|
-
`)+`You may see this warning because you've called styled inside another component.
|
|
4
|
-
To resolve this only create new StyledComponents outside of any render method and function component.`,i=console.error;try{var o=!0;console.error=function(u){for(var l=[],c=1;c<arguments.length;c++)l[c-1]=arguments[c];k0.test(u)?(o=!1,Uc.delete(r)):i.apply(void 0,Ea([u],l,!1))},b.useRef(),o&&!Uc.has(r)&&(console.warn(r),Uc.add(r))}catch(u){k0.test(u.message)&&Uc.delete(r)}finally{console.error=i}}},wf=Object.freeze([]),Lu=Object.freeze({});function MR(e,t,n){return n===void 0&&(n=Lu),e.theme!==n.theme&&e.theme||t||n.theme}var bm=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"]),kR=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,BR=/(^-|-$)/g;function B0(e){return e.replace(kR,"-").replace(BR,"")}var IR=/(a)(d)/gi,zc=52,I0=function(e){return String.fromCharCode(e+(e>25?39:97))};function $m(e){var t,n="";for(t=Math.abs(e);t>zc;t=t/zc|0)n=I0(t%zc)+n;return(I0(t%zc)+n).replace(IR,"$1-$2")}var hh,S$=5381,ca=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},A$=function(e){return ca(S$,e)};function T$(e){return $m(A$(e)>>>0)}function P$(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function mh(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var _$=typeof Symbol=="function"&&Symbol.for,R$=_$?Symbol.for("react.memo"):60115,LR=_$?Symbol.for("react.forward_ref"):60112,VR={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},NR={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},O$={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},jR=((hh={})[LR]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},hh[R$]=O$,hh);function L0(e){return("type"in(t=e)&&t.type.$$typeof)===R$?O$:"$$typeof"in e?jR[e.$$typeof]:VR;var t}var KR=Object.defineProperty,UR=Object.getOwnPropertyNames,V0=Object.getOwnPropertySymbols,zR=Object.getOwnPropertyDescriptor,WR=Object.getPrototypeOf,N0=Object.prototype;function F$(e,t,n){if(typeof t!="string"){if(N0){var r=WR(t);r&&r!==N0&&F$(e,r,n)}var i=UR(t);V0&&(i=i.concat(V0(t)));for(var o=L0(e),u=L0(t),l=0;l<i.length;++l){var c=i[l];if(!(c in NR||n&&n[c]||u&&c in u||o&&c in o)){var d=zR(t,c);try{KR(e,c,d)}catch{}}}}return e}function Sa(e){return typeof e=="function"}function jg(e){return typeof e=="object"&&"styledComponentId"in e}function pa(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function xm(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function Vu(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function wm(e,t,n){if(n===void 0&&(n=!1),!n&&!Vu(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=wm(e[r],t[r]);else if(Vu(t))for(var r in t)e[r]=wm(e[r],t[r]);return e}function Kg(e,t){Object.defineProperty(e,"toString",{value:t})}var HR=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 GR(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],i=1,o=e.length;i<o;i+=1)r.push(e[i]);return r.forEach(function(u){n=n.replace(/%[a-z]/,u)}),n}function _i(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(GR.apply(void 0,Ea([HR[e]],t,!1)).trim())}var qR=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,o=i;t>=o;)if((o<<=1)<0)throw _i(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var u=i;u<o;u++)this.groupSizes[u]=0}for(var l=this.indexOfGroup(t+1),c=(u=0,n.length);u<c;u++)this.tag.insertRule(l,n[u])&&(this.groupSizes[t]++,l++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),i=r+n;this.groupSizes[t]=0;for(var o=r;o<i;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),o=i+r,u=i;u<o;u++)n+="".concat(this.tag.getRule(u)).concat(Ng);return n},e}(),YR=1<<30,hd=new Map,_d=new Map,md=1,Wc=function(e){if(hd.has(e))return hd.get(e);for(;_d.has(md);)md++;var t=md++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>YR))throw _i(16,"".concat(t));return hd.set(e,t),_d.set(t,e),t},ZR=function(e,t){md=t+1,hd.set(e,t),_d.set(t,e)},JR="style[".concat(Ca,"][").concat(C$,'="').concat(xf,'"]'),QR=new RegExp("^".concat(Ca,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),XR=function(e,t,n){for(var r,i=n.split(","),o=0,u=i.length;o<u;o++)(r=i[o])&&e.registerName(t,r)},e8=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(Ng),i=[],o=0,u=r.length;o<u;o++){var l=r[o].trim();if(l){var c=l.match(QR);if(c){var d=0|parseInt(c[1],10),f=c[2];d!==0&&(ZR(f,d),XR(e,f,c[3]),e.getTag().insertRules(d,i)),i.length=0}else i.push(l)}}},j0=function(e){for(var t=document.querySelectorAll(JR),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(Ca)!==E$&&(e8(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function t8(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var M$=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(l){var c=Array.from(l.querySelectorAll("style[".concat(Ca,"]")));return c[c.length-1]}(n),o=i!==void 0?i.nextSibling:null;r.setAttribute(Ca,E$),r.setAttribute(C$,xf);var u=t8();return u&&r.setAttribute("nonce",u),n.insertBefore(r,o),r},n8=function(){function e(t){this.element=M$(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,i=0,o=r.length;i<o;i++){var u=r[i];if(u.ownerNode===n)return u}throw _i(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}(),r8=function(){function e(t){this.element=M$(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}(),i8=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}(),K0=Pd,o8={isServer:!Pd,useCSSOMInjection:!OR},k$=function(){function e(t,n,r){t===void 0&&(t=Lu),n===void 0&&(n={});var i=this;this.options=zn(zn({},o8),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Pd&&K0&&(K0=!1,j0(this)),Kg(this,function(){return function(o){for(var u=o.getTag(),l=u.length,c="",d=function(h){var g=function(x){return _d.get(x)}(h);if(g===void 0)return"continue";var m=o.names.get(g),$=u.getGroup(h);if(m===void 0||!m.size||$.length===0)return"continue";var w="".concat(Ca,".g").concat(h,'[id="').concat(g,'"]'),C="";m!==void 0&&m.forEach(function(x){x.length>0&&(C+="".concat(x,","))}),c+="".concat($).concat(w,'{content:"').concat(C,'"}').concat(Ng)},f=0;f<l;f++)d(f);return c}(i)})}return e.registerId=function(t){return Wc(t)},e.prototype.rehydrate=function(){!this.server&&Pd&&j0(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(zn(zn({},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 i8(i):r?new n8(i):new r8(i)}(this.options),new qR(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(Wc(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(Wc(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Wc(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),a8=/&/g,u8=/^\s*\/\/.*$/gm;function B$(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=B$(n.children,t)),n})}function s8(e){var t,n,r,i=Lu,o=i.options,u=o===void 0?Lu:o,l=i.plugins,c=l===void 0?wf:l,d=function(g,m,$){return $.startsWith(n)&&$.endsWith(n)&&$.replaceAll(n,"").length>0?".".concat(t):g},f=c.slice();f.push(function(g){g.type===yf&&g.value.includes("&")&&(g.props[0]=g.props[0].replace(a8,n).replace(r,d))}),u.prefix&&f.push(_R),f.push(AR);var h=function(g,m,$,w){m===void 0&&(m=""),$===void 0&&($=""),w===void 0&&(w="&"),t=w,n=m,r=new RegExp("\\".concat(n,"\\b"),"g");var C=g.replace(u8,""),x=CR($||m?"".concat($," ").concat(m," { ").concat(C," }"):C);u.namespace&&(x=B$(x,u.namespace));var v=[];return Td(x,TR(f.concat(PR(function(D){return v.push(D)})))),v};return h.hash=c.length?c.reduce(function(g,m){return m.name||_i(15),ca(g,m.name)},S$).toString():"",h}var l8=new k$,Dm=s8(),I$=b.createContext({shouldForwardProp:void 0,styleSheet:l8,stylis:Dm});I$.Consumer;b.createContext(void 0);function U0(){return b.useContext(I$)}var Em=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=Dm);var u=r.name+o.hash;i.hasNameForId(r.id,u)||i.insertRules(r.id,u,o(r.rules,u,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Kg(this,function(){throw _i(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Dm),this.name+t.hash},e}(),c8=function(e){return e>="A"&&e<="Z"};function z0(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;c8(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var L$=function(e){return e==null||e===!1||e===""},V$=function(e){var t,n,r=[];for(var i in e){var o=e[i];e.hasOwnProperty(i)&&!L$(o)&&(Array.isArray(o)&&o.isCss||Sa(o)?r.push("".concat(z0(i),":"),o,";"):Vu(o)?r.push.apply(r,Ea(Ea(["".concat(i," {")],V$(o),!1),["}"],!1)):r.push("".concat(z0(i),": ").concat((t=i,(n=o)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in RR||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function xa(e,t,n,r){if(L$(e))return[];if(jg(e))return[".".concat(e.styledComponentId)];if(Sa(e)){if(!Sa(o=e)||o.prototype&&o.prototype.isReactComponent||!t)return[e];var i=e(t);return process.env.NODE_ENV==="production"||typeof i!="object"||Array.isArray(i)||i instanceof Em||Vu(i)||i===null||console.error("".concat(P$(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.")),xa(i,t,n,r)}var o;return e instanceof Em?n?(e.inject(n,r),[e.getName(r)]):[e]:Vu(e)?V$(e):Array.isArray(e)?Array.prototype.concat.apply(wf,e.map(function(u){return xa(u,t,n,r)})):[e.toString()]}function d8(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Sa(n)&&!jg(n))return!1}return!0}var f8=A$(xf),p8=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&d8(t),this.componentId=n,this.baseHash=ca(f8,n),this.baseStyle=r,k$.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=pa(i,this.staticRulesId);else{var o=xm(xa(this.rules,t,n,r)),u=$m(ca(this.baseHash,o)>>>0);if(!n.hasNameForId(this.componentId,u)){var l=r(o,".".concat(u),void 0,this.componentId);n.insertRules(this.componentId,u,l)}i=pa(i,u),this.staticRulesId=u}else{for(var c=ca(this.baseHash,r.hash),d="",f=0;f<this.rules.length;f++){var h=this.rules[f];if(typeof h=="string")d+=h,process.env.NODE_ENV!=="production"&&(c=ca(c,h));else if(h){var g=xm(xa(h,t,n,r));c=ca(c,g+f),d+=g}}if(d){var m=$m(c>>>0);n.hasNameForId(this.componentId,m)||n.insertRules(this.componentId,m,r(d,".".concat(m),void 0,this.componentId)),i=pa(i,m)}}return i},e}(),dl=b.createContext(void 0);dl.Consumer;function h8(){var e=b.useContext(dl);if(!e)throw _i(18);return e}function m8(e){var t=b.useContext(dl),n=b.useMemo(function(){return function(r,i){if(!r)throw _i(14);if(Sa(r)){var o=r(i);if(process.env.NODE_ENV!=="production"&&(o===null||Array.isArray(o)||typeof o!="object"))throw _i(7);return o}if(Array.isArray(r)||typeof r!="object")throw _i(8);return i?zn(zn({},i),r):r}(e.theme,t)},[e.theme,t]);return e.children?b.createElement(dl.Provider,{value:n},e.children):null}var gh={},W0=new Set;function g8(e,t,n){var r=jg(e),i=e,o=!mh(e),u=t.attrs,l=u===void 0?wf:u,c=t.componentId,d=c===void 0?function(P,E){var T=typeof P!="string"?"sc":B0(P);gh[T]=(gh[T]||0)+1;var V="".concat(T,"-").concat(T$(xf+T+gh[T]));return E?"".concat(E,"-").concat(V):V}(t.displayName,t.parentComponentId):c,f=t.displayName,h=f===void 0?function(P){return mh(P)?"styled.".concat(P):"Styled(".concat(P$(P),")")}(e):f,g=t.displayName&&t.componentId?"".concat(B0(t.displayName),"-").concat(t.componentId):t.componentId||d,m=r&&i.attrs?i.attrs.concat(l).filter(Boolean):l,$=t.shouldForwardProp;if(r&&i.shouldForwardProp){var w=i.shouldForwardProp;if(t.shouldForwardProp){var C=t.shouldForwardProp;$=function(P,E){return w(P,E)&&C(P,E)}}else $=w}var x=new p8(n,g,r?i.componentStyle:void 0);function v(P,E){return function(T,V,S){var z=T.attrs,O=T.componentStyle,M=T.defaultProps,G=T.foldedComponentIds,K=T.styledComponentId,W=T.target,j=b.useContext(dl),I=U0(),R=T.shouldForwardProp||I.shouldForwardProp;process.env.NODE_ENV!=="production"&&b.useDebugValue(K);var B=MR(V,j,M)||Lu,J=function(ie,Ee,$e){for(var ne,ye=zn(zn({},Ee),{className:void 0,theme:$e}),xe=0;xe<ie.length;xe+=1){var pe=Sa(ne=ie[xe])?ne(ye):ne;for(var le in pe)ye[le]=le==="className"?pa(ye[le],pe[le]):le==="style"?zn(zn({},ye[le]),pe[le]):pe[le]}return Ee.className&&(ye.className=pa(ye.className,Ee.className)),ye}(z,V,B),L=J.as||W,U={};for(var re in J)J[re]===void 0||re[0]==="$"||re==="as"||re==="theme"&&J.theme===B||(re==="forwardedAs"?U.as=J.forwardedAs:R&&!R(re,L)||(U[re]=J[re],R||process.env.NODE_ENV!=="development"||fR(re)||W0.has(re)||!bm.has(L)||(W0.add(re),console.warn('styled-components: it looks like an unknown prop "'.concat(re,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var oe=function(ie,Ee){var $e=U0(),ne=ie.generateAndInjectStyles(Ee,$e.styleSheet,$e.stylis);return process.env.NODE_ENV!=="production"&&b.useDebugValue(ne),ne}(O,J);process.env.NODE_ENV!=="production"&&T.warnTooManyClasses&&T.warnTooManyClasses(oe);var fe=pa(G,K);return oe&&(fe+=" "+oe),J.className&&(fe+=" "+J.className),U[mh(L)&&!bm.has(L)?"class":"className"]=fe,S&&(U.ref=S),b.createElement(L,U)}(D,P,E)}v.displayName=h;var D=b.forwardRef(v);return D.attrs=m,D.componentStyle=x,D.displayName=h,D.shouldForwardProp=$,D.foldedComponentIds=r?pa(i.foldedComponentIds,i.styledComponentId):"",D.styledComponentId=g,D.target=r?i.target:e,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(P){this._foldedDefaultProps=r?function(E){for(var T=[],V=1;V<arguments.length;V++)T[V-1]=arguments[V];for(var S=0,z=T;S<z.length;S++)wm(E,z[S],!0);return E}({},i.defaultProps,P):P}}),process.env.NODE_ENV!=="production"&&(FR(h,g),D.warnTooManyClasses=function(P,E){var T={},V=!1;return function(S){if(!V&&(T[S]=!0,Object.keys(T).length>=200)){var z=E?' with the id of "'.concat(E,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(P).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 />`),V=!0,T={}}}}(h,g)),Kg(D,function(){return".".concat(D.styledComponentId)}),o&&F$(D,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function H0(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 G0=function(e){return Object.assign(e,{isCss:!0})};function Ug(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Sa(e)||Vu(e))return G0(xa(H0(wf,Ea([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?xa(r):G0(xa(H0(r,t)))}function Cm(e,t,n){if(n===void 0&&(n=Lu),!t)throw _i(1,t);var r=function(i){for(var o=[],u=1;u<arguments.length;u++)o[u-1]=arguments[u];return e(t,n,Ug.apply(void 0,Ea([i],o,!1)))};return r.attrs=function(i){return Cm(e,t,zn(zn({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},r.withConfig=function(i){return Cm(e,t,zn(zn({},n),i))},r}var N$=function(e){return Cm(g8,e)},j$=N$;bm.forEach(function(e){j$[e]=N$(e)});function y8(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=xm(Ug.apply(void 0,Ea([e],t,!1))),i=T$(r);return new Em(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 Hc="__sc-".concat(Ca,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Hc]||(window[Hc]=0),window[Hc]===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[Hc]+=1);const Nu=Math.min,wa=Math.max,Rd=Math.round,Gc=Math.floor,Ri=e=>({x:e,y:e}),v8={left:"right",right:"left",bottom:"top",top:"bottom"},b8={start:"end",end:"start"};function Sm(e,t,n){return wa(e,Nu(t,n))}function Al(e,t){return typeof e=="function"?e(t):e}function Aa(e){return e.split("-")[0]}function Tl(e){return e.split("-")[1]}function K$(e){return e==="x"?"y":"x"}function zg(e){return e==="y"?"height":"width"}function ju(e){return["top","bottom"].includes(Aa(e))?"y":"x"}function Wg(e){return K$(ju(e))}function $8(e,t,n){n===void 0&&(n=!1);const r=Tl(e),i=Wg(e),o=zg(i);let u=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(u=Od(u)),[u,Od(u)]}function x8(e){const t=Od(e);return[Am(e),t,Am(t)]}function Am(e){return e.replace(/start|end/g,t=>b8[t])}function w8(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],u=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:u;default:return[]}}function D8(e,t,n,r){const i=Tl(e);let o=w8(Aa(e),n==="start",r);return i&&(o=o.map(u=>u+"-"+i),t&&(o=o.concat(o.map(Am)))),o}function Od(e){return e.replace(/left|right|bottom|top/g,t=>v8[t])}function E8(e){return{top:0,right:0,bottom:0,left:0,...e}}function U$(e){return typeof e!="number"?E8(e):{top:e,right:e,bottom:e,left:e}}function Fd(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 q0(e,t,n){let{reference:r,floating:i}=e;const o=ju(t),u=Wg(t),l=zg(u),c=Aa(t),d=o==="y",f=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,g=r[l]/2-i[l]/2;let m;switch(c){case"top":m={x:f,y:r.y-i.height};break;case"bottom":m={x:f,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:h};break;case"left":m={x:r.x-i.width,y:h};break;default:m={x:r.x,y:r.y}}switch(Tl(t)){case"start":m[u]-=g*(n&&d?-1:1);break;case"end":m[u]+=g*(n&&d?-1:1);break}return m}const C8=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:u}=n,l=o.filter(Boolean),c=await(u.isRTL==null?void 0:u.isRTL(t));let d=await u.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:h}=q0(d,r,c),g=r,m={},$=0;for(let w=0;w<l.length;w++){const{name:C,fn:x}=l[w],{x:v,y:D,data:P,reset:E}=await x({x:f,y:h,initialPlacement:r,placement:g,strategy:i,middlewareData:m,rects:d,platform:u,elements:{reference:e,floating:t}});f=v??f,h=D??h,m={...m,[C]:{...m[C],...P}},E&&$<=50&&($++,typeof E=="object"&&(E.placement&&(g=E.placement),E.rects&&(d=E.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:i}):E.rects),{x:f,y:h}=q0(d,g,c)),w=-1)}return{x:f,y:h,placement:g,strategy:i,middlewareData:m}};async function z$(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:u,elements:l,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:g=!1,padding:m=0}=Al(t,e),$=U$(m),C=l[g?h==="floating"?"reference":"floating":h],x=Fd(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(C)))==null||n?C:C.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:d,rootBoundary:f,strategy:c})),v=h==="floating"?{x:r,y:i,width:u.floating.width,height:u.floating.height}:u.reference,D=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),P=await(o.isElement==null?void 0:o.isElement(D))?await(o.getScale==null?void 0:o.getScale(D))||{x:1,y:1}:{x:1,y:1},E=Fd(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:D,strategy:c}):v);return{top:(x.top-E.top+$.top)/P.y,bottom:(E.bottom-x.bottom+$.bottom)/P.y,left:(x.left-E.left+$.left)/P.x,right:(E.right-x.right+$.right)/P.x}}const S8=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:u,elements:l,middlewareData:c}=t,{element:d,padding:f=0}=Al(e,t)||{};if(d==null)return{};const h=U$(f),g={x:n,y:r},m=Wg(i),$=zg(m),w=await u.getDimensions(d),C=m==="y",x=C?"top":"left",v=C?"bottom":"right",D=C?"clientHeight":"clientWidth",P=o.reference[$]+o.reference[m]-g[m]-o.floating[$],E=g[m]-o.reference[m],T=await(u.getOffsetParent==null?void 0:u.getOffsetParent(d));let V=T?T[D]:0;(!V||!await(u.isElement==null?void 0:u.isElement(T)))&&(V=l.floating[D]||o.floating[$]);const S=P/2-E/2,z=V/2-w[$]/2-1,O=Nu(h[x],z),M=Nu(h[v],z),G=O,K=V-w[$]-M,W=V/2-w[$]/2+S,j=Sm(G,W,K),I=!c.arrow&&Tl(i)!=null&&W!==j&&o.reference[$]/2-(W<G?O:M)-w[$]/2<0,R=I?W<G?W-G:W-K:0;return{[m]:g[m]+R,data:{[m]:j,centerOffset:W-j-R,...I&&{alignmentOffset:R}},reset:I}}}),A8=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:u,initialPlacement:l,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:g,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:$="none",flipAlignment:w=!0,...C}=Al(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const x=Aa(i),v=ju(l),D=Aa(l)===l,P=await(c.isRTL==null?void 0:c.isRTL(d.floating)),E=g||(D||!w?[Od(l)]:x8(l)),T=$!=="none";!g&&T&&E.push(...D8(l,w,$,P));const V=[l,...E],S=await z$(t,C),z=[];let O=((r=o.flip)==null?void 0:r.overflows)||[];if(f&&z.push(S[x]),h){const W=$8(i,u,P);z.push(S[W[0]],S[W[1]])}if(O=[...O,{placement:i,overflows:z}],!z.every(W=>W<=0)){var M,G;const W=(((M=o.flip)==null?void 0:M.index)||0)+1,j=V[W];if(j)return{data:{index:W,overflows:O},reset:{placement:j}};let I=(G=O.filter(R=>R.overflows[0]<=0).sort((R,B)=>R.overflows[1]-B.overflows[1])[0])==null?void 0:G.placement;if(!I)switch(m){case"bestFit":{var K;const R=(K=O.filter(B=>{if(T){const J=ju(B.placement);return J===v||J==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(J=>J>0).reduce((J,L)=>J+L,0)]).sort((B,J)=>B[1]-J[1])[0])==null?void 0:K[0];R&&(I=R);break}case"initialPlacement":I=l;break}if(i!==I)return{reset:{placement:I}}}return{}}}};async function T8(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),u=Aa(n),l=Tl(n),c=ju(n)==="y",d=["left","top"].includes(u)?-1:1,f=o&&c?-1:1,h=Al(t,e);let{mainAxis:g,crossAxis:m,alignmentAxis:$}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof $=="number"&&(m=l==="end"?$*-1:$),c?{x:m*f,y:g*d}:{x:g*d,y:m*f}}const P8=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:u,middlewareData:l}=t,c=await T8(t,e);return u===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:o+c.y,data:{...c,placement:u}}}}},_8=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:u=!1,limiter:l={fn:C=>{let{x,y:v}=C;return{x,y:v}}},...c}=Al(e,t),d={x:n,y:r},f=await z$(t,c),h=ju(Aa(i)),g=K$(h);let m=d[g],$=d[h];if(o){const C=g==="y"?"top":"left",x=g==="y"?"bottom":"right",v=m+f[C],D=m-f[x];m=Sm(v,m,D)}if(u){const C=h==="y"?"top":"left",x=h==="y"?"bottom":"right",v=$+f[C],D=$-f[x];$=Sm(v,$,D)}const w=l.fn({...t,[g]:m,[h]:$});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[g]:o,[h]:u}}}}}};function Df(){return typeof window<"u"}function ns(e){return W$(e)?(e.nodeName||"").toLowerCase():"#document"}function Dr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Fi(e){var t;return(t=(W$(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function W$(e){return Df()?e instanceof Node||e instanceof Dr(e).Node:!1}function si(e){return Df()?e instanceof Element||e instanceof Dr(e).Element:!1}function Oi(e){return Df()?e instanceof HTMLElement||e instanceof Dr(e).HTMLElement:!1}function Y0(e){return!Df()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Dr(e).ShadowRoot}function Pl(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=li(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function R8(e){return["table","td","th"].includes(ns(e))}function Ef(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Hg(e){const t=Gg(),n=si(e)?li(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 O8(e){let t=No(e);for(;Oi(t)&&!Ku(t);){if(Hg(t))return t;if(Ef(t))return null;t=No(t)}return null}function Gg(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ku(e){return["html","body","#document"].includes(ns(e))}function li(e){return Dr(e).getComputedStyle(e)}function Cf(e){return si(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function No(e){if(ns(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Y0(e)&&e.host||Fi(e);return Y0(t)?t.host:t}function H$(e){const t=No(e);return Ku(t)?e.ownerDocument?e.ownerDocument.body:e.body:Oi(t)&&Pl(t)?t:H$(t)}function fl(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=H$(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),u=Dr(i);if(o){const l=Tm(u);return t.concat(u,u.visualViewport||[],Pl(i)?i:[],l&&n?fl(l):[])}return t.concat(i,fl(i,[],n))}function Tm(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function G$(e){const t=li(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Oi(e),o=i?e.offsetWidth:n,u=i?e.offsetHeight:r,l=Rd(n)!==o||Rd(r)!==u;return l&&(n=o,r=u),{width:n,height:r,$:l}}function qg(e){return si(e)?e:e.contextElement}function Tu(e){const t=qg(e);if(!Oi(t))return Ri(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=G$(t);let u=(o?Rd(n.width):n.width)/r,l=(o?Rd(n.height):n.height)/i;return(!u||!Number.isFinite(u))&&(u=1),(!l||!Number.isFinite(l))&&(l=1),{x:u,y:l}}const F8=Ri(0);function q$(e){const t=Dr(e);return!Gg()||!t.visualViewport?F8:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function M8(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Dr(e)?!1:t}function Ta(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=qg(e);let u=Ri(1);t&&(r?si(r)&&(u=Tu(r)):u=Tu(e));const l=M8(o,n,r)?q$(o):Ri(0);let c=(i.left+l.x)/u.x,d=(i.top+l.y)/u.y,f=i.width/u.x,h=i.height/u.y;if(o){const g=Dr(o),m=r&&si(r)?Dr(r):r;let $=g,w=Tm($);for(;w&&r&&m!==$;){const C=Tu(w),x=w.getBoundingClientRect(),v=li(w),D=x.left+(w.clientLeft+parseFloat(v.paddingLeft))*C.x,P=x.top+(w.clientTop+parseFloat(v.paddingTop))*C.y;c*=C.x,d*=C.y,f*=C.x,h*=C.y,c+=D,d+=P,$=Dr(w),w=Tm($)}}return Fd({width:f,height:h,x:c,y:d})}function Yg(e,t){const n=Cf(e).scrollLeft;return t?t.left+n:Ta(Fi(e)).left+n}function Y$(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:Yg(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function k8(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",u=Fi(r),l=t?Ef(t.floating):!1;if(r===u||l&&o)return n;let c={scrollLeft:0,scrollTop:0},d=Ri(1);const f=Ri(0),h=Oi(r);if((h||!h&&!o)&&((ns(r)!=="body"||Pl(u))&&(c=Cf(r)),Oi(r))){const m=Ta(r);d=Tu(r),f.x=m.x+r.clientLeft,f.y=m.y+r.clientTop}const g=u&&!h&&!o?Y$(u,c,!0):Ri(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+f.x+g.x,y:n.y*d.y-c.scrollTop*d.y+f.y+g.y}}function B8(e){return Array.from(e.getClientRects())}function I8(e){const t=Fi(e),n=Cf(e),r=e.ownerDocument.body,i=wa(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=wa(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let u=-n.scrollLeft+Yg(e);const l=-n.scrollTop;return li(r).direction==="rtl"&&(u+=wa(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:u,y:l}}function L8(e,t){const n=Dr(e),r=Fi(e),i=n.visualViewport;let o=r.clientWidth,u=r.clientHeight,l=0,c=0;if(i){o=i.width,u=i.height;const d=Gg();(!d||d&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:o,height:u,x:l,y:c}}function V8(e,t){const n=Ta(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Oi(e)?Tu(e):Ri(1),u=e.clientWidth*o.x,l=e.clientHeight*o.y,c=i*o.x,d=r*o.y;return{width:u,height:l,x:c,y:d}}function Z0(e,t,n){let r;if(t==="viewport")r=L8(e,n);else if(t==="document")r=I8(Fi(e));else if(si(t))r=V8(t,n);else{const i=q$(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Fd(r)}function Z$(e,t){const n=No(e);return n===t||!si(n)||Ku(n)?!1:li(n).position==="fixed"||Z$(n,t)}function N8(e,t){const n=t.get(e);if(n)return n;let r=fl(e,[],!1).filter(l=>si(l)&&ns(l)!=="body"),i=null;const o=li(e).position==="fixed";let u=o?No(e):e;for(;si(u)&&!Ku(u);){const l=li(u),c=Hg(u);!c&&l.position==="fixed"&&(i=null),(o?!c&&!i:!c&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Pl(u)&&!c&&Z$(e,u))?r=r.filter(f=>f!==u):i=l,u=No(u)}return t.set(e,r),r}function j8(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const u=[...n==="clippingAncestors"?Ef(t)?[]:N8(t,this._c):[].concat(n),r],l=u[0],c=u.reduce((d,f)=>{const h=Z0(t,f,i);return d.top=wa(h.top,d.top),d.right=Nu(h.right,d.right),d.bottom=Nu(h.bottom,d.bottom),d.left=wa(h.left,d.left),d},Z0(t,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function K8(e){const{width:t,height:n}=G$(e);return{width:t,height:n}}function U8(e,t,n){const r=Oi(t),i=Fi(t),o=n==="fixed",u=Ta(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const c=Ri(0);if(r||!r&&!o)if((ns(t)!=="body"||Pl(i))&&(l=Cf(t)),r){const g=Ta(t,!0,o,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else i&&(c.x=Yg(i));const d=i&&!r&&!o?Y$(i,l):Ri(0),f=u.left+l.scrollLeft-c.x-d.x,h=u.top+l.scrollTop-c.y-d.y;return{x:f,y:h,width:u.width,height:u.height}}function yh(e){return li(e).position==="static"}function J0(e,t){if(!Oi(e)||li(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Fi(e)===n&&(n=n.ownerDocument.body),n}function J$(e,t){const n=Dr(e);if(Ef(e))return n;if(!Oi(e)){let i=No(e);for(;i&&!Ku(i);){if(si(i)&&!yh(i))return i;i=No(i)}return n}let r=J0(e,t);for(;r&&R8(r)&&yh(r);)r=J0(r,t);return r&&Ku(r)&&yh(r)&&!Hg(r)?n:r||O8(e)||n}const z8=async function(e){const t=this.getOffsetParent||J$,n=this.getDimensions,r=await n(e.floating);return{reference:U8(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function W8(e){return li(e).direction==="rtl"}const H8={convertOffsetParentRelativeRectToViewportRelativeRect:k8,getDocumentElement:Fi,getClippingRect:j8,getOffsetParent:J$,getElementRects:z8,getClientRects:B8,getDimensions:K8,getScale:Tu,isElement:si,isRTL:W8};function Q$(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function G8(e,t){let n=null,r;const i=Fi(e);function o(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function u(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),o();const d=e.getBoundingClientRect(),{left:f,top:h,width:g,height:m}=d;if(l||t(),!g||!m)return;const $=Gc(h),w=Gc(i.clientWidth-(f+g)),C=Gc(i.clientHeight-(h+m)),x=Gc(f),D={rootMargin:-$+"px "+-w+"px "+-C+"px "+-x+"px",threshold:wa(0,Nu(1,c))||1};let P=!0;function E(T){const V=T[0].intersectionRatio;if(V!==c){if(!P)return u();V?u(!1,V):r=setTimeout(()=>{u(!1,1e-7)},1e3)}V===1&&!Q$(d,e.getBoundingClientRect())&&u(),P=!1}try{n=new IntersectionObserver(E,{...D,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,D)}n.observe(e)}return u(!0),o}function X$(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=qg(e),f=i||o?[...d?fl(d):[],...fl(t)]:[];f.forEach(x=>{i&&x.addEventListener("scroll",n,{passive:!0}),o&&x.addEventListener("resize",n)});const h=d&&l?G8(d,n):null;let g=-1,m=null;u&&(m=new ResizeObserver(x=>{let[v]=x;v&&v.target===d&&m&&(m.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var D;(D=m)==null||D.observe(t)})),n()}),d&&!c&&m.observe(d),m.observe(t));let $,w=c?Ta(e):null;c&&C();function C(){const x=Ta(e);w&&!Q$(w,x)&&n(),w=x,$=requestAnimationFrame(C)}return n(),()=>{var x;f.forEach(v=>{i&&v.removeEventListener("scroll",n),o&&v.removeEventListener("resize",n)}),h==null||h(),(x=m)==null||x.disconnect(),m=null,c&&cancelAnimationFrame($)}}const ex=P8,q8=_8,tx=A8,Y8=S8,Pm=(e,t,n)=>{const r=new Map,i={platform:H8,...n},o={...i.platform,_c:r};return C8(e,t,{...i,platform:o})};var gd=typeof document<"u"?b.useLayoutEffect:b.useEffect;function Md(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(!Md(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!Md(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function nx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Q0(e,t){const n=nx(e);return Math.round(t*n)/n}function vh(e){const t=Ge.useRef(e);return gd(()=>{t.current=e}),t}function Z8(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:u}={},transform:l=!0,whileElementsMounted:c,open:d}=e,[f,h]=Ge.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,m]=Ge.useState(r);Md(g,r)||m(r);const[$,w]=Ge.useState(null),[C,x]=Ge.useState(null),v=Ge.useCallback(B=>{B!==T.current&&(T.current=B,w(B))},[]),D=Ge.useCallback(B=>{B!==V.current&&(V.current=B,x(B))},[]),P=o||$,E=u||C,T=Ge.useRef(null),V=Ge.useRef(null),S=Ge.useRef(f),z=c!=null,O=vh(c),M=vh(i),G=vh(d),K=Ge.useCallback(()=>{if(!T.current||!V.current)return;const B={placement:t,strategy:n,middleware:g};M.current&&(B.platform=M.current),Pm(T.current,V.current,B).then(J=>{const L={...J,isPositioned:G.current!==!1};W.current&&!Md(S.current,L)&&(S.current=L,cd.flushSync(()=>{h(L)}))})},[g,t,n,M,G]);gd(()=>{d===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,h(B=>({...B,isPositioned:!1})))},[d]);const W=Ge.useRef(!1);gd(()=>(W.current=!0,()=>{W.current=!1}),[]),gd(()=>{if(P&&(T.current=P),E&&(V.current=E),P&&E){if(O.current)return O.current(P,E,K);K()}},[P,E,K,O,z]);const j=Ge.useMemo(()=>({reference:T,floating:V,setReference:v,setFloating:D}),[v,D]),I=Ge.useMemo(()=>({reference:P,floating:E}),[P,E]),R=Ge.useMemo(()=>{const B={position:n,left:0,top:0};if(!I.floating)return B;const J=Q0(I.floating,f.x),L=Q0(I.floating,f.y);return l?{...B,transform:"translate("+J+"px, "+L+"px)",...nx(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:J,top:L}},[n,l,I.floating,f.x,f.y]);return Ge.useMemo(()=>({...f,update:K,refs:j,elements:I,floatingStyles:R}),[f,K,j,I,R])}const J8=(e,t)=>({...ex(e),options:[e,t]}),Q8=(e,t)=>({...tx(e),options:[e,t]});var Js={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 X8=Js.exports,X0;function eO(){return X0||(X0=1,function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",l="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,f="__lodash_placeholder__",h=1,g=2,m=4,$=1,w=2,C=1,x=2,v=4,D=8,P=16,E=32,T=64,V=128,S=256,z=512,O=30,M="...",G=800,K=16,W=1,j=2,I=3,R=1/0,B=9007199254740991,J=17976931348623157e292,L=NaN,U=4294967295,re=U-1,oe=U>>>1,fe=[["ary",V],["bind",C],["bindKey",x],["curry",D],["curryRight",P],["flip",z],["partial",E],["partialRight",T],["rearg",S]],ie="[object Arguments]",Ee="[object Array]",$e="[object AsyncFunction]",ne="[object Boolean]",ye="[object Date]",xe="[object DOMException]",pe="[object Error]",le="[object Function]",Me="[object GeneratorFunction]",Xe="[object Map]",ct="[object Number]",vn="[object Null]",gt="[object Object]",q="[object Promise]",Y="[object Proxy]",te="[object RegExp]",he="[object Set]",Ce="[object String]",De="[object Symbol]",_e="[object Undefined]",Ve="[object WeakMap]",ht="[object WeakSet]",ut="[object ArrayBuffer]",_t="[object DataView]",En="[object Float32Array]",Cn="[object Float64Array]",Ht="[object Int8Array]",Rn="[object Int16Array]",Jt="[object Int32Array]",yt="[object Uint8Array]",On="[object Uint8ClampedArray]",gr="[object Uint16Array]",Sn="[object Uint32Array]",Hn=/\b__p \+= '';/g,An=/\b(__p \+=) '' \+/g,Gn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fn=/&(?:amp|lt|gt|quot|#39);/g,bn=/[&<>"']/g,Ar=RegExp(Fn.source),Lt=RegExp(bn.source),$n=/<%-([\s\S]+?)%>/g,Ne=/<%([\s\S]+?)%>/g,et=/<%=([\s\S]+?)%>/g,Qt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ir=/^\w*$/,Ae=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,je=/[\\^$.*+?()[\]{}|]/g,qe=RegExp(je.source),Ft=/^\s+/,Xt=/\s/,Mn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Nt=/\{\n\/\* \[wrapped with (.+)\] \*/,tn=/,? & /,Mt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,xt=/[()=,{}\[\]\/\s]/,Jr=/\\(\\)?/g,Go=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,or=/\w*$/,uo=/^[-+]0x[0-9a-f]+$/i,so=/^0b[01]+$/i,lo=/^\[object .+?Constructor\]$/,mt=/^0o[0-7]+$/i,qn=/^(?:0|[1-9]\d*)$/,ar=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,kn=/($^)/,co=/['\n\r\u2028\u2029\\]/g,Tr="\\ud800-\\udfff",ps="\\u0300-\\u036f",Ka="\\ufe20-\\ufe2f",hs="\\u20d0-\\u20ff",fo=ps+Ka+hs,mi="\\u2700-\\u27bf",qo="a-z\\xdf-\\xf6\\xf8-\\xff",Yo="\\xac\\xb1\\xd7\\xf7",Ua="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",za="\\u2000-\\u206f",ms=" \\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",Wa="A-Z\\xc0-\\xd6\\xd8-\\xde",Zo="\\ufe0e\\ufe0f",Ha=Yo+Ua+za+ms,ki="['’]",gs="["+Tr+"]",Ga="["+Ha+"]",po="["+fo+"]",qa="\\d+",F="["+mi+"]",Q="["+qo+"]",se="[^"+Tr+Ha+qa+mi+qo+Wa+"]",be="\\ud83c[\\udffb-\\udfff]",Re="(?:"+po+"|"+be+")",rt="[^"+Tr+"]",Ke="(?:\\ud83c[\\udde6-\\uddff]){2}",ze="[\\ud800-\\udbff][\\udc00-\\udfff]",Rt="["+Wa+"]",Ut="\\u200d",Tn="(?:"+Q+"|"+se+")",Pn="(?:"+Rt+"|"+se+")",Pr="(?:"+ki+"(?:d|ll|m|re|s|t|ve))?",Yn="(?:"+ki+"(?:D|LL|M|RE|S|T|VE))?",Ya=Re+"?",Jo="["+Zo+"]?",Qo="(?:"+Ut+"(?:"+[rt,Ke,ze].join("|")+")"+Jo+Ya+")*",Bi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",op="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ys=Jo+Ya+Qo,ap="(?:"+[F,Ke,ze].join("|")+")"+ys,vs="(?:"+[rt+po+"?",po,Ke,ze,gs].join("|")+")",nc=RegExp(ki,"g"),up=RegExp(po,"g"),bs=RegExp(be+"(?="+be+")|"+vs+ys,"g"),rc=RegExp([Rt+"?"+Q+"+"+Pr+"(?="+[Ga,Rt,"$"].join("|")+")",Pn+"+"+Yn+"(?="+[Ga,Rt+Tn,"$"].join("|")+")",Rt+"?"+Tn+"+"+Pr,Rt+"+"+Yn,op,Bi,qa,ap].join("|"),"g"),sp=RegExp("["+Ut+Tr+fo+Zo+"]"),Za=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,lp=["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"],$s=-1,kt={};kt[En]=kt[Cn]=kt[Ht]=kt[Rn]=kt[Jt]=kt[yt]=kt[On]=kt[gr]=kt[Sn]=!0,kt[ie]=kt[Ee]=kt[ut]=kt[ne]=kt[_t]=kt[ye]=kt[pe]=kt[le]=kt[Xe]=kt[ct]=kt[gt]=kt[te]=kt[he]=kt[Ce]=kt[Ve]=!1;var Ot={};Ot[ie]=Ot[Ee]=Ot[ut]=Ot[_t]=Ot[ne]=Ot[ye]=Ot[En]=Ot[Cn]=Ot[Ht]=Ot[Rn]=Ot[Jt]=Ot[Xe]=Ot[ct]=Ot[gt]=Ot[te]=Ot[he]=Ot[Ce]=Ot[De]=Ot[yt]=Ot[On]=Ot[gr]=Ot[Sn]=!0,Ot[pe]=Ot[le]=Ot[Ve]=!1;var N={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},ae={"&":"&","<":"<",">":">",'"':""","'":"'"},ve={"&":"&","<":"<",">":">",""":'"',"'":"'"},Ie={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},fn=parseFloat,Bn=parseInt,_r=typeof xu=="object"&&xu&&xu.Object===Object&&xu,In=typeof self=="object"&&self&&self.Object===Object&&self,ln=_r||In||Function("return this")(),gi=t&&!t.nodeType&&t,yi=gi&&!0&&e&&!e.nodeType&&e,xs=yi&&yi.exports===gi,Ja=xs&&_r.process,Ln=function(){try{var X=yi&&yi.require&&yi.require("util").types;return X||Ja&&Ja.binding&&Ja.binding("util")}catch{}}(),Xo=Ln&&Ln.isArrayBuffer,Tv=Ln&&Ln.isDate,Pv=Ln&&Ln.isMap,_v=Ln&&Ln.isRegExp,Rv=Ln&&Ln.isSet,Ov=Ln&&Ln.isTypedArray;function yr(X,de,ue){switch(ue.length){case 0:return X.call(de);case 1:return X.call(de,ue[0]);case 2:return X.call(de,ue[0],ue[1]);case 3:return X.call(de,ue[0],ue[1],ue[2])}return X.apply(de,ue)}function F6(X,de,ue,Fe){for(var Ze=-1,vt=X==null?0:X.length;++Ze<vt;){var pn=X[Ze];de(Fe,pn,ue(pn),X)}return Fe}function Rr(X,de){for(var ue=-1,Fe=X==null?0:X.length;++ue<Fe&&de(X[ue],ue,X)!==!1;);return X}function M6(X,de){for(var ue=X==null?0:X.length;ue--&&de(X[ue],ue,X)!==!1;);return X}function Fv(X,de){for(var ue=-1,Fe=X==null?0:X.length;++ue<Fe;)if(!de(X[ue],ue,X))return!1;return!0}function ho(X,de){for(var ue=-1,Fe=X==null?0:X.length,Ze=0,vt=[];++ue<Fe;){var pn=X[ue];de(pn,ue,X)&&(vt[Ze++]=pn)}return vt}function ic(X,de){var ue=X==null?0:X.length;return!!ue&&Qa(X,de,0)>-1}function cp(X,de,ue){for(var Fe=-1,Ze=X==null?0:X.length;++Fe<Ze;)if(ue(de,X[Fe]))return!0;return!1}function zt(X,de){for(var ue=-1,Fe=X==null?0:X.length,Ze=Array(Fe);++ue<Fe;)Ze[ue]=de(X[ue],ue,X);return Ze}function mo(X,de){for(var ue=-1,Fe=de.length,Ze=X.length;++ue<Fe;)X[Ze+ue]=de[ue];return X}function dp(X,de,ue,Fe){var Ze=-1,vt=X==null?0:X.length;for(Fe&&vt&&(ue=X[++Ze]);++Ze<vt;)ue=de(ue,X[Ze],Ze,X);return ue}function k6(X,de,ue,Fe){var Ze=X==null?0:X.length;for(Fe&&Ze&&(ue=X[--Ze]);Ze--;)ue=de(ue,X[Ze],Ze,X);return ue}function fp(X,de){for(var ue=-1,Fe=X==null?0:X.length;++ue<Fe;)if(de(X[ue],ue,X))return!0;return!1}var B6=pp("length");function I6(X){return X.split("")}function L6(X){return X.match(Mt)||[]}function Mv(X,de,ue){var Fe;return ue(X,function(Ze,vt,pn){if(de(Ze,vt,pn))return Fe=vt,!1}),Fe}function oc(X,de,ue,Fe){for(var Ze=X.length,vt=ue+(Fe?1:-1);Fe?vt--:++vt<Ze;)if(de(X[vt],vt,X))return vt;return-1}function Qa(X,de,ue){return de===de?Z6(X,de,ue):oc(X,kv,ue)}function V6(X,de,ue,Fe){for(var Ze=ue-1,vt=X.length;++Ze<vt;)if(Fe(X[Ze],de))return Ze;return-1}function kv(X){return X!==X}function Bv(X,de){var ue=X==null?0:X.length;return ue?mp(X,de)/ue:L}function pp(X){return function(de){return de==null?n:de[X]}}function hp(X){return function(de){return X==null?n:X[de]}}function Iv(X,de,ue,Fe,Ze){return Ze(X,function(vt,pn,Bt){ue=Fe?(Fe=!1,vt):de(ue,vt,pn,Bt)}),ue}function N6(X,de){var ue=X.length;for(X.sort(de);ue--;)X[ue]=X[ue].value;return X}function mp(X,de){for(var ue,Fe=-1,Ze=X.length;++Fe<Ze;){var vt=de(X[Fe]);vt!==n&&(ue=ue===n?vt:ue+vt)}return ue}function gp(X,de){for(var ue=-1,Fe=Array(X);++ue<X;)Fe[ue]=de(ue);return Fe}function j6(X,de){return zt(de,function(ue){return[ue,X[ue]]})}function Lv(X){return X&&X.slice(0,Kv(X)+1).replace(Ft,"")}function vr(X){return function(de){return X(de)}}function yp(X,de){return zt(de,function(ue){return X[ue]})}function ws(X,de){return X.has(de)}function Vv(X,de){for(var ue=-1,Fe=X.length;++ue<Fe&&Qa(de,X[ue],0)>-1;);return ue}function Nv(X,de){for(var ue=X.length;ue--&&Qa(de,X[ue],0)>-1;);return ue}function K6(X,de){for(var ue=X.length,Fe=0;ue--;)X[ue]===de&&++Fe;return Fe}var U6=hp(N),z6=hp(ae);function W6(X){return"\\"+Ie[X]}function H6(X,de){return X==null?n:X[de]}function Xa(X){return sp.test(X)}function G6(X){return Za.test(X)}function q6(X){for(var de,ue=[];!(de=X.next()).done;)ue.push(de.value);return ue}function vp(X){var de=-1,ue=Array(X.size);return X.forEach(function(Fe,Ze){ue[++de]=[Ze,Fe]}),ue}function jv(X,de){return function(ue){return X(de(ue))}}function go(X,de){for(var ue=-1,Fe=X.length,Ze=0,vt=[];++ue<Fe;){var pn=X[ue];(pn===de||pn===f)&&(X[ue]=f,vt[Ze++]=ue)}return vt}function ac(X){var de=-1,ue=Array(X.size);return X.forEach(function(Fe){ue[++de]=Fe}),ue}function Y6(X){var de=-1,ue=Array(X.size);return X.forEach(function(Fe){ue[++de]=[Fe,Fe]}),ue}function Z6(X,de,ue){for(var Fe=ue-1,Ze=X.length;++Fe<Ze;)if(X[Fe]===de)return Fe;return-1}function J6(X,de,ue){for(var Fe=ue+1;Fe--;)if(X[Fe]===de)return Fe;return Fe}function eu(X){return Xa(X)?X6(X):B6(X)}function Qr(X){return Xa(X)?eA(X):I6(X)}function Kv(X){for(var de=X.length;de--&&Xt.test(X.charAt(de)););return de}var Q6=hp(ve);function X6(X){for(var de=bs.lastIndex=0;bs.test(X);)++de;return de}function eA(X){return X.match(bs)||[]}function tA(X){return X.match(rc)||[]}var nA=function X(de){de=de==null?ln:tu.defaults(ln.Object(),de,tu.pick(ln,lp));var ue=de.Array,Fe=de.Date,Ze=de.Error,vt=de.Function,pn=de.Math,Bt=de.Object,bp=de.RegExp,rA=de.String,Or=de.TypeError,uc=ue.prototype,iA=vt.prototype,nu=Bt.prototype,sc=de["__core-js_shared__"],lc=iA.toString,At=nu.hasOwnProperty,oA=0,Uv=function(){var a=/[^.]+$/.exec(sc&&sc.keys&&sc.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),cc=nu.toString,aA=lc.call(Bt),uA=ln._,sA=bp("^"+lc.call(At).replace(je,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dc=xs?de.Buffer:n,yo=de.Symbol,fc=de.Uint8Array,zv=dc?dc.allocUnsafe:n,pc=jv(Bt.getPrototypeOf,Bt),Wv=Bt.create,Hv=nu.propertyIsEnumerable,hc=uc.splice,Gv=yo?yo.isConcatSpreadable:n,Ds=yo?yo.iterator:n,ea=yo?yo.toStringTag:n,mc=function(){try{var a=oa(Bt,"defineProperty");return a({},"",{}),a}catch{}}(),lA=de.clearTimeout!==ln.clearTimeout&&de.clearTimeout,cA=Fe&&Fe.now!==ln.Date.now&&Fe.now,dA=de.setTimeout!==ln.setTimeout&&de.setTimeout,gc=pn.ceil,yc=pn.floor,$p=Bt.getOwnPropertySymbols,fA=dc?dc.isBuffer:n,qv=de.isFinite,pA=uc.join,hA=jv(Bt.keys,Bt),hn=pn.max,Vn=pn.min,mA=Fe.now,gA=de.parseInt,Yv=pn.random,yA=uc.reverse,xp=oa(de,"DataView"),Es=oa(de,"Map"),wp=oa(de,"Promise"),ru=oa(de,"Set"),Cs=oa(de,"WeakMap"),Ss=oa(Bt,"create"),vc=Cs&&new Cs,iu={},vA=aa(xp),bA=aa(Es),$A=aa(wp),xA=aa(ru),wA=aa(Cs),bc=yo?yo.prototype:n,As=bc?bc.valueOf:n,Zv=bc?bc.toString:n;function _(a){if(en(a)&&!Je(a)&&!(a instanceof dt)){if(a instanceof Fr)return a;if(At.call(a,"__wrapped__"))return Jb(a)}return new Fr(a)}var ou=function(){function a(){}return function(s){if(!Gt(s))return{};if(Wv)return Wv(s);a.prototype=s;var p=new a;return a.prototype=n,p}}();function $c(){}function Fr(a,s){this.__wrapped__=a,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=n}_.templateSettings={escape:$n,evaluate:Ne,interpolate:et,variable:"",imports:{_}},_.prototype=$c.prototype,_.prototype.constructor=_,Fr.prototype=ou($c.prototype),Fr.prototype.constructor=Fr;function dt(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=U,this.__views__=[]}function DA(){var a=new dt(this.__wrapped__);return a.__actions__=ur(this.__actions__),a.__dir__=this.__dir__,a.__filtered__=this.__filtered__,a.__iteratees__=ur(this.__iteratees__),a.__takeCount__=this.__takeCount__,a.__views__=ur(this.__views__),a}function EA(){if(this.__filtered__){var a=new dt(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}function CA(){var a=this.__wrapped__.value(),s=this.__dir__,p=Je(a),y=s<0,A=p?a.length:0,k=IT(0,A,this.__views__),H=k.start,Z=k.end,ee=Z-H,me=y?Z:H-1,ge=this.__iteratees__,we=ge.length,Pe=0,Le=Vn(ee,this.__takeCount__);if(!p||!y&&A==ee&&Le==ee)return $b(a,this.__actions__);var We=[];e:for(;ee--&&Pe<Le;){me+=s;for(var it=-1,He=a[me];++it<we;){var st=ge[it],ft=st.iteratee,xr=st.type,Qn=ft(He);if(xr==j)He=Qn;else if(!Qn){if(xr==W)continue e;break e}}We[Pe++]=He}return We}dt.prototype=ou($c.prototype),dt.prototype.constructor=dt;function ta(a){var s=-1,p=a==null?0:a.length;for(this.clear();++s<p;){var y=a[s];this.set(y[0],y[1])}}function SA(){this.__data__=Ss?Ss(null):{},this.size=0}function AA(a){var s=this.has(a)&&delete this.__data__[a];return this.size-=s?1:0,s}function TA(a){var s=this.__data__;if(Ss){var p=s[a];return p===c?n:p}return At.call(s,a)?s[a]:n}function PA(a){var s=this.__data__;return Ss?s[a]!==n:At.call(s,a)}function _A(a,s){var p=this.__data__;return this.size+=this.has(a)?0:1,p[a]=Ss&&s===n?c:s,this}ta.prototype.clear=SA,ta.prototype.delete=AA,ta.prototype.get=TA,ta.prototype.has=PA,ta.prototype.set=_A;function Ii(a){var s=-1,p=a==null?0:a.length;for(this.clear();++s<p;){var y=a[s];this.set(y[0],y[1])}}function RA(){this.__data__=[],this.size=0}function OA(a){var s=this.__data__,p=xc(s,a);if(p<0)return!1;var y=s.length-1;return p==y?s.pop():hc.call(s,p,1),--this.size,!0}function FA(a){var s=this.__data__,p=xc(s,a);return p<0?n:s[p][1]}function MA(a){return xc(this.__data__,a)>-1}function kA(a,s){var p=this.__data__,y=xc(p,a);return y<0?(++this.size,p.push([a,s])):p[y][1]=s,this}Ii.prototype.clear=RA,Ii.prototype.delete=OA,Ii.prototype.get=FA,Ii.prototype.has=MA,Ii.prototype.set=kA;function Li(a){var s=-1,p=a==null?0:a.length;for(this.clear();++s<p;){var y=a[s];this.set(y[0],y[1])}}function BA(){this.size=0,this.__data__={hash:new ta,map:new(Es||Ii),string:new ta}}function IA(a){var s=Fc(this,a).delete(a);return this.size-=s?1:0,s}function LA(a){return Fc(this,a).get(a)}function VA(a){return Fc(this,a).has(a)}function NA(a,s){var p=Fc(this,a),y=p.size;return p.set(a,s),this.size+=p.size==y?0:1,this}Li.prototype.clear=BA,Li.prototype.delete=IA,Li.prototype.get=LA,Li.prototype.has=VA,Li.prototype.set=NA;function na(a){var s=-1,p=a==null?0:a.length;for(this.__data__=new Li;++s<p;)this.add(a[s])}function jA(a){return this.__data__.set(a,c),this}function KA(a){return this.__data__.has(a)}na.prototype.add=na.prototype.push=jA,na.prototype.has=KA;function Xr(a){var s=this.__data__=new Ii(a);this.size=s.size}function UA(){this.__data__=new Ii,this.size=0}function zA(a){var s=this.__data__,p=s.delete(a);return this.size=s.size,p}function WA(a){return this.__data__.get(a)}function HA(a){return this.__data__.has(a)}function GA(a,s){var p=this.__data__;if(p instanceof Ii){var y=p.__data__;if(!Es||y.length<i-1)return y.push([a,s]),this.size=++p.size,this;p=this.__data__=new Li(y)}return p.set(a,s),this.size=p.size,this}Xr.prototype.clear=UA,Xr.prototype.delete=zA,Xr.prototype.get=WA,Xr.prototype.has=HA,Xr.prototype.set=GA;function Jv(a,s){var p=Je(a),y=!p&&ua(a),A=!p&&!y&&wo(a),k=!p&&!y&&!A&&lu(a),H=p||y||A||k,Z=H?gp(a.length,rA):[],ee=Z.length;for(var me in a)(s||At.call(a,me))&&!(H&&(me=="length"||A&&(me=="offset"||me=="parent")||k&&(me=="buffer"||me=="byteLength"||me=="byteOffset")||Ki(me,ee)))&&Z.push(me);return Z}function Qv(a){var s=a.length;return s?a[Fp(0,s-1)]:n}function qA(a,s){return Mc(ur(a),ra(s,0,a.length))}function YA(a){return Mc(ur(a))}function Dp(a,s,p){(p!==n&&!ei(a[s],p)||p===n&&!(s in a))&&Vi(a,s,p)}function Ts(a,s,p){var y=a[s];(!(At.call(a,s)&&ei(y,p))||p===n&&!(s in a))&&Vi(a,s,p)}function xc(a,s){for(var p=a.length;p--;)if(ei(a[p][0],s))return p;return-1}function ZA(a,s,p,y){return vo(a,function(A,k,H){s(y,A,p(A),H)}),y}function Xv(a,s){return a&&bi(s,xn(s),a)}function JA(a,s){return a&&bi(s,lr(s),a)}function Vi(a,s,p){s=="__proto__"&&mc?mc(a,s,{configurable:!0,enumerable:!0,value:p,writable:!0}):a[s]=p}function Ep(a,s){for(var p=-1,y=s.length,A=ue(y),k=a==null;++p<y;)A[p]=k?n:ih(a,s[p]);return A}function ra(a,s,p){return a===a&&(p!==n&&(a=a<=p?a:p),s!==n&&(a=a>=s?a:s)),a}function Mr(a,s,p,y,A,k){var H,Z=s&h,ee=s&g,me=s&m;if(p&&(H=A?p(a,y,A,k):p(a)),H!==n)return H;if(!Gt(a))return a;var ge=Je(a);if(ge){if(H=VT(a),!Z)return ur(a,H)}else{var we=Nn(a),Pe=we==le||we==Me;if(wo(a))return Db(a,Z);if(we==gt||we==ie||Pe&&!A){if(H=ee||Pe?{}:Kb(a),!Z)return ee?TT(a,JA(H,a)):AT(a,Xv(H,a))}else{if(!Ot[we])return A?a:{};H=NT(a,we,Z)}}k||(k=new Xr);var Le=k.get(a);if(Le)return Le;k.set(a,H),y0(a)?a.forEach(function(He){H.add(Mr(He,s,p,He,a,k))}):m0(a)&&a.forEach(function(He,st){H.set(st,Mr(He,s,p,st,a,k))});var We=me?ee?zp:Up:ee?lr:xn,it=ge?n:We(a);return Rr(it||a,function(He,st){it&&(st=He,He=a[st]),Ts(H,st,Mr(He,s,p,st,a,k))}),H}function QA(a){var s=xn(a);return function(p){return eb(p,a,s)}}function eb(a,s,p){var y=p.length;if(a==null)return!y;for(a=Bt(a);y--;){var A=p[y],k=s[A],H=a[A];if(H===n&&!(A in a)||!k(H))return!1}return!0}function tb(a,s,p){if(typeof a!="function")throw new Or(u);return ks(function(){a.apply(n,p)},s)}function Ps(a,s,p,y){var A=-1,k=ic,H=!0,Z=a.length,ee=[],me=s.length;if(!Z)return ee;p&&(s=zt(s,vr(p))),y?(k=cp,H=!1):s.length>=i&&(k=ws,H=!1,s=new na(s));e:for(;++A<Z;){var ge=a[A],we=p==null?ge:p(ge);if(ge=y||ge!==0?ge:0,H&&we===we){for(var Pe=me;Pe--;)if(s[Pe]===we)continue e;ee.push(ge)}else k(s,we,y)||ee.push(ge)}return ee}var vo=Tb(vi),nb=Tb(Sp,!0);function XA(a,s){var p=!0;return vo(a,function(y,A,k){return p=!!s(y,A,k),p}),p}function wc(a,s,p){for(var y=-1,A=a.length;++y<A;){var k=a[y],H=s(k);if(H!=null&&(Z===n?H===H&&!$r(H):p(H,Z)))var Z=H,ee=k}return ee}function eT(a,s,p,y){var A=a.length;for(p=tt(p),p<0&&(p=-p>A?0:A+p),y=y===n||y>A?A:tt(y),y<0&&(y+=A),y=p>y?0:b0(y);p<y;)a[p++]=s;return a}function rb(a,s){var p=[];return vo(a,function(y,A,k){s(y,A,k)&&p.push(y)}),p}function _n(a,s,p,y,A){var k=-1,H=a.length;for(p||(p=KT),A||(A=[]);++k<H;){var Z=a[k];s>0&&p(Z)?s>1?_n(Z,s-1,p,y,A):mo(A,Z):y||(A[A.length]=Z)}return A}var Cp=Pb(),ib=Pb(!0);function vi(a,s){return a&&Cp(a,s,xn)}function Sp(a,s){return a&&ib(a,s,xn)}function Dc(a,s){return ho(s,function(p){return Ui(a[p])})}function ia(a,s){s=$o(s,a);for(var p=0,y=s.length;a!=null&&p<y;)a=a[$i(s[p++])];return p&&p==y?a:n}function ob(a,s,p){var y=s(a);return Je(a)?y:mo(y,p(a))}function Zn(a){return a==null?a===n?_e:vn:ea&&ea in Bt(a)?BT(a):YT(a)}function Ap(a,s){return a>s}function tT(a,s){return a!=null&&At.call(a,s)}function nT(a,s){return a!=null&&s in Bt(a)}function rT(a,s,p){return a>=Vn(s,p)&&a<hn(s,p)}function Tp(a,s,p){for(var y=p?cp:ic,A=a[0].length,k=a.length,H=k,Z=ue(k),ee=1/0,me=[];H--;){var ge=a[H];H&&s&&(ge=zt(ge,vr(s))),ee=Vn(ge.length,ee),Z[H]=!p&&(s||A>=120&&ge.length>=120)?new na(H&&ge):n}ge=a[0];var we=-1,Pe=Z[0];e:for(;++we<A&&me.length<ee;){var Le=ge[we],We=s?s(Le):Le;if(Le=p||Le!==0?Le:0,!(Pe?ws(Pe,We):y(me,We,p))){for(H=k;--H;){var it=Z[H];if(!(it?ws(it,We):y(a[H],We,p)))continue e}Pe&&Pe.push(We),me.push(Le)}}return me}function iT(a,s,p,y){return vi(a,function(A,k,H){s(y,p(A),k,H)}),y}function _s(a,s,p){s=$o(s,a),a=Hb(a,s);var y=a==null?a:a[$i(Br(s))];return y==null?n:yr(y,a,p)}function ab(a){return en(a)&&Zn(a)==ie}function oT(a){return en(a)&&Zn(a)==ut}function aT(a){return en(a)&&Zn(a)==ye}function Rs(a,s,p,y,A){return a===s?!0:a==null||s==null||!en(a)&&!en(s)?a!==a&&s!==s:uT(a,s,p,y,Rs,A)}function uT(a,s,p,y,A,k){var H=Je(a),Z=Je(s),ee=H?Ee:Nn(a),me=Z?Ee:Nn(s);ee=ee==ie?gt:ee,me=me==ie?gt:me;var ge=ee==gt,we=me==gt,Pe=ee==me;if(Pe&&wo(a)){if(!wo(s))return!1;H=!0,ge=!1}if(Pe&&!ge)return k||(k=new Xr),H||lu(a)?Vb(a,s,p,y,A,k):MT(a,s,ee,p,y,A,k);if(!(p&$)){var Le=ge&&At.call(a,"__wrapped__"),We=we&&At.call(s,"__wrapped__");if(Le||We){var it=Le?a.value():a,He=We?s.value():s;return k||(k=new Xr),A(it,He,p,y,k)}}return Pe?(k||(k=new Xr),kT(a,s,p,y,A,k)):!1}function sT(a){return en(a)&&Nn(a)==Xe}function Pp(a,s,p,y){var A=p.length,k=A,H=!y;if(a==null)return!k;for(a=Bt(a);A--;){var Z=p[A];if(H&&Z[2]?Z[1]!==a[Z[0]]:!(Z[0]in a))return!1}for(;++A<k;){Z=p[A];var ee=Z[0],me=a[ee],ge=Z[1];if(H&&Z[2]){if(me===n&&!(ee in a))return!1}else{var we=new Xr;if(y)var Pe=y(me,ge,ee,a,s,we);if(!(Pe===n?Rs(ge,me,$|w,y,we):Pe))return!1}}return!0}function ub(a){if(!Gt(a)||zT(a))return!1;var s=Ui(a)?sA:lo;return s.test(aa(a))}function lT(a){return en(a)&&Zn(a)==te}function cT(a){return en(a)&&Nn(a)==he}function dT(a){return en(a)&&Nc(a.length)&&!!kt[Zn(a)]}function sb(a){return typeof a=="function"?a:a==null?cr:typeof a=="object"?Je(a)?db(a[0],a[1]):cb(a):_0(a)}function _p(a){if(!Ms(a))return hA(a);var s=[];for(var p in Bt(a))At.call(a,p)&&p!="constructor"&&s.push(p);return s}function fT(a){if(!Gt(a))return qT(a);var s=Ms(a),p=[];for(var y in a)y=="constructor"&&(s||!At.call(a,y))||p.push(y);return p}function Rp(a,s){return a<s}function lb(a,s){var p=-1,y=sr(a)?ue(a.length):[];return vo(a,function(A,k,H){y[++p]=s(A,k,H)}),y}function cb(a){var s=Hp(a);return s.length==1&&s[0][2]?zb(s[0][0],s[0][1]):function(p){return p===a||Pp(p,a,s)}}function db(a,s){return qp(a)&&Ub(s)?zb($i(a),s):function(p){var y=ih(p,a);return y===n&&y===s?oh(p,a):Rs(s,y,$|w)}}function Ec(a,s,p,y,A){a!==s&&Cp(s,function(k,H){if(A||(A=new Xr),Gt(k))pT(a,s,H,p,Ec,y,A);else{var Z=y?y(Zp(a,H),k,H+"",a,s,A):n;Z===n&&(Z=k),Dp(a,H,Z)}},lr)}function pT(a,s,p,y,A,k,H){var Z=Zp(a,p),ee=Zp(s,p),me=H.get(ee);if(me){Dp(a,p,me);return}var ge=k?k(Z,ee,p+"",a,s,H):n,we=ge===n;if(we){var Pe=Je(ee),Le=!Pe&&wo(ee),We=!Pe&&!Le&&lu(ee);ge=ee,Pe||Le||We?Je(Z)?ge=Z:nn(Z)?ge=ur(Z):Le?(we=!1,ge=Db(ee,!0)):We?(we=!1,ge=Eb(ee,!0)):ge=[]:Bs(ee)||ua(ee)?(ge=Z,ua(Z)?ge=$0(Z):(!Gt(Z)||Ui(Z))&&(ge=Kb(ee))):we=!1}we&&(H.set(ee,ge),A(ge,ee,y,k,H),H.delete(ee)),Dp(a,p,ge)}function fb(a,s){var p=a.length;if(p)return s+=s<0?p:0,Ki(s,p)?a[s]:n}function pb(a,s,p){s.length?s=zt(s,function(k){return Je(k)?function(H){return ia(H,k.length===1?k[0]:k)}:k}):s=[cr];var y=-1;s=zt(s,vr(Ue()));var A=lb(a,function(k,H,Z){var ee=zt(s,function(me){return me(k)});return{criteria:ee,index:++y,value:k}});return N6(A,function(k,H){return ST(k,H,p)})}function hT(a,s){return hb(a,s,function(p,y){return oh(a,y)})}function hb(a,s,p){for(var y=-1,A=s.length,k={};++y<A;){var H=s[y],Z=ia(a,H);p(Z,H)&&Os(k,$o(H,a),Z)}return k}function mT(a){return function(s){return ia(s,a)}}function Op(a,s,p,y){var A=y?V6:Qa,k=-1,H=s.length,Z=a;for(a===s&&(s=ur(s)),p&&(Z=zt(a,vr(p)));++k<H;)for(var ee=0,me=s[k],ge=p?p(me):me;(ee=A(Z,ge,ee,y))>-1;)Z!==a&&hc.call(Z,ee,1),hc.call(a,ee,1);return a}function mb(a,s){for(var p=a?s.length:0,y=p-1;p--;){var A=s[p];if(p==y||A!==k){var k=A;Ki(A)?hc.call(a,A,1):Bp(a,A)}}return a}function Fp(a,s){return a+yc(Yv()*(s-a+1))}function gT(a,s,p,y){for(var A=-1,k=hn(gc((s-a)/(p||1)),0),H=ue(k);k--;)H[y?k:++A]=a,a+=p;return H}function Mp(a,s){var p="";if(!a||s<1||s>B)return p;do s%2&&(p+=a),s=yc(s/2),s&&(a+=a);while(s);return p}function at(a,s){return Jp(Wb(a,s,cr),a+"")}function yT(a){return Qv(cu(a))}function vT(a,s){var p=cu(a);return Mc(p,ra(s,0,p.length))}function Os(a,s,p,y){if(!Gt(a))return a;s=$o(s,a);for(var A=-1,k=s.length,H=k-1,Z=a;Z!=null&&++A<k;){var ee=$i(s[A]),me=p;if(ee==="__proto__"||ee==="constructor"||ee==="prototype")return a;if(A!=H){var ge=Z[ee];me=y?y(ge,ee,Z):n,me===n&&(me=Gt(ge)?ge:Ki(s[A+1])?[]:{})}Ts(Z,ee,me),Z=Z[ee]}return a}var gb=vc?function(a,s){return vc.set(a,s),a}:cr,bT=mc?function(a,s){return mc(a,"toString",{configurable:!0,enumerable:!1,value:uh(s),writable:!0})}:cr;function $T(a){return Mc(cu(a))}function kr(a,s,p){var y=-1,A=a.length;s<0&&(s=-s>A?0:A+s),p=p>A?A:p,p<0&&(p+=A),A=s>p?0:p-s>>>0,s>>>=0;for(var k=ue(A);++y<A;)k[y]=a[y+s];return k}function xT(a,s){var p;return vo(a,function(y,A,k){return p=s(y,A,k),!p}),!!p}function Cc(a,s,p){var y=0,A=a==null?y:a.length;if(typeof s=="number"&&s===s&&A<=oe){for(;y<A;){var k=y+A>>>1,H=a[k];H!==null&&!$r(H)&&(p?H<=s:H<s)?y=k+1:A=k}return A}return kp(a,s,cr,p)}function kp(a,s,p,y){var A=0,k=a==null?0:a.length;if(k===0)return 0;s=p(s);for(var H=s!==s,Z=s===null,ee=$r(s),me=s===n;A<k;){var ge=yc((A+k)/2),we=p(a[ge]),Pe=we!==n,Le=we===null,We=we===we,it=$r(we);if(H)var He=y||We;else me?He=We&&(y||Pe):Z?He=We&&Pe&&(y||!Le):ee?He=We&&Pe&&!Le&&(y||!it):Le||it?He=!1:He=y?we<=s:we<s;He?A=ge+1:k=ge}return Vn(k,re)}function yb(a,s){for(var p=-1,y=a.length,A=0,k=[];++p<y;){var H=a[p],Z=s?s(H):H;if(!p||!ei(Z,ee)){var ee=Z;k[A++]=H===0?0:H}}return k}function vb(a){return typeof a=="number"?a:$r(a)?L:+a}function br(a){if(typeof a=="string")return a;if(Je(a))return zt(a,br)+"";if($r(a))return Zv?Zv.call(a):"";var s=a+"";return s=="0"&&1/a==-1/0?"-0":s}function bo(a,s,p){var y=-1,A=ic,k=a.length,H=!0,Z=[],ee=Z;if(p)H=!1,A=cp;else if(k>=i){var me=s?null:OT(a);if(me)return ac(me);H=!1,A=ws,ee=new na}else ee=s?[]:Z;e:for(;++y<k;){var ge=a[y],we=s?s(ge):ge;if(ge=p||ge!==0?ge:0,H&&we===we){for(var Pe=ee.length;Pe--;)if(ee[Pe]===we)continue e;s&&ee.push(we),Z.push(ge)}else A(ee,we,p)||(ee!==Z&&ee.push(we),Z.push(ge))}return Z}function Bp(a,s){return s=$o(s,a),a=Hb(a,s),a==null||delete a[$i(Br(s))]}function bb(a,s,p,y){return Os(a,s,p(ia(a,s)),y)}function Sc(a,s,p,y){for(var A=a.length,k=y?A:-1;(y?k--:++k<A)&&s(a[k],k,a););return p?kr(a,y?0:k,y?k+1:A):kr(a,y?k+1:0,y?A:k)}function $b(a,s){var p=a;return p instanceof dt&&(p=p.value()),dp(s,function(y,A){return A.func.apply(A.thisArg,mo([y],A.args))},p)}function Ip(a,s,p){var y=a.length;if(y<2)return y?bo(a[0]):[];for(var A=-1,k=ue(y);++A<y;)for(var H=a[A],Z=-1;++Z<y;)Z!=A&&(k[A]=Ps(k[A]||H,a[Z],s,p));return bo(_n(k,1),s,p)}function xb(a,s,p){for(var y=-1,A=a.length,k=s.length,H={};++y<A;){var Z=y<k?s[y]:n;p(H,a[y],Z)}return H}function Lp(a){return nn(a)?a:[]}function Vp(a){return typeof a=="function"?a:cr}function $o(a,s){return Je(a)?a:qp(a,s)?[a]:Zb(wt(a))}var wT=at;function xo(a,s,p){var y=a.length;return p=p===n?y:p,!s&&p>=y?a:kr(a,s,p)}var wb=lA||function(a){return ln.clearTimeout(a)};function Db(a,s){if(s)return a.slice();var p=a.length,y=zv?zv(p):new a.constructor(p);return a.copy(y),y}function Np(a){var s=new a.constructor(a.byteLength);return new fc(s).set(new fc(a)),s}function DT(a,s){var p=s?Np(a.buffer):a.buffer;return new a.constructor(p,a.byteOffset,a.byteLength)}function ET(a){var s=new a.constructor(a.source,or.exec(a));return s.lastIndex=a.lastIndex,s}function CT(a){return As?Bt(As.call(a)):{}}function Eb(a,s){var p=s?Np(a.buffer):a.buffer;return new a.constructor(p,a.byteOffset,a.length)}function Cb(a,s){if(a!==s){var p=a!==n,y=a===null,A=a===a,k=$r(a),H=s!==n,Z=s===null,ee=s===s,me=$r(s);if(!Z&&!me&&!k&&a>s||k&&H&&ee&&!Z&&!me||y&&H&&ee||!p&&ee||!A)return 1;if(!y&&!k&&!me&&a<s||me&&p&&A&&!y&&!k||Z&&p&&A||!H&&A||!ee)return-1}return 0}function ST(a,s,p){for(var y=-1,A=a.criteria,k=s.criteria,H=A.length,Z=p.length;++y<H;){var ee=Cb(A[y],k[y]);if(ee){if(y>=Z)return ee;var me=p[y];return ee*(me=="desc"?-1:1)}}return a.index-s.index}function Sb(a,s,p,y){for(var A=-1,k=a.length,H=p.length,Z=-1,ee=s.length,me=hn(k-H,0),ge=ue(ee+me),we=!y;++Z<ee;)ge[Z]=s[Z];for(;++A<H;)(we||A<k)&&(ge[p[A]]=a[A]);for(;me--;)ge[Z++]=a[A++];return ge}function Ab(a,s,p,y){for(var A=-1,k=a.length,H=-1,Z=p.length,ee=-1,me=s.length,ge=hn(k-Z,0),we=ue(ge+me),Pe=!y;++A<ge;)we[A]=a[A];for(var Le=A;++ee<me;)we[Le+ee]=s[ee];for(;++H<Z;)(Pe||A<k)&&(we[Le+p[H]]=a[A++]);return we}function ur(a,s){var p=-1,y=a.length;for(s||(s=ue(y));++p<y;)s[p]=a[p];return s}function bi(a,s,p,y){var A=!p;p||(p={});for(var k=-1,H=s.length;++k<H;){var Z=s[k],ee=y?y(p[Z],a[Z],Z,p,a):n;ee===n&&(ee=a[Z]),A?Vi(p,Z,ee):Ts(p,Z,ee)}return p}function AT(a,s){return bi(a,Gp(a),s)}function TT(a,s){return bi(a,Nb(a),s)}function Ac(a,s){return function(p,y){var A=Je(p)?F6:ZA,k=s?s():{};return A(p,a,Ue(y,2),k)}}function au(a){return at(function(s,p){var y=-1,A=p.length,k=A>1?p[A-1]:n,H=A>2?p[2]:n;for(k=a.length>3&&typeof k=="function"?(A--,k):n,H&&Jn(p[0],p[1],H)&&(k=A<3?n:k,A=1),s=Bt(s);++y<A;){var Z=p[y];Z&&a(s,Z,y,k)}return s})}function Tb(a,s){return function(p,y){if(p==null)return p;if(!sr(p))return a(p,y);for(var A=p.length,k=s?A:-1,H=Bt(p);(s?k--:++k<A)&&y(H[k],k,H)!==!1;);return p}}function Pb(a){return function(s,p,y){for(var A=-1,k=Bt(s),H=y(s),Z=H.length;Z--;){var ee=H[a?Z:++A];if(p(k[ee],ee,k)===!1)break}return s}}function PT(a,s,p){var y=s&C,A=Fs(a);function k(){var H=this&&this!==ln&&this instanceof k?A:a;return H.apply(y?p:this,arguments)}return k}function _b(a){return function(s){s=wt(s);var p=Xa(s)?Qr(s):n,y=p?p[0]:s.charAt(0),A=p?xo(p,1).join(""):s.slice(1);return y[a]()+A}}function uu(a){return function(s){return dp(T0(A0(s).replace(nc,"")),a,"")}}function Fs(a){return function(){var s=arguments;switch(s.length){case 0:return new a;case 1:return new a(s[0]);case 2:return new a(s[0],s[1]);case 3:return new a(s[0],s[1],s[2]);case 4:return new a(s[0],s[1],s[2],s[3]);case 5:return new a(s[0],s[1],s[2],s[3],s[4]);case 6:return new a(s[0],s[1],s[2],s[3],s[4],s[5]);case 7:return new a(s[0],s[1],s[2],s[3],s[4],s[5],s[6])}var p=ou(a.prototype),y=a.apply(p,s);return Gt(y)?y:p}}function _T(a,s,p){var y=Fs(a);function A(){for(var k=arguments.length,H=ue(k),Z=k,ee=su(A);Z--;)H[Z]=arguments[Z];var me=k<3&&H[0]!==ee&&H[k-1]!==ee?[]:go(H,ee);if(k-=me.length,k<p)return kb(a,s,Tc,A.placeholder,n,H,me,n,n,p-k);var ge=this&&this!==ln&&this instanceof A?y:a;return yr(ge,this,H)}return A}function Rb(a){return function(s,p,y){var A=Bt(s);if(!sr(s)){var k=Ue(p,3);s=xn(s),p=function(Z){return k(A[Z],Z,A)}}var H=a(s,p,y);return H>-1?A[k?s[H]:H]:n}}function Ob(a){return ji(function(s){var p=s.length,y=p,A=Fr.prototype.thru;for(a&&s.reverse();y--;){var k=s[y];if(typeof k!="function")throw new Or(u);if(A&&!H&&Oc(k)=="wrapper")var H=new Fr([],!0)}for(y=H?y:p;++y<p;){k=s[y];var Z=Oc(k),ee=Z=="wrapper"?Wp(k):n;ee&&Yp(ee[0])&&ee[1]==(V|D|E|S)&&!ee[4].length&&ee[9]==1?H=H[Oc(ee[0])].apply(H,ee[3]):H=k.length==1&&Yp(k)?H[Z]():H.thru(k)}return function(){var me=arguments,ge=me[0];if(H&&me.length==1&&Je(ge))return H.plant(ge).value();for(var we=0,Pe=p?s[we].apply(this,me):ge;++we<p;)Pe=s[we].call(this,Pe);return Pe}})}function Tc(a,s,p,y,A,k,H,Z,ee,me){var ge=s&V,we=s&C,Pe=s&x,Le=s&(D|P),We=s&z,it=Pe?n:Fs(a);function He(){for(var st=arguments.length,ft=ue(st),xr=st;xr--;)ft[xr]=arguments[xr];if(Le)var Qn=su(He),wr=K6(ft,Qn);if(y&&(ft=Sb(ft,y,A,Le)),k&&(ft=Ab(ft,k,H,Le)),st-=wr,Le&&st<me){var rn=go(ft,Qn);return kb(a,s,Tc,He.placeholder,p,ft,rn,Z,ee,me-st)}var ti=we?p:this,Wi=Pe?ti[a]:a;return st=ft.length,Z?ft=ZT(ft,Z):We&&st>1&&ft.reverse(),ge&&ee<st&&(ft.length=ee),this&&this!==ln&&this instanceof He&&(Wi=it||Fs(Wi)),Wi.apply(ti,ft)}return He}function Fb(a,s){return function(p,y){return iT(p,a,s(y),{})}}function Pc(a,s){return function(p,y){var A;if(p===n&&y===n)return s;if(p!==n&&(A=p),y!==n){if(A===n)return y;typeof p=="string"||typeof y=="string"?(p=br(p),y=br(y)):(p=vb(p),y=vb(y)),A=a(p,y)}return A}}function jp(a){return ji(function(s){return s=zt(s,vr(Ue())),at(function(p){var y=this;return a(s,function(A){return yr(A,y,p)})})})}function _c(a,s){s=s===n?" ":br(s);var p=s.length;if(p<2)return p?Mp(s,a):s;var y=Mp(s,gc(a/eu(s)));return Xa(s)?xo(Qr(y),0,a).join(""):y.slice(0,a)}function RT(a,s,p,y){var A=s&C,k=Fs(a);function H(){for(var Z=-1,ee=arguments.length,me=-1,ge=y.length,we=ue(ge+ee),Pe=this&&this!==ln&&this instanceof H?k:a;++me<ge;)we[me]=y[me];for(;ee--;)we[me++]=arguments[++Z];return yr(Pe,A?p:this,we)}return H}function Mb(a){return function(s,p,y){return y&&typeof y!="number"&&Jn(s,p,y)&&(p=y=n),s=zi(s),p===n?(p=s,s=0):p=zi(p),y=y===n?s<p?1:-1:zi(y),gT(s,p,y,a)}}function Rc(a){return function(s,p){return typeof s=="string"&&typeof p=="string"||(s=Ir(s),p=Ir(p)),a(s,p)}}function kb(a,s,p,y,A,k,H,Z,ee,me){var ge=s&D,we=ge?H:n,Pe=ge?n:H,Le=ge?k:n,We=ge?n:k;s|=ge?E:T,s&=~(ge?T:E),s&v||(s&=-4);var it=[a,s,A,Le,we,We,Pe,Z,ee,me],He=p.apply(n,it);return Yp(a)&&Gb(He,it),He.placeholder=y,qb(He,a,s)}function Kp(a){var s=pn[a];return function(p,y){if(p=Ir(p),y=y==null?0:Vn(tt(y),292),y&&qv(p)){var A=(wt(p)+"e").split("e"),k=s(A[0]+"e"+(+A[1]+y));return A=(wt(k)+"e").split("e"),+(A[0]+"e"+(+A[1]-y))}return s(p)}}var OT=ru&&1/ac(new ru([,-0]))[1]==R?function(a){return new ru(a)}:ch;function Bb(a){return function(s){var p=Nn(s);return p==Xe?vp(s):p==he?Y6(s):j6(s,a(s))}}function Ni(a,s,p,y,A,k,H,Z){var ee=s&x;if(!ee&&typeof a!="function")throw new Or(u);var me=y?y.length:0;if(me||(s&=-97,y=A=n),H=H===n?H:hn(tt(H),0),Z=Z===n?Z:tt(Z),me-=A?A.length:0,s&T){var ge=y,we=A;y=A=n}var Pe=ee?n:Wp(a),Le=[a,s,p,y,A,ge,we,k,H,Z];if(Pe&>(Le,Pe),a=Le[0],s=Le[1],p=Le[2],y=Le[3],A=Le[4],Z=Le[9]=Le[9]===n?ee?0:a.length:hn(Le[9]-me,0),!Z&&s&(D|P)&&(s&=-25),!s||s==C)var We=PT(a,s,p);else s==D||s==P?We=_T(a,s,Z):(s==E||s==(C|E))&&!A.length?We=RT(a,s,p,y):We=Tc.apply(n,Le);var it=Pe?gb:Gb;return qb(it(We,Le),a,s)}function Ib(a,s,p,y){return a===n||ei(a,nu[p])&&!At.call(y,p)?s:a}function Lb(a,s,p,y,A,k){return Gt(a)&&Gt(s)&&(k.set(s,a),Ec(a,s,n,Lb,k),k.delete(s)),a}function FT(a){return Bs(a)?n:a}function Vb(a,s,p,y,A,k){var H=p&$,Z=a.length,ee=s.length;if(Z!=ee&&!(H&&ee>Z))return!1;var me=k.get(a),ge=k.get(s);if(me&&ge)return me==s&&ge==a;var we=-1,Pe=!0,Le=p&w?new na:n;for(k.set(a,s),k.set(s,a);++we<Z;){var We=a[we],it=s[we];if(y)var He=H?y(it,We,we,s,a,k):y(We,it,we,a,s,k);if(He!==n){if(He)continue;Pe=!1;break}if(Le){if(!fp(s,function(st,ft){if(!ws(Le,ft)&&(We===st||A(We,st,p,y,k)))return Le.push(ft)})){Pe=!1;break}}else if(!(We===it||A(We,it,p,y,k))){Pe=!1;break}}return k.delete(a),k.delete(s),Pe}function MT(a,s,p,y,A,k,H){switch(p){case _t:if(a.byteLength!=s.byteLength||a.byteOffset!=s.byteOffset)return!1;a=a.buffer,s=s.buffer;case ut:return!(a.byteLength!=s.byteLength||!k(new fc(a),new fc(s)));case ne:case ye:case ct:return ei(+a,+s);case pe:return a.name==s.name&&a.message==s.message;case te:case Ce:return a==s+"";case Xe:var Z=vp;case he:var ee=y&$;if(Z||(Z=ac),a.size!=s.size&&!ee)return!1;var me=H.get(a);if(me)return me==s;y|=w,H.set(a,s);var ge=Vb(Z(a),Z(s),y,A,k,H);return H.delete(a),ge;case De:if(As)return As.call(a)==As.call(s)}return!1}function kT(a,s,p,y,A,k){var H=p&$,Z=Up(a),ee=Z.length,me=Up(s),ge=me.length;if(ee!=ge&&!H)return!1;for(var we=ee;we--;){var Pe=Z[we];if(!(H?Pe in s:At.call(s,Pe)))return!1}var Le=k.get(a),We=k.get(s);if(Le&&We)return Le==s&&We==a;var it=!0;k.set(a,s),k.set(s,a);for(var He=H;++we<ee;){Pe=Z[we];var st=a[Pe],ft=s[Pe];if(y)var xr=H?y(ft,st,Pe,s,a,k):y(st,ft,Pe,a,s,k);if(!(xr===n?st===ft||A(st,ft,p,y,k):xr)){it=!1;break}He||(He=Pe=="constructor")}if(it&&!He){var Qn=a.constructor,wr=s.constructor;Qn!=wr&&"constructor"in a&&"constructor"in s&&!(typeof Qn=="function"&&Qn instanceof Qn&&typeof wr=="function"&&wr instanceof wr)&&(it=!1)}return k.delete(a),k.delete(s),it}function ji(a){return Jp(Wb(a,n,e0),a+"")}function Up(a){return ob(a,xn,Gp)}function zp(a){return ob(a,lr,Nb)}var Wp=vc?function(a){return vc.get(a)}:ch;function Oc(a){for(var s=a.name+"",p=iu[s],y=At.call(iu,s)?p.length:0;y--;){var A=p[y],k=A.func;if(k==null||k==a)return A.name}return s}function su(a){var s=At.call(_,"placeholder")?_:a;return s.placeholder}function Ue(){var a=_.iteratee||sh;return a=a===sh?sb:a,arguments.length?a(arguments[0],arguments[1]):a}function Fc(a,s){var p=a.__data__;return UT(s)?p[typeof s=="string"?"string":"hash"]:p.map}function Hp(a){for(var s=xn(a),p=s.length;p--;){var y=s[p],A=a[y];s[p]=[y,A,Ub(A)]}return s}function oa(a,s){var p=H6(a,s);return ub(p)?p:n}function BT(a){var s=At.call(a,ea),p=a[ea];try{a[ea]=n;var y=!0}catch{}var A=cc.call(a);return y&&(s?a[ea]=p:delete a[ea]),A}var Gp=$p?function(a){return a==null?[]:(a=Bt(a),ho($p(a),function(s){return Hv.call(a,s)}))}:dh,Nb=$p?function(a){for(var s=[];a;)mo(s,Gp(a)),a=pc(a);return s}:dh,Nn=Zn;(xp&&Nn(new xp(new ArrayBuffer(1)))!=_t||Es&&Nn(new Es)!=Xe||wp&&Nn(wp.resolve())!=q||ru&&Nn(new ru)!=he||Cs&&Nn(new Cs)!=Ve)&&(Nn=function(a){var s=Zn(a),p=s==gt?a.constructor:n,y=p?aa(p):"";if(y)switch(y){case vA:return _t;case bA:return Xe;case $A:return q;case xA:return he;case wA:return Ve}return s});function IT(a,s,p){for(var y=-1,A=p.length;++y<A;){var k=p[y],H=k.size;switch(k.type){case"drop":a+=H;break;case"dropRight":s-=H;break;case"take":s=Vn(s,a+H);break;case"takeRight":a=hn(a,s-H);break}}return{start:a,end:s}}function LT(a){var s=a.match(Nt);return s?s[1].split(tn):[]}function jb(a,s,p){s=$o(s,a);for(var y=-1,A=s.length,k=!1;++y<A;){var H=$i(s[y]);if(!(k=a!=null&&p(a,H)))break;a=a[H]}return k||++y!=A?k:(A=a==null?0:a.length,!!A&&Nc(A)&&Ki(H,A)&&(Je(a)||ua(a)))}function VT(a){var s=a.length,p=new a.constructor(s);return s&&typeof a[0]=="string"&&At.call(a,"index")&&(p.index=a.index,p.input=a.input),p}function Kb(a){return typeof a.constructor=="function"&&!Ms(a)?ou(pc(a)):{}}function NT(a,s,p){var y=a.constructor;switch(s){case ut:return Np(a);case ne:case ye:return new y(+a);case _t:return DT(a,p);case En:case Cn:case Ht:case Rn:case Jt:case yt:case On:case gr:case Sn:return Eb(a,p);case Xe:return new y;case ct:case Ce:return new y(a);case te:return ET(a);case he:return new y;case De:return CT(a)}}function jT(a,s){var p=s.length;if(!p)return a;var y=p-1;return s[y]=(p>1?"& ":"")+s[y],s=s.join(p>2?", ":" "),a.replace(Mn,`{
|
|
66
|
-
/* [wrapped with `+s+`] */
|
|
67
|
-
`)}function KT(a){return Je(a)||ua(a)||!!(Gv&&a&&a[Gv])}function Ki(a,s){var p=typeof a;return s=s??B,!!s&&(p=="number"||p!="symbol"&&qn.test(a))&&a>-1&&a%1==0&&a<s}function Jn(a,s,p){if(!Gt(p))return!1;var y=typeof s;return(y=="number"?sr(p)&&Ki(s,p.length):y=="string"&&s in p)?ei(p[s],a):!1}function qp(a,s){if(Je(a))return!1;var p=typeof a;return p=="number"||p=="symbol"||p=="boolean"||a==null||$r(a)?!0:ir.test(a)||!Qt.test(a)||s!=null&&a in Bt(s)}function UT(a){var s=typeof a;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?a!=="__proto__":a===null}function Yp(a){var s=Oc(a),p=_[s];if(typeof p!="function"||!(s in dt.prototype))return!1;if(a===p)return!0;var y=Wp(p);return!!y&&a===y[0]}function zT(a){return!!Uv&&Uv in a}var WT=sc?Ui:fh;function Ms(a){var s=a&&a.constructor,p=typeof s=="function"&&s.prototype||nu;return a===p}function Ub(a){return a===a&&!Gt(a)}function zb(a,s){return function(p){return p==null?!1:p[a]===s&&(s!==n||a in Bt(p))}}function HT(a){var s=Lc(a,function(y){return p.size===d&&p.clear(),y}),p=s.cache;return s}function GT(a,s){var p=a[1],y=s[1],A=p|y,k=A<(C|x|V),H=y==V&&p==D||y==V&&p==S&&a[7].length<=s[8]||y==(V|S)&&s[7].length<=s[8]&&p==D;if(!(k||H))return a;y&C&&(a[2]=s[2],A|=p&C?0:v);var Z=s[3];if(Z){var ee=a[3];a[3]=ee?Sb(ee,Z,s[4]):Z,a[4]=ee?go(a[3],f):s[4]}return Z=s[5],Z&&(ee=a[5],a[5]=ee?Ab(ee,Z,s[6]):Z,a[6]=ee?go(a[5],f):s[6]),Z=s[7],Z&&(a[7]=Z),y&V&&(a[8]=a[8]==null?s[8]:Vn(a[8],s[8])),a[9]==null&&(a[9]=s[9]),a[0]=s[0],a[1]=A,a}function qT(a){var s=[];if(a!=null)for(var p in Bt(a))s.push(p);return s}function YT(a){return cc.call(a)}function Wb(a,s,p){return s=hn(s===n?a.length-1:s,0),function(){for(var y=arguments,A=-1,k=hn(y.length-s,0),H=ue(k);++A<k;)H[A]=y[s+A];A=-1;for(var Z=ue(s+1);++A<s;)Z[A]=y[A];return Z[s]=p(H),yr(a,this,Z)}}function Hb(a,s){return s.length<2?a:ia(a,kr(s,0,-1))}function ZT(a,s){for(var p=a.length,y=Vn(s.length,p),A=ur(a);y--;){var k=s[y];a[y]=Ki(k,p)?A[k]:n}return a}function Zp(a,s){if(!(s==="constructor"&&typeof a[s]=="function")&&s!="__proto__")return a[s]}var Gb=Yb(gb),ks=dA||function(a,s){return ln.setTimeout(a,s)},Jp=Yb(bT);function qb(a,s,p){var y=s+"";return Jp(a,jT(y,JT(LT(y),p)))}function Yb(a){var s=0,p=0;return function(){var y=mA(),A=K-(y-p);if(p=y,A>0){if(++s>=G)return arguments[0]}else s=0;return a.apply(n,arguments)}}function Mc(a,s){var p=-1,y=a.length,A=y-1;for(s=s===n?y:s;++p<s;){var k=Fp(p,A),H=a[k];a[k]=a[p],a[p]=H}return a.length=s,a}var Zb=HT(function(a){var s=[];return a.charCodeAt(0)===46&&s.push(""),a.replace(Ae,function(p,y,A,k){s.push(A?k.replace(Jr,"$1"):y||p)}),s});function $i(a){if(typeof a=="string"||$r(a))return a;var s=a+"";return s=="0"&&1/a==-1/0?"-0":s}function aa(a){if(a!=null){try{return lc.call(a)}catch{}try{return a+""}catch{}}return""}function JT(a,s){return Rr(fe,function(p){var y="_."+p[0];s&p[1]&&!ic(a,y)&&a.push(y)}),a.sort()}function Jb(a){if(a instanceof dt)return a.clone();var s=new Fr(a.__wrapped__,a.__chain__);return s.__actions__=ur(a.__actions__),s.__index__=a.__index__,s.__values__=a.__values__,s}function QT(a,s,p){(p?Jn(a,s,p):s===n)?s=1:s=hn(tt(s),0);var y=a==null?0:a.length;if(!y||s<1)return[];for(var A=0,k=0,H=ue(gc(y/s));A<y;)H[k++]=kr(a,A,A+=s);return H}function XT(a){for(var s=-1,p=a==null?0:a.length,y=0,A=[];++s<p;){var k=a[s];k&&(A[y++]=k)}return A}function eP(){var a=arguments.length;if(!a)return[];for(var s=ue(a-1),p=arguments[0],y=a;y--;)s[y-1]=arguments[y];return mo(Je(p)?ur(p):[p],_n(s,1))}var tP=at(function(a,s){return nn(a)?Ps(a,_n(s,1,nn,!0)):[]}),nP=at(function(a,s){var p=Br(s);return nn(p)&&(p=n),nn(a)?Ps(a,_n(s,1,nn,!0),Ue(p,2)):[]}),rP=at(function(a,s){var p=Br(s);return nn(p)&&(p=n),nn(a)?Ps(a,_n(s,1,nn,!0),n,p):[]});function iP(a,s,p){var y=a==null?0:a.length;return y?(s=p||s===n?1:tt(s),kr(a,s<0?0:s,y)):[]}function oP(a,s,p){var y=a==null?0:a.length;return y?(s=p||s===n?1:tt(s),s=y-s,kr(a,0,s<0?0:s)):[]}function aP(a,s){return a&&a.length?Sc(a,Ue(s,3),!0,!0):[]}function uP(a,s){return a&&a.length?Sc(a,Ue(s,3),!0):[]}function sP(a,s,p,y){var A=a==null?0:a.length;return A?(p&&typeof p!="number"&&Jn(a,s,p)&&(p=0,y=A),eT(a,s,p,y)):[]}function Qb(a,s,p){var y=a==null?0:a.length;if(!y)return-1;var A=p==null?0:tt(p);return A<0&&(A=hn(y+A,0)),oc(a,Ue(s,3),A)}function Xb(a,s,p){var y=a==null?0:a.length;if(!y)return-1;var A=y-1;return p!==n&&(A=tt(p),A=p<0?hn(y+A,0):Vn(A,y-1)),oc(a,Ue(s,3),A,!0)}function e0(a){var s=a==null?0:a.length;return s?_n(a,1):[]}function lP(a){var s=a==null?0:a.length;return s?_n(a,R):[]}function cP(a,s){var p=a==null?0:a.length;return p?(s=s===n?1:tt(s),_n(a,s)):[]}function dP(a){for(var s=-1,p=a==null?0:a.length,y={};++s<p;){var A=a[s];y[A[0]]=A[1]}return y}function t0(a){return a&&a.length?a[0]:n}function fP(a,s,p){var y=a==null?0:a.length;if(!y)return-1;var A=p==null?0:tt(p);return A<0&&(A=hn(y+A,0)),Qa(a,s,A)}function pP(a){var s=a==null?0:a.length;return s?kr(a,0,-1):[]}var hP=at(function(a){var s=zt(a,Lp);return s.length&&s[0]===a[0]?Tp(s):[]}),mP=at(function(a){var s=Br(a),p=zt(a,Lp);return s===Br(p)?s=n:p.pop(),p.length&&p[0]===a[0]?Tp(p,Ue(s,2)):[]}),gP=at(function(a){var s=Br(a),p=zt(a,Lp);return s=typeof s=="function"?s:n,s&&p.pop(),p.length&&p[0]===a[0]?Tp(p,n,s):[]});function yP(a,s){return a==null?"":pA.call(a,s)}function Br(a){var s=a==null?0:a.length;return s?a[s-1]:n}function vP(a,s,p){var y=a==null?0:a.length;if(!y)return-1;var A=y;return p!==n&&(A=tt(p),A=A<0?hn(y+A,0):Vn(A,y-1)),s===s?J6(a,s,A):oc(a,kv,A,!0)}function bP(a,s){return a&&a.length?fb(a,tt(s)):n}var $P=at(n0);function n0(a,s){return a&&a.length&&s&&s.length?Op(a,s):a}function xP(a,s,p){return a&&a.length&&s&&s.length?Op(a,s,Ue(p,2)):a}function wP(a,s,p){return a&&a.length&&s&&s.length?Op(a,s,n,p):a}var DP=ji(function(a,s){var p=a==null?0:a.length,y=Ep(a,s);return mb(a,zt(s,function(A){return Ki(A,p)?+A:A}).sort(Cb)),y});function EP(a,s){var p=[];if(!(a&&a.length))return p;var y=-1,A=[],k=a.length;for(s=Ue(s,3);++y<k;){var H=a[y];s(H,y,a)&&(p.push(H),A.push(y))}return mb(a,A),p}function Qp(a){return a==null?a:yA.call(a)}function CP(a,s,p){var y=a==null?0:a.length;return y?(p&&typeof p!="number"&&Jn(a,s,p)?(s=0,p=y):(s=s==null?0:tt(s),p=p===n?y:tt(p)),kr(a,s,p)):[]}function SP(a,s){return Cc(a,s)}function AP(a,s,p){return kp(a,s,Ue(p,2))}function TP(a,s){var p=a==null?0:a.length;if(p){var y=Cc(a,s);if(y<p&&ei(a[y],s))return y}return-1}function PP(a,s){return Cc(a,s,!0)}function _P(a,s,p){return kp(a,s,Ue(p,2),!0)}function RP(a,s){var p=a==null?0:a.length;if(p){var y=Cc(a,s,!0)-1;if(ei(a[y],s))return y}return-1}function OP(a){return a&&a.length?yb(a):[]}function FP(a,s){return a&&a.length?yb(a,Ue(s,2)):[]}function MP(a){var s=a==null?0:a.length;return s?kr(a,1,s):[]}function kP(a,s,p){return a&&a.length?(s=p||s===n?1:tt(s),kr(a,0,s<0?0:s)):[]}function BP(a,s,p){var y=a==null?0:a.length;return y?(s=p||s===n?1:tt(s),s=y-s,kr(a,s<0?0:s,y)):[]}function IP(a,s){return a&&a.length?Sc(a,Ue(s,3),!1,!0):[]}function LP(a,s){return a&&a.length?Sc(a,Ue(s,3)):[]}var VP=at(function(a){return bo(_n(a,1,nn,!0))}),NP=at(function(a){var s=Br(a);return nn(s)&&(s=n),bo(_n(a,1,nn,!0),Ue(s,2))}),jP=at(function(a){var s=Br(a);return s=typeof s=="function"?s:n,bo(_n(a,1,nn,!0),n,s)});function KP(a){return a&&a.length?bo(a):[]}function UP(a,s){return a&&a.length?bo(a,Ue(s,2)):[]}function zP(a,s){return s=typeof s=="function"?s:n,a&&a.length?bo(a,n,s):[]}function Xp(a){if(!(a&&a.length))return[];var s=0;return a=ho(a,function(p){if(nn(p))return s=hn(p.length,s),!0}),gp(s,function(p){return zt(a,pp(p))})}function r0(a,s){if(!(a&&a.length))return[];var p=Xp(a);return s==null?p:zt(p,function(y){return yr(s,n,y)})}var WP=at(function(a,s){return nn(a)?Ps(a,s):[]}),HP=at(function(a){return Ip(ho(a,nn))}),GP=at(function(a){var s=Br(a);return nn(s)&&(s=n),Ip(ho(a,nn),Ue(s,2))}),qP=at(function(a){var s=Br(a);return s=typeof s=="function"?s:n,Ip(ho(a,nn),n,s)}),YP=at(Xp);function ZP(a,s){return xb(a||[],s||[],Ts)}function JP(a,s){return xb(a||[],s||[],Os)}var QP=at(function(a){var s=a.length,p=s>1?a[s-1]:n;return p=typeof p=="function"?(a.pop(),p):n,r0(a,p)});function i0(a){var s=_(a);return s.__chain__=!0,s}function XP(a,s){return s(a),a}function kc(a,s){return s(a)}var e7=ji(function(a){var s=a.length,p=s?a[0]:0,y=this.__wrapped__,A=function(k){return Ep(k,a)};return s>1||this.__actions__.length||!(y instanceof dt)||!Ki(p)?this.thru(A):(y=y.slice(p,+p+(s?1:0)),y.__actions__.push({func:kc,args:[A],thisArg:n}),new Fr(y,this.__chain__).thru(function(k){return s&&!k.length&&k.push(n),k}))});function t7(){return i0(this)}function n7(){return new Fr(this.value(),this.__chain__)}function r7(){this.__values__===n&&(this.__values__=v0(this.value()));var a=this.__index__>=this.__values__.length,s=a?n:this.__values__[this.__index__++];return{done:a,value:s}}function i7(){return this}function o7(a){for(var s,p=this;p instanceof $c;){var y=Jb(p);y.__index__=0,y.__values__=n,s?A.__wrapped__=y:s=y;var A=y;p=p.__wrapped__}return A.__wrapped__=a,s}function a7(){var a=this.__wrapped__;if(a instanceof dt){var s=a;return this.__actions__.length&&(s=new dt(this)),s=s.reverse(),s.__actions__.push({func:kc,args:[Qp],thisArg:n}),new Fr(s,this.__chain__)}return this.thru(Qp)}function u7(){return $b(this.__wrapped__,this.__actions__)}var s7=Ac(function(a,s,p){At.call(a,p)?++a[p]:Vi(a,p,1)});function l7(a,s,p){var y=Je(a)?Fv:XA;return p&&Jn(a,s,p)&&(s=n),y(a,Ue(s,3))}function c7(a,s){var p=Je(a)?ho:rb;return p(a,Ue(s,3))}var d7=Rb(Qb),f7=Rb(Xb);function p7(a,s){return _n(Bc(a,s),1)}function h7(a,s){return _n(Bc(a,s),R)}function m7(a,s,p){return p=p===n?1:tt(p),_n(Bc(a,s),p)}function o0(a,s){var p=Je(a)?Rr:vo;return p(a,Ue(s,3))}function a0(a,s){var p=Je(a)?M6:nb;return p(a,Ue(s,3))}var g7=Ac(function(a,s,p){At.call(a,p)?a[p].push(s):Vi(a,p,[s])});function y7(a,s,p,y){a=sr(a)?a:cu(a),p=p&&!y?tt(p):0;var A=a.length;return p<0&&(p=hn(A+p,0)),jc(a)?p<=A&&a.indexOf(s,p)>-1:!!A&&Qa(a,s,p)>-1}var v7=at(function(a,s,p){var y=-1,A=typeof s=="function",k=sr(a)?ue(a.length):[];return vo(a,function(H){k[++y]=A?yr(s,H,p):_s(H,s,p)}),k}),b7=Ac(function(a,s,p){Vi(a,p,s)});function Bc(a,s){var p=Je(a)?zt:lb;return p(a,Ue(s,3))}function $7(a,s,p,y){return a==null?[]:(Je(s)||(s=s==null?[]:[s]),p=y?n:p,Je(p)||(p=p==null?[]:[p]),pb(a,s,p))}var x7=Ac(function(a,s,p){a[p?0:1].push(s)},function(){return[[],[]]});function w7(a,s,p){var y=Je(a)?dp:Iv,A=arguments.length<3;return y(a,Ue(s,4),p,A,vo)}function D7(a,s,p){var y=Je(a)?k6:Iv,A=arguments.length<3;return y(a,Ue(s,4),p,A,nb)}function E7(a,s){var p=Je(a)?ho:rb;return p(a,Vc(Ue(s,3)))}function C7(a){var s=Je(a)?Qv:yT;return s(a)}function S7(a,s,p){(p?Jn(a,s,p):s===n)?s=1:s=tt(s);var y=Je(a)?qA:vT;return y(a,s)}function A7(a){var s=Je(a)?YA:$T;return s(a)}function T7(a){if(a==null)return 0;if(sr(a))return jc(a)?eu(a):a.length;var s=Nn(a);return s==Xe||s==he?a.size:_p(a).length}function P7(a,s,p){var y=Je(a)?fp:xT;return p&&Jn(a,s,p)&&(s=n),y(a,Ue(s,3))}var _7=at(function(a,s){if(a==null)return[];var p=s.length;return p>1&&Jn(a,s[0],s[1])?s=[]:p>2&&Jn(s[0],s[1],s[2])&&(s=[s[0]]),pb(a,_n(s,1),[])}),Ic=cA||function(){return ln.Date.now()};function R7(a,s){if(typeof s!="function")throw new Or(u);return a=tt(a),function(){if(--a<1)return s.apply(this,arguments)}}function u0(a,s,p){return s=p?n:s,s=a&&s==null?a.length:s,Ni(a,V,n,n,n,n,s)}function s0(a,s){var p;if(typeof s!="function")throw new Or(u);return a=tt(a),function(){return--a>0&&(p=s.apply(this,arguments)),a<=1&&(s=n),p}}var eh=at(function(a,s,p){var y=C;if(p.length){var A=go(p,su(eh));y|=E}return Ni(a,y,s,p,A)}),l0=at(function(a,s,p){var y=C|x;if(p.length){var A=go(p,su(l0));y|=E}return Ni(s,y,a,p,A)});function c0(a,s,p){s=p?n:s;var y=Ni(a,D,n,n,n,n,n,s);return y.placeholder=c0.placeholder,y}function d0(a,s,p){s=p?n:s;var y=Ni(a,P,n,n,n,n,n,s);return y.placeholder=d0.placeholder,y}function f0(a,s,p){var y,A,k,H,Z,ee,me=0,ge=!1,we=!1,Pe=!0;if(typeof a!="function")throw new Or(u);s=Ir(s)||0,Gt(p)&&(ge=!!p.leading,we="maxWait"in p,k=we?hn(Ir(p.maxWait)||0,s):k,Pe="trailing"in p?!!p.trailing:Pe);function Le(rn){var ti=y,Wi=A;return y=A=n,me=rn,H=a.apply(Wi,ti),H}function We(rn){return me=rn,Z=ks(st,s),ge?Le(rn):H}function it(rn){var ti=rn-ee,Wi=rn-me,R0=s-ti;return we?Vn(R0,k-Wi):R0}function He(rn){var ti=rn-ee,Wi=rn-me;return ee===n||ti>=s||ti<0||we&&Wi>=k}function st(){var rn=Ic();if(He(rn))return ft(rn);Z=ks(st,it(rn))}function ft(rn){return Z=n,Pe&&y?Le(rn):(y=A=n,H)}function xr(){Z!==n&&wb(Z),me=0,y=ee=A=Z=n}function Qn(){return Z===n?H:ft(Ic())}function wr(){var rn=Ic(),ti=He(rn);if(y=arguments,A=this,ee=rn,ti){if(Z===n)return We(ee);if(we)return wb(Z),Z=ks(st,s),Le(ee)}return Z===n&&(Z=ks(st,s)),H}return wr.cancel=xr,wr.flush=Qn,wr}var O7=at(function(a,s){return tb(a,1,s)}),F7=at(function(a,s,p){return tb(a,Ir(s)||0,p)});function M7(a){return Ni(a,z)}function Lc(a,s){if(typeof a!="function"||s!=null&&typeof s!="function")throw new Or(u);var p=function(){var y=arguments,A=s?s.apply(this,y):y[0],k=p.cache;if(k.has(A))return k.get(A);var H=a.apply(this,y);return p.cache=k.set(A,H)||k,H};return p.cache=new(Lc.Cache||Li),p}Lc.Cache=Li;function Vc(a){if(typeof a!="function")throw new Or(u);return function(){var s=arguments;switch(s.length){case 0:return!a.call(this);case 1:return!a.call(this,s[0]);case 2:return!a.call(this,s[0],s[1]);case 3:return!a.call(this,s[0],s[1],s[2])}return!a.apply(this,s)}}function k7(a){return s0(2,a)}var B7=wT(function(a,s){s=s.length==1&&Je(s[0])?zt(s[0],vr(Ue())):zt(_n(s,1),vr(Ue()));var p=s.length;return at(function(y){for(var A=-1,k=Vn(y.length,p);++A<k;)y[A]=s[A].call(this,y[A]);return yr(a,this,y)})}),th=at(function(a,s){var p=go(s,su(th));return Ni(a,E,n,s,p)}),p0=at(function(a,s){var p=go(s,su(p0));return Ni(a,T,n,s,p)}),I7=ji(function(a,s){return Ni(a,S,n,n,n,s)});function L7(a,s){if(typeof a!="function")throw new Or(u);return s=s===n?s:tt(s),at(a,s)}function V7(a,s){if(typeof a!="function")throw new Or(u);return s=s==null?0:hn(tt(s),0),at(function(p){var y=p[s],A=xo(p,0,s);return y&&mo(A,y),yr(a,this,A)})}function N7(a,s,p){var y=!0,A=!0;if(typeof a!="function")throw new Or(u);return Gt(p)&&(y="leading"in p?!!p.leading:y,A="trailing"in p?!!p.trailing:A),f0(a,s,{leading:y,maxWait:s,trailing:A})}function j7(a){return u0(a,1)}function K7(a,s){return th(Vp(s),a)}function U7(){if(!arguments.length)return[];var a=arguments[0];return Je(a)?a:[a]}function z7(a){return Mr(a,m)}function W7(a,s){return s=typeof s=="function"?s:n,Mr(a,m,s)}function H7(a){return Mr(a,h|m)}function G7(a,s){return s=typeof s=="function"?s:n,Mr(a,h|m,s)}function q7(a,s){return s==null||eb(a,s,xn(s))}function ei(a,s){return a===s||a!==a&&s!==s}var Y7=Rc(Ap),Z7=Rc(function(a,s){return a>=s}),ua=ab(function(){return arguments}())?ab:function(a){return en(a)&&At.call(a,"callee")&&!Hv.call(a,"callee")},Je=ue.isArray,J7=Xo?vr(Xo):oT;function sr(a){return a!=null&&Nc(a.length)&&!Ui(a)}function nn(a){return en(a)&&sr(a)}function Q7(a){return a===!0||a===!1||en(a)&&Zn(a)==ne}var wo=fA||fh,X7=Tv?vr(Tv):aT;function e_(a){return en(a)&&a.nodeType===1&&!Bs(a)}function t_(a){if(a==null)return!0;if(sr(a)&&(Je(a)||typeof a=="string"||typeof a.splice=="function"||wo(a)||lu(a)||ua(a)))return!a.length;var s=Nn(a);if(s==Xe||s==he)return!a.size;if(Ms(a))return!_p(a).length;for(var p in a)if(At.call(a,p))return!1;return!0}function n_(a,s){return Rs(a,s)}function r_(a,s,p){p=typeof p=="function"?p:n;var y=p?p(a,s):n;return y===n?Rs(a,s,n,p):!!y}function nh(a){if(!en(a))return!1;var s=Zn(a);return s==pe||s==xe||typeof a.message=="string"&&typeof a.name=="string"&&!Bs(a)}function i_(a){return typeof a=="number"&&qv(a)}function Ui(a){if(!Gt(a))return!1;var s=Zn(a);return s==le||s==Me||s==$e||s==Y}function h0(a){return typeof a=="number"&&a==tt(a)}function Nc(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=B}function Gt(a){var s=typeof a;return a!=null&&(s=="object"||s=="function")}function en(a){return a!=null&&typeof a=="object"}var m0=Pv?vr(Pv):sT;function o_(a,s){return a===s||Pp(a,s,Hp(s))}function a_(a,s,p){return p=typeof p=="function"?p:n,Pp(a,s,Hp(s),p)}function u_(a){return g0(a)&&a!=+a}function s_(a){if(WT(a))throw new Ze(o);return ub(a)}function l_(a){return a===null}function c_(a){return a==null}function g0(a){return typeof a=="number"||en(a)&&Zn(a)==ct}function Bs(a){if(!en(a)||Zn(a)!=gt)return!1;var s=pc(a);if(s===null)return!0;var p=At.call(s,"constructor")&&s.constructor;return typeof p=="function"&&p instanceof p&&lc.call(p)==aA}var rh=_v?vr(_v):lT;function d_(a){return h0(a)&&a>=-9007199254740991&&a<=B}var y0=Rv?vr(Rv):cT;function jc(a){return typeof a=="string"||!Je(a)&&en(a)&&Zn(a)==Ce}function $r(a){return typeof a=="symbol"||en(a)&&Zn(a)==De}var lu=Ov?vr(Ov):dT;function f_(a){return a===n}function p_(a){return en(a)&&Nn(a)==Ve}function h_(a){return en(a)&&Zn(a)==ht}var m_=Rc(Rp),g_=Rc(function(a,s){return a<=s});function v0(a){if(!a)return[];if(sr(a))return jc(a)?Qr(a):ur(a);if(Ds&&a[Ds])return q6(a[Ds]());var s=Nn(a),p=s==Xe?vp:s==he?ac:cu;return p(a)}function zi(a){if(!a)return a===0?a:0;if(a=Ir(a),a===R||a===-1/0){var s=a<0?-1:1;return s*J}return a===a?a:0}function tt(a){var s=zi(a),p=s%1;return s===s?p?s-p:s:0}function b0(a){return a?ra(tt(a),0,U):0}function Ir(a){if(typeof a=="number")return a;if($r(a))return L;if(Gt(a)){var s=typeof a.valueOf=="function"?a.valueOf():a;a=Gt(s)?s+"":s}if(typeof a!="string")return a===0?a:+a;a=Lv(a);var p=so.test(a);return p||mt.test(a)?Bn(a.slice(2),p?2:8):uo.test(a)?L:+a}function $0(a){return bi(a,lr(a))}function y_(a){return a?ra(tt(a),-9007199254740991,B):a===0?a:0}function wt(a){return a==null?"":br(a)}var v_=au(function(a,s){if(Ms(s)||sr(s)){bi(s,xn(s),a);return}for(var p in s)At.call(s,p)&&Ts(a,p,s[p])}),x0=au(function(a,s){bi(s,lr(s),a)}),Kc=au(function(a,s,p,y){bi(s,lr(s),a,y)}),b_=au(function(a,s,p,y){bi(s,xn(s),a,y)}),$_=ji(Ep);function x_(a,s){var p=ou(a);return s==null?p:Xv(p,s)}var w_=at(function(a,s){a=Bt(a);var p=-1,y=s.length,A=y>2?s[2]:n;for(A&&Jn(s[0],s[1],A)&&(y=1);++p<y;)for(var k=s[p],H=lr(k),Z=-1,ee=H.length;++Z<ee;){var me=H[Z],ge=a[me];(ge===n||ei(ge,nu[me])&&!At.call(a,me))&&(a[me]=k[me])}return a}),D_=at(function(a){return a.push(n,Lb),yr(w0,n,a)});function E_(a,s){return Mv(a,Ue(s,3),vi)}function C_(a,s){return Mv(a,Ue(s,3),Sp)}function S_(a,s){return a==null?a:Cp(a,Ue(s,3),lr)}function A_(a,s){return a==null?a:ib(a,Ue(s,3),lr)}function T_(a,s){return a&&vi(a,Ue(s,3))}function P_(a,s){return a&&Sp(a,Ue(s,3))}function __(a){return a==null?[]:Dc(a,xn(a))}function R_(a){return a==null?[]:Dc(a,lr(a))}function ih(a,s,p){var y=a==null?n:ia(a,s);return y===n?p:y}function O_(a,s){return a!=null&&jb(a,s,tT)}function oh(a,s){return a!=null&&jb(a,s,nT)}var F_=Fb(function(a,s,p){s!=null&&typeof s.toString!="function"&&(s=cc.call(s)),a[s]=p},uh(cr)),M_=Fb(function(a,s,p){s!=null&&typeof s.toString!="function"&&(s=cc.call(s)),At.call(a,s)?a[s].push(p):a[s]=[p]},Ue),k_=at(_s);function xn(a){return sr(a)?Jv(a):_p(a)}function lr(a){return sr(a)?Jv(a,!0):fT(a)}function B_(a,s){var p={};return s=Ue(s,3),vi(a,function(y,A,k){Vi(p,s(y,A,k),y)}),p}function I_(a,s){var p={};return s=Ue(s,3),vi(a,function(y,A,k){Vi(p,A,s(y,A,k))}),p}var L_=au(function(a,s,p){Ec(a,s,p)}),w0=au(function(a,s,p,y){Ec(a,s,p,y)}),V_=ji(function(a,s){var p={};if(a==null)return p;var y=!1;s=zt(s,function(k){return k=$o(k,a),y||(y=k.length>1),k}),bi(a,zp(a),p),y&&(p=Mr(p,h|g|m,FT));for(var A=s.length;A--;)Bp(p,s[A]);return p});function N_(a,s){return D0(a,Vc(Ue(s)))}var j_=ji(function(a,s){return a==null?{}:hT(a,s)});function D0(a,s){if(a==null)return{};var p=zt(zp(a),function(y){return[y]});return s=Ue(s),hb(a,p,function(y,A){return s(y,A[0])})}function K_(a,s,p){s=$o(s,a);var y=-1,A=s.length;for(A||(A=1,a=n);++y<A;){var k=a==null?n:a[$i(s[y])];k===n&&(y=A,k=p),a=Ui(k)?k.call(a):k}return a}function U_(a,s,p){return a==null?a:Os(a,s,p)}function z_(a,s,p,y){return y=typeof y=="function"?y:n,a==null?a:Os(a,s,p,y)}var E0=Bb(xn),C0=Bb(lr);function W_(a,s,p){var y=Je(a),A=y||wo(a)||lu(a);if(s=Ue(s,4),p==null){var k=a&&a.constructor;A?p=y?new k:[]:Gt(a)?p=Ui(k)?ou(pc(a)):{}:p={}}return(A?Rr:vi)(a,function(H,Z,ee){return s(p,H,Z,ee)}),p}function H_(a,s){return a==null?!0:Bp(a,s)}function G_(a,s,p){return a==null?a:bb(a,s,Vp(p))}function q_(a,s,p,y){return y=typeof y=="function"?y:n,a==null?a:bb(a,s,Vp(p),y)}function cu(a){return a==null?[]:yp(a,xn(a))}function Y_(a){return a==null?[]:yp(a,lr(a))}function Z_(a,s,p){return p===n&&(p=s,s=n),p!==n&&(p=Ir(p),p=p===p?p:0),s!==n&&(s=Ir(s),s=s===s?s:0),ra(Ir(a),s,p)}function J_(a,s,p){return s=zi(s),p===n?(p=s,s=0):p=zi(p),a=Ir(a),rT(a,s,p)}function Q_(a,s,p){if(p&&typeof p!="boolean"&&Jn(a,s,p)&&(s=p=n),p===n&&(typeof s=="boolean"?(p=s,s=n):typeof a=="boolean"&&(p=a,a=n)),a===n&&s===n?(a=0,s=1):(a=zi(a),s===n?(s=a,a=0):s=zi(s)),a>s){var y=a;a=s,s=y}if(p||a%1||s%1){var A=Yv();return Vn(a+A*(s-a+fn("1e-"+((A+"").length-1))),s)}return Fp(a,s)}var X_=uu(function(a,s,p){return s=s.toLowerCase(),a+(p?S0(s):s)});function S0(a){return ah(wt(a).toLowerCase())}function A0(a){return a=wt(a),a&&a.replace(ar,U6).replace(up,"")}function e9(a,s,p){a=wt(a),s=br(s);var y=a.length;p=p===n?y:ra(tt(p),0,y);var A=p;return p-=s.length,p>=0&&a.slice(p,A)==s}function t9(a){return a=wt(a),a&&Lt.test(a)?a.replace(bn,z6):a}function n9(a){return a=wt(a),a&&qe.test(a)?a.replace(je,"\\$&"):a}var r9=uu(function(a,s,p){return a+(p?"-":"")+s.toLowerCase()}),i9=uu(function(a,s,p){return a+(p?" ":"")+s.toLowerCase()}),o9=_b("toLowerCase");function a9(a,s,p){a=wt(a),s=tt(s);var y=s?eu(a):0;if(!s||y>=s)return a;var A=(s-y)/2;return _c(yc(A),p)+a+_c(gc(A),p)}function u9(a,s,p){a=wt(a),s=tt(s);var y=s?eu(a):0;return s&&y<s?a+_c(s-y,p):a}function s9(a,s,p){a=wt(a),s=tt(s);var y=s?eu(a):0;return s&&y<s?_c(s-y,p)+a:a}function l9(a,s,p){return p||s==null?s=0:s&&(s=+s),gA(wt(a).replace(Ft,""),s||0)}function c9(a,s,p){return(p?Jn(a,s,p):s===n)?s=1:s=tt(s),Mp(wt(a),s)}function d9(){var a=arguments,s=wt(a[0]);return a.length<3?s:s.replace(a[1],a[2])}var f9=uu(function(a,s,p){return a+(p?"_":"")+s.toLowerCase()});function p9(a,s,p){return p&&typeof p!="number"&&Jn(a,s,p)&&(s=p=n),p=p===n?U:p>>>0,p?(a=wt(a),a&&(typeof s=="string"||s!=null&&!rh(s))&&(s=br(s),!s&&Xa(a))?xo(Qr(a),0,p):a.split(s,p)):[]}var h9=uu(function(a,s,p){return a+(p?" ":"")+ah(s)});function m9(a,s,p){return a=wt(a),p=p==null?0:ra(tt(p),0,a.length),s=br(s),a.slice(p,p+s.length)==s}function g9(a,s,p){var y=_.templateSettings;p&&Jn(a,s,p)&&(s=n),a=wt(a),s=Kc({},s,y,Ib);var A=Kc({},s.imports,y.imports,Ib),k=xn(A),H=yp(A,k),Z,ee,me=0,ge=s.interpolate||kn,we="__p += '",Pe=bp((s.escape||kn).source+"|"+ge.source+"|"+(ge===et?Go:kn).source+"|"+(s.evaluate||kn).source+"|$","g"),Le="//# sourceURL="+(At.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++$s+"]")+`
|
|
68
|
-
`;a.replace(Pe,function(He,st,ft,xr,Qn,wr){return ft||(ft=xr),we+=a.slice(me,wr).replace(co,W6),st&&(Z=!0,we+=`' +
|
|
69
|
-
__e(`+st+`) +
|
|
70
|
-
'`),Qn&&(ee=!0,we+=`';
|
|
71
|
-
`+Qn+`;
|
|
72
|
-
__p += '`),ft&&(we+=`' +
|
|
73
|
-
((__t = (`+ft+`)) == null ? '' : __t) +
|
|
74
|
-
'`),me=wr+He.length,He}),we+=`';
|
|
75
|
-
`;var We=At.call(s,"variable")&&s.variable;if(!We)we=`with (obj) {
|
|
76
|
-
`+we+`
|
|
77
|
-
}
|
|
78
|
-
`;else if(xt.test(We))throw new Ze(l);we=(ee?we.replace(Hn,""):we).replace(An,"$1").replace(Gn,"$1;"),we="function("+(We||"obj")+`) {
|
|
79
|
-
`+(We?"":`obj || (obj = {});
|
|
80
|
-
`)+"var __t, __p = ''"+(Z?", __e = _.escape":"")+(ee?`, __j = Array.prototype.join;
|
|
81
|
-
function print() { __p += __j.call(arguments, '') }
|
|
82
|
-
`:`;
|
|
83
|
-
`)+we+`return __p
|
|
84
|
-
}`;var it=P0(function(){return vt(k,Le+"return "+we).apply(n,H)});if(it.source=we,nh(it))throw it;return it}function y9(a){return wt(a).toLowerCase()}function v9(a){return wt(a).toUpperCase()}function b9(a,s,p){if(a=wt(a),a&&(p||s===n))return Lv(a);if(!a||!(s=br(s)))return a;var y=Qr(a),A=Qr(s),k=Vv(y,A),H=Nv(y,A)+1;return xo(y,k,H).join("")}function $9(a,s,p){if(a=wt(a),a&&(p||s===n))return a.slice(0,Kv(a)+1);if(!a||!(s=br(s)))return a;var y=Qr(a),A=Nv(y,Qr(s))+1;return xo(y,0,A).join("")}function x9(a,s,p){if(a=wt(a),a&&(p||s===n))return a.replace(Ft,"");if(!a||!(s=br(s)))return a;var y=Qr(a),A=Vv(y,Qr(s));return xo(y,A).join("")}function w9(a,s){var p=O,y=M;if(Gt(s)){var A="separator"in s?s.separator:A;p="length"in s?tt(s.length):p,y="omission"in s?br(s.omission):y}a=wt(a);var k=a.length;if(Xa(a)){var H=Qr(a);k=H.length}if(p>=k)return a;var Z=p-eu(y);if(Z<1)return y;var ee=H?xo(H,0,Z).join(""):a.slice(0,Z);if(A===n)return ee+y;if(H&&(Z+=ee.length-Z),rh(A)){if(a.slice(Z).search(A)){var me,ge=ee;for(A.global||(A=bp(A.source,wt(or.exec(A))+"g")),A.lastIndex=0;me=A.exec(ge);)var we=me.index;ee=ee.slice(0,we===n?Z:we)}}else if(a.indexOf(br(A),Z)!=Z){var Pe=ee.lastIndexOf(A);Pe>-1&&(ee=ee.slice(0,Pe))}return ee+y}function D9(a){return a=wt(a),a&&Ar.test(a)?a.replace(Fn,Q6):a}var E9=uu(function(a,s,p){return a+(p?" ":"")+s.toUpperCase()}),ah=_b("toUpperCase");function T0(a,s,p){return a=wt(a),s=p?n:s,s===n?G6(a)?tA(a):L6(a):a.match(s)||[]}var P0=at(function(a,s){try{return yr(a,n,s)}catch(p){return nh(p)?p:new Ze(p)}}),C9=ji(function(a,s){return Rr(s,function(p){p=$i(p),Vi(a,p,eh(a[p],a))}),a});function S9(a){var s=a==null?0:a.length,p=Ue();return a=s?zt(a,function(y){if(typeof y[1]!="function")throw new Or(u);return[p(y[0]),y[1]]}):[],at(function(y){for(var A=-1;++A<s;){var k=a[A];if(yr(k[0],this,y))return yr(k[1],this,y)}})}function A9(a){return QA(Mr(a,h))}function uh(a){return function(){return a}}function T9(a,s){return a==null||a!==a?s:a}var P9=Ob(),_9=Ob(!0);function cr(a){return a}function sh(a){return sb(typeof a=="function"?a:Mr(a,h))}function R9(a){return cb(Mr(a,h))}function O9(a,s){return db(a,Mr(s,h))}var F9=at(function(a,s){return function(p){return _s(p,a,s)}}),M9=at(function(a,s){return function(p){return _s(a,p,s)}});function lh(a,s,p){var y=xn(s),A=Dc(s,y);p==null&&!(Gt(s)&&(A.length||!y.length))&&(p=s,s=a,a=this,A=Dc(s,xn(s)));var k=!(Gt(p)&&"chain"in p)||!!p.chain,H=Ui(a);return Rr(A,function(Z){var ee=s[Z];a[Z]=ee,H&&(a.prototype[Z]=function(){var me=this.__chain__;if(k||me){var ge=a(this.__wrapped__),we=ge.__actions__=ur(this.__actions__);return we.push({func:ee,args:arguments,thisArg:a}),ge.__chain__=me,ge}return ee.apply(a,mo([this.value()],arguments))})}),a}function k9(){return ln._===this&&(ln._=uA),this}function ch(){}function B9(a){return a=tt(a),at(function(s){return fb(s,a)})}var I9=jp(zt),L9=jp(Fv),V9=jp(fp);function _0(a){return qp(a)?pp($i(a)):mT(a)}function N9(a){return function(s){return a==null?n:ia(a,s)}}var j9=Mb(),K9=Mb(!0);function dh(){return[]}function fh(){return!1}function U9(){return{}}function z9(){return""}function W9(){return!0}function H9(a,s){if(a=tt(a),a<1||a>B)return[];var p=U,y=Vn(a,U);s=Ue(s),a-=U;for(var A=gp(y,s);++p<a;)s(p);return A}function G9(a){return Je(a)?zt(a,$i):$r(a)?[a]:ur(Zb(wt(a)))}function q9(a){var s=++oA;return wt(a)+s}var Y9=Pc(function(a,s){return a+s},0),Z9=Kp("ceil"),J9=Pc(function(a,s){return a/s},1),Q9=Kp("floor");function X9(a){return a&&a.length?wc(a,cr,Ap):n}function eR(a,s){return a&&a.length?wc(a,Ue(s,2),Ap):n}function tR(a){return Bv(a,cr)}function nR(a,s){return Bv(a,Ue(s,2))}function rR(a){return a&&a.length?wc(a,cr,Rp):n}function iR(a,s){return a&&a.length?wc(a,Ue(s,2),Rp):n}var oR=Pc(function(a,s){return a*s},1),aR=Kp("round"),uR=Pc(function(a,s){return a-s},0);function sR(a){return a&&a.length?mp(a,cr):0}function lR(a,s){return a&&a.length?mp(a,Ue(s,2)):0}return _.after=R7,_.ary=u0,_.assign=v_,_.assignIn=x0,_.assignInWith=Kc,_.assignWith=b_,_.at=$_,_.before=s0,_.bind=eh,_.bindAll=C9,_.bindKey=l0,_.castArray=U7,_.chain=i0,_.chunk=QT,_.compact=XT,_.concat=eP,_.cond=S9,_.conforms=A9,_.constant=uh,_.countBy=s7,_.create=x_,_.curry=c0,_.curryRight=d0,_.debounce=f0,_.defaults=w_,_.defaultsDeep=D_,_.defer=O7,_.delay=F7,_.difference=tP,_.differenceBy=nP,_.differenceWith=rP,_.drop=iP,_.dropRight=oP,_.dropRightWhile=aP,_.dropWhile=uP,_.fill=sP,_.filter=c7,_.flatMap=p7,_.flatMapDeep=h7,_.flatMapDepth=m7,_.flatten=e0,_.flattenDeep=lP,_.flattenDepth=cP,_.flip=M7,_.flow=P9,_.flowRight=_9,_.fromPairs=dP,_.functions=__,_.functionsIn=R_,_.groupBy=g7,_.initial=pP,_.intersection=hP,_.intersectionBy=mP,_.intersectionWith=gP,_.invert=F_,_.invertBy=M_,_.invokeMap=v7,_.iteratee=sh,_.keyBy=b7,_.keys=xn,_.keysIn=lr,_.map=Bc,_.mapKeys=B_,_.mapValues=I_,_.matches=R9,_.matchesProperty=O9,_.memoize=Lc,_.merge=L_,_.mergeWith=w0,_.method=F9,_.methodOf=M9,_.mixin=lh,_.negate=Vc,_.nthArg=B9,_.omit=V_,_.omitBy=N_,_.once=k7,_.orderBy=$7,_.over=I9,_.overArgs=B7,_.overEvery=L9,_.overSome=V9,_.partial=th,_.partialRight=p0,_.partition=x7,_.pick=j_,_.pickBy=D0,_.property=_0,_.propertyOf=N9,_.pull=$P,_.pullAll=n0,_.pullAllBy=xP,_.pullAllWith=wP,_.pullAt=DP,_.range=j9,_.rangeRight=K9,_.rearg=I7,_.reject=E7,_.remove=EP,_.rest=L7,_.reverse=Qp,_.sampleSize=S7,_.set=U_,_.setWith=z_,_.shuffle=A7,_.slice=CP,_.sortBy=_7,_.sortedUniq=OP,_.sortedUniqBy=FP,_.split=p9,_.spread=V7,_.tail=MP,_.take=kP,_.takeRight=BP,_.takeRightWhile=IP,_.takeWhile=LP,_.tap=XP,_.throttle=N7,_.thru=kc,_.toArray=v0,_.toPairs=E0,_.toPairsIn=C0,_.toPath=G9,_.toPlainObject=$0,_.transform=W_,_.unary=j7,_.union=VP,_.unionBy=NP,_.unionWith=jP,_.uniq=KP,_.uniqBy=UP,_.uniqWith=zP,_.unset=H_,_.unzip=Xp,_.unzipWith=r0,_.update=G_,_.updateWith=q_,_.values=cu,_.valuesIn=Y_,_.without=WP,_.words=T0,_.wrap=K7,_.xor=HP,_.xorBy=GP,_.xorWith=qP,_.zip=YP,_.zipObject=ZP,_.zipObjectDeep=JP,_.zipWith=QP,_.entries=E0,_.entriesIn=C0,_.extend=x0,_.extendWith=Kc,lh(_,_),_.add=Y9,_.attempt=P0,_.camelCase=X_,_.capitalize=S0,_.ceil=Z9,_.clamp=Z_,_.clone=z7,_.cloneDeep=H7,_.cloneDeepWith=G7,_.cloneWith=W7,_.conformsTo=q7,_.deburr=A0,_.defaultTo=T9,_.divide=J9,_.endsWith=e9,_.eq=ei,_.escape=t9,_.escapeRegExp=n9,_.every=l7,_.find=d7,_.findIndex=Qb,_.findKey=E_,_.findLast=f7,_.findLastIndex=Xb,_.findLastKey=C_,_.floor=Q9,_.forEach=o0,_.forEachRight=a0,_.forIn=S_,_.forInRight=A_,_.forOwn=T_,_.forOwnRight=P_,_.get=ih,_.gt=Y7,_.gte=Z7,_.has=O_,_.hasIn=oh,_.head=t0,_.identity=cr,_.includes=y7,_.indexOf=fP,_.inRange=J_,_.invoke=k_,_.isArguments=ua,_.isArray=Je,_.isArrayBuffer=J7,_.isArrayLike=sr,_.isArrayLikeObject=nn,_.isBoolean=Q7,_.isBuffer=wo,_.isDate=X7,_.isElement=e_,_.isEmpty=t_,_.isEqual=n_,_.isEqualWith=r_,_.isError=nh,_.isFinite=i_,_.isFunction=Ui,_.isInteger=h0,_.isLength=Nc,_.isMap=m0,_.isMatch=o_,_.isMatchWith=a_,_.isNaN=u_,_.isNative=s_,_.isNil=c_,_.isNull=l_,_.isNumber=g0,_.isObject=Gt,_.isObjectLike=en,_.isPlainObject=Bs,_.isRegExp=rh,_.isSafeInteger=d_,_.isSet=y0,_.isString=jc,_.isSymbol=$r,_.isTypedArray=lu,_.isUndefined=f_,_.isWeakMap=p_,_.isWeakSet=h_,_.join=yP,_.kebabCase=r9,_.last=Br,_.lastIndexOf=vP,_.lowerCase=i9,_.lowerFirst=o9,_.lt=m_,_.lte=g_,_.max=X9,_.maxBy=eR,_.mean=tR,_.meanBy=nR,_.min=rR,_.minBy=iR,_.stubArray=dh,_.stubFalse=fh,_.stubObject=U9,_.stubString=z9,_.stubTrue=W9,_.multiply=oR,_.nth=bP,_.noConflict=k9,_.noop=ch,_.now=Ic,_.pad=a9,_.padEnd=u9,_.padStart=s9,_.parseInt=l9,_.random=Q_,_.reduce=w7,_.reduceRight=D7,_.repeat=c9,_.replace=d9,_.result=K_,_.round=aR,_.runInContext=X,_.sample=C7,_.size=T7,_.snakeCase=f9,_.some=P7,_.sortedIndex=SP,_.sortedIndexBy=AP,_.sortedIndexOf=TP,_.sortedLastIndex=PP,_.sortedLastIndexBy=_P,_.sortedLastIndexOf=RP,_.startCase=h9,_.startsWith=m9,_.subtract=uR,_.sum=sR,_.sumBy=lR,_.template=g9,_.times=H9,_.toFinite=zi,_.toInteger=tt,_.toLength=b0,_.toLower=y9,_.toNumber=Ir,_.toSafeInteger=y_,_.toString=wt,_.toUpper=v9,_.trim=b9,_.trimEnd=$9,_.trimStart=x9,_.truncate=w9,_.unescape=D9,_.uniqueId=q9,_.upperCase=E9,_.upperFirst=ah,_.each=o0,_.eachRight=a0,_.first=t0,lh(_,function(){var a={};return vi(_,function(s,p){At.call(_.prototype,p)||(a[p]=s)}),a}(),{chain:!1}),_.VERSION=r,Rr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){_[a].placeholder=_}),Rr(["drop","take"],function(a,s){dt.prototype[a]=function(p){p=p===n?1:hn(tt(p),0);var y=this.__filtered__&&!s?new dt(this):this.clone();return y.__filtered__?y.__takeCount__=Vn(p,y.__takeCount__):y.__views__.push({size:Vn(p,U),type:a+(y.__dir__<0?"Right":"")}),y},dt.prototype[a+"Right"]=function(p){return this.reverse()[a](p).reverse()}}),Rr(["filter","map","takeWhile"],function(a,s){var p=s+1,y=p==W||p==I;dt.prototype[a]=function(A){var k=this.clone();return k.__iteratees__.push({iteratee:Ue(A,3),type:p}),k.__filtered__=k.__filtered__||y,k}}),Rr(["head","last"],function(a,s){var p="take"+(s?"Right":"");dt.prototype[a]=function(){return this[p](1).value()[0]}}),Rr(["initial","tail"],function(a,s){var p="drop"+(s?"":"Right");dt.prototype[a]=function(){return this.__filtered__?new dt(this):this[p](1)}}),dt.prototype.compact=function(){return this.filter(cr)},dt.prototype.find=function(a){return this.filter(a).head()},dt.prototype.findLast=function(a){return this.reverse().find(a)},dt.prototype.invokeMap=at(function(a,s){return typeof a=="function"?new dt(this):this.map(function(p){return _s(p,a,s)})}),dt.prototype.reject=function(a){return this.filter(Vc(Ue(a)))},dt.prototype.slice=function(a,s){a=tt(a);var p=this;return p.__filtered__&&(a>0||s<0)?new dt(p):(a<0?p=p.takeRight(-a):a&&(p=p.drop(a)),s!==n&&(s=tt(s),p=s<0?p.dropRight(-s):p.take(s-a)),p)},dt.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},dt.prototype.toArray=function(){return this.take(U)},vi(dt.prototype,function(a,s){var p=/^(?:filter|find|map|reject)|While$/.test(s),y=/^(?:head|last)$/.test(s),A=_[y?"take"+(s=="last"?"Right":""):s],k=y||/^find/.test(s);A&&(_.prototype[s]=function(){var H=this.__wrapped__,Z=y?[1]:arguments,ee=H instanceof dt,me=Z[0],ge=ee||Je(H),we=function(st){var ft=A.apply(_,mo([st],Z));return y&&Pe?ft[0]:ft};ge&&p&&typeof me=="function"&&me.length!=1&&(ee=ge=!1);var Pe=this.__chain__,Le=!!this.__actions__.length,We=k&&!Pe,it=ee&&!Le;if(!k&&ge){H=it?H:new dt(this);var He=a.apply(H,Z);return He.__actions__.push({func:kc,args:[we],thisArg:n}),new Fr(He,Pe)}return We&&it?a.apply(this,Z):(He=this.thru(we),We?y?He.value()[0]:He.value():He)})}),Rr(["pop","push","shift","sort","splice","unshift"],function(a){var s=uc[a],p=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",y=/^(?:pop|shift)$/.test(a);_.prototype[a]=function(){var A=arguments;if(y&&!this.__chain__){var k=this.value();return s.apply(Je(k)?k:[],A)}return this[p](function(H){return s.apply(Je(H)?H:[],A)})}}),vi(dt.prototype,function(a,s){var p=_[s];if(p){var y=p.name+"";At.call(iu,y)||(iu[y]=[]),iu[y].push({name:s,func:p})}}),iu[Tc(n,x).name]=[{name:"wrapper",func:n}],dt.prototype.clone=DA,dt.prototype.reverse=EA,dt.prototype.value=CA,_.prototype.at=e7,_.prototype.chain=t7,_.prototype.commit=n7,_.prototype.next=r7,_.prototype.plant=o7,_.prototype.reverse=a7,_.prototype.toJSON=_.prototype.valueOf=_.prototype.value=u7,_.prototype.first=_.prototype.head,Ds&&(_.prototype[Ds]=i7),_},tu=nA();yi?((yi.exports=tu)._=tu,gi._=tu):ln._=tu}).call(X8)}(Js,Js.exports)),Js.exports}var rx=eO();const tO=Wo(rx);var bh={exports:{}};/*!
|
|
85
|
-
Copyright (c) 2018 Jed Watson.
|
|
86
|
-
Licensed under the MIT License (MIT), see
|
|
87
|
-
http://jedwatson.github.io/classnames
|
|
88
|
-
*/var e4;function nO(){return e4||(e4=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",u=0;u<arguments.length;u++){var l=arguments[u];l&&(o=i(o,r(l)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var u="";for(var l in o)t.call(o,l)&&o[l]&&(u=i(u,l));return u}function i(o,u){return u?o?o+" "+u:o+u:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(bh)),bh.exports}var rO=nO();const _m=Wo(rO);/*
|
|
89
|
-
* React Tooltip
|
|
90
|
-
* {@link https://github.com/ReactTooltip/react-tooltip}
|
|
91
|
-
* @copyright ReactTooltip Team
|
|
92
|
-
* @license MIT
|
|
93
|
-
*/const iO="react-tooltip-core-styles",oO="react-tooltip-base-styles",t4={core:!1,base:!1};function n4({css:e,id:t=oO,type:n="base",ref:r}){var i,o;if(!e||typeof document>"u"||t4[n]||n==="core"&&typeof process<"u"&&(!((i=process==null?void 0:process.env)===null||i===void 0)&&i.REACT_TOOLTIP_DISABLE_CORE_STYLES)||n!=="base"&&typeof process<"u"&&(!((o=process==null?void 0:process.env)===null||o===void 0)&&o.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;n==="core"&&(t=iO),r||(r={});const{insertAt:u}=r;if(document.getElementById(t))return;const l=document.head||document.getElementsByTagName("head")[0],c=document.createElement("style");c.id=t,c.type="text/css",u==="top"&&l.firstChild?l.insertBefore(c,l.firstChild):l.appendChild(c),c.styleSheet?c.styleSheet.cssText=e:c.appendChild(document.createTextNode(e)),t4[n]=!0}const r4=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:i=10,strategy:o="absolute",middlewares:u=[ex(Number(i)),tx({fallbackAxisSideDirection:"start"}),q8({padding:5})],border:l})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const c=u;return n?(c.push(Y8({element:n,padding:5})),Pm(e,t,{placement:r,strategy:o,middleware:c}).then(({x:d,y:f,placement:h,middlewareData:g})=>{var m,$;const w={left:`${d}px`,top:`${f}px`,border:l},{x:C,y:x}=(m=g.arrow)!==null&&m!==void 0?m:{x:0,y:0},v=($={top:"bottom",right:"left",bottom:"top",left:"right"}[h.split("-")[0]])!==null&&$!==void 0?$:"bottom",D=l&&{borderBottom:l,borderRight:l};let P=0;if(l){const E=`${l}`.match(/(\d+)px/);P=E!=null&&E[1]?Number(E[1]):1}return{tooltipStyles:w,tooltipArrowStyles:{left:C!=null?`${C}px`:"",top:x!=null?`${x}px`:"",right:"",bottom:"",...D,[v]:`-${4+P}px`},place:h}})):Pm(e,t,{placement:"bottom",strategy:o,middleware:c}).then(({x:d,y:f,placement:h})=>({tooltipStyles:{left:`${d}px`,top:`${f}px`},tooltipArrowStyles:{},place:h}))},i4=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),o4=(e,t,n)=>{let r=null;const i=function(...o){const u=()=>{r=null};!r&&(e.apply(this,o),r=setTimeout(u,t))};return i.cancel=()=>{r&&(clearTimeout(r),r=null)},i},a4=e=>e!==null&&!Array.isArray(e)&&typeof e=="object",Rm=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((i,o)=>Rm(i,t[o]));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!a4(e)||!a4(t))return e===t;const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>Rm(e[i],t[i]))},aO=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(n=>{const r=t.getPropertyValue(n);return r==="auto"||r==="scroll"})},u4=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(aO(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},uO=typeof window<"u"?b.useLayoutEffect:b.useEffect,Lr=e=>{e.current&&(clearTimeout(e.current),e.current=null)},sO="DEFAULT_TOOLTIP_ID",lO={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},cO=b.createContext({getTooltipData:()=>lO});function ix(e=sO){return b.useContext(cO).getTooltipData(e)}var fu={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},$h={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const dO=({forwardRef:e,id:t,className:n,classNameArrow:r,variant:i="dark",anchorId:o,anchorSelect:u,place:l="top",offset:c=10,events:d=["hover"],openOnClick:f=!1,positionStrategy:h="absolute",middlewares:g,wrapper:m,delayShow:$=0,delayHide:w=0,float:C=!1,hidden:x=!1,noArrow:v=!1,clickable:D=!1,closeOnEsc:P=!1,closeOnScroll:E=!1,closeOnResize:T=!1,openEvents:V,closeEvents:S,globalCloseEvents:z,imperativeModeOnly:O,style:M,position:G,afterShow:K,afterHide:W,disableTooltip:j,content:I,contentWrapperRef:R,isOpen:B,defaultIsOpen:J=!1,setIsOpen:L,activeAnchor:U,setActiveAnchor:re,border:oe,opacity:fe,arrowColor:ie,role:Ee="tooltip"})=>{var $e;const ne=b.useRef(null),ye=b.useRef(null),xe=b.useRef(null),pe=b.useRef(null),le=b.useRef(null),[Me,Xe]=b.useState({tooltipStyles:{},tooltipArrowStyles:{},place:l}),[ct,vn]=b.useState(!1),[gt,q]=b.useState(!1),[Y,te]=b.useState(null),he=b.useRef(!1),Ce=b.useRef(null),{anchorRefs:De,setActiveAnchor:_e}=ix(t),Ve=b.useRef(!1),[ht,ut]=b.useState([]),_t=b.useRef(!1),En=f||d.includes("click"),Cn=En||(V==null?void 0:V.click)||(V==null?void 0:V.dblclick)||(V==null?void 0:V.mousedown),Ht=V?{...V}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!V&&En&&Object.assign(Ht,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const Rn=S?{...S}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!S&&En&&Object.assign(Rn,{mouseleave:!1,blur:!1,mouseout:!1});const Jt=z?{...z}:{escape:P||!1,scroll:E||!1,resize:T||!1,clickOutsideAnchor:Cn||!1};O&&(Object.assign(Ht,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Rn,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(Jt,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),uO(()=>(_t.current=!0,()=>{_t.current=!1}),[]);const yt=Ae=>{_t.current&&(Ae&&q(!0),setTimeout(()=>{_t.current&&(L==null||L(Ae),B===void 0&&vn(Ae))},10))};b.useEffect(()=>{if(B===void 0)return()=>null;B&&q(!0);const Ae=setTimeout(()=>{vn(B)},10);return()=>{clearTimeout(Ae)}},[B]),b.useEffect(()=>{if(ct!==he.current)if(Lr(le),he.current=ct,ct)K==null||K();else{const Ae=(je=>{const qe=je.match(/^([\d.]+)(ms|s)$/);if(!qe)return 0;const[,Ft,Xt]=qe;return Number(Ft)*(Xt==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));le.current=setTimeout(()=>{q(!1),te(null),W==null||W()},Ae+25)}},[ct]);const On=Ae=>{Xe(je=>Rm(je,Ae)?je:Ae)},gr=(Ae=$)=>{Lr(xe),gt?yt(!0):xe.current=setTimeout(()=>{yt(!0)},Ae)},Sn=(Ae=w)=>{Lr(pe),pe.current=setTimeout(()=>{Ve.current||yt(!1)},Ae)},Hn=Ae=>{var je;if(!Ae)return;const qe=(je=Ae.currentTarget)!==null&&je!==void 0?je:Ae.target;if(!(qe!=null&&qe.isConnected))return re(null),void _e({current:null});$?gr():yt(!0),re(qe),_e({current:qe}),Lr(pe)},An=()=>{D?Sn(w||100):w?Sn():yt(!1),Lr(xe)},Gn=({x:Ae,y:je})=>{var qe;const Ft={getBoundingClientRect:()=>({x:Ae,y:je,width:0,height:0,top:je,left:Ae,right:Ae,bottom:je})};r4({place:(qe=Y==null?void 0:Y.place)!==null&&qe!==void 0?qe:l,offset:c,elementReference:Ft,tooltipReference:ne.current,tooltipArrowReference:ye.current,strategy:h,middlewares:g,border:oe}).then(Xt=>{On(Xt)})},Fn=Ae=>{if(!Ae)return;const je=Ae,qe={x:je.clientX,y:je.clientY};Gn(qe),Ce.current=qe},bn=Ae=>{var je;if(!ct)return;const qe=Ae.target;qe.isConnected&&(!((je=ne.current)===null||je===void 0)&&je.contains(qe)||[document.querySelector(`[id='${o}']`),...ht].some(Ft=>Ft==null?void 0:Ft.contains(qe))||(yt(!1),Lr(xe)))},Ar=o4(Hn,50),Lt=o4(An,50),$n=Ae=>{Lt.cancel(),Ar(Ae)},Ne=()=>{Ar.cancel(),Lt()},et=b.useCallback(()=>{var Ae,je;const qe=(Ae=Y==null?void 0:Y.position)!==null&&Ae!==void 0?Ae:G;qe?Gn(qe):C?Ce.current&&Gn(Ce.current):U!=null&&U.isConnected&&r4({place:(je=Y==null?void 0:Y.place)!==null&&je!==void 0?je:l,offset:c,elementReference:U,tooltipReference:ne.current,tooltipArrowReference:ye.current,strategy:h,middlewares:g,border:oe}).then(Ft=>{_t.current&&On(Ft)})},[ct,U,I,M,l,Y==null?void 0:Y.place,c,h,G,Y==null?void 0:Y.position,C]);b.useEffect(()=>{var Ae,je;const qe=new Set(De);ht.forEach(mt=>{j!=null&&j(mt)||qe.add({current:mt})});const Ft=document.querySelector(`[id='${o}']`);Ft&&!(j!=null&&j(Ft))&&qe.add({current:Ft});const Xt=()=>{yt(!1)},Mn=u4(U),Nt=u4(ne.current);Jt.scroll&&(window.addEventListener("scroll",Xt),Mn==null||Mn.addEventListener("scroll",Xt),Nt==null||Nt.addEventListener("scroll",Xt));let tn=null;Jt.resize?window.addEventListener("resize",Xt):U&&ne.current&&(tn=X$(U,ne.current,et,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const Mt=mt=>{mt.key==="Escape"&&yt(!1)};Jt.escape&&window.addEventListener("keydown",Mt),Jt.clickOutsideAnchor&&window.addEventListener("click",bn);const xt=[],Jr=mt=>{ct&&(mt==null?void 0:mt.target)===U||Hn(mt)},Go=mt=>{ct&&(mt==null?void 0:mt.target)===U&&An()},or=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],uo=["click","dblclick","mousedown","mouseup"];Object.entries(Ht).forEach(([mt,qn])=>{qn&&(or.includes(mt)?xt.push({event:mt,listener:$n}):uo.includes(mt)&&xt.push({event:mt,listener:Jr}))}),Object.entries(Rn).forEach(([mt,qn])=>{qn&&(or.includes(mt)?xt.push({event:mt,listener:Ne}):uo.includes(mt)&&xt.push({event:mt,listener:Go}))}),C&&xt.push({event:"pointermove",listener:Fn});const so=()=>{Ve.current=!0},lo=()=>{Ve.current=!1,An()};return D&&!Cn&&((Ae=ne.current)===null||Ae===void 0||Ae.addEventListener("mouseenter",so),(je=ne.current)===null||je===void 0||je.addEventListener("mouseleave",lo)),xt.forEach(({event:mt,listener:qn})=>{qe.forEach(ar=>{var kn;(kn=ar.current)===null||kn===void 0||kn.addEventListener(mt,qn)})}),()=>{var mt,qn;Jt.scroll&&(window.removeEventListener("scroll",Xt),Mn==null||Mn.removeEventListener("scroll",Xt),Nt==null||Nt.removeEventListener("scroll",Xt)),Jt.resize?window.removeEventListener("resize",Xt):tn==null||tn(),Jt.clickOutsideAnchor&&window.removeEventListener("click",bn),Jt.escape&&window.removeEventListener("keydown",Mt),D&&!Cn&&((mt=ne.current)===null||mt===void 0||mt.removeEventListener("mouseenter",so),(qn=ne.current)===null||qn===void 0||qn.removeEventListener("mouseleave",lo)),xt.forEach(({event:ar,listener:kn})=>{qe.forEach(co=>{var Tr;(Tr=co.current)===null||Tr===void 0||Tr.removeEventListener(ar,kn)})})}},[U,et,gt,De,ht,V,S,z,En,$,w]),b.useEffect(()=>{var Ae,je;let qe=(je=(Ae=Y==null?void 0:Y.anchorSelect)!==null&&Ae!==void 0?Ae:u)!==null&&je!==void 0?je:"";!qe&&t&&(qe=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);const Ft=new MutationObserver(Xt=>{const Mn=[],Nt=[];Xt.forEach(tn=>{if(tn.type==="attributes"&&tn.attributeName==="data-tooltip-id"&&(tn.target.getAttribute("data-tooltip-id")===t?Mn.push(tn.target):tn.oldValue===t&&Nt.push(tn.target)),tn.type==="childList"){if(U){const Mt=[...tn.removedNodes].filter(xt=>xt.nodeType===1);if(qe)try{Nt.push(...Mt.filter(xt=>xt.matches(qe))),Nt.push(...Mt.flatMap(xt=>[...xt.querySelectorAll(qe)]))}catch{}Mt.some(xt=>{var Jr;return!!(!((Jr=xt==null?void 0:xt.contains)===null||Jr===void 0)&&Jr.call(xt,U))&&(q(!1),yt(!1),re(null),Lr(xe),Lr(pe),!0)})}if(qe)try{const Mt=[...tn.addedNodes].filter(xt=>xt.nodeType===1);Mn.push(...Mt.filter(xt=>xt.matches(qe))),Mn.push(...Mt.flatMap(xt=>[...xt.querySelectorAll(qe)]))}catch{}}}),(Mn.length||Nt.length)&&ut(tn=>[...tn.filter(Mt=>!Nt.includes(Mt)),...Mn])});return Ft.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{Ft.disconnect()}},[t,u,Y==null?void 0:Y.anchorSelect,U]),b.useEffect(()=>{et()},[et]),b.useEffect(()=>{if(!(R!=null&&R.current))return()=>null;const Ae=new ResizeObserver(()=>{setTimeout(()=>et())});return Ae.observe(R.current),()=>{Ae.disconnect()}},[I,R==null?void 0:R.current]),b.useEffect(()=>{var Ae;const je=document.querySelector(`[id='${o}']`),qe=[...ht,je];U&&qe.includes(U)||re((Ae=ht[0])!==null&&Ae!==void 0?Ae:je)},[o,ht,U]),b.useEffect(()=>(J&&yt(!0),()=>{Lr(xe),Lr(pe)}),[]),b.useEffect(()=>{var Ae;let je=(Ae=Y==null?void 0:Y.anchorSelect)!==null&&Ae!==void 0?Ae:u;if(!je&&t&&(je=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),je)try{const qe=Array.from(document.querySelectorAll(je));ut(qe)}catch{ut([])}},[t,u,Y==null?void 0:Y.anchorSelect]),b.useEffect(()=>{xe.current&&(Lr(xe),gr($))},[$]);const Qt=($e=Y==null?void 0:Y.content)!==null&&$e!==void 0?$e:I,ir=ct&&Object.keys(Me.tooltipStyles).length>0;return b.useImperativeHandle(e,()=>({open:Ae=>{if(Ae!=null&&Ae.anchorSelect)try{document.querySelector(Ae.anchorSelect)}catch{return void console.warn(`[react-tooltip] "${Ae.anchorSelect}" is not a valid CSS selector`)}te(Ae??null),Ae!=null&&Ae.delay?gr(Ae.delay):yt(!0)},close:Ae=>{Ae!=null&&Ae.delay?Sn(Ae.delay):yt(!1)},activeAnchor:U,place:Me.place,isOpen:!!(gt&&!x&&Qt&&ir)})),gt&&!x&&Qt?b.createElement(m,{id:t,role:Ee,className:_m("react-tooltip",fu.tooltip,$h.tooltip,$h[i],n,`react-tooltip__place-${Me.place}`,fu[ir?"show":"closing"],ir?"react-tooltip__show":"react-tooltip__closing",h==="fixed"&&fu.fixed,D&&fu.clickable),onTransitionEnd:Ae=>{Lr(le),ct||Ae.propertyName!=="opacity"||(q(!1),te(null),W==null||W())},style:{...M,...Me.tooltipStyles,opacity:fe!==void 0&&ir?fe:void 0},ref:ne},Qt,b.createElement(m,{className:_m("react-tooltip-arrow",fu.arrow,$h.arrow,r,v&&fu.noArrow),style:{...Me.tooltipArrowStyles,background:ie?`linear-gradient(to right bottom, transparent 50%, ${ie} 50%)`:void 0},ref:ye})):null},fO=({content:e})=>b.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),pO=b.forwardRef(({id:e,anchorId:t,anchorSelect:n,content:r,html:i,render:o,className:u,classNameArrow:l,variant:c="dark",place:d="top",offset:f=10,wrapper:h="div",children:g=null,events:m=["hover"],openOnClick:$=!1,positionStrategy:w="absolute",middlewares:C,delayShow:x=0,delayHide:v=0,float:D=!1,hidden:P=!1,noArrow:E=!1,clickable:T=!1,closeOnEsc:V=!1,closeOnScroll:S=!1,closeOnResize:z=!1,openEvents:O,closeEvents:M,globalCloseEvents:G,imperativeModeOnly:K=!1,style:W,position:j,isOpen:I,defaultIsOpen:R=!1,disableStyleInjection:B=!1,border:J,opacity:L,arrowColor:U,setIsOpen:re,afterShow:oe,afterHide:fe,disableTooltip:ie,role:Ee="tooltip"},$e)=>{const[ne,ye]=b.useState(r),[xe,pe]=b.useState(i),[le,Me]=b.useState(d),[Xe,ct]=b.useState(c),[vn,gt]=b.useState(f),[q,Y]=b.useState(x),[te,he]=b.useState(v),[Ce,De]=b.useState(D),[_e,Ve]=b.useState(P),[ht,ut]=b.useState(h),[_t,En]=b.useState(m),[Cn,Ht]=b.useState(w),[Rn,Jt]=b.useState(null),[yt,On]=b.useState(null),gr=b.useRef(B),{anchorRefs:Sn,activeAnchor:Hn}=ix(e),An=Lt=>Lt==null?void 0:Lt.getAttributeNames().reduce(($n,Ne)=>{var et;return Ne.startsWith("data-tooltip-")&&($n[Ne.replace(/^data-tooltip-/,"")]=(et=Lt==null?void 0:Lt.getAttribute(Ne))!==null&&et!==void 0?et:null),$n},{}),Gn=Lt=>{const $n={place:Ne=>{var et;Me((et=Ne)!==null&&et!==void 0?et:d)},content:Ne=>{ye(Ne??r)},html:Ne=>{pe(Ne??i)},variant:Ne=>{var et;ct((et=Ne)!==null&&et!==void 0?et:c)},offset:Ne=>{gt(Ne===null?f:Number(Ne))},wrapper:Ne=>{var et;ut((et=Ne)!==null&&et!==void 0?et:h)},events:Ne=>{const et=Ne==null?void 0:Ne.split(" ");En(et??m)},"position-strategy":Ne=>{var et;Ht((et=Ne)!==null&&et!==void 0?et:w)},"delay-show":Ne=>{Y(Ne===null?x:Number(Ne))},"delay-hide":Ne=>{he(Ne===null?v:Number(Ne))},float:Ne=>{De(Ne===null?D:Ne==="true")},hidden:Ne=>{Ve(Ne===null?P:Ne==="true")},"class-name":Ne=>{Jt(Ne)}};Object.values($n).forEach(Ne=>Ne(null)),Object.entries(Lt).forEach(([Ne,et])=>{var Qt;(Qt=$n[Ne])===null||Qt===void 0||Qt.call($n,et)})};b.useEffect(()=>{ye(r)},[r]),b.useEffect(()=>{pe(i)},[i]),b.useEffect(()=>{Me(d)},[d]),b.useEffect(()=>{ct(c)},[c]),b.useEffect(()=>{gt(f)},[f]),b.useEffect(()=>{Y(x)},[x]),b.useEffect(()=>{he(v)},[v]),b.useEffect(()=>{De(D)},[D]),b.useEffect(()=>{Ve(P)},[P]),b.useEffect(()=>{Ht(w)},[w]),b.useEffect(()=>{gr.current!==B&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[B]),b.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:B==="core",disableBase:B}}))},[]),b.useEffect(()=>{var Lt;const $n=new Set(Sn);let Ne=n;if(!Ne&&e&&(Ne=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),Ne)try{document.querySelectorAll(Ne).forEach(je=>{$n.add({current:je})})}catch{console.warn(`[react-tooltip] "${Ne}" is not a valid CSS selector`)}const et=document.querySelector(`[id='${t}']`);if(et&&$n.add({current:et}),!$n.size)return()=>null;const Qt=(Lt=yt??et)!==null&&Lt!==void 0?Lt:Hn.current,ir=new MutationObserver(je=>{je.forEach(qe=>{var Ft;if(!Qt||qe.type!=="attributes"||!(!((Ft=qe.attributeName)===null||Ft===void 0)&&Ft.startsWith("data-tooltip-")))return;const Xt=An(Qt);Gn(Xt)})}),Ae={attributes:!0,childList:!1,subtree:!1};if(Qt){const je=An(Qt);Gn(je),ir.observe(Qt,Ae)}return()=>{ir.disconnect()}},[Sn,Hn,yt,t,n]),b.useEffect(()=>{W!=null&&W.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),J&&!i4("border",`${J}`)&&console.warn(`[react-tooltip] "${J}" is not a valid \`border\`.`),W!=null&&W.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),L&&!i4("opacity",`${L}`)&&console.warn(`[react-tooltip] "${L}" is not a valid \`opacity\`.`)},[]);let Fn=g;const bn=b.useRef(null);if(o){const Lt=o({content:(yt==null?void 0:yt.getAttribute("data-tooltip-content"))||ne||null,activeAnchor:yt});Fn=Lt?b.createElement("div",{ref:bn,className:"react-tooltip-content-wrapper"},Lt):null}else ne&&(Fn=ne);xe&&(Fn=b.createElement(fO,{content:xe}));const Ar={forwardRef:$e,id:e,anchorId:t,anchorSelect:n,className:_m(u,Rn),classNameArrow:l,content:Fn,contentWrapperRef:bn,place:le,variant:Xe,offset:vn,wrapper:ht,events:_t,openOnClick:$,positionStrategy:Cn,middlewares:C,delayShow:q,delayHide:te,float:Ce,hidden:_e,noArrow:E,clickable:T,closeOnEsc:V,closeOnScroll:S,closeOnResize:z,openEvents:O,closeEvents:M,globalCloseEvents:G,imperativeModeOnly:K,style:W,position:j,isOpen:I,defaultIsOpen:R,border:J,opacity:L,arrowColor:U,setIsOpen:re,afterShow:oe,afterHide:fe,disableTooltip:ie,activeAnchor:yt,setActiveAnchor:Lt=>On(Lt),role:Ee};return b.createElement(dO,{...Ar})});typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||n4({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||n4({css:`
|
|
94
|
-
.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});const Kt=typeof document<"u"?b.useLayoutEffect:()=>{};function yn(e){const t=b.useRef(null);return Kt(()=>{t.current=e},[e]),b.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function hO(e){let[t,n]=b.useState(e),r=b.useRef(null),i=yn(()=>{if(!r.current)return;let u=r.current.next();if(u.done){r.current=null;return}t===u.value?i():n(u.value)});Kt(()=>{r.current&&i()});let o=yn(u=>{r.current=u(t),i()});return[t,o]}const kd={prefix:String(Math.round(Math.random()*1e10)),current:0},ox=b.createContext(kd),mO=b.createContext(!1);let gO=!!(typeof window<"u"&&window.document&&window.document.createElement),xh=new WeakMap;function yO(e=!1){let t=b.useContext(ox),n=b.useRef(null);if(n.current===null&&!e){var r,i;let o=(i=b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let u=xh.get(o);u==null?xh.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==u.state&&(t.current=u.id,xh.delete(o))}n.current=++t.current}return n.current}function vO(e){let t=b.useContext(ox);t===kd&&!gO&&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=yO(!!e),r=t===kd&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function bO(e){let t=b.useId(),[n]=b.useState(Zg()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${kd.prefix}`;return e||`${r}-${t}`}const $O=typeof b.useId=="function"?bO:vO;function xO(){return!1}function wO(){return!0}function DO(e){return()=>{}}function Zg(){return typeof b.useSyncExternalStore=="function"?b.useSyncExternalStore(DO,xO,wO):b.useContext(mO)}let EO=!!(typeof window<"u"&&window.document&&window.document.createElement),Ao=new Map;function Er(e){let[t,n]=b.useState(e),r=b.useRef(null),i=$O(t),o=b.useCallback(u=>{r.current=u},[]);return EO&&(Ao.has(i)&&!Ao.get(i).includes(o)?Ao.set(i,[...Ao.get(i),o]):Ao.set(i,[o])),Kt(()=>{let u=i;return()=>{Ao.delete(u)}},[i]),b.useEffect(()=>{let u=r.current;u&&(r.current=null,n(u))}),i}function CO(e,t){if(e===t)return e;let n=Ao.get(e);if(n)return n.forEach(i=>i(t)),t;let r=Ao.get(t);return r?(r.forEach(i=>i(e)),e):t}function Uu(e=[]){let t=Er(),[n,r]=hO(t),i=b.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Kt(i,[t,i,...e]),n}function Pa(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const It=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},jo=e=>e&&"window"in e&&e.window===e?e:It(e).defaultView||window;function ax(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=ax(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function SO(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ax(e))&&(r&&(r+=" "),r+=t);return r}function $t(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let o=t[i],u=r[i];typeof o=="function"&&typeof u=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=Pa(o,u):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof u=="string"?t[i]=SO(o,u):i==="id"&&o&&u?t.id=CO(o,u):t[i]=u!==void 0?u:o}}return t}const AO=new Set(["id"]),TO=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),PO=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),_O=/^(data-.*)$/;function io(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,o={};for(const u in e)Object.prototype.hasOwnProperty.call(e,u)&&(AO.has(u)||n&&TO.has(u)||r&&PO.has(u)||i!=null&&i.has(u)||_O.test(u))&&(o[u]=e[u]);return o}function oi(e){if(RO())e.focus({preventScroll:!0});else{let t=OO(e);e.focus(),FO(t)}}let qc=null;function RO(){if(qc==null){qc=!1;try{document.createElement("div").focus({get preventScroll(){return qc=!0,!0}})}catch{}}return qc}function OO(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 FO(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Sf(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 Jg(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 oo(e){let t=null;return()=>(t==null&&(t=e()),t)}const ro=oo(function(){return Jg(/^Mac/i)}),MO=oo(function(){return Jg(/^iPhone/i)}),ux=oo(function(){return Jg(/^iPad/i)||ro()&&navigator.maxTouchPoints>1}),_l=oo(function(){return MO()||ux()}),yd=oo(function(){return ro()||_l()}),Qg=oo(function(){return Sf(/AppleWebKit/i)&&!kO()}),kO=oo(function(){return Sf(/Chrome/i)}),sx=oo(function(){return Sf(/Android/i)}),BO=oo(function(){return Sf(/Firefox/i)}),IO=b.createContext({isNative:!0,open:VO,useHref:e=>e});function Af(){return b.useContext(IO)}function _a(e,t,n=!0){var r,i;let{metaKey:o,ctrlKey:u,altKey:l,shiftKey:c}=t;BO()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(ro()?o=!0:u=!0);let d=Qg()&&ro()&&!ux()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:u,altKey:l,shiftKey:c}):new MouseEvent("click",{metaKey:o,ctrlKey:u,altKey:l,shiftKey:c,bubbles:!0,cancelable:!0});_a.isOpening=n,oi(e),e.dispatchEvent(d),_a.isOpening=!1}_a.isOpening=!1;function LO(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 VO(e,t){LO(e,n=>_a(n,t))}function NO(e){let t=Af();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 vu=new Map,Om=new Set;function s4(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=vu.get(r.target);i||(i=new Set,vu.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=vu.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),vu.delete(r.target)),vu.size===0)){for(let o of Om)o();Om.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?s4():document.addEventListener("DOMContentLoaded",s4));function lx(e){requestAnimationFrame(()=>{vu.size===0?e():Om.add(e)})}function rs(){let e=b.useRef(new Map),t=b.useCallback((i,o,u,l)=>{let c=l!=null&&l.once?(...d)=>{e.current.delete(u),u(...d)}:u;e.current.set(u,{type:o,eventTarget:i,fn:c,options:l}),i.addEventListener(o,u,l)},[]),n=b.useCallback((i,o,u,l)=>{var c;let d=((c=e.current.get(u))===null||c===void 0?void 0:c.fn)||u;i.removeEventListener(o,d,l),e.current.delete(u)},[]),r=b.useCallback(()=>{e.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return b.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function zu(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Er(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 l4(e,t){const n=b.useRef(!0),r=b.useRef(null);b.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),b.useEffect(()=>{n.current?n.current=!1:(!r.current||t.some((i,o)=>!Object.is(i,r[o])))&&e(),r.current=t},t)}function jO(){return typeof window.ResizeObserver<"u"}function c4(e){const{ref:t,box:n,onResize:r}=e;b.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(jO()){const o=new window.ResizeObserver(u=>{u.length&&r()});return o.observe(i,{box:n}),()=>{i&&o.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function cx(e,t){Kt(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function pl(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 Tf(e,t){let n=e;for(pl(n,t)&&(n=n.parentElement);n&&!pl(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function KO(e,t){const n=[];for(;e&&e!==document.documentElement;)pl(e,t)&&n.push(e),e=e.parentElement;return n}let UO=0;const wh=new Map;function Rl(e){let[t,n]=b.useState();return Kt(()=>{if(!e)return;let r=wh.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${UO++}`;n(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=e,document.body.appendChild(o),r={refCount:0,element:o},wh.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),wh.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Bo(e,t,n,r){let i=yn(n),o=n==null;b.useEffect(()=>{if(o||!e.current)return;let u=e.current;return u.addEventListener(t,i,r),()=>{u.removeEventListener(t,i,r)}},[e,t,r,o,i])}function dx(e,t){let n=d4(e,t,"left"),r=d4(e,t,"top"),i=t.offsetWidth,o=t.offsetHeight,u=e.scrollLeft,l=e.scrollTop,{borderTopWidth:c,borderLeftWidth:d}=getComputedStyle(e),f=e.scrollLeft+parseInt(d,10),h=e.scrollTop+parseInt(c,10),g=f+e.clientWidth,m=h+e.clientHeight;n<=u?u=n-parseInt(d,10):n+i>g&&(u+=n+i-g),r<=h?l=r-parseInt(c,10):r+o>m&&(l+=r+o-m),e.scrollLeft=u,e.scrollTop=l}function d4(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 Bd(e,t){if(e&&document.contains(e)){let u=document.scrollingElement||document.documentElement;if(window.getComputedStyle(u).overflow==="hidden"){let c=KO(e);for(let d of c)dx(d,e)}else{var n;let{left:c,top:d}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:f,top:h}=e.getBoundingClientRect();if(Math.abs(c-f)>1||Math.abs(d-h)>1){var r,i,o;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(o=e.scrollIntoView)===null||o===void 0||o.call(e,{block:"nearest"})}}}}function Fm(e){return e.mozInputSource===0&&e.isTrusted?!0:sx()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function zO(e){return!sx()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function fx(e,t){let n=b.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function Xg(e,t,n){let r=b.useRef(t),i=yn(()=>{n&&n(r.current)});b.useEffect(()=>{var o;let u=e==null||(o=e.current)===null||o===void 0?void 0:o.form;return u==null||u.addEventListener("reset",i),()=>{u==null||u.removeEventListener("reset",i)}},[e,i])}function Cr(e,t,n){let[r,i]=b.useState(e||t),o=b.useRef(e!==void 0),u=e!==void 0;b.useEffect(()=>{let d=o.current;d!==u&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}.`),o.current=u},[u]);let l=u?e:r,c=b.useCallback((d,...f)=>{let h=(g,...m)=>{n&&(Object.is(l,g)||n(g,...m)),u||(l=g)};typeof d=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((m,...$)=>{let w=d(u?l:m,...$);return h(w,...f),u?m:w})):(u||i(d),h(d,...f))},[u,l,n]);return[l,c]}function Wu(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function Yc(e,t){let n=e,r=t.toString(),i=r.indexOf("."),o=i>=0?r.length-i:0;if(o>0){let u=Math.pow(10,o);n=Math.round(n*u)/u}return n}function Is(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,o=Yc(Math.abs(i)*2>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return isNaN(t)?!isNaN(n)&&o>n&&(o=Math.floor(Yc(n/r,r))*r):o<t?o=t:!isNaN(n)&&o>n&&(o=t+Math.floor(Yc((n-t)/r,r))*r),o=Yc(o,r),o}let wu="default",Mm="",vd=new WeakMap;function km(e){if(_l()){if(wu==="default"){const t=It(e);Mm=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}wu="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(vd.set(e,e.style.userSelect),e.style.userSelect="none")}function Qs(e){if(_l()){if(wu!=="disabled")return;wu="restoring",setTimeout(()=>{lx(()=>{if(wu==="restoring"){const t=It(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Mm||""),Mm="",wu="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&vd.has(e)){let t=vd.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),vd.delete(e)}}const ey=b.createContext({register:()=>{}});ey.displayName="PressResponderContext";function WO(e,t){return t.get?t.get.call(e):t.value}function px(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function HO(e,t){var n=px(e,t,"get");return WO(e,n)}function GO(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ol(e,t,n){GO(e,t),t.set(e,n)}function qO(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 f4(e,t,n){var r=px(e,t,"set");return qO(e,r,n),n}function YO(e){let t=b.useContext(ey);if(t){let{register:n,...r}=t;e=$t(r,e),n()}return cx(t,e.ref),e}var Zc=new WeakMap;class Jc{continuePropagation(){f4(this,Zc,!1)}get shouldStopPropagation(){return HO(this,Zc)}constructor(t,n,r,i){Ol(this,Zc,{writable:!0,value:void 0}),f4(this,Zc,!0);var o;let u=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:r.currentTarget;const l=u==null?void 0:u.getBoundingClientRect();let c,d=0,f,h=null;r.clientX!=null&&r.clientY!=null&&(f=r.clientX,h=r.clientY),l&&(f!=null&&h!=null?(c=f-l.left,d=h-l.top):(c=l.width/2,d=l.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=c,this.y=d}}const p4=Symbol("linkClicked");function Fl(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,isDisabled:u,isPressed:l,preventFocusOnPress:c,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:h,...g}=YO(e),[m,$]=b.useState(!1),w=b.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:C,removeAllGlobalListeners:x}=rs(),v=yn((S,z)=>{let O=w.current;if(u||O.didFirePressStart)return!1;let M=!0;if(O.isTriggeringEvent=!0,r){let G=new Jc("pressstart",z,S);r(G),M=G.shouldStopPropagation}return n&&n(!0),O.isTriggeringEvent=!1,O.didFirePressStart=!0,$(!0),M}),D=yn((S,z,O=!0)=>{let M=w.current;if(!M.didFirePressStart)return!1;M.ignoreClickAfterPress=!0,M.didFirePressStart=!1,M.isTriggeringEvent=!0;let G=!0;if(i){let K=new Jc("pressend",z,S);i(K),G=K.shouldStopPropagation}if(n&&n(!1),$(!1),t&&O&&!u){let K=new Jc("press",z,S);t(K),G&&(G=K.shouldStopPropagation)}return M.isTriggeringEvent=!1,G}),P=yn((S,z)=>{let O=w.current;if(u)return!1;if(o){O.isTriggeringEvent=!0;let M=new Jc("pressup",z,S);return o(M),O.isTriggeringEvent=!1,M.shouldStopPropagation}return!0}),E=yn(S=>{let z=w.current;z.isPressed&&z.target&&(z.isOverTarget&&z.pointerType!=null&&D(Hi(z.target,S),z.pointerType,!1),z.isPressed=!1,z.isOverTarget=!1,z.activePointerId=null,z.pointerType=null,x(),f||Qs(z.target))}),T=yn(S=>{d&&E(S)}),V=b.useMemo(()=>{let S=w.current,z={onKeyDown(M){if(Dh(M.nativeEvent,M.currentTarget)&&M.currentTarget.contains(M.target)){var G;m4(M.target,M.key)&&M.preventDefault();let K=!0;if(!S.isPressed&&!M.repeat){S.target=M.currentTarget,S.isPressed=!0,K=v(M,"keyboard");let W=M.currentTarget,j=I=>{Dh(I,W)&&!I.repeat&&W.contains(I.target)&&S.target&&P(Hi(S.target,I),"keyboard")};C(It(M.currentTarget),"keyup",Pa(j,O),!0)}K&&M.stopPropagation(),M.metaKey&&ro()&&((G=S.metaKeyEvents)===null||G===void 0||G.set(M.key,M.nativeEvent))}else M.key==="Meta"&&(S.metaKeyEvents=new Map)},onClick(M){if(!(M&&!M.currentTarget.contains(M.target))&&M&&M.button===0&&!S.isTriggeringEvent&&!_a.isOpening){let G=!0;if(u&&M.preventDefault(),!S.ignoreClickAfterPress&&!S.ignoreEmulatedMouseEvents&&!S.isPressed&&(S.pointerType==="virtual"||Fm(M.nativeEvent))){!u&&!c&&oi(M.currentTarget);let K=v(M,"virtual"),W=P(M,"virtual"),j=D(M,"virtual");G=K&&W&&j}S.ignoreEmulatedMouseEvents=!1,S.ignoreClickAfterPress=!1,G&&M.stopPropagation()}}},O=M=>{var G;if(S.isPressed&&S.target&&Dh(M,S.target)){var K;m4(M.target,M.key)&&M.preventDefault();let j=M.target;D(Hi(S.target,M),"keyboard",S.target.contains(j)),x(),M.key!=="Enter"&&ty(S.target)&&S.target.contains(j)&&!M[p4]&&(M[p4]=!0,_a(S.target,M,!1)),S.isPressed=!1,(K=S.metaKeyEvents)===null||K===void 0||K.delete(M.key)}else if(M.key==="Meta"&&(!((G=S.metaKeyEvents)===null||G===void 0)&&G.size)){var W;let j=S.metaKeyEvents;S.metaKeyEvents=void 0;for(let I of j.values())(W=S.target)===null||W===void 0||W.dispatchEvent(new KeyboardEvent("keyup",I))}};if(typeof PointerEvent<"u"){z.onPointerDown=j=>{if(j.button!==0||!j.currentTarget.contains(j.target))return;if(zO(j.nativeEvent)){S.pointerType="virtual";return}Eh(j.currentTarget)&&j.preventDefault(),S.pointerType=j.pointerType;let I=!0;S.isPressed||(S.isPressed=!0,S.isOverTarget=!0,S.activePointerId=j.pointerId,S.target=j.currentTarget,!u&&!c&&oi(j.currentTarget),f||km(S.target),I=v(j,S.pointerType),C(It(j.currentTarget),"pointermove",M,!1),C(It(j.currentTarget),"pointerup",G,!1),C(It(j.currentTarget),"pointercancel",W,!1)),I&&j.stopPropagation()},z.onMouseDown=j=>{j.currentTarget.contains(j.target)&&j.button===0&&(Eh(j.currentTarget)&&j.preventDefault(),j.stopPropagation())},z.onPointerUp=j=>{!j.currentTarget.contains(j.target)||S.pointerType==="virtual"||j.button===0&&pu(j,j.currentTarget)&&P(j,S.pointerType||j.pointerType)};let M=j=>{j.pointerId===S.activePointerId&&(S.target&&pu(j,S.target)?!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,v(Hi(S.target,j),S.pointerType)):S.target&&S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,D(Hi(S.target,j),S.pointerType,!1),T(j)))},G=j=>{j.pointerId===S.activePointerId&&S.isPressed&&j.button===0&&S.target&&(pu(j,S.target)&&S.pointerType!=null?D(Hi(S.target,j),S.pointerType):S.isOverTarget&&S.pointerType!=null&&D(Hi(S.target,j),S.pointerType,!1),S.isPressed=!1,S.isOverTarget=!1,S.activePointerId=null,S.pointerType=null,x(),f||Qs(S.target),"ontouchend"in S.target&&j.pointerType!=="mouse"&&C(S.target,"touchend",K,{once:!0}))},K=j=>{hx(j.currentTarget)&&j.preventDefault()},W=j=>{E(j)};z.onDragStart=j=>{j.currentTarget.contains(j.target)&&E(j)}}else{z.onMouseDown=K=>{if(K.button!==0||!K.currentTarget.contains(K.target))return;if(Eh(K.currentTarget)&&K.preventDefault(),S.ignoreEmulatedMouseEvents){K.stopPropagation();return}S.isPressed=!0,S.isOverTarget=!0,S.target=K.currentTarget,S.pointerType=Fm(K.nativeEvent)?"virtual":"mouse",!u&&!c&&oi(K.currentTarget),v(K,S.pointerType)&&K.stopPropagation(),C(It(K.currentTarget),"mouseup",M,!1)},z.onMouseEnter=K=>{if(!K.currentTarget.contains(K.target))return;let W=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!0,W=v(K,S.pointerType)),W&&K.stopPropagation()},z.onMouseLeave=K=>{if(!K.currentTarget.contains(K.target))return;let W=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!1,W=D(K,S.pointerType,!1),T(K)),W&&K.stopPropagation()},z.onMouseUp=K=>{K.currentTarget.contains(K.target)&&!S.ignoreEmulatedMouseEvents&&K.button===0&&P(K,S.pointerType||"mouse")};let M=K=>{if(K.button===0){if(S.isPressed=!1,x(),S.ignoreEmulatedMouseEvents){S.ignoreEmulatedMouseEvents=!1;return}S.target&&pu(K,S.target)&&S.pointerType!=null?D(Hi(S.target,K),S.pointerType):S.target&&S.isOverTarget&&S.pointerType!=null&&D(Hi(S.target,K),S.pointerType,!1),S.isOverTarget=!1}};z.onTouchStart=K=>{if(!K.currentTarget.contains(K.target))return;let W=ZO(K.nativeEvent);if(!W)return;S.activePointerId=W.identifier,S.ignoreEmulatedMouseEvents=!0,S.isOverTarget=!0,S.isPressed=!0,S.target=K.currentTarget,S.pointerType="touch",!u&&!c&&oi(K.currentTarget),f||km(S.target),v(Do(S.target,K),S.pointerType)&&K.stopPropagation(),C(jo(K.currentTarget),"scroll",G,!0)},z.onTouchMove=K=>{if(!K.currentTarget.contains(K.target))return;if(!S.isPressed){K.stopPropagation();return}let W=h4(K.nativeEvent,S.activePointerId),j=!0;W&&pu(W,K.currentTarget)?!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,j=v(Do(S.target,K),S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,j=D(Do(S.target,K),S.pointerType,!1),T(Do(S.target,K))),j&&K.stopPropagation()},z.onTouchEnd=K=>{if(!K.currentTarget.contains(K.target))return;if(!S.isPressed){K.stopPropagation();return}let W=h4(K.nativeEvent,S.activePointerId),j=!0;W&&pu(W,K.currentTarget)&&S.pointerType!=null?(P(Do(S.target,K),S.pointerType),j=D(Do(S.target,K),S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(j=D(Do(S.target,K),S.pointerType,!1)),j&&K.stopPropagation(),S.isPressed=!1,S.activePointerId=null,S.isOverTarget=!1,S.ignoreEmulatedMouseEvents=!0,S.target&&!f&&Qs(S.target),x()},z.onTouchCancel=K=>{K.currentTarget.contains(K.target)&&(K.stopPropagation(),S.isPressed&&E(Do(S.target,K)))};let G=K=>{S.isPressed&&K.target.contains(S.target)&&E({currentTarget:S.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};z.onDragStart=K=>{K.currentTarget.contains(K.target)&&E(K)}}return z},[C,u,c,x,f,E,T,D,v,P]);return b.useEffect(()=>()=>{var S;f||Qs((S=w.current.target)!==null&&S!==void 0?S:void 0)},[f]),{isPressed:l||m,pressProps:$t(g,V)}}function ty(e){return e.tagName==="A"&&e.hasAttribute("href")}function Dh(e,t){const{key:n,code:r}=e,i=t,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof jo(i).HTMLInputElement&&!mx(i,n)||i instanceof jo(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&ty(i))&&n!=="Enter")}function ZO(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function h4(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 Do(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 Hi(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 JO(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 QO(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function pu(e,t){let n=t.getBoundingClientRect(),r=JO(e);return QO(n,r)}function Eh(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function hx(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!ty(e)}function m4(e,t){return e instanceof HTMLInputElement?!mx(e,t):hx(e)}const XO=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function mx(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":XO.has(e.type)}function eF({children:e}){let t=b.useMemo(()=>({register:()=>{}}),[]);return b.createElement(ey.Provider,{value:t},e)}class tF{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 gx(e){let t=b.useRef({isFocused:!1,observer:null});Kt(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=yn(r=>{e==null||e(r)});return b.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,o=u=>{t.current.isFocused=!1,i.disabled&&n(new tF("blur",u)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var u;(u=t.current.observer)===null||u===void 0||u.disconnect();let l=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function nF(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=b.useCallback(c=>{if(c.target===c.currentTarget)return r&&r(c),i&&i(!1),!0},[r,i]),u=gx(o),l=b.useCallback(c=>{const d=It(c.target);c.target===c.currentTarget&&d.activeElement===c.target&&(n&&n(c),i&&i(!0),u(c))},[i,n,u]);return{focusProps:{onFocus:!t&&(n||i||r)?l:void 0,onBlur:!t&&(r||i)?o:void 0}}}let Ba=null,rF=new Set,ol=new Map,Ra=!1,Bm=!1;function Pf(e,t){for(let n of rF)n(e,t)}function iF(e){return!(e.metaKey||!ro()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Id(e){Ra=!0,iF(e)&&(Ba="keyboard",Pf("keyboard",e))}function zr(e){Ba="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Ra=!0,Pf("pointer",e))}function yx(e){Fm(e)&&(Ra=!0,Ba="virtual")}function vx(e){e.target===window||e.target===document||(!Ra&&!Bm&&(Ba="virtual",Pf("virtual",e)),Ra=!1,Bm=!1)}function bx(){Ra=!1,Bm=!0}function g4(e){if(typeof window>"u"||ol.get(jo(e)))return;const t=jo(e),n=It(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Ra=!0,r.apply(this,arguments)},n.addEventListener("keydown",Id,!0),n.addEventListener("keyup",Id,!0),n.addEventListener("click",yx,!0),t.addEventListener("focus",vx,!0),t.addEventListener("blur",bx,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",zr,!0),n.addEventListener("pointermove",zr,!0),n.addEventListener("pointerup",zr,!0)):(n.addEventListener("mousedown",zr,!0),n.addEventListener("mousemove",zr,!0),n.addEventListener("mouseup",zr,!0)),t.addEventListener("beforeunload",()=>{$x(e)},{once:!0}),ol.set(t,{focus:r})}const $x=(e,t)=>{const n=jo(e),r=It(e);t&&r.removeEventListener("DOMContentLoaded",t),ol.has(n)&&(n.HTMLElement.prototype.focus=ol.get(n).focus,r.removeEventListener("keydown",Id,!0),r.removeEventListener("keyup",Id,!0),r.removeEventListener("click",yx,!0),n.removeEventListener("focus",vx,!0),n.removeEventListener("blur",bx,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",zr,!0),r.removeEventListener("pointermove",zr,!0),r.removeEventListener("pointerup",zr,!0)):(r.removeEventListener("mousedown",zr,!0),r.removeEventListener("mousemove",zr,!0),r.removeEventListener("mouseup",zr,!0)),ol.delete(n))};function oF(e){const t=It(e);let n;return t.readyState!=="loading"?g4(e):(n=()=>{g4(e)},t.addEventListener("DOMContentLoaded",n)),()=>$x(e,n)}typeof document<"u"&&oF();function y4(){return Ba!=="pointer"}function Ld(){return Ba}function xx(e){Ba=e,Pf(e,null)}function is(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=b.useRef({isFocusWithin:!1}),u=b.useCallback(d=>{o.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(d),i&&i(!1))},[n,i,o]),l=gx(u),c=b.useCallback(d=>{!o.current.isFocusWithin&&document.activeElement===d.target&&(r&&r(d),i&&i(!0),o.current.isFocusWithin=!0,l(d))},[r,i,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:u}}}let Vd=!1,Ch=0;function Im(){Vd=!0,setTimeout(()=>{Vd=!1},50)}function v4(e){e.pointerType==="touch"&&Im()}function aF(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",v4):document.addEventListener("touchend",Im),Ch++,()=>{Ch--,!(Ch>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",v4):document.removeEventListener("touchend",Im))}}function uF(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,u]=b.useState(!1),l=b.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;b.useEffect(aF,[]);let{hoverProps:c,triggerHoverEnd:d}=b.useMemo(()=>{let f=(m,$)=>{if(l.pointerType=$,i||$==="touch"||l.isHovered||!m.currentTarget.contains(m.target))return;l.isHovered=!0;let w=m.currentTarget;l.target=w,t&&t({type:"hoverstart",target:w,pointerType:$}),n&&n(!0),u(!0)},h=(m,$)=>{if(l.pointerType="",l.target=null,$==="touch"||!l.isHovered)return;l.isHovered=!1;let w=m.currentTarget;r&&r({type:"hoverend",target:w,pointerType:$}),n&&n(!1),u(!1)},g={};return typeof PointerEvent<"u"?(g.onPointerEnter=m=>{Vd&&m.pointerType==="mouse"||f(m,m.pointerType)},g.onPointerLeave=m=>{!i&&m.currentTarget.contains(m.target)&&h(m,m.pointerType)}):(g.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},g.onMouseEnter=m=>{!l.ignoreEmulatedMouseEvents&&!Vd&&f(m,"mouse"),l.ignoreEmulatedMouseEvents=!1},g.onMouseLeave=m=>{!i&&m.currentTarget.contains(m.target)&&h(m,"mouse")}),{hoverProps:g,triggerHoverEnd:h}},[t,n,r,i,l]);return b.useEffect(()=>{i&&d({currentTarget:l.target},l.pointerType)},[i]),{hoverProps:c,isHovered:o}}function sF(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,o=b.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),u=yn(c=>{n&&Qc(c,t)&&(i&&i(c),o.current.isPointerDown=!0)}),l=yn(c=>{n&&n(c)});b.useEffect(()=>{let c=o.current;if(r)return;const d=t.current,f=It(d);if(typeof PointerEvent<"u"){let h=g=>{c.isPointerDown&&Qc(g,t)&&l(g),c.isPointerDown=!1};return f.addEventListener("pointerdown",u,!0),f.addEventListener("pointerup",h,!0),()=>{f.removeEventListener("pointerdown",u,!0),f.removeEventListener("pointerup",h,!0)}}else{let h=m=>{c.ignoreEmulatedMouseEvents?c.ignoreEmulatedMouseEvents=!1:c.isPointerDown&&Qc(m,t)&&l(m),c.isPointerDown=!1},g=m=>{c.ignoreEmulatedMouseEvents=!0,c.isPointerDown&&Qc(m,t)&&l(m),c.isPointerDown=!1};return f.addEventListener("mousedown",u,!0),f.addEventListener("mouseup",h,!0),f.addEventListener("touchstart",u,!0),f.addEventListener("touchend",g,!0),()=>{f.removeEventListener("mousedown",u,!0),f.removeEventListener("mouseup",h,!0),f.removeEventListener("touchstart",u,!0),f.removeEventListener("touchend",g,!0)}}},[t,r,u,l])}function Qc(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 b4(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function wx(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:b4(e.onKeyDown),onKeyUp:b4(e.onKeyUp)}}}function Dx(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=b.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:o,removeGlobalListener:u}=rs(),l=yn((f,h,g,m)=>{g===0&&m===0||(i.current.didMove||(i.current.didMove=!0,t==null||t({type:"movestart",pointerType:h,shiftKey:f.shiftKey,metaKey:f.metaKey,ctrlKey:f.ctrlKey,altKey:f.altKey})),n==null||n({type:"move",pointerType:h,deltaX:g,deltaY:m,shiftKey:f.shiftKey,metaKey:f.metaKey,ctrlKey:f.ctrlKey,altKey:f.altKey}))}),c=yn((f,h)=>{Qs(),i.current.didMove&&(r==null||r({type:"moveend",pointerType:h,shiftKey:f.shiftKey,metaKey:f.metaKey,ctrlKey:f.ctrlKey,altKey:f.altKey}))});return{moveProps:b.useMemo(()=>{let f={},h=()=>{km(),i.current.didMove=!1};if(typeof PointerEvent>"u"){let m=x=>{if(x.button===0){var v,D,P,E;l(x,"mouse",x.pageX-((P=(v=i.current.lastPosition)===null||v===void 0?void 0:v.pageX)!==null&&P!==void 0?P:0),x.pageY-((E=(D=i.current.lastPosition)===null||D===void 0?void 0:D.pageY)!==null&&E!==void 0?E:0)),i.current.lastPosition={pageX:x.pageX,pageY:x.pageY}}},$=x=>{x.button===0&&(c(x,"mouse"),u(window,"mousemove",m,!1),u(window,"mouseup",$,!1))};f.onMouseDown=x=>{x.button===0&&(h(),x.stopPropagation(),x.preventDefault(),i.current.lastPosition={pageX:x.pageX,pageY:x.pageY},o(window,"mousemove",m,!1),o(window,"mouseup",$,!1))};let w=x=>{let v=[...x.changedTouches].findIndex(({identifier:V})=>V===i.current.id);if(v>=0){var D,P;let{pageX:V,pageY:S}=x.changedTouches[v];var E,T;l(x,"touch",V-((E=(D=i.current.lastPosition)===null||D===void 0?void 0:D.pageX)!==null&&E!==void 0?E:0),S-((T=(P=i.current.lastPosition)===null||P===void 0?void 0:P.pageY)!==null&&T!==void 0?T:0)),i.current.lastPosition={pageX:V,pageY:S}}},C=x=>{[...x.changedTouches].findIndex(({identifier:D})=>D===i.current.id)>=0&&(c(x,"touch"),i.current.id=null,u(window,"touchmove",w),u(window,"touchend",C),u(window,"touchcancel",C))};f.onTouchStart=x=>{if(x.changedTouches.length===0||i.current.id!=null)return;let{pageX:v,pageY:D,identifier:P}=x.changedTouches[0];h(),x.stopPropagation(),x.preventDefault(),i.current.lastPosition={pageX:v,pageY:D},i.current.id=P,o(window,"touchmove",w,!1),o(window,"touchend",C,!1),o(window,"touchcancel",C,!1)}}else{let m=w=>{if(w.pointerId===i.current.id){var C,x;let P=w.pointerType||"mouse";var v,D;l(w,P,w.pageX-((v=(C=i.current.lastPosition)===null||C===void 0?void 0:C.pageX)!==null&&v!==void 0?v:0),w.pageY-((D=(x=i.current.lastPosition)===null||x===void 0?void 0:x.pageY)!==null&&D!==void 0?D:0)),i.current.lastPosition={pageX:w.pageX,pageY:w.pageY}}},$=w=>{if(w.pointerId===i.current.id){let C=w.pointerType||"mouse";c(w,C),i.current.id=null,u(window,"pointermove",m,!1),u(window,"pointerup",$,!1),u(window,"pointercancel",$,!1)}};f.onPointerDown=w=>{w.button===0&&i.current.id==null&&(h(),w.stopPropagation(),w.preventDefault(),i.current.lastPosition={pageX:w.pageX,pageY:w.pageY},i.current.id=w.pointerId,o(window,"pointermove",m,!1),o(window,"pointerup",$,!1),o(window,"pointercancel",$,!1))}}let g=(m,$,w)=>{h(),l(m,"keyboard",$,w),c(m,"keyboard")};return f.onKeyDown=m=>{switch(m.key){case"Left":case"ArrowLeft":m.preventDefault(),m.stopPropagation(),g(m,-1,0);break;case"Right":case"ArrowRight":m.preventDefault(),m.stopPropagation(),g(m,1,0);break;case"Up":case"ArrowUp":m.preventDefault(),m.stopPropagation(),g(m,0,-1);break;case"Down":case"ArrowDown":m.preventDefault(),m.stopPropagation(),g(m,0,1);break}},f},[i,o,u,l,c])}}const lF=500;function Ex(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=lF,accessibilityDescription:u}=e;const l=b.useRef(void 0);let{addGlobalListener:c,removeGlobalListener:d}=rs(),{pressProps:f}=Fl({isDisabled:t,onPressStart(g){if(g.continuePropagation(),(g.pointerType==="mouse"||g.pointerType==="touch")&&(n&&n({...g,type:"longpressstart"}),l.current=setTimeout(()=>{g.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i({...g,type:"longpress"}),l.current=void 0},o),g.pointerType==="touch")){let m=$=>{$.preventDefault()};c(g.target,"contextmenu",m,{once:!0}),c(window,"pointerup",()=>{setTimeout(()=>{d(g.target,"contextmenu",m)},30)},{once:!0})}},onPressEnd(g){l.current&&clearTimeout(l.current),r&&(g.pointerType==="mouse"||g.pointerType==="touch")&&r({...g,type:"longpressend"})}}),h=Rl(i&&!t?u:void 0);return{longPressProps:$t(f,h)}}function Oa(e){const t=It(e);if(Ld()==="virtual"){let n=t.activeElement;lx(()=>{t.activeElement===n&&e.isConnected&&oi(e)})}else oi(e)}function cF(e){const t=jo(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=e.ownerDocument.defaultView;let{display:u,visibility:l}=o(e);i=u!=="none"&&l!=="hidden"&&l!=="collapse"}return i}function dF(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 Cx(e,t){return e.nodeName!=="#comment"&&cF(e)&&dF(e,t)&&(!e.parentElement||Cx(e.parentElement,e))}const $4=b.createContext(null),Lm="react-aria-focus-scope-restore";let Vt=null;function fF(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,o=b.useRef(null),u=b.useRef(null),l=b.useRef([]),{parentNode:c}=b.useContext($4)||{},d=b.useMemo(()=>new Nm({scopeRef:l}),[l]);Kt(()=>{let g=c||cn.root;if(cn.getTreeNode(g.scopeRef)&&Vt&&!Nd(Vt,g.scopeRef)){let m=cn.getTreeNode(Vt);m&&(g=m)}g.addChild(d),cn.addNode(d)},[d,c]),Kt(()=>{let g=cn.getTreeNode(l);g&&(g.contain=!!n)},[n]),Kt(()=>{var g;let m=(g=o.current)===null||g===void 0?void 0:g.nextSibling,$=[],w=C=>C.stopPropagation();for(;m&&m!==u.current;)$.push(m),m.addEventListener(Lm,w),m=m.nextSibling;return l.current=$,()=>{for(let C of $)C.removeEventListener(Lm,w)}},[t]),bF(l,r,n),gF(l,n),$F(l,r,n),vF(l,i),b.useEffect(()=>{const g=It(l.current?l.current[0]:void 0).activeElement;let m=null;if(Zr(g,l.current)){for(let $ of cn.traverse())$.scopeRef&&Zr(g,$.scopeRef.current)&&(m=$);m===cn.getTreeNode(l)&&(Vt=m.scopeRef)}},[l]),Kt(()=>()=>{var g,m,$;let w=($=(m=cn.getTreeNode(l))===null||m===void 0||(g=m.parent)===null||g===void 0?void 0:g.scopeRef)!==null&&$!==void 0?$:null;(l===Vt||Nd(l,Vt))&&(!w||cn.getTreeNode(w))&&(Vt=w),cn.removeTreeNode(l)},[l]);let f=b.useMemo(()=>pF(l),[]),h=b.useMemo(()=>({focusManager:f,parentNode:d}),[d,f]);return b.createElement($4.Provider,{value:h},b.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),t,b.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:u}))}function pF(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:o,accept:u}=t,l=r||It(n[0]).activeElement,c=n[0].previousElementSibling,d=ha(n),f=hr(d,{tabbable:i,accept:u},n);f.currentNode=Zr(l,n)?l:c;let h=f.nextNode();return!h&&o&&(f.currentNode=c,h=f.nextNode()),h&&pr(h,!0),h},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:o,accept:u}=t,l=r||It(n[0]).activeElement,c=n[n.length-1].nextElementSibling,d=ha(n),f=hr(d,{tabbable:i,accept:u},n);f.currentNode=Zr(l,n)?l:c;let h=f.previousNode();return!h&&o&&(f.currentNode=c,h=f.previousNode()),h&&pr(h,!0),h},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,o=ha(n),u=hr(o,{tabbable:r,accept:i},n);u.currentNode=n[0].previousElementSibling;let l=u.nextNode();return l&&pr(l,!0),l},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,o=ha(n),u=hr(o,{tabbable:r,accept:i},n);u.currentNode=n[n.length-1].nextElementSibling;let l=u.previousNode();return l&&pr(l,!0),l}}}const ny=["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]"],hF=ny.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";ny.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const mF=ny.join(':not([hidden]):not([tabindex="-1"]),');function ha(e){return e[0].parentElement}function Xs(e){let t=cn.getTreeNode(Vt);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function gF(e,t){let n=b.useRef(void 0),r=b.useRef(void 0);Kt(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=It(i?i[0]:void 0);let u=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!Xs(e)||d.isComposing)return;let f=o.activeElement,h=e.current;if(!h||!Zr(f,h))return;let g=ha(h),m=hr(g,{tabbable:!0},h);if(!f)return;m.currentNode=f;let $=d.shiftKey?m.previousNode():m.nextNode();$||(m.currentNode=d.shiftKey?h[h.length-1].nextElementSibling:h[0].previousElementSibling,$=d.shiftKey?m.previousNode():m.nextNode()),d.preventDefault(),$&&pr($,!0)},l=d=>{(!Vt||Nd(Vt,e))&&Zr(d.target,e.current)?(Vt=e,n.current=d.target):Xs(e)&&!Ro(d.target,e)?n.current?n.current.focus():Vt&&Vt.current&&Vm(Vt.current):Xs(e)&&(n.current=d.target)},c=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(o.activeElement&&Xs(e)&&!Ro(o.activeElement,e))if(Vt=e,o.body.contains(d.target)){var f;n.current=d.target,(f=n.current)===null||f===void 0||f.focus()}else Vt.current&&Vm(Vt.current)})};return o.addEventListener("keydown",u,!1),o.addEventListener("focusin",l,!1),i==null||i.forEach(d=>d.addEventListener("focusin",l,!1)),i==null||i.forEach(d=>d.addEventListener("focusout",c,!1)),()=>{o.removeEventListener("keydown",u,!1),o.removeEventListener("focusin",l,!1),i==null||i.forEach(d=>d.removeEventListener("focusin",l,!1)),i==null||i.forEach(d=>d.removeEventListener("focusout",c,!1))}},[e,t]),Kt(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Sx(e){return Ro(e)}function Zr(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Ro(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of cn.traverse(cn.getTreeNode(t)))if(n&&Zr(e,n.current))return!0;return!1}function yF(e){return Ro(e,Vt)}function Nd(e,t){var n;let r=(n=cn.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function pr(e,t=!1){if(e!=null&&!t)try{Oa(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Ax(e,t=!0){let n=e[0].previousElementSibling,r=ha(e),i=hr(r,{tabbable:t},e);i.currentNode=n;let o=i.nextNode();return t&&!o&&(r=ha(e),i=hr(r,{tabbable:!1},e),i.currentNode=n,o=i.nextNode()),o}function Vm(e,t=!0){pr(Ax(e,t))}function vF(e,t){const n=b.useRef(t);b.useEffect(()=>{if(n.current){Vt=e;const r=It(e.current?e.current[0]:void 0);!Zr(r.activeElement,Vt.current)&&e.current&&Vm(e.current)}n.current=!1},[e])}function bF(e,t,n){Kt(()=>{if(t||n)return;let r=e.current;const i=It(r?r[0]:void 0);let o=u=>{let l=u.target;Zr(l,e.current)?Vt=e:Sx(l)||(Vt=null)};return i.addEventListener("focusin",o,!1),r==null||r.forEach(u=>u.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),r==null||r.forEach(u=>u.removeEventListener("focusin",o,!1))}},[e,t,n])}function x4(e){let t=cn.getTreeNode(Vt);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function $F(e,t,n){const r=b.useRef(typeof document<"u"?It(e.current?e.current[0]:void 0).activeElement:null);Kt(()=>{let i=e.current;const o=It(i?i[0]:void 0);if(!t||n)return;let u=()=>{(!Vt||Nd(Vt,e))&&Zr(o.activeElement,e.current)&&(Vt=e)};return o.addEventListener("focusin",u,!1),i==null||i.forEach(l=>l.addEventListener("focusin",u,!1)),()=>{o.removeEventListener("focusin",u,!1),i==null||i.forEach(l=>l.removeEventListener("focusin",u,!1))}},[e,n]),Kt(()=>{const i=It(e.current?e.current[0]:void 0);if(!t)return;let o=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!Xs(e)||u.isComposing)return;let l=i.activeElement;if(!Ro(l,e)||!x4(e))return;let c=cn.getTreeNode(e);if(!c)return;let d=c.nodeToRestore,f=hr(i.body,{tabbable:!0});f.currentNode=l;let h=u.shiftKey?f.previousNode():f.nextNode();if((!d||!i.body.contains(d)||d===i.body)&&(d=void 0,c.nodeToRestore=void 0),(!h||!Ro(h,e))&&d){f.currentNode=d;do h=u.shiftKey?f.previousNode():f.nextNode();while(Ro(h,e));u.preventDefault(),u.stopPropagation(),h?pr(h,!0):Sx(d)?pr(d,!0):l.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[e,t,n]),Kt(()=>{const i=It(e.current?e.current[0]:void 0);if(!t)return;let o=cn.getTreeNode(e);if(o){var u;return o.nodeToRestore=(u=r.current)!==null&&u!==void 0?u:void 0,()=>{let l=cn.getTreeNode(e);if(!l)return;let c=l.nodeToRestore;if(t&&c&&(i.activeElement&&Ro(i.activeElement,e)||i.activeElement===i.body&&x4(e))){let d=cn.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let f=d.getTreeNode(e);for(;f;){if(f.nodeToRestore&&f.nodeToRestore.isConnected){w4(f.nodeToRestore);return}f=f.parent}for(f=d.getTreeNode(e);f;){if(f.scopeRef&&f.scopeRef.current&&cn.getTreeNode(f.scopeRef)){let h=Ax(f.scopeRef.current,!0);w4(h);return}f=f.parent}}})}}}},[e,t])}function w4(e){e.dispatchEvent(new CustomEvent(Lm,{bubbles:!0,cancelable:!0}))&&pr(e)}function hr(e,t,n){let r=t!=null&&t.tabbable?mF:hF,i=It(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(o){var u;return!(t==null||(u=t.from)===null||u===void 0)&&u.contains(o)?NodeFilter.FILTER_REJECT:o.matches(r)&&Cx(o)&&(!n||Zr(o,n))&&(!(t!=null&&t.accept)||t.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}function _f(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:o=t.tabbable,wrap:u=t.wrap,accept:l=t.accept}=n,c=i||It(r).activeElement,d=hr(r,{tabbable:o,accept:l});r.contains(c)&&(d.currentNode=c);let f=d.nextNode();return!f&&u&&(d.currentNode=r,f=d.nextNode()),f&&pr(f,!0),f},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:o=t.tabbable,wrap:u=t.wrap,accept:l=t.accept}=n,c=i||It(r).activeElement,d=hr(r,{tabbable:o,accept:l});if(r.contains(c))d.currentNode=c;else{let h=Sh(d);return h&&pr(h,!0),h??null}let f=d.previousNode();if(!f&&u){d.currentNode=r;let h=Sh(d);if(!h)return null;f=h}return f&&pr(f,!0),f??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:o=t.accept}=n,l=hr(r,{tabbable:i,accept:o}).nextNode();return l&&pr(l,!0),l},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:o=t.accept}=n,u=hr(r,{tabbable:i,accept:o}),l=Sh(u);return l&&pr(l,!0),l??null}}}function Sh(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class ry{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let o=new Nm({scopeRef:t});i.addChild(o),o.parent=i,this.fastMap.set(t,o),r&&(o.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let o of this.traverse())o!==n&&n.nodeToRestore&&o.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Zr(o.nodeToRestore,n.scopeRef.current)&&(o.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(o=>r&&r.addChild(o))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new ry;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 Nm({scopeRef:null}),this.fastMap.set(null,this.root)}}class Nm{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 cn=new ry,xF=b.createContext(null);function wF(e){let t=b.useContext(xF)||{};cx(t,e);let{ref:n,...r}=t;return r}function iy(e,t){let{focusProps:n}=nF(e),{keyboardProps:r}=wx(e),i=$t(n,r),o=wF(t),u=e.isDisabled?{}:o,l=b.useRef(e.autoFocus);return b.useEffect(()=>{l.current&&t.current&&Oa(t.current),l.current=!1},[t]),{focusableProps:$t({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},u)}}const DF=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),EF=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function CF(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 DF.has(n.script)}let t=e.split("-")[0];return EF.has(t)}const SF=Symbol.for("react-aria.i18n.locale");function Tx(){let e=typeof window<"u"&&window[SF]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:CF(e)?"rtl":"ltr"}}let jm=Tx(),el=new Set;function D4(){jm=Tx();for(let e of el)e(jm)}function AF(){let e=Zg(),[t,n]=b.useState(jm);return b.useEffect(()=>(el.size===0&&window.addEventListener("languagechange",D4),el.add(n),()=>{el.delete(n),el.size===0&&window.removeEventListener("languagechange",D4)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const TF=b.createContext(null);function Wn(){let e=AF();return b.useContext(TF)||e}const PF=Symbol.for("react-aria.i18n.locale"),_F=Symbol.for("react-aria.i18n.strings");let hu;class Ho{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=RF(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[PF];if(hu===void 0){let i=window[_F];if(!i)return null;hu={};for(let o in i)hu[o]=new Ho({[n]:i[o]},n)}let r=hu==null?void 0:hu[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 RF(e,t,n="en-US"){if(t[e])return t[e];let r=OF(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function OF(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const E4=new Map,C4=new Map;class Px{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let o=this.locale+":"+r,u=E4.get(o);u||(u=new Intl.PluralRules(this.locale,{type:r}),E4.set(o,u));let l=u.select(t);return i=n[l]||n.other,typeof i=="function"?i():i}number(t){let n=C4.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),C4.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 S4=new WeakMap;function FF(e){let t=S4.get(e);return t||(t=new Ho(e),S4.set(e,t)),t}function _x(e,t){return t&&Ho.getGlobalDictionaryForPackage(t)||FF(e)}function Mi(e,t){let{locale:n}=Wn(),r=_x(e,t);return b.useMemo(()=>new Px(n,r),[n,r])}function Pu(e,t){return e-t*Math.floor(e/t)}const Rx=1721426;function ma(e,t,n,r){t=Ml(e,t);let i=t-1,o=-2;return n<=2?o=0:Oo(t)&&(o=-1),Rx-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+o+r)}function Oo(e){return e%4===0&&(e%100!==0||e%400===0)}function Ml(e,t){return e==="BC"?1-t:t}function Rf(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const MF={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 rr{fromJulianDay(t){let n=t,r=n-Rx,i=Math.floor(r/146097),o=Pu(r,146097),u=Math.floor(o/36524),l=Pu(o,36524),c=Math.floor(l/1461),d=Pu(l,1461),f=Math.floor(d/365),h=i*400+u*100+c*4+f+(u!==4&&f!==4?1:0),[g,m]=Rf(h),$=n-ma(g,m,1,1),w=2;n<ma(g,m,3,1)?w=0:Oo(m)&&(w=1);let C=Math.floor((($+w)*12+373)/367),x=n-ma(g,m,C,1)+1;return new sn(g,m,C,x)}toJulianDay(t){return ma(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return MF[Oo(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Oo(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 kF={"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 gn(e,t){return t=Yt(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function Km(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 Ox(e,t){return gn(e,Of(t))}function oy(e,t){let n=e.calendar.toJulianDay(e),r=Math.ceil(n+1-jF(t))%7;return r<0&&(r+=7),r}function Fx(e){return Qi(Date.now(),e)}function Of(e){return nr(Fx(e))}function Mx(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function kx(e,t){return A4(e)-A4(t)}function A4(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let Ah=null;function kl(){return Ah==null&&(Ah=new Intl.DateTimeFormat().resolvedOptions().timeZone),Ah}function Bl(e){return e.subtract({days:e.day-1})}function Um(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function BF(e){return Bl(e.subtract({months:e.month-1}))}function IF(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function LF(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function hl(e,t){let n=oy(e,t);return e.subtract({days:n})}function VF(e,t){return hl(e,t).add({days:6})}const T4=new Map;function NF(e){if(Intl.Locale){let n=T4.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&T4.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function jF(e){let t=NF(e);return t&&kF[t]||0}function KF(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((oy(Bl(e),t)+n)/7)}function ay(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function uy(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function Hu(e){e=Yt(e,new rr);let t=Ml(e.era,e.year);return Bx(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function Bx(e,t,n,r,i,o,u){let l=new Date;return l.setUTCHours(r,i,o,u),l.setUTCFullYear(e,t-1,n),l.getTime()}function zm(e,t){if(t==="UTC")return 0;if(e>0&&t===kl())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:o,minute:u,second:l}=Ix(e,t);return Bx(n,r,i,o,u,l,0)-Math.floor(e/1e3)*1e3}const P4=new Map;function Ix(e,t){let n=P4.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"}),P4.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let o of r)o.type!=="literal"&&(i[o.type]=o.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const _4=864e5;function UF(e,t,n,r){return(n===r?[n]:[n,r]).filter(o=>zF(e,t,o))}function zF(e,t,n){let r=Ix(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 Ji(e,t,n="compatible"){let r=ci(e);if(t==="UTC")return Hu(r);if(t===kl()&&n==="compatible"){r=Yt(r,new rr);let c=new Date,d=Ml(r.era,r.year);return c.setFullYear(d,r.month-1,r.day),c.setHours(r.hour,r.minute,r.second,r.millisecond),c.getTime()}let i=Hu(r),o=zm(i-_4,t),u=zm(i+_4,t),l=UF(r,t,i-o,i-u);if(l.length===1)return l[0];if(l.length>1)switch(n){case"compatible":case"earlier":return l[0];case"later":return l[l.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-o,i-u);case"compatible":case"later":return Math.max(i-o,i-u);case"reject":throw new RangeError("No such absolute time found")}}function Lx(e,t,n="compatible"){return new Date(Ji(e,t,n))}function Qi(e,t){let n=zm(e,t),r=new Date(e+n),i=r.getUTCFullYear(),o=r.getUTCMonth()+1,u=r.getUTCDate(),l=r.getUTCHours(),c=r.getUTCMinutes(),d=r.getUTCSeconds(),f=r.getUTCMilliseconds();return new gl(i<1?"BC":"AD",i<1?-i+1:i,o,u,t,n,l,c,d,f)}function nr(e){return new sn(e.calendar,e.era,e.year,e.month,e.day)}function ci(e,t){let n=0,r=0,i=0,o=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:o}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:o}=t),new jd(e.calendar,e.era,e.year,e.month,e.day,n,r,i,o)}function R4(e){return new Il(e.hour,e.minute,e.second,e.millisecond)}function Yt(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,Fa(r),r}function Vx(e,t,n){if(e instanceof gl)return e.timeZone===t?e:HF(e,t);let r=Ji(e,t,n);return Qi(r,t)}function WF(e){let t=Hu(e)-e.offset;return new Date(t)}function HF(e,t){let n=Hu(e)-e.offset;return Yt(Qi(n,t),e.calendar)}const Ls=36e5;function Ff(e,t){let n=e.copy(),r="hour"in n?Ux(n,t):0;Wm(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Hm(n),Nx(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,GF(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var o,u;let c=(o=(u=n.calendar).isInverseEra)===null||o===void 0?void 0:o.call(u,n);n.year=i,n.month=c?1:n.calendar.getMonthsInYear(n),n.day=c?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let l=n.calendar.getMonthsInYear(n);return n.month>l&&(n.month=l,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function Wm(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function Hm(e){for(;e.month<1;)Wm(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Wm(e,1)}function GF(e){for(;e.day<1;)e.month--,Hm(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Hm(e)}function Nx(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 Fa(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),Nx(e)}function sy(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function jx(e,t){return Ff(e,sy(t))}function ly(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),Fa(n),n}function ml(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),Kx(n),n}function qF(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Xc(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Xc(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Xc(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Xc(e.hour,24),t}function Kx(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 Xc(e,t){let n=e%t;return n<0&&(n+=t),n}function Ux(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,qF(e)}function zx(e,t){let n=e.copy();return Ux(n,t),n}function YF(e,t){return zx(e,sy(t))}function cy(e,t,n,r){let i=e.copy();switch(t){case"era":{let l=e.calendar.getEras(),c=l.indexOf(e.era);if(c<0)throw new Error("Invalid era: "+e.era);c=Xi(c,n,0,l.length-1,r==null?void 0:r.round),i.era=l[c],Fa(i);break}case"year":var o,u;!((o=(u=i.calendar).isInverseEra)===null||o===void 0)&&o.call(u,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),Fa(i),i}function dy(e,t,n,r){let i=e.copy();switch(t){case"hour":{let o=e.hour,u=0,l=23;if((r==null?void 0:r.hourCycle)===12){let c=o>=12;u=c?12:0,l=c?23:11}i.hour=Xi(o,n,u,l,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 o=Math.abs(t);t>0?e=Math.ceil(e/o)*o:e=Math.floor(e/o)*o,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function Wx(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=Ff(ci(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=Ji(i,e.timeZone)}else n=Hu(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=Qi(n,e.timeZone);return Yt(r,e.calendar)}function ZF(e,t){return Wx(e,sy(t))}function JF(e,t,n,r){switch(t){case"hour":{let i=0,o=23;if((r==null?void 0:r.hourCycle)===12){let $=e.hour>=12;i=$?12:0,o=$?23:11}let u=ci(e),l=Yt(ml(u,{hour:i}),new rr),c=[Ji(l,e.timeZone,"earlier"),Ji(l,e.timeZone,"later")].filter($=>Qi($,e.timeZone).day===l.day)[0],d=Yt(ml(u,{hour:o}),new rr),f=[Ji(d,e.timeZone,"earlier"),Ji(d,e.timeZone,"later")].filter($=>Qi($,e.timeZone).day===d.day).pop(),h=Hu(e)-e.offset,g=Math.floor(h/Ls),m=h%Ls;return h=Xi(g,n,Math.floor(c/Ls),Math.floor(f/Ls),r==null?void 0:r.round)*Ls+m,Yt(Qi(h,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return dy(e,t,n,r);case"era":case"year":case"month":case"day":{let i=cy(ci(e),t,n,r),o=Ji(i,e.timeZone);return Yt(Qi(o,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function QF(e,t,n){let r=ci(e),i=ml(ly(r,t),t);if(i.compare(r)===0)return e;let o=Ji(i,e.timeZone,n);return Yt(Qi(o,e.timeZone),e.calendar)}const XF=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/;function eM(e){let t=e.match(XF);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new sn(Th(t[1],0,9999),Th(t[2],1,12),1);return n.day=Th(t[3],0,n.calendar.getDaysInMonth(n)),n}function Th(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 Hx(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 Gx(e){let t=Yt(e,new rr),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 qx(e){return`${Gx(e)}T${Hx(e)}`}function tM(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 nM(e){return`${qx(e)}${tM(e.offset)}[${e.timeZone}]`}function fy(e){let t=typeof e[0]=="object"?e.shift():new rr,n;if(typeof e[0]=="string")n=e.shift();else{let u=t.getEras();n=u[u.length-1]}let r=e.shift(),i=e.shift(),o=e.shift();return[t,n,r,i,o]}var rM=new WeakMap;class sn{copy(){return this.era?new sn(this.calendar,this.era,this.year,this.month,this.day):new sn(this.calendar,this.year,this.month,this.day)}add(t){return Ff(this,t)}subtract(t){return jx(this,t)}set(t){return ly(this,t)}cycle(t,n,r){return cy(this,t,n,r)}toDate(t){return Lx(this,t)}toString(){return Gx(this)}compare(t){return Mx(this,t)}constructor(...t){Ol(this,rM,{writable:!0,value:void 0});let[n,r,i,o,u]=fy(t);this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=u,Fa(this)}}var iM=new WeakMap;class Il{copy(){return new Il(this.hour,this.minute,this.second,this.millisecond)}add(t){return zx(this,t)}subtract(t){return YF(this,t)}set(t){return ml(this,t)}cycle(t,n,r){return dy(this,t,n,r)}toString(){return Hx(this)}compare(t){return kx(this,t)}constructor(t=0,n=0,r=0,i=0){Ol(this,iM,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,Kx(this)}}var oM=new WeakMap;class jd{copy(){return this.era?new jd(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new jd(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Ff(this,t)}subtract(t){return jx(this,t)}set(t){return ly(ml(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return cy(this,t,n,r);default:return dy(this,t,n,r)}}toDate(t,n){return Lx(this,t,n)}toString(){return qx(this)}compare(t){let n=Mx(this,t);return n===0?kx(this,ci(t)):n}constructor(...t){Ol(this,oM,{writable:!0,value:void 0});let[n,r,i,o,u]=fy(t);this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=u,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Fa(this)}}var aM=new WeakMap;class gl{copy(){return this.era?new gl(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new gl(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return Wx(this,t)}subtract(t){return ZF(this,t)}set(t,n){return QF(this,t,n)}cycle(t,n,r){return JF(this,t,n,r)}toDate(){return WF(this)}toString(){return nM(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-Vx(t,this.timeZone).toDate().getTime()}constructor(...t){Ol(this,aM,{writable:!0,value:void 0});let[n,r,i,o,u]=fy(t),l=t.shift(),c=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=u,this.timeZone=l,this.offset=c,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Fa(this)}}const _u=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],uM=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],bd=[1867,1911,1925,1988,2018],To=["meiji","taisho","showa","heisei","reiwa"];function O4(e){const t=_u.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?_u.length-1:t===0?0:t-1}function Ph(e){let t=bd[To.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new sn(e.year+t,e.month,e.day)}class sM extends rr{fromJulianDay(t){let n=super.fromJulianDay(t),r=O4(n);return new sn(this,To[r],n.year-bd[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(Ph(t))}balanceDate(t){let n=Ph(t),r=O4(n);To[r]!==t.era&&(t.era=To[r],t.year=n.year-bd[r]),this.constrainDate(t)}constrainDate(t){let n=To.indexOf(t.era),r=uM[n];if(r!=null){let[i,o,u]=r,l=i-bd[n];t.year=Math.max(1,Math.min(l,t.year)),t.year===l&&(t.month=Math.min(o,t.month),t.month===o&&(t.day=Math.min(u,t.day)))}if(t.year===1&&n>=0){let[,i,o]=_u[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(o,t.day))}}getEras(){return To}getYearsInEra(t){let n=To.indexOf(t.era),r=_u[n],i=_u[n+1];if(i==null)return 9999-r[0]+1;let o=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&o++,o}getDaysInMonth(t){return super.getDaysInMonth(Ph(t))}getMinimumMonthInYear(t){let n=F4(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=F4(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function F4(e){if(e.year===1){let t=To.indexOf(e.era);return _u[t]}}const Yx=-543;class lM extends rr{fromJulianDay(t){let n=super.fromJulianDay(t),r=Ml(n.era,n.year);return new sn(this,r-Yx,n.month,n.day)}toJulianDay(t){return super.toJulianDay(M4(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(M4(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function M4(e){let[t,n]=Rf(e.year+Yx);return new sn(t,n,e.month,e.day)}const Kd=1911;function Zx(e){return e.era==="minguo"?e.year+Kd:1-e.year+Kd}function k4(e){let t=e-Kd;return t>0?["minguo",t]:["before_minguo",1-t]}class cM extends rr{fromJulianDay(t){let n=super.fromJulianDay(t),r=Ml(n.era,n.year),[i,o]=k4(r);return new sn(this,i,o,n.month,n.day)}toJulianDay(t){return super.toJulianDay(B4(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=k4(Zx(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(B4(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Kd}constructor(...t){super(...t),this.identifier="roc"}}function B4(e){let[t,n]=Rf(Zx(e));return new sn(t,n,e.month,e.day)}const I4=1948320,L4=[0,31,62,93,124,155,186,216,246,276,306,336];class dM{fromJulianDay(t){let n=t-I4,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),o=n-i,u=o<216?Math.floor(o/31):Math.floor((o-6)/30),l=o-L4[u]+1;return new sn(this,r,u+1,l)}toJulianDay(t){let n=I4-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=L4[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||Pu(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const _h=78,V4=80;class fM extends rr{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-_h,i=t-ma(n.era,n.year,1,1),o;i<V4?(r--,o=Oo(n.year-1)?31:30,i+=o+155+90+10):(o=Oo(n.year)?31:30,i-=V4);let u,l;if(i<o)u=1,l=i+1;else{let c=i-o;c<155?(u=Math.floor(c/31)+2,l=c%31+1):(c-=155,u=Math.floor(c/30)+7,l=c%30+1)}return new sn(this,r,u,l)}toJulianDay(t){let n=t.year+_h,[r,i]=Rf(n),o,u;return Oo(i)?(o=31,u=ma(r,i,3,21)):(o=30,u=ma(r,i,3,22)),t.month===1?u+t.day-1:(u+=o+Math.min(t.month-2,5)*31,t.month>=8&&(u+=(t.month-7)*30),u+=t.day-1,u)}getDaysInMonth(t){return t.month===1&&Oo(t.year+_h)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Ud=1948440,N4=1948439,Kr=1300,mu=1600,pM=460322;function zd(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function Jx(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+zd(t,r,1,1)))/29.5)+1),o=n-zd(t,r,i,1)+1;return new sn(e,r,i,o)}function j4(e){return(14+11*e)%30<11}class py{fromJulianDay(t){return Jx(this,Ud,t)}toJulianDay(t){return zd(Ud,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&j4(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return j4(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class hM extends py{fromJulianDay(t){return Jx(this,N4,t)}toJulianDay(t){return zd(N4,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const mM="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Gm,Ru;function $d(e){return pM+Ru[e-Kr]}function tl(e,t){let n=e-Kr,r=1<<11-(t-1);return Gm[n]&r?30:29}function K4(e,t){let n=$d(e);for(let r=1;r<t;r++)n+=tl(e,r);return n}function U4(e){return Ru[e+1-Kr]-Ru[e-Kr]}class gM extends py{fromJulianDay(t){let n=t-Ud,r=$d(Kr),i=$d(mu);if(n<r||n>i)return super.fromJulianDay(t);{let o=Kr-1,u=1,l=1;for(;l>0;){o++,l=n-$d(o)+1;let c=U4(o);if(l===c){u=12;break}else if(l<c){let d=tl(o,u);for(u=1;l>d;)l-=d,u++,d=tl(o,u);break}}return new sn(this,o,u,n-K4(o,u)+1)}}toJulianDay(t){return t.year<Kr||t.year>mu?super.toJulianDay(t):Ud+K4(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<Kr||t.year>mu?super.getDaysInMonth(t):tl(t.year,t.month)}getDaysInYear(t){return t.year<Kr||t.year>mu?super.getDaysInYear(t):U4(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Gm||(Gm=new Uint16Array(Uint8Array.from(atob(mM),t=>t.charCodeAt(0)).buffer)),!Ru){Ru=new Uint32Array(mu-Kr+1);let t=0;for(let n=Kr;n<=mu;n++){Ru[n-Kr]=t;for(let r=1;r<=12;r++)t+=tl(n,r)}}}}const z4=347997,Qx=1080,Xx=24*Qx,yM=29,vM=12*Qx+793,bM=yM*Xx+vM;function da(e){return Pu(e*7+1,19)<7}function xd(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return Pu(3*(r+1),7)<3&&(r+=1),r}function $M(e){let t=xd(e-1),n=xd(e);return xd(e+1)-n===356?2:n-t===382?1:0}function al(e){return xd(e)+$M(e)}function ew(e){return al(e+1)-al(e)}function xM(e){let t=ew(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function ed(e,t){if(t>=6&&!da(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=xM(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?da(e)?30:0:30}class wM{fromJulianDay(t){let n=t-z4,r=n*Xx/bM,i=Math.floor((19*r+234)/235)+1,o=al(i),u=Math.floor(n-o);for(;u<1;)i--,o=al(i),u=Math.floor(n-o);let l=1,c=0;for(;c<u;)c+=ed(i,l),l++;l--,c-=ed(i,l);let d=u-c;return new sn(this,i,l,d)}toJulianDay(t){let n=al(t.year);for(let r=1;r<t.month;r++)n+=ed(t.year,r);return n+t.day+z4}getDaysInMonth(t){return ed(t.year,t.month)}getMonthsInYear(t){return da(t.year)?13:12}getDaysInYear(t){return ew(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(da(n.year)&&!da(t.year)&&n.month>6?t.month--:!da(n.year)&&da(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const qm=1723856,W4=1824665,Ym=5500;function Wd(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function hy(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Wd(e,n,1,1))/30),i=t+1-Wd(e,n,r,1);return[n,r,i]}function tw(e){return Math.floor(e%4/3)}function nw(e,t){return t%13!==0?30:tw(e)+5}class my{fromJulianDay(t){let[n,r,i]=hy(qm,t),o="AM";return n<=0&&(o="AA",n+=Ym),new sn(this,o,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=Ym),Wd(qm,n,t.month,t.day)}getDaysInMonth(t){return nw(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+tw(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class DM extends my{fromJulianDay(t){let[n,r,i]=hy(qm,t);return n+=Ym,new sn(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class EM extends my{fromJulianDay(t){let[n,r,i]=hy(W4,t),o="CE";return n<=0&&(o="BCE",n=1-n),new sn(this,o,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Wd(W4,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),nw(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 CM(e){switch(e){case"buddhist":return new lM;case"ethiopic":return new my;case"ethioaa":return new DM;case"coptic":return new EM;case"hebrew":return new wM;case"indian":return new fM;case"islamic-civil":return new py;case"islamic-tbla":return new hM;case"islamic-umalqura":return new gM;case"japanese":return new sM;case"persian":return new dM;case"roc":return new cM;case"gregory":default:return new rr}}let Rh=new Map;class Hr{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),i=this.formatter.formatToParts(n);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return TM()&&(this.resolvedHourCycle||(this.resolvedHourCycle=PM(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=rw(t,n),this.options=n}}const SM={true:{ja:"h11"},false:{}};function rw(e,t={}){if(typeof t.hour12=="boolean"&&AM()){t={...t};let i=SM[String(t.hour12)][e.split("-")[0]],o=t.hour12?"h12":"h23";t.hourCycle=i??o,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(Rh.has(n))return Rh.get(n);let r=new Intl.DateTimeFormat(e,t);return Rh.set(n,r),r}let Oh=null;function AM(){return Oh==null&&(Oh=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),Oh}let Fh=null;function TM(){return Fh==null&&(Fh=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Fh}function PM(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=rw(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(o=>o.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(o=>o.type==="hour").value,10);if(r===0&&i===23)return"h23";if(r===24&&i===23)return"h24";if(r===0&&i===11)return"h11";if(r===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}function Ci(e){e=fx(e??{},_M);let{locale:t}=Wn();return b.useMemo(()=>new Hr(t,e),[t,e])}function _M(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 Mh=new Map,Zm=!1;try{Zm=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Hd=!1;try{Hd=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const iw={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class ow{format(t){let n="";if(!Zm&&this.options.signDisplay!=null?n=OM(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Hd){var r;let{unit:i,unitDisplay:o="short",locale:u}=this.resolvedOptions();if(!i)return n;let l=(r=iw[i])===null||r===void 0?void 0:r[o];n+=l[u]||l.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(n);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Zm&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Hd&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=RM(t,n),this.options=n}}function RM(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Hd){var r;let{unit:u,unitDisplay:l="short"}=t;if(!u)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=iw[u])===null||r===void 0)&&r[l]))throw new Error(`Unsupported unit ${u} with unitDisplay = ${l}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((u,l)=>u[0]<l[0]?-1:1).join():"");if(Mh.has(i))return Mh.get(i);let o=new Intl.NumberFormat(e,t);return Mh.set(i,o),o}function OM(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=e.format(-n),o=e.format(n),u=i.replace(o,"").replace(/\u200e|\u061C/,"");return[...u].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(o,"!!!").replace(u,"+").replace("!!!",o)}else return e.format(n)}}const FM=new RegExp("^.*\\(.*\\).*$"),MM=["latn","arab","hanidec","deva","beng"];class aw{parse(t){return kh(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return kh(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return kh(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const H4=new Map;function kh(e,t,n){let r=G4(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of MM)if(i!==r.options.numberingSystem){let o=G4(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(o.isValidPartialNumber(n))return o}}return r}function G4(e,t){let n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():""),r=H4.get(n);return r||(r=new kM(e,t),H4.set(n,r)),r}class kM{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=td(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 u=n.indexOf("-");n=n.replace("-","");let l=n.indexOf(".");l===-1&&(l=n.length),n=n.replace(".",""),l-2===0?n=`0.${n}`:l-2===-1?n=`0.0${n}`:l-2===-2?n="0.00":n=`${n.slice(0,l-2)}.${n.slice(l-2)}`,u>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var i,o;let u={...this.options,style:"decimal",minimumFractionDigits:Math.min(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)+2,20),maximumFractionDigits:Math.min(((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)+2,20)};return new aw(this.locale,u).parse(new ow(this.locale,u).format(r))}return this.options.currencySign==="accounting"&&FM.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=td(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=td(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=td(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=IM(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 q4=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),BM=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function IM(e,t,n,r){var i,o,u,l;let c=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),d=c.formatToParts(-10000.111),f=c.formatToParts(10000.111),h=BM.map(O=>c.formatToParts(O));var g;let m=(g=(i=d.find(O=>O.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&g!==void 0?g:"-",$=(o=f.find(O=>O.type==="plusSign"))===null||o===void 0?void 0:o.value;!$&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&($="+");let C=(u=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(O=>O.type==="decimal"))===null||u===void 0?void 0:u.value,x=(l=d.find(O=>O.type==="group"))===null||l===void 0?void 0:l.value,v=d.filter(O=>!q4.has(O.type)).map(O=>Y4(O.value)),D=h.flatMap(O=>O.filter(M=>!q4.has(M.type)).map(M=>Y4(M.value))),P=[...new Set([...v,...D])].sort((O,M)=>M.length-O.length),E=P.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${P.join("|")}|[\\p{White_Space}]`,"gu"),T=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),V=new Map(T.map((O,M)=>[O,M])),S=new RegExp(`[${T.join("")}]`,"g");return{minusSign:m,plusSign:$,decimal:C,group:x,literals:E,numeral:S,index:O=>String(V.get(O))}}function td(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function Y4(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function LM(e={}){let{locale:t}=Wn();return b.useMemo(()=>new ow(t,e),[t,e])}let Bh=new Map;function uw(e){let{locale:t}=Wn(),n=t+(e?Object.entries(e).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(Bh.has(n))return Bh.get(n);let r=new Intl.Collator(t,e);return Bh.set(n,r),r}function sw(e){let t=uw({usage:"search",...e}),n=b.useCallback((o,u)=>u.length===0?!0:(o=o.normalize("NFC"),u=u.normalize("NFC"),t.compare(o.slice(0,u.length),u)===0),[t]),r=b.useCallback((o,u)=>u.length===0?!0:(o=o.normalize("NFC"),u=u.normalize("NFC"),t.compare(o.slice(-u.length),u)===0),[t]),i=b.useCallback((o,u)=>{if(u.length===0)return!0;o=o.normalize("NFC"),u=u.normalize("NFC");let l=0,c=u.length;for(;l+c<=o.length;l++){let d=o.slice(l,l+c);if(t.compare(u,d)===0)return!0}return!1},[t]);return b.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function VM(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:u,onPressUp:l,onPressChange:c,preventFocusOnPress:d,allowFocusWhenDisabled:f,onClick:h,href:g,target:m,rel:$,type:w="button"}=e,C;n==="button"?C={type:w,disabled:r}:C={role:"button",tabIndex:r?void 0:0,href:n==="a"&&!r?g:void 0,target:n==="a"?m:void 0,type:n==="input"?w:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?$:void 0};let{pressProps:x,isPressed:v}=Fl({onPressStart:o,onPressEnd:u,onPressChange:c,onPress:i,onPressUp:l,isDisabled:r,preventFocusOnPress:d,ref:t}),{focusableProps:D}=iy(e,t);f&&(D.tabIndex=r?-1:D.tabIndex);let P=$t(D,x,io(e,{labelable:!0}));return{isPressed:v,buttonProps:$t(C,P,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:E=>{h&&(h(E),console.warn("onClick is deprecated, please use onPress"))}})}}var lw={};lw={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 cw={};cw={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 dw={};dw={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 fw={};fw={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 pw={};pw={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 hw={};hw={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 mw={};mw={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 gw={};gw={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 yw={};yw={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 vw={};vw={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 bw={};bw={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 $w={};$w={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 xw={};xw={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 ww={};ww={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 Dw={};Dw={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 Ew={};Ew={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 Cw={};Cw={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 Sw={};Sw={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 Aw={};Aw={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 Tw={};Tw={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 Pw={};Pw={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 _w={};_w={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 Rw={};Rw={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 Ow={};Ow={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 Fw={};Fw={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 Mw={};Mw={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 kw={};kw={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 Bw={};Bw={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 Iw={};Iw={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 Lw={};Lw={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 Vw={};Vw={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 Nw={};Nw={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 jw={};jw={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 Kw={};Kw={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 Ll={};Ll={"ar-AE":lw,"bg-BG":cw,"cs-CZ":dw,"da-DK":fw,"de-DE":pw,"el-GR":hw,"en-US":mw,"es-ES":gw,"et-EE":yw,"fi-FI":vw,"fr-FR":bw,"he-IL":$w,"hr-HR":xw,"hu-HU":ww,"it-IT":Dw,"ja-JP":Ew,"ko-KR":Cw,"lt-LT":Sw,"lv-LV":Aw,"nb-NO":Tw,"nl-NL":Pw,"pl-PL":_w,"pt-BR":Rw,"pt-PT":Ow,"ro-RO":Fw,"ru-RU":Mw,"sk-SK":kw,"sl-SI":Bw,"sr-SP":Iw,"sv-SE":Lw,"tr-TR":Vw,"uk-UA":Nw,"zh-CN":jw,"zh-TW":Kw};function Uw(e){return e&&e.__esModule?e.default:e}const gy=new WeakMap;function yl(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function NM(e){let t=Mi(Uw(Ll),"@react-aria/calendar"),n,r;var i;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:n=r=(i=e.value)!==null&&i!==void 0?i:void 0;let o=Ci({weekday:"long",month:"long",year:"numeric",day:"numeric",era:yl(n)||yl(r),timeZone:e.timeZone}),u="anchorDate"in e?e.anchorDate:null;return b.useMemo(()=>{if(!u&&n&&r)if(gn(n,r)){let l=o.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:l})}else{let l=Qm(o,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:l})}return""},[n,r,u,e.timeZone,t,o])}function Jm(e,t,n,r){let i=Mi(Uw(Ll),"@react-aria/calendar"),o=yl(e)||yl(t),u=Ci({month:"long",year:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n}),l=Ci({month:"long",year:"numeric",day:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n});return b.useMemo(()=>{if(gn(e,Bl(e))){if(gn(t,Um(e)))return u.format(e.toDate(n));if(gn(t,Um(t)))return r?Qm(u,i,e,t,n):u.formatRange(e.toDate(n),t.toDate(n))}return r?Qm(l,i,e,t,n):l.formatRange(e.toDate(n),t.toDate(n))},[e,t,u,l,i,n,r])}function Qm(e,t,n,r,i){let o=e.formatRangeToParts(n.toDate(i),r.toDate(i)),u=-1;for(let d=0;d<o.length;d++){let f=o[d];if(f.source==="shared"&&f.type==="literal")u=d;else if(f.source==="endRange")break}let l="",c="";for(let d=0;d<o.length;d++)d<u?l+=o[d].value:d>u&&(c+=o[d].value);return t.format("dateRange",{startDate:l,endDate:c})}const zw=7e3;let jr=null;function Ou(e,t="assertive",n=zw){jr?jr.announce(e,t,n):(jr=new KM,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?jr.announce(e,t,n):setTimeout(()=>{jr!=null&&jr.isAttached()&&(jr==null||jr.announce(e,t,n))},100))}function jM(e){jr&&jr.clear(e)}class KM{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=zw){var i,o;if(!this.node)return;let u=document.createElement("div");typeof t=="object"?(u.setAttribute("role","img"),u.setAttribute("aria-labelledby",t["aria-labelledby"])):u.textContent=t,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(u):(o=this.politeLog)===null||o===void 0||o.appendChild(u),t!==""&&setTimeout(()=>{u.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 UM(e){return e&&e.__esModule?e.default:e}function Ww(e,t){let n=Mi(UM(Ll),"@react-aria/calendar"),r=io(e),i=Jm(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),o=Jm(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);l4(()=>{t.isFocused||Ou(o)},[o]);let u=NM(t);l4(()=>{u&&Ou(u,"polite",4e3)},[u]);let l=Uu([!!e.errorMessage,e.isInvalid,e.validationState]);gy.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:l,selectedDateDescription:u});let[c,d]=b.useState(!1),f=e.isDisabled||t.isNextVisibleRangeInvalid();f&&c&&(d(!1),t.setFocused(!0));let[h,g]=b.useState(!1),m=e.isDisabled||t.isPreviousVisibleRangeInvalid();m&&h&&(g(!1),t.setFocused(!0));let $=zu({id:e.id,"aria-label":[e["aria-label"],o].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:$t(r,$,{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:f,onFocusChange:d},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:m,onFocusChange:g},errorMessageProps:{id:l},title:i}}function zM(e,t){return Ww(e,t)}function WM(e,t,n){let r=Ww(e,t),i=b.useRef(!1),o=b.useRef(typeof window<"u"?window:null);return Bo(o,"pointerdown",l=>{i.current=l.width===0&&l.height===0}),Bo(o,"pointerup",l=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let c=l.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(c)||!c.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=l=>{n.current&&(!l.relatedTarget||!n.current.contains(l.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},Bo(n,"touchmove",l=>{t.isDragging&&l.preventDefault()},{passive:!1,capture:!0}),r}function HM(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end}=e,{direction:i}=Wn(),o=m=>{switch(m.key){case"Enter":case" ":m.preventDefault(),t.selectFocusedDate();break;case"PageUp":m.preventDefault(),m.stopPropagation(),t.focusPreviousSection(m.shiftKey);break;case"PageDown":m.preventDefault(),m.stopPropagation(),t.focusNextSection(m.shiftKey);break;case"End":m.preventDefault(),m.stopPropagation(),t.focusSectionEnd();break;case"Home":m.preventDefault(),m.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":m.preventDefault(),m.stopPropagation(),i==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":m.preventDefault(),m.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":m.preventDefault(),m.stopPropagation(),i==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":m.preventDefault(),m.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(m.preventDefault(),t.setAnchorDate(null));break}},u=Jm(n,r,t.timeZone,!0),{ariaLabel:l,ariaLabelledBy:c}=gy.get(t),d=zu({"aria-label":[l,u].filter(Boolean).join(", "),"aria-labelledby":c}),f=Ci({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:h}=Wn(),g=b.useMemo(()=>{let m=hl(Of(t.timeZone),h);return[...new Array(7).keys()].map($=>{let C=m.add({days:$}).toDate(t.timeZone);return f.format(C)})},[h,t.timeZone,f]);return{gridProps:$t(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 GM(e){return e&&e.__esModule?e.default:e}function qM(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:o,selectedDateDescription:u}=gy.get(t),l=Mi(GM(Ll),"@react-aria/calendar"),c=Ci({weekday:"long",day:"numeric",month:"long",year:"numeric",era:yl(r),timeZone:t.timeZone}),d=t.isSelected(r),f=t.isCellFocused(r);i=i||t.isCellDisabled(r);let h=t.isCellUnavailable(r),g=!i&&!h,m=t.isValueInvalid&&!!("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&gn(t.value,r));m&&(d=!0),r=fx(r,Km);let $=b.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),w=Ox(r,t.timeZone),C=b.useMemo(()=>{let M="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(gn(r,t.value.start)||gn(r,t.value.end))&&(M=u+", "),M+=c.format($),w?M=l.format(d?"todayDateSelected":"todayDate",{date:M}):d&&(M=l.format("dateSelected",{date:M})),t.minValue&&gn(r,t.minValue)?M+=", "+l.format("minimumDate"):t.maxValue&&gn(r,t.maxValue)&&(M+=", "+l.format("maximumDate")),M},[c,$,l,d,w,r,t,u]),x="";"anchorDate"in t&&f&&!t.isReadOnly&&g&&(t.anchorDate?x=l.format("finishRangeSelectionPrompt"):x=l.format("startRangeSelectionPrompt"));let v=Rl(x),D=b.useRef(!1),P=b.useRef(!1),E=b.useRef(void 0),{pressProps:T,isPressed:V}=Fl({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!g||t.isReadOnly,onPressStart(M){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(M.pointerType==="mouse"||M.pointerType==="touch")){if(t.highlightedRange&&!m){if(gn(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),P.current=!0;return}else if(gn(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),P.current=!0;return}}let G=()=>{t.setDragging(!0),E.current=void 0,t.selectDate(r),t.setFocusedDate(r),D.current=!0};M.pointerType==="touch"?E.current=setTimeout(G,200):G()}},onPressEnd(){P.current=!1,D.current=!1,clearTimeout(E.current),E.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(M){if(!t.isReadOnly&&("anchorDate"in t&&E.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(P.current)t.setAnchorDate(r);else if(t.anchorDate&&!D.current)t.selectDate(r),t.setFocusedDate(r);else if(M.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let G=r.add({days:1});t.isInvalid(G)&&(G=r.subtract({days:1})),t.isInvalid(G)||t.setFocusedDate(G)}else M.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),S;i||(S=gn(r,t.focusedDate)?0:-1),b.useEffect(()=>{f&&n.current&&(oi(n.current),Ld()!=="pointer"&&document.activeElement===n.current&&Bd(n.current,{containingElement:Tf(n.current)}))},[f,n]);let z=Ci({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),O=b.useMemo(()=>z.formatToParts($).find(M=>M.type==="day").value,[z,$]);return{cellProps:{role:"gridcell","aria-disabled":!g||void 0,"aria-selected":d||void 0,"aria-invalid":m||void 0},buttonProps:$t(T,{onFocus(){i||t.setFocusedDate(r)},tabIndex:S,role:"button","aria-disabled":!g||void 0,"aria-label":C,"aria-invalid":m||void 0,"aria-describedby":[m?o:void 0,v["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(M){"highlightDate"in t&&(M.pointerType!=="touch"||t.isDragging)&&g&&t.highlightDate(r)},onPointerDown(M){"releasePointerCapture"in M.target&&M.target.releasePointerCapture(M.pointerId)},onContextMenu(M){M.preventDefault()}}),isPressed:V,isFocused:f,isSelected:d,isDisabled:i,isUnavailable:h,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:m,formattedDate:O}}const Mf={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Hw={...Mf,customError:!0,valid:!1},fa={isInvalid:!1,validationDetails:Mf,validationErrors:[]},YM=b.createContext({}),Gu="__formValidationState"+Date.now();function Vl(e){if(e[Gu]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}=e[Gu];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}}return ZM(e)}function ZM(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:o,validate:u,validationBehavior:l="aria"}=e;n&&(t||(t=n==="invalid"));let c=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:Hw}:null,d=b.useMemo(()=>{if(!u||i==null)return null;let O=JM(u,i);return Z4(O)},[u,i]);o!=null&&o.validationDetails.valid&&(o=void 0);let f=b.useContext(YM),h=b.useMemo(()=>r?Array.isArray(r)?r.flatMap(O=>Xm(f[O])):Xm(f[r]):[],[f,r]),[g,m]=b.useState(f),[$,w]=b.useState(!1);f!==g&&(m(f),w(!1));let C=b.useMemo(()=>Z4($?[]:h),[$,h]),x=b.useRef(fa),[v,D]=b.useState(fa),P=b.useRef(fa),E=()=>{if(!T)return;V(!1);let O=d||o||x.current;Ih(O,P.current)||(P.current=O,D(O))},[T,V]=b.useState(!1);return b.useEffect(E),{realtimeValidation:c||C||d||o||fa,displayValidation:l==="native"?c||C||v:c||C||d||o||v,updateValidation(O){l==="aria"&&!Ih(v,O)?D(O):x.current=O},resetValidation(){let O=fa;Ih(O,P.current)||(P.current=O,D(O)),l==="native"&&V(!1),w(!0)},commitValidation(){l==="native"&&V(!0),w(!0)}}}function Xm(e){return e?Array.isArray(e)?e:[e]:[]}function JM(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Xm(n)}return[]}function Z4(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:Hw}:null}function Ih(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 Gd(...e){let t=new Set,n=!1,r={...Mf};for(let u of e){var i,o;for(let l of u.validationErrors)t.add(l);n||(n=u.isInvalid);for(let l in r)(i=r)[o=l]||(i[o]=u.validationDetails[l])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function Gw(e,t,n){let{validationBehavior:r,focus:i}=e;Kt(()=>{if(r==="native"&&(n!=null&&n.current)){let c=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(c),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(XM(n.current))}});let o=yn(()=>{t.resetValidation()}),u=yn(c=>{var d;t.displayValidation.isInvalid||t.commitValidation();let f=n==null||(d=n.current)===null||d===void 0?void 0:d.form;if(!c.defaultPrevented&&n&&f&&ek(f)===n.current){var h;i?i():(h=n.current)===null||h===void 0||h.focus(),xx("keyboard")}c.preventDefault()}),l=yn(()=>{t.commitValidation()});b.useEffect(()=>{let c=n==null?void 0:n.current;if(!c)return;let d=c.form;return c.addEventListener("invalid",u),c.addEventListener("change",l),d==null||d.addEventListener("reset",o),()=>{c.removeEventListener("invalid",u),c.removeEventListener("change",l),d==null||d.removeEventListener("reset",o)}},[n,u,l,o,r])}function QM(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 XM(e){return{isInvalid:!e.validity.valid,validationDetails:QM(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function ek(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function kf(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=e;t=Er(t);let u=Er(),l={};n?(r=r?`${u} ${r}`:u,l={id:u,htmlFor:o==="label"?t:void 0}):!r&&!i&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let c=zu({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:l,fieldProps:c}}function Bf(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:o,fieldProps:u}=kf(e),l=Uu([!!t,!!n,r,i]),c=Uu([!!t,!!n,r,i]);return u=$t(u,{"aria-describedby":[l,c,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:u,descriptionProps:{id:l},errorMessageProps:{id:c}}}const tk=0,nk=100,rk=1;function ik(e){const{isDisabled:t=!1,minValue:n=tk,maxValue:r=nk,numberFormatter:i,step:o=rk,orientation:u="horizontal"}=e;let l=b.useMemo(()=>{let U=(r-n)/10;return U=Is(U,0,U+o,o),Math.max(U,o)},[o,r,n]),c=b.useCallback(U=>U==null?void 0:U.map((re,oe)=>{let fe=oe===0?n:U[oe-1],ie=oe===U.length-1?r:U[oe+1];return Is(re,fe,ie,o)}),[n,r,o]),d=b.useMemo(()=>c(Q4(e.value)),[e.value]),f=b.useMemo(()=>{var U;return c((U=Q4(e.defaultValue))!==null&&U!==void 0?U:[n])},[e.defaultValue,n]),h=X4(e.value,e.defaultValue,e.onChange),g=X4(e.value,e.defaultValue,e.onChangeEnd);const[m,$]=Cr(d,f,h),[w,C]=b.useState(new Array(m.length).fill(!1)),x=b.useRef(new Array(m.length).fill(!0)),[v,D]=b.useState(void 0),P=b.useRef(m),E=b.useRef(w);let T=U=>{P.current=U,$(U)},V=U=>{E.current=U,C(U)};function S(U){return(U-n)/(r-n)}function z(U){return U===0?n:m[U-1]}function O(U){return U===m.length-1?r:m[U+1]}function M(U){return x.current[U]}function G(U,re){x.current[U]=re}function K(U,re){if(t||!M(U))return;const oe=z(U),fe=O(U);re=Is(re,oe,fe,o);let ie=J4(P.current,U,re);T(ie)}function W(U,re){if(t||!M(U))return;re&&(P.current=m);const oe=E.current[U];E.current=J4(E.current,U,re),V(E.current),oe&&!E.current.some(Boolean)&&g(P.current)}function j(U){return i.format(U)}function I(U,re){K(U,B(re))}function R(U){return Math.round((U-n)/o)*o+n}function B(U){const re=U*(r-n)+n;return Wu(R(re),n,r)}function J(U,re=1){let oe=Math.max(re,o);K(U,Is(m[U]+oe,n,r,o))}function L(U,re=1){let oe=Math.max(re,o);K(U,Is(m[U]-oe,n,r,o))}return{values:m,getThumbValue:U=>m[U],setThumbValue:K,setThumbPercent:I,isThumbDragging:U=>w[U],setThumbDragging:W,focusedThumb:v,setFocusedThumb:D,getThumbPercent:U=>S(m[U]),getValuePercent:S,getThumbValueLabel:U=>j(m[U]),getFormattedValue:j,getThumbMinValue:z,getThumbMaxValue:O,getPercentValue:B,isThumbEditable:M,setThumbEditable:G,incrementThumb:J,decrementThumb:L,step:o,pageSize:l,orientation:u,isDisabled:t}}function J4(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function Q4(e){if(e!=null)return Array.isArray(e)?e:[e]}function X4(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}const e1={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 ok(e={}){let{style:t,isFocusable:n}=e,[r,i]=b.useState(!1),{focusWithinProps:o}=is({isDisabled:!n,onFocusWithinChange:l=>i(l)}),u=b.useMemo(()=>r?t:t?{...e1,...t}:e1,[r]);return{visuallyHiddenProps:{...o,style:u}}}function ak(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...o}=e,{visuallyHiddenProps:u}=ok(e);return b.createElement(n,$t(o,u),t)}const yy=new WeakMap;function eg(e,t){let n=yy.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function uk(e,t,n){let{labelProps:r,fieldProps:i}=kf(e),o=e.orientation==="vertical";var u;yy.set(t,{id:(u=r.id)!==null&&u!==void 0?u:i.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:l}=Wn(),{addGlobalListener:c,removeGlobalListener:d}=rs();const f=b.useRef(null),h=l==="rtl",g=b.useRef(null),{moveProps:m}=Dx({onMoveStart(){g.current=null},onMove({deltaX:x,deltaY:v}){if(!n.current)return;let{height:D,width:P}=n.current.getBoundingClientRect(),E=o?D:P;g.current==null&&f.current!=null&&(g.current=t.getThumbPercent(f.current)*E);let T=o?v:x;if((o||h)&&(T=-T),g.current+=T,f.current!=null&&n.current){const V=Wu(g.current/E,0,1);t.setThumbPercent(f.current,V)}},onMoveEnd(){f.current!=null&&(t.setThumbDragging(f.current,!1),f.current=null)}});let $=b.useRef(void 0),w=(x,v,D,P)=>{if(n.current&&!e.isDisabled&&t.values.every((E,T)=>!t.isThumbDragging(T))){let{height:E,width:T,top:V,left:S}=n.current.getBoundingClientRect(),z=o?E:T,K=((o?P:D)-(o?V:S))/z;(l==="rtl"||o)&&(K=1-K);let W=t.getPercentValue(K),j,I=t.values.findIndex(R=>W-R<0);if(I===0)j=I;else if(I===-1)j=t.values.length-1;else{let R=t.values[I-1],B=t.values[I];Math.abs(R-W)<Math.abs(B-W)?j=I-1:j=I}j>=0&&t.isThumbEditable(j)?(x.preventDefault(),f.current=j,t.setFocusedThumb(j),$.current=v,t.setThumbDragging(f.current,!0),t.setThumbValue(j,W),c(window,"mouseup",C,!1),c(window,"touchend",C,!1),c(window,"pointerup",C,!1)):f.current=null}},C=x=>{var v,D;((D=x.pointerId)!==null&&D!==void 0?D:(v=x.changedTouches)===null||v===void 0?void 0:v[0].identifier)===$.current&&(f.current!=null&&(t.setThumbDragging(f.current,!1),f.current=null),d(window,"mouseup",C,!1),d(window,"touchend",C,!1),d(window,"pointerup",C,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var x;(x=document.getElementById(eg(t,0)))===null||x===void 0||x.focus(),xx("keyboard")}),{labelProps:r,groupProps:{role:"group",...i},trackProps:$t({onMouseDown(x){x.button!==0||x.altKey||x.ctrlKey||x.metaKey||w(x,void 0,x.clientX,x.clientY)},onPointerDown(x){x.pointerType==="mouse"&&(x.button!==0||x.altKey||x.ctrlKey||x.metaKey)||w(x,x.pointerId,x.clientX,x.clientY)},onTouchStart(x){w(x,x.changedTouches[0].identifier,x.changedTouches[0].clientX,x.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},m),outputProps:{htmlFor:t.values.map((x,v)=>eg(t,v)).join(" "),"aria-live":"off"}}}function sk(e,t){let{index:n=0,isRequired:r,validationState:i,isInvalid:o,trackRef:u,inputRef:l,orientation:c=t.orientation,name:d}=e,f=e.isDisabled||t.isDisabled,h=c==="vertical",{direction:g}=Wn(),{addGlobalListener:m,removeGlobalListener:$}=rs(),w=yy.get(t);var C;const{labelProps:x,fieldProps:v}=kf({...e,id:eg(t,n),"aria-labelledby":`${w.id} ${(C=e["aria-labelledby"])!==null&&C!==void 0?C:""}`.trim()}),D=t.values[n],P=b.useCallback(()=>{l.current&&oi(l.current)},[l]),E=t.focusedThumb===n;b.useEffect(()=>{E&&P()},[E,P]);let T=g==="rtl",V=b.useRef(null),{keyboardProps:S}=wx({onKeyDown(I){let{getThumbMaxValue:R,getThumbMinValue:B,decrementThumb:J,incrementThumb:L,setThumbValue:U,setThumbDragging:re,pageSize:oe}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(I.key)){I.continuePropagation();return}switch(I.preventDefault(),re(n,!0),I.key){case"PageUp":L(n,oe);break;case"PageDown":J(n,oe);break;case"Home":U(n,B(n));break;case"End":U(n,R(n));break}re(n,!1)}}),{moveProps:z}=Dx({onMoveStart(){V.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:I,deltaY:R,pointerType:B,shiftKey:J}){const{getThumbPercent:L,setThumbPercent:U,decrementThumb:re,incrementThumb:oe,step:fe,pageSize:ie}=t;if(!u.current)return;let{width:Ee,height:$e}=u.current.getBoundingClientRect(),ne=h?$e:Ee;if(V.current==null&&(V.current=L(n)*ne),B==="keyboard")I>0&&T||I<0&&!T||R>0?re(n,J?ie:fe):oe(n,J?ie:fe);else{let ye=h?R:I;(h||T)&&(ye=-ye),V.current+=ye,U(n,Wu(V.current/ne,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!f);const{focusableProps:O}=iy($t(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),l);let M=b.useRef(void 0),G=I=>{P(),M.current=I,t.setThumbDragging(n,!0),m(window,"mouseup",K,!1),m(window,"touchend",K,!1),m(window,"pointerup",K,!1)},K=I=>{var R,B;((B=I.pointerId)!==null&&B!==void 0?B:(R=I.changedTouches)===null||R===void 0?void 0:R[0].identifier)===M.current&&(P(),t.setThumbDragging(n,!1),$(window,"mouseup",K,!1),$(window,"touchend",K,!1),$(window,"pointerup",K,!1))},W=t.getThumbPercent(n);(h||g==="rtl")&&(W=1-W);let j=f?{}:$t(S,z,{onMouseDown:I=>{I.button!==0||I.altKey||I.ctrlKey||I.metaKey||G()},onPointerDown:I=>{I.button!==0||I.altKey||I.ctrlKey||I.metaKey||G(I.pointerId)},onTouchStart:I=>{G(I.changedTouches[0].identifier)}});return Xg(l,D,I=>{t.setThumbValue(n,I)}),{inputProps:$t(O,v,{type:"range",tabIndex:f?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:D,name:d,disabled:f,"aria-orientation":c,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":o||i==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[w["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[w["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:I=>{t.setThumbValue(n,parseFloat(I.target.value))}}),thumbProps:{...j,style:{position:"absolute",[h?"top":"left"]:`${W*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:x,isDragging:t.isThumbDragging(n),isDisabled:f,isFocused:E}}function lk(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:o=!1,type:u="text",validationBehavior:l="aria"}=e,[c,d]=Cr(e.value,e.defaultValue||"",e.onChange),{focusableProps:f}=iy(e,t),h=Vl({...e,value:c}),{isInvalid:g,validationErrors:m,validationDetails:$}=h.displayValidation,{labelProps:w,fieldProps:C,descriptionProps:x,errorMessageProps:v}=Bf({...e,isInvalid:g,errorMessage:e.errorMessage||m}),D=io(e,{labelable:!0});const P={type:u,pattern:e.pattern};return Xg(t,c,d),Gw(e,h,t),b.useEffect(()=>{if(t.current instanceof jo(t.current).HTMLTextAreaElement){let E=t.current;Object.defineProperty(E,"defaultValue",{get:()=>E.value,set:()=>{},configurable:!0})}},[t]),{labelProps:w,inputProps:$t(D,n==="input"?P:void 0,{disabled:r,readOnly:o,required:i&&l==="native","aria-required":i&&l==="aria"||void 0,"aria-invalid":g||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:c,onChange:E=>d(E.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...f,...C}),descriptionProps:x,errorMessageProps:v,isInvalid:g,validationErrors:m,validationDetails:$}}var qw={};qw={Empty:"فارغ"};var Yw={};Yw={Empty:"Изпразни"};var Zw={};Zw={Empty:"Prázdné"};var Jw={};Jw={Empty:"Tom"};var Qw={};Qw={Empty:"Leer"};var Xw={};Xw={Empty:"Άδειο"};var eD={};eD={Empty:"Empty"};var tD={};tD={Empty:"Vacío"};var nD={};nD={Empty:"Tühjenda"};var rD={};rD={Empty:"Tyhjä"};var iD={};iD={Empty:"Vide"};var oD={};oD={Empty:"ריק"};var aD={};aD={Empty:"Prazno"};var uD={};uD={Empty:"Üres"};var sD={};sD={Empty:"Vuoto"};var lD={};lD={Empty:"空"};var cD={};cD={Empty:"비어 있음"};var dD={};dD={Empty:"Tuščias"};var fD={};fD={Empty:"Tukšs"};var pD={};pD={Empty:"Tom"};var hD={};hD={Empty:"Leeg"};var mD={};mD={Empty:"Pusty"};var gD={};gD={Empty:"Vazio"};var yD={};yD={Empty:"Vazio"};var vD={};vD={Empty:"Gol"};var bD={};bD={Empty:"Не заполнено"};var $D={};$D={Empty:"Prázdne"};var xD={};xD={Empty:"Prazen"};var wD={};wD={Empty:"Prazno"};var DD={};DD={Empty:"Tomt"};var ED={};ED={Empty:"Boş"};var CD={};CD={Empty:"Пусто"};var SD={};SD={Empty:"空"};var AD={};AD={Empty:"空白"};var TD={};TD={"ar-AE":qw,"bg-BG":Yw,"cs-CZ":Zw,"da-DK":Jw,"de-DE":Qw,"el-GR":Xw,"en-US":eD,"es-ES":tD,"et-EE":nD,"fi-FI":rD,"fr-FR":iD,"he-IL":oD,"hr-HR":aD,"hu-HU":uD,"it-IT":sD,"ja-JP":lD,"ko-KR":cD,"lt-LT":dD,"lv-LV":fD,"nb-NO":pD,"nl-NL":hD,"pl-PL":mD,"pt-BR":gD,"pt-PT":yD,"ro-RO":vD,"ru-RU":bD,"sk-SK":$D,"sl-SI":xD,"sr-SP":wD,"sv-SE":DD,"tr-TR":ED,"uk-UA":CD,"zh-CN":SD,"zh-TW":AD};function ck(e){return e&&e.__esModule?e.default:e}function dk(e){const t=b.useRef(void 0);let{value:n,textValue:r,minValue:i,maxValue:o,isDisabled:u,isReadOnly:l,isRequired:c,onIncrement:d,onIncrementPage:f,onDecrement:h,onDecrementPage:g,onDecrementToMin:m,onIncrementToMax:$}=e;const w=Mi(ck(TD),"@react-aria/spinbutton"),C=()=>clearTimeout(t.current);b.useEffect(()=>()=>C(),[]);let x=M=>{if(!(M.ctrlKey||M.metaKey||M.shiftKey||M.altKey||l))switch(M.key){case"PageUp":if(f){M.preventDefault(),f==null||f();break}case"ArrowUp":case"Up":d&&(M.preventDefault(),d==null||d());break;case"PageDown":if(g){M.preventDefault(),g==null||g();break}case"ArrowDown":case"Down":h&&(M.preventDefault(),h==null||h());break;case"Home":m&&(M.preventDefault(),m==null||m());break;case"End":$&&(M.preventDefault(),$==null||$());break}},v=b.useRef(!1),D=()=>{v.current=!0},P=()=>{v.current=!1},E=r===""?w.format("Empty"):(r||`${n}`).replace("-","−");b.useEffect(()=>{v.current&&(jM("assertive"),Ou(E,"assertive"))},[E]);const T=yn(M=>{C(),d==null||d(),t.current=window.setTimeout(()=>{(o===void 0||isNaN(o)||n===void 0||isNaN(n)||n<o)&&T(60)},M)}),V=yn(M=>{C(),h==null||h(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&V(60)},M)});let S=M=>{M.preventDefault()},{addGlobalListener:z,removeAllGlobalListeners:O}=rs();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":E,"aria-valuemin":i,"aria-valuemax":o,"aria-disabled":u||void 0,"aria-readonly":l||void 0,"aria-required":c||void 0,onKeyDown:x,onFocus:D,onBlur:P},incrementButtonProps:{onPressStart:()=>{T(400),z(window,"contextmenu",S)},onPressEnd:()=>{C(),O()},onFocus:D,onBlur:P},decrementButtonProps:{onPressStart:()=>{V(400),z(window,"contextmenu",S)},onPressEnd:()=>{C(),O()},onFocus:D,onBlur:P}}}var PD={};PD={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 RD={};RD={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 OD={};OD={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 FD={};FD={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 MD={};MD={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 kD={};kD={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 BD={};BD={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 ID={};ID={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 LD={};LD={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 VD={};VD={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 ND={};ND={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 jD={};jD={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 KD={};KD={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 UD={};UD={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 zD={};zD={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 WD={};WD={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 HD={};HD={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 GD={};GD={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 qD={};qD={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 YD={};YD={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 ZD={};ZD={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 JD={};JD={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 QD={};QD={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 XD={};XD={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 eE={};eE={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 tE={};tE={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 nE={};nE={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 rE={};rE={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 iE={};iE={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 oE={};oE={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 aE={};aE={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 uE={};uE={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 sE={};sE={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 lE={};lE={"ar-AE":PD,"bg-BG":_D,"cs-CZ":RD,"da-DK":OD,"de-DE":FD,"el-GR":MD,"en-US":kD,"es-ES":BD,"et-EE":ID,"fi-FI":LD,"fr-FR":VD,"he-IL":ND,"hr-HR":jD,"hu-HU":KD,"it-IT":UD,"ja-JP":zD,"ko-KR":WD,"lt-LT":HD,"lv-LV":GD,"nb-NO":qD,"nl-NL":YD,"pl-PL":ZD,"pt-BR":JD,"pt-PT":QD,"ro-RO":XD,"ru-RU":eE,"sk-SK":tE,"sl-SI":nE,"sr-SP":rE,"sv-SE":iE,"tr-TR":oE,"uk-UA":aE,"zh-CN":uE,"zh-TW":sE};const Si={top:"top",bottom:"top",left:"left",right:"left"},qd={top:"bottom",bottom:"top",left:"right",right:"left"},fk={top:"left",left:"top"},tg={top:"height",left:"width"},cE={width:"totalWidth",height:"totalHeight"},nd={};let wn=typeof document<"u"?window.visualViewport:null;function t1(e){let t=0,n=0,r=0,i=0,o=0,u=0,l={};var c;let d=((c=wn==null?void 0:wn.scale)!==null&&c!==void 0?c:1)>1;if(e.tagName==="BODY"){let $=document.documentElement;r=$.clientWidth,i=$.clientHeight;var f;t=(f=wn==null?void 0:wn.width)!==null&&f!==void 0?f:r;var h;n=(h=wn==null?void 0:wn.height)!==null&&h!==void 0?h:i,l.top=$.scrollTop||e.scrollTop,l.left=$.scrollLeft||e.scrollLeft,wn&&(o=wn.offsetTop,u=wn.offsetLeft)}else({width:t,height:n,top:o,left:u}=Fu(e)),l.top=e.scrollTop,l.left=e.scrollLeft,r=t,i=n;if(Qg()&&(e.tagName==="BODY"||e.tagName==="HTML")&&d){l.top=0,l.left=0;var g;o=(g=wn==null?void 0:wn.pageTop)!==null&&g!==void 0?g:0;var m;u=(m=wn==null?void 0:wn.pageLeft)!==null&&m!==void 0?m:0}return{width:t,height:n,totalWidth:r,totalHeight:i,scroll:l,top:o,left:u}}function pk(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function n1(e,t,n,r,i,o,u){var l;let c=(l=i.scroll[e])!==null&&l!==void 0?l:0,d=r[tg[e]],f=r.scroll[Si[e]]+o,h=d+r.scroll[Si[e]]-o,g=t-c+u[e]-r[Si[e]],m=t-c+n+u[e]-r[Si[e]];return g<f?f-g:m>h?Math.max(h-m,f-g):0}function hk(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 r1(e){if(nd[e])return nd[e];let[t,n]=e.split(" "),r=Si[t]||"right",i=fk[r];Si[n]||(n="center");let o=tg[r],u=tg[i];return nd[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:u},nd[e]}function Lh(e,t,n,r,i,o,u,l,c,d){let{placement:f,crossPlacement:h,axis:g,crossAxis:m,size:$,crossSize:w}=r,C={};var x;C[m]=(x=e[m])!==null&&x!==void 0?x:0;var v,D,P,E;h==="center"?C[m]+=(((v=e[w])!==null&&v!==void 0?v:0)-((D=n[w])!==null&&D!==void 0?D:0))/2:h!==m&&(C[m]+=((P=e[w])!==null&&P!==void 0?P:0)-((E=n[w])!==null&&E!==void 0?E:0)),C[m]+=o;const T=e[m]-n[w]+c+d,V=e[m]+e[w]-c-d;if(C[m]=Wu(C[m],T,V),f===g){const S=l?u[$]:t[cE[$]];C[qd[g]]=Math.floor(S-e[g]+i)}else C[g]=Math.floor(e[g]+e[$]+i);return C}function mk(e,t,n,r,i,o,u,l){const c=r?n.height:t[cE.height];var d;let f=e.top!=null?n.top+e.top:n.top+(c-((d=e.bottom)!==null&&d!==void 0?d:0)-u);var h,g,m,$,w,C;let x=l!=="top"?Math.max(0,t.height+t.top+((h=t.scroll.top)!==null&&h!==void 0?h:0)-f-(((g=i.top)!==null&&g!==void 0?g:0)+((m=i.bottom)!==null&&m!==void 0?m:0)+o)):Math.max(0,f+u-(t.top+(($=t.scroll.top)!==null&&$!==void 0?$:0))-(((w=i.top)!==null&&w!==void 0?w:0)+((C=i.bottom)!==null&&C!==void 0?C:0)+o));return Math.min(t.height-o*2,x)}function i1(e,t,n,r,i,o){let{placement:u,axis:l,size:c}=o;var d,f;if(u===l)return Math.max(0,n[l]-e[l]-((d=e.scroll[l])!==null&&d!==void 0?d:0)+t[l]-((f=r[l])!==null&&f!==void 0?f:0)-r[qd[l]]-i);var h;return Math.max(0,e[c]+e[l]+e.scroll[l]-t[l]-n[l]-n[c]-((h=r[l])!==null&&h!==void 0?h:0)-r[qd[l]]-i)}function gk(e,t,n,r,i,o,u,l,c,d,f,h,g,m,$,w){let C=r1(e),{size:x,crossAxis:v,crossSize:D,placement:P,crossPlacement:E}=C,T=Lh(t,l,n,C,f,h,d,g,$,w),V=f,S=i1(l,d,t,i,o+f,C);if(u&&r[x]>S){let fe=r1(`${qd[P]} ${E}`),ie=Lh(t,l,n,fe,f,h,d,g,$,w);i1(l,d,t,i,o+f,fe)>S&&(C=fe,T=ie,V=f)}let z="bottom";C.axis==="top"?C.placement==="top"?z="top":C.placement==="bottom"&&(z="bottom"):C.crossAxis==="top"&&(C.crossPlacement==="top"?z="bottom":C.crossPlacement==="bottom"&&(z="top"));let O=n1(v,T[v],n[D],l,c,o,d);T[v]+=O;let M=mk(T,l,d,g,i,o,n.height,z);m&&m<M&&(M=m),n.height=Math.min(n.height,M),T=Lh(t,l,n,C,V,h,d,g,$,w),O=n1(v,T[v],n[D],l,c,o,d),T[v]+=O;let G={},K=t[v]+.5*t[D]-T[v]-i[Si[v]];const W=$/2+w;var j,I,R,B;const J=Si[v]==="left"?((j=i.left)!==null&&j!==void 0?j:0)+((I=i.right)!==null&&I!==void 0?I:0):((R=i.top)!==null&&R!==void 0?R:0)+((B=i.bottom)!==null&&B!==void 0?B:0),L=n[D]-J-$/2-w,U=t[v]+$/2-(T[v]+i[Si[v]]),re=t[v]+t[D]-$/2-(T[v]+i[Si[v]]),oe=Wu(K,U,re);return G[v]=Wu(oe,W,L),{position:T,maxHeight:M,arrowOffsetLeft:G.left,arrowOffsetTop:G.top,placement:C.placement}}function yk(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:u,boundaryElement:l,offset:c,crossOffset:d,maxHeight:f,arrowSize:h=0,arrowBoundaryOffset:g=0}=e,m=r instanceof HTMLElement?vk(r):document.documentElement,$=m===document.documentElement;const w=window.getComputedStyle(m).position;let C=!!w&&w!=="static",x=$?Fu(n):o1(n,m);if(!$){let{marginTop:G,marginLeft:K}=window.getComputedStyle(n);x.top+=parseInt(G,10)||0,x.left+=parseInt(K,10)||0}let v=Fu(r),D=hk(r);var P,E;v.width+=((P=D.left)!==null&&P!==void 0?P:0)+((E=D.right)!==null&&E!==void 0?E:0);var T,V;v.height+=((T=D.top)!==null&&T!==void 0?T:0)+((V=D.bottom)!==null&&V!==void 0?V:0);let S=pk(i),z=t1(l),O=t1(m),M=l.tagName==="BODY"?Fu(m):o1(m,l);return m.tagName==="HTML"&&l.tagName==="BODY"&&(O.scroll.top=0,O.scroll.left=0),gk(t,x,v,S,D,o,u,z,O,M,c,d,C,f,h,g)}function Fu(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),{scrollTop:o,scrollLeft:u,clientTop:l,clientLeft:c}=document.documentElement;return{top:t+o-l,left:n+u-c,width:r,height:i}}function o1(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:i,left:o,width:u,height:l}=e.getBoundingClientRect();r={top:i,left:o,width:u,height:l}}else{r=Fu(e);let i=Fu(t),o=window.getComputedStyle(t);i.top+=(parseInt(o.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(o.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=i.top,r.left-=i.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function vk(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!a1(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!a1(t);)t=t.parentElement;return t||document.documentElement}function a1(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 dE=new WeakMap;function bk(e){let{triggerRef:t,isOpen:n,onClose:r}=e;b.useEffect(()=>{if(!n||r===null)return;let i=o=>{let u=o.target;if(!t.current||u instanceof Node&&!u.contains(t.current)||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement)return;let l=r||dE.get(t.current);l&&l()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let on=typeof document<"u"?window.visualViewport:null;function $k(e){let{direction:t}=Wn(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:o=i,placement:u="bottom",containerPadding:l=12,shouldFlip:c=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:f=0,crossOffset:h=0,shouldUpdatePosition:g=!0,isOpen:m=!0,onClose:$,maxHeight:w,arrowBoundaryOffset:C=0}=e,[x,v]=b.useState(null),D=[g,u,i.current,r.current,o.current,l,c,d,f,h,m,t,w,C,n],P=b.useRef(on==null?void 0:on.scale);b.useEffect(()=>{m&&(P.current=on==null?void 0:on.scale)},[m]);let E=b.useCallback(()=>{if(g===!1||!m||!i.current||!r.current||!d||(on==null?void 0:on.scale)!==P.current)return;let O=null;if(o.current&&o.current.contains(document.activeElement)){var M;let B=(M=document.activeElement)===null||M===void 0?void 0:M.getBoundingClientRect(),J=o.current.getBoundingClientRect();var G;if(O={type:"top",offset:((G=B==null?void 0:B.top)!==null&&G!==void 0?G:0)-J.top},O.offset>J.height/2){O.type="bottom";var K;O.offset=((K=B==null?void 0:B.bottom)!==null&&K!==void 0?K:0)-J.bottom}}let W=i.current;if(!w&&i.current){var j;W.style.top="0px",W.style.bottom="";var I;W.style.maxHeight=((I=(j=window.visualViewport)===null||j===void 0?void 0:j.height)!==null&&I!==void 0?I:window.innerHeight)+"px"}let R=yk({placement:wk(u,t),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:l,shouldFlip:c,boundaryElement:d,offset:f,crossOffset:h,maxHeight:w,arrowSize:n,arrowBoundaryOffset:C});if(R.position){if(W.style.top="",W.style.bottom="",W.style.left="",W.style.right="",Object.keys(R.position).forEach(B=>W.style[B]=R.position[B]+"px"),W.style.maxHeight=R.maxHeight!=null?R.maxHeight+"px":"",O&&document.activeElement&&o.current){let B=document.activeElement.getBoundingClientRect(),J=o.current.getBoundingClientRect(),L=B[O.type]-J[O.type];o.current.scrollTop+=L-O.offset}v(R)}},D);Kt(E,D),xk(E),c4({ref:i,onResize:E}),c4({ref:r,onResize:E});let T=b.useRef(!1);Kt(()=>{let O,M=()=>{T.current=!0,clearTimeout(O),O=setTimeout(()=>{T.current=!1},500),E()},G=()=>{T.current&&M()};return on==null||on.addEventListener("resize",M),on==null||on.addEventListener("scroll",G),()=>{on==null||on.removeEventListener("resize",M),on==null||on.removeEventListener("scroll",G)}},[E]);let V=b.useCallback(()=>{T.current||$==null||$()},[$,T]);bk({triggerRef:r,isOpen:m,onClose:$&&V});var S,z;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...x==null?void 0:x.position,maxHeight:(S=x==null?void 0:x.maxHeight)!==null&&S!==void 0?S:"100vh"}},placement:(z=x==null?void 0:x.placement)!==null&&z!==void 0?z:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:x==null?void 0:x.arrowOffsetLeft,top:x==null?void 0:x.arrowOffsetTop}},updatePosition:E}}function xk(e){Kt(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function wk(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Gi=[];function Dk(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:u=!1,shouldCloseOnInteractOutside:l}=e;b.useEffect(()=>(i&&Gi.push(t),()=>{let $=Gi.indexOf(t);$>=0&&Gi.splice($,1)}),[i,t]);let c=()=>{Gi[Gi.length-1]===t&&n&&n()},d=$=>{(!l||l($.target))&&Gi[Gi.length-1]===t&&($.stopPropagation(),$.preventDefault())},f=$=>{(!l||l($.target))&&(Gi[Gi.length-1]===t&&($.stopPropagation(),$.preventDefault()),c())},h=$=>{$.key==="Escape"&&!u&&!$.nativeEvent.isComposing&&($.stopPropagation(),$.preventDefault(),c())};sF({ref:t,onInteractOutside:o&&i?f:void 0,onInteractOutsideStart:d});let{focusWithinProps:g}=is({isDisabled:!r,onBlurWithin:$=>{!$.relatedTarget||yF($.relatedTarget)||(!l||l($.relatedTarget))&&(n==null||n())}}),m=$=>{$.target===$.currentTarget&&$.preventDefault()};return{overlayProps:{onKeyDown:h,...g},underlayProps:{onPointerDown:m}}}function Ek(e,t,n){let{type:r}=e,{isOpen:i}=t;b.useEffect(()=>{n&&n.current&&dE.set(n.current,t.close)});let o;r==="menu"?o=!0:r==="listbox"&&(o="listbox");let u=Er();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?u:void 0,onPress:t.toggle},overlayProps:{id:u}}}const Vh=typeof document<"u"&&window.visualViewport,Ck=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let rd=0,Nh;function Sk(e={}){let{isDisabled:t}=e;Kt(()=>{if(!t)return rd++,rd===1&&(_l()?Nh=Tk():Nh=Ak()),()=>{rd--,rd===0&&Nh()}},[t])}function Ak(){return Pa(Du(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Du(document.documentElement,"overflow","hidden"))}function Tk(){let e,t,n=d=>{e=Tf(d.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=Du(e,"overscrollBehavior","contain"))},r=d=>{if(!e||e===document.documentElement||e===document.body){d.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&d.preventDefault()},i=d=>{let f=d.target;s1(f)&&f!==document.activeElement&&(d.preventDefault(),l(),f.style.transform="translateY(-2000px)",f.focus(),requestAnimationFrame(()=>{f.style.transform=""})),t&&t()},o=d=>{let f=d.target;s1(f)&&(l(),f.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{f.style.transform="",Vh&&(Vh.height<window.innerHeight?requestAnimationFrame(()=>{u1(f)}):Vh.addEventListener("resize",()=>u1(f),{once:!0}))}))},u=null,l=()=>{if(u)return;let d=()=>{window.scrollTo(0,0)},f=window.pageXOffset,h=window.pageYOffset;u=Pa(Vs(window,"scroll",d),Du(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Du(document.documentElement,"overflow","hidden"),Du(document.body,"marginTop",`-${h}px`),()=>{window.scrollTo(f,h)}),window.scrollTo(0,0)},c=Pa(Vs(document,"touchstart",n,{passive:!1,capture:!0}),Vs(document,"touchmove",r,{passive:!1,capture:!0}),Vs(document,"touchend",i,{passive:!1,capture:!0}),Vs(document,"focus",o,!0));return()=>{t==null||t(),u==null||u(),c()}}function Du(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Vs(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function u1(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=Tf(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect().top,o=n.getBoundingClientRect().top;o>i+n.clientHeight&&(r.scrollTop+=o-i)}n=r.parentElement}}function s1(e){return e instanceof HTMLInputElement&&!Ck.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let Ns=new WeakMap,Vr=[];function fE(e,t=document.body){let n=new Set(e),r=new Set,i=c=>{for(let g of c.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(g);let d=g=>{if(n.has(g)||g.parentElement&&r.has(g.parentElement)&&g.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let m of n)if(g.contains(m))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},f=document.createTreeWalker(c,NodeFilter.SHOW_ELEMENT,{acceptNode:d}),h=d(c);if(h===NodeFilter.FILTER_ACCEPT&&o(c),h!==NodeFilter.FILTER_REJECT){let g=f.nextNode();for(;g!=null;)o(g),g=f.nextNode()}},o=c=>{var d;let f=(d=Ns.get(c))!==null&&d!==void 0?d:0;c.getAttribute("aria-hidden")==="true"&&f===0||(f===0&&c.setAttribute("aria-hidden","true"),r.add(c),Ns.set(c,f+1))};Vr.length&&Vr[Vr.length-1].disconnect(),i(t);let u=new MutationObserver(c=>{for(let d of c)if(!(d.type!=="childList"||d.addedNodes.length===0)&&![...n,...r].some(f=>f.contains(d.target))){for(let f of d.removedNodes)f instanceof Element&&(n.delete(f),r.delete(f));for(let f of d.addedNodes)(f instanceof HTMLElement||f instanceof SVGElement)&&(f.dataset.liveAnnouncer==="true"||f.dataset.reactAriaTopLayer==="true")?n.add(f):f instanceof Element&&i(f)}});u.observe(t,{childList:!0,subtree:!0});let l={observe(){u.observe(t,{childList:!0,subtree:!0})},disconnect(){u.disconnect()}};return Vr.push(l),()=>{u.disconnect();for(let c of r){let d=Ns.get(c);d!=null&&(d===1?(c.removeAttribute("aria-hidden"),Ns.delete(c)):Ns.set(c,d-1))}l===Vr[Vr.length-1]?(Vr.pop(),Vr.length&&Vr[Vr.length-1].observe()):Vr.splice(Vr.indexOf(l),1)}}function Pk(e,t){let{triggerRef:n,popoverRef:r,isNonModal:i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:u,...l}=e,{overlayProps:c,underlayProps:d}=Dk({isOpen:t.isOpen&&!l["data-react-aria-top-layer"],onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:u},r),{overlayProps:f,arrowProps:h,placement:g}=$k({...l,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:i?t.close:void 0});return Sk({isDisabled:i||!t.isOpen}),Kt(()=>{if(t.isOpen&&!i&&r.current)return fE([r.current])},[i,t.isOpen,r]),{popoverProps:$t(c,f),arrowProps:h,underlayProps:d,placement:g}}const _k=b.createContext({});function Rk(){var e;return(e=b.useContext(_k))!==null&&e!==void 0?e:{}}const pE=b.createContext(null);function Ok(e){let t=Zg(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,o]=b.useState(!1),u=b.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:l}=Rk();if(!e.portalContainer&&l&&(n=l()),!n)return null;let c=e.children;return e.disableFocusManagement||(c=b.createElement(fF,{restoreFocus:!0,contain:i&&!r},c)),c=b.createElement(pE.Provider,{value:u},b.createElement(eF,null,c)),ko.createPortal(c,n)}function Fk(){let e=b.useContext(pE),t=e==null?void 0:e.setContain;Kt(()=>{t==null||t(!0)},[t])}const If=new WeakMap;function Mk(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function hE(e,t){let n=If.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${Mk(t)}`}function ng(e){return yd()?e.altKey:e.ctrlKey}function bu(e){return ro()?e.metaKey:e.ctrlKey}const kk=1e3;function Bk(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=b.useRef({search:"",timeout:void 0}).current,o=u=>{let l=Ik(u.key);if(!(!l||u.ctrlKey||u.metaKey||!u.currentTarget.contains(u.target))){if(l===" "&&i.search.trim().length>0&&(u.preventDefault(),"continuePropagation"in u||u.stopPropagation()),i.search+=l,t.getKeyForSearch!=null){let c=t.getKeyForSearch(i.search,n.focusedKey);c==null&&(c=t.getKeyForSearch(i.search)),c!=null&&(n.setFocusedKey(c),r&&r(c))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},kk)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?o:void 0}}}function Ik(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function mE(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:u=!1,disallowSelectAll:l=!1,selectOnFocus:c=t.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:f,allowsTabNavigation:h=!1,isVirtualized:g,scrollRef:m=r,linkBehavior:$="action"}=e,{direction:w}=Wn(),C=Af(),x=O=>{var M;if(O.altKey&&O.key==="Tab"&&O.preventDefault(),!(!((M=r.current)===null||M===void 0)&&M.contains(O.target)))return;const G=(ie,Ee)=>{if(ie!=null){if(t.isLink(ie)&&$==="selection"&&c&&!ng(O)){var $e;ko.flushSync(()=>{t.setFocusedKey(ie,Ee)});let ne=($e=m.current)===null||$e===void 0?void 0:$e.querySelector(`[data-key="${CSS.escape(ie.toString())}"]`),ye=t.getItemProps(ie);ne&&C.open(ne,O,ye.href,ye.routerOptions);return}if(t.setFocusedKey(ie,Ee),t.isLink(ie)&&$==="override")return;O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(ie):c&&!ng(O)&&t.replaceSelection(ie)}};switch(O.key){case"ArrowDown":if(n.getKeyBelow){var K,W,j;let ie=t.focusedKey!=null?(K=n.getKeyBelow)===null||K===void 0?void 0:K.call(n,t.focusedKey):(W=n.getFirstKey)===null||W===void 0?void 0:W.call(n);ie==null&&o&&(ie=(j=n.getFirstKey)===null||j===void 0?void 0:j.call(n,t.focusedKey)),ie!=null&&(O.preventDefault(),G(ie))}break;case"ArrowUp":if(n.getKeyAbove){var I,R,B;let ie=t.focusedKey!=null?(I=n.getKeyAbove)===null||I===void 0?void 0:I.call(n,t.focusedKey):(R=n.getLastKey)===null||R===void 0?void 0:R.call(n);ie==null&&o&&(ie=(B=n.getLastKey)===null||B===void 0?void 0:B.call(n,t.focusedKey)),ie!=null&&(O.preventDefault(),G(ie))}break;case"ArrowLeft":if(n.getKeyLeftOf){var J,L,U;let ie=t.focusedKey!=null?(J=n.getKeyLeftOf)===null||J===void 0?void 0:J.call(n,t.focusedKey):null;ie==null&&o&&(ie=w==="rtl"?(L=n.getFirstKey)===null||L===void 0?void 0:L.call(n,t.focusedKey):(U=n.getLastKey)===null||U===void 0?void 0:U.call(n,t.focusedKey)),ie!=null&&(O.preventDefault(),G(ie,w==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var re,oe,fe;let ie=t.focusedKey!=null?(re=n.getKeyRightOf)===null||re===void 0?void 0:re.call(n,t.focusedKey):null;ie==null&&o&&(ie=w==="rtl"?(oe=n.getLastKey)===null||oe===void 0?void 0:oe.call(n,t.focusedKey):(fe=n.getFirstKey)===null||fe===void 0?void 0:fe.call(n,t.focusedKey)),ie!=null&&(O.preventDefault(),G(ie,w==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){O.preventDefault();let ie=n.getFirstKey(t.focusedKey,bu(O));t.setFocusedKey(ie),ie!=null&&(bu(O)&&O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(ie):c&&t.replaceSelection(ie))}break;case"End":if(n.getLastKey){O.preventDefault();let ie=n.getLastKey(t.focusedKey,bu(O));t.setFocusedKey(ie),ie!=null&&(bu(O)&&O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(ie):c&&t.replaceSelection(ie))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let ie=n.getKeyPageBelow(t.focusedKey);ie!=null&&(O.preventDefault(),G(ie))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let ie=n.getKeyPageAbove(t.focusedKey);ie!=null&&(O.preventDefault(),G(ie))}break;case"a":bu(O)&&t.selectionMode==="multiple"&&l!==!0&&(O.preventDefault(),t.selectAll());break;case"Escape":!u&&t.selectedKeys.size!==0&&(O.stopPropagation(),O.preventDefault(),t.clearSelection());break;case"Tab":if(!h){if(O.shiftKey)r.current.focus();else{let ie=hr(r.current,{tabbable:!0}),Ee,$e;do $e=ie.lastChild(),$e&&(Ee=$e);while($e);Ee&&!Ee.contains(document.activeElement)&&oi(Ee)}break}}},v=b.useRef({top:0,left:0});Bo(m,"scroll",g?void 0:()=>{var O,M,G,K;v.current={top:(G=(O=m.current)===null||O===void 0?void 0:O.scrollTop)!==null&&G!==void 0?G:0,left:(K=(M=m.current)===null||M===void 0?void 0:M.scrollLeft)!==null&&K!==void 0?K:0}});let D=O=>{if(t.isFocused){O.currentTarget.contains(O.target)||t.setFocused(!1);return}if(O.currentTarget.contains(O.target)){if(t.setFocused(!0),t.focusedKey==null){var M,G;let j=R=>{R!=null&&(t.setFocusedKey(R),c&&t.replaceSelection(R))},I=O.relatedTarget;var K,W;I&&O.currentTarget.compareDocumentPosition(I)&Node.DOCUMENT_POSITION_FOLLOWING?j((K=t.lastSelectedKey)!==null&&K!==void 0?K:(M=n.getLastKey)===null||M===void 0?void 0:M.call(n)):j((W=t.firstSelectedKey)!==null&&W!==void 0?W:(G=n.getFirstKey)===null||G===void 0?void 0:G.call(n))}else!g&&m.current&&(m.current.scrollTop=v.current.top,m.current.scrollLeft=v.current.left);if(t.focusedKey!=null&&m.current){let j=m.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);j&&(j.contains(document.activeElement)||oi(j),Ld()==="keyboard"&&Bd(j,{containingElement:r.current}))}}},P=O=>{O.currentTarget.contains(O.relatedTarget)||t.setFocused(!1)};const E=b.useRef(i);b.useEffect(()=>{if(E.current){var O,M;let W=null;var G;i==="first"&&(W=(G=(O=n.getFirstKey)===null||O===void 0?void 0:O.call(n))!==null&&G!==void 0?G:null);var K;i==="last"&&(W=(K=(M=n.getLastKey)===null||M===void 0?void 0:M.call(n))!==null&&K!==void 0?K:null);let j=t.selectedKeys;if(j.size){for(let I of j)if(t.canSelectItem(I)){W=I;break}}t.setFocused(!0),t.setFocusedKey(W),W==null&&!f&&r.current&&Oa(r.current)}},[]);let T=b.useRef(t.focusedKey);b.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==T.current||E.current)&&m.current&&r.current){let O=Ld(),M=r.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);if(!M)return;(O==="keyboard"||E.current)&&(dx(m.current,M),O!=="virtual"&&Bd(M,{containingElement:r.current}))}!f&&t.isFocused&&t.focusedKey==null&&T.current!=null&&r.current&&Oa(r.current),T.current=t.focusedKey,E.current=!1}),Bo(r,"react-aria-focus-scope-restore",O=>{O.preventDefault(),t.setFocused(!0)});let V={onKeyDown:x,onFocus:D,onBlur:P,onMouseDown(O){m.current===O.target&&O.preventDefault()}},{typeSelectProps:S}=Bk({keyboardDelegate:n,selectionManager:t});d||(V=$t(S,V));let z;return f||(z=t.focusedKey==null?0:-1),{collectionProps:{...V,tabIndex:z}}}function Lk(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:i,shouldUseVirtualFocus:o,focus:u,isDisabled:l,onAction:c,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=e,h=Af(),g=R=>{if(R.pointerType==="keyboard"&&ng(R))t.toggleSelection(n);else{if(t.selectionMode==="none")return;if(t.isLink(n)){if(f==="selection"&&r.current){let B=t.getItemProps(n);h.open(r.current,R,B.href,B.routerOptions),t.setSelectedKeys(t.selectedKeys);return}else if(f==="override"||f==="none")return}t.selectionMode==="single"?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):R&&R.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||R&&(bu(R)||R.pointerType==="touch"||R.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};b.useEffect(()=>{n===t.focusedKey&&t.isFocused&&!o&&(u?u():document.activeElement!==r.current&&r.current&&Oa(r.current))},[r,n,t.focusedKey,t.childFocusStrategy,t.isFocused,o]),l=l||t.isDisabled(n);let m={};!o&&!l?m={tabIndex:n===t.focusedKey?0:-1,onFocus(R){R.target===r.current&&t.setFocusedKey(n)}}:l&&(m.onMouseDown=R=>{R.preventDefault()});let $=t.isLink(n)&&f==="override",w=t.isLink(n)&&f!=="selection"&&f!=="none",C=!l&&t.canSelectItem(n)&&!$,x=(c||w)&&!l,v=x&&(t.selectionBehavior==="replace"?!C:!C||t.isEmpty),D=x&&C&&t.selectionBehavior==="replace",P=v||D,E=b.useRef(null),T=P&&C,V=b.useRef(!1),S=b.useRef(!1),z=R=>{if(c&&c(),w&&r.current){let B=t.getItemProps(n);h.open(r.current,R,B.href,B.routerOptions)}},O={};i?(O.onPressStart=R=>{E.current=R.pointerType,V.current=T,R.pointerType==="keyboard"&&(!P||c1())&&g(R)},d?(O.onPressUp=v?void 0:R=>{R.pointerType!=="keyboard"&&C&&g(R)},O.onPress=v?z:void 0):O.onPress=R=>{if(v||D&&R.pointerType!=="mouse"){if(R.pointerType==="keyboard"&&!l1())return;z(R)}else R.pointerType!=="keyboard"&&C&&g(R)}):(O.onPressStart=R=>{E.current=R.pointerType,V.current=T,S.current=v,C&&(R.pointerType==="mouse"&&!v||R.pointerType==="keyboard"&&(!x||c1()))&&g(R)},O.onPress=R=>{(R.pointerType==="touch"||R.pointerType==="pen"||R.pointerType==="virtual"||R.pointerType==="keyboard"&&P&&l1()||R.pointerType==="mouse"&&S.current)&&(P?z(R):C&&g(R))}),m["data-key"]=n,O.preventFocusOnPress=o;let{pressProps:M,isPressed:G}=Fl(O),K=D?R=>{E.current==="mouse"&&(R.stopPropagation(),R.preventDefault(),z(R))}:void 0,{longPressProps:W}=Ex({isDisabled:!T,onLongPress(R){R.pointerType==="touch"&&(g(R),t.setSelectionBehavior("toggle"))}}),j=R=>{E.current==="touch"&&V.current&&R.preventDefault()},I=t.isLink(n)?R=>{_a.isOpening||R.preventDefault()}:void 0;return{itemProps:$t(m,C||v?M:{},T?W:{},{onDoubleClick:K,onDragStartCapture:j,onClick:I}),isPressed:G,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:l,allowsSelection:C,hasAction:P}}function l1(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function c1(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class d1{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?n.querySelector(`[data-key="${CSS.escape(t.toString())}"]`):null;if(!r)return null;let i=n.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-i.left+n.scrollLeft,y:o.top-i.top+n.scrollTop,width:o.width,height:o.height}}getContentSize(){let t=this.ref.current;var n,r;return{width:(n=t==null?void 0:t.scrollWidth)!==null&&n!==void 0?n:0,height:(r=t==null?void 0:t.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let t=this.ref.current;var n,r,i,o;return{x:(n=t==null?void 0:t.scrollLeft)!==null&&n!==void 0?n:0,y:(r=t==null?void 0:t.scrollTop)!==null&&r!==void 0?r:0,width:(i=t==null?void 0:t.offsetWidth)!==null&&i!==void 0?i:0,height:(o=t==null?void 0:t.offsetHeight)!==null&&o!==void 0?o:0}}constructor(t){this.ref=t}}class gE{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,n){let r=t;for(;r!=null;){let i=this.collection.getItem(r);if((i==null?void 0:i.type)==="item"&&!this.isDisabled(i))return r;r=n(r)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(t,n,r){let i=t,o=this.layoutDelegate.getItemRect(i);if(!o||i==null)return null;let u=o;do{if(i=n(i),i==null)break;o=this.layoutDelegate.getItemRect(i)}while(o&&r(u,o)&&i!=null);return i}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!pl(n))return this.getFirstKey();let i=t;if(this.orientation==="horizontal"){let o=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!pl(n))return this.getLastKey();let i=t;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let o=r.getItem(i);if(!o)return null;let u=o.textValue.slice(0,t.length);if(o.textValue&&this.collator.compare(u,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 d1(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 d1(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function Vk(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:o,layoutDelegate:u}=e,l=uw({usage:"search",sensitivity:"base"}),c=t.disabledBehavior,d=b.useMemo(()=>o||new gE({collection:n,disabledKeys:r,disabledBehavior:c,ref:i,collator:l,layoutDelegate:u}),[o,u,n,r,i,l,c]),{collectionProps:f}=mE({...e,ref:i,selectionManager:t,keyboardDelegate:d});return{listProps:f}}function Nk(e,t,n){let r=io(e,{labelable:!0}),i=e.selectionBehavior||"toggle",o=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&o==="action"&&(o="override");let{listProps:u}=Vk({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:o}),{focusWithinProps:l}=is({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),c=Er(e.id);If.set(t,{id:c,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:o});let{labelProps:d,fieldProps:f}=kf({...e,id:c,labelElementType:"span"});return{labelProps:d,listBoxProps:$t(r,l,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...$t(f,u)})}}function yE(e){return null}yE.getCollectionNode=function*(t,n){let{childItems:r,title:i,children:o}=t,u=t.title||t.children,l=t.textValue||(typeof u=="string"?u:"")||t["aria-label"]||"";!l&&!(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:u,textValue:l,"aria-label":t["aria-label"],hasChildNodes:jk(t),*childNodes(){if(r)for(let c of r)yield{type:"item",value:c};else if(i){let c=[];b.Children.forEach(o,d=>{c.push({type:"item",element:d})}),yield*c}}}};function jk(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&b.Children.count(e.children)>0)}let Kk=yE;class Uk{build(t,n){return this.context=n,f1(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(b.isValidElement(n)&&n.type===b.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let o of r)yield*this.getFullNode({value:o,index:i},{renderer:n}),i++}else{let i=[];b.Children.forEach(n,u=>{u&&i.push(u)});let o=0;for(let u of i){let l=this.getFullNode({element:u,index:o},{});for(let c of l)o++,yield c}}}getKey(t,n,r,i){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let o=n.value;if(o!=null){var u;let l=(u=o.key)!==null&&u!==void 0?u:o.id;if(l==null)throw new Error("No key found for item");return l}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,i){if(b.isValidElement(t.element)&&t.element.type===b.Fragment){let C=[];b.Children.forEach(t.element.props.children,v=>{C.push(v)});var o;let x=(o=t.index)!==null&&o!==void 0?o:0;for(const v of C)yield*this.getFullNode({element:v,index:x++},n,r,i);return}let u=t.element;if(!u&&t.value&&n&&n.renderer){let C=this.cache.get(t.value);if(C&&(!C.shouldInvalidate||!C.shouldInvalidate(this.context))){C.index=t.index,C.parentKey=i?i.key:null,yield C;return}u=n.renderer(t.value)}if(b.isValidElement(u)){let C=u.type;if(typeof C!="function"&&typeof C.getCollectionNode!="function"){let P=u.type;throw new Error(`Unknown element <${P}> in collection.`)}let x=C.getCollectionNode(u.props,this.context);var l;let v=(l=t.index)!==null&&l!==void 0?l:0,D=x.next();for(;!D.done&&D.value;){let P=D.value;t.index=v;var c;let E=(c=P.key)!==null&&c!==void 0?c:null;E==null&&(E=P.element?null:this.getKey(u,t,n,r));let V=[...this.getFullNode({...P,key:E,index:v,wrapper:zk(t.wrapper,P.wrapper)},this.getChildState(n,P),r?`${r}${u.key}`:u.key,i)];for(let S of V){var d,f;S.value=(f=(d=P.value)!==null&&d!==void 0?d:t.value)!==null&&f!==void 0?f:null,S.value&&this.cache.set(S.value,S);var h;if(t.type&&S.type!==t.type)throw new Error(`Unsupported type <${jh(S.type)}> in <${jh((h=i==null?void 0:i.type)!==null&&h!==void 0?h:"unknown parent type")}>. Only <${jh(t.type)}> is supported.`);v++,yield S}D=x.next(V)}return}if(t.key==null||t.type==null)return;let g=this;var m,$;let w={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:(m=t.value)!==null&&m!==void 0?m:null,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:($=t.textValue)!==null&&$!==void 0?$:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:f1(function*(){if(!t.hasChildNodes||!t.childNodes)return;let C=0;for(let x of t.childNodes()){x.key!=null&&(x.key=`${w.key}${x.key}`);let v=g.getFullNode({...x,index:C},g.getChildState(n,x),w.key,w);for(let D of v)C++,yield D}})};yield w}constructor(){this.cache=new WeakMap}}function f1(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 zk(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function jh(e){return e[0].toUpperCase()+e.slice(1)}function Wk(e,t,n){let r=b.useMemo(()=>new Uk,[]),{children:i,items:o,collection:u}=e;return b.useMemo(()=>{if(u)return u;let c=r.build({children:i,items:o},n);return t(c)},[r,i,o,u,n,t])}function Lf(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function Hk(e){return Gk(e)}function Gk(e,t){for(let n of e)return n}function Kh(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...p1(e,t),t],i=[...p1(e,n),n],o=r.slice(0,i.length).findIndex((u,l)=>u!==i[l]);return o!==-1?(t=r[o],n=i[o],t.index-n.index):r.findIndex(u=>u===n)>=0?1:(i.findIndex(u=>u===t)>=0,-1)}function p1(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 h1=new WeakMap;function vE(e){let t=h1.get(e);if(t!=null)return t;let n=0,r=i=>{for(let o of i)o.type==="section"?r(Lf(o,e)):n++};return r(e),h1.set(e,n),n}function qk(e,t,n){var r,i;let{key:o}=e,u=If.get(t);var l;let c=(l=e.isDisabled)!==null&&l!==void 0?l:t.selectionManager.isDisabled(o);var d;let f=(d=e.isSelected)!==null&&d!==void 0?d:t.selectionManager.isSelected(o);var h;let g=(h=e.shouldSelectOnPressUp)!==null&&h!==void 0?h:u==null?void 0:u.shouldSelectOnPressUp;var m;let $=(m=e.shouldFocusOnHover)!==null&&m!==void 0?m:u==null?void 0:u.shouldFocusOnHover;var w;let C=(w=e.shouldUseVirtualFocus)!==null&&w!==void 0?w:u==null?void 0:u.shouldUseVirtualFocus;var x;let v=(x=e.isVirtualized)!==null&&x!==void 0?x:u==null?void 0:u.isVirtualized,D=Uu(),P=Uu(),E={role:"option","aria-disabled":c||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?f:void 0};ro()&&Qg()||(E["aria-label"]=e["aria-label"],E["aria-labelledby"]=D,E["aria-describedby"]=P);let T=t.collection.getItem(o);if(v){let I=Number(T==null?void 0:T.index);E["aria-posinset"]=Number.isNaN(I)?void 0:I+1,E["aria-setsize"]=vE(t.collection)}let V=u!=null&&u.onAction?()=>{var I;return u==null||(I=u.onAction)===null||I===void 0?void 0:I.call(u,o)}:void 0,{itemProps:S,isPressed:z,isFocused:O,hasAction:M,allowsSelection:G}=Lk({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:g,allowsDifferentPressOrigin:g&&$,isVirtualized:v,shouldUseVirtualFocus:C,isDisabled:c,onAction:V||!(T==null||(r=T.props)===null||r===void 0)&&r.onAction?Pa(T==null||(i=T.props)===null||i===void 0?void 0:i.onAction,V):void 0,linkBehavior:u==null?void 0:u.linkBehavior}),{hoverProps:K}=uF({isDisabled:c||!$,onHoverStart(){y4()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o))}}),W=io(T==null?void 0:T.props);delete W.id;let j=NO(T==null?void 0:T.props);return{optionProps:{...E,...$t(W,S,K,j),id:hE(t,o)},labelProps:{id:D},descriptionProps:{id:P},isFocused:O,isFocusVisible:O&&y4(),isSelected:f,isDisabled:c,isPressed:z,allowsSelection:G,hasAction:M}}var bE={};bE={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var $E={};$E={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var xE={};xE={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var wE={};wE={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var DE={};DE={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var EE={};EE={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var CE={};CE={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var SE={};SE={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var AE={};AE={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var TE={};TE={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var PE={};PE={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var _E={};_E={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var RE={};RE={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var OE={};OE={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var FE={};FE={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var ME={};ME={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var kE={};kE={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var BE={};BE={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var IE={};IE={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var LE={};LE={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var VE={};VE={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var NE={};NE={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var jE={};jE={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var KE={};KE={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var UE={};UE={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var zE={};zE={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var WE={};WE={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var HE={};HE={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var GE={};GE={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var qE={};qE={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var YE={};YE={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var ZE={};ZE={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var JE={};JE={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var QE={};QE={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var XE={};XE={"ar-AE":bE,"bg-BG":$E,"cs-CZ":xE,"da-DK":wE,"de-DE":DE,"el-GR":EE,"en-US":CE,"es-ES":SE,"et-EE":AE,"fi-FI":TE,"fr-FR":PE,"he-IL":_E,"hr-HR":RE,"hu-HU":OE,"it-IT":FE,"ja-JP":ME,"ko-KR":kE,"lt-LT":BE,"lv-LV":IE,"nb-NO":LE,"nl-NL":VE,"pl-PL":NE,"pt-BR":jE,"pt-PT":KE,"ro-RO":UE,"ru-RU":zE,"sk-SK":WE,"sl-SI":HE,"sr-SP":GE,"sv-SE":qE,"tr-TR":YE,"uk-UA":ZE,"zh-CN":JE,"zh-TW":QE};function Yk(e){return e&&e.__esModule?e.default:e}function Zk(e,t,n){let{type:r="menu",isDisabled:i,trigger:o="press"}=e,u=Er(),{triggerProps:l,overlayProps:c}=Ek({type:r},t,n),d=m=>{if(!i&&!(o==="longPress"&&!m.altKey)&&n&&n.current)switch(m.key){case"Enter":case" ":if(o==="longPress")return;case"ArrowDown":"continuePropagation"in m||m.stopPropagation(),m.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in m||m.stopPropagation(),m.preventDefault(),t.toggle("last");break;default:"continuePropagation"in m&&m.continuePropagation()}},f=Mi(Yk(XE),"@react-aria/menu"),{longPressProps:h}=Ex({isDisabled:i||o!=="longPress",accessibilityDescription:f.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),g={onPressStart(m){m.pointerType!=="touch"&&m.pointerType!=="keyboard"&&!i&&t.open(m.pointerType==="virtual"?"first":null)},onPress(m){m.pointerType==="touch"&&!i&&t.toggle()}};return delete l.onPress,{menuTriggerProps:{...l,...o==="press"?g:h,id:u,onKeyDown:d},menuProps:{...c,"aria-labelledby":u,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function Jk(e){return e&&e.__esModule?e.default:e}function Qk(e,t){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:o,keyboardDelegate:u,layoutDelegate:l,shouldFocusWrap:c,isReadOnly:d,isDisabled:f}=e,h=b.useRef(null);n=n??h;let g=Mi(Jk(lE),"@react-aria/combobox"),{menuTriggerProps:m,menuProps:$}=Zk({type:"listbox",isDisabled:f||d},t,n);If.set(t,{id:$.id});let{collection:w}=t,{disabledKeys:C}=t.selectionManager,x=b.useMemo(()=>u||new gE({collection:w,disabledKeys:C,ref:o,layoutDelegate:l}),[u,l,w,C,o]),{collectionProps:v}=mE({selectionManager:t.selectionManager,keyboardDelegate:x,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:c,ref:i,isVirtualized:!0}),D=Af(),P=pe=>{if(!pe.nativeEvent.isComposing)switch(pe.key){case"Enter":case"Tab":if(t.isOpen&&pe.key==="Enter"&&pe.preventDefault(),t.isOpen&&o.current&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){let le=o.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);if(pe.key==="Enter"&&le instanceof HTMLAnchorElement){let Me=t.collection.getItem(t.selectionManager.focusedKey);Me&&D.open(le,pe,Me.props.href,Me.props.routerOptions)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&pe.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=pe=>{var le;let Me=(n==null?void 0:n.current)&&n.current===pe.relatedTarget,Xe=(le=r.current)===null||le===void 0?void 0:le.contains(pe.relatedTarget);Me||Xe||(e.onBlur&&e.onBlur(pe),t.setFocused(!1))},T=pe=>{t.isFocused||(e.onFocus&&e.onFocus(pe),t.setFocused(!0))},{isInvalid:V,validationErrors:S,validationDetails:z}=t.displayValidation,{labelProps:O,inputProps:M,descriptionProps:G,errorMessageProps:K}=lk({...e,onChange:t.setInputValue,onKeyDown:d?e.onKeyDown:Pa(t.isOpen&&v.onKeyDown,P,e.onKeyDown),onBlur:E,value:t.inputValue,onFocus:T,autoComplete:"off",validate:void 0,[Gu]:t},i),W=pe=>{if(pe.pointerType==="touch"){var le;(le=i.current)===null||le===void 0||le.focus(),t.toggle(null,"manual")}},j=pe=>{if(pe.pointerType!=="touch"){var le;(le=i.current)===null||le===void 0||le.focus(),t.toggle(pe.pointerType==="keyboard"||pe.pointerType==="virtual"?"first":null,"manual")}},I=zu({id:m.id,"aria-label":g.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||O.id}),R=zu({id:$.id,"aria-label":g.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||O.id}),B=b.useRef(0),J=pe=>{if(f||d)return;if(pe.timeStamp-B.current<500){var le;pe.preventDefault(),(le=i.current)===null||le===void 0||le.focus();return}let Me=pe.target.getBoundingClientRect(),Xe=pe.changedTouches[0],ct=Math.ceil(Me.left+.5*Me.width),vn=Math.ceil(Me.top+.5*Me.height);if(Xe.clientX===ct&&Xe.clientY===vn){var gt;pe.preventDefault(),(gt=i.current)===null||gt===void 0||gt.focus(),t.toggle(null,"manual"),B.current=pe.timeStamp}},L=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var U;let re=(U=L==null?void 0:L.parentKey)!==null&&U!==void 0?U:null;var oe;let fe=(oe=t.selectionManager.focusedKey)!==null&&oe!==void 0?oe:null,ie=b.useRef(re),Ee=b.useRef(fe);b.useEffect(()=>{if(yd()&&L!=null&&fe!=null&&fe!==Ee.current){let le=t.selectionManager.isSelected(fe),Me=re!=null?t.collection.getItem(re):null,Xe=(Me==null?void 0:Me["aria-label"])||(typeof(Me==null?void 0:Me.rendered)=="string"?Me.rendered:"")||"";var pe;let ct=g.format("focusAnnouncement",{isGroupChange:(pe=Me&&re!==ie.current)!==null&&pe!==void 0?pe:!1,groupTitle:Xe,groupCount:Me?[...Lf(Me,t.collection)].length:0,optionText:L["aria-label"]||L.textValue||"",isSelected:le});Ou(ct)}ie.current=re,Ee.current=fe});let $e=vE(t.collection),ne=b.useRef($e),ye=b.useRef(t.isOpen);b.useEffect(()=>{let pe=t.isOpen!==ye.current&&(t.selectionManager.focusedKey==null||yd());if(t.isOpen&&(pe||$e!==ne.current)){let le=g.format("countAnnouncement",{optionCount:$e});Ou(le)}ne.current=$e,ye.current=t.isOpen});let xe=b.useRef(t.selectedKey);return b.useEffect(()=>{if(yd()&&t.isFocused&&t.selectedItem&&t.selectedKey!==xe.current){let pe=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",le=g.format("selectedAnnouncement",{optionText:pe});Ou(le)}xe.current=t.selectedKey}),b.useEffect(()=>{if(t.isOpen)return fE([i.current,r.current].filter(pe=>pe!=null))},[t.isOpen,i,r]),{labelProps:O,buttonProps:{...m,...I,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:W,onPressStart:j,isDisabled:f||d},inputProps:$t(M,{role:"combobox","aria-expanded":m["aria-expanded"],"aria-controls":t.isOpen?$.id:void 0,"aria-autocomplete":"list","aria-activedescendant":L?hE(t,L.key):void 0,onTouchEnd:J,autoCorrect:"off",spellCheck:"false"}),listBoxProps:$t($,R,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:G,errorMessageProps:K,isInvalid:V,validationErrors:S,validationDetails:z}}var eC={};eC={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 tC={};tC={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 nC={};nC={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 rC={};rC={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 iC={};iC={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 oC={};oC={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 aC={};aC={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 uC={};uC={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 sC={};sC={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 lC={};lC={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 cC={};cC={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 dC={};dC={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 fC={};fC={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 pC={};pC={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 hC={};hC={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 mC={};mC={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 gC={};gC={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 yC={};yC={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 vC={};vC={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 bC={};bC={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 $C={};$C={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 xC={};xC={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 wC={};wC={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 DC={};DC={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 EC={};EC={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 CC={};CC={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 SC={};SC={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 AC={};AC={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 TC={};TC={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 PC={};PC={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 _C={};_C={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 RC={};RC={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 OC={};OC={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 FC={};FC={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 Nl={};Nl={"ar-AE":eC,"bg-BG":tC,"cs-CZ":nC,"da-DK":rC,"de-DE":iC,"el-GR":oC,"en-US":aC,"es-ES":uC,"et-EE":sC,"fi-FI":lC,"fr-FR":cC,"he-IL":dC,"hr-HR":fC,"hu-HU":pC,"it-IT":hC,"ja-JP":mC,"ko-KR":gC,"lt-LT":yC,"lv-LV":vC,"nb-NO":bC,"nl-NL":$C,"pl-PL":xC,"pt-BR":wC,"pt-PT":DC,"ro-RO":EC,"ru-RU":CC,"sk-SK":SC,"sl-SI":AC,"sr-SP":TC,"sv-SE":PC,"tr-TR":_C,"uk-UA":RC,"zh-CN":OC,"zh-TW":FC};function vy(e,t,n){let{direction:r}=Wn(),i=b.useMemo(()=>_f(t),[t]),o=c=>{if(c.currentTarget.contains(c.target)&&(c.altKey&&(c.key==="ArrowDown"||c.key==="ArrowUp")&&"setOpen"in e&&(c.preventDefault(),c.stopPropagation(),e.setOpen(!0)),!n))switch(c.key){case"ArrowLeft":c.preventDefault(),c.stopPropagation(),r==="rtl"?i.focusNext():i.focusPrevious();break;case"ArrowRight":c.preventDefault(),c.stopPropagation(),r==="rtl"?i.focusPrevious():i.focusNext();break}},u=()=>{var c;if(!t.current)return;let d=(c=window.event)===null||c===void 0?void 0:c.target,f=hr(t.current,{tabbable:!0});if(d&&(f.currentNode=d,d=f.previousNode()),!d){let h;do h=f.lastChild(),h&&(d=h);while(h)}for(;d!=null&&d.hasAttribute("data-placeholder");){let h=f.previousNode();if(h&&h.hasAttribute("data-placeholder"))d=h;else break}d&&d.focus()},{pressProps:l}=Fl({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(c){c.pointerType==="mouse"&&u()},onPress(c){c.pointerType!=="mouse"&&u()}});return $t(l,{onKeyDown:o})}function Xk(e){return e&&e.__esModule?e.default:e}const MC=new WeakMap,ul="__role_"+Date.now(),kC="__focusManager_"+Date.now();function BC(e,t,n){var r;let{isInvalid:i,validationErrors:o,validationDetails:u}=t.displayValidation,{labelProps:l,fieldProps:c,descriptionProps:d,errorMessageProps:f}=Bf({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||o}),h=b.useRef(null),{focusWithinProps:g}=is({...e,onFocusWithin(O){var M;h.current=t.value,(M=e.onFocus)===null||M===void 0||M.call(e,O)},onBlurWithin:O=>{var M;t.confirmPlaceholder(),t.value!==h.current&&t.commitValidation(),(M=e.onBlur)===null||M===void 0||M.call(e,O)},onFocusWithinChange:e.onFocusChange}),m=Mi(Xk(Nl),"@react-aria/datepicker"),$=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",w=t.maxGranularity==="hour"?"time":"date",C=t.value?m.format($,{[w]:t.formatValue({month:"long"})}):"",x=Rl(C),v=e[ul]==="presentation"?c["aria-describedby"]:[x["aria-describedby"],c["aria-describedby"]].filter(Boolean).join(" ")||void 0,D=e[kC],P=b.useMemo(()=>D||_f(n),[D,n]),E=vy(t,n,e[ul]==="presentation");MC.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[l.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:v,focusManager:P});let T=b.useRef(e.autoFocus),V;e[ul]==="presentation"?V={role:"presentation"}:V=$t(c,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":v}),b.useEffect(()=>{T.current&&P.focusFirst(),T.current=!1},[P]),Xg(e.inputRef,t.value,t.setValue),Gw({...e,focus(){P.focusFirst()}},t,e.inputRef);let S={type:"hidden",name:e.name,value:((r=t.value)===null||r===void 0?void 0:r.toString())||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(S.type="text",S.hidden=!0,S.required=e.isRequired,S.onChange=()=>{});let z=io(e);return{labelProps:{...l,onClick:()=>{P.focusFirst()}},fieldProps:$t(z,V,E,g,{onKeyDown(O){e.onKeyDown&&e.onKeyDown(O)},onKeyUp(O){e.onKeyUp&&e.onKeyUp(O)}}),inputProps:S,descriptionProps:d,errorMessageProps:f,isInvalid:i,validationErrors:o,validationDetails:u}}function eB(e,t,n){var r;let i=BC(e,t,n);return i.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",i}function tB(e){return e&&e.__esModule?e.default:e}function nB(e,t,n){let r=Er(),i=Er(),o=Er(),u=Mi(tB(Nl),"@react-aria/datepicker"),{isInvalid:l,validationErrors:c,validationDetails:d}=t.displayValidation,{labelProps:f,fieldProps:h,descriptionProps:g,errorMessageProps:m}=Bf({...e,labelElementType:"span",isInvalid:l,errorMessage:e.errorMessage||c}),$=vy(t,n),w=h["aria-labelledby"]||h.id,{locale:C}=Wn(),x=t.formatValue(C,{month:"long"}),v=x?u.format("selectedDateDescription",{date:x}):"",D=Rl(v),P=[D["aria-describedby"],h["aria-describedby"]].filter(Boolean).join(" ")||void 0,E=io(e),T=b.useMemo(()=>_f(n),[n]),{focusWithinProps:V}=is({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:$t(E,$,h,D,V,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":w,"aria-describedby":P,onKeyDown(S){t.isOpen||e.onKeyDown&&e.onKeyDown(S)},onKeyUp(S){t.isOpen||e.onKeyUp&&e.onKeyUp(S)}}),labelProps:{...f,onClick:()=>{T.focusFirst()}},fieldProps:{...h,id:o,[ul]:"presentation","aria-describedby":P,value:t.value,onChange:t.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[Gu]:t,autoFocus:e.autoFocus,name:e.name},descriptionProps:g,errorMessageProps:m,buttonProps:{...D,id:r,"aria-haspopup":"dialog","aria-label":u.format("calendar"),"aria-labelledby":`${r} ${w}`,"aria-describedby":P,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:i,"aria-labelledby":`${r} ${w}`},calendarProps:{autoFocus:!0,value:t.dateValue,onChange:t.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:t.dateValue?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:l,validationErrors:c,validationDetails:d}}function rB(e){return e&&e.__esModule?e.default:e}function iB(){let{locale:e}=Wn(),t=_x(rB(Nl),"@react-aria/datepicker");return b.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new oB(e,t)}},[e,t])}class oB{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function aB(e,t,n){let r=b.useRef(""),{locale:i}=Wn(),o=iB(),{ariaLabel:u,ariaLabelledBy:l,ariaDescribedBy:c,focusManager:d}=MC.get(t),f=e.isPlaceholder?"":e.text,h=b.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),g=Ci({month:"long",timeZone:h.timeZone}),m=Ci({hour:"numeric",hour12:h.hour12,timeZone:h.timeZone});if(e.type==="month"&&!e.isPlaceholder){let B=g.format(t.dateValue);f=B!==f?`${f} – ${B}`:B}else e.type==="hour"&&!e.isPlaceholder&&(f=m.format(t.dateValue));let{spinButtonProps:$}=dk({value:e.value,textValue:f,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current="",t.increment(e.type)},onDecrement:()=>{r.current="",t.decrement(e.type)},onIncrementPage:()=>{r.current="",t.incrementPage(e.type)},onDecrementPage:()=>{r.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{r.current="",e.maxValue!==void 0&&t.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{r.current="",e.minValue!==void 0&&t.setSegment(e.type,e.minValue)}}),w=b.useMemo(()=>new aw(i,{maximumFractionDigits:0}),[i]),C=()=>{if(e.text===e.placeholder&&d.focusPrevious(),w.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let B=e.text.slice(0,-1),J=w.parse(B);B=J===0?"":B,B.length===0||J===0?t.clearSegment(e.type):t.setSegment(e.type,J),r.current=B}else e.type==="dayPeriod"&&t.clearSegment(e.type)},x=B=>{if(B.key==="a"&&(ro()?B.metaKey:B.ctrlKey)&&B.preventDefault(),!(B.ctrlKey||B.metaKey||B.shiftKey||B.altKey))switch(B.key){case"Backspace":case"Delete":B.preventDefault(),B.stopPropagation(),C();break}},{startsWith:v}=sw({sensitivity:"base"}),D=Ci({hour:"numeric",hour12:!0}),P=b.useMemo(()=>{let B=new Date;return B.setHours(0),D.formatToParts(B).find(J=>J.type==="dayPeriod").value},[D]),E=b.useMemo(()=>{let B=new Date;return B.setHours(12),D.formatToParts(B).find(J=>J.type==="dayPeriod").value},[D]),T=Ci({year:"numeric",era:"narrow",timeZone:"UTC"}),V=b.useMemo(()=>{if(e.type!=="era")return[];let B=Yt(new sn(1,1,1),t.calendar),J=t.calendar.getEras().map(U=>{let re=B.set({year:1,month:1,day:1,era:U}).toDate("UTC"),fe=T.formatToParts(re).find(ie=>ie.type==="era").value;return{era:U,formatted:fe}}),L=uB(J.map(U=>U.formatted));if(L)for(let U of J)U.formatted=U.formatted.slice(L);return J},[T,t.calendar,e.type]),S=B=>{if(t.isDisabled||t.isReadOnly)return;let J=r.current+B;switch(e.type){case"dayPeriod":if(v(P,B))t.setSegment("dayPeriod",0);else if(v(E,B))t.setSegment("dayPeriod",12);else break;d.focusNext();break;case"era":{let L=V.find(U=>v(U.formatted,B));L&&(t.setSegment("era",L.era),d.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!w.isValidPartialNumber(J))return;let L=w.parse(J),U=L,re=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":L>11&&(U=w.parse(B));break;case"h12":re=!1,L>12&&(U=w.parse(B));break}e.value!==void 0&&e.value>=12&&L>1&&(L+=12)}else e.maxValue!==void 0&&L>e.maxValue&&(U=w.parse(B));if(isNaN(L))return;let oe=U!==0||re;oe&&t.setSegment(e.type,U),e.maxValue!==void 0&&(+(L+"0")>e.maxValue||J.length>=String(e.maxValue).length)?(r.current="",oe&&d.focusNext()):r.current=J;break}}},z=()=>{r.current="",n.current&&Bd(n.current,{containingElement:Tf(n.current)});let B=window.getSelection();B==null||B.collapse(n.current)},O=b.useRef(typeof document<"u"?document:null);Bo(O,"selectionchange",()=>{var B;let J=window.getSelection();J!=null&&J.anchorNode&&(!((B=n.current)===null||B===void 0)&&B.contains(J==null?void 0:J.anchorNode))&&J.collapse(n.current)});let M=b.useRef("");Bo(n,"beforeinput",B=>{if(n.current)switch(B.preventDefault(),B.inputType){case"deleteContentBackward":case"deleteContentForward":w.isValidPartialNumber(e.text)&&!t.isReadOnly&&C();break;case"insertCompositionText":M.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:B.data!=null&&S(B.data);break}}),Bo(n,"input",B=>{let{inputType:J,data:L}=B;switch(J){case"insertCompositionText":n.current&&(n.current.textContent=M.current),L!=null&&(v(P,L)||v(E,L))&&S(L);break}}),Kt(()=>{let B=n.current;return()=>{document.activeElement===B&&(d.focusPrevious()||d.focusNext())}},[n,d]);let G=_l()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},K=b.useMemo(()=>t.segments.find(B=>B.isEditable),[t.segments]);e!==K&&!t.isInvalid&&(c=void 0);let W=Er(),j=!t.isDisabled&&!t.isReadOnly&&e.isEditable,I=e.type==="literal"?"":o.of(e.type),R=zu({"aria-label":`${I}${u?`, ${u}`:""}${l?", ":""}`,"aria-labelledby":l});return e.type==="literal"?{segmentProps:{"aria-hidden":!0}}:{segmentProps:$t($,R,{id:W,...G,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":c,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:j,suppressContentEditableWarning:j,spellCheck:j?"false":void 0,autoCorrect:j?"off":void 0,[parseInt(b.version,10)>=17?"enterKeyHint":"enterkeyhint"]:j?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!j?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:x,onFocus:z,style:{caretColor:"transparent"},onPointerDown(B){B.stopPropagation()},onMouseDown(B){B.stopPropagation()}})}}function uB(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 sB(e){return e&&e.__esModule?e.default:e}function lB(e,t,n){var r,i,o;let u=Mi(sB(Nl),"@react-aria/datepicker"),{isInvalid:l,validationErrors:c,validationDetails:d}=t.displayValidation,{labelProps:f,fieldProps:h,descriptionProps:g,errorMessageProps:m}=Bf({...e,labelElementType:"span",isInvalid:l,errorMessage:e.errorMessage||c}),$=h["aria-labelledby"]||h.id,{locale:w}=Wn(),C=t.formatValue(w,{month:"long"}),x=C?u.format("selectedRangeDescription",{startDate:C.start,endDate:C.end}):"",v=Rl(x),D={"aria-label":u.format("startDate"),"aria-labelledby":$},P={"aria-label":u.format("endDate"),"aria-labelledby":$},E=Er(),T=Er(),V=vy(t,n),S=[v["aria-describedby"],h["aria-describedby"]].filter(Boolean).join(" ")||void 0,z=b.useMemo(()=>_f(n,{accept:R=>R.id!==E}),[n,E]),O={[kC]:z,[ul]:"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},M=io(e),{focusWithinProps:G}=is({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),K=b.useRef(fa),W=b.useRef(fa);var j,I;return{groupProps:$t(M,V,h,v,G,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":S,onKeyDown(R){t.isOpen||e.onKeyDown&&e.onKeyDown(R)},onKeyUp(R){t.isOpen||e.onKeyUp&&e.onKeyUp(R)}}),labelProps:{...f,onClick:()=>{z.focusFirst()}},buttonProps:{...v,id:E,"aria-haspopup":"dialog","aria-label":u.format("calendar"),"aria-labelledby":`${E} ${$}`,"aria-describedby":S,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:T,"aria-labelledby":`${E} ${$}`},startFieldProps:{...D,...O,value:(j=(r=t.value)===null||r===void 0?void 0:r.start)!==null&&j!==void 0?j:null,onChange:R=>t.setDateTime("start",R),autoFocus:e.autoFocus,name:e.startName,[Gu]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(R){K.current=R,t.updateValidation(Gd(R,W.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...P,...O,value:(I=(i=t.value)===null||i===void 0?void 0:i.end)!==null&&I!==void 0?I:null,onChange:R=>t.setDateTime("end",R),name:e.endName,[Gu]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(R){W.current=R,t.updateValidation(Gd(K.current,R))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:g,errorMessageProps:m,calendarProps:{autoFocus:!0,value:!((o=t.dateRange)===null||o===void 0)&&o.start&&t.dateRange.end?t.dateRange:null,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:l,validationErrors:c,validationDetails:d}}function cB(e,t){let{role:n="dialog"}=e,r=Uu();r=e["aria-label"]?void 0:r;let i=b.useRef(!1);return b.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Oa(t.current);let o=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),Oa(t.current)),i.current=!1)},500);return()=>{clearTimeout(o)}}},[t]),Fk(),{dialogProps:{...io(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:o=>{i.current&&o.stopPropagation()}},titleProps:{id:r}}}var jl=e=>e.type==="checkbox",ga=e=>e instanceof Date,Xn=e=>e==null;const IC=e=>typeof e=="object";var un=e=>!Xn(e)&&!Array.isArray(e)&&IC(e)&&!ga(e),LC=e=>un(e)&&e.target?jl(e.target)?e.target.checked:e.target.value:e,dB=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,VC=(e,t)=>e.has(dB(t)),fB=e=>{const t=e.constructor&&e.constructor.prototype;return un(t)&&t.hasOwnProperty("isPrototypeOf")},by=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function dr(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(!(by&&(e instanceof Blob||r))&&(n||un(e)))if(t=n?[]:{},!n&&!fB(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=dr(e[i]));else return e;return t}var Vf=e=>Array.isArray(e)?e.filter(Boolean):[],an=e=>e===void 0,Te=(e,t,n)=>{if(!t||!un(e))return n;const r=Vf(t.split(/[,[\].]+?/)).reduce((i,o)=>Xn(i)?i:i[o],e);return an(r)||r===e?an(e[t])?n:e[t]:r},Ur=e=>typeof e=="boolean",$y=e=>/^\w*$/.test(e),NC=e=>Vf(e.replace(/["|']|\]/g,"").split(/\.|\[/)),St=(e,t,n)=>{let r=-1;const i=$y(t)?[t]:NC(t),o=i.length,u=o-1;for(;++r<o;){const l=i[r];let c=n;if(r!==u){const d=e[l];c=un(d)||Array.isArray(d)?d:isNaN(+i[r+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=c,e=e[l]}return e};const Yd={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},ii={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"},jC=b.createContext(null),Nf=()=>b.useContext(jC),pB=e=>{const{children:t,...n}=e;return b.createElement(jC.Provider,{value:n},t)};var KC=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const u=o;return t._proxyFormState[u]!==ii.all&&(t._proxyFormState[u]=!r||ii.all),n&&(n[u]=!0),e[u]}});return i},fr=e=>un(e)&&!Object.keys(e).length,UC=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return fr(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(u=>t[u]===(!r||ii.all))},sl=e=>Array.isArray(e)?e:[e],zC=(e,t,n)=>!e||!t||e===t||sl(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function xy(e){const t=b.useRef(e);t.current=e,b.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function hB(e){const t=Nf(),{control:n=t.control,disabled:r,name:i,exact:o}=e,[u,l]=b.useState(n._formState),c=b.useRef(!0),d=b.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),f=b.useRef(i);return f.current=i,xy({disabled:r,next:h=>c.current&&zC(f.current,h.name,o)&&UC(h,d.current,n._updateFormState)&&l({...n._formState,...h}),subject:n._subjects.state}),b.useEffect(()=>(c.current=!0,d.current.isValid&&n._updateValid(!0),()=>{c.current=!1}),[n]),b.useMemo(()=>KC(u,n,d.current,!1),[u,n])}var Ai=e=>typeof e=="string",WC=(e,t,n,r,i)=>Ai(e)?(r&&t.watch.add(e),Te(n,e,i)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),Te(n,o))):(r&&(t.watchAll=!0),n);function mB(e){const t=Nf(),{control:n=t.control,name:r,defaultValue:i,disabled:o,exact:u}=e,l=b.useRef(r);l.current=r,xy({disabled:o,subject:n._subjects.values,next:f=>{zC(l.current,f.name,u)&&d(dr(WC(l.current,n._names,f.values||n._formValues,!1,i)))}});const[c,d]=b.useState(n._getWatch(r,i));return b.useEffect(()=>n._removeUnmounted()),c}function gB(e){const t=Nf(),{name:n,disabled:r,control:i=t.control,shouldUnregister:o}=e,u=VC(i._names.array,n),l=mB({control:i,name:n,defaultValue:Te(i._formValues,n,Te(i._defaultValues,n,e.defaultValue)),exact:!0}),c=hB({control:i,name:n,exact:!0}),d=b.useRef(i.register(n,{...e.rules,value:l,...Ur(e.disabled)?{disabled:e.disabled}:{}})),f=b.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Te(c.errors,n)},isDirty:{enumerable:!0,get:()=>!!Te(c.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Te(c.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Te(c.validatingFields,n)},error:{enumerable:!0,get:()=>Te(c.errors,n)}}),[c,n]),h=b.useMemo(()=>({name:n,value:l,...Ur(r)||c.disabled?{disabled:c.disabled||r}:{},onChange:g=>d.current.onChange({target:{value:LC(g),name:n},type:Yd.CHANGE}),onBlur:()=>d.current.onBlur({target:{value:Te(i._formValues,n),name:n},type:Yd.BLUR}),ref:g=>{const m=Te(i._fields,n);m&&g&&(m._f.ref={focus:()=>g.focus(),select:()=>g.select(),setCustomValidity:$=>g.setCustomValidity($),reportValidity:()=>g.reportValidity()})}}),[n,i._formValues,r,c.disabled,l,i._fields]);return b.useEffect(()=>{const g=i._options.shouldUnregister||o,m=($,w)=>{const C=Te(i._fields,$);C&&C._f&&(C._f.mount=w)};if(m(n,!0),g){const $=dr(Te(i._options.defaultValues,n));St(i._defaultValues,n,$),an(Te(i._formValues,n))&&St(i._formValues,n,$)}return!u&&i.register(n),()=>{(u?g&&!i._state.action:g)?i.unregister(n):m(n,!1)}},[n,i,u,o]),b.useEffect(()=>{i._updateDisabledField({disabled:r,fields:i._fields,name:n})},[r,n,i]),b.useMemo(()=>({field:h,formState:c,fieldState:f}),[h,c,f])}var HC=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},m1=e=>({isOnSubmit:!e||e===ii.onSubmit,isOnBlur:e===ii.onBlur,isOnChange:e===ii.onChange,isOnAll:e===ii.all,isOnTouch:e===ii.onTouched}),g1=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const ll=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const o=Te(e,i);if(o){const{_f:u,...l}=o;if(u){if(u.refs&&u.refs[0]&&t(u.refs[0],i)&&!r)return!0;if(u.ref&&t(u.ref,u.name)&&!r)return!0;if(ll(l,t))break}else if(un(l)&&ll(l,t))break}}};var yB=(e,t,n)=>{const r=sl(Te(e,n));return St(r,"root",t[n]),St(e,n,r),e},wy=e=>e.type==="file",Ei=e=>typeof e=="function",Zd=e=>{if(!by)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},wd=e=>Ai(e),Dy=e=>e.type==="radio",Jd=e=>e instanceof RegExp;const y1={value:!1,isValid:!1},v1={value:!0,isValid:!0};var GC=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&&!an(e[0].attributes.value)?an(e[0].value)||e[0].value===""?v1:{value:e[0].value,isValid:!0}:v1:y1}return y1};const b1={isValid:!1,value:null};var qC=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,b1):b1;function $1(e,t,n="validate"){if(wd(e)||Array.isArray(e)&&e.every(wd)||Ur(e)&&!e)return{type:n,message:wd(e)?e:"",ref:t}}var gu=e=>un(e)&&!Jd(e)?e:{value:e,message:""},x1=async(e,t,n,r,i,o)=>{const{ref:u,refs:l,required:c,maxLength:d,minLength:f,min:h,max:g,pattern:m,validate:$,name:w,valueAsNumber:C,mount:x}=e._f,v=Te(n,w);if(!x||t.has(w))return{};const D=l?l[0]:u,P=G=>{i&&D.reportValidity&&(D.setCustomValidity(Ur(G)?"":G||""),D.reportValidity())},E={},T=Dy(u),V=jl(u),S=T||V,z=(C||wy(u))&&an(u.value)&&an(v)||Zd(u)&&u.value===""||v===""||Array.isArray(v)&&!v.length,O=HC.bind(null,w,r,E),M=(G,K,W,j=qi.maxLength,I=qi.minLength)=>{const R=G?K:W;E[w]={type:G?j:I,message:R,ref:u,...O(G?j:I,R)}};if(o?!Array.isArray(v)||!v.length:c&&(!S&&(z||Xn(v))||Ur(v)&&!v||V&&!GC(l).isValid||T&&!qC(l).isValid)){const{value:G,message:K}=wd(c)?{value:!!c,message:c}:gu(c);if(G&&(E[w]={type:qi.required,message:K,ref:D,...O(qi.required,K)},!r))return P(K),E}if(!z&&(!Xn(h)||!Xn(g))){let G,K;const W=gu(g),j=gu(h);if(!Xn(v)&&!isNaN(v)){const I=u.valueAsNumber||v&&+v;Xn(W.value)||(G=I>W.value),Xn(j.value)||(K=I<j.value)}else{const I=u.valueAsDate||new Date(v),R=L=>new Date(new Date().toDateString()+" "+L),B=u.type=="time",J=u.type=="week";Ai(W.value)&&v&&(G=B?R(v)>R(W.value):J?v>W.value:I>new Date(W.value)),Ai(j.value)&&v&&(K=B?R(v)<R(j.value):J?v<j.value:I<new Date(j.value))}if((G||K)&&(M(!!G,W.message,j.message,qi.max,qi.min),!r))return P(E[w].message),E}if((d||f)&&!z&&(Ai(v)||o&&Array.isArray(v))){const G=gu(d),K=gu(f),W=!Xn(G.value)&&v.length>+G.value,j=!Xn(K.value)&&v.length<+K.value;if((W||j)&&(M(W,G.message,K.message),!r))return P(E[w].message),E}if(m&&!z&&Ai(v)){const{value:G,message:K}=gu(m);if(Jd(G)&&!v.match(G)&&(E[w]={type:qi.pattern,message:K,ref:u,...O(qi.pattern,K)},!r))return P(K),E}if($){if(Ei($)){const G=await $(v,n),K=$1(G,D);if(K&&(E[w]={...K,...O(qi.validate,K.message)},!r))return P(K.message),E}else if(un($)){let G={};for(const K in $){if(!fr(G)&&!r)break;const W=$1(await $[K](v,n),D,K);W&&(G={...W,...O(K,W.message)},P(W.message),r&&(E[w]=G))}if(!fr(G)&&(E[w]={ref:D,...G},!r))return E}}return P(!0),E};function vB(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=an(e)?r++:e[t[r++]];return e}function bB(e){for(const t in e)if(e.hasOwnProperty(t)&&!an(e[t]))return!1;return!0}function mn(e,t){const n=Array.isArray(t)?t:$y(t)?[t]:NC(t),r=n.length===1?e:vB(e,n),i=n.length-1,o=n[i];return r&&delete r[o],i!==0&&(un(r)&&fr(r)||Array.isArray(r)&&bB(r))&&mn(e,n.slice(0,-1)),e}var Uh=()=>{let e=[];return{get observers(){return e},next:i=>{for(const o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}},rg=e=>Xn(e)||!IC(e);function Po(e,t){if(rg(e)||rg(t))return e===t;if(ga(e)&&ga(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const o=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const u=t[i];if(ga(o)&&ga(u)||un(o)&&un(u)||Array.isArray(o)&&Array.isArray(u)?!Po(o,u):o!==u)return!1}}return!0}var YC=e=>e.type==="select-multiple",$B=e=>Dy(e)||jl(e),zh=e=>Zd(e)&&e.isConnected,ZC=e=>{for(const t in e)if(Ei(e[t]))return!0;return!1};function Qd(e,t={}){const n=Array.isArray(e);if(un(e)||n)for(const r in e)Array.isArray(e[r])||un(e[r])&&!ZC(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Qd(e[r],t[r])):Xn(e[r])||(t[r]=!0);return t}function JC(e,t,n){const r=Array.isArray(e);if(un(e)||r)for(const i in e)Array.isArray(e[i])||un(e[i])&&!ZC(e[i])?an(t)||rg(n[i])?n[i]=Array.isArray(e[i])?Qd(e[i],[]):{...Qd(e[i])}:JC(e[i],Xn(t)?{}:t[i],n[i]):n[i]=!Po(e[i],t[i]);return n}var js=(e,t)=>JC(e,t,Qd(t)),QC=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>an(e)?e:t?e===""?NaN:e&&+e:n&&Ai(e)?new Date(e):r?r(e):e;function Wh(e){const t=e.ref;return wy(t)?t.files:Dy(t)?qC(e.refs).value:YC(t)?[...t.selectedOptions].map(({value:n})=>n):jl(t)?GC(e.refs).value:QC(an(t.value)?e.ref.value:t.value,e)}var xB=(e,t,n,r)=>{const i={};for(const o of e){const u=Te(t,o);u&&St(i,o,u._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Ks=e=>an(e)?e:Jd(e)?e.source:un(e)?Jd(e.value)?e.value.source:e.value:e;const w1="AsyncFunction";var wB=e=>!!e&&!!e.validate&&!!(Ei(e.validate)&&e.validate.constructor.name===w1||un(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===w1)),DB=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function D1(e,t,n){const r=Te(e,n);if(r||$y(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const o=i.join("."),u=Te(t,o),l=Te(e,o);if(u&&!Array.isArray(u)&&n!==o)return{name:n};if(l&&l.type)return{name:o,error:l};i.pop()}return{name:n}}var EB=(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,CB=(e,t)=>!Vf(Te(e,t)).length&&mn(e,t);const SB={mode:ii.onSubmit,reValidateMode:ii.onChange,shouldFocusError:!0};function AB(e={}){let t={...SB,...e},n={submitCount:0,isDirty:!1,isLoading:Ei(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=un(t.defaultValues)||un(t.values)?dr(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:dr(i),u={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,d=0;const f={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:Uh(),array:Uh(),state:Uh()},g=m1(t.mode),m=m1(t.reValidateMode),$=t.criteriaMode===ii.all,w=q=>Y=>{clearTimeout(d),d=setTimeout(q,Y)},C=async q=>{if(!t.disabled&&(f.isValid||q)){const Y=t.resolver?fr((await S()).errors):await O(r,!0);Y!==n.isValid&&h.state.next({isValid:Y})}},x=(q,Y)=>{!t.disabled&&(f.isValidating||f.validatingFields)&&((q||Array.from(l.mount)).forEach(te=>{te&&(Y?St(n.validatingFields,te,Y):mn(n.validatingFields,te))}),h.state.next({validatingFields:n.validatingFields,isValidating:!fr(n.validatingFields)}))},v=(q,Y=[],te,he,Ce=!0,De=!0)=>{if(he&&te&&!t.disabled){if(u.action=!0,De&&Array.isArray(Te(r,q))){const _e=te(Te(r,q),he.argA,he.argB);Ce&&St(r,q,_e)}if(De&&Array.isArray(Te(n.errors,q))){const _e=te(Te(n.errors,q),he.argA,he.argB);Ce&&St(n.errors,q,_e),CB(n.errors,q)}if(f.touchedFields&&De&&Array.isArray(Te(n.touchedFields,q))){const _e=te(Te(n.touchedFields,q),he.argA,he.argB);Ce&&St(n.touchedFields,q,_e)}f.dirtyFields&&(n.dirtyFields=js(i,o)),h.state.next({name:q,isDirty:G(q,Y),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else St(o,q,Y)},D=(q,Y)=>{St(n.errors,q,Y),h.state.next({errors:n.errors})},P=q=>{n.errors=q,h.state.next({errors:n.errors,isValid:!1})},E=(q,Y,te,he)=>{const Ce=Te(r,q);if(Ce){const De=Te(o,q,an(te)?Te(i,q):te);an(De)||he&&he.defaultChecked||Y?St(o,q,Y?De:Wh(Ce._f)):j(q,De),u.mount&&C()}},T=(q,Y,te,he,Ce)=>{let De=!1,_e=!1;const Ve={name:q};if(!t.disabled){const ht=!!(Te(r,q)&&Te(r,q)._f&&Te(r,q)._f.disabled);if(!te||he){f.isDirty&&(_e=n.isDirty,n.isDirty=Ve.isDirty=G(),De=_e!==Ve.isDirty);const ut=ht||Po(Te(i,q),Y);_e=!!(!ht&&Te(n.dirtyFields,q)),ut||ht?mn(n.dirtyFields,q):St(n.dirtyFields,q,!0),Ve.dirtyFields=n.dirtyFields,De=De||f.dirtyFields&&_e!==!ut}if(te){const ut=Te(n.touchedFields,q);ut||(St(n.touchedFields,q,te),Ve.touchedFields=n.touchedFields,De=De||f.touchedFields&&ut!==te)}De&&Ce&&h.state.next(Ve)}return De?Ve:{}},V=(q,Y,te,he)=>{const Ce=Te(n.errors,q),De=f.isValid&&Ur(Y)&&n.isValid!==Y;if(t.delayError&&te?(c=w(()=>D(q,te)),c(t.delayError)):(clearTimeout(d),c=null,te?St(n.errors,q,te):mn(n.errors,q)),(te?!Po(Ce,te):Ce)||!fr(he)||De){const _e={...he,...De&&Ur(Y)?{isValid:Y}:{},errors:n.errors,name:q};n={...n,..._e},h.state.next(_e)}},S=async q=>{x(q,!0);const Y=await t.resolver(o,t.context,xB(q||l.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return x(q),Y},z=async q=>{const{errors:Y}=await S(q);if(q)for(const te of q){const he=Te(Y,te);he?St(n.errors,te,he):mn(n.errors,te)}else n.errors=Y;return Y},O=async(q,Y,te={valid:!0})=>{for(const he in q){const Ce=q[he];if(Ce){const{_f:De,..._e}=Ce;if(De){const Ve=l.array.has(De.name),ht=Ce._f&&wB(Ce._f);ht&&f.validatingFields&&x([he],!0);const ut=await x1(Ce,l.disabled,o,$,t.shouldUseNativeValidation&&!Y,Ve);if(ht&&f.validatingFields&&x([he]),ut[De.name]&&(te.valid=!1,Y))break;!Y&&(Te(ut,De.name)?Ve?yB(n.errors,ut,De.name):St(n.errors,De.name,ut[De.name]):mn(n.errors,De.name))}!fr(_e)&&await O(_e,Y,te)}}return te.valid},M=()=>{for(const q of l.unMount){const Y=Te(r,q);Y&&(Y._f.refs?Y._f.refs.every(te=>!zh(te)):!zh(Y._f.ref))&&Ee(q)}l.unMount=new Set},G=(q,Y)=>!t.disabled&&(q&&Y&&St(o,q,Y),!Po(U(),i)),K=(q,Y,te)=>WC(q,l,{...u.mount?o:an(Y)?i:Ai(q)?{[q]:Y}:Y},te,Y),W=q=>Vf(Te(u.mount?o:i,q,t.shouldUnregister?Te(i,q,[]):[])),j=(q,Y,te={})=>{const he=Te(r,q);let Ce=Y;if(he){const De=he._f;De&&(!De.disabled&&St(o,q,QC(Y,De)),Ce=Zd(De.ref)&&Xn(Y)?"":Y,YC(De.ref)?[...De.ref.options].forEach(_e=>_e.selected=Ce.includes(_e.value)):De.refs?jl(De.ref)?De.refs.length>1?De.refs.forEach(_e=>(!_e.defaultChecked||!_e.disabled)&&(_e.checked=Array.isArray(Ce)?!!Ce.find(Ve=>Ve===_e.value):Ce===_e.value)):De.refs[0]&&(De.refs[0].checked=!!Ce):De.refs.forEach(_e=>_e.checked=_e.value===Ce):wy(De.ref)?De.ref.value="":(De.ref.value=Ce,De.ref.type||h.values.next({name:q,values:{...o}})))}(te.shouldDirty||te.shouldTouch)&&T(q,Ce,te.shouldTouch,te.shouldDirty,!0),te.shouldValidate&&L(q)},I=(q,Y,te)=>{for(const he in Y){const Ce=Y[he],De=`${q}.${he}`,_e=Te(r,De);(l.array.has(q)||un(Ce)||_e&&!_e._f)&&!ga(Ce)?I(De,Ce,te):j(De,Ce,te)}},R=(q,Y,te={})=>{const he=Te(r,q),Ce=l.array.has(q),De=dr(Y);St(o,q,De),Ce?(h.array.next({name:q,values:{...o}}),(f.isDirty||f.dirtyFields)&&te.shouldDirty&&h.state.next({name:q,dirtyFields:js(i,o),isDirty:G(q,De)})):he&&!he._f&&!Xn(De)?I(q,De,te):j(q,De,te),g1(q,l)&&h.state.next({...n}),h.values.next({name:u.mount?q:void 0,values:{...o}})},B=async q=>{u.mount=!0;const Y=q.target;let te=Y.name,he=!0;const Ce=Te(r,te),De=()=>Y.type?Wh(Ce._f):LC(q),_e=Ve=>{he=Number.isNaN(Ve)||ga(Ve)&&isNaN(Ve.getTime())||Po(Ve,Te(o,te,Ve))};if(Ce){let Ve,ht;const ut=De(),_t=q.type===Yd.BLUR||q.type===Yd.FOCUS_OUT,En=!DB(Ce._f)&&!t.resolver&&!Te(n.errors,te)&&!Ce._f.deps||EB(_t,Te(n.touchedFields,te),n.isSubmitted,m,g),Cn=g1(te,l,_t);St(o,te,ut),_t?(Ce._f.onBlur&&Ce._f.onBlur(q),c&&c(0)):Ce._f.onChange&&Ce._f.onChange(q);const Ht=T(te,ut,_t,!1),Rn=!fr(Ht)||Cn;if(!_t&&h.values.next({name:te,type:q.type,values:{...o}}),En)return f.isValid&&(t.mode==="onBlur"&&_t?C():_t||C()),Rn&&h.state.next({name:te,...Cn?{}:Ht});if(!_t&&Cn&&h.state.next({...n}),t.resolver){const{errors:Jt}=await S([te]);if(_e(ut),he){const yt=D1(n.errors,r,te),On=D1(Jt,r,yt.name||te);Ve=On.error,te=On.name,ht=fr(Jt)}}else x([te],!0),Ve=(await x1(Ce,l.disabled,o,$,t.shouldUseNativeValidation))[te],x([te]),_e(ut),he&&(Ve?ht=!1:f.isValid&&(ht=await O(r,!0)));he&&(Ce._f.deps&&L(Ce._f.deps),V(te,ht,Ve,Ht))}},J=(q,Y)=>{if(Te(n.errors,Y)&&q.focus)return q.focus(),1},L=async(q,Y={})=>{let te,he;const Ce=sl(q);if(t.resolver){const De=await z(an(q)?q:Ce);te=fr(De),he=q?!Ce.some(_e=>Te(De,_e)):te}else q?(he=(await Promise.all(Ce.map(async De=>{const _e=Te(r,De);return await O(_e&&_e._f?{[De]:_e}:_e)}))).every(Boolean),!(!he&&!n.isValid)&&C()):he=te=await O(r);return h.state.next({...!Ai(q)||f.isValid&&te!==n.isValid?{}:{name:q},...t.resolver||!q?{isValid:te}:{},errors:n.errors}),Y.shouldFocus&&!he&&ll(r,J,q?Ce:l.mount),he},U=q=>{const Y={...u.mount?o:i};return an(q)?Y:Ai(q)?Te(Y,q):q.map(te=>Te(Y,te))},re=(q,Y)=>({invalid:!!Te((Y||n).errors,q),isDirty:!!Te((Y||n).dirtyFields,q),error:Te((Y||n).errors,q),isValidating:!!Te(n.validatingFields,q),isTouched:!!Te((Y||n).touchedFields,q)}),oe=q=>{q&&sl(q).forEach(Y=>mn(n.errors,Y)),h.state.next({errors:q?n.errors:{}})},fe=(q,Y,te)=>{const he=(Te(r,q,{_f:{}})._f||{}).ref,Ce=Te(n.errors,q)||{},{ref:De,message:_e,type:Ve,...ht}=Ce;St(n.errors,q,{...ht,...Y,ref:he}),h.state.next({name:q,errors:n.errors,isValid:!1}),te&&te.shouldFocus&&he&&he.focus&&he.focus()},ie=(q,Y)=>Ei(q)?h.values.subscribe({next:te=>q(K(void 0,Y),te)}):K(q,Y,!0),Ee=(q,Y={})=>{for(const te of q?sl(q):l.mount)l.mount.delete(te),l.array.delete(te),Y.keepValue||(mn(r,te),mn(o,te)),!Y.keepError&&mn(n.errors,te),!Y.keepDirty&&mn(n.dirtyFields,te),!Y.keepTouched&&mn(n.touchedFields,te),!Y.keepIsValidating&&mn(n.validatingFields,te),!t.shouldUnregister&&!Y.keepDefaultValue&&mn(i,te);h.values.next({values:{...o}}),h.state.next({...n,...Y.keepDirty?{isDirty:G()}:{}}),!Y.keepIsValid&&C()},$e=({disabled:q,name:Y,field:te,fields:he})=>{(Ur(q)&&u.mount||q||l.disabled.has(Y))&&(q?l.disabled.add(Y):l.disabled.delete(Y),T(Y,Wh(te?te._f:Te(he,Y)._f),!1,!1,!0))},ne=(q,Y={})=>{let te=Te(r,q);const he=Ur(Y.disabled)||Ur(t.disabled);return St(r,q,{...te||{},_f:{...te&&te._f?te._f:{ref:{name:q}},name:q,mount:!0,...Y}}),l.mount.add(q),te?$e({field:te,disabled:Ur(Y.disabled)?Y.disabled:t.disabled,name:q}):E(q,!0,Y.value),{...he?{disabled:Y.disabled||t.disabled}:{},...t.progressive?{required:!!Y.required,min:Ks(Y.min),max:Ks(Y.max),minLength:Ks(Y.minLength),maxLength:Ks(Y.maxLength),pattern:Ks(Y.pattern)}:{},name:q,onChange:B,onBlur:B,ref:Ce=>{if(Ce){ne(q,Y),te=Te(r,q);const De=an(Ce.value)&&Ce.querySelectorAll&&Ce.querySelectorAll("input,select,textarea")[0]||Ce,_e=$B(De),Ve=te._f.refs||[];if(_e?Ve.find(ht=>ht===De):De===te._f.ref)return;St(r,q,{_f:{...te._f,..._e?{refs:[...Ve.filter(zh),De,...Array.isArray(Te(i,q))?[{}]:[]],ref:{type:De.type,name:q}}:{ref:De}}}),E(q,!1,void 0,De)}else te=Te(r,q,{}),te._f&&(te._f.mount=!1),(t.shouldUnregister||Y.shouldUnregister)&&!(VC(l.array,q)&&u.action)&&l.unMount.add(q)}}},ye=()=>t.shouldFocusError&&ll(r,J,l.mount),xe=q=>{Ur(q)&&(h.state.next({disabled:q}),ll(r,(Y,te)=>{const he=Te(r,te);he&&(Y.disabled=he._f.disabled||q,Array.isArray(he._f.refs)&&he._f.refs.forEach(Ce=>{Ce.disabled=he._f.disabled||q}))},0,!1))},pe=(q,Y)=>async te=>{let he;te&&(te.preventDefault&&te.preventDefault(),te.persist&&te.persist());let Ce=dr(o);if(l.disabled.size)for(const De of l.disabled)St(Ce,De,void 0);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:De,values:_e}=await S();n.errors=De,Ce=_e}else await O(r);if(mn(n.errors,"root"),fr(n.errors)){h.state.next({errors:{}});try{await q(Ce,te)}catch(De){he=De}}else Y&&await Y({...n.errors},te),ye(),setTimeout(ye);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:fr(n.errors)&&!he,submitCount:n.submitCount+1,errors:n.errors}),he)throw he},le=(q,Y={})=>{Te(r,q)&&(an(Y.defaultValue)?R(q,dr(Te(i,q))):(R(q,Y.defaultValue),St(i,q,dr(Y.defaultValue))),Y.keepTouched||mn(n.touchedFields,q),Y.keepDirty||(mn(n.dirtyFields,q),n.isDirty=Y.defaultValue?G(q,dr(Te(i,q))):G()),Y.keepError||(mn(n.errors,q),f.isValid&&C()),h.state.next({...n}))},Me=(q,Y={})=>{const te=q?dr(q):i,he=dr(te),Ce=fr(q),De=Ce?i:he;if(Y.keepDefaultValues||(i=te),!Y.keepValues){if(Y.keepDirtyValues){const _e=new Set([...l.mount,...Object.keys(js(i,o))]);for(const Ve of Array.from(_e))Te(n.dirtyFields,Ve)?St(De,Ve,Te(o,Ve)):R(Ve,Te(De,Ve))}else{if(by&&an(q))for(const _e of l.mount){const Ve=Te(r,_e);if(Ve&&Ve._f){const ht=Array.isArray(Ve._f.refs)?Ve._f.refs[0]:Ve._f.ref;if(Zd(ht)){const ut=ht.closest("form");if(ut){ut.reset();break}}}}r={}}o=t.shouldUnregister?Y.keepDefaultValues?dr(i):{}:dr(De),h.array.next({values:{...De}}),h.values.next({values:{...De}})}l={mount:Y.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},u.mount=!f.isValid||!!Y.keepIsValid||!!Y.keepDirtyValues,u.watch=!!t.shouldUnregister,h.state.next({submitCount:Y.keepSubmitCount?n.submitCount:0,isDirty:Ce?!1:Y.keepDirty?n.isDirty:!!(Y.keepDefaultValues&&!Po(q,i)),isSubmitted:Y.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Ce?{}:Y.keepDirtyValues?Y.keepDefaultValues&&o?js(i,o):n.dirtyFields:Y.keepDefaultValues&&q?js(i,q):Y.keepDirty?n.dirtyFields:{},touchedFields:Y.keepTouched?n.touchedFields:{},errors:Y.keepErrors?n.errors:{},isSubmitSuccessful:Y.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Xe=(q,Y)=>Me(Ei(q)?q(o):q,Y);return{control:{register:ne,unregister:Ee,getFieldState:re,handleSubmit:pe,setError:fe,_executeSchema:S,_getWatch:K,_getDirty:G,_updateValid:C,_removeUnmounted:M,_updateFieldArray:v,_updateDisabledField:$e,_getFieldArray:W,_reset:Me,_resetDefaultValues:()=>Ei(t.defaultValues)&&t.defaultValues().then(q=>{Xe(q,t.resetOptions),h.state.next({isLoading:!1})}),_updateFormState:q=>{n={...n,...q}},_disableForm:xe,_subjects:h,_proxyFormState:f,_setErrors:P,get _fields(){return r},get _formValues(){return o},get _state(){return u},set _state(q){u=q},get _defaultValues(){return i},get _names(){return l},set _names(q){l=q},get _formState(){return n},set _formState(q){n=q},get _options(){return t},set _options(q){t={...t,...q}}},trigger:L,register:ne,handleSubmit:pe,watch:ie,setValue:R,getValues:U,reset:Xe,resetField:le,clearErrors:oe,unregister:Ee,setError:fe,setFocus:(q,Y={})=>{const te=Te(r,q),he=te&&te._f;if(he){const Ce=he.refs?he.refs[0]:he.ref;Ce.focus&&(Ce.focus(),Y.shouldSelect&&Ei(Ce.select)&&Ce.select())}},getFieldState:re}}function TB(e={}){const t=b.useRef(void 0),n=b.useRef(void 0),[r,i]=b.useState({isDirty:!1,isValidating:!1,isLoading:Ei(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Ei(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...AB(e),formState:r});const o=t.current.control;return o._options=e,xy({subject:o._subjects.state,next:u=>{UC(u,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),b.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),b.useEffect(()=>{if(o._proxyFormState.isDirty){const u=o._getDirty();u!==r.isDirty&&o._subjects.state.next({isDirty:u})}},[o,r.isDirty]),b.useEffect(()=>{e.values&&!Po(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,i(u=>({...u}))):o._resetDefaultValues()},[e.values,o]),b.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),b.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),b.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=KC(r,o),t.current}function Mu(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function ig(e,t,n,r,i){let o={};for(let l in t)o[l]=Math.floor(t[l]/2),o[l]>0&&t[l]%2===0&&o[l]--;let u=ya(e,t,n).subtract(o);return vl(e,u,t,n,r,i)}function ya(e,t,n,r,i){let o=e;return t.years?o=BF(e):t.months?o=Bl(e):t.weeks&&(o=hl(e,n)),vl(e,o,t,n,r,i)}function og(e,t,n,r,i){let o={...t};o.days?o.days--:o.weeks?o.weeks--:o.months?o.months--:o.years&&o.years--;let u=ya(e,t,n).subtract(o);return vl(e,u,t,n,r,i)}function vl(e,t,n,r,i,o){if(i&&e.compare(i)>=0){let u=uy(t,ya(nr(i),n,r));u&&(t=u)}if(o&&e.compare(o)<=0){let u=ay(t,og(nr(o),n,r));u&&(t=u)}return t}function Co(e,t,n){if(t){let r=uy(e,nr(t));r&&(e=r)}if(n){let r=ay(e,nr(n));r&&(e=r)}return e}function XC(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 e5(e){let t=b.useMemo(()=>new Hr(e.locale),[e.locale]),n=b.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:o={months:1},minValue:u,maxValue:l,selectionAlignment:c,isDateUnavailable:d,pageBehavior:f="visible"}=e,h=b.useMemo(()=>i(n.calendar),[i,n.calendar]);var g;let[m,$]=Cr(e.value,(g=e.defaultValue)!==null&&g!==void 0?g:null,e.onChange),w=b.useMemo(()=>m?Yt(nr(m),h):null,[m,h]),C=b.useMemo(()=>m&&"timeZone"in m?m.timeZone:n.timeZone,[m,n.timeZone]),x=b.useMemo(()=>e.focusedValue?Co(Yt(nr(e.focusedValue),h),u,l):void 0,[e.focusedValue,h,u,l]),v=b.useMemo(()=>Co(e.defaultFocusedValue?Yt(nr(e.defaultFocusedValue),h):w||Yt(Of(C),h),u,l),[e.defaultFocusedValue,w,C,h,u,l]),[D,P]=Cr(x,v,e.onFocusChange),[E,T]=b.useState(()=>{switch(c){case"start":return ya(D,o,r,u,l);case"end":return og(D,o,r,u,l);case"center":default:return ig(D,o,r,u,l)}}),[V,S]=b.useState(e.autoFocus||!1),z=b.useMemo(()=>{let L={...o};return L.days?L.days--:L.days=-1,E.add(L)},[E,o]),[O,M]=b.useState(h.identifier);if(h.identifier!==O){let L=Yt(D,h);T(ig(L,o,r,u,l)),P(L),M(h.identifier)}Mu(D,u,l)?P(Co(D,u,l)):D.compare(E)<0?T(og(D,o,r,u,l)):D.compare(z)>0&&T(ya(D,o,r,u,l));function G(L){L=Co(L,u,l),P(L)}function K(L){if(!e.isDisabled&&!e.isReadOnly){let U=L;if(U===null){$(null);return}if(U=Co(U,u,l),U=XC(U,E,d),!U)return;U=Yt(U,(m==null?void 0:m.calendar)||new rr),m&&"hour"in m?$(m.set(U)):$(U)}}let W=b.useMemo(()=>w?d&&d(w)?!0:Mu(w,u,l):!1,[w,d,u,l]),j=e.isInvalid||e.validationState==="invalid"||W,I=j?"invalid":null,R=b.useMemo(()=>f==="visible"?o:Hh(o),[f,o]);var B,J;return{isDisabled:(B=e.isDisabled)!==null&&B!==void 0?B:!1,isReadOnly:(J=e.isReadOnly)!==null&&J!==void 0?J:!1,value:w,setValue:K,visibleRange:{start:E,end:z},minValue:u,maxValue:l,focusedDate:D,timeZone:C,validationState:I,isValueInvalid:j,setFocusedDate(L){G(L),S(!0)},focusNextDay(){G(D.add({days:1}))},focusPreviousDay(){G(D.subtract({days:1}))},focusNextRow(){o.days?this.focusNextPage():(o.weeks||o.months||o.years)&&G(D.add({weeks:1}))},focusPreviousRow(){o.days?this.focusPreviousPage():(o.weeks||o.months||o.years)&&G(D.subtract({weeks:1}))},focusNextPage(){let L=E.add(R);P(Co(D.add(R),u,l)),T(ya(vl(D,L,R,r,u,l),R,r))},focusPreviousPage(){let L=E.subtract(R);P(Co(D.subtract(R),u,l)),T(ya(vl(D,L,R,r,u,l),R,r))},focusSectionStart(){o.days?G(E):o.weeks?G(hl(D,r)):(o.months||o.years)&&G(Bl(D))},focusSectionEnd(){o.days?G(z):o.weeks?G(VF(D,r)):(o.months||o.years)&&G(Um(D))},focusNextSection(L){if(!L&&!o.days){G(D.add(Hh(o)));return}o.days?this.focusNextPage():o.weeks?G(D.add({months:1})):(o.months||o.years)&&G(D.add({years:1}))},focusPreviousSection(L){if(!L&&!o.days){G(D.subtract(Hh(o)));return}o.days?this.focusPreviousPage():o.weeks?G(D.subtract({months:1})):(o.months||o.years)&&G(D.subtract({years:1}))},selectFocusedDate(){K(D)},selectDate(L){K(L)},isFocused:V,setFocused:S,isInvalid(L){return Mu(L,u,l)},isSelected(L){return w!=null&&gn(L,w)&&!this.isCellDisabled(L)&&!this.isCellUnavailable(L)},isCellFocused(L){return V&&D&&gn(L,D)},isCellDisabled(L){return e.isDisabled||L.compare(E)<0||L.compare(z)>0||this.isInvalid(L)},isCellUnavailable(L){return e.isDateUnavailable?e.isDateUnavailable(L):!1},isPreviousVisibleRangeInvalid(){let L=E.subtract({days:1});return gn(L,E)||this.isInvalid(L)},isNextVisibleRangeInvalid(){let L=z.add({days:1});return gn(L,z)||this.isInvalid(L)},getDatesInWeek(L,U=E){let re=U.add({weeks:L}),oe=[];re=hl(re,r);let fe=oy(re,r);for(let ie=0;ie<fe;ie++)oe.push(null);for(;oe.length<7;){oe.push(re);let ie=re.add({days:1});if(gn(re,ie))break;re=ie}for(;oe.length<7;)oe.push(null);return oe}}}function Hh(e){let t={...e};for(let n in e)t[n]=1;return t}function PB(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:o,visibleDuration:u={months:1},minValue:l,maxValue:c,...d}=e,[f,h]=Cr(t,n||null,r),[g,m]=b.useState(null),$="center";if(f&&f.start&&f.end){let B=ig(nr(f.start),u,o,l,c).add(u).subtract({days:1});f.end.compare(B)>0&&($="start")}let w=b.useRef(null),[C,x]=b.useState(null),v=b.useMemo(()=>uy(l,C==null?void 0:C.start),[l,C]),D=b.useMemo(()=>ay(c,C==null?void 0:C.end),[c,C]),P=e5({...d,value:f&&f.start,createCalendar:i,locale:o,visibleDuration:u,minValue:v,maxValue:D,selectionAlignment:$}),E=R=>{if(R&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){const B=C1(R,P,-1),J=C1(R,P,1);w.current={start:B,end:J},x(w.current)}else w.current=null,x(null)},[T,V]=b.useState(P.visibleRange);(!Km(P.visibleRange.start,T.start)||!Km(P.visibleRange.end,T.end))&&(E(g),V(P.visibleRange));let S=R=>{R?(m(R),E(R)):(m(null),E(null))},z=g?Gh(g,P.focusedDate):f&&Gh(f.start,f.end),O=R=>{if(e.isReadOnly)return;const B=Co(R,v,D),J=XC(B,P.visibleRange.start,e.isDateUnavailable);if(J)if(!g)S(J);else{let L=Gh(g,J);L&&h({start:E1(L.start,f==null?void 0:f.start),end:E1(L.end,f==null?void 0:f.end)}),S(null)}},[M,G]=b.useState(!1),{isDateUnavailable:K}=e,W=b.useMemo(()=>!f||g?!1:K&&(K(f.start)||K(f.end))?!0:Mu(f.start,l,c)||Mu(f.end,l,c),[K,f,g,l,c]),j=e.isInvalid||e.validationState==="invalid"||W;return{...P,value:f,setValue:h,anchorDate:g,setAnchorDate:S,highlightedRange:z,validationState:j?"invalid":null,isValueInvalid:j,selectFocusedDate(){O(P.focusedDate)},selectDate:O,highlightDate(R){g&&P.setFocusedDate(R)},isSelected(R){return!!(z&&R.compare(z.start)>=0&&R.compare(z.end)<=0&&!P.isCellDisabled(R)&&!P.isCellUnavailable(R))},isInvalid(R){var B,J;return P.isInvalid(R)||Mu(R,(B=w.current)===null||B===void 0?void 0:B.start,(J=w.current)===null||J===void 0?void 0:J.end)},isDragging:M,setDragging:G}}function Gh(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:nr(e),end:nr(t)})}function E1(e,t){return e=Yt(e,(t==null?void 0:t.calendar)||new rr),t&&"hour"in t?t.set(e):e}function C1(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 ag{*[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=u=>{if(this.keyMap.set(u.key,u),u.childNodes&&u.type==="section")for(let l of u.childNodes)n(l)};for(let u of t)n(u);let r=null,i=0;for(let[u,l]of this.keyMap)r?(r.nextKey=u,l.prevKey=r.key):(this.firstKey=u,l.prevKey=void 0),l.type==="item"&&(l.index=i++),r=l,r.nextKey=void 0;var o;this.lastKey=(o=r==null?void 0:r.key)!==null&&o!==void 0?o:null}}class ni extends Set{constructor(t,n,r){super(t),t instanceof ni?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function _B(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function RB(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=e,u=b.useRef(!1),[,l]=b.useState(!1),c=b.useRef(null),d=b.useRef(null),[,f]=b.useState(null),h=b.useMemo(()=>S1(e.selectedKeys),[e.selectedKeys]),g=b.useMemo(()=>S1(e.defaultSelectedKeys,new ni),[e.defaultSelectedKeys]),[m,$]=Cr(h,g,e.onSelectionChange),w=b.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[C,x]=b.useState(i);i==="replace"&&C==="toggle"&&typeof m=="object"&&m.size===0&&x("replace");let v=b.useRef(i);return b.useEffect(()=>{i!==v.current&&(x(i),v.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:C,setSelectionBehavior:x,get isFocused(){return u.current},setFocused(D){u.current=D,l(D)},get focusedKey(){return c.current},get childFocusStrategy(){return d.current},setFocusedKey(D,P="first"){c.current=D,d.current=P,f(D)},selectedKeys:m,setSelectedKeys(D){(r||!_B(D,m))&&$(D)},disabledKeys:w,disabledBehavior:o}}function S1(e,t){return e?e==="all"?"all":new ni(e):t}class OB{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&&Kh(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&&Kh(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 ni([n],n,n);else{let u=this.state.selectedKeys;var i;let l=(i=u.anchorKey)!==null&&i!==void 0?i:n;r=new ni(u,l,n);var o;for(let c of this.getKeyRange(l,(o=u.currentKey)!==null&&o!==void 0?o:n))r.delete(c);for(let c of this.getKeyRange(n,l))this.canSelectItem(c)&&r.add(c)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),i=this.collection.getItem(n);return r&&i?Kh(this.collection,r,i)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let i=[],o=t;for(;o!=null;){let u=this.collection.getItem(o);if(u&&(u.type==="item"||u.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===n)return i;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new ni(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 ni([n],n,n):new ni;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new ni;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 u=this.collection.getItem(r);(u==null?void 0:u.type)==="item"&&t.push(r);var o;u!=null&&u.hasChildNodes&&(this.allowsCellSelection||u.type!=="item")&&n((o=(i=Hk(Lf(u,this.collection)))===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new ni)}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 FB(e){let{filter:t,layoutDelegate:n}=e,r=RB(e),i=b.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=b.useCallback(f=>t?new ag(t(f)):new ag(f),[t]),u=b.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),l=Wk(e,o,u),c=b.useMemo(()=>new OB(l,r,{layoutDelegate:n}),[l,r,n]);const d=b.useRef(null);return b.useEffect(()=>{if(r.focusedKey!=null&&!l.getItem(r.focusedKey)&&d.current){const x=d.current.getItem(r.focusedKey),v=[...d.current.getKeys()].map(S=>{const z=d.current.getItem(S);return(z==null?void 0:z.type)==="item"?z:null}).filter(S=>S!==null),D=[...l.getKeys()].map(S=>{const z=l.getItem(S);return(z==null?void 0:z.type)==="item"?z:null}).filter(S=>S!==null);var f,h;const P=((f=v==null?void 0:v.length)!==null&&f!==void 0?f:0)-((h=D==null?void 0:D.length)!==null&&h!==void 0?h:0);var g,m,$;let E=Math.min(P>1?Math.max(((g=x==null?void 0:x.index)!==null&&g!==void 0?g:0)-P+1,0):(m=x==null?void 0:x.index)!==null&&m!==void 0?m:0,(($=D==null?void 0:D.length)!==null&&$!==void 0?$:0)-1),T=null,V=!1;for(;E>=0;){if(!c.isDisabled(D[E].key)){T=D[E];break}if(E<D.length-1&&!V)E++;else{V=!0;var w,C;E>((w=x==null?void 0:x.index)!==null&&w!==void 0?w:0)&&(E=(C=x==null?void 0:x.index)!==null&&C!==void 0?C:0),E--}}r.setFocusedKey(T?T.key:null)}d.current=l},[l,c,r,r.focusedKey]),{collection:l,disabledKeys:i,selectionManager:c}}function MB(e){var t;let[n,r]=Cr(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),i=b.useMemo(()=>n!=null?[n]:[],[n]),{collection:o,disabledKeys:u,selectionManager:l}=FB({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:d=>{if(d==="all")return;var f;let h=(f=d.values().next().value)!==null&&f!==void 0?f:null;h===n&&e.onSelectionChange&&e.onSelectionChange(h),r(h)}}),c=n!=null?o.getItem(n):null;return{collection:o,disabledKeys:u,selectionManager:l,selectedKey:n,setSelectedKey:r,selectedItem:c}}function Ey(e){let[t,n]=Cr(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=b.useCallback(()=>{n(!0)},[n]),i=b.useCallback(()=>{n(!1)},[n]),o=b.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:o}}function kB(e){var t;let{defaultFilter:n,menuTrigger:r="input",allowsEmptyCollection:i=!1,allowsCustomValue:o,shouldCloseOnBlur:u=!0}=e,[l,c]=b.useState(!1),[d,f]=b.useState(!1),[h,g]=b.useState(null),m=Y=>{e.onSelectionChange&&e.onSelectionChange(Y),Y===x&&(fe(),U())};var $;let{collection:w,selectionManager:C,selectedKey:x,setSelectedKey:v,selectedItem:D,disabledKeys:P}=MB({...e,onSelectionChange:m,items:($=e.items)!==null&&$!==void 0?$:e.defaultItems}),E=e.defaultInputValue;if(E==null){var T,V;x==null?E="":E=(V=(T=w.getItem(x))===null||T===void 0?void 0:T.textValue)!==null&&V!==void 0?V:""}let[S,z]=Cr(e.inputValue,E,e.onInputChange),O=w,M=b.useMemo(()=>e.items!=null||!n?w:BB(w,S,n),[w,S,n,e.items]),[G,K]=b.useState(M),W=b.useRef("focus"),I=Ey({...e,onOpenChange:Y=>{e.onOpenChange&&e.onOpenChange(Y,Y?W.current:void 0),C.setFocused(Y),Y||C.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),R=(Y=null,te)=>{let he=te==="manual"||te==="focus"&&r==="focus";(i||M.size>0||he&&O.size>0||e.items)&&(he&&!I.isOpen&&e.items===void 0&&c(!0),W.current=te,g(Y),I.open())},B=(Y=null,te)=>{let he=te==="manual"||te==="focus"&&r==="focus";!(i||M.size>0||he&&O.size>0||e.items)&&!I.isOpen||(he&&!I.isOpen&&e.items===void 0&&c(!0),I.isOpen||(W.current=te),L(Y))},J=b.useCallback(()=>{K(l?O:M)},[l,O,M]),L=b.useCallback((Y=null)=>{I.isOpen&&J(),g(Y),I.toggle()},[I,J]),U=b.useCallback(()=>{I.isOpen&&(J(),I.close())},[I,J]),[re,oe]=b.useState(S),fe=()=>{var Y,te;let he=x!=null&&(te=(Y=w.getItem(x))===null||Y===void 0?void 0:Y.textValue)!==null&&te!==void 0?te:"";oe(he),z(he)};var ie,Ee;let $e=b.useRef((Ee=(ie=e.selectedKey)!==null&&ie!==void 0?ie:e.defaultSelectedKey)!==null&&Ee!==void 0?Ee:null);var ne;let ye=b.useRef(x!=null&&(ne=(t=w.getItem(x))===null||t===void 0?void 0:t.textValue)!==null&&ne!==void 0?ne:"");b.useEffect(()=>{var Y;d&&(M.size>0||i)&&!I.isOpen&&S!==re&&r!=="manual"&&R(null,"input"),!l&&!i&&I.isOpen&&M.size===0&&U(),x!=null&&x!==$e.current&&U(),S!==re&&(C.setFocusedKey(null),c(!1),S===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&v(null)),x!==$e.current&&(e.inputValue===void 0||e.selectedKey===void 0)?fe():re!==S&&oe(S);var te;let he=x!=null&&(te=(Y=w.getItem(x))===null||Y===void 0?void 0:Y.textValue)!==null&&te!==void 0?te:"";!d&&x!=null&&e.inputValue===void 0&&x===$e.current&&ye.current!==he&&(oe(he),z(he)),$e.current=x,ye.current=he});let xe=Vl({...e,value:b.useMemo(()=>({inputValue:S,selectedKey:x}),[S,x])}),pe=()=>{o&&x==null?le():Me()},le=()=>{$e.current=null,v(null),U()},Me=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var Y,te;(Y=e.onSelectionChange)===null||Y===void 0||Y.call(e,x);var he;let Ce=x!=null&&(he=(te=w.getItem(x))===null||te===void 0?void 0:te.textValue)!==null&&he!==void 0?he:"";oe(Ce),U()}else fe(),U()};const Xe=()=>{if(o){var Y,te;const he=x!=null&&(te=(Y=w.getItem(x))===null||Y===void 0?void 0:Y.textValue)!==null&&te!==void 0?te:"";S===he?Me():le()}else Me()};let ct=()=>{I.isOpen&&C.focusedKey!=null?x===C.focusedKey?Me():v(C.focusedKey):Xe()},vn=b.useRef(S),gt=Y=>{Y?(vn.current=S,r==="focus"&&!e.isReadOnly&&R(null,"focus")):(u&&Xe(),S!==vn.current&&xe.commitValidation()),f(Y)},q=b.useMemo(()=>I.isOpen?l?O:M:G,[I.isOpen,O,M,l,G]);return{...xe,...I,focusStrategy:h,toggle:B,open:R,close:Xe,selectionManager:C,selectedKey:x,setSelectedKey:v,disabledKeys:P,isFocused:d,setFocused:gt,selectedItem:D,collection:q,inputValue:S,setInputValue:z,commit:ct,revert:pe}}function BB(e,t,n){return new ag(t5(e,e,t,n))}function t5(e,t,n,r){let i=[];for(let o of t)if(o.type==="section"&&o.hasChildNodes){let u=t5(e,Lf(o,e),n,r);[...u].some(l=>l.type==="item")&&i.push({...o,childNodes:u})}else o.type==="item"&&r(o.textValue,n)?i.push({...o}):o.type!=="item"&&i.push({...o});return i}var n5={};n5={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var r5={};r5={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var i5={};i5={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 o5={};o5={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 a5={};a5={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 u5={};u5={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var s5={};s5={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 l5={};l5={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 c5={};c5={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 d5={};d5={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 f5={};f5={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 p5={};p5={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var h5={};h5={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 m5={};m5={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 g5={};g5={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 y5={};y5={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var v5={};v5={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var b5={};b5={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 $5={};$5={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 x5={};x5={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 w5={};w5={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 D5={};D5={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 E5={};E5={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 C5={};C5={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 S5={};S5={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 A5={};A5={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var T5={};T5={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 P5={};P5={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 _5={};_5={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 R5={};R5={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 O5={};O5={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 F5={};F5={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var M5={};M5={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var k5={};k5={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var B5={};B5={"ar-AE":n5,"bg-BG":r5,"cs-CZ":i5,"da-DK":o5,"de-DE":a5,"el-GR":u5,"en-US":s5,"es-ES":l5,"et-EE":c5,"fi-FI":d5,"fr-FR":f5,"he-IL":p5,"hr-HR":h5,"hu-HU":m5,"it-IT":g5,"ja-JP":y5,"ko-KR":v5,"lt-LT":b5,"lv-LV":$5,"nb-NO":x5,"nl-NL":w5,"pl-PL":D5,"pt-BR":E5,"pt-PT":C5,"ro-RO":S5,"ru-RU":A5,"sk-SK":T5,"sl-SI":P5,"sr-SP":_5,"sv-SE":R5,"tr-TR":O5,"uk-UA":F5,"zh-CN":M5,"zh-TW":k5};function IB(e){return e&&e.__esModule?e.default:e}const I5=new Ho(IB(B5));function L5(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function Xd(e,t,n,r,i){let o=e!=null&&n!=null&&e.compare(n)>0,u=e!=null&&t!=null&&e.compare(t)<0,l=e!=null&&(r==null?void 0:r(e))||!1,c=o||u||l,d=[];if(c){let f=L5(),h=Ho.getGlobalDictionaryForPackage("@react-stately/datepicker")||I5,g=new Px(f,h),m=new Hr(f,to({},i)),$=m.resolvedOptions().timeZone;u&&t!=null&&d.push(g.format("rangeUnderflow",{minValue:m.format(t.toDate($))})),o&&n!=null&&d.push(g.format("rangeOverflow",{maxValue:m.format(n.toDate($))})),l&&d.push(g.format("unavailableDate"))}return{isInvalid:c,validationErrors:d,validationDetails:{badInput:l,customError:!1,patternMismatch:!1,rangeOverflow:o,rangeUnderflow:u,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!c}}}function LB(e,t,n,r,i){var o;let u=Xd((o=e==null?void 0:e.start)!==null&&o!==void 0?o:null,t,n,r,i);var l;let c=Xd((l=e==null?void 0:e.end)!==null&&l!==void 0?l:null,t,n,r,i),d=Gd(u,c);if((e==null?void 0:e.end)!=null&&e.start!=null&&e.end.compare(e.start)<0){let f=Ho.getGlobalDictionaryForPackage("@react-stately/datepicker")||I5;d=Gd(d,{isInvalid:!0,validationErrors:[f.getStringForLocale("rangeReversed",L5())],validationDetails:{...Mf,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return d}const VB={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},NB={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function to(e,t){e={...t.shouldForceLeadingZeros?NB:VB,...e};let r=t.granularity||"minute",i=Object.keys(e);var o;let u=i.indexOf((o=t.maxGranularity)!==null&&o!==void 0?o:"year");u<0&&(u=0);let l=i.indexOf(r);if(l<0&&(l=2),u>l)throw new Error("maxGranularity must be greater than granularity");let c=i.slice(u,l+1).reduce((f,h)=>(f[h]=e[h],f),{});return t.hourCycle!=null&&(c.hour12=t.hourCycle===12),c.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(c.timeZoneName="short"),t.showEra&&u===0&&(c.era="short"),c}function Eu(e){return e&&"hour"in e?e:new Il}function V5(e,t){if(e===null)return null;if(e)return Yt(e,t)}function Us(e,t,n,r){if(e)return V5(e,n);let i=Yt(Fx(r??kl()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?nr(i):r?i:ci(i)}function Cy(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[i,o]=b.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&o([r,n]),t||(t=e?r:i[0]);let u=e?n:i[1];return[t,u]}function jB(e){let t=Ey(e),[n,r]=Cr(e.value,e.defaultValue||null,e.onChange),i=n||e.placeholderValue||null,[o,u]=Cy(i,e.granularity),l=n!=null?n.toDate(u??"UTC"):null,c=o==="hour"||o==="minute"||o==="second";var d;let f=(d=e.shouldCloseOnSelect)!==null&&d!==void 0?d:!0,[h,g]=b.useState(null),[m,$]=b.useState(null);if(n&&(h=n,"hour"in n&&(m=n)),i&&!(o in i))throw new Error("Invalid granularity "+o+" for value "+i.toString());let w=(n==null?void 0:n.calendar.identifier)==="gregory"&&n.era==="BC",C=b.useMemo(()=>({granularity:o,timeZone:u,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:w}),[o,e.hourCycle,e.shouldForceLeadingZeros,u,e.hideTimeZone,w]),{minValue:x,maxValue:v,isDateUnavailable:D}=e,P=b.useMemo(()=>Xd(n,x,v,D,C),[n,x,v,D,C]),E=Vl({...e,value:n,builtinValidation:P}),T=E.displayValidation.isInvalid,V=e.validationState||(T?"invalid":null),S=(M,G)=>{r("timeZone"in G?G.set(nr(M)):ci(M,G)),g(null),$(null),E.commitValidation()};return{...E,value:n,setValue:r,dateValue:h,timeValue:m,setDateValue:M=>{let G=typeof f=="function"?f():f;c?m||G?S(M,m||Eu(e.defaultValue||e.placeholderValue)):g(M):(r(M),E.commitValidation()),G&&t.setOpen(!1)},setTimeValue:M=>{h&&M?S(h,M):$(M)},granularity:o,hasTime:c,...t,setOpen(M){!M&&!n&&h&&c&&S(h,m||Eu(e.defaultValue||e.placeholderValue)),t.setOpen(M)},validationState:V,isInvalid:T,formatValue(M,G){if(!l)return"";let K=to(G,C);return new Hr(M,K).format(l)},getDateFormatter(M,G){let K={...C,...G},W=to({},K);return new Hr(M,W)}}}const KB=new Ho({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 UB(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?KB.getStringForLocale(e,n):"––"}const id={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},A1={year:5,month:2,day:7,hour:2,minute:15,second:15},zB={dayperiod:"dayPeriod"};function N5(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:o=!1,isRequired:u=!1,minValue:l,maxValue:c,isDateUnavailable:d}=e,f=e.value||e.defaultValue||e.placeholderValue||null,[h,g]=Cy(f,e.granularity),m=g||"UTC";if(f&&!(h in f))throw new Error("Invalid granularity "+h+" for value "+f.toString());let $=b.useMemo(()=>new Hr(t),[t]),w=b.useMemo(()=>n($.resolvedOptions().calendar),[n,$]);var C;let[x,v]=Cr(e.value,(C=e.defaultValue)!==null&&C!==void 0?C:null,e.onChange),D=b.useMemo(()=>{var ne;return(ne=V5(x,w))!==null&&ne!==void 0?ne:null},[x,w]),[P,E]=b.useState(()=>Us(e.placeholderValue,h,w,g)),T=D||P,V=w.identifier==="gregory"&&T.era==="BC",S=b.useMemo(()=>{var ne;return{granularity:h,maxGranularity:(ne=e.maxGranularity)!==null&&ne!==void 0?ne:"year",timeZone:g,hideTimeZone:r,hourCycle:e.hourCycle,showEra:V,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,h,e.hourCycle,e.shouldForceLeadingZeros,g,r,V]),z=b.useMemo(()=>to({},S),[S]),O=b.useMemo(()=>new Hr(t,z),[t,z]),M=b.useMemo(()=>O.resolvedOptions(),[O]),G=b.useMemo(()=>O.formatToParts(new Date).filter(ne=>id[ne.type]).reduce((ne,ye)=>(ne[ye.type]=!0,ne),{}),[O]),[K,W]=b.useState(()=>e.value||e.defaultValue?{...G}:{}),j=b.useRef(null),I=b.useRef(w.identifier);b.useEffect(()=>{w.identifier!==I.current&&(I.current=w.identifier,E(ne=>Object.keys(K).length>0?Yt(ne,w):Us(e.placeholderValue,h,w,g)))},[w,h,K,g,e.placeholderValue]),x&&Object.keys(K).length<Object.keys(G).length&&(K={...G},W(K)),x==null&&Object.keys(K).length===Object.keys(G).length&&(K={},W(K),E(Us(e.placeholderValue,h,w,g)));let R=D&&Object.keys(K).length>=Object.keys(G).length?D:P,B=ne=>{if(e.isDisabled||e.isReadOnly)return;let ye=Object.keys(K),xe=Object.keys(G);ne==null?(v(null),E(Us(e.placeholderValue,h,w,g)),W({})):ye.length>=xe.length||ye.length===xe.length-1&&G.dayPeriod&&!K.dayPeriod&&j.current!=="dayPeriod"?(ne=Yt(ne,(f==null?void 0:f.calendar)||new rr),v(ne)):E(ne),j.current=null},J=b.useMemo(()=>R.toDate(m),[R,m]),L=b.useMemo(()=>O.formatToParts(J).map(ne=>{let ye=id[ne.type];ne.type==="era"&&w.getEras().length===1&&(ye=!1);let xe=id[ne.type]&&!K[ne.type],pe=id[ne.type]?UB(ne.type,ne.value,t):null;return{type:zB[ne.type]||ne.type,text:xe?pe:ne.value,...WB(R,ne.type,M),isPlaceholder:xe,placeholder:pe,isEditable:ye}}),[J,K,O,M,R,w,t]);G.era&&K.year&&!K.era?(K.era=!0,W({...K})):!G.era&&K.era&&(delete K.era,W({...K}));let U=ne=>{K[ne]=!0,ne==="year"&&G.era&&(K.era=!0),W({...K})},re=(ne,ye)=>{if(K[ne])B(HB(R,ne,ye,M));else{U(ne);let xe=Object.keys(K),pe=Object.keys(G);(xe.length>=pe.length||xe.length===pe.length-1&&G.dayPeriod&&!K.dayPeriod)&&B(R)}},oe=b.useMemo(()=>Xd(x,l,c,d,S),[x,l,c,d,S]),fe=Vl({...e,value:x,builtinValidation:oe}),ie=fe.displayValidation.isInvalid,Ee=e.validationState||(ie?"invalid":null);var $e;return{...fe,value:D,dateValue:J,calendar:w,setValue:B,segments:L,dateFormatter:O,validationState:Ee,isInvalid:ie,granularity:h,maxGranularity:($e=e.maxGranularity)!==null&&$e!==void 0?$e:"year",isDisabled:i,isReadOnly:o,isRequired:u,increment(ne){re(ne,1)},decrement(ne){re(ne,-1)},incrementPage(ne){re(ne,A1[ne]||1)},decrementPage(ne){re(ne,-(A1[ne]||1))},setSegment(ne,ye){U(ne),B(GB(R,ne,ye,M))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let ne=Object.keys(K),ye=Object.keys(G);ne.length===ye.length-1&&G.dayPeriod&&!K.dayPeriod&&(K={...G},W(K),B(R.copy()))},clearSegment(ne){delete K[ne],j.current=ne,W({...K});let ye=Us(e.placeholderValue,h,w,g),xe=R;if(ne==="dayPeriod"&&"hour"in R&&"hour"in ye){let pe=R.hour>=12,le=ye.hour>=12;pe&&!le?xe=R.set({hour:R.hour-12}):!pe&&le&&(xe=R.set({hour:R.hour+12}))}else ne in R&&(xe=R.set({[ne]:ye[ne]}));v(null),B(xe)},formatValue(ne){if(!D)return"";let ye=to(ne,S);return new Hr(t,ye).format(J)},getDateFormatter(ne,ye){let xe={...S,...ye},pe=to({},xe);return new Hr(ne,pe)}}}function WB(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:IF(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:LF(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 HB(e,t,n,r){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,n,{round:t==="year"})}if("hour"in e)switch(t){case"dayPeriod":{let i=e.hour,o=i>=12;return e.set({hour:o?i-12:i+12})}case"hour":case"minute":case"second":return e.cycle(t,n,{round:t!=="hour",hourCycle:r.hour12?12:24})}throw new Error("Unknown segment: "+t)}function GB(e,t,n,r){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:n})}if("hour"in e&&typeof n=="number")switch(t){case"dayPeriod":{let i=e.hour,o=i>=12;return n>=12===o?e:e.set({hour:o?i-12:i+12})}case"hour":if(r.hour12){let o=e.hour>=12;!o&&n===12&&(n=0),o&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}throw new Error("Unknown segment: "+t)}function qB(e){var t,n;let r=Ey(e),[i,o]=Cr(e.value,e.defaultValue||null,e.onChange),[u,l]=b.useState(()=>i||{start:null,end:null});i==null&&u.start&&u.end&&(u={start:null,end:null},l(u));let c=i||u,d=I=>{l(I||{start:null,end:null}),sa(I)?o(I):o(null)},f=(c==null?void 0:c.start)||(c==null?void 0:c.end)||e.placeholderValue||null,[h,g]=Cy(f,e.granularity),m=h==="hour"||h==="minute"||h==="second";var $;let w=($=e.shouldCloseOnSelect)!==null&&$!==void 0?$:!0,[C,x]=b.useState(null),[v,D]=b.useState(null);c&&sa(c)&&(C=c,"hour"in c.start&&(v=c));let P=(I,R)=>{d({start:"timeZone"in R.start?R.start.set(nr(I.start)):ci(I.start,R.start),end:"timeZone"in R.end?R.end.set(nr(I.end)):ci(I.end,R.end)}),x(null),D(null),K.commitValidation()},E=I=>{let R=typeof w=="function"?w():w;m?sa(I)&&(v!=null&&v.start)&&(v!=null&&v.end)?P(I,{start:(v==null?void 0:v.start)||Eu(e.placeholderValue),end:(v==null?void 0:v.end)||Eu(e.placeholderValue)}):x(I):sa(I)?(d(I),K.commitValidation()):x(I),R&&r.setOpen(!1)},T=I=>{sa(C)&&sa(I)?P(C,I):D(I)},V=(c==null||(t=c.start)===null||t===void 0?void 0:t.calendar.identifier)==="gregory"&&c.start.era==="BC"||(c==null||(n=c.end)===null||n===void 0?void 0:n.calendar.identifier)==="gregory"&&c.end.era==="BC",S=b.useMemo(()=>({granularity:h,timeZone:g,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:V}),[h,e.hourCycle,e.shouldForceLeadingZeros,g,e.hideTimeZone,V]),{minValue:z,maxValue:O,isDateUnavailable:M}=e,G=b.useMemo(()=>LB(c,z,O,M,S),[c,z,O,M,S]),K=Vl({...e,value:i,name:b.useMemo(()=>[e.startName,e.endName].filter(I=>I!=null),[e.startName,e.endName]),builtinValidation:G}),W=K.displayValidation.isInvalid,j=e.validationState||(W?"invalid":null);return{...K,value:c,setValue:d,dateRange:C,timeRange:v,granularity:h,hasTime:m,setDate(I,R){var B,J;E(I==="start"?{start:R,end:(B=C==null?void 0:C.end)!==null&&B!==void 0?B:null}:{start:(J=C==null?void 0:C.start)!==null&&J!==void 0?J:null,end:R})},setTime(I,R){var B,J;T(I==="start"?{start:R,end:(B=v==null?void 0:v.end)!==null&&B!==void 0?B:null}:{start:(J=v==null?void 0:v.start)!==null&&J!==void 0?J:null,end:R})},setDateTime(I,R){var B,J;d(I==="start"?{start:R,end:(B=c==null?void 0:c.end)!==null&&B!==void 0?B:null}:{start:(J=c==null?void 0:c.start)!==null&&J!==void 0?J:null,end:R})},setDateRange:E,setTimeRange:T,...r,setOpen(I){!I&&!(c!=null&&c.start&&(c!=null&&c.end))&&sa(C)&&m&&P(C,{start:(v==null?void 0:v.start)||Eu(e.placeholderValue),end:(v==null?void 0:v.end)||Eu(e.placeholderValue)}),r.setOpen(I)},validationState:j,isInvalid:W,formatValue(I,R){if(!c||!c.start||!c.end)return null;let B="timeZone"in c.start?c.start.timeZone:void 0,J=e.granularity||(c.start&&"minute"in c.start?"minute":"day"),L="timeZone"in c.end?c.end.timeZone:void 0,U=e.granularity||(c.end&&"minute"in c.end?"minute":"day"),re=to(R,{granularity:J,timeZone:B,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:c.start.calendar.identifier==="gregory"&&c.start.era==="BC"||c.end.calendar.identifier==="gregory"&&c.end.era==="BC"}),oe=c.start.toDate(B||"UTC"),fe=c.end.toDate(L||"UTC"),ie=new Hr(I,re),Ee;if(B===L&&J===U&&c.start.compare(c.end)!==0){try{let $e=ie.formatRangeToParts(oe,fe),ne=-1;for(let pe=0;pe<$e.length;pe++){let le=$e[pe];if(le.source==="shared"&&le.type==="literal")ne=pe;else if(le.source==="endRange")break}let ye="",xe="";for(let pe=0;pe<$e.length;pe++)pe<ne?ye+=$e[pe].value:pe>ne&&(xe+=$e[pe].value);return{start:ye,end:xe}}catch{}Ee=ie}else{let $e=to(R,{granularity:U,timeZone:L,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});Ee=new Hr(I,$e)}return{start:ie.format(oe),end:Ee.format(fe)}},getDateFormatter(I,R){let B={...S,...R},J=to({},B);return new Hr(I,J)}}}function sa(e){return(e==null?void 0:e.start)!=null&&e.end!=null}function YB(e){let{placeholderValue:t=new Il,minValue:n,maxValue:r,granularity:i,validate:o}=e;var u;let[l,c]=Cr(e.value,(u=e.defaultValue)!==null&&u!==void 0?u:null,e.onChange),d=l||t,f=d&&"day"in d?d:void 0,h=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,g=b.useMemo(()=>{let D=d&&"timeZone"in d?d.timeZone:void 0;return(D||h)&&t?Vx(zs(t),D||h):zs(t)},[t,d,h]),m=b.useMemo(()=>zs(n,f),[n,f]),$=b.useMemo(()=>zs(r,f),[r,f]),w=b.useMemo(()=>l&&"day"in l?R4(l):l,[l]),C=b.useMemo(()=>l==null?null:zs(l),[l]);return{...N5({...e,value:C,defaultValue:void 0,minValue:m,maxValue:$,onChange:D=>{c(f||h?D:D&&R4(D))},granularity:i||"minute",maxGranularity:"hour",placeholderValue:g??void 0,createCalendar:()=>new rr,validate:b.useCallback(()=>o==null?void 0:o(l),[o,l])}),timeValue:w}}function zs(e,t=Of(kl())){return e?"day"in e?e:ci(t,e):null}var Dd={exports:{}},ZB=Dd.exports,T1;function JB(){return T1||(T1=1,function(e,t){(function(n,r){e.exports=r()})(ZB,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",u="second",l="minute",c="hour",d="day",f="week",h="month",g="quarter",m="year",$="date",w="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,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(W){var j=["th","st","nd","rd"],I=W%100;return"["+W+(j[(I-20)%10]||j[I]||j[0])+"]"}},D=function(W,j,I){var R=String(W);return!R||R.length>=j?W:""+Array(j+1-R.length).join(I)+W},P={s:D,z:function(W){var j=-W.utcOffset(),I=Math.abs(j),R=Math.floor(I/60),B=I%60;return(j<=0?"+":"-")+D(R,2,"0")+":"+D(B,2,"0")},m:function W(j,I){if(j.date()<I.date())return-W(I,j);var R=12*(I.year()-j.year())+(I.month()-j.month()),B=j.clone().add(R,h),J=I-B<0,L=j.clone().add(R+(J?-1:1),h);return+(-(R+(I-B)/(J?B-L:L-B))||0)},a:function(W){return W<0?Math.ceil(W)||0:Math.floor(W)},p:function(W){return{M:h,y:m,w:f,d,D:$,h:c,m:l,s:u,ms:o,Q:g}[W]||String(W||"").toLowerCase().replace(/s$/,"")},u:function(W){return W===void 0}},E="en",T={};T[E]=v;var V="$isDayjsObject",S=function(W){return W instanceof G||!(!W||!W[V])},z=function W(j,I,R){var B;if(!j)return E;if(typeof j=="string"){var J=j.toLowerCase();T[J]&&(B=J),I&&(T[J]=I,B=J);var L=j.split("-");if(!B&&L.length>1)return W(L[0])}else{var U=j.name;T[U]=j,B=U}return!R&&B&&(E=B),B||!R&&E},O=function(W,j){if(S(W))return W.clone();var I=typeof j=="object"?j:{};return I.date=W,I.args=arguments,new G(I)},M=P;M.l=z,M.i=S,M.w=function(W,j){return O(W,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var G=function(){function W(I){this.$L=z(I.locale,null,!0),this.parse(I),this.$x=this.$x||I.x||{},this[V]=!0}var j=W.prototype;return j.parse=function(I){this.$d=function(R){var B=R.date,J=R.utc;if(B===null)return new Date(NaN);if(M.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var L=B.match(C);if(L){var U=L[2]-1||0,re=(L[7]||"0").substring(0,3);return J?new Date(Date.UTC(L[1],U,L[3]||1,L[4]||0,L[5]||0,L[6]||0,re)):new Date(L[1],U,L[3]||1,L[4]||0,L[5]||0,L[6]||0,re)}}return new Date(B)}(I),this.init()},j.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},j.$utils=function(){return M},j.isValid=function(){return this.$d.toString()!==w},j.isSame=function(I,R){var B=O(I);return this.startOf(R)<=B&&B<=this.endOf(R)},j.isAfter=function(I,R){return O(I)<this.startOf(R)},j.isBefore=function(I,R){return this.endOf(R)<O(I)},j.$g=function(I,R,B){return M.u(I)?this[R]:this.set(B,I)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function(I,R){var B=this,J=!!M.u(R)||R,L=M.p(I),U=function(ye,xe){var pe=M.w(B.$u?Date.UTC(B.$y,xe,ye):new Date(B.$y,xe,ye),B);return J?pe:pe.endOf(d)},re=function(ye,xe){return M.w(B.toDate()[ye].apply(B.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(xe)),B)},oe=this.$W,fe=this.$M,ie=this.$D,Ee="set"+(this.$u?"UTC":"");switch(L){case m:return J?U(1,0):U(31,11);case h:return J?U(1,fe):U(0,fe+1);case f:var $e=this.$locale().weekStart||0,ne=(oe<$e?oe+7:oe)-$e;return U(J?ie-ne:ie+(6-ne),fe);case d:case $:return re(Ee+"Hours",0);case c:return re(Ee+"Minutes",1);case l:return re(Ee+"Seconds",2);case u:return re(Ee+"Milliseconds",3);default:return this.clone()}},j.endOf=function(I){return this.startOf(I,!1)},j.$set=function(I,R){var B,J=M.p(I),L="set"+(this.$u?"UTC":""),U=(B={},B[d]=L+"Date",B[$]=L+"Date",B[h]=L+"Month",B[m]=L+"FullYear",B[c]=L+"Hours",B[l]=L+"Minutes",B[u]=L+"Seconds",B[o]=L+"Milliseconds",B)[J],re=J===d?this.$D+(R-this.$W):R;if(J===h||J===m){var oe=this.clone().set($,1);oe.$d[U](re),oe.init(),this.$d=oe.set($,Math.min(this.$D,oe.daysInMonth())).$d}else U&&this.$d[U](re);return this.init(),this},j.set=function(I,R){return this.clone().$set(I,R)},j.get=function(I){return this[M.p(I)]()},j.add=function(I,R){var B,J=this;I=Number(I);var L=M.p(R),U=function(fe){var ie=O(J);return M.w(ie.date(ie.date()+Math.round(fe*I)),J)};if(L===h)return this.set(h,this.$M+I);if(L===m)return this.set(m,this.$y+I);if(L===d)return U(1);if(L===f)return U(7);var re=(B={},B[l]=r,B[c]=i,B[u]=n,B)[L]||1,oe=this.$d.getTime()+I*re;return M.w(oe,this)},j.subtract=function(I,R){return this.add(-1*I,R)},j.format=function(I){var R=this,B=this.$locale();if(!this.isValid())return B.invalidDate||w;var J=I||"YYYY-MM-DDTHH:mm:ssZ",L=M.z(this),U=this.$H,re=this.$m,oe=this.$M,fe=B.weekdays,ie=B.months,Ee=B.meridiem,$e=function(xe,pe,le,Me){return xe&&(xe[pe]||xe(R,J))||le[pe].slice(0,Me)},ne=function(xe){return M.s(U%12||12,xe,"0")},ye=Ee||function(xe,pe,le){var Me=xe<12?"AM":"PM";return le?Me.toLowerCase():Me};return J.replace(x,function(xe,pe){return pe||function(le){switch(le){case"YY":return String(R.$y).slice(-2);case"YYYY":return M.s(R.$y,4,"0");case"M":return oe+1;case"MM":return M.s(oe+1,2,"0");case"MMM":return $e(B.monthsShort,oe,ie,3);case"MMMM":return $e(ie,oe);case"D":return R.$D;case"DD":return M.s(R.$D,2,"0");case"d":return String(R.$W);case"dd":return $e(B.weekdaysMin,R.$W,fe,2);case"ddd":return $e(B.weekdaysShort,R.$W,fe,3);case"dddd":return fe[R.$W];case"H":return String(U);case"HH":return M.s(U,2,"0");case"h":return ne(1);case"hh":return ne(2);case"a":return ye(U,re,!0);case"A":return ye(U,re,!1);case"m":return String(re);case"mm":return M.s(re,2,"0");case"s":return String(R.$s);case"ss":return M.s(R.$s,2,"0");case"SSS":return M.s(R.$ms,3,"0");case"Z":return L}return null}(xe)||L.replace(":","")})},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function(I,R,B){var J,L=this,U=M.p(R),re=O(I),oe=(re.utcOffset()-this.utcOffset())*r,fe=this-re,ie=function(){return M.m(L,re)};switch(U){case m:J=ie()/12;break;case h:J=ie();break;case g:J=ie()/3;break;case f:J=(fe-oe)/6048e5;break;case d:J=(fe-oe)/864e5;break;case c:J=fe/i;break;case l:J=fe/r;break;case u:J=fe/n;break;default:J=fe}return B?J:M.a(J)},j.daysInMonth=function(){return this.endOf(h).$D},j.$locale=function(){return T[this.$L]},j.locale=function(I,R){if(!I)return this.$L;var B=this.clone(),J=z(I,R,!0);return J&&(B.$L=J),B},j.clone=function(){return M.w(this.$d,this)},j.toDate=function(){return new Date(this.valueOf())},j.toJSON=function(){return this.isValid()?this.toISOString():null},j.toISOString=function(){return this.$d.toISOString()},j.toString=function(){return this.$d.toUTCString()},W}(),K=G.prototype;return O.prototype=K,[["$ms",o],["$s",u],["$m",l],["$H",c],["$W",d],["$M",h],["$y",m],["$D",$]].forEach(function(W){K[W[1]]=function(j){return this.$g(j,W[0],W[1])}}),O.extend=function(W,j){return W.$i||(W(j,G,O),W.$i=!0),O},O.locale=z,O.isDayjs=S,O.unix=function(W){return O(1e3*W)},O.en=T[E],O.Ls=T,O.p={},O})}(Dd)),Dd.exports}var QB=JB();const XB=Wo(QB);var Ia=[["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"]],eI="react-international-phone-",j5=(...e)=>e.filter(t=>!!t).join(" ").trim(),tI=(...e)=>j5(...e).split(" ").map(t=>`${eI}${t}`).join(" "),Un=({addPrefix:e,rawClassNames:t})=>j5(tI(...e),...t),nI=({value:e,mask:t,maskSymbol:n,offset:r=0,trimNonMaskCharsLeftover:i=!1})=>{if(e.length<r)return e;let o=e.slice(0,r),u=e.slice(r),l=o,c=0;for(let d of t.split("")){if(c>=u.length){if(!i&&d!==n){l+=d;continue}break}d===n?(l+=u[c],c+=1):l+=d}return l},$u=e=>e?/^\d+$/.test(e):!1,jf=e=>e.replace(/\D/g,""),rI=(e,t)=>{let n=e.style.display;n!=="block"&&(e.style.display="block");let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),o=i.top-r.top,u=r.bottom-i.bottom;o>=0&&u>=0||(Math.abs(o)<Math.abs(u)?e.scrollTop+=o:e.scrollTop-=u),e.style.display=n},iI=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh"),oI=(e,t)=>{let n=t.disableDialCodeAndPrefix?!1:t.forceDialCode,r=t.disableDialCodeAndPrefix?!1:t.insertDialCodeOnEmpty,i=e,o=d=>t.trimNonDigitsEnd?d.trim():d;if(!i)return r&&!i.length||n?o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`):o(i);if(i=jf(i),i===t.dialCode&&!t.disableDialCodeAndPrefix)return o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(t.dialCode.startsWith(i)&&!t.disableDialCodeAndPrefix)return o(n?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:`${t.prefix}${i}`);if(!i.startsWith(t.dialCode)&&!t.disableDialCodeAndPrefix){if(n)return o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(i.length<t.dialCode.length)return o(`${t.prefix}${i}`)}let u=()=>{let d=t.dialCode.length,f=i.slice(0,d),h=i.slice(d);return{phoneLeftSide:f,phoneRightSide:h}},{phoneLeftSide:l,phoneRightSide:c}=u();return l=`${t.prefix}${l}${t.charAfterDialCode}`,c=nI({value:c,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&c.length===0}),t.disableDialCodeAndPrefix&&(l=""),o(`${l}${c}`)},aI=({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:n,cursorPositionAfterInput:r,leftOffset:i=0,deletion:o})=>{if(r<i)return i;if(!e)return n.length;let u=null;for(let f=r-1;f>=0;f-=1)if($u(t[f])){u=f;break}if(u===null){for(let f=0;f<t.length;f+=1)if($u(n[f]))return f;return t.length}let l=0;for(let f=0;f<u;f+=1)$u(t[f])&&(l+=1);let c=0,d=0;for(let f=0;f<n.length&&(c+=1,$u(n[f])&&(d+=1),!(d>=l+1));f+=1);if(o!=="backward")for(;!$u(n[c])&&c<n.length;)c+=1;return c},Ed=({phone:e,prefix:t})=>e?`${t}${jf(e)}`:"";function ug({value:e,country:t,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:i,prefix:o,charAfterDialCode:u,forceDialCode:l,disableDialCodeAndPrefix:c,defaultMask:d,countryGuessingEnabled:f,disableFormatting:h}){let g=e;c&&(g=g.startsWith(`${o}`)?g:`${o}${t.dialCode}${g}`);let m=f?mI({phone:g,countries:i,currentCountryIso2:t==null?void 0:t.iso2}):void 0,$=(m==null?void 0:m.country)??t,w=oI(g,{prefix:o,mask:pI({phone:g,country:$,defaultMask:d,disableFormatting:h}),maskChar:K5,dialCode:$.dialCode,trimNonDigitsEnd:r,charAfterDialCode:u,forceDialCode:l,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:c}),C=f&&!(m!=null&&m.fullDialCodeMatch)?t:$;return{phone:Ed({phone:c?`${C.dialCode}${w}`:w,prefix:o}),inputValue:w,country:C}}var uI=e=>{if((e==null?void 0:e.toLocaleLowerCase().includes("delete"))??!1)return e!=null&&e.toLocaleLowerCase().includes("forward")?"forward":"backward"},sI=(e,{country:t,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:i,charAfterDialCode:o,forceDialCode:u,disableDialCodeAndPrefix:l,countryGuessingEnabled:c,defaultMask:d,disableFormatting:f,countries:h})=>{let g=e.nativeEvent,m=g.inputType,$=uI(m),w=!!(m!=null&&m.startsWith("insertFrom")),C=m==="insertText",x=(g==null?void 0:g.data)||void 0,v=e.target.value,D=e.target.selectionStart??0;if(m!=null&&m.includes("history"))return{inputValue:r,phone:Ed({phone:r,prefix:i}),cursorPosition:r.length,country:t};if(C&&!$u(x)&&v!==i)return{inputValue:r,phone:Ed({phone:l?`${t.dialCode}${r}`:r,prefix:i}),cursorPosition:D-((x==null?void 0:x.length)??0),country:t};if(u&&!v.startsWith(`${i}${t.dialCode}`)&&!w){let S=v?r:`${i}${t.dialCode}${o}`;return{inputValue:S,phone:Ed({phone:S,prefix:i}),cursorPosition:i.length+t.dialCode.length+o.length,country:t}}let{phone:P,inputValue:E,country:T}=ug({value:v,country:t,trimNonDigitsEnd:$==="backward",insertDialCodeOnEmpty:n,countryGuessingEnabled:c,countries:h,prefix:i,charAfterDialCode:o,forceDialCode:u,disableDialCodeAndPrefix:l,disableFormatting:f,defaultMask:d}),V=aI({cursorPositionAfterInput:D,phoneBeforeInput:r,phoneAfterInput:v,phoneAfterFormatted:E,leftOffset:u?i.length+t.dialCode.length+o.length:0,deletion:$});return{phone:P,inputValue:E,cursorPosition:V,country:T}},lI=(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},cI=()=>{let e=b.useRef(),t=b.useRef(Date.now());return{check:()=>{let n=Date.now(),r=e.current?n-t.current:void 0;return e.current=t.current,t.current=n,r}}},dI={size:20,overrideLastItemDebounceMS:-1};function fI(e,t){let{size:n,overrideLastItemDebounceMS:r,onChange:i}={...dI,...t},[o,u]=b.useState(e),[l,c]=b.useState([o]),[d,f]=b.useState(0),h=cI();return[o,(g,m)=>{if(typeof g=="object"&&typeof o=="object"&&lI(g,o)||g===o)return;let $=r>0,w=h.check(),C=$&&w!==void 0?w>r:!0;if((m==null?void 0:m.overrideLastItem)!==void 0?m.overrideLastItem:!C)c(x=>[...x.slice(0,d),g]);else{let x=l.length>=n;c(v=>[...v.slice(x?1:0,d+1),g]),x||f(v=>v+1)}u(g),i==null||i(g)},()=>{if(d<=0)return{success:!1};let g=l[d-1];return u(g),f(m=>m-1),i==null||i(g),{success:!0,value:g}},()=>{if(d+1>=l.length)return{success:!1};let g=l[d+1];return u(g),f(m=>m+1),i==null||i(g),{success:!0,value:g}}]}var K5=".",Nr={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:Ia,preferredCountries:[]},U5=({defaultCountry:e=Nr.defaultCountry,value:t=Nr.value,countries:n=Nr.countries,prefix:r=Nr.prefix,defaultMask:i=Nr.defaultMask,charAfterDialCode:o=Nr.charAfterDialCode,historySaveDebounceMS:u=Nr.historySaveDebounceMS,disableCountryGuess:l=Nr.disableCountryGuess,disableDialCodePrefill:c=Nr.disableDialCodePrefill,forceDialCode:d=Nr.forceDialCode,disableDialCodeAndPrefix:f=Nr.disableDialCodeAndPrefix,disableFormatting:h=Nr.disableFormatting,onChange:g,inputRef:m})=>{let $={countries:n,prefix:r,charAfterDialCode:o,forceDialCode:f?!1:d,disableDialCodeAndPrefix:f,defaultMask:i,countryGuessingEnabled:!l,disableFormatting:h},w=b.useRef(null),C=m||w,x=W=>{Promise.resolve().then(()=>{var j;typeof window>"u"||C.current!==(document==null?void 0:document.activeElement)||((j=C.current)==null||j.setSelectionRange(W,W))})},[{phone:v,inputValue:D,country:P},E,T,V]=fI(()=>{let W=Cu({value:e,field:"iso2",countries:n});W||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let j=W||Cu({value:"us",field:"iso2",countries:n}),{phone:I,inputValue:R,country:B}=ug({value:t,country:j,insertDialCodeOnEmpty:!c,...$});return x(R.length),{phone:I,inputValue:R,country:B.iso2}},{overrideLastItemDebounceMS:u,onChange:({inputValue:W,phone:j,country:I})=>{if(!g)return;let R=S(I);g({phone:j,inputValue:W,country:R})}}),S=b.useCallback(W=>Cu({value:W,field:"iso2",countries:n}),[n]),z=b.useMemo(()=>S(P),[P,S]);b.useEffect(()=>{let W=C.current;if(!W)return;let j=I=>{if(!I.key)return;let R=I.ctrlKey,B=I.metaKey,J=I.shiftKey;if(I.key.toLowerCase()==="z"){if(iI()){if(!B)return}else if(!R)return;J?V():T()}};return W.addEventListener("keydown",j),()=>{W.removeEventListener("keydown",j)}},[C,T,V]);let O=W=>{W.preventDefault();let{phone:j,inputValue:I,country:R,cursorPosition:B}=sI(W,{country:z,phoneBeforeInput:D,insertDialCodeOnEmpty:!1,...$});return E({inputValue:I,phone:j,country:R.iso2}),x(B),t},M=(W,j={focusOnInput:!1})=>{let I=Cu({value:W,field:"iso2",countries:n});if(!I){console.error(`[react-international-phone]: can not find a country with "${W}" iso2 code`);return}let R=f?"":`${r}${I.dialCode}${o}`;E({inputValue:R,phone:`${r}${I.dialCode}`,country:I.iso2}),j.focusOnInput&&Promise.resolve().then(()=>{var B;(B=C.current)==null||B.focus()})},[G,K]=b.useState(!1);return b.useEffect(()=>{if(!G){K(!0),t!==v&&(g==null||g({inputValue:D,phone:v,country:z}));return}if(t===v)return;let{phone:W,inputValue:j,country:I}=ug({value:t,country:z,insertDialCodeOnEmpty:!c,...$});E({phone:W,inputValue:j,country:I.iso2})},[t]),{phone:v,inputValue:D,country:z,setCountry:M,handlePhoneValueChange:O,inputRef:C}},pI=({phone:e,country:t,defaultMask:n="............",disableFormatting:r=!1})=>{let i=t.format,o=l=>r?l.replace(new RegExp(`[^${K5}]`,"g"),""):l;if(!i)return o(n);if(typeof i=="string")return o(i);if(!i.default)return console.error(`[react-international-phone]: default mask for ${t.iso2} is not provided`),o(n);let u=Object.keys(i).find(l=>{if(l==="default")return!1;if(!(l.charAt(0)==="/"&&l.charAt(l.length-1)==="/"))return console.error(`[react-international-phone]: format regex "${l}" for ${t.iso2} is not valid`),!1;let c=new RegExp(l.substring(1,l.length-1)),d=e.replace(t.dialCode,"");return c.test(jf(d))});return o(u?i[u]:i.default)},ri=e=>{let[t,n,r,i,o,u]=e;return{name:t,iso2:n,dialCode:r,format:i,priority:o,areaCodes:u}},hI=e=>`Field "${e}" is not supported`,Cu=({field:e,value:t,countries:n=Ia})=>{if(["priority"].includes(e))throw new Error(hI(e));let r=n.find(i=>{let o=ri(i);return t===o[e]});if(r)return ri(r)},mI=({phone:e,countries:t=Ia,currentCountryIso2:n})=>{var l;let r={country:void 0,fullDialCodeMatch:!1};if(!e)return r;let i=jf(e);if(!i)return r;let o=r,u=({country:c,fullDialCodeMatch:d})=>{var g,m;let f=c.dialCode===((g=o.country)==null?void 0:g.dialCode),h=(c.priority??0)<(((m=o.country)==null?void 0:m.priority)??0);(!f||h)&&(o={country:c,fullDialCodeMatch:d})};for(let c of t){let d=ri(c),{dialCode:f,areaCodes:h}=d;if(i.startsWith(f)){let g=o.country?Number(f)>=Number(o.country.dialCode):!0;if(h){let m=i.substring(f.length);for(let $ of h)if(m.startsWith($))return{country:d,fullDialCodeMatch:!0}}(g||f===i||!o.fullDialCodeMatch)&&u({country:d,fullDialCodeMatch:!0})}o.fullDialCodeMatch||i.length<f.length&&f.startsWith(i)&&(!o.country||Number(f)<=Number(o.country.dialCode))&&u({country:d,fullDialCodeMatch:!1})}if(n){let c=Cu({value:n,field:"iso2",countries:t});if(!c)return o;let d=c?(f=>{if(!(f!=null&&f.areaCodes))return!1;let h=i.substring(f.dialCode.length);return f.areaCodes.some(g=>g.startsWith(h))})(c):!1;o&&((l=o.country)==null?void 0:l.dialCode)===c.dialCode&&o.country!==c&&o.fullDialCodeMatch&&(!c.areaCodes||d)&&(o={country:c,fullDialCodeMatch:!0})}return o},gI=(e,t)=>{let n=parseInt(e,16);return Number(n+t).toString(16)},yI="abcdefghijklmnopqrstuvwxyz",vI="1f1e6",P1=yI.split("").reduce((e,t,n)=>({...e,[t]:gI(vI,n)}),{}),bI=e=>[P1[e[0]],P1[e[1]]].join("-"),Sy=({iso2:e,size:t,src:n,protocol:r="https",disableLazyLoading:i,className:o,style:u,...l})=>{if(!e)return b.createElement("img",{className:Un({addPrefix:["flag-emoji"],rawClassNames:[o]}),width:t,height:t,...l});let c=()=>{if(n)return n;let d=bI(e);return`${r}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${d}.svg`};return b.createElement("img",{className:Un({addPrefix:["flag-emoji"],rawClassNames:[o]}),src:c(),width:t,height:t,draggable:!1,"data-country":e,loading:i?void 0:"lazy",style:{width:t,height:t,...u},alt:"",...l})},$I=1e3,xI=({show:e,dialCodePrefix:t="+",selectedCountry:n,countries:r=Ia,preferredCountries:i=[],flags:o,onSelect:u,onClose:l,...c})=>{let d=b.useRef(null),f=b.useRef(),h=b.useMemo(()=>{if(!i||!i.length)return r;let T=[],V=[...r];for(let S of i){let z=V.findIndex(O=>ri(O).iso2===S);if(z!==-1){let O=V.splice(z,1)[0];T.push(O)}}return T.concat(V)},[r,i]),g=b.useRef({updatedAt:void 0,value:""}),m=T=>{let V=g.current.updatedAt&&new Date().getTime()-g.current.updatedAt.getTime()>$I;g.current={value:V?T:`${g.current.value}${T}`,updatedAt:new Date};let S=h.findIndex(z=>ri(z).name.toLowerCase().startsWith(g.current.value));S!==-1&&C(S)},$=b.useCallback(T=>h.findIndex(V=>ri(V).iso2===T),[h]),[w,C]=b.useState($(n)),x=()=>{f.current!==n&&C($(n))},v=b.useCallback(T=>{C($(T.iso2)),u==null||u(T)},[u,$]),D=T=>{let V=h.length-1,S=z=>T==="prev"?z-1:T==="next"?z+1:T==="last"?V:0;C(z=>{let O=S(z);return O<0?0:O>V?V:O})},P=T=>{if(T.stopPropagation(),T.key==="Enter"){T.preventDefault();let V=ri(h[w]);v(V);return}if(T.key==="Escape"){l==null||l();return}if(T.key==="ArrowUp"){T.preventDefault(),D("prev");return}if(T.key==="ArrowDown"){T.preventDefault(),D("next");return}if(T.key==="PageUp"){T.preventDefault(),D("first");return}if(T.key==="PageDown"){T.preventDefault(),D("last");return}T.key===" "&&T.preventDefault(),T.key.length===1&&!T.altKey&&!T.ctrlKey&&!T.metaKey&&m(T.key.toLocaleLowerCase())},E=b.useCallback(()=>{if(!d.current||w===void 0)return;let T=ri(h[w]).iso2;if(T===f.current)return;let V=d.current.querySelector(`[data-country="${T}"]`);V&&(rI(d.current,V),f.current=T)},[w,h]);return b.useEffect(()=>{E()},[w,E]),b.useEffect(()=>{d.current&&(e?d.current.focus():x())},[e]),b.useEffect(()=>{x()},[n]),b.createElement("ul",{ref:d,role:"listbox",className:Un({addPrefix:["country-selector-dropdown"],rawClassNames:[c.className]}),style:{display:e?"block":"none",...c.style},onKeyDown:P,onBlur:l,tabIndex:-1,"aria-activedescendant":`react-international-phone__${ri(h[w]).iso2}-option`},h.map((T,V)=>{let S=ri(T),z=S.iso2===n,O=V===w,M=i.includes(S.iso2),G=V===i.length-1,K=o==null?void 0:o.find(W=>W.iso2===S.iso2);return b.createElement(b.Fragment,{key:S.iso2},b.createElement("li",{"data-country":S.iso2,role:"option","aria-selected":z,"aria-label":`${S.name} ${t}${S.dialCode}`,id:`react-international-phone__${S.iso2}-option`,className:Un({addPrefix:["country-selector-dropdown__list-item",M&&"country-selector-dropdown__list-item--preferred",z&&"country-selector-dropdown__list-item--selected",O&&"country-selector-dropdown__list-item--focused"],rawClassNames:[c.listItemClassName]}),onClick:()=>v(S),style:c.listItemStyle,title:S.name},b.createElement(Sy,{iso2:S.iso2,src:K==null?void 0:K.src,className:Un({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[c.listItemFlagClassName]}),style:c.listItemFlagStyle}),b.createElement("span",{className:Un({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[c.listItemCountryNameClassName]}),style:c.listItemCountryNameStyle},S.name),b.createElement("span",{className:Un({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[c.listItemDialCodeClassName]}),style:c.listItemDialCodeStyle},t,S.dialCode)),G?b.createElement("hr",{className:Un({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[c.preferredListDividerClassName]}),style:c.preferredListDividerStyle}):null)}))},wI=({selectedCountry:e,onSelect:t,disabled:n,hideDropdown:r,countries:i=Ia,preferredCountries:o=[],flags:u,renderButtonWrapper:l,...c})=>{let[d,f]=b.useState(!1),h=b.useMemo(()=>{if(e)return Cu({value:e,field:"iso2",countries:i})},[i,e]),g=b.useRef(null),m=w=>{w.key&&["ArrowUp","ArrowDown"].includes(w.key)&&(w.preventDefault(),f(!0))},$=()=>{var x;let w={title:h==null?void 0:h.name,onClick:()=>f(v=>!v),onMouseDown:v=>v.preventDefault(),onKeyDown:m,disabled:r||n,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":d},C=b.createElement("div",{className:Un({addPrefix:["country-selector-button__button-content"],rawClassNames:[c.buttonContentWrapperClassName]}),style:c.buttonContentWrapperStyle},b.createElement(Sy,{iso2:e,src:(x=u==null?void 0:u.find(v=>v.iso2===e))==null?void 0:x.src,className:Un({addPrefix:["country-selector-button__flag-emoji",n&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[c.flagClassName]}),style:{visibility:e?"visible":"hidden",...c.flagStyle}}),!r&&b.createElement("div",{className:Un({addPrefix:["country-selector-button__dropdown-arrow",n&&"country-selector-button__dropdown-arrow--disabled",d&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[c.dropdownArrowClassName]}),style:c.dropdownArrowStyle}));return l?l({children:C,rootProps:w}):b.createElement("button",{...w,type:"button",className:Un({addPrefix:["country-selector-button",d&&"country-selector-button--active",n&&"country-selector-button--disabled",r&&"country-selector-button--hide-dropdown"],rawClassNames:[c.buttonClassName]}),"data-country":e,style:c.buttonStyle},C)};return b.createElement("div",{className:Un({addPrefix:["country-selector"],rawClassNames:[c.className]}),style:c.style,ref:g},$(),b.createElement(xI,{show:d,countries:i,preferredCountries:o,flags:u,onSelect:w=>{f(!1),t==null||t(w)},selectedCountry:e,onClose:()=>{f(!1)},...c.dropdownStyleProps}))},DI=({dialCode:e,prefix:t,disabled:n,style:r,className:i})=>b.createElement("div",{className:Un({addPrefix:["dial-code-preview",n&&"dial-code-preview--disabled"],rawClassNames:[i]}),style:r},`${t}${e}`);b.forwardRef(({value:e,onChange:t,countries:n=Ia,preferredCountries:r=[],hideDropdown:i,showDisabledDialCodeAndPrefix:o,disableFocusAfterCountrySelect:u,flags:l,style:c,className:d,inputStyle:f,inputClassName:h,countrySelectorStyleProps:g,dialCodePreviewStyleProps:m,inputProps:$,placeholder:w,disabled:C,name:x,onFocus:v,onBlur:D,required:P,autoFocus:E,...T},V)=>{let{phone:S,inputValue:z,inputRef:O,country:M,setCountry:G,handlePhoneValueChange:K}=U5({value:e,countries:n,...T,onChange:j=>{t==null||t(j.phone,{country:j.country,inputValue:j.inputValue})}}),W=T.disableDialCodeAndPrefix&&o&&(M==null?void 0:M.dialCode);return b.useImperativeHandle(V,()=>O.current?Object.assign(O.current,{setCountry:G,state:{phone:S,inputValue:z,country:M}}):null,[O,G,S,z,M]),b.createElement("div",{ref:V,className:Un({addPrefix:["input-container"],rawClassNames:[d]}),style:c},b.createElement(wI,{onSelect:j=>G(j.iso2,{focusOnInput:!u}),flags:l,selectedCountry:M.iso2,countries:n,preferredCountries:r,disabled:C,hideDropdown:i,...g}),W&&b.createElement(DI,{dialCode:M.dialCode,prefix:T.prefix??"+",disabled:C,...m}),b.createElement("input",{onChange:K,value:z,type:"tel",ref:O,className:Un({addPrefix:["input",C&&"input--disabled"],rawClassNames:[h]}),placeholder:w,disabled:C,style:f,name:x,onFocus:v,onBlur:D,autoFocus:E,required:P,...$}))});var Fo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},sg={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",u="[object Array]",l="[object Boolean]",c="[object Date]",d="[object Error]",f="[object Function]",h="[object GeneratorFunction]",g="[object Map]",m="[object Number]",$="[object Object]",w="[object Promise]",C="[object RegExp]",x="[object Set]",v="[object String]",D="[object Symbol]",P="[object WeakMap]",E="[object ArrayBuffer]",T="[object DataView]",V="[object Float32Array]",S="[object Float64Array]",z="[object Int8Array]",O="[object Int16Array]",M="[object Int32Array]",G="[object Uint8Array]",K="[object Uint8ClampedArray]",W="[object Uint16Array]",j="[object Uint32Array]",I=/[\\^$.*+?()[\]{}|]/g,R=/\w*$/,B=/^\[object .+?Constructor\]$/,J=/^(?:0|[1-9]\d*)$/,L={};L[o]=L[u]=L[E]=L[T]=L[l]=L[c]=L[V]=L[S]=L[z]=L[O]=L[M]=L[g]=L[m]=L[$]=L[C]=L[x]=L[v]=L[D]=L[G]=L[K]=L[W]=L[j]=!0,L[d]=L[f]=L[P]=!1;var U=typeof Fo=="object"&&Fo&&Fo.Object===Object&&Fo,re=typeof self=="object"&&self&&self.Object===Object&&self,oe=U||re||Function("return this")(),fe=t&&!t.nodeType&&t,ie=fe&&!0&&e&&!e.nodeType&&e,Ee=ie&&ie.exports===fe;function $e(N,ae){return N.set(ae[0],ae[1]),N}function ne(N,ae){return N.add(ae),N}function ye(N,ae){for(var ve=-1,Ie=N?N.length:0;++ve<Ie&&ae(N[ve],ve,N)!==!1;);return N}function xe(N,ae){for(var ve=-1,Ie=ae.length,fn=N.length;++ve<Ie;)N[fn+ve]=ae[ve];return N}function pe(N,ae,ve,Ie){for(var fn=-1,Bn=N?N.length:0;++fn<Bn;)ve=ae(ve,N[fn],fn,N);return ve}function le(N,ae){for(var ve=-1,Ie=Array(N);++ve<N;)Ie[ve]=ae(ve);return Ie}function Me(N,ae){return N==null?void 0:N[ae]}function Xe(N){var ae=!1;if(N!=null&&typeof N.toString!="function")try{ae=!!(N+"")}catch{}return ae}function ct(N){var ae=-1,ve=Array(N.size);return N.forEach(function(Ie,fn){ve[++ae]=[fn,Ie]}),ve}function vn(N,ae){return function(ve){return N(ae(ve))}}function gt(N){var ae=-1,ve=Array(N.size);return N.forEach(function(Ie){ve[++ae]=Ie}),ve}var q=Array.prototype,Y=Function.prototype,te=Object.prototype,he=oe["__core-js_shared__"],Ce=function(){var N=/[^.]+$/.exec(he&&he.keys&&he.keys.IE_PROTO||"");return N?"Symbol(src)_1."+N:""}(),De=Y.toString,_e=te.hasOwnProperty,Ve=te.toString,ht=RegExp("^"+De.call(_e).replace(I,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ut=Ee?oe.Buffer:void 0,_t=oe.Symbol,En=oe.Uint8Array,Cn=vn(Object.getPrototypeOf,Object),Ht=Object.create,Rn=te.propertyIsEnumerable,Jt=q.splice,yt=Object.getOwnPropertySymbols,On=ut?ut.isBuffer:void 0,gr=vn(Object.keys,Object),Sn=ze(oe,"DataView"),Hn=ze(oe,"Map"),An=ze(oe,"Promise"),Gn=ze(oe,"Set"),Fn=ze(oe,"WeakMap"),bn=ze(Object,"create"),Ar=Bi(Sn),Lt=Bi(Hn),$n=Bi(An),Ne=Bi(Gn),et=Bi(Fn),Qt=_t?_t.prototype:void 0,ir=Qt?Qt.valueOf:void 0;function Ae(N){var ae=-1,ve=N?N.length:0;for(this.clear();++ae<ve;){var Ie=N[ae];this.set(Ie[0],Ie[1])}}function je(){this.__data__=bn?bn(null):{}}function qe(N){return this.has(N)&&delete this.__data__[N]}function Ft(N){var ae=this.__data__;if(bn){var ve=ae[N];return ve===r?void 0:ve}return _e.call(ae,N)?ae[N]:void 0}function Xt(N){var ae=this.__data__;return bn?ae[N]!==void 0:_e.call(ae,N)}function Mn(N,ae){var ve=this.__data__;return ve[N]=bn&&ae===void 0?r:ae,this}Ae.prototype.clear=je,Ae.prototype.delete=qe,Ae.prototype.get=Ft,Ae.prototype.has=Xt,Ae.prototype.set=Mn;function Nt(N){var ae=-1,ve=N?N.length:0;for(this.clear();++ae<ve;){var Ie=N[ae];this.set(Ie[0],Ie[1])}}function tn(){this.__data__=[]}function Mt(N){var ae=this.__data__,ve=mi(ae,N);if(ve<0)return!1;var Ie=ae.length-1;return ve==Ie?ae.pop():Jt.call(ae,ve,1),!0}function xt(N){var ae=this.__data__,ve=mi(ae,N);return ve<0?void 0:ae[ve][1]}function Jr(N){return mi(this.__data__,N)>-1}function Go(N,ae){var ve=this.__data__,Ie=mi(ve,N);return Ie<0?ve.push([N,ae]):ve[Ie][1]=ae,this}Nt.prototype.clear=tn,Nt.prototype.delete=Mt,Nt.prototype.get=xt,Nt.prototype.has=Jr,Nt.prototype.set=Go;function or(N){var ae=-1,ve=N?N.length:0;for(this.clear();++ae<ve;){var Ie=N[ae];this.set(Ie[0],Ie[1])}}function uo(){this.__data__={hash:new Ae,map:new(Hn||Nt),string:new Ae}}function so(N){return Ke(this,N).delete(N)}function lo(N){return Ke(this,N).get(N)}function mt(N){return Ke(this,N).has(N)}function qn(N,ae){return Ke(this,N).set(N,ae),this}or.prototype.clear=uo,or.prototype.delete=so,or.prototype.get=lo,or.prototype.has=mt,or.prototype.set=qn;function ar(N){this.__data__=new Nt(N)}function kn(){this.__data__=new Nt}function co(N){return this.__data__.delete(N)}function Tr(N){return this.__data__.get(N)}function ps(N){return this.__data__.has(N)}function Ka(N,ae){var ve=this.__data__;if(ve instanceof Nt){var Ie=ve.__data__;if(!Hn||Ie.length<n-1)return Ie.push([N,ae]),this;ve=this.__data__=new or(Ie)}return ve.set(N,ae),this}ar.prototype.clear=kn,ar.prototype.delete=co,ar.prototype.get=Tr,ar.prototype.has=ps,ar.prototype.set=Ka;function hs(N,ae){var ve=vs(N)||ap(N)?le(N.length,String):[],Ie=ve.length,fn=!!Ie;for(var Bn in N)_e.call(N,Bn)&&!(fn&&(Bn=="length"||Yn(Bn,Ie)))&&ve.push(Bn);return ve}function fo(N,ae,ve){var Ie=N[ae];(!(_e.call(N,ae)&&ys(Ie,ve))||ve===void 0&&!(ae in N))&&(N[ae]=ve)}function mi(N,ae){for(var ve=N.length;ve--;)if(ys(N[ve][0],ae))return ve;return-1}function qo(N,ae){return N&&be(ae,$s(ae),N)}function Yo(N,ae,ve,Ie,fn,Bn,_r){var In;if(Ie&&(In=Bn?Ie(N,fn,Bn,_r):Ie(N)),In!==void 0)return In;if(!Za(N))return N;var ln=vs(N);if(ln){if(In=Tn(N),!ae)return se(N,In)}else{var gi=Ut(N),yi=gi==f||gi==h;if(bs(N))return Ha(N,ae);if(gi==$||gi==o||yi&&!Bn){if(Xe(N))return Bn?N:{};if(In=Pn(yi?{}:N),!ae)return Re(N,qo(In,N))}else{if(!L[gi])return Bn?N:{};In=Pr(N,gi,Yo,ae)}}_r||(_r=new ar);var xs=_r.get(N);if(xs)return xs;if(_r.set(N,In),!ln)var Ja=ve?rt(N):$s(N);return ye(Ja||N,function(Ln,Xo){Ja&&(Xo=Ln,Ln=N[Xo]),fo(In,Xo,Yo(Ln,ae,ve,Ie,Xo,N,_r))}),In}function Ua(N){return Za(N)?Ht(N):{}}function za(N,ae,ve){var Ie=ae(N);return vs(N)?Ie:xe(Ie,ve(N))}function ms(N){return Ve.call(N)}function Wa(N){if(!Za(N)||Jo(N))return!1;var ae=rc(N)||Xe(N)?ht:B;return ae.test(Bi(N))}function Zo(N){if(!Qo(N))return gr(N);var ae=[];for(var ve in Object(N))_e.call(N,ve)&&ve!="constructor"&&ae.push(ve);return ae}function Ha(N,ae){if(ae)return N.slice();var ve=new N.constructor(N.length);return N.copy(ve),ve}function ki(N){var ae=new N.constructor(N.byteLength);return new En(ae).set(new En(N)),ae}function gs(N,ae){var ve=ae?ki(N.buffer):N.buffer;return new N.constructor(ve,N.byteOffset,N.byteLength)}function Ga(N,ae,ve){var Ie=ae?ve(ct(N),!0):ct(N);return pe(Ie,$e,new N.constructor)}function po(N){var ae=new N.constructor(N.source,R.exec(N));return ae.lastIndex=N.lastIndex,ae}function qa(N,ae,ve){var Ie=ae?ve(gt(N),!0):gt(N);return pe(Ie,ne,new N.constructor)}function F(N){return ir?Object(ir.call(N)):{}}function Q(N,ae){var ve=ae?ki(N.buffer):N.buffer;return new N.constructor(ve,N.byteOffset,N.length)}function se(N,ae){var ve=-1,Ie=N.length;for(ae||(ae=Array(Ie));++ve<Ie;)ae[ve]=N[ve];return ae}function be(N,ae,ve,Ie){ve||(ve={});for(var fn=-1,Bn=ae.length;++fn<Bn;){var _r=ae[fn],In=void 0;fo(ve,_r,In===void 0?N[_r]:In)}return ve}function Re(N,ae){return be(N,Rt(N),ae)}function rt(N){return za(N,$s,Rt)}function Ke(N,ae){var ve=N.__data__;return Ya(ae)?ve[typeof ae=="string"?"string":"hash"]:ve.map}function ze(N,ae){var ve=Me(N,ae);return Wa(ve)?ve:void 0}var Rt=yt?vn(yt,Object):kt,Ut=ms;(Sn&&Ut(new Sn(new ArrayBuffer(1)))!=T||Hn&&Ut(new Hn)!=g||An&&Ut(An.resolve())!=w||Gn&&Ut(new Gn)!=x||Fn&&Ut(new Fn)!=P)&&(Ut=function(N){var ae=Ve.call(N),ve=ae==$?N.constructor:void 0,Ie=ve?Bi(ve):void 0;if(Ie)switch(Ie){case Ar:return T;case Lt:return g;case $n:return w;case Ne:return x;case et:return P}return ae});function Tn(N){var ae=N.length,ve=N.constructor(ae);return ae&&typeof N[0]=="string"&&_e.call(N,"index")&&(ve.index=N.index,ve.input=N.input),ve}function Pn(N){return typeof N.constructor=="function"&&!Qo(N)?Ua(Cn(N)):{}}function Pr(N,ae,ve,Ie){var fn=N.constructor;switch(ae){case E:return ki(N);case l:case c:return new fn(+N);case T:return gs(N,Ie);case V:case S:case z:case O:case M:case G:case K:case W:case j:return Q(N,Ie);case g:return Ga(N,Ie,ve);case m:case v:return new fn(N);case C:return po(N);case x:return qa(N,Ie,ve);case D:return F(N)}}function Yn(N,ae){return ae=ae??i,!!ae&&(typeof N=="number"||J.test(N))&&N>-1&&N%1==0&&N<ae}function Ya(N){var ae=typeof N;return ae=="string"||ae=="number"||ae=="symbol"||ae=="boolean"?N!=="__proto__":N===null}function Jo(N){return!!Ce&&Ce in N}function Qo(N){var ae=N&&N.constructor,ve=typeof ae=="function"&&ae.prototype||te;return N===ve}function Bi(N){if(N!=null){try{return De.call(N)}catch{}try{return N+""}catch{}}return""}function op(N){return Yo(N,!0,!0)}function ys(N,ae){return N===ae||N!==N&&ae!==ae}function ap(N){return up(N)&&_e.call(N,"callee")&&(!Rn.call(N,"callee")||Ve.call(N)==o)}var vs=Array.isArray;function nc(N){return N!=null&&sp(N.length)&&!rc(N)}function up(N){return lp(N)&&nc(N)}var bs=On||Ot;function rc(N){var ae=Za(N)?Ve.call(N):"";return ae==f||ae==h}function sp(N){return typeof N=="number"&&N>-1&&N%1==0&&N<=i}function Za(N){var ae=typeof N;return!!N&&(ae=="object"||ae=="function")}function lp(N){return!!N&&typeof N=="object"}function $s(N){return nc(N)?hs(N):Zo(N)}function kt(){return[]}function Ot(){return!1}e.exports=op})(sg,sg.exports);var Mo=sg.exports,lg=function(){return lg=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},lg.apply(this,arguments)};function EI(e,t,n,r){function i(o){return o instanceof n?o:new n(function(u){u(o)})}return new(n||(n=Promise))(function(o,u){function l(f){try{d(r.next(f))}catch(h){u(h)}}function c(f){try{d(r.throw(f))}catch(h){u(h)}}function d(f){f.done?o(f.value):i(f.value).then(l,c)}d((r=r.apply(e,[])).next())})}function CI(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,u=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return u.next=l(0),u.throw=l(1),u.return=l(2),typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(d){return function(f){return c([d,f])}}function c(d){if(r)throw new TypeError("Generator is already executing.");for(;u&&(u=0,d[0]&&(n=0)),n;)try{if(r=1,i&&(o=d[0]&2?i.return:d[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,d[1])).done)return o;switch(i=0,o&&(d=[d[0]&2,o.value]),d[0]){case 0:case 1:o=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,i=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){n.label=d[1];break}if(d[0]===6&&n.label<o[1]){n.label=o[1],o=d;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(d);break}o[2]&&n.ops.pop(),n.trys.pop();continue}d=t.call(e,n)}catch(f){d=[6,f],i=0}finally{r=o=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function ef(e,t,n,r,i){return EI(this,void 0,void 0,function(){var o,u;return CI(this,function(l){switch(l.label){case 0:if(n===void 0)return[2];u=0,l.label=1;case 1:return u<n.length?[4,n[u](e,t,r,i,n)]:[3,4];case 2:if(o=l.sent(),o==="canceled")return[3,4];l.label=3;case 3:return u++,[3,1];case 4:return o!=="canceled"?[2,o]:[2]}})})}var cg=function(e,t){return t===void 0&&(t={}),e?{trackedAnalytics:lg({sdkCode:e.sdkCode,sdkSemver:e.sdkSemver,techVersion:e.techVersion},t)}:null},SI=function(){function e(t,n,r,i){var o=this;this.isMounted=!0,this.imgElement=t,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var u=Mo(n);ef(t,u,r,this.htmlPluginState,i).then(function(l){if(o.isMounted){o.htmlPluginState.pluginEventSubscription.forEach(function(d){d()});var c=cg(i,l);o.imgElement.setAttribute("src",u.toURL(c))}})}return e.prototype.update=function(t,n,r){var i=this,o=Mo(t);ef(this.imgElement,o,n,this.htmlPluginState).then(function(u){if(i.isMounted){var l=cg(r,u);i.imgElement.setAttribute("src",o.toURL(l))}})},e.prototype.unmount=function(){this.isMounted=!1},e}();let Zt=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}},AI=class extends Error{constructor(t="Unsupported"){super(t)}};function Ay(e){return new AI(e)}function TI(){return this._qualifierModel||{error:Ay(`unsupported qualifier ${this.constructor.name}`)}}let PI=class{constructor(){this._qualifierModel={}}toJson(){return TI.apply(this)}},nt=class extends PI{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof Zt?this.qualifierValue=n:(this.qualifierValue=new Zt,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}},qr=class extends nt{constructor(t,n){let r;n?r=new Zt([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}};function _I(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function RI(){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:Ay(`unsupported action ${this.constructor.name}`)}}let OI=class{constructor(){this._actionModel={}}toJson(){return RI.apply(this)}},di=class extends OI{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(),_I(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 qr(r)):this.qualifiers.set(n,new nt(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new qr(t)):t instanceof qr&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}};class Ty extends di{constructor(t){super(),this.regionType=t,this._actionModel.regionType=t}}class Kf extends Ty{constructor(){super("custom")}x(t){return this._actionModel.x=t,this.addQualifier(new nt("x",t)),this}y(t){return this._actionModel.y=t,this.addQualifier(new nt("y",t)),this}width(t){return this._actionModel.width=t,this.addQualifier(new nt("w",t)),this}height(t){return this._actionModel.height=t,this.addQualifier(new nt("h",t)),this}static fromJson(t){const n=new Kf;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 FI(){return new Kf}function z5(){return new Ty("faces")}function MI(){return new Ty("ocr_text")}class kI extends di{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 nt("e",`blur_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new nt("e",`blur_region${t}`)),this.addQualifier(new nt("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new nt("e",`blur_faces${t}`))):this.addQualifier(new nt("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(z5()),r&&r.regionType==="ocr_text"&&i.region(MI()),r&&r.regionType==="custom"&&i.region(Kf.fromJson(r)),i}}function La(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const W5={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},BI={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},H5={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},G5={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},II={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},q5={444:"CHROMA_444",420:"CHROMA_420"},LI={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"},VI=La(q5);La(LI);const NI=La(W5),jI=La(BI),Y5=La(H5);La(G5);La(II);class Z5 extends di{constructor(t,n){super(),this._actionModel={},this._actionModel.actionType=Y5[t]||t;const r=this.createEffectQualifier(t,n);this.addQualifier(r)}createEffectQualifier(t,n){let r;return n?r=new Zt([t,`${n}`]).setDelimiter(":"):r=new Zt(t),new nt("e",r)}static fromJson(t){const{actionType:n,level:r,strength:i}=t,o=H5[n]||n;return new this(o,r||i)}}class KI extends Z5{constructor(t,n){super(t,n),this.LEVEL_NAME="level",this._actionModel={},this.effectType=t,this._actionModel.actionType=Y5[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 Uf(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class UI extends di{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 Zt(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(t+=`:${new Zt(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(t+=`:${new Zt(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(t+=`:${new Zt(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(t+=`:${new Zt(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new nt("e",t))}static fromJson(t){const{actionType:n,paths:r,cornersLevel:i,despeckleLevel:o,detailLevel:u,numOfColors:l}=t,c=new this;return r&&c.paths(r),i&&c.cornersLevel(i),o&&c.despeckleLevel(o),u&&c.detailsLevel(u),l&&c.numOfColors(l),c}}class zI extends KI{level(t){return this._actionModel.level=t,this.setLevel(t)}}class WI extends di{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new nt("e",new Zt("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new nt("e",new Zt(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(t){return this._actionModel.type="stripes",this._actionModel.stripesStrength=t,this.addQualifier(new nt("e",new Zt(["assist_colorblind",t]).setDelimiter(":")))}static fromJson(t){const{actionType:n,type:r,stripesStrength:i}=t,o=new this;return r==="xray"&&o.xray(),r==="stripes"&&i&&o.stripesStrength(i),o}}class HI extends zI{color(t){return this._actionModel.color=t,this.addQualifier(new nt("co",new Zt(Uf(t))))}static fromJson(t){const{actionType:n,level:r,color:i}=t,o=new this(n,r);return i&&o.color(i),o}}class GI extends di{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 nt("e",`pixelate_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new nt("e",`pixelate_region${t}`)),this.addQualifier(new nt("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new nt("e",`pixelate_faces${t}`))):this.addQualifier(new nt("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(z5()),n&&n.regionType==="custom"&&i.region(FI()),i}}function qI(e){return new kI(e)}function YI(){return new Z5("grayscale")}function _1(e){return new HI("colorize",e)}function ZI(){return new UI}function JI(){return new WI}function QI(e){return new GI(e)}let XI=class extends di{constructor(t){super(),this._actionModel={},this.addQualifier(new nt("b",new Zt(Uf(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}},R1=class{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:Ay(`unsupported action ${this.constructor.name}`)}}};function eL(e){const t=e;return"error"in t&&!!t.error}function tL(){return new qr("ignore_aspect_ratio")}function nL(){return new qr("lossy")}function rL(){return new qr("preserve_transparency")}function iL(e){return new qr("progressive",e)}function oL(){return new qr("region_relative")}function aL(){return new qr("relative")}let Py=class extends Zt{constructor(t){super(t),this.val=t}getValue(){return this.val}},J5=class extends di{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof Py?i=n.getValue():i=n,this._actionModel.actionType=jI[t],this._actionModel[r]=i,this.addQualifier(new nt(t,n))}},uL=class extends qr{constructor(t){super("progressive",t)}},dg=class extends J5{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(nL()),this}progressive(t){return t instanceof uL?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(iL(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(rL()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:o}=t;let u;return n?u=new this("f",n):u=new this("f"),i&&(i.mode?u.progressive(i.mode):u.progressive()),r&&u.lossy(),o&&u.preserveTransparency(),u}},zf=class Q5{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 R1(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof Q5?this.actions=this.actions.concat(t.actions):this.actions.push(new R1(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 dg("q",t)),this}format(t){return this.addAction(new dg("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 XI(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new di;let r=t;return typeof t=="string"&&(r=new qr(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(eL(r))return r;t.push(r)}return{actions:t}}};function O1(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 sL extends Zt{}class lL extends di{constructor(t,n,r){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=NI[t]||t,this.addQualifier(new nt("c",t)),n&&this.width(n),r&&this.height(r)}height(t){return this._actionModel.dimensions.height=t,this.addQualifier(new nt("h",t))}width(t){return this._actionModel.dimensions.width=t,this.addQualifier(new nt("w",t))}aspectRatio(t){if(t instanceof sL)return this._actionModel.dimensions.aspectRatio=`${t}`,this.addQualifier(new nt("ar",t));if(typeof t=="number"||typeof t=="string")return this._actionModel.dimensions.aspectRatio=O1(t),this.addQualifier(new nt("ar",O1(t)));if(t instanceof qr)return this._actionModel.dimensions.aspectRatio=`${t.qualifierValue}`,this.addFlag(t)}relative(){return this._actionModel.relative=!0,this.addFlag(aL())}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(oL())}static fromJson(t){const{actionType:n,dimensions:r,relative:i,regionRelative:o}=t,{aspectRatio:u,width:l,height:c}=r,d=W5[n]||n,f=new this(d,l,c);return u&&f.aspectRatio(u==="ignore_aspect_ratio"?tL():u),i&&f.relative(),o&&f.regionRelative(),f}}class _y extends nt{constructor(t){super("g",new Zt(t))}}class X5 extends _y{constructor(){super("auto")}autoFocus(...t){return this.addValue(t),this}}class e2 extends _y{constructor(t){super(t)}fallbackGravity(t){return this.addValue(t.qualifierValue),this}}class t2 extends _y{constructor(t){super(t)}}function cL(e){return new t2(e)}function n2(...e){const t=[...e];return new e2(t)}function r2(){return new X5}class qu extends Zt{constructor(t){super(),this.name=t}toString(){return this.name}}function dL(){return new qu("ocr_text")}function fL(e){return e&&`${e}`.split(":")[0]==="auto"}function pL(e){const t=Ry(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}function Ry(e){return`${e}`.replace("g_","")}function hL(e){return{compass:Ry(e),gravityType:"direction"}}function mL(e){return Ry(e)==="ocr_text"}function gL(){return{gravityType:"ocr"}}function yL(e){return`${e.qualifierValue}`.split(":")[0]==="auto"}function vL(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 i2(e){let t;const n=e==="auto"?new X5: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(vL)}}function bL(e){const t=`${e}`.split(":").includes("auto"),n=e.qualifierValue.values,i={gravityType:"object",focusOnObjects:(t?n.slice(0,n.length-1):n).map(o=>`${o}`)};if(t){const o=n[n.length-1].values.slice(1),u=r2().autoFocus(...o);i.fallbackGravity=i2(u)}return i}function $L(e){const n=e.split(":").map(r=>new qu(r));return new e2(n)}function xL(e){return pL(e)?hL(e):mL(e)?gL():fL(e)||yL(e)?i2(e):bL(typeof e=="string"?$L(e):e)}class Oy extends Zt{constructor(t,n){super(),this._weight=n,this.focusOn=t,this.shouldAvoid=!1}static focusOn(t,n){const r=t instanceof qu?t:new qu(t);return new Oy(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 o2 extends Zt{constructor(t){super(),this.val=t}toString(){return this.val}}function wL(e){return e.gravityType==="direction"}function DL(e){return e.gravityType==="ocr"}function EL(e){return e.gravityType==="auto"}function CL(e){const{object:t,weight:n,avoid:r}=e,i=new Oy(new qu(t));return(n||n===0)&&i.weight(n),r&&i.avoid(),i}function a2(e){const n=(e.autoFocus||[]).map(CL);return r2().autoFocus(...n)}function SL(e){const t=(e.focusOnObjects||[]).map(r=>new qu(r)),n=n2(...t);if(e.fallbackGravity){const r=a2(e.fallbackGravity);n.fallbackGravity(r)}return n}function AL(e){return wL(e)?new t2(new o2(e.compass)):DL(e)?n2(dL()):EL(e)?a2(e):SL(e)}class Fy extends lL{gravity(t){this._actionModel.gravity=xL(t);const n=typeof t=="string"?new nt("g",t):t;return this.addQualifier(n)}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.gravity&&n.gravity(AL(t.gravity)),n}}class Kl extends nt{constructor(t){super("b"),t&&this.addValue(t)}}const u2=100,TL=0;class PL extends Kl{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}`:`:${u2}:${this.brightnessLevel}`:"";return`b_blurred${t}${n}`}}var s2=PL;class My extends Kl{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...t){return this._palette=t.map(n=>Uf(n)),this}}class l2 extends My{toString(){return`
|
|
95
|
-
b_auto:border
|
|
96
|
-
${this._contrast?"_contrast":""}
|
|
97
|
-
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
98
|
-
`.replace(/\s+/g,"")}}class c2 extends My{gradientColors(t){return this._gradientColors=t,this}gradientDirection(t){return this._gradientDirection=t,this}}class d2 extends c2{toString(){return`
|
|
99
|
-
b_auto:border_gradient
|
|
100
|
-
${this._contrast?"_contrast":""}
|
|
101
|
-
${this._gradientColors?`:${this._gradientColors}`:""}
|
|
102
|
-
${this._gradientDirection?`:${this._gradientDirection}`:""}
|
|
103
|
-
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
104
|
-
`.replace(/\s+/g,"")}}class f2 extends c2{toString(){return`
|
|
105
|
-
b_auto:predominant_gradient
|
|
106
|
-
${this._contrast?"_contrast":""}
|
|
107
|
-
${this._gradientColors?`:${this._gradientColors}`:""}
|
|
108
|
-
${this._gradientDirection?`:${this._gradientDirection}`:""}
|
|
109
|
-
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
110
|
-
`.replace(/\s+/g,"")}}class p2 extends My{toString(){return`
|
|
111
|
-
b_auto:predominant
|
|
112
|
-
${this._contrast?"_contrast":""}
|
|
113
|
-
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
114
|
-
`.replace(/\s+/g,"")}}class h2 extends Kl{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 m2(e){return`${e}`.replace("b_","")}function _L(){return{backgroundType:"auto"}}function RL(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 ky(e){const t=e._contrast,n=e._palette,r={backgroundType:""};return t&&(r.contrast=!0),n&&(r.palette=n),r}function OL(e){return Object.assign(Object.assign({},ky(e)),{backgroundType:"border"})}function g2(e){const t=e._gradientColors,n=`${e._gradientDirection}`,r=ky(e);return t&&(r.gradientColors=t),n&&(r.gradientDirection=n),r}function FL(e){return Object.assign(Object.assign({},g2(e)),{backgroundType:"borderGradient"})}function ML(e){return{backgroundType:"color",color:m2(e)}}function kL(e){return Object.assign(Object.assign({},ky(e)),{backgroundType:"predominant"})}function BL(e){return Object.assign(Object.assign({},g2(e)),{backgroundType:"predominantGradient"})}function IL(e){return Object.assign({backgroundType:e.getBackgroundType()},e.getPrompt()?{prompt:e.getPrompt()}:{})}function LL(e){return m2(e)==="auto"?_L():e instanceof s2?RL(e):e instanceof l2?OL(e):e instanceof d2?FL(e):e instanceof p2?kL(e):e instanceof f2?BL(e):e instanceof h2?IL(e):ML(e)}function VL(){return new Py("svg")}function By(){return new Py("auto")}function y2(){return new l2}function v2(){return new Kl("auto")}function b2(){return new d2}function $2(){return new f2}function x2(){return new p2}function w2(e){return new Kl(Uf(e))}function NL(){return new s2}function D2(){return new h2}const E2={auto:v2,border:y2,borderGradient:b2,predominantGradient:$2,predominant:x2,color:w2,blurred:NL,generativeFill:D2};function jL(e){const{brightness:t,intensity:n}=e,r=E2.blurred();return r.brightness(t??TL),r.intensity(n??u2),r}function F1(e,t){const{gradientColors:n,gradientDirection:r,contrast:i,palette:o}=t;return i&&e.contrast(),o&&e.palette(...o),n&&e.gradientColors(+n),r&&e.gradientDirection(r),e}function M1(e,t){const{contrast:n,palette:r}=t;return n&&e.contrast(),r&&e.palette(...r),e}function KL(e,t){const{prompt:n}=t;return n&&e.prompt(n),e}function UL(e){const{backgroundType:t}=e;switch(t){case"auto":return v2();case"blurred":return jL(e);case"border":return M1(y2(),e);case"borderGradient":return F1(b2(),e);case"predominant":return M1(x2(),e);case"predominantGradient":return F1($2(),e);case"generativeFill":return KL(D2(),e);default:return w2(e.color)}}class zL extends Fy{background(t){return this._actionModel.background=LL(t),this.addQualifier(t)}offsetX(t){return this._actionModel.x=t,this.addQualifier(new nt("x",t))}offsetY(t){return this._actionModel.y=t,this.addQualifier(new nt("y",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.background&&n.background(UL(t.background)),t.x&&n.offsetX(t.x),t.y&&n.offsetY(t.y),t.zoom&&n.zoom(t.zoom),n}}class WL extends Fy{x(t){return this._actionModel.x=t,this.addQualifier(new nt("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new nt("y",t))}zoom(t){return this._actionModel.zoom=t,this.addQualifier(new nt("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 HL extends Fy{x(t){return this._actionModel.x=t,this.addQualifier(new nt("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new nt("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 GL(e,t){return new WL("crop",e,t)}function qL(e,t){return new HL("fill",e,t)}function YL(e,t){return new zL("pad",e,t)}class ZL extends J5{constructor(t){super("q",t.toString(),"level")}chromaSubSampling(t){this._actionModel.chromaSubSampling=q5[t];const n=new Zt([this._actionModel.level,t]);return n.setDelimiter(":"),this.addQualifier(new nt("q",n))}quantization(t){this._actionModel.quantization=t;const n=new Zt([this._actionModel.level,`qmax_${t}`]).setDelimiter(":");return this.addQualifier(new nt("q",n))}static fromJson(t){const{level:n,chromaSubSampling:r,quantization:i}=t,o=G5[n]||n,u=new this(o);if(r){const l=VI[r.toUpperCase()];l&&u.chromaSubSampling(+l)}return i&&u.quantization(i),u}}function Wf(e){return new dg("f",e)}function Hf(e){return new ZL(e)}function JL(){return new o2("north_east")}_1(70).color("black"),_1(40).color("white"),YI(),JI();var QL=new zf().effect(ZI()).delivery(Hf("auto")).delivery(Wf(VL())),XL=new zf().effect(QI()).delivery(Hf("auto")).delivery(Wf(By())),eV=new zf().effect(qI(2e3)).delivery(Hf("auto")).delivery(Wf(By())),tV=new zf().resize(YL("iw_div_2").aspectRatio(1).background(E2.auto())).resize(GL(1,1).gravity(cL(JL()))).resize(qL().height("ih").width("iw")).delivery(Hf("auto")).delivery(Wf(By())),k1={vectorize:QL,pixelate:XL,blur:eV,"predominant-color":tV},B1="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",I1={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},L1="?_a=",nV=function(){function e(t,n,r,i,o,u,l){var c=this;this.mimeType="video",this.mimeSubTypes=I1,this.videoElement=t,this.originalVideo=n,this.videoOptions=l,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var d=Mo(n);ef(t,n,i,this.htmlPluginState).then(function(){c.htmlPluginState.pluginEventSubscription.forEach(function(f){f()}),c.setVideoAttributes(o,u),c.handleSourceToVideo(d,r)})}return e.prototype.handleSourceToVideo=function(t,n){var r=this;if(n)this.generateUserSources(t,n);else{var i=["webm","mp4","ogv"];i.forEach(function(o){r.appendSourceTag(Mo(t),o)})}},e.prototype.generateUserSources=function(t,n){var r=this;n.map(function(i){var o=i.type,u=i.codecs,l=i.transcode;return r.appendSourceTag(Mo(t).transcode(l),o,r.buildMimeType(o,u))})},e.prototype.appendSourceTag=function(t,n,r){var i,o=document.createElement("source"),u=(i=this.videoOptions)===null||i===void 0?void 0:i.useFetchFormat;u&&t.format(n);var l=t.toURL(),c=l.split(L1),d=c[1]?"".concat(L1).concat(c[1]):"",f=u?"":".".concat(n);o.src="".concat(c[0]).concat(f).concat(d),o.type=r||"video/".concat(I1[n]||n),this.videoElement.appendChild(o)},e.prototype.buildMimeType=function(t,n){var r="".concat(this.mimeType,"/").concat(this.mimeSubTypes[t]||t);return n&&(r+="; codecs="+(Array.isArray(n)?n.join(", "):n)),r},e.prototype.setVideoAttributes=function(t,n){var r;if(t===void 0&&(t={}),n==="auto"){var i=Mo(this.originalVideo);t.poster=i.quality("auto").format("jpg").addTransformation("so_auto").toURL()}else n&&(t.poster=(r=n.toURL)===null||r===void 0?void 0:r.call(n));for(var o=0,u=Object.entries(t);o<u.length;o++){var l=u[o],c=l[0],d=l[1];d&&this.videoElement.setAttribute(c,c==="poster"?d:"")}},e.prototype.update=function(t,n,r,i,o){var u=this;if(t!==this.originalVideo){for(var l=this.videoElement.getElementsByTagName("SOURCE");l[0];)l[0].parentNode.removeChild(l[0]);ef(this.videoElement,t,r,this.htmlPluginState).then(function(){u.setVideoAttributes(i,o),u.handleSourceToVideo(t,n),u.videoElement.load()})}},e}(),rV=typeof Fo=="object"&&Fo&&Fo.Object===Object&&Fo,iV=typeof self=="object"&&self&&self.Object===Object&&self;rV||iV||Function("return this")();function Iy(){return typeof window<"u"}function oV(e){return e instanceof HTMLImageElement}function aV(e){var t={},n=t.rootMargin,r=n===void 0?"0px":n,i=t.threshold,o=i===void 0?.1:i;return uV.bind(null,r,o)}function uV(e,t,n,r,i,o){return e===void 0&&(e="0px"),t===void 0&&(t=.1),Iy()?new Promise(function(u){var l=function(){return u({lazyload:!0})},c=lV(n,l,e,t);i.cleanupCallbacks.push(function(){c(),u("canceled")})}):!1}function sV(){return window&&"IntersectionObserver"in window}function lV(e,t,n,r){try{if(!sV())return t(),function(){};var i=new IntersectionObserver(function(o){o.forEach(function(u){u.isIntersecting&&(i.unobserve(u.target),t())})},{rootMargin:n,threshold:r});return i.observe(e),function(){e&&i.observe(e)}}catch{t()}}function cV(e){var t={},n=t.mode,r=n===void 0?"vectorize":n;return dV.bind(null,r)}function dV(e,t,n,r,i,o){k1[e]||(e="vectorize");var u=k1[e].actions,l=Mo(n);if(u.forEach(function(d){l.addAction(d)}),!Iy())return n.transformation=l.transformation,!0;if(oV(t)){l.transformation.actions.forEach(function(d,f){d instanceof di&&d.getActionTag()==="responsive"&&delete l.transformation.actions[f]});var c=cg(i,{placeholder:!0});return t.src=l.toURL(c),t.onerror=function(){t.src=B1},new Promise(function(d){t.onload=function(){d()}}).then(function(){return new Promise(function(d){r.cleanupCallbacks.push(function(){t.src=B1,d("canceled")});var f=new Image;f.src=n.toURL(c),f.onload=function(){d({placeholder:!0})},f.onerror=function(){d({placeholder:!0})}})})}}function fV(e,t,n){var r=Mo(t);if(e)for(var i=0;i<e.length;i++){var o=e[i](null,r);if(!o)break}return r.toURL({trackedAnalytics:n})}function tf(e){e.cleanupCallbacks.forEach(function(t){t()})}var fg=function(e,t){return fg=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])},fg(e,t)};function C2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");fg(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var bl=function(){return bl=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},bl.apply(this,arguments)};function S2(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 $l={exports:{}},Pt={};/*
|
|
115
|
-
object-assign
|
|
116
|
-
(c) Sindre Sorhus
|
|
117
|
-
@license MIT
|
|
118
|
-
*/var V1=Object.getOwnPropertySymbols,pV=Object.prototype.hasOwnProperty,hV=Object.prototype.propertyIsEnumerable;function mV(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function gV(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(r.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var A2=gV()?Object.assign:function(e,t){for(var n,r=mV(e),i,o=1;o<arguments.length;o++){n=Object(arguments[o]);for(var u in n)pV.call(n,u)&&(r[u]=n[u]);if(V1){i=V1(n);for(var l=0;l<i.length;l++)hV.call(n,i[l])&&(r[i[l]]=n[i[l]])}}return r};/** @license React v16.14.0
|
|
119
|
-
* react.production.min.js
|
|
120
|
-
*
|
|
121
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
122
|
-
*
|
|
123
|
-
* This source code is licensed under the MIT license found in the
|
|
124
|
-
* LICENSE file in the root directory of this source tree.
|
|
125
|
-
*/var Ly=A2,fi=typeof Symbol=="function"&&Symbol.for,Ul=fi?Symbol.for("react.element"):60103,yV=fi?Symbol.for("react.portal"):60106,vV=fi?Symbol.for("react.fragment"):60107,bV=fi?Symbol.for("react.strict_mode"):60108,$V=fi?Symbol.for("react.profiler"):60114,xV=fi?Symbol.for("react.provider"):60109,wV=fi?Symbol.for("react.context"):60110,DV=fi?Symbol.for("react.forward_ref"):60112,EV=fi?Symbol.for("react.suspense"):60113,CV=fi?Symbol.for("react.memo"):60115,SV=fi?Symbol.for("react.lazy"):60116,N1=typeof Symbol=="function"&&Symbol.iterator;function zl(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 T2={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},P2={};function os(e,t,n){this.props=e,this.context=t,this.refs=P2,this.updater=n||T2}os.prototype.isReactComponent={};os.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(zl(85));this.updater.enqueueSetState(this,e,t,"setState")};os.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function _2(){}_2.prototype=os.prototype;function Vy(e,t,n){this.props=e,this.context=t,this.refs=P2,this.updater=n||T2}var Ny=Vy.prototype=new _2;Ny.constructor=Vy;Ly(Ny,os.prototype);Ny.isPureReactComponent=!0;var jy={current:null},R2=Object.prototype.hasOwnProperty,O2={key:!0,ref:!0,__self:!0,__source:!0};function F2(e,t,n){var r,i={},o=null,u=null;if(t!=null)for(r in t.ref!==void 0&&(u=t.ref),t.key!==void 0&&(o=""+t.key),t)R2.call(t,r)&&!O2.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var c=Array(l),d=0;d<l;d++)c[d]=arguments[d+2];i.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:Ul,type:e,key:o,ref:u,props:i,_owner:jy.current}}function AV(e,t){return{$$typeof:Ul,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ky(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ul}function TV(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(n){return t[n]})}var M2=/\/+/g,nf=[];function k2(e,t,n,r){if(nf.length){var i=nf.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 B2(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>nf.length&&nf.push(e)}function pg(e,t,n,r){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Ul:case yV:o=!0}}if(o)return n(r,e,t===""?"."+qh(e,0):t),1;if(o=0,t=t===""?".":t+":",Array.isArray(e))for(var u=0;u<e.length;u++){i=e[u];var l=t+qh(i,u);o+=pg(i,l,n,r)}else if(e===null||typeof e!="object"?l=null:(l=N1&&e[N1]||e["@@iterator"],l=typeof l=="function"?l:null),typeof l=="function")for(e=l.call(e),u=0;!(i=e.next()).done;)i=i.value,l=t+qh(i,u++),o+=pg(i,l,n,r);else if(i==="object")throw n=""+e,Error(zl(31,n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return o}function hg(e,t,n){return e==null?0:pg(e,"",t,n)}function qh(e,t){return typeof e=="object"&&e!==null&&e.key!=null?TV(e.key):t.toString(36)}function PV(e,t){e.func.call(e.context,t,e.count++)}function _V(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?mg(e,r,n,function(o){return o}):e!=null&&(Ky(e)&&(e=AV(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(M2,"$&/")+"/")+n)),r.push(e))}function mg(e,t,n,r,i){var o="";n!=null&&(o=(""+n).replace(M2,"$&/")+"/"),t=k2(t,o,r,i),hg(e,_V,t),B2(t)}var I2={current:null};function ao(){var e=I2.current;if(e===null)throw Error(zl(321));return e}var RV={ReactCurrentDispatcher:I2,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:jy,IsSomeRendererActing:{current:!1},assign:Ly};Pt.Children={map:function(e,t,n){if(e==null)return e;var r=[];return mg(e,r,null,t,n),r},forEach:function(e,t,n){if(e==null)return e;t=k2(null,null,t,n),hg(e,PV,t),B2(t)},count:function(e){return hg(e,function(){return null},null)},toArray:function(e){var t=[];return mg(e,t,null,function(n){return n}),t},only:function(e){if(!Ky(e))throw Error(zl(143));return e}};Pt.Component=os;Pt.Fragment=vV;Pt.Profiler=$V;Pt.PureComponent=Vy;Pt.StrictMode=bV;Pt.Suspense=EV;Pt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=RV;Pt.cloneElement=function(e,t,n){if(e==null)throw Error(zl(267,e));var r=Ly({},e.props),i=e.key,o=e.ref,u=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,u=jy.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)R2.call(t,c)&&!O2.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){l=Array(c);for(var d=0;d<c;d++)l[d]=arguments[d+2];r.children=l}return{$$typeof:Ul,type:e.type,key:i,ref:o,props:r,_owner:u}};Pt.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:wV,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:xV,_context:e},e.Consumer=e};Pt.createElement=F2;Pt.createFactory=function(e){var t=F2.bind(null,e);return t.type=e,t};Pt.createRef=function(){return{current:null}};Pt.forwardRef=function(e){return{$$typeof:DV,render:e}};Pt.isValidElement=Ky;Pt.lazy=function(e){return{$$typeof:SV,_ctor:e,_status:-1,_result:null}};Pt.memo=function(e,t){return{$$typeof:CV,type:e,compare:t===void 0?null:t}};Pt.useCallback=function(e,t){return ao().useCallback(e,t)};Pt.useContext=function(e,t){return ao().useContext(e,t)};Pt.useDebugValue=function(){};Pt.useEffect=function(e,t){return ao().useEffect(e,t)};Pt.useImperativeHandle=function(e,t,n){return ao().useImperativeHandle(e,t,n)};Pt.useLayoutEffect=function(e,t){return ao().useLayoutEffect(e,t)};Pt.useMemo=function(e,t){return ao().useMemo(e,t)};Pt.useReducer=function(e,t,n){return ao().useReducer(e,t,n)};Pt.useRef=function(e){return ao().useRef(e)};Pt.useState=function(e){return ao().useState(e)};Pt.version="16.14.0";var Tt={},OV="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",FV=OV,MV=Function.call.bind(Object.prototype.hasOwnProperty),gg=function(){};if(process.env.NODE_ENV!=="production"){var kV=FV,yg={},BV=MV;gg=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}}}function L2(e,t,n,r,i){if(process.env.NODE_ENV!=="production"){for(var o in e)if(BV(e,o)){var u;try{if(typeof e[o]!="function"){var l=Error((r||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}u=e[o](t,o,r,n,null,kV)}catch(d){u=d}if(u&&!(u instanceof Error)&&gg((r||"React class")+": type specification of "+n+" `"+o+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in yg)){yg[u.message]=!0;var c=i?i():"";gg("Failed "+n+" type: "+u.message+(c??""))}}}}L2.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(yg={})};var IV=L2;/** @license React v16.14.0
|
|
126
|
-
* react.development.js
|
|
127
|
-
*
|
|
128
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
129
|
-
*
|
|
130
|
-
* This source code is licensed under the MIT license found in the
|
|
131
|
-
* LICENSE file in the root directory of this source tree.
|
|
132
|
-
*/process.env.NODE_ENV!=="production"&&function(){var e=A2,t=IV,n="16.14.0",r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,u=r?Symbol.for("react.fragment"):60107,l=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,d=r?Symbol.for("react.provider"):60109,f=r?Symbol.for("react.context"):60110,h=r?Symbol.for("react.concurrent_mode"):60111,g=r?Symbol.for("react.forward_ref"):60112,m=r?Symbol.for("react.suspense"):60113,$=r?Symbol.for("react.suspense_list"):60120,w=r?Symbol.for("react.memo"):60115,C=r?Symbol.for("react.lazy"):60116,x=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,D=r?Symbol.for("react.responder"):60118,P=r?Symbol.for("react.scope"):60119,E=typeof Symbol=="function"&&Symbol.iterator,T="@@iterator";function V(F){if(F===null||typeof F!="object")return null;var Q=E&&F[E]||F[T];return typeof Q=="function"?Q:null}var S={current:null},z={suspense:null},O={current:null},M=/^(.*)[\\\/]/;function G(F,Q,se){var be="";if(Q){var Re=Q.fileName,rt=Re.replace(M,"");if(/^index\./.test(rt)){var Ke=Re.match(M);if(Ke){var ze=Ke[1];if(ze){var Rt=ze.replace(M,"");rt=Rt+"/"+rt}}}be=" (at "+rt+":"+Q.lineNumber+")"}else se&&(be=" (created by "+se+")");return`
|
|
133
|
-
in `+(F||"Unknown")+be}var K=1;function W(F){return F._status===K?F._result:null}function j(F,Q,se){var be=Q.displayName||Q.name||"";return F.displayName||(be!==""?se+"("+be+")":se)}function I(F){if(F==null)return null;if(typeof F.tag=="number"&&oe("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof F=="function")return F.displayName||F.name||null;if(typeof F=="string")return F;switch(F){case u:return"Fragment";case o:return"Portal";case c:return"Profiler";case l:return"StrictMode";case m:return"Suspense";case $:return"SuspenseList"}if(typeof F=="object")switch(F.$$typeof){case f:return"Context.Consumer";case d:return"Context.Provider";case g:return j(F,F.render,"ForwardRef");case w:return I(F.type);case x:return I(F.render);case C:{var Q=F,se=W(Q);if(se)return I(se);break}}return null}var R={},B=null;function J(F){B=F}R.getCurrentStack=null,R.getStackAddendum=function(){var F="";if(B){var Q=I(B.type),se=B._owner;F+=G(Q,B._source,se&&I(se.type))}var be=R.getCurrentStack;return be&&(F+=be()||""),F};var L={current:!1},U={ReactCurrentDispatcher:S,ReactCurrentBatchConfig:z,ReactCurrentOwner:O,IsSomeRendererActing:L,assign:e};e(U,{ReactDebugCurrentFrame:R,ReactComponentTreeHook:{}});function re(F){{for(var Q=arguments.length,se=new Array(Q>1?Q-1:0),be=1;be<Q;be++)se[be-1]=arguments[be];fe("warn",F,se)}}function oe(F){{for(var Q=arguments.length,se=new Array(Q>1?Q-1:0),be=1;be<Q;be++)se[be-1]=arguments[be];fe("error",F,se)}}function fe(F,Q,se){{var be=se.length>0&&typeof se[se.length-1]=="string"&&se[se.length-1].indexOf(`
|
|
134
|
-
in`)===0;if(!be){var Re=U.ReactDebugCurrentFrame,rt=Re.getStackAddendum();rt!==""&&(Q+="%s",se=se.concat([rt]))}var Ke=se.map(function(Ut){return""+Ut});Ke.unshift("Warning: "+Q),Function.prototype.apply.call(console[F],console,Ke);try{var ze=0,Rt="Warning: "+Q.replace(/%s/g,function(){return se[ze++]});throw new Error(Rt)}catch{}}}var ie={};function Ee(F,Q){{var se=F.constructor,be=se&&(se.displayName||se.name)||"ReactClass",Re=be+"."+Q;if(ie[Re])return;oe("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",Q,be),ie[Re]=!0}}var $e={isMounted:function(F){return!1},enqueueForceUpdate:function(F,Q,se){Ee(F,"forceUpdate")},enqueueReplaceState:function(F,Q,se,be){Ee(F,"replaceState")},enqueueSetState:function(F,Q,se,be){Ee(F,"setState")}},ne={};Object.freeze(ne);function ye(F,Q,se){this.props=F,this.context=Q,this.refs=ne,this.updater=se||$e}ye.prototype.isReactComponent={},ye.prototype.setState=function(F,Q){if(!(typeof F=="object"||typeof F=="function"||F==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,F,Q,"setState")},ye.prototype.forceUpdate=function(F){this.updater.enqueueForceUpdate(this,F,"forceUpdate")};{var xe={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},pe=function(F,Q){Object.defineProperty(ye.prototype,F,{get:function(){re("%s(...) is deprecated in plain JavaScript React classes. %s",Q[0],Q[1])}})};for(var le in xe)xe.hasOwnProperty(le)&&pe(le,xe[le])}function Me(){}Me.prototype=ye.prototype;function Xe(F,Q,se){this.props=F,this.context=Q,this.refs=ne,this.updater=se||$e}var ct=Xe.prototype=new Me;ct.constructor=Xe,e(ct,ye.prototype),ct.isPureReactComponent=!0;function vn(){var F={current:null};return Object.seal(F),F}var gt=Object.prototype.hasOwnProperty,q={key:!0,ref:!0,__self:!0,__source:!0},Y,te,he;he={};function Ce(F){if(gt.call(F,"ref")){var Q=Object.getOwnPropertyDescriptor(F,"ref").get;if(Q&&Q.isReactWarning)return!1}return F.ref!==void 0}function De(F){if(gt.call(F,"key")){var Q=Object.getOwnPropertyDescriptor(F,"key").get;if(Q&&Q.isReactWarning)return!1}return F.key!==void 0}function _e(F,Q){var se=function(){Y||(Y=!0,oe("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",Q))};se.isReactWarning=!0,Object.defineProperty(F,"key",{get:se,configurable:!0})}function Ve(F,Q){var se=function(){te||(te=!0,oe("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",Q))};se.isReactWarning=!0,Object.defineProperty(F,"ref",{get:se,configurable:!0})}function ht(F){if(typeof F.ref=="string"&&O.current&&F.__self&&O.current.stateNode!==F.__self){var Q=I(O.current.type);he[Q]||(oe('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref',I(O.current.type),F.ref),he[Q]=!0)}}var ut=function(F,Q,se,be,Re,rt,Ke){var ze={$$typeof:i,type:F,key:Q,ref:se,props:Ke,_owner:rt};return ze._store={},Object.defineProperty(ze._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ze,"_self",{configurable:!1,enumerable:!1,writable:!1,value:be}),Object.defineProperty(ze,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Re}),Object.freeze&&(Object.freeze(ze.props),Object.freeze(ze)),ze};function _t(F,Q,se){var be,Re={},rt=null,Ke=null,ze=null,Rt=null;if(Q!=null){Ce(Q)&&(Ke=Q.ref,ht(Q)),De(Q)&&(rt=""+Q.key),ze=Q.__self===void 0?null:Q.__self,Rt=Q.__source===void 0?null:Q.__source;for(be in Q)gt.call(Q,be)&&!q.hasOwnProperty(be)&&(Re[be]=Q[be])}var Ut=arguments.length-2;if(Ut===1)Re.children=se;else if(Ut>1){for(var Tn=Array(Ut),Pn=0;Pn<Ut;Pn++)Tn[Pn]=arguments[Pn+2];Object.freeze&&Object.freeze(Tn),Re.children=Tn}if(F&&F.defaultProps){var Pr=F.defaultProps;for(be in Pr)Re[be]===void 0&&(Re[be]=Pr[be])}if(rt||Ke){var Yn=typeof F=="function"?F.displayName||F.name||"Unknown":F;rt&&_e(Re,Yn),Ke&&Ve(Re,Yn)}return ut(F,rt,Ke,ze,Rt,O.current,Re)}function En(F,Q){var se=ut(F.type,Q,F.ref,F._self,F._source,F._owner,F.props);return se}function Cn(F,Q,se){if(F==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+F+".");var be,Re=e({},F.props),rt=F.key,Ke=F.ref,ze=F._self,Rt=F._source,Ut=F._owner;if(Q!=null){Ce(Q)&&(Ke=Q.ref,Ut=O.current),De(Q)&&(rt=""+Q.key);var Tn;F.type&&F.type.defaultProps&&(Tn=F.type.defaultProps);for(be in Q)gt.call(Q,be)&&!q.hasOwnProperty(be)&&(Q[be]===void 0&&Tn!==void 0?Re[be]=Tn[be]:Re[be]=Q[be])}var Pn=arguments.length-2;if(Pn===1)Re.children=se;else if(Pn>1){for(var Pr=Array(Pn),Yn=0;Yn<Pn;Yn++)Pr[Yn]=arguments[Yn+2];Re.children=Pr}return ut(F.type,rt,Ke,ze,Rt,Ut,Re)}function Ht(F){return typeof F=="object"&&F!==null&&F.$$typeof===i}var Rn=".",Jt=":";function yt(F){var Q=/[=:]/g,se={"=":"=0",":":"=2"},be=(""+F).replace(Q,function(Re){return se[Re]});return"$"+be}var On=!1,gr=/\/+/g;function Sn(F){return(""+F).replace(gr,"$&/")}var Hn=10,An=[];function Gn(F,Q,se,be){if(An.length){var Re=An.pop();return Re.result=F,Re.keyPrefix=Q,Re.func=se,Re.context=be,Re.count=0,Re}else return{result:F,keyPrefix:Q,func:se,context:be,count:0}}function Fn(F){F.result=null,F.keyPrefix=null,F.func=null,F.context=null,F.count=0,An.length<Hn&&An.push(F)}function bn(F,Q,se,be){var Re=typeof F;(Re==="undefined"||Re==="boolean")&&(F=null);var rt=!1;if(F===null)rt=!0;else switch(Re){case"string":case"number":rt=!0;break;case"object":switch(F.$$typeof){case i:case o:rt=!0}}if(rt)return se(be,F,Q===""?Rn+Lt(F,0):Q),1;var Ke,ze,Rt=0,Ut=Q===""?Rn:Q+Jt;if(Array.isArray(F))for(var Tn=0;Tn<F.length;Tn++)Ke=F[Tn],ze=Ut+Lt(Ke,Tn),Rt+=bn(Ke,ze,se,be);else{var Pn=V(F);if(typeof Pn=="function"){Pn===F.entries&&(On||re("Using Maps as children is deprecated and will be removed in a future major release. Consider converting children to an array of keyed ReactElements instead."),On=!0);for(var Pr=Pn.call(F),Yn,Ya=0;!(Yn=Pr.next()).done;)Ke=Yn.value,ze=Ut+Lt(Ke,Ya++),Rt+=bn(Ke,ze,se,be)}else if(Re==="object"){var Jo="";Jo=" If you meant to render a collection of children, use an array instead."+R.getStackAddendum();var Qo=""+F;throw Error("Objects are not valid as a React child (found: "+(Qo==="[object Object]"?"object with keys {"+Object.keys(F).join(", ")+"}":Qo)+")."+Jo)}}return Rt}function Ar(F,Q,se){return F==null?0:bn(F,"",Q,se)}function Lt(F,Q){return typeof F=="object"&&F!==null&&F.key!=null?yt(F.key):Q.toString(36)}function $n(F,Q,se){var be=F.func,Re=F.context;be.call(Re,Q,F.count++)}function Ne(F,Q,se){if(F==null)return F;var be=Gn(null,null,Q,se);Ar(F,$n,be),Fn(be)}function et(F,Q,se){var be=F.result,Re=F.keyPrefix,rt=F.func,Ke=F.context,ze=rt.call(Ke,Q,F.count++);Array.isArray(ze)?Qt(ze,be,se,function(Rt){return Rt}):ze!=null&&(Ht(ze)&&(ze=En(ze,Re+(ze.key&&(!Q||Q.key!==ze.key)?Sn(ze.key)+"/":"")+se)),be.push(ze))}function Qt(F,Q,se,be,Re){var rt="";se!=null&&(rt=Sn(se)+"/");var Ke=Gn(Q,rt,be,Re);Ar(F,et,Ke),Fn(Ke)}function ir(F,Q,se){if(F==null)return F;var be=[];return Qt(F,be,null,Q,se),be}function Ae(F){return Ar(F,function(){return null},null)}function je(F){var Q=[];return Qt(F,Q,null,function(se){return se}),Q}function qe(F){if(!Ht(F))throw Error("React.Children.only expected to receive a single React element child.");return F}function Ft(F,Q){Q===void 0?Q=null:Q!==null&&typeof Q!="function"&&oe("createContext: Expected the optional second argument to be a function. Instead received: %s",Q);var se={$$typeof:f,_calculateChangedBits:Q,_currentValue:F,_currentValue2:F,_threadCount:0,Provider:null,Consumer:null};se.Provider={$$typeof:d,_context:se};var be=!1,Re=!1;{var rt={$$typeof:f,_context:se,_calculateChangedBits:se._calculateChangedBits};Object.defineProperties(rt,{Provider:{get:function(){return Re||(Re=!0,oe("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),se.Provider},set:function(Ke){se.Provider=Ke}},_currentValue:{get:function(){return se._currentValue},set:function(Ke){se._currentValue=Ke}},_currentValue2:{get:function(){return se._currentValue2},set:function(Ke){se._currentValue2=Ke}},_threadCount:{get:function(){return se._threadCount},set:function(Ke){se._threadCount=Ke}},Consumer:{get:function(){return be||(be=!0,oe("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),se.Consumer}}}),se.Consumer=rt}return se._currentRenderer=null,se._currentRenderer2=null,se}function Xt(F){var Q={$$typeof:C,_ctor:F,_status:-1,_result:null};{var se,be;Object.defineProperties(Q,{defaultProps:{configurable:!0,get:function(){return se},set:function(Re){oe("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),se=Re,Object.defineProperty(Q,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return be},set:function(Re){oe("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),be=Re,Object.defineProperty(Q,"propTypes",{enumerable:!0})}}})}return Q}function Mn(F){return F!=null&&F.$$typeof===w?oe("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof F!="function"?oe("forwardRef requires a render function but was given %s.",F===null?"null":typeof F):F.length!==0&&F.length!==2&&oe("forwardRef render functions accept exactly two parameters: props and ref. %s",F.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),F!=null&&(F.defaultProps!=null||F.propTypes!=null)&&oe("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:g,render:F}}function Nt(F){return typeof F=="string"||typeof F=="function"||F===u||F===h||F===c||F===l||F===m||F===$||typeof F=="object"&&F!==null&&(F.$$typeof===C||F.$$typeof===w||F.$$typeof===d||F.$$typeof===f||F.$$typeof===g||F.$$typeof===v||F.$$typeof===D||F.$$typeof===P||F.$$typeof===x)}function tn(F,Q){return Nt(F)||oe("memo: The first argument must be a component. Instead received: %s",F===null?"null":typeof F),{$$typeof:w,type:F,compare:Q===void 0?null:Q}}function Mt(){var F=S.current;if(F===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
135
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
136
|
-
2. You might be breaking the Rules of Hooks
|
|
137
|
-
3. You might have more than one copy of React in the same app
|
|
138
|
-
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.`);return F}function xt(F,Q){var se=Mt();if(Q!==void 0&&oe("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",Q,typeof Q=="number"&&Array.isArray(arguments[2])?`
|
|
139
|
-
|
|
140
|
-
Did you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks`:""),F._context!==void 0){var be=F._context;be.Consumer===F?oe("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):be.Provider===F&&oe("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return se.useContext(F,Q)}function Jr(F){var Q=Mt();return Q.useState(F)}function Go(F,Q,se){var be=Mt();return be.useReducer(F,Q,se)}function or(F){var Q=Mt();return Q.useRef(F)}function uo(F,Q){var se=Mt();return se.useEffect(F,Q)}function so(F,Q){var se=Mt();return se.useLayoutEffect(F,Q)}function lo(F,Q){var se=Mt();return se.useCallback(F,Q)}function mt(F,Q){var se=Mt();return se.useMemo(F,Q)}function qn(F,Q,se){var be=Mt();return be.useImperativeHandle(F,Q,se)}function ar(F,Q){{var se=Mt();return se.useDebugValue(F,Q)}}var kn;kn=!1;function co(){if(O.current){var F=I(O.current.type);if(F)return`
|
|
141
|
-
|
|
142
|
-
Check the render method of \``+F+"`."}return""}function Tr(F){if(F!==void 0){var Q=F.fileName.replace(/^.*[\\\/]/,""),se=F.lineNumber;return`
|
|
143
|
-
|
|
144
|
-
Check your code at `+Q+":"+se+"."}return""}function ps(F){return F!=null?Tr(F.__source):""}var Ka={};function hs(F){var Q=co();if(!Q){var se=typeof F=="string"?F:F.displayName||F.name;se&&(Q=`
|
|
145
|
-
|
|
146
|
-
Check the top-level render call using <`+se+">.")}return Q}function fo(F,Q){if(!(!F._store||F._store.validated||F.key!=null)){F._store.validated=!0;var se=hs(Q);if(!Ka[se]){Ka[se]=!0;var be="";F&&F._owner&&F._owner!==O.current&&(be=" It was passed a child from "+I(F._owner.type)+"."),J(F),oe('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',se,be),J(null)}}}function mi(F,Q){if(typeof F=="object"){if(Array.isArray(F))for(var se=0;se<F.length;se++){var be=F[se];Ht(be)&&fo(be,Q)}else if(Ht(F))F._store&&(F._store.validated=!0);else if(F){var Re=V(F);if(typeof Re=="function"&&Re!==F.entries)for(var rt=Re.call(F),Ke;!(Ke=rt.next()).done;)Ht(Ke.value)&&fo(Ke.value,Q)}}}function qo(F){{var Q=F.type;if(Q==null||typeof Q=="string")return;var se=I(Q),be;if(typeof Q=="function")be=Q.propTypes;else if(typeof Q=="object"&&(Q.$$typeof===g||Q.$$typeof===w))be=Q.propTypes;else return;be?(J(F),t(be,F.props,"prop",se,R.getStackAddendum),J(null)):Q.PropTypes!==void 0&&!kn&&(kn=!0,oe("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",se||"Unknown")),typeof Q.getDefaultProps=="function"&&!Q.getDefaultProps.isReactClassApproved&&oe("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Yo(F){{J(F);for(var Q=Object.keys(F.props),se=0;se<Q.length;se++){var be=Q[se];if(be!=="children"&&be!=="key"){oe("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",be);break}}F.ref!==null&&oe("Invalid attribute `ref` supplied to `React.Fragment`."),J(null)}}function Ua(F,Q,se){var be=Nt(F);if(!be){var Re="";(F===void 0||typeof F=="object"&&F!==null&&Object.keys(F).length===0)&&(Re+=" 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 rt=ps(Q);rt?Re+=rt:Re+=co();var Ke;F===null?Ke="null":Array.isArray(F)?Ke="array":F!==void 0&&F.$$typeof===i?(Ke="<"+(I(F.type)||"Unknown")+" />",Re=" Did you accidentally export a JSX literal instead of a component?"):Ke=typeof F,oe("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ke,Re)}var ze=_t.apply(this,arguments);if(ze==null)return ze;if(be)for(var Rt=2;Rt<arguments.length;Rt++)mi(arguments[Rt],F);return F===u?Yo(ze):qo(ze),ze}var za=!1;function ms(F){var Q=Ua.bind(null,F);return Q.type=F,za||(za=!0,re("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(Q,"type",{enumerable:!1,get:function(){return re("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:F}),F}}),Q}function Wa(F,Q,se){for(var be=Cn.apply(this,arguments),Re=2;Re<arguments.length;Re++)mi(arguments[Re],be.type);return qo(be),be}try{var Zo=Object.freeze({}),Ha=new Map([[Zo,null]]),ki=new Set([Zo]);Ha.set(0,0),ki.add(0)}catch{}var gs=Ua,Ga=Wa,po=ms,qa={map:ir,forEach:Ne,count:Ae,toArray:je,only:qe};Tt.Children=qa,Tt.Component=ye,Tt.Fragment=u,Tt.Profiler=c,Tt.PureComponent=Xe,Tt.StrictMode=l,Tt.Suspense=m,Tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=U,Tt.cloneElement=Ga,Tt.createContext=Ft,Tt.createElement=gs,Tt.createFactory=po,Tt.createRef=vn,Tt.forwardRef=Mn,Tt.isValidElement=Ht,Tt.lazy=Xt,Tt.memo=tn,Tt.useCallback=lo,Tt.useContext=xt,Tt.useDebugValue=ar,Tt.useEffect=uo,Tt.useImperativeHandle=qn,Tt.useLayoutEffect=so,Tt.useMemo=mt,Tt.useReducer=Go,Tt.useRef=or,Tt.useState=Jr,Tt.version=n}();process.env.NODE_ENV==="production"?$l.exports=Pt:$l.exports=Tt;var Su=$l.exports,Yh={sdkSemver:"1.13.1",techVersion:Su.version,sdkCode:"J"},LV=function(e){C2(t,e);function t(n){var r=e.call(this,n)||this;return r.imageRef=Su.createRef(),r}return t.prototype.componentDidMount=function(){this.htmlLayerInstance=new SI(this.imageRef.current,this.props.cldImg,this.props.plugins,Yh)},t.prototype.componentDidUpdate=function(){tf(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,Yh)},t.prototype.componentWillUnmount=function(){tf(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},t.prototype.render=function(){var n=this.props;n.cldImg,n.plugins;var r=S2(n,["cldImg","plugins"]);if(Iy())return Su.createElement("img",bl({suppressHydrationWarning:!0},r,{ref:this.imageRef}));var i=fV(this.props.plugins,this.props.cldImg,Yh);return Su.createElement("img",bl({},r,{src:i}))},t}(Su.Component),VV=["controls","loop","muted","poster","preload","autoplay","playsinline"];(function(e){C2(t,e);function t(n){var r=e.call(this,n)||this;return r.videoRef=$l.exports.createRef(),r.attachRef=r.attachRef.bind(r),r}return t.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new nV(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(){tf(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},t.prototype.componentWillUnmount=function(){tf(this.htmlVideoLayerInstance.htmlPluginState)},t.prototype.getVideoAttributes=function(){var n=this,r={};return VV.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=S2(n,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return Su.createElement("video",bl({},r,{ref:this.attachRef}))},t})($l.exports.Component);function NV(e){return!(typeof e!="object"||e instanceof Array)}class jV{filterOutNonSupportedKeys(t,n){const r=Object.create({});return NV(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 j1=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class Uy extends jV{constructor(t){super();const n=this.filterOutNonSupportedKeys(t,j1);Object.assign(this,{secure:!0},n)}extend(t){const n=this.filterOutNonSupportedKeys(t,j1);return new Uy(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 xl{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 KV extends Error{constructor(t="Unsupported"){super(t)}}function zy(e){return new KV(e)}function UV(){return this._qualifierModel||{error:zy(`unsupported qualifier ${this.constructor.name}`)}}class zV{constructor(){this._qualifierModel={}}toJson(){return UV.apply(this)}}class Gf extends zV{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof xl?this.qualifierValue=n:(this.qualifierValue=new xl,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 Io extends Gf{constructor(t,n){let r;n?r=new xl([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function WV(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function HV(){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:zy(`unsupported action ${this.constructor.name}`)}}class GV{constructor(){this._actionModel={}}toJson(){return HV.apply(this)}}class Wy extends GV{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(),WV(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 Io(r)):this.qualifiers.set(n,new Gf(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new Io(t)):t instanceof Io&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}}function qV(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class YV extends Wy{constructor(t){super(),this._actionModel={},this.addQualifier(new Gf("b",new xl(qV(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}}class K1{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:zy(`unsupported action ${this.constructor.name}`)}}}function ZV(e){const t=e;return"error"in t&&!!t.error}function JV(){return new Io("lossy")}function QV(){return new Io("preserve_transparency")}function XV(e){return new Io("progressive",e)}class eN extends xl{constructor(t){super(t),this.val=t}getValue(){return this.val}}function Va(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const tN={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},nN={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},rN={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},iN={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},oN={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},aN={444:"CHROMA_444",420:"CHROMA_420"},uN={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"};Va(aN);Va(uN);Va(tN);const sN=Va(nN);Va(rN);Va(iN);Va(oN);class lN extends Wy{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof eN?i=n.getValue():i=n,this._actionModel.actionType=sN[t],this._actionModel[r]=i,this.addQualifier(new Gf(t,n))}}class cN extends Io{constructor(t){super("progressive",t)}}class rf extends lN{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(JV()),this}progressive(t){return t instanceof cN?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(XV(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(QV()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:o}=t;let u;return n?u=new this("f",n):u=new this("f"),i&&(i.mode?u.progressive(i.mode):u.progressive()),r&&u.lossy(),o&&u.preserveTransparency(),u}}class qf{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 K1(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof qf?this.actions=this.actions.concat(t.actions):this.actions.push(new K1(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 rf("q",t)),this}format(t){return this.addAction(new rf("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 YV(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new Wy;let r=t;return typeof t=="string"&&(r=new Io(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(ZV(r))return r;t.push(r)}return{actions:t}}}class dN extends qf{}class fN extends qf{}function pN(e){return e.match(/^https?:\//)}function hN(e){return e.indexOf("/")<0}function mN(e){return e.match(/^v[0-9]+/)}function gN(e,t){const n=t.secure,r=t.privateCdn,i=t.cname,o=t.secureDistribution;return!n&&!i?`http://res.cloudinary.com/${e}`:n&&!o&&r?`https://${e}-res.cloudinary.com`:n&&!o?`https://res.cloudinary.com/${e}`:n&&o&&r?`https://${o}`:n&&o?`https://${o}/${e}`:!n&&i?`http://${i}/${e}`:"ERROR"}function yN(e){return e||"image"}function vN(e){return e||"upload"}function bN(e,t,n){const r=n!==!1;return t?`v${t}`:mN(e)||pN(e)||hN(e)?"":r?"v1":""}function Hy(e,t,n){let r=t>>0,i=String(n);return e.length>r?String(e):(r=r-e.length,r>i.length&&(i+=$N(i,r/i.length)),i.slice(0,r)+String(e))}function $N(e,t){let n=t,r="";for(;n>0;)r+=e,n--;return r}const xN="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",of={};let U1=0;xN.split("").forEach(e=>{let t=U1.toString(2);t=Hy(t,6,"0"),of[t]=e,U1++});function wN(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").reverse().join(".")}function DN(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 Hy(t,2,"0")}).join(".")}function z1(e){let t="";const r=e.split(".").length*6,i=wN(e),o=DN(i);let l=parseInt(o.split(".").join("")).toString(2);if(l=Hy(l,r,"0"),l.length%6!==0)throw"Version must be smaller than 43.21.26)";return l.match(/.{1,6}/g).forEach(c=>{t+=of[c]}),t}function EN(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 CN="1.21.0";function SN(e){const[t,n]=e.split("."),r=parseInt(t).toString(2),i=parseInt(n).toString(2),o=r.padStart(6,"0"),u=i.padStart(6,"0");return of[o]+of[u]}function AN(){const e="0.0.0";if(typeof window<"u")return e;try{return process.versions.node||e}catch{return e}}function TN(e){const t={techVersion:AN(),sdkCode:"T",sdkSemver:CN.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 W1(e){const t=TN(e),n=EN(t);try{const r=PN(n.techVersion),i=z1(n.sdkSemver),o=z1(r),u=SN(n.osVersion),l=n.feature,c=n.sdkCode,{product:d,osType:f}=n;return`D${d}${c}${i}${o}${f}${u}${l}`}catch{return"E"}}function PN(e){const t=e.split(".");return`${t[0]}.${t[1]}`}const H1={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class _N{constructor(t,n={},r){this.setPublicID(t),this.setCloudConfig(n),this.setURLConfig(r)}setURLConfig(t){return this.urlConfig=new Uy(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=yN(this.assetType),n=vN(this.deliveryType),r=!!this.suffix,i=`${t}/${n}`,o=H1[`${t}/${n}`],u=this.urlConfig.useRootPath,l=this.urlConfig.shorten;if(u){if(i==="image/upload")return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${i} instead`)}if(l&&i==="image/upload")return"iu";if(r){if(o)return o;throw new Error(`URL Suffix only supported for ${Object.keys(H1).join(", ")}, Provided: ${i} instead`)}return i}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(t,n){if(!this.publicID)return"";this.validateAssetForURLCreation();const r=gN(this.cloudName,this.urlConfig),i=t?t.toString():"",o=bN(this.publicID,this.version,this.urlConfig.forceVersion),u=this.publicID;if(typeof t=="string")return[r,this.getResourceType(),this.getSignature(),i,o,u.replace(/,/g,"%2C"),this.suffix].filter(c=>c).join("/");{const l=[encodeURI(r),this.getResourceType(),this.getSignature(),encodeURI(i),o,encodeURI(u).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(f=>f).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),c=this.urlConfig.analytics!==!1&&!u.includes("?");let d="";if(typeof this.urlConfig.queryParams=="object")try{const f=new URLSearchParams(this.urlConfig.queryParams);c&&f.set("_a",W1(n)),d=f.toString()}catch{console.error("Error: URLSearchParams is not available so the queryParams object cannot be parsed, please try passing as an already parsed string")}else d=this.urlConfig.queryParams||"",c&&(d+=`${d.length>0?"&":""}_a=${W1(n)}`);return d?`${l}?${d}`:l}}}class V2 extends _N{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 rf("q",t)),this}format(t){return this.addAction(new rf("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 RN extends V2{constructor(t,n,r){super(t,n,r,new dN)}}class ON extends V2{constructor(t,n,r){super(t,n,r,new fN),this.assetType="video"}transcode(t){return this.transformation.transcode(t),this}videoEdit(t){return this.transformation.videoEdit(t),this}}class FN{constructor(t){t&&(this.cloudinaryConfig=t)}image(t){return new RN(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(t){return new ON(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(t){return this.cloudinaryConfig=t,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}var Zh={exports:{}},G1;function MN(){return G1||(G1=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
147
|
-
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
148
|
-
*
|
|
149
|
-
* @license MIT <https://opensource.org/licenses/MIT>
|
|
150
|
-
* @author Lea Verou <https://lea.verou.me>
|
|
151
|
-
* @namespace
|
|
152
|
-
* @public
|
|
153
|
-
*/var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,u={},l={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function v(D){return D instanceof c?new c(D.type,v(D.content),D.alias):Array.isArray(D)?D.map(v):D.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:++o}),v.__id},clone:function v(D,P){P=P||{};var E,T;switch(l.util.type(D)){case"Object":if(T=l.util.objId(D),P[T])return P[T];E={},P[T]=E;for(var V in D)D.hasOwnProperty(V)&&(E[V]=v(D[V],P));return E;case"Array":return T=l.util.objId(D),P[T]?P[T]:(E=[],P[T]=E,D.forEach(function(S,z){E[z]=v(S,P)}),E);default:return D}},getLanguage:function(v){for(;v;){var D=i.exec(v.className);if(D)return D[1].toLowerCase();v=v.parentElement}return"none"},setLanguage:function(v,D){v.className=v.className.replace(RegExp(i,"gi"),""),v.classList.add("language-"+D)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(E){var v=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(E.stack)||[])[1];if(v){var D=document.getElementsByTagName("script");for(var P in D)if(D[P].src==v)return D[P]}return null}},isActive:function(v,D,P){for(var E="no-"+D;v;){var T=v.classList;if(T.contains(D))return!0;if(T.contains(E))return!1;v=v.parentElement}return!!P}},languages:{plain:u,plaintext:u,text:u,txt:u,extend:function(v,D){var P=l.util.clone(l.languages[v]);for(var E in D)P[E]=D[E];return P},insertBefore:function(v,D,P,E){E=E||l.languages;var T=E[v],V={};for(var S in T)if(T.hasOwnProperty(S)){if(S==D)for(var z in P)P.hasOwnProperty(z)&&(V[z]=P[z]);P.hasOwnProperty(S)||(V[S]=T[S])}var O=E[v];return E[v]=V,l.languages.DFS(l.languages,function(M,G){G===O&&M!=v&&(this[M]=V)}),V},DFS:function v(D,P,E,T){T=T||{};var V=l.util.objId;for(var S in D)if(D.hasOwnProperty(S)){P.call(D,S,D[S],E||S);var z=D[S],O=l.util.type(z);O==="Object"&&!T[V(z)]?(T[V(z)]=!0,v(z,P,null,T)):O==="Array"&&!T[V(z)]&&(T[V(z)]=!0,v(z,P,S,T))}}},plugins:{},highlightAll:function(v,D){l.highlightAllUnder(document,v,D)},highlightAllUnder:function(v,D,P){var E={callback:P,container:v,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};l.hooks.run("before-highlightall",E),E.elements=Array.prototype.slice.apply(E.container.querySelectorAll(E.selector)),l.hooks.run("before-all-elements-highlight",E);for(var T=0,V;V=E.elements[T++];)l.highlightElement(V,D===!0,E.callback)},highlightElement:function(v,D,P){var E=l.util.getLanguage(v),T=l.languages[E];l.util.setLanguage(v,E);var V=v.parentElement;V&&V.nodeName.toLowerCase()==="pre"&&l.util.setLanguage(V,E);var S=v.textContent,z={element:v,language:E,grammar:T,code:S};function O(G){z.highlightedCode=G,l.hooks.run("before-insert",z),z.element.innerHTML=z.highlightedCode,l.hooks.run("after-highlight",z),l.hooks.run("complete",z),P&&P.call(z.element)}if(l.hooks.run("before-sanity-check",z),V=z.element.parentElement,V&&V.nodeName.toLowerCase()==="pre"&&!V.hasAttribute("tabindex")&&V.setAttribute("tabindex","0"),!z.code){l.hooks.run("complete",z),P&&P.call(z.element);return}if(l.hooks.run("before-highlight",z),!z.grammar){O(l.util.encode(z.code));return}if(D&&r.Worker){var M=new Worker(l.filename);M.onmessage=function(G){O(G.data)},M.postMessage(JSON.stringify({language:z.language,code:z.code,immediateClose:!0}))}else O(l.highlight(z.code,z.grammar,z.language))},highlight:function(v,D,P){var E={code:v,grammar:D,language:P};if(l.hooks.run("before-tokenize",E),!E.grammar)throw new Error('The language "'+E.language+'" has no grammar.');return E.tokens=l.tokenize(E.code,E.grammar),l.hooks.run("after-tokenize",E),c.stringify(l.util.encode(E.tokens),E.language)},tokenize:function(v,D){var P=D.rest;if(P){for(var E in P)D[E]=P[E];delete D.rest}var T=new h;return g(T,T.head,v),f(v,T,D,T.head,0),$(T)},hooks:{all:{},add:function(v,D){var P=l.hooks.all;P[v]=P[v]||[],P[v].push(D)},run:function(v,D){var P=l.hooks.all[v];if(!(!P||!P.length))for(var E=0,T;T=P[E++];)T(D)}},Token:c};r.Prism=l;function c(v,D,P,E){this.type=v,this.content=D,this.alias=P,this.length=(E||"").length|0}c.stringify=function v(D,P){if(typeof D=="string")return D;if(Array.isArray(D)){var E="";return D.forEach(function(O){E+=v(O,P)}),E}var T={type:D.type,content:v(D.content,P),tag:"span",classes:["token",D.type],attributes:{},language:P},V=D.alias;V&&(Array.isArray(V)?Array.prototype.push.apply(T.classes,V):T.classes.push(V)),l.hooks.run("wrap",T);var S="";for(var z in T.attributes)S+=" "+z+'="'+(T.attributes[z]||"").replace(/"/g,""")+'"';return"<"+T.tag+' class="'+T.classes.join(" ")+'"'+S+">"+T.content+"</"+T.tag+">"};function d(v,D,P,E){v.lastIndex=D;var T=v.exec(P);if(T&&E&&T[1]){var V=T[1].length;T.index+=V,T[0]=T[0].slice(V)}return T}function f(v,D,P,E,T,V){for(var S in P)if(!(!P.hasOwnProperty(S)||!P[S])){var z=P[S];z=Array.isArray(z)?z:[z];for(var O=0;O<z.length;++O){if(V&&V.cause==S+","+O)return;var M=z[O],G=M.inside,K=!!M.lookbehind,W=!!M.greedy,j=M.alias;if(W&&!M.pattern.global){var I=M.pattern.toString().match(/[imsuy]*$/)[0];M.pattern=RegExp(M.pattern.source,I+"g")}for(var R=M.pattern||M,B=E.next,J=T;B!==D.tail&&!(V&&J>=V.reach);J+=B.value.length,B=B.next){var L=B.value;if(D.length>v.length)return;if(!(L instanceof c)){var U=1,re;if(W){if(re=d(R,J,v,K),!re||re.index>=v.length)break;var Ee=re.index,oe=re.index+re[0].length,fe=J;for(fe+=B.value.length;Ee>=fe;)B=B.next,fe+=B.value.length;if(fe-=B.value.length,J=fe,B.value instanceof c)continue;for(var ie=B;ie!==D.tail&&(fe<oe||typeof ie.value=="string");ie=ie.next)U++,fe+=ie.value.length;U--,L=v.slice(J,fe),re.index-=J}else if(re=d(R,0,L,K),!re)continue;var Ee=re.index,$e=re[0],ne=L.slice(0,Ee),ye=L.slice(Ee+$e.length),xe=J+L.length;V&&xe>V.reach&&(V.reach=xe);var pe=B.prev;ne&&(pe=g(D,pe,ne),J+=ne.length),m(D,pe,U);var le=new c(S,G?l.tokenize($e,G):$e,j,$e);if(B=g(D,pe,le),ye&&g(D,B,ye),U>1){var Me={cause:S+","+O,reach:xe};f(v,D,P,B.prev,J,Me),V&&Me.reach>V.reach&&(V.reach=Me.reach)}}}}}}function h(){var v={value:null,prev:null,next:null},D={value:null,prev:v,next:null};v.next=D,this.head=v,this.tail=D,this.length=0}function g(v,D,P){var E=D.next,T={value:P,prev:D,next:E};return D.next=T,E.prev=T,v.length++,T}function m(v,D,P){for(var E=D.next,T=0;T<P&&E!==v.tail;T++)E=E.next;D.next=E,E.prev=D,v.length-=T}function $(v){for(var D=[],P=v.head.next;P!==v.tail;)D.push(P.value),P=P.next;return D}if(!r.document)return r.addEventListener&&(l.disableWorkerMessageHandler||r.addEventListener("message",function(v){var D=JSON.parse(v.data),P=D.language,E=D.code,T=D.immediateClose;r.postMessage(l.highlight(E,l.languages[P],P)),T&&r.close()},!1)),l;var w=l.util.currentScript();w&&(l.filename=w.src,w.hasAttribute("data-manual")&&(l.manual=!0));function C(){l.manual||l.highlightAll()}if(!l.manual){var x=document.readyState;x==="loading"||x==="interactive"&&w&&w.defer?document.addEventListener("DOMContentLoaded",C):window.requestAnimationFrame?window.requestAnimationFrame(C):window.setTimeout(C,16)}return l}(t);e.exports&&(e.exports=n),typeof xu<"u"&&(xu.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,o){var u={};u["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[o]},u.cdata=/^<!\[CDATA\[|\]\]>$/i;var l={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:u}};l["language-"+o]={pattern:/[\s\S]+/,inside:n.languages[o]};var c={};c[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:l},n.languages.insertBefore("markup","cdata",c)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var o=r.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading…",i=function(w,C){return"✖ Error "+w+" while fetching file: "+C},o="✖ Error: File does not exist or is empty",u={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},l="data-src-status",c="loading",d="loaded",f="failed",h="pre[data-src]:not(["+l+'="'+d+'"]):not(['+l+'="'+c+'"])';function g(w,C,x){var v=new XMLHttpRequest;v.open("GET",w,!0),v.onreadystatechange=function(){v.readyState==4&&(v.status<400&&v.responseText?C(v.responseText):v.status>=400?x(i(v.status,v.statusText)):x(o))},v.send(null)}function m(w){var C=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(w||"");if(C){var x=Number(C[1]),v=C[2],D=C[3];return v?D?[x,Number(D)]:[x,void 0]:[x,x]}}n.hooks.add("before-highlightall",function(w){w.selector+=", "+h}),n.hooks.add("before-sanity-check",function(w){var C=w.element;if(C.matches(h)){w.code="",C.setAttribute(l,c);var x=C.appendChild(document.createElement("CODE"));x.textContent=r;var v=C.getAttribute("data-src"),D=w.language;if(D==="none"){var P=(/\.(\w+)$/.exec(v)||[,"none"])[1];D=u[P]||P}n.util.setLanguage(x,D),n.util.setLanguage(C,D);var E=n.plugins.autoloader;E&&E.loadLanguages(D),g(v,function(T){C.setAttribute(l,d);var V=m(C.getAttribute("data-range"));if(V){var S=T.split(/\r\n?|\n/g),z=V[0],O=V[1]==null?S.length:V[1];z<0&&(z+=S.length),z=Math.max(0,Math.min(z-1,S.length)),O<0&&(O+=S.length),O=Math.max(0,Math.min(O,S.length)),T=S.slice(z,O).join(`
|
|
154
|
-
`),C.hasAttribute("data-start")||C.setAttribute("data-start",String(z+1))}x.textContent=T,n.highlightElement(x)},function(T){C.setAttribute(l,f),x.textContent=T})}}),n.plugins.fileHighlight={highlight:function(C){for(var x=(C||document).querySelectorAll(h),v=0,D;D=x[v++];)n.highlightElement(D)}};var $=!1;n.fileHighlight=function(){$||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),$=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()}(Zh)),Zh.exports}var kN=MN();(function(){if(typeof Prism>"u"||typeof document>"u"||!document.querySelector)return;var e="line-numbers",t="linkable-line-numbers",n=/\n(?!$)/g;function r(g,m){return Array.prototype.slice.call((m||document).querySelectorAll(g))}function i(g,m){return g.classList.contains(m)}function o(g){g()}var u=function(){var g;return function(){if(typeof g>"u"){var m=document.createElement("div");m.style.fontSize="13px",m.style.lineHeight="1.5",m.style.padding="0",m.style.border="0",m.innerHTML=" <br /> ",document.body.appendChild(m),g=m.offsetHeight===38,document.body.removeChild(m)}return g}}();function l(g,m){var $=getComputedStyle(g),w=getComputedStyle(m);function C(x){return+x.substr(0,x.length-2)}return m.offsetTop+C(w.borderTopWidth)+C(w.paddingTop)-C($.paddingTop)}function c(g){return!g||!/pre/i.test(g.nodeName)?!1:!!(g.hasAttribute("data-line")||g.id&&Prism.util.isActive(g,t))}var d=!0;Prism.plugins.lineHighlight={highlightLines:function(m,$,w){$=typeof $=="string"?$:m.getAttribute("data-line")||"";var C=$.replace(/\s+/g,"").split(",").filter(Boolean),x=+m.getAttribute("data-line-offset")||0,v=u()?parseInt:parseFloat,D=v(getComputedStyle(m).lineHeight),P=Prism.util.isActive(m,e),E=m.querySelector("code"),T=P?m:E||m,V=[],S=E.textContent.match(n),z=S?S.length+1:1,O=!E||T==E?0:l(m,E);C.forEach(function(K){var W=K.split("-"),j=+W[0],I=+W[1]||j;if(I=Math.min(z+x,I),!(I<j)){var R=m.querySelector('.line-highlight[data-range="'+K+'"]')||document.createElement("div");if(V.push(function(){R.setAttribute("aria-hidden","true"),R.setAttribute("data-range",K),R.className=(w||"")+" line-highlight"}),P&&Prism.plugins.lineNumbers){var B=Prism.plugins.lineNumbers.getLine(m,j),J=Prism.plugins.lineNumbers.getLine(m,I);if(B){var L=B.offsetTop+O+"px";V.push(function(){R.style.top=L})}if(J){var U=J.offsetTop-B.offsetTop+J.offsetHeight+"px";V.push(function(){R.style.height=U})}}else V.push(function(){R.setAttribute("data-start",String(j)),I>j&&R.setAttribute("data-end",String(I)),R.style.top=(j-x-1)*D+O+"px",R.textContent=new Array(I-j+2).join(`
|
|
155
|
-
`)});V.push(function(){R.style.width=m.scrollWidth+"px"}),V.push(function(){T.appendChild(R)})}});var M=m.id;if(P&&Prism.util.isActive(m,t)&&M){i(m,t)||V.push(function(){m.classList.add(t)});var G=parseInt(m.getAttribute("data-start")||"1");r(".line-numbers-rows > span",m).forEach(function(K,W){var j=W+G;K.onclick=function(){var I=M+"."+j;d=!1,location.hash=I,setTimeout(function(){d=!0},1)}})}return function(){V.forEach(o)}}};function f(){var g=location.hash.slice(1);r(".temporary.line-highlight").forEach(function(x){x.parentNode.removeChild(x)});var m=(g.match(/\.([\d,-]+)$/)||[,""])[1];if(!(!m||document.getElementById(g))){var $=g.slice(0,g.lastIndexOf(".")),w=document.getElementById($);if(w){w.hasAttribute("data-line")||w.setAttribute("data-line","");var C=Prism.plugins.lineHighlight.highlightLines(w,m,"temporary ");C(),d&&document.querySelector(".temporary.line-highlight").scrollIntoView()}}}var h=0;Prism.hooks.add("before-sanity-check",function(g){var m=g.element.parentElement;if(c(m)){var $=0;r(".line-highlight",m).forEach(function(w){$+=w.textContent.length,w.parentNode.removeChild(w)}),$&&/^(?: \n)+$/.test(g.code.slice(-$))&&(g.code=g.code.slice(0,-$))}}),Prism.hooks.add("complete",function g(m){var $=m.element.parentElement;if(c($)){clearTimeout(h);var w=Prism.plugins.lineNumbers,C=m.plugins&&m.plugins.lineNumbers;if(i($,e)&&w&&!C)Prism.hooks.add("line-numbers",g);else{var x=Prism.plugins.lineHighlight.highlightLines($);x(),h=setTimeout(f,1)}}}),window.addEventListener("hashchange",f),window.addEventListener("resize",function(){var g=r("pre").filter(c).map(function(m){return Prism.plugins.lineHighlight.highlightLines(m)});g.forEach(o)})})();const q1=(e,t,n)=>{if(e&&"reportValidity"in e){const r=Te(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},N2=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?q1(r.ref,n,e):r.refs&&r.refs.forEach(i=>q1(i,n,e))}},BN=(e,t)=>{t.shouldUseNativeValidation&&N2(e,t);const n={};for(const r in e){const i=Te(t.fields,r),o=Object.assign(e[r]||{},{ref:i&&i.ref});if(IN(t.names||Object.keys(e),r)){const u=Object.assign({},Te(n,r));St(u,"root",o),St(n,r,u)}else St(n,r,o)}return n},IN=(e,t)=>e.some(n=>n.startsWith(t+"."));function LN(e,t,n){return t===void 0&&(t={}),n===void 0&&(n={}),function(r,i,o){try{return Promise.resolve(function(u,l){try{var c=(t.context&&process.env.NODE_ENV==="development"&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(e[n.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then(function(d){return o.shouldUseNativeValidation&&N2({},o),{values:n.raw?r:d,errors:{}}}))}catch(d){return l(d)}return c&&c.then?c.then(void 0,l):c}(0,function(u){if(!u.inner)throw u;return{values:{},errors:BN((l=u,c=!o.shouldUseNativeValidation&&o.criteriaMode==="all",(l.inner||[]).reduce(function(d,f){if(d[f.path]||(d[f.path]={message:f.message,type:f.type}),c){var h=d[f.path].types,g=h&&h[f.type];d[f.path]=HC(f.path,c,d,f.type,g?[].concat(g,f.message):f.message)}return d},{})),o)};var l,c}))}catch(u){return Promise.reject(u)}}}const Y1=new Set;function Yf(e,t,n){e||Y1.has(t)||(console.warn(t),Y1.add(t))}function VN(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Yf(!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 Zf(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const vg=e=>Array.isArray(e);function j2(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 wl(e){return typeof e=="string"||Array.isArray(e)}function Z1(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Gy(e,t,n,r){if(typeof t=="function"){const[i,o]=Z1(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Z1(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function Jf(e,t,n){const r=e.getProps();return Gy(r,t,n!==void 0?n:r.custom,e)}const qy=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Yy=["initial",...qy],Wl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Na=new Set(Wl),no=e=>e*1e3,Lo=e=>e/1e3,NN={type:"spring",stiffness:500,damping:25,restSpeed:10},jN=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),KN={type:"keyframes",duration:.8},UN={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},zN=(e,{keyframes:t})=>t.length>2?KN:Na.has(e)?e.startsWith("scale")?jN(t[1]):NN:UN;function K2(e,t){return e?e[t]||e.default||e:void 0}const WN={skipAnimations:!1,useManualTiming:!1},HN=e=>e!==null;function Qf(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(HN),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const Ko=e=>e;let as=Ko,Ma=Ko;process.env.NODE_ENV!=="production"&&(as=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Ma=(e,t)=>{if(!e)throw new Error(t)});function GN(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function l(d){o.has(d)&&(c.schedule(d),e()),d(u)}const c={schedule:(d,f=!1,h=!1)=>{const m=h&&r?t:n;return f&&o.add(d),m.has(d)||m.add(d),d},cancel:d=>{n.delete(d),o.delete(d)},process:d=>{if(u=d,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(l),t.clear(),r=!1,i&&(i=!1,c.process(d))}};return c}const od=["read","resolveKeyframes","update","preRender","render","postRender"],qN=40;function U2(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,u=od.reduce((x,v)=>(x[v]=GN(o),x),{}),{read:l,resolveKeyframes:c,update:d,preRender:f,render:h,postRender:g}=u,m=()=>{const x=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,qN),1),i.timestamp=x,i.isProcessing=!0,l.process(i),c.process(i),d.process(i),f.process(i),h.process(i),g.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(m))},$=()=>{n=!0,r=!0,i.isProcessing||e(m)};return{schedule:od.reduce((x,v)=>{const D=u[v];return x[v]=(P,E=!1,T=!1)=>(n||$(),D.schedule(P,E,T)),x},{}),cancel:x=>{for(let v=0;v<od.length;v++)u[od[v]].cancel(x)},state:i,steps:u}}const{schedule:Sr,cancel:bg,state:af,steps:uG}=U2(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ko,!0),z2=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,YN=1e-7,ZN=12;function JN(e,t,n,r,i){let o,u,l=0;do u=t+(n-t)/2,o=z2(u,r,i)-e,o>0?n=u:t=u;while(Math.abs(o)>YN&&++l<ZN);return u}function Hl(e,t,n,r){if(e===t&&n===r)return Ko;const i=o=>JN(o,0,1,e,n);return o=>o===0||o===1?o:z2(i(o),t,r)}const W2=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,H2=e=>t=>1-e(1-t),G2=Hl(.33,1.53,.69,.99),Zy=H2(G2),q2=W2(Zy),Y2=e=>(e*=2)<1?.5*Zy(e):.5*(2-Math.pow(2,-10*(e-1))),Jy=e=>1-Math.sin(Math.acos(e)),QN=H2(Jy),Z2=W2(Jy),J2=e=>/^0[^.\s]+$/u.test(e);function XN(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||J2(e):!0}const Q2=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),X2=e=>t=>typeof t=="string"&&t.startsWith(e),eS=X2("--"),ej=X2("var(--"),Qy=e=>ej(e)?tj.test(e.split("/*")[0].trim()):!1,tj=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,nj=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function rj(e){const t=nj.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const ij=4;function tS(e,t,n=1){Ma(n<=ij,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=rj(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const u=o.trim();return Q2(u)?parseFloat(u):u}return Qy(i)?tS(i,t,n+1):i}const ka=(e,t,n)=>n>t?t:n<e?e:n,us={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Dl={...us,transform:e=>ka(0,1,e)},ad={...us,default:1},Gl=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),So=Gl("deg"),ku=Gl("%"),Ye=Gl("px"),oj=Gl("vh"),aj=Gl("vw"),J1={...ku,parse:e=>ku.parse(e)/100,transform:e=>ku.transform(e*100)},uj=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Q1=e=>e===us||e===Ye,X1=(e,t)=>parseFloat(e.split(", ")[t]),e3=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return X1(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?X1(o[1],e):0}},sj=new Set(["x","y","z"]),lj=Wl.filter(e=>!sj.has(e));function cj(e){const t=[];return lj.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Yu={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:e3(4,13),y:e3(5,14)};Yu.translateX=Yu.x;Yu.translateY=Yu.y;const nS=e=>t=>t.test(e),dj={test:e=>e==="auto",parse:e=>e},rS=[us,Ye,ku,So,aj,oj,dj],t3=e=>rS.find(nS(e)),Da=new Set;let $g=!1,xg=!1;function iS(){if(xg){const e=Array.from(Da).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=cj(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,u])=>{var l;(l=r.getValue(o))===null||l===void 0||l.set(u)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}xg=!1,$g=!1,Da.forEach(e=>e.complete()),Da.clear()}function oS(){Da.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(xg=!0)})}function fj(){oS(),iS()}class Xy{constructor(t,n,r,i,o,u=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=u}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Da.add(this),$g||($g=!0,Sr.read(oS),Sr.resolveKeyframes(iS))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const u=i==null?void 0:i.get(),l=t[t.length-1];if(u!==void 0)t[0]=u;else if(r&&n){const c=r.readValue(n,l);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=l),i&&u===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Da.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Da.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const cl=e=>Math.round(e*1e5)/1e5,ev=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function pj(e){return e==null}const hj=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tv=(e,t)=>n=>!!(typeof n=="string"&&hj.test(n)&&n.startsWith(e)||t&&!pj(n)&&Object.prototype.hasOwnProperty.call(n,t)),aS=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,u,l]=r.match(ev);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(u),alpha:l!==void 0?parseFloat(l):1}},mj=e=>ka(0,255,e),Jh={...us,transform:e=>Math.round(mj(e))},va={test:tv("rgb","red"),parse:aS("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Jh.transform(e)+", "+Jh.transform(t)+", "+Jh.transform(n)+", "+cl(Dl.transform(r))+")"};function gj(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 wg={test:tv("#"),parse:gj,transform:va.transform},Au={test:tv("hsl","hue"),parse:aS("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ku.transform(cl(t))+", "+ku.transform(cl(n))+", "+cl(Dl.transform(r))+")"},jn={test:e=>va.test(e)||wg.test(e)||Au.test(e),parse:e=>va.test(e)?va.parse(e):Au.test(e)?Au.parse(e):wg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?va.transform(e):Au.transform(e)},yj=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function vj(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(ev))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(yj))===null||n===void 0?void 0:n.length)||0)>0}const uS="number",sS="color",bj="var",$j="var(",n3="${}",xj=/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 El(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const l=t.replace(xj,c=>(jn.test(c)?(r.color.push(o),i.push(sS),n.push(jn.parse(c))):c.startsWith($j)?(r.var.push(o),i.push(bj),n.push(c)):(r.number.push(o),i.push(uS),n.push(parseFloat(c))),++o,n3)).split(n3);return{values:n,split:l,indexes:r,types:i}}function lS(e){return El(e).values}function cS(e){const{split:t,types:n}=El(e),r=t.length;return i=>{let o="";for(let u=0;u<r;u++)if(o+=t[u],i[u]!==void 0){const l=n[u];l===uS?o+=cl(i[u]):l===sS?o+=jn.transform(i[u]):o+=i[u]}return o}}const wj=e=>typeof e=="number"?0:e;function Dj(e){const t=lS(e);return cS(e)(t.map(wj))}const ss={test:vj,parse:lS,createTransformer:cS,getAnimatableNone:Dj},Ej=new Set(["brightness","contrast","saturate","opacity"]);function Cj(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(ev)||[];if(!r)return e;const i=n.replace(r,"");let o=Ej.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const Sj=/\b([a-z-]*)\(.*?\)/gu,Dg={...ss,getAnimatableNone:e=>{const t=e.match(Sj);return t?t.map(Cj).join(" "):e}},Aj={borderWidth:Ye,borderTopWidth:Ye,borderRightWidth:Ye,borderBottomWidth:Ye,borderLeftWidth:Ye,borderRadius:Ye,radius:Ye,borderTopLeftRadius:Ye,borderTopRightRadius:Ye,borderBottomRightRadius:Ye,borderBottomLeftRadius:Ye,width:Ye,maxWidth:Ye,height:Ye,maxHeight:Ye,top:Ye,right:Ye,bottom:Ye,left:Ye,padding:Ye,paddingTop:Ye,paddingRight:Ye,paddingBottom:Ye,paddingLeft:Ye,margin:Ye,marginTop:Ye,marginRight:Ye,marginBottom:Ye,marginLeft:Ye,backgroundPositionX:Ye,backgroundPositionY:Ye},Tj={rotate:So,rotateX:So,rotateY:So,rotateZ:So,scale:ad,scaleX:ad,scaleY:ad,scaleZ:ad,skew:So,skewX:So,skewY:So,distance:Ye,translateX:Ye,translateY:Ye,translateZ:Ye,x:Ye,y:Ye,z:Ye,perspective:Ye,transformPerspective:Ye,opacity:Dl,originX:J1,originY:J1,originZ:Ye},r3={...us,transform:Math.round},nv={...Aj,...Tj,zIndex:r3,size:Ye,fillOpacity:Dl,strokeOpacity:Dl,numOctaves:r3},Pj={...nv,color:jn,backgroundColor:jn,outlineColor:jn,fill:jn,stroke:jn,borderColor:jn,borderTopColor:jn,borderRightColor:jn,borderBottomColor:jn,borderLeftColor:jn,filter:Dg,WebkitFilter:Dg},rv=e=>Pj[e];function dS(e,t){let n=rv(e);return n!==Dg&&(n=ss),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const _j=new Set(["auto","none","0"]);function Rj(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!_j.has(o)&&El(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=dS(n,i)}class fS extends Xy{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),Qy(d))){const f=tS(d,n.current);f!==void 0&&(t[c]=f),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!uj.has(r)||t.length!==2)return;const[i,o]=t,u=t3(i),l=t3(o);if(u!==l)if(Q1(u)&&Q1(l))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)XN(t[i])&&r.push(i);r.length&&Rj(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=Yu[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const u=i.length-1,l=i[u];i[u]=Yu[r](n.measureViewportBox(),window.getComputedStyle(n.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([c,d])=>{n.getValue(c).set(d)}),this.resolveNoneKeyframes()}}function iv(e){return typeof e=="function"}let Cd;function Oj(){Cd=void 0}const Vo={now:()=>(Cd===void 0&&Vo.set(af.isProcessing||WN.useManualTiming?af.timestamp:performance.now()),Cd),set:e=>{Cd=e,queueMicrotask(Oj)}},i3=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ss.test(e)||e==="0")&&!e.startsWith("url("));function Fj(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Mj(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],u=i3(i,t),l=i3(o,t);return as(u===l,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!u||!l?!1:Fj(e)||(n==="spring"||iv(n))&&r}const kj=40;class pS{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:u="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Vo.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:u,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>kj?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&fj(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Vo.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:u,onComplete:l,onUpdate:c,isGenerator:d}=this.options;if(!d&&!Mj(t,r,i,o))if(u)this.options.duration=0;else{c==null||c(Qf(t,this.options,n)),l==null||l(),this.resolveFinishedPromise();return}const f=this.initPlayback(t,n);f!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...f},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const ov=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},hS=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(ov(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function mS(e,t){return t?e*(1e3/t):0}const Bj=5;function gS(e,t,n){const r=Math.max(t-Bj,0);return mS(n-e(r),t-r)}const qt={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},o3=.001;function Ij({duration:e=qt.duration,bounce:t=qt.bounce,velocity:n=qt.velocity,mass:r=qt.mass}){let i,o;as(e<=no(qt.maxDuration),"Spring duration must be 10 seconds or less");let u=1-t;u=ka(qt.minDamping,qt.maxDamping,u),e=ka(qt.minDuration,qt.maxDuration,Lo(e)),u<1?(i=d=>{const f=d*u,h=f*e,g=f-n,m=Eg(d,u),$=Math.exp(-h);return o3-g/m*$},o=d=>{const h=d*u*e,g=h*n+n,m=Math.pow(u,2)*Math.pow(d,2)*e,$=Math.exp(-h),w=Eg(Math.pow(d,2),u);return(-i(d)+o3>0?-1:1)*((g-m)*$)/w}):(i=d=>{const f=Math.exp(-d*e),h=(d-n)*e+1;return-.001+f*h},o=d=>{const f=Math.exp(-d*e),h=(n-d)*(e*e);return f*h});const l=5/e,c=Vj(i,o,l);if(e=no(e),isNaN(c))return{stiffness:qt.stiffness,damping:qt.damping,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:u*2*Math.sqrt(r*d),duration:e}}}const Lj=12;function Vj(e,t,n){let r=n;for(let i=1;i<Lj;i++)r=r-e(r)/t(r);return r}function Eg(e,t){return e*Math.sqrt(1-t*t)}const Cg=2e4;function yS(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Cg;)t+=n,r=e.next(t);return t>=Cg?1/0:t}const Nj=["duration","bounce"],jj=["stiffness","damping","mass"];function a3(e,t){return t.some(n=>e[n]!==void 0)}function Kj(e){let t={velocity:qt.velocity,stiffness:qt.stiffness,damping:qt.damping,mass:qt.mass,isResolvedFromDuration:!1,...e};if(!a3(e,jj)&&a3(e,Nj))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*ka(.05,1,1-e.bounce)*Math.sqrt(i);t={...t,mass:qt.mass,stiffness:i,damping:o}}else{const n=Ij(e);t={...t,...n,mass:qt.mass},t.isResolvedFromDuration=!0}return t}function vS(e=qt.visualDuration,t=qt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],u=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:c,damping:d,mass:f,duration:h,velocity:g,isResolvedFromDuration:m}=Kj({...n,velocity:-Lo(n.velocity||0)}),$=g||0,w=d/(2*Math.sqrt(c*f)),C=u-o,x=Lo(Math.sqrt(c/f)),v=Math.abs(C)<5;r||(r=v?qt.restSpeed.granular:qt.restSpeed.default),i||(i=v?qt.restDelta.granular:qt.restDelta.default);let D;if(w<1){const E=Eg(x,w);D=T=>{const V=Math.exp(-w*x*T);return u-V*(($+w*x*C)/E*Math.sin(E*T)+C*Math.cos(E*T))}}else if(w===1)D=E=>u-Math.exp(-x*E)*(C+($+x*C)*E);else{const E=x*Math.sqrt(w*w-1);D=T=>{const V=Math.exp(-w*x*T),S=Math.min(E*T,300);return u-V*(($+w*x*C)*Math.sinh(S)+E*C*Math.cosh(S))/E}}const P={calculatedDuration:m&&h||null,next:E=>{const T=D(E);if(m)l.done=E>=h;else{let V=0;w<1&&(V=E===0?no($):gS(D,E,T));const S=Math.abs(V)<=r,z=Math.abs(u-T)<=i;l.done=S&&z}return l.value=l.done?u:T,l},toString:()=>{const E=Math.min(yS(P),Cg),T=hS(V=>P.next(E*V).value,E,30);return E+"ms "+T}};return P}function u3({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:u,min:l,max:c,restDelta:d=.5,restSpeed:f}){const h=e[0],g={done:!1,value:h},m=S=>l!==void 0&&S<l||c!==void 0&&S>c,$=S=>l===void 0?c:c===void 0||Math.abs(l-S)<Math.abs(c-S)?l:c;let w=n*t;const C=h+w,x=u===void 0?C:u(C);x!==C&&(w=x-h);const v=S=>-w*Math.exp(-S/r),D=S=>x+v(S),P=S=>{const z=v(S),O=D(S);g.done=Math.abs(z)<=d,g.value=g.done?x:O};let E,T;const V=S=>{m(g.value)&&(E=S,T=vS({keyframes:[g.value,$(g.value)],velocity:gS(D,S,g.value),damping:i,stiffness:o,restDelta:d,restSpeed:f}))};return V(0),{calculatedDuration:null,next:S=>{let z=!1;return!T&&E===void 0&&(z=!0,P(S),V(S)),E!==void 0&&S>=E?T.next(S-E):(!z&&P(S),g)}}}const Uj=Hl(.42,0,1,1),zj=Hl(0,0,.58,1),bS=Hl(.42,0,.58,1),Wj=e=>Array.isArray(e)&&typeof e[0]!="number",av=e=>Array.isArray(e)&&typeof e[0]=="number",s3={linear:Ko,easeIn:Uj,easeInOut:bS,easeOut:zj,circIn:Jy,circInOut:Z2,circOut:QN,backIn:Zy,backInOut:q2,backOut:G2,anticipate:Y2},l3=e=>{if(av(e)){Ma(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Hl(t,n,r,i)}else if(typeof e=="string")return Ma(s3[e]!==void 0,`Invalid easing type '${e}'`),s3[e];return e},Hj=(e,t)=>n=>t(e(n)),Xf=(...e)=>e.reduce(Hj),ep=(e,t,n)=>e+(t-e)*n;function Qh(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 Gj({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,u=0;if(!t)i=o=u=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;i=Qh(c,l,e+1/3),o=Qh(c,l,e),u=Qh(c,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(u*255),alpha:r}}function uf(e,t){return n=>n>0?t:e}const Xh=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},qj=[wg,va,Au],Yj=e=>qj.find(t=>t.test(e));function c3(e){const t=Yj(e);if(as(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Au&&(n=Gj(n)),n}const d3=(e,t)=>{const n=c3(e),r=c3(t);if(!n||!r)return uf(e,t);const i={...n};return o=>(i.red=Xh(n.red,r.red,o),i.green=Xh(n.green,r.green,o),i.blue=Xh(n.blue,r.blue,o),i.alpha=ep(n.alpha,r.alpha,o),va.transform(i))},Sg=new Set(["none","hidden"]);function Zj(e,t){return Sg.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Jj(e,t){return n=>ep(e,t,n)}function uv(e){return typeof e=="number"?Jj:typeof e=="string"?Qy(e)?uf:jn.test(e)?d3:eK:Array.isArray(e)?$S:typeof e=="object"?jn.test(e)?d3:Qj:uf}function $S(e,t){const n=[...e],r=n.length,i=e.map((o,u)=>uv(o)(o,t[u]));return o=>{for(let u=0;u<r;u++)n[u]=i[u](o);return n}}function Qj(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=uv(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function Xj(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const u=t.types[o],l=e.indexes[u][i[u]],c=(n=e.values[l])!==null&&n!==void 0?n:0;r[o]=c,i[u]++}return r}const eK=(e,t)=>{const n=ss.createTransformer(t),r=El(e),i=El(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?Sg.has(e)&&!i.values.length||Sg.has(t)&&!r.values.length?Zj(e,t):Xf($S(Xj(r,i),i.values),n):(as(!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.`),uf(e,t))};function xS(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ep(e,t,n):uv(e)(e,t)}function tK(e,t,n){const r=[],i=n||xS,o=e.length-1;for(let u=0;u<o;u++){let l=i(e[u],e[u+1]);if(t){const c=Array.isArray(t)?t[u]||Ko:t;l=Xf(c,l)}r.push(l)}return r}function nK(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Ma(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=tK(t,r,i),l=u.length,c=d=>{let f=0;if(l>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const h=ov(e[f],e[f+1],d);return u[f](h)};return n?d=>c(ka(e[0],e[o-1],d)):c}function rK(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=ov(0,t,r);e.push(ep(n,1,i))}}function iK(e){const t=[0];return rK(t,e.length-1),t}function oK(e,t){return e.map(n=>n*t)}function aK(e,t){return e.map(()=>t||bS).splice(0,e.length-1)}function sf({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Wj(r)?r.map(l3):l3(r),o={done:!1,value:t[0]},u=oK(n&&n.length===t.length?n:iK(t),e),l=nK(u,t,{ease:Array.isArray(i)?i:aK(t,i)});return{calculatedDuration:e,next:c=>(o.value=l(c),o.done=c>=e,o)}}const uK=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Sr.update(t,!0),stop:()=>bg(t),now:()=>af.isProcessing?af.timestamp:Vo.now()}},sK={decay:u3,inertia:u3,tween:sf,keyframes:sf,spring:vS},lK=e=>e/100;class sv extends pS{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,u=(i==null?void 0:i.KeyframeResolver)||Xy,l=(c,d)=>this.onKeyframesResolved(c,d);this.resolver=new u(o,l,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:u=0}=this.options,l=iv(n)?n:sK[n]||sf;let c,d;l!==sf&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&Ma(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c=Xf(lK,xS(t[0],t[1])),t=[0,100]);const f=l({...this.options,keyframes:t});o==="mirror"&&(d=l({...this.options,keyframes:[...t].reverse(),velocity:-u})),f.calculatedDuration===null&&(f.calculatedDuration=yS(f));const{calculatedDuration:h}=f,g=h+i,m=g*(r+1)-i;return{generator:f,mirroredGenerator:d,mapPercentToKeyframes:c,calculatedDuration:h,resolvedDuration:g,totalDuration:m}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:S}=this.options;return{done:!0,value:S[S.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:u,mapPercentToKeyframes:l,keyframes:c,calculatedDuration:d,totalDuration:f,resolvedDuration:h}=r;if(this.startTime===null)return o.next(0);const{delay:g,repeat:m,repeatType:$,repeatDelay:w,onUpdate:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-f/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const x=this.currentTime-g*(this.speed>=0?1:-1),v=this.speed>=0?x<0:x>f;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=f);let D=this.currentTime,P=o;if(m){const S=Math.min(this.currentTime,f)/h;let z=Math.floor(S),O=S%1;!O&&S>=1&&(O=1),O===1&&z--,z=Math.min(z,m+1),!!(z%2)&&($==="reverse"?(O=1-O,w&&(O-=w/h)):$==="mirror"&&(P=u)),D=ka(0,1,O)*h}const E=v?{done:!1,value:c[0]}:P.next(D);l&&(E.value=l(E.value));let{done:T}=E;!v&&d!==null&&(T=this.speed>=0?this.currentTime>=f:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return V&&i!==void 0&&(E.value=Qf(c,this.options,i)),C&&C(E.value),V&&this.finish(),E}get duration(){const{resolved:t}=this;return t?Lo(t.calculatedDuration):0}get time(){return Lo(this.currentTime)}set time(t){t=no(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=Lo(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=uK,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const cK=new Set(["opacity","clipPath","filter","transform"]);function lv(e){let t;return()=>(t===void 0&&(t=e()),t)}const dK={linearEasing:void 0};function fK(e,t){const n=lv(e);return()=>{var r;return(r=dK[t])!==null&&r!==void 0?r:n()}}const lf=fK(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function wS(e){return!!(typeof e=="function"&&lf()||!e||typeof e=="string"&&(e in Ag||lf())||av(e)||Array.isArray(e)&&e.every(wS))}const nl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ag={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:nl([0,.65,.55,1]),circOut:nl([.55,0,1,.45]),backIn:nl([.31,.01,.66,-.59]),backOut:nl([.33,1.53,.69,.99])};function DS(e,t){if(e)return typeof e=="function"&&lf()?hS(e,t):av(e)?nl(e):Array.isArray(e)?e.map(n=>DS(n,t)||Ag.easeOut):Ag[e]}function pK(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:u="loop",ease:l="easeInOut",times:c}={}){const d={[t]:n};c&&(d.offset=c);const f=DS(l,i);return Array.isArray(f)&&(d.easing=f),e.animate(d,{delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:u==="reverse"?"alternate":"normal"})}function f3(e,t){e.timeline=t,e.onfinish=null}const hK=lv(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),cf=10,mK=2e4;function gK(e){return iv(e.type)||e.type==="spring"||!wS(e.ease)}function yK(e,t){const n=new sv({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<mK;)r=n.sample(o),i.push(r.value),o+=cf;return{times:void 0,keyframes:i,duration:o-cf,ease:"linear"}}const ES={anticipate:Y2,backInOut:q2,circInOut:Z2};function vK(e){return e in ES}class p3 extends pS{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new fS(o,(u,l)=>this.onKeyframesResolved(u,l),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:u,type:l,motionValue:c,name:d,startTime:f}=this.options;if(!(!((r=c.owner)===null||r===void 0)&&r.current))return!1;if(typeof u=="string"&&lf()&&vK(u)&&(u=ES[u]),gK(this.options)){const{onComplete:g,onUpdate:m,motionValue:$,element:w,...C}=this.options,x=yK(t,C);t=x.keyframes,t.length===1&&(t[1]=t[0]),i=x.duration,o=x.times,u=x.ease,l="keyframes"}const h=pK(c.owner.current,d,t,{...this.options,duration:i,times:o,ease:u});return h.startTime=f??this.calcStartTime(),this.pendingTimeline?(f3(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:g}=this.options;c.set(Qf(t,this.options,n)),g&&g(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:i,times:o,type:l,ease:u,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Lo(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Lo(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=no(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 Ko;const{animation:r}=n;f3(r,t)}return Ko}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:u,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:f,onComplete:h,element:g,...m}=this.options,$=new sv({...m,keyframes:r,duration:i,type:o,ease:u,times:l,isGenerator:!0}),w=no(this.time);d.setWithVelocity($.sample(w-cf).value,$.sample(w).value,cf)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:u,type:l}=t;return hK()&&r&&cK.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&u!==0&&l!=="inertia"}}const bK=lv(()=>window.ScrollTimeline!==void 0);class $K{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=>bK()&&i.attachTimeline?i.attachTimeline(t):n(i));return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function xK({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:u,repeatDelay:l,from:c,elapsed:d,...f}){return!!Object.keys(f).length}const wK=(e,t,n,r={},i,o)=>u=>{const l=K2(r,e)||{},c=l.delay||r.delay||0;let{elapsed:d=0}=r;d=d-no(c);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-d,onUpdate:g=>{t.set(g),l.onUpdate&&l.onUpdate(g)},onComplete:()=>{u(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:o?void 0:i};xK(l)||(f={...f,...zN(e,f)}),f.duration&&(f.duration=no(f.duration)),f.repeatDelay&&(f.repeatDelay=no(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let h=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(h=!0)),h&&!o&&t.get()!==void 0){const g=Qf(f.keyframes,l);if(g!==void 0)return Sr.update(()=>{f.onUpdate(g),f.onComplete()}),new $K([])}return!o&&p3.supports(f)?new p3(f):new sv(f)},DK=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),EK=e=>vg(e)?e[e.length-1]||0:e;function CK(e,t){e.indexOf(t)===-1&&e.push(t)}function SK(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class CS{constructor(){this.subscriptions=[]}add(t){return CK(this.subscriptions,t),()=>SK(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const u=this.subscriptions[o];u&&u(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const h3=30,AK=e=>!isNaN(parseFloat(e));class TK{constructor(t,n={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Vo.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Vo.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=AK(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Yf(!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 CS);const r=this.events[t].add(n);return t==="change"?()=>{r(),Sr.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=Vo.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>h3)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,h3);return mS(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 df(e,t){return new TK(e,t)}function PK(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,df(n))}function _K(e,t){const n=Jf(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const u in o){const l=EK(o[u]);PK(e,u,l)}}const cv=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),RK="framerAppearId",SS="data-"+cv(RK);function OK(e){return e.props[SS]}const er=e=>!!(e&&e.getVelocity);function FK(e){return!!(er(e)&&e.add)}function MK(e,t){const n=e.getValue("willChange");if(FK(n))return n.add(t)}function kK({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function AS(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:u=e.getDefaultTransition(),transitionEnd:l,...c}=t;r&&(u=r);const d=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const h in c){const g=e.getValue(h,(o=e.latestValues[h])!==null&&o!==void 0?o:null),m=c[h];if(m===void 0||f&&kK(f,h))continue;const $={delay:n,...K2(u||{},h)};let w=!1;if(window.MotionHandoffAnimation){const x=OK(e);if(x){const v=window.MotionHandoffAnimation(x,h,Sr);v!==null&&($.startTime=v,w=!0)}}MK(e,h),g.start(wK(h,g,m,e.shouldReduceMotion&&Na.has(h)?{type:!1}:$,e,w));const C=g.animation;C&&d.push(C)}return l&&Promise.all(d).then(()=>{Sr.update(()=>{l&&_K(e,l)})}),d}function Tg(e,t,n={}){var r;const i=Jf(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const u=i?()=>Promise.all(AS(e,i,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:f=0,staggerChildren:h,staggerDirection:g}=o;return BK(e,t,f+d,h,g,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[d,f]=c==="beforeChildren"?[u,l]:[l,u];return d().then(()=>f())}else return Promise.all([u(),l(n.delay)])}function BK(e,t,n=0,r=0,i=1,o){const u=[],l=(e.variantChildren.size-1)*r,c=i===1?(d=0)=>d*r:(d=0)=>l-d*r;return Array.from(e.variantChildren).sort(IK).forEach((d,f)=>{d.notify("AnimationStart",t),u.push(Tg(d,t,{...o,delay:n+c(f)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(u)}function IK(e,t){return e.sortNodePosition(t)}function LK(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Tg(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Tg(e,t,n);else{const i=typeof t=="function"?Jf(e,t,n.custom):t;r=Promise.all(AS(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const VK=Yy.length;function TS(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?TS(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<VK;n++){const r=Yy[n],i=e.props[r];(wl(i)||i===!1)&&(t[r]=i)}return t}const NK=[...qy].reverse(),jK=qy.length;function KK(e){return t=>Promise.all(t.map(({animation:n,options:r})=>LK(e,n,r)))}function UK(e){let t=KK(e),n=m3(),r=!0;const i=c=>(d,f)=>{var h;const g=Jf(e,f,c==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(g){const{transition:m,transitionEnd:$,...w}=g;d={...d,...w,...$}}return d};function o(c){t=c(e)}function u(c){const{props:d}=e,f=TS(e.parent)||{},h=[],g=new Set;let m={},$=1/0;for(let C=0;C<jK;C++){const x=NK[C],v=n[x],D=d[x]!==void 0?d[x]:f[x],P=wl(D),E=x===c?v.isActive:null;E===!1&&($=C);let T=D===f[x]&&D!==d[x]&&P;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),v.protectedKeys={...m},!v.isActive&&E===null||!D&&!v.prevProp||Zf(D)||typeof D=="boolean")continue;const V=zK(v.prevProp,D);let S=V||x===c&&v.isActive&&!T&&P||C>$&&P,z=!1;const O=Array.isArray(D)?D:[D];let M=O.reduce(i(x),{});E===!1&&(M={});const{prevResolvedValues:G={}}=v,K={...G,...M},W=R=>{S=!0,g.has(R)&&(z=!0,g.delete(R)),v.needsAnimating[R]=!0;const B=e.getValue(R);B&&(B.liveStyle=!1)};for(const R in K){const B=M[R],J=G[R];if(m.hasOwnProperty(R))continue;let L=!1;vg(B)&&vg(J)?L=!j2(B,J):L=B!==J,L?B!=null?W(R):g.add(R):B!==void 0&&g.has(R)?W(R):v.protectedKeys[R]=!0}v.prevProp=D,v.prevResolvedValues=M,v.isActive&&(m={...m,...M}),r&&e.blockInitialAnimation&&(S=!1),S&&(!(T&&V)||z)&&h.push(...O.map(R=>({animation:R,options:{type:x}})))}if(g.size){const C={};g.forEach(x=>{const v=e.getBaseTarget(x),D=e.getValue(x);D&&(D.liveStyle=!0),C[x]=v??null}),h.push({animation:C})}let w=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,w?t(h):Promise.resolve()}function l(c,d){var f;if(n[c].isActive===d)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(g=>{var m;return(m=g.animationState)===null||m===void 0?void 0:m.setActive(c,d)}),n[c].isActive=d;const h=u(c);for(const g in n)n[g].protectedKeys={};return h}return{animateChanges:u,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=m3(),r=!0}}}function zK(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!j2(t,e):!1}function la(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function m3(){return{animate:la(!0),whileInView:la(),whileHover:la(),whileTap:la(),whileDrag:la(),whileFocus:la(),exit:la()}}class ls{constructor(t){this.isMounted=!1,this.node=t}update(){}}class WK extends ls{constructor(t){super(t),t.animationState||(t.animationState=UK(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Zf(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 HK=0;class GK extends ls{constructor(){super(...arguments),this.id=HK++}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 qK={animation:{Feature:WK},exit:{Feature:GK}},YK={x:!1,y:!1};function ZK(){return YK.y}const JK=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function PS(e){return{point:{x:e.pageX,y:e.pageY}}}function g3(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function _S(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const y3=()=>({min:0,max:0}),RS=()=>({x:y3(),y:y3()});function QK({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function XK(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 eU(e,t){return QK(XK(e.getBoundingClientRect(),t))}const OS=b.createContext(null),tU=b.createContext({}),nU=b.createContext({}),rU={},{schedule:iU,cancel:sG}=U2(queueMicrotask,!1);function oU(e){const t=er(e)?e.get():e;return DK(t)?t.toValue():t}function aU(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function FS(e,t){const n=aU(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function v3(e){return t=>{t.pointerType==="touch"||ZK()||e(t)}}function uU(e,t,n={}){const[r,i,o]=FS(e,n),u=v3(l=>{const{target:c}=l,d=t(l);if(!d||!c)return;const f=v3(h=>{d(h),c.removeEventListener("pointerleave",f)});c.addEventListener("pointerleave",f,i)});return r.forEach(l=>{l.addEventListener("pointerenter",u,i)}),o}function b3(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Sr.postRender(()=>o(t,PS(t)))}class sU extends ls{mount(){const{current:t}=this.node;t&&(this.unmount=uU(t,n=>(b3(this.node,n,"Start"),r=>b3(this.node,r,"End"))))}unmount(){}}class lU extends ls{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=Xf(g3(this.node.current,"focus",()=>this.onFocus()),g3(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const rl=new WeakSet;function $3(e){return t=>{t.key==="Enter"&&e(t)}}function em(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const cU=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=$3(()=>{if(rl.has(n))return;em(n,"down");const i=$3(()=>{em(n,"up")}),o=()=>em(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)},dU=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function fU(e){return dU.has(e.tagName)||e.tabIndex!==-1}const MS=(e,t)=>t?e===t?!0:MS(e,t.parentElement):!1;function x3(e){return JK(e)&&!0}function pU(e,t,n={}){const[r,i,o]=FS(e,n),u=l=>{const c=l.currentTarget;if(!x3(l)||rl.has(c))return;rl.add(c);const d=t(l),f=(m,$)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",g),!(!x3(m)||!rl.has(c))&&(rl.delete(c),d&&d(m,{success:$}))},h=m=>{f(m,n.useGlobalTarget||MS(c,m.target))},g=m=>{f(m,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",g,i)};return r.forEach(l=>{fU(l)||(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",u,i),l.addEventListener("focus",d=>cU(d,i),i)}),o}function w3(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Sr.postRender(()=>o(t,PS(t)))}class hU extends ls{mount(){const{current:t}=this.node;t&&(this.unmount=pU(t,n=>(w3(this.node,n,"Start"),(r,{success:i})=>w3(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Pg=new WeakMap,tm=new WeakMap,mU=e=>{const t=Pg.get(e.target);t&&t(e)},gU=e=>{e.forEach(mU)};function yU({root:e,...t}){const n=e||document;tm.has(n)||tm.set(n,{});const r=tm.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(gU,{root:e,...t})),r[i]}function vU(e,t,n){const r=yU(t);return Pg.set(e,n),r.observe(e),()=>{Pg.delete(e),r.unobserve(e)}}const bU={some:0,all:1};class $U extends ls{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,u={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:bU[i]},l=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),g=d?f:h;g&&g(c)};return vU(this.node.current,u,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(xU(t,n))&&this.startObserver()}unmount(){}}function xU({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const wU={inView:{Feature:$U},tap:{Feature:hU},focus:{Feature:lU},hover:{Feature:sU}},kS=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),tp=b.createContext({}),dv=typeof window<"u",DU=dv?b.useLayoutEffect:b.useEffect,fv=b.createContext({strict:!1});function EU(e,t,n,r,i){var o,u;const{visualElement:l}=b.useContext(tp),c=b.useContext(fv),d=b.useContext(OS),f=b.useContext(kS).reducedMotion,h=b.useRef(null);r=r||c.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:l,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:f}));const g=h.current,m=b.useContext(nU);g&&!g.projection&&i&&(g.type==="html"||g.type==="svg")&&CU(h.current,n,i,m);const $=b.useRef(!1);b.useInsertionEffect(()=>{g&&$.current&&g.update(n,d)});const w=n[SS],C=b.useRef(!!w&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,w))&&((u=window.MotionHasOptimisedAnimation)===null||u===void 0?void 0:u.call(window,w)));return DU(()=>{g&&($.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),iU.render(g.render),C.current&&g.animationState&&g.animationState.animateChanges())}),b.useEffect(()=>{g&&(!C.current&&g.animationState&&g.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var x;(x=window.MotionHandoffMarkAsComplete)===null||x===void 0||x.call(window,w)}),C.current=!1))}),g}function CU(e,t,n,r){const{layoutId:i,layout:o,drag:u,dragConstraints:l,layoutScroll:c,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:BS(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!u||l&&_S(l),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:d})}function BS(e){if(e)return e.options.allowProjection!==!1?e.projection:BS(e.parent)}function SU(e,t,n){return b.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):_S(n)&&(n.current=r))},[t])}function np(e){return Zf(e.animate)||Yy.some(t=>wl(e[t]))}function IS(e){return!!(np(e)||e.variants)}function AU(e,t){if(np(e)){const{initial:n,animate:r}=e;return{initial:n===!1||wl(n)?n:void 0,animate:wl(r)?r:void 0}}return e.inherit!==!1?t:{}}function TU(e){const{initial:t,animate:n}=AU(e,b.useContext(tp));return b.useMemo(()=>({initial:t,animate:n}),[D3(t),D3(n)])}function D3(e){return Array.isArray(e)?e.join(" "):e}const E3={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"]},Zu={};for(const e in E3)Zu[e]={isEnabled:t=>E3[e].some(n=>!!t[n])};function _g(e){for(const t in e)Zu[t]={...Zu[t],...e[t]}}const PU=Symbol.for("motionComponentSymbol");function _U({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&_g(e);function o(l,c){let d;const f={...b.useContext(kS),...l,layoutId:RU(l)},{isStatic:h}=f,g=TU(l),m=r(l,h);if(!h&&dv){OU(f,e);const $=FU(f);d=$.MeasureLayout,g.visualElement=EU(i,m,f,t,$.ProjectionNode)}return mm.jsxs(tp.Provider,{value:g,children:[d&&g.visualElement?mm.jsx(d,{visualElement:g.visualElement,...f}):null,n(i,l,SU(m,g.visualElement,c),m,h,g.visualElement)]})}const u=b.forwardRef(o);return u[PU]=i,u}function RU({layoutId:e}){const t=b.useContext(tU).id;return t&&e!==void 0?t+"-"+e:e}function OU(e,t){const n=b.useContext(fv).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?as(!1,r):Ma(!1,r)}}function FU(e){const{drag:t,layout:n}=Zu;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 MU=["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 pv(e){return typeof e!="string"||e.includes("-")?!1:!!(MU.indexOf(e)>-1||/[A-Z]/u.test(e))}function LS(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const VS=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 NS(e,t,n,r){LS(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(VS.has(i)?i:cv(i),t.attrs[i])}function jS(e,{layout:t,layoutId:n}){return Na.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!rU[e]||e==="opacity")}function hv(e,t,n){var r;const{style:i}=e,o={};for(const u in i)(er(i[u])||t.style&&er(t.style[u])||jS(u,e)||((r=n==null?void 0:n.getValue(u))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[u]=i[u]);return o}function KS(e,t,n){const r=hv(e,t,n);for(const i in e)if(er(e[i])||er(t[i])){const o=Wl.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function kU(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}function BU({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const u={latestValues:IU(r,i,o,e),renderState:t()};return n&&(u.mount=l=>n(r,l,u)),u}const US=e=>(t,n)=>{const r=b.useContext(tp),i=b.useContext(OS),o=()=>BU(e,t,r,i);return n?o():kU(o)};function IU(e,t,n,r){const i={},o=r(e,{});for(const g in o)i[g]=oU(o[g]);let{initial:u,animate:l}=e;const c=np(e),d=IS(e);t&&d&&!c&&e.inherit!==!1&&(u===void 0&&(u=t.initial),l===void 0&&(l=t.animate));let f=n?n.initial===!1:!1;f=f||u===!1;const h=f?l:u;if(h&&typeof h!="boolean"&&!Zf(h)){const g=Array.isArray(h)?h:[h];for(let m=0;m<g.length;m++){const $=Gy(e,g[m]);if($){const{transitionEnd:w,transition:C,...x}=$;for(const v in x){let D=x[v];if(Array.isArray(D)){const P=f?D.length-1:0;D=D[P]}D!==null&&(i[v]=D)}for(const v in w)i[v]=w[v]}}}return i}const mv=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),zS=()=>({...mv(),attrs:{}}),WS=(e,t)=>t&&typeof e=="number"?t.transform(e):e,LU={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},VU=Wl.length;function NU(e,t,n){let r="",i=!0;for(let o=0;o<VU;o++){const u=Wl[o],l=e[u];if(l===void 0)continue;let c=!0;if(typeof l=="number"?c=l===(u.startsWith("scale")?1:0):c=parseFloat(l)===0,!c||n){const d=WS(l,nv[u]);if(!c){i=!1;const f=LU[u]||u;r+=`${f}(${d}) `}n&&(t[u]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function gv(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let u=!1,l=!1;for(const c in t){const d=t[c];if(Na.has(c)){u=!0;continue}else if(eS(c)){i[c]=d;continue}else{const f=WS(d,nv[c]);c.startsWith("origin")?(l=!0,o[c]=f):r[c]=f}}if(t.transform||(u||n?r.transform=NU(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:c="50%",originY:d="50%",originZ:f=0}=o;r.transformOrigin=`${c} ${d} ${f}`}}function C3(e,t,n){return typeof e=="string"?e:Ye.transform(t+n*e)}function jU(e,t,n){const r=C3(t,e.x,e.width),i=C3(n,e.y,e.height);return`${r} ${i}`}const KU={offset:"stroke-dashoffset",array:"stroke-dasharray"},UU={offset:"strokeDashoffset",array:"strokeDasharray"};function zU(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?KU:UU;e[o.offset]=Ye.transform(-r);const u=Ye.transform(t),l=Ye.transform(n);e[o.array]=`${u} ${l}`}function yv(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:u,pathSpacing:l=1,pathOffset:c=0,...d},f,h){if(gv(e,d,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:m,dimensions:$}=e;g.transform&&($&&(m.transform=g.transform),delete g.transform),$&&(i!==void 0||o!==void 0||m.transform)&&(m.transformOrigin=jU($,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),u!==void 0&&zU(g,u,l,c,!1)}const vv=e=>typeof e=="string"&&e.toLowerCase()==="svg",WU={useVisualState:US({scrapeMotionValuesFromProps:KS,createRenderState:zS,onMount:(e,t,{renderState:n,latestValues:r})=>{Sr.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Sr.render(()=>{yv(n,r,vv(t.tagName),e.transformTemplate),NS(t,n)})}})},HU={useVisualState:US({scrapeMotionValuesFromProps:hv,createRenderState:mv})};function HS(e,t,n){for(const r in t)!er(t[r])&&!jS(r,n)&&(e[r]=t[r])}function GU({transformTemplate:e},t){return b.useMemo(()=>{const n=mv();return gv(n,t,e),Object.assign({},n.vars,n.style)},[t])}function qU(e,t){const n=e.style||{},r={};return HS(r,n,e),Object.assign(r,GU(e,t)),r}function YU(e,t){const n={},r=qU(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 ZU=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 ff(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ZU.has(e)}let GS=e=>!ff(e);function JU(e){e&&(GS=t=>t.startsWith("on")?!ff(t):e(t))}try{JU(require("@emotion/is-prop-valid").default)}catch{}function QU(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(GS(i)||n===!0&&ff(i)||!t&&!ff(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function XU(e,t,n,r){const i=b.useMemo(()=>{const o=zS();return yv(o,t,vv(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};HS(o,e.style,e),i.style={...o,...i.style}}return i}function ez(e=!1){return(n,r,i,{latestValues:o},u)=>{const c=(pv(n)?XU:YU)(r,o,u,n),d=QU(r,typeof n=="string",e),f=n!==b.Fragment?{...d,...c,ref:i}:{},{children:h}=r,g=b.useMemo(()=>er(h)?h.get():h,[h]);return b.createElement(n,{...f,children:g})}}function tz(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const u={...pv(r)?WU:HU,preloadedFeatures:e,useRender:ez(i),createVisualElement:t,Component:r};return _U(u)}}const Rg={current:null},qS={current:!1};function nz(){if(qS.current=!0,!!dv)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Rg.current=e.matches;e.addListener(t),t()}else Rg.current=!1}function rz(e,t,n){for(const r in t){const i=t[r],o=n[r];if(er(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&Yf(i.version==="11.15.0",`Attempting to mix Motion versions ${i.version} with 11.15.0 may not work as expected.`);else if(er(o))e.addValue(r,df(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const u=e.getValue(r);u.liveStyle===!0?u.jump(i):u.hasAnimated||u.set(i)}else{const u=e.getStaticValue(r);e.addValue(r,df(u!==void 0?u:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const S3=new WeakMap,iz=[...rS,jn,ss],oz=e=>iz.find(nS(e)),A3=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class az{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:u},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Xy,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=Vo.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Sr.render(this.render,!1,!0))};const{latestValues:c,renderState:d}=u;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=np(n),this.isVariantNode=IS(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in h){const m=h[g];c[g]!==void 0&&er(m)&&m.set(c[g],!1)}}mount(t){this.current=t,S3.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)),qS.current||nz(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Rg.current,process.env.NODE_ENV!=="production"&&Yf(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(){S3.delete(this.current),this.projection&&this.projection.unmount(),bg(this.notifyUpdate),bg(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=Na.has(t),i=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&Sr.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let u;window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),u&&u(),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 Zu){const n=Zu[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):RS()}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<A3.length;r++){const i=A3[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,u=t[o];u&&(this.propEventSubscriptions[i]=this.on(i,u))}this.prevMotionValues=rz(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=df(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"&&(Q2(i)||J2(i))?i=parseFloat(i):!oz(i)&&ss.test(n)&&(i=dS(t,n)),this.setBaseTarget(t,er(i)?i.get():i)),er(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 u=Gy(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);u&&(i=u[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!er(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new CS),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class YS extends az{constructor(){super(...arguments),this.KeyframeResolver=fS}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;er(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function uz(e){return window.getComputedStyle(e)}class sz extends YS{constructor(){super(...arguments),this.type="html",this.renderInstance=LS}readValueFromInstance(t,n){if(Na.has(n)){const r=rv(n);return r&&r.default||0}else{const r=uz(t),i=(eS(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return eU(t,n)}build(t,n,r){gv(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return hv(t,n,r)}}class lz extends YS{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=RS}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Na.has(n)){const r=rv(n);return r&&r.default||0}return n=VS.has(n)?n:cv(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return KS(t,n,r)}build(t,n,r){yv(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){NS(t,n,r,i)}mount(t){this.isSVGTag=vv(t.tagName),super.mount(t)}}const cz=(e,t)=>pv(e)?new lz(t):new sz(t,{allowProjection:e!==b.Fragment}),dz=tz(),fz=VN(dz);function pz({children:e,features:t,strict:n=!1}){const[,r]=b.useState(!nm(t)),i=b.useRef(void 0);if(!nm(t)){const{renderer:o,...u}=t;i.current=o,_g(u)}return b.useEffect(()=>{nm(t)&&t().then(({renderer:o,...u})=>{_g(u),i.current=o,r(!0)})},[]),mm.jsx(fv.Provider,{value:{renderer:i.current,strict:n},children:e})}function nm(e){return typeof e=="function"}const hz={renderer:cz,...qK,...wU};function ZS(e){return t=>typeof t===e}var mz=ZS("function"),gz=e=>e===null,T3=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",P3=e=>!yz(e)&&!gz(e)&&(mz(e)||typeof e=="object"),yz=ZS("undefined");function vz(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!tr(e[r],t[r]))return!1;return!0}function bz(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 $z(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(!tr(n[1],t.get(n[0])))return!1;return!0}function xz(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 tr(e,t){if(e===t)return!0;if(e&&P3(e)&&t&&P3(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return vz(e,t);if(e instanceof Map&&t instanceof Map)return $z(e,t);if(e instanceof Set&&t instanceof Set)return xz(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return bz(e,t);if(T3(e)&&T3(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(let i=n.length;i--!==0;){const o=n[i];if(!(o==="_owner"&&e.$$typeof)&&!tr(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var wz=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],Dz=["bigint","boolean","null","number","string","symbol","undefined"];function rp(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(Ez(t))return t}function pi(e){return t=>rp(t)===e}function Ez(e){return wz.includes(e)}function cs(e){return t=>typeof t===e}function Cz(e){return Dz.includes(e)}var Sz=["innerHTML","ownerDocument","style","attributes","nodeValue"];function Oe(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(Oe.array(e))return"Array";if(Oe.plainFunction(e))return"Function";const t=rp(e);return t||"Object"}Oe.array=Array.isArray;Oe.arrayOf=(e,t)=>!Oe.array(e)&&!Oe.function(t)?!1:e.every(n=>t(n));Oe.asyncGeneratorFunction=e=>rp(e)==="AsyncGeneratorFunction";Oe.asyncFunction=pi("AsyncFunction");Oe.bigint=cs("bigint");Oe.boolean=e=>e===!0||e===!1;Oe.date=pi("Date");Oe.defined=e=>!Oe.undefined(e);Oe.domElement=e=>Oe.object(e)&&!Oe.plainObject(e)&&e.nodeType===1&&Oe.string(e.nodeName)&&Sz.every(t=>t in e);Oe.empty=e=>Oe.string(e)&&e.length===0||Oe.array(e)&&e.length===0||Oe.object(e)&&!Oe.map(e)&&!Oe.set(e)&&Object.keys(e).length===0||Oe.set(e)&&e.size===0||Oe.map(e)&&e.size===0;Oe.error=pi("Error");Oe.function=cs("function");Oe.generator=e=>Oe.iterable(e)&&Oe.function(e.next)&&Oe.function(e.throw);Oe.generatorFunction=pi("GeneratorFunction");Oe.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;Oe.iterable=e=>!Oe.nullOrUndefined(e)&&Oe.function(e[Symbol.iterator]);Oe.map=pi("Map");Oe.nan=e=>Number.isNaN(e);Oe.null=e=>e===null;Oe.nullOrUndefined=e=>Oe.null(e)||Oe.undefined(e);Oe.number=e=>cs("number")(e)&&!Oe.nan(e);Oe.numericString=e=>Oe.string(e)&&e.length>0&&!Number.isNaN(Number(e));Oe.object=e=>!Oe.nullOrUndefined(e)&&(Oe.function(e)||typeof e=="object");Oe.oneOf=(e,t)=>Oe.array(e)?e.indexOf(t)>-1:!1;Oe.plainFunction=pi("Function");Oe.plainObject=e=>{if(rp(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};Oe.primitive=e=>Oe.null(e)||Cz(typeof e);Oe.promise=pi("Promise");Oe.propertyOf=(e,t,n)=>{if(!Oe.object(e)||!t)return!1;const r=e[t];return Oe.function(n)?n(r):Oe.defined(r)};Oe.regexp=pi("RegExp");Oe.set=pi("Set");Oe.string=cs("string");Oe.symbol=cs("symbol");Oe.undefined=cs("undefined");Oe.weakMap=pi("WeakMap");Oe.weakSet=pi("WeakSet");var ke=Oe;function Az(...e){return e.every(t=>ke.string(t)||ke.array(t)||ke.plainObject(t))}function Tz(e,t,n){return JS(e,t)?[e,t].every(ke.array)?!e.some(M3(n))&&t.some(M3(n)):[e,t].every(ke.plainObject)?!Object.entries(e).some(F3(n))&&Object.entries(t).some(F3(n)):t===n:!1}function _3(e,t,n){const{actual:r,key:i,previous:o,type:u}=n,l=Ti(e,i),c=Ti(t,i);let d=[l,c].every(ke.number)&&(u==="increased"?l<c:l>c);return ke.undefined(r)||(d=d&&c===r),ke.undefined(o)||(d=d&&l===o),d}function R3(e,t,n){const{key:r,type:i,value:o}=n,u=Ti(e,r),l=Ti(t,r),c=i==="added"?u:l,d=i==="added"?l:u;if(!ke.nullOrUndefined(o)){if(ke.defined(c)){if(ke.array(c)||ke.plainObject(c))return Tz(c,d,o)}else return tr(d,o);return!1}return[u,l].every(ke.array)?!d.every(bv(c)):[u,l].every(ke.plainObject)?Pz(Object.keys(c),Object.keys(d)):![u,l].every(f=>ke.primitive(f)&&ke.defined(f))&&(i==="added"?!ke.defined(u)&&ke.defined(l):ke.defined(u)&&!ke.defined(l))}function O3(e,t,{key:n}={}){let r=Ti(e,n),i=Ti(t,n);if(!JS(r,i))throw new TypeError("Inputs have different types");if(!Az(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(ke.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function F3(e){return([t,n])=>ke.array(e)?tr(e,n)||e.some(r=>tr(r,n)||ke.array(n)&&bv(n)(r)):ke.plainObject(e)&&e[t]?!!e[t]&&tr(e[t],n):tr(e,n)}function Pz(e,t){return t.some(n=>!e.includes(n))}function M3(e){return t=>ke.array(e)?e.some(n=>tr(n,t)||ke.array(t)&&bv(t)(n)):tr(e,t)}function Ws(e,t){return ke.array(e)?e.some(n=>tr(n,t)):tr(e,t)}function bv(e){return t=>e.some(n=>tr(n,t))}function JS(...e){return e.every(ke.array)||e.every(ke.number)||e.every(ke.plainObject)||e.every(ke.string)}function Ti(e,t){return ke.plainObject(e)||ke.array(e)?ke.string(t)?t.split(".").reduce((r,i)=>r&&r[i],e):ke.number(t)?e[t]:e:e}function pf(e,t){if([e,t].some(ke.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(f=>ke.plainObject(f)||ke.array(f)))throw new Error("Expected plain objects or array");return{added:(f,h)=>{try{return R3(e,t,{key:f,type:"added",value:h})}catch{return!1}},changed:(f,h,g)=>{try{const m=Ti(e,f),$=Ti(t,f),w=ke.defined(h),C=ke.defined(g);if(w||C){const x=C?Ws(g,m):!Ws(h,m),v=Ws(h,$);return x&&v}return[m,$].every(ke.array)||[m,$].every(ke.plainObject)?!tr(m,$):m!==$}catch{return!1}},changedFrom:(f,h,g)=>{if(!ke.defined(f))return!1;try{const m=Ti(e,f),$=Ti(t,f),w=ke.defined(g);return Ws(h,m)&&(w?Ws(g,$):!w)}catch{return!1}},decreased:(f,h,g)=>{if(!ke.defined(f))return!1;try{return _3(e,t,{key:f,actual:h,previous:g,type:"decreased"})}catch{return!1}},emptied:f=>{try{const[h,g]=O3(e,t,{key:f});return!!h.length&&!g.length}catch{return!1}},filled:f=>{try{const[h,g]=O3(e,t,{key:f});return!h.length&&!!g.length}catch{return!1}},increased:(f,h,g)=>{if(!ke.defined(f))return!1;try{return _3(e,t,{key:f,actual:h,previous:g,type:"increased"})}catch{return!1}},removed:(f,h)=>{try{return R3(e,t,{key:f,type:"removed",value:h})}catch{return!1}}}}var rm,k3;function _z(){if(k3)return rm;k3=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;rm={left:i("scrollLeft"),top:i("scrollTop")};function i(l){return function(d,f,h,g){h=h||{},typeof h=="function"&&(g=h,h={}),typeof g!="function"&&(g=u);var m=r(),$=d[l],w=h.ease||o,C=isNaN(h.duration)?350:+h.duration,x=!1;return $===f?g(e,d[l]):requestAnimationFrame(D),v;function v(){x=!0}function D(P){if(x)return g(t,d[l]);var E=r(),T=n(1,(E-m)/C),V=w(T);d[l]=V*(f-$)+$,T<1?requestAnimationFrame(D):requestAnimationFrame(function(){g(null,d[l])})}}}function o(l){return .5*(1-Math.cos(Math.PI*l))}function u(){}return rm}var Rz=_z();const Oz=Wo(Rz);var Sd={exports:{}},Fz=Sd.exports,B3;function Mz(){return B3||(B3=1,function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(Fz,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})}(Sd)),Sd.exports}var kz=Mz();const QS=Wo(kz);var im,I3;function Bz(){if(I3)return im;I3=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,im=n,im}var Iz=Bz();const L3=Wo(Iz);var om,V3;function Lz(){if(V3)return om;V3=1;var e=function(v){return t(v)&&!n(v)};function t(x){return!!x&&typeof x=="object"}function n(x){var v=Object.prototype.toString.call(x);return v==="[object RegExp]"||v==="[object Date]"||o(x)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function o(x){return x.$$typeof===i}function u(x){return Array.isArray(x)?[]:{}}function l(x,v){return v.clone!==!1&&v.isMergeableObject(x)?w(u(x),x,v):x}function c(x,v,D){return x.concat(v).map(function(P){return l(P,D)})}function d(x,v){if(!v.customMerge)return w;var D=v.customMerge(x);return typeof D=="function"?D:w}function f(x){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(x).filter(function(v){return Object.propertyIsEnumerable.call(x,v)}):[]}function h(x){return Object.keys(x).concat(f(x))}function g(x,v){try{return v in x}catch{return!1}}function m(x,v){return g(x,v)&&!(Object.hasOwnProperty.call(x,v)&&Object.propertyIsEnumerable.call(x,v))}function $(x,v,D){var P={};return D.isMergeableObject(x)&&h(x).forEach(function(E){P[E]=l(x[E],D)}),h(v).forEach(function(E){m(x,E)||(g(x,E)&&D.isMergeableObject(v[E])?P[E]=d(E,D)(x[E],v[E],D):P[E]=l(v[E],D))}),P}function w(x,v,D){D=D||{},D.arrayMerge=D.arrayMerge||c,D.isMergeableObject=D.isMergeableObject||e,D.cloneUnlessOtherwiseSpecified=l;var P=Array.isArray(v),E=Array.isArray(x),T=P===E;return T?P?D.arrayMerge(x,v,D):$(x,v,D):l(v,D)}w.all=function(v,D){if(!Array.isArray(v))throw new Error("first argument should be an array");return v.reduce(function(P,E){return w(P,E,D)},{})};var C=w;return om=C,om}var Vz=Lz();const ai=Wo(Vz);var ud={exports:{}},sd={exports:{}},Dt={};/** @license React v16.13.1
|
|
156
|
-
* react-is.production.min.js
|
|
157
|
-
*
|
|
158
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
159
|
-
*
|
|
160
|
-
* This source code is licensed under the MIT license found in the
|
|
161
|
-
* LICENSE file in the root directory of this source tree.
|
|
162
|
-
*/var N3;function Nz(){if(N3)return Dt;N3=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,$=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function D(E){if(typeof E=="object"&&E!==null){var T=E.$$typeof;switch(T){case t:switch(E=E.type,E){case c:case d:case r:case o:case i:case h:return E;default:switch(E=E&&E.$$typeof,E){case l:case f:case $:case m:case u:return E;default:return T}}case n:return T}}}function P(E){return D(E)===d}return Dt.AsyncMode=c,Dt.ConcurrentMode=d,Dt.ContextConsumer=l,Dt.ContextProvider=u,Dt.Element=t,Dt.ForwardRef=f,Dt.Fragment=r,Dt.Lazy=$,Dt.Memo=m,Dt.Portal=n,Dt.Profiler=o,Dt.StrictMode=i,Dt.Suspense=h,Dt.isAsyncMode=function(E){return P(E)||D(E)===c},Dt.isConcurrentMode=P,Dt.isContextConsumer=function(E){return D(E)===l},Dt.isContextProvider=function(E){return D(E)===u},Dt.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===t},Dt.isForwardRef=function(E){return D(E)===f},Dt.isFragment=function(E){return D(E)===r},Dt.isLazy=function(E){return D(E)===$},Dt.isMemo=function(E){return D(E)===m},Dt.isPortal=function(E){return D(E)===n},Dt.isProfiler=function(E){return D(E)===o},Dt.isStrictMode=function(E){return D(E)===i},Dt.isSuspense=function(E){return D(E)===h},Dt.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===r||E===d||E===o||E===i||E===h||E===g||typeof E=="object"&&E!==null&&(E.$$typeof===$||E.$$typeof===m||E.$$typeof===u||E.$$typeof===l||E.$$typeof===f||E.$$typeof===C||E.$$typeof===x||E.$$typeof===v||E.$$typeof===w)},Dt.typeOf=D,Dt}var Et={};/** @license React v16.13.1
|
|
163
|
-
* react-is.development.js
|
|
164
|
-
*
|
|
165
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
166
|
-
*
|
|
167
|
-
* This source code is licensed under the MIT license found in the
|
|
168
|
-
* LICENSE file in the root directory of this source tree.
|
|
169
|
-
*/var j3;function jz(){return j3||(j3=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,$=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function D(le){return typeof le=="string"||typeof le=="function"||le===r||le===d||le===o||le===i||le===h||le===g||typeof le=="object"&&le!==null&&(le.$$typeof===$||le.$$typeof===m||le.$$typeof===u||le.$$typeof===l||le.$$typeof===f||le.$$typeof===C||le.$$typeof===x||le.$$typeof===v||le.$$typeof===w)}function P(le){if(typeof le=="object"&&le!==null){var Me=le.$$typeof;switch(Me){case t:var Xe=le.type;switch(Xe){case c:case d:case r:case o:case i:case h:return Xe;default:var ct=Xe&&Xe.$$typeof;switch(ct){case l:case f:case $:case m:case u:return ct;default:return Me}}case n:return Me}}}var E=c,T=d,V=l,S=u,z=t,O=f,M=r,G=$,K=m,W=n,j=o,I=i,R=h,B=!1;function J(le){return B||(B=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(le)||P(le)===c}function L(le){return P(le)===d}function U(le){return P(le)===l}function re(le){return P(le)===u}function oe(le){return typeof le=="object"&&le!==null&&le.$$typeof===t}function fe(le){return P(le)===f}function ie(le){return P(le)===r}function Ee(le){return P(le)===$}function $e(le){return P(le)===m}function ne(le){return P(le)===n}function ye(le){return P(le)===o}function xe(le){return P(le)===i}function pe(le){return P(le)===h}Et.AsyncMode=E,Et.ConcurrentMode=T,Et.ContextConsumer=V,Et.ContextProvider=S,Et.Element=z,Et.ForwardRef=O,Et.Fragment=M,Et.Lazy=G,Et.Memo=K,Et.Portal=W,Et.Profiler=j,Et.StrictMode=I,Et.Suspense=R,Et.isAsyncMode=J,Et.isConcurrentMode=L,Et.isContextConsumer=U,Et.isContextProvider=re,Et.isElement=oe,Et.isForwardRef=fe,Et.isFragment=ie,Et.isLazy=Ee,Et.isMemo=$e,Et.isPortal=ne,Et.isProfiler=ye,Et.isStrictMode=xe,Et.isSuspense=pe,Et.isValidElementType=D,Et.typeOf=P}()),Et}var K3;function XS(){return K3||(K3=1,process.env.NODE_ENV==="production"?sd.exports=Nz():sd.exports=jz()),sd.exports}/*
|
|
170
|
-
object-assign
|
|
171
|
-
(c) Sindre Sorhus
|
|
172
|
-
@license MIT
|
|
173
|
-
*/var am,U3;function Kz(){if(U3)return am;U3=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var u={},l=0;l<10;l++)u["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(u).map(function(f){return u[f]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(f){d[f]=f}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return am=i()?Object.assign:function(o,u){for(var l,c=r(o),d,f=1;f<arguments.length;f++){l=Object(arguments[f]);for(var h in l)t.call(l,h)&&(c[h]=l[h]);if(e){d=e(l);for(var g=0;g<d.length;g++)n.call(l,d[g])&&(c[d[g]]=l[d[g]])}}return c},am}var um,z3;function $v(){if(z3)return um;z3=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return um=e,um}var sm,W3;function e6(){return W3||(W3=1,sm=Function.call.bind(Object.prototype.hasOwnProperty)),sm}var lm,H3;function Uz(){if(H3)return lm;H3=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=$v(),n={},r=e6();e=function(o){var u="Warning: "+o;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}}}function i(o,u,l,c,d){if(process.env.NODE_ENV!=="production"){for(var f in o)if(r(o,f)){var h;try{if(typeof o[f]!="function"){var g=Error((c||"React class")+": "+l+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}h=o[f](u,f,c,l,null,t)}catch($){h=$}if(h&&!(h instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in n)){n[h.message]=!0;var m=d?d():"";e("Failed "+l+" type: "+h.message+(m??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},lm=i,lm}var cm,G3;function zz(){if(G3)return cm;G3=1;var e=XS(),t=Kz(),n=$v(),r=e6(),i=Uz(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function u(){return null}return cm=function(l,c){var d=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function h(L){var U=L&&(d&&L[d]||L[f]);if(typeof U=="function")return U}var g="<<anonymous>>",m={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:v(),arrayOf:D,element:P(),elementType:E(),instanceOf:T,node:O(),objectOf:S,oneOf:V,oneOfType:z,shape:G,exact:K};function $(L,U){return L===U?L!==0||1/L===1/U:L!==L&&U!==U}function w(L,U){this.message=L,this.data=U&&typeof U=="object"?U:{},this.stack=""}w.prototype=Error.prototype;function C(L){if(process.env.NODE_ENV!=="production")var U={},re=0;function oe(ie,Ee,$e,ne,ye,xe,pe){if(ne=ne||g,xe=xe||$e,pe!==n){if(c){var le=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw le.name="Invariant Violation",le}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Me=ne+":"+$e;!U[Me]&&re<3&&(o("You are manually calling a React.PropTypes validation function for the `"+xe+"` prop on `"+ne+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),U[Me]=!0,re++)}}return Ee[$e]==null?ie?Ee[$e]===null?new w("The "+ye+" `"+xe+"` is marked as required "+("in `"+ne+"`, but its value is `null`.")):new w("The "+ye+" `"+xe+"` is marked as required in "+("`"+ne+"`, but its value is `undefined`.")):null:L(Ee,$e,ne,ye,xe)}var fe=oe.bind(null,!1);return fe.isRequired=oe.bind(null,!0),fe}function x(L){function U(re,oe,fe,ie,Ee,$e){var ne=re[oe],ye=I(ne);if(ye!==L){var xe=R(ne);return new w("Invalid "+ie+" `"+Ee+"` of type "+("`"+xe+"` supplied to `"+fe+"`, expected ")+("`"+L+"`."),{expectedType:L})}return null}return C(U)}function v(){return C(u)}function D(L){function U(re,oe,fe,ie,Ee){if(typeof L!="function")return new w("Property `"+Ee+"` of component `"+fe+"` has invalid PropType notation inside arrayOf.");var $e=re[oe];if(!Array.isArray($e)){var ne=I($e);return new w("Invalid "+ie+" `"+Ee+"` of type "+("`"+ne+"` supplied to `"+fe+"`, expected an array."))}for(var ye=0;ye<$e.length;ye++){var xe=L($e,ye,fe,ie,Ee+"["+ye+"]",n);if(xe instanceof Error)return xe}return null}return C(U)}function P(){function L(U,re,oe,fe,ie){var Ee=U[re];if(!l(Ee)){var $e=I(Ee);return new w("Invalid "+fe+" `"+ie+"` of type "+("`"+$e+"` supplied to `"+oe+"`, expected a single ReactElement."))}return null}return C(L)}function E(){function L(U,re,oe,fe,ie){var Ee=U[re];if(!e.isValidElementType(Ee)){var $e=I(Ee);return new w("Invalid "+fe+" `"+ie+"` of type "+("`"+$e+"` supplied to `"+oe+"`, expected a single ReactElement type."))}return null}return C(L)}function T(L){function U(re,oe,fe,ie,Ee){if(!(re[oe]instanceof L)){var $e=L.name||g,ne=J(re[oe]);return new w("Invalid "+ie+" `"+Ee+"` of type "+("`"+ne+"` supplied to `"+fe+"`, expected ")+("instance of `"+$e+"`."))}return null}return C(U)}function V(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),u;function U(re,oe,fe,ie,Ee){for(var $e=re[oe],ne=0;ne<L.length;ne++)if($($e,L[ne]))return null;var ye=JSON.stringify(L,function(pe,le){var Me=R(le);return Me==="symbol"?String(le):le});return new w("Invalid "+ie+" `"+Ee+"` of value `"+String($e)+"` "+("supplied to `"+fe+"`, expected one of "+ye+"."))}return C(U)}function S(L){function U(re,oe,fe,ie,Ee){if(typeof L!="function")return new w("Property `"+Ee+"` of component `"+fe+"` has invalid PropType notation inside objectOf.");var $e=re[oe],ne=I($e);if(ne!=="object")return new w("Invalid "+ie+" `"+Ee+"` of type "+("`"+ne+"` supplied to `"+fe+"`, expected an object."));for(var ye in $e)if(r($e,ye)){var xe=L($e,ye,fe,ie,Ee+"."+ye,n);if(xe instanceof Error)return xe}return null}return C(U)}function z(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),u;for(var U=0;U<L.length;U++){var re=L[U];if(typeof re!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+B(re)+" at index "+U+"."),u}function oe(fe,ie,Ee,$e,ne){for(var ye=[],xe=0;xe<L.length;xe++){var pe=L[xe],le=pe(fe,ie,Ee,$e,ne,n);if(le==null)return null;le.data&&r(le.data,"expectedType")&&ye.push(le.data.expectedType)}var Me=ye.length>0?", expected one of type ["+ye.join(", ")+"]":"";return new w("Invalid "+$e+" `"+ne+"` supplied to "+("`"+Ee+"`"+Me+"."))}return C(oe)}function O(){function L(U,re,oe,fe,ie){return W(U[re])?null:new w("Invalid "+fe+" `"+ie+"` supplied to "+("`"+oe+"`, expected a ReactNode."))}return C(L)}function M(L,U,re,oe,fe){return new w((L||"React class")+": "+U+" type `"+re+"."+oe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+fe+"`.")}function G(L){function U(re,oe,fe,ie,Ee){var $e=re[oe],ne=I($e);if(ne!=="object")return new w("Invalid "+ie+" `"+Ee+"` of type `"+ne+"` "+("supplied to `"+fe+"`, expected `object`."));for(var ye in L){var xe=L[ye];if(typeof xe!="function")return M(fe,ie,Ee,ye,R(xe));var pe=xe($e,ye,fe,ie,Ee+"."+ye,n);if(pe)return pe}return null}return C(U)}function K(L){function U(re,oe,fe,ie,Ee){var $e=re[oe],ne=I($e);if(ne!=="object")return new w("Invalid "+ie+" `"+Ee+"` of type `"+ne+"` "+("supplied to `"+fe+"`, expected `object`."));var ye=t({},re[oe],L);for(var xe in ye){var pe=L[xe];if(r(L,xe)&&typeof pe!="function")return M(fe,ie,Ee,xe,R(pe));if(!pe)return new w("Invalid "+ie+" `"+Ee+"` key `"+xe+"` supplied to `"+fe+"`.\nBad object: "+JSON.stringify(re[oe],null," ")+`
|
|
174
|
-
Valid keys: `+JSON.stringify(Object.keys(L),null," "));var le=pe($e,xe,fe,ie,Ee+"."+xe,n);if(le)return le}return null}return C(U)}function W(L){switch(typeof L){case"number":case"string":case"undefined":return!0;case"boolean":return!L;case"object":if(Array.isArray(L))return L.every(W);if(L===null||l(L))return!0;var U=h(L);if(U){var re=U.call(L),oe;if(U!==L.entries){for(;!(oe=re.next()).done;)if(!W(oe.value))return!1}else for(;!(oe=re.next()).done;){var fe=oe.value;if(fe&&!W(fe[1]))return!1}}else return!1;return!0;default:return!1}}function j(L,U){return L==="symbol"?!0:U?U["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&U instanceof Symbol:!1}function I(L){var U=typeof L;return Array.isArray(L)?"array":L instanceof RegExp?"object":j(U,L)?"symbol":U}function R(L){if(typeof L>"u"||L===null)return""+L;var U=I(L);if(U==="object"){if(L instanceof Date)return"date";if(L instanceof RegExp)return"regexp"}return U}function B(L){var U=R(L);switch(U){case"array":case"object":return"an "+U;case"boolean":case"date":case"regexp":return"a "+U;default:return U}}function J(L){return!L.constructor||!L.constructor.name?g:L.constructor.name}return m.checkPropTypes=i,m.resetWarningCache=i.resetWarningCache,m.PropTypes=m,m},cm}var dm,q3;function Wz(){if(q3)return dm;q3=1;var e=$v();function t(){}function n(){}return n.resetWarningCache=t,dm=function(){function r(u,l,c,d,f,h){if(h!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},dm}var Y3;function Hz(){if(Y3)return ud.exports;if(Y3=1,process.env.NODE_ENV!=="production"){var e=XS(),t=!0;ud.exports=zz()(e.isElement,t)}else ud.exports=Wz()();return ud.exports}var Gz=Hz();const Se=Wo(Gz);/**!
|
|
175
|
-
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
|
176
|
-
* @version 1.16.1
|
|
177
|
-
* @license
|
|
178
|
-
* Copyright (c) 2016 Federico Zivolo and contributors
|
|
179
|
-
*
|
|
180
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
181
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
182
|
-
* in the Software without restriction, including without limitation the rights
|
|
183
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
184
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
185
|
-
* furnished to do so, subject to the following conditions:
|
|
186
|
-
*
|
|
187
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
188
|
-
* copies or substantial portions of the Software.
|
|
189
|
-
*
|
|
190
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
191
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
192
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
193
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
194
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
195
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
196
|
-
* SOFTWARE.
|
|
197
|
-
*/var ql=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",qz=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(ql&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function Yz(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function Zz(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},qz))}}var Jz=ql&&window.Promise,Qz=Jz?Yz:Zz;function t6(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function ja(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function xv(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function Yl(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=ja(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:Yl(xv(e))}function n6(e){return e&&e.referenceNode?e.referenceNode:e}var Z3=ql&&!!(window.MSInputMethodContext&&document.documentMode),J3=ql&&/MSIE 10/.test(navigator.userAgent);function ds(e){return e===11?Z3:e===10?J3:Z3||J3}function Ju(e){if(!e)return document.documentElement;for(var t=ds(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&&ja(n,"position")==="static"?Ju(n):n}function Xz(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||Ju(e.firstElementChild)===e}function Og(e){return e.parentNode!==null?Og(e.parentNode):e}function hf(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var u=o.commonAncestorContainer;if(e!==u&&t!==u||r.contains(i))return Xz(u)?u:Ju(u);var l=Og(e);return l.host?hf(l.host,t):hf(e,Og(t).host)}function Qu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",n=t==="top"?"scrollTop":"scrollLeft",r=e.nodeName;if(r==="BODY"||r==="HTML"){var i=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||i;return o[n]}return e[n]}function eW(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Qu(t,"top"),i=Qu(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function Q3(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 X3(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],ds(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function r6(e){var t=e.body,n=e.documentElement,r=ds(10)&&getComputedStyle(n);return{height:X3("Height",t,n,r),width:X3("Width",t,n,r)}}var tW=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},nW=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}}(),Xu=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Gr=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 Uo(e){return Gr({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Fg(e){var t={};try{if(ds(10)){t=e.getBoundingClientRect();var n=Qu(e,"top"),r=Qu(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch{}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o=e.nodeName==="HTML"?r6(e.ownerDocument):{},u=o.width||e.clientWidth||i.width,l=o.height||e.clientHeight||i.height,c=e.offsetWidth-u,d=e.offsetHeight-l;if(c||d){var f=ja(e);c-=Q3(f,"x"),d-=Q3(f,"y"),i.width-=c,i.height-=d}return Uo(i)}function wv(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=ds(10),i=t.nodeName==="HTML",o=Fg(e),u=Fg(t),l=Yl(e),c=ja(t),d=parseFloat(c.borderTopWidth),f=parseFloat(c.borderLeftWidth);n&&i&&(u.top=Math.max(u.top,0),u.left=Math.max(u.left,0));var h=Uo({top:o.top-u.top-d,left:o.left-u.left-f,width:o.width,height:o.height});if(h.marginTop=0,h.marginLeft=0,!r&&i){var g=parseFloat(c.marginTop),m=parseFloat(c.marginLeft);h.top-=d-g,h.bottom-=d-g,h.left-=f-m,h.right-=f-m,h.marginTop=g,h.marginLeft=m}return(r&&!n?t.contains(l):t===l&&l.nodeName!=="BODY")&&(h=eW(h,t)),h}function rW(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=wv(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),u=t?0:Qu(n),l=t?0:Qu(n,"left"),c={top:u-r.top+r.marginTop,left:l-r.left+r.marginLeft,width:i,height:o};return Uo(c)}function i6(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(ja(e,"position")==="fixed")return!0;var n=xv(e);return n?i6(n):!1}function o6(e){if(!e||!e.parentElement||ds())return document.documentElement;for(var t=e.parentElement;t&&ja(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function Dv(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,o={top:0,left:0},u=i?o6(e):hf(e,n6(t));if(r==="viewport")o=rW(u,i);else{var l=void 0;r==="scrollParent"?(l=Yl(xv(t)),l.nodeName==="BODY"&&(l=e.ownerDocument.documentElement)):r==="window"?l=e.ownerDocument.documentElement:l=r;var c=wv(l,u,i);if(l.nodeName==="HTML"&&!i6(u)){var d=r6(e.ownerDocument),f=d.height,h=d.width;o.top+=c.top-c.marginTop,o.bottom=f+c.top,o.left+=c.left-c.marginLeft,o.right=h+c.left}else o=c}n=n||0;var g=typeof n=="number";return o.left+=g?n:n.left||0,o.top+=g?n:n.top||0,o.right-=g?n:n.right||0,o.bottom-=g?n:n.bottom||0,o}function iW(e){var t=e.width,n=e.height;return t*n}function a6(e,t,n,r,i){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var u=Dv(n,r,o,i),l={top:{width:u.width,height:t.top-u.top},right:{width:u.right-t.right,height:u.height},bottom:{width:u.width,height:u.bottom-t.bottom},left:{width:t.left-u.left,height:u.height}},c=Object.keys(l).map(function(g){return Gr({key:g},l[g],{area:iW(l[g])})}).sort(function(g,m){return m.area-g.area}),d=c.filter(function(g){var m=g.width,$=g.height;return m>=n.clientWidth&&$>=n.clientHeight}),f=d.length>0?d[0].key:c[0].key,h=e.split("-")[1];return f+(h?"-"+h:"")}function u6(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=r?o6(t):hf(t,n6(n));return wv(n,i,r)}function s6(e){var t=e.ownerDocument.defaultView,n=t.getComputedStyle(e),r=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),i=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0),o={width:e.offsetWidth+i,height:e.offsetHeight+r};return o}function mf(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 l6(e,t,n){n=n.split("-")[0];var r=s6(e),i={width:r.width,height:r.height},o=["right","left"].indexOf(n)!==-1,u=o?"top":"left",l=o?"left":"top",c=o?"height":"width",d=o?"width":"height";return i[u]=t[u]+t[c]/2-r[c]/2,n===l?i[l]=t[l]-r[d]:i[l]=t[mf(l)],i}function Zl(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function oW(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===n});var r=Zl(e,function(i){return i[t]===n});return e.indexOf(r)}function c6(e,t,n){var r=n===void 0?e:e.slice(0,oW(e,"name",n));return r.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var o=i.function||i.fn;i.enabled&&t6(o)&&(t.offsets.popper=Uo(t.offsets.popper),t.offsets.reference=Uo(t.offsets.reference),t=o(t,i))}),t}function aW(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=u6(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=a6(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=l6(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=c6(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function d6(e,t){return e.some(function(n){var r=n.name,i=n.enabled;return i&&r===t})}function Ev(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if(typeof document.body.style[o]<"u")return o}return null}function uW(){return this.state.isDestroyed=!0,d6(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[Ev("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function f6(e){var t=e.ownerDocument;return t?t.defaultView:window}function p6(e,t,n,r){var i=e.nodeName==="BODY",o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||p6(Yl(o.parentNode),t,n,r),r.push(o)}function sW(e,t,n,r){n.updateBound=r,f6(e).addEventListener("resize",n.updateBound,{passive:!0});var i=Yl(e);return p6(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function lW(){this.state.eventsEnabled||(this.state=sW(this.reference,this.options,this.state,this.scheduleUpdate))}function cW(e,t){return f6(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 dW(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=cW(this.reference,this.state))}function Cv(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function Mg(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&Cv(t[n])&&(r="px"),e.style[n]=t[n]+r})}function fW(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function pW(e){return Mg(e.instance.popper,e.styles),fW(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&Mg(e.arrowElement,e.arrowStyles),e}function hW(e,t,n,r,i){var o=u6(i,t,e,n.positionFixed),u=a6(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",u),Mg(t,{position:n.positionFixed?"fixed":"absolute"}),n}function mW(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,u=Math.floor,l=function(x){return x},c=o(i.width),d=o(r.width),f=["left","right"].indexOf(e.placement)!==-1,h=e.placement.indexOf("-")!==-1,g=c%2===d%2,m=c%2===1&&d%2===1,$=t?f||h||g?o:u:l,w=t?o:l;return{left:$(m&&!h&&t?r.left-1:r.left),top:w(r.top),bottom:w(r.bottom),right:$(r.right)}}var gW=ql&&/Firefox/i.test(navigator.userAgent);function yW(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=Zl(e.instance.modifiers,function(D){return D.name==="applyStyle"}).gpuAcceleration;o!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var u=o!==void 0?o:t.gpuAcceleration,l=Ju(e.instance.popper),c=Fg(l),d={position:i.position},f=mW(e,window.devicePixelRatio<2||!gW),h=n==="bottom"?"top":"bottom",g=r==="right"?"left":"right",m=Ev("transform"),$=void 0,w=void 0;if(h==="bottom"?l.nodeName==="HTML"?w=-l.clientHeight+f.bottom:w=-c.height+f.bottom:w=f.top,g==="right"?l.nodeName==="HTML"?$=-l.clientWidth+f.right:$=-c.width+f.right:$=f.left,u&&m)d[m]="translate3d("+$+"px, "+w+"px, 0)",d[h]=0,d[g]=0,d.willChange="transform";else{var C=h==="bottom"?-1:1,x=g==="right"?-1:1;d[h]=w*C,d[g]=$*x,d.willChange=h+", "+g}var v={"x-placement":e.placement};return e.attributes=Gr({},v,e.attributes),e.styles=Gr({},d,e.styles),e.arrowStyles=Gr({},e.offsets.arrow,e.arrowStyles),e}function h6(e,t,n){var r=Zl(e,function(l){var c=l.name;return c===t}),i=!!r&&e.some(function(l){return l.name===n&&l.enabled&&l.order<r.order});if(!i){var o="`"+t+"`",u="`"+n+"`";console.warn(u+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}function vW(e,t){var n;if(!h6(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if(typeof r=="string"){if(r=e.instance.popper.querySelector(r),!r)return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,u=o.popper,l=o.reference,c=["left","right"].indexOf(i)!==-1,d=c?"height":"width",f=c?"Top":"Left",h=f.toLowerCase(),g=c?"left":"top",m=c?"bottom":"right",$=s6(r)[d];l[m]-$<u[h]&&(e.offsets.popper[h]-=u[h]-(l[m]-$)),l[h]+$>u[m]&&(e.offsets.popper[h]+=l[h]+$-u[m]),e.offsets.popper=Uo(e.offsets.popper);var w=l[h]+l[d]/2-$/2,C=ja(e.instance.popper),x=parseFloat(C["margin"+f]),v=parseFloat(C["border"+f+"Width"]),D=w-e.offsets.popper[h]-x-v;return D=Math.max(Math.min(u[d]-$,D),0),e.arrowElement=r,e.offsets.arrow=(n={},Xu(n,h,Math.round(D)),Xu(n,g,""),n),e}function bW(e){return e==="end"?"start":e==="start"?"end":e}var m6=["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"],fm=m6.slice(3);function e$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=fm.indexOf(e),r=fm.slice(n+1).concat(fm.slice(0,n));return t?r.reverse():r}var pm={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function $W(e,t){if(d6(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=Dv(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=mf(r),o=e.placement.split("-")[1]||"",u=[];switch(t.behavior){case pm.FLIP:u=[r,i];break;case pm.CLOCKWISE:u=e$(r);break;case pm.COUNTERCLOCKWISE:u=e$(r,!0);break;default:u=t.behavior}return u.forEach(function(l,c){if(r!==l||u.length===c+1)return e;r=e.placement.split("-")[0],i=mf(r);var d=e.offsets.popper,f=e.offsets.reference,h=Math.floor,g=r==="left"&&h(d.right)>h(f.left)||r==="right"&&h(d.left)<h(f.right)||r==="top"&&h(d.bottom)>h(f.top)||r==="bottom"&&h(d.top)<h(f.bottom),m=h(d.left)<h(n.left),$=h(d.right)>h(n.right),w=h(d.top)<h(n.top),C=h(d.bottom)>h(n.bottom),x=r==="left"&&m||r==="right"&&$||r==="top"&&w||r==="bottom"&&C,v=["top","bottom"].indexOf(r)!==-1,D=!!t.flipVariations&&(v&&o==="start"&&m||v&&o==="end"&&$||!v&&o==="start"&&w||!v&&o==="end"&&C),P=!!t.flipVariationsByContent&&(v&&o==="start"&&$||v&&o==="end"&&m||!v&&o==="start"&&C||!v&&o==="end"&&w),E=D||P;(g||x||E)&&(e.flipped=!0,(g||x)&&(r=u[c+1]),E&&(o=bW(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=Gr({},e.offsets.popper,l6(e.instance.popper,e.offsets.reference,e.placement)),e=c6(e.instance.modifiers,e,"flip"))}),e}function xW(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,u=["top","bottom"].indexOf(i)!==-1,l=u?"right":"bottom",c=u?"left":"top",d=u?"width":"height";return n[l]<o(r[c])&&(e.offsets.popper[c]=o(r[c])-n[d]),n[c]>o(r[l])&&(e.offsets.popper[c]=o(r[l])),e}function wW(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],u=i[2];if(!o)return e;if(u.indexOf("%")===0){var l=void 0;switch(u){case"%p":l=n;break;case"%":case"%r":default:l=r}var c=Uo(l);return c[t]/100*o}else if(u==="vh"||u==="vw"){var d=void 0;return u==="vh"?d=Math.max(document.documentElement.clientHeight,window.innerHeight||0):d=Math.max(document.documentElement.clientWidth,window.innerWidth||0),d/100*o}else return o}function DW(e,t,n,r){var i=[0,0],o=["right","left"].indexOf(r)!==-1,u=e.split(/(\+|\-)/).map(function(f){return f.trim()}),l=u.indexOf(Zl(u,function(f){return f.search(/,|\s/)!==-1}));u[l]&&u[l].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,d=l!==-1?[u.slice(0,l).concat([u[l].split(c)[0]]),[u[l].split(c)[1]].concat(u.slice(l+1))]:[u];return d=d.map(function(f,h){var g=(h===1?!o:o)?"height":"width",m=!1;return f.reduce(function($,w){return $[$.length-1]===""&&["+","-"].indexOf(w)!==-1?($[$.length-1]=w,m=!0,$):m?($[$.length-1]+=w,m=!1,$):$.concat(w)},[]).map(function($){return wW($,g,t,n)})}),d.forEach(function(f,h){f.forEach(function(g,m){Cv(g)&&(i[h]+=g*(f[m-1]==="-"?-1:1))})}),i}function EW(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,u=i.reference,l=r.split("-")[0],c=void 0;return Cv(+n)?c=[+n,0]:c=DW(n,o,u,l),l==="left"?(o.top+=c[0],o.left-=c[1]):l==="right"?(o.top+=c[0],o.left+=c[1]):l==="top"?(o.left+=c[0],o.top-=c[1]):l==="bottom"&&(o.left+=c[0],o.top+=c[1]),e.popper=o,e}function CW(e,t){var n=t.boundariesElement||Ju(e.instance.popper);e.instance.reference===n&&(n=Ju(n));var r=Ev("transform"),i=e.instance.popper.style,o=i.top,u=i.left,l=i[r];i.top="",i.left="",i[r]="";var c=Dv(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=u,i[r]=l,t.boundaries=c;var d=t.priority,f=e.offsets.popper,h={primary:function(m){var $=f[m];return f[m]<c[m]&&!t.escapeWithReference&&($=Math.max(f[m],c[m])),Xu({},m,$)},secondary:function(m){var $=m==="right"?"left":"top",w=f[$];return f[m]>c[m]&&!t.escapeWithReference&&(w=Math.min(f[$],c[m]-(m==="right"?f.width:f.height))),Xu({},$,w)}};return d.forEach(function(g){var m=["left","top"].indexOf(g)!==-1?"primary":"secondary";f=Gr({},f,h[m](g))}),e.offsets.popper=f,e}function SW(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,u=i.popper,l=["bottom","top"].indexOf(n)!==-1,c=l?"left":"top",d=l?"width":"height",f={start:Xu({},c,o[c]),end:Xu({},c,o[c]+o[d]-u[d])};e.offsets.popper=Gr({},u,f[r])}return e}function AW(e){if(!h6(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Zl(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 TW(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,u=["left","right"].indexOf(n)!==-1,l=["top","left"].indexOf(n)===-1;return i[u?"left":"top"]=o[n]-(l?i[u?"width":"height"]:0),e.placement=mf(t),e.offsets.popper=Uo(i),e}var PW={shift:{order:100,enabled:!0,fn:SW},offset:{order:200,enabled:!0,fn:EW,offset:0},preventOverflow:{order:300,enabled:!0,fn:CW,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:xW},arrow:{order:500,enabled:!0,fn:vW,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:$W,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:TW},hide:{order:800,enabled:!0,fn:AW},computeStyle:{order:850,enabled:!0,fn:yW,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:pW,onLoad:hW,gpuAcceleration:void 0}},_W={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:PW},Cl=function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};tW(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Qz(this.update.bind(this)),this.options=Gr({},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(Gr({},e.Defaults.modifiers,i.modifiers)).forEach(function(u){r.options.modifiers[u]=Gr({},e.Defaults.modifiers[u]||{},i.modifiers?i.modifiers[u]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(u){return Gr({name:u},r.options.modifiers[u])}).sort(function(u,l){return u.order-l.order}),this.modifiers.forEach(function(u){u.enabled&&t6(u.onLoad)&&u.onLoad(r.reference,r.popper,r.options,u,r.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return nW(e,[{key:"update",value:function(){return aW.call(this)}},{key:"destroy",value:function(){return uW.call(this)}},{key:"enableEventListeners",value:function(){return lW.call(this)}},{key:"disableEventListeners",value:function(){return dW.call(this)}}]),e}();Cl.Utils=(typeof window<"u"?window:global).PopperUtils;Cl.placements=m6;Cl.Defaults=_W;var RW=["innerHTML","ownerDocument","style","attributes","nodeValue"],OW=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],FW=["bigint","boolean","null","number","string","symbol","undefined"];function ip(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(MW(t))return t}function hi(e){return function(t){return ip(t)===e}}function MW(e){return OW.includes(e)}function fs(e){return function(t){return typeof t===e}}function kW(e){return FW.includes(e)}function ce(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(ce.array(e))return"Array";if(ce.plainFunction(e))return"Function";var t=ip(e);return t||"Object"}ce.array=Array.isArray;ce.arrayOf=function(e,t){return!ce.array(e)&&!ce.function(t)?!1:e.every(function(n){return t(n)})};ce.asyncGeneratorFunction=function(e){return ip(e)==="AsyncGeneratorFunction"};ce.asyncFunction=hi("AsyncFunction");ce.bigint=fs("bigint");ce.boolean=function(e){return e===!0||e===!1};ce.date=hi("Date");ce.defined=function(e){return!ce.undefined(e)};ce.domElement=function(e){return ce.object(e)&&!ce.plainObject(e)&&e.nodeType===1&&ce.string(e.nodeName)&&RW.every(function(t){return t in e})};ce.empty=function(e){return ce.string(e)&&e.length===0||ce.array(e)&&e.length===0||ce.object(e)&&!ce.map(e)&&!ce.set(e)&&Object.keys(e).length===0||ce.set(e)&&e.size===0||ce.map(e)&&e.size===0};ce.error=hi("Error");ce.function=fs("function");ce.generator=function(e){return ce.iterable(e)&&ce.function(e.next)&&ce.function(e.throw)};ce.generatorFunction=hi("GeneratorFunction");ce.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype};ce.iterable=function(e){return!ce.nullOrUndefined(e)&&ce.function(e[Symbol.iterator])};ce.map=hi("Map");ce.nan=function(e){return Number.isNaN(e)};ce.null=function(e){return e===null};ce.nullOrUndefined=function(e){return ce.null(e)||ce.undefined(e)};ce.number=function(e){return fs("number")(e)&&!ce.nan(e)};ce.numericString=function(e){return ce.string(e)&&e.length>0&&!Number.isNaN(Number(e))};ce.object=function(e){return!ce.nullOrUndefined(e)&&(ce.function(e)||typeof e=="object")};ce.oneOf=function(e,t){return ce.array(e)?e.indexOf(t)>-1:!1};ce.plainFunction=hi("Function");ce.plainObject=function(e){if(ip(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};ce.primitive=function(e){return ce.null(e)||kW(typeof e)};ce.promise=hi("Promise");ce.propertyOf=function(e,t,n){if(!ce.object(e)||!t)return!1;var r=e[t];return ce.function(n)?n(r):ce.defined(r)};ce.regexp=hi("RegExp");ce.set=hi("Set");ce.string=fs("string");ce.symbol=fs("symbol");ce.undefined=fs("undefined");ce.weakMap=hi("WeakMap");ce.weakSet=hi("WeakSet");function g6(e){return function(t){return typeof t===e}}var BW=g6("function"),IW=function(e){return e===null},t$=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},n$=function(e){return!LW(e)&&!IW(e)&&(BW(e)||typeof e=="object")},LW=g6("undefined"),kg=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 VW(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;r--!==0;)if(!mr(e[r],t[r]))return!1;return!0}function NW(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 jW(e,t){var n,r,i,o;if(e.size!==t.size)return!1;try{for(var u=kg(e.entries()),l=u.next();!l.done;l=u.next()){var c=l.value;if(!t.has(c[0]))return!1}}catch(h){n={error:h}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}try{for(var d=kg(e.entries()),f=d.next();!f.done;f=d.next()){var c=f.value;if(!mr(c[1],t.get(c[0])))return!1}}catch(h){i={error:h}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}return!0}function KW(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var i=kg(e.entries()),o=i.next();!o.done;o=i.next()){var u=o.value;if(!t.has(u[0]))return!1}}catch(l){n={error:l}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0}function mr(e,t){if(e===t)return!0;if(e&&n$(e)&&t&&n$(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return VW(e,t);if(e instanceof Map&&t instanceof Map)return jW(e,t);if(e instanceof Set&&t instanceof Set)return KW(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return NW(e,t);if(t$(e)&&t$(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(var i=n.length;i--!==0;){var o=n[i];if(!(o==="_owner"&&e.$$typeof)&&!mr(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}function UW(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(n){return ce.string(n)||ce.array(n)||ce.plainObject(n)})}function zW(e,t,n){return y6(e,t)?[e,t].every(ce.array)?!e.some(u$(n))&&t.some(u$(n)):[e,t].every(ce.plainObject)?!Object.entries(e).some(a$(n))&&Object.entries(t).some(a$(n)):t===n:!1}function r$(e,t,n){var r=n.actual,i=n.key,o=n.previous,u=n.type,l=Pi(e,i),c=Pi(t,i),d=[l,c].every(ce.number)&&(u==="increased"?l<c:l>c);return ce.undefined(r)||(d=d&&c===r),ce.undefined(o)||(d=d&&l===o),d}function i$(e,t,n){var r=n.key,i=n.type,o=n.value,u=Pi(e,r),l=Pi(t,r),c=i==="added"?u:l,d=i==="added"?l:u;if(!ce.nullOrUndefined(o)){if(ce.defined(c)){if(ce.array(c)||ce.plainObject(c))return zW(c,d,o)}else return mr(d,o);return!1}return[u,l].every(ce.array)?!d.every(Sv(c)):[u,l].every(ce.plainObject)?WW(Object.keys(c),Object.keys(d)):![u,l].every(function(f){return ce.primitive(f)&&ce.defined(f)})&&(i==="added"?!ce.defined(u)&&ce.defined(l):ce.defined(u)&&!ce.defined(l))}function o$(e,t,n){var r=n===void 0?{}:n,i=r.key,o=Pi(e,i),u=Pi(t,i);if(!y6(o,u))throw new TypeError("Inputs have different types");if(!UW(o,u))throw new TypeError("Inputs don't have length");return[o,u].every(ce.plainObject)&&(o=Object.keys(o),u=Object.keys(u)),[o,u]}function a$(e){return function(t){var n=t[0],r=t[1];return ce.array(e)?mr(e,r)||e.some(function(i){return mr(i,r)||ce.array(r)&&Sv(r)(i)}):ce.plainObject(e)&&e[n]?!!e[n]&&mr(e[n],r):mr(e,r)}}function WW(e,t){return t.some(function(n){return!e.includes(n)})}function u$(e){return function(t){return ce.array(e)?e.some(function(n){return mr(n,t)||ce.array(t)&&Sv(t)(n)}):mr(e,t)}}function Hs(e,t){return ce.array(e)?e.some(function(n){return mr(n,t)}):mr(e,t)}function Sv(e){return function(t){return e.some(function(n){return mr(n,t)})}}function y6(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(ce.array)||e.every(ce.number)||e.every(ce.plainObject)||e.every(ce.string)}function Pi(e,t){if(ce.plainObject(e)||ce.array(e)){if(ce.string(t)){var n=t.split(".");return n.reduce(function(r,i){return r&&r[i]},e)}return ce.number(t)?e[t]:e}return e}function HW(e,t){if([e,t].some(ce.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(h){return ce.plainObject(h)||ce.array(h)}))throw new Error("Expected plain objects or array");var n=function(h,g){try{return i$(e,t,{key:h,type:"added",value:g})}catch{return!1}},r=function(h,g,m){try{var $=Pi(e,h),w=Pi(t,h),C=ce.defined(g),x=ce.defined(m);if(C||x){var v=x?Hs(m,$):!Hs(g,$),D=Hs(g,w);return v&&D}return[$,w].every(ce.array)||[$,w].every(ce.plainObject)?!mr($,w):$!==w}catch{return!1}},i=function(h,g,m){if(!ce.defined(h))return!1;try{var $=Pi(e,h),w=Pi(t,h),C=ce.defined(m);return Hs(g,$)&&(C?Hs(m,w):!C)}catch{return!1}},o=function(h,g){return ce.defined(h)?(process.env.NODE_ENV==="development"&&console.warn("`changedTo` is deprecated! Replace it with `change`"),r(h,g)):!1},u=function(h,g,m){if(!ce.defined(h))return!1;try{return r$(e,t,{key:h,actual:g,previous:m,type:"decreased"})}catch{return!1}},l=function(h){try{var g=o$(e,t,{key:h}),m=g[0],$=g[1];return!!m.length&&!$.length}catch{return!1}},c=function(h){try{var g=o$(e,t,{key:h}),m=g[0],$=g[1];return!m.length&&!!$.length}catch{return!1}},d=function(h,g,m){if(!ce.defined(h))return!1;try{return r$(e,t,{key:h,actual:g,previous:m,type:"increased"})}catch{return!1}},f=function(h,g){try{return i$(e,t,{key:h,type:"removed",value:g})}catch{return!1}};return{added:n,changed:r,changedFrom:i,changedTo:o,decreased:u,emptied:l,filled:c,increased:d,removed:f}}function s$(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 Wt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?s$(Object(n),!0).forEach(function(r){Kn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GW(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,b6(r.key),r)}}function Ql(e,t,n){return t&&GW(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Kn(e,t,n){return t=b6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xl(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&&Bg(e,t)}function gf(e){return gf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},gf(e)}function Bg(e,t){return Bg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Bg(e,t)}function qW(){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 YW(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function v6(e,t){if(e==null)return{};var n=YW(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Yi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZW(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 Yi(e)}function ec(e){var t=qW();return function(){var r=gf(e),i;if(t){var o=gf(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return ZW(this,i)}}function JW(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function b6(e){var t=JW(e,"string");return typeof t=="symbol"?t:String(t)}var QW={flip:{padding:20},preventOverflow:{padding:10}},XW="The typeValidator argument must be a function with the signature function(props, propName, componentName).",eH="The error message is optional, but must be a string if provided.";function tH(e,t,n,r){return typeof e=="boolean"?e:typeof e=="function"?e(t,n,r):e?!!e:!1}function nH(e,t){return Object.hasOwnProperty.call(e,t)}function rH(e,t,n,r){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}function iH(e,t){if(typeof e!="function")throw new TypeError(XW);if(t)throw new TypeError(eH)}function l$(e,t,n){return iH(e,n),function(r,i,o){for(var u=arguments.length,l=new Array(u>3?u-3:0),c=3;c<u;c++)l[c-3]=arguments[c];return tH(t,r,i,o)?nH(r,i)?e.apply(void 0,[r,i,o].concat(l)):rH(r,i,o):e.apply(void 0,[r,i,o].concat(l))}}var pt={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing",ERROR:"error"},Gs=ko.createPortal!==void 0;function wi(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function hm(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function ld(e){var t=e.title,n=e.data,r=e.warn,i=r===void 0?!1:r,o=e.debug,u=o===void 0?!1:o,l=i?console.warn||console.error:console.log;u&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach(function(c){ce.plainObject(c)&&c.key?l.apply(console,[c.key,c.value]):l.apply(console,[c])}):l.apply(console,[n]),console.groupEnd())}function oH(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,n,r)}function aH(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,n,r)}function uH(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;i=function(u){n(u),aH(e,t,i)},oH(e,t,i,r)}function c$(){}var $6=function(e){Xl(n,e);var t=ec(n);function n(){return Jl(this,n),t.apply(this,arguments)}return Ql(n,[{key:"componentDidMount",value:function(){wi()&&(this.node||this.appendNode(),Gs||this.renderPortal())}},{key:"componentDidUpdate",value:function(){wi()&&(Gs||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!wi()||!this.node||(Gs||ko.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))}},{key:"appendNode",value:function(){var i=this.props,o=i.id,u=i.zIndex;this.node||(this.node=document.createElement("div"),o&&(this.node.id=o),u&&(this.node.style.zIndex=u),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!wi())return null;var i=this.props,o=i.children,u=i.setRef;if(this.node||this.appendNode(),Gs)return ko.createPortal(o,this.node);var l=ko.unstable_renderSubtreeIntoContainer(this,o.length>1?b.createElement("div",null,o):o[0],this.node);return u(l),null}},{key:"renderReact16",value:function(){var i=this.props,o=i.hasChildren,u=i.placement,l=i.target;return o?this.renderPortal():l||u==="center"?this.renderPortal():null}},{key:"render",value:function(){return Gs?this.renderReact16():null}}]),n}(b.Component);Kn($6,"propTypes",{children:Se.oneOfType([Se.element,Se.array]),hasChildren:Se.bool,id:Se.oneOfType([Se.string,Se.number]),placement:Se.string,setRef:Se.func.isRequired,target:Se.oneOfType([Se.object,Se.string]),zIndex:Se.number});var x6=function(e){Xl(n,e);var t=ec(n);function n(){return Jl(this,n),t.apply(this,arguments)}return Ql(n,[{key:"parentStyle",get:function(){var i=this.props,o=i.placement,u=i.styles,l=u.arrow.length,c={pointerEvents:"none",position:"absolute",width:"100%"};return o.startsWith("top")?(c.bottom=0,c.left=0,c.right=0,c.height=l):o.startsWith("bottom")?(c.left=0,c.right=0,c.top=0,c.height=l):o.startsWith("left")?(c.right=0,c.top=0,c.bottom=0):o.startsWith("right")&&(c.left=0,c.top=0),c}},{key:"render",value:function(){var i=this.props,o=i.placement,u=i.setArrowRef,l=i.styles,c=l.arrow,d=c.color,f=c.display,h=c.length,g=c.margin,m=c.position,$=c.spread,w={display:f,position:m},C,x=$,v=h;return o.startsWith("top")?(C="0,0 ".concat(x/2,",").concat(v," ").concat(x,",0"),w.bottom=0,w.marginLeft=g,w.marginRight=g):o.startsWith("bottom")?(C="".concat(x,",").concat(v," ").concat(x/2,",0 0,").concat(v),w.top=0,w.marginLeft=g,w.marginRight=g):o.startsWith("left")?(v=$,x=h,C="0,0 ".concat(x,",").concat(v/2," 0,").concat(v),w.right=0,w.marginTop=g,w.marginBottom=g):o.startsWith("right")&&(v=$,x=h,C="".concat(x,",").concat(v," ").concat(x,",0 0,").concat(v/2),w.left=0,w.marginTop=g,w.marginBottom=g),b.createElement("div",{className:"__floater__arrow",style:this.parentStyle},b.createElement("span",{ref:u,style:w},b.createElement("svg",{width:x,height:v,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b.createElement("polygon",{points:C,fill:d}))))}}]),n}(b.Component);Kn(x6,"propTypes",{placement:Se.string.isRequired,setArrowRef:Se.func.isRequired,styles:Se.object.isRequired});var sH=["color","height","width"];function w6(e){var t=e.handleClick,n=e.styles,r=n.color,i=n.height,o=n.width,u=v6(n,sH);return b.createElement("button",{"aria-label":"close",onClick:t,style:u,type:"button"},b.createElement("svg",{width:"".concat(o,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},b.createElement("g",null,b.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r}))))}w6.propTypes={handleClick:Se.func.isRequired,styles:Se.object.isRequired};function D6(e){var t=e.content,n=e.footer,r=e.handleClick,i=e.open,o=e.positionWrapper,u=e.showCloseButton,l=e.title,c=e.styles,d={content:b.isValidElement(t)?t:b.createElement("div",{className:"__floater__content",style:c.content},t)};return l&&(d.title=b.isValidElement(l)?l:b.createElement("div",{className:"__floater__title",style:c.title},l)),n&&(d.footer=b.isValidElement(n)?n:b.createElement("div",{className:"__floater__footer",style:c.footer},n)),(u||o)&&!ce.boolean(i)&&(d.close=b.createElement(w6,{styles:c.close,handleClick:r})),b.createElement("div",{className:"__floater__container",style:c.container},d.close,d.title,d.content,d.footer)}D6.propTypes={content:Se.node.isRequired,footer:Se.node,handleClick:Se.func.isRequired,open:Se.bool,positionWrapper:Se.bool.isRequired,showCloseButton:Se.bool.isRequired,styles:Se.object.isRequired,title:Se.node};var E6=function(e){Xl(n,e);var t=ec(n);function n(){return Jl(this,n),t.apply(this,arguments)}return Ql(n,[{key:"style",get:function(){var i=this.props,o=i.disableAnimation,u=i.component,l=i.placement,c=i.hideArrow,d=i.status,f=i.styles,h=f.arrow.length,g=f.floater,m=f.floaterCentered,$=f.floaterClosing,w=f.floaterOpening,C=f.floaterWithAnimation,x=f.floaterWithComponent,v={};return c||(l.startsWith("top")?v.padding="0 0 ".concat(h,"px"):l.startsWith("bottom")?v.padding="".concat(h,"px 0 0"):l.startsWith("left")?v.padding="0 ".concat(h,"px 0 0"):l.startsWith("right")&&(v.padding="0 0 0 ".concat(h,"px"))),[pt.OPENING,pt.OPEN].indexOf(d)!==-1&&(v=Wt(Wt({},v),w)),d===pt.CLOSING&&(v=Wt(Wt({},v),$)),d===pt.OPEN&&!o&&(v=Wt(Wt({},v),C)),l==="center"&&(v=Wt(Wt({},v),m)),u&&(v=Wt(Wt({},v),x)),Wt(Wt({},g),v)}},{key:"render",value:function(){var i=this.props,o=i.component,u=i.handleClick,l=i.hideArrow,c=i.setFloaterRef,d=i.status,f={},h=["__floater"];return o?b.isValidElement(o)?f.content=b.cloneElement(o,{closeFn:u}):f.content=o({closeFn:u}):f.content=b.createElement(D6,this.props),d===pt.OPEN&&h.push("__floater__open"),l||(f.arrow=b.createElement(x6,this.props)),b.createElement("div",{ref:c,className:h.join(" "),style:this.style},b.createElement("div",{className:"__floater__body"},f.content,f.arrow))}}]),n}(b.Component);Kn(E6,"propTypes",{component:Se.oneOfType([Se.func,Se.element]),content:Se.node,disableAnimation:Se.bool.isRequired,footer:Se.node,handleClick:Se.func.isRequired,hideArrow:Se.bool.isRequired,open:Se.bool,placement:Se.string.isRequired,positionWrapper:Se.bool.isRequired,setArrowRef:Se.func.isRequired,setFloaterRef:Se.func.isRequired,showCloseButton:Se.bool,status:Se.string.isRequired,styles:Se.object.isRequired,title:Se.node});var C6=function(e){Xl(n,e);var t=ec(n);function n(){return Jl(this,n),t.apply(this,arguments)}return Ql(n,[{key:"render",value:function(){var i=this.props,o=i.children,u=i.handleClick,l=i.handleMouseEnter,c=i.handleMouseLeave,d=i.setChildRef,f=i.setWrapperRef,h=i.style,g=i.styles,m;if(o)if(b.Children.count(o)===1)if(!b.isValidElement(o))m=b.createElement("span",null,o);else{var $=ce.function(o.type)?"innerRef":"ref";m=b.cloneElement(b.Children.only(o),Kn({},$,d))}else m=o;return m?b.createElement("span",{ref:f,style:Wt(Wt({},g),h),onClick:u,onMouseEnter:l,onMouseLeave:c},m):null}}]),n}(b.Component);Kn(C6,"propTypes",{children:Se.node,handleClick:Se.func.isRequired,handleMouseEnter:Se.func.isRequired,handleMouseLeave:Se.func.isRequired,setChildRef:Se.func.isRequired,setWrapperRef:Se.func.isRequired,style:Se.object,styles:Se.object.isRequired});var lH={zIndex:100};function cH(e){var t=ai(lH,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 dH=["arrow","flip","offset"],fH=["position","top","right","bottom","left"],Av=function(e){Xl(n,e);var t=ec(n);function n(r){var i;return Jl(this,n),i=t.call(this,r),Kn(Yi(i),"setArrowRef",function(o){i.arrowRef=o}),Kn(Yi(i),"setChildRef",function(o){i.childRef=o}),Kn(Yi(i),"setFloaterRef",function(o){i.floaterRef=o}),Kn(Yi(i),"setWrapperRef",function(o){i.wrapperRef=o}),Kn(Yi(i),"handleTransitionEnd",function(){var o=i.state.status,u=i.props.callback;i.wrapperPopper&&i.wrapperPopper.instance.update(),i.setState({status:o===pt.OPENING?pt.OPEN:pt.IDLE},function(){var l=i.state.status;u(l===pt.OPEN?"open":"close",i.props)})}),Kn(Yi(i),"handleClick",function(){var o=i.props,u=o.event,l=o.open;if(!ce.boolean(l)){var c=i.state,d=c.positionWrapper,f=c.status;(i.event==="click"||i.event==="hover"&&d)&&(ld({title:"click",data:[{event:u,status:f===pt.OPEN?"closing":"opening"}],debug:i.debug}),i.toggle())}}),Kn(Yi(i),"handleMouseEnter",function(){var o=i.props,u=o.event,l=o.open;if(!(ce.boolean(l)||hm())){var c=i.state.status;i.event==="hover"&&c===pt.IDLE&&(ld({title:"mouseEnter",data:[{key:"originalEvent",value:u}],debug:i.debug}),clearTimeout(i.eventDelayTimeout),i.toggle())}}),Kn(Yi(i),"handleMouseLeave",function(){var o=i.props,u=o.event,l=o.eventDelay,c=o.open;if(!(ce.boolean(c)||hm())){var d=i.state,f=d.status,h=d.positionWrapper;i.event==="hover"&&(ld({title:"mouseLeave",data:[{key:"originalEvent",value:u}],debug:i.debug}),l?[pt.OPENING,pt.OPEN].indexOf(f)!==-1&&!h&&!i.eventDelayTimeout&&(i.eventDelayTimeout=setTimeout(function(){delete i.eventDelayTimeout,i.toggle()},l*1e3)):i.toggle(pt.IDLE))}}),i.state={currentPlacement:r.placement,needsUpdate:!1,positionWrapper:r.wrapperOptions.position&&!!r.target,status:pt.INIT,statusWrapper:pt.INIT},i._isMounted=!1,i.hasMounted=!1,wi()&&window.addEventListener("load",function(){i.popper&&i.popper.instance.update(),i.wrapperPopper&&i.wrapperPopper.instance.update()}),i}return Ql(n,[{key:"componentDidMount",value:function(){if(wi()){var i=this.state.positionWrapper,o=this.props,u=o.children,l=o.open,c=o.target;this._isMounted=!0,ld({title:"init",data:{hasChildren:!!u,hasTarget:!!c,isControlled:ce.boolean(l),positionWrapper:i,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!u&&c&&ce.boolean(l)}}},{key:"componentDidUpdate",value:function(i,o){if(wi()){var u=this.props,l=u.autoOpen,c=u.open,d=u.target,f=u.wrapperOptions,h=HW(o,this.state),g=h.changedFrom,m=h.changed;if(i.open!==c){var $;ce.boolean(c)&&($=c?pt.OPENING:pt.CLOSING),this.toggle($)}(i.wrapperOptions.position!==f.position||i.target!==d)&&this.changeWrapperPosition(this.props),m("status",pt.IDLE)&&c?this.toggle(pt.OPEN):g("status",pt.INIT,pt.IDLE)&&l&&this.toggle(pt.OPEN),this.popper&&m("status",pt.OPENING)&&this.popper.instance.update(),this.floaterRef&&(m("status",pt.OPENING)||m("status",pt.CLOSING))&&uH(this.floaterRef,"transitionend",this.handleTransitionEnd),m("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){wi()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target,u=this.state.positionWrapper,l=this.props,c=l.disableFlip,d=l.getPopper,f=l.hideArrow,h=l.offset,g=l.placement,m=l.wrapperOptions,$=g==="top"||g==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(g==="center")this.setState({status:pt.IDLE});else if(o&&this.floaterRef){var w=this.options,C=w.arrow,x=w.flip,v=w.offset,D=v6(w,dH);new Cl(o,this.floaterRef,{placement:g,modifiers:Wt({arrow:Wt({enabled:!f,element:this.arrowRef},C),flip:Wt({enabled:!c,behavior:$},x),offset:Wt({offset:"0, ".concat(h,"px")},v)},D),onCreate:function(T){var V;if(i.popper=T,!((V=i.floaterRef)!==null&&V!==void 0&&V.isConnected)){i.setState({needsUpdate:!0});return}d(T,"floater"),i._isMounted&&i.setState({currentPlacement:T.placement,status:pt.IDLE}),g!==T.placement&&setTimeout(function(){T.instance.update()},1)},onUpdate:function(T){i.popper=T;var V=i.state.currentPlacement;i._isMounted&&T.placement!==V&&i.setState({currentPlacement:T.placement})}})}if(u){var P=ce.undefined(m.offset)?0:m.offset;new Cl(this.target,this.wrapperRef,{placement:m.placement||g,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(P,"px")},flip:{enabled:!1}},onCreate:function(T){i.wrapperPopper=T,i._isMounted&&i.setState({statusWrapper:pt.IDLE}),d(T,"wrapper"),g!==T.placement&&setTimeout(function(){T.instance.update()},1)}})}}},{key:"rebuildPopper",value:function(){var i=this;this.floaterRefInterval=setInterval(function(){var o;(o=i.floaterRef)!==null&&o!==void 0&&o.isConnected&&(clearInterval(i.floaterRefInterval),i.setState({needsUpdate:!1}),i.initPopper())},50)}},{key:"changeWrapperPosition",value:function(i){var o=i.target,u=i.wrapperOptions;this.setState({positionWrapper:u.position&&!!o})}},{key:"toggle",value:function(i){var o=this.state.status,u=o===pt.OPEN?pt.CLOSING:pt.OPENING;ce.undefined(i)||(u=i),this.setState({status:u})}},{key:"debug",get:function(){var i=this.props.debug;return i||wi()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var i=this.props,o=i.disableHoverToClick,u=i.event;return u==="hover"&&hm()&&!o?"click":u}},{key:"options",get:function(){var i=this.props.options;return ai(QW,i||{})}},{key:"styles",get:function(){var i=this,o=this.state,u=o.status,l=o.positionWrapper,c=o.statusWrapper,d=this.props.styles,f=ai(cH(d),d);if(l){var h;[pt.IDLE].indexOf(u)===-1||[pt.IDLE].indexOf(c)===-1?h=f.wrapperPosition:h=this.wrapperPopper.styles,f.wrapper=Wt(Wt({},f.wrapper),h)}if(this.target){var g=window.getComputedStyle(this.target);this.wrapperStyles?f.wrapper=Wt(Wt({},f.wrapper),this.wrapperStyles):["relative","static"].indexOf(g.position)===-1&&(this.wrapperStyles={},l||(fH.forEach(function(m){i.wrapperStyles[m]=g[m]}),f.wrapper=Wt(Wt({},f.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return f}},{key:"target",get:function(){if(!wi())return null;var i=this.props.target;return i?ce.domElement(i)?i:document.querySelector(i):this.childRef||this.wrapperRef}},{key:"render",value:function(){var i=this.state,o=i.currentPlacement,u=i.positionWrapper,l=i.status,c=this.props,d=c.children,f=c.component,h=c.content,g=c.disableAnimation,m=c.footer,$=c.hideArrow,w=c.id,C=c.open,x=c.showCloseButton,v=c.style,D=c.target,P=c.title,E=b.createElement(C6,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:v,styles:this.styles.wrapper},d),T={};return u?T.wrapperInPortal=E:T.wrapperAsChildren=E,b.createElement("span",null,b.createElement($6,{hasChildren:!!d,id:w,placement:o,setRef:this.setFloaterRef,target:D,zIndex:this.styles.options.zIndex},b.createElement(E6,{component:f,content:h,disableAnimation:g,footer:m,handleClick:this.handleClick,hideArrow:$||o==="center",open:C,placement:o,positionWrapper:u,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:x,status:l,styles:this.styles,title:P}),T.wrapperInPortal),T.wrapperAsChildren)}}]),n}(b.Component);Kn(Av,"propTypes",{autoOpen:Se.bool,callback:Se.func,children:Se.node,component:l$(Se.oneOfType([Se.func,Se.element]),function(e){return!e.content}),content:l$(Se.node,function(e){return!e.component}),debug:Se.bool,disableAnimation:Se.bool,disableFlip:Se.bool,disableHoverToClick:Se.bool,event:Se.oneOf(["hover","click"]),eventDelay:Se.number,footer:Se.node,getPopper:Se.func,hideArrow:Se.bool,id:Se.oneOfType([Se.string,Se.number]),offset:Se.number,open:Se.bool,options:Se.object,placement:Se.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:Se.bool,style:Se.object,styles:Se.object,target:Se.oneOfType([Se.object,Se.string]),title:Se.node,wrapperOptions:Se.shape({offset:Se.number,placement:Se.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:Se.bool})});Kn(Av,"defaultProps",{autoOpen:!1,callback:c$,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:c$,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var pH=Object.defineProperty,hH=(e,t,n)=>t in e?pH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Be=(e,t,n)=>hH(e,typeof t!="symbol"?t+"":t,n),bt={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},Wr={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found",ERROR:"error"},Qe={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},lt={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"};function _o(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function S6(e){return e?e.getBoundingClientRect():null}function mH(e=!1){const{body:t,documentElement:n}=document;if(!t||!n)return 0;if(e){const r=[t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight].sort((o,u)=>o-u),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 eo(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 gH(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function Sl(e,t,n){if(!e)return ba();const r=QS(e);if(r){if(r.isSameNode(ba()))return n?document:ba();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",ba()}return r}function tc(e,t){if(!e)return!1;const n=Sl(e,t);return n?!n.isSameNode(ba()):!1}function yH(e){return e.offsetParent!==document.body}function es(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=gH(e);return n==="BODY"||n==="HTML"?!1:r&&r.position===t?!0:e.parentNode?es(e.parentNode,t):!1}function vH(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 bH(e,t,n){var r,i,o;const u=S6(e),l=Sl(e,n),c=tc(e,n),d=es(e);let f=0,h=(r=u==null?void 0:u.top)!=null?r:0;if(c&&d){const g=(i=e==null?void 0:e.offsetTop)!=null?i:0,m=(o=l==null?void 0:l.scrollTop)!=null?o:0;h=g-m}else l instanceof HTMLElement&&(f=l.scrollTop,!c&&!es(e)&&(h+=f),l.isSameNode(ba())||(h+=ba().scrollTop));return Math.floor(h-t)}function $H(e,t,n){var r;if(!e)return 0;const{offsetTop:i=0,scrollTop:o=0}=(r=QS(e))!=null?r:{};let u=e.getBoundingClientRect().top+o;i&&(tc(e,n)||yH(e))&&(u-=i);const l=Math.floor(u-t);return l<0?0:l}function ba(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function xH(e,t){const{duration:n,element:r}=t;return new Promise((i,o)=>{const{scrollTop:u}=r,l=e>u?e-u:u-e;Oz.top(r,e,{duration:l<100?50:n},c=>c&&c.message!=="Element already at target scroll position"?o(c):i())})}var qs=ko.createPortal!==void 0;function A6(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 Ad(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Di(e,t={}){const{defaultValue:n,step:r,steps:i}=t;let o=L3(e);if(o)(o.includes("{step}")||o.includes("{steps}"))&&r&&i&&(o=o.replace("{step}",r.toString()).replace("{steps}",i.toString()));else if(b.isValidElement(e)&&!Object.values(e.props).length&&Ad(e.type)==="function"){const u=e.type({});o=Di(u,t)}else o=L3(n);return o}function wH(e,t){return!ke.plainObject(e)||!ke.array(t)?!1:Object.keys(e).every(n=>t.includes(n))}function DH(e){const t=/^#?([\da-f])([\da-f])([\da-f])$/i,n=e.replace(t,(i,o,u,l)=>o+o+u+u+l+l),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 d$(e){return e.disableBeacon||e.placement==="center"}function f$(){return!["chrome","safari","firefox","opera"].includes(A6())}function zo({data:e,debug:t=!1,title:n,warn:r=!1}){const i=r?console.warn||console.error:console.log;t&&(n&&e?(console.groupCollapsed(`%creact-joyride: ${n}`,"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(e)?e.forEach(o=>{ke.plainObject(o)&&o.key?i.apply(console,[o.key,o.value]):i.apply(console,[o])}):i.apply(console,[e]),console.groupEnd()):console.error("Missing title or data props"))}function EH(e){return Object.keys(e)}function T6(e,...t){if(!ke.plainObject(e))throw new TypeError("Expected an object");const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&(t.includes(r)||(n[r]=e[r]));return n}function CH(e,...t){if(!ke.plainObject(e))throw new TypeError("Expected an object");if(!t.length)return e;const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&t.includes(r)&&(n[r]=e[r]);return n}function Ig(e,t,n){const r=o=>o.replace("{step}",String(t)).replace("{steps}",String(n));if(Ad(e)==="string")return r(e);if(!b.isValidElement(e))return e;const{children:i}=e.props;if(Ad(i)==="string"&&i.includes("{step}"))return b.cloneElement(e,{children:r(i)});if(Array.isArray(i))return b.cloneElement(e,{children:i.map(o=>typeof o=="string"?r(o):Ig(o,t,n))});if(Ad(e.type)==="function"&&!Object.values(e.props).length){const o=e.type({});return Ig(o,t,n)}return e}function SH(e){const{isFirstStep:t,lifecycle:n,previousLifecycle:r,scrollToFirstStep:i,step:o,target:u}=e;return!o.disableScrolling&&(!t||i||n===Qe.TOOLTIP)&&o.placement!=="center"&&(!o.isFixed||!es(u))&&r!==n&&[Qe.BEACON,Qe.TOOLTIP].includes(n)}var AH={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},P6={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},TH={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:P6,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},PH={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:[]},_H={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},Ys={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},p$={borderRadius:4,position:"absolute"};function RH(e,t){var n,r,i,o,u;const{floaterProps:l,styles:c}=e,d=ai((n=t.floaterProps)!=null?n:{},l??{}),f=ai(c??{},(r=t.styles)!=null?r:{}),h=ai(_H,f.options||{}),g=t.placement==="center"||t.disableBeacon;let{width:m}=h;window.innerWidth>480&&(m=380),"width"in h&&(m=typeof h.width=="number"&&window.innerWidth<h.width?window.innerWidth-30:h.width);const $={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:h.zIndex},w={beacon:{...Ys,display:g?"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(${DH(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:m},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:{...Ys,backgroundColor:h.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...Ys,color:h.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...Ys,color:h.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...Ys,color:h.textColor,fontSize:14},overlay:{...$,backgroundColor:h.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...$},overlayLegacyCenter:{...$,backgroundColor:h.overlayColor},spotlight:{...p$,backgroundColor:"gray"},spotlightLegacy:{...p$,boxShadow:`0 0 0 9999px ${h.overlayColor}, ${h.spotlightShadow}`},floaterStyles:{arrow:{color:(u=(o=(i=d==null?void 0:d.styles)==null?void 0:i.arrow)==null?void 0:o.color)!=null?u:h.arrowColor},options:{zIndex:h.zIndex+100}},options:h};return ai(w,f)}function OH(e){return CH(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function yu(e,t){var n,r,i,o,u,l;const c=t??{},d=ai.all([TH,OH(e),c],{isMergeableObject:ke.plainObject}),f=RH(e,d),h=tc(eo(d.target),d.disableScrollParentFix),g=ai.all([AH,(n=e.floaterProps)!=null?n:{},(r=d.floaterProps)!=null?r:{}]);return g.offset=d.offset,g.styles=ai((i=g.styles)!=null?i:{},f.floaterStyles),g.offset+=(u=(o=e.spotlightPadding)!=null?o:d.spotlightPadding)!=null?u:0,d.placementBeacon&&g.wrapperOptions&&(g.wrapperOptions.placement=d.placementBeacon),h&&g.options.preventOverflow&&(g.options.preventOverflow.boundariesElement="window"),{...d,locale:ai.all([P6,(l=e.locale)!=null?l:{},d.locale||{}]),floaterProps:g,styles:T6(f,"floaterStyles")}}function _6(e,t=!1){return ke.plainObject(e)?e.target?!0:(zo({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(zo({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function h$(e,t=!1){return ke.array(e)?e.every(n=>_6(n,t)):(zo({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var R6={action:"init",controlled:!1,index:0,lifecycle:Qe.INIT,origin:null,size:0,status:lt.IDLE},m$=EH(T6(R6,"controlled","size")),FH=class{constructor(e){Be(this,"beaconPopper"),Be(this,"tooltipPopper"),Be(this,"data",new Map),Be(this,"listener"),Be(this,"store",new Map),Be(this,"addListener",i=>{this.listener=i}),Be(this,"setSteps",i=>{const{size:o,status:u}=this.getState(),l={size:i.length,status:u};this.data.set("steps",i),u===lt.WAITING&&!o&&i.length&&(l.status=lt.RUNNING),this.setState(l)}),Be(this,"getPopper",i=>i==="beacon"?this.beaconPopper:this.tooltipPopper),Be(this,"setPopper",(i,o)=>{i==="beacon"?this.beaconPopper=o:this.tooltipPopper=o}),Be(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),Be(this,"close",(i=null)=>{const{index:o,status:u}=this.getState();u===lt.RUNNING&&this.setState({...this.getNextState({action:bt.CLOSE,index:o+1,origin:i})})}),Be(this,"go",i=>{const{controlled:o,status:u}=this.getState();if(o||u!==lt.RUNNING)return;const l=this.getSteps()[i];this.setState({...this.getNextState({action:bt.GO,index:i}),status:l?u:lt.FINISHED})}),Be(this,"info",()=>this.getState()),Be(this,"next",()=>{const{index:i,status:o}=this.getState();o===lt.RUNNING&&this.setState(this.getNextState({action:bt.NEXT,index:i+1}))}),Be(this,"open",()=>{const{status:i}=this.getState();i===lt.RUNNING&&this.setState({...this.getNextState({action:bt.UPDATE,lifecycle:Qe.TOOLTIP})})}),Be(this,"prev",()=>{const{index:i,status:o}=this.getState();o===lt.RUNNING&&this.setState({...this.getNextState({action:bt.PREV,index:i-1})})}),Be(this,"reset",(i=!1)=>{const{controlled:o}=this.getState();o||this.setState({...this.getNextState({action:bt.RESET,index:0}),status:i?lt.RUNNING:lt.READY})}),Be(this,"skip",()=>{const{status:i}=this.getState();i===lt.RUNNING&&this.setState({action:bt.SKIP,lifecycle:Qe.INIT,status:lt.SKIPPED})}),Be(this,"start",i=>{const{index:o,size:u}=this.getState();this.setState({...this.getNextState({action:bt.START,index:ke.number(i)?i:o},!0),status:u?lt.RUNNING:lt.WAITING})}),Be(this,"stop",(i=!1)=>{const{index:o,status:u}=this.getState();[lt.FINISHED,lt.SKIPPED].includes(u)||this.setState({...this.getNextState({action:bt.STOP,index:o+(i?1:0)}),status:lt.PAUSED})}),Be(this,"update",i=>{var o,u;if(!wH(i,m$))throw new Error(`State is not valid. Valid keys: ${m$.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...i,action:(o=i.action)!=null?o:bt.UPDATE,origin:(u=i.origin)!=null?u:null},!0)})});const{continuous:t=!1,stepIndex:n,steps:r=[]}=e??{};this.setState({action:bt.INIT,controlled:ke.number(n),continuous:t,index:ke.number(n)?n:0,lifecycle:Qe.INIT,origin:null,status:r.length?lt.READY:lt.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")||""}:{...R6}}getNextState(e,t=!1){var n,r,i,o,u;const{action:l,controlled:c,index:d,size:f,status:h}=this.getState(),g=ke.number(e.index)?e.index:d,m=c&&!t?d:Math.min(Math.max(g,0),f);return{action:(n=e.action)!=null?n:l,controlled:c,index:m,lifecycle:(r=e.lifecycle)!=null?r:Qe.INIT,origin:(i=e.origin)!=null?i:null,size:(o=e.size)!=null?o:f,status:m===f?lt.FINISHED:(u=e.status)!=null?u:h}}getSteps(){const e=this.data.get("steps");return Array.isArray(e)?e:[]}hasUpdatedState(e){const t=JSON.stringify(e),n=JSON.stringify(this.getState());return t!==n}setState(e,t=!1){const n=this.getState(),{action:r,index:i,lifecycle:o,origin:u=null,size:l,status:c}={...n,...e};this.store.set("action",r),this.store.set("index",i),this.store.set("lifecycle",o),this.store.set("origin",u),this.store.set("size",l),this.store.set("status",c),t&&(this.store.set("controlled",e.controlled),this.store.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(n)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}};function MH(e){return new FH(e)}function kH({styles:e}){return Ge.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}var BH=kH,IH=class extends Ge.Component{constructor(){super(...arguments),Be(this,"isActive",!1),Be(this,"resizeTimeout"),Be(this,"scrollTimeout"),Be(this,"scrollParent"),Be(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),Be(this,"hideSpotlight",()=>{const{continuous:e,disableOverlay:t,lifecycle:n}=this.props,r=[Qe.INIT,Qe.BEACON,Qe.COMPLETE,Qe.ERROR];return t||(e?r.includes(n):n!==Qe.TOOLTIP)}),Be(this,"handleMouseMove",e=>{const{mouseOverSpotlight:t}=this.state,{height:n,left:r,position:i,top:o,width:u}=this.spotlightStyles,l=i==="fixed"?e.clientY:e.pageY,c=i==="fixed"?e.clientX:e.pageX,d=l>=o&&l<=o+n,h=c>=r&&c<=r+u&&d;h!==t&&this.updateState({mouseOverSpotlight:h})}),Be(this,"handleScroll",()=>{const{target:e}=this.props,t=eo(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 es(t,"sticky")&&this.updateState({})}),Be(this,"handleResize",()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(()=>{this.isActive&&this.forceUpdate()},100)})}componentDidMount(){const{debug:e,disableScrolling:t,disableScrollParentFix:n=!1,target:r}=this.props,i=eo(r);this.scrollParent=Sl(i??document.body,n,!0),this.isActive=!0,process.env.NODE_ENV!=="production"&&!t&&tc(i,!0)&&zo({title:"step has a custom scroll parent and can cause trouble with scrolling",data:[{key:"parent",value:this.scrollParent}],debug:e}),window.addEventListener("resize",this.handleResize)}componentDidUpdate(e){var t;const{disableScrollParentFix:n,lifecycle:r,spotlightClicks:i,target:o}=this.props,{changed:u}=pf(e,this.props);if(u("target")||u("disableScrollParentFix")){const l=eo(o);this.scrollParent=Sl(l??document.body,n,!0)}u("lifecycle",Qe.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:l}=this.state;l||this.updateState({showSpotlight:!0})},100)),(u("spotlightClicks")||u("disableOverlay")||u("lifecycle"))&&(i&&r===Qe.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==Qe.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}componentWillUnmount(){var e;this.isActive=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),(e=this.scrollParent)==null||e.removeEventListener("scroll",this.handleScroll)}get overlayStyles(){const{mouseOverSpotlight:e}=this.state,{disableOverlayClose:t,placement:n,styles:r}=this.props;let i=r.overlay;return f$()&&(i=n==="center"?r.overlayLegacyCenter:r.overlayLegacy),{cursor:t?"default":"pointer",height:mH(),pointerEvents:e?"none":"auto",...i}}get spotlightStyles(){var e,t,n;const{showSpotlight:r}=this.state,{disableScrollParentFix:i=!1,spotlightClicks:o,spotlightPadding:u=0,styles:l,target:c}=this.props,d=eo(c),f=S6(d),h=es(d),g=bH(d,u,i);return{...f$()?l.spotlightLegacy:l.spotlight,height:Math.round(((e=f==null?void 0:f.height)!=null?e:0)+u*2),left:Math.round(((t=f==null?void 0:f.left)!=null?t:0)-u),opacity:r?1:0,pointerEvents:o?"none":"auto",position:h?"fixed":"absolute",top:g,transition:"opacity 0.2s",width:Math.round(((n=f==null?void 0:f.width)!=null?n:0)+u*2)}}updateState(e){this.isActive&&this.setState(t=>({...t,...e}))}render(){const{showSpotlight:e}=this.state,{onClickOverlay:t,placement:n}=this.props,{hideSpotlight:r,overlayStyles:i,spotlightStyles:o}=this;if(r())return null;let u=n!=="center"&&e&&Ge.createElement(BH,{styles:o});if(A6()==="safari"){const{mixBlendMode:l,zIndex:c,...d}=i;u=Ge.createElement("div",{style:{...d}},u),delete i.backgroundColor}return Ge.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:i},u)}},LH=class extends Ge.Component{constructor(){super(...arguments),Be(this,"node",null)}componentDidMount(){const{id:e}=this.props;_o()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),qs||this.renderReact15())}componentDidUpdate(){_o()&&(qs||this.renderReact15())}componentWillUnmount(){!_o()||!this.node||(qs||cd.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!_o())return;const{children:e}=this.props;this.node&&cd.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!_o()||!qs)return null;const{children:e}=this.props;return this.node?cd.createPortal(e,this.node):null}render(){return qs?this.renderReact16():null}},VH=class{constructor(e,t){if(Be(this,"element"),Be(this,"options"),Be(this,"canBeTabbed",n=>{const{tabIndex:r}=n;return r===null||r<0?!1:this.canHaveFocus(n)}),Be(this,"canHaveFocus",n=>{const r=/input|select|textarea|button|object/,i=n.nodeName.toLowerCase();return(r.test(i)&&!n.getAttribute("disabled")||i==="a"&&!!n.getAttribute("href"))&&this.isVisible(n)}),Be(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),Be(this,"handleKeyDown",n=>{const{code:r="Tab"}=this.options;n.code===r&&this.interceptTab(n)}),Be(this,"interceptTab",n=>{n.preventDefault();const r=this.findValidTabElements(),{shiftKey:i}=n;if(!r.length)return;let o=document.activeElement?r.indexOf(document.activeElement):0;o===-1||!i&&o+1===r.length?o=0:i&&o===0?o=r.length-1:o+=i?-1:1,r[o].focus()}),Be(this,"isHidden",n=>{const r=n.offsetWidth<=0&&n.offsetHeight<=0,i=window.getComputedStyle(n);return r&&!n.innerHTML?!0:r&&i.getPropertyValue("overflow")!=="visible"||i.getPropertyValue("display")==="none"}),Be(this,"isVisible",n=>{let r=n;for(;r;)if(r instanceof HTMLElement){if(r===document.body)break;if(this.isHidden(r))return!1;r=r.parentNode}return!0}),Be(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),Be(this,"checkFocus",n=>{document.activeElement!==n&&(n.focus(),window.requestAnimationFrame(()=>this.checkFocus(n)))}),Be(this,"setFocus",()=>{const{selector:n}=this.options;if(!n)return;const r=this.element.querySelector(n);r&&window.requestAnimationFrame(()=>this.checkFocus(r))}),!(e instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=e,this.options=t,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}},NH=class extends Ge.Component{constructor(e){if(super(e),Be(this,"beacon",null),Be(this,"setBeaconRef",i=>{this.beacon=i}),e.beaconComponent)return;const t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="joyride-beacon-animation",e.nonce&&n.setAttribute("nonce",e.nonce),n.appendChild(document.createTextNode(`
|
|
198
|
-
@keyframes joyride-beacon-inner {
|
|
199
|
-
20% {
|
|
200
|
-
opacity: 0.9;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
90% {
|
|
204
|
-
opacity: 0.7;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
@keyframes joyride-beacon-outer {
|
|
209
|
-
0% {
|
|
210
|
-
transform: scale(1);
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
45% {
|
|
214
|
-
opacity: 0.7;
|
|
215
|
-
transform: scale(0.75);
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
100% {
|
|
219
|
-
opacity: 0.9;
|
|
220
|
-
transform: scale(1);
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
`)),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;process.env.NODE_ENV!=="production"&&(ke.domElement(this.beacon)||console.warn("beacon is not a valid DOM element")),setTimeout(()=>{ke.domElement(this.beacon)&&e&&this.beacon.focus()},0)}componentWillUnmount(){const e=document.getElementById("joyride-beacon-animation");e!=null&&e.parentNode&&e.parentNode.removeChild(e)}render(){const{beaconComponent:e,continuous:t,index:n,isLastStep:r,locale:i,onClickOrHover:o,size:u,step:l,styles:c}=this.props,d=Di(i.open),f={"aria-label":d,onClick:o,onMouseEnter:o,ref:this.setBeaconRef,title:d};let h;if(e){const g=e;h=Ge.createElement(g,{continuous:t,index:n,isLastStep:r,size:u,step:l,...f})}else h=Ge.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:c.beacon,type:"button",...f},Ge.createElement("span",{style:c.beaconInner}),Ge.createElement("span",{style:c.beaconOuter}));return h}};function jH({styles:e,...t}){const{color:n,height:r,width:i,...o}=e;return b.createElement("button",{style:o,type:"button",...t},b.createElement("svg",{height:typeof r=="number"?`${r}px`:r,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof i=="number"?`${i}px`:i,xmlns:"http://www.w3.org/2000/svg"},b.createElement("g",null,b.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:n}))))}var KH=jH;function UH(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:o,skipProps:u,step:l,tooltipProps:c}=e,{content:d,hideBackButton:f,hideCloseButton:h,hideFooter:g,showSkipButton:m,styles:$,title:w}=l,C={};return C.primary=Ge.createElement("button",{"data-test-id":"button-primary",style:$.buttonNext,type:"button",...o}),m&&!i&&(C.skip=Ge.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:$.buttonSkip,type:"button",...u})),!f&&r>0&&(C.back=Ge.createElement("button",{"data-test-id":"button-back",style:$.buttonBack,type:"button",...t})),C.close=!h&&Ge.createElement(KH,{"data-test-id":"button-close",styles:$.buttonClose,...n}),Ge.createElement("div",{key:"JoyrideTooltip","aria-label":Di(w??d),className:"react-joyride__tooltip",style:$.tooltip,...c},Ge.createElement("div",{style:$.tooltipContainer},w&&Ge.createElement("h1",{"aria-label":Di(w),style:$.tooltipTitle},w),Ge.createElement("div",{style:$.tooltipContent},d)),!g&&Ge.createElement("div",{style:$.tooltipFooter},Ge.createElement("div",{style:$.tooltipFooterSpacer},C.skip),C.back,C.primary),C.close)}var zH=UH,WH=class extends Ge.Component{constructor(){super(...arguments),Be(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),Be(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),Be(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;if(!t){n.close("button_primary");return}n.next()}),Be(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),Be(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{back:u,close:l,last:c,next:d,nextLabelWithProgress:f,skip:h}=o.locale,g=Di(u),m=Di(l),$=Di(c),w=Di(d),C=Di(h);let x=l,v=m;if(e){if(x=d,v=w,o.showProgress&&!n){const D=Di(f,{step:t+1,steps:i});x=Ig(f,t+1,i),v=D}n&&(x=c,v=$)}return{backProps:{"aria-label":g,children:u,"data-action":"back",onClick:this.handleClickBack,role:"button",title:g},closeProps:{"aria-label":m,children:l,"data-action":"close",onClick:this.handleClickClose,role:"button",title:m},primaryProps:{"aria-label":v,children:x,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:v},skipProps:{"aria-label":C,children:h,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:C},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})}render(){const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{beaconComponent:u,tooltipComponent:l,...c}=o;let d;if(l){const f={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:c,setTooltipRef:r},h=l;d=Ge.createElement(h,{...f})}else d=Ge.createElement(zH,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:o});return d}},HH=class extends Ge.Component{constructor(){super(...arguments),Be(this,"scope",null),Be(this,"tooltip",null),Be(this,"handleClickHoverBeacon",e=>{const{step:t,store:n}=this.props;e.type==="mouseenter"&&t.event!=="hover"||n.update({lifecycle:Qe.TOOLTIP})}),Be(this,"setTooltipRef",e=>{this.tooltip=e}),Be(this,"setPopper",(e,t)=>{var n;const{action:r,lifecycle:i,step:o,store:u}=this.props;t==="wrapper"?u.setPopper("beacon",e):u.setPopper("tooltip",e),u.getPopper("beacon")&&(u.getPopper("tooltip")||o.placement==="center")&&i===Qe.INIT&&u.update({action:r,lifecycle:Qe.READY}),(n=o.floaterProps)!=null&&n.getPopper&&o.floaterProps.getPopper(e,t)}),Be(this,"renderTooltip",e=>{const{continuous:t,helpers:n,index:r,size:i,step:o}=this.props;return Ge.createElement(WH,{continuous:t,helpers:n,index:r,isLastStep:r+1===i,setTooltipRef:this.setTooltipRef,size:i,step:o,...e})})}componentDidMount(){const{debug:e,index:t}=this.props;zo({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:n,callback:r,continuous:i,controlled:o,debug:u,helpers:l,index:c,lifecycle:d,shouldScroll:f,status:h,step:g,store:m}=this.props,{changed:$,changedFrom:w}=pf(e,this.props),C=l.info(),x=i&&n!==bt.CLOSE&&(c>0||n===bt.PREV),v=$("action")||$("index")||$("lifecycle")||$("status"),D=w("lifecycle",[Qe.TOOLTIP,Qe.INIT],Qe.INIT),P=$("action",[bt.NEXT,bt.PREV,bt.SKIP,bt.CLOSE]),E=o&&c===e.index;if(P&&(D||E)&&r({...C,index:e.index,lifecycle:Qe.COMPLETE,step:e.step,type:Wr.STEP_AFTER}),g.placement==="center"&&h===lt.RUNNING&&$("index")&&n!==bt.START&&d===Qe.INIT&&m.update({lifecycle:Qe.READY}),v){const T=eo(g.target),V=!!T;V&&vH(T)?(w("status",lt.READY,lt.RUNNING)||w("lifecycle",Qe.INIT,Qe.READY))&&r({...C,step:g,type:Wr.STEP_BEFORE}):(console.warn(V?"Target not visible":"Target not mounted",g),r({...C,type:Wr.TARGET_NOT_FOUND,step:g}),o||m.update({index:c+(n===bt.PREV?-1:1)}))}w("lifecycle",Qe.INIT,Qe.READY)&&m.update({lifecycle:d$(g)||x?Qe.TOOLTIP:Qe.BEACON}),$("index")&&zo({title:`step:${d}`,data:[{key:"props",value:this.props}],debug:u}),$("lifecycle",Qe.BEACON)&&r({...C,step:g,type:Wr.BEACON}),$("lifecycle",Qe.TOOLTIP)&&(r({...C,step:g,type:Wr.TOOLTIP}),f&&this.tooltip&&(this.scope=new VH(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),w("lifecycle",[Qe.TOOLTIP,Qe.INIT],Qe.INIT)&&((t=this.scope)==null||t.removeScope(),m.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return d$(t)||e===Qe.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:o,step:u}=this.props,l=eo(u.target);return!_6(u)||!ke.domElement(l)?null:Ge.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},Ge.createElement(Av,{...u.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:u.placement,target:u.target},Ge.createElement(NH,{beaconComponent:u.beaconComponent,continuous:e,index:n,isLastStep:n+1===o,locale:u.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:o,step:u,styles:u.styles})))}},O6=class extends Ge.Component{constructor(e){super(e),Be(this,"helpers"),Be(this,"store"),Be(this,"callback",u=>{const{callback:l}=this.props;ke.function(l)&&l(u)}),Be(this,"handleKeyboard",u=>{const{index:l,lifecycle:c}=this.state,{steps:d}=this.props,f=d[l];c===Qe.TOOLTIP&&u.code==="Escape"&&f&&!f.disableCloseOnEsc&&this.store.close("keyboard")}),Be(this,"handleClickOverlay",()=>{const{index:u}=this.state,{steps:l}=this.props;yu(this.props,l[u]).disableOverlayClose||this.helpers.close("overlay")}),Be(this,"syncState",u=>{this.setState(u)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:i}=e;this.store=MH({...e,controlled:r&&ke.number(i)}),this.helpers=this.store.getHelpers();const{addListener:o}=this.store;zo({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),o(this.syncState),n&&n(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!_o())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;h$(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!_o())return;const{action:n,controlled:r,index:i,status:o}=this.state,{debug:u,run:l,stepIndex:c,steps:d}=this.props,{stepIndex:f,steps:h}=e,{reset:g,setSteps:m,start:$,stop:w,update:C}=this.store,{changed:x}=pf(e,this.props),{changed:v,changedFrom:D}=pf(t,this.state),P=yu(this.props,d[i]),E=!tr(h,d),T=ke.number(c)&&x("stepIndex"),V=eo(P.target);if(E&&(h$(d,u)?m(d):console.warn("Steps are not valid",d)),x("run")&&(l?$(c):w()),T){let O=ke.number(f)&&f<c?bt.NEXT:bt.PREV;n===bt.STOP&&(O=bt.START),[lt.FINISHED,lt.SKIPPED].includes(o)||C({action:n===bt.CLOSE?bt.CLOSE:O,index:c,lifecycle:Qe.INIT})}!r&&o===lt.RUNNING&&i===0&&!V&&(this.store.update({index:i+1}),this.callback({...this.state,type:Wr.TARGET_NOT_FOUND,step:P}));const S={...this.state,index:i,step:P};if(v("action",[bt.NEXT,bt.PREV,bt.SKIP,bt.CLOSE])&&v("status",lt.PAUSED)){const O=yu(this.props,d[t.index]);this.callback({...S,index:t.index,lifecycle:Qe.COMPLETE,step:O,type:Wr.STEP_AFTER})}if(v("status",[lt.FINISHED,lt.SKIPPED])){const O=yu(this.props,d[t.index]);r||this.callback({...S,index:t.index,lifecycle:Qe.COMPLETE,step:O,type:Wr.STEP_AFTER}),this.callback({...S,type:Wr.TOUR_END,step:O,index:t.index}),g()}else D("status",[lt.IDLE,lt.READY],lt.RUNNING)?this.callback({...S,type:Wr.TOUR_START}):(v("status")||v("action",bt.RESET))&&this.callback({...S,type:Wr.TOUR_STATUS});this.scrollToStep(t)}componentWillUnmount(){const{disableCloseOnEsc:e}=this.props;e||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(e){const{index:t,lifecycle:n,status:r}=this.state,{debug:i,disableScrollParentFix:o=!1,scrollDuration:u,scrollOffset:l=20,scrollToFirstStep:c=!1,steps:d}=this.props,f=yu(this.props,d[t]),h=eo(f.target),g=SH({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:c,step:f,target:h});if(r===lt.RUNNING&&g){const m=tc(h,o),$=Sl(h,o);let w=Math.floor($H(h,l,o))||0;zo({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const C=this.store.getPopper("beacon"),x=this.store.getPopper("tooltip");if(n===Qe.BEACON&&C){const{offsets:v,placement:D}=C;!["bottom"].includes(D)&&!m&&(w=Math.floor(v.popper.top-l))}else if(n===Qe.TOOLTIP&&x){const{flipped:v,offsets:D,placement:P}=x;["top","right","left"].includes(P)&&!v&&!m?w=Math.floor(D.popper.top-l):w-=f.spotlightPadding}w=w>=0?w:0,r===lt.RUNNING&&xH(w,{element:$,duration:u}).then(()=>{setTimeout(()=>{var v;(v=this.store.getPopper("tooltip"))==null||v.instance.update()},10)})}}render(){if(!_o())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:o,scrollToFirstStep:u=!1,steps:l}=this.props,c=n===lt.RUNNING,d={};if(c&&l[e]){const f=yu(this.props,l[e]);d.step=Ge.createElement(HH,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:o,shouldScroll:!f.disableScrolling&&(e!==0||u),step:f,store:this.store}),d.overlay=Ge.createElement(LH,{id:"react-joyride-portal"},Ge.createElement(IH,{...f,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return Ge.createElement("div",{className:"react-joyride"},d.step,d.overlay)}};Be(O6,"defaultProps",PH);var GH=O6;exports.$131cf43a05231e1e$export$6d095e787d2b5e1f=e5;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=Ox;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=kl;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=KF;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=gn;exports.$16f0b7bb276bc17e$export$4c842f6a241dc825=eB;exports.$16f0b7bb276bc17e$export$5591b0b878c1a989=BC;exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7=Wn;exports.$28f99e3e86e6ec45$export$e5fda3247f5d67f9=ik;exports.$293f70390ea03370$export$497855f14858aa34=qk;exports.$32489daedd52963e$export$1315d136e6f7581=aB;exports.$337b884510726a0d$export$c6fdb837b070b4ff=Ok;exports.$36a0ac60f04457c5$export$136073280381448e=qM;exports.$3c0fc76039f1c516$export$60e84778edff6d26=N5;exports.$40df3f8667284809$export$d55e7ee900f34e93=cB;exports.$46a4342aab3d8076$export$87e0539f600c24e5=WM;exports.$47b897dc8cdb026b$export$8d15029008292ae=sk;exports.$5c3e21d68f1c4674$export$439d29a4e110a164=ak;exports.$6057a3d2a53a12fd$export$42df105a73306d51=nB;exports.$64244302c3013299$export$dd0bbc9b26defe37=CM;exports.$701a24aa0da5b062$export$ea18c227d4417cc3=VM;exports.$887cac91b7cc8801$export$12fd5f0e9f4bb192=lB;exports.$93c38a5e28be6249$export$e50a61c1de9f574=qB;exports.$9942cad8a072a530$export$3ee915f8151bd4f1=zM;exports.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90=PB;exports.$a916eb452884faea$export$b7a616150fdb9f44=LM;exports.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e=kB;exports.$ab5bf3f618090389$export$87194bb378cc3ac2=jB;exports.$bb77f239b46e8c72$export$3274cf84b703fff=sw;exports.$bcca50147b47f54d$export$56b2c08e277f365=uk;exports.$c132121280ec012d$export$50eacbbf140a3141=Nk;exports.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2=Kk;exports.$c350ade66beef0af$export$8c18d1b4f7232bbf=Qk;exports.$e3031d1f8c9d64eb$export$cb95147730a423f5=HM;exports.$eff5d8ee529ac4bb$export$fd53cef0cc796101=YB;exports.$f2f8a6077418541e$export$542a6fd13ac93354=Pk;exports.$fae977aafc393c5c$export$6b862160d295c8e=eM;exports.ACTIONS=bt;exports.AdvancedImage=LV;exports.Cloudinary=FN;exports.EVENTS=Wr;exports.FormProvider=pB;exports.LazyMotion=pz;exports.M=pO;exports.M$1=ri;exports.R=Ia;exports.STATUS=lt;exports._=tO;exports.autoUpdate=X$;exports.components_default=GH;exports.dayjs=XB;exports.domAnimation=hz;exports.dt=j$;exports.ee=U5;exports.flip=Q8;exports.lazyload=aV;exports.lodashExports=rx;exports.lt=Ug;exports.m=fz;exports.mt=y8;exports.nt=h8;exports.o=LN;exports.offset=J8;exports.ot=m8;exports.placeholder=cV;exports.prismExports=kN;exports.q=Sy;exports.useController=gB;exports.useFloating=Z8;exports.useForm=TB;exports.useFormContext=Nf;
|