dash-core-components 4.0.0-rc1 → 4.0.0-rc2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dash_core_components/async-dropdown.js +1 -1
  2. package/dash_core_components/async-dropdown.js.map +1 -1
  3. package/dash_core_components/async-slider.js +1 -1
  4. package/dash_core_components/async-slider.js.map +1 -1
  5. package/dash_core_components/dash_core_components.js +1 -1
  6. package/dash_core_components/dash_core_components.js.map +1 -1
  7. package/dash_core_components/proptypes.js +102 -3
  8. package/lib/components/Checklist.tsx +67 -0
  9. package/lib/components/Dropdown.tsx +19 -3
  10. package/lib/components/Loading.tsx +185 -0
  11. package/lib/components/RadioItems.tsx +69 -0
  12. package/lib/components/RangeSlider.tsx +5 -1
  13. package/lib/components/Slider.tsx +12 -1
  14. package/lib/components/Tab.react.js.old +79 -0
  15. package/lib/components/Textarea.tsx +79 -0
  16. package/lib/components/Tooltip.tsx +66 -0
  17. package/lib/components/css/checklist.css +4 -0
  18. package/lib/components/css/dcc.css +2 -0
  19. package/lib/components/css/dropdown.css +30 -49
  20. package/lib/components/css/input.css +22 -6
  21. package/lib/components/css/optionslist.css +34 -0
  22. package/lib/components/css/radioitems.css +4 -0
  23. package/lib/components/css/sliders.css +11 -7
  24. package/lib/components/css/textarea.css +21 -0
  25. package/lib/components/css/tooltip.css +127 -0
  26. package/lib/fragments/Dropdown.tsx +205 -269
  27. package/lib/fragments/Loading/spinners/CircleSpinner.tsx +185 -0
  28. package/lib/fragments/Loading/spinners/CubeSpinner.tsx +193 -0
  29. package/lib/fragments/Loading/spinners/DebugTitle.tsx +11 -0
  30. package/lib/fragments/Loading/spinners/DefaultSpinner.tsx +110 -0
  31. package/lib/fragments/Loading/spinners/DotSpinner.tsx +96 -0
  32. package/lib/fragments/Loading/spinners/GraphSpinner.tsx +332 -0
  33. package/lib/fragments/Loading/types.ts +13 -0
  34. package/lib/fragments/RangeSlider.tsx +193 -63
  35. package/lib/index.ts +5 -5
  36. package/lib/types.ts +455 -116
  37. package/lib/utils/dropdownSearch.ts +4 -4
  38. package/lib/utils/optionRendering.tsx +168 -0
  39. package/lib/utils/optionTypes.ts +5 -5
  40. package/lib/utils/sliderRendering.tsx +23 -4
  41. package/package.json +1 -2
  42. package/lib/components/Checklist.react.js +0 -193
  43. package/lib/components/Input.react.js.old +0 -507
  44. package/lib/components/Loading.react.js +0 -254
  45. package/lib/components/RadioItems.react.js +0 -192
  46. package/lib/components/Slider.react.js.old +0 -214
  47. package/lib/components/Textarea.react.js +0 -223
  48. package/lib/components/Tooltip.react.js +0 -120
  49. package/lib/components/css/Dropdown.css +0 -8
  50. package/lib/fragments/Loading/spinners/CircleSpinner.js +0 -68
  51. package/lib/fragments/Loading/spinners/CubeSpinner.js +0 -57
  52. package/lib/fragments/Loading/spinners/DebugTitle.js +0 -15
  53. package/lib/fragments/Loading/spinners/DefaultSpinner.js +0 -54
  54. package/lib/fragments/Loading/spinners/DotSpinner.js +0 -50
  55. package/lib/fragments/Loading/spinners/GraphSpinner.js +0 -68
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see async-dropdown.js.LICENSE.txt */
2
- (self.webpackChunkdash_core_components=self.webpackChunkdash_core_components||[]).push([[157],{12499:function(e,t,n){"use strict";var r=n(71354),o=n.n(r),i=n(76314),a=n.n(i)()(o());a.push([e.id,".dash-dropdown {\n box-sizing: border-box;\n margin: calc(var(--Dash-Spacing) * 2) 0;\n}\n\n.dash-dropdown-grid-container {\n display: grid;\n grid-template-columns: auto 1fr;\n justify-items: start;\n align-items: center;\n gap: 8px;\n}\n\n.dash-dropdown-grid-container:has(:nth-child(3)) {\n grid-template-columns: auto 1fr auto;\n}\n\n.dash-dropdown-grid-container:has(:nth-child(4)) {\n grid-template-columns: auto 1fr auto auto;\n}\n\n.dash-dropdown-trigger,\n.dash-dropdown-content {\n border-radius: var(--Dash-Spacing);\n border: 1px solid var(--Dash-Stroke-Strong);\n color: inherit;\n text-align: left;\n}\n\n.dash-dropdown-trigger {\n background: inherit;\n padding: 6px 12px;\n width: 100%;\n min-height: 32px;\n height: 100%;\n cursor: pointer;\n font-size: inherit;\n overflow: hidden;\n}\n\n.dash-dropdown-trigger:disabled {\n opacity: 0.6;\n cursor: not-allowed;\n}\n\n.dash-dropdown-value {\n max-width: 100%;\n text-align: left;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.dash-dropdown-placeholder {\n color: var(--Dash-Text-Disabled);\n}\n\n.dash-dropdown-value > * {\n display: inline;\n}\n\n.dash-dropdown-content {\n background: var(--Dash-Fill-Inverse-Strong);\n min-width: fit-content;\n width: var(--radix-popover-trigger-width);\n overflow-y: auto;\n z-index: 50;\n box-shadow: 0px 10px 38px -10px rgba(22, 23, 24, 0.35),\n 0px 10px 20px -15px rgba(22, 23, 24, 0.2);\n}\n\n.dash-dropdown-value-count,\n.dash-dropdown-trigger-icon {\n color: var(--Dash-Text-Strong);\n fill: var(--Dash-Text-Strong);\n white-space: nowrap;\n justify-self: end;\n}\n\n.dash-dropdown-trigger-icon {\n transition: transform 0.15s;\n}\n\n[data-state='open'] .dash-dropdown-trigger-icon {\n transform: rotate(180deg);\n}\n\n.dash-dropdown-value-count {\n line-height: 18px;\n padding: 0 2px;\n background: var(--Dash-Fill-Weak);\n}\n\n.dash-dropdown-search-container {\n margin: calc(var(--Dash-Spacing) * 2);\n padding: var(--Dash-Spacing);\n border-radius: 4px;\n border: 1px solid var(--Dash-Stroke-Strong);\n background: var(--Dash-Fill-Inverse-Strong);\n}\n\n.dash-dropdown-search-container:focus-within {\n border-color: var(--Dash-Fill-Interactive-Strong);\n}\n\n.dash-dropdown-search-icon,\n.dash-dropdown-clear {\n width: calc(var(--Dash-Spacing) * 3);\n height: calc(var(--Dash-Spacing) * 3);\n}\n\n.dash-dropdown-search-container:focus-within .dash-dropdown-search-icon {\n color: var(--Dash-Fill-Interactive-Strong);\n}\n\n.dash-dropdown-clear {\n background: none;\n border: none;\n cursor: pointer;\n padding: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n justify-self: end;\n color: var(--Dash-Text-Strong);\n}\n\n.dash-dropdown-clear:hover {\n color: var(--Dash-Fill-Interactive-Strong);\n}\n\n.dash-dropdown-clear:focus {\n outline: 2px solid var(--Dash-Fill-Interactive-Strong);\n outline-offset: 1px;\n border-radius: 2px;\n}\n\n.dash-dropdown-search {\n line-height: calc(var(--Dash-Spacing) * 6);\n width: 100%;\n border: none;\n background: transparent;\n color: var(--Dash-Text-Strong);\n outline: none;\n padding: 0;\n\n /* Hide the \"x\" clear button in search inputs */\n &::-webkit-search-cancel-button {\n -webkit-appearance: none;\n appearance: none;\n display: none;\n }\n\n &::-ms-clear {\n display: none;\n }\n}\n\n.dash-dropdown-actions {\n display: flex;\n gap: calc(var(--Dash-Spacing) * 6);\n line-height: 18px;\n padding: var(--Dash-Spacing) calc(var(--Dash-Spacing) * 3);\n border-top: 1px solid var(--Dash-Fill-Disabled);\n border-bottom: 1px solid var(--Dash-Fill-Disabled);\n}\n\n.dash-dropdown-action-button {\n background: none;\n border: none;\n cursor: pointer;\n font-size: 14px;\n font-weight: 600;\n padding: 0;\n text-decoration: none;\n color: var(--Dash-Text-Disabled);\n white-space: nowrap;\n}\n\n.dash-dropdown-action-button:hover {\n color: var(--Dash-Fill-Interactive-Strong);\n}\n\n.dash-dropdown-action-button:focus {\n text-decoration: underline;\n}\n\n.dash-dropdown-options {\n overflow-y: auto;\n}\n\n.dash-dropdown-option {\n padding: var(--Dash-Spacing) calc(var(--Dash-Spacing) * 3);\n background: var(--Dash-Fill-Inverse-strong);\n box-shadow: 0 -1px 0 0 var(--Dash-Fill-Disabled) inset;\n color: var(--Dash-Text-Strong);\n cursor: pointer;\n display: flex;\n align-items: center;\n user-select: none;\n overflow: hidden;\n}\n\n.dash-dropdown-option:not(:has(input[disabled])):hover,\n.dash-dropdown-option:not(:has(input[disabled])):focus-within {\n color: var(--Dash-Fill-Interactive-Strong);\n background: var(--Dash-Fill-Interactive-Weak);\n}\n\n.dash-dropdown-option:has(input[disabled]) {\n color: var(--Dash-Text-Disabled);\n cursor: not-allowed;\n}\n\n.dash-dropdown-option-text {\n white-space: pre;\n}\n\n.dash-dropdown-option-checkbox {\n display: inline-block;\n margin: 0 calc(var(--Dash-Spacing) * 2) 0 0;\n box-sizing: border-box;\n border: 1px solid var(--Dash-Stroke-Strong);\n}\n\n.dash-dropdown-option-checkbox:hover,\n.dash-dropdown-option-checkbox:focus,\n.dash-dropdown-option-checkbox:checked {\n accent-color: var(--Dash-Fill-Interactive-Strong);\n}\n","",{version:3,sources:["webpack://./src/components/css/dropdown.css"],names:[],mappings:"AAAA;IACI,sBAAsB;IACtB,uCAAuC;AAC3C;;AAEA;IACI,aAAa;IACb,+BAA+B;IAC/B,oBAAoB;IACpB,mBAAmB;IACnB,QAAQ;AACZ;;AAEA;IACI,oCAAoC;AACxC;;AAEA;IACI,yCAAyC;AAC7C;;AAEA;;IAEI,kCAAkC;IAClC,2CAA2C;IAC3C,cAAc;IACd,gBAAgB;AACpB;;AAEA;IACI,mBAAmB;IACnB,iBAAiB;IACjB,WAAW;IACX,gBAAgB;IAChB,YAAY;IACZ,eAAe;IACf,kBAAkB;IAClB,gBAAgB;AACpB;;AAEA;IACI,YAAY;IACZ,mBAAmB;AACvB;;AAEA;IACI,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,uBAAuB;IACvB,mBAAmB;AACvB;;AAEA;IACI,gCAAgC;AACpC;;AAEA;IACI,eAAe;AACnB;;AAEA;IACI,2CAA2C;IAC3C,sBAAsB;IACtB,yCAAyC;IACzC,gBAAgB;IAChB,WAAW;IACX;iDAC6C;AACjD;;AAEA;;IAEI,8BAA8B;IAC9B,6BAA6B;IAC7B,mBAAmB;IACnB,iBAAiB;AACrB;;AAEA;IACI,2BAA2B;AAC/B;;AAEA;IACI,yBAAyB;AAC7B;;AAEA;IACI,iBAAiB;IACjB,cAAc;IACd,iCAAiC;AACrC;;AAEA;IACI,qCAAqC;IACrC,4BAA4B;IAC5B,kBAAkB;IAClB,2CAA2C;IAC3C,2CAA2C;AAC/C;;AAEA;IACI,iDAAiD;AACrD;;AAEA;;IAEI,oCAAoC;IACpC,qCAAqC;AACzC;;AAEA;IACI,0CAA0C;AAC9C;;AAEA;IACI,gBAAgB;IAChB,YAAY;IACZ,eAAe;IACf,UAAU;IACV,aAAa;IACb,mBAAmB;IACnB,uBAAuB;IACvB,iBAAiB;IACjB,8BAA8B;AAClC;;AAEA;IACI,0CAA0C;AAC9C;;AAEA;IACI,sDAAsD;IACtD,mBAAmB;IACnB,kBAAkB;AACtB;;AAEA;IACI,0CAA0C;IAC1C,WAAW;IACX,YAAY;IACZ,uBAAuB;IACvB,8BAA8B;IAC9B,aAAa;IACb,UAAU;;IAEV,+CAA+C;IAC/C;QACI,wBAAwB;QACxB,gBAAgB;QAChB,aAAa;IACjB;;IAEA;QACI,aAAa;IACjB;AACJ;;AAEA;IACI,aAAa;IACb,kCAAkC;IAClC,iBAAiB;IACjB,0DAA0D;IAC1D,+CAA+C;IAC/C,kDAAkD;AACtD;;AAEA;IACI,gBAAgB;IAChB,YAAY;IACZ,eAAe;IACf,eAAe;IACf,gBAAgB;IAChB,UAAU;IACV,qBAAqB;IACrB,gCAAgC;IAChC,mBAAmB;AACvB;;AAEA;IACI,0CAA0C;AAC9C;;AAEA;IACI,0BAA0B;AAC9B;;AAEA;IACI,gBAAgB;AACpB;;AAEA;IACI,0DAA0D;IAC1D,2CAA2C;IAC3C,sDAAsD;IACtD,8BAA8B;IAC9B,eAAe;IACf,aAAa;IACb,mBAAmB;IACnB,iBAAiB;IACjB,gBAAgB;AACpB;;AAEA;;IAEI,0CAA0C;IAC1C,6CAA6C;AACjD;;AAEA;IACI,gCAAgC;IAChC,mBAAmB;AACvB;;AAEA;IACI,gBAAgB;AACpB;;AAEA;IACI,qBAAqB;IACrB,2CAA2C;IAC3C,sBAAsB;IACtB,2CAA2C;AAC/C;;AAEA;;;IAGI,iDAAiD;AACrD",sourcesContent:[".dash-dropdown {\n box-sizing: border-box;\n margin: calc(var(--Dash-Spacing) * 2) 0;\n}\n\n.dash-dropdown-grid-container {\n display: grid;\n grid-template-columns: auto 1fr;\n justify-items: start;\n align-items: center;\n gap: 8px;\n}\n\n.dash-dropdown-grid-container:has(:nth-child(3)) {\n grid-template-columns: auto 1fr auto;\n}\n\n.dash-dropdown-grid-container:has(:nth-child(4)) {\n grid-template-columns: auto 1fr auto auto;\n}\n\n.dash-dropdown-trigger,\n.dash-dropdown-content {\n border-radius: var(--Dash-Spacing);\n border: 1px solid var(--Dash-Stroke-Strong);\n color: inherit;\n text-align: left;\n}\n\n.dash-dropdown-trigger {\n background: inherit;\n padding: 6px 12px;\n width: 100%;\n min-height: 32px;\n height: 100%;\n cursor: pointer;\n font-size: inherit;\n overflow: hidden;\n}\n\n.dash-dropdown-trigger:disabled {\n opacity: 0.6;\n cursor: not-allowed;\n}\n\n.dash-dropdown-value {\n max-width: 100%;\n text-align: left;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.dash-dropdown-placeholder {\n color: var(--Dash-Text-Disabled);\n}\n\n.dash-dropdown-value > * {\n display: inline;\n}\n\n.dash-dropdown-content {\n background: var(--Dash-Fill-Inverse-Strong);\n min-width: fit-content;\n width: var(--radix-popover-trigger-width);\n overflow-y: auto;\n z-index: 50;\n box-shadow: 0px 10px 38px -10px rgba(22, 23, 24, 0.35),\n 0px 10px 20px -15px rgba(22, 23, 24, 0.2);\n}\n\n.dash-dropdown-value-count,\n.dash-dropdown-trigger-icon {\n color: var(--Dash-Text-Strong);\n fill: var(--Dash-Text-Strong);\n white-space: nowrap;\n justify-self: end;\n}\n\n.dash-dropdown-trigger-icon {\n transition: transform 0.15s;\n}\n\n[data-state='open'] .dash-dropdown-trigger-icon {\n transform: rotate(180deg);\n}\n\n.dash-dropdown-value-count {\n line-height: 18px;\n padding: 0 2px;\n background: var(--Dash-Fill-Weak);\n}\n\n.dash-dropdown-search-container {\n margin: calc(var(--Dash-Spacing) * 2);\n padding: var(--Dash-Spacing);\n border-radius: 4px;\n border: 1px solid var(--Dash-Stroke-Strong);\n background: var(--Dash-Fill-Inverse-Strong);\n}\n\n.dash-dropdown-search-container:focus-within {\n border-color: var(--Dash-Fill-Interactive-Strong);\n}\n\n.dash-dropdown-search-icon,\n.dash-dropdown-clear {\n width: calc(var(--Dash-Spacing) * 3);\n height: calc(var(--Dash-Spacing) * 3);\n}\n\n.dash-dropdown-search-container:focus-within .dash-dropdown-search-icon {\n color: var(--Dash-Fill-Interactive-Strong);\n}\n\n.dash-dropdown-clear {\n background: none;\n border: none;\n cursor: pointer;\n padding: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n justify-self: end;\n color: var(--Dash-Text-Strong);\n}\n\n.dash-dropdown-clear:hover {\n color: var(--Dash-Fill-Interactive-Strong);\n}\n\n.dash-dropdown-clear:focus {\n outline: 2px solid var(--Dash-Fill-Interactive-Strong);\n outline-offset: 1px;\n border-radius: 2px;\n}\n\n.dash-dropdown-search {\n line-height: calc(var(--Dash-Spacing) * 6);\n width: 100%;\n border: none;\n background: transparent;\n color: var(--Dash-Text-Strong);\n outline: none;\n padding: 0;\n\n /* Hide the \"x\" clear button in search inputs */\n &::-webkit-search-cancel-button {\n -webkit-appearance: none;\n appearance: none;\n display: none;\n }\n\n &::-ms-clear {\n display: none;\n }\n}\n\n.dash-dropdown-actions {\n display: flex;\n gap: calc(var(--Dash-Spacing) * 6);\n line-height: 18px;\n padding: var(--Dash-Spacing) calc(var(--Dash-Spacing) * 3);\n border-top: 1px solid var(--Dash-Fill-Disabled);\n border-bottom: 1px solid var(--Dash-Fill-Disabled);\n}\n\n.dash-dropdown-action-button {\n background: none;\n border: none;\n cursor: pointer;\n font-size: 14px;\n font-weight: 600;\n padding: 0;\n text-decoration: none;\n color: var(--Dash-Text-Disabled);\n white-space: nowrap;\n}\n\n.dash-dropdown-action-button:hover {\n color: var(--Dash-Fill-Interactive-Strong);\n}\n\n.dash-dropdown-action-button:focus {\n text-decoration: underline;\n}\n\n.dash-dropdown-options {\n overflow-y: auto;\n}\n\n.dash-dropdown-option {\n padding: var(--Dash-Spacing) calc(var(--Dash-Spacing) * 3);\n background: var(--Dash-Fill-Inverse-strong);\n box-shadow: 0 -1px 0 0 var(--Dash-Fill-Disabled) inset;\n color: var(--Dash-Text-Strong);\n cursor: pointer;\n display: flex;\n align-items: center;\n user-select: none;\n overflow: hidden;\n}\n\n.dash-dropdown-option:not(:has(input[disabled])):hover,\n.dash-dropdown-option:not(:has(input[disabled])):focus-within {\n color: var(--Dash-Fill-Interactive-Strong);\n background: var(--Dash-Fill-Interactive-Weak);\n}\n\n.dash-dropdown-option:has(input[disabled]) {\n color: var(--Dash-Text-Disabled);\n cursor: not-allowed;\n}\n\n.dash-dropdown-option-text {\n white-space: pre;\n}\n\n.dash-dropdown-option-checkbox {\n display: inline-block;\n margin: 0 calc(var(--Dash-Spacing) * 2) 0 0;\n box-sizing: border-box;\n border: 1px solid var(--Dash-Stroke-Strong);\n}\n\n.dash-dropdown-option-checkbox:hover,\n.dash-dropdown-option-checkbox:focus,\n.dash-dropdown-option-checkbox:checked {\n accent-color: var(--Dash-Fill-Interactive-Strong);\n}\n"],sourceRoot:""}]),t.A=a},19640:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Ti}});var r=n(51647),o=n(4376),i=n(66811),a=n(51609),c=n.t(a,2),l=n.n(a),u=function(){function e(){}return e.prototype.expandToken=function(e){for(var t,n=[],r=0,o=e.length;r<o;++r){t="";for(var i=r;i<o;++i)t+=e.charAt(i),n.push(t)}return n},e}(),s=function(){function e(){}return e.prototype.expandToken=function(e){for(var t=[],n="",r=0,o=e.length;r<o;++r)n+=e.charAt(r),t.push(n);return t},e}(),f=function(){function e(){}return e.prototype.sanitize=function(e){return e?e.toLocaleLowerCase().trim():""},e}();function d(e,t){t=t||[];for(var n=e=e||{},r=0;r<t.length;r++)if(null==(n=n[t[r]]))return null;return n}var p=function(){function e(e){this._uidFieldName=e,this._tokenToIdfCache={},this._tokenMap={}}var t=e.prototype;return t.indexDocument=function(e,t,n){this._tokenToIdfCache={};var r,o=this._tokenMap;"object"!=typeof o[e]?o[e]=r={$numDocumentOccurrences:0,$totalNumOccurrences:1,$uidMap:{}}:(r=o[e]).$totalNumOccurrences++;var i=r.$uidMap;"object"!=typeof i[t]?(r.$numDocumentOccurrences++,i[t]={$document:n,$numTokenOccurrences:1}):i[t].$numTokenOccurrences++},t.search=function(e,t){for(var n={},r=0,o=e.length;r<o;r++){var i,a=e[r],c=this._tokenMap[a];if(!c)return[];if(0===r)for(var l=0,u=(i=Object.keys(c.$uidMap)).length;l<u;l++)n[s=i[l]]=c.$uidMap[s].$document;else for(l=0,u=(i=Object.keys(n)).length;l<u;l++){var s=i[l];"object"!=typeof c.$uidMap[s]&&delete n[s]}}var f=[];for(var s in n)f.push(n[s]);var d=this._createCalculateTfIdf();return f.sort((function(n,r){return d(e,r,t)-d(e,n,t)}))},t._createCalculateIdf=function(){var e=this._tokenMap,t=this._tokenToIdfCache;return function(n,r){if(!t[n]){var o=void 0!==e[n]?e[n].$numDocumentOccurrences:0;t[n]=1+Math.log(r.length/(1+o))}return t[n]}},t._createCalculateTfIdf=function(){var e=this._tokenMap,t=this._uidFieldName,n=this._createCalculateIdf();return function(r,o,i){for(var a=0,c=0,l=r.length;c<l;++c){var u,s=r[c],f=n(s,i);f===1/0&&(f=0),u=t instanceof Array?o&&d(o,t):o&&o[t],a+=(void 0!==e[s]&&void 0!==e[s].$uidMap[u]?e[s].$uidMap[u].$numTokenOccurrences:0)*f}return a}},e}(),v=function(){function e(){this._tokenToUidToDocumentMap={}}var t=e.prototype;return t.indexDocument=function(e,t,n){"object"!=typeof this._tokenToUidToDocumentMap[e]&&(this._tokenToUidToDocumentMap[e]={}),this._tokenToUidToDocumentMap[e][t]=n},t.search=function(e,t){for(var n={},r=this._tokenToUidToDocumentMap,o=0,i=e.length;o<i;o++){var a=r[e[o]];if(!a)return[];if(0===o)for(var c=0,l=(u=Object.keys(a)).length;c<l;c++)n[f=u[c]]=a[f];else for(c=0,l=(u=Object.keys(n)).length;c<l;c++)"object"!=typeof a[f=u[c]]&&delete n[f]}var u,s=[];for(o=0,l=(u=Object.keys(n)).length;o<l;o++){var f=u[o];s.push(n[f])}return s},e}(),h=/[^a-zа-яё0-9\-']+/i,m=function(){function e(){}return e.prototype.tokenize=function(e){return e.split(h).filter((function(e){return e}))},e}();function g(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,r.key,r)}}var y=function(){function e(e){if(!e)throw Error("js-search requires a uid field name constructor parameter");this._uidFieldName=e,this._indexStrategy=new s,this._searchIndex=new p(e),this._sanitizer=new f,this._tokenizer=new m,this._documents=[],this._searchableFields=[]}var t,n,r=e.prototype;return r.addDocument=function(e){this.addDocuments([e])},r.addDocuments=function(e){this._documents=this._documents.concat(e),this.indexDocuments_(e,this._searchableFields)},r.addIndex=function(e){this._searchableFields.push(e),this.indexDocuments_(this._documents,[e])},r.search=function(e){var t=this._tokenizer.tokenize(this._sanitizer.sanitize(e));return this._searchIndex.search(t,this._documents)},r.indexDocuments_=function(e,t){this._initialized=!0;for(var n=this._indexStrategy,r=this._sanitizer,o=this._searchIndex,i=this._tokenizer,a=this._uidFieldName,c=0,l=e.length;c<l;c++){var u,s=e[c];u=a instanceof Array?d(s,a):s[a];for(var f=0,p=t.length;f<p;f++){var v,h=t[f];if(null!=(v=h instanceof Array?d(s,h):s[h])&&"string"!=typeof v&&v.toString&&(v=v.toString()),"string"==typeof v)for(var m=i.tokenize(r.sanitize(v)),g=0,y=m.length;g<y;g++)for(var b=m[g],A=n.expandToken(b),w=0,O=A.length;w<O;w++){var x=A[w];o.indexDocument(x,u,s)}}}},t=e,(n=[{key:"indexStrategy",set:function(e){if(this._initialized)throw Error("IIndexStrategy cannot be set after initialization");this._indexStrategy=e},get:function(){return this._indexStrategy}},{key:"sanitizer",set:function(e){if(this._initialized)throw Error("ISanitizer cannot be set after initialization");this._sanitizer=e},get:function(){return this._sanitizer}},{key:"searchIndex",set:function(e){if(this._initialized)throw Error("ISearchIndex cannot be set after initialization");this._searchIndex=e},get:function(){return this._searchIndex}},{key:"tokenizer",set:function(e){if(this._initialized)throw Error("ITokenizer cannot be set after initialization");this._tokenizer=e},get:function(){return this._tokenizer}}])&&g(t.prototype,n),e}(),b=n(53532),A=/\s+/,w={tokenize(e){return e.split(A).filter((e=>e))}};function O(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var x=["color"],C=(0,a.forwardRef)((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=O(e,x);return(0,a.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),(0,a.createElement)("path",{d:"M4.18179 6.18181C4.35753 6.00608 4.64245 6.00608 4.81819 6.18181L7.49999 8.86362L10.1818 6.18181C10.3575 6.00608 10.6424 6.00608 10.8182 6.18181C10.9939 6.35755 10.9939 6.64247 10.8182 6.81821L7.81819 9.81821C7.73379 9.9026 7.61934 9.95001 7.49999 9.95001C7.38064 9.95001 7.26618 9.9026 7.18179 9.81821L4.18179 6.81821C4.00605 6.64247 4.00605 6.35755 4.18179 6.18181Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))})),E=["color"],S=(0,a.forwardRef)((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=O(e,E);return(0,a.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),(0,a.createElement)("path",{d:"M12.8536 2.85355C13.0488 2.65829 13.0488 2.34171 12.8536 2.14645C12.6583 1.95118 12.3417 1.95118 12.1464 2.14645L7.5 6.79289L2.85355 2.14645C2.65829 1.95118 2.34171 1.95118 2.14645 2.14645C1.95118 2.34171 1.95118 2.65829 2.14645 2.85355L6.79289 7.5L2.14645 12.1464C1.95118 12.3417 1.95118 12.6583 2.14645 12.8536C2.34171 13.0488 2.65829 13.0488 2.85355 12.8536L7.5 8.20711L12.1464 12.8536C12.3417 13.0488 12.6583 13.0488 12.8536 12.8536C13.0488 12.6583 13.0488 12.3417 12.8536 12.1464L8.20711 7.5L12.8536 2.85355Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))})),j=["color"],P=(0,a.forwardRef)((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=O(e,j);return(0,a.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),(0,a.createElement)("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))})),I=n(37549),D=n(30855),k=n(49309),B=n(11592);function T(e){var t=a.useRef(e);return a.useEffect((()=>{t.current=e})),a.useMemo((()=>function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call(t,...r)}),[])}var _=n(74848),R=["disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss"];function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){F(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function F(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return z(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?z(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var W,U="dismissableLayer.update",H=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$=a.forwardRef(((e,t)=>{var n,r=e.disableOutsidePointerEvents,o=void 0!==r&&r,i=e.onEscapeKeyDown,c=e.onPointerDownOutside,l=e.onFocusOutside,u=e.onInteractOutside,s=e.onDismiss,f=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,R),d=a.useContext(H),p=L(a.useState(null),2),v=p[0],h=p[1],m=null!==(n=null==v?void 0:v.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,g=L(a.useState({}),2)[1],y=(0,D.s)(t,(e=>h(e))),b=Array.from(d.layers),A=L([...d.layersWithOutsidePointerEventsDisabled].slice(-1),1)[0],w=b.indexOf(A),O=v?b.indexOf(v):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,C=O>=w,E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===globalThis||void 0===globalThis?void 0:globalThis.document,n=T(e),r=a.useRef(!1),o=a.useRef((()=>{}));return a.useEffect((()=>{var e=e=>{if(e.target&&!r.current){var i=function(){Y("dismissableLayer.pointerDownOutside",n,a,{discrete:!0})},a={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=i,t.addEventListener("click",o.current,{once:!0})):i()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{var t=e.target,n=[...d.branches].some((e=>e.contains(t)));C&&!n&&(null==c||c(e),null==u||u(e),e.defaultPrevented||null==s||s())}),m),S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===globalThis||void 0===globalThis?void 0:globalThis.document,n=T(e),r=a.useRef(!1);return a.useEffect((()=>{var e=e=>{e.target&&!r.current&&Y("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{var t=e.target;[...d.branches].some((e=>e.contains(t)))||(null==l||l(e),null==u||u(e),e.defaultPrevented||null==s||s())}),m);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===globalThis||void 0===globalThis?void 0:globalThis.document,n=T(e);a.useEffect((()=>{var e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}((e=>{O===d.layers.size-1&&(null==i||i(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),m),a.useEffect((()=>{if(v)return o&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(W=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(v)),d.layers.add(v),K(),()=>{o&&1===d.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=W)}}),[v,m,o,d]),a.useEffect((()=>()=>{v&&(d.layers.delete(v),d.layersWithOutsidePointerEventsDisabled.delete(v),K())}),[v,d]),a.useEffect((()=>{var e=()=>g({});return document.addEventListener(U,e),()=>document.removeEventListener(U,e)}),[]),(0,_.jsx)(B.sG.div,N(N({},f),{},{ref:y,style:N({pointerEvents:x?C?"auto":"none":void 0},e.style),onFocusCapture:(0,I.mK)(e.onFocusCapture,S.onFocusCapture),onBlurCapture:(0,I.mK)(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:(0,I.mK)(e.onPointerDownCapture,E.onPointerDownCapture)}))}));function K(){var e=new CustomEvent(U);document.dispatchEvent(e)}function Y(e,t,n,r){var o=r.discrete,i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,B.hO)(i,a):i.dispatchEvent(a)}$.displayName="DismissableLayer",a.forwardRef(((e,t)=>{var n=a.useContext(H),r=a.useRef(null),o=(0,D.s)(t,r);return a.useEffect((()=>{var e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),(0,_.jsx)(B.sG.div,N(N({},e),{},{ref:o}))})).displayName="DismissableLayerBranch";var G=0;function V(){var e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var q=["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"];function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach((function(t){Q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Q(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=te(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||te(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function te(e,t){if(e){if("string"==typeof e)return ne(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ne(e,t):void 0}}function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var re="focusScope.autoFocusOnMount",oe="focusScope.autoFocusOnUnmount",ie={bubbles:!1,cancelable:!0},ae=a.forwardRef(((e,t)=>{var n=e.loop,r=void 0!==n&&n,o=e.trapped,i=void 0!==o&&o,c=e.onMountAutoFocus,l=e.onUnmountAutoFocus,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,q),s=ee(a.useState(null),2),f=s[0],d=s[1],p=T(c),v=T(l),h=a.useRef(null),m=(0,D.s)(t,(e=>d(e))),g=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect((()=>{if(i){var e=function(e){if(!g.paused&&f){var t=e.target;f.contains(t)?h.current=t:se(h.current,{select:!0})}},t=function(e){if(!g.paused&&f){var t=e.relatedTarget;null!==t&&(f.contains(t)||se(h.current,{select:!0}))}};document.addEventListener("focusin",e),document.addEventListener("focusout",t);var n=new MutationObserver((function(e){if(document.activeElement===document.body){var t,n=J(e);try{for(n.s();!(t=n.n()).done;)t.value.removedNodes.length>0&&se(f)}catch(e){n.e(e)}finally{n.f()}}}));return f&&n.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}}),[i,f,g.paused]),a.useEffect((()=>{if(f){de.add(g);var e=document.activeElement;if(!f.contains(e)){var t=new CustomEvent(re,ie);f.addEventListener(re,p),f.dispatchEvent(t),t.defaultPrevented||(function(e){var t,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).select,r=void 0!==n&&n,o=document.activeElement,i=J(e);try{for(i.s();!(t=i.n()).done;)if(se(t.value,{select:r}),document.activeElement!==o)return}catch(e){i.e(e)}finally{i.f()}}(ce(f).filter((e=>"A"!==e.tagName)),{select:!0}),document.activeElement===e&&se(f))}return()=>{f.removeEventListener(re,p),setTimeout((()=>{var t=new CustomEvent(oe,ie);f.addEventListener(oe,v),f.dispatchEvent(t),t.defaultPrevented||se(null!=e?e:document.body,{select:!0}),f.removeEventListener(oe,v),de.remove(g)}),0)}}}),[f,p,v,g]);var y=a.useCallback((e=>{if((r||i)&&!g.paused){var t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){var o=e.currentTarget,a=function(e){var t=ce(e);return[le(t,e),le(t.reverse(),e)]}(o),c=ee(a,2),l=c[0],u=c[1];l&&u?e.shiftKey||n!==u?e.shiftKey&&n===l&&(e.preventDefault(),r&&se(u,{select:!0})):(e.preventDefault(),r&&se(l,{select:!0})):n===o&&e.preventDefault()}}}),[r,i,g.paused]);return(0,_.jsx)(B.sG.div,Z(Z({tabIndex:-1},u),{},{ref:m,onKeyDown:y}))}));function ce(e){for(var t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{var t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});n.nextNode();)t.push(n.currentNode);return t}function le(e,t){var n,r=J(e);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(!ue(o,{upTo:t}))return o}}catch(e){r.e(e)}finally{r.f()}}function ue(e,t){var n=t.upTo;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==n&&e===n)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function se(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).select,n=void 0!==t&&t;if(e&&e.focus){var r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&n&&e.select()}}ae.displayName="FocusScope";var fe,de=(fe=[],{add(e){var t=fe[0];e!==t&&(null==t||t.pause()),(fe=pe(fe,e)).unshift(e)},remove(e){var t;null===(t=(fe=pe(fe,e))[0])||void 0===t||t.resume()}});function pe(e,t){var n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var ve=n(48240);function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var me=c[" useId ".trim().toString()]||(()=>{}),ge=0;function ye(e){var t,n,r=(t=a.useState(me()),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return he(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?he(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=r[0],i=r[1];return(0,ve.N)((()=>{e||i((e=>null!=e?e:String(ge++)))}),[e]),e||(o?"radix-".concat(o):"")}function be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ae(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var we=["top","right","bottom","left"],Oe=Math.min,xe=Math.max,Ce=Math.round,Ee=Math.floor,Se=e=>({x:e,y:e}),je={left:"right",right:"left",bottom:"top",top:"bottom"},Pe={start:"end",end:"start"};function Ie(e,t,n){return xe(e,Oe(t,n))}function De(e,t){return"function"==typeof e?e(t):e}function ke(e){return e.split("-")[0]}function Be(e){return e.split("-")[1]}function Te(e){return"x"===e?"y":"x"}function _e(e){return"y"===e?"height":"width"}var Re=new Set(["top","bottom"]);function Me(e){return Re.has(ke(e))?"y":"x"}function Ne(e){return Te(Me(e))}function Fe(e,t,n){void 0===n&&(n=!1);var r=Be(e),o=Ne(e),i=_e(o),a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Ye(a)),[a,Ye(a)]}function Le(e){var t=Ye(e);return[ze(e),t,ze(t)]}function ze(e){return e.replace(/start|end/g,(e=>Pe[e]))}var We=["left","right"],Ue=["right","left"],He=["top","bottom"],$e=["bottom","top"];function Ke(e,t,n,r){var o=Be(e),i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?Ue:We:t?We:Ue;case"left":case"right":return t?He:$e;default:return[]}}(ke(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(ze)))),i}function Ye(e){return e.replace(/left|right|bottom|top/g,(e=>je[e]))}function Ge(e){return"number"!=typeof e?function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?be(Object(n),!0).forEach((function(t){Ae(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):be(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({top:0,right:0,bottom:0,left:0},e)}(e):{top:e,right:e,bottom:e,left:e}}function Ve(e){var t=e.x,n=e.y,r=e.width,o=e.height;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}var qe=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],Xe=["strategy"],Ze=["mainAxis","crossAxis","limiter"],Qe=["apply"];function Je(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function et(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof c?r:c,u=Object.create(l.prototype);return tt(u,"_invoke",function(n,r,o){var i,c,l,u=0,s=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,c=0,l=e,d.n=n,a}};function p(n,r){for(c=n,l=r,t=0;!f&&u&&!o&&t<s.length;t++){var o,i=s[t],p=d.p,v=i[2];n>3?(o=v===r)&&(l=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(c=0,d.v=r,d.n=i[1]):p<v&&(o=n<3||i[0]>r||r>v)&&(i[4]=n,i[5]=r,d.n=v,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,s,v){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,v),c=s,l=v;(t=c<2?e:l)||!f;){i||(c?c<3?(c>1&&(d.n=-1),p(c,l)):d.n=l:d.v=l);try{if(u=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,c<2&&(c=0)}else 1===c&&(t=i.return)&&t.call(i),c<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,c=1,l=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),u}var a={};function c(){}function l(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(tt(t={},r,(function(){return this})),t),f=u.prototype=c.prototype=Object.create(s);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,tt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=u,tt(f,"constructor",u),tt(u,"constructor",l),l.displayName="GeneratorFunction",tt(u,o,"GeneratorFunction"),tt(f),tt(f,o,"Generator"),tt(f,r,(function(){return this})),tt(f,"toString",(function(){return"[object Generator]"})),(et=function(){return{w:i,m:d}})()}function tt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}tt=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{function i(t,n){tt(e,t,(function(e){return this._invoke(t,n,e)}))}i("next",0),i("throw",1),i("return",2)}},tt(e,t,n,r)}function nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nt(Object(n),!0).forEach((function(t){ot(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ot(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function it(e,t,n,r,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,o)}function at(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){it(i,r,o,a,c,"next",e)}function c(e){it(i,r,o,a,c,"throw",e)}a(void 0)}))}}function ct(e,t,n){var r,o=e.reference,i=e.floating,a=Me(t),c=Ne(t),l=_e(c),u=ke(t),s="y"===a,f=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,p=o[l]/2-i[l]/2;switch(u){case"top":r={x:f,y:o.y-i.height};break;case"bottom":r={x:f,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:d};break;case"left":r={x:o.x-i.width,y:d};break;default:r={x:o.x,y:o.y}}switch(Be(t)){case"start":r[c]-=p*(n&&s?-1:1);break;case"end":r[c]+=p*(n&&s?-1:1)}return r}var lt=function(){var e=at(et().m((function e(t,n,r){var o,i,a,c,l,u,s,f,d,p,v,h,m,g,y,b,A,w,O,x,C,E,S,j,P,I,D;return et().w((function(e){for(;;)switch(e.n){case 0:return o=r.placement,i=void 0===o?"bottom":o,a=r.strategy,c=void 0===a?"absolute":a,l=r.middleware,u=void 0===l?[]:l,s=r.platform,f=u.filter(Boolean),e.n=1,null==s.isRTL?void 0:s.isRTL(n);case 1:return d=e.v,e.n=2,s.getElementRects({reference:t,floating:n,strategy:c});case 2:p=e.v,v=ct(p,i,d),h=v.x,m=v.y,g=i,y={},b=0,A=0;case 3:if(!(A<f.length)){e.n=11;break}return w=f[A],O=w.name,x=w.fn,e.n=4,x({x:h,y:m,initialPlacement:i,placement:g,strategy:c,middlewareData:y,rects:p,platform:s,elements:{reference:t,floating:n}});case 4:if(C=e.v,E=C.x,S=C.y,j=C.data,P=C.reset,h=null!=E?E:h,m=null!=S?S:m,y=rt(rt({},y),{},{[O]:rt(rt({},y[O]),j)}),!(P&&b<=50)){e.n=10;break}if(b++,"object"!=typeof P){e.n=9;break}if(P.placement&&(g=P.placement),!P.rects){e.n=8;break}if(!0!==P.rects){e.n=6;break}return e.n=5,s.getElementRects({reference:t,floating:n,strategy:c});case 5:D=e.v,e.n=7;break;case 6:D=P.rects;case 7:p=D;case 8:I=ct(p,g,d),h=I.x,m=I.y;case 9:A=-1;case 10:A++,e.n=3;break;case 11:return e.a(2,{x:h,y:m,placement:g,strategy:c,middlewareData:y})}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}();function ut(e,t){return st.apply(this,arguments)}function st(){return st=at(et().m((function e(t,n){var r,o,i,a,c,l,u,s,f,d,p,v,h,m,g,y,b,A,w,O,x,C,E,S,j,P,I,D,k,B,T,_,R,M,N,F;return et().w((function(e){for(;;)switch(e.n){case 0:return void 0===n&&(n={}),o=t.x,i=t.y,a=t.platform,c=t.rects,l=t.elements,u=t.strategy,s=De(n,t),f=s.boundary,d=void 0===f?"clippingAncestors":f,p=s.rootBoundary,v=void 0===p?"viewport":p,h=s.elementContext,m=void 0===h?"floating":h,g=s.altBoundary,y=void 0!==g&&g,b=s.padding,A=Ge(void 0===b?0:b),w="floating"===m?"reference":"floating",O=l[y?w:m],P=Ve,I=a,e.n=1,null==a.isElement?void 0:a.isElement(O);case 1:if(null==(r=e.v)){e.n=2;break}D=r,e.n=3;break;case 2:D=!0;case 3:if(!D){e.n=4;break}k=O,e.n=7;break;case 4:if(B=O.contextElement){e.n=6;break}return e.n=5,null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating);case 5:B=e.v;case 6:k=B;case 7:return T={element:k,boundary:d,rootBoundary:v,strategy:u},e.n=8,I.getClippingRect.call(I,T);case 8:return _=e.v,x=P(_),C="floating"===m?{x:o,y:i,width:c.floating.width,height:c.floating.height}:c.reference,e.n=9,null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating);case 9:return E=e.v,e.n=10,null==a.isElement?void 0:a.isElement(E);case 10:if(!e.v){e.n=13;break}return e.n=11,null==a.getScale?void 0:a.getScale(E);case 11:if(M=e.v){e.n=12;break}M={x:1,y:1};case 12:R=M,e.n=14;break;case 13:R={x:1,y:1};case 14:if(S=R,N=Ve,!a.convertOffsetParentRelativeRectToViewportRelativeRect){e.n=16;break}return e.n=15,a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:C,offsetParent:E,strategy:u});case 15:F=e.v,e.n=17;break;case 16:F=C;case 17:return j=N(F),e.a(2,{top:(x.top-j.top+A.top)/S.y,bottom:(j.bottom-x.bottom+A.bottom)/S.y,left:(x.left-j.left+A.left)/S.x,right:(j.right-x.right+A.right)/S.x})}}),e)}))),st.apply(this,arguments)}function ft(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function dt(e){return we.some((t=>e[t]>=0))}var pt=new Set(["left","top"]);function vt(e,t){return ht.apply(this,arguments)}function ht(){return ht=at(et().m((function e(t,n){var r,o,i,a,c,l,u,s,f,d,p,v,h,m;return et().w((function(e){for(;;)switch(e.n){case 0:return r=t.placement,o=t.platform,i=t.elements,e.n=1,null==o.isRTL?void 0:o.isRTL(i.floating);case 1:return a=e.v,c=ke(r),l=Be(r),u="y"===Me(r),s=pt.has(c)?-1:1,f=a&&u?-1:1,d=De(n,t),p="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis},v=p.mainAxis,h=p.crossAxis,m=p.alignmentAxis,l&&"number"==typeof m&&(h="end"===l?-1*m:m),e.a(2,u?{x:h*f,y:v*s}:{x:v*s,y:h*f})}}),e)}))),ht.apply(this,arguments)}function mt(){return"undefined"!=typeof window}function gt(e){return At(e)?(e.nodeName||"").toLowerCase():"#document"}function yt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function bt(e){var t;return null==(t=(At(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function At(e){return!!mt()&&(e instanceof Node||e instanceof yt(e).Node)}function wt(e){return!!mt()&&(e instanceof Element||e instanceof yt(e).Element)}function Ot(e){return!!mt()&&(e instanceof HTMLElement||e instanceof yt(e).HTMLElement)}function xt(e){return!(!mt()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof yt(e).ShadowRoot)}var Ct=new Set(["inline","contents"]);function Et(e){var t=Nt(e),n=t.overflow,r=t.overflowX,o=t.overflowY,i=t.display;return/auto|scroll|overlay|hidden|clip/.test(n+o+r)&&!Ct.has(i)}var St=new Set(["table","td","th"]);function jt(e){return St.has(gt(e))}var Pt=[":popover-open",":modal"];function It(e){return Pt.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}var Dt=["transform","translate","scale","rotate","perspective"],kt=["transform","translate","scale","rotate","perspective","filter"],Bt=["paint","layout","strict","content"];function Tt(e){var t=_t(),n=wt(e)?Nt(e):e;return Dt.some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||kt.some((e=>(n.willChange||"").includes(e)))||Bt.some((e=>(n.contain||"").includes(e)))}function _t(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}var Rt=new Set(["html","body","#document"]);function Mt(e){return Rt.has(gt(e))}function Nt(e){return yt(e).getComputedStyle(e)}function Ft(e){return wt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Lt(e){if("html"===gt(e))return e;var t=e.assignedSlot||e.parentNode||xt(e)&&e.host||bt(e);return xt(t)?t.host:t}function zt(e){var t=Lt(e);return Mt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ot(t)&&Et(t)?t:zt(t)}function Wt(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);var o=zt(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=yt(o);if(i){var c=Ut(a);return t.concat(a,a.visualViewport||[],Et(o)?o:[],c&&n?Wt(c):[])}return t.concat(o,Wt(o,[],n))}function Ut(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ht(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$t(Object(n),!0).forEach((function(t){Yt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yt(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gt(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof c?r:c,u=Object.create(l.prototype);return Vt(u,"_invoke",function(n,r,o){var i,c,l,u=0,s=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,c=0,l=e,d.n=n,a}};function p(n,r){for(c=n,l=r,t=0;!f&&u&&!o&&t<s.length;t++){var o,i=s[t],p=d.p,v=i[2];n>3?(o=v===r)&&(l=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(c=0,d.v=r,d.n=i[1]):p<v&&(o=n<3||i[0]>r||r>v)&&(i[4]=n,i[5]=r,d.n=v,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,s,v){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,v),c=s,l=v;(t=c<2?e:l)||!f;){i||(c?c<3?(c>1&&(d.n=-1),p(c,l)):d.n=l:d.v=l);try{if(u=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,c<2&&(c=0)}else 1===c&&(t=i.return)&&t.call(i),c<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,c=1,l=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),u}var a={};function c(){}function l(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Vt(t={},r,(function(){return this})),t),f=u.prototype=c.prototype=Object.create(s);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Vt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=u,Vt(f,"constructor",u),Vt(u,"constructor",l),l.displayName="GeneratorFunction",Vt(u,o,"GeneratorFunction"),Vt(f),Vt(f,o,"Generator"),Vt(f,r,(function(){return this})),Vt(f,"toString",(function(){return"[object Generator]"})),(Gt=function(){return{w:i,m:d}})()}function Vt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Vt=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{function i(t,n){Vt(e,t,(function(e){return this._invoke(t,n,e)}))}i("next",0),i("throw",1),i("return",2)}},Vt(e,t,n,r)}function qt(e,t,n,r,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,o)}function Xt(e){var t=Nt(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=Ot(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,c=Ce(n)!==i||Ce(r)!==a;return c&&(n=i,r=a),{width:n,height:r,$:c}}function Zt(e){return wt(e)?e:e.contextElement}function Qt(e){var t=Zt(e);if(!Ot(t))return Se(1);var n=t.getBoundingClientRect(),r=Xt(t),o=r.width,i=r.height,a=r.$,c=(a?Ce(n.width):n.width)/o,l=(a?Ce(n.height):n.height)/i;return c&&Number.isFinite(c)||(c=1),l&&Number.isFinite(l)||(l=1),{x:c,y:l}}var Jt=Se(0);function en(e){var t=yt(e);return _t()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Jt}function tn(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),i=Zt(e),a=Se(1);t&&(r?wt(r)&&(a=Qt(r)):a=Qt(e));var c=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==yt(e))&&t}(i,n,r)?en(i):Se(0),l=(o.left+c.x)/a.x,u=(o.top+c.y)/a.y,s=o.width/a.x,f=o.height/a.y;if(i)for(var d=yt(i),p=r&&wt(r)?yt(r):r,v=d,h=Ut(v);h&&r&&p!==v;){var m=Qt(h),g=h.getBoundingClientRect(),y=Nt(h),b=g.left+(h.clientLeft+parseFloat(y.paddingLeft))*m.x,A=g.top+(h.clientTop+parseFloat(y.paddingTop))*m.y;l*=m.x,u*=m.y,s*=m.x,f*=m.y,l+=b,u+=A,h=Ut(v=yt(h))}return Ve({width:s,height:f,x:l,y:u})}function nn(e,t){var n=Ft(e).scrollLeft;return t?t.left+n:tn(bt(e)).left+n}function rn(e,t,n){void 0===n&&(n=!1);var r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:nn(e,r)),y:r.top+t.scrollTop}}var on=new Set(["absolute","fixed"]);function an(e,t,n){var r;if("viewport"===t)r=function(e,t){var n=yt(e),r=bt(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,c=0,l=0;if(o){i=o.width,a=o.height;var u=_t();(!u||u&&"fixed"===t)&&(c=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:c,y:l}}(e,n);else if("document"===t)r=function(e){var t=bt(e),n=Ft(e),r=e.ownerDocument.body,o=xe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=xe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+nn(e),c=-n.scrollTop;return"rtl"===Nt(r).direction&&(a+=xe(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:c}}(bt(e));else if(wt(t))r=function(e,t){var n=tn(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Ot(e)?Qt(e):Se(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{var o=en(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ve(r)}function cn(e,t){var n=Lt(e);return!(n===t||!wt(n)||Mt(n))&&("fixed"===Nt(n).position||cn(n,t))}function ln(e,t,n){var r=Ot(t),o=bt(t),i="fixed"===n,a=tn(e,!0,i,t),c={scrollLeft:0,scrollTop:0},l=Se(0);function u(){l.x=nn(o)}if(r||!r&&!i)if(("body"!==gt(t)||Et(o))&&(c=Ft(t)),r){var s=tn(t,!0,i,t);l.x=s.x+t.clientLeft,l.y=s.y+t.clientTop}else o&&u();i&&!r&&o&&u();var f=!o||r||i?Se(0):rn(o,c);return{x:a.left+c.scrollLeft-l.x-f.x,y:a.top+c.scrollTop-l.y-f.y,width:a.width,height:a.height}}function un(e){return"static"===Nt(e).position}function sn(e,t){if(!Ot(e)||"fixed"===Nt(e).position)return null;if(t)return t(e);var n=e.offsetParent;return bt(e)===n&&(n=n.ownerDocument.body),n}function fn(e,t){var n=yt(e);if(It(e))return n;if(!Ot(e)){for(var r=Lt(e);r&&!Mt(r);){if(wt(r)&&!un(r))return r;r=Lt(r)}return n}for(var o=sn(e,t);o&&jt(o)&&un(o);)o=sn(o,t);return o&&Mt(o)&&un(o)&&!Tt(o)?n:o||function(e){for(var t=Lt(e);Ot(t)&&!Mt(t);){if(Tt(t))return t;if(It(t))return null;t=Lt(t)}return null}(e)||n}var dn=function(){var e,t=(e=Gt().m((function e(t){var n,r,o,i,a,c,l,u,s;return Gt().w((function(e){for(;;)switch(e.n){case 0:return n=this.getOffsetParent||fn,r=this.getDimensions,e.n=1,r(t.floating);case 1:return o=e.v,i=ln,a=t.reference,e.n=2,n(t.floating);case 2:return c=e.v,l=t.strategy,u=i(a,c,l),s={x:0,y:0,width:o.width,height:o.height},e.a(2,{reference:u,floating:s})}}),e,this)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){qt(i,r,o,a,c,"next",e)}function c(e){qt(i,r,o,a,c,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),pn={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){var t=e.elements,n=e.rect,r=e.offsetParent,o="fixed"===e.strategy,i=bt(r),a=!!t&&It(t.floating);if(r===i||a&&o)return n;var c={scrollLeft:0,scrollTop:0},l=Se(1),u=Se(0),s=Ot(r);if((s||!s&&!o)&&(("body"!==gt(r)||Et(i))&&(c=Ft(r)),Ot(r))){var f=tn(r);l=Qt(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}var d=!i||s||o?Se(0):rn(i,c,!0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+d.x,y:n.y*l.y-c.scrollTop*l.y+u.y+d.y}},getDocumentElement:bt,getClippingRect:function(e){var t=e.element,n=e.boundary,r=e.rootBoundary,o=e.strategy,i=[..."clippingAncestors"===n?It(t)?[]:function(e,t){var n=t.get(e);if(n)return n;for(var r=Wt(e,[],!1).filter((e=>wt(e)&&"body"!==gt(e))),o=null,i="fixed"===Nt(e).position,a=i?Lt(e):e;wt(a)&&!Mt(a);){var c=Nt(a),l=Tt(a);l||"fixed"!==c.position||(o=null),(i?!l&&!o:!l&&"static"===c.position&&o&&on.has(o.position)||Et(a)&&!l&&cn(e,a))?r=r.filter((e=>e!==a)):o=c,a=Lt(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],c=i.reduce(((e,n)=>{var r=an(t,n,o);return e.top=xe(r.top,e.top),e.right=Oe(r.right,e.right),e.bottom=Oe(r.bottom,e.bottom),e.left=xe(r.left,e.left),e}),an(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:fn,getElementRects:dn,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){var t=Xt(e);return{width:t.width,height:t.height}},getScale:Qt,isElement:wt,isRTL:function(e){return"rtl"===Nt(e).direction}};function vn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function hn(e,t,n,r){void 0===r&&(r={});var o=r,i=o.ancestorScroll,a=void 0===i||i,c=o.ancestorResize,l=void 0===c||c,u=o.elementResize,s=void 0===u?"function"==typeof ResizeObserver:u,f=o.layoutShift,d=void 0===f?"function"==typeof IntersectionObserver:f,p=o.animationFrame,v=void 0!==p&&p,h=Zt(e),m=a||l?[...h?Wt(h):[],...Wt(t)]:[];m.forEach((e=>{a&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)}));var g,y=h&&d?function(e,t){var n,r=null,o=bt(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(c,l){void 0===c&&(c=!1),void 0===l&&(l=1),i();var u=e.getBoundingClientRect(),s=u.left,f=u.top,d=u.width,p=u.height;if(c||t(),d&&p){var v={rootMargin:-Ee(f)+"px "+-Ee(o.clientWidth-(s+d))+"px "+-Ee(o.clientHeight-(f+p))+"px "+-Ee(s)+"px",threshold:xe(0,Oe(1,l))||1},h=!0;try{r=new IntersectionObserver(m,Kt(Kt({},v),{},{root:o.ownerDocument}))}catch(e){r=new IntersectionObserver(m,v)}r.observe(e)}function m(t){var r=t[0].intersectionRatio;if(r!==l){if(!h)return a();r?a(!1,r):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==r||vn(u,e.getBoundingClientRect())||a(),h=!1}}(!0),i}(h,n):null,b=-1,A=null;s&&(A=new ResizeObserver((e=>{var r,o,i=(r=e,o=1,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(r,o)||function(e,t){if(e){if("string"==typeof e)return Ht(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ht(e,t):void 0}}(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];i&&i.target===h&&A&&(A.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame((()=>{var e;null==(e=A)||e.observe(t)}))),n()})),h&&!v&&A.observe(h),A.observe(t));var w=v?tn(e):null;return v&&function t(){var r=tn(e);w&&!vn(w,r)&&n(),w=r,g=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach((e=>{a&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)})),null==y||y(),null==(e=A)||e.disconnect(),A=null,v&&cancelAnimationFrame(g)}}var mn=e=>({name:"arrow",options:e,fn(t){return at(et().m((function n(){var r,o,i,a,c,l,u,s,f,d,p,v,h,m,g,y,b,A,w,O,x,C,E,S,j,P,I,D,k,B,T,_,R,M,N;return et().w((function(n){for(;;)switch(n.n){case 0:if(r=t.x,o=t.y,i=t.placement,a=t.rects,c=t.platform,l=t.elements,u=t.middlewareData,s=De(e,t)||{},f=s.element,d=s.padding,p=void 0===d?0:d,null!=f){n.n=1;break}return n.a(2,{});case 1:return v=Ge(p),h={x:r,y:o},m=Ne(i),g=_e(m),n.n=2,c.getDimensions(f);case 2:return y=n.v,A=(b="y"===m)?"top":"left",w=b?"bottom":"right",O=b?"clientHeight":"clientWidth",x=a.reference[g]+a.reference[m]-h[m]-a.floating[g],C=h[m]-a.reference[m],n.n=3,null==c.getOffsetParent?void 0:c.getOffsetParent(f);case 3:if(E=n.v,S=E?E[O]:0,N=!S){n.n=5;break}return n.n=4,null==c.isElement?void 0:c.isElement(E);case 4:N=!n.v;case 5:if(!N){n.n=6;break}S=l.floating[O]||a.floating[g];case 6:return j=x/2-C/2,P=S/2-y[g]/2-1,I=Oe(v[A],P),D=Oe(v[w],P),k=I,B=S-y[g]-D,T=S/2-y[g]/2+j,_=Ie(k,T,B),R=!u.arrow&&null!=Be(i)&&T!==_&&a.reference[g]/2-(T<k?I:D)-y[g]/2<0,M=R?T<k?T-k:T-B:0,n.a(2,{[m]:h[m]+M,data:rt({[m]:_,centerOffset:T-_-M},R&&{alignmentOffset:M}),reset:R})}}),n)})))()}}),gn=(e,t,n)=>{var r=new Map,o=Kt({platform:pn},n),i=Kt(Kt({},o.platform),{},{_c:r});return lt(e,t,Kt(Kt({},o),{},{platform:i}))},yn=n(81824);function bn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function An(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bn(Object(n),!0).forEach((function(t){wn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wn(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function On(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return xn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Cn="undefined"!=typeof document?a.useLayoutEffect:function(){};function En(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;var n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!En(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){var i=o[r];if(!("_owner"===i&&e.$$typeof||En(e[i],t[i])))return!1}return!0}return e!=e&&t!=t}function Sn(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function jn(e,t){var n=Sn(e);return Math.round(t*n)/n}function Pn(e){var t=a.useRef(e);return Cn((()=>{t.current=e})),t}var In=(e,t)=>An(An({},function(e){return void 0===e&&(e=0),{name:"offset",options:e,fn(t){return at(et().m((function n(){var r,o,i,a,c,l,u;return et().w((function(n){for(;;)switch(n.n){case 0:return i=t.x,a=t.y,c=t.placement,l=t.middlewareData,n.n=1,vt(t,e);case 1:if(u=n.v,c!==(null==(r=l.offset)?void 0:r.placement)||null==(o=l.arrow)||!o.alignmentOffset){n.n=2;break}return n.a(2,{});case 2:return n.a(2,{x:i+u.x,y:a+u.y,data:rt(rt({},u),{},{placement:c})})}}),n)})))()}}}(e)),{},{options:[e,t]}),Dn=(e,t)=>An(An({},function(e){return void 0===e&&(e={}),{name:"shift",options:e,fn(t){return at(et().m((function n(){var r,o,i,a,c,l,u,s,f,d,p,v,h,m,g,y,b,A,w,O,x,C,E,S;return et().w((function(n){for(;;)switch(n.n){case 0:return r=t.x,o=t.y,i=t.placement,a=De(e,t),c=a.mainAxis,l=void 0===c||c,u=a.crossAxis,s=void 0!==u&&u,f=a.limiter,d=void 0===f?{fn:e=>({x:e.x,y:e.y})}:f,p=Je(a,Ze),v={x:r,y:o},n.n=1,ut(t,p);case 1:return h=n.v,m=Me(ke(i)),g=Te(m),y=v[g],b=v[m],l&&(A="y"===g?"bottom":"right",w=y+h["y"===g?"top":"left"],O=y-h[A],y=Ie(w,y,O)),s&&(x="y"===m?"bottom":"right",C=b+h["y"===m?"top":"left"],E=b-h[x],b=Ie(C,b,E)),S=d.fn(rt(rt({},t),{},{[g]:y,[m]:b})),n.a(2,rt(rt({},S),{},{data:{x:S.x-r,y:S.y-o,enabled:{[g]:l,[m]:s}}}))}}),n)})))()}}}(e)),{},{options:[e,t]}),kn=(e,t)=>An(An({},function(e){return void 0===e&&(e={}),{options:e,fn(t){var n=t.x,r=t.y,o=t.placement,i=t.rects,a=t.middlewareData,c=De(e,t),l=c.offset,u=void 0===l?0:l,s=c.mainAxis,f=void 0===s||s,d=c.crossAxis,p=void 0===d||d,v={x:n,y:r},h=Me(o),m=Te(h),g=v[m],y=v[h],b=De(u,t),A="number"==typeof b?{mainAxis:b,crossAxis:0}:rt({mainAxis:0,crossAxis:0},b);if(f){var w="y"===m?"height":"width",O=i.reference[m]-i.floating[w]+A.mainAxis,x=i.reference[m]+i.reference[w]-A.mainAxis;g<O?g=O:g>x&&(g=x)}if(p){var C,E,S="y"===m?"width":"height",j=pt.has(ke(o)),P=i.reference[h]-i.floating[S]+(j&&(null==(C=a.offset)?void 0:C[h])||0)+(j?0:A.crossAxis),I=i.reference[h]+i.reference[S]+(j?0:(null==(E=a.offset)?void 0:E[h])||0)-(j?A.crossAxis:0);y<P?y=P:y>I&&(y=I)}return{[m]:g,[h]:y}}}}(e)),{},{options:[e,t]}),Bn=(e,t)=>An(An({},function(e){return void 0===e&&(e={}),{name:"flip",options:e,fn(t){return at(et().m((function n(){var r,o,i,a,c,l,u,s,f,d,p,v,h,m,g,y,b,A,w,O,x,C,E,S,j,P,I,D,k,B,T,_,R,M,N,F,L,z,W,U;return et().w((function(n){for(;;)switch(n.n){case 0:if(i=t.placement,a=t.middlewareData,c=t.rects,l=t.initialPlacement,u=t.platform,s=t.elements,f=De(e,t),d=f.mainAxis,p=void 0===d||d,v=f.crossAxis,h=void 0===v||v,m=f.fallbackPlacements,g=f.fallbackStrategy,y=void 0===g?"bestFit":g,b=f.fallbackAxisSideDirection,A=void 0===b?"none":b,w=f.flipAlignment,O=void 0===w||w,x=Je(f,qe),null==(r=a.arrow)||!r.alignmentOffset){n.n=1;break}return n.a(2,{});case 1:return C=ke(i),E=Me(l),S=ke(l)===l,n.n=2,null==u.isRTL?void 0:u.isRTL(s.floating);case 2:return j=n.v,P=m||(S||!O?[Ye(l)]:Le(l)),I="none"!==A,!m&&I&&P.push(...Ke(l,O,A,j)),D=[l,...P],n.n=3,ut(t,x);case 3:if(k=n.v,B=[],T=(null==(o=a.flip)?void 0:o.overflows)||[],p&&B.push(k[C]),h&&(_=Fe(i,c,j),B.push(k[_[0]],k[_[1]])),T=[...T,{placement:i,overflows:B}],B.every((e=>e<=0))){n.n=8;break}if(N=((null==(R=a.flip)?void 0:R.index)||0)+1,!(F=D[N])){n.n=4;break}if("alignment"===h&&E!==Me(F)&&!T.every((e=>Me(e.placement)!==E||e.overflows[0]>0))){n.n=4;break}return n.a(2,{data:{index:N,overflows:T},reset:{placement:F}});case 4:if(L=null==(M=T.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:M.placement){n.n=7;break}U=y,n.n="bestFit"===U?5:"initialPlacement"===U?6:7;break;case 5:return W=null==(z=T.filter((e=>{if(I){var t=Me(e.placement);return t===E||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:z[0],W&&(L=W),n.a(3,7);case 6:return L=l,n.a(3,7);case 7:if(i===L){n.n=8;break}return n.a(2,{reset:{placement:L}});case 8:return n.a(2,{})}}),n)})))()}}}(e)),{},{options:[e,t]}),Tn=(e,t)=>An(An({},function(e){return void 0===e&&(e={}),{name:"size",options:e,fn(t){return at(et().m((function n(){var r,o,i,a,c,l,u,s,f,d,p,v,h,m,g,y,b,A,w,O,x,C,E,S,j,P,I,D,k,B,T,_,R,M;return et().w((function(n){for(;;)switch(n.n){case 0:return i=t.placement,a=t.rects,c=t.platform,l=t.elements,u=De(e,t),s=u.apply,f=void 0===s?()=>{}:s,d=Je(u,Qe),n.n=1,ut(t,d);case 1:if(p=n.v,v=ke(i),h=Be(i),m="y"===Me(i),g=a.floating,y=g.width,b=g.height,"top"!==v&&"bottom"!==v){n.n=7;break}return A=v,_=h,n.n=2,null==c.isRTL?void 0:c.isRTL(l.floating);case 2:if(!n.v){n.n=3;break}R="start",n.n=4;break;case 3:R="end";case 4:if(_!==R){n.n=5;break}M="left",n.n=6;break;case 5:M="right";case 6:w=M,n.n=8;break;case 7:w=v,A="end"===h?"top":"bottom";case 8:return O=b-p.top-p.bottom,x=y-p.left-p.right,C=Oe(b-p[A],O),E=Oe(y-p[w],x),S=!t.middlewareData.shift,j=C,P=E,null!=(r=t.middlewareData.shift)&&r.enabled.x&&(P=x),null!=(o=t.middlewareData.shift)&&o.enabled.y&&(j=O),S&&!h&&(I=xe(p.left,0),D=xe(p.right,0),k=xe(p.top,0),B=xe(p.bottom,0),m?P=y-2*(0!==I||0!==D?I+D:xe(p.left,p.right)):j=b-2*(0!==k||0!==B?k+B:xe(p.top,p.bottom))),n.n=9,f(rt(rt({},t),{},{availableWidth:P,availableHeight:j}));case 9:return n.n=10,c.getDimensions(l.floating);case 10:if(T=n.v,y===T.width&&b===T.height){n.n=11;break}return n.a(2,{reset:{rects:!0}});case 11:return n.a(2,{})}}),n)})))()}}}(e)),{},{options:[e,t]}),_n=(e,t)=>An(An({},function(e){return void 0===e&&(e={}),{name:"hide",options:e,fn(t){return at(et().m((function n(){var r,o,i,a,c,l,u,s,f,d;return et().w((function(n){for(;;)switch(n.n){case 0:r=t.rects,o=De(e,t),i=o.strategy,a=void 0===i?"referenceHidden":i,c=Je(o,Xe),d=a,n.n="referenceHidden"===d?1:"escaped"===d?3:5;break;case 1:return n.n=2,ut(t,rt(rt({},c),{},{elementContext:"reference"}));case 2:return l=n.v,u=ft(l,r.reference),n.a(2,{data:{referenceHiddenOffsets:u,referenceHidden:dt(u)}});case 3:return n.n=4,ut(t,rt(rt({},c),{},{altBoundary:!0}));case 4:return s=n.v,f=ft(s,r.floating),n.a(2,{data:{escapedOffsets:f,escaped:dt(f)}});case 5:return n.a(2,{});case 6:return n.a(2)}}),n)})))()}}}(e)),{},{options:[e,t]}),Rn=(e,t)=>An(An({},(e=>({name:"arrow",options:e,fn(t){var n,r="function"==typeof e?e(t):e,o=r.element,i=r.padding;return o&&(n=o,{}.hasOwnProperty.call(n,"current"))?null!=o.current?mn({element:o.current,padding:i}).fn(t):{}:o?mn({element:o,padding:i}).fn(t):{}}}))(e)),{},{options:[e,t]}),Mn=["children","width","height"];function Nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nn(Object(n),!0).forEach((function(t){Ln(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ln(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zn=a.forwardRef(((e,t)=>{var n=e.children,r=e.width,o=void 0===r?10:r,i=e.height,a=void 0===i?5:i,c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Mn);return(0,_.jsx)(B.sG.svg,Fn(Fn({},c),{},{ref:t,width:o,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,_.jsx)("polygon",{points:"0,0 30,0 15,10"})}))}));zn.displayName="Arrow";var Wn=zn,Un=n(84881),Hn=["__scopePopper","virtualRef"],$n=["__scopePopper","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","onPlaced"],Kn=["__scopePopper"];function Yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yn(Object(n),!0).forEach((function(t){Vn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vn(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Xn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Zn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Qn="Popper",Jn=Xn((0,k.A)(Qn),2),er=Jn[0],tr=Jn[1],nr=Xn(er(Qn),2),rr=nr[0],or=nr[1],ir=e=>{var t=e.__scopePopper,n=e.children,r=Xn(a.useState(null),2),o=r[0],i=r[1];return(0,_.jsx)(rr,{scope:t,anchor:o,onAnchorChange:i,children:n})};ir.displayName=Qn;var ar="PopperAnchor",cr=a.forwardRef(((e,t)=>{var n=e.__scopePopper,r=e.virtualRef,o=qn(e,Hn),i=or(ar,n),c=a.useRef(null),l=(0,D.s)(t,c),u=a.useRef(null);return a.useEffect((()=>{var e=u.current;u.current=(null==r?void 0:r.current)||c.current,e!==u.current&&i.onAnchorChange(u.current)})),r?null:(0,_.jsx)(B.sG.div,Gn(Gn({},o),{},{ref:l}))}));cr.displayName=ar;var lr="PopperContent",ur=Xn(er(lr),2),sr=ur[0],fr=ur[1],dr=a.forwardRef(((e,t)=>{var n,r,o,i,c,l,u,s,f=e.__scopePopper,d=e.side,p=void 0===d?"bottom":d,v=e.sideOffset,h=void 0===v?0:v,m=e.align,g=void 0===m?"center":m,y=e.alignOffset,b=void 0===y?0:y,A=e.arrowPadding,w=void 0===A?0:A,O=e.avoidCollisions,x=void 0===O||O,C=e.collisionBoundary,E=void 0===C?[]:C,S=e.collisionPadding,j=void 0===S?0:S,P=e.sticky,I=void 0===P?"partial":P,k=e.hideWhenDetached,R=void 0!==k&&k,M=e.updatePositionStrategy,N=void 0===M?"optimized":M,F=e.onPlaced,L=qn(e,$n),z=or(lr,f),W=Xn(a.useState(null),2),U=W[0],H=W[1],$=(0,D.s)(t,(e=>H(e))),K=Xn(a.useState(null),2),Y=K[0],G=K[1],V=(0,Un.X)(Y),q=null!==(n=null==V?void 0:V.width)&&void 0!==n?n:0,X=null!==(r=null==V?void 0:V.height)&&void 0!==r?r:0,Z=p+("center"!==g?"-"+g:""),Q="number"==typeof j?j:Gn({top:0,right:0,bottom:0,left:0},j),J=Array.isArray(E)?E:[E],ee=J.length>0,te={padding:Q,boundary:J.filter(mr),altBoundary:ee},ne=function(e){void 0===e&&(e={});var t=e,n=t.placement,r=void 0===n?"bottom":n,o=t.strategy,i=void 0===o?"absolute":o,c=t.middleware,l=void 0===c?[]:c,u=t.platform,s=t.elements,f=void 0===s?{}:s,d=f.reference,p=f.floating,v=t.transform,h=void 0===v||v,m=t.whileElementsMounted,g=t.open,y=On(a.useState({x:0,y:0,strategy:i,placement:r,middlewareData:{},isPositioned:!1}),2),b=y[0],A=y[1],w=On(a.useState(l),2),O=w[0],x=w[1];En(O,l)||x(l);var C=On(a.useState(null),2),E=C[0],S=C[1],j=On(a.useState(null),2),P=j[0],I=j[1],D=a.useCallback((e=>{e!==_.current&&(_.current=e,S(e))}),[]),k=a.useCallback((e=>{e!==R.current&&(R.current=e,I(e))}),[]),B=d||E,T=p||P,_=a.useRef(null),R=a.useRef(null),M=a.useRef(b),N=null!=m,F=Pn(m),L=Pn(u),z=Pn(g),W=a.useCallback((()=>{if(_.current&&R.current){var e={placement:r,strategy:i,middleware:O};L.current&&(e.platform=L.current),gn(_.current,R.current,e).then((e=>{var t=An(An({},e),{},{isPositioned:!1!==z.current});U.current&&!En(M.current,t)&&(M.current=t,yn.flushSync((()=>{A(t)})))}))}}),[O,r,i,L,z]);Cn((()=>{!1===g&&M.current.isPositioned&&(M.current.isPositioned=!1,A((e=>An(An({},e),{},{isPositioned:!1}))))}),[g]);var U=a.useRef(!1);Cn((()=>(U.current=!0,()=>{U.current=!1})),[]),Cn((()=>{if(B&&(_.current=B),T&&(R.current=T),B&&T){if(F.current)return F.current(B,T,W);W()}}),[B,T,W,F,N]);var H=a.useMemo((()=>({reference:_,floating:R,setReference:D,setFloating:k})),[D,k]),$=a.useMemo((()=>({reference:B,floating:T})),[B,T]),K=a.useMemo((()=>{var e={position:i,left:0,top:0};if(!$.floating)return e;var t=jn($.floating,b.x),n=jn($.floating,b.y);return h?An(An({},e),{},{transform:"translate("+t+"px, "+n+"px)"},Sn($.floating)>=1.5&&{willChange:"transform"}):{position:i,left:t,top:n}}),[i,h,$.floating,b.x,b.y]);return a.useMemo((()=>An(An({},b),{},{update:W,refs:H,elements:$,floatingStyles:K})),[b,W,H,$,K])}({strategy:"fixed",placement:Z,whileElementsMounted:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return hn(...t,{animationFrame:"always"===N})},elements:{reference:z.anchor},middleware:[In({mainAxis:h+X,alignmentAxis:b}),x&&Dn(Gn({mainAxis:!0,crossAxis:!1,limiter:"partial"===I?kn():void 0},te)),x&&Bn(Gn({},te)),Tn(Gn(Gn({},te),{},{apply:e=>{var t=e.elements,n=e.rects,r=e.availableWidth,o=e.availableHeight,i=n.reference,a=i.width,c=i.height,l=t.floating.style;l.setProperty("--radix-popper-available-width","".concat(r,"px")),l.setProperty("--radix-popper-available-height","".concat(o,"px")),l.setProperty("--radix-popper-anchor-width","".concat(a,"px")),l.setProperty("--radix-popper-anchor-height","".concat(c,"px"))}})),Y&&Rn({element:Y,padding:w}),gr({arrowWidth:q,arrowHeight:X}),R&&_n(Gn({strategy:"referenceHidden"},te))]}),re=ne.refs,oe=ne.floatingStyles,ie=ne.placement,ae=ne.isPositioned,ce=ne.middlewareData,le=Xn(yr(ie),2),ue=le[0],se=le[1],fe=T(F);(0,ve.N)((()=>{ae&&(null==fe||fe())}),[ae,fe]);var de=null===(o=ce.arrow)||void 0===o?void 0:o.x,pe=null===(i=ce.arrow)||void 0===i?void 0:i.y,he=0!==(null===(c=ce.arrow)||void 0===c?void 0:c.centerOffset),me=Xn(a.useState(),2),ge=me[0],ye=me[1];return(0,ve.N)((()=>{U&&ye(window.getComputedStyle(U).zIndex)}),[U]),(0,_.jsx)("div",{ref:re.setFloating,"data-radix-popper-content-wrapper":"",style:Gn(Gn({},oe),{},{transform:ae?oe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[null===(l=ce.transformOrigin)||void 0===l?void 0:l.x,null===(u=ce.transformOrigin)||void 0===u?void 0:u.y].join(" ")},(null===(s=ce.hide)||void 0===s?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}),dir:e.dir,children:(0,_.jsx)(sr,{scope:f,placedSide:ue,onArrowChange:G,arrowX:de,arrowY:pe,shouldHideArrow:he,children:(0,_.jsx)(B.sG.div,Gn(Gn({"data-side":ue,"data-align":se},L),{},{ref:$,style:Gn(Gn({},L.style),{},{animation:ae?void 0:"none"})}))})})}));dr.displayName=lr;var pr="PopperArrow",vr={top:"bottom",right:"left",bottom:"top",left:"right"},hr=a.forwardRef((function(e,t){var n=e.__scopePopper,r=qn(e,Kn),o=fr(pr,n),i=vr[o.placedSide];return(0,_.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,_.jsx)(Wn,Gn(Gn({},r),{},{ref:t,style:Gn(Gn({},r.style),{},{display:"block"})}))})}));function mr(e){return null!==e}hr.displayName=pr;var gr=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a,c=t.placement,l=t.rects,u=t.middlewareData,s=0!==(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset),f=s?0:e.arrowWidth,d=s?0:e.arrowHeight,p=Xn(yr(c),2),v=p[0],h={start:"0%",center:"50%",end:"100%"}[p[1]],m=(null!==(r=null===(o=u.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+f/2,g=(null!==(i=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+d/2,y="",b="";return"bottom"===v?(y=s?h:"".concat(m,"px"),b="".concat(-d,"px")):"top"===v?(y=s?h:"".concat(m,"px"),b="".concat(l.floating.height+d,"px")):"right"===v?(y="".concat(-d,"px"),b=s?h:"".concat(g,"px")):"left"===v&&(y="".concat(l.floating.width+d,"px"),b=s?h:"".concat(g,"px")),{data:{x:y,y:b}}}});function yr(e){var t=Xn(e.split("-"),2),n=t[0],r=t[1];return[n,void 0===r?"center":r]}var br=ir,Ar=cr,wr=dr,Or=hr,xr=["container"];function Cr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Er(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cr(Object(n),!0).forEach((function(t){Sr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sr(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Pr=a.forwardRef(((e,t)=>{var n,r,o,i=e.container,c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,xr),l=(r=a.useState(!1),o=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(r,o)||function(e,t){if(e){if("string"==typeof e)return jr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jr(e,t):void 0}}(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=l[0],s=l[1];(0,ve.N)((()=>s(!0)),[]);var f=i||u&&(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body);return f?yn.createPortal((0,_.jsx)(B.sG.div,Er(Er({},c),{},{ref:t})),f):null}));function Ir(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Dr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Dr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Pr.displayName="Portal";var kr=e=>{var t,n,r,o,i=e.present,c=e.children,l=function(e){var t=Ir(a.useState(),2),n=t[0],r=t[1],o=a.useRef(null),i=a.useRef(e),c=a.useRef("none"),l=Ir(function(e,t){return a.useReducer(((e,n)=>{var r=t[e][n];return null!=r?r:e}),e)}(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),2),u=l[0],s=l[1];return a.useEffect((()=>{var e=Br(o.current);c.current="mounted"===u?e:"none"}),[u]),(0,ve.N)((()=>{var t=o.current,n=i.current;if(n!==e){var r=c.current,a=Br(t);e?s("MOUNT"):"none"===a||"none"===(null==t?void 0:t.display)?s("UNMOUNT"):s(n&&r!==a?"ANIMATION_OUT":"UNMOUNT"),i.current=e}}),[e,s]),(0,ve.N)((()=>{if(n){var e,t,r=null!==(e=n.ownerDocument.defaultView)&&void 0!==e?e:window,a=e=>{var a=Br(o.current).includes(CSS.escape(e.animationName));if(e.target===n&&a&&(s("ANIMATION_END"),!i.current)){var c=n.style.animationFillMode;n.style.animationFillMode="forwards",t=r.setTimeout((()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=c)}))}},l=e=>{e.target===n&&(c.current=Br(o.current))};return n.addEventListener("animationstart",l),n.addEventListener("animationcancel",a),n.addEventListener("animationend",a),()=>{r.clearTimeout(t),n.removeEventListener("animationstart",l),n.removeEventListener("animationcancel",a),n.removeEventListener("animationend",a)}}s("ANIMATION_END")}),[n,s]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:a.useCallback((e=>{o.current=e?getComputedStyle(e):null,r(e)}),[])}}(i),u="function"==typeof c?c({present:l.isPresent}):a.Children.only(c),s=(0,D.s)(l.ref,(t=u,o=null===(n=Object.getOwnPropertyDescriptor(t.props,"ref"))||void 0===n?void 0:n.get,o&&"isReactWarning"in o&&o.isReactWarning?t.ref:(o=null===(r=Object.getOwnPropertyDescriptor(t,"ref"))||void 0===r?void 0:r.get)&&"isReactWarning"in o&&o.isReactWarning?t.props.ref:t.props.ref||t.ref));return"function"==typeof c||l.isPresent?a.cloneElement(u,{ref:s}):null};function Br(e){return(null==e?void 0:e.animationName)||"none"}kr.displayName="Presence";var Tr=n(41050),_r=n(92847),Rr=n(96763),Mr=new WeakMap,Nr=new WeakMap,Fr={},Lr=0,zr=function(e){return e&&(e.host||zr(e.parentNode))},Wr=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=zr(t);return n&&e.contains(n)?n:(Rr.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);Fr[n]||(Fr[n]=new WeakMap);var i=Fr[n],a=[],c=new Set,l=new Set(o),u=function(e){e&&!c.has(e)&&(c.add(e),u(e.parentNode))};o.forEach(u);var s=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(c.has(e))s(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(Mr.get(e)||0)+1,u=(i.get(e)||0)+1;Mr.set(e,l),i.set(e,u),a.push(e),1===l&&o&&Nr.set(e,!0),1===u&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){Rr.error("aria-hidden: cannot operate on ",e,t)}}))};return s(t),c.clear(),Lr++,function(){a.forEach((function(e){var t=Mr.get(e)-1,o=i.get(e)-1;Mr.set(e,t),i.set(e,o),t||(Nr.has(e)||e.removeAttribute(r),Nr.delete(e)),o||e.removeAttribute(n)})),--Lr||(Mr=new WeakMap,Mr=new WeakMap,Nr=new WeakMap,Fr={})}}(r,o,n,"aria-hidden")):function(){return null}},Ur=function(){return Ur=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ur.apply(this,arguments)};function Hr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var $r="right-scroll-bar-position",Kr="width-before-scroll-bar";function Yr(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Gr="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,Vr=new WeakMap;function qr(e){return e}var Xr=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=qr);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=Ur({async:!0,ssr:!1},e),t}(),Zr=function(){},Qr=a.forwardRef((function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:Zr,onWheelCapture:Zr,onTouchMoveCapture:Zr}),o=r[0],i=r[1],c=e.forwardProps,l=e.children,u=e.className,s=e.removeScrollBar,f=e.enabled,d=e.shards,p=e.sideCar,v=e.noRelative,h=e.noIsolation,m=e.inert,g=e.allowPinchZoom,y=e.as,b=void 0===y?"div":y,A=e.gapMode,w=Hr(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=p,x=function(e,t){var n,r,o,i=(n=t||null,r=function(t){return e.forEach((function(e){return Yr(e,t)}))},(o=(0,a.useState)((function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}}))[0]).callback=r,o.facade);return Gr((function(){var t=Vr.get(i);if(t){var n=new Set(t),r=new Set(e),o=i.current;n.forEach((function(e){r.has(e)||Yr(e,null)})),r.forEach((function(e){n.has(e)||Yr(e,o)}))}Vr.set(i,e)}),[e]),i}([n,t]),C=Ur(Ur({},w),o);return a.createElement(a.Fragment,null,f&&a.createElement(O,{sideCar:Xr,removeScrollBar:s,shards:d,noRelative:v,noIsolation:h,inert:m,setCallbacks:i,allowPinchZoom:!!g,lockRef:n,gapMode:A}),c?a.cloneElement(a.Children.only(l),Ur(Ur({},C),{ref:x})):a.createElement(b,Ur({},C,{className:u,ref:x}),l))}));Qr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Qr.classNames={fullWidth:Kr,zeroRight:$r};var Jr=function(e){var t=e.sideCar,n=Hr(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return a.createElement(r,Ur({},n))};Jr.isSideCarExport=!0;var eo=function(){var e=0,t=null;return{add:function(r){var o,i;0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=n.nc;return t&&e.setAttribute("nonce",t),e}())&&(i=r,(o=t).styleSheet?o.styleSheet.cssText=i:o.appendChild(document.createTextNode(i)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},to=function(){var e,t=(e=eo(),function(t,n){a.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},no={left:0,top:0,right:0,gap:0},ro=function(e){return parseInt(e||"",10)||0},oo=to(),io="data-scroll-locked",ao=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,c=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(c,"px ").concat(r,";\n }\n body[").concat(io,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(c,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat($r," {\n right: ").concat(c,"px ").concat(r,";\n }\n \n .").concat(Kr," {\n margin-right: ").concat(c,"px ").concat(r,";\n }\n \n .").concat($r," .").concat($r," {\n right: 0 ").concat(r,";\n }\n \n .").concat(Kr," .").concat(Kr," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(io,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(c,"px;\n }\n")},co=function(){var e=parseInt(document.body.getAttribute(io)||"0",10);return isFinite(e)?e:0},lo=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;a.useEffect((function(){return document.body.setAttribute(io,(co()+1).toString()),function(){var e=co()-1;e<=0?document.body.removeAttribute(io):document.body.setAttribute(io,e.toString())}}),[]);var i=a.useMemo((function(){return function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return no;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[ro(n),ro(r),ro(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}}(o)}),[o]);return a.createElement(oo,{styles:ao(i,!t,o,n?"":"!important")})},uo=!1;if("undefined"!=typeof window)try{var so=Object.defineProperty({},"passive",{get:function(){return uo=!0,!0}});window.addEventListener("test",so,so),window.removeEventListener("test",so,so)}catch(e){uo=!1}var fo=!!uo&&{passive:!1},po=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},vo=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),ho(e,r)){var o=mo(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ho=function(e,t){return"v"===e?function(e){return po(e,"overflowY")}(t):function(e){return po(e,"overflowX")}(t)},mo=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},go=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},yo=function(e){return[e.deltaX,e.deltaY]},bo=function(e){return e&&"current"in e?e.current:e},Ao=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},wo=0,Oo=[];function xo(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Co,Eo=(Co=function(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(wo++)[0],i=a.useState(to)[0],c=a.useRef(e);a.useEffect((function(){c.current=e}),[e]),a.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(bo),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=a.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!c.current.allowPinchZoom;var o,i=go(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-i[0],u="deltaY"in e?e.deltaY:a[1]-i[1],s=e.target,f=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===f&&"range"===s.type)return!1;var d=vo(f,s);if(!d)return!0;if(d?o=f:(o="v"===f?"h":"v",d=vo(f,s)),!d)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=o*r,a=n.target,c=t.contains(a),l=!1,u=i>0,s=0,f=0;do{if(!a)break;var d=mo(e,a),p=d[0],v=d[1]-d[2]-o*p;(p||v)&&ho(e,a)&&(s+=v,f+=p);var h=a.parentNode;a=h&&h.nodeType===Node.DOCUMENT_FRAGMENT_NODE?h.host:h}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(u&&(Math.abs(s)<1||!1)||!u&&(Math.abs(f)<1||!1))&&(l=!0),l}(p,t,e,"h"===p?l:u)}),[]),u=a.useCallback((function(e){var n=e;if(Oo.length&&Oo[Oo.length-1]===i){var r="deltaY"in n?yo(n):go(n),o=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var a=(c.current.shards||[]).map(bo).filter(Boolean).filter((function(e){return e.contains(n.target)}));(a.length>0?l(n,a[0]):!c.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),s=a.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:xo(r)};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),f=a.useCallback((function(e){n.current=go(e),r.current=void 0}),[]),d=a.useCallback((function(t){s(t.type,yo(t),t.target,l(t,e.lockRef.current))}),[]),p=a.useCallback((function(t){s(t.type,go(t),t.target,l(t,e.lockRef.current))}),[]);a.useEffect((function(){return Oo.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",u,fo),document.addEventListener("touchmove",u,fo),document.addEventListener("touchstart",f,fo),function(){Oo=Oo.filter((function(e){return e!==i})),document.removeEventListener("wheel",u,fo),document.removeEventListener("touchmove",u,fo),document.removeEventListener("touchstart",f,fo)}}),[]);var v=e.removeScrollBar,h=e.inert;return a.createElement(a.Fragment,null,h?a.createElement(i,{styles:Ao(o)}):null,v?a.createElement(lo,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},Xr.useMedium(Co),Jr),So=a.forwardRef((function(e,t){return a.createElement(Qr,Ur({},e,{ref:t,sideCar:Eo}))}));So.classNames=Qr.classNames;var jo=So,Po=["__scopePopover"],Io=["__scopePopover"],Do=["forceMount"],ko=["__scopePopover","trapFocus","onOpenAutoFocus","onCloseAutoFocus","disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside"],Bo=["__scopePopover"],To=["__scopePopover"];function _o(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ro(Object(n),!0).forEach((function(t){No(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ro(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function No(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Lo(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lo(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var zo="Popover",Wo=Fo((0,k.A)(zo,[tr]),2),Uo=Wo[0],Ho=(Wo[1],tr()),$o=Fo(Uo(zo),2),Ko=$o[0],Yo=$o[1],Go=e=>{var t=e.__scopePopover,n=e.children,r=e.open,o=e.defaultOpen,i=e.onOpenChange,c=e.modal,l=void 0!==c&&c,u=Ho(t),s=a.useRef(null),f=Fo(a.useState(!1),2),d=f[0],p=f[1],v=Fo((0,_r.i)({prop:r,defaultProp:null!=o&&o,onChange:i,caller:zo}),2),h=v[0],m=v[1];return(0,_.jsx)(br,Mo(Mo({},u),{},{children:(0,_.jsx)(Ko,{scope:t,contentId:ye(),triggerRef:s,open:h,onOpenChange:m,onOpenToggle:a.useCallback((()=>m((e=>!e))),[m]),hasCustomAnchor:d,onCustomAnchorAdd:a.useCallback((()=>p(!0)),[]),onCustomAnchorRemove:a.useCallback((()=>p(!1)),[]),modal:l,children:n})}))};Go.displayName=zo;var Vo="PopoverAnchor";a.forwardRef(((e,t)=>{var n=e.__scopePopover,r=_o(e,Po),o=Yo(Vo,n),i=Ho(n),c=o.onCustomAnchorAdd,l=o.onCustomAnchorRemove;return a.useEffect((()=>(c(),()=>l())),[c,l]),(0,_.jsx)(Ar,Mo(Mo(Mo({},i),r),{},{ref:t}))})).displayName=Vo;var qo="PopoverTrigger",Xo=a.forwardRef(((e,t)=>{var n=e.__scopePopover,r=_o(e,Io),o=Yo(qo,n),i=Ho(n),a=(0,D.s)(t,o.triggerRef),c=(0,_.jsx)(B.sG.button,Mo(Mo({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ui(o.open)},r),{},{ref:a,onClick:(0,I.mK)(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?c:(0,_.jsx)(Ar,Mo(Mo({asChild:!0},i),{},{children:c}))}));Xo.displayName=qo;var Zo="PopoverPortal",Qo=Fo(Uo(Zo,{forceMount:void 0}),2),Jo=Qo[0],ei=Qo[1],ti=e=>{var t=e.__scopePopover,n=e.forceMount,r=e.children,o=e.container,i=Yo(Zo,t);return(0,_.jsx)(Jo,{scope:t,forceMount:n,children:(0,_.jsx)(kr,{present:n||i.open,children:(0,_.jsx)(Pr,{asChild:!0,container:o,children:r})})})};ti.displayName=Zo;var ni="PopoverContent",ri=a.forwardRef(((e,t)=>{var n=ei(ni,e.__scopePopover),r=e.forceMount,o=void 0===r?n.forceMount:r,i=_o(e,Do),a=Yo(ni,e.__scopePopover);return(0,_.jsx)(kr,{present:o||a.open,children:a.modal?(0,_.jsx)(ii,Mo(Mo({},i),{},{ref:t})):(0,_.jsx)(ai,Mo(Mo({},i),{},{ref:t}))})}));ri.displayName=ni;var oi=(0,Tr.TL)("PopoverContent.RemoveScroll"),ii=a.forwardRef(((e,t)=>{var n=Yo(ni,e.__scopePopover),r=a.useRef(null),o=(0,D.s)(t,r),i=a.useRef(!1);return a.useEffect((()=>{var e=r.current;if(e)return Wr(e)}),[]),(0,_.jsx)(jo,{as:oi,allowPinchZoom:!0,children:(0,_.jsx)(ci,Mo(Mo({},e),{},{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,I.mK)(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),i.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:(0,I.mK)(e.onPointerDownOutside,(e=>{var t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;i.current=r}),{checkForDefaultPrevented:!1}),onFocusOutside:(0,I.mK)(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1})}))})})),ai=a.forwardRef(((e,t)=>{var n=Yo(ni,e.__scopePopover),r=a.useRef(!1),o=a.useRef(!1);return(0,_.jsx)(ci,Mo(Mo({},e),{},{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,a;null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{var i,a;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));var c=t.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(c))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}}))})),ci=a.forwardRef(((e,t)=>{var n=e.__scopePopover,r=e.trapFocus,o=e.onOpenAutoFocus,i=e.onCloseAutoFocus,c=e.disableOutsidePointerEvents,l=e.onEscapeKeyDown,u=e.onPointerDownOutside,s=e.onFocusOutside,f=e.onInteractOutside,d=_o(e,ko),p=Yo(ni,n),v=Ho(n);return a.useEffect((()=>{var e,t,n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:V()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:V()),G++,()=>{1===G&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),G--}}),[]),(0,_.jsx)(ae,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,_.jsx)($,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:f,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:s,onDismiss:()=>p.onOpenChange(!1),children:(0,_.jsx)(wr,Mo(Mo(Mo({"data-state":ui(p.open),role:"dialog",id:p.contentId},v),d),{},{ref:t,style:Mo(Mo({},d.style),{"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"})}))})})})),li="PopoverClose";function ui(e){return e?"open":"closed"}a.forwardRef(((e,t)=>{var n=e.__scopePopover,r=_o(e,Bo),o=Yo(li,n);return(0,_.jsx)(B.sG.button,Mo(Mo({type:"button"},r),{},{ref:t,onClick:(0,I.mK)(e.onClick,(()=>o.onOpenChange(!1)))}))})).displayName=li,a.forwardRef(((e,t)=>{var n=e.__scopePopover,r=_o(e,To),o=Ho(n);return(0,_.jsx)(Or,Mo(Mo(Mo({},o),r),{},{ref:t}))})).displayName="PopoverArrow";var si=Go,fi=Xo,di=ti,pi=ri,vi=n(85072),hi=n.n(vi),mi=n(97825),gi=n.n(mi),yi=n(55056),bi=n.n(yi),Ai=n(10540),wi=n.n(Ai),Oi=n(41113),xi=n.n(Oi),Ci=n(12499),Ei={};Ei.styleTagTransform=xi(),Ei.setAttributes=bi(),Ei.insert=function(e){var t=document.querySelector("head"),n=window._lastElementInsertedByStyleLoader;n?n.nextSibling?t.insertBefore(e,n.nextSibling):t.appendChild(e):t.insertBefore(e,t.firstChild),window._lastElementInsertedByStyleLoader=e},Ei.domAPI=gi(),Ei.insertStyleElement=wi(),hi()(Ci.A,Ei),Ci.A&&Ci.A.locals&&Ci.A.locals;var Si=n(30115),ji=n.n(Si);function Pi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ii(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ii(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ii(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Di(){return Di=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Di.apply(null,arguments)}function ki(e){var t,n=window.dash_component_api.useDashContext(),r=window.dash_component_api.ExternalWrapper;if("object"==typeof e.label)return l().createElement(r,{component:e.label,componentPath:[...n.componentPath,e.index]});var o="".concat(null!==(t=e.label)&&void 0!==t?t:e.value);return l().createElement("span",{title:e.title},o)}var Bi=e=>{var t=e.option,n=e.isSelected,r=e.onClick,o=e.style,i=e.index;return l().createElement("label",{className:"dash-dropdown-option ".concat(n?"selected":""),role:"option","aria-selected":n,style:o,title:t.title},l().createElement("input",{type:"checkbox",checked:n,value:"boolean"==typeof t.value?"".concat(t.value):t.value,disabled:!!t.disabled,onChange:()=>r(t),readOnly:!0,className:"dash-dropdown-option-checkbox"}),l().createElement("span",{className:"dash-dropdown-option-text"},l().createElement(ki,Di({},t,{index:i}))))},Ti=e=>{var t=e.id,n=e.className,c=e.closeOnSelect,s=e.clearable,f=e.disabled,d=e.maxHeight,p=e.multi,h=e.options,m=e.optionHeight,g=e.setProps,A=e.searchable,O=e.search_value,x=e.style,E=e.value,j=Pi((0,a.useState)(),2),I=j[0],D=j[1],k=Pi((0,a.useState)(!1),2),B=k[0],T=k[1],_=Pi((0,a.useState)([]),2),R=_[0],M=_[1],N=(0,a.useRef)([]),F=(0,a.useRef)(null),L=window.dash_component_api.useDashContext().useLoading();N&&ji()(h,N.current)||(N.current=h);var z=(0,a.useMemo)((()=>function(e,t,n){var r=(0,b.s)(e),o=["value"],i=!1,a=!1;if(r=Array.isArray(r)?r.map((e=>(e.search&&(a=!0),l().isValidElement(e.label)&&(i=!0),e))):r,i||o.push("label"),a&&o.push("search"),!t||!n)return{sanitizedOptions:r||[],filteredOptions:r||[]};var c=new y("value");return c.searchIndex=new v,c.indexStrategy=new u,c.tokenizer=w,o.forEach((e=>{c.addIndex(e)})),r&&r.length>0&&c.addDocuments(r),{sanitizedOptions:r||[],filteredOptions:c.search(n)||[]}}(N.current,!!A,O)),[N.current,A,O]),W=z.sanitizedOptions,U=z.filteredOptions,H=(0,a.useMemo)((()=>E instanceof Array?E:(0,r.A)(E)?[]:[E]),[E]),$=(0,a.useCallback)((e=>{var t=H.includes(e.value);if(!1!==c&&T(!1),p){var n;if(t){if(!(s||H.length>1))return;n=H.filter((t=>t!==e.value))}else n=[...H,e.value];g({value:n})}else{var r;if(t){if(!s)return;r=null}else r=e.value;g({value:r})}}),[p,s,c,H]),K=(0,a.useCallback)((e=>g({search_value:e})),[]),Y=(0,a.useCallback)((e=>{if(e.currentTarget instanceof HTMLElement){var t,n=e.currentTarget.parentElement;null==n||null===(t=n.querySelector("input"))||void 0===t||t.focus()}g({search_value:void 0})}),[]);(0,a.useEffect)((()=>{if(!(O||(0,r.A)(W)||I===W||(0,r.A)(E)||(0,o.A)(E))){var e=W.map((e=>e.value));if(Array.isArray(E)){if(p){var t=E.filter((t=>!e.includes(t)));t.length&&g({value:(0,i.A)(t,E)})}}else e.includes(E)||g({value:null});D(W)}}),[W,I,p,E]);var G=(0,a.useMemo)((()=>H.map(((e,t)=>{var n=W.find((t=>t.value===e));return l().createElement(l().Fragment,{key:"".concat(null==n?void 0:n.value,"-").concat(t)},n&&l().createElement(ki,Di({},n,{index:t})),t===H.length-1?"":", ")}))),[W,H]),V=(0,a.useMemo)((()=>!!s||!H.every((e=>R.some((t=>t.value===e))))),[s,H,R,O]),q=(0,a.useCallback)((e=>{$(e)}),[$]),X=(0,a.useCallback)((()=>{g({value:p?[]:null})}),[p]),Z=(0,a.useCallback)((()=>{if(p){var e=H.concat(R.filter((e=>!H.includes(e.value))).map((e=>e.value)));g({value:e})}c&&T(!1)}),[p,R,H,c]),Q=(0,a.useCallback)((()=>{if(p){var e=H.filter((e=>!R.some((t=>t.value===e))));g({value:e})}c&&T(!1)}),[p,R,H,c]);(0,a.useEffect)((()=>{if(B){var e=[...U].sort(((e,t)=>{var n=H.includes(e.value),r=H.includes(t.value);return n&&!r?-1:!n&&r?1:0}));M(e)}}),[U,B]);var J=(0,a.useCallback)((e=>{if(["ArrowDown","ArrowUp","PageDown","PageUp","Home","End"].includes(e.key)&&!(["Home","End"].includes(e.key)&&document.activeElement instanceof HTMLInputElement)){var t=e.currentTarget.querySelectorAll('input[type="search"], input[type="checkbox"]:not([disabled])');if(0!==t.length){e.preventDefault();var n=Array.from(t).indexOf(document.activeElement),r=-1;switch(e.key){case"ArrowDown":r=n<t.length-1?n+1:0;break;case"ArrowUp":r=n>0?n-1:t.length-1;break;case"PageDown":r=Math.min(n+10,t.length-1);break;case"PageUp":r=Math.max(n-10,0);break;case"Home":r=0;break;case"End":r=t.length-1}r>-1&&(t[r].focus(),t[r].scrollIntoView({behavior:"auto",block:"center"}))}}}),[]),ee=(0,a.useCallback)((e=>{if(T(e),e){var t=[],n=[];H.forEach((e=>{var n=U.find((t=>t.value===e));n&&t.push(n)})),U.forEach((e=>{H.includes(e.value)||n.push(e)}));var r=[...t,...n];M(r)}else g({search_value:void 0})}),[U,H]);return l().createElement("div",{id:t,ref:F,className:"dash-dropdown ".concat(null!=n?n:""),style:x,"data-dash-is-loading":L||void 0},l().createElement(si,{open:B,onOpenChange:ee},l().createElement(fi,{asChild:!0},l().createElement("button",{className:"dash-dropdown-grid-container dash-dropdown-trigger","aria-label":e.placeholder,disabled:f,type:"button",onKeyDown:e=>{"ArrowDown"===e.key&&T(!0)}},G.length>0&&l().createElement("span",{className:"dash-dropdown-value"},G),0===G.length&&l().createElement("span",{className:"dash-dropdown-value dash-dropdown-placeholder"},e.placeholder),H.length>1&&l().createElement("span",{className:"dash-dropdown-value-count"},H.length," selected"),s&&!f&&!!H.length&&l().createElement("a",{className:"dash-dropdown-clear",onClick:e=>{e.preventDefault(),X()},title:"Clear selection","aria-label":"Clear selection"},l().createElement(S,null)),l().createElement(C,{className:"dash-dropdown-trigger-icon"}))),l().createElement(di,{container:F.current},l().createElement(pi,{className:"dash-dropdown-content",align:"start",sideOffset:5,onOpenAutoFocus:e=>e.preventDefault(),onKeyDown:J,style:{maxHeight:d?"".concat(d,"px"):"auto"}},A&&l().createElement("div",{className:"dash-dropdown-grid-container dash-dropdown-search-container"},l().createElement(P,{className:"dash-dropdown-search-icon"}),l().createElement("input",{type:"search",className:"dash-dropdown-search",placeholder:"Search",value:O||"",autoComplete:"off",onChange:e=>K(e.target.value),autoFocus:!0}),O&&l().createElement("button",{type:"button",className:"dash-dropdown-clear",onClick:Y,"aria-label":"Clear search"},l().createElement(S,null))),p&&l().createElement("div",{className:"dash-dropdown-actions"},l().createElement("button",{type:"button",className:"dash-dropdown-action-button",onClick:Z},"Select All"),V&&l().createElement("button",{type:"button",className:"dash-dropdown-action-button",onClick:Q},"Deselect All")),B&&l().createElement("div",{className:"dash-dropdown-options"},R.map(((e,t)=>{var n=p?H.includes(e.value):E===e.value;return l().createElement(Bi,{key:"".concat(e.value,"-").concat(t),index:t,option:e,isSelected:n,onClick:q,style:{height:m?"".concat(m,"px"):void 0}})})),O&&0===R.length&&l().createElement("span",{className:"dash-dropdown-option"},"No options found"))))))}},30115:function(e,t,n){var r=n(96763),o="undefined"!=typeof Element,i="function"==typeof Map,a="function"==typeof Set,c="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function l(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,u,s;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!l(e[r],t[r]))return!1;return!0}if(i&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;for(s=e.entries();!(r=s.next()).done;)if(!l(r.value[1],t.get(r.value[0])))return!1;return!0}if(a&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(c&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof t.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof t.toString)return e.toString()===t.toString();if((n=(u=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,u[r]))return!1;if(o&&e instanceof Element)return!1;for(r=n;0!=r--;)if(("_owner"!==u[r]&&"__v"!==u[r]&&"__o"!==u[r]||!e.$$typeof)&&!l(e[u[r]],t[u[r]]))return!1;return!0}return e!=e&&t!=t}e.exports=function(e,t){try{return l(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return r.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}}}]);
2
+ (self.webpackChunkdash_core_components=self.webpackChunkdash_core_components||[]).push([[157],{12499:function(e,t,n){"use strict";var r=n(71354),o=n.n(r),i=n(76314),a=n.n(i)()(o());a.push([e.id,".dash-dropdown {\n display: block;\n flex: 1;\n box-sizing: border-box;\n margin: calc(var(--Dash-Spacing) * 2) 0;\n padding: 0;\n background: inherit;\n border: none;\n outline: none;\n width: 100%;\n cursor: pointer;\n font-size: inherit;\n overflow: hidden;\n accent-color: var(--Dash-Fill-Interactive-Strong);\n outline-color: var(--Dash-Fill-Interactive-Strong);\n}\n\n.dash-dropdown-grid-container {\n display: grid;\n grid-template-columns: auto 1fr;\n justify-items: start;\n align-items: center;\n gap: 8px;\n}\n\n.dash-dropdown-grid-container:has(:nth-child(3)) {\n grid-template-columns: auto 1fr auto;\n}\n\n.dash-dropdown-grid-container:has(:nth-child(4)) {\n grid-template-columns: auto 1fr auto auto;\n}\n\n.dash-dropdown,\n.dash-dropdown-content {\n border-radius: var(--Dash-Spacing);\n border: 1px solid var(--Dash-Stroke-Strong);\n color: inherit;\n text-align: left;\n}\n\n.dash-dropdown-trigger {\n padding: 0 12px;\n min-height: 32px;\n height: 100%;\n}\n\n.dash-dropdown:focus {\n outline: 1px solid var(--Dash-Fill-Interactive-Strong);\n}\n\n.dash-dropdown:disabled {\n opacity: 0.6;\n cursor: not-allowed;\n}\n\n.dash-dropdown-value {\n max-width: 100%;\n text-align: left;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.dash-dropdown-placeholder {\n color: var(--Dash-Text-Disabled);\n}\n\n.dash-dropdown-value > * {\n display: inline;\n}\n\n.dash-dropdown-content {\n background: var(--Dash-Fill-Inverse-Strong);\n width: fit-content;\n min-width: var(--radix-popover-trigger-width);\n max-width: 98vw;\n overflow-y: auto;\n z-index: 500;\n box-shadow: 0px 10px 38px -10px var(--Dash-Shading-Strong),\n 0px 10px 20px -15px var(--Dash-Shading-Weak);\n}\n\n.dash-dropdown-value-count,\n.dash-dropdown-trigger-icon {\n color: var(--Dash-Text-Strong);\n fill: var(--Dash-Text-Strong);\n white-space: nowrap;\n justify-self: end;\n}\n\n.dash-dropdown-trigger-icon {\n transition: transform 0.15s;\n}\n\n[data-state='open'] .dash-dropdown-trigger-icon {\n transform: rotate(180deg);\n}\n\n.dash-dropdown-value-count {\n line-height: 18px;\n padding: 0 2px;\n background: var(--Dash-Fill-Weak);\n}\n\n.dash-dropdown-search-container {\n position: sticky;\n top: calc(var(--Dash-Spacing) * 2);\n margin: calc(var(--Dash-Spacing) * 2);\n padding: var(--Dash-Spacing);\n border-radius: 4px;\n border: 1px solid var(--Dash-Stroke-Strong);\n background: var(--Dash-Fill-Inverse-Strong);\n}\n\n.dash-dropdown-search-container:focus-within {\n border-color: var(--Dash-Fill-Interactive-Strong);\n}\n\n.dash-dropdown-search-icon,\n.dash-dropdown-clear {\n width: calc(var(--Dash-Spacing) * 3);\n height: calc(var(--Dash-Spacing) * 3);\n}\n\n.dash-dropdown-search-container:focus-within .dash-dropdown-search-icon {\n color: var(--Dash-Fill-Interactive-Strong);\n}\n\n.dash-dropdown-clear {\n background: none;\n border: none;\n cursor: pointer;\n padding: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n justify-self: end;\n color: var(--Dash-Text-Strong);\n}\n\n.dash-dropdown-clear:hover {\n color: var(--Dash-Fill-Interactive-Strong);\n}\n\n.dash-dropdown-clear:focus {\n outline: 2px solid var(--Dash-Fill-Interactive-Strong);\n outline-offset: 1px;\n border-radius: 2px;\n}\n\n.dash-dropdown-search {\n line-height: calc(var(--Dash-Spacing) * 6);\n width: 100%;\n border: none;\n background: transparent;\n color: var(--Dash-Text-Strong);\n outline: none;\n padding: 0;\n\n /* Hide the \"x\" clear button in search inputs */\n &::-webkit-search-cancel-button {\n -webkit-appearance: none;\n appearance: none;\n display: none;\n }\n\n &::-ms-clear {\n display: none;\n }\n}\n\n.dash-dropdown-actions {\n display: flex;\n gap: calc(var(--Dash-Spacing) * 6);\n line-height: 18px;\n padding: var(--Dash-Spacing) calc(var(--Dash-Spacing) * 3);\n border-top: 1px solid var(--Dash-Fill-Disabled);\n border-bottom: 1px solid var(--Dash-Fill-Disabled);\n}\n\n.dash-dropdown-action-button {\n background: none;\n border: none;\n cursor: pointer;\n font-size: 14px;\n font-weight: 600;\n padding: 0;\n text-decoration: none;\n color: var(--Dash-Text-Disabled);\n white-space: nowrap;\n accent-color: var(--Dash-Fill-Interactive-Strong);\n outline-color: var(--Dash-Fill-Interactive-Strong);\n}\n\n.dash-dropdown-action-button:hover {\n color: var(--Dash-Fill-Interactive-Strong);\n}\n\n.dash-dropdown-action-button:focus {\n text-decoration: underline;\n}\n\n.dash-dropdown-options {\n overflow-y: auto;\n}\n\n.dash-dropdown-option {\n padding: calc(var(--Dash-Spacing) * 2) calc(var(--Dash-Spacing) * 3);\n box-shadow: 0 -1px 0 0 var(--Dash-Fill-Disabled) inset;\n}\n","",{version:3,sources:["webpack://./src/components/css/dropdown.css"],names:[],mappings:"AAAA;IACI,cAAc;IACd,OAAO;IACP,sBAAsB;IACtB,uCAAuC;IACvC,UAAU;IACV,mBAAmB;IACnB,YAAY;IACZ,aAAa;IACb,WAAW;IACX,eAAe;IACf,kBAAkB;IAClB,gBAAgB;IAChB,iDAAiD;IACjD,kDAAkD;AACtD;;AAEA;IACI,aAAa;IACb,+BAA+B;IAC/B,oBAAoB;IACpB,mBAAmB;IACnB,QAAQ;AACZ;;AAEA;IACI,oCAAoC;AACxC;;AAEA;IACI,yCAAyC;AAC7C;;AAEA;;IAEI,kCAAkC;IAClC,2CAA2C;IAC3C,cAAc;IACd,gBAAgB;AACpB;;AAEA;IACI,eAAe;IACf,gBAAgB;IAChB,YAAY;AAChB;;AAEA;IACI,sDAAsD;AAC1D;;AAEA;IACI,YAAY;IACZ,mBAAmB;AACvB;;AAEA;IACI,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,uBAAuB;IACvB,mBAAmB;AACvB;;AAEA;IACI,gCAAgC;AACpC;;AAEA;IACI,eAAe;AACnB;;AAEA;IACI,2CAA2C;IAC3C,kBAAkB;IAClB,6CAA6C;IAC7C,eAAe;IACf,gBAAgB;IAChB,YAAY;IACZ;oDACgD;AACpD;;AAEA;;IAEI,8BAA8B;IAC9B,6BAA6B;IAC7B,mBAAmB;IACnB,iBAAiB;AACrB;;AAEA;IACI,2BAA2B;AAC/B;;AAEA;IACI,yBAAyB;AAC7B;;AAEA;IACI,iBAAiB;IACjB,cAAc;IACd,iCAAiC;AACrC;;AAEA;IACI,gBAAgB;IAChB,kCAAkC;IAClC,qCAAqC;IACrC,4BAA4B;IAC5B,kBAAkB;IAClB,2CAA2C;IAC3C,2CAA2C;AAC/C;;AAEA;IACI,iDAAiD;AACrD;;AAEA;;IAEI,oCAAoC;IACpC,qCAAqC;AACzC;;AAEA;IACI,0CAA0C;AAC9C;;AAEA;IACI,gBAAgB;IAChB,YAAY;IACZ,eAAe;IACf,UAAU;IACV,aAAa;IACb,mBAAmB;IACnB,uBAAuB;IACvB,iBAAiB;IACjB,8BAA8B;AAClC;;AAEA;IACI,0CAA0C;AAC9C;;AAEA;IACI,sDAAsD;IACtD,mBAAmB;IACnB,kBAAkB;AACtB;;AAEA;IACI,0CAA0C;IAC1C,WAAW;IACX,YAAY;IACZ,uBAAuB;IACvB,8BAA8B;IAC9B,aAAa;IACb,UAAU;;IAEV,+CAA+C;IAC/C;QACI,wBAAwB;QACxB,gBAAgB;QAChB,aAAa;IACjB;;IAEA;QACI,aAAa;IACjB;AACJ;;AAEA;IACI,aAAa;IACb,kCAAkC;IAClC,iBAAiB;IACjB,0DAA0D;IAC1D,+CAA+C;IAC/C,kDAAkD;AACtD;;AAEA;IACI,gBAAgB;IAChB,YAAY;IACZ,eAAe;IACf,eAAe;IACf,gBAAgB;IAChB,UAAU;IACV,qBAAqB;IACrB,gCAAgC;IAChC,mBAAmB;IACnB,iDAAiD;IACjD,kDAAkD;AACtD;;AAEA;IACI,0CAA0C;AAC9C;;AAEA;IACI,0BAA0B;AAC9B;;AAEA;IACI,gBAAgB;AACpB;;AAEA;IACI,oEAAoE;IACpE,sDAAsD;AAC1D",sourcesContent:[".dash-dropdown {\n display: block;\n flex: 1;\n box-sizing: border-box;\n margin: calc(var(--Dash-Spacing) * 2) 0;\n padding: 0;\n background: inherit;\n border: none;\n outline: none;\n width: 100%;\n cursor: pointer;\n font-size: inherit;\n overflow: hidden;\n accent-color: var(--Dash-Fill-Interactive-Strong);\n outline-color: var(--Dash-Fill-Interactive-Strong);\n}\n\n.dash-dropdown-grid-container {\n display: grid;\n grid-template-columns: auto 1fr;\n justify-items: start;\n align-items: center;\n gap: 8px;\n}\n\n.dash-dropdown-grid-container:has(:nth-child(3)) {\n grid-template-columns: auto 1fr auto;\n}\n\n.dash-dropdown-grid-container:has(:nth-child(4)) {\n grid-template-columns: auto 1fr auto auto;\n}\n\n.dash-dropdown,\n.dash-dropdown-content {\n border-radius: var(--Dash-Spacing);\n border: 1px solid var(--Dash-Stroke-Strong);\n color: inherit;\n text-align: left;\n}\n\n.dash-dropdown-trigger {\n padding: 0 12px;\n min-height: 32px;\n height: 100%;\n}\n\n.dash-dropdown:focus {\n outline: 1px solid var(--Dash-Fill-Interactive-Strong);\n}\n\n.dash-dropdown:disabled {\n opacity: 0.6;\n cursor: not-allowed;\n}\n\n.dash-dropdown-value {\n max-width: 100%;\n text-align: left;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.dash-dropdown-placeholder {\n color: var(--Dash-Text-Disabled);\n}\n\n.dash-dropdown-value > * {\n display: inline;\n}\n\n.dash-dropdown-content {\n background: var(--Dash-Fill-Inverse-Strong);\n width: fit-content;\n min-width: var(--radix-popover-trigger-width);\n max-width: 98vw;\n overflow-y: auto;\n z-index: 500;\n box-shadow: 0px 10px 38px -10px var(--Dash-Shading-Strong),\n 0px 10px 20px -15px var(--Dash-Shading-Weak);\n}\n\n.dash-dropdown-value-count,\n.dash-dropdown-trigger-icon {\n color: var(--Dash-Text-Strong);\n fill: var(--Dash-Text-Strong);\n white-space: nowrap;\n justify-self: end;\n}\n\n.dash-dropdown-trigger-icon {\n transition: transform 0.15s;\n}\n\n[data-state='open'] .dash-dropdown-trigger-icon {\n transform: rotate(180deg);\n}\n\n.dash-dropdown-value-count {\n line-height: 18px;\n padding: 0 2px;\n background: var(--Dash-Fill-Weak);\n}\n\n.dash-dropdown-search-container {\n position: sticky;\n top: calc(var(--Dash-Spacing) * 2);\n margin: calc(var(--Dash-Spacing) * 2);\n padding: var(--Dash-Spacing);\n border-radius: 4px;\n border: 1px solid var(--Dash-Stroke-Strong);\n background: var(--Dash-Fill-Inverse-Strong);\n}\n\n.dash-dropdown-search-container:focus-within {\n border-color: var(--Dash-Fill-Interactive-Strong);\n}\n\n.dash-dropdown-search-icon,\n.dash-dropdown-clear {\n width: calc(var(--Dash-Spacing) * 3);\n height: calc(var(--Dash-Spacing) * 3);\n}\n\n.dash-dropdown-search-container:focus-within .dash-dropdown-search-icon {\n color: var(--Dash-Fill-Interactive-Strong);\n}\n\n.dash-dropdown-clear {\n background: none;\n border: none;\n cursor: pointer;\n padding: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n justify-self: end;\n color: var(--Dash-Text-Strong);\n}\n\n.dash-dropdown-clear:hover {\n color: var(--Dash-Fill-Interactive-Strong);\n}\n\n.dash-dropdown-clear:focus {\n outline: 2px solid var(--Dash-Fill-Interactive-Strong);\n outline-offset: 1px;\n border-radius: 2px;\n}\n\n.dash-dropdown-search {\n line-height: calc(var(--Dash-Spacing) * 6);\n width: 100%;\n border: none;\n background: transparent;\n color: var(--Dash-Text-Strong);\n outline: none;\n padding: 0;\n\n /* Hide the \"x\" clear button in search inputs */\n &::-webkit-search-cancel-button {\n -webkit-appearance: none;\n appearance: none;\n display: none;\n }\n\n &::-ms-clear {\n display: none;\n }\n}\n\n.dash-dropdown-actions {\n display: flex;\n gap: calc(var(--Dash-Spacing) * 6);\n line-height: 18px;\n padding: var(--Dash-Spacing) calc(var(--Dash-Spacing) * 3);\n border-top: 1px solid var(--Dash-Fill-Disabled);\n border-bottom: 1px solid var(--Dash-Fill-Disabled);\n}\n\n.dash-dropdown-action-button {\n background: none;\n border: none;\n cursor: pointer;\n font-size: 14px;\n font-weight: 600;\n padding: 0;\n text-decoration: none;\n color: var(--Dash-Text-Disabled);\n white-space: nowrap;\n accent-color: var(--Dash-Fill-Interactive-Strong);\n outline-color: var(--Dash-Fill-Interactive-Strong);\n}\n\n.dash-dropdown-action-button:hover {\n color: var(--Dash-Fill-Interactive-Strong);\n}\n\n.dash-dropdown-action-button:focus {\n text-decoration: underline;\n}\n\n.dash-dropdown-options {\n overflow-y: auto;\n}\n\n.dash-dropdown-option {\n padding: calc(var(--Dash-Spacing) * 2) calc(var(--Dash-Spacing) * 3);\n box-shadow: 0 -1px 0 0 var(--Dash-Fill-Disabled) inset;\n}\n"],sourceRoot:""}]),t.A=a},19640:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return _i}});var r=n(51647),o=n(4376),i=n(66811),a=n(51609),c=n.t(a,2),l=n.n(a),u=function(){function e(){}return e.prototype.expandToken=function(e){for(var t,n=[],r=0,o=e.length;r<o;++r){t="";for(var i=r;i<o;++i)t+=e.charAt(i),n.push(t)}return n},e}(),s=function(){function e(){}return e.prototype.expandToken=function(e){for(var t=[],n="",r=0,o=e.length;r<o;++r)n+=e.charAt(r),t.push(n);return t},e}(),f=function(){function e(){}return e.prototype.sanitize=function(e){return e?e.toLocaleLowerCase().trim():""},e}();function d(e,t){t=t||[];for(var n=e=e||{},r=0;r<t.length;r++)if(null==(n=n[t[r]]))return null;return n}var p=function(){function e(e){this._uidFieldName=e,this._tokenToIdfCache={},this._tokenMap={}}var t=e.prototype;return t.indexDocument=function(e,t,n){this._tokenToIdfCache={};var r,o=this._tokenMap;"object"!=typeof o[e]?o[e]=r={$numDocumentOccurrences:0,$totalNumOccurrences:1,$uidMap:{}}:(r=o[e]).$totalNumOccurrences++;var i=r.$uidMap;"object"!=typeof i[t]?(r.$numDocumentOccurrences++,i[t]={$document:n,$numTokenOccurrences:1}):i[t].$numTokenOccurrences++},t.search=function(e,t){for(var n={},r=0,o=e.length;r<o;r++){var i,a=e[r],c=this._tokenMap[a];if(!c)return[];if(0===r)for(var l=0,u=(i=Object.keys(c.$uidMap)).length;l<u;l++)n[s=i[l]]=c.$uidMap[s].$document;else for(l=0,u=(i=Object.keys(n)).length;l<u;l++){var s=i[l];"object"!=typeof c.$uidMap[s]&&delete n[s]}}var f=[];for(var s in n)f.push(n[s]);var d=this._createCalculateTfIdf();return f.sort((function(n,r){return d(e,r,t)-d(e,n,t)}))},t._createCalculateIdf=function(){var e=this._tokenMap,t=this._tokenToIdfCache;return function(n,r){if(!t[n]){var o=void 0!==e[n]?e[n].$numDocumentOccurrences:0;t[n]=1+Math.log(r.length/(1+o))}return t[n]}},t._createCalculateTfIdf=function(){var e=this._tokenMap,t=this._uidFieldName,n=this._createCalculateIdf();return function(r,o,i){for(var a=0,c=0,l=r.length;c<l;++c){var u,s=r[c],f=n(s,i);f===1/0&&(f=0),u=t instanceof Array?o&&d(o,t):o&&o[t],a+=(void 0!==e[s]&&void 0!==e[s].$uidMap[u]?e[s].$uidMap[u].$numTokenOccurrences:0)*f}return a}},e}(),v=function(){function e(){this._tokenToUidToDocumentMap={}}var t=e.prototype;return t.indexDocument=function(e,t,n){"object"!=typeof this._tokenToUidToDocumentMap[e]&&(this._tokenToUidToDocumentMap[e]={}),this._tokenToUidToDocumentMap[e][t]=n},t.search=function(e,t){for(var n={},r=this._tokenToUidToDocumentMap,o=0,i=e.length;o<i;o++){var a=r[e[o]];if(!a)return[];if(0===o)for(var c=0,l=(u=Object.keys(a)).length;c<l;c++)n[f=u[c]]=a[f];else for(c=0,l=(u=Object.keys(n)).length;c<l;c++)"object"!=typeof a[f=u[c]]&&delete n[f]}var u,s=[];for(o=0,l=(u=Object.keys(n)).length;o<l;o++){var f=u[o];s.push(n[f])}return s},e}(),h=/[^a-zа-яё0-9\-']+/i,m=function(){function e(){}return e.prototype.tokenize=function(e){return e.split(h).filter((function(e){return e}))},e}();function g(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,r.key,r)}}var y=function(){function e(e){if(!e)throw Error("js-search requires a uid field name constructor parameter");this._uidFieldName=e,this._indexStrategy=new s,this._searchIndex=new p(e),this._sanitizer=new f,this._tokenizer=new m,this._documents=[],this._searchableFields=[]}var t,n,r=e.prototype;return r.addDocument=function(e){this.addDocuments([e])},r.addDocuments=function(e){this._documents=this._documents.concat(e),this.indexDocuments_(e,this._searchableFields)},r.addIndex=function(e){this._searchableFields.push(e),this.indexDocuments_(this._documents,[e])},r.search=function(e){var t=this._tokenizer.tokenize(this._sanitizer.sanitize(e));return this._searchIndex.search(t,this._documents)},r.indexDocuments_=function(e,t){this._initialized=!0;for(var n=this._indexStrategy,r=this._sanitizer,o=this._searchIndex,i=this._tokenizer,a=this._uidFieldName,c=0,l=e.length;c<l;c++){var u,s=e[c];u=a instanceof Array?d(s,a):s[a];for(var f=0,p=t.length;f<p;f++){var v,h=t[f];if(null!=(v=h instanceof Array?d(s,h):s[h])&&"string"!=typeof v&&v.toString&&(v=v.toString()),"string"==typeof v)for(var m=i.tokenize(r.sanitize(v)),g=0,y=m.length;g<y;g++)for(var b=m[g],A=n.expandToken(b),w=0,O=A.length;w<O;w++){var x=A[w];o.indexDocument(x,u,s)}}}},t=e,(n=[{key:"indexStrategy",set:function(e){if(this._initialized)throw Error("IIndexStrategy cannot be set after initialization");this._indexStrategy=e},get:function(){return this._indexStrategy}},{key:"sanitizer",set:function(e){if(this._initialized)throw Error("ISanitizer cannot be set after initialization");this._sanitizer=e},get:function(){return this._sanitizer}},{key:"searchIndex",set:function(e){if(this._initialized)throw Error("ISearchIndex cannot be set after initialization");this._searchIndex=e},get:function(){return this._searchIndex}},{key:"tokenizer",set:function(e){if(this._initialized)throw Error("ITokenizer cannot be set after initialization");this._tokenizer=e},get:function(){return this._tokenizer}}])&&g(t.prototype,n),e}(),b=n(53532),A=/\s+/,w={tokenize(e){return e.split(A).filter((e=>e))}};function O(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var x=["color"],C=(0,a.forwardRef)((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=O(e,x);return(0,a.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),(0,a.createElement)("path",{d:"M4.18179 6.18181C4.35753 6.00608 4.64245 6.00608 4.81819 6.18181L7.49999 8.86362L10.1818 6.18181C10.3575 6.00608 10.6424 6.00608 10.8182 6.18181C10.9939 6.35755 10.9939 6.64247 10.8182 6.81821L7.81819 9.81821C7.73379 9.9026 7.61934 9.95001 7.49999 9.95001C7.38064 9.95001 7.26618 9.9026 7.18179 9.81821L4.18179 6.81821C4.00605 6.64247 4.00605 6.35755 4.18179 6.18181Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))})),E=["color"],S=(0,a.forwardRef)((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=O(e,E);return(0,a.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),(0,a.createElement)("path",{d:"M12.8536 2.85355C13.0488 2.65829 13.0488 2.34171 12.8536 2.14645C12.6583 1.95118 12.3417 1.95118 12.1464 2.14645L7.5 6.79289L2.85355 2.14645C2.65829 1.95118 2.34171 1.95118 2.14645 2.14645C1.95118 2.34171 1.95118 2.65829 2.14645 2.85355L6.79289 7.5L2.14645 12.1464C1.95118 12.3417 1.95118 12.6583 2.14645 12.8536C2.34171 13.0488 2.65829 13.0488 2.85355 12.8536L7.5 8.20711L12.1464 12.8536C12.3417 13.0488 12.6583 13.0488 12.8536 12.8536C13.0488 12.6583 13.0488 12.3417 12.8536 12.1464L8.20711 7.5L12.8536 2.85355Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))})),j=["color"],P=(0,a.forwardRef)((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=O(e,j);return(0,a.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),(0,a.createElement)("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))})),I=n(37549),D=n(30855),k=n(49309),T=n(11592);function B(e){var t=a.useRef(e);return a.useEffect((()=>{t.current=e})),a.useMemo((()=>function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call(t,...r)}),[])}var _=n(74848),R=["disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss"];function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach((function(t){N(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function N(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return z(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?z(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var W,U="dismissableLayer.update",H=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$=a.forwardRef(((e,t)=>{var n,r=e.disableOutsidePointerEvents,o=void 0!==r&&r,i=e.onEscapeKeyDown,c=e.onPointerDownOutside,l=e.onFocusOutside,u=e.onInteractOutside,s=e.onDismiss,f=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,R),d=a.useContext(H),p=L(a.useState(null),2),v=p[0],h=p[1],m=null!==(n=null==v?void 0:v.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,g=L(a.useState({}),2)[1],y=(0,D.s)(t,(e=>h(e))),b=Array.from(d.layers),A=L([...d.layersWithOutsidePointerEventsDisabled].slice(-1),1)[0],w=b.indexOf(A),O=v?b.indexOf(v):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,C=O>=w,E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===globalThis||void 0===globalThis?void 0:globalThis.document,n=B(e),r=a.useRef(!1),o=a.useRef((()=>{}));return a.useEffect((()=>{var e=e=>{if(e.target&&!r.current){var i=function(){K("dismissableLayer.pointerDownOutside",n,a,{discrete:!0})},a={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=i,t.addEventListener("click",o.current,{once:!0})):i()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{var t=e.target,n=[...d.branches].some((e=>e.contains(t)));C&&!n&&(null==c||c(e),null==u||u(e),e.defaultPrevented||null==s||s())}),m),S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===globalThis||void 0===globalThis?void 0:globalThis.document,n=B(e),r=a.useRef(!1);return a.useEffect((()=>{var e=e=>{e.target&&!r.current&&K("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{var t=e.target;[...d.branches].some((e=>e.contains(t)))||(null==l||l(e),null==u||u(e),e.defaultPrevented||null==s||s())}),m);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===globalThis||void 0===globalThis?void 0:globalThis.document,n=B(e);a.useEffect((()=>{var e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}((e=>{O===d.layers.size-1&&(null==i||i(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),m),a.useEffect((()=>{if(v)return o&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(W=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(v)),d.layers.add(v),Y(),()=>{o&&1===d.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=W)}}),[v,m,o,d]),a.useEffect((()=>()=>{v&&(d.layers.delete(v),d.layersWithOutsidePointerEventsDisabled.delete(v),Y())}),[v,d]),a.useEffect((()=>{var e=()=>g({});return document.addEventListener(U,e),()=>document.removeEventListener(U,e)}),[]),(0,_.jsx)(T.sG.div,M(M({},f),{},{ref:y,style:M({pointerEvents:x?C?"auto":"none":void 0},e.style),onFocusCapture:(0,I.mK)(e.onFocusCapture,S.onFocusCapture),onBlurCapture:(0,I.mK)(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:(0,I.mK)(e.onPointerDownCapture,E.onPointerDownCapture)}))}));function Y(){var e=new CustomEvent(U);document.dispatchEvent(e)}function K(e,t,n,r){var o=r.discrete,i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,T.hO)(i,a):i.dispatchEvent(a)}$.displayName="DismissableLayer",a.forwardRef(((e,t)=>{var n=a.useContext(H),r=a.useRef(null),o=(0,D.s)(t,r);return a.useEffect((()=>{var e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),(0,_.jsx)(T.sG.div,M(M({},e),{},{ref:o}))})).displayName="DismissableLayerBranch";var G=0;function V(){var e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var q=["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"];function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach((function(t){Q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Q(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=te(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||te(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function te(e,t){if(e){if("string"==typeof e)return ne(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ne(e,t):void 0}}function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var re="focusScope.autoFocusOnMount",oe="focusScope.autoFocusOnUnmount",ie={bubbles:!1,cancelable:!0},ae=a.forwardRef(((e,t)=>{var n=e.loop,r=void 0!==n&&n,o=e.trapped,i=void 0!==o&&o,c=e.onMountAutoFocus,l=e.onUnmountAutoFocus,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,q),s=ee(a.useState(null),2),f=s[0],d=s[1],p=B(c),v=B(l),h=a.useRef(null),m=(0,D.s)(t,(e=>d(e))),g=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect((()=>{if(i){var e=function(e){if(!g.paused&&f){var t=e.target;f.contains(t)?h.current=t:se(h.current,{select:!0})}},t=function(e){if(!g.paused&&f){var t=e.relatedTarget;null!==t&&(f.contains(t)||se(h.current,{select:!0}))}};document.addEventListener("focusin",e),document.addEventListener("focusout",t);var n=new MutationObserver((function(e){if(document.activeElement===document.body){var t,n=J(e);try{for(n.s();!(t=n.n()).done;)t.value.removedNodes.length>0&&se(f)}catch(e){n.e(e)}finally{n.f()}}}));return f&&n.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}}),[i,f,g.paused]),a.useEffect((()=>{if(f){de.add(g);var e=document.activeElement;if(!f.contains(e)){var t=new CustomEvent(re,ie);f.addEventListener(re,p),f.dispatchEvent(t),t.defaultPrevented||(function(e){var t,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).select,r=void 0!==n&&n,o=document.activeElement,i=J(e);try{for(i.s();!(t=i.n()).done;)if(se(t.value,{select:r}),document.activeElement!==o)return}catch(e){i.e(e)}finally{i.f()}}(ce(f).filter((e=>"A"!==e.tagName)),{select:!0}),document.activeElement===e&&se(f))}return()=>{f.removeEventListener(re,p),setTimeout((()=>{var t=new CustomEvent(oe,ie);f.addEventListener(oe,v),f.dispatchEvent(t),t.defaultPrevented||se(null!=e?e:document.body,{select:!0}),f.removeEventListener(oe,v),de.remove(g)}),0)}}}),[f,p,v,g]);var y=a.useCallback((e=>{if((r||i)&&!g.paused){var t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){var o=e.currentTarget,a=function(e){var t=ce(e);return[le(t,e),le(t.reverse(),e)]}(o),c=ee(a,2),l=c[0],u=c[1];l&&u?e.shiftKey||n!==u?e.shiftKey&&n===l&&(e.preventDefault(),r&&se(u,{select:!0})):(e.preventDefault(),r&&se(l,{select:!0})):n===o&&e.preventDefault()}}}),[r,i,g.paused]);return(0,_.jsx)(T.sG.div,Z(Z({tabIndex:-1},u),{},{ref:m,onKeyDown:y}))}));function ce(e){for(var t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{var t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});n.nextNode();)t.push(n.currentNode);return t}function le(e,t){var n,r=J(e);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(!ue(o,{upTo:t}))return o}}catch(e){r.e(e)}finally{r.f()}}function ue(e,t){var n=t.upTo;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==n&&e===n)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function se(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).select,n=void 0!==t&&t;if(e&&e.focus){var r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&n&&e.select()}}ae.displayName="FocusScope";var fe,de=(fe=[],{add(e){var t=fe[0];e!==t&&(null==t||t.pause()),(fe=pe(fe,e)).unshift(e)},remove(e){var t;null===(t=(fe=pe(fe,e))[0])||void 0===t||t.resume()}});function pe(e,t){var n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var ve=n(48240);function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var me=c[" useId ".trim().toString()]||(()=>{}),ge=0;function ye(e){var t,n,r=(t=a.useState(me()),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return he(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?he(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=r[0],i=r[1];return(0,ve.N)((()=>{e||i((e=>null!=e?e:String(ge++)))}),[e]),e||(o?"radix-".concat(o):"")}function be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ae(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var we=["top","right","bottom","left"],Oe=Math.min,xe=Math.max,Ce=Math.round,Ee=Math.floor,Se=e=>({x:e,y:e}),je={left:"right",right:"left",bottom:"top",top:"bottom"},Pe={start:"end",end:"start"};function Ie(e,t,n){return xe(e,Oe(t,n))}function De(e,t){return"function"==typeof e?e(t):e}function ke(e){return e.split("-")[0]}function Te(e){return e.split("-")[1]}function Be(e){return"x"===e?"y":"x"}function _e(e){return"y"===e?"height":"width"}var Re=new Set(["top","bottom"]);function Fe(e){return Re.has(ke(e))?"y":"x"}function Me(e){return Be(Fe(e))}function Ne(e,t,n){void 0===n&&(n=!1);var r=Te(e),o=Me(e),i=_e(o),a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Ke(a)),[a,Ke(a)]}function Le(e){var t=Ke(e);return[ze(e),t,ze(t)]}function ze(e){return e.replace(/start|end/g,(e=>Pe[e]))}var We=["left","right"],Ue=["right","left"],He=["top","bottom"],$e=["bottom","top"];function Ye(e,t,n,r){var o=Te(e),i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?Ue:We:t?We:Ue;case"left":case"right":return t?He:$e;default:return[]}}(ke(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(ze)))),i}function Ke(e){return e.replace(/left|right|bottom|top/g,(e=>je[e]))}function Ge(e){return"number"!=typeof e?function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?be(Object(n),!0).forEach((function(t){Ae(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):be(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({top:0,right:0,bottom:0,left:0},e)}(e):{top:e,right:e,bottom:e,left:e}}function Ve(e){var t=e.x,n=e.y,r=e.width,o=e.height;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}var qe=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],Xe=["strategy"],Ze=["mainAxis","crossAxis","limiter"],Qe=["apply"];function Je(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function et(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof c?r:c,u=Object.create(l.prototype);return tt(u,"_invoke",function(n,r,o){var i,c,l,u=0,s=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,c=0,l=e,d.n=n,a}};function p(n,r){for(c=n,l=r,t=0;!f&&u&&!o&&t<s.length;t++){var o,i=s[t],p=d.p,v=i[2];n>3?(o=v===r)&&(l=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(c=0,d.v=r,d.n=i[1]):p<v&&(o=n<3||i[0]>r||r>v)&&(i[4]=n,i[5]=r,d.n=v,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,s,v){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,v),c=s,l=v;(t=c<2?e:l)||!f;){i||(c?c<3?(c>1&&(d.n=-1),p(c,l)):d.n=l:d.v=l);try{if(u=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,c<2&&(c=0)}else 1===c&&(t=i.return)&&t.call(i),c<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,c=1,l=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),u}var a={};function c(){}function l(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(tt(t={},r,(function(){return this})),t),f=u.prototype=c.prototype=Object.create(s);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,tt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=u,tt(f,"constructor",u),tt(u,"constructor",l),l.displayName="GeneratorFunction",tt(u,o,"GeneratorFunction"),tt(f),tt(f,o,"Generator"),tt(f,r,(function(){return this})),tt(f,"toString",(function(){return"[object Generator]"})),(et=function(){return{w:i,m:d}})()}function tt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}tt=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{function i(t,n){tt(e,t,(function(e){return this._invoke(t,n,e)}))}i("next",0),i("throw",1),i("return",2)}},tt(e,t,n,r)}function nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nt(Object(n),!0).forEach((function(t){ot(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ot(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function it(e,t,n,r,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,o)}function at(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){it(i,r,o,a,c,"next",e)}function c(e){it(i,r,o,a,c,"throw",e)}a(void 0)}))}}function ct(e,t,n){var r,o=e.reference,i=e.floating,a=Fe(t),c=Me(t),l=_e(c),u=ke(t),s="y"===a,f=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,p=o[l]/2-i[l]/2;switch(u){case"top":r={x:f,y:o.y-i.height};break;case"bottom":r={x:f,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:d};break;case"left":r={x:o.x-i.width,y:d};break;default:r={x:o.x,y:o.y}}switch(Te(t)){case"start":r[c]-=p*(n&&s?-1:1);break;case"end":r[c]+=p*(n&&s?-1:1)}return r}var lt=function(){var e=at(et().m((function e(t,n,r){var o,i,a,c,l,u,s,f,d,p,v,h,m,g,y,b,A,w,O,x,C,E,S,j,P,I,D;return et().w((function(e){for(;;)switch(e.n){case 0:return o=r.placement,i=void 0===o?"bottom":o,a=r.strategy,c=void 0===a?"absolute":a,l=r.middleware,u=void 0===l?[]:l,s=r.platform,f=u.filter(Boolean),e.n=1,null==s.isRTL?void 0:s.isRTL(n);case 1:return d=e.v,e.n=2,s.getElementRects({reference:t,floating:n,strategy:c});case 2:p=e.v,v=ct(p,i,d),h=v.x,m=v.y,g=i,y={},b=0,A=0;case 3:if(!(A<f.length)){e.n=11;break}return w=f[A],O=w.name,x=w.fn,e.n=4,x({x:h,y:m,initialPlacement:i,placement:g,strategy:c,middlewareData:y,rects:p,platform:s,elements:{reference:t,floating:n}});case 4:if(C=e.v,E=C.x,S=C.y,j=C.data,P=C.reset,h=null!=E?E:h,m=null!=S?S:m,y=rt(rt({},y),{},{[O]:rt(rt({},y[O]),j)}),!(P&&b<=50)){e.n=10;break}if(b++,"object"!=typeof P){e.n=9;break}if(P.placement&&(g=P.placement),!P.rects){e.n=8;break}if(!0!==P.rects){e.n=6;break}return e.n=5,s.getElementRects({reference:t,floating:n,strategy:c});case 5:D=e.v,e.n=7;break;case 6:D=P.rects;case 7:p=D;case 8:I=ct(p,g,d),h=I.x,m=I.y;case 9:A=-1;case 10:A++,e.n=3;break;case 11:return e.a(2,{x:h,y:m,placement:g,strategy:c,middlewareData:y})}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}();function ut(e,t){return st.apply(this,arguments)}function st(){return st=at(et().m((function e(t,n){var r,o,i,a,c,l,u,s,f,d,p,v,h,m,g,y,b,A,w,O,x,C,E,S,j,P,I,D,k,T,B,_,R,F,M,N;return et().w((function(e){for(;;)switch(e.n){case 0:return void 0===n&&(n={}),o=t.x,i=t.y,a=t.platform,c=t.rects,l=t.elements,u=t.strategy,s=De(n,t),f=s.boundary,d=void 0===f?"clippingAncestors":f,p=s.rootBoundary,v=void 0===p?"viewport":p,h=s.elementContext,m=void 0===h?"floating":h,g=s.altBoundary,y=void 0!==g&&g,b=s.padding,A=Ge(void 0===b?0:b),w="floating"===m?"reference":"floating",O=l[y?w:m],P=Ve,I=a,e.n=1,null==a.isElement?void 0:a.isElement(O);case 1:if(null==(r=e.v)){e.n=2;break}D=r,e.n=3;break;case 2:D=!0;case 3:if(!D){e.n=4;break}k=O,e.n=7;break;case 4:if(T=O.contextElement){e.n=6;break}return e.n=5,null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating);case 5:T=e.v;case 6:k=T;case 7:return B={element:k,boundary:d,rootBoundary:v,strategy:u},e.n=8,I.getClippingRect.call(I,B);case 8:return _=e.v,x=P(_),C="floating"===m?{x:o,y:i,width:c.floating.width,height:c.floating.height}:c.reference,e.n=9,null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating);case 9:return E=e.v,e.n=10,null==a.isElement?void 0:a.isElement(E);case 10:if(!e.v){e.n=13;break}return e.n=11,null==a.getScale?void 0:a.getScale(E);case 11:if(F=e.v){e.n=12;break}F={x:1,y:1};case 12:R=F,e.n=14;break;case 13:R={x:1,y:1};case 14:if(S=R,M=Ve,!a.convertOffsetParentRelativeRectToViewportRelativeRect){e.n=16;break}return e.n=15,a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:C,offsetParent:E,strategy:u});case 15:N=e.v,e.n=17;break;case 16:N=C;case 17:return j=M(N),e.a(2,{top:(x.top-j.top+A.top)/S.y,bottom:(j.bottom-x.bottom+A.bottom)/S.y,left:(x.left-j.left+A.left)/S.x,right:(j.right-x.right+A.right)/S.x})}}),e)}))),st.apply(this,arguments)}function ft(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function dt(e){return we.some((t=>e[t]>=0))}var pt=new Set(["left","top"]);function vt(e,t){return ht.apply(this,arguments)}function ht(){return ht=at(et().m((function e(t,n){var r,o,i,a,c,l,u,s,f,d,p,v,h,m;return et().w((function(e){for(;;)switch(e.n){case 0:return r=t.placement,o=t.platform,i=t.elements,e.n=1,null==o.isRTL?void 0:o.isRTL(i.floating);case 1:return a=e.v,c=ke(r),l=Te(r),u="y"===Fe(r),s=pt.has(c)?-1:1,f=a&&u?-1:1,d=De(n,t),p="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis},v=p.mainAxis,h=p.crossAxis,m=p.alignmentAxis,l&&"number"==typeof m&&(h="end"===l?-1*m:m),e.a(2,u?{x:h*f,y:v*s}:{x:v*s,y:h*f})}}),e)}))),ht.apply(this,arguments)}function mt(){return"undefined"!=typeof window}function gt(e){return At(e)?(e.nodeName||"").toLowerCase():"#document"}function yt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function bt(e){var t;return null==(t=(At(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function At(e){return!!mt()&&(e instanceof Node||e instanceof yt(e).Node)}function wt(e){return!!mt()&&(e instanceof Element||e instanceof yt(e).Element)}function Ot(e){return!!mt()&&(e instanceof HTMLElement||e instanceof yt(e).HTMLElement)}function xt(e){return!(!mt()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof yt(e).ShadowRoot)}var Ct=new Set(["inline","contents"]);function Et(e){var t=Mt(e),n=t.overflow,r=t.overflowX,o=t.overflowY,i=t.display;return/auto|scroll|overlay|hidden|clip/.test(n+o+r)&&!Ct.has(i)}var St=new Set(["table","td","th"]);function jt(e){return St.has(gt(e))}var Pt=[":popover-open",":modal"];function It(e){return Pt.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}var Dt=["transform","translate","scale","rotate","perspective"],kt=["transform","translate","scale","rotate","perspective","filter"],Tt=["paint","layout","strict","content"];function Bt(e){var t=_t(),n=wt(e)?Mt(e):e;return Dt.some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||kt.some((e=>(n.willChange||"").includes(e)))||Tt.some((e=>(n.contain||"").includes(e)))}function _t(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}var Rt=new Set(["html","body","#document"]);function Ft(e){return Rt.has(gt(e))}function Mt(e){return yt(e).getComputedStyle(e)}function Nt(e){return wt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Lt(e){if("html"===gt(e))return e;var t=e.assignedSlot||e.parentNode||xt(e)&&e.host||bt(e);return xt(t)?t.host:t}function zt(e){var t=Lt(e);return Ft(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ot(t)&&Et(t)?t:zt(t)}function Wt(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);var o=zt(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=yt(o);if(i){var c=Ut(a);return t.concat(a,a.visualViewport||[],Et(o)?o:[],c&&n?Wt(c):[])}return t.concat(o,Wt(o,[],n))}function Ut(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ht(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$t(Object(n),!0).forEach((function(t){Kt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kt(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gt(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof c?r:c,u=Object.create(l.prototype);return Vt(u,"_invoke",function(n,r,o){var i,c,l,u=0,s=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,c=0,l=e,d.n=n,a}};function p(n,r){for(c=n,l=r,t=0;!f&&u&&!o&&t<s.length;t++){var o,i=s[t],p=d.p,v=i[2];n>3?(o=v===r)&&(l=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(c=0,d.v=r,d.n=i[1]):p<v&&(o=n<3||i[0]>r||r>v)&&(i[4]=n,i[5]=r,d.n=v,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,s,v){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,v),c=s,l=v;(t=c<2?e:l)||!f;){i||(c?c<3?(c>1&&(d.n=-1),p(c,l)):d.n=l:d.v=l);try{if(u=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,c<2&&(c=0)}else 1===c&&(t=i.return)&&t.call(i),c<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==a)break}catch(t){i=e,c=1,l=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),u}var a={};function c(){}function l(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Vt(t={},r,(function(){return this})),t),f=u.prototype=c.prototype=Object.create(s);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Vt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=u,Vt(f,"constructor",u),Vt(u,"constructor",l),l.displayName="GeneratorFunction",Vt(u,o,"GeneratorFunction"),Vt(f),Vt(f,o,"Generator"),Vt(f,r,(function(){return this})),Vt(f,"toString",(function(){return"[object Generator]"})),(Gt=function(){return{w:i,m:d}})()}function Vt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Vt=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{function i(t,n){Vt(e,t,(function(e){return this._invoke(t,n,e)}))}i("next",0),i("throw",1),i("return",2)}},Vt(e,t,n,r)}function qt(e,t,n,r,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,o)}function Xt(e){var t=Mt(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=Ot(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,c=Ce(n)!==i||Ce(r)!==a;return c&&(n=i,r=a),{width:n,height:r,$:c}}function Zt(e){return wt(e)?e:e.contextElement}function Qt(e){var t=Zt(e);if(!Ot(t))return Se(1);var n=t.getBoundingClientRect(),r=Xt(t),o=r.width,i=r.height,a=r.$,c=(a?Ce(n.width):n.width)/o,l=(a?Ce(n.height):n.height)/i;return c&&Number.isFinite(c)||(c=1),l&&Number.isFinite(l)||(l=1),{x:c,y:l}}var Jt=Se(0);function en(e){var t=yt(e);return _t()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Jt}function tn(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),i=Zt(e),a=Se(1);t&&(r?wt(r)&&(a=Qt(r)):a=Qt(e));var c=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==yt(e))&&t}(i,n,r)?en(i):Se(0),l=(o.left+c.x)/a.x,u=(o.top+c.y)/a.y,s=o.width/a.x,f=o.height/a.y;if(i)for(var d=yt(i),p=r&&wt(r)?yt(r):r,v=d,h=Ut(v);h&&r&&p!==v;){var m=Qt(h),g=h.getBoundingClientRect(),y=Mt(h),b=g.left+(h.clientLeft+parseFloat(y.paddingLeft))*m.x,A=g.top+(h.clientTop+parseFloat(y.paddingTop))*m.y;l*=m.x,u*=m.y,s*=m.x,f*=m.y,l+=b,u+=A,h=Ut(v=yt(h))}return Ve({width:s,height:f,x:l,y:u})}function nn(e,t){var n=Nt(e).scrollLeft;return t?t.left+n:tn(bt(e)).left+n}function rn(e,t,n){void 0===n&&(n=!1);var r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:nn(e,r)),y:r.top+t.scrollTop}}var on=new Set(["absolute","fixed"]);function an(e,t,n){var r;if("viewport"===t)r=function(e,t){var n=yt(e),r=bt(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,c=0,l=0;if(o){i=o.width,a=o.height;var u=_t();(!u||u&&"fixed"===t)&&(c=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:c,y:l}}(e,n);else if("document"===t)r=function(e){var t=bt(e),n=Nt(e),r=e.ownerDocument.body,o=xe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=xe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+nn(e),c=-n.scrollTop;return"rtl"===Mt(r).direction&&(a+=xe(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:c}}(bt(e));else if(wt(t))r=function(e,t){var n=tn(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Ot(e)?Qt(e):Se(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{var o=en(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ve(r)}function cn(e,t){var n=Lt(e);return!(n===t||!wt(n)||Ft(n))&&("fixed"===Mt(n).position||cn(n,t))}function ln(e,t,n){var r=Ot(t),o=bt(t),i="fixed"===n,a=tn(e,!0,i,t),c={scrollLeft:0,scrollTop:0},l=Se(0);function u(){l.x=nn(o)}if(r||!r&&!i)if(("body"!==gt(t)||Et(o))&&(c=Nt(t)),r){var s=tn(t,!0,i,t);l.x=s.x+t.clientLeft,l.y=s.y+t.clientTop}else o&&u();i&&!r&&o&&u();var f=!o||r||i?Se(0):rn(o,c);return{x:a.left+c.scrollLeft-l.x-f.x,y:a.top+c.scrollTop-l.y-f.y,width:a.width,height:a.height}}function un(e){return"static"===Mt(e).position}function sn(e,t){if(!Ot(e)||"fixed"===Mt(e).position)return null;if(t)return t(e);var n=e.offsetParent;return bt(e)===n&&(n=n.ownerDocument.body),n}function fn(e,t){var n=yt(e);if(It(e))return n;if(!Ot(e)){for(var r=Lt(e);r&&!Ft(r);){if(wt(r)&&!un(r))return r;r=Lt(r)}return n}for(var o=sn(e,t);o&&jt(o)&&un(o);)o=sn(o,t);return o&&Ft(o)&&un(o)&&!Bt(o)?n:o||function(e){for(var t=Lt(e);Ot(t)&&!Ft(t);){if(Bt(t))return t;if(It(t))return null;t=Lt(t)}return null}(e)||n}var dn=function(){var e,t=(e=Gt().m((function e(t){var n,r,o,i,a,c,l,u,s;return Gt().w((function(e){for(;;)switch(e.n){case 0:return n=this.getOffsetParent||fn,r=this.getDimensions,e.n=1,r(t.floating);case 1:return o=e.v,i=ln,a=t.reference,e.n=2,n(t.floating);case 2:return c=e.v,l=t.strategy,u=i(a,c,l),s={x:0,y:0,width:o.width,height:o.height},e.a(2,{reference:u,floating:s})}}),e,this)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){qt(i,r,o,a,c,"next",e)}function c(e){qt(i,r,o,a,c,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),pn={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){var t=e.elements,n=e.rect,r=e.offsetParent,o="fixed"===e.strategy,i=bt(r),a=!!t&&It(t.floating);if(r===i||a&&o)return n;var c={scrollLeft:0,scrollTop:0},l=Se(1),u=Se(0),s=Ot(r);if((s||!s&&!o)&&(("body"!==gt(r)||Et(i))&&(c=Nt(r)),Ot(r))){var f=tn(r);l=Qt(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}var d=!i||s||o?Se(0):rn(i,c,!0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+d.x,y:n.y*l.y-c.scrollTop*l.y+u.y+d.y}},getDocumentElement:bt,getClippingRect:function(e){var t=e.element,n=e.boundary,r=e.rootBoundary,o=e.strategy,i=[..."clippingAncestors"===n?It(t)?[]:function(e,t){var n=t.get(e);if(n)return n;for(var r=Wt(e,[],!1).filter((e=>wt(e)&&"body"!==gt(e))),o=null,i="fixed"===Mt(e).position,a=i?Lt(e):e;wt(a)&&!Ft(a);){var c=Mt(a),l=Bt(a);l||"fixed"!==c.position||(o=null),(i?!l&&!o:!l&&"static"===c.position&&o&&on.has(o.position)||Et(a)&&!l&&cn(e,a))?r=r.filter((e=>e!==a)):o=c,a=Lt(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],c=i.reduce(((e,n)=>{var r=an(t,n,o);return e.top=xe(r.top,e.top),e.right=Oe(r.right,e.right),e.bottom=Oe(r.bottom,e.bottom),e.left=xe(r.left,e.left),e}),an(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:fn,getElementRects:dn,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){var t=Xt(e);return{width:t.width,height:t.height}},getScale:Qt,isElement:wt,isRTL:function(e){return"rtl"===Mt(e).direction}};function vn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function hn(e,t,n,r){void 0===r&&(r={});var o=r,i=o.ancestorScroll,a=void 0===i||i,c=o.ancestorResize,l=void 0===c||c,u=o.elementResize,s=void 0===u?"function"==typeof ResizeObserver:u,f=o.layoutShift,d=void 0===f?"function"==typeof IntersectionObserver:f,p=o.animationFrame,v=void 0!==p&&p,h=Zt(e),m=a||l?[...h?Wt(h):[],...Wt(t)]:[];m.forEach((e=>{a&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)}));var g,y=h&&d?function(e,t){var n,r=null,o=bt(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(c,l){void 0===c&&(c=!1),void 0===l&&(l=1),i();var u=e.getBoundingClientRect(),s=u.left,f=u.top,d=u.width,p=u.height;if(c||t(),d&&p){var v={rootMargin:-Ee(f)+"px "+-Ee(o.clientWidth-(s+d))+"px "+-Ee(o.clientHeight-(f+p))+"px "+-Ee(s)+"px",threshold:xe(0,Oe(1,l))||1},h=!0;try{r=new IntersectionObserver(m,Yt(Yt({},v),{},{root:o.ownerDocument}))}catch(e){r=new IntersectionObserver(m,v)}r.observe(e)}function m(t){var r=t[0].intersectionRatio;if(r!==l){if(!h)return a();r?a(!1,r):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==r||vn(u,e.getBoundingClientRect())||a(),h=!1}}(!0),i}(h,n):null,b=-1,A=null;s&&(A=new ResizeObserver((e=>{var r,o,i=(r=e,o=1,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(r,o)||function(e,t){if(e){if("string"==typeof e)return Ht(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ht(e,t):void 0}}(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];i&&i.target===h&&A&&(A.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame((()=>{var e;null==(e=A)||e.observe(t)}))),n()})),h&&!v&&A.observe(h),A.observe(t));var w=v?tn(e):null;return v&&function t(){var r=tn(e);w&&!vn(w,r)&&n(),w=r,g=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach((e=>{a&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)})),null==y||y(),null==(e=A)||e.disconnect(),A=null,v&&cancelAnimationFrame(g)}}var mn=e=>({name:"arrow",options:e,fn(t){return at(et().m((function n(){var r,o,i,a,c,l,u,s,f,d,p,v,h,m,g,y,b,A,w,O,x,C,E,S,j,P,I,D,k,T,B,_,R,F,M;return et().w((function(n){for(;;)switch(n.n){case 0:if(r=t.x,o=t.y,i=t.placement,a=t.rects,c=t.platform,l=t.elements,u=t.middlewareData,s=De(e,t)||{},f=s.element,d=s.padding,p=void 0===d?0:d,null!=f){n.n=1;break}return n.a(2,{});case 1:return v=Ge(p),h={x:r,y:o},m=Me(i),g=_e(m),n.n=2,c.getDimensions(f);case 2:return y=n.v,A=(b="y"===m)?"top":"left",w=b?"bottom":"right",O=b?"clientHeight":"clientWidth",x=a.reference[g]+a.reference[m]-h[m]-a.floating[g],C=h[m]-a.reference[m],n.n=3,null==c.getOffsetParent?void 0:c.getOffsetParent(f);case 3:if(E=n.v,S=E?E[O]:0,M=!S){n.n=5;break}return n.n=4,null==c.isElement?void 0:c.isElement(E);case 4:M=!n.v;case 5:if(!M){n.n=6;break}S=l.floating[O]||a.floating[g];case 6:return j=x/2-C/2,P=S/2-y[g]/2-1,I=Oe(v[A],P),D=Oe(v[w],P),k=I,T=S-y[g]-D,B=S/2-y[g]/2+j,_=Ie(k,B,T),R=!u.arrow&&null!=Te(i)&&B!==_&&a.reference[g]/2-(B<k?I:D)-y[g]/2<0,F=R?B<k?B-k:B-T:0,n.a(2,{[m]:h[m]+F,data:rt({[m]:_,centerOffset:B-_-F},R&&{alignmentOffset:F}),reset:R})}}),n)})))()}}),gn=(e,t,n)=>{var r=new Map,o=Yt({platform:pn},n),i=Yt(Yt({},o.platform),{},{_c:r});return lt(e,t,Yt(Yt({},o),{},{platform:i}))},yn=n(81824);function bn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function An(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bn(Object(n),!0).forEach((function(t){wn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wn(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function On(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return xn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Cn="undefined"!=typeof document?a.useLayoutEffect:function(){};function En(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;var n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!En(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){var i=o[r];if(!("_owner"===i&&e.$$typeof||En(e[i],t[i])))return!1}return!0}return e!=e&&t!=t}function Sn(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function jn(e,t){var n=Sn(e);return Math.round(t*n)/n}function Pn(e){var t=a.useRef(e);return Cn((()=>{t.current=e})),t}var In=(e,t)=>An(An({},function(e){return void 0===e&&(e=0),{name:"offset",options:e,fn(t){return at(et().m((function n(){var r,o,i,a,c,l,u;return et().w((function(n){for(;;)switch(n.n){case 0:return i=t.x,a=t.y,c=t.placement,l=t.middlewareData,n.n=1,vt(t,e);case 1:if(u=n.v,c!==(null==(r=l.offset)?void 0:r.placement)||null==(o=l.arrow)||!o.alignmentOffset){n.n=2;break}return n.a(2,{});case 2:return n.a(2,{x:i+u.x,y:a+u.y,data:rt(rt({},u),{},{placement:c})})}}),n)})))()}}}(e)),{},{options:[e,t]}),Dn=(e,t)=>An(An({},function(e){return void 0===e&&(e={}),{name:"shift",options:e,fn(t){return at(et().m((function n(){var r,o,i,a,c,l,u,s,f,d,p,v,h,m,g,y,b,A,w,O,x,C,E,S;return et().w((function(n){for(;;)switch(n.n){case 0:return r=t.x,o=t.y,i=t.placement,a=De(e,t),c=a.mainAxis,l=void 0===c||c,u=a.crossAxis,s=void 0!==u&&u,f=a.limiter,d=void 0===f?{fn:e=>({x:e.x,y:e.y})}:f,p=Je(a,Ze),v={x:r,y:o},n.n=1,ut(t,p);case 1:return h=n.v,m=Fe(ke(i)),g=Be(m),y=v[g],b=v[m],l&&(A="y"===g?"bottom":"right",w=y+h["y"===g?"top":"left"],O=y-h[A],y=Ie(w,y,O)),s&&(x="y"===m?"bottom":"right",C=b+h["y"===m?"top":"left"],E=b-h[x],b=Ie(C,b,E)),S=d.fn(rt(rt({},t),{},{[g]:y,[m]:b})),n.a(2,rt(rt({},S),{},{data:{x:S.x-r,y:S.y-o,enabled:{[g]:l,[m]:s}}}))}}),n)})))()}}}(e)),{},{options:[e,t]}),kn=(e,t)=>An(An({},function(e){return void 0===e&&(e={}),{options:e,fn(t){var n=t.x,r=t.y,o=t.placement,i=t.rects,a=t.middlewareData,c=De(e,t),l=c.offset,u=void 0===l?0:l,s=c.mainAxis,f=void 0===s||s,d=c.crossAxis,p=void 0===d||d,v={x:n,y:r},h=Fe(o),m=Be(h),g=v[m],y=v[h],b=De(u,t),A="number"==typeof b?{mainAxis:b,crossAxis:0}:rt({mainAxis:0,crossAxis:0},b);if(f){var w="y"===m?"height":"width",O=i.reference[m]-i.floating[w]+A.mainAxis,x=i.reference[m]+i.reference[w]-A.mainAxis;g<O?g=O:g>x&&(g=x)}if(p){var C,E,S="y"===m?"width":"height",j=pt.has(ke(o)),P=i.reference[h]-i.floating[S]+(j&&(null==(C=a.offset)?void 0:C[h])||0)+(j?0:A.crossAxis),I=i.reference[h]+i.reference[S]+(j?0:(null==(E=a.offset)?void 0:E[h])||0)-(j?A.crossAxis:0);y<P?y=P:y>I&&(y=I)}return{[m]:g,[h]:y}}}}(e)),{},{options:[e,t]}),Tn=(e,t)=>An(An({},function(e){return void 0===e&&(e={}),{name:"flip",options:e,fn(t){return at(et().m((function n(){var r,o,i,a,c,l,u,s,f,d,p,v,h,m,g,y,b,A,w,O,x,C,E,S,j,P,I,D,k,T,B,_,R,F,M,N,L,z,W,U;return et().w((function(n){for(;;)switch(n.n){case 0:if(i=t.placement,a=t.middlewareData,c=t.rects,l=t.initialPlacement,u=t.platform,s=t.elements,f=De(e,t),d=f.mainAxis,p=void 0===d||d,v=f.crossAxis,h=void 0===v||v,m=f.fallbackPlacements,g=f.fallbackStrategy,y=void 0===g?"bestFit":g,b=f.fallbackAxisSideDirection,A=void 0===b?"none":b,w=f.flipAlignment,O=void 0===w||w,x=Je(f,qe),null==(r=a.arrow)||!r.alignmentOffset){n.n=1;break}return n.a(2,{});case 1:return C=ke(i),E=Fe(l),S=ke(l)===l,n.n=2,null==u.isRTL?void 0:u.isRTL(s.floating);case 2:return j=n.v,P=m||(S||!O?[Ke(l)]:Le(l)),I="none"!==A,!m&&I&&P.push(...Ye(l,O,A,j)),D=[l,...P],n.n=3,ut(t,x);case 3:if(k=n.v,T=[],B=(null==(o=a.flip)?void 0:o.overflows)||[],p&&T.push(k[C]),h&&(_=Ne(i,c,j),T.push(k[_[0]],k[_[1]])),B=[...B,{placement:i,overflows:T}],T.every((e=>e<=0))){n.n=8;break}if(M=((null==(R=a.flip)?void 0:R.index)||0)+1,!(N=D[M])){n.n=4;break}if("alignment"===h&&E!==Fe(N)&&!B.every((e=>Fe(e.placement)!==E||e.overflows[0]>0))){n.n=4;break}return n.a(2,{data:{index:M,overflows:B},reset:{placement:N}});case 4:if(L=null==(F=B.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:F.placement){n.n=7;break}U=y,n.n="bestFit"===U?5:"initialPlacement"===U?6:7;break;case 5:return W=null==(z=B.filter((e=>{if(I){var t=Fe(e.placement);return t===E||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:z[0],W&&(L=W),n.a(3,7);case 6:return L=l,n.a(3,7);case 7:if(i===L){n.n=8;break}return n.a(2,{reset:{placement:L}});case 8:return n.a(2,{})}}),n)})))()}}}(e)),{},{options:[e,t]}),Bn=(e,t)=>An(An({},function(e){return void 0===e&&(e={}),{name:"size",options:e,fn(t){return at(et().m((function n(){var r,o,i,a,c,l,u,s,f,d,p,v,h,m,g,y,b,A,w,O,x,C,E,S,j,P,I,D,k,T,B,_,R,F;return et().w((function(n){for(;;)switch(n.n){case 0:return i=t.placement,a=t.rects,c=t.platform,l=t.elements,u=De(e,t),s=u.apply,f=void 0===s?()=>{}:s,d=Je(u,Qe),n.n=1,ut(t,d);case 1:if(p=n.v,v=ke(i),h=Te(i),m="y"===Fe(i),g=a.floating,y=g.width,b=g.height,"top"!==v&&"bottom"!==v){n.n=7;break}return A=v,_=h,n.n=2,null==c.isRTL?void 0:c.isRTL(l.floating);case 2:if(!n.v){n.n=3;break}R="start",n.n=4;break;case 3:R="end";case 4:if(_!==R){n.n=5;break}F="left",n.n=6;break;case 5:F="right";case 6:w=F,n.n=8;break;case 7:w=v,A="end"===h?"top":"bottom";case 8:return O=b-p.top-p.bottom,x=y-p.left-p.right,C=Oe(b-p[A],O),E=Oe(y-p[w],x),S=!t.middlewareData.shift,j=C,P=E,null!=(r=t.middlewareData.shift)&&r.enabled.x&&(P=x),null!=(o=t.middlewareData.shift)&&o.enabled.y&&(j=O),S&&!h&&(I=xe(p.left,0),D=xe(p.right,0),k=xe(p.top,0),T=xe(p.bottom,0),m?P=y-2*(0!==I||0!==D?I+D:xe(p.left,p.right)):j=b-2*(0!==k||0!==T?k+T:xe(p.top,p.bottom))),n.n=9,f(rt(rt({},t),{},{availableWidth:P,availableHeight:j}));case 9:return n.n=10,c.getDimensions(l.floating);case 10:if(B=n.v,y===B.width&&b===B.height){n.n=11;break}return n.a(2,{reset:{rects:!0}});case 11:return n.a(2,{})}}),n)})))()}}}(e)),{},{options:[e,t]}),_n=(e,t)=>An(An({},function(e){return void 0===e&&(e={}),{name:"hide",options:e,fn(t){return at(et().m((function n(){var r,o,i,a,c,l,u,s,f,d;return et().w((function(n){for(;;)switch(n.n){case 0:r=t.rects,o=De(e,t),i=o.strategy,a=void 0===i?"referenceHidden":i,c=Je(o,Xe),d=a,n.n="referenceHidden"===d?1:"escaped"===d?3:5;break;case 1:return n.n=2,ut(t,rt(rt({},c),{},{elementContext:"reference"}));case 2:return l=n.v,u=ft(l,r.reference),n.a(2,{data:{referenceHiddenOffsets:u,referenceHidden:dt(u)}});case 3:return n.n=4,ut(t,rt(rt({},c),{},{altBoundary:!0}));case 4:return s=n.v,f=ft(s,r.floating),n.a(2,{data:{escapedOffsets:f,escaped:dt(f)}});case 5:return n.a(2,{});case 6:return n.a(2)}}),n)})))()}}}(e)),{},{options:[e,t]}),Rn=(e,t)=>An(An({},(e=>({name:"arrow",options:e,fn(t){var n,r="function"==typeof e?e(t):e,o=r.element,i=r.padding;return o&&(n=o,{}.hasOwnProperty.call(n,"current"))?null!=o.current?mn({element:o.current,padding:i}).fn(t):{}:o?mn({element:o,padding:i}).fn(t):{}}}))(e)),{},{options:[e,t]}),Fn=["children","width","height"];function Mn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mn(Object(n),!0).forEach((function(t){Ln(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ln(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zn=a.forwardRef(((e,t)=>{var n=e.children,r=e.width,o=void 0===r?10:r,i=e.height,a=void 0===i?5:i,c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Fn);return(0,_.jsx)(T.sG.svg,Nn(Nn({},c),{},{ref:t,width:o,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,_.jsx)("polygon",{points:"0,0 30,0 15,10"})}))}));zn.displayName="Arrow";var Wn=zn,Un=n(84881),Hn=["__scopePopper","virtualRef"],$n=["__scopePopper","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","onPlaced"],Yn=["__scopePopper"];function Kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kn(Object(n),!0).forEach((function(t){Vn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vn(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Xn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Zn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Qn="Popper",Jn=Xn((0,k.A)(Qn),2),er=Jn[0],tr=Jn[1],nr=Xn(er(Qn),2),rr=nr[0],or=nr[1],ir=e=>{var t=e.__scopePopper,n=e.children,r=Xn(a.useState(null),2),o=r[0],i=r[1];return(0,_.jsx)(rr,{scope:t,anchor:o,onAnchorChange:i,children:n})};ir.displayName=Qn;var ar="PopperAnchor",cr=a.forwardRef(((e,t)=>{var n=e.__scopePopper,r=e.virtualRef,o=qn(e,Hn),i=or(ar,n),c=a.useRef(null),l=(0,D.s)(t,c),u=a.useRef(null);return a.useEffect((()=>{var e=u.current;u.current=(null==r?void 0:r.current)||c.current,e!==u.current&&i.onAnchorChange(u.current)})),r?null:(0,_.jsx)(T.sG.div,Gn(Gn({},o),{},{ref:l}))}));cr.displayName=ar;var lr="PopperContent",ur=Xn(er(lr),2),sr=ur[0],fr=ur[1],dr=a.forwardRef(((e,t)=>{var n,r,o,i,c,l,u,s,f=e.__scopePopper,d=e.side,p=void 0===d?"bottom":d,v=e.sideOffset,h=void 0===v?0:v,m=e.align,g=void 0===m?"center":m,y=e.alignOffset,b=void 0===y?0:y,A=e.arrowPadding,w=void 0===A?0:A,O=e.avoidCollisions,x=void 0===O||O,C=e.collisionBoundary,E=void 0===C?[]:C,S=e.collisionPadding,j=void 0===S?0:S,P=e.sticky,I=void 0===P?"partial":P,k=e.hideWhenDetached,R=void 0!==k&&k,F=e.updatePositionStrategy,M=void 0===F?"optimized":F,N=e.onPlaced,L=qn(e,$n),z=or(lr,f),W=Xn(a.useState(null),2),U=W[0],H=W[1],$=(0,D.s)(t,(e=>H(e))),Y=Xn(a.useState(null),2),K=Y[0],G=Y[1],V=(0,Un.X)(K),q=null!==(n=null==V?void 0:V.width)&&void 0!==n?n:0,X=null!==(r=null==V?void 0:V.height)&&void 0!==r?r:0,Z=p+("center"!==g?"-"+g:""),Q="number"==typeof j?j:Gn({top:0,right:0,bottom:0,left:0},j),J=Array.isArray(E)?E:[E],ee=J.length>0,te={padding:Q,boundary:J.filter(mr),altBoundary:ee},ne=function(e){void 0===e&&(e={});var t=e,n=t.placement,r=void 0===n?"bottom":n,o=t.strategy,i=void 0===o?"absolute":o,c=t.middleware,l=void 0===c?[]:c,u=t.platform,s=t.elements,f=void 0===s?{}:s,d=f.reference,p=f.floating,v=t.transform,h=void 0===v||v,m=t.whileElementsMounted,g=t.open,y=On(a.useState({x:0,y:0,strategy:i,placement:r,middlewareData:{},isPositioned:!1}),2),b=y[0],A=y[1],w=On(a.useState(l),2),O=w[0],x=w[1];En(O,l)||x(l);var C=On(a.useState(null),2),E=C[0],S=C[1],j=On(a.useState(null),2),P=j[0],I=j[1],D=a.useCallback((e=>{e!==_.current&&(_.current=e,S(e))}),[]),k=a.useCallback((e=>{e!==R.current&&(R.current=e,I(e))}),[]),T=d||E,B=p||P,_=a.useRef(null),R=a.useRef(null),F=a.useRef(b),M=null!=m,N=Pn(m),L=Pn(u),z=Pn(g),W=a.useCallback((()=>{if(_.current&&R.current){var e={placement:r,strategy:i,middleware:O};L.current&&(e.platform=L.current),gn(_.current,R.current,e).then((e=>{var t=An(An({},e),{},{isPositioned:!1!==z.current});U.current&&!En(F.current,t)&&(F.current=t,yn.flushSync((()=>{A(t)})))}))}}),[O,r,i,L,z]);Cn((()=>{!1===g&&F.current.isPositioned&&(F.current.isPositioned=!1,A((e=>An(An({},e),{},{isPositioned:!1}))))}),[g]);var U=a.useRef(!1);Cn((()=>(U.current=!0,()=>{U.current=!1})),[]),Cn((()=>{if(T&&(_.current=T),B&&(R.current=B),T&&B){if(N.current)return N.current(T,B,W);W()}}),[T,B,W,N,M]);var H=a.useMemo((()=>({reference:_,floating:R,setReference:D,setFloating:k})),[D,k]),$=a.useMemo((()=>({reference:T,floating:B})),[T,B]),Y=a.useMemo((()=>{var e={position:i,left:0,top:0};if(!$.floating)return e;var t=jn($.floating,b.x),n=jn($.floating,b.y);return h?An(An({},e),{},{transform:"translate("+t+"px, "+n+"px)"},Sn($.floating)>=1.5&&{willChange:"transform"}):{position:i,left:t,top:n}}),[i,h,$.floating,b.x,b.y]);return a.useMemo((()=>An(An({},b),{},{update:W,refs:H,elements:$,floatingStyles:Y})),[b,W,H,$,Y])}({strategy:"fixed",placement:Z,whileElementsMounted:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return hn(...t,{animationFrame:"always"===M})},elements:{reference:z.anchor},middleware:[In({mainAxis:h+X,alignmentAxis:b}),x&&Dn(Gn({mainAxis:!0,crossAxis:!1,limiter:"partial"===I?kn():void 0},te)),x&&Tn(Gn({},te)),Bn(Gn(Gn({},te),{},{apply:e=>{var t=e.elements,n=e.rects,r=e.availableWidth,o=e.availableHeight,i=n.reference,a=i.width,c=i.height,l=t.floating.style;l.setProperty("--radix-popper-available-width","".concat(r,"px")),l.setProperty("--radix-popper-available-height","".concat(o,"px")),l.setProperty("--radix-popper-anchor-width","".concat(a,"px")),l.setProperty("--radix-popper-anchor-height","".concat(c,"px"))}})),K&&Rn({element:K,padding:w}),gr({arrowWidth:q,arrowHeight:X}),R&&_n(Gn({strategy:"referenceHidden"},te))]}),re=ne.refs,oe=ne.floatingStyles,ie=ne.placement,ae=ne.isPositioned,ce=ne.middlewareData,le=Xn(yr(ie),2),ue=le[0],se=le[1],fe=B(N);(0,ve.N)((()=>{ae&&(null==fe||fe())}),[ae,fe]);var de=null===(o=ce.arrow)||void 0===o?void 0:o.x,pe=null===(i=ce.arrow)||void 0===i?void 0:i.y,he=0!==(null===(c=ce.arrow)||void 0===c?void 0:c.centerOffset),me=Xn(a.useState(),2),ge=me[0],ye=me[1];return(0,ve.N)((()=>{U&&ye(window.getComputedStyle(U).zIndex)}),[U]),(0,_.jsx)("div",{ref:re.setFloating,"data-radix-popper-content-wrapper":"",style:Gn(Gn({},oe),{},{transform:ae?oe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[null===(l=ce.transformOrigin)||void 0===l?void 0:l.x,null===(u=ce.transformOrigin)||void 0===u?void 0:u.y].join(" ")},(null===(s=ce.hide)||void 0===s?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}),dir:e.dir,children:(0,_.jsx)(sr,{scope:f,placedSide:ue,onArrowChange:G,arrowX:de,arrowY:pe,shouldHideArrow:he,children:(0,_.jsx)(T.sG.div,Gn(Gn({"data-side":ue,"data-align":se},L),{},{ref:$,style:Gn(Gn({},L.style),{},{animation:ae?void 0:"none"})}))})})}));dr.displayName=lr;var pr="PopperArrow",vr={top:"bottom",right:"left",bottom:"top",left:"right"},hr=a.forwardRef((function(e,t){var n=e.__scopePopper,r=qn(e,Yn),o=fr(pr,n),i=vr[o.placedSide];return(0,_.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,_.jsx)(Wn,Gn(Gn({},r),{},{ref:t,style:Gn(Gn({},r.style),{},{display:"block"})}))})}));function mr(e){return null!==e}hr.displayName=pr;var gr=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a,c=t.placement,l=t.rects,u=t.middlewareData,s=0!==(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset),f=s?0:e.arrowWidth,d=s?0:e.arrowHeight,p=Xn(yr(c),2),v=p[0],h={start:"0%",center:"50%",end:"100%"}[p[1]],m=(null!==(r=null===(o=u.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+f/2,g=(null!==(i=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+d/2,y="",b="";return"bottom"===v?(y=s?h:"".concat(m,"px"),b="".concat(-d,"px")):"top"===v?(y=s?h:"".concat(m,"px"),b="".concat(l.floating.height+d,"px")):"right"===v?(y="".concat(-d,"px"),b=s?h:"".concat(g,"px")):"left"===v&&(y="".concat(l.floating.width+d,"px"),b=s?h:"".concat(g,"px")),{data:{x:y,y:b}}}});function yr(e){var t=Xn(e.split("-"),2),n=t[0],r=t[1];return[n,void 0===r?"center":r]}var br=ir,Ar=cr,wr=dr,Or=hr,xr=["container"];function Cr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Er(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cr(Object(n),!0).forEach((function(t){Sr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sr(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Pr=a.forwardRef(((e,t)=>{var n,r,o,i=e.container,c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,xr),l=(r=a.useState(!1),o=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(r,o)||function(e,t){if(e){if("string"==typeof e)return jr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jr(e,t):void 0}}(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=l[0],s=l[1];(0,ve.N)((()=>s(!0)),[]);var f=i||u&&(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body);return f?yn.createPortal((0,_.jsx)(T.sG.div,Er(Er({},c),{},{ref:t})),f):null}));function Ir(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Dr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Dr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Pr.displayName="Portal";var kr=e=>{var t,n,r,o,i=e.present,c=e.children,l=function(e){var t=Ir(a.useState(),2),n=t[0],r=t[1],o=a.useRef(null),i=a.useRef(e),c=a.useRef("none"),l=Ir(function(e,t){return a.useReducer(((e,n)=>{var r=t[e][n];return null!=r?r:e}),e)}(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),2),u=l[0],s=l[1];return a.useEffect((()=>{var e=Tr(o.current);c.current="mounted"===u?e:"none"}),[u]),(0,ve.N)((()=>{var t=o.current,n=i.current;if(n!==e){var r=c.current,a=Tr(t);e?s("MOUNT"):"none"===a||"none"===(null==t?void 0:t.display)?s("UNMOUNT"):s(n&&r!==a?"ANIMATION_OUT":"UNMOUNT"),i.current=e}}),[e,s]),(0,ve.N)((()=>{if(n){var e,t,r=null!==(e=n.ownerDocument.defaultView)&&void 0!==e?e:window,a=e=>{var a=Tr(o.current).includes(CSS.escape(e.animationName));if(e.target===n&&a&&(s("ANIMATION_END"),!i.current)){var c=n.style.animationFillMode;n.style.animationFillMode="forwards",t=r.setTimeout((()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=c)}))}},l=e=>{e.target===n&&(c.current=Tr(o.current))};return n.addEventListener("animationstart",l),n.addEventListener("animationcancel",a),n.addEventListener("animationend",a),()=>{r.clearTimeout(t),n.removeEventListener("animationstart",l),n.removeEventListener("animationcancel",a),n.removeEventListener("animationend",a)}}s("ANIMATION_END")}),[n,s]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:a.useCallback((e=>{o.current=e?getComputedStyle(e):null,r(e)}),[])}}(i),u="function"==typeof c?c({present:l.isPresent}):a.Children.only(c),s=(0,D.s)(l.ref,(t=u,o=null===(n=Object.getOwnPropertyDescriptor(t.props,"ref"))||void 0===n?void 0:n.get,o&&"isReactWarning"in o&&o.isReactWarning?t.ref:(o=null===(r=Object.getOwnPropertyDescriptor(t,"ref"))||void 0===r?void 0:r.get)&&"isReactWarning"in o&&o.isReactWarning?t.props.ref:t.props.ref||t.ref));return"function"==typeof c||l.isPresent?a.cloneElement(u,{ref:s}):null};function Tr(e){return(null==e?void 0:e.animationName)||"none"}kr.displayName="Presence";var Br=n(41050),_r=n(92847),Rr=n(96763),Fr=new WeakMap,Mr=new WeakMap,Nr={},Lr=0,zr=function(e){return e&&(e.host||zr(e.parentNode))},Wr=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=zr(t);return n&&e.contains(n)?n:(Rr.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);Nr[n]||(Nr[n]=new WeakMap);var i=Nr[n],a=[],c=new Set,l=new Set(o),u=function(e){e&&!c.has(e)&&(c.add(e),u(e.parentNode))};o.forEach(u);var s=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(c.has(e))s(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(Fr.get(e)||0)+1,u=(i.get(e)||0)+1;Fr.set(e,l),i.set(e,u),a.push(e),1===l&&o&&Mr.set(e,!0),1===u&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){Rr.error("aria-hidden: cannot operate on ",e,t)}}))};return s(t),c.clear(),Lr++,function(){a.forEach((function(e){var t=Fr.get(e)-1,o=i.get(e)-1;Fr.set(e,t),i.set(e,o),t||(Mr.has(e)||e.removeAttribute(r),Mr.delete(e)),o||e.removeAttribute(n)})),--Lr||(Fr=new WeakMap,Fr=new WeakMap,Mr=new WeakMap,Nr={})}}(r,o,n,"aria-hidden")):function(){return null}},Ur=function(){return Ur=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ur.apply(this,arguments)};function Hr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var $r="right-scroll-bar-position",Yr="width-before-scroll-bar";function Kr(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Gr="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,Vr=new WeakMap;function qr(e){return e}var Xr=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=qr);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=Ur({async:!0,ssr:!1},e),t}(),Zr=function(){},Qr=a.forwardRef((function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:Zr,onWheelCapture:Zr,onTouchMoveCapture:Zr}),o=r[0],i=r[1],c=e.forwardProps,l=e.children,u=e.className,s=e.removeScrollBar,f=e.enabled,d=e.shards,p=e.sideCar,v=e.noRelative,h=e.noIsolation,m=e.inert,g=e.allowPinchZoom,y=e.as,b=void 0===y?"div":y,A=e.gapMode,w=Hr(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=p,x=function(e,t){var n,r,o,i=(n=t||null,r=function(t){return e.forEach((function(e){return Kr(e,t)}))},(o=(0,a.useState)((function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}}))[0]).callback=r,o.facade);return Gr((function(){var t=Vr.get(i);if(t){var n=new Set(t),r=new Set(e),o=i.current;n.forEach((function(e){r.has(e)||Kr(e,null)})),r.forEach((function(e){n.has(e)||Kr(e,o)}))}Vr.set(i,e)}),[e]),i}([n,t]),C=Ur(Ur({},w),o);return a.createElement(a.Fragment,null,f&&a.createElement(O,{sideCar:Xr,removeScrollBar:s,shards:d,noRelative:v,noIsolation:h,inert:m,setCallbacks:i,allowPinchZoom:!!g,lockRef:n,gapMode:A}),c?a.cloneElement(a.Children.only(l),Ur(Ur({},C),{ref:x})):a.createElement(b,Ur({},C,{className:u,ref:x}),l))}));Qr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Qr.classNames={fullWidth:Yr,zeroRight:$r};var Jr=function(e){var t=e.sideCar,n=Hr(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return a.createElement(r,Ur({},n))};Jr.isSideCarExport=!0;var eo=function(){var e=0,t=null;return{add:function(r){var o,i;0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=n.nc;return t&&e.setAttribute("nonce",t),e}())&&(i=r,(o=t).styleSheet?o.styleSheet.cssText=i:o.appendChild(document.createTextNode(i)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},to=function(){var e,t=(e=eo(),function(t,n){a.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},no={left:0,top:0,right:0,gap:0},ro=function(e){return parseInt(e||"",10)||0},oo=to(),io="data-scroll-locked",ao=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,c=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(c,"px ").concat(r,";\n }\n body[").concat(io,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(c,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat($r," {\n right: ").concat(c,"px ").concat(r,";\n }\n \n .").concat(Yr," {\n margin-right: ").concat(c,"px ").concat(r,";\n }\n \n .").concat($r," .").concat($r," {\n right: 0 ").concat(r,";\n }\n \n .").concat(Yr," .").concat(Yr," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(io,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(c,"px;\n }\n")},co=function(){var e=parseInt(document.body.getAttribute(io)||"0",10);return isFinite(e)?e:0},lo=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;a.useEffect((function(){return document.body.setAttribute(io,(co()+1).toString()),function(){var e=co()-1;e<=0?document.body.removeAttribute(io):document.body.setAttribute(io,e.toString())}}),[]);var i=a.useMemo((function(){return function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return no;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[ro(n),ro(r),ro(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}}(o)}),[o]);return a.createElement(oo,{styles:ao(i,!t,o,n?"":"!important")})},uo=!1;if("undefined"!=typeof window)try{var so=Object.defineProperty({},"passive",{get:function(){return uo=!0,!0}});window.addEventListener("test",so,so),window.removeEventListener("test",so,so)}catch(e){uo=!1}var fo=!!uo&&{passive:!1},po=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},vo=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),ho(e,r)){var o=mo(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ho=function(e,t){return"v"===e?function(e){return po(e,"overflowY")}(t):function(e){return po(e,"overflowX")}(t)},mo=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},go=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},yo=function(e){return[e.deltaX,e.deltaY]},bo=function(e){return e&&"current"in e?e.current:e},Ao=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},wo=0,Oo=[];function xo(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Co,Eo=(Co=function(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(wo++)[0],i=a.useState(to)[0],c=a.useRef(e);a.useEffect((function(){c.current=e}),[e]),a.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(bo),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=a.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!c.current.allowPinchZoom;var o,i=go(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-i[0],u="deltaY"in e?e.deltaY:a[1]-i[1],s=e.target,f=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===f&&"range"===s.type)return!1;var d=vo(f,s);if(!d)return!0;if(d?o=f:(o="v"===f?"h":"v",d=vo(f,s)),!d)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=o*r,a=n.target,c=t.contains(a),l=!1,u=i>0,s=0,f=0;do{if(!a)break;var d=mo(e,a),p=d[0],v=d[1]-d[2]-o*p;(p||v)&&ho(e,a)&&(s+=v,f+=p);var h=a.parentNode;a=h&&h.nodeType===Node.DOCUMENT_FRAGMENT_NODE?h.host:h}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(u&&(Math.abs(s)<1||!1)||!u&&(Math.abs(f)<1||!1))&&(l=!0),l}(p,t,e,"h"===p?l:u)}),[]),u=a.useCallback((function(e){var n=e;if(Oo.length&&Oo[Oo.length-1]===i){var r="deltaY"in n?yo(n):go(n),o=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var a=(c.current.shards||[]).map(bo).filter(Boolean).filter((function(e){return e.contains(n.target)}));(a.length>0?l(n,a[0]):!c.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),s=a.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:xo(r)};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),f=a.useCallback((function(e){n.current=go(e),r.current=void 0}),[]),d=a.useCallback((function(t){s(t.type,yo(t),t.target,l(t,e.lockRef.current))}),[]),p=a.useCallback((function(t){s(t.type,go(t),t.target,l(t,e.lockRef.current))}),[]);a.useEffect((function(){return Oo.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",u,fo),document.addEventListener("touchmove",u,fo),document.addEventListener("touchstart",f,fo),function(){Oo=Oo.filter((function(e){return e!==i})),document.removeEventListener("wheel",u,fo),document.removeEventListener("touchmove",u,fo),document.removeEventListener("touchstart",f,fo)}}),[]);var v=e.removeScrollBar,h=e.inert;return a.createElement(a.Fragment,null,h?a.createElement(i,{styles:Ao(o)}):null,v?a.createElement(lo,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},Xr.useMedium(Co),Jr),So=a.forwardRef((function(e,t){return a.createElement(Qr,Ur({},e,{ref:t,sideCar:Eo}))}));So.classNames=Qr.classNames;var jo=So,Po=["__scopePopover"],Io=["__scopePopover"],Do=["forceMount"],ko=["__scopePopover","trapFocus","onOpenAutoFocus","onCloseAutoFocus","disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside"],To=["__scopePopover"],Bo=["__scopePopover"];function _o(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ro(Object(n),!0).forEach((function(t){Mo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ro(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mo(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function No(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Lo(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lo(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var zo="Popover",Wo=No((0,k.A)(zo,[tr]),2),Uo=Wo[0],Ho=(Wo[1],tr()),$o=No(Uo(zo),2),Yo=$o[0],Ko=$o[1],Go=e=>{var t=e.__scopePopover,n=e.children,r=e.open,o=e.defaultOpen,i=e.onOpenChange,c=e.modal,l=void 0!==c&&c,u=Ho(t),s=a.useRef(null),f=No(a.useState(!1),2),d=f[0],p=f[1],v=No((0,_r.i)({prop:r,defaultProp:null!=o&&o,onChange:i,caller:zo}),2),h=v[0],m=v[1];return(0,_.jsx)(br,Fo(Fo({},u),{},{children:(0,_.jsx)(Yo,{scope:t,contentId:ye(),triggerRef:s,open:h,onOpenChange:m,onOpenToggle:a.useCallback((()=>m((e=>!e))),[m]),hasCustomAnchor:d,onCustomAnchorAdd:a.useCallback((()=>p(!0)),[]),onCustomAnchorRemove:a.useCallback((()=>p(!1)),[]),modal:l,children:n})}))};Go.displayName=zo;var Vo="PopoverAnchor";a.forwardRef(((e,t)=>{var n=e.__scopePopover,r=_o(e,Po),o=Ko(Vo,n),i=Ho(n),c=o.onCustomAnchorAdd,l=o.onCustomAnchorRemove;return a.useEffect((()=>(c(),()=>l())),[c,l]),(0,_.jsx)(Ar,Fo(Fo(Fo({},i),r),{},{ref:t}))})).displayName=Vo;var qo="PopoverTrigger",Xo=a.forwardRef(((e,t)=>{var n=e.__scopePopover,r=_o(e,Io),o=Ko(qo,n),i=Ho(n),a=(0,D.s)(t,o.triggerRef),c=(0,_.jsx)(T.sG.button,Fo(Fo({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ui(o.open)},r),{},{ref:a,onClick:(0,I.mK)(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?c:(0,_.jsx)(Ar,Fo(Fo({asChild:!0},i),{},{children:c}))}));Xo.displayName=qo;var Zo="PopoverPortal",Qo=No(Uo(Zo,{forceMount:void 0}),2),Jo=Qo[0],ei=Qo[1],ti=e=>{var t=e.__scopePopover,n=e.forceMount,r=e.children,o=e.container,i=Ko(Zo,t);return(0,_.jsx)(Jo,{scope:t,forceMount:n,children:(0,_.jsx)(kr,{present:n||i.open,children:(0,_.jsx)(Pr,{asChild:!0,container:o,children:r})})})};ti.displayName=Zo;var ni="PopoverContent",ri=a.forwardRef(((e,t)=>{var n=ei(ni,e.__scopePopover),r=e.forceMount,o=void 0===r?n.forceMount:r,i=_o(e,Do),a=Ko(ni,e.__scopePopover);return(0,_.jsx)(kr,{present:o||a.open,children:a.modal?(0,_.jsx)(ii,Fo(Fo({},i),{},{ref:t})):(0,_.jsx)(ai,Fo(Fo({},i),{},{ref:t}))})}));ri.displayName=ni;var oi=(0,Br.TL)("PopoverContent.RemoveScroll"),ii=a.forwardRef(((e,t)=>{var n=Ko(ni,e.__scopePopover),r=a.useRef(null),o=(0,D.s)(t,r),i=a.useRef(!1);return a.useEffect((()=>{var e=r.current;if(e)return Wr(e)}),[]),(0,_.jsx)(jo,{as:oi,allowPinchZoom:!0,children:(0,_.jsx)(ci,Fo(Fo({},e),{},{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,I.mK)(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),i.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:(0,I.mK)(e.onPointerDownOutside,(e=>{var t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;i.current=r}),{checkForDefaultPrevented:!1}),onFocusOutside:(0,I.mK)(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1})}))})})),ai=a.forwardRef(((e,t)=>{var n=Ko(ni,e.__scopePopover),r=a.useRef(!1),o=a.useRef(!1);return(0,_.jsx)(ci,Fo(Fo({},e),{},{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,a;null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{var i,a;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));var c=t.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(c))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}}))})),ci=a.forwardRef(((e,t)=>{var n=e.__scopePopover,r=e.trapFocus,o=e.onOpenAutoFocus,i=e.onCloseAutoFocus,c=e.disableOutsidePointerEvents,l=e.onEscapeKeyDown,u=e.onPointerDownOutside,s=e.onFocusOutside,f=e.onInteractOutside,d=_o(e,ko),p=Ko(ni,n),v=Ho(n);return a.useEffect((()=>{var e,t,n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:V()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:V()),G++,()=>{1===G&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),G--}}),[]),(0,_.jsx)(ae,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,_.jsx)($,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:f,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:s,onDismiss:()=>p.onOpenChange(!1),children:(0,_.jsx)(wr,Fo(Fo(Fo({"data-state":ui(p.open),role:"dialog",id:p.contentId},v),d),{},{ref:t,style:Fo(Fo({},d.style),{"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"})}))})})})),li="PopoverClose";function ui(e){return e?"open":"closed"}a.forwardRef(((e,t)=>{var n=e.__scopePopover,r=_o(e,To),o=Ko(li,n);return(0,_.jsx)(T.sG.button,Fo(Fo({type:"button"},r),{},{ref:t,onClick:(0,I.mK)(e.onClick,(()=>o.onOpenChange(!1)))}))})).displayName=li,a.forwardRef(((e,t)=>{var n=e.__scopePopover,r=_o(e,Bo),o=Ho(n);return(0,_.jsx)(Or,Fo(Fo(Fo({},o),r),{},{ref:t}))})).displayName="PopoverArrow";var si=Go,fi=Xo,di=ti,pi=ri,vi=n(85072),hi=n.n(vi),mi=n(97825),gi=n.n(mi),yi=n(55056),bi=n.n(yi),Ai=n(10540),wi=n.n(Ai),Oi=n(41113),xi=n.n(Oi),Ci=n(12499),Ei={};Ei.styleTagTransform=xi(),Ei.setAttributes=bi(),Ei.insert=function(e){var t=document.querySelector("head"),n=window._lastElementInsertedByStyleLoader;n?n.nextSibling?t.insertBefore(e,n.nextSibling):t.appendChild(e):t.insertBefore(e,t.firstChild),window._lastElementInsertedByStyleLoader=e},Ei.domAPI=gi(),Ei.insertStyleElement=wi(),hi()(Ci.A,Ei),Ci.A&&Ci.A.locals&&Ci.A.locals;var Si=n(30115),ji=n.n(Si),Pi=n(52518),Ii=n(9797),Di=n.n(Ii);function ki(){return ki=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ki.apply(null,arguments)}function Ti(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Bi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bi(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var _i=e=>{var t,n,c=e.id,s=e.className,f=e.closeOnSelect,d=e.clearable,p=e.disabled,h=e.labels,m=e.maxHeight,g=e.multi,A=e.options,O=e.optionHeight,x=e.setProps,E=e.searchable,j=e.search_value,I=e.style,D=e.value,k=Ti((0,a.useState)(),2),T=k[0],B=k[1],_=Ti((0,a.useState)(!1),2),R=_[0],F=_[1],M=Ti((0,a.useState)([]),2),N=M[0],L=M[1],z=(0,a.useRef)([]),W=(0,a.useRef)(null),U=(0,a.useRef)(document.createElement("div")),H=window.dash_component_api.useDashContext().useLoading();z&&ji()(A,z.current)||(z.current=A);var $=(0,a.useMemo)((()=>function(e,t,n){var r=(0,b.s)(e),o=["value"],i=!1,a=!1;if(r=Array.isArray(r)?r.map((e=>(e.search&&(a=!0),l().isValidElement(e.label)&&(i=!0),e))):r,i||o.push("label"),a&&o.push("search"),!t||!n)return{sanitizedOptions:r||[],filteredOptions:r||[]};var c=new y("value");return c.searchIndex=new v,c.indexStrategy=new u,c.tokenizer=w,o.forEach((e=>{c.addIndex(e)})),r&&r.length>0&&c.addDocuments(r),{sanitizedOptions:r||[],filteredOptions:c.search(n)||[]}}(z.current,!!E,j)),[z.current,E,j]),Y=$.sanitizedOptions,K=$.filteredOptions,G=(0,a.useMemo)((()=>D instanceof Array?D:(0,r.A)(D)?[]:[D]),[D]),V=(0,a.useCallback)((e=>{!1!==f&&F(!1),g?0===e.length?d&&x({value:[]}):x({value:e}):0===e.length?d&&x({value:null}):x({value:e[e.length-1]})}),[g,d,f]),q=(0,a.useCallback)((e=>x({search_value:e})),[]),X=(0,a.useCallback)((e=>{if(e.currentTarget instanceof HTMLElement){var t,n=e.currentTarget.parentElement;null==n||null===(t=n.querySelector("input"))||void 0===t||t.focus()}x({search_value:void 0})}),[]);(0,a.useEffect)((()=>{if(!(j||(0,r.A)(Y)||T===Y||(0,r.A)(D)||(0,o.A)(D))){var e=Y.map((e=>e.value));if(Array.isArray(D)){if(g){var t=D.filter((t=>!e.includes(t)));t.length&&x({value:(0,i.A)(t,D)})}}else e.includes(D)||x({value:null});B(Y)}}),[Y,T,g,D]);var Z=(0,a.useMemo)((()=>G.map(((e,t)=>{var n=Y.find((t=>t.value===e));return l().createElement(l().Fragment,{key:"".concat(null==n?void 0:n.value,"-").concat(t)},n&&l().createElement(Pi.O9,ki({},n,{index:t})),t===G.length-1?"":", ")}))),[Y,G]),Q=(0,a.useMemo)((()=>!!d||!G.every((e=>N.some((t=>t.value===e))))),[d,G,N,j]),J=(0,a.useCallback)((()=>{x({value:g?[]:null})}),[g]),ee=(0,a.useCallback)((()=>{if(g){var e=G.concat(N.filter((e=>!G.includes(e.value))).map((e=>e.value)));x({value:e})}f&&F(!1)}),[g,N,G,f]),te=(0,a.useCallback)((()=>{if(g){var e=G.filter((e=>!N.some((t=>t.value===e))));x({value:e})}f&&F(!1)}),[g,N,G,f]);(0,a.useEffect)((()=>{if(R){var e=K;g&&(e=[...K].sort(((e,t)=>{var n=G.includes(e.value),r=G.includes(t.value);return n&&!r?-1:!n&&r?1:0}))),L(e)}}),[K,R]),(0,a.useEffect)((()=>{!R||g||j||requestAnimationFrame((()=>{var e=G[0],t=U.current.querySelector('.dash-options-list-option-checkbox[value="'.concat(e,'"]'));t instanceof HTMLElement&&(null==t||t.focus())}))}),[R,g,N,G]);var ne=(0,a.useCallback)((e=>{if(["ArrowDown","ArrowUp","PageDown","PageUp","Home","End"].includes(e.key)&&!(["Home","End"].includes(e.key)&&document.activeElement instanceof HTMLInputElement)){var t=e.currentTarget.querySelectorAll('input[type="search"], input[type="checkbox"]:not([disabled])');if(0!==t.length){e.preventDefault();var n,r=Array.from(t).indexOf(document.activeElement),o=-1;switch(e.key){case"ArrowDown":o=r<t.length-1?r+1:0;break;case"ArrowUp":o=r>0?r-1:t.length-1;break;case"PageDown":o=Math.min(r+10,t.length-1);break;case"PageUp":o=Math.max(r-10,0);break;case"Home":o=0;break;case"End":o=t.length-1}o>-1&&(t[o].focus(),0===o?null===(n=U.current)||void 0===n||n.scrollTo({top:0}):t[o].scrollIntoView({behavior:"auto",block:"center"}))}}}),[]),re=(0,a.useCallback)((e=>{F(e),e||x({search_value:void 0})}),[K,G]),oe=null!=c?c:Di()();return l().createElement(si,{open:R,onOpenChange:re},l().createElement(fi,{asChild:!0},l().createElement("button",{id:c,ref:W,disabled:p,type:"button",onKeyDown:e=>{"ArrowDown"===e.key&&F(!0)},className:"dash-dropdown ".concat(null!=s?s:""),style:I,"aria-labelledby":"".concat(oe,"-value-count ").concat(oe,"-value"),"aria-haspopup":"listbox","aria-expanded":R,"data-dash-is-loading":H||void 0},l().createElement("span",{className:"dash-dropdown-grid-container dash-dropdown-trigger"},Z.length>0&&l().createElement("span",{id:oe+"-value",className:"dash-dropdown-value"},Z),0===Z.length&&l().createElement("span",{id:oe+"-value",className:"dash-dropdown-value dash-dropdown-placeholder"},e.placeholder),G.length>1&&l().createElement("span",{id:oe+"-value-count",className:"dash-dropdown-value-count"},null==h||null===(t=h.selected_count)||void 0===t?void 0:t.replace("{num_selected}","".concat(G.length))),d&&!p&&!!G.length&&l().createElement("a",{className:"dash-dropdown-clear",onClick:e=>{e.preventDefault(),J()},title:null==h?void 0:h.clear_selection,"aria-label":null==h?void 0:h.clear_selection},l().createElement(S,null)),l().createElement(C,{className:"dash-dropdown-trigger-icon"})))),l().createElement(di,{container:null===(n=W.current)||void 0===n?void 0:n.parentElement},l().createElement(pi,{ref:U,className:"dash-dropdown-content",align:"start",sideOffset:5,onOpenAutoFocus:e=>e.preventDefault(),onKeyDown:ne,style:{maxHeight:m?"".concat(m,"px"):"auto"}},E&&l().createElement("div",{className:"dash-dropdown-grid-container dash-dropdown-search-container"},l().createElement(P,{className:"dash-dropdown-search-icon"}),l().createElement("input",{type:"search",className:"dash-dropdown-search",placeholder:null==h?void 0:h.search,value:j||"",autoComplete:"off",onChange:e=>q(e.target.value),autoFocus:!0}),j&&l().createElement("button",{type:"button",className:"dash-dropdown-clear",onClick:X,"aria-label":null==h?void 0:h.clear_search},l().createElement(S,null))),g&&l().createElement("div",{className:"dash-dropdown-actions"},l().createElement("button",{type:"button",className:"dash-dropdown-action-button",onClick:ee},null==h?void 0:h.select_all),Q&&l().createElement("button",{type:"button",className:"dash-dropdown-action-button",onClick:te},null==h?void 0:h.deselect_all)),R&&!!N.length&&l().createElement(l().Fragment,null,l().createElement(Pi.v1,{options:N,selected:G,onSelectionChange:V,className:"dash-dropdown-options",optionClassName:"dash-dropdown-option",optionStyle:{height:O?"".concat(O,"px"):void 0}})),R&&j&&!N.length&&l().createElement("div",{className:"dash-dropdown-options"},l().createElement("span",{className:"dash-dropdown-option"},null==h?void 0:h.no_options_found)))))}},30115:function(e,t,n){var r=n(96763),o="undefined"!=typeof Element,i="function"==typeof Map,a="function"==typeof Set,c="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function l(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,u,s;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!l(e[r],t[r]))return!1;return!0}if(i&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;for(s=e.entries();!(r=s.next()).done;)if(!l(r.value[1],t.get(r.value[0])))return!1;return!0}if(a&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(c&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof t.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof t.toString)return e.toString()===t.toString();if((n=(u=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,u[r]))return!1;if(o&&e instanceof Element)return!1;for(r=n;0!=r--;)if(("_owner"!==u[r]&&"__v"!==u[r]&&"__o"!==u[r]||!e.$$typeof)&&!l(e[u[r]],t[u[r]]))return!1;return!0}return e!=e&&t!=t}e.exports=function(e,t){try{return l(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return r.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}}}]);
3
3
  //# sourceMappingURL=async-dropdown.js.map