@openmrs/esm-task-list-app 1.0.2-pre.66 → 1.0.2-pre.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/169.js +1 -0
- package/dist/{869.js.map → 169.js.map} +1 -1
- package/dist/255.js +1 -1
- package/dist/255.js.map +1 -1
- package/dist/282.js +1 -1
- package/dist/282.js.map +1 -1
- package/dist/300.js +1 -1
- package/dist/345.js +2 -0
- package/dist/{614.js.LICENSE.txt → 345.js.LICENSE.txt} +0 -15
- package/dist/345.js.map +1 -0
- package/dist/353.js +1 -1
- package/dist/353.js.map +1 -1
- package/dist/444.js +1 -0
- package/dist/{547.js.map → 444.js.map} +1 -1
- package/dist/540.js +1 -1
- package/dist/540.js.map +1 -1
- package/dist/571.js +2 -0
- package/dist/571.js.map +1 -0
- package/dist/82.js +1 -1
- package/dist/82.js.map +1 -1
- package/dist/846.js +1 -1
- package/dist/846.js.map +1 -1
- package/dist/91.js +1 -1
- package/dist/91.js.map +1 -1
- package/dist/961.js +1 -1
- package/dist/961.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-task-list-app.js +1 -1
- package/dist/openmrs-esm-task-list-app.js.buildmanifest.json +78 -78
- package/dist/openmrs-esm-task-list-app.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +2 -6
- package/dist/269.js +0 -2
- package/dist/269.js.map +0 -1
- package/dist/547.js +0 -1
- package/dist/614.js +0 -2
- package/dist/614.js.map +0 -1
- package/dist/869.js +0 -1
- /package/dist/{269.js.LICENSE.txt → 571.js.LICENSE.txt} +0 -0
package/dist/269.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 269.js.LICENSE.txt */
|
|
2
|
-
(globalThis.webpackChunk_openmrs_esm_task_list_app=globalThis.webpackChunk_openmrs_esm_task_list_app||[]).push([[269],{60428(e,t,n){"use strict";function r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");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 o(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 i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(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}n.d(t,{A:()=>p});var l=["width","height","viewBox"],s=["tabindex"],c={focusable:"false",preserveAspectRatio:"xMidYMid meet"};var u=n(5556),d=n.n(u),f=n(16072);const p=f.forwardRef((function({className:e,children:t,tabIndex:n,xmlns:r="http://www.w3.org/2000/svg",preserveAspectRatio:o="xMidYMid meet",...u},d){const{tabindex:p,...m}=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height,r=e.viewBox,o=void 0===r?"0 0 ".concat(t," ").concat(n):r,u=a(e,l),d=u.tabindex,f=a(u,s),p=i(i(i({},c),f),{},{width:t,height:n,viewBox:o});return p["aria-label"]||p["aria-labelledby"]||p.title?(p.role="img",null!=d&&(p.focusable="true",p.tabindex=d)):p["aria-hidden"]=!0,p}({...u,tabindex:n}),h=m;return e&&(h.className=e),null!=p&&(h.tabIndex="number"==typeof p?p:Number(n)),d&&(h.ref=d),r&&(h.xmlns=r),o&&(h.preserveAspectRatio=o),f.createElement("svg",h,t)}));p.displayName="Icon",p.propTypes={"aria-hidden":d().oneOfType([d().bool,d().oneOf(["true","false"])]),"aria-label":d().string,"aria-labelledby":d().string,children:d().node,className:d().string,height:d().oneOfType([d().number,d().string]),preserveAspectRatio:d().string,tabIndex:d().oneOfType([d().number,d().string]),viewBox:d().string,width:d().oneOfType([d().number,d().string]),xmlns:d().string}},92137(e,t,n){"use strict";n.d(t,{OM:()=>m,Qp:()=>b,bE:()=>h,nk:()=>g});var r,o,i,a,l,s,c,u,d,f=n(16072),p=n(60428);const m=f.forwardRef((function({children:e,size:t=16,...n},o){return f.createElement(p.A,{width:t,height:t,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},r||(r=f.createElement("path",{d:"M17 15L17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z"})),e)})),h=f.forwardRef((function({children:e,size:t=16,...n},r){return f.createElement(p.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},o||(o=f.createElement("path",{d:"M19 21v-2h1v-7h-1v-2h4v2h-1v7h1v2h-4zM15.5005 21h2l-3.5005-11h-3l-3.4966 11h1.9988l.6018-2h4.7781l.6184 2zM10.7058 17l1.6284-5.4111.2559-.0024 1.6736 5.4136h-3.5579z"})),i||(i=f.createElement("path",{d:"M32,32H0V0h32v32ZM2,30h28V2H2v28Z"})),e)})),g=f.forwardRef((function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?f.createElement(p.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},a||(a=f.createElement("path",{d:"M6.7 12.3L2.9 8.5 15 8.5 15 7.5 2.9 7.5 6.7 3.7 6 3 1 8 6 13z"})),e):f.createElement(p.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},l||(l=f.createElement("path",{d:"M14 26L15.41 24.59 7.83 17 28 17 28 15 7.83 15 15.41 7.41 14 6 4 16 14 26z"})),e)})),b=f.forwardRef((function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?f.createElement(p.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},s||(s=f.createElement("path",{d:"M9.3 3.7L13.1 7.5 1 7.5 1 8.5 13.1 8.5 9.3 12.3 10 13 15 8 10 3z"})),e):20===t||"20"===t||"20px"===t?f.createElement(p.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},c||(c=f.createElement("path",{d:"M11.8 2.8L10.8 3.8 16.2 9.3 1 9.3 1 10.7 16.2 10.7 10.8 16.2 11.8 17.2 19 10z"})),e):24===t||"24"===t||"24px"===t?f.createElement(p.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},u||(u=f.createElement("path",{d:"M14 4L12.9 5.1 18.9 11.2 2 11.2 2 12.8 18.9 12.8 12.9 18.9 14 20 22 12z"})),e):f.createElement(p.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},d||(d=f.createElement("path",{d:"M18 6L16.57 7.393 24.15 15 4 15 4 17 24.15 17 16.57 24.573 18 26 28 16 18 6z"})),e)}))},54535(e,t,n){"use strict";n.d(t,{GK:()=>m,Xj:()=>h,hz:()=>p});var r,o,i,a,l,s,c,u,d=n(16072),f=n(60428);const p=d.forwardRef((function({children:e,size:t=16,...n},i){return 16===t||"16"===t||"16px"===t?d.createElement(f.A,{width:t,height:t,ref:i,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},r||(r=d.createElement("path",{d:"M6 15L6 14 2.7 14 7 9.7 6.3 9 2 13.3 2 10 1 10 1 15zM10 1L10 2 13.3 2 9 6.3 9.7 7 14 2.7 14 6 15 6 15 1z"})),e):d.createElement(f.A,{width:t,height:t,ref:i,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},o||(o=d.createElement("path",{d:"M20 2L20 4 26.586 4 18 12.582 19.414 14 28 5.414 28 12 30 12 30 2 20 2zM14 19.416L12.592 18 4 26.586 4 20 2 20 2 30 12 30 12 28 5.414 28 14 19.416z"})),e)})),m=d.forwardRef((function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?d.createElement(f.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},i||(i=d.createElement("path",{d:"M2 12H14V13H2zM2 9H14V10H2zM2 6H14V7H2zM2 3H14V4H2z"})),e):20===t||"20"===t||"20px"===t?d.createElement(f.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},a||(a=d.createElement("path",{d:"M2 14.8H18V16H2zM2 11.2H18V12.399999999999999H2zM2 7.6H18V8.799999999999999H2zM2 4H18V5.2H2z"})),e):24===t||"24"===t||"24px"===t?d.createElement(f.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},l||(l=d.createElement("path",{d:"M3 18H21V19.5H3zM3 13.5H21V15H3zM3 9H21V10.5H3zM3 4.5H21V6H3z"})),e):d.createElement(f.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},s||(s=d.createElement("path",{d:"M4 6H28V8H4zM4 24H28V26H4zM4 12H28V14H4zM4 18H28V20H4z"})),e)})),h=d.forwardRef((function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?d.createElement(f.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},c||(c=d.createElement("path",{d:"M2 9L2 10 5.3 10 1 14.3 1.7 15 6 10.7 6 14 7 14 7 9zM14 7L14 6 10.7 6 15 1.7 14.3 1 10 5.3 10 2 9 2 9 7z"})),e):d.createElement(f.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},u||(u=d.createElement("path",{d:"M4 18L4 20 10.586 20 2 28.582 3.414 30 12 21.414 12 28 14 28 14 18 4 18zM30 3.416L28.592 2 20 10.586 20 4 18 4 18 14 28 14 28 12 21.414 12 30 3.416z"})),e)}))},40771(e,t,n){"use strict";n.d(t,{$D:()=>v,d3:()=>g,ff:()=>b,x:()=>y});var r,o,i,a,l,s,c,u,d,f,p,m=n(16072),h=n(60428);const g=m.forwardRef((function({children:e,size:t=16,...n},o){return m.createElement(h.A,{width:t,height:t,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},r||(r=m.createElement("path",{d:"M16 18L6 8 7.4 6.6 16 15.2 24.6 6.6 26 8zM4 22H28V24H4z"})),e)})),b=m.forwardRef((function({children:e,size:t=16,...n},r){return m.createElement(h.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},o||(o=m.createElement("path",{d:"M2 26H30V28H2zM25.4 9c.8-.8.8-2 0-2.8 0 0 0 0 0 0l-3.6-3.6c-.8-.8-2-.8-2.8 0 0 0 0 0 0 0l-15 15V24h6.4L25.4 9zM20.4 4L24 7.6l-3 3L17.4 7 20.4 4zM6 22v-3.6l10-10 3.6 3.6-10 10H6z"})),e)})),v=m.forwardRef((function({children:e,size:t=16,...n},r){return m.createElement(h.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},i||(i=m.createElement("path",{d:"M2,16H2A14,14,0,1,0,16,2,14,14,0,0,0,2,16Zm23.15,7.75L8.25,6.85a12,12,0,0,1,16.9,16.9ZM8.24,25.16A12,12,0,0,1,6.84,8.27L23.73,25.16a12,12,0,0,1-15.49,0Z"})),e)})),y=m.forwardRef((function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?m.createElement(h.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},a||(a=m.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M10.7,11.5L4.5,5.3l0.8-0.8l6.2,6.2L10.7,11.5z"})),l||(l=m.createElement("path",{fill:"none",d:"M10.7,11.5L4.5,5.3l0.8-0.8l6.2,6.2L10.7,11.5z","data-icon-path":"inner-path",opacity:"0"})),e):20===t||"20"===t||"20px"===t?m.createElement(h.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},s||(s=m.createElement("path",{d:"M10,1c-5,0-9,4-9,9s4,9,9,9s9-4,9-9S15,1,10,1z M13.5,14.5l-8-8l1-1l8,8L13.5,14.5z"})),c||(c=m.createElement("path",{d:"M13.5,14.5l-8-8l1-1l8,8L13.5,14.5z","data-icon-path":"inner-path",opacity:"0"})),e):24===t||"24"===t||"24px"===t?m.createElement(h.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},u||(u=m.createElement("path",{d:"M12,1C5.9,1,1,5.9,1,12s4.9,11,11,11s11-4.9,11-11S18.1,1,12,1z M16.3,17.5L6.5,7.7l1.2-1.2l9.8,9.8L16.3,17.5z"})),d||(d=m.createElement("path",{fill:"none",d:"M16.3,17.5L6.5,7.7l1.2-1.2l9.8,9.8L16.3,17.5z","data-icon-path":"inner-path",opacity:"0"})),e):m.createElement(h.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},f||(f=m.createElement("path",{fill:"none",d:"M14.9 7.2H17.1V24.799H14.9z","data-icon-path":"inner-path",transform:"rotate(-45 16 16)"})),p||(p=m.createElement("path",{d:"M16,2A13.914,13.914,0,0,0,2,16,13.914,13.914,0,0,0,16,30,13.914,13.914,0,0,0,30,16,13.914,13.914,0,0,0,16,2Zm5.4449,21L9,10.5557,10.5557,9,23,21.4448Z"})),e)}))},77310(e,t,n){"use strict";n.d(t,{kZS:()=>ua,$nd:()=>Ut,Te$:()=>Zt,Sc0:()=>On,a32:()=>Ko,KXP:()=>ji,Tps:()=>Gi,lVW:()=>Xi,gE_:()=>Yi,lRv:()=>Ji,Y9Y:()=>ll,V8d:()=>cl,wdv:()=>ul,dJ2:()=>ml,bCw:()=>vl,K0:()=>Kt,OuH:()=>ni,jeF:()=>ca,Wdr:()=>Jo,cwr:()=>Fi,jlY:()=>oi,rQ0:()=>Qo,XSD:()=>fa,dKS:()=>Ca,aaP:()=>$a,zWQ:()=>Oa,Psq:()=>Ta,vji:()=>La,f8J:()=>Cl,ryE:()=>Da,dOG:()=>Ba,vwO:()=>Ha,fs1:()=>qa,ksK:()=>Za,FAs:()=>nl});var r={};try{process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES&&"true"===process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES?r.enableCssCustomProperties=!0:r.enableCssCustomProperties=!1,process.env.CARBON_ENABLE_CSS_GRID&&"true"===process.env.CARBON_ENABLE_CSS_GRID?r.enableCssGrid=!0:r.enableCssGrid=!1,process.env.CARBON_ENABLE_V11_RELEASE?"true"===process.env.CARBON_ENABLE_V11_RELEASE?r.enableV11Release=!0:r.enableV11Release=!1:r.enableV11Release=!0,process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST&&"true"===process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST?r.enableExperimentalTileContrast=!0:r.enableExperimentalTileContrast=!1,process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS&&"true"===process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS?r.enableV12TileDefaultIcons=!0:r.enableV12TileDefaultIcons=!1,process.env.CARBON_ENABLE_V12_TILE_RADIO_ICONS&&"true"===process.env.CARBON_ENABLE_V12_TILE_RADIO_ICONS?r.enableV12TileRadioIcons=!0:r.enableV12TileRadioIcons=!1,process.env.CARBON_ENABLE_V12_OVERFLOWMENU&&"true"===process.env.CARBON_ENABLE_V12_OVERFLOWMENU?r.enableV12Overflowmenu=!0:r.enableV12Overflowmenu=!1,process.env.CARBON_ENABLE_TREEVIEW_CONTROLLABLE&&"true"===process.env.CARBON_ENABLE_TREEVIEW_CONTROLLABLE?r.enableTreeviewControllable=!0:r.enableTreeviewControllable=!1,process.env.CARBON_ENABLE_V12_STRUCTURED_LIST_VISIBLE_ICONS&&"true"===process.env.CARBON_ENABLE_V12_STRUCTURED_LIST_VISIBLE_ICONS?r.enableV12StructuredListVisibleIcons=!0:r.enableV12StructuredListVisibleIcons=!1,process.env.CARBON_ENABLE_EXPERIMENTAL_FOCUS_WRAP_WITHOUT_SENTINELS&&"true"===process.env.CARBON_ENABLE_EXPERIMENTAL_FOCUS_WRAP_WITHOUT_SENTINELS?r.enableExperimentalFocusWrapWithoutSentinels=!0:r.enableExperimentalFocusWrapWithoutSentinels=!1,process.env.CARBON_ENABLE_DIALOG_ELEMENT&&"true"===process.env.CARBON_ENABLE_DIALOG_ELEMENT?r.enableDialogElement=!0:r.enableDialogElement=!1,process.env.CARBON_ENABLE_V12_DYNAMIC_FLOATING_STYLES&&"true"===process.env.CARBON_ENABLE_V12_DYNAMIC_FLOATING_STYLES?r.enableV12DynamicFloatingStyles=!0:r.enableV12DynamicFloatingStyles=!1,process.env.CARBON_ENABLE_V12_TOGGLE_REDUCED_LABEL_SPACING&&"true"===process.env.CARBON_ENABLE_V12_TOGGLE_REDUCED_LABEL_SPACING?r.enableV12ToggleReducedLabelSpacing=!0:r.enableV12ToggleReducedLabelSpacing=!1,process.env.CARBON_ENABLE_ENHANCED_FILE_UPLOADER&&"true"===process.env.CARBON_ENABLE_ENHANCED_FILE_UPLOADER?r.enableEnhancedFileUploader=!0:r.enableEnhancedFileUploader=!1,process.env.CARBON_ENABLE_PRESENCE&&"true"===process.env.CARBON_ENABLE_PRESENCE?r.enablePresence=!0:r.enablePresence=!1}catch(e){r.enableCssCustomProperties=!1,r.enableCssGrid=!1,r.enableV11Release=!0,r.enableExperimentalTileContrast=!1,r.enableV12TileDefaultIcons=!1,r.enableV12TileRadioIcons=!1,r.enableV12Overflowmenu=!1,r.enableTreeviewControllable=!1,r.enableV12StructuredListVisibleIcons=!1,r.enableExperimentalFocusWrapWithoutSentinels=!1,r.enableDialogElement=!1,r.enableV12DynamicFloatingStyles=!1,r.enableV12ToggleReducedLabelSpacing=!1,r.enableEnhancedFileUploader=!1,r.enablePresence=!1}var o=[{name:"enable-css-custom-properties",description:"Describe what the flag does",enabled:r.enableCssCustomProperties},{name:"enable-css-grid",description:"Enable CSS Grid Layout in the Grid and Column React components\n",enabled:r.enableCssGrid},{name:"enable-v11-release",description:"Enable the features and functionality for the v11 Release\n",enabled:r.enableV11Release},{name:"enable-experimental-tile-contrast",description:"Enable the experimental tile improved contrast styles\n",enabled:r.enableExperimentalTileContrast},{name:"enable-v12-tile-default-icons",description:"Enable rendering of default icons in the tile components\n",enabled:r.enableV12TileDefaultIcons},{name:"enable-v12-tile-radio-icons",description:"Enable rendering of radio icons in the RadioTile component\n",enabled:r.enableV12TileRadioIcons},{name:"enable-v12-overflowmenu",description:"Enable the use of the v12 OverflowMenu leveraging the Menu subcomponents\n",enabled:r.enableV12Overflowmenu},{name:"enable-treeview-controllable",description:"Enable the new TreeView controllable API\n",enabled:r.enableTreeviewControllable},{name:"enable-v12-structured-list-visible-icons",description:"Enable rendering of radio icons in the StructuredList component\n",enabled:r.enableV12StructuredListVisibleIcons},{name:"enable-experimental-focus-wrap-without-sentinels",description:"Enable the new focus wrap behavior that doesn't use sentinel nodes\n",enabled:r.enableExperimentalFocusWrapWithoutSentinels},{name:"enable-dialog-element",description:"Enable components to utilize the native dialog element\n",enabled:r.enableDialogElement},{name:"enable-v12-dynamic-floating-styles",description:"Enable dynamic setting of floating styles for components like Popover, Tooltip, etc.\n",enabled:r.enableV12DynamicFloatingStyles},{name:"enable-v12-toggle-reduced-label-spacing",description:"Enable a reduced spacing between the toggle control and its label\n",enabled:r.enableV12ToggleReducedLabelSpacing},{name:"enable-enhanced-file-uploader",description:"Enable enhanced functionality for the FileUploader component, including richer callback data and expanded trigger events for onChange and onDelete.\n",enabled:r.enableEnhancedFileUploader},{name:"enable-presence",description:"Enable components to remain unmounted in closed state and mount in open state.\n",enabled:r.enablePresence}];function i(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 a(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,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||s(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 l(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+""}function s(e,t){if(e){if("string"==typeof e)return i(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)?i(e,t):void 0}}for(var c=function(){return function(e,t){return t&&function(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,l(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.flags=new Map,t&&Object.keys(t).forEach((function(e){n.flags.set(e,t[e])}))}),[{key:"checkForFlag",value:function(e){if(!this.flags.has(e))throw new Error("Unable to find a feature flag with the name: `".concat(e,"`"))}},{key:"add",value:function(e,t){if(this.flags.has(e))throw new Error("The feature flag: ".concat(e," already exists"));this.flags.set(e,t)}},{key:"enable",value:function(e){this.checkForFlag(e),this.flags.set(e,!0)}},{key:"disable",value:function(e){this.checkForFlag(e),this.flags.set(e,!1)}},{key:"merge",value:function(e){var t=this;Object.keys(e).forEach((function(n){t.flags.set(n,e[n])}))}},{key:"mergeWithScope",value:function(e){var t,n=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=s(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}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 o,i=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(a)throw o}}}}(e.flags);try{for(n.s();!(t=n.n()).done;){var r=a(t.value,2),o=r[0],i=r[1];this.flags.has(o)||this.flags.set(o,i)}}catch(e){n.e(e)}finally{n.f()}}},{key:"enabled",value:function(e){return this.checkForFlag(e),this.flags.get(e)}}])}(),u=new c(void 0),d=0;d<o.length;d++){var f=o[d];u.add(f.name,f.enabled)}function p(){return p=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},p.apply(null,arguments)}!function(){u.merge.apply(u,arguments)}({"enable-css-custom-properties":!0,"enable-css-grid":!0,"enable-v11-release":!0,"enable-experimental-tile-contrast":!1,"enable-v12-tile-radio-icons":!1,"enable-v12-structured-list-visible-icons":!1,"enable-v12-dynamic-floating-styles":!1});var m=n(5556),h=n.n(m),g=n(16072),b=n.t(g,2),v=n(46942),y=n.n(v);const w={},E=(e,t,n)=>(r,o,i,...a)=>{if(void 0===r[o])return null;if(!w[i]||!w[i][o]){w[i]={...w[i],[o]:!0};const e=r[o];n&&n(e);t&&!t.includes(e)&&(n||t.join(", "))}return e(r,o,i,...a)},x="undefined"!=typeof window?g.useLayoutEffect:g.useEffect,_=e=>{const t=(0,g.useMemo)((()=>e),e);return(0,g.useCallback)((e=>{t.forEach((t=>{"function"==typeof t?t(e):t&&(t.current=e)}))}),[t])},N=g.createContext("cds");function C(){return g.useContext(N)}const $=(e,t)=>{const n=(0,g.useRef)(null);(0,g.useEffect)((()=>{n.current=t}),[t]),(0,g.useEffect)((()=>{const t=e=>{n.current&&n.current(e)};return window.addEventListener(e,t),()=>{window.removeEventListener(e,t)}}),[e])},T={"top-left":"top-start","top-right":"top-end","bottom-left":"bottom-start","bottom-right":"bottom-end","left-bottom":"left-end","left-top":"left-start","right-bottom":"right-end","right-top":"right-start"},I=e=>T[e]??e;var O="undefined"!=typeof document?g.useLayoutEffect:g.useEffect;const R={...b}.useInsertionEffect||(e=>e());function S(){return"undefined"!=typeof window}function k(e){return M(e)?(e.nodeName||"").toLowerCase():"#document"}function A(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function L(e){var t;return null==(t=(M(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function M(e){return!!S()&&(e instanceof Node||e instanceof A(e).Node)}function D(e){return!!S()&&(e instanceof Element||e instanceof A(e).Element)}function B(e){return!!S()&&(e instanceof HTMLElement||e instanceof A(e).HTMLElement)}function P(e){return!(!S()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof A(e).ShadowRoot)}function V(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=K(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function z(e){return["table","td","th"].includes(k(e))}function F(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function H(e){const t=j(),n=D(e)?K(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function j(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function q(e){return["html","body","#document"].includes(k(e))}function K(e){return A(e).getComputedStyle(e)}function W(e){return D(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function U(e){if("html"===k(e))return e;const t=e.assignedSlot||e.parentNode||P(e)&&e.host||L(e);return P(t)?t.host:t}function Z(e){const t=U(e);return q(t)?e.ownerDocument?e.ownerDocument.body:e.body:B(t)&&V(t)?t:Z(t)}function G(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Z(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=A(o);if(i){const e=X(a);return t.concat(a,a.visualViewport||[],V(o)?o:[],e&&n?G(e):[])}return t.concat(o,G(o,[],n))}function X(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}n(74848);var Y=n(40961);const J=["top","right","bottom","left"],Q=Math.min,ee=Math.max,te=Math.round,ne=Math.floor,re=e=>({x:e,y:e}),oe={left:"right",right:"left",bottom:"top",top:"bottom"},ie={start:"end",end:"start"};function ae(e,t,n){return ee(e,Q(t,n))}function le(e,t){return"function"==typeof e?e(t):e}function se(e){return e.split("-")[0]}function ce(e){return e.split("-")[1]}function ue(e){return"y"===e?"height":"width"}function de(e){return["top","bottom"].includes(se(e))?"y":"x"}function fe(e){return"x"===de(e)?"y":"x"}function pe(e){return e.replace(/start|end/g,(e=>ie[e]))}function me(e){return e.replace(/left|right|bottom|top/g,(e=>oe[e]))}function he(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function ge(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function be(e,t,n){let{reference:r,floating:o}=e;const i=de(t),a=fe(t),l=ue(a),s=se(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[l]/2-o[l]/2;let p;switch(s){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(ce(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1)}return p}async function ve(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=le(t,e),m=he(p),h=l[f?"floating"===d?"reference":"floating":d],g=ge(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:s})),b="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),y=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},w=ge(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:b,offsetParent:v,strategy:s}):b);return{top:(g.top-w.top+m.top)/y.y,bottom:(w.bottom-g.bottom+m.bottom)/y.y,left:(g.left-w.left+m.left)/y.x,right:(w.right-g.right+m.right)/y.x}}function ye(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function we(e){return J.some((t=>e[t]>=0))}function Ee(e){const t=K(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=B(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=te(n)!==i||te(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function xe(e){return D(e)?e:e.contextElement}function _e(e){const t=xe(e);if(!B(t))return re(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ee(t);let a=(i?te(n.width):n.width)/r,l=(i?te(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const Ne=re(0);function Ce(e){const t=A(e);return j()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ne}function $e(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=xe(e);let a=re(1);t&&(r?D(r)&&(a=_e(r)):a=_e(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==A(e))&&t}(i,n,r)?Ce(i):re(0);let s=(o.left+l.x)/a.x,c=(o.top+l.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=A(i),t=r&&D(r)?A(r):r;let n=e,o=X(n);for(;o&&r&&t!==n;){const e=_e(o),t=o.getBoundingClientRect(),r=K(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,d*=e.y,s+=i,c+=a,n=A(o),o=X(n)}}return ge({width:u,height:d,x:s,y:c})}function Te(e,t){const n=W(e).scrollLeft;return t?t.left+n:$e(L(e)).left+n}function Ie(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Te(e,r)),y:r.top+t.scrollTop}}function Oe(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=A(e),r=L(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const e=j();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}(e,n);else if("document"===t)r=function(e){const t=L(e),n=W(e),r=e.ownerDocument.body,o=ee(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ee(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Te(e);const l=-n.scrollTop;return"rtl"===K(r).direction&&(a+=ee(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}(L(e));else if(D(t))r=function(e,t){const n=$e(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=B(e)?_e(e):re(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Ce(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ge(r)}function Re(e,t){const n=U(e);return!(n===t||!D(n)||q(n))&&("fixed"===K(n).position||Re(n,t))}function Se(e,t,n){const r=B(t),o=L(t),i="fixed"===n,a=$e(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=re(0);function c(){s.x=Te(o)}if(r||!r&&!i)if(("body"!==k(t)||V(o))&&(l=W(t)),r){const e=$e(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=!o||r||i?re(0):Ie(o,l);return{x:a.left+l.scrollLeft-s.x-u.x,y:a.top+l.scrollTop-s.y-u.y,width:a.width,height:a.height}}function ke(e){return"static"===K(e).position}function Ae(e,t){if(!B(e)||"fixed"===K(e).position)return null;if(t)return t(e);let n=e.offsetParent;return L(e)===n&&(n=n.ownerDocument.body),n}function Le(e,t){const n=A(e);if(F(e))return n;if(!B(e)){let t=U(e);for(;t&&!q(t);){if(D(t)&&!ke(t))return t;t=U(t)}return n}let r=Ae(e,t);for(;r&&z(r)&&ke(r);)r=Ae(r,t);return r&&q(r)&&ke(r)&&!H(r)?n:r||function(e){let t=U(e);for(;B(t)&&!q(t);){if(H(t))return t;if(F(t))return null;t=U(t)}return null}(e)||n}const Me={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=L(r),l=!!t&&F(t.floating);if(r===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},c=re(1);const u=re(0),d=B(r);if((d||!d&&!i)&&(("body"!==k(r)||V(a))&&(s=W(r)),B(r))){const e=$e(r);c=_e(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!a||d||i?re(0):Ie(a,s,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-s.scrollTop*c.y+u.y+f.y}},getDocumentElement:L,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?F(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=G(e,[],!1).filter((e=>D(e)&&"body"!==k(e))),o=null;const i="fixed"===K(e).position;let a=i?U(e):e;for(;D(a)&&!q(a);){const t=K(a),n=H(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||V(a)&&!n&&Re(e,a))?r=r.filter((e=>e!==a)):o=t,a=U(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],l=i.reduce(((e,n)=>{const r=Oe(t,n,o);return e.top=ee(r.top,e.top),e.right=Q(r.right,e.right),e.bottom=Q(r.bottom,e.bottom),e.left=ee(r.left,e.left),e}),Oe(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Le,getElementRects:async function(e){const t=this.getOffsetParent||Le,n=this.getDimensions,r=await n(e.floating);return{reference:Se(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Ee(e);return{width:t,height:n}},getScale:_e,isElement:D,isRTL:function(e){return"rtl"===K(e).direction}};function De(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Be(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=xe(e),u=o||i?[...c?G(c):[],...G(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&l?function(e,t){let n,r=null;const o=L(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(l||t(),!f||!p)return;const m={rootMargin:-ne(d)+"px "+-ne(o.clientWidth-(u+f))+"px "+-ne(o.clientHeight-(d+p))+"px "+-ne(u)+"px",threshold:ee(0,Q(1,s))||1};let h=!0;function g(t){const r=t[0].intersectionRatio;if(r!==s){if(!h)return a();r?a(!1,r):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==r||De(c,e.getBoundingClientRect())||a(),h=!1}try{r=new IntersectionObserver(g,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,m)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,m=null;a&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),c&&!s&&m.observe(c),m.observe(t));let h=s?$e(e):null;return s&&function t(){const r=$e(e);h&&!De(h,r)&&n(),h=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=m)||e.disconnect(),m=null,s&&cancelAnimationFrame(f)}}const Pe=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:l}=t,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=se(n),l=ce(n),s="y"===de(n),c=["left","top"].includes(a)?-1:1,u=i&&s?-1:1,d=le(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&"number"==typeof m&&(p="end"===l?-1*m:m),s?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},Ve=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:l,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=le(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const b=se(o),v=de(l),y=se(l)===l,w=await(null==s.isRTL?void 0:s.isRTL(c.floating)),E=f||(y||!h?[me(l)]:function(e){const t=me(e);return[pe(e),t,pe(t)]}(l)),x="none"!==m;!f&&x&&E.push(...function(e,t,n,r){const o=ce(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(se(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(pe)))),i}(l,h,m,w));const _=[l,...E],N=await ve(t,g),C=[];let $=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&C.push(N[b]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=ce(e),o=fe(e),i=ue(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=me(a)),[a,me(a)]}(o,a,w);C.push(N[e[0]],N[e[1]])}if($=[...$,{placement:o,overflows:C}],!C.every((e=>e<=0))){var T,I;const e=((null==(T=i.flip)?void 0:T.index)||0)+1,t=_[e];if(t){var O;const n="alignment"===d&&v!==de(t),r=(null==(O=$[0])?void 0:O.overflows[0])>0;if(!n||r)return{data:{index:e,overflows:$},reset:{placement:t}}}let n=null==(I=$.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:I.placement;if(!n)switch(p){case"bestFit":{var R;const e=null==(R=$.filter((e=>{if(x){const t=de(e.placement);return t===v||"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:R[0];e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}},ze=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=le(e,t);switch(r){case"referenceHidden":{const e=ye(await ve(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:we(e)}}}case"escaped":{const e=ye(await ve(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:we(e)}}}default:return{}}}}},Fe=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:l,middlewareData:s}=t,{element:c,padding:u=0}=le(e,t)||{};if(null==c)return{};const d=he(u),f={x:n,y:r},p=fe(o),m=ue(p),h=await a.getDimensions(c),g="y"===p,b=g?"top":"left",v=g?"bottom":"right",y=g?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[p]-f[p]-i.floating[m],E=f[p]-i.reference[p],x=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let _=x?x[y]:0;_&&await(null==a.isElement?void 0:a.isElement(x))||(_=l.floating[y]||i.floating[m]);const N=w/2-E/2,C=_/2-h[m]/2-1,$=Q(d[b],C),T=Q(d[v],C),I=$,O=_-h[m]-T,R=_/2-h[m]/2+N,S=ae(I,R,O),k=!s.arrow&&null!=ce(o)&&R!==S&&i.reference[m]/2-(R<I?$:T)-h[m]/2<0,A=k?R<I?R-I:R-O:0;return{[p]:f[p]+A,data:{[p]:S,centerOffset:R-S-A,...k&&{alignmentOffset:A}},reset:k}}}),He=(e,t,n)=>{const r=new Map,o={platform:Me,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=be(c,r,s),f=r,p={},m=0;for(let n=0;n<l.length;n++){const{name:i,fn:h}=l[n],{x:g,y:b,data:v,reset:y}=await h({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=b?b:d,p={...p,[i]:{...p[i],...v}},y&&m<=50&&(m++,"object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(c=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:u,y:d}=be(c,f,s))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};var je="undefined"!=typeof document?g.useLayoutEffect:g.useEffect;function qe(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!qe(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||qe(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function Ke(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function We(e,t){const n=Ke(e);return Math.round(t*n)/n}function Ue(e){const t=g.useRef(e);return je((()=>{t.current=e})),t}const Ze=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?Fe({element:n.current,padding:r}).fn(t):{}:n?Fe({element:n,padding:r}).fn(t):{};var o}}),Ge=(e,t)=>({...Ve(e),options:[e,t]}),Xe=(e,t)=>({...ze(e),options:[e,t]}),Ye=(e,t)=>({...Ze(e),options:[e,t]});const Je={...b};let Qe=!1,et=0;const tt=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+et++,nt=Je.useId||function(){const[e,t]=g.useState((()=>Qe?tt():void 0));return O((()=>{null==e&&t(tt())}),[]),g.useEffect((()=>{Qe=!0}),[]),e};const rt=g.createContext(null),ot=g.createContext(null);function it(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=nt(),i=g.useRef({}),[a]=g.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}}())),l=null!=((null==(s=g.useContext(rt))?void 0:s.id)||null);var s;const[c,u]=g.useState(r.reference),d=function(e){const t=g.useRef((()=>{}));return R((()=>{t.current=e})),g.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}(((e,t,r)=>{i.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:l}),null==n||n(e,t,r)})),f=g.useMemo((()=>({setPositionReference:u})),[]),p=g.useMemo((()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference})),[c,r.reference,r.floating]);return g.useMemo((()=>({dataRef:i,open:t,onOpenChange:d,elements:p,events:a,floatingId:o,refs:f})),[t,d,p,a,o,f])}function at(e){void 0===e&&(e={});const{nodeId:t}=e,n=it({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,a]=g.useState(null),[l,s]=g.useState(null),c=(null==o?void 0:o.domReference)||i,u=g.useRef(null),d=g.useContext(ot);O((()=>{c&&(u.current=c)}),[c]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:l=!0,whileElementsMounted:s,open:c}=e,[u,d]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=g.useState(r);qe(f,r)||p(r);const[m,h]=g.useState(null),[b,v]=g.useState(null),y=g.useCallback((e=>{e!==_.current&&(_.current=e,h(e))}),[]),w=g.useCallback((e=>{e!==N.current&&(N.current=e,v(e))}),[]),E=i||m,x=a||b,_=g.useRef(null),N=g.useRef(null),C=g.useRef(u),$=null!=s,T=Ue(s),I=Ue(o),O=Ue(c),R=g.useCallback((()=>{if(!_.current||!N.current)return;const e={placement:t,strategy:n,middleware:f};I.current&&(e.platform=I.current),He(_.current,N.current,e).then((e=>{const t={...e,isPositioned:!1!==O.current};S.current&&!qe(C.current,t)&&(C.current=t,Y.flushSync((()=>{d(t)})))}))}),[f,t,n,I,O]);je((()=>{!1===c&&C.current.isPositioned&&(C.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[c]);const S=g.useRef(!1);je((()=>(S.current=!0,()=>{S.current=!1})),[]),je((()=>{if(E&&(_.current=E),x&&(N.current=x),E&&x){if(T.current)return T.current(E,x,R);R()}}),[E,x,R,T,$]);const k=g.useMemo((()=>({reference:_,floating:N,setReference:y,setFloating:w})),[y,w]),A=g.useMemo((()=>({reference:E,floating:x})),[E,x]),L=g.useMemo((()=>{const e={position:n,left:0,top:0};if(!A.floating)return e;const t=We(A.floating,u.x),r=We(A.floating,u.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...Ke(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,l,A.floating,u.x,u.y]);return g.useMemo((()=>({...u,update:R,refs:k,elements:A,floatingStyles:L})),[u,R,k,A,L])}({...e,elements:{...o,...l&&{reference:l}}}),p=g.useCallback((e=>{const t=D(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;s(t),f.refs.setReference(t)}),[f.refs]),m=g.useCallback((e=>{(D(e)||null===e)&&(u.current=e,a(e)),(D(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!D(e))&&f.refs.setReference(e)}),[f.refs]),h=g.useMemo((()=>({...f.refs,setReference:m,setPositionReference:p,domReference:u})),[f.refs,m,p]),b=g.useMemo((()=>({...f.elements,domReference:c})),[f.elements,c]),v=g.useMemo((()=>({...f,...r,refs:h,elements:b,nodeId:t})),[f,h,b,t,r]);return O((()=>{r.dataRef.current.floatingContext=v;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=v)})),g.useMemo((()=>({...f,context:v,refs:h,elements:b})),[f,h,b,v])}const lt=new Map,st=(e,t)=>(t,n,r,...o)=>{if(void 0===t[n])return;lt.has(r)||lt.set(r,new Set);const i=lt.get(r);return i&&!i.has(n)&&i.add(n),e(t,n,r,...o)},ct=(0,g.createContext)(u);function ut(e){return(0,g.useContext)(ct).enabled(e)}h().node,st(h().objectOf(h().bool)),h().bool,h().bool,h().bool,h().bool,h().bool,h().bool,h().bool,h().bool;const dt=g.createContext({setFloating:{current:null},caretRef:{current:null},autoAlign:null}),ft=g.forwardRef((function({isTabTip:e,align:t=(e?"bottom-start":"bottom"),as:n="span",autoAlign:r=!1,autoAlignBoundary:o,caret:i=!e,className:a,children:l,dropShadow:s=!0,highContrast:c=!1,onRequestClose:u,open:d,alignmentAxisOffset:f,...m},h){const b=C(),v=(0,g.useRef)(null),w=(0,g.useRef)(null),E=(0,g.useRef)(null),N=ut("enable-v12-dynamic-floating-styles")||r;let T=I(t);((e,t,n)=>{const r=(0,g.useRef)(null);(0,g.useEffect)((()=>{r.current=n}),[n]),(0,g.useEffect)((()=>{const n="current"in e?e.current:e;if(!n)return;const o=e=>{r.current&&r.current(e)};return n.addEventListener(t,o),()=>{n.removeEventListener(t,o)}}),[e,t])})(E,"focusout",(t=>{const n=t.relatedTarget;if(e)return void(n&&!E.current?.contains(n)&&u?.());if(!n)return void u?.();const r=!E.current?.contains(n),o=!N||!S.floating.current||!S.floating.current.contains(n);r&&o&&u?.()})),$("click",(({target:e})=>{d&&e instanceof Node&&!E.current?.contains(e)&&u?.()}));const O=g.Children.toArray(l).some((e=>e?.props?.className?.includes("slug")||e?.props?.className?.includes("ai-label")))?7:6,R=(0,g.useRef)({offset:10,caretHeight:O});x((()=>{if(i&&E.current){const e=window.getComputedStyle(E.current,null),t=e.getPropertyValue("--cds-popover-offset"),n=e.getPropertyValue("--cds-popover-caret-height");t&&(R.current.offset=t.includes("px")?1*Number(t.split("px",1)[0]):16*Number(t.split("rem",1)[0])),n&&(R.current.caretHeight=n.includes("px")?1*Number(n.split("px",1)[0]):16*Number(n.split("rem",1)[0]))}}));const{refs:S,floatingStyles:k,placement:A,middlewareData:L}=at(N?{placement:T,strategy:"fixed",middleware:[(M=e?0:{alignmentAxis:f,mainAxis:R?.current?.offset},{...Pe(M),options:[M,undefined]}),r&&Ge({fallbackPlacements:e?T.includes("bottom")?["bottom-start","bottom-end","top-start","top-end"]:["top-start","top-end","bottom-start","bottom-end"]:T.includes("bottom")?["bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end","top","top-start","top-end"]:["top","top-start","top-end","left","left-start","left-end","right","right-start","right-end","bottom","bottom-start","bottom-end"],fallbackStrategy:"initialPlacement",fallbackAxisSideDirection:"start",boundary:o}),Ye({element:w}),r&&Xe()],whileElementsMounted:Be}:{});var M;const D=(0,g.useMemo)((()=>({floating:v,setFloating:S.setFloating,caretRef:w,autoAlign:r})),[S.setFloating,r]);e&&(["bottom-start","bottom-end"].includes(T)||(T="bottom-start")),(0,g.useEffect)((()=>{if(N){const e={...k,visibility:L.hide?.referenceHidden?"hidden":"visible"};if(Object.keys(e).forEach((t=>{S.floating.current&&(S.floating.current.style[t]=e[t])})),i&&L&&L.arrow&&w?.current){const{x:e,y:t}=L.arrow,n={top:"bottom",right:"left",bottom:"top",left:"right"}[A.split("-")[0]];w.current.style.left=null!=e?`${e}px`:"",w.current.style.top=null!=t?`${t}px`:"",w.current.style.right="",w.current.style.bottom="",n&&(w.current.style[n]=-R?.current?.caretHeight+"px")}}}),[k,S.floating,N,L,A,i]);const B=_([h,E]),P=r&&A!==T?A:T,V=y()({[`${b}--popover-container`]:!0,[`${b}--popover--caret`]:i,[`${b}--popover--drop-shadow`]:s,[`${b}--popover--high-contrast`]:c,[`${b}--popover--open`]:d,[`${b}--popover--auto-align ${b}--autoalign`]:N,[`${b}--popover--${P}`]:!0,[`${b}--popover--tab-tip`]:e},a),z=g.Children.map(l,(t=>{const n=t,r=n?.type?.displayName,o="button"===n?.type,i=N&&r&&["ToggletipButton"].includes(r),a=N&&!["ToggletipContent","PopoverContent"].includes(r);if(g.isValidElement(n)&&(o||i||a)){const t=n?.props?.className,r=(n?.props).ref,o=y()(`${b}--popover--tab-tip__button`,t);return g.cloneElement(n,{className:e&&"button"===n?.type?o:t||"",ref:e=>{(N&&n?.type!==mt||N&&"ToggletipButton"===n?.type.displayName)&&S.setReference(e),"function"==typeof r?r(e):null!=r&&(r.current=e)}})}return n})),F=n;return g.createElement(dt.Provider,{value:D},g.createElement(F,p({},m,{className:V,ref:B}),N||e?z:l))}));function pt({className:e,children:t,...n},r){const o=C(),{setFloating:i,caretRef:a,autoAlign:l}=g.useContext(dt),s=_([i,r]),c=ut("enable-v12-dynamic-floating-styles")||l;return g.createElement("span",p({},n,{className:`${o}--popover`}),g.createElement("span",{className:y()(`${o}--popover-content`,e),ref:s},t,c&&g.createElement("span",{className:y()({[`${o}--popover-caret`]:!0,[`${o}--popover--auto-align`]:!0}),ref:a})),!c&&g.createElement("span",{className:y()({[`${o}--popover-caret`]:!0}),ref:a}))}ft.propTypes={align:E(h().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top","top-start","top-end","bottom-start","bottom-end","left-end","left-start","right-end","right-start"]),["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"],I),alignmentAxisOffset:h().number,as:h().oneOfType([h().string,h().elementType]),autoAlign:h().bool,autoAlignBoundary:h().oneOfType([h().oneOf(["clippingAncestors"]),h().elementType,h().arrayOf(h().elementType),h().exact({x:h().number.isRequired,y:h().number.isRequired,width:h().number.isRequired,height:h().number.isRequired})]),caret:h().bool,children:h().node,className:h().string,dropShadow:h().bool,highContrast:h().bool,isTabTip:h().bool,onRequestClose:h().func,open:h().bool.isRequired};const mt=g.forwardRef(pt);mt.displayName="PopoverContent",mt.propTypes={children:h().node,className:h().string};const ht={key:"Tab",which:9,keyCode:9,code:"Tab"},gt={key:"Enter",which:13,keyCode:13,code:"Enter"},bt={key:["Escape","Esc"],which:27,keyCode:27,code:"Esc"},vt={key:" ",which:32,keyCode:32,code:"Space"},yt={key:"End",which:35,keyCode:35,code:"Numpad1"},wt={key:"Home",which:36,keyCode:36,code:"Numpad7"},Et={key:"ArrowLeft",which:37,keyCode:37,code:"ArrowLeft"},xt={key:"ArrowUp",which:38,keyCode:38,code:"ArrowUp"},_t={key:"ArrowRight",which:39,keyCode:39,code:"ArrowRight"},Nt={key:"ArrowDown",which:40,keyCode:40,code:"ArrowDown"},Ct=(e,t)=>{for(let n=0;n<t.length;n++)if($t(e,t[n]))return!0;return!1},$t=(e,{key:t,which:n,keyCode:r,code:o})=>"string"==typeof e?e===t:"number"==typeof e?e===n||e===r:e.key&&Array.isArray(t)?t.includes(e.key):e.key===t||e.which===n||e.keyCode===r||e.code===o;function Tt(e){const[t,n]=(0,g.useState)(e),r=(0,g.useRef)(null),o=(0,g.useCallback)(((e,t=0)=>{window.clearTimeout(r.current??void 0),r.current=null,0!==t?r.current=window.setTimeout((()=>{n(e),r.current=null}),t):n(e)}),[]);return(0,g.useEffect)((()=>()=>{window.clearTimeout(r.current??void 0)}),[]),[t,o]}const It=!("undefined"==typeof window||!window.document||!window.document.createElement),Ot=g.createContext(null);function Rt(){return g.useContext(Ot)}const St={...g},kt=(()=>{let e=0;return()=>++e})(),At=It?g.useLayoutEffect:g.useEffect;let Lt=!1;const Mt=St.useId?function(e="id"){const t=Rt();return`${t?`${t}-`:""}${e}-${St.useId()}`}:function(e="id"){const t=Rt(),[n,r]=(0,g.useState)((()=>Lt?`${t?`${t}-`:""}${e}-${kt()}`:null));return At((()=>{null===n&&r(`${t?`${t}-`:""}${e}-${kt()}`)}),[kt]),(0,g.useEffect)((()=>{!1===Lt&&(Lt=!0)}),[]),n};function Dt(e){const t=Mt();return e??t}const Bt=e=>{if(!e||!e.childNodes)return null;if(Vt(e))return e;for(const t of e.childNodes)if(t instanceof HTMLElement){const e=Bt(t);if(e)return e}return null},Pt=e=>{if(!e||!e.childNodes)return null;if(e.getAttribute("role")&&""!==e.getAttribute("role"))return e;for(const t of e.childNodes)if(t instanceof HTMLElement){const e=Pt(t);if(e)return e}return null},Vt=e=>{if(void 0===e.tabIndex||e.tabIndex<0)return!1;if((e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement)&&e.disabled)return!1;switch(e.nodeName){case"A":return e instanceof HTMLAnchorElement&&!!e.href&&"ignore"!==e.rel;case"INPUT":return e instanceof HTMLInputElement&&"hidden"!==e.type;default:return!0}},zt=new Set(["mouseup","touchend","touchcancel"]),Ft=g.forwardRef((({as:e,align:t="top",className:n,children:r,label:o,description:i,enterDelayMs:a=100,leaveDelayMs:l=300,defaultOpen:s=!1,closeOnActivation:c=!1,dropShadow:u=!1,highContrast:d=!0,...f},m)=>{(0,g.useRef)(null);const[h,b]=Tt(s),[v,w]=(0,g.useState)(!1),[E,_]=(0,g.useState)(!1),[N,$]=(0,g.useState)(!1),T=Mt("tooltip"),I=C(),O=g.Children.only(r),{"aria-labelledby":R,"aria-describedby":S}=O?.props??{},k=!!o,A={onFocus:()=>!E&&b(!0),onBlur:()=>{b(!1),_(!1)},onClick:()=>c&&b(!1),onMouseEnter:M,onMouseLeave:D,onMouseDown:function(){_(!0),B()},onMouseMove:function(e){1===e.buttons?w(!0):w(!1)},onTouchStart:B,"aria-labelledby":R??(k?T:void 0),"aria-describedby":S??(k?void 0:T)},L=(0,g.useCallback)((e=>{h&&$t(e,bt)&&(e.stopPropagation(),b(!1)),h&&c&&($t(e,gt)||$t(e,vt))&&b(!1)}),[c,h,b]);function M(){f?.onMouseEnter||($(!0),b(!0,a))}function D(){$(!1),v||b(!1,l)}function B(){w(!0)}x((()=>{if(h)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){$t(e,bt)&&L(e)}}),[h,L]);const P=(0,g.useCallback)((()=>{w(!1),N||b(!1,l)}),[N,l,b]);return(0,g.useEffect)((()=>(v&&zt.forEach((e=>{document.addEventListener(e,P)})),()=>{zt.forEach((e=>{document.removeEventListener(e,P)}))})),[v,P]),g.createElement(ft,p({as:e,ref:m},f,{align:t,className:y()(`${I}--tooltip`,n),dropShadow:u,highContrast:d,onKeyDown:L,onMouseLeave:D,open:h}),g.createElement("div",{className:`${I}--tooltip-trigger__wrapper`},void 0!==O?g.cloneElement(O,{...A,...function(e){const t=Object.keys(A).filter((e=>e.startsWith("on"))),n={};return t.forEach((t=>{n[t]=n=>{A[t](n),e?.[t]&&e?.[t](n)}})),n}(O.props)}):null),g.createElement(mt,{"aria-hidden":h?"false":"true",className:`${I}--tooltip-content`,id:T,onMouseEnter:M,role:"tooltip"},o||i))}));Ft.propTypes={align:h().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top","top-start","top-end","bottom-start","bottom-end","left-end","left-start","right-end","right-start"]),children:h().node,className:h().string,closeOnActivation:h().bool,defaultOpen:h().bool,description:h().node,dropShadow:h().bool,enterDelayMs:h().number,highContrast:h().bool,label:h().node,leaveDelayMs:h().number};const Ht=g.forwardRef((function({as:e,children:t,className:n,dangerDescription:r="danger",disabled:o=!1,hasIconOnly:i=!1,href:a,iconDescription:l,isExpressive:s=!1,isSelected:c,kind:u="primary",onBlur:d,onClick:f,onFocus:p,onMouseEnter:m,onMouseLeave:h,renderIcon:b,size:v,tabIndex:w,type:E="button",...x},_){const N=C(),$={tabIndex:w,className:y()(n,{[`${N}--btn`]:!0,[`${N}--btn--xs`]:"xs"===v&&!s,[`${N}--btn--sm`]:"sm"===v&&!s,[`${N}--btn--md`]:"md"===v&&!s,[`${N}--btn--lg`]:"lg"===v&&!s,[`${N}--btn--xl`]:"xl"===v,[`${N}--btn--2xl`]:"2xl"===v,[`${N}--layout--size-${v}`]:v,[`${N}--btn--${u}`]:u,[`${N}--btn--disabled`]:o,[`${N}--btn--expressive`]:s,[`${N}--btn--icon-only`]:i,[`${N}--btn--selected`]:i&&c&&"ghost"===u}),ref:_},T=b?g.createElement(b,{"aria-label":l,className:`${N}--btn__icon`,"aria-hidden":"true"}):null,I=["danger","danger--tertiary","danger--ghost"];let O="button";const R=Mt("danger-description"),{"aria-pressed":S,"aria-describedby":k}=x;let A={disabled:o,type:E,"aria-describedby":I.includes(u)?R:k||void 0,"aria-pressed":S??(i&&"ghost"===u?c:void 0)};const L={href:a};let M=null;return I.includes(u)&&(M=g.createElement("span",{id:R,className:`${N}--visually-hidden`},r)),e?(O=e,A={...A,...L}):a&&!o&&(O="a",A=L),g.createElement(O,{onMouseEnter:m,onMouseLeave:h,onFocus:p,onBlur:d,onClick:f,...x,...$,...A},M,t,T)})),jt=g.forwardRef((function({className:e,count:t,...n},r){const o=C(),i=y()(`${o}--badge-indicator`,e,{[`${o}--badge-indicator--count`]:t}),a=t&&t>999?"999+":t;return g.createElement("div",p({className:i,ref:r},n),a)}));jt.propTypes={className:h().string,count:h().number,id:h().string};const qt=["primary","secondary","ghost","tertiary"],Kt=g.forwardRef((({align:e,autoAlign:t=!1,badgeCount:n,children:r,className:o,closeOnActivation:i=!0,defaultOpen:a=!1,disabled:l,dropShadow:s=!1,enterDelayMs:c=100,highContrast:u=!0,kind:d,label:f,leaveDelayMs:m=100,wrapperClasses:h,size:b,isSelected:v,...w},E)=>{const x=C(),_=y()(h,`${x}--icon-tooltip`,{[`${x}--icon-tooltip--disabled`]:l});!n||"ghost"===d&&"lg"===b||console.warn("The prop BadgeCount must be used with hasIconOnly=true, kind='ghost' and size='lg'");const N=Mt("badge-indicator");return g.createElement(Ft,{align:e,autoAlign:t,closeOnActivation:i,className:_,defaultOpen:a,dropShadow:s,enterDelayMs:c,highContrast:u,label:f,leaveDelayMs:m},g.createElement(Ht,p({},w,{disabled:l,kind:d,ref:E,size:b,isSelected:v,hasIconOnly:!0,className:o,"aria-describedby":w["aria-describedby"]||n&&N}),r,!l&&void 0!==n&&g.createElement(jt,{id:N,count:n>0?n:void 0})))}));Kt.propTypes={align:E(h().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top","top-start","top-end","bottom-start","bottom-end","left-end","left-start","right-end","right-start"]),["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"],I),autoAlign:h().bool,badgeCount:h().number,href:h().string,children:h().node,className:h().string,closeOnActivation:h().bool,defaultOpen:h().bool,dropShadow:h().bool,disabled:h().bool,enterDelayMs:h().number,isSelected:h().bool,highContrast:h().bool,kind:h().oneOf(qt),label:h().node.isRequired,leaveDelayMs:h().number,rel:h().string,size:h().oneOf(["sm","md","lg"]),target:h().string,wrapperClasses:h().string};const Wt=["primary","secondary","danger","ghost","danger--primary","danger--ghost","danger--tertiary","tertiary"],Ut=g.forwardRef(((e,t)=>{const{as:n,autoAlign:r=!1,children:o,hasIconOnly:i=!1,tooltipHighContrast:a=!0,tooltipDropShadow:l=!1,iconDescription:s,kind:c="primary",onBlur:u,onClick:d,onFocus:f,onMouseEnter:m,onMouseLeave:h,renderIcon:b,size:v,tooltipAlignment:y="center",tooltipPosition:w="top",...E}=e;!b||o||s||console.error("Button: renderIcon property specified without also providing an iconDescription property. This may impact accessibility for screen reader users.");const x=b?g.createElement(b,null):null;if(function(e){return!0===e}(i)){let e;return"top"!==w&&"bottom"!==w||("center"===y&&(e=w),"end"===y&&(e=`${w}-end`),"start"===y&&(e=`${w}-start`)),"right"!==w&&"left"!==w||(e=w),g.createElement(Kt,p({},E,{ref:t,as:n,align:e,label:s,kind:c,size:v,highContrast:a,dropShadow:l,onMouseEnter:m,onMouseLeave:h,onFocus:f,onBlur:u,autoAlign:r,onClick:d,renderIcon:x?null:b}),x??o)}{const{tooltipAlignment:n,...r}=e;return g.createElement(Ht,p({ref:t},r))}}));Ut.displayName="Button",Ut.propTypes={as:h().oneOfType([h().func,h().string,h().elementType]),autoAlign:h().bool,children:h().node,className:h().string,dangerDescription:h().string,disabled:h().bool,hasIconOnly:h().bool,href:h().string,iconDescription:e=>!e.renderIcon||e.children||e.iconDescription?null:new Error("renderIcon property specified without also providing an iconDescription property."),isExpressive:h().bool,isSelected:h().bool,kind:(e,t,n)=>{const{hasIconOnly:r}=e,o=r?qt:Wt;return void 0===e[t]||o.includes(e[t])?null:new Error(`Invalid prop \`${t}\` supplied to \`${n}\`. Expected one of ${o.join(", ")}.`)},onBlur:h().func,onClick:h().func,onFocus:h().func,onMouseEnter:h().func,onMouseLeave:h().func,rel:h().string,renderIcon:h().oneOfType([h().func,h().object]),role:h().string,size:h().oneOf(["xs","sm","md","lg","xl","2xl"]),tabIndex:h().number,target:h().string,tooltipAlignment:h().oneOf(["start","center","end"]),tooltipDropShadow:h().bool,tooltipHighContrast:h().bool,tooltipPosition:h().oneOf(["top","right","bottom","left"]),type:h().oneOf(["button","reset","submit"])};const Zt=(0,g.forwardRef)(((e,t)=>{const{children:n,className:r,stacked:o,...i}=e,a=C(),l=y()(r,`${a}--btn-set`,{[`${a}--btn-set--stacked`]:o});return g.createElement("div",p({},i,{className:l,ref:t}),n)}));Zt.displayName="ButtonSet",Zt.propTypes={children:h().node,className:h().string,stacked:h().bool};const Gt=(0,g.createContext)({direction:"auto",getTextDirection:{current:void 0}}),Xt=g.forwardRef((({as:e,children:t,dir:n="auto",...r},o)=>{const i=(0,g.useContext)(Gt),a={},l=e??"span",s={...i};if(i){const{direction:e,getTextDirection:r}=i;if(r&&r.current){const n=Yt(t),o=r.current(n);e!==o?(a.dir=o,s.direction=o):"auto"===e&&(a.dir=o)}else e!==n?(a.dir=n,s.direction=n):"auto"===e&&(a.dir=n)}else a.dir=n,s.direction=n;return g.createElement(Gt.Provider,{value:s},g.createElement(l,p({ref:o},r,a),t))}));Xt.propTypes={as:h().oneOfType([h().func,h().string,h().elementType]),children:h().node.isRequired,dir:h().oneOf(["ltr","rtl","auto"])};const Yt=e=>{if("string"==typeof e)return e;const t=g.Children.map(e,(e=>"string"==typeof e?e:null))?.filter((e=>null!==e));return 1===t?.length?t[0]:t};var Jt,Qt,en,tn,nn,rn,on,an,ln,sn,cn,un=n(60428);const dn=g.forwardRef((function({children:e,size:t=16,...n},r){return g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},Jt||(Jt=g.createElement("path",{fill:"none",d:"M16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Zm-1.125-5h2.25V12h-2.25Z","data-icon-path":"inner-path"})),Qt||(Qt=g.createElement("path",{d:"M16.002,6.1714h-.004L4.6487,27.9966,4.6506,28H27.3494l.0019-.0034ZM14.875,12h2.25v9h-2.25ZM16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Z"})),en||(en=g.createElement("path",{d:"M29,30H3a1,1,0,0,1-.8872-1.4614l13-25a1,1,0,0,1,1.7744,0l13,25A1,1,0,0,1,29,30ZM4.6507,28H27.3493l.002-.0033L16.002,6.1714h-.004L4.6487,27.9967Z"})),e)})),fn=g.forwardRef((function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},tn||(tn=g.createElement("path",{d:"M8,1C4.2,1,1,4.2,1,8s3.2,7,7,7s7-3.1,7-7S11.9,1,8,1z M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2 c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z"})),nn||(nn=g.createElement("path",{d:"M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8 c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z","data-icon-path":"inner-path",opacity:"0"})),e):20===t||"20"===t||"20px"===t?g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},rn||(rn=g.createElement("path",{d:"M10,1c-5,0-9,4-9,9s4,9,9,9s9-4,9-9S15,1,10,1z M9.2,5h1.5v7H9.2V5z M10,16c-0.6,0-1-0.4-1-1s0.4-1,1-1 s1,0.4,1,1S10.6,16,10,16z"})),on||(on=g.createElement("path",{d:"M9.2,5h1.5v7H9.2V5z M10,16c-0.6,0-1-0.4-1-1s0.4-1,1-1s1,0.4,1,1S10.6,16,10,16z","data-icon-path":"inner-path",opacity:"0"})),e):24===t||"24"===t||"24px"===t?g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},an||(an=g.createElement("path",{d:"M12,1C5.9,1,1,5.9,1,12s4.9,11,11,11s11-4.9,11-11C23,5.9,18.1,1,12,1z M11.1,6h1.8v8h-1.8V6z M12,19.2 c-0.7,0-1.2-0.6-1.2-1.2s0.6-1.2,1.2-1.2s1.2,0.6,1.2,1.2S12.7,19.2,12,19.2z"})),ln||(ln=g.createElement("path",{fill:"none",d:"M13.2,18c0,0.7-0.6,1.2-1.2,1.2s-1.2-0.6-1.2-1.2s0.6-1.2,1.2-1.2S13.2,17.3,13.2,18z M12.9,6 h-1.8v8h1.8V6z","data-icon-path":"inner-path",opacity:"0"})),e):g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},sn||(sn=g.createElement("path",{d:"M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14C30,8.3,23.7,2,16,2z M14.9,8h2.2v11h-2.2V8z M16,25 c-0.8,0-1.5-0.7-1.5-1.5S15.2,22,16,22c0.8,0,1.5,0.7,1.5,1.5S16.8,25,16,25z"})),cn||(cn=g.createElement("path",{fill:"none",d:"M17.5,23.5c0,0.8-0.7,1.5-1.5,1.5c-0.8,0-1.5-0.7-1.5-1.5S15.2,22,16,22 C16.8,22,17.5,22.7,17.5,23.5z M17.1,8h-2.2v11h2.2V8z","data-icon-path":"inner-path",opacity:"0"})),e)})),pn=()=>{};h().elementType,h().node,h().string;const mn=g.createContext(void 0);function hn(){return(0,g.useContext)(mn)}function gn({align:e,as:t,autoAlign:n,className:r,children:o,defaultOpen:i=!1,...a}){const l=(0,g.useRef)(null),[s,c]=(0,g.useState)(i),u=C(),d=Mt(),f=y()(`${u}--toggletip`,r,{[`${u}--toggletip--open`]:s,[`${u}--autoalign`]:n}),m={toggle:()=>{c(!s)},close:()=>{c(!1)}},h={buttonProps:{"aria-expanded":s,"aria-controls":d,"aria-describedby":s?d:void 0,onClick:m.toggle},contentProps:{id:d},onClick:{onClick:m.toggle}};return $("blur",(()=>{s&&m.close()})),(0,g.useEffect)((()=>{if(!l.current)return;const e=l.current.ownerDocument||document,t="PointerEvent"in window?"pointerdown":"mousedown",n=e=>{const t=e.target;s&&t&&!l.current.contains(t)&&c(!1)},r={capture:!0};return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}),[s]),g.createElement(mn.Provider,{value:h},g.createElement(ft,p({align:e,as:t,caret:!0,className:f,dropShadow:!1,highContrast:!0,open:s,onKeyDown:e=>{if(s&&$t(e,bt)){e.stopPropagation(),m.close();const t=l.current?.children[0];t instanceof HTMLButtonElement&&t.focus()}},onBlur:e=>{s&&null===e.relatedTarget||e.currentTarget.contains(e.relatedTarget)||m.close()},ref:l,autoAlign:n},a),o))}const{open:bn,...vn}=ft.propTypes??{};gn.propTypes={...vn,defaultOpen:h().bool};const yn=g.forwardRef((function({children:e,className:t,label:n="Show information",as:r,...o},i){const a=hn(),l=C(),s=y()(`${l}--toggletip-button`,t),c=r??"button";return"button"!==c?g.createElement(c,p({},a?.onClick,{className:s},o),e):g.createElement("button",p({},a?.buttonProps,{"aria-label":n,type:"button",className:s,ref:i},o),e)}));yn.propTypes={children:h().node,className:h().string,label:h().string},yn.displayName="ToggletipButton";const wn=g.forwardRef((function({children:e,className:t},n){const r=hn(),o=C();return g.createElement(mt,p({className:t},r?.contentProps,{ref:n}),g.createElement("div",{className:`${o}--toggletip-content`},e))}));function En({children:e,className:t}){const n=C(),r=y()(`${n}--toggletip-actions`,t);return g.createElement("div",{className:r},e)}var xn;wn.propTypes={children:h().node,className:h().string},wn.displayName="ToggletipContent",En.propTypes={children:h().node,className:h().string};const _n=g.forwardRef((function({children:e,size:t=16,...n},r){return g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},xn||(xn=g.createElement("path",{d:"M20,10H7.8149l3.5874-3.5859L10,5,4,11,10,17l1.4023-1.4146L7.8179,12H20a6,6,0,0,1,0,12H12v2h8a8,8,0,0,0,0-16Z"})),e)}));var Nn;const Cn=g.forwardRef((function({className:e,children:t},n){const r=C(),o=g.Children.toArray(t).some((e=>{e.type})),i=y()(e,{[`${r}--ai-label-content`]:!0,[`${r}--ai-label-content--with-actions`]:o});return g.createElement(wn,{className:i},t)}));Cn.displayName="AILabelContent",Cn.propTypes={children:h().node,className:h().string};const $n=g.forwardRef((function({className:e,children:t},n){const r=C(),o=y()(e,{[`${r}--ai-label-actions`]:!0});return g.createElement(En,{className:o},t)}));$n.displayName="AILabelActions",$n.propTypes={children:h().node,className:h().string};const Tn=g.forwardRef((function({aiText:e="AI",aiTextLabel:t,textLabel:n,align:r,autoAlign:o=!0,children:i,className:a,kind:l="default",onRevertClick:s,revertActive:c,revertLabel:u="Revert to AI input",slugLabel:d="Show information","aria-label":f="Show information",size:m="xs",...h},b){const v=C(),w=Mt("AILabel"),E=y()(a,{[`${v}--ai-label`]:!0,[`${v}--ai-label--revert`]:c}),x=y()({[`${v}--ai-label__button`]:!0,[`${v}--ai-label__button--${m}`]:m,[`${v}--ai-label__button--${l}`]:l,[`${v}--ai-label__button--inline-with-content`]:"inline"===l&&(t||n)}),_=t||n?`${e} ${t||n}`:`${e} ${d||f}`,N=["xs","2xs","mini"].includes(m);return g.createElement("div",{className:E,ref:b,id:w},c?g.createElement(Kt,p({onClick:e=>{s&&s(e)},kind:"ghost",size:"sm",label:u},h),Nn||(Nn=g.createElement(_n,null))):g.createElement(gn,p({align:r,autoAlign:o,alignmentAxisOffset:N?-24:0},h),g.createElement(yn,{className:x,label:"inline"===l?"":_},g.createElement("span",{className:`${v}--ai-label__text`},e),"inline"===l&&(t||n)&&g.createElement("span",{className:`${v}--ai-label__additional-text`},t||n)),i))}));Tn.displayName="AILabel",Tn.propTypes={...gn.propTypes,AILabelContent:h().node,aiText:h().string,aiTextLabel:st(h().string),"aria-label":h().string,kind:h().oneOf(["default","inline"]),onRevertClick:h().func,revertActive:h().bool,revertLabel:h().string,size:h().oneOf(["mini","2xs","xs","sm","md","lg","xl"]),slugLabel:st(h().string),textLabel:h().string};const In=(e,t)=>(0,g.isValidElement)(e)&&e.type===t,On=g.forwardRef((({className:e,decorator:t,helperText:n,id:r,labelText:o,onChange:i=pn,onClick:a,indeterminate:l=!1,invalid:s,invalidText:c,hideLabel:u,readOnly:d,title:f="",warn:m,warnText:h,slug:b,...v},w)=>{const E=C(),x=!d&&!s&&m,_=!s&&!m,N=Mt(),$=n?`checkbox-helper-text-${N}`:void 0,T=n?g.createElement("div",{id:$,className:`${E}--form__helper-text`},n):null,I=y()(`${E}--form-item`,`${E}--checkbox-wrapper`,e,{[`${E}--checkbox-wrapper--readonly`]:d,[`${E}--checkbox-wrapper--invalid`]:!d&&s,[`${E}--checkbox-wrapper--warning`]:x,[`${E}--checkbox-wrapper--slug`]:b,[`${E}--checkbox-wrapper--decorator`]:t}),O=y()(`${E}--checkbox-label-text`,{[`${E}--visually-hidden`]:u}),R=b??t,S=In(R,Tn)?(0,g.cloneElement)(R,{size:"inline"===R.props.kind?"md":"mini"}):null;return g.createElement("div",{className:I},g.createElement("input",p({},v,{type:"checkbox","data-invalid":!!s||void 0,onChange:e=>{!d&&i&&i(e,{checked:e.target.checked,id:r})},className:`${E}--checkbox`,id:r,ref:e=>{e&&(e.indeterminate=l??!1),"function"==typeof w?w(e):w&&"current"in w&&(w.current=e)},"aria-readonly":d,onClick:e=>{d&&e.preventDefault(),a&&a(e)}})),g.createElement("label",{htmlFor:r,className:`${E}--checkbox-label`,title:f},g.createElement(Xt,{className:O},o,b?S:t?g.createElement("div",{className:`${E}--checkbox-wrapper-inner--decorator`},S):"")),g.createElement("div",{className:`${E}--checkbox__validation-msg`},!d&&s&&g.createElement(g.Fragment,null,g.createElement(fn,{className:`${E}--checkbox__invalid-icon`}),g.createElement("div",{className:`${E}--form-requirement`},c)),x&&g.createElement(g.Fragment,null,g.createElement(dn,{className:`${E}--checkbox__invalid-icon ${E}--checkbox__invalid-icon--warning`}),g.createElement("div",{className:`${E}--form-requirement`},h))),_&&T)}));function Rn(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}On.propTypes={checked:h().bool,className:h().string,decorator:h().node,defaultChecked:h().bool,disabled:h().bool,helperText:h().node,hideLabel:h().bool,id:h().string.isRequired,indeterminate:h().bool,invalid:h().bool,invalidText:h().node,labelText:h().node.isRequired,onChange:h().func,readOnly:h().bool,slug:st(h().node),title:h().string,warn:h().bool,warnText:h().node},On.displayName="Checkbox";var Sn=n(58168);n(44353);const kn=e=>"object"==typeof e&&null!=e&&1===e.nodeType,An=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,Ln=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return An(n.overflowY,t)||An(n.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},Mn=(e,t,n,r,o,i,a,l)=>i<e&&a>t||i>e&&a<t?0:i<=e&&l<=n||a>=t&&l>=n?i-e-r:a>t&&l<n||i<e&&l>n?a-t+o:0,Dn=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t};var Bn=n(31635),Pn=0;function Vn(){}function zn(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function Fn(e,t){var n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];r(),n=setTimeout((function(){n=null,e.apply(void 0,i)}),t)}return o.cancel=r,o}function Hn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return t&&t.apply(void 0,[e].concat(r)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault}))}}function jn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){"function"==typeof t?t(e):t&&(t.current=e)}))}}function qn(e,t){return e&&t?Object.keys(e).reduce((function(n,r){return n[r]=Kn(t,r)?t[r]:e[r],n}),{}):e}function Kn(e,t){return void 0!==e[t]}function Wn(e,t,n,r,o){void 0===o&&(o=!1);var i=n.length;if(0===i)return-1;var a=i-1;("number"!=typeof e||e<0||e>a)&&(e=t>0?-1:a+1);var l=e+t;l<0?l=o?a:0:l>a&&(l=o?0:a);var s=Un(l,t<0,n,r,o);return-1===s?e>=i?-1:e:s}function Un(e,t,n,r,o){void 0===o&&(o=!1);var i=n.length;if(t){for(var a=e;a>=0;a--)if(!r(n[a],a))return a}else for(var l=e;l<i;l++)if(!r(n[l],l))return l;return o?Un(t?i-1:0,t,n,r):-1}function Zn(e,t,n,r){return void 0===r&&(r=!0),n&&t.some((function(t){return t&&(zn(t,e,n)||r&&zn(t,n.document.activeElement,n))}))}var Gn=Fn((function(e){Xn(e).textContent=""}),500);function Xn(e){var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var Yn={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};var Jn=Fn((function(e,t){!function(e,t){e&&t&&(Xn(t).textContent=e,Gn(t))}(e,t)}),200),Qn="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?g.useLayoutEffect:g.useEffect,er="useId"in g?function(e){var t=e.id,n=e.labelId,r=e.menuId,o=e.getItemId,i=e.toggleButtonId,a=e.inputId,l="downshift-"+g.useId();t||(t=l);var s=(0,g.useRef)({labelId:n||t+"-label",menuId:r||t+"-menu",getItemId:o||function(e){return t+"-item-"+e},toggleButtonId:i||t+"-toggle-button",inputId:a||t+"-input"});return s.current}:function(e){var t=e.id,n=void 0===t?"downshift-"+String(Pn++):t,r=e.labelId,o=e.menuId,i=e.getItemId,a=e.toggleButtonId,l=e.inputId,s=(0,g.useRef)({labelId:r||n+"-label",menuId:o||n+"-menu",getItemId:i||function(e){return n+"-item-"+e},toggleButtonId:a||n+"-toggle-button",inputId:l||n+"-input"});return s.current};function tr(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function nr(e){var t=(0,g.useRef)(e);return t.current=e,t}function rr(e,t,n,r){var o=(0,g.useRef)(),i=(0,g.useRef)(),a=(0,g.useCallback)((function(t,n){i.current=n,t=qn(t,n.props);var r=e(t,n);return n.props.stateReducer(t,(0,Sn.A)({},n,{changes:r}))}),[e]),l=(0,g.useReducer)(a,t,n),s=l[0],c=l[1],u=nr(t),d=(0,g.useCallback)((function(e){return c((0,Sn.A)({props:u.current},e))}),[u]),f=i.current;return(0,g.useEffect)((function(){var e=qn(o.current,null==f?void 0:f.props);f&&o.current&&!r(e,s)&&function(e,t,n){var r=e.props,o=e.type,i={};Object.keys(t).forEach((function(r){!function(e,t,n,r){var o=t.props,i=t.type,a="on"+tr(e)+"Change";o[a]&&void 0!==r[e]&&r[e]!==n[e]&&o[a]((0,Sn.A)({type:i},r))}(r,e,t,n),n[r]!==t[r]&&(i[r]=n[r])})),r.onStateChange&&Object.keys(i).length&&r.onStateChange((0,Sn.A)({type:o},i))}(f,e,s),o.current=s}),[s,f,r]),[s,d]}var or={itemToString:function(e){return e?String(e):""},itemToKey:function(e){return e},stateReducer:function(e,t){return t.changes},scrollIntoView:function(e,t){if(e){var n=((e,t)=>{var n,r,o,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:l,inline:s,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!kn(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let m=e;for(;kn(m)&&d(m);){if(m=Dn(m),m===f){p.push(m);break}null!=m&&m===document.body&&Ln(m)&&!Ln(document.documentElement)||null!=m&&Ln(m,u)&&p.push(m)}const h=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,g=null!=(i=null==(o=window.visualViewport)?void 0:o.height)?i:innerHeight,{scrollX:b,scrollY:v}=window,{height:y,width:w,top:E,right:x,bottom:_,left:N}=e.getBoundingClientRect(),{top:C,right:$,bottom:T,left:I}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let O="start"===l||"nearest"===l?E-C:"end"===l?_+T:E+y/2-C+T,R="center"===s?N+w/2-I+$:"end"===s?x+$:N-I;const S=[];for(let e=0;e<p.length;e++){const t=p[e],{height:n,width:r,top:o,right:i,bottom:c,left:u}=t.getBoundingClientRect();if("if-needed"===a&&E>=0&&N>=0&&_<=g&&x<=h&&(t===f&&!Ln(t)||E>=o&&_<=c&&N>=u&&x<=i))return S;const d=getComputedStyle(t),m=parseInt(d.borderLeftWidth,10),C=parseInt(d.borderTopWidth,10),$=parseInt(d.borderRightWidth,10),T=parseInt(d.borderBottomWidth,10);let I=0,k=0;const A="offsetWidth"in t?t.offsetWidth-t.clientWidth-m-$:0,L="offsetHeight"in t?t.offsetHeight-t.clientHeight-C-T:0,M="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,D="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(f===t)I="start"===l?O:"end"===l?O-g:"nearest"===l?Mn(v,v+g,g,C,T,v+O,v+O+y,y):O-g/2,k="start"===s?R:"center"===s?R-h/2:"end"===s?R-h:Mn(b,b+h,h,m,$,b+R,b+R+w,w),I=Math.max(0,I+v),k=Math.max(0,k+b);else{I="start"===l?O-o-C:"end"===l?O-c+T+L:"nearest"===l?Mn(o,c,n,C,T+L,O,O+y,y):O-(o+n/2)+L/2,k="start"===s?R-u-m:"center"===s?R-(u+r/2)+A/2:"end"===s?R-i+$+A:Mn(u,i,r,m,$+A,R,R+w,w);const{scrollLeft:e,scrollTop:a}=t;I=0===D?0:Math.max(0,Math.min(a+I/D,t.scrollHeight-n/D+L)),k=0===M?0:Math.max(0,Math.min(e+k/M,t.scrollWidth-r/M+A)),O+=a-I,R+=e-k}S.push({el:t,top:I,left:k})}return S})(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach((function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r}))}},environment:"undefined"==typeof window?void 0:window};function ir(e,t,n){void 0===n&&(n=Yn);var r=e["default"+tr(t)];return void 0!==r?r:n[t]}function ar(e,t,n){void 0===n&&(n=Yn);var r=e[t];if(void 0!==r)return r;var o=e["initial"+tr(t)];return void 0!==o?o:ir(e,t,n)}function lr(e,t,n){var r=e.items,o=e.initialHighlightedIndex,i=e.defaultHighlightedIndex,a=e.isItemDisabled,l=e.itemToKey,s=t.selectedItem,c=t.highlightedIndex;return 0===r.length?-1:void 0===o||c!==o||a(r[o],o)?void 0===i||a(r[i],i)?s?r.findIndex((function(e){return l(s)===l(e)})):n<0&&!a(r[r.length-1],r.length-1)?r.length-1:n>0&&!a(r[0],0)?0:-1:i:o}var sr=Vn;function cr(e,t,n){var r;void 0===n&&(n=!0);var o=(null==(r=e.items)?void 0:r.length)&&t>=0;return(0,Sn.A)({isOpen:!1,highlightedIndex:-1},o&&(0,Sn.A)({selectedItem:e.items[t],isOpen:ir(e,"isOpen"),highlightedIndex:ir(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function ur(e,t){return e.isOpen===t.isOpen&&e.inputValue===t.inputValue&&e.highlightedIndex===t.highlightedIndex&&e.selectedItem===t.selectedItem}function dr(){var e=g.useRef(!0);return g.useEffect((function(){return e.current=!1,function(){e.current=!0}}),[]),e.current}function fr(e){var t=ir(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}var pr={environment:h().shape({addEventListener:h().func.isRequired,removeEventListener:h().func.isRequired,document:h().shape({createElement:h().func.isRequired,getElementById:h().func.isRequired,activeElement:h().any.isRequired,body:h().any.isRequired}).isRequired,Node:h().func.isRequired}),itemToString:h().func,itemToKey:h().func,stateReducer:h().func},mr=(0,Sn.A)({},pr,{getA11yStatusMessage:h().func,highlightedIndex:h().number,defaultHighlightedIndex:h().number,initialHighlightedIndex:h().number,isOpen:h().bool,defaultIsOpen:h().bool,initialIsOpen:h().bool,selectedItem:h().any,initialSelectedItem:h().any,defaultSelectedItem:h().any,id:h().string,labelId:h().string,menuId:h().string,getItemId:h().func,toggleButtonId:h().string,onSelectedItemChange:h().func,onHighlightedIndexChange:h().func,onStateChange:h().func,onIsOpenChange:h().func,scrollIntoView:h().func});(0,Bn.__assign)((0,Bn.__assign)({},mr),{items:h().array.isRequired,isItemDisabled:h().func}),(0,Bn.__assign)((0,Bn.__assign)({},or),{isItemDisabled:function(){return!1}});var hr=Object.freeze({__proto__:null,ControlledPropUpdatedSelectedItem:22,FunctionCloseMenu:17,FunctionOpenMenu:16,FunctionReset:21,FunctionSelectItem:19,FunctionSetHighlightedIndex:18,FunctionSetInputValue:20,FunctionToggleMenu:15,InputBlur:9,InputChange:8,InputClick:10,InputKeyDownArrowDown:0,InputKeyDownArrowUp:1,InputKeyDownEnd:4,InputKeyDownEnter:7,InputKeyDownEscape:2,InputKeyDownHome:3,InputKeyDownPageDown:6,InputKeyDownPageUp:5,ItemClick:13,ItemMouseMove:12,MenuMouseLeave:11,ToggleButtonClick:14});function gr(e){var t=function(e){var t=ar(e,"selectedItem"),n=ar(e,"isOpen"),r=function(e){var t=ar(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}(e),o=ar(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.findIndex((function(n){return e.itemToKey(n)===e.itemToKey(t)})):r,isOpen:n,selectedItem:t,inputValue:o}}(e),n=t.selectedItem,r=t.inputValue;return""===r&&n&&void 0===e.defaultInputValue&&void 0===e.initialInputValue&&void 0===e.inputValue&&(r=e.itemToString(n)),(0,Sn.A)({},t,{inputValue:r})}(0,Sn.A)({},mr,{items:h().array.isRequired,isItemDisabled:h().func,inputValue:h().string,defaultInputValue:h().string,initialInputValue:h().string,inputId:h().string,onInputValueChange:h().func});var br=Vn,vr=(0,Sn.A)({},or,{isItemDisabled:function(){return!1}});function yr(e,t){var n,r,o=t.type,i=t.props,a=t.altKey;switch(o){case 13:r={isOpen:ir(i,"isOpen"),highlightedIndex:fr(i),selectedItem:i.items[t.index],inputValue:i.itemToString(i.items[t.index])};break;case 0:r=e.isOpen?{highlightedIndex:Wn(e.highlightedIndex,1,i.items,i.isItemDisabled,!0)}:{highlightedIndex:a&&null==e.selectedItem?-1:lr(i,e,1),isOpen:i.items.length>=0};break;case 1:r=e.isOpen?a?cr(i,e.highlightedIndex):{highlightedIndex:Wn(e.highlightedIndex,-1,i.items,i.isItemDisabled,!0)}:{highlightedIndex:lr(i,e,-1),isOpen:i.items.length>=0};break;case 7:r=cr(i,e.highlightedIndex);break;case 2:r=(0,Sn.A)({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case 5:r={highlightedIndex:Wn(e.highlightedIndex,-10,i.items,i.isItemDisabled,!0)};break;case 6:r={highlightedIndex:Wn(e.highlightedIndex,10,i.items,i.isItemDisabled,!0)};break;case 3:r={highlightedIndex:Un(0,!1,i.items,i.isItemDisabled)};break;case 4:r={highlightedIndex:Un(i.items.length-1,!0,i.items,i.isItemDisabled)};break;case 9:r=(0,Sn.A)({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&(null==(n=i.items)?void 0:n.length)&&t.selectItem&&{selectedItem:i.items[e.highlightedIndex],inputValue:i.itemToString(i.items[e.highlightedIndex])});break;case 8:r={isOpen:!0,highlightedIndex:fr(i),inputValue:t.inputValue};break;case 10:r={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:lr(i,e,0)};break;case 19:r={selectedItem:t.selectedItem,inputValue:i.itemToString(t.selectedItem)};break;case 22:r={inputValue:t.inputValue};break;default:return function(e,t,n){var r,o=t.type,i=t.props;switch(o){case n.ItemMouseMove:r={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:r={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:r={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:lr(i,e,0)};break;case n.FunctionOpenMenu:r={isOpen:!0,highlightedIndex:lr(i,e,0)};break;case n.FunctionCloseMenu:r={isOpen:!1};break;case n.FunctionSetHighlightedIndex:r={highlightedIndex:i.isItemDisabled(i.items[t.highlightedIndex],t.highlightedIndex)?-1:t.highlightedIndex};break;case n.FunctionSetInputValue:r={inputValue:t.inputValue};break;case n.FunctionReset:r={highlightedIndex:fr(i),isOpen:ir(i,"isOpen"),selectedItem:ir(i,"selectedItem"),inputValue:ir(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return(0,Sn.A)({},e,r)}(e,t,hr)}return(0,Sn.A)({},e,r)}var wr,Er,xr,_r,Nr,Cr,$r,Tr,Ir,Or,Rr,Sr,kr,Ar,Lr,Mr,Dr,Br,Pr,Vr=["onMouseLeave","refKey","ref"],zr=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],Fr=["onClick","onPress","refKey","ref"],Hr=["onKeyDown","onChange","onInput","onBlur","onChangeText","onClick","refKey","ref"];function jr(e){void 0===e&&(e={}),br(e,jr);var t=(0,Sn.A)({},vr,e),n=t.items,r=t.scrollIntoView,o=t.environment,i=t.getA11yStatusMessage,a=function(e,t,n,r){var o=(0,g.useRef)(),i=rr(e,t,n,r),a=i[0],l=i[1],s=dr();return(0,g.useEffect)((function(){Kn(t,"selectedItem")&&(s||t.itemToKey(t.selectedItem)!==t.itemToKey(o.current)&&l({type:22,inputValue:t.itemToString(t.selectedItem)}),o.current=a.selectedItem===o.current?t.selectedItem:a.selectedItem)}),[a.selectedItem,t.selectedItem]),[qn(a,t),l]}(yr,t,gr,ur),l=a[0],s=a[1],c=l.isOpen,u=l.highlightedIndex,d=l.selectedItem,f=l.inputValue,p=(0,g.useRef)(null),m=(0,g.useRef)({}),h=(0,g.useRef)(null),b=(0,g.useRef)(null),v=dr(),y=er(t),w=(0,g.useRef)(),E=nr({state:l,props:t}),x=(0,g.useCallback)((function(e){return m.current[y.getItemId(e)]}),[y]);!function(e,t,n,r){void 0===r&&(r={});var o=r.document,i=dr();(0,g.useEffect)((function(){if(e&&!i&&o){var n=e(t);Jn(n,o)}}),n),(0,g.useEffect)((function(){return function(){var e,t;Jn.cancel(),(t=null==(e=o)?void 0:e.getElementById("a11y-status-message"))&&t.remove()}}),[o])}(i,l,[c,u,d,f],o);var _=function(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,o=e.getItemNodeFromIndex,i=e.menuElement,a=e.scrollIntoView,l=(0,g.useRef)(!0);return Qn((function(){t<0||!n||!Object.keys(r.current).length||(!1===l.current?l.current=!0:a(o(t),i))}),[t]),l}({menuElement:p.current,highlightedIndex:u,isOpen:c,itemRefs:m,scrollIntoView:r,getItemNodeFromIndex:x});sr({props:t,state:l}),(0,g.useEffect)((function(){ar(t,"isOpen")&&h.current&&h.current.focus()}),[]),(0,g.useEffect)((function(){v||(w.current=n.length)}));var N=function(e,t,n){var r=(0,g.useRef)({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1});return(0,g.useEffect)((function(){if(!e)return Vn;var o=n.map((function(e){return e.current}));function i(){r.current.isTouchEnd=!1,r.current.isMouseDown=!0}function a(n){r.current.isMouseDown=!1,Zn(n.target,o,e)||t()}function l(){r.current.isTouchEnd=!1,r.current.isTouchMove=!1}function s(){r.current.isTouchMove=!0}function c(n){r.current.isTouchEnd=!0,r.current.isTouchMove||Zn(n.target,o,e,!1)||t()}return e.addEventListener("mousedown",i),e.addEventListener("mouseup",a),e.addEventListener("touchstart",l),e.addEventListener("touchmove",s),e.addEventListener("touchend",c),function(){e.removeEventListener("mousedown",i),e.removeEventListener("mouseup",a),e.removeEventListener("touchstart",l),e.removeEventListener("touchmove",s),e.removeEventListener("touchend",c)}}),[n,e,t]),r.current}(o,(0,g.useCallback)((function(){E.current.state.isOpen&&s({type:9,selectItem:!1})}),[s,E]),(0,g.useMemo)((function(){return[p,b,h]}),[p.current,b.current,h.current])),C=Vn;(0,g.useEffect)((function(){c||(m.current={})}),[c]),(0,g.useEffect)((function(){var e;c&&null!=o&&o.document&&null!=h&&null!=(e=h.current)&&e.focus&&o.document.activeElement!==h.current&&h.current.focus()}),[c,o]);var $=(0,g.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),s({type:0,altKey:e.altKey})},ArrowUp:function(e){e.preventDefault(),s({type:1,altKey:e.altKey})},Home:function(e){E.current.state.isOpen&&(e.preventDefault(),s({type:3}))},End:function(e){E.current.state.isOpen&&(e.preventDefault(),s({type:4}))},Escape:function(e){var t=E.current.state;(t.isOpen||t.inputValue||t.selectedItem||t.highlightedIndex>-1)&&(e.preventDefault(),s({type:2}))},Enter:function(e){E.current.state.isOpen&&229!==e.which&&(e.preventDefault(),s({type:7}))},PageUp:function(e){E.current.state.isOpen&&(e.preventDefault(),s({type:5}))},PageDown:function(e){E.current.state.isOpen&&(e.preventDefault(),s({type:6}))}}}),[s,E]),T=(0,g.useCallback)((function(e){return(0,Sn.A)({id:y.labelId,htmlFor:y.inputId},e)}),[y]),I=(0,g.useCallback)((function(e,t){var n,r=void 0===e?{}:e,o=r.onMouseLeave,i=r.refKey,a=void 0===i?"ref":i,l=r.ref,c=Rn(r,Vr),u=(void 0===t?{}:t).suppressRefError;return C("getMenuProps",void 0!==u&&u,a,p),(0,Sn.A)(((n={})[a]=jn(l,(function(e){p.current=e})),n.id=y.menuId,n.role="listbox",n["aria-labelledby"]=c&&c["aria-label"]?void 0:""+y.labelId,n.onMouseLeave=Hn(o,(function(){s({type:11})})),n),c)}),[s,C,y]),O=(0,g.useCallback)((function(e){var t,n,r=void 0===e?{}:e,o=r.item,i=r.index,a=r.refKey,l=void 0===a?"ref":a,c=r.ref,u=r.onMouseMove,d=r.onMouseDown,f=r.onClick;r.onPress;var p=r.disabled,h=Rn(r,zr);void 0!==p&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');var g=E.current,b=g.props,v=g.state,w=function(e,t,n,r){var o,i;if(void 0===e){if(void 0===t)throw new Error(r);o=n[t],i=t}else i=void 0===t?n.indexOf(e):t,o=e;return[o,i]}(o,i,b.items,"Pass either item or index to getItemProps!"),x=w[0],C=w[1],$=b.isItemDisabled(x,C),T=f;return(0,Sn.A)(((t={})[l]=jn(c,(function(e){e&&(m.current[y.getItemId(C)]=e)})),t["aria-disabled"]=$,t["aria-selected"]=C===v.highlightedIndex,t.id=y.getItemId(C),t.role="option",t),!$&&((n={}).onClick=Hn(T,(function(){s({type:13,index:C})})),n),{onMouseMove:Hn(u,(function(){N.isTouchEnd||C===v.highlightedIndex||(_.current=!1,s({type:12,index:C,disabled:$}))})),onMouseDown:Hn(d,(function(e){return e.preventDefault()}))},h)}),[s,y,E,N,_]),R=(0,g.useCallback)((function(e){var t,n=void 0===e?{}:e,r=n.onClick;n.onPress;var o=n.refKey,i=void 0===o?"ref":o,a=n.ref,l=Rn(n,Fr),c=E.current.state;return(0,Sn.A)(((t={})[i]=jn(a,(function(e){b.current=e})),t["aria-controls"]=y.menuId,t["aria-expanded"]=c.isOpen,t.id=y.toggleButtonId,t.tabIndex=-1,t),!l.disabled&&(0,Sn.A)({},{onClick:Hn(r,(function(){s({type:14})}))}),l)}),[s,E,y]),S=(0,g.useCallback)((function(e,t){var n,r=void 0===e?{}:e,i=r.onKeyDown,a=r.onChange,l=r.onInput,c=r.onBlur;r.onChangeText;var u=r.onClick,d=r.refKey,f=void 0===d?"ref":d,p=r.ref,m=Rn(r,Hr),g=(void 0===t?{}:t).suppressRefError;C("getInputProps",void 0!==g&&g,f,h);var b,v=E.current.state,w={};return m.disabled||((b={}).onChange=Hn(a,l,(function(e){s({type:8,inputValue:e.target.value})})),b.onKeyDown=Hn(i,(function(e){var t=function(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}(e);t&&$[t]&&$[t](e)})),b.onBlur=Hn(c,(function(e){if(null!=o&&o.document&&v.isOpen&&!N.isMouseDown){var t=null===e.relatedTarget&&o.document.activeElement!==o.document.body;s({type:9,selectItem:!t})}})),b.onClick=Hn(u,(function(){s({type:10})})),w=b),(0,Sn.A)(((n={})[f]=jn(p,(function(e){h.current=e})),n["aria-activedescendant"]=v.isOpen&&v.highlightedIndex>-1?y.getItemId(v.highlightedIndex):"",n["aria-autocomplete"]="list",n["aria-controls"]=y.menuId,n["aria-expanded"]=v.isOpen,n["aria-labelledby"]=m&&m["aria-label"]?void 0:y.labelId,n.autoComplete="off",n.id=y.inputId,n.role="combobox",n.value=v.inputValue,n),w,m)}),[s,y,o,$,E,N,C]),k=(0,g.useCallback)((function(){s({type:15})}),[s]),A=(0,g.useCallback)((function(){s({type:17})}),[s]),L=(0,g.useCallback)((function(){s({type:16})}),[s]),M=(0,g.useCallback)((function(e){s({type:18,highlightedIndex:e})}),[s]),D=(0,g.useCallback)((function(e){s({type:19,selectedItem:e})}),[s]);return{getItemProps:O,getLabelProps:T,getMenuProps:I,getInputProps:S,getToggleButtonProps:R,toggleMenu:k,openMenu:L,closeMenu:A,setHighlightedIndex:M,setInputValue:(0,g.useCallback)((function(e){s({type:20,inputValue:e})}),[s]),selectItem:D,reset:(0,g.useCallback)((function(){s({type:21})}),[s]),highlightedIndex:u,isOpen:c,selectedItem:d,inputValue:f}}jr.stateChangeTypes=hr,h().array,h().array,h().array,h().func,h().number,h().number,h().number,h().func,h().func,h().string,h().string;const qr=g.forwardRef((function({children:e,size:t=16,...n},r){return g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},wr||(wr=g.createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM6,26V6H26V26Z"})),e)})),Kr=g.forwardRef((function({children:e,size:t=16,...n},r){return g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},Er||(Er=g.createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z"})),xr||(xr=g.createElement("path",{fill:"none",d:"M14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z","data-icon-path":"inner-path"})),e)})),Wr=g.forwardRef((function({children:e,size:t=16,...n},r){return 20===t||"20"===t||"20px"===t?g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},_r||(_r=g.createElement("path",{d:"M8 13.2L3.6 8.8 2.7 9.7 7.1 14.1 8 15 16.5 6.5 15.6 5.6z"})),Nr||(Nr=g.createElement("path",{d:"M15.6 5.6L8 13.2 3.6 8.8 2.7 9.7 7.1 14.1 8 15 16.5 6.5 15.6 5.6z"})),e):24===t||"24"===t||"24px"===t?g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},Cr||(Cr=g.createElement("path",{d:"M10 15.9L4.7 10.6 3.6 11.6 8.9 16.9 10 18 20.6 7.4 19.5 6.3z"})),e):g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},$r||($r=g.createElement("path",{d:"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"})),e)})),Ur=g.forwardRef((function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},Tr||(Tr=g.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8c0,3.9,3.1,7,7,7s7-3.1,7-7C15,4.1,11.9,1,8,1z M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z"})),Ir||(Ir=g.createElement("path",{d:"M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z","data-icon-path":"inner-path",opacity:"0"})),e):20===t||"20"===t||"20px"===t?g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},Or||(Or=g.createElement("path",{d:"M10,1c-4.9,0-9,4.1-9,9s4.1,9,9,9s9-4,9-9S15,1,10,1z M8.7,13.5l-3.2-3.2l1-1l2.2,2.2l4.8-4.8l1,1L8.7,13.5z"})),Rr||(Rr=g.createElement("path",{fill:"none",d:"M8.7,13.5l-3.2-3.2l1-1l2.2,2.2l4.8-4.8l1,1L8.7,13.5z","data-icon-path":"inner-path",opacity:"0"})),e):24===t||"24"===t||"24px"===t?g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},Sr||(Sr=g.createElement("path",{d:"M12,1C6,1,1,6,1,12s5,11,11,11s11-4.9,11-11S18.1,1,12,1z M10.4,16.3l-3.9-3.9l1.3-1.2l2.7,2.7l5.8-5.8l1.3,1.3L10.4,16.3z"})),kr||(kr=g.createElement("path",{fill:"none",d:"M10.4,16.3l-3.9-3.9l1.3-1.2l2.7,2.7l5.8-5.8l1.3,1.3L10.4,16.3z","data-icon-path":"inner-path",opacity:"0"})),e):g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},Ar||(Ar=g.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"})),Lr||(Lr=g.createElement("path",{fill:"none",d:"M14 21.591L9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z","data-icon-path":"inner-path"})),e)})),Zr=g.forwardRef((function({children:e,size:t=16,...n},r){return"glyph"===t||"glyph"===t||"glyphpx"===t?g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 6",fill:"currentColor",...n},Mr||(Mr=g.createElement("path",{d:"M5 6L0 1 0.7 0.3 5 4.6 9.3 0.3 10 1z"})),e):16===t||"16"===t||"16px"===t?g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},Dr||(Dr=g.createElement("path",{d:"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"})),e):g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},Br||(Br=g.createElement("path",{d:"M16 22L6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z"})),e)})),Gr=g.forwardRef((function({children:e,size:t=16,...n},r){return g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},Pr||(Pr=g.createElement("path",{d:"M17.4141 16L24 9.4141 22.5859 8 16 14.5859 9.4143 8 8 9.4141 14.5859 16 8 22.5859 9.4143 24 16 17.4141 22.5859 24 24 22.5859 17.4141 16z"})),e)}));var Xr=n(30115),Yr=n.n(Xr);const Jr=h().oneOf(["default","inline"]),Qr=h().oneOf(["sm","md","lg"]),eo=(0,g.createContext)({isFluid:!1}),to=e=>{27===e.keyCode&&e.stopPropagation()},no=e=>{e.preventDefault(),e.stopPropagation()},ro=(0,g.forwardRef)(((e,t)=>{const{children:n,className:r,disabled:o=!1,type:i="default",size:a,invalid:l,invalidText:s,invalidTextId:c,warn:u,warnText:d,warnTextId:f,light:m,isOpen:h,...b}=e,v=C(),{isFluid:w}=(0,g.useContext)(eo),E=!l&&u,x=y()({...r&&{[r]:!0},[`${v}--list-box`]:!0,[`${v}--list-box--${a}`]:a,[`${v}--list-box--inline`]:"inline"===i,[`${v}--list-box--disabled`]:o,[`${v}--list-box--light`]:m,[`${v}--list-box--expanded`]:h,[`${v}--list-box--invalid`]:l,[`${v}--list-box--warning`]:E});return g.createElement(g.Fragment,null,g.createElement("div",p({},b,{className:x,ref:t,onKeyDown:to,onClick:no,"data-invalid":l||void 0}),n),w&&g.createElement("hr",{className:`${v}--list-box__divider`}),l?g.createElement("div",{className:`${v}--form-requirement`,id:c},s):null,E?g.createElement("div",{className:`${v}--form-requirement`,id:f},d):null)}));function oo({children:e,disabled:t,tabIndex:n,...r}){const o=C();return g.createElement("div",p({className:`${o}--list-box__field`,tabIndex:!t&&n||-1},r),e)}ro.displayName="ListBox",ro.propTypes={children:h().node,className:h().string,disabled:h().bool,invalid:h().bool,invalidText:h().node,invalidTextId:h().string,isOpen:h().bool,light:st(h().bool),size:Qr,type:Jr,warn:h().bool,warnText:h().string,warnTextId:h().string},oo.propTypes={"aria-haspopup":h().oneOfType([h().string,h().bool]),children:h().node,disabled:h().bool,role:h().string,tabIndex:h().oneOfType([h().number,h().string])};const io=(0,g.forwardRef)((({children:e,isActive:t=!1,isHighlighted:n=!1,title:r,...o},i)=>{const a=C(),l=i&&"function"!=typeof i?i.menuItemOptionRef:void 0,{isTruncated:s,ref:c}=((e,t=[])=>{const n=(0,g.useRef)(null),r=_([...e?[e]:[],n]),[o,i]=(0,g.useState)(!1);return(0,g.useEffect)((()=>{const e=n.current;if(e){const{offsetWidth:t,scrollWidth:n}=e;i(t<n)}}),[n,...t]),{isTruncated:o,ref:r}})(l,[e]),u=y()(`${a}--list-box__menu-item`,{[`${a}--list-box__menu-item--active`]:t,[`${a}--list-box__menu-item--highlighted`]:n});return g.createElement("li",p({},o,{className:u,title:s?r:void 0}),g.createElement("div",{className:`${a}--list-box__menu-item__option`,ref:c},e))}));io.displayName="ListBoxMenuItem",io.propTypes={children:h().node,disabled:h().bool,isActive:h().bool,isHighlighted:h().bool,title:h().string};const ao=(0,g.forwardRef)((({children:e,id:t,...n},r)=>{const o=C();return g.createElement("ul",p({ref:r,id:t,className:`${o}--list-box__menu`,role:"listbox"},n),e)}));ao.displayName="ListBoxMenu",ao.propTypes={children:h().oneOfType([h().node,h().arrayOf(h().oneOf([io])),h().shape({type:h().oneOf([io])}),h().bool]),id:h().string.isRequired};const lo={"close.menu":"Close menu","open.menu":"Open menu"},so=e=>lo[e],co=({isOpen:e,translateWithId:t=so})=>{const n=C(),r=y()(`${n}--list-box__menu-icon`,{[`${n}--list-box__menu-icon--open`]:e}),o=t(e?"close.menu":"open.menu");return g.createElement("div",{className:r},g.createElement(Zr,{name:"chevron--down","aria-label":o},g.createElement("title",null,o)))};var uo,fo;co.propTypes={isOpen:h().bool.isRequired,translateWithId:h().func};const po="clear.all",mo="clear.selection",ho={[po]:"Clear all selected items",[mo]:"Clear selected item"},go=e=>ho[e],bo=({clearSelection:e,selectionCount:t,translateWithId:n=go,disabled:r,onClearSelection:o,readOnly:i})=>{const a=C(),l=y()(`${a}--list-box__selection`,{[`${a}--tag--filter`]:t,[`${a}--list-box__selection--multi`]:t}),s=t=>{t.stopPropagation(),r||i||(e(t),o&&o(t))},c=n(t?"clear.all":"clear.selection"),u=y()(`${a}--tag`,`${a}--tag--filter`,`${a}--tag--high-contrast`,{[`${a}--tag--disabled`]:r});return t?g.createElement("div",{className:u},g.createElement("span",{className:`${a}--tag__label`,title:`${t}`},t),g.createElement("div",{role:"button",tabIndex:-1,className:`${a}--tag__close-icon`,onClick:s,"aria-label":n("clear.all"),title:c,"aria-disabled":!!i||void 0},uo||(uo=g.createElement(Gr,null)))):g.createElement("div",{role:"button",className:l,tabIndex:-1,onClick:s,"aria-label":c,title:c},t,fo||(fo=g.createElement(Gr,null)))};bo.propTypes={clearSelection:h().func.isRequired,disabled:h().bool,onClearSelection:h().func,readOnly:h().bool,selectionCount:h().number,translateWithId:h().func};const vo=Object.assign(ro,{Field:oo,Menu:ao,MenuIcon:co,MenuItem:io,Selection:bo});var yo,wo;const Eo={"clear.all":"Clear all selected items","clear.selection":"Clear selected item"};function xo(e){return Eo[e]}function _o({clearSelection:e,selectionCount:t,translateWithId:n=xo,disabled:r,readOnly:o,onClearSelection:i,...a}){const l=C(),s=y()(`${l}--list-box__selection`,{[`${l}--tag--filter`]:t,[`${l}--list-box__selection--multi`]:t}),c=n(t?"clear.all":"clear.selection"),u=y()(`${l}--tag`,`${l}--tag--filter`,`${l}--tag--high-contrast`,{[`${l}--tag--disabled`]:r});function d(t){t.stopPropagation(),r||o||(e(t),i&&i(t))}return t?g.createElement("div",{className:u},g.createElement("span",{className:`${l}--tag__label`,title:t?.toString()},t),g.createElement("button",{"aria-label":c,className:`${l}--tag__close-icon`,disabled:r||o,onClick:d,tabIndex:-1,title:c,type:"button","aria-disabled":!!o||void 0},yo||(yo=g.createElement(Gr,null)))):g.createElement("button",p({},a,{"aria-label":c,className:s,disabled:r||o,onClick:d,tabIndex:-1,title:c,type:"button","aria-disabled":!!o||void 0}),wo||(wo=g.createElement(Gr,null)))}var No;_o.propTypes={clearSelection:h().func.isRequired,disabled:h().bool,readOnly:h().bool,onClearSelection:h().func,onClick:h().func,onMouseUp:h().func,onKeyDown:h().func,selectionCount:h().number,translateWithId:h().func};const Co="close.menu",$o="open.menu",To={[Co]:"Close",[$o]:"Open"},Io=e=>To[e],Oo=g.forwardRef((({isOpen:e,translateWithId:t=Io,...n},r)=>{const o=C(),i=y()({[`${o}--list-box__menu-icon`]:!0,[`${o}--list-box__menu-icon--open`]:e}),a=t(e?"close.menu":"open.menu");return g.createElement("button",p({},n,{"aria-label":a,title:a,className:i,type:"button",tabIndex:-1,ref:r}),No||(No=g.createElement(Zr,null)))}));Oo.propTypes={isOpen:h().bool.isRequired,translateWithId:h().func};const Ro=(...e)=>t=>{e.forEach((e=>{e&&("function"==typeof e?e(t):"object"==typeof e&&"current"in e&&(e.current=t))}))},So=e=>"string"==typeof e?e:"number"==typeof e?`${e}`:e&&"object"==typeof e&&"label"in e&&"string"==typeof e.label?e.label:"",{InputBlur:ko,InputKeyDownEnter:Ao,FunctionToggleMenu:Lo,ToggleButtonClick:Mo,ItemMouseMove:Do,InputKeyDownArrowUp:Bo,InputKeyDownArrowDown:Po,MenuMouseLeave:Vo,ItemClick:zo,FunctionSelectItem:Fo}=jr.stateChangeTypes,Ho=()=>!0,jo=({item:e,inputValue:t})=>{if(null===t||""===t)return!0;const n=e.toLowerCase(),r=t.toLowerCase();return n.startsWith(r)},qo=({initialSelectedItem:e,itemToString:t,selectedItem:n,prevSelectedItem:r})=>null!=n?t(n):void 0===r&&null!=e?t(e):"",Ko=(0,g.forwardRef)(((e,t)=>{const n=(0,g.useRef)(0),r=(0,g.useRef)(null),{"aria-label":o="Choose an item",ariaLabel:i,autoAlign:a=!1,className:l,decorator:s,direction:c="bottom",disabled:u=!1,downshiftActions:d,downshiftProps:f,helperText:m,id:h,initialSelectedItem:b,invalid:v,invalidText:w,items:E,itemToElement:x=null,itemToString:_=So,light:N,onChange:$,onInputChange:T,onToggleClick:I,placeholder:O,readOnly:R,selectedItem:S,shouldFilterItem:k=Ho,size:A,titleText:L,translateWithId:M,typeahead:D=!1,warn:B,warnText:P,allowCustomValue:V=!1,slug:z,inputProps:F,...H}=e,j=ut("enable-v12-dynamic-floating-styles")||a,{refs:q,floatingStyles:K,middlewareData:W}=at(j?{placement:c,strategy:"fixed",middleware:a?[Ge(),Xe()]:void 0,whileElementsMounted:Be}:{}),U=q?.reference?.current?.clientWidth;(0,g.useEffect)((()=>{if(j){const e={...K,visibility:W.hide?.referenceHidden?"hidden":"visible"};Object.keys(e).forEach((t=>{q.floating.current&&(q.floating.current.style[t]=e[t])})),U&&q.floating.current&&(q.floating.current.style.width=U+"px")}}),[j,K,q.floating,U]);const[Z,G]=(0,g.useState)(qo({initialSelectedItem:b,itemToString:_,selectedItem:S})),[X,Y]=(0,g.useState)("");(0,g.useEffect)((()=>{if(D){if(Z.length>=n.current)if(Z){const e=E.filter((e=>jo({item:_(e),inputValue:Z})));if(e.length>0){const t=_(e[0]);Y(t.slice(Z.length))}else Y("")}else Y("");else Y("");n.current=Z.length}}),[D,Z,E,_,jo]);const J=(0,g.useRef)(!1),[Q,ee]=(0,g.useState)(!1),te=C(),{isFluid:ne}=(0,g.useContext)(eo),re=(0,g.useRef)(null),oe=Mt(),[ie,ae]=(0,g.useState)(!1),le=(0,g.useRef)(Z),se=(0,g.useRef)(S);(0,g.useEffect)((()=>{J.current=Q,Q&&ee(!1)}),[Q]),(0,g.useEffect)((()=>{if(se.current!==S){const e=qo({initialSelectedItem:b,itemToString:_,selectedItem:S,prevSelectedItem:se.current});Z!==e&&(G(e),$({selectedItem:S,inputValue:e})),se.current=S}}),[S]);const ce=(e,t,n)=>e.filter((e=>D?jo({item:t(e),inputValue:n}):k?k({item:e,itemToString:t,inputValue:n}):Ho()));(0,g.useEffect)((()=>{le.current!==Z&&(le.current=Z,T&&T(Z))}),[Z]);const ue=()=>{re?.current&&re.current.focus()},de=e=>ce(E,_,e||null),fe=t=>(({items:e,itemToString:t=So},n)=>{if(!n)return-1;const r=n.toLowerCase();for(let n=0;n<e.length;n++){const o=t(e[n]).toLowerCase();if(!e[n].disabled&&-1!==o.indexOf(r))return n}return-1})({...e,items:de(t)},t),pe=(0,g.useCallback)(((e,t)=>{const{type:n,changes:r}=t,{highlightedIndex:o}=r;switch(n){case ko:if(V&&-1===o){const{inputValue:t}=e;return r.selectedItem=t,$&&$({selectedItem:t,inputValue:t}),r}if(e.inputValue&&-1===o&&r.selectedItem)return{...r,inputValue:_(r.selectedItem)};if(!V){const t=e.inputValue??"";if(!t||!E.some((e=>_(e)===t))){const t=null!==e.selectedItem?_(e.selectedItem):"";return{...r,inputValue:t}}}return r;case Ao:if(!V)if(-1!==e.highlightedIndex){const t=ce(E,_,Z)[e.highlightedIndex];if(t&&!t.disabled)return{...r,selectedItem:t,inputValue:_(t)}}else{const t=fe(Z);if(-1!==t){const e=E[t];if(e&&!e.disabled)return{...r,selectedItem:e,inputValue:_(e)}}if(null!==e.selectedItem)return{...r,selectedItem:null,inputValue:Z}}return{...r,isOpen:!0};case Lo:case Mo:if(e.isOpen&&!r.isOpen&&!V){const t=e.inputValue??"";if(!t||!E.some((e=>_(e)===t))){const t=null!==e.selectedItem?_(e.selectedItem):"";return{...r,inputValue:t}}}return r;case Vo:return{...r,highlightedIndex:e.highlightedIndex};case Bo:case Po:return-1===o?{...r,highlightedIndex:0}:r;case Do:return{...r,highlightedIndex:e.highlightedIndex};default:return r}}),[V,Z,_,E,$]),me=!v&&B,he=y()(`${te}--combo-box`,{[`${te}--combo-box--invalid--focused`]:v&&ie,[`${te}--list-box--up`]:"top"===c,[`${te}--combo-box--warning`]:me,[`${te}--combo-box--readonly`]:R,[`${te}--autoalign`]:j}),ge=y()(`${te}--label`,{[`${te}--label--disabled`]:u}),be=`combobox-helper-text-${oe}`,ve=`combobox-warn-text-${oe}`,ye=`combobox-invalid-text-${oe}`,we=y()(`${te}--form__helper-text`,{[`${te}--form__helper-text--disabled`]:u}),Ee=y()(`${te}--list-box__wrapper`,[l,{[`${te}--list-box__wrapper--fluid--invalid`]:ne&&v,[`${te}--list-box__wrapper--slug`]:z,[`${te}--list-box__wrapper--decorator`]:s}]),xe=y()(`${te}--text-input`,{[`${te}--text-input--empty`]:!Z,[`${te}--combo-box--input--focus`]:ie}),_e=x,Ne=z??s,Ce=In(Ne,Tn)?(0,g.cloneElement)(Ne,{size:"mini"}):null,{getInputProps:$e,getItemProps:Te,getLabelProps:Ie,getMenuProps:Oe,getToggleButtonProps:Re,isOpen:Se,highlightedIndex:ke,selectedItem:Ae,closeMenu:Le,openMenu:Me,reset:De,selectItem:Pe,setHighlightedIndex:Ve,setInputValue:ze,toggleMenu:Fe}=jr({items:ce(E,_,Z),inputValue:Z,itemToString:e=>_(e),onInputValueChange({inputValue:e}){const t=e||"";G(t),Ve(fe(t))},onHighlightedIndexChange:({highlightedIndex:e})=>{if(e>-1&&void 0!==typeof window){const t=document.querySelectorAll(`li.${te}--list-box__menu-item[role="option"]`)[e];t&&t.scrollIntoView({behavior:"smooth",block:"nearest"})}},initialSelectedItem:b,inputId:h,stateReducer:pe,isItemDisabled:(e,t)=>e?.disabled,...f,onStateChange:({type:e,selectedItem:t})=>{f?.onStateChange?.({type:e,selectedItem:t}),J.current||e!==zo&&e!==Fo&&e!==Ao||void 0===t||Yr()(S,t)||$({selectedItem:t})}});(0,g.useEffect)((()=>{d&&(d.current={closeMenu:Le,openMenu:Me,reset:De,selectItem:Pe,setHighlightedIndex:Ve,setInputValue:ze,toggleMenu:Fe})}),[Le,Me,De,Pe,Ve,ze,Fe]);const He=Re({disabled:u||R,onClick:(e=>t=>{if(I&&I(t),R)return t.preventDownshiftDefault=!0,void t?.persist?.();t.target===re.current&&e&&(t.preventDownshiftDefault=!0,t?.persist?.())})(Se),onMouseUp(e){Se&&e.stopPropagation()}}),je=e=>{ae("focus"===e.type),r.current?.value||"blur"!==e.type||Pe(null)},qe=R?{onKeyDown:e=>{"Tab"!==e.key&&e.preventDefault()},onClick:e=>{e.preventDefault(),e.currentTarget.focus()}}:{},Ke=v&&w&&ye||B&&P&&ve||m&&!ne&&be||void 0,We=(0,g.useMemo)((()=>Oe({ref:j?q.setFloating:null})),[j,i,o,Oe,q.setFloating]);return(0,g.useEffect)((()=>{if(re.current&&r.current&&X){const e=Z.length,t=e+X.length;r.current.value=Z+X,r.current.setSelectionRange(e,t)}}),[Z,X]),g.createElement("div",{className:Ee},L&&g.createElement(Xt,p({as:"label",className:ge},Ie()),L),g.createElement(vo,{onFocus:je,onBlur:je,className:he,disabled:u,invalid:v,invalidText:w,invalidTextId:ye,isOpen:Se,light:N,size:A,warn:B,ref:j?q.setReference:null,warnText:P,warnTextId:ve},g.createElement("div",{className:`${te}--list-box__field`},g.createElement("input",p({disabled:u,className:xe,type:"text",tabIndex:0,"aria-haspopup":"listbox",title:re?.current?.value},$e({"aria-label":L?void 0:i||o,"aria-controls":Se?void 0:We.id,placeholder:O,value:Z,...F,onChange:e=>{const t=e.target.value;G(t),ze(t)},ref:Ro(re,t,r),onKeyDown:e=>{if($t(e,vt)&&e.stopPropagation(),!$t(e,gt)||Z&&!V||(Fe(),-1!==ke&&Pe(ce(E,_,Z)[ke]),V&&Se&&Z&&-1===ke&&$({selectedItem:null,inputValue:Z}),e.preventDownshiftDefault=!0,e?.persist?.()),$t(e,bt)&&Z&&e.target===re.current&&Se&&(Fe(),e.preventDownshiftDefault=!0,e?.persist?.()),$t(e,wt)&&"Numpad7"!==e.code&&e.target.setSelectionRange(0,0),$t(e,yt)&&"Numpad1"!==e.code&&e.target.setSelectionRange(e.target.value.length,e.target.value.length),e.altKey&&"ArrowDown"==e.key&&(e.preventDownshiftDefault=!0,Se||Fe()),e.altKey&&"ArrowUp"==e.key&&(e.preventDownshiftDefault=!0,Se&&Fe()),Z||-1!=ke||"Enter"!=e.key||(Se||Fe(),Pe(null),e.preventDownshiftDefault=!0,"false"===e.currentTarget.ariaExpanded&&Me()),D&&"Tab"===e.key){const e=E.find((e=>_(e).toLowerCase().startsWith(Z.toLowerCase())));if(e){const t=_(e);ze(t),Pe(e)}}}}),H,qe,{readOnly:R,"aria-describedby":Ke})),v&&g.createElement(fn,{className:`${te}--list-box__invalid-icon`}),me&&g.createElement(dn,{className:`${te}--list-box__invalid-icon ${te}--list-box__invalid-icon--warning`}),Z&&g.createElement(_o,{clearSelection:()=>{ee(!0),G(""),$({selectedItem:null}),Pe(null),ue()},translateWithId:M,disabled:u||R,onClearSelection:ue,selectionCount:0}),g.createElement(Oo,p({},He,{isOpen:Se,translateWithId:M}))),z?Ce:s?g.createElement("div",{className:`${te}--list-box__inner-wrapper--decorator`},Ce):"",g.createElement(vo.Menu,We,Se?ce(E,_,Z).map(((e,t)=>{const n=null!==e&&"object"==typeof e&&"text"in e&&x?e.text?.toString():_(e),r=Te({item:e,index:t}),o=r["aria-disabled"],{"aria-disabled":i,...a}=r;return g.createElement(vo.MenuItem,p({key:r.id,isActive:Ae===e,isHighlighted:ke===t,title:n,disabled:o},a),_e?g.createElement(_e,p({key:r.id},e)):_(e),Ae===e&&g.createElement(Wr,{className:`${te}--list-box__menu-item__selected-icon`}))})):null)),m&&!v&&!B&&!ne&&g.createElement(Xt,{as:"div",id:be,className:we},m))}));Ko.displayName="ComboBox",Ko.propTypes={allowCustomValue:h().bool,"aria-label":h().string,ariaLabel:st(h().string),autoAlign:h().bool,className:h().string,decorator:h().node,direction:h().oneOf(["top","bottom"]),disabled:h().bool,downshiftProps:h().object,downshiftActions:h().exact({current:h().any}),helperText:h().node,id:h().string.isRequired,initialSelectedItem:h().oneOfType([h().object,h().string,h().number]),invalid:h().bool,invalidText:h().node,itemToElement:h().func,itemToString:h().func,items:h().array.isRequired,light:st(h().bool),onChange:h().func.isRequired,onInputChange:h().func,onToggleClick:h().func,placeholder:h().string,readOnly:h().bool,selectedItem:h().oneOfType([h().object,h().string,h().number]),shouldFilterItem:h().func,size:Qr,slug:st(h().node),titleText:h().node,translateWithId:h().func,typeahead:h().bool,warn:h().bool,warnText:h().node,inputProps:h().object};var Wo=n(44363);const Uo=g.createContext(1),Zo=["one","two","three"],Go=[0,1,2],Xo=Go[0],Yo=Go[Go.length-1],Jo=g.forwardRef(((e,t)=>{const{as:n,className:r,children:o,level:i,withBackground:a=!1,...l}=e,s=g.useContext(Uo),c=i??s,u=C(),d=y()(`${u}--layer-${Zo[c]}`,{[`${u}--layer__with-background`]:a},r),f=((e,t,n)=>Math.min(n,Math.max(t,e)))(c+1,Xo,Yo),m=n||"div";return g.createElement(Uo.Provider,{value:f},g.createElement(m,p({ref:t},l,{className:d}),o))}));Jo.displayName="Layer",Jo.propTypes={as:h().oneOfType([h().func,h().string,h().elementType]),children:h().node,className:h().string,level:h().oneOf([0,1,2]),withBackground:h().bool};const Qo=g.forwardRef((function({buttonOnClick:e,children:t,className:n,closeClassName:r,closeIconClassName:o,closeModal:i,iconDescription:a="Close",label:l,labelClassName:s,title:c,titleClassName:u,...d},f){const m=C(),h=y()(`${m}--modal-header`,n),b=y()(`${m}--modal-header__label ${m}--type-delta`,s),v=y()(`${m}--modal-header__heading ${m}--type-beta`,u),w=y()(`${m}--modal-close`,r),E=y()(`${m}--modal-close__icon`,o);return g.createElement("div",p({className:h},d,{ref:f}),l&&g.createElement("h2",{className:b},l),c&&g.createElement("h2",{className:v},c),t,g.createElement("div",{className:`${m}--modal-close-button`},g.createElement(Kt,{className:w,label:a,onClick:function(t){i?.(t),e?.(t)},"aria-label":a,align:"left"},g.createElement(Gr,{size:20,"aria-hidden":"true",tabIndex:"-1",className:E}))))}));Qo.propTypes={buttonOnClick:h().func,children:h().node,className:h().string,closeClassName:h().string,closeIconClassName:h().string,closeModal:h().func,iconDescription:h().string,label:h().node,labelClassName:h().string,title:h().node,titleClassName:h().string};var ei=n(40771);function ti({active:e=!0,className:t,withOverlay:n=!0,small:r=!1,description:o="loading",...i}){const a=C(),l=y()(t,{[`${a}--loading`]:!0,[`${a}--loading--small`]:r,[`${a}--loading--stop`]:!e}),s=y()({[`${a}--loading-overlay`]:!0,[`${a}--loading-overlay--stop`]:!e}),c=g.createElement("div",p({},i,{"aria-atomic":"true","aria-live":e?"assertive":"off",className:l}),g.createElement("svg",{className:`${a}--loading__svg`,viewBox:"0 0 100 100"},g.createElement("title",null,o),r?g.createElement("circle",{className:`${a}--loading__background`,cx:"50%",cy:"50%",r:"42"}):null,g.createElement("circle",{className:`${a}--loading__stroke`,cx:"50%",cy:"50%",r:r?"42":"44"})));return n?g.createElement("div",{className:s},c):c}ti.propTypes={active:h().bool,className:h().string,description:h().string,id:st(h().string),small:h().bool,withOverlay:h().bool};const ni=({className:e,status:t="active",iconDescription:n,description:r,onSuccess:o,successDelay:i=1500,...a})=>{const l=C(),s=y()(`${l}--inline-loading`,e),c=(0,g.useRef)(null);(0,g.useEffect)((()=>("finished"===t&&(c.current=setTimeout((()=>{o&&o()}),i)),()=>{c.current&&(clearTimeout(c.current),c.current=null)})),[t,o,i]);const u=r&&g.createElement("div",{className:`${l}--inline-loading__text`},r),d=(()=>{let e=n||t;return"error"===t?g.createElement(ei.x,{className:`${l}--inline-loading--error`},g.createElement("title",null,e)):"finished"===t?g.createElement(Ur,{className:`${l}--inline-loading__checkmark-container`},g.createElement("title",null,e)):"active"===t?(n||(e="loading"),g.createElement(ti,{small:!0,description:e,withOverlay:!1,active:"active"===t})):"inactive"===t?(n||(e="not loading"),g.createElement("title",{className:`${l}--inline-loading__inactive-status`},e)):void 0})(),f=d&&g.createElement("div",{className:`${l}--inline-loading__animation`},d);return g.createElement("div",p({className:s},a,{"aria-live":a["aria-live"]??"assertive"}),f,u)};function ri({secondaryButtons:e,secondaryButtonText:t,secondaryClassName:n,closeModal:r,onRequestClose:o,disabled:i}){function a(e){r(e),o(e)}return Array.isArray(e)&&e.length<=2?g.createElement(g.Fragment,null,e.map((({buttonText:e,onClick:t},r)=>g.createElement(Ut,{key:`${e}-${r}`,className:n,kind:"secondary",onClick:t||a},e)))):t?g.createElement(Ut,{disabled:i,className:n,onClick:a,kind:"secondary"},t):null}ni.propTypes={className:h().string,description:h().node,iconDescription:h().string,onSuccess:h().func,status:h().oneOf(["inactive","active","finished","error"]),successDelay:h().number},ri.propTypes={closeModal:h().func,disabled:h().bool,onRequestClose:h().func,secondaryButtonText:h().string,secondaryButtons:(e,t,n)=>{if(e.secondaryButtons){if(!Array.isArray(e.secondaryButtons)||2!==e.secondaryButtons.length)return new Error(`${t} needs to be an array of two button config objects`);const r={buttonText:h().node,onClick:h().func};e[t].forEach((e=>{h().checkPropTypes(r,e,t,n)}))}return null},secondaryClassName:h().string};const oi=g.forwardRef((function({children:e,className:t,closeModal:n=pn,danger:r,inputref:o,onRequestClose:i=pn,onRequestSubmit:a=pn,primaryButtonDisabled:l,primaryButtonText:s,primaryClassName:c,secondaryButtonText:u,secondaryButtons:d,secondaryClassName:f,loadingStatus:m="inactive",loadingDescription:h,loadingIconDescription:b,onLoadingSuccess:v=pn,...w},E){const x=C(),_=y()(`${x}--modal-footer`,t,Array.isArray(d)&&2===d.length?`${x}--modal-footer--three-button`:null),N=y()(c,"inactive"!==m?`${x}--btn--loading`:null),$="inactive"!==m,T={closeModal:n,secondaryButtons:d,secondaryButtonText:u,secondaryClassName:f,onRequestClose:i,disabled:$};return g.createElement(Zt,p({className:_},w,{ref:E,"aria-busy":$}),g.createElement(ri,T),s&&g.createElement(Ut,{onClick:a,className:N,disabled:$||l,kind:r?"danger":"primary",ref:o},"inactive"===m?s:g.createElement(ni,{status:m,description:h,iconDescription:b,className:`${x}--inline-loading--btn`,onSuccess:v})),e)}));oi.propTypes={children:h().node,className:h().string,closeModal:h().func,danger:h().bool,inputref:h().oneOfType([h().func,h().shape({current:h().any})]),loadingDescription:h().string,loadingIconDescription:h().string,loadingStatus:h().oneOf(["inactive","active","finished","error"]),onLoadingSuccess:h().func,onRequestClose:h().func,onRequestSubmit:h().func,primaryButtonDisabled:h().bool,primaryButtonText:h().string,primaryClassName:h().string,secondaryButtonText:h().string,secondaryButtons:(e,t,n)=>{if(e.secondaryButtons){if(!Array.isArray(e.secondaryButtons)||2!==e.secondaryButtons.length)return new Error(`${t} needs to be an array of two button config objects`);const r={buttonText:h().node,onClick:h().func};e[t].forEach((e=>{h().checkPropTypes(r,e,t,n)}))}return null},secondaryClassName:h().string};const ii=(e,t,n)=>{e.classList.toggle(t,n)};var ai=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),li="undefined"==typeof Element,si=li?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ci=!li&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},ui=function e(t,n){var r;void 0===n&&(n=!0);var o=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},di=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if(!ui(a,!1))if("SLOT"===a.tagName){var l=a.assignedElements(),s=e(l.length?l:a.children,!0,r);r.flatten?o.push.apply(o,s):o.push({scopeParent:a,candidates:s})}else{si.call(a,ai)&&r.filter(a)&&(n||!t.includes(a))&&o.push(a);var c=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),u=!ui(c,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(c&&u){var d=e(!0===c?a.children:c.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:a,candidates:d})}else i.unshift.apply(i,a.children)}}return o},fi=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},pi=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!fi(e)?0:e.tabIndex},mi=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},hi=function(e){return"INPUT"===e.tagName},gi=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},bi=function(e,t){return!(t.disabled||ui(t)||function(e){return hi(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=si.call(e,"details>summary:first-of-type")?e.parentElement:e;if(si.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return gi(e)}else{if("function"==typeof r){for(var i=e;e;){var a=e.parentElement,l=ci(e);if(a&&!a.shadowRoot&&!0===r(a))return gi(e);e=e.assignedSlot?e.assignedSlot:a||l===e.ownerDocument?a:l.host}e=i}if(function(e){var t,n,r,o,i=e&&ci(e),a=null===(t=i)||void 0===t?void 0:t.host,l=!1;if(i&&i!==e)for(l=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!l&&a;){var s,c,u;l=!(null===(c=a=null===(s=i=ci(a))||void 0===s?void 0:s.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(a))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!si.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},vi=function(e,t){return!(function(e){return function(e){return hi(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||ci(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)}(t)||pi(t)<0||!bi(e,t))},yi=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},wi=function e(t){var n=[],r=[];return t.forEach((function(t,o){var i=!!t.scopeParent,a=i?t.scopeParent:t,l=function(e,t){var n=pi(e);return n<0&&t&&!fi(e)?0:n}(a,i),s=i?e(t.candidates):a;0===l?i?n.push.apply(n,s):n.push(a):r.push({documentOrder:o,tabIndex:l,item:t,isScope:i,content:s})})),r.sort(mi).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)};const Ei="\n a[href], area[href], input:not([disabled]):not([tabindex='-1']),\n button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']),\n textarea:not([disabled]):not([tabindex='-1']),\n iframe, object, embed, *[tabindex]:not([tabindex='-1']):not([disabled]), *[contenteditable=true]\n",xi="undefined"!=typeof Node?Node.DOCUMENT_POSITION_PRECEDING|Node.DOCUMENT_POSITION_CONTAINS:0,_i="undefined"!=typeof Node?Node.DOCUMENT_POSITION_FOLLOWING|Node.DOCUMENT_POSITION_CONTAINED_BY:0,Ni=(e,t=[])=>e instanceof Element&&"function"==typeof e.closest&&[".cds--overflow-menu-options",".cds--tooltip",".flatpickr-calendar",...t].some((t=>!!e.closest(t))),Ci=({bodyNode:e,startTrapNode:t,endTrapNode:n,currentActiveNode:r,oldActiveNode:o,selectorsFloatingMenus:i})=>{if(e&&r&&o&&!e.contains(r)&&!Ni(r,i)){const i=o.compareDocumentPosition(r);if(r===t||i&xi){const t=Array.from(e.querySelectorAll(Ei)).reverse().find((({offsetParent:e})=>Boolean(e)));t?t.focus():e!==o&&e.focus()}else if(r===n||i&_i){const t=Array.from(e.querySelectorAll(Ei)).find((({offsetParent:e})=>Boolean(e)));t?t.focus():e!==o&&e.focus()}}},$i=({containerNode:e,currentActiveNode:t,event:n})=>{if(!e)return;["blur","focusout","focusin","focus"].includes(n.type);const r=(a=e,s=(l=l||{}).getShadowRoot?di([a],l.includeContainer,{filter:vi.bind(null,l),flatten:!1,getShadowRoot:l.getShadowRoot,shadowRootFilter:yi}):function(e,t,n){if(ui(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(ai));return t&&si.call(e,ai)&&r.unshift(e),r.filter(n)}(a,l.includeContainer,vi.bind(null,l)),wi(s)),o=r[0],i=r[r.length-1];var a,l,s;t!==i||n.shiftKey||(n.preventDefault(),o.focus()),t===o&&n.shiftKey&&(n.preventDefault(),i.focus())},Ti=e=>(t,...n)=>{for(const r of e){if(t.defaultPrevented)break;"function"==typeof r&&r(t,...n)}};function Ii(e,t=0,n={}){"object"!=typeof n&&(n={});const{signal:r,leading:o=!1,trailing:i=!0,maxWait:a}=n,l=Array(2);let s;o&&(l[0]="leading"),i&&(l[1]="trailing");let c=null;const u=function(e,t,{signal:n,edges:r}={}){let o,i=null;const a=null!=r&&r.includes("leading"),l=null==r||r.includes("trailing"),s=()=>{null!==i&&(e.apply(o,i),o=void 0,i=null)};let c=null;const u=()=>{null!=c&&clearTimeout(c),c=setTimeout((()=>{c=null,l&&s(),f()}),t)},d=()=>{null!==c&&(clearTimeout(c),c=null)},f=()=>{d(),o=void 0,i=null},p=function(...e){if(n?.aborted)return;o=this,i=e;const t=null==c;u(),a&&t&&s()};return p.schedule=u,p.cancel=f,p.flush=()=>{d(),s()},n?.addEventListener("abort",f,{once:!0}),p}((function(...t){s=e.apply(this,t),c=null}),t,{signal:r,edges:l}),d=function(...t){if(null!=a)if(null===c)c=Date.now();else if(Date.now()-c>=a)return s=e.apply(this,t),c=Date.now(),u.cancel(),u.schedule(),s;return u.apply(this,t),s};return d.cancel=u.cancel,d.flush=()=>(u.flush(),s),d}const Oi=(0,g.createContext)({}),Ri=g.forwardRef((({children:e,className:t,focusAfterCloseRef:n,modal:r,onCancel:o=pn,onClick:i=pn,onClose:a=pn,onRequestClose:l=pn,open:s=!1,role:c,ariaLabel:u,ariaLabelledBy:d,ariaDescribedBy:f,...m},h)=>{const b=C(),v=Mt(),w=`${b}--dialog-header__heading--${v}`,E=`${b}--dialog-header__label--${v}`,x=(0,g.useRef)(null),_=h??x;(0,g.useEffect)((()=>{_.current&&(s?r?_.current.showModal():_.current.show():_.current.close())}),[r,s]),(0,g.useEffect)((()=>{if(!s&&n){const e=setTimeout((()=>{n.current?.focus()}));return()=>{clearTimeout(e)}}}),[s,n]);const N=y()(`${b}--dialog-container`),$={dialogId:v,titleId:w,subtitleId:E,isOpen:s};return(0,g.useEffect)((()=>{if(_.current&&s&&!u&&!d){const e=_.current.querySelector(`.${b}--dialog-header__heading`);e&&e.id&&_.current.setAttribute("aria-labelledby",e.id)}}),[s,u,d,b]),g.createElement(Oi.Provider,{value:$},g.createElement("dialog",p({},m,{className:y()(`${b}--dialog`,{[`${b}--dialog--modal`]:r},t),ref:_,onCancel:o,onClick:function(e){!function(e){s&&r&&e.target===_.current&&l(e)}(e),i(e)},onClose:a,role:c,"aria-label":u,"aria-labelledby":u?void 0:d||w,"aria-describedby":f}),g.createElement("div",{className:N},e)))}));Ri.displayName="Dialog",Ri.propTypes={children:h().node,className:h().string,focusAfterCloseRef:h().oneOfType([h().func,h().shape({current:h().any})]),modal:h().bool,onRequestClose:h().func,open:h().bool,role:h().oneOf(["dialog","alertdialog"]),"aria-label":h().string,"aria-labelledby":h().string,ariaDescribedBy:h().string};const Si=g.forwardRef((({children:e,...t},n)=>{const r=C();return g.createElement("div",p({className:`${r}--dialog__header`,ref:n},t),e)}));Si.displayName="DialogHeader",Si.propTypes={children:h().node};const ki=g.forwardRef((({children:e,...t},n)=>{const r=C();return g.createElement("div",p({className:`${r}--dialog__header-controls`,ref:n},t),e)}));ki.displayName="DialogControls",ki.propTypes={children:h().node};const Ai=g.forwardRef((({onClick:e,...t},n)=>{const r=C();return g.createElement(Kt,p({kind:"ghost",className:`${r}--dialog__close`,label:"Close",title:"Close","aria-label":"Close",align:"left",onClick:e,ref:n},t),g.createElement(Gr,{size:20,"aria-hidden":"true",tabIndex:-1,className:`${r}--icon__close`}))}));Ai.displayName="DialogCloseButton",Ai.propTypes={onClick:h().func};const Li=g.forwardRef((({children:e,className:t,id:n,...r},o)=>{const i=C(),{titleId:a}=(0,g.useContext)(Oi),l=n||a;return g.createElement(Xt,p({as:"h2",id:l,className:y()(`${i}--dialog-header__heading`,t),ref:o},r),e)}));Li.displayName="DialogTitle",Li.propTypes={children:h().node,className:h().string,id:h().string};const Mi=g.forwardRef((({children:e,className:t,id:n,...r},o)=>{const i=C(),{subtitleId:a}=(0,g.useContext)(Oi),l=n||a;return g.createElement(Xt,p({as:"h2",id:l,className:y()(`${i}--dialog-header__label`,t),ref:o},r),e)}));Mi.displayName="DialogSubtitle",Mi.propTypes={children:h().node,className:h().string,id:h().string};const Di=g.forwardRef((({children:e,className:t,hasScrollingContent:n,...r},o)=>{const i=C(),a=(0,g.useRef)(null),[l,s]=(0,g.useState)(!1),c=`${i}--dialog-body--${Mt()}`;x((()=>{a.current&&s(a.current.scrollHeight>a.current.clientHeight);const e=Ii((function(){a.current&&s(a.current.scrollHeight>a.current.clientHeight)}),200);return window.addEventListener("resize",e),()=>{e.cancel(),window.removeEventListener("resize",e)}}),[]);const u=y()(`${i}--dialog-content`,{[`${i}--dialog-scroll-content`]:n||l},t),d=n||l?{tabIndex:0,role:"region"}:{};return g.createElement(Jo,p({ref:e=>{"function"==typeof o?o(e):o&&(o.current=e),a.current=e},id:c,className:u},d,r),e)}));Di.displayName="DialogBody",Di.propTypes={children:h().node,className:h().string,hasScrollingContent:h().bool};const Bi=g.forwardRef((({children:e,className:t,onRequestClose:n=pn,onSecondarySubmit:r,onRequestSubmit:o=pn,primaryButtonText:i="Save",primaryButtonDisabled:a=!1,secondaryButtonText:l="Cancel",secondaryButtons:s,loadingStatus:c="inactive",loadingDescription:u,loadingIconDescription:d,onLoadingSuccess:f=pn,danger:m=!1,...h},b)=>{const v=C(),w=(0,g.useRef)(null),{isOpen:E}=(0,g.useContext)(Oi),[x,_]=(0,g.useState)(null);(0,g.useEffect)((()=>{if(m&&x){const e=requestAnimationFrame((()=>{x.focus()}));return()=>cancelAnimationFrame(e)}}),[m,x,E]);const N=y()(`${v}--dialog-footer`,t,{[`${v}--dialog-footer--three-button`]:Array.isArray(s)&&2===s.length}),$="inactive"!==c,T=y()({[`${v}--btn--loading`]:"inactive"!==c}),I=r||n;return e?g.createElement(Zt,p({className:N,ref:b},h),e):g.createElement(Zt,p({className:N,"aria-busy":$,ref:b},h),Array.isArray(s)&&s.length<=2?s.map((({buttonText:e,onClick:t},n)=>g.createElement(Ut,{key:`${e}-${n}`,autoFocus:m,kind:"secondary",ref:0===n&&m?_:void 0,onClick:t},e))):l&&g.createElement(Ut,{ref:m?_:void 0,disabled:$,kind:"secondary",autoFocus:m,onClick:I},l),g.createElement(Ut,{className:T,kind:m?"danger":"primary",disabled:$||a,onClick:o,ref:w},"inactive"===c?i:g.createElement(ni,{status:c,description:u,iconDescription:d,className:`${v}--inline-loading--btn`,onSuccess:f})))}));Bi.displayName="DialogFooter",Bi.propTypes={children:h().node,className:h().string,onRequestClose:h().func,onSecondarySubmit:h().func,onRequestSubmit:h().func,primaryButtonText:h().node,primaryButtonDisabled:h().bool,secondaryButtonText:h().node,secondaryButtons:(e,t,n)=>{if(e.secondaryButtons){if(!Array.isArray(e.secondaryButtons)||2!==e.secondaryButtons.length)return new Error(`${t} needs to be an array of two button config objects`);const r={buttonText:h().node,onClick:h().func};e[t].forEach((e=>{h().checkPropTypes(r,e,t,n)}))}return null},danger:h().bool,loadingStatus:h().oneOf(["inactive","active","finished","error"]),loadingDescription:h().string,loadingIconDescription:h().string,onLoadingSuccess:h().func};const Pi=e=>{const[t,n]=(0,g.useState)(!!e),[r,o]=(0,g.useState)(!!e);return(0,g.useEffect)((()=>{e!==r&&(n(!!e),o(!!e))}),[e,r]),(0,g.useMemo)((()=>[t,n]),[t])},Vi=({open:e,_presenceId:t,_autoEnablePresence:n=!0,children:r})=>{const o=Pi(e),[i]=o,[a,l]=((e,t)=>{const n=(0,g.useRef)(t),r=(0,g.useRef)(null),o=(0,g.useRef)(null);t||!o.current||r.current||(n.current=null),o.current=r.current;const{isPresent:i,isExiting:a}=((e,t)=>{const n=C(),[r,o]=(0,g.useState)(t?"idle":"finished"),i="active"===r;t||"idle"!==r||o("active"),t&&"idle"!==r&&o("idle");const a=(0,g.useCallback)((()=>{o("finished")}),[]);return(0,g.useLayoutEffect)((()=>{if(!e.current||!i)return;if(!("getAnimations"in e.current))return void a();const t=e.current.getAnimations({subtree:!0}).filter((e=>e instanceof CSSAnimation&&e.animationName.startsWith(`${n}--presence`)));if(!t.length)return void a();let r=!1;return Promise.all(t.map((e=>e.finished))).finally((()=>{r||a()})),()=>{r=!0}}),[e,i,n,a]),{isPresent:t||"finished"!==r,isExiting:i}})(r,e),l=(0,g.useCallback)((e=>!(!e||n.current&&n.current!==e||(n.current=e,0))),[]);return[i,(0,g.useMemo)((()=>({presenceRef:r,isPresenceExclusive:l,isExiting:a})),[r,l,a])]})(i,t),s=(0,g.useMemo)((()=>({modalState:o,autoEnablePresence:n,...l})),[o,n,l]);return a?g.createElement(zi,{value:s},r):null},zi=(0,g.createContext)(void 0),Fi=g.forwardRef((function({className:e,children:t,hasForm:n,hasScrollingContent:r,...o},i){const a=C(),l=(0,g.useRef)(null),[s,c]=(0,g.useState)(!1),u=y()({[`${a}--modal-content`]:!0,[`${a}--modal-content--with-form`]:n,[`${a}--modal-scroll-content`]:r||s},e);x((()=>{l.current&&c(l.current.scrollHeight>l.current.clientHeight);const e=Ii((function(){l.current&&c(l.current.scrollHeight>l.current.clientHeight)}),200);return window.addEventListener("resize",e),()=>{e.cancel(),window.removeEventListener("resize",e)}}),[]);const d=r||s?{tabIndex:0,role:"region"}:{};return g.createElement(Jo,p({className:u},d,o,{ref:Ro(l,i)}),t)}));var Hi;Fi.propTypes={"aria-label":(Hi=h().string,(e,t,n,...r)=>Hi(e,t,n,...r)),children:h().node,className:h().string,hasForm:h().bool,hasScrollingContent:h().bool};const ji=g.forwardRef((function({open:e,...t},n){const r=Mt(),o=ut("enable-presence"),i=Boolean((0,g.useContext)(zi)),a=o||i,l=(e=>{const t=(0,g.useContext)(zi);return t?.isPresenceExclusive(e)?t:void 0})(r);return a&&!l?g.createElement(Vi,{open:e??!1,_presenceId:r,_autoEnablePresence:i},g.createElement(qi,p({open:!0,ref:n},t))):g.createElement(qi,p({ref:n,open:e},t))})),qi=g.forwardRef((function({"aria-labelledby":e,"aria-label":t,children:n,className:r,containerClassName:o,danger:i,decorator:a,isFullWidth:l,onClose:s,onKeyDown:c,open:u,preventCloseOnClickOutside:d,selectorPrimaryFocus:f="[data-modal-primary-focus]",selectorsFloatingMenus:m,size:h,launcherButtonRef:b,slug:v,...w},E){const x=C(),_=(0,g.useRef)(null),N=(0,g.useRef)(null),$=(0,g.useRef)(null),T=(0,g.useRef)(null),I=(0,g.useRef)(null),O=(0,g.useContext)(zi),R=function(e){const t=g.useRef(void 0),n=g.useCallback((t=>{const n=e.map((e=>{if(null!=e){if("function"==typeof e){const n=e,r=n(t);return"function"==typeof r?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}}}));return()=>{n.forEach((e=>null==e?void 0:e()))}}),e);return g.useMemo((()=>e.every((e=>null==e))?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))}),e)}([E,O?.presenceRef]),S=ut("enable-presence")||O?.autoEnablePresence,k=u||S,A=Pi(k),[L,M]=O?.modalState??A,D=ut("enable-dialog-element"),B=ut("enable-experimental-focus-wrap-without-sentinels");function P(e){s&&!1===s(e)||M(!1)}(0,g.useEffect)((()=>{D||ii(document.body,`${x}--body--with-modal-open`,!!k)}),[k,x]),(0,g.useEffect)((()=>{if(!D)return()=>{ii(document.body,`${x}--body--with-modal-open`,!1)}}),[]);const V=y()(`${x}--modal`,{"is-visible":S||L,[`${x}--modal--enable-presence`]:O?.autoEnablePresence,[`${x}--modal--danger`]:i,[`${x}--modal--slug`]:v,[`${x}--modal--decorator`]:a},r),z=y()(`${x}--modal-container`,h&&`${x}--modal-container--${h}`,l&&`${x}--modal-container--full-width`,o);let F;const H=g.Children.toArray(n).map((e=>{switch(!0){case(0,Wo.isElement)(e)&&e.type===g.createElement(Qo).type:{const t=e;return F=t.props.label,g.cloneElement(t,{closeModal:P})}case(0,Wo.isElement)(e)&&e.type===g.createElement(oi).type:{const t=e;return g.cloneElement(t,{closeModal:P,inputref:N,danger:i})}default:return e}})),j=!g.Children.toArray(H).some((e=>In(e,oi)));(0,g.useEffect)((()=>{if(!k)return;const e=e=>{$t(e,bt)&&(e.preventDefault(),e.stopPropagation(),P(e))};return document.addEventListener("keydown",e,!0),()=>{document.removeEventListener("keydown",e,!0)}}),[k]),(0,g.useEffect)((()=>{D||S||k||!b||setTimeout((()=>{b.current?.focus()}))}),[D,S,k,b]),(0,g.useEffect)((()=>{const e=b?.current;return()=>{S&&e&&setTimeout((()=>{e.focus()}))}}),[S,b]),(0,g.useEffect)((()=>{if(!D){const e=e=>{const t=e||_.current;return(t?t.querySelector(i?`.${x}--btn--secondary`:f):null)||N&&N.current};k&&L&&(t=>{const n=e(t),r=t.querySelector(`.${x}--modal-close`);n?n.focus():!n&&r&&r?.focus()})(_.current)}}),[k,f,L]);const q=v??a,K=In(q,Tn)?(0,g.cloneElement)(q,{size:"sm"}):null,W=D?g.createElement(Ri,{open:k,focusAfterCloseRef:b,modal:!0,className:z,"aria-label":t||F,"aria-labelledby":e,"data-exiting":O?.isExiting||void 0},g.createElement("div",{ref:_,className:`${x}--modal-container-body`},v?K:a?g.createElement("div",{className:`${x}--modal--inner__decorator`},K):"",H)):g.createElement("div",{className:z,role:"dialog","aria-modal":"true","aria-label":t||F,"aria-labelledby":e},!B&&g.createElement("button",{type:"button",ref:$,className:`${x}--visually-hidden`},"Focus sentinel"),g.createElement("div",{ref:_,className:`${x}--modal-container-body`},v?K:a?g.createElement("div",{className:`${x}--modal--inner__decorator`},K):"",H),!B&&g.createElement("button",{type:"button",ref:T,className:`${x}--visually-hidden`},"Focus sentinel"));return g.createElement(Jo,p({},w,{level:0,role:"presentation",ref:R,"aria-hidden":!k,onBlur:function({target:e,relatedTarget:t}){if(!D&&!B&&k&&t&&e&&_.current){const{current:n}=_,{current:r}=$,{current:o}=T;Ci({bodyNode:n,startTrapNode:r,endTrapNode:o,currentActiveNode:t,oldActiveNode:e,selectorsFloatingMenus:m?.filter(Boolean)})}const n=document.querySelector(`.${x}--modal-content`);n&&n.classList.contains(`${x}--modal-scroll-content`)&&t&&n.contains(t)&&t.scrollIntoView({block:"center"})},onClick:Ti([w?.onClick,function(e){const{target:t}=e,n=I.current;e.stopPropagation(),(j&&!d||!j&&!1===d)&&t instanceof Node&&!Ni(t,m)&&_.current&&!_.current.contains(t)&&!_.current.contains(n)&&P(e)}]),onMouseDown:Ti([w?.onMouseDown,function(e){const t=e.target;I.current=t}]),onKeyDown:function(e){D||B&&k&&$t(e,ht)&&_.current&&$i({containerNode:_.current,currentActiveNode:e.target,event:e}),c?.(e)},className:V,"data-exiting":O?.isExiting||void 0}),W)}));ji.propTypes={"aria-label":h().string,"aria-labelledby":h().string,children:h().node,className:h().string,containerClassName:h().string,danger:h().bool,decorator:h().node,isFullWidth:h().bool,launcherButtonRef:h().oneOfType([h().func,h().shape({current:h().any})]),onClose:h().func,onKeyDown:h().func,open:h().bool,preventCloseOnClickOutside:h().bool,selectorPrimaryFocus:h().string,selectorsFloatingMenus:h().arrayOf(h().string.isRequired),size:h().oneOf(["xs","sm","md","lg"]),slug:st(h().node)};const Ki=["xs","sm","md","lg","xl","2xl"],Wi=["condensed","normal"];g.forwardRef((({as:e="div",children:t,className:n,density:r,size:o,...i},a)=>{const l=C(),s=y()(n,`${l}--layout`,{[`${l}--layout--size-${o}`]:o&&Ki.includes(o),[`${l}--layout--density-${r}`]:r&&Wi.includes(r)});return g.createElement(e,p({},i,{ref:a,className:s}),t)})).propTypes={as:h().oneOfType([h().func,h().string,h().elementType]),children:h().node,className:h().string,density:h().oneOf(Wi),size:h().oneOf(Ki)};const Ui=g.forwardRef((({as:e="div",children:t,className:n,density:r,size:o,...i},a)=>{const l=C(),s=y()(n,Object.entries({size:o,density:r}).map((([e,t])=>({[`${l}--layout-constraint--${e}__default-${t?.default}`]:t?.default,[`${l}--layout-constraint--${e}__min-${t?.min}`]:t?.min,[`${l}--layout-constraint--${e}__max-${t?.max}`]:t?.max}))));return g.createElement(e,p({},i,{ref:a,className:s}),t)}));Ui.propTypes={as:h().oneOfType([h().func,h().string,h().elementType]),children:h().node,className:h().string,density:h().shape({min:h().oneOf(Wi),default:h().oneOf(Wi),max:h().oneOf(Wi)}),size:h().shape({min:h().oneOf(Ki),default:h().oneOf(Ki),max:h().oneOf(Ki)})};const Zi=(0,g.forwardRef)(((e,t)=>{const{align:n,children:r,className:o,disabled:i,enterDelayMs:a,index:l,leaveDelayMs:s=0,name:c,onClick:u=pn,onKeyDown:d=pn,selected:f=!1,size:m,text:h,...b}=e,v=C(),[w,E]=(0,g.useState)(!1),x=()=>{E(!0)},_=()=>{E(!1)},N=y()(o,`${v}--content-switcher-btn`,{[`${v}--content-switcher--selected`]:f}),$=y()(`${v}--content-switcher-popover__wrapper`,{[`${v}--content-switcher-popover--selected`]:f,[`${v}--content-switcher-popover--disabled`]:i});return g.createElement(Kt,p({label:h,type:"button",ref:t,role:"tab",tabIndex:f||w?0:-1,onMouseEnter:x,onMouseLeave:_,onFocus:x,onBlur:_,"aria-selected":f,"aria-label":h,wrapperClasses:$},b,{align:n,className:N,disabled:i,enterDelayMs:a,leaveDelayMs:s,onClick:e=>{e.preventDefault(),u({index:l,name:c,text:h})},onKeyDown:e=>{const t=e.key||e.which;d({index:l,name:c,text:h,key:t})},size:m}),r)}));Zi.displayName="IconSwitch",Zi.propTypes={align:h().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","right"]),children:h().node,className:h().string,disabled:h().bool,enterDelayMs:h().number,index:h().number,leaveDelayMs:h().number,name:h().oneOfType([h().string,h().number]),onClick:h().func,onKeyDown:h().func,selected:h().bool,size:h().oneOf(["sm","md","lg"]),text:h().string};const Gi=({children:e,className:t,light:n,lowContrast:r,selectedIndex:o=0,selectionMode:i="automatic",size:a,onChange:l=pn,...s})=>{const c=(0,g.useContext)(N),[u,d]=(0,g.useState)(o),f=(0,g.useRef)(o),m=(0,g.useRef)([]),h=g.Children.toArray(e);(0,g.useEffect)((()=>{f.current!==o&&(d(o),f.current=o)}),[o]);const b=e=>t=>{t&&(m.current[e]=t)},v=e=>{const t=m.current[e];t&&t.focus()},w=e=>e&&"object"==typeof e&&"key"in e,E=e=>{if(void 0===e.index)return;const{index:t}=e;if(w(e)&&Ct(e,[_t,Et])){const n=((e,t,n)=>$t(e,_t)?(t+1)%n:$t(e,Et)?(t+n-1)%n:void 0)(e.key,t,h.length);if("number"!=typeof n)return;if(v(n),"manual"!==i){const t=h[n];d(n),(0,g.isValidElement)(t)&&l({...e,index:n,name:t.props.name,text:t.props.text})}}else u===t||w(e)&&!Ct(e,[gt,vt])||(d(t),v(t),l(e))},x=g.Children.map(e,(e=>(0,g.isValidElement)(e)?e.type===Zi:null))?.every((e=>!0===e)),_=y()(`${c}--content-switcher`,t,{[`${c}--content-switcher--light`]:n,[`${c}--content-switcher--${a}`]:a,[`${c}--layout--size-${a}`]:a,[`${c}--content-switcher--icon-only`]:x,[`${c}--content-switcher--low-contrast`]:r});return g.createElement(Ui,p({size:{default:"md",min:"sm",max:"lg"}},s,{className:_,role:"tablist",onChange:void 0}),e&&g.Children.map(e,((e,t)=>(0,g.cloneElement)(e,{index:t,onClick:Ti([E,e.props.onClick]),onKeyDown:Ti([E,e.props.onKeyDown]),selected:t===u,ref:b(t),size:a}))))};function Xi({className:e,children:t,...n}){const r=C(),o=y()(`${r}--form`,e);return g.createElement("form",p({className:o},n),t)}Gi.displayName="ContentSwitcher",Gi.propTypes={children:h().node,className:h().string,light:st(h().bool),lowContrast:h().bool,onChange:h().func.isRequired,selectedIndex:h().number,selectionMode:h().oneOf(["automatic","manual"]),size:h().oneOf(["sm","md","lg"])},Xi.propTypes={children:h().node,className:h().string};const Yi=({disabled:e=!1,legendId:t,legendText:n,invalid:r=!1,children:o,className:i,message:a=!1,messageText:l="",...s})=>{const c=C(),u=y()(`${c}--fieldset`,i);return g.createElement("fieldset",p({disabled:e},r&&{"data-invalid":""},{className:u},s,{"aria-labelledby":s["aria-labelledby"]||t}),g.createElement("legend",{className:`${c}--label`,id:t||s["aria-labelledby"]},n),o,a?g.createElement("div",{className:`${c}--form__requirements`},l):null)};function Ji({className:e,children:t,id:n,...r}){const o=C(),i=y()(`${o}--label`,`${o}--label--no-margin`,e);return g.createElement(Xt,p({as:"label",htmlFor:n,className:i},r),t)}var Qi,ea,ta,na;Yi.propTypes={children:h().node,className:h().string,disabled:h().bool,invalid:h().bool,legendId:h().node,legendText:h().node.isRequired,message:h().bool,messageText:h().string},Ji.propTypes={children:h().node,className:h().string,id:h().string};const ra=g.forwardRef((function({children:e,size:t=16,...n},r){return g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},Qi||(Qi=g.createElement("path",{fill:"none",d:"M16,8a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,13.875H17.125v-8H13v2.25h1.875v5.75H12v2.25h8Z","data-icon-path":"inner-path"})),ea||(ea=g.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,6a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,16.125H12v-2.25h2.875v-5.75H13v-2.25h4.125v8H20Z"})),e)})),oa=g.forwardRef((function({children:e,size:t=16,...n},r){return g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},ta||(ta=g.createElement("path",{fill:"none",d:"M16,8a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,13.875H17.125v-8H13v2.25h1.875v5.75H12v2.25h8Z","data-icon-path":"inner-path"})),na||(na=g.createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM16,8a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,16.125H12v-2.25h2.875v-5.75H13v-2.25h4.125v8H20Z"})),e)}));function ia({children:e,className:t,onClick:n,inline:r,...o}){const i=C(),a=y()(t,{[`${i}--actionable-notification__action-button`]:!0});return g.createElement(Ut,p({className:a,kind:r?"ghost":"tertiary",onClick:n,size:"sm"},o),e)}function aa({"aria-label":e="close notification",ariaLabel:t,className:n,type:r="button",renderIcon:o=Gr,name:i,notificationType:a="toast",...l}){const s=C(),c=y()(n,{[`${s}--${a}-notification__close-button`]:a}),u=y()({[`${s}--${a}-notification__close-icon`]:a});return g.createElement("button",p({},l,{type:r,"aria-label":t||e,title:t||e,className:c}),o&&g.createElement(o,{className:u,name:i}))}ia.propTypes={children:h().node,className:h().string,inline:h().bool,onClick:h().func},aa.propTypes={"aria-label":h().string,ariaLabel:st(h().string),className:h().string,name:h().string,notificationType:h().oneOf(["toast","inline","actionable"]),renderIcon:h().oneOfType([h().func,h().object]),type:h().string};const la={error:ei.x,success:Ur,warning:fn,"warning-alt":dn,info:ra,"info-square":oa};function sa({iconDescription:e,kind:t,notificationType:n}){const r=C(),o=la[t];return o?g.createElement(o,{className:`${r}--${n}-notification__icon`,size:20},g.createElement("title",null,e)):null}function ca({"aria-label":e,children:t,title:n,subtitle:r,role:o="status",onClose:i,onCloseButtonClick:a=pn,statusIconDescription:l,className:s,kind:c="error",lowContrast:u,hideCloseButton:d=!1,...f}){const[m,h]=(0,g.useState)(!0),b=C(),v=y()(s,{[`${b}--inline-notification`]:!0,[`${b}--inline-notification--low-contrast`]:u,[`${b}--inline-notification--${c}`]:c,[`${b}--inline-notification--hide-close-button`]:d}),w=(0,g.useRef)(null),E=(0,g.useRef)(null);return m?g.createElement("div",p({ref:E},f,{role:o,className:v}),g.createElement("div",{className:`${b}--inline-notification__details`},g.createElement(sa,{notificationType:"inline",kind:c,iconDescription:l||`${c} icon`}),g.createElement("div",{ref:w,className:`${b}--inline-notification__text-wrapper`},n&&g.createElement(Xt,{as:"div",className:`${b}--inline-notification__title`},n),r&&g.createElement(Xt,{as:"div",className:`${b}--inline-notification__subtitle`},r),t)),!d&&g.createElement(aa,{notificationType:"inline",onClick:function(e){a(e),i&&!1===i(e)||h(!1)},"aria-label":e})):null}function ua({actionButtonLabel:e,"aria-label":t,ariaLabel:n,caption:r,children:o,role:i="alertdialog",onActionButtonClick:a,onClose:l,onCloseButtonClick:s=pn,statusIconDescription:c,className:u,inline:d=!1,kind:f="error",lowContrast:m,hideCloseButton:h=!1,hasFocus:b=!0,closeOnEscape:v=!0,title:w,subtitle:E,..._}){const[N,$]=(0,g.useState)(!0),T=C(),I=Mt("actionable-notification"),O=Mt("actionable-notification-subtitle"),R=y()(u,{[`${T}--actionable-notification`]:!0,[`${T}--actionable-notification--toast`]:!d,[`${T}--actionable-notification--low-contrast`]:m,[`${T}--actionable-notification--${f}`]:f,[`${T}--actionable-notification--hide-close-button`]:h}),S=(0,g.useRef)(null),k=(0,g.useRef)(null),A=(0,g.useRef)(null),L=(0,g.useRef)(null),M=ut("enable-experimental-focus-wrap-without-sentinels");function D(e){s(e),l&&!1===l(e)||$(!1)}return x((()=>{if(b&&"alertdialog"===i){const e=document.querySelector("button.cds--actionable-notification__action-button");e?.focus()}})),function(e,t,n=!0){const r=r=>{const o=e.current&&document.activeElement===e.current||e.current?.contains(document.activeElement);Ct(r,[bt])&&n&&o&&t(r)};x((()=>(null!==e.current&&document.addEventListener("keydown",r,!1),()=>document.removeEventListener("keydown",r,!1))))}(L,D,v),N?g.createElement("div",p({},_,{ref:L,role:i,className:R,"aria-labelledby":w?I:O,onBlur:M?()=>{}:function({target:e,relatedTarget:t}){if(N&&t&&e&&"alertdialog"===i){const{current:n}=S,{current:r}=k,{current:o}=A;Ci({bodyNode:n,startTrapNode:r,endTrapNode:o,currentActiveNode:t,oldActiveNode:e})}},onKeyDown:M?function(e){N&&$t(e,ht)&&L.current&&"alertdialog"===i&&$i({containerNode:L.current,currentActiveNode:e.target,event:e})}:()=>{}}),!M&&g.createElement("span",{ref:k,tabIndex:0,role:"link",className:`${T}--visually-hidden`},"Focus sentinel"),g.createElement("div",{className:`${T}--actionable-notification__details`},g.createElement(sa,{notificationType:d?"inline":"toast",kind:f,iconDescription:c||`${f} icon`}),g.createElement("div",{className:`${T}--actionable-notification__text-wrapper`},g.createElement("div",{className:`${T}--actionable-notification__content`},w&&g.createElement(Xt,{as:"div",className:`${T}--actionable-notification__title`,id:I},w),E&&g.createElement(Xt,{as:"div",className:`${T}--actionable-notification__subtitle`,id:O},E),r&&g.createElement(Xt,{as:"div",className:`${T}--actionable-notification__caption`},r),o))),g.createElement("div",{className:`${T}--actionable-notification__button-wrapper`,ref:S},e&&g.createElement(ia,{onClick:a,inline:d},e),!h&&g.createElement(aa,{"aria-label":n||t,notificationType:"actionable",onClick:D})),!M&&g.createElement("span",{ref:A,tabIndex:0,role:"link",className:`${T}--visually-hidden`},"Focus sentinel")):null}sa.propTypes={iconDescription:h().string.isRequired,kind:h().oneOf(["error","success","warning","warning-alt","info","info-square"]).isRequired,notificationType:h().oneOf(["inline","toast"]).isRequired},h().string,st(h().string),h().string,h().node,h().string,h().bool,h().oneOf(["error","info","info-square","success","warning","warning-alt"]),h().bool,h().func,h().func,h().oneOf(["alert","log","status"]),h().string,h().string,h().number,h().string,ca.propTypes={"aria-label":h().string,children:h().node,className:h().string,hideCloseButton:h().bool,kind:h().oneOf(["error","info","info-square","success","warning","warning-alt"]),lowContrast:h().bool,onClose:h().func,onCloseButtonClick:h().func,role:h().oneOf(["alert","log","status"]),statusIconDescription:h().string,subtitle:h().string,title:h().string},ua.propTypes={actionButtonLabel:h().string,"aria-label":h().string,ariaLabel:st(h().string),caption:h().string,children:h().node,className:h().string,closeOnEscape:h().bool,hasFocus:st(h().bool),hideCloseButton:h().bool,inline:h().bool,kind:h().oneOf(["error","info","info-square","success","warning","warning-alt"]),lowContrast:h().bool,onActionButtonClick:h().func,onClose:h().func,onCloseButtonClick:h().func,role:h().string,statusIconDescription:h().string,subtitle:h().node,title:h().string};const da={error:"warning",success:"info"};h().string,h().node,h().string,E(h().oneOf(["error","info","info-square","success","warning","warning-alt"]),["warning","info"],(e=>da[e])),h().bool,h().func,h().string,h().node,h().string,h().string;const fa=(0,g.forwardRef)(((e,t)=>{const{className:n,closeMenu:r,disabled:o=!1,handleOverflowMenuItemFocus:i,hasDivider:a=!1,href:l,isDelete:s=!1,index:c,itemText:u="Provide itemText",onClick:d=()=>{},onKeyDown:f=()=>{},requireTitle:m,title:h,wrapperClassName:b,...v}=e,w=C(),E=y()(`${w}--overflow-menu-options__btn`,n),x=y()(`${w}--overflow-menu-options__option`,{[`${w}--overflow-menu--divider`]:a,[`${w}--overflow-menu-options__option--danger`]:s,[`${w}--overflow-menu-options__option--disabled`]:o},b),_=l?"a":"button",N="string"!=typeof u?u:g.createElement("div",{className:`${w}--overflow-menu-options__option-content`},u);return g.createElement(Xt,{as:"li",className:x,role:"none"},g.createElement(_,p({className:E,disabled:o,href:l,onClick:function(e){d(e),r&&r()},onKeyDown:e=>{!function(e){$t(e,Nt)&&i?.({currentIndex:c,direction:1}),$t(e,xt)&&i?.({currentIndex:c,direction:-1})}(e),f(e)},role:"menuitem",ref:t,tabIndex:-1,title:m?h||u:void 0},v),N))}));var pa,ma,ha,ga;fa.propTypes={className:h().string,closeMenu:h().func,disabled:h().bool,handleOverflowMenuItemFocus:h().func,hasDivider:h().bool,href:h().string,index:h().number,isDelete:h().bool,itemText:h().node.isRequired,onBlur:h().func,onClick:h().func,onFocus:h().func,onKeyDown:h().func,onKeyUp:h().func,onMouseDown:h().func,onMouseEnter:h().func,onMouseLeave:h().func,onMouseUp:h().func,requireTitle:h().bool,title:h().string,wrapperClassName:h().string};const ba=g.forwardRef((function({children:e,size:t=16,...n},r){return"glyph"===t||"glyph"===t||"glyphpx"===t?g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 5 8",fill:"currentColor",...n},pa||(pa=g.createElement("path",{d:"M5 8L0 4 5 0z"})),e):g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},ma||(ma=g.createElement("path",{d:"M20 24L10 16 20 8z"})),e)})),va=g.forwardRef((function({children:e,size:t=16,...n},r){return"glyph"===t||"glyph"===t||"glyphpx"===t?g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 5 8",fill:"currentColor",...n},ha||(ha=g.createElement("path",{d:"M0 0L5 4 0 8z"})),e):g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},ga||(ga=g.createElement("path",{d:"M12 8L22 16 12 24z"})),e)})),ya=g.forwardRef((({className:e,decorator:t,id:n,inline:r=!1,labelText:o="Select",disabled:i=!1,children:a,noLabel:l=!1,hideLabel:s=!1,invalid:c=!1,invalidText:u="",helperText:d="",light:f=!1,readOnly:m,size:h,warn:b=!1,warnText:v,onChange:w,slug:E,...x},_)=>{const N=C(),{isFluid:$}=(0,g.useContext)(eo),[T,I]=(0,g.useState)(!1),O=Mt(),R=g.Children.toArray(a).filter((e=>g.isValidElement(e))),S=R.find((e=>e.props?.value===x?.defaultValue)),k=S?.props?.text||R[0]?.props?.text||"",[A,L]=(0,g.useState)(k),M=y()({[`${N}--select`]:!0,[`${N}--select--inline`]:r,[`${N}--select--light`]:f,[`${N}--select--invalid`]:c,[`${N}--select--disabled`]:i,[`${N}--select--readonly`]:m,[`${N}--select--warning`]:b,[`${N}--select--fluid--invalid`]:$&&c,[`${N}--select--fluid--focus`]:$&&T,[`${N}--select--slug`]:E,[`${N}--select--decorator`]:t}),D=y()(`${N}--label`,{[`${N}--visually-hidden`]:s,[`${N}--label--disabled`]:i}),B=y()({[`${N}--select-input`]:!0,[`${N}--select-input--${h}`]:h}),P=`${n}-error-msg`,V=c?u:b?v:void 0,z=c||b?g.createElement(Xt,{as:"div",className:`${N}--form-requirement`,id:P},V):null,F=y()(`${N}--form__helper-text`,{[`${N}--form__helper-text--disabled`]:i}),H=d?`select-helper-text-${O}`:void 0,j=d?g.createElement(Xt,{as:"div",id:H,className:F},d):null,q={};c?q["aria-describedby"]=P:r||$||(q["aria-describedby"]=j?H:void 0);const K=e=>{I("focus"===e.type)},W={onMouseDown:e=>{m&&(e.preventDefault(),e.target.focus())},onKeyDown:e=>{m&&["ArrowDown","ArrowUp"," "].includes(e.key)&&e.preventDefault()}},U=E??t,Z=In(U,Tn)?(0,g.cloneElement)(U,{size:"mini"}):null,G=g.createElement(g.Fragment,null,g.createElement("select",p({},x,q,{id:n,className:B,disabled:i||void 0,"aria-invalid":c||void 0,"aria-readonly":m||void 0,title:A,onChange:Ti([w,e=>{const t=e?.target?.options[e.target.selectedIndex];L(t?.text)}])},W,{ref:_}),a),g.createElement(Zr,{className:`${N}--select__arrow`}),c&&g.createElement(fn,{className:`${N}--select__invalid-icon`}),!c&&b&&g.createElement(dn,{className:`${N}--select__invalid-icon ${N}--select__invalid-icon--warning`}));return g.createElement("div",{className:y()(`${N}--form-item`,e)},g.createElement("div",{className:M},!l&&g.createElement(Xt,{as:"label",htmlFor:n,className:D},o),r&&g.createElement("div",{className:`${N}--select-input--inline__wrapper`},g.createElement("div",{className:`${N}--select-input__wrapper`,"data-invalid":c||null},G),z),!r&&g.createElement("div",{className:`${N}--select-input__wrapper`,"data-invalid":c||null,onFocus:K,onBlur:K},G,E?Z:t?g.createElement("div",{className:`${N}--select__inner-wrapper--decorator`},Z):"",$&&g.createElement("hr",{className:`${N}--select__divider`}),$&&z?z:null),r||$||!z?j:z))}));ya.displayName="Select",ya.propTypes={children:h().node,className:h().string,decorator:h().node,defaultValue:h().any,disabled:h().bool,helperText:h().node,hideLabel:h().bool,id:h().string.isRequired,inline:h().bool,invalid:h().bool,invalidText:h().node,labelText:h().node,light:st(h().bool),noLabel:h().bool,onChange:h().func,readOnly:h().bool,size:h().oneOf(["sm","md","lg"]),slug:st(h().node),warn:h().bool,warnText:h().node};const wa=({className:e,value:t="",disabled:n=!1,hidden:r=!1,text:o="",...i})=>{const a=C(),l=y()({[`${a}--select-option`]:!0,...e&&{[e]:e}});return g.createElement("option",p({},i,{className:l,value:t,disabled:n,hidden:r}),o)};var Ea,xa;function _a(e){return"object"==typeof e[0]&&null!==e[0]?e:e.map((e=>({text:e,value:e})))}function Na(e,t){if(t){if(e.find((e=>t===e.value)))return t}return e[0].value}wa.propTypes={className:h().string,disabled:h().bool,hidden:h().bool,text:h().string.isRequired,value:h().any.isRequired};const Ca=g.forwardRef((({backwardText:e="Previous page",className:t="",disabled:n=!1,forwardText:r="Next page",id:o,isLastPage:i=!1,itemText:a=(e,t)=>`${e}–${t} items`,itemRangeText:l=(e,t,n)=>`${e}–${t} of ${n} items`,itemsPerPageText:s="Items per page:",onChange:c,pageNumberText:u="Page Number",pageRangeText:d=(e,t)=>`of ${t} ${1===t?"page":"pages"}`,page:f=1,pageInputDisabled:m,pageSize:h,pageSizeInputDisabled:b,pageSizes:v,pageText:w=e=>`page ${e}`,pagesUnknown:E=!1,size:x="md",totalItems:_,...N},$)=>{const T=C(),I=Dt(o?.toString()),O=(0,g.useRef)(null),R=(0,g.useRef)(null),[S,k]=(0,g.useState)((()=>_a(v))),[A,L]=(0,g.useState)(v),[M,D]=(0,g.useState)(f),[B,P]=(0,g.useState)(f),[V,z]=(0,g.useState)(null),[F,H]=(0,g.useState)((()=>Na(S,h))),[j,q]=(0,g.useState)(h),K=y()({[`${T}--pagination`]:!0,[`${T}--pagination--${x}`]:x,[t]:!!t}),W=_?Math.max(Math.ceil(_/F),1):1,U=n||1===M,Z=y()({[`${T}--pagination__button`]:!0,[`${T}--pagination__button--backward`]:!0,[`${T}--pagination__button--no-index`]:U}),G=n||M===W&&!E,X=y()({[`${T}--pagination__button`]:!0,[`${T}--pagination__button--forward`]:!0,[`${T}--pagination__button--no-index`]:G}),Y=function(e){let t=1;const n=[];for(;t<=e;)n.push(g.createElement(wa,{key:t,value:t,text:String(t)})),t++;return n}(W),J={backward:O,forward:R};if((0,g.useEffect)((()=>{V&&((e=>{const t=J[e];t?.current&&!t.current.disabled&&t.current.focus()})(V),z(null))}),[V]),f!==B&&(D(f),P(f)),h!==j&&(H(Na(S,h)),q(h)),!Yr()(v,A)){const e=_a(v),t=e.find((e=>e.value===F));t||D(1),k(e),L(v)}return g.createElement("div",p({className:K,ref:$},N),g.createElement("div",{className:`${T}--pagination__left`},g.createElement("label",{id:`${T}-pagination-select-${I}-count-label`,className:`${T}--pagination__text`,htmlFor:`${T}-pagination-select-${I}`},s),g.createElement(ya,{id:`${T}-pagination-select-${I}`,className:`${T}--select__item-count`,labelText:"",hideLabel:!0,noLabel:!0,inline:!0,onChange:function(e){const t={pageSize:Number(e.target.value),page:1};D(t.page),H(t.pageSize),c&&c(t)},disabled:b||n,value:F},S.map((e=>g.createElement(wa,{key:e.value,value:e.value,text:String(e.text)})))),g.createElement("span",{className:`${T}--pagination__text ${T}--pagination__items-count`},E||!_?0===_?l(0,0,0):a(F*(M-1)+1,M*F):l(Math.min(F*(M-1)+1,_),Math.min(M*F,_),_))),g.createElement("div",{className:`${T}--pagination__right`},E?g.createElement("span",{className:`${T}--pagination__text ${T}--pagination__page-text ${T}--pagination__unknown-pages-text`},w(M)):g.createElement(g.Fragment,null,g.createElement(ya,{id:`${T}-pagination-select-${I}-right`,className:`${T}--select__page-number`,labelText:`Page of ${W} pages`,inline:!0,hideLabel:!0,onChange:function(e){const t=Number(e.target.value);t>0&&_&&t<=Math.max(Math.ceil(_/F),1)&&(D(t),c&&c({page:t,pageSize:F}))},value:M,disabled:m||n},Y),g.createElement("span",{className:`${T}--pagination__text`},d(M,W))),g.createElement("div",{className:`${T}--pagination__control-buttons`},g.createElement(Kt,{align:"top",disabled:U,kind:"ghost",className:Z,label:e,"aria-label":e,onClick:function(){const e=M-1;D(e),1===e&&z("forward"),c&&c({page:e,pageSize:F,ref:R})},ref:O},Ea||(Ea=g.createElement(ba,null))),g.createElement(Kt,{align:"top-end",disabled:G||i,kind:"ghost",className:X,label:r,"aria-label":r,onClick:function(){const e=M+1;D(e),e===W&&z("backward"),c&&c({page:e,pageSize:F,ref:O})},ref:R},xa||(xa=g.createElement(va,null))))))}));Ca.propTypes={backwardText:h().string,className:h().string,disabled:h().bool,forwardText:h().string,id:h().oneOfType([h().string,h().number]),isLastPage:h().bool,itemRangeText:h().func,itemText:h().func,itemsPerPageText:h().string,onChange:h().func,page:h().number,pageInputDisabled:h().bool,pageNumberText:h().string,pageRangeText:h().func,pageSize:h().number,pageSizeInputDisabled:h().bool,pageSizes:h().oneOfType([h().arrayOf(h().number.isRequired),h().arrayOf(h().shape({text:h().string.isRequired,value:h().number.isRequired}).isRequired)]).isRequired,pageText:h().func,pagesUnknown:h().bool,size:h().oneOf(["sm","md","lg"]),totalItems:h().number};const $a=g.forwardRef(((e,t)=>{const{className:n,decorator:r,disabled:o,hideLabel:i,id:a,labelPosition:l="right",labelText:s="",name:c,onChange:u=()=>{},value:d="",slug:f,required:m,...h}=e,b=C(),v=Mt("radio-button"),w=a||v,E=y()(`${b}--radio-button__label-text`,{[`${b}--visually-hidden`]:i}),x=y()(n,`${b}--radio-button-wrapper`,{[`${b}--radio-button-wrapper--label-${l}`]:"right"!==l,[`${b}--radio-button-wrapper--slug`]:f,[`${b}--radio-button-wrapper--decorator`]:r}),_=(0,g.useRef)(null),N=f??r,$=In(N,Tn)?(0,g.cloneElement)(N,{size:"inline"===N.props?.kind?"md":"mini"}):null;return g.createElement("div",{className:x},g.createElement("input",p({},h,{type:"radio",className:`${b}--radio-button`,onChange:function(e){u(d,c,e)},id:w,ref:Ro(_,t),disabled:o,value:d,name:c,required:m})),g.createElement("label",{htmlFor:w,className:`${b}--radio-button__label`},g.createElement("span",{className:`${b}--radio-button__appearance`}),s&&g.createElement(Xt,{className:E},s,f?$:r?g.createElement("div",{className:`${b}--radio-button-wrapper-inner--decorator`},$):"")))}));function Ta(e){const{className:t,...n}=e,r=C();return g.createElement("div",p({className:y()(`${r}--radio-button-wrapper`,t)},n),g.createElement("div",{className:`${r}--radio-button ${r}--skeleton`}),g.createElement("span",{className:`${r}--radio-button__label ${r}--skeleton`}))}$a.displayName="RadioButton",$a.propTypes={checked:h().bool,className:h().string,decorator:h().node,defaultChecked:h().bool,disabled:h().bool,hideLabel:h().bool,id:h().string,labelPosition:h().oneOf(["right","left"]),labelText:h().node.isRequired,name:h().string,onChange:h().func,onClick:h().func,required:h().bool,slug:st(h().node),value:h().oneOfType([h().string,h().number])},Ta.propTypes={className:h().string};const Ia=e=>g.createElement(Xt,p({as:"legend"},e));const Oa=g.forwardRef(((e,t)=>{const{children:n,className:r,decorator:o,defaultSelected:i,disabled:a,helperText:l,invalid:s=!1,invalidText:c,labelPosition:u="right",legendText:d,name:f,onChange:m=()=>{},orientation:h="horizontal",readOnly:b,valueSelected:v,warn:w=!1,warnText:E,slug:x,required:_,...N}=e,$=C(),[T,I]=(0,g.useState)(v??i),[O,R]=(0,g.useState)(v),S=Mt();function k(e,t,n){b||e!==T&&(I(e),m(e,f,n))}v!==O&&(I(v),R(v));const A=!b&&!s&&w,L=!s&&!a&&!w,M=y()(`${$}--form-item`,r),D=y()(`${$}--radio-button-group`,{[`${$}--radio-button-group--${h}`]:"vertical"===h,[`${$}--radio-button-group--label-${u}`]:u,[`${$}--radio-button-group--readonly`]:b,[`${$}--radio-button-group--invalid`]:!b&&s,[`${$}--radio-button-group--warning`]:A,[`${$}--radio-button-group--slug`]:x,[`${$}--radio-button-group--decorator`]:o}),B=y()(`${$}--form__helper-text`,{[`${$}--form__helper-text--disabled`]:a}),P=l?`radio-button-group-helper-text-${S}`:void 0,V=l?g.createElement("div",{id:P,className:B},l):null,z=(0,g.useRef)(null),F=x??o,H=In(F,Tn)?(0,g.cloneElement)(F,{size:"mini",kind:"default"}):null;return g.createElement("div",{className:M,ref:Ro(z,t)},g.createElement("fieldset",p({className:D,disabled:a,"data-invalid":!!s||void 0,"aria-describedby":L&&l?P:void 0},N),d&&g.createElement(Ia,{className:`${$}--label`},d,x?H:o?g.createElement("div",{className:`${$}--radio-button-group-inner--decorator`},H):""),g.Children.map(n,(e=>{if(!e)return;const t={name:f,key:e.props.value,value:e.props.value,onChange:k,checked:e.props.value===T,required:_};return!T&&e.props.checked&&(t.checked=!0),g.cloneElement(e,t)}))),g.createElement("div",{className:`${$}--radio-button__validation-msg`},!b&&s&&g.createElement(g.Fragment,null,g.createElement(fn,{className:`${$}--radio-button__invalid-icon`}),g.createElement("div",{className:`${$}--form-requirement`},c)),A&&g.createElement(g.Fragment,null,g.createElement(dn,{className:`${$}--radio-button__invalid-icon ${$}--radio-button__invalid-icon--warning`}),g.createElement("div",{className:`${$}--form-requirement`},E))),L&&V)}));var Ra,Sa;Oa.propTypes={children:h().node,className:h().string,decorator:h().node,defaultSelected:h().oneOfType([h().string,h().number]),disabled:h().bool,helperText:h().node,invalid:h().bool,invalidText:h().node,labelPosition:h().oneOf(["left","right"]),legendText:h().node,name:h().string.isRequired,onChange:h().func,orientation:h().oneOf(["horizontal","vertical"]),readOnly:h().bool,required:h().bool,slug:st(h().node),valueSelected:h().oneOfType([h().string,h().number]),warn:h().bool,warnText:h().node},Oa.displayName="RadioButtonGroup";const ka=g.forwardRef((function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},Ra||(Ra=g.createElement("path",{d:"M15,14.3L10.7,10c1.9-2.3,1.6-5.8-0.7-7.7S4.2,0.7,2.3,3S0.7,8.8,3,10.7c2,1.7,5,1.7,7,0l4.3,4.3L15,14.3z M2,6.5 C2,4,4,2,6.5,2S11,4,11,6.5S9,11,6.5,11S2,9,2,6.5z"})),e):g.createElement(un.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},Sa||(Sa=g.createElement("path",{d:"M29,27.5859l-7.5521-7.5521a11.0177,11.0177,0,1,0-1.4141,1.4141L27.5859,29ZM4,13a9,9,0,1,1,9,9A9.01,9.01,0,0,1,4,13Z"})),e)}));var Aa;const La=g.forwardRef((({autoComplete:e="off",className:t,closeButtonLabelText:n="Clear search input",defaultValue:r,disabled:o,isExpanded:i=!0,id:a,labelText:l,light:s,onChange:c=()=>{},onClear:u=()=>{},onKeyDown:d,onExpand:f,placeholder:m="Search",renderIcon:h,role:b,size:v="md",type:w="search",value:E,...x},N)=>{const $=!(!E&&!r),T=C(),{isFluid:I}=(0,g.useContext)(eo),O=(0,g.useRef)(null),R=_([N,O]),S=(0,g.useRef)(null),k=Mt("search-input"),A=a||k,L=`${A}-search`,[M,D]=(0,g.useState)($||!1),[B,P]=(0,g.useState)(E),V=y()({[`${T}--search`]:!0,[`${T}--search--sm`]:"sm"===v,[`${T}--search--md`]:"md"===v,[`${T}--search--lg`]:"lg"===v,[`${T}--search--light`]:s,[`${T}--search--disabled`]:o,[`${T}--search--fluid`]:I},t),z=y()({[`${T}--search-close`]:!0,[`${T}--search-close--hidden`]:!M||!i});function F(){if(!E&&O.current&&(O.current.value=""),O.current){const e=Object.assign({},O.current,{value:""}),t={bubbles:!1,cancelable:!1,currentTarget:O.current,defaultPrevented:!1,eventPhase:0,isDefaultPrevented:()=>!1,isPropagationStopped:()=>!1,isTrusted:!1,nativeEvent:new Event("change"),persist:pn,preventDefault:pn,stopPropagation:pn,target:e,timeStamp:0,type:"change"};c(t)}u(),D(!1),O.current?.focus()}return E!==B&&(D(!!E),P(E)),g.createElement("div",{role:"search","aria-label":m,className:V},g.createElement("div",{"aria-labelledby":f?L:void 0,role:f?"button":void 0,className:`${T}--search-magnifier`,onClick:f,onKeyDown:function(e){($t(e,gt)||$t(e,vt))&&(e.stopPropagation(),f&&f(e))},tabIndex:f&&!i?0:-1,ref:S,"aria-expanded":!(!f||!i)||!(f&&!i)&&void 0,"aria-controls":f?A:void 0},g.createElement(Ma,{icon:h})),g.createElement("label",{id:L,htmlFor:A,className:`${T}--label`},l),g.createElement("input",p({autoComplete:e,className:`${T}--search-input`,defaultValue:r,disabled:o,role:b,ref:R,id:A,onChange:Ti([c,function(e){D(""!==e.target.value)}]),onKeyDown:Ti([d,function(e){$t(e,bt)&&(e.stopPropagation(),O.current?.value?F():f&&i&&S.current?.focus())}]),placeholder:m,type:w,value:E,tabIndex:f&&!i?-1:void 0},x)),g.createElement("button",{"aria-label":n,className:z,disabled:o,onClick:F,title:n,type:"button"},Aa||(Aa=g.createElement(Gr,null))))}));function Ma({icon:e}){const t=C();return e?g.createElement(e,{className:`${t}--search-magnifier-icon`}):g.createElement(ka,{className:`${t}--search-magnifier-icon`})}La.displayName="Search",La.propTypes={autoComplete:h().string,className:h().string,closeButtonLabelText:h().string,defaultValue:h().oneOfType([h().string,h().number]),disabled:h().bool,id:h().string,isExpanded:h().bool,labelText:h().node.isRequired,light:st(h().bool),onChange:h().func,onClear:h().func,onExpand:h().func,onKeyDown:h().func,placeholder:h().string,renderIcon:h().oneOfType([h().func,h().object]),role:st(h().string),size:h().oneOf(["sm","md","lg"]),type:h().string,value:h().oneOfType([h().string,h().number])},Ma.propTypes={icon:h().oneOfType([h().func,h().object])};const Da=({className:e,...t})=>{const n=C(),r=y()(e,{[`${n}--icon--skeleton`]:!0});return g.createElement("div",p({className:r},t))};Da.propTypes={className:h().string};const Ba=g.forwardRef(((e,t)=>{const{children:n,className:r,disabled:o,index:i,name:a,onClick:l=pn,onKeyDown:s=pn,selected:c=!1,text:u,...d}=e,f=C(),m={onClick:e=>{e.preventDefault(),l?.({index:i,name:a,text:u})},onKeyDown:e=>{const t=e.key||e.which;s?.({index:i,name:a,text:u,key:t})},className:y()(r,`${f}--content-switcher-btn`,{[`${f}--content-switcher--selected`]:c}),disabled:o};return g.createElement("button",p({type:"button",ref:t,role:"tab",tabIndex:c?0:-1,"aria-selected":c},d,m),g.createElement("span",{className:`${f}--content-switcher__label`,title:u},void 0!==u?u:n))}));Ba.displayName="Switch",Ba.propTypes={children:h().node,className:h().string,disabled:h().bool,index:h().number,name:h().oneOfType([h().string,h().number]),onClick:h().func,onKeyDown:h().func,selected:h().bool,text:h().string};const Pa=({align:e="bottom",autoAlign:t,className:n,children:r,definition:o,defaultOpen:i=!1,id:a,openOnHover:l,tooltipText:s,triggerClassName:c,...u})=>{const[d,f]=(0,g.useState)(i),m=C(),h=Dt(a);return g.createElement(ft,{align:e,className:n,autoAlign:t,dropShadow:!1,highContrast:!0,onMouseLeave:()=>{f(!1)},onMouseEnter:()=>{l&&f(!0)},onFocus:()=>{f(!0)},open:d},g.createElement("button",p({},u,{className:y()(`${m}--definition-term`,c),"aria-controls":h,"aria-describedby":h,"aria-expanded":d,onBlur:()=>{f(!1)},onMouseDown:e=>{0===e.button&&f(!d)},onKeyDown:function(e){d&&$t(e,bt)&&(e.stopPropagation(),f(!1))},type:"button"}),r),g.createElement(mt,{className:`${m}--definition-tooltip`,id:h},s??o))};var Va;Pa.propTypes={align:h().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top","top-start","top-end","bottom-start","bottom-end","left-end","left-start","right-end","right-start"]),autoAlign:h().bool,children:h().node.isRequired,className:h().string,defaultOpen:h().bool,definition:h().node.isRequired,id:h().string,openOnHover:h().bool,tooltipText:st(h().node),triggerClassName:h().string};const za={red:"Red",magenta:"Magenta",purple:"Purple",blue:"Blue",cyan:"Cyan",teal:"Teal",green:"Green",gray:"Gray","cool-gray":"Cool-Gray","warm-gray":"Warm-Gray","high-contrast":"High-Contrast",outline:"Outline"},Fa=g.forwardRef((({children:e,className:t,decorator:n,id:r,type:o,filter:i,renderIcon:a,title:l="Clear filter",disabled:s,onClose:c,size:u,as:d,slug:f,...m},h)=>{const b=C(),v=(0,g.useRef)(null);i&&console.warn("The `filter` prop for Tag has been deprecated and will be removed in the next major version. Use DismissibleTag instead."),c&&console.warn("The `onClose` prop for Tag has been deprecated and will be removed in the next major version. Use DismissibleTag instead.");const w=_([h,v]),E=r||`tag-${Mt()}`,[x,N]=(0,g.useState)(!1);(0,g.useLayoutEffect)((()=>{const e=v.current?.getElementsByClassName(`${b}--tag__label`)[0];N((e=>!!e&&e?.offsetWidth<e?.scrollWidth)(e))}),[b,v]);const $=[`${b}--tag--selectable`,`${b}--tag--filter`,`${b}--tag--operational`].some((e=>t?.includes(e))),T=y()(`${b}--tag`,t,{[`${b}--tag--disabled`]:s,[`${b}--tag--filter`]:i,[`${b}--tag--${u}`]:u,[`${b}--layout--size-${u}`]:u,[`${b}--tag--${o}`]:o,[`${b}--tag--interactive`]:m.onClick&&!$&&x}),I=void 0!==o&&o in Object.keys(za)?za[o]:"",O=e=>{c&&(e.stopPropagation(),c(e))},R=f??n,S=In(R,Tn)&&!$?(0,g.cloneElement)(R,{size:"sm",kind:"inline"}):null;if(i){const t=d??"div";return g.createElement(t,p({className:T,id:E},m),a&&"sm"!==u?g.createElement("div",{className:`${b}--tag__custom-icon`},g.createElement(a,null)):"",g.createElement(Xt,{title:"string"==typeof e?e:void 0,className:`${b}--tag__label`},null!=e?e:I),S,g.createElement("button",{type:"button",className:`${b}--tag__close-icon`,onClick:O,disabled:s,"aria-label":l,title:l},Va||(Va=g.createElement(Gr,null))))}const k=d??(m.onClick||t?.includes(`${b}--tag--operational`)?"button":"div"),A=y()({[`${b}--tag__label`]:!$});return g.createElement(k,p({ref:w,disabled:s,className:T,id:E,type:"button"===k?"button":void 0},m),a&&"sm"!==u?g.createElement("div",{className:`${b}--tag__custom-icon`},g.createElement(a,null)):"",x&&!$?g.createElement(Pa,{openOnHover:!1,definition:null!=e?e:I,className:`${b}--definition--tooltip--tag`},g.createElement(Xt,{title:null!=e&&"string"==typeof e?e:I,className:A},null!=e?e:I)):g.createElement(Xt,{title:null!=e&&"string"==typeof e?e:I,className:A},null!=e?e:I),f?S:n?g.createElement("div",{className:`${b}--tag__decorator`},S):"")})),Ha=Fa;Ha.propTypes={as:h().elementType,children:h().node,className:h().string,decorator:h().node,disabled:h().bool,filter:st(h().bool),id:h().string,onClose:st(h().func),renderIcon:h().oneOfType([h().func,h().object]),size:h().oneOf(Object.keys({sm:"sm",md:"md",lg:"lg"})),slug:st(h().node),title:st(h().string),type:h().oneOf(Object.keys(za))};const ja=(e,t,n="character",r="characters")=>{if(void 0===t)return null;const o=t-e;return o<=10&&o>0?`${o} ${1===o?n:r} left.`:o<=0?`Maximum ${r} reached.`:null},qa=(0,g.forwardRef)(((e,t)=>{const{className:n,decorator:r,disabled:o=!1,id:i,labelText:a,hideLabel:l,onChange:s=pn,onClick:c=pn,onKeyDown:u=pn,invalid:d=!1,invalidText:f="",helperText:m="",light:h,placeholder:b="",enableCounter:v=!1,maxCount:w,counterMode:E="character",warn:N=!1,warnText:$="",rows:T=4,slug:I,...O}=e,R=C(),{isFluid:S}=(0,g.useContext)(eo),{defaultValue:k,value:A}=O,L=Mt(),M=(0,g.useRef)(null),D=(0,g.useRef)(null),B=(0,g.useRef)(null),P=(0,g.useRef)(null),V=(0,g.useRef)(null),z=_([t,D]);function F(){const e=(k||A||D.current?.value||"").toString();return"character"===E?e.length:e.match(/\p{L}+/gu)?.length||0}const[H,j]=(0,g.useState)(F());(0,g.useEffect)((()=>{j(F())}),[A,k,E]),x((()=>{if(O.cols&&D.current?(D.current.style.width="",D.current.style.resize="none"):D.current&&(D.current.style.width="100%"),!M.current)return;const e=new ResizeObserver((([e])=>{var t;t=e.contentRect.width,[B,P,V].forEach((e=>{e.current&&(e.current.style.maxWidth=`${t}px`,e.current.style.overflowWrap="break-word")}))}));return e.observe(M.current),()=>e&&e.disconnect()}),[O.cols,d,N]);const q={id:i,onKeyDown:e=>{if(!o&&v&&"word"===E){const t=e.which;(w&&H>=w&&32===t||w&&H>=w&&13===t)&&e.preventDefault()}!o&&u&&u(e)},onPaste:e=>{if(!o&&"word"===E&&v&&void 0!==w&&null!==D.current){const t=D.current.value.match(/\p{L}+/gu)||[],n=e.clipboardData.getData("Text").match(/\p{L}+/gu)||[];if(t.length+n.length>w){e.preventDefault();const r=t.concat(n).slice(0,w);setTimeout((()=>{j(w)}),0),D.current.value=r.join(" ")}}},onChange:e=>{if(!o){if("character"==E)e?.persist?.(),setTimeout((()=>{j(e.target?.value?.length)}),0);else if("word"==E){if(!e.target.value)return void setTimeout((()=>{j(0)}),0);if(v&&void 0!==w&&null!==D.current){const t=e.target?.value?.match(/\p{L}+/gu);t&&t.length<=w?(D.current.removeAttribute("maxLength"),setTimeout((()=>{j(t.length)}),0)):t&&t.length>w&&setTimeout((()=>{j(t.length)}),0)}}s&&s(e)}},onClick:e=>{!o&&c&&c(e)}},K=y()(`${R}--form-item`,n),W=y()(`${R}--text-area__wrapper`,{[`${R}--text-area__wrapper--cols`]:O.cols,[`${R}--text-area__wrapper--readonly`]:O.readOnly,[`${R}--text-area__wrapper--warn`]:N,[`${R}--text-area__wrapper--slug`]:I,[`${R}--text-area__wrapper--decorator`]:r}),U=y()(`${R}--label`,{[`${R}--visually-hidden`]:l&&!S,[`${R}--label--disabled`]:o}),Z=y()(`${R}--text-area`,{[`${R}--text-area--light`]:h,[`${R}--text-area--invalid`]:d,[`${R}--text-area--warn`]:N}),G=y()(`${R}--label`,{[`${R}--label--disabled`]:o,[`${R}--text-area__label-counter`]:!0}),X=y()(`${R}--form__helper-text`,{[`${R}--form__helper-text--disabled`]:o}),Y=a?g.createElement(Xt,{as:"label",htmlFor:i,className:U},a):null,J=v&&w&&("character"===E||"word"===E)?g.createElement(Xt,{as:"div",className:G},`${H}/${w}`):null,Q=m?`text-area-helper-text-${L}`:void 0,ee=m?g.createElement(Xt,{as:"div",id:Q,className:X,ref:B},m):null,te=i+"-error-msg",ne=d?g.createElement(Xt,{as:"div",role:"alert",className:`${R}--form-requirement`,id:te,ref:P},f,S&&g.createElement(fn,{className:`${R}--text-area__invalid-icon`})):null,re=i+"-warn-msg",oe=N?g.createElement(Xt,{as:"div",role:"alert",className:`${R}--form-requirement`,id:re,ref:V},$,S&&g.createElement(dn,{className:`${R}--text-area__invalid-icon ${R}--text-area__invalid-icon--warning`})):null;let ie;d?ie=te:d||N||S||!m||(ie=Q),v&&"character"==E&&(q.maxLength=w);const ae=(0,g.useRef)(null),[le,se]=(0,g.useState)(""),ce=ja(H,w,"word"===E?"word":void 0,"word"===E?"words":void 0);(0,g.useEffect)((()=>{if(ce&&ce!==le){const e=ae.current;if(e){e.textContent="";const t=setTimeout((()=>{e&&(e.textContent=ce,se(ce))}),"word"===E?2e3:1e3);return()=>{t&&clearTimeout(t)}}}}),[ce,le,E]);const ue=g.createElement("textarea",p({},O,q,{placeholder:b,"aria-readonly":!!O.readOnly,className:Z,"aria-invalid":d,"aria-describedby":ie,disabled:o,rows:T,readOnly:O.readOnly,ref:z})),de=I??r,fe=In(de,Tn)?(0,g.cloneElement)(de,{size:"mini"}):null;return g.createElement("div",{className:K},g.createElement("div",{className:`${R}--text-area__label-wrapper`},Y,J),g.createElement("div",{ref:M,className:W,"data-invalid":d||null},d&&!S&&g.createElement(fn,{className:`${R}--text-area__invalid-icon`}),N&&!d&&!S&&g.createElement(dn,{className:`${R}--text-area__invalid-icon ${R}--text-area__invalid-icon--warning`}),ue,I?fe:r?g.createElement("div",{className:`${R}--text-area__inner-wrapper--decorator`},fe):"",g.createElement("span",{className:`${R}--text-area__counter-alert`,role:"alert","aria-live":"assertive","aria-atomic":"true",ref:ae},ce),S&&g.createElement("hr",{className:`${R}--text-area__divider`}),S&&d?ne:null,S&&N&&!d?oe:null),d||N||S?null:ee,d&&!S?ne:null,!N||d||S?null:oe)}));qa.displayName="TextArea",qa.propTypes={className:h().string,cols:h().number,counterMode:h().oneOf(["character","word"]),decorator:h().node,defaultValue:h().oneOfType([h().string,h().number]),disabled:h().bool,enableCounter:h().bool,helperText:h().node,hideLabel:h().bool,id:h().string,invalid:h().bool,invalidText:h().node,labelText:h().node.isRequired,light:st(h().bool),maxCount:h().number,onChange:h().func,onClick:h().func,onKeyDown:h().func,placeholder:h().string,readOnly:h().bool,rows:h().number,slug:st(h().node),value:h().oneOfType([h().string,h().number]),warn:h().bool,warnText:h().node};const Ka=e=>({"data-invalid":!0,"aria-invalid":!0,"aria-describedby":e}),Wa=e=>({"aria-describedby":e}),Ua=e=>({"aria-describedby":e}),Za=g.forwardRef((({className:e,decorator:t,disabled:n=!1,helperText:r,hideLabel:o,id:i,inline:a=!1,invalid:l=!1,invalidText:s,labelText:c,light:u,onChange:d=()=>{},onClick:f=()=>{},placeholder:p,readOnly:m,size:h,type:b="text",warn:v=!1,warnText:w,enableCounter:E=!1,maxCount:x,slug:N,...$},T)=>{const I=C(),{defaultValue:O,value:R}=$,S=(0,g.useRef)(null),k=_([T,S]);function A(){return(O||R||S.current?.value||"").toString().length}const[L,M]=(0,g.useState)(A());(0,g.useEffect)((()=>{M(A())}),[R,O,E]);const D=(({id:e,readOnly:t,disabled:n,invalid:r,invalidText:o,warn:i,warnText:a})=>{const l=C(),s={disabled:!t&&n,invalid:!t&&r,invalidId:`${e}-error-msg`,warn:!t&&!r&&i,warnId:`${e}-warn-msg`,validation:null,icon:null,helperId:`${e}-helper-text`};return s.invalid?(s.icon=fn,s.validation=g.createElement(Xt,{as:"div",className:`${l}--form-requirement`,id:s.invalidId},o)):s.warn&&(s.icon=dn,s.validation=g.createElement(Xt,{as:"div",className:`${l}--form-requirement`,id:s.warnId},a)),s})({id:i,readOnly:m,disabled:n,invalid:l,invalidText:s,warn:v,warnText:w}),B={id:i,onChange:e=>{D.disabled||(M(e.target.value?.length),d(e))},onClick:e=>{D.disabled||f(e)},placeholder:p,type:b,ref:k,className:y()(`${I}--text-input`,{[`${I}--text-input--light`]:u,[`${I}--text-input--invalid`]:D.invalid,[`${I}--text-input--warning`]:D.warn,[`${I}--text-input--${h}`]:h,[`${I}--layout--size-${h}`]:h}),title:p,disabled:D.disabled,readOnly:m,"aria-describedby":r&&D.helperId,...$};E&&(B.maxLength=x);const P=y()([y()(`${I}--form-item`,e)],`${I}--text-input-wrapper`,{[`${I}--text-input-wrapper--readonly`]:m,[`${I}--text-input-wrapper--light`]:u,[`${I}--text-input-wrapper--inline`]:a,[`${I}--text-input-wrapper--inline--invalid`]:a&&D.invalid}),V=y()(`${I}--label`,{[`${I}--visually-hidden`]:o,[`${I}--label--disabled`]:D.disabled,[`${I}--label--inline`]:a,[`${I}--label--inline--${h}`]:a&&!!h}),z=y()(`${I}--form__helper-text`,{[`${I}--form__helper-text--disabled`]:D.disabled,[`${I}--form__helper-text--inline`]:a}),F=y()(`${I}--text-input__field-outer-wrapper`,{[`${I}--text-input__field-outer-wrapper--inline`]:a}),H=y()(`${I}--text-input__field-wrapper`,{[`${I}--text-input__field-wrapper--warning`]:D.warn,[`${I}--text-input__field-wrapper--slug`]:N,[`${I}--text-input__field-wrapper--decorator`]:t}),j=y()({[`${I}--text-input__invalid-icon`]:D.invalid||D.warn,[`${I}--text-input__invalid-icon--warning`]:D.warn}),q=y()(`${I}--label`,{[`${I}--label--disabled`]:n,[`${I}--text-input__label-counter`]:!0}),K=E&&x?g.createElement(Xt,{as:"div",className:q},`${L}/${x}`):null,W=c?g.createElement(Xt,{as:"label",htmlFor:i,className:V},c):null,U=g.createElement("div",{className:`${I}--text-input__label-wrapper`},W,K),Z=r?g.createElement(Xt,{as:"div",id:D.helperId,className:z},r):null,G=g.createElement("input",(({sharedTextInputProps:e,invalid:t,invalidId:n,warn:r,warnId:o,hasHelper:i,helperId:a})=>({...e,...t?Ka(n):{},...r?Wa(o):{},...i?Ua(a):{}}))({sharedTextInputProps:B,invalid:D.invalid,invalidId:D.invalidId,warn:D.warn,warnId:D.warnId})),{isFluid:X}=(0,g.useContext)(eo),Y=(0,g.useRef)(null),[J,Q]=(0,g.useState)(""),ee=ja(L,x);(0,g.useEffect)((()=>{if(ee&&ee!==J){const e=Y.current;if(e){e.textContent="";const t=setTimeout((()=>{e&&(e.textContent=ee,Q(ee))}),1e3);return()=>{t&&clearTimeout(t)}}}}),[ee,J]);const te=D.icon,ne=N??t,re=In(ne,Tn)?(0,g.cloneElement)(ne,{size:"mini"}):null;return g.createElement("div",{className:P},a?g.createElement("div",{className:`${I}--text-input__label-helper-wrapper`},U,!X&&(D.validation||Z)):U,g.createElement("div",{className:F},g.createElement("div",{className:H,"data-invalid":D.invalid||null},te&&g.createElement(te,{className:j}),G,N?re:t?g.createElement("div",{className:`${I}--text-input__field-inner-wrapper--decorator`},re):"",g.createElement("span",{className:`${I}--text-input__counter-alert`,role:"alert","aria-live":"assertive","aria-atomic":"true",ref:Y},ee),X&&g.createElement("hr",{className:`${I}--text-input__divider`}),X&&!a&&D.validation),!X&&!a&&(D.validation||Z)))}));Za.displayName="TextInput",Za.propTypes={className:h().string,decorator:h().node,defaultValue:h().oneOfType([h().string,h().number]),disabled:h().bool,enableCounter:h().bool,helperText:h().node,hideLabel:h().bool,id:h().string.isRequired,inline:h().bool,invalid:h().bool,invalidText:h().node,labelText:h().node.isRequired,light:st(h().bool),maxCount:h().number,onChange:h().func,onClick:h().func,placeholder:h().string,readOnly:h().bool,size:h().oneOf(["sm","md","lg"]),slug:st(h().node),type:h().string,value:h().oneOfType([h().string,h().number]),warn:h().bool,warnText:h().node};var Ga=n(92137);const Xa=g.forwardRef((({as:e,children:t,className:n,href:r,disabled:o=!1,inline:i=!1,visited:a=!1,renderIcon:l,size:s,target:c,...u},d)=>{const f=C(),m={className:y()(`${f}--link`,n,{[`${f}--link--disabled`]:o,[`${f}--link--inline`]:i,[`${f}--link--visited`]:a,[`${f}--link--${s}`]:s}),rel:"_blank"===c?"noopener":void 0,target:c};o?(m.role="link",m["aria-disabled"]=!0):m.href=r;const h=e??"a";return g.createElement(h,p({ref:d},m,u,{onClick:e=>{o?(e.preventDefault(),e.stopPropagation()):u.onClick&&u.onClick(e)}}),t,!i&&l&&g.createElement("div",{className:`${f}--link__icon`},g.createElement(l,null)))})),Ya=Xa;var Ja,Qa,el,tl;Ya.displayName="Link",Ya.propTypes={as:h().elementType,children:h().node,className:h().string,disabled:h().bool,href:h().string,inline:h().bool,renderIcon:h().oneOfType([h().func,h().object]),size:h().oneOf(["sm","md","lg"]),visited:h().bool};const nl=g.forwardRef((({children:e,className:t,decorator:n,light:r=!1,slug:o,hasRoundedCorners:i=!1,...a},l)=>{const s=C(),c=y()(`${s}--tile`,{[`${s}--tile--light`]:r,[`${s}--tile--slug`]:o,[`${s}--tile--slug-rounded`]:o&&i,[`${s}--tile--decorator`]:n,[`${s}--tile--decorator-rounded`]:n&&i},t);return g.createElement("div",p({className:c,ref:l},a),e,o,n&&g.createElement("div",{className:`${s}--tile--inner-decorator`},n))}));nl.displayName="Tile",nl.propTypes={children:h().node,className:h().string,decorator:h().node,hasRoundedCorners:h().bool,light:st(h().bool),slug:st(h().node)};const rl=g.forwardRef((({children:e,className:t,clicked:n=!1,decorator:r,disabled:o,href:i,light:a,onClick:l=()=>{},onKeyDown:s=()=>{},renderIcon:c,hasRoundedCorners:u,slug:d,...f},m)=>{const h=C(),b=y()(`${h}--tile`,`${h}--tile--clickable`,{[`${h}--tile--is-clicked`]:n,[`${h}--tile--light`]:a,[`${h}--tile--slug`]:d,[`${h}--tile--slug-rounded`]:d&&u,[`${h}--tile--decorator`]:r,[`${h}--tile--decorator-rounded`]:r&&u},t),[v,w]=(0,g.useState)(n),E=ut("enable-v12-tile-default-icons");E&&(c||(c=Ga.Qp),o&&(c=ei.$D));const x=y()({[`${h}--tile--icon`]:!E||E&&!o,[`${h}--tile--disabled-icon`]:E&&o});return g.createElement(Ya,p({className:b,href:i,tabIndex:i||o?void 0:0,onClick:o?void 0:function(e){e?.persist?.(),w(!v),l(e)},onKeyDown:function(e){e?.persist?.(),Ct(e,[gt,vt])&&w(!v),s(e)},ref:m,disabled:o},f),d||r?g.createElement("div",{className:`${h}--tile-content`},e):e,(!0===d||!0===r)&&g.createElement(Ga.bE,{size:"24",className:`${h}--tile--ai-label-icon`}),g.isValidElement(r)&&g.createElement("div",{className:`${h}--tile--inner-decorator`},r),c&&g.createElement(c,{className:x,"aria-hidden":"true"}))}));rl.displayName="ClickableTile",rl.propTypes={children:h().node,className:h().string,clicked:h().bool,decorator:h().oneOfType([h().bool,h().node]),disabled:h().bool,hasRoundedCorners:h().bool,href:h().string,light:st(h().bool),onClick:h().func,onKeyDown:h().func,rel:h().string,renderIcon:h().oneOfType([h().func,h().object])},g.forwardRef((({children:e,className:t,decorator:n,disabled:r,id:o,light:i,onClick:a=()=>{},onChange:l=()=>{},onKeyDown:s=()=>{},selected:c=!1,tabIndex:u=0,title:d="title",slug:f,hasRoundedCorners:m,...h},b)=>{const v=C(),w=a,E=s,[x,_]=(0,g.useState)(c);(0,g.useEffect)((()=>{_(c)}),[c]);const N=y()(`${v}--tile`,`${v}--tile--selectable`,{[`${v}--tile--is-selected`]:x,[`${v}--tile--light`]:i,[`${v}--tile--disabled`]:r,[`${v}--tile--slug`]:f,[`${v}--tile--slug-rounded`]:f&&m,[`${v}--tile--decorator`]:n,[`${v}--tile--decorator-rounded`]:n&&m},t),$=(0,g.useCallback)(((e,t)=>{_(t),l(e,t,o)}),[l,o]),T=(0,g.useRef)(null),I=f??n,O=In(I,Tn)?(0,g.cloneElement)(I,{size:"xs",ref:T}):null;return g.createElement("div",p({className:N,onClick:r?void 0:function(e){e.preventDefault(),e?.persist?.(),O&&T.current&&e.target instanceof Node&&T.current.contains(e.target)||($(e,!x),w(e))},role:"checkbox","aria-checked":x,onKeyDown:r?void 0:function(e){e?.persist?.(),Ct(e,[gt,vt])&&(e.preventDefault(),$(e,!x)),E(e)},tabIndex:r?void 0:u,ref:b,id:o,title:d},h),g.createElement("span",{className:`${v}--tile__checkmark ${v}--tile__checkmark--persistent`},x?Ja||(Ja=g.createElement(Kr,null)):Qa||(Qa=g.createElement(qr,null))),g.createElement(Xt,{as:"label",htmlFor:o,className:`${v}--tile-content`},e),f?O:n?g.createElement("div",{className:`${v}--tile--inner-decorator`},O):"")})).propTypes={children:h().node,className:h().string,decorator:h().node,disabled:h().bool,hasRoundedCorners:h().bool,id:h().string,light:st(h().bool),name:st(h().string),onChange:h().func,onClick:h().func,onKeyDown:h().func,selected:h().bool,slug:st(h().node),tabIndex:h().number,title:h().string,value:st(h().oneOfType([h().string,h().number]))};const ol=g.forwardRef((({tabIndex:e=0,className:t,children:n,decorator:r,expanded:o=!1,tileMaxHeight:i=0,tilePadding:a=0,onClick:l,onKeyUp:s,tileCollapsedIconText:c="Interact to expand Tile",tileExpandedIconText:u="Interact to collapse Tile",tileCollapsedLabel:d,tileExpandedLabel:f,light:m,slug:h,hasRoundedCorners:b,...v},w)=>{const[E,N]=(0,g.useState)(i),[$,T]=(0,g.useState)(a),[I,O]=(0,g.useState)(o),[R,S]=(0,g.useState)(i),[k,A]=(0,g.useState)(a),[L,M]=(0,g.useState)(o),[D,B]=(0,g.useState)(!0),P=(0,g.useRef)(null),V=(0,g.useRef)(null),z=(0,g.useRef)(null),F=(0,g.useRef)(null),H=(0,g.useRef)(null),j=_([w,H]),q=C();function K(){L&&F.current&&N(F.current.getBoundingClientRect()?.height),P.current&&N(P.current.getBoundingClientRect().height)}function W(e){e?.persist?.(),M(!L),K()}function U(e){e.target!==H.current&&e.target!==z.current&&Ct(e,[gt,vt])&&e.preventDefault()}o!==I&&(M(o),O(o),K()),i!==R&&(N(i),S(i)),a!==k&&(T(a),A(a));const Z=y()(`${q}--tile`,`${q}--tile--expandable`,{[`${q}--tile--is-expanded`]:L,[`${q}--tile--light`]:m},t),G=y()(`${q}--tile`,`${q}--tile--expandable`,`${q}--tile--expandable--interactive`,{[`${q}--tile--is-expanded`]:L,[`${q}--tile--light`]:m,[`${q}--tile--slug`]:h,[`${q}--tile--slug-rounded`]:h&&b,[`${q}--tile--decorator`]:r,[`${q}--tile--decorator-rounded`]:r&&b},t),X=y()(`${q}--tile__chevron`,`${q}--tile__chevron--interactive`),Y=g.Children.toArray(n);x((()=>{if(!H.current||!P.current)return;const e=window.getComputedStyle(H.current,null),{current:t}=P,{height:n}=t.getBoundingClientRect(),r=parseInt(e.getPropertyValue("padding-top"),10),o=parseInt(e.getPropertyValue("padding-bottom"),10);N(n),T(r+o)}),[E]),x((()=>{P.current&&V.current&&(Bt(V.current)||Pt(V.current)||Bt(P.current)||Pt(P.current)||h||r||B(!1))}),[h,r]),x((()=>{H.current&&(H.current.style.maxHeight=L?"":E+$+"px")}),[L,E,$]),(0,g.useEffect)((()=>{if(!P.current)return;const e=new ResizeObserver((e=>{const[t]=e;N(t.contentRect.height)}));return e.observe(P.current),()=>e.disconnect()}),[]);const J=Mt("expandable-tile-interactive"),Q=h??r,ee=In(Q,Tn)?(0,g.cloneElement)(Q,{size:"xs"}):null;return D?g.createElement("div",p({ref:j,className:G},v),g.createElement("div",{ref:F},h?ee:r?g.createElement("div",{className:`${q}--tile--inner-decorator`},ee):"",g.createElement("div",{ref:P,className:`${q}--tile-content`},Y[0]),g.createElement("button",{type:"button","aria-expanded":L,"aria-controls":J,onKeyUp:Ti([s,U]),onClick:Ti([l,W]),"aria-label":L?u:c,ref:z,className:X},el||(el=g.createElement(Zr,null))),g.createElement("div",{ref:V,className:`${q}--tile-content`,id:J},Y[1]))):g.createElement("button",p({type:"button",ref:j,className:Z,"aria-expanded":L,title:L?u:c},v,{onKeyUp:Ti([s,U]),onClick:Ti([l,W]),tabIndex:e}),g.createElement("div",{ref:F},g.createElement("div",{ref:P,className:`${q}--tile-content`},Y[0]),g.createElement("div",{className:`${q}--tile__chevron`},g.createElement("span",null,L?f:d),tl||(tl=g.createElement(Zr,null))),g.createElement("div",{ref:V,className:`${q}--tile-content`},Y[1])))}));ol.propTypes={children:h().node,className:h().string,decorator:h().node,expanded:h().bool,hasRoundedCorners:h().bool,id:h().string,light:st(h().bool),onClick:h().func,onKeyUp:h().func,slug:st(h().node),tabIndex:h().number,tileCollapsedIconText:h().string,tileCollapsedLabel:h().string,tileExpandedIconText:h().string,tileExpandedLabel:h().string},ol.displayName="ExpandableTile";const il=g.forwardRef((({children:e},t)=>{const n=C();return g.createElement("div",{ref:t,className:`${n}--tile-content__above-the-fold`},e)}));il.propTypes={children:h().node},il.displayName="TileAboveTheFoldContent";const al=g.forwardRef((({children:e},t)=>{const n=C();return g.createElement("div",{ref:t,className:`${n}--tile-content__below-the-fold`},e)}));al.propTypes={children:h().node},al.displayName="TileBelowTheFoldContent";const ll=({className:e,children:t,...n})=>{const r=C(),o=y()(`${r}--header`,e);return g.createElement("header",p({},n,{className:o}),t)};ll.propTypes={"aria-label":h().string,"aria-labelledby":h().string,className:h().string};const sl=(e=>{const t=Object.keys(e),n=e=>(t,n,r,...o)=>e(t,n,r,...o);return t.reduce(((t,r)=>({...t,[r]:n(e[r])})),{})})({"aria-label":h().string,"aria-labelledby":h().string}),cl=g.forwardRef((({"aria-label":e,"aria-labelledby":t,children:n,className:r,onClick:o,tooltipHighContrast:i=!0,tooltipDropShadow:a,isActive:l,tooltipAlignment:s,...c},u)=>{const d=C(),f=y()({[r]:!!r,[`${d}--header__action`]:!0,[`${d}--header__action--active`]:l}),m={"aria-label":e,"aria-labelledby":t};return g.createElement(Ut,p({},c,m,{className:f,onClick:o,type:"button",hasIconOnly:!0,size:"lg",kind:"ghost",iconDescription:e,tooltipPosition:"bottom",tooltipAlignment:s,tooltipDropShadow:a,tooltipHighContrast:i,ref:u}),n)}));cl.propTypes={...sl,children:h().node.isRequired,className:h().string,isActive:h().bool,onClick:h().func,tooltipAlignment:h().oneOf(["start","center","end"]),tooltipDropShadow:h().bool,tooltipHighContrast:h().bool},cl.displayName="HeaderGlobalAction";const ul=(({name:e,className:t,type:n})=>{function r({className:e,...r}){const o=C(),i=y()("function"==typeof t?t(o):t,e);return g.createElement(n,{...r,className:i||void 0})}return r.displayName=e,r.propTypes={className:h().string},r})({name:"HeaderGlobalBar",className:e=>`${e}--header__global`,type:"div"});var dl,fl,pl=n(54535);function ml({"aria-label":e,"aria-labelledby":t,className:n,renderMenuIcon:r,renderCloseIcon:o,isActive:i,isCollapsible:a,...l}){const s=C(),c=y()({..."string"==typeof n&&{[n]:!!n},[`${s}--header__action`]:!0,[`${s}--header__menu-trigger`]:!0,[`${s}--header__action--active`]:i,[`${s}--header__menu-toggle`]:!0,[`${s}--header__menu-toggle__hidden`]:!a}),u=r||dl||(dl=g.createElement(pl.GK,{size:20})),d=o||fl||(fl=g.createElement(Gr,{size:20}));return g.createElement("button",p({},l,{"aria-label":e,"aria-labelledby":t,className:c,title:e,type:"button"}),i?d:u)}ml.propTypes={...sl,className:h().string,isActive:h().bool,isCollapsible:h().bool,onClick:h().func};const hl=({element:e,as:t,isSideNavExpanded:n,...r},o)=>{const i=t??e??"a";return g.createElement(i,p({ref:o},r))},gl=g.forwardRef(hl),bl={as:h().elementType,element:st(h().elementType),isSideNavExpanded:h().bool};function vl({children:e,className:t,prefix:n="IBM",...r}){const o=C(),i=y()(`${o}--header__name`,t);return g.createElement(gl,p({},r,{className:i}),n&&g.createElement(g.Fragment,null,g.createElement("span",{className:`${o}--header__name--prefix`},n)," "),e)}gl.displayName="Link",gl.propTypes=bl,vl.propTypes={...bl,children:h().node.isRequired,className:h().string,href:h().string,prefix:h().string};const yl=["SideNavFooter","SideNavHeader","SideNavItems","SideNavMenu","SideNavLink"];function wl(e){return"".concat(e/16,"rem")}wl(320),wl(672),wl(16);var El={width:wl(1056),columns:16,margin:wl(16)};wl(1312),wl(16),wl(1584),wl(24);function xl(e){return wl(8*e)}xl(.25),xl(.5),xl(1),xl(1.5),xl(2),xl(3),xl(4),xl(5),xl(6),xl(8),xl(10),xl(12),xl(20),xl(2),xl(3),xl(4),xl(6),xl(8),xl(12),xl(20),xl(3),xl(4),xl(5),xl(6),xl(8),wl(24),wl(32),wl(40),wl(48),wl(64),wl(80);const _l=(0,g.createContext)({});function Nl({expanded:e,defaultExpanded:t=!1,isChildOfHeader:n=!0,"aria-label":r,"aria-labelledby":o,children:i,onToggle:a,className:l,href:s,isFixedNav:c=!1,isRail:u,isPersistent:d=!0,addFocusListeners:f=!0,addMouseListeners:m=!0,onOverlayClick:h,onSideNavBlur:b,enterDelayMs:v=100,...w},E){const x=C(),{current:N}=(0,g.useRef)(void 0!==e),[T,I]=Tt(t),[O,R]=Tt(t),S=N?e:T,k=(0,g.useRef)(null),A=_([k,E]),L=(e,t=!S)=>{N||I(t,v),a&&a(e,t),(N||u)&&R(t,v)},M={"aria-label":r,"aria-labelledby":o},D=y()(l,{[`${x}--side-nav`]:!0,[`${x}--side-nav--expanded`]:S||O,[`${x}--side-nav--collapsed`]:!S&&c,[`${x}--side-nav--rail`]:u,[`${x}--side-nav--ux`]:n,[`${x}--side-nav--hidden`]:!d}),B=y()({[`${x}--side-nav__overlay`]:!0,[`${x}--side-nav__overlay-active`]:S||O});let P=i;P=g.Children.map(i,(e=>{const t=N&&O||S;if((0,g.isValidElement)(e)){const n=e;return g.cloneElement(n,{...yl.includes(n.type?.displayName??n.type?.name)?{isSideNavExpanded:t}:{}})}return e}));const V={};f&&(V.onFocus=e=>{!e.currentTarget.contains(e.relatedTarget)&&u&&L(e,!0)},V.onBlur=e=>{e.currentTarget.contains(e.relatedTarget)||L(e,!1),e.currentTarget.contains(e.relatedTarget)||!S||c||b&&b()},V.onKeyDown=e=>{$t(e,bt)&&(L(e,!1),s&&(window.location.href=s))}),m&&u&&(V.onMouseEnter=()=>{L(!0,!0)},V.onMouseLeave=()=>{I(!1),R(!1),L(!1,!1)},V.onClick=()=>{I(!0),R(!0),L(!0,!0)}),$("keydown",(e=>{const t=document.activeElement;$t(e,ht)&&S&&!c&&k.current&&t?.classList.contains(`${x}--header__menu-toggle`)&&!t.closest("nav")&&k.current.focus()}));const z=((e,t=!1)=>{const[n,r]=(0,g.useState)(t);return(0,g.useEffect)((()=>{const t=e=>{r(e.matches)},n=window.matchMedia(e);return n.addEventListener("change",t),r(n.matches),()=>{n.removeEventListener("change",t)}}),[e]),n})(`(min-width: ${El.width})`);return g.createElement(_l.Provider,{value:{isRail:u}},c?null:g.createElement("div",{className:B,onClick:h}),g.createElement("nav",p({tabIndex:-1,ref:A,className:`${x}--side-nav__navigation ${D}`,inert:u?void 0:!(S||z)},M,V,w),P))}const Cl=g.forwardRef(Nl);Cl.displayName="SideNav",Cl.propTypes={...sl,addFocusListeners:h().bool,addMouseListeners:h().bool,className:h().string,defaultExpanded:h().bool,enterDelayMs:h().number,expanded:h().bool,href:h().string,isChildOfHeader:h().bool,isFixedNav:h().bool,isPersistent:h().bool,isRail:h().bool,onOverlayClick:h().func,onSideNavBlur:h().func,onToggle:h().func}},70159(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var l=0;l<e.length;l++){var s=[].concat(e[l]);r&&o[s[0]]||(n&&(s[2]?s[2]="".concat(n," and ").concat(s[2]):s[2]=n),t.push(s))}},t}},72996(e){"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e.exports=function(e){var n,r,o=(r=4,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(n,r)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(n,r)||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.")}()),i=o[1],a=o[3];if(!a)return i;if("function"==typeof btoa){var l=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l),c="/*# ".concat(s," */"),u=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[i].concat(u).concat([c]).join("\n")}return[i].join("\n")}},85581(e,t){"use strict";Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen");Symbol.for("react.module.reference")},44353(e,t,n){"use strict";n(85581)},2694(e,t,n){"use strict";var r=n(6925);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5556(e,t,n){e.exports=n(2694)()},6925(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},30115(e){var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var l,s,c,u;if(Array.isArray(e)){if((l=e.length)!=a.length)return!1;for(s=l;0!==s--;)if(!i(e[s],a[s]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(u=e.entries();!(s=u.next()).done;)if(!a.has(s.value[0]))return!1;for(u=e.entries();!(s=u.next()).done;)if(!i(s.value[1],a.get(s.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(u=e.entries();!(s=u.next()).done;)if(!a.has(s.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((l=e.length)!=a.length)return!1;for(s=l;0!==s--;)if(e[s]!==a[s])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof a.toString)return e.toString()===a.toString();if((l=(c=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(s=l;0!==s--;)if(!Object.prototype.hasOwnProperty.call(a,c[s]))return!1;if(t&&e instanceof Element)return!1;for(s=l;0!==s--;)if(("_owner"!==c[s]&&"__v"!==c[s]&&"__o"!==c[s]||!e.$$typeof)&&!i(e[c[s]],a[c[s]]))return!1;return!0}return e!=e&&a!=a}e.exports=function(e,t){try{return i(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},22799(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103;n&&Symbol.for("react.portal"),n&&Symbol.for("react.fragment"),n&&Symbol.for("react.strict_mode"),n&&Symbol.for("react.profiler"),n&&Symbol.for("react.provider"),n&&Symbol.for("react.context"),n&&Symbol.for("react.async_mode"),n&&Symbol.for("react.concurrent_mode"),n&&Symbol.for("react.forward_ref"),n&&Symbol.for("react.suspense"),n&&Symbol.for("react.suspense_list"),n&&Symbol.for("react.memo"),n&&Symbol.for("react.lazy"),n&&Symbol.for("react.block"),n&&Symbol.for("react.fundamental"),n&&Symbol.for("react.responder"),n&&Symbol.for("react.scope");t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}},44363(e,t,n){"use strict";e.exports=n(22799)},21020(e,t,n){"use strict";var r=n(16072),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:l.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},74848(e,t,n){"use strict";e.exports=n(21020)},85072(e){"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var i={},a=[],l=0;l<e.length;l++){var s=e[l],c=r.base?s[0]+r.base:s[0],u=i[c]||0,d="".concat(c," ").concat(u);i[c]=u+1;var f=n(d),p={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==f)t[f].references++,t[f].updater(p);else{var m=o(p,r);r.byIndex=l,t.splice(l,0,{identifier:d,updater:m,references:1})}a.push(d)}return a}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var i=r(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var l=n(i[a]);t[l].references--}for(var s=r(e,o),c=0;c<i.length;c++){var u=n(i[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}i=s}}},77659(e){"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},10540(e){"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},55056(e,t,n){"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},97825(e){"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},41113(e){"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},58493(e,t,n){"use strict";var r=n(16072),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,l=r.useLayoutEffect,s=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return l((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),a((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),s(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},19888(e,t,n){"use strict";e.exports=n(58493)},46942(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},58168(e,t,n){"use strict";function r(){return r=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},r.apply(null,arguments)}n.d(t,{A:()=>r})},14993(e,t,n){"use strict";n.d(t,{BE:()=>j,Es:()=>I,Ht:()=>J,PP:()=>P,Tn:()=>s,X3:()=>$,ZH:()=>i,aw:()=>Y,b0:()=>l,bZ:()=>p,bu:()=>L,dO:()=>C,iX:()=>Z,lK:()=>S,lg:()=>A,mF:()=>M,mf:()=>T,q9:()=>q,qm:()=>X,qv:()=>a,r9:()=>y,rL:()=>c,sb:()=>z});var r=n(16072);const o=()=>{},i=o(),a=Object,l=e=>e===i,s=e=>"function"==typeof e,c=(e,t)=>({...e,...t}),u=new WeakMap;let d=0;const f=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(a(e)!==e||r||n==RegExp)o=r?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(o=u.get(e),o)return o;if(o=++d+"~",u.set(e,o),n==Array){for(o="@",i=0;i<e.length;i++)o+=f(e[i])+",";u.set(e,o)}if(n==a){o="#";const t=a.keys(e).sort();for(;!l(i=t.pop());)l(e[i])||(o+=i+":"+f(e[i])+",");u.set(e,o)}}return o},p=new WeakMap,m={},h={},g="undefined",b=typeof window!=g,v=typeof document!=g,y=(e,t)=>{const n=p.get(e);return[()=>!l(t)&&e.get(t)||m,r=>{if(!l(t)){const o=e.get(t);t in h||(h[t]=o),n[5](t,c(o,r),o||m)}},n[6],()=>!l(t)&&t in h?h[t]:!l(t)&&e.get(t)||m]};let w=!0;const[E,x]=b&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[o,o],_={isOnline:()=>w,isVisible:()=>{const e=v&&document.visibilityState;return l(e)||"hidden"!==e}},N={initFocus:e=>(v&&document.addEventListener("visibilitychange",e),E("focus",e),()=>{v&&document.removeEventListener("visibilitychange",e),x("focus",e)}),initReconnect:e=>{const t=()=>{w=!0,e()},n=()=>{w=!1};return E("online",t),E("offline",n),()=>{x("online",t),x("offline",n)}}},C=!r.useId,$=!b||"Deno"in window,T=e=>b&&typeof window.requestAnimationFrame!=g?window.requestAnimationFrame(e):setTimeout(e,1),I=$?r.useEffect:r.useLayoutEffect,O="undefined"!=typeof navigator&&navigator.connection,R=!$&&O&&(["slow-2g","2g"].includes(O.effectiveType)||O.saveData),S=e=>{if(s(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?f(e):"",t]};let k=0;const A=()=>++k;var L={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:2,RECONNECT_EVENT:1};async function M(...e){const[t,n,r,o]=e,a=c({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{});let u=a.populateCache;const d=a.rollbackOnError;let f=a.optimisticData;const m=a.throwOnError;if(s(n)){const e=n,r=[],o=t.keys();for(const n of o)!/^\$(inf|sub)\$/.test(n)&&e(t.get(n)._k)&&r.push(n);return Promise.all(r.map(h))}return h(n);async function h(n){const[o]=S(n);if(!o)return;const[c,h]=y(t,o),[g,b,v,w]=p.get(t),E=()=>{const e=g[o];return(s(a.revalidate)?a.revalidate(c().data,n):!1!==a.revalidate)&&(delete v[o],delete w[o],e&&e[0])?e[0](2).then((()=>c().data)):c().data};if(e.length<3)return E();let x,_=r;const N=A();b[o]=[N,0];const C=!l(f),$=c(),T=$.data,I=$._c,O=l(I)?T:I;if(C&&(f=s(f)?f(O,T):f,h({data:f,_c:O})),s(_))try{_=_(O)}catch(e){x=e}if(_&&s(_.then)){if(_=await _.catch((e=>{x=e})),N!==b[o][0]){if(x)throw x;return _}x&&C&&(e=>"function"==typeof d?d(e):!1!==d)(x)&&(u=!0,h({data:O,_c:i}))}if(u&&!x)if(s(u)){const e=u(_,O);h({data:e,error:i,_c:i})}else h({data:_,error:i,_c:i});if(b[o][1]=A(),Promise.resolve(E()).then((()=>{h({_c:i})})),!x)return _;if(m)throw x}}const D=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},B=(e,t)=>{if(!p.has(e)){const n=c(N,t),r={},a=M.bind(i,e);let l=o;const s={},u=(e,t)=>{const n=s[e]||[];return s[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},d=(t,n,r)=>{e.set(t,n);const o=s[t];if(o)for(const e of o)e(n,r)},f=()=>{if(!p.has(e)&&(p.set(e,[r,{},{},{},a,d,u]),!$)){const t=n.initFocus(setTimeout.bind(i,D.bind(i,r,0))),o=n.initReconnect(setTimeout.bind(i,D.bind(i,r,1)));l=()=>{t&&t(),o&&o(),p.delete(e)}}};return f(),[e,a,f,l]}return[e,p.get(e)[4]]},[P,V]=B(new Map),z=c({onLoadingSlow:o,onSuccess:o,onError:o,onErrorRetry:(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!l(i)&&a>i||setTimeout(r,s,o)},onDiscarded:o,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:R?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:R?5e3:3e3,compare:(e,t)=>f(e)==f(t),isPaused:()=>!1,cache:P,mutate:V,fallback:{}},_),F=(e,t)=>{const n=c(e,t);if(t){const{use:r,fallback:o}=e,{use:i,fallback:a}=t;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=c(o,a))}return n},H=(0,r.createContext)({}),j=e=>{const{value:t}=e,n=(0,r.useContext)(H),o=s(t),a=(0,r.useMemo)((()=>o?t(n):t),[o,n,t]),l=(0,r.useMemo)((()=>o?a:F(n,a)),[o,n,a]),u=a&&a.provider,d=(0,r.useRef)(i);u&&!d.current&&(d.current=B(u(l.cache||P),a));const f=d.current;return f&&(l.cache=f[0],l.mutate=f[1]),I((()=>{if(f)return f[2]&&f[2](),f[3]}),[]),(0,r.createElement)(H.Provider,c(e,{value:l}))},q="$inf$",K=b&&window.__SWR_DEVTOOLS_USE__,W=K?window.__SWR_DEVTOOLS_USE__:[],U=e=>s(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],Z=()=>c(z,(0,r.useContext)(H)),G=W.concat((e=>(t,n,r)=>e(t,n&&((...e)=>{const[r]=S(t),[,,,o]=p.get(P);if(r.startsWith(q))return n(...e);const i=o[r];return l(i)?n(...e):(delete o[r],i)}),r))),X=e=>function(...t){const n=Z(),[r,o,i]=U(t),a=F(n,i);let l=e;const{use:s}=a,c=(s||[]).concat(G);for(let e=c.length;e--;)l=c[e](l);return l(r,o||a.fetcher||null,a)},Y=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},J=(e,t)=>(...n)=>{const[r,o,i]=U(n),a=(i.use||[]).concat(t);return e(r,o,{...i,use:a})};K&&(window.__SWR_DEVTOOLS_REACT__=r)},59324(e,t,n){"use strict";n.d(t,{Ay:()=>c,BE:()=>s,iX:()=>i.iX});var r=n(16072),o=n(19888),i=n(14993);const a=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),l={dedupe:!0},s=i.qv.defineProperty(i.BE,"defaultValue",{value:i.sb}),c=(0,i.qm)(((e,t,n)=>{const{cache:s,compare:c,suspense:u,fallbackData:d,revalidateOnMount:f,revalidateIfStale:p,refreshInterval:m,refreshWhenHidden:h,refreshWhenOffline:g,keepPreviousData:b}=n,[v,y,w,E]=i.bZ.get(s),[x,_]=(0,i.lK)(e),N=(0,r.useRef)(!1),C=(0,r.useRef)(!1),$=(0,r.useRef)(x),T=(0,r.useRef)(t),I=(0,r.useRef)(n),O=()=>I.current,R=()=>O().isVisible()&&O().isOnline(),[S,k,A,L]=(0,i.r9)(s,x),M=(0,r.useRef)({}).current,D=(0,i.b0)(d)?n.fallback[x]:d,B=(e,t)=>{for(const n in M){const r=n;if("data"===r){if(!c(e[r],t[r])){if(!(0,i.b0)(e[r]))return!1;if(!c(W,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},P=(0,r.useMemo)((()=>{const e=!!x&&!!t&&((0,i.b0)(f)?!O().isPaused()&&!u&&(!!(0,i.b0)(p)||p):f),n=t=>{const n=(0,i.rL)(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=S(),o=L(),a=n(r),l=r===o?a:n(o);let s=a;return[()=>{const e=n(S());return B(e,s)?(s.data=e.data,s.isLoading=e.isLoading,s.isValidating=e.isValidating,s.error=e.error,s):(s=e,e)},()=>l]}),[s,x]),V=(0,o.useSyncExternalStore)((0,r.useCallback)((e=>A(x,((t,n)=>{B(n,t)||e()}))),[s,x]),P[0],P[1]),z=!N.current,F=v[x]&&v[x].length>0,H=V.data,j=(0,i.b0)(H)?D:H,q=V.error,K=(0,r.useRef)(j),W=b?(0,i.b0)(H)?K.current:H:j,U=!(F&&!(0,i.b0)(q))&&(z&&!(0,i.b0)(f)?f:!O().isPaused()&&(u?!(0,i.b0)(j)&&p:(0,i.b0)(j)||p)),Z=!!(x&&t&&z&&U),G=(0,i.b0)(V.isValidating)?Z:V.isValidating,X=(0,i.b0)(V.isLoading)?Z:V.isLoading,Y=(0,r.useCallback)((async e=>{const t=T.current;if(!x||!t||C.current||O().isPaused())return!1;let r,o,a=!0;const l=e||{},s=!w[x]||!l.dedupe,u=()=>i.dO?!C.current&&x===$.current&&N.current:x===$.current,d={isValidating:!1,isLoading:!1},f=()=>{k(d)},p=()=>{const e=w[x];e&&e[1]===o&&delete w[x]},m={isValidating:!0};(0,i.b0)(S().data)&&(m.isLoading=!0);try{if(s&&(k(m),n.loadingTimeout&&(0,i.b0)(S().data)&&setTimeout((()=>{a&&u()&&O().onLoadingSlow(x,n)}),n.loadingTimeout),w[x]=[t(_),(0,i.lg)()]),[r,o]=w[x],r=await r,s&&setTimeout(p,n.dedupingInterval),!w[x]||w[x][1]!==o)return s&&u()&&O().onDiscarded(x),!1;d.error=i.ZH;const e=y[x];if(!(0,i.b0)(e)&&(o<=e[0]||o<=e[1]||0===e[1]))return f(),s&&u()&&O().onDiscarded(x),!1;const l=S().data;d.data=c(l,r)?l:r,s&&u()&&O().onSuccess(r,x,n)}catch(e){p();const t=O(),{shouldRetryOnError:n}=t;t.isPaused()||(d.error=e,s&&u()&&(t.onError(e,x,t),(!0===n||(0,i.Tn)(n)&&n(e))&&(O().revalidateOnFocus&&O().revalidateOnReconnect&&!R()||t.onErrorRetry(e,x,t,(e=>{const t=v[x];t&&t[0]&&t[0](i.bu.ERROR_REVALIDATE_EVENT,e)}),{retryCount:(l.retryCount||0)+1,dedupe:!0}))))}return a=!1,f(),!0}),[x,s]),J=(0,r.useCallback)(((...e)=>(0,i.mF)(s,$.current,...e)),[]);if((0,i.Es)((()=>{T.current=t,I.current=n,(0,i.b0)(H)||(K.current=H)})),(0,i.Es)((()=>{if(!x)return;const e=Y.bind(i.ZH,l);let t=0;const n=(0,i.aw)(x,v,((n,r={})=>{if(n==i.bu.FOCUS_EVENT){const n=Date.now();O().revalidateOnFocus&&n>t&&R()&&(t=n+O().focusThrottleInterval,e())}else if(n==i.bu.RECONNECT_EVENT)O().revalidateOnReconnect&&R()&&e();else{if(n==i.bu.MUTATE_EVENT)return Y();if(n==i.bu.ERROR_REVALIDATE_EVENT)return Y(r)}}));return C.current=!1,$.current=x,N.current=!0,k({_k:_}),U&&((0,i.b0)(j)||i.X3?e():(0,i.mf)(e)),()=>{C.current=!0,n()}}),[x]),(0,i.Es)((()=>{let e;function t(){const t=(0,i.Tn)(m)?m(S().data):m;t&&-1!==e&&(e=setTimeout(n,t))}function n(){S().error||!h&&!O().isVisible()||!g&&!O().isOnline()?t():Y(l).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[m,h,g,x]),(0,r.useDebugValue)(W),u&&(0,i.b0)(j)&&x){if(!i.dO&&i.X3)throw new Error("Fallback data is required when using suspense in SSR.");T.current=t,I.current=n,C.current=!1;const e=E[x];if(!(0,i.b0)(e)){const t=J(e);a(t)}if(!(0,i.b0)(q))throw q;{const e=Y(l);(0,i.b0)(W)||(e.status="fulfilled",e.value=!0),a(e)}}return{mutate:J,get data(){return M.data=!0,W},get error(){return M.error=!0,q},get isValidating(){return M.isValidating=!0,G},get isLoading(){return M.isLoading=!0,X}}}))},54225(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(16072),o=n(19888),i=n(14993);const a=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),l={dedupe:!0};i.qv.defineProperty(i.BE,"defaultValue",{value:i.sb});const s=(0,i.qm)(((e,t,n)=>{const{cache:s,compare:c,suspense:u,fallbackData:d,revalidateOnMount:f,revalidateIfStale:p,refreshInterval:m,refreshWhenHidden:h,refreshWhenOffline:g,keepPreviousData:b}=n,[v,y,w,E]=i.bZ.get(s),[x,_]=(0,i.lK)(e),N=(0,r.useRef)(!1),C=(0,r.useRef)(!1),$=(0,r.useRef)(x),T=(0,r.useRef)(t),I=(0,r.useRef)(n),O=()=>I.current,R=()=>O().isVisible()&&O().isOnline(),[S,k,A,L]=(0,i.r9)(s,x),M=(0,r.useRef)({}).current,D=(0,i.b0)(d)?n.fallback[x]:d,B=(e,t)=>{for(const n in M){const r=n;if("data"===r){if(!c(e[r],t[r])){if(!(0,i.b0)(e[r]))return!1;if(!c(W,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},P=(0,r.useMemo)((()=>{const e=!!x&&!!t&&((0,i.b0)(f)?!O().isPaused()&&!u&&(!!(0,i.b0)(p)||p):f),n=t=>{const n=(0,i.rL)(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=S(),o=L(),a=n(r),l=r===o?a:n(o);let s=a;return[()=>{const e=n(S());return B(e,s)?(s.data=e.data,s.isLoading=e.isLoading,s.isValidating=e.isValidating,s.error=e.error,s):(s=e,e)},()=>l]}),[s,x]),V=(0,o.useSyncExternalStore)((0,r.useCallback)((e=>A(x,((t,n)=>{B(n,t)||e()}))),[s,x]),P[0],P[1]),z=!N.current,F=v[x]&&v[x].length>0,H=V.data,j=(0,i.b0)(H)?D:H,q=V.error,K=(0,r.useRef)(j),W=b?(0,i.b0)(H)?K.current:H:j,U=!(F&&!(0,i.b0)(q))&&(z&&!(0,i.b0)(f)?f:!O().isPaused()&&(u?!(0,i.b0)(j)&&p:(0,i.b0)(j)||p)),Z=!!(x&&t&&z&&U),G=(0,i.b0)(V.isValidating)?Z:V.isValidating,X=(0,i.b0)(V.isLoading)?Z:V.isLoading,Y=(0,r.useCallback)((async e=>{const t=T.current;if(!x||!t||C.current||O().isPaused())return!1;let r,o,a=!0;const l=e||{},s=!w[x]||!l.dedupe,u=()=>i.dO?!C.current&&x===$.current&&N.current:x===$.current,d={isValidating:!1,isLoading:!1},f=()=>{k(d)},p=()=>{const e=w[x];e&&e[1]===o&&delete w[x]},m={isValidating:!0};(0,i.b0)(S().data)&&(m.isLoading=!0);try{if(s&&(k(m),n.loadingTimeout&&(0,i.b0)(S().data)&&setTimeout((()=>{a&&u()&&O().onLoadingSlow(x,n)}),n.loadingTimeout),w[x]=[t(_),(0,i.lg)()]),[r,o]=w[x],r=await r,s&&setTimeout(p,n.dedupingInterval),!w[x]||w[x][1]!==o)return s&&u()&&O().onDiscarded(x),!1;d.error=i.ZH;const e=y[x];if(!(0,i.b0)(e)&&(o<=e[0]||o<=e[1]||0===e[1]))return f(),s&&u()&&O().onDiscarded(x),!1;const l=S().data;d.data=c(l,r)?l:r,s&&u()&&O().onSuccess(r,x,n)}catch(e){p();const t=O(),{shouldRetryOnError:n}=t;t.isPaused()||(d.error=e,s&&u()&&(t.onError(e,x,t),(!0===n||(0,i.Tn)(n)&&n(e))&&(O().revalidateOnFocus&&O().revalidateOnReconnect&&!R()||t.onErrorRetry(e,x,t,(e=>{const t=v[x];t&&t[0]&&t[0](i.bu.ERROR_REVALIDATE_EVENT,e)}),{retryCount:(l.retryCount||0)+1,dedupe:!0}))))}return a=!1,f(),!0}),[x,s]),J=(0,r.useCallback)(((...e)=>(0,i.mF)(s,$.current,...e)),[]);if((0,i.Es)((()=>{T.current=t,I.current=n,(0,i.b0)(H)||(K.current=H)})),(0,i.Es)((()=>{if(!x)return;const e=Y.bind(i.ZH,l);let t=0;const n=(0,i.aw)(x,v,((n,r={})=>{if(n==i.bu.FOCUS_EVENT){const n=Date.now();O().revalidateOnFocus&&n>t&&R()&&(t=n+O().focusThrottleInterval,e())}else if(n==i.bu.RECONNECT_EVENT)O().revalidateOnReconnect&&R()&&e();else{if(n==i.bu.MUTATE_EVENT)return Y();if(n==i.bu.ERROR_REVALIDATE_EVENT)return Y(r)}}));return C.current=!1,$.current=x,N.current=!0,k({_k:_}),U&&((0,i.b0)(j)||i.X3?e():(0,i.mf)(e)),()=>{C.current=!0,n()}}),[x]),(0,i.Es)((()=>{let e;function t(){const t=(0,i.Tn)(m)?m(S().data):m;t&&-1!==e&&(e=setTimeout(n,t))}function n(){S().error||!h&&!O().isVisible()||!g&&!O().isOnline()?t():Y(l).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[m,h,g,x]),(0,r.useDebugValue)(W),u&&(0,i.b0)(j)&&x){if(!i.dO&&i.X3)throw new Error("Fallback data is required when using suspense in SSR.");T.current=t,I.current=n,C.current=!1;const e=E[x];if(!(0,i.b0)(e)){const t=J(e);a(t)}if(!(0,i.b0)(q))throw q;{const e=Y(l);(0,i.b0)(W)||(e.status="fulfilled",e.value=!0),a(e)}}return{mutate:J,get data(){return M.data=!0,W},get error(){return M.error=!0,q},get isValidating(){return M.isValidating=!0,G},get isLoading(){return M.isLoading=!0,X}}})),c=(0,i.Ht)(s,(e=>(t,n,r)=>(r.revalidateOnFocus=!1,r.revalidateIfStale=!1,r.revalidateOnReconnect=!1,e(t,n,r))))},31635(e,t,n){"use strict";n.r(t),n.d(t,{__addDisposableResource:()=>M,__assign:()=>i,__asyncDelegator:()=>C,__asyncGenerator:()=>N,__asyncValues:()=>$,__await:()=>_,__awaiter:()=>m,__classPrivateFieldGet:()=>k,__classPrivateFieldIn:()=>L,__classPrivateFieldSet:()=>A,__createBinding:()=>g,__decorate:()=>l,__disposeResources:()=>B,__esDecorate:()=>c,__exportStar:()=>b,__extends:()=>o,__generator:()=>h,__importDefault:()=>S,__importStar:()=>R,__makeTemplateObject:()=>T,__metadata:()=>p,__param:()=>s,__propKey:()=>d,__read:()=>y,__rest:()=>a,__rewriteRelativeImportExtension:()=>P,__runInitializers:()=>u,__setFunctionName:()=>f,__spread:()=>w,__spreadArray:()=>x,__spreadArrays:()=>E,__values:()=>v,default:()=>V});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=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},i.apply(this,arguments)};function a(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}function l(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function s(e,t){return function(n,r){t(n,r,e)}}function c(e,t,n,r,o,i){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var l,s=r.kind,c="getter"===s?"get":"setter"===s?"set":"value",u=!t&&e?r.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,r.name):{}),f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]="access"===h?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var g=(0,n[p])("accessor"===s?{get:d.get,set:d.set}:d[c],m);if("accessor"===s){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(l=a(g.get))&&(d.get=l),(l=a(g.set))&&(d.set=l),(l=a(g.init))&&o.unshift(l)}else(l=a(g))&&("field"===s?o.unshift(l):d[c]=l)}u&&Object.defineProperty(u,r.name,d),f=!0}function u(e,t,n){for(var r=arguments.length>2,o=0;o<t.length;o++)n=r?t[o].call(e,n):t[o].call(e);return r?n:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function f(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function m(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))}function h(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}}var g=Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function b(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||g(t,e,n)}function v(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function w(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e}function E(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,l=i.length;a<l;a++,o++)r[o]=i[a];return r}function x(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))}function _(e){return this instanceof _?(this.v=e,this):new _(e)}function N(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",(function(e){return function(t){return Promise.resolve(t).then(e,c)}})),r[Symbol.asyncIterator]=function(){return this},r;function a(e,t){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||l(e,t)}))},t&&(r[e]=t(r[e])))}function l(e,t){try{(n=o[e](t)).value instanceof _?Promise.resolve(n.value.v).then(s,c):u(i[0][2],n)}catch(e){u(i[0][3],e)}var n}function s(e){l("next",e)}function c(e){l("throw",e)}function u(e,t){e(t),i.shift(),i.length&&l(i[0][0],i[0][1])}}function C(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:_(e[r](t)),done:!1}:o?o(t):t}:o}}function $(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=v(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}function T(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var I=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},O=function(e){return O=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},O(e)};function R(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=O(e),r=0;r<n.length;r++)"default"!==n[r]&&g(t,e,n[r]);return I(t,e),t}function S(e){return e&&e.__esModule?e:{default:e}}function k(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function A(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}function L(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function M(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r,o;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(o=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var D="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function B(e){function t(t){e.error=e.hasError?new D(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var n,r=0;return function o(){for(;n=e.stack.pop();)try{if(!n.async&&1===r)return r=0,e.stack.push(n),Promise.resolve().then(o);if(n.dispose){var i=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(i).then(o,(function(e){return t(e),o()}))}else r|=1}catch(e){t(e)}if(1===r)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function P(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,(function(e,n,r,o,i){return n?t?".jsx":".js":!r||o&&i?r+o+"."+i.toLowerCase()+"js":e})):e}const V={__extends:o,__assign:i,__rest:a,__decorate:l,__param:s,__esDecorate:c,__runInitializers:u,__propKey:d,__setFunctionName:f,__metadata:p,__awaiter:m,__generator:h,__createBinding:g,__exportStar:b,__values:v,__read:y,__spread:w,__spreadArrays:E,__spreadArray:x,__await:_,__asyncGenerator:N,__asyncDelegator:C,__asyncValues:$,__makeTemplateObject:T,__importStar:R,__importDefault:S,__classPrivateFieldGet:k,__classPrivateFieldSet:A,__classPrivateFieldIn:L,__addDisposableResource:M,__disposeResources:B,__rewriteRelativeImportExtension:P}}}]);
|