@openmrs/esm-laboratory-app
Version:
An O3 frontend module for managing laboratory requests and queues
1 lines • 554 kB
JavaScript
(()=>{var __webpack_modules__={1154(e,t,n){"use strict";function r(e,t,n){return(t=u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(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 o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e,t){if(null==e)return{};var n,r,a=i(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function i(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}function s(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 TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function u(e){var t=s(e,"string");return"symbol"==typeof t?t:t+""}n.d(t,{A:()=>w});var c=["width","height","viewBox"],d=["tabindex"],f={focusable:"false",preserveAspectRatio:"xMidYMid meet"};function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height,r=e.viewBox,a=void 0===r?"0 0 ".concat(t," ").concat(n):r,i=l(e,c),s=i.tabindex,u=l(i,d),p=o(o(o({},f),u),{},{width:t,height:n,viewBox:a});return p["aria-label"]||p["aria-labelledby"]||p.title?(p.role="img",null!=s&&(p.focusable="true",p.tabindex=s)):p["aria-hidden"]=!0,p}function m(e){var t=e.elem,n=void 0===t?"svg":t,r=e.attrs,a=void 0===r?{}:r,o=e.content,l=(void 0===o?[]:o).map(m).join("");return"svg"!==n?"<".concat(n," ").concat(h(a),">").concat(l,"</").concat(n,">"):"<".concat(n," ").concat(h(p(a)),">").concat(l,"</").concat(n,">")}function h(e){return Object.keys(e).reduce(function(t,n,r){var a="".concat(n,'="').concat(e[n],'"');return 0===r?a:t+" "+a},"")}var g=n(5556),b=n.n(g),y=n(2153),v=n.n(y);let w=v().forwardRef(function({className:e,children:t,tabIndex:n,xmlns:r="http://www.w3.org/2000/svg",preserveAspectRatio:a="xMidYMid meet",...o},l){let{tabindex:i,...s}=p({...o,tabindex:n}),u=s;return e&&(u.className=e),null!=i&&("number"==typeof i?u.tabIndex=i:u.tabIndex=Number(n)),l&&(u.ref=l),r&&(u.xmlns=r),a&&(u.preserveAspectRatio=a),v().createElement("svg",u,t)});w.displayName="Icon",w.propTypes={"aria-hidden":b().oneOfType([b().bool,b().oneOf(["true","false"])]),"aria-label":b().string,"aria-labelledby":b().string,children:b().node,className:b().string,height:b().oneOfType([b().number,b().string]),preserveAspectRatio:b().string,tabIndex:b().oneOfType([b().number,b().string]),viewBox:b().string,width:b().oneOfType([b().number,b().string]),xmlns:b().string}},4535(e,t,n){"use strict";n.d(t,{GK:()=>p,hz:()=>f});var r,a,o,l,i,s,u=n(2153),c=n.n(u),d=n(1154);let f=c().forwardRef(function({children:e,size:t=16,...n},o){return 16===t||"16"===t||"16px"===t?c().createElement(d.A,{width:t,height:t,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},r||(r=c().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):c().createElement(d.A,{width:t,height:t,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},a||(a=c().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)}),p=c().forwardRef(function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?c().createElement(d.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},o||(o=c().createElement("path",{d:"M2 12H14V13H2zM2 9H14V10H2zM2 6H14V7H2zM2 3H14V4H2z"})),e):20===t||"20"===t||"20px"===t?c().createElement(d.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},l||(l=c().createElement("path",{d:"M2 14.8H18V16H2zM2 11.2H18V12.399999999999999H2zM2 7.6H18V8.799999999999999H2zM2 4H18V5.2H2z"})),e):24===t||"24"===t||"24px"===t?c().createElement(d.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},i||(i=c().createElement("path",{d:"M3 18H21V19.5H3zM3 13.5H21V15H3zM3 9H21V10.5H3zM3 4.5H21V6H3z"})),e):c().createElement(d.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},s||(s=c().createElement("path",{d:"M4 6H28V8H4zM4 24H28V26H4zM4 12H28V14H4zM4 18H28V20H4z"})),e)})},1673(e,t,n){"use strict";n.d(t,{CH:()=>u});var r,a,o,l=n(2153),i=n.n(l),s=n(1154);let u=i().forwardRef(function({children:e,size:t=16,...n},l){return i().createElement(s.A,{width:t,height:t,ref:l,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},r||(r=i().createElement("circle",{cx:"16",cy:"8",r:"2"})),a||(a=i().createElement("circle",{cx:"16",cy:"16",r:"2"})),o||(o=i().createElement("circle",{cx:"16",cy:"24",r:"2"})),e)})},771(e,t,n){"use strict";n.d(t,{$D:()=>b,d3:()=>g,x:()=>y});var r,a,o,l,i,s,u,c,d,f,p=n(2153),m=n.n(p),h=n(1154);let g=m().forwardRef(function({children:e,size:t=16,...n},a){return m().createElement(h.A,{width:t,height:t,ref:a,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},a||(a=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},o||(o=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},i||(i=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"})),s||(s=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"})),c||(c=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},d||(d=m().createElement("path",{fill:"none",d:"M14.9 7.2H17.1V24.799H14.9z","data-icon-path":"inner-path",transform:"rotate(-45 16 16)"})),f||(f=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)})},3485(e,t,n){"use strict";n.d(t,{msM:()=>cZ,OOb:()=>sn,nD3:()=>tt,V8d:()=>fl,BFY:()=>lG,vji:()=>iv,Uwq:()=>l1,jeF:()=>c5,XSD:()=>ip,K0:()=>aQ,AsP:()=>tV,lRv:()=>cY,K3K:()=>lJ,XIK:()=>lO,FAs:()=>d7,KXP:()=>lp,GGC:()=>lK,Wdr:()=>a9,aaP:()=>iu,r9c:()=>dg,Hjg:()=>il,cwJ:()=>l6,bCw:()=>fp,Um2:()=>dw,fs1:()=>d8,e1U:()=>id,$nd:()=>aJ,bQt:()=>st,dJ2:()=>fu,lVW:()=>cQ,w6V:()=>ix,wbY:()=>dZ,Y9Y:()=>fa,ozo:()=>dY,kZS:()=>c6,ryE:()=>dd,VbH:()=>ih,dKS:()=>di,obU:()=>iY,KpK:()=>dJ,cwr:()=>lf,tUM:()=>dq,Psq:()=>ds,fZD:()=>l5,GRJ:()=>db,vwO:()=>d5,wdv:()=>fi,zWQ:()=>dc,jlY:()=>ol,rQ0:()=>a7,T2N:()=>d0,nA6:()=>lZ,OuH:()=>oa,A0N:()=>io,Cvq:()=>dv,ndF:()=>l8,f8J:()=>fb});var r,a,o,l,i,s,u,c,d,f,p,m,h,g,b,y,v,w,E,_,x,S,k,N,$,C,T,I,R,A,O,L,M,D,P,F,B,z,j,H,V,U,W,q,K,G,Z,Q,Y,X,J,ee,et,en,er,ea,eo,el,ei,es,eu,ec,ed,ef,ep,em,eh,eg,eb,ey,ev,ew,eE,e_,ex,eS,ek,eN,e$,eC,eT,eI,eR,eA,eO={};try{process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES&&"true"===process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES?eO.enableCssCustomProperties=!0:eO.enableCssCustomProperties=!1,process.env.CARBON_ENABLE_CSS_GRID&&"true"===process.env.CARBON_ENABLE_CSS_GRID?eO.enableCssGrid=!0:eO.enableCssGrid=!1,process.env.CARBON_ENABLE_V11_RELEASE?"true"===process.env.CARBON_ENABLE_V11_RELEASE?eO.enableV11Release=!0:eO.enableV11Release=!1:eO.enableV11Release=!0,process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST&&"true"===process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST?eO.enableExperimentalTileContrast=!0:eO.enableExperimentalTileContrast=!1,process.env.CARBON_ENABLE_TILE_CONTRAST&&"true"===process.env.CARBON_ENABLE_TILE_CONTRAST?eO.enableTileContrast=!0:eO.enableTileContrast=!1,process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS&&"true"===process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS?eO.enableV12TileDefaultIcons=!0:eO.enableV12TileDefaultIcons=!1,process.env.CARBON_ENABLE_V12_TILE_RADIO_ICONS&&"true"===process.env.CARBON_ENABLE_V12_TILE_RADIO_ICONS?eO.enableV12TileRadioIcons=!0:eO.enableV12TileRadioIcons=!1,process.env.CARBON_ENABLE_V12_OVERFLOWMENU&&"true"===process.env.CARBON_ENABLE_V12_OVERFLOWMENU?eO.enableV12Overflowmenu=!0:eO.enableV12Overflowmenu=!1,process.env.CARBON_ENABLE_TREEVIEW_CONTROLLABLE&&"true"===process.env.CARBON_ENABLE_TREEVIEW_CONTROLLABLE?eO.enableTreeviewControllable=!0:eO.enableTreeviewControllable=!1,process.env.CARBON_ENABLE_V12_STRUCTURED_LIST_VISIBLE_ICONS&&"true"===process.env.CARBON_ENABLE_V12_STRUCTURED_LIST_VISIBLE_ICONS?eO.enableV12StructuredListVisibleIcons=!0:eO.enableV12StructuredListVisibleIcons=!1,process.env.CARBON_ENABLE_EXPERIMENTAL_FOCUS_WRAP_WITHOUT_SENTINELS&&"true"===process.env.CARBON_ENABLE_EXPERIMENTAL_FOCUS_WRAP_WITHOUT_SENTINELS?eO.enableExperimentalFocusWrapWithoutSentinels=!0:eO.enableExperimentalFocusWrapWithoutSentinels=!1,process.env.CARBON_ENABLE_FOCUS_WRAP_WITHOUT_SENTINELS&&"true"===process.env.CARBON_ENABLE_FOCUS_WRAP_WITHOUT_SENTINELS?eO.enableFocusWrapWithoutSentinels=!0:eO.enableFocusWrapWithoutSentinels=!1,process.env.CARBON_ENABLE_DIALOG_ELEMENT&&"true"===process.env.CARBON_ENABLE_DIALOG_ELEMENT?eO.enableDialogElement=!0:eO.enableDialogElement=!1,process.env.CARBON_ENABLE_V12_DYNAMIC_FLOATING_STYLES&&"true"===process.env.CARBON_ENABLE_V12_DYNAMIC_FLOATING_STYLES?eO.enableV12DynamicFloatingStyles=!0:eO.enableV12DynamicFloatingStyles=!1,process.env.CARBON_ENABLE_V12_TOGGLE_REDUCED_LABEL_SPACING&&"true"===process.env.CARBON_ENABLE_V12_TOGGLE_REDUCED_LABEL_SPACING?eO.enableV12ToggleReducedLabelSpacing=!0:eO.enableV12ToggleReducedLabelSpacing=!1,process.env.CARBON_ENABLE_ENHANCED_FILE_UPLOADER&&"true"===process.env.CARBON_ENABLE_ENHANCED_FILE_UPLOADER?eO.enableEnhancedFileUploader=!0:eO.enableEnhancedFileUploader=!1,process.env.CARBON_ENABLE_PRESENCE&&"true"===process.env.CARBON_ENABLE_PRESENCE?eO.enablePresence=!0:eO.enablePresence=!1}catch(e){eO.enableCssCustomProperties=!1,eO.enableCssGrid=!1,eO.enableV11Release=!0,eO.enableExperimentalTileContrast=!1,eO.enableTileContrast=!1,eO.enableV12TileDefaultIcons=!1,eO.enableV12TileRadioIcons=!1,eO.enableV12Overflowmenu=!1,eO.enableTreeviewControllable=!1,eO.enableV12StructuredListVisibleIcons=!1,eO.enableExperimentalFocusWrapWithoutSentinels=!1,eO.enableFocusWrapWithoutSentinels=!1,eO.enableDialogElement=!1,eO.enableV12DynamicFloatingStyles=!1,eO.enableV12ToggleReducedLabelSpacing=!1,eO.enableEnhancedFileUploader=!1,eO.enablePresence=!1}var eL=[{name:"enable-css-custom-properties",description:"Describe what the flag does",enabled:eO.enableCssCustomProperties},{name:"enable-css-grid",description:"Enable CSS Grid Layout in the Grid and Column React components\n",enabled:eO.enableCssGrid},{name:"enable-v11-release",description:"Enable the features and functionality for the v11 Release\n",enabled:eO.enableV11Release},{name:"enable-experimental-tile-contrast",description:"Deprecated, use enable-tile-contrast instead\n",enabled:eO.enableExperimentalTileContrast},{name:"enable-tile-contrast",description:"Enable the experimental tile improved contrast styles\n",enabled:eO.enableTileContrast},{name:"enable-v12-tile-default-icons",description:"Enable rendering of default icons in the tile components\n",enabled:eO.enableV12TileDefaultIcons},{name:"enable-v12-tile-radio-icons",description:"Enable rendering of radio icons in the RadioTile component\n",enabled:eO.enableV12TileRadioIcons},{name:"enable-v12-overflowmenu",description:"Enable the use of the v12 OverflowMenu leveraging the Menu subcomponents\n",enabled:eO.enableV12Overflowmenu},{name:"enable-treeview-controllable",description:"Enable the new TreeView controllable API\n",enabled:eO.enableTreeviewControllable},{name:"enable-v12-structured-list-visible-icons",description:"Enable rendering of radio icons in the StructuredList component\n",enabled:eO.enableV12StructuredListVisibleIcons},{name:"enable-experimental-focus-wrap-without-sentinels",description:"Deprecated, use enable-focus-wrap-without-sentinels instead\n",enabled:eO.enableExperimentalFocusWrapWithoutSentinels},{name:"enable-focus-wrap-without-sentinels",description:"Enable the new focus wrap behavior that doesn't use sentinel nodes\n",enabled:eO.enableFocusWrapWithoutSentinels},{name:"enable-dialog-element",description:"Enable components to utilize the native dialog element\n",enabled:eO.enableDialogElement},{name:"enable-v12-dynamic-floating-styles",description:"Enable dynamic setting of floating styles for components like Popover, Tooltip, etc.\n",enabled:eO.enableV12DynamicFloatingStyles},{name:"enable-v12-toggle-reduced-label-spacing",description:"Enable a reduced spacing between the toggle control and its label\n",enabled:eO.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:eO.enableEnhancedFileUploader},{name:"enable-presence",description:"Enable components to remain unmounted in closed state and mount in open state.\n",enabled:eO.enablePresence}];function eM(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 eD(e){if(Array.isArray(e))return e}function eP(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function eF(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,eW(r.key),r)}}function eB(e,t,n){return t&&eF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ez(e,t){var n="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=eq(e))||t){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,l=!0,i=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){i=!0,o=e},f:function(){try{l||null==n.return||n.return()}finally{if(i)throw o}}}}function ej(e,t){var n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,l,i=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t);else for(;!(s=(r=o.call(n)).done)&&(i.push(r.value),i.length!==t);s=!0);}catch(e){u=!0,a=e}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return i}}function eH(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function eV(e,t){return eD(e)||ej(e,t)||eq(e,t)||eH()}function eU(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 TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function eW(e){var t=eU(e,"string");return"symbol"==typeof t?t:t+""}function eq(e,t){if(e){if("string"==typeof e)return eM(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)?eM(e,t):void 0}}for(var eK=function(){function e(t){var n=this;eP(this,e),this.flags=new Map,t&&Object.keys(t).forEach(function(e){n.flags.set(e,t[e])})}return eB(e,[{key:"checkForFlag",value:function(e){if(!this.flags.has(e))throw Error("Unable to find a feature flag with the name: `".concat(e,"`"))}},{key:"add",value:function(e,t){if(this.flags.has(e))throw 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=ez(e.flags);try{for(n.s();!(t=n.n()).done;){var r=eV(t.value,2),a=r[0],o=r[1];this.flags.has(a)||this.flags.set(a,o)}}catch(e){n.e(e)}finally{n.f()}}},{key:"enabled",value:function(e){return this.checkForFlag(e),this.flags.get(e)}}])}(),eG=eY(),eZ=0;eZ<eL.length;eZ++){var eQ=eL[eZ];eG.add(eQ.name,eQ.enabled)}function eY(e){return new eK(e)}function eX(){return eG.enabled.apply(eG,arguments)}function eJ(){return(eJ=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}).apply(null,arguments)}function e0(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 TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}!function(){eG.merge.apply(eG,arguments)}({"enable-css-custom-properties":!0,"enable-css-grid":!0,"enable-v11-release":!0,"enable-experimental-tile-contrast":!1,"enable-tile-contrast":!1,"enable-v12-tile-radio-icons":!1,"enable-v12-structured-list-visible-icons":!1,"enable-v12-dynamic-floating-styles":!1});var e1=n(6942),e2=n.n(e1),e3=n(2153),e4=n.n(e3);let e5=e4().createContext("cds");function e6(){return e4().useContext(e5)}var e8=n(5556),e9=n.n(e8);let e7=(0,e3.createContext)({disabled:!1}),te=({disabled:e,children:t})=>e4().createElement(e7.Provider,{value:{disabled:e}},t);function tt({align:e="end",children:t,className:n,disabled:r=!1,isFlush:a=!1,ordered:o=!1,size:l,...i}){let s=e6(),u=e2()(`${s}--accordion`,n,{[`${s}--accordion--${e}`]:e,[`${s}--accordion--${l}`]:l,[`${s}--layout--size-${l}`]:l,[`${s}--accordion--flush`]:a&&"start"!==e}),c=o?"ol":"ul";return e4().createElement(te,{disabled:r},e4().createElement(c,eJ({className:u},i),t))}tt.propTypes={align:e9().oneOf(["start","end"]),children:e9().node,className:e9().string,disabled:e9().bool,isFlush:e9().bool,ordered:e9().bool,size:e9().oneOf(["sm","md","lg"])};var tn=n(1154);let tr=e4().forwardRef(function({children:e,size:t=16,...n},a){return e4().createElement(tn.A,{width:t,height:t,ref:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},r||(r=e4().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)}),ta=e4().forwardRef(function({children:e,size:t=16,...n},r){return e4().createElement(tn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},a||(a=e4().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"})),o||(o=e4().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)}),to=e4().forwardRef(function({children:e,size:t=16,...n},r){return 20===t||"20"===t||"20px"===t?e4().createElement(tn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},l||(l=e4().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"})),i||(i=e4().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?e4().createElement(tn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},s||(s=e4().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):e4().createElement(tn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},u||(u=e4().createElement("path",{d:"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"})),e)}),tl=e4().forwardRef(function({children:e,size:t=16,...n},r){return 16===t||"16"===t||"16px"===t?e4().createElement(tn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},c||(c=e4().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"})),d||(d=e4().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?e4().createElement(tn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...n},f||(f=e4().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"})),p||(p=e4().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?e4().createElement(tn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...n},m||(m=e4().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"})),h||(h=e4().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):e4().createElement(tn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},g||(g=e4().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"})),b||(b=e4().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)}),ti=e4().forwardRef(function({children:e,size:t=16,...n},r){return"glyph"===t||"glyph"===t||"glyphpx"===t?e4().createElement(tn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 6",fill:"currentColor",...n},y||(y=e4().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?e4().createElement(tn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},v||(v=e4().createElement("path",{d:"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"})),e):e4().createElement(tn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},w||(w=e4().createElement("path",{d:"M16 22L6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z"})),e)}),ts=e4().forwardRef(function({children:e,size:t=16,...n},r){return"glyph"===t||"glyph"===t||"glyphpx"===t?e4().createElement(tn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 6 10",fill:"currentColor",...n},E||(E=e4().createElement("path",{d:"M0 5L5 0 5.7 0.7 1.4 5 5.7 9.3 5 10z"})),e):16===t||"16"===t||"16px"===t?e4().createElement(tn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},_||(_=e4().createElement("path",{d:"M5 8L10 3 10.7 3.7 6.4 8 10.7 12.3 10 13z"})),e):e4().createElement(tn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},x||(x=e4().createElement("path",{d:"M10 16L20 6 21.4 7.4 12.8 16 21.4 24.6 20 26z"})),e)}),tu=e4().forwardRef(function({children:e,size:t=16,...n},r){return"glyph"===t||"glyph"===t||"glyphpx"===t?e4().createElement(tn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 6 10",fill:"currentColor",...n},S||(S=e4().createElement("path",{d:"M6 5L1 10 0.3 9.3 4.6 5 0.3 0.7 1 0z"})),e):16===t||"16"===t||"16px"===t?e4().createElement(tn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...n},k||(k=e4().createElement("path",{d:"M11 8L6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z"})),e):e4().createElement(tn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},N||(N=e4().createElement("path",{d:"M22 16L12 26 10.6 24.6 19.2 16 10.6 7.4 12 6z"})),e)}),tc=e4().forwardRef(function({children:e,size:t=16,...n},r){return e4().createElement(tn.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},$||($=e4().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)}),td=(0,e3.createContext)({direction:"auto",getTextDirection:{current:void 0}}),tf=e4().forwardRef(({as:e,children:t,dir:n="auto",...r},a)=>{let o=(0,e3.useContext)(td),l={},i=e??"span",s={...o};if(o){let{direction:e,getTextDirection:r}=o;if(r&&r.current){let n=tp(t),a=r.current(n);e!==a?(l.dir=a,s.direction=a):"auto"===e&&(l.dir=a)}else e!==n?(l.dir=n,s.direction=n):"auto"===e&&(l.dir=n)}else l.dir=n,s.direction=n;return e4().createElement(td.Provider,{value:s},e4().createElement(i,eJ({ref:a},r,l),t))});tf.propTypes={as:e9().oneOfType([e9().func,e9().string,e9().elementType]),children:e9().node.isRequired,dir:e9().oneOf(["ltr","rtl","auto"])};let tp=e=>{if("string"==typeof e)return e;let t=e3.Children.map(e,e=>"string"==typeof e?e:null)?.filter(e=>null!==e);return t?.length===1?t[0]:t},tm={key:"Tab",which:9,keyCode:9,code:"Tab"},th={key:"Enter",which:13,keyCode:13,code:"Enter"},tg={key:["Escape","Esc"],which:27,keyCode:27,code:"Esc"},tb={key:" ",which:32,keyCode:32,code:"Space"},ty={key:"End",which:35,keyCode:35,code:"Numpad1"},tv={key:"Home",which:36,keyCode:36,code:"Numpad7"},tw={key:"ArrowLeft",which:37,keyCode:37,code:"ArrowLeft"},tE={key:"ArrowUp",which:38,keyCode:38,code:"ArrowUp"},t_={key:"ArrowRight",which:39,keyCode:39,code:"ArrowRight"},tx={key:"ArrowDown",which:40,keyCode:40,code:"ArrowDown"},tS={key:"Delete",which:8,keyCode:8,code:"ArrowDecimal"},tk=(e,t)=>{for(let n=0;n<t.length;n++)if(tN(e,t[n]))return!0;return!1},tN=(e,{key:t,which:n,keyCode:r,code:a})=>"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===a,t$=()=>{let e=0;return()=>++e},tC=!!("u">typeof window&&window.document&&window.document.createElement),tT=e4().createContext(null);function tI(){return e4().useContext(tT)}let tR={...e4()},tA=t$(),tO=tC?e3.useLayoutEffect:e3.useEffect,tL=!1,tM="id";function tD(e=tM){let t=tI(),[n,r]=(0,e3.useState)(()=>tL?`${t?`${t}-`:""}${e}-${tA()}`:null);return tO(()=>{null===n&&r(`${t?`${t}-`:""}${e}-${tA()}`)},[tA]),(0,e3.useEffect)(()=>{!1===tL&&(tL=!0)},[]),n}function tP(e=tM){let t=tI();return`${t?`${t}-`:""}${e}-${tR.useId()}`}let tF=tR.useId?tP:tD;function tB(e){let t=tF();return e??t}let tz=new Map,tj=(e,t)=>(t,n,r,...a)=>{if(void 0===t[n])return;tz.has(r)||tz.set(r,new Set);let o=tz.get(r);return o&&!o.has(n)&&o.add(n),e(t,n,r,...a)},tH=e=>e4().createElement("button",eJ({type:"button"},e));function tV({children:e,className:t="",open:n=!1,onHeadingClick:r,renderExpando:a=tH,renderToggle:o,title:l="title",disabled:i,handleAnimationEnd:s,"aria-label":u,...c}){let[d,f]=(0,e3.useState)(n),[p,m]=(0,e3.useState)(n),h=(0,e3.useContext)(e7),g="boolean"==typeof i?i:h.disabled,b=tF("accordion-item"),y=e6(),v=e2()({[`${y}--accordion__item`]:!0,[`${y}--accordion__item--active`]:d&&!g,[`${y}--accordion__item--disabled`]:g,[t]:!!t}),w=o||a,E=e4().useCallback(e=>{e&&d&&(e.style.maxBlockSize="")},[d]);function _(e){let t=!d;f(t),r&&r({isOpen:t,event:e})}function x(e){d&&tN(e,tg)&&f(!1)}function S(e){s&&s(e)}return n!==p&&(f(n),m(n)),e4().createElement("li",eJ({className:v},c),e4().createElement(w,{disabled:g,"aria-controls":b,"aria-expanded":d,"aria-label":u,className:`${y}--accordion__heading`,onClick:_,onKeyDown:x,type:"button"},e4().createElement(tu,{className:`${y}--accordion__arrow`}),e4().createElement(tf,{as:"div",className:`${y}--accordion__title`},l)),e4().createElement("div",{ref:E,className:`${y}--accordion__wrapper`,onTransitionEnd:S},e4().createElement("div",{id:b,className:`${y}--accordion__content`},e)))}tV.propTypes={children:e9().node,className:e9().string,disabled:e9().bool,"aria-label":e9().string,onClick:e9().func,onHeadingClick:e9().func,open:e9().bool,renderExpando:tj(e9().func,"The `renderExpando` prop has been deprecated and will be removed in the next major release of Carbon. Use the `renderToggle` prop instead."),renderToggle:e9().func,title:e9().node};let tU={},tW=(e,t,n)=>(r,a,o,...l)=>{if(void 0===r[a])return null;if(!tU[o]||!tU[o][a]){tU[o]={...tU[o],[a]:!0};let e=r[a];n&&n(e),t&&!t.includes(e)&&(n||t.join(", "))}return e(r,a,o,...l)},tq="u">typeof window?e3.useLayoutEffect:e3.useEffect,tK=e=>{let t=(0,e3.useMemo)(()=>e,e);return(0,e3.useCallback)(e=>{t.forEach(t=>{"function"==typeof t?t(e):t&&(t.current=e)})},[t])},tG=(e,t,n)=>{let r=(0,e3.useRef)(null);(0,e3.useEffect)(()=>{r.current=n},[n]),(0,e3.useEffect)(()=>{let n="current"in e?e.current:e;if(!n)return;let a=e=>{r.current&&r.current(e)};return n.addEventListener(t,a),()=>{n.removeEventListener(t,a)}},[e,t])},tZ=(e,t)=>{let n=(0,e3.useRef)(null);(0,e3.useEffect)(()=>{n.current=t},[t]),(0,e3.useEffect)(()=>{let t=e=>{n.current&&n.current(e)};return window.addEventListener(e,t),()=>{window.removeEventListener(e,t)}},[e])},tQ={"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"},tY=e=>tQ[e]??e;function tX(){let e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function tJ(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}let t0=null;function t1(e){let t=e.activeElement;for(;(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function t2(e){return(null==e?void 0:e.ownerDocument)||document}var t3=function(){},t4="u">typeof document?e3.useLayoutEffect:t3;let t5={...e3}.useInsertionEffect||(e=>e());function t6(e){let t=e3.useRef(()=>{});return t5(()=>{t.current=e}),e3.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}function t8(e,t,n){if("function"==typeof n)return n(t);if(n)return n.includes(t);let r=e.current[t];return null==r||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")}let t9=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function t7(){return"u">typeof window}function ne(e){return nr(e)?(e.nodeName||"").toLowerCase():"#document"}function nt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function nn(e){var t;return null==(t=(nr(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function nr(e){return!!t7()&&(e instanceof Node||e instanceof nt(e).Node)}function na(e){return!!t7()&&(e instanceof Element||e instanceof nt(e).Element)}function no(e){return!!t7()&&(e instanceof HTMLElement||e instanceof nt(e).HTMLElement)}function nl(e){return!(!t7()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof nt(e).ShadowRoot)}n(4848);let ni=new Set(["inline","contents"]);function ns(e){let{overflow:t,overflowX:n,overflowY:r,display:a}=nE(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!ni.has(a)}let nu=new Set(["table","td","th"]);function nc(e){return nu.has(ne(e))}let nd=[":popover-open",":modal"];function nf(e){return nd.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let np=["transform","translate","scale","rotate","perspective"],nm=["transform","translate","scale","rotate","perspective","filter"],nh=["paint","layout","strict","content"];function ng(e){let t=ny(),n=na(e)?nE(e):e;return np.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||nm.some(e=>(n.willChange||"").includes(e))||nh.some(e=>(n.contain||"").includes(e))}function nb(e){let t=nx(e);for(;no(t)&&!nw(t);){if(ng(t))return t;if(nf(t))break;t=nx(t)}return null}function ny(){return!("u"<typeof CSS)&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let nv=new Set(["html","body","#document"]);function nw(e){return nv.has(ne(e))}function nE(e){return nt(e).getComputedStyle(e)}function n_(e){return na(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function nx(e){if("html"===ne(e))return e;let t=e.assignedSlot||e.parentNode||nl(e)&&e.host||nn(e);return nl(t)?t.host:t}function nS(e){let t=nx(e);return nw(t)?e.ownerDocument?e.ownerDocument.body:e.body:no(t)&&ns(t)?t:nS(t)}function nk(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let a=nS(e),o=a===(null==(r=e.ownerDocument)?void 0:r.body),l=nt(a);if(o){let e=nN(l);return t.concat(l,l.visualViewport||[],ns(a)?a:[],e&&n?nk(e):[])}return t.concat(a,nk(a,[],n))}function nN(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var n$=n(961);let nC=["top","right","bottom","left"],nT=Math.min,nI=Math.max,nR=Math.round,nA=Math.floor,nO=e=>({x:e,y:e}),nL={left:"right",right:"left",bottom:"top",top:"bottom"},nM={start:"end",end:"start"};function nD(e,t,n){return nI(e,nT(t,n))}function nP(e,t){return"function"==typeof e?e(t):e}function nF(e){return e.split("-")[0]}function nB(e){return e.split("-")[1]}function nz(e){return"x"===e?"y":"x"}function nj(e){return"y"===e?"height":"width"}let nH=new Set(["top","bottom"]);function nV(e){return nH.has(nF(e))?"y":"x"}function nU(e){return nz(nV(e))}function nW(e,t,n){void 0===n&&(n=!1);let r=nB(e),a=nU(e),o=nj(a),l="x"===a?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=n0(l)),[l,n0(l)]}function nq(e){let t=n0(e);return[nK(e),t,nK(t)]}function nK(e){return e.replace(/start|end/g,e=>nM[e])}let nG=["left","right"],nZ=["right","left"],nQ=["top","bottom"],nY=["bottom","top"];function nX(e,t,n){switch(e){case"top":case"bottom":if(n)return t?nZ:nG;return t?nG:nZ;case"left":case"right":return t?nQ:nY;default:return[]}}function nJ(e,t,n,r){let a=nB(e),o=nX(nF(e),"start"===n,r);return a&&(o=o.map(e=>e+"-"+a),t&&(o=o.concat(o.map(nK)))),o}function n0(e){return e.replace(/left|right|bottom|top/g,e=>nL[e])}function n1(e){return{top:0,right:0,bottom:0,left:0,...e}}function n2(e){return"number"!=typeof e?n1(e):{top:e,right:e,bottom:e,left:e}}function n3(e){let{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function n4(e,t,n){let r,{reference:a,floating:o}=e,l=nV(t),i=nU(t),s=nj(i),u=nF(t),c="y"===l,d=a.x+a.width/2-o.width/2,f=a.y+a.height/2-o.height/2,p=a[s]/2-o[s]/2;switch(u){case"top":r={x:d,y:a.y-o.height};break;case"bottom":r={x:d,y:a.y+a.height};break;case"right":r={x:a.x+a.width,y:f};break;case"left":r={x:a.x-o.width,y:f};break;default:r={x:a.x,y:a.y}}switch(nB(t)){case"start":r[i]-=p*(n&&c?-1:1);break;case"end":r[i]+=p*(n&&c?-1:1)}return r}let n5=async(e,t,n)=>{let{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:l}=n,i=o.filter(Boolean),s=await (null==l.isRTL?void 0:l.isRTL(t)),u=await l.getElementRects({reference:e,floating:t,strategy:a}),{x:c,y:d}=n4(u,r,s),f=r,p={},m=0;for(let n=0;n<i.length;n++){let{name:o,fn:h}=i[n],{x:g,y:b,data:y,reset:v}=await h({x:c,y:d,initialPlacement:r,placement:f,strategy:a,middlewareData:p,rects:u,platform:l,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=b?b:d,p={...p,[o]:{...p[o],...y}},v&&m<=50&&(m++,"object"==typeof v&&(v.placement&&(f=v.placement),v.rects&&(u=!0===v.rects?await l.getElementRects({reference:e,floating:t,strategy:a}):v.rects),{x:c,y:d}=n4(u,f,s)),n=-1)}return{x:c,y:d,placement:f,strategy:a,middlewareData:p}};async function n6(e,t){var n;void 0===t&&(t={});let{x:r,y:a,platform:o,rects:l,elements:i,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=nP(t,e),m=n2(p),h="floating"===d?"reference":"floating",g=i[f?h:d],b=n3(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(i.floating)),boundary:u,rootBoundary:c,strategy:s})),y="floating"===d?{x:r,y:a,width:l.floating.width,height:l.floating.height}:l.reference,v=await (null==o.getOffsetParent?void 0:o.getOffsetParent(i.floating)),w=await (null==o.isElement?void 0:o.isElement(v))&&await (null==o.getScale?void 0:o.getScale(v))||{x:1,y:1},E=n3(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:y,offsetParent:v,strategy:s}):y);return{top:(b.top-E.top+m.top)/w.y,bottom:(E.bottom-b.bottom+m.bottom)/w.y,left:(b.left-E.left+m.left)/w.x,right:(E.right-b.right+m.right)/w.x}}let n8=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:a,rects:o,platform:l,elements:i,middlewareData:s}=t,{element:u,padding:c=0}=nP(e,t)||{};if(null==u)return{};let d=n2(c),f={x:n,y:r},p=nU(a),m=nj(p),h=await l.getDimensions(u),g="y"===p,b=g?"top":"left",y=g?"bottom":"right",v=g?"clientHeight":"clientWidth",w=o.reference[m]+o.reference[p]-f[p]-o.floating[m],E=f[p]-o.reference[p],_=await (null==l.getOffsetParent?void 0:l.getOffsetParent(u)),x=_?_[v]:0;x&&await (null==l.isElement?void 0:l.isElement(_))||(x=i.floating[v]||o.floating[m]);let S=w/2-E/2,k=x/2-h[m]/2-1,N=nT(d[b],k),$=nT(d[y],k),C=N,T=x-h[m]-$,I=x/2-h[m]/2+S,R=nD(C,I,T),A=!s.arrow&&null!=nB(a)&&I!==R&&o.reference[m]/2-(I<C?N:$)-h[m]/2<0,O=A?I<C?I-C:I-T:0;return{[p]:f[p]+O,data:{[p]:R,centerOffset:I-R-O,...A&&{alignmentOffset:O}},reset:A}}}),n9=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,a,o,l;let{placement:i,middlewareData:s,rects:u,initialPlacement:c,platform:d,elements:f}=t,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:y=!0,...v}=nP(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};let w=nF(i),E=nV(c),_=nF(c)===c,x=await (null==d.isRTL?void 0:d.isRTL(f.floating)),S=h||(_||!y?[n0(c)]:nq(c)),k="none"!==b;!h&&k&&S.push(...nJ(c,y,b,x));let N=[c,...S],$=await n6(t,v),C=[],T=(null==(r=s.flip)?void 0:r.overflows)||[];if(p&&C.push($[w]),m){let e=nW(i,u,x);C.push($[e[0]],$[e[1]])}if(T=[...T,{placement:i,overflows:C}],!C.every(e=>e<=0)){let e=((null==(a=s.flip)?void 0:a.index)||0)+1,t=N[e];if(t&&("alignment"!==m||E===nV(t)||T.every(e=>nV(e.placement)!==E||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=null==(o=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(g){case"bestFit":{let e=null==(l=T.filter(e=>{if(k){let t=nV(e.placement);return t===E||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(n=e);break}case"initialPlacement":n=c}if(i!==n)return{reset:{placement:n}}}return{}}}};function n7(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function re(e){return nC.some(t=>e[t]>=0)}let rt=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...a}=nP(e,t);switch(r){case"referenceHidden":{let e=n7(await n6(t,{...a,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:re(e)}}}case"escaped":{let e=n7(await n6(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:re(e)}}}default:return{}}}}};function rn(e){let t=min(...e.map(e=>e.left)),n=min(...e.map(e=>e.top));return{x:t,y:n,width:max(...e.map(e=>e.right))-t,height:max(...e.map(e=>e.bottom))-n}}let rr=new Set(["left","top"]);async function ra(e,t){let{placement:n,platform:r,elements:a}=e,o=await (null==r.isRTL?void 0:r.isRTL(a.floating)),l=nF(n),i=nB(n),s="y"===nV(n),u=rr.has(l)?-1:1,c=o&&s?-1:1,d=nP(t,e),{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 i&&"number"==typeof m&&(p="end"===i?-1*m:m),s?{x:p*c,y:f*u}:{x:f*u,y:p*c}}let ro=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:a,y:o,placement:l,middlewareData:i}=t,s=await ra(t,e);return l===(null==(n=i.offset)?void 0:n.placement)&&null!=(r=i.arrow)&&r.alignmentOffset?{}:{x:a+s.x,y:o+s.y,data:{...s,placement:l}}}}},rl=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let a,o,{placement:l,rects:i,platform:s,elements:u}=t,{apply:c=()=>{},...d}=nP(e,t),f=await n6(t,d),p=nF(l),m=nB(l),h="y"===nV(l),{width:g,height:b}=i.floating;"top"===p||"bottom"===p?(a=p,o=m===(await (null==s.isRTL?void 0:s.isRTL(u.floating))?"start":"end")?"left":"right"):(o=p,a="end"===m?"top":"bottom");let y=b-f.top-f.bottom,v=g-f.left-f.right,w=nT(b-f[a],y),E=nT(g-f[o],v),_=!t.middlewareData.shift,x=w,S=E;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(S=v),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(x=y),_&&!m){let e=nI(f.left,0),t=nI(f.right,0),n=nI(f.top,0),r=nI(f.bottom,0);h?S=g-2*(0!==e||0!==t?e+t:nI(f.left,f.right)):x=b-2*(0!==n||0!==r?n+r:nI(f.top,f.bottom))}await c({...t,availableWidth:S,availableHeight:x});let k=await s.getDimensions(u.floating);return g!==k.width||b!==k.height?{reset:{rects:!0}}:{}}}};function ri(e){let t=nE(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,a=no(e),o=a?e.offsetWidth:n,l=a?e.offsetHeight:r,i=nR(n)!==o||nR(r)!==l;return i&&(n=o,r=l),{width:n,height:r,$:i}}function rs(e){return na(e)?e:e.contextElement}function ru(e){let t=rs(e);if(!no(t))return nO(1);let n=t.getBoundingClientRect(),{width:r,height:a,$:o}=ri(t),l=(o?nR(n.width):n.width)/r,i=(o?nR(n.height):n.height)/a;return l&&Number.isFinite(l)||(l=1),i&&Number.isFinite(i)||(i=1),{x:l,y:i}}let rc=nO(0);function rd(e){let t=nt(e);return ny()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:rc}function rf(e,t,n){return void 0===t&&(t=!1),!!n&&(!t||n===nt(e))&&t}function rp(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);let a=e.getBoundingClientRect(),o=rs(e),l=nO(1);t&&(r?na(r)&&(l=ru(r)):l=ru(e));let i=rf(o,n,r)?rd(o):nO(0),s=(a.left+i.x)/l.x,u=(a.top+i.y)/l.y,c=a.width/l.x,d=a.height/l.y;if(o){let e=nt(o),t=r&&na(r)?nt(r):r,n=e,a=nN(n);for(;a&&r&&t!==n;){let e=ru(a),t=a.getBoundingClientRect(),r=nE(a),o=t.left+(a.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(a.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,u*=e.y,c*=e.x,d*=e.y,s+=o,u+=l,a=nN(n=nt(a))}}return n3({width:c,height:d,x:s,y:u})}function rm(e,t){let n=n_(e).scrollLeft;return t?t.left+n:rp(nn(e)).left+n}function rh(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-rm(e,n),y:n.top+t.scrollTop}}function rg(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e,o="fixed"===a,l=nn(r),i=!!t&&nf(t.floating);if(r===l||i&&o)return n;let s={scrollLeft:0,scrollTop:0},u=nO(1),c=nO(0),d=no(r);if((d||!d&&!o)&&(("body"!==ne(r)||ns(l))&&(s=n_(r)),no(r))){let e=rp(r);u=ru(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let f=!l||d||o?nO(0):rh(l,s);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-s.scrollTop*u.y+c.y+f.y}}function rb(e){return Array.from(e.getClientRects())}function ry(e){let t=nn(e),n=n_(e),r=e.ownerDocument.body,a=nI(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=nI(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),l=-n.scrollLeft+rm(e),i=-n.scrollTop;return"rtl"===nE(r).direction&&(l+=nI(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:l,y:i}}let rv=25;function rw(e,t){let n=nt(e),r=nn(e),a=n.visualViewport,o=r.clientWidth,l=r.clientHeight,i=0,s=0;if(a){o=a.width,l=a.height;let e=ny();(!e||e&&"fixed"===t)&&(i=a.offsetLeft,s=a.offsetTop)}let u=rm(r);if(u<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),a="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(r.clientWidth-t.clientWidth-a);l<=rv&&(o-=l)}else u<=rv&&(o+=u);return{width:o,height:l,x:i,y:s}}let rE=new Set(["absolute","fixed"]);function r_(e,t){let n=rp(e,!0,"fixed"===t),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=no(e)?ru(e):nO(1),l=e.clientWidth*o.x,i=e.clientHeight*o.y;return{width:l,height:i,x:a*o.x,y:r*o.y}}function rx(e,t,n){let r;if("viewport"===t)r=rw(e,n);else if("document"===t)r=ry(nn(e));else if(na(t))r=r_(t,n);else{let n=rd(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return n3(r)}function rS(e,t){let n=nx(e);return!(n===t||!na(n)||nw(n))&&("fixed"===nE(n).position||rS(n,t))}function rk(e,t){let n=t.get(e);if(n)return n;let r=nk(e,[],!1).filter(e=>na(e)&&"body"!==ne(e)),a=null,o="fixed"===nE(e).position,l=o?nx(e):e;for(;na(l)&&!nw(l);){let t=nE(l),n=ng(l);n||"fixed"!==t.position||(a=null),(o?!n&&!a:!n&&"static"===t.position&&!!a&&rE.has(a.position)||ns(l)&&!n&&rS(e,l))?r=r.filter(e=>e!==l):a=t,l=nx(l)}return t.set(e,r),r}function rN(e,t,n){let r=no(t),a=nn(t),o="fixed"===n,l=rp(e,!0,o,t),i={scrollLeft:0,scrollTop:0},s=nO(0);function u(){s.x=rm(a)}if(r||!r&&!o)if(("body"!==ne(t)||ns(a))&&(i=n_(t)),r){let e=rp(t,!0,o,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else a&&u();o&&!r&&a&&u();let c=!a||r||o?nO(0):rh(a,i);return{x:l.left+i.scrollLeft-s.x-c.x,y:l.top+i.scrollTop-s.y-c.y,width:l.width,height:l.height}}function r$(e){return"static"===nE(e).position}function rC(e,t){if(!no(e)||"fixed"===nE(e).position)return null;if(t)return t(e);let n=e.offsetParent;return nn(e)===n&&(n=n.ownerDocument.body),n}function rT(e,t){let n=nt(e);if(nf(e))return n;if(!no(e)){let t=nx(e);for(;t&&!nw(t);){if(na(t)&&!r$(t))return t;t=nx(t)}return n}let r=rC(e,t);for(;r&&nc(r)&&r$(r);)r=rC(r,t);return r&&nw(r)&&r$(r)&&!ng(r)?n:r||nb(e)||n}let rI=async function(e){let t=this.getOffsetParent||rT,n=this.getDimensions,r=await n(e.floating);return{reference:rN(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},rR={convertOffsetParentRelativeRectToViewportRelativeRect:rg,getDocumentElement:nn,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e,o=[..."clippingAncestors"===n?nf(t)?[]:rk(t,this._c):[].concat(n),r],l=o[0],i=o.reduce((e,n)=>{let r=rx(t,n,a);return e.top=nI(r.top,e.top),e.right=nT(r.right,e.right),e.bottom=nT(r.bottom,e.bottom),e.left=nI(r.left,e.left),e},rx(t,l,a));return{width:i.right-i.left,height:i.bottom-i.top,x:i.left,y:i.top}},getOffsetParent:rT,getElementRects:rI,getClientRects:rb,getDimensions:function(e){let{width:t,height:n}=ri(e);return{width:t,height:n}},getScale:ru,isElement:na,isRTL:function(e){return"rtl"===nE(e).direction}};function rA(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function rO(e,t){let n,r=null,a=nn(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}function l(i,s){void 0===i&&(i=!1),void 0===s&&(s=1),o();let u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=u;if(i||t(),!f||!p)return;let m={rootMargin:-nA(d)+"px "+-nA(a.clientWidth-(c+f))+"px "+-nA(a.clientHeight-(d+p))+"px "+-nA(c)+"px",threshold:nI(0,nT(1,s))||1},h=!0;function g(t){let r=t[0].intersectionRatio;if(r!==s){if(!h)return l();r?l(!1,r):n=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==r||rA(u,e.getBoundingClientRect())||l(),h=!1}try{r=new IntersectionObserver(g,{...m,root:a.ownerDocument})}catch(e){r=new IntersectionObserver(g,m)}r.observe(e)}return l(!0),o}function rL(e,t,n,r){let a;void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,c=rs(e),d=o||l?[...c?nk(c):[],...nk(t)]:[];d.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEven