@kenyaemr/esm-patient-flags-app 5.1.1-pre.413 → 5.1.1-pre.415

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.
@@ -1,10 +1,10 @@
1
1
  Browserslist: caniuse-lite is outdated. Please run:
2
2
  npx update-browserslist-db@latest
3
3
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
4
- assets by path *.js 712 KiB
4
+ assets by path *.js 713 KiB
5
5
  assets by chunk 565 KiB (id hint: vendors)
6
6
  asset 130.js 406 KiB [emitted] [minimized] [big] (id hint: vendors) 2 related assets
7
- asset 704.js 89 KiB [emitted] [minimized] (id hint: vendors) 2 related assets
7
+ asset 704.js 89.5 KiB [emitted] [minimized] (id hint: vendors) 2 related assets
8
8
  asset 591.js 50.8 KiB [emitted] [minimized] (id hint: vendors) 2 related assets
9
9
  asset 553.js 19.4 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
10
10
  + 8 assets
@@ -15,8 +15,8 @@ orphan modules 3.24 MiB [orphan] 678 modules
15
15
  runtime modules 38.3 KiB 28 modules
16
16
  built modules 3.17 MiB (javascript) 210 bytes (consume-shared) 168 bytes (share-init) [built]
17
17
  modules by path ../../node_modules/ 3.14 MiB 54 modules
18
- modules by path ./ 37 KiB
19
- javascript modules 33.8 KiB 5 modules
18
+ modules by path ./ 37.3 KiB
19
+ javascript modules 34 KiB 5 modules
20
20
  optional modules 3.27 KiB [optional] 4 modules
21
21
  consume-shared-module modules 210 bytes
22
22
  modules by path consume shared module (default) @openmrs/ 84 bytes 2 modules
@@ -32,4 +32,4 @@ This can impact web performance.
32
32
  Assets:
33
33
  130.js (406 KiB)
34
34
 
35
- webpack 5.88.0 compiled with 1 warning in 82803 ms
35
+ webpack 5.88.0 compiled with 1 warning in 83306 ms
package/dist/704.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see 704.js.LICENSE.txt */
2
- (globalThis.webpackChunk_kenyaemr_esm_patient_flags_app=globalThis.webpackChunk_kenyaemr_esm_patient_flags_app||[]).push([[704],{7604:(e,t,n)=>{"use strict";function r(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?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>h});var s=["width","height","viewBox"],l=["tabindex"],c={focusable:"false",preserveAspectRatio:"xMidYMid meet"};var u=n(3980),d=n.n(u),p=n(5206),f=n.n(p);const h=f().forwardRef((function(e,t){let{className:n,children:r,tabIndex:i,xmlns:u="http://www.w3.org/2000/svg",preserveAspectRatio:d="xMidYMid meet",...p}=e;const{tabindex:h,...A}=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height,r=e.viewBox,i=void 0===r?"0 0 ".concat(t," ").concat(n):r,u=a(e,s),d=u.tabindex,p=a(u,l),f=o(o(o({},c),p),{},{width:t,height:n,viewBox:i});return f["aria-label"]||f["aria-labelledby"]||f.title?(f.role="img",null!=d&&(f.focusable="true",f.tabindex=d)):f["aria-hidden"]=!0,f}({...p,tabindex:i}),m=A;return n&&(m.className=n),null!=h&&(m.tabIndex="number"==typeof h?h:Number(i)),t&&(m.ref=t),u&&(m.xmlns=u),d&&(m.preserveAspectRatio=d),f().createElement("svg",m,r)}));h.displayName="Icon",h.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}},37:(e,t,n)=>{"use strict";n.d(t,{CQ:()=>p,wS:()=>d,yG:()=>f});var r,o,i,a,s,l=n(5206),c=n.n(l),u=n(7604);const d=c().forwardRef((function(e,t){let{children:n,size:i=16,...a}=e;return c().createElement(u.Z,{width:i,height:i,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...a},r||(r=c().createElement("path",{d:"M21 16H23V18H21zM9 16H17V18H9zM21 12H23V14H21zM9 12H17V14H9zM9 8H23V10H9z"})),o||(o=c().createElement("path",{d:"M25,2H7A2.002,2.002,0,0,0,5,4V29a1,1,0,0,0,1,1H7a.9987.9987,0,0,0,.8-.4L10,26.667,12.2,29.6a1.0353,1.0353,0,0,0,1.6,0L16,26.667,18.2,29.6a1.0353,1.0353,0,0,0,1.6,0L22,26.667,24.2,29.6a.9993.9993,0,0,0,.8.4h1a1,1,0,0,0,1-1V4A2.0023,2.0023,0,0,0,25,2Zm0,25.333L22.8,24.4a1.0353,1.0353,0,0,0-1.6,0L19,27.333,16.8,24.4a1.0353,1.0353,0,0,0-1.6,0L13,27.333,10.8,24.4a1.0353,1.0353,0,0,0-1.6,0L7,27.333V4H25Z"})),n)})),p=c().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return c().createElement(u.Z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},i||(i=c().createElement("path",{d:"M12 10H6.78A11 11 0 0127 16h2A13 13 0 006 7.68V4H4v8h8zM20 22h5.22A11 11 0 015 16H3a13 13 0 0023 8.32V28h2V20H20z"})),n)})),f=c().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return c().createElement(u.Z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},a||(a=c().createElement("path",{d:"M10 18H18V20H10zM10 13H22V15H10zM10 23H15V25H10z"})),s||(s=c().createElement("path",{d:"M25,5H22V4a2,2,0,0,0-2-2H12a2,2,0,0,0-2,2V5H7A2,2,0,0,0,5,7V28a2,2,0,0,0,2,2H25a2,2,0,0,0,2-2V7A2,2,0,0,0,25,5ZM12,4h8V8H12ZM25,28H7V7h3v3H22V7h3Z"})),n)}))},5508:(e,t,n)=>{"use strict";n.d(t,{SQ:()=>s});var r,o=n(5206),i=n.n(o),a=n(7604);const s=i().forwardRef((function(e,t){let{children:n,size:o=16,...s}=e;return i().createElement(a.Z,{width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...s},r||(r=i().createElement("path",{d:"M14 4H18V8H14zM4 4H8V8H4zM24 4H28V8H24zM14 14H18V18H14zM4 14H8V18H4zM24 14H28V18H24zM14 24H18V28H14zM4 24H8V28H4zM24 24H28V28H24z"})),n)}))},781:(e,t,n)=>{"use strict";n.d(t,{n5:()=>l});var r,o,i=n(5206),a=n.n(i),s=n(7604);const l=a().forwardRef((function(e,t){let{children:n,size:i=16,...l}=e;return 16===i||"16"===i||"16px"===i?a().createElement(s.Z,{width:i,height:i,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...l},r||(r=a().createElement("path",{d:"M8 2c1.4 0 2.5 1.1 2.5 2.5S9.4 7 8 7 5.5 5.9 5.5 4.5 6.6 2 8 2M8 1C6.1 1 4.5 2.6 4.5 4.5S6.1 8 8 8s3.5-1.6 3.5-3.5S9.9 1 8 1zM13 15h-1v-2.5c0-1.4-1.1-2.5-2.5-2.5h-3C5.1 10 4 11.1 4 12.5V15H3v-2.5C3 10.6 4.6 9 6.5 9h3c1.9 0 3.5 1.6 3.5 3.5V15z"})),n):a().createElement(s.Z,{width:i,height:i,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...l},o||(o=a().createElement("path",{d:"M16 4a5 5 0 11-5 5 5 5 0 015-5m0-2a7 7 0 107 7A7 7 0 0016 2zM26 30H24V25a5 5 0 00-5-5H13a5 5 0 00-5 5v5H6V25a7 7 0 017-7h6a7 7 0 017 7z"})),n)}))},9525:(e,t,n)=>{"use strict";n.d(t,{Nu:()=>l});var r,o,i=n(5206),a=n.n(i),s=n(7604);const l=a().forwardRef((function(e,t){let{children:n,size:i=16,...l}=e;return a().createElement(s.Z,{width:i,height:i,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...l},r||(r=a().createElement("path",{d:"M25.707,17.293l-5-5A1,1,0,0,0,20,12H14a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V18A1,1,0,0,0,25.707,17.293ZM23.5857,18H20V14.4141ZM14,28V14h4v4a2,2,0,0,0,2,2h4v8Z"})),o||(o=a().createElement("path",{d:"M8,27H4a2.0023,2.0023,0,0,1-2-2V5A2.0023,2.0023,0,0,1,4,3h7.5857A1.9865,1.9865,0,0,1,13,3.5859L16.4143,7H28a2.0023,2.0023,0,0,1,2,2v8H28V9H15.5857l-4-4H4V25H8Z"})),n)}))},2074:(e,t,n)=>{"use strict";n.d(t,{BV:()=>A,Cf:()=>f,XZ:()=>h,_M:()=>m});var r,o,i,a,s,l,c,u=n(5206),d=n.n(u),p=n(7604);const f=d().forwardRef((function(e,t){let{children:n,size:o=16,...i}=e;return d().createElement(p.Z,{width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...i},r||(r=d().createElement("path",{d:"M27,28V6H19V28H15V14H7V28H4V2H2V28a2,2,0,0,0,2,2H30V28ZM13,28H9V16h4Zm12,0H21V8h4Z"})),n)})),h=d().forwardRef((function(e,t){let{children:n,size:r=16,...i}=e;return d().createElement(p.Z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...i},o||(o=d().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"})),n)})),A=d().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return d().createElement(p.Z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},i||(i=d().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"})),a||(a=d().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"})),n)})),m=d().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return"glyph"===r||"glyph"===r||"glyphpx"===r?d().createElement(p.Z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 6",fill:"currentColor",...o},s||(s=d().createElement("path",{d:"M5 6L0 1 0.7 0.3 5 4.6 9.3 0.3 10 1z"})),n):16===r||"16"===r||"16px"===r?d().createElement(p.Z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...o},l||(l=d().createElement("path",{d:"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"})),n):d().createElement(p.Z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},c||(c=d().createElement("path",{d:"M16 22L6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z"})),n)}))},3238:(e,t,n)=>{"use strict";n.d(t,{x8:()=>s});var r,o=n(5206),i=n.n(o),a=n(7604);const s=i().forwardRef((function(e,t){let{children:n,size:o=16,...s}=e;return i().createElement(a.Z,{width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...s},r||(r=i().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"})),n)}))},7631:(e,t,n)=>{"use strict";n.d(t,{jj:()=>d,kb:()=>u,zW:()=>p});var r,o,i,a,s=n(5206),l=n.n(s),c=n(7604);const u=l().forwardRef((function(e,t){let{children:n,size:i=16,...a}=e;return l().createElement(c.Z,{width:i,height:i,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...a},r||(r=l().createElement("path",{d:"M30 24L26 24 26 20 24 20 24 24 20 24 20 26 24 26 24 30 26 30 26 26 30 26 30 24z"})),o||(o=l().createElement("path",{d:"M16,28H8V4h8v6a2.0058,2.0058,0,0,0,2,2h6v4h2V10a.9092.9092,0,0,0-.3-.7l-7-7A.9087.9087,0,0,0,18,2H8A2.0058,2.0058,0,0,0,6,4V28a2.0058,2.0058,0,0,0,2,2h8ZM18,4.4,23.6,10H18Z"})),n)})),d=l().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return l().createElement(c.Z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},i||(i=l().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"})),n)})),p=l().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return l().createElement(c.Z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},a||(a=l().createElement("path",{d:"M26 14H24v2h2a3.0033 3.0033 0 013 3v4h2V19A5.0058 5.0058 0 0026 14zM24 4a3 3 0 11-3 3 3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0024 2zM23 30H21V28a3.0033 3.0033 0 00-3-3H14a3.0033 3.0033 0 00-3 3v2H9V28a5.0059 5.0059 0 015-5h4a5.0059 5.0059 0 015 5zM16 13a3 3 0 11-3 3 3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0016 11zM8 14H6a5.0059 5.0059 0 00-5 5v4H3V19a3.0033 3.0033 0 013-3H8zM8 4A3 3 0 115 7 3 3 0 018 4M8 2a5 5 0 105 5A5 5 0 008 2z"})),n)}))},8557:(e,t,n)=>{"use strict";n.d(t,{SK:()=>s});var r,o=n(5206),i=n.n(o),a=n(7604);const s=i().forwardRef((function(e,t){let{children:n,size:o=16,...s}=e;return i().createElement(a.Z,{width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...s},r||(r=i().createElement("path",{d:"M16.6123,2.2138a1.01,1.01,0,0,0-1.2427,0L1,13.4194l1.2427,1.5717L4,13.6209V26a2.0041,2.0041,0,0,0,2,2H26a2.0037,2.0037,0,0,0,2-2V13.63L29.7573,15,31,13.4282ZM18,26H14V18h4Zm2,0V18a2.0023,2.0023,0,0,0-2-2H14a2.002,2.002,0,0,0-2,2v8H6V12.0615l10-7.79,10,7.8005V26Z"})),n)}))},4717:(e,t,n)=>{"use strict";n.d(t,{Xx:()=>l});var r,o,i=n(5206),a=n.n(i),s=n(7604);const l=a().forwardRef((function(e,t){let{children:n,size:i=16,...l}=e;return a().createElement(s.Z,{width:i,height:i,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...l},r||(r=a().createElement("path",{d:"M19 24H23V28H19zM26 24H30V28H26zM19 17H23V21H19zM26 17H30V21H26z"})),o||(o=a().createElement("path",{d:"M17,24H4V10H28v5h2V10a2.0023,2.0023,0,0,0-2-2H22V4a2.0023,2.0023,0,0,0-2-2H12a2.002,2.002,0,0,0-2,2V8H4a2.002,2.002,0,0,0-2,2V24a2.0023,2.0023,0,0,0,2,2H17ZM12,4h8V8H12Z"})),n)}))},6070:(e,t,n)=>{"use strict";n.d(t,{Bl:()=>s});var r,o=n(5206),i=n.n(o),a=n(7604);const s=i().forwardRef((function(e,t){let{children:n,size:o=16,...s}=e;return i().createElement(a.Z,{width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...s},r||(r=i().createElement("path",{d:"M24,2H8A2,2,0,0,0,6,4V8a2,2,0,0,0,2,2V28a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V10a2,2,0,0,0,2-2V4A2,2,0,0,0,24,2ZM10,14h3V24H10ZM22,28H10V26h5V12H10V10H22ZM8,8V4H24V8Z"})),n)}))},1492:(e,t,n)=>{"use strict";n.d(t,{zxk:()=>W,JMr:()=>He,mh4:()=>Ne,olm:()=>ne,Vp9:()=>ce,n9L:()=>we});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_USE_CONTROLLED_STATE_WITH_VALUE&&"true"===process.env.CARBON_ENABLE_USE_CONTROLLED_STATE_WITH_VALUE?r.enableUseControlledStateWithValue=!0:r.enableUseControlledStateWithValue=!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_OVERFLOWMENU&&"true"===process.env.CARBON_ENABLE_V12_OVERFLOWMENU?r.enableV12Overflowmenu=!0:r.enableV12Overflowmenu=!1}catch(e){r.enableCssCustomProperties=!1,r.enableUseControlledStateWithValue=!1,r.enableCssGrid=!1,r.enableV11Release=!0,r.enableExperimentalTileContrast=!1,r.enableV12TileDefaultIcons=!1,r.enableV12Overflowmenu=!1}var o=[{name:"enable-css-custom-properties",description:"Describe what the flag does",enabled:r.enableCssCustomProperties},{name:"enable-use-controlled-state-with-value",description:"Enable components to be created in either a controlled or uncontrolled mode\n",enabled:r.enableUseControlledStateWithValue},{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-overflowmenu",description:"Enable the use of the v12 OverflowMenu leveraging the Menu subcomponents\n",enabled:r.enableV12Overflowmenu}];function i(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,(void 0,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?o:String(o)),r)}var o}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,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(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 s(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.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)?l(e,t):void 0}}function l(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}for(var c=function(){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])}))}var t,n;return t=e,n=[{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,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=s(e))){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(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)}}],n&&i(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),u=new c(void 0),d=0;d<o.length;d++){var p=o[d];u.add(p.name,p.enabled)}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,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});var h=n(3980),A=n.n(h),m=n(5206),g=n.n(m),_=n(2779),b=n.n(_),v="undefined"!=typeof window?m.useLayoutEffect:m.useEffect;const y=e=>(0,m.useCallback)((t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}),e),C=g().createContext("cds");function w(){return g().useContext(C)}function E(e,t){const n=(0,m.useRef)(null);(0,m.useEffect)((()=>{n.current=t}),[t]),(0,m.useEffect)((()=>{function t(e){n.current&&n.current(e)}return window.addEventListener(e,t),()=>{window.removeEventListener(e,t)}}),[e])}const x=g().createContext({floating:{current:null}}),D=g().forwardRef((function(e,t){let{isTabTip:n,align:r=(n?"bottom-left":"bottom"),as:o="span",autoAlign:i=!1,caret:a=!n,className:s,children:l,dropShadow:c=!0,highContrast:u=!1,onRequestClose:d,open:p,...h}=e;const A=w(),_=(0,m.useRef)(null),C=(0,m.useRef)(null);E("blur",(()=>{p&&d?.()})),E("click",(e=>{p&&!C?.current?.contains(e.target)&&d?.()}));const D=(0,m.useMemo)((()=>({floating:_})),[]);n&&(["bottom-left","bottom-right"].includes(r)||(r="bottom-left"));const k=y([t,C]),[O,T]=(0,m.useState)(!1),[S,B]=(0,m.useState)(r),H=b()({[`${A}--popover-container`]:!0,[`${A}--popover--caret`]:a,[`${A}--popover--drop-shadow`]:c,[`${A}--popover--high-contrast`]:u,[`${A}--popover--open`]:p,[`${A}--popover--${S}`]:O&&!n,[`${A}--popover--${r}`]:!O,[`${A}--popover--tab-tip`]:n},s);v((()=>{if(!p)return;if(!i||n)return void T(!1);if(!_.current)return;if(!0===O)return;const e=_.current.getBoundingClientRect(),t=e.x<-16,o=e.y<-16,a=e.x+(e.width-16)>document.documentElement.clientWidth,s=e.y+(e.height-16)>document.documentElement.clientHeight;if(!(t||o||a||s))return void T(!1);const l=["top","top-left","right-bottom","right","right-top","bottom-left","bottom","bottom-right","left-top","left","left-bottom","top-right"],c=[r];let u=l[(l.indexOf(r)+1)%l.length];for(;u&&!c.includes(u);)c.push(u),u=l[(l.indexOf(u)+1)%l.length];function d(e){if(!C.current||!_.current)return!1;C.current.classList.add(`${A}--popover--${e}`);const t=_.current.getBoundingClientRect();return t.x<-16||t.y<-16||t.x+(t.width-16)>document.documentElement.clientWidth||t.y+(t.height-16)>document.documentElement.clientHeight?(C.current.classList.remove(`${A}--popover--${e}`),!1):(C.current.classList.remove(`${A}--popover--${e}`),!0)}let f=null;for(let e=0;e<c.length;e++){const t=c[e];if(d(t)){f=t;break}}f&&(T(!0),B(f))}),[O,r,i,A,p,n]);const V=g().Children.map(l,(e=>{const t=e;if("button"===t?.type){const{className:e}=t.props,n=b()(`${A}--popover--tab-tip__button`,e);return g().cloneElement(t,{className:n})}return t})),M=o;return g().createElement(x.Provider,{value:D},g().createElement(M,f({},h,{className:H,ref:k}),n?V:l))}));function k(e,t){let{className:n,children:r,...o}=e;const i=w(),{floating:a}=g().useContext(x),s=y([a,t]);return g().createElement("span",f({},o,{className:`${i}--popover`}),g().createElement("span",{className:b()(`${i}--popover-content`,n),ref:s},r),g().createElement("span",{className:`${i}--popover-caret`}))}D.propTypes={align:A().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top"]),as:A().oneOfType([A().string,A().elementType]),autoAlign:A().bool,caret:A().bool,children:A().node,className:A().string,dropShadow:A().bool,highContrast:A().bool,isTabTip:A().bool,onRequestClose:A().func,open:A().bool.isRequired};const O=g().forwardRef(k);function T(){let e=0;return function(){return++e}}O.propTypes={children:A().node,className:A().string};const S=!("undefined"==typeof window||!window.document||!window.document.createElement),B=g().createContext(null),H=T(),V=S?m.useLayoutEffect:m.useEffect;let M=!1;function R(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id";const t=g().useContext(B),[n,r]=(0,m.useState)((()=>M?`${t?`${t}-`:""}${e}-${H()}`:null));if(V((()=>{null===n&&r(`${t?`${t}-`:""}${e}-${H()}`)}),[H]),(0,m.useEffect)((()=>{!1===M&&(M=!0)}),[]),"function"==typeof g().useId){const n=function(e,t){return`${e?`${e}-`:""}${t}-${g().useId()}`}(t,e);return n}return n}function N(e){if(!e||!e.childNodes)return null;if(function(e){if(e.tabIndex<0)return!1;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}(e))return e;for(const t of e.childNodes){const e=N(t);if(e)return e}return null}function $(e){if(!e||!e.childNodes)return null;if(e?.getAttribute?.("role")&&""!==e.getAttribute("role"))return e;for(const t of e.childNodes){const e=$(t);if(e)return e}return null}function L(e,t){for(let n=0;n<t.length;n++)if(z(e,t[n]))return!0;return!1}function z(e){let{key:t,which:n,keyCode:r,code:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e?e===t:"number"==typeof e?e===n||e===r:e.key&&Array.isArray(t)?-1!==t.indexOf(e.key):e.key===t||e.which===n||e.keyCode===r||e.code===o}const I={key:"Enter",which:13,keyCode:13,code:"Enter"},P={key:["Escape","Esc"],which:27,keyCode:27,code:"Esc"},j={key:" ",which:32,keyCode:32,code:"Space"};function Z(e){let{align:t="top",className:n,children:r,label:o,description:i,enterDelayMs:a=100,leaveDelayMs:s=300,defaultOpen:l=!1,closeOnActivation:c=!1,...u}=e;const d=(0,m.useRef)(null),p=(0,m.useRef)(null),[h,A]=function(e){const[t,n]=(0,m.useState)(e),r=(0,m.useRef)(null),o=(0,m.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]: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,m.useEffect)((()=>()=>{window.clearTimeout(r.current??void 0)}),[]),[t,o]}(l),_=R("tooltip"),v=w(),y=g().Children.only(r),C={onFocus:()=>A(!0),onBlur:()=>A(!1),onClick:()=>c&&A(!1),onMouseEnter:function(){A(!0,a)}};return o?C["aria-labelledby"]=_:C["aria-describedby"]=_,(0,m.useEffect)((()=>{null!==d&&d.current&&(N(d.current)||A(!1))})),g().createElement(D,f({},u,{align:t,className:b()(`${v}--tooltip`,n),dropShadow:!1,highContrast:!0,onKeyDown:function(e){h&&z(e,P)&&(e.stopPropagation(),A(!1)),h&&c&&(z(e,I)||z(e,j))&&A(!1)},onMouseLeave:function(){A(!1,s)},open:h,ref:d}),g().createElement("div",{className:`${v}--tooltip-trigger__wrapper`},void 0!==y?g().cloneElement(y,{...C,...function(e){const t={};return["onFocus","onBlur","onClick","onMouseEnter"].forEach((n=>{t[n]=t=>{C[n](),e?.[n]&&e?.[n](t)}})),t}(y.props)}):null),g().createElement(O,{"aria-hidden":h?"false":"true",className:`${v}--tooltip-content`,id:_,ref:p,role:"tooltip"},o||i))}Z.propTypes={align:A().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top"]),children:A().node,className:A().string,closeOnActivation:A().bool,defaultOpen:A().bool,description:A().node,enterDelayMs:A().number,label:A().node,leaveDelayMs:A().number};const F=g().forwardRef((function(e,t){const{align:n,children:r,className:o,closeOnActivation:i=!0,defaultOpen:a=!1,disabled:s,enterDelayMs:l=100,kind:c,label:u,leaveDelayMs:d=100,wrapperClasses:p,size:h,isSelected:A,...m}=e,_=w(),v=b()(p,`${_}--icon-tooltip`,{[`${_}--icon-tooltip--disabled`]:s});return g().createElement(Z,{align:n,closeOnActivation:i,className:v,defaultOpen:a,enterDelayMs:l,label:u,leaveDelayMs:d},g().createElement(W,f({},m,{disabled:s,kind:c,ref:t,size:h,className:b()(`${_}--btn--icon-only`,{[`${_}--btn--selected`]:A},o)}),r))}));F.propTypes={align:A().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","right"]),children:A().node,className:A().string,closeOnActivation:A().bool,defaultOpen:A().bool,disabled:A().bool,enterDelayMs:A().number,isSelected:A().bool,kind:A().oneOf(["primary","secondary","ghost","tertiary"]),label:A().node.isRequired,leaveDelayMs:A().number,size:A().oneOf(["sm","md","lg"]),wrapperClasses:A().string};const U=e=>function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(let n=0;n<e.length&&!t.defaultPrevented;n++){const o=e[n];"function"==typeof o&&o(t,...r)}},W=g().forwardRef((function(e,t){let{as:n,children:r,className:o,dangerDescription:i="danger",disabled:a=!1,hasIconOnly:s=!1,href:l,iconDescription:c,isExpressive:u=!1,isSelected:d,kind:p="primary",onBlur:h,onClick:A,onFocus:_,onMouseEnter:v,onMouseLeave:y,renderIcon:C,size:E,tabIndex:x,tooltipAlignment:D="center",tooltipPosition:k="top",type:O="button",...T}=e;const S=(0,m.useRef)(null),B=w(),H=e=>{e.target!==S.current||e.preventDefault()},V={tabIndex:x,className:b()(o,{[`${B}--btn`]:!0,[`${B}--btn--sm`]:"sm"===E&&!u,[`${B}--btn--md`]:"md"===E&&!u,[`${B}--btn--xl`]:"xl"===E,[`${B}--btn--2xl`]:"2xl"===E,[`${B}--layout--size-${E}`]:E,[`${B}--btn--${p}`]:p,[`${B}--btn--disabled`]:a,[`${B}--btn--expressive`]:u,[`${B}--btn--icon-only`]:s,[`${B}--btn--selected`]:s&&d&&"ghost"===p}),ref:t},M=C?g().createElement(C,{"aria-label":c,className:`${B}--btn__icon`,"aria-hidden":"true"}):null,N=C?g().createElement(C,null):null,$=["danger","danger--tertiary","danger--ghost"];let L="button";const z=R("danger-description"),{"aria-pressed":I}=T;let P={disabled:a,type:O,"aria-describedby":$.includes(p)?z:void 0,"aria-pressed":I??(s&&"ghost"===p?d:void 0)};const j={href:l};let Z=null;if($.includes(p)&&(Z=g().createElement("span",{id:z,className:`${B}--visually-hidden`},i)),n?(L=n,P={...P,...j}):l&&!a&&(L="a",P=j),s){let e;return"top"!==k&&"bottom"!==k||("center"===D&&(e=k),"end"===D&&(e=`${k}-right`),"start"===D&&(e=`${k}-left`)),"right"!==k&&"left"!==k||(e=k),g().createElement(F,f({as:n,align:e,label:c,kind:p,size:E,onMouseEnter:v,onMouseLeave:y,onFocus:_,onBlur:h,onClick:U([A,H])},T,V,P),N||r)}return g().createElement(L,{onMouseEnter:v,onMouseLeave:y,onFocus:_,onBlur:h,onClick:A,...T,...V,...P},Z,r,M)}));W.displayName="Button",W.propTypes={as:A().oneOfType([A().func,A().string,A().elementType]),children:A().node,className:A().string,dangerDescription:A().string,disabled:A().bool,hasIconOnly:A().bool,href:A().string,iconDescription:e=>!e.renderIcon||e.children||e.iconDescription?null:new Error("renderIcon property specified without also providing an iconDescription property."),isExpressive:A().bool,isSelected:A().bool,kind:A().oneOf(["primary","secondary","danger","ghost","danger--primary","danger--ghost","danger--tertiary","tertiary"]),onBlur:A().func,onClick:A().func,onFocus:A().func,onMouseEnter:A().func,onMouseLeave:A().func,renderIcon:A().oneOfType([A().func,A().object]),role:A().string,size:A().oneOf(["sm","md","lg","xl","2xl"]),tabIndex:A().number,tooltipAlignment:A().oneOf(["start","center","end"]),tooltipPosition:A().oneOf(["top","right","bottom","left"]),type:A().oneOf(["button","reset","submit"])};var G,K,Q=n(3238),q=n(7604);const X=g().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return 16===r||"16"===r||"16px"===r?g().createElement(q.Z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...o},G||(G=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"})),n):g().createElement(q.Z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},K||(K=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"})),n)})),Y={};function J(e,t){return function(t,n,r){if(void 0!==t[n]){Y[r]&&Y[r][n]||(Y[r]={...Y[r],[n]:!0});for(var o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];return e(t,n,r,...i)}}}const ee=(0,m.createContext)({isFluid:!1});var te;const ne=g().forwardRef((function(e,t){let{autoComplete:n="off",className:r,closeButtonLabelText:o="Clear search input",defaultValue:i,disabled:a,isExpanded:s=!0,id:l,labelText:c,light:u,onChange:d=(()=>{}),onClear:p=(()=>{}),onKeyDown:h,onExpand:A,placeholder:_="Search",renderIcon:v,role:C="searchbox",size:E="md",type:x="text",value:D,...k}=e;const O=!(!D&&!i),T=w(),{isFluid:S}=(0,m.useContext)(ee),B=(0,m.useRef)(null),H=y([t,B]),V=(0,m.useRef)(null),M=R("search-input"),N=l||M,$=`${N}-search`,[L,Z]=(0,m.useState)(O||!1),[F,W]=(0,m.useState)(D),G=b()({[`${T}--search`]:!0,[`${T}--search--sm`]:"sm"===E,[`${T}--search--md`]:"md"===E,[`${T}--search--lg`]:"lg"===E,[`${T}--search--light`]:u,[`${T}--search--disabled`]:a,[`${T}--search--fluid`]:S},r),K=b()({[`${T}--search-close`]:!0,[`${T}--search-close--hidden`]:!L||!s});function q(){!D&&B.current&&(B.current.value="");const e=Object.assign({},B.current,{value:""});d({target:e,type:"change"}),p(),Z(!1),function(e){const t=e.current||e;t&&t.focus&&document.activeElement!==t&&t.focus()}(B)}return D!==F&&(Z(!!D),W(D)),g().createElement("div",{role:"search","aria-label":_,className:G},g().createElement("div",{"aria-labelledby":A?N:void 0,role:A?"button":void 0,className:`${T}--search-magnifier`,onClick:A,onKeyDown:function(e){(z(e,I)||z(e,j))&&(e.stopPropagation(),A&&A(e))},tabIndex:A&&!s?0:-1,ref:V,"aria-expanded":!(!A||!s)||void 0,"aria-controls":A?N:void 0},g().createElement(re,{icon:v})),g().createElement("label",{id:$,htmlFor:N,className:`${T}--label`},c),g().createElement("input",f({autoComplete:n,className:`${T}--search-input`,defaultValue:i,disabled:a,role:C,ref:H,id:N,onChange:U([d,function(e){Z(""!==e.target.value)}]),onKeyDown:U([h,function(e){z(e,P)&&(e.stopPropagation(),B.current?.value?q():A&&s&&V.current?.focus())}]),placeholder:_,type:x,value:D,tabIndex:A&&!s?-1:void 0},k)),g().createElement("button",{"aria-label":o,className:K,disabled:a,onClick:q,title:o,type:"button"},te||(te=g().createElement(Q.x8,null))))}));function re(e){let{icon:t}=e;const n=w();return t?g().createElement(t,{className:`${n}--search-magnifier-icon`}):g().createElement(X,{className:`${n}--search-magnifier-icon`})}ne.displayName="Search",ne.propTypes={autoComplete:A().string,className:A().string,closeButtonLabelText:A().string,defaultValue:A().oneOfType([A().string,A().number]),disabled:A().bool,id:A().string,isExpanded:A().bool,labelText:A().node.isRequired,light:J(A().bool),onChange:A().func,onClear:A().func,onExpand:A().func,onKeyDown:A().func,placeholder:A().string,renderIcon:A().oneOfType([A().func,A().object]),role:A().string,size:A().oneOf(["sm","md","lg"]),type:A().string,value:A().oneOfType([A().string,A().number])},re.propTypes={icon:A().oneOfType([A().func,A().object])};const oe=(0,m.createContext)(null);function ie(e){let{as:t,children:n,dir:r="auto",...o}=e;const i=(0,m.useContext)(oe),a={},s=t??"span",l={...i};if(i){const{direction:e,getTextDirection:t}=i;if(t&&t.current){const r=function(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}(n),o=t.current(r);e!==o?(a.dir=o,l.direction=o):"auto"===e&&(a.dir=o)}else e!==r?(a.dir=r,l.direction=r):"auto"===e&&(a.dir=r)}else a.dir=r,l.direction=r;return g().createElement(oe.Provider,{value:l},g().createElement(s,f({},o,a),n))}var ae;ie.propTypes={as:A().oneOfType([A().func,A().string,A().elementType]),children:A().node.isRequired,dir:A().oneOf(["ltr","rtl","auto"])};const se=T(),le={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"},ce=e=>{let{children:t,className:n,id:r,type:o,filter:i,renderIcon:a,title:s="Clear filter",disabled:l,onClose:c,size:u,as:d,...p}=e;const h=w(),A=r||`tag-${se()}`,m=b()(`${h}--tag`,n,{[`${h}--tag--disabled`]:l,[`${h}--tag--filter`]:i,[`${h}--tag--${u}`]:u,[`${h}--layout--size-${u}`]:u,[`${h}--tag--${o}`]:o,[`${h}--tag--interactive`]:p.onClick&&!i}),_=void 0!==o&&o in Object.keys(le)?le[o]:"",v=e=>{c&&(e.stopPropagation(),c(e))};if(i){const e=d??"div";return g().createElement(e,f({className:m,id:A},p),g().createElement(ie,{className:`${h}--tag__label`,title:"string"==typeof t?t:void 0},null!=t?t:_),g().createElement("button",{type:"button",className:`${h}--tag__close-icon`,onClick:v,disabled:l,"aria-label":s,title:s},ae||(ae=g().createElement(Q.x8,null))))}const y=d??(p.onClick?"button":"div");return g().createElement(y,f({disabled:"button"===y?l:null,className:m,id:A},p),a?g().createElement("div",{className:`${h}--tag__custom-icon`},g().createElement(a,null)):"",g().createElement(ie,{title:"string"==typeof t?t:void 0},null!=t?t:_))};var ue,de,pe,fe;ce.propTypes={as:A().elementType,children:A().node,className:A().string,disabled:A().bool,filter:A().bool,id:A().string,onClose:A().func,renderIcon:A().oneOfType([A().func,A().object]),size:A().oneOf(["sm","md"]),title:A().string,type:A().oneOf(Object.keys(le))},Object.keys(le);const he=g().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return 16===r||"16"===r||"16px"===r?g().createElement(q.Z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...o},ue||(ue=g().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"})),n):20===r||"20"===r||"20px"===r?g().createElement(q.Z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...o},de||(de=g().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"})),n):24===r||"24"===r||"24px"===r?g().createElement(q.Z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...o},pe||(pe=g().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"})),n):g().createElement(q.Z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},fe||(fe=g().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"})),n)}));var Ae=n(7631),me=n(2074);const ge=g().forwardRef((function(e,t){let{children:n,className:r,href:o,disabled:i=!1,inline:a=!1,visited:s=!1,renderIcon:l,size:c,target:u,...d}=e;const p=w(),h={className:b()(`${p}--link`,r,{[`${p}--link--disabled`]:i,[`${p}--link--inline`]:a,[`${p}--link--visited`]:s,[`${p}--link--${c}`]:c}),rel:"_blank"===u?"noopener":void 0,target:u};return i?(h.role="link",h["aria-disabled"]=!0):h.href=o,g().createElement("a",f({ref:t},h,d),n,!a&&l&&g().createElement("div",{className:`${p}--link__icon`},g().createElement(l,null)))}));ge.displayName="Link",ge.propTypes={children:A().node,className:A().string,disabled:A().bool,href:A().string,inline:A().bool,renderIcon:A().oneOfType([A().func,A().object]),size:A().oneOf(["sm","md","lg"]),visited:A().bool};const _e=(0,m.createContext)(u);var be,ve,ye,Ce;A().node,A().objectOf(A().bool);const we=g().forwardRef((function(e,t){let{children:n,className:r,light:o=!1,...i}=e;const a=w(),s=b()(`${a}--tile`,o&&`${a}--tile--light`,r);return g().createElement("div",f({className:s,ref:t},i),n)}));we.displayName="Tile",we.propTypes={children:A().node,className:A().string,light:J(A().bool)};const Ee=g().forwardRef((function(e,t){let{children:n,className:r,clicked:o=!1,disabled:i,href:a,light:s,onClick:l=(()=>{}),onKeyDown:c=(()=>{}),renderIcon:u,...d}=e;const p=w(),h=b()(`${p}--tile`,`${p}--tile--clickable`,o&&`${p}--tile--is-clicked`,s&&`${p}--tile--light`,r),[A,_]=(0,m.useState)(o),v=("enable-v12-tile-default-icons",(0,m.useContext)(_e).enabled("enable-v12-tile-default-icons"));v&&(u||(u=he),i&&(u=Ae.jj));const y=b()({[`${p}--tile--icon`]:!v||v&&!i,[`${p}--tile--disabled-icon`]:v&&i});return g().createElement(ge,f({className:h,href:a,tabIndex:a||i?void 0:0,onClick:i?void 0:function(e){e?.persist?.(),_(!A),l(e)},onKeyDown:function(e){e?.persist?.(),L(e,[I,j])&&_(!A),c(e)},ref:t,disabled:i},d),n,u&&g().createElement(u,{className:y,"aria-hidden":"true"}))}));Ee.displayName="ClickableTile",Ee.propTypes={children:A().node,className:A().string,clicked:A().bool,disabled:A().bool,href:A().string,light:J(A().bool),onClick:A().func,onKeyDown:A().func,rel:A().string,renderIcon:A().oneOfType([A().func,A().object])};const xe=g().forwardRef((function(e,t){let{children:n,className:r,disabled:o,id:i,light:a,onClick:s=(()=>{}),onChange:l=(()=>{}),onKeyDown:c=(()=>{}),selected:u=!1,tabIndex:d=0,title:p="title",...h}=e;const A=w(),_=s,v=c,[y,C]=(0,m.useState)(u),[E,x]=(0,m.useState)(u),D=b()(`${A}--tile`,`${A}--tile--selectable`,y&&`${A}--tile--is-selected`,a&&`${A}--tile--light`,o&&`${A}--tile--disabled`,r);return u!==E&&(C(u),x(u)),g().createElement("div",f({className:D,onClick:o?void 0:function(e){e.preventDefault(),e?.persist?.(),C(!y),_(e),l(e)},role:"checkbox","aria-checked":y,onKeyDown:o?void 0:function(e){e?.persist?.(),L(e,[I,j])&&(e.preventDefault(),C(!y),l(e)),v(e)},tabIndex:o?void 0:d,ref:t,id:i,onChange:o?void 0:function(e){C(e.target.checked),l(e)},title:p},h),g().createElement("span",{className:`${A}--tile__checkmark ${A}--tile__checkmark--persistent`},y?be||(be=g().createElement(me.BV,null)):ve||(ve=g().createElement(me.XZ,null))),g().createElement(ie,{as:"label",htmlFor:i,className:`${A}--tile-content`},n))}));xe.displayName="SelectableTile",xe.propTypes={children:A().node,className:A().string,disabled:A().bool,id:A().string,light:J(A().bool),name:A().string,onChange:A().func,onClick:A().func,onKeyDown:A().func,selected:A().bool,tabIndex:A().number,title:A().string,value:A().oneOfType([A().string,A().number]).isRequired};const De=g().forwardRef((function(e,t){let{tabIndex:n=0,className:r,children:o,expanded:i=!1,tileMaxHeight:a=0,tilePadding:s=0,onClick:l,onKeyUp:c,tileCollapsedIconText:u="Interact to expand Tile",tileExpandedIconText:d="Interact to collapse Tile",tileCollapsedLabel:p,tileExpandedLabel:h,light:A,..._}=e;const[C,E]=(0,m.useState)(a),[x,D]=(0,m.useState)(s),[k,O]=(0,m.useState)(i),[T,S]=(0,m.useState)(a),[B,H]=(0,m.useState)(s),[V,M]=(0,m.useState)(i),[z,P]=(0,m.useState)(!0),Z=(0,m.useRef)(null),F=(0,m.useRef)(null),W=(0,m.useRef)(null),G=(0,m.useRef)(null),K=y([t,G]),Q=w();function q(){V&&W.current&&E(W.current.getBoundingClientRect()?.height),Z.current&&E(Z.current.getBoundingClientRect().height)}function X(e){e?.persist?.(),M(!V),q()}function Y(e){e.target!==G.current&&L(e,[I,j])&&e.preventDefault()}i!==k&&(M(i),O(i),q()),a!==T&&(E(a),S(a)),s!==B&&(D(s),H(s));const J=b()(`${Q}--tile`,`${Q}--tile--expandable`,{[`${Q}--tile--is-expanded`]:V,[`${Q}--tile--light`]:A},r),ee=b()(`${Q}--tile`,`${Q}--tile--expandable`,`${Q}--tile--expandable--interactive`,V&&`${Q}--tile--is-expanded`,A&&`${Q}--tile--light`,r),te=b()(`${Q}--tile__chevron`,`${Q}--tile__chevron--interactive`),ne=g().Children.toArray(o);v((()=>{if(!G.current||!Z.current)return;const e=window.getComputedStyle(G.current,null),{current:t}=Z,{height:n}=t.getBoundingClientRect(),r=parseInt(e.getPropertyValue("padding-top"),10),o=parseInt(e.getPropertyValue("padding-bottom"),10);E(n),D(r+o)}),[C]),v((()=>{Z.current&&F.current&&(N(F.current)||$(F.current)||N(Z.current)||$(Z.current)||P(!1))}),[]),v((()=>{G.current&&(G.current.style.maxHeight=V?"":C+x+"px")}),[V,C,x]),(0,m.useEffect)((()=>{if(!Z.current)return;const e=new ResizeObserver((e=>{const[t]=e;E(t.contentRect.height)}));return e.observe(Z.current),()=>e.disconnect()}),[]);const re=R("expandable-tile-interactive");return z?g().createElement("div",f({ref:K,className:ee},_),g().createElement("div",{ref:W},g().createElement("div",{ref:Z,className:`${Q}--tile-content`},ne[0]),g().createElement("button",{type:"button","aria-expanded":V,"aria-controls":re,onKeyUp:U([c,Y]),onClick:U([l,X]),"aria-label":V?d:u,className:te},ye||(ye=g().createElement(me._M,null))),g().createElement("div",{ref:F,className:`${Q}--tile-content`,id:re},ne[1]))):g().createElement("button",f({type:"button",ref:K,className:J,"aria-expanded":V,title:V?d:u},_,{onKeyUp:U([c,Y]),onClick:U([l,X]),tabIndex:n}),g().createElement("div",{ref:W},g().createElement("div",{ref:Z,className:`${Q}--tile-content`},ne[0]),g().createElement("div",{className:`${Q}--tile__chevron`},g().createElement("span",null,V?h:p),Ce||(Ce=g().createElement(me._M,null))),g().createElement("div",{ref:F,className:`${Q}--tile-content`},ne[1])))}));De.propTypes={children:A().node,className:A().string,expanded:A().bool,id:A().string,light:J(A().bool),onClick:A().func,onKeyUp:A().func,tabIndex:A().number,tileCollapsedIconText:A().string,tileCollapsedLabel:A().string,tileExpandedIconText:A().string,tileExpandedLabel:A().string},De.displayName="ExpandableTile";const ke=g().forwardRef((function(e,t){let{children:n}=e;const r=w();return g().createElement("span",{ref:t,className:`${r}--tile-content__above-the-fold`},n)}));ke.propTypes={children:A().node},ke.displayName="TileAboveTheFoldContent";const Oe=g().forwardRef((function(e,t){let{children:n}=e;const r=w();return g().createElement("span",{ref:t,className:`${r}--tile-content__below-the-fold`},n)}));Oe.propTypes={children:A().node},Oe.displayName="TileBelowTheFoldContent";const Te=(Se={"aria-label":A().string,"aria-labelledby":A().string},Object.keys(Se).reduce(((e,t)=>{return{...e,[t]:(n=Se[t],function(e,t,r){for(var o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];return n(e,t,r,...i)})};var n}),{}));var Se;const Be=g().forwardRef((function(e,t){let{"aria-label":n,"aria-labelledby":r,children:o,className:i,onClick:a,isActive:s,tooltipAlignment:l,...c}=e;const u=w(),d=b()({[i]:!!i,[`${u}--header__action`]:!0,[`${u}--header__action--active`]:s}),p={"aria-label":n,"aria-labelledby":r};return g().createElement(W,f({},c,p,{className:d,onClick:a,type:"button",hasIconOnly:!0,iconDescription:n,tooltipPosition:"bottom",tooltipAlignment:l,ref:t}),o)}));Be.propTypes={...Te,children:A().node.isRequired,className:A().string,isActive:A().bool,onClick:A().func,tooltipAlignment:A().oneOf(["start","center","end"])},Be.displayName="HeaderGlobalAction";var He=Be;const Ve=g().createContext(1),Me=["one","two","three"],Re=Me.length-1,Ne=g().forwardRef((function(e,t){let{as:n="div",className:r,children:o,level:i,...a}=e;const s=g().useContext(Ve),l=i??s,c=w(),u=b()(`${c}--layer-${Me[l]}`,r),d=Math.max(0,Math.min(l+1,Re));return g().createElement(Ve.Provider,{value:d},g().createElement(n,f({ref:t},a,{className:u}),o))}));Ne.propTypes={as:A().oneOfType([A().func,A().string,A().elementType]),children:A().node,className:A().string,level:A().oneOf([0,1,2])}},2779:(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];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},9010:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(272),o=n.n(r),i=n(2609),a=n.n(i)()(o());a.push([e.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-patient-flags__card-header__desktopHeader___GveXk,.-esm-patient-flags__card-header__tabletHeader___iKL3m{display:flex;justify-content:space-between;align-items:center;padding:.75rem 0 .75rem 1rem;background-color:#fff}.-esm-patient-flags__card-header__desktopHeader___GveXk h4:after,.-esm-patient-flags__card-header__tabletHeader___iKL3m h4:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-patient-flags__card-header__desktopHeader___GveXk{height:3rem}.-esm-patient-flags__card-header__desktopHeader___GveXk h4{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252}.-esm-patient-flags__card-header__tabletHeader___iKL3m{height:4.5rem}.-esm-patient-flags__card-header__tabletHeader___iKL3m h4{font-size:var(--cds-heading-03-font-size, 1.25rem);font-weight:var(--cds-heading-03-font-weight, 400);line-height:var(--cds-heading-03-line-height, 1.4);letter-spacing:var(--cds-heading-03-letter-spacing, 0);color:#525252}html[dir=rtl] .-esm-patient-flags__card-header__desktopHeader___GveXk,html[dir=rtl] .-esm-patient-flags__card-header__tabletHeader___iKL3m{text-align:right;padding:.75rem 1rem .75rem 0}',"",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./../../node_modules/@openmrs/esm-patient-common-lib/src/cards/card-header.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CCnDF,+GACE,YAAA,CACA,6BAAA,CACA,kBAAA,CACA,4BAAA,CACA,qBDFc,CCId,iIACE,UAAA,CACA,aAAA,CACA,UAAA,CACA,mBAAA,CACA,2CAAA,CAIJ,wDACE,WAAA,CACA,2DC40BE,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CD10BA,aDnBM,CCuBV,uDACE,aAAA,CACA,0DCo0BE,kDAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CDl0BA,aD3BM,CCiCR,2IACE,gBAAA,CACA,4BAAA",sourceRoot:""}]),a.locals={desktopHeader:"-esm-patient-flags__card-header__desktopHeader___GveXk",tabletHeader:"-esm-patient-flags__card-header__tabletHeader___iKL3m"};const s=a},8686:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(272),o=n.n(r),i=n(2609),a=n.n(i)()(o());a.push([e.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-patient-flags__empty-state__action___LOm6z{margin-bottom:.5rem}.-esm-patient-flags__empty-state__content___dTpXO{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px);color:#525252;margin-top:1rem;margin-bottom:.5rem}.-esm-patient-flags__empty-state__desktopHeading___iA5_A h4{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252}.-esm-patient-flags__empty-state__tabletHeading___VhDQa h4{font-size:var(--cds-heading-03-font-size, 1.25rem);font-weight:var(--cds-heading-03-font-weight, 400);line-height:var(--cds-heading-03-line-height, 1.4);letter-spacing:var(--cds-heading-03-letter-spacing, 0);color:#525252}.-esm-patient-flags__empty-state__desktopHeading___iA5_A,.-esm-patient-flags__empty-state__tabletHeading___VhDQa{text-align:left;text-transform:capitalize;margin-bottom:1rem}.-esm-patient-flags__empty-state__desktopHeading___iA5_A h4:after,.-esm-patient-flags__empty-state__tabletHeading___VhDQa h4:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-patient-flags__empty-state__heading___X_yCc:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-patient-flags__empty-state__tile___jIU4a{text-align:center;border:1px solid #e0e0e0}',"",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./../../node_modules/@openmrs/esm-patient-common-lib/src/empty-state/empty-state.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CCnDF,iDACE,mBCgBW,CDbb,kDE01BI,2DAAA,CAAA,0DAAA,CAAA,8DAAA,CAAA,mEAAA,CFx1BF,aDLQ,CCMR,eCoBW,CDnBX,mBCSW,CDLX,4DEk1BE,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CFh1BA,aDbM,CCkBR,2DE20BE,kDAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CFz0BA,aDpBM,CCwBV,iHACE,eAAA,CACA,yBAAA,CACA,kBCDW,CDGX,mIACE,UAAA,CACA,aAAA,CACA,UAAA,CACA,mBAAA,CACA,2CAAA,CAIJ,wDACE,UAAA,CACA,aAAA,CACA,UAAA,CACA,mBAAA,CACA,2CAAA,CAGF,+CACE,iBAAA,CACA,wBAAA",sourceRoot:""}]),a.locals={action:"-esm-patient-flags__empty-state__action___LOm6z",content:"-esm-patient-flags__empty-state__content___dTpXO",desktopHeading:"-esm-patient-flags__empty-state__desktopHeading___iA5_A",tabletHeading:"-esm-patient-flags__empty-state__tabletHeading___VhDQa",heading:"-esm-patient-flags__empty-state__heading___X_yCc",tile:"-esm-patient-flags__empty-state__tile___jIU4a"};const s=a},6970:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(272),o=n.n(r),i=n(2609),a=n.n(i)()(o());a.push([e.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-patient-flags__error-state__errorMessage___qND1G{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);margin-top:2.25rem;margin-bottom:.5rem}.-esm-patient-flags__error-state__errorCopy___EO3m2{margin-bottom:.5rem;font-size:var(--cds-body-01-font-size, 0.875rem);font-weight:var(--cds-body-01-font-weight, 400);line-height:var(--cds-body-01-line-height, 1.42857);letter-spacing:var(--cds-body-01-letter-spacing, 0.16px);color:#525252}.-esm-patient-flags__error-state__desktopHeading___QC3oF h4{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252}.-esm-patient-flags__error-state__tabletHeading___U5Hf5 h4{font-size:var(--cds-heading-03-font-size, 1.25rem);font-weight:var(--cds-heading-03-font-weight, 400);line-height:var(--cds-heading-03-line-height, 1.4);letter-spacing:var(--cds-heading-03-letter-spacing, 0);color:#525252}.-esm-patient-flags__error-state__desktopHeading___QC3oF,.-esm-patient-flags__error-state__tabletHeading___U5Hf5{text-align:left;text-transform:capitalize;margin-bottom:1rem}.-esm-patient-flags__error-state__desktopHeading___QC3oF h4:after,.-esm-patient-flags__error-state__tabletHeading___U5Hf5 h4:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-patient-flags__error-state__tile____mVKT{text-align:center;border:1px solid #e0e0e0}',"",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./../../node_modules/@openmrs/esm-patient-common-lib/src/error-state/error-state.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CCnDF,uDC81BI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CD31BF,kBAAA,CACA,mBEaW,CFVb,oDACE,mBESW,CD60BT,gDAAA,CAAA,+CAAA,CAAA,mDAAA,CAAA,wDAAA,CDp1BF,aDTQ,CCaR,4DCg1BE,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CD90BA,aDfM,CCoBR,2DCy0BE,kDAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CDv0BA,aDtBM,CC0BV,iHACE,eAAA,CACA,yBAAA,CACA,kBEHW,CFKX,mIACE,UAAA,CACA,aAAA,CACA,UAAA,CACA,mBAAA,CACA,2CAAA,CAIJ,+CACE,iBAAA,CACA,wBAAA",sourceRoot:""}]),a.locals={errorMessage:"-esm-patient-flags__error-state__errorMessage___qND1G",errorCopy:"-esm-patient-flags__error-state__errorCopy___EO3m2",desktopHeading:"-esm-patient-flags__error-state__desktopHeading___QC3oF",tabletHeading:"-esm-patient-flags__error-state__tabletHeading___U5Hf5",tile:"-esm-patient-flags__error-state__tile____mVKT"};const s=a},1167:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(272),o=n.n(r),i=n(2609),a=n.n(i)()(o());a.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-patient-flags__pagination__bodyShort01___ID5jB,.-esm-patient-flags__pagination__configurableLink___mTtvw{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px)}.-esm-patient-flags__pagination__desktop___XQVD2,.-esm-patient-flags__pagination__tablet___xanY5{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px);display:flex;justify-content:space-between;color:#525252;background-color:#fff;padding-left:1rem;align-items:center}.-esm-patient-flags__pagination__desktop___XQVD2 .cds--pagination{min-height:0rem;height:2rem;width:auto;border:none}.-esm-patient-flags__pagination__desktop___XQVD2 .cds--pagination .cds--select-input,.-esm-patient-flags__pagination__desktop___XQVD2 .cds--pagination .cds--btn,.-esm-patient-flags__pagination__desktop___XQVD2 .cds--pagination .cds--pagination__right{min-height:0rem;height:2rem}.-esm-patient-flags__pagination__tablet___xanY5 .cds--pagination{min-height:0rem;height:3rem;width:auto;border:none}.-esm-patient-flags__pagination__tablet___xanY5 .cds--pagination .cds--select-input,.-esm-patient-flags__pagination__tablet___xanY5 .cds--pagination .cds--btn,.-esm-patient-flags__pagination__tablet___xanY5 .cds--pagination .cds--pagination__right{min-height:0rem;height:3rem}.-esm-patient-flags__pagination__configurableLink___mTtvw{text-decoration:none;padding:0 .5rem}.-esm-patient-flags__pagination__pagination___iyW8v{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px);background-color:#fff;color:#525252;display:flex}div.-esm-patient-flags__pagination__pagination___iyW8v>.cds--pagination__left{display:none}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./../../node_modules/@openmrs/esm-patient-common-lib/src/pagination/pagination.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CCnDF,+GC81BI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CD11BJ,iGC01BI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CDx1BF,YAAA,CACA,6BAAA,CACA,aDPQ,CCQR,qBDZM,CCaN,iBAAA,CACA,kBAAA,CAGF,kEACE,eAAA,CACA,WAAA,CACA,UAAA,CACA,WAAA,CAEA,2PACE,eAAA,CACA,WAAA,CAIJ,iEACE,eAAA,CACA,WAAA,CACA,UAAA,CACA,WAAA,CAEA,wPACE,eAAA,CACA,WAAA,CAIJ,0DACE,oBAAA,CAEA,eAAA,CAGF,oDCkzBI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CDhzBF,qBDjDM,CCkDN,aD9CQ,CC+CR,YAAA,CAIA,8EACE,YAAA",sourceRoot:""}]),a.locals={bodyShort01:"-esm-patient-flags__pagination__bodyShort01___ID5jB",configurableLink:"-esm-patient-flags__pagination__configurableLink___mTtvw",desktop:"-esm-patient-flags__pagination__desktop___XQVD2",tablet:"-esm-patient-flags__pagination__tablet___xanY5",pagination:"-esm-patient-flags__pagination__pagination___iyW8v"};const s=a},7578:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(272),o=n.n(r),i=n(2609),a=n.n(i)()(o());a.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-patient-flags__siderail-nav-button__container___cDD8M{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100%;width:100%;color:#161616;max-width:none}.-esm-patient-flags__siderail-nav-button__container___cDD8M:hover{color:#525252}.-esm-patient-flags__siderail-nav-button__container___cDD8M>span{margin-top:.25rem;font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px);color:#525252}.-esm-patient-flags__siderail-nav-button__container___cDD8M svg{transform:scale(1.25)}.-esm-patient-flags__siderail-nav-button__elementContainer___AKqJ6{display:flex;align-items:center;position:relative}.-esm-patient-flags__siderail-nav-button__elementContainer___AKqJ6 .-esm-patient-flags__siderail-nav-button__countTag___PHvjz{position:absolute;font-family:IBMPlexSans;font-size:11px;font-weight:600;font-stretch:normal;font-style:normal;line-height:1.27;letter-spacing:.13px;text-align:center;color:#f4f4f4;background-color:#da1e28;padding:0 3px 0 4px;border-radius:4px;top:-6px;right:-6px}.omrs-breakpoint-gt-tablet .-esm-patient-flags__siderail-nav-button__active___W1QA7{border:.125rem solid;border-color:#007d79;border-color:var(--brand-03);border-radius:50%;background-color:#fff}.omrs-breakpoint-gt-tablet .-esm-patient-flags__siderail-nav-button__active___W1QA7:focus{border-color:var(--brand-03) !important}.omrs-breakpoint-gt-tablet .-esm-patient-flags__siderail-nav-button__container___cDD8M svg{transform:scale(1.25)}.omrs-breakpoint-lt-desktop .-esm-patient-flags__siderail-nav-button__active___W1QA7{background-color:#edf5ff;color:#0f62fe}.omrs-breakpoint-lt-desktop .-esm-patient-flags__siderail-nav-button__active___W1QA7:hover{color:#0f62fe}.omrs-breakpoint-lt-desktop .-esm-patient-flags__siderail-nav-button__active___W1QA7>span{color:#0f62fe;font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px)}.omrs-breakpoint-lt-desktop .-esm-patient-flags__siderail-nav-button__active___W1QA7 svg{fill:#0f62fe}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./../../node_modules/@openmrs/esm-patient-common-lib/src/siderail-nav-button/siderail-nav-button.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CCnDF,4DACE,YAAA,CACA,qBAAA,CACA,sBAAA,CACA,kBAAA,CACA,WAAA,CACA,UAAA,CACA,aDPM,CCQN,cAAA,CAEA,kEACE,aDVM,CCaR,iEACE,iBCHS,CCk1BT,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CF70BA,aDhBM,CCmBR,gEACE,qBAAA,CAIJ,mEACE,YAAA,CACA,kBAAA,CACA,iBAAA,CAEA,8HACE,iBAAA,CACC,uBAAA,CACD,cAAA,CACA,eAAA,CACA,mBAAA,CACA,iBAAA,CACA,gBAAA,CACA,oBAAA,CACA,iBAAA,CACA,aD5CI,CC6CJ,wBDzBK,CC0BL,mBAAA,CACA,iBAAA,CACA,QAAA,CACA,UAAA,CAMF,oFACE,oBAAA,CDRF,oBAAA,CACA,4BAAA,CCSE,iBAAA,CACA,qBD1DI,CC4DJ,0FACE,uCAAA,CAKF,2FACE,qBAAA,CAOJ,qFACE,wBDhEY,CCiEZ,aDxDa,CC0Db,2FACE,aD3DW,CC8Db,0FACE,aD/DW,CG60Bb,2DAAA,CAAA,0DAAA,CAAA,8DAAA,CAAA,mEAAA,CF1wBA,yFACE,YDpEW",sourceRoot:""}]),a.locals={container:"-esm-patient-flags__siderail-nav-button__container___cDD8M",elementContainer:"-esm-patient-flags__siderail-nav-button__elementContainer___AKqJ6",countTag:"-esm-patient-flags__siderail-nav-button__countTag___PHvjz",active:"-esm-patient-flags__siderail-nav-button__active___W1QA7"};const s=a},2609:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&a[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},272:e=>{"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),i="/*# ".concat(o," */"),a=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[t].concat(a).concat([i]).join("\n")}return[t].join("\n")}},8262:(e,t,n)=>{"use strict";var r=n(3586);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}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}},3980:(e,t,n)=>{e.exports=n(8262)()},3586:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6062: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=[],s=0;s<e.length;s++){var l=e[s],c=r.base?l[0]+r.base:l[0],u=i[c]||0,d="".concat(c," ").concat(u);i[c]=u+1;var p=n(d),f={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)t[p].references++,t[p].updater(f);else{var h=o(f,r);r.byIndex=s,t.splice(s,0,{identifier:d,updater:h,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 s=n(i[a]);t[s].references--}for(var l=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=l}}},6793: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)}},1173:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},7892:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},4036:e=>{"use strict";e.exports=function(e){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)}}}},2464: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))}}},7809:(e,t,n)=>{"use strict";n.d(t,{NT:()=>v});var r=n(5206),o=n.n(r),i=n(2870),a=n(6062),s=n.n(a),l=n(4036),c=n.n(l),u=n(6793),d=n.n(u),p=n(7892),f=n.n(p),h=n(1173),A=n.n(h),m=n(2464),g=n.n(m),_=n(9010),b={};b.styleTagTransform=g(),b.setAttributes=f(),b.insert=d().bind(null,"head"),b.domAPI=c(),b.insertStyleElement=A(),s()(_.Z,b),_.Z&&_.Z.locals&&_.Z.locals,n(8744),n(4924),n(1492);var v=function(e){var t=e.width,n=void 0===t?"64":t,r=e.height,i=void 0===r?"64":r;return o().createElement("svg",{width:n,height:i,viewBox:"0 0 64 64"},o().createElement("title",null,"Empty data illustration"),o().createElement("g",{fill:"none",fillRule:"evenodd"},o().createElement("path",{d:"M38.133 13.186H21.947c-.768.001-1.39.623-1.39 1.391V50.55l-.186.057-3.97 1.216a.743.743 0 01-.927-.493L3.664 12.751a.742.742 0 01.492-.926l6.118-1.874 17.738-5.43 6.119-1.873a.741.741 0 01.926.492L38.076 13l.057.186z",fill:"#F4F4F4"}),o().createElement("path",{d:"M41.664 13L38.026 1.117A1.576 1.576 0 0036.056.07l-8.601 2.633-17.737 5.43-8.603 2.634a1.578 1.578 0 00-1.046 1.97l12.436 40.616a1.58 1.58 0 001.969 1.046l5.897-1.805.185-.057v-.194l-.185.057-5.952 1.822a1.393 1.393 0 01-1.737-.923L.247 12.682a1.39 1.39 0 01.923-1.738L9.772 8.31 27.51 2.881 36.112.247a1.393 1.393 0 011.737.923L41.47 13l.057.186h.193l-.057-.185z",fill:"#8D8D8D"}),o().createElement("path",{d:"M11.378 11.855a.836.836 0 01-.798-.59L9.385 7.361a.835.835 0 01.554-1.042l16.318-4.996a.836.836 0 011.042.554l1.195 3.902a.836.836 0 01-.554 1.043l-16.318 4.995a.831.831 0 01-.244.037z",fill:"#C6C6C6"}),o().createElement("circle",{fill:"#C6C6C6",cx:17.636,cy:2.314,r:1.855}),o().createElement("circle",{fill:"#FFF",fillRule:"nonzero",cx:17.636,cy:2.314,r:1.175}),o().createElement("path",{d:"M55.893 53.995H24.544a.79.79 0 01-.788-.789V15.644a.79.79 0 01.788-.788h31.349a.79.79 0 01.788.788v37.562a.79.79 0 01-.788.789z",fill:"#F4F4F4"}),o().createElement("path",{d:"M41.47 13H21.948a1.579 1.579 0 00-1.576 1.577V52.4l.185-.057V14.577c.001-.768.623-1.39 1.391-1.39h19.581L41.471 13zm17.02 0H21.947a1.579 1.579 0 00-1.576 1.577v42.478c0 .87.706 1.576 1.576 1.577H58.49a1.579 1.579 0 001.576-1.577V14.577a1.579 1.579 0 00-1.576-1.576zm1.39 44.055c0 .768-.622 1.39-1.39 1.392H21.947c-.768-.001-1.39-.624-1.39-1.392V14.577c0-.768.622-1.39 1.39-1.39H58.49c.768 0 1.39.622 1.39 1.39v42.478z",fill:"#8D8D8D"}),o().createElement("path",{d:"M48.751 17.082H31.686a.836.836 0 01-.835-.835v-4.081c0-.46.374-.834.835-.835H48.75c.461 0 .834.374.835.835v4.08c0 .462-.374.835-.835.836z",fill:"#C6C6C6"}),o().createElement("circle",{fill:"#C6C6C6",cx:40.218,cy:9.755,r:1.855}),o().createElement("circle",{fill:"#FFF",fillRule:"nonzero",cx:40.218,cy:9.755,r:1.13})))},y=n(8686),C={};C.styleTagTransform=g(),C.setAttributes=f(),C.insert=d().bind(null,"head"),C.domAPI=c(),C.insertStyleElement=A(),s()(y.Z,C),y.Z&&y.Z.locals&&y.Z.locals;var w=n(6970),E={};E.styleTagTransform=g(),E.setAttributes=f(),E.insert=d().bind(null,"head"),E.domAPI=c(),E.insertStyleElement=A(),s()(w.Z,E),w.Z&&w.Z.locals&&w.Z.locals;var x=function(e,t){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},x(e,t)};function D(e,t){function n(){this.constructor=e}x(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function k(e){return"function"==typeof e}var O=!1,T={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e&&(new Error).stack,O=e},get useDeprecatedSynchronousErrorHandling(){return O}};function S(e){setTimeout((function(){throw e}),0)}var B={closed:!0,next:function(e){},error:function(e){if(T.useDeprecatedSynchronousErrorHandling)throw e;S(e)},complete:function(){}},H=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}(),V=function(){function e(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),M=function(){function e(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return e.prototype.unsubscribe=function(){var t;if(!this.closed){var n,r=this,o=r._parentOrParents,i=r._ctorUnsubscribe,a=r._unsubscribe,s=r._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,o instanceof e)o.remove(this);else if(null!==o)for(var l=0;l<o.length;++l)o[l].remove(this);if(k(a)){i&&(this._unsubscribe=void 0);try{a.call(this)}catch(e){t=e instanceof V?R(e.errors):[e]}}if(H(s)){l=-1;for(var c=s.length;++l<c;){var u=s[l];if(null!==(n=u)&&"object"==typeof n)try{u.unsubscribe()}catch(e){t=t||[],e instanceof V?t=t.concat(R(e.errors)):t.push(e)}}}if(t)throw new V(t)}},e.prototype.add=function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var r=n;(n=new e)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var o=n._parentOrParents;if(null===o)n._parentOrParents=this;else if(o instanceof e){if(o===this)return n;n._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return n;o.push(this)}var i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.EMPTY=function(e){return e.closed=!0,e}(new e),e}();function R(e){return e.reduce((function(e,t){return e.concat(t instanceof V?t.errors:t)}),[])}var N=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),$=function(e){function t(n,r,o){var i=e.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=B;break;case 1:if(!n){i.destination=B;break}if("object"==typeof n){n instanceof t?(i.syncErrorThrowable=n.syncErrorThrowable,i.destination=n,n.add(i)):(i.syncErrorThrowable=!0,i.destination=new L(i,n));break}default:i.syncErrorThrowable=!0,i.destination=new L(i,n,r,o)}return i}return D(t,e),t.prototype[N]=function(){return this},t.create=function(e,n,r){var o=new t(e,n,r);return o.syncErrorThrowable=!1,o},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},t}(M),L=function(e){function t(t,n,r,o){var i,a=e.call(this)||this;a._parentSubscriber=t;var s=a;return k(n)?i=n:n&&(i=n.next,r=n.error,o=n.complete,n!==B&&(k((s=Object.create(n)).unsubscribe)&&a.add(s.unsubscribe.bind(s)),s.unsubscribe=a.unsubscribe.bind(a))),a._context=s,a._next=i,a._error=r,a._complete=o,a}return D(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;T.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=T.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):S(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;S(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};T.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),T.useDeprecatedSynchronousErrorHandling)throw e;S(e)}},t.prototype.__tryOrSetError=function(e,t,n){if(!T.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(t){return T.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):(S(t),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}($),z=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function I(e){return e}var P=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this.operator,o=function(e,t,n){if(e){if(e instanceof $)return e;if(e[N])return e[N]()}return e||t||n?new $(e,t,n):new $(B)}(e,t,n);if(r?o.add(r.call(o,this.source)):o.add(this.source||T.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),T.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){T.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e,n=t.closed,r=t.destination,o=t.isStopped;if(n||o)return!1;e=r&&r instanceof $?r:null}return!0}(e)?e.error(t):console.warn(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=j(t))((function(t,r){var o;o=n.subscribe((function(t){try{e(t)}catch(e){r(e),o&&o.unsubscribe()}}),r,t)}))},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[z]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:(0===(n=e).length?I:1===n.length?n[0]:function(e){return n.reduce((function(e,t){return t(e)}),e)})(this);var n},e.prototype.toPromise=function(e){var t=this;return new(e=j(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function j(e){if(e||(e=T.Promise||Promise),!e)throw new Error("no Promise impl found");return e}var Z=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}(),F=function(e){function t(t,n){var r=e.call(this)||this;return r.subject=t,r.subscriber=n,r.closed=!1,r}return D(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(M),U=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=t,n}return D(t,e),t}($),W=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return D(t,e),t.prototype[N]=function(){return new U(this)},t.prototype.lift=function(e){var t=new G(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new Z;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].next(e)},t.prototype.error=function(e){if(this.closed)throw new Z;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new Z;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new Z;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new Z;return this.hasError?(e.error(this.thrownError),M.EMPTY):this.isStopped?(e.complete(),M.EMPTY):(this.observers.push(e),new F(this,e))},t.prototype.asObservable=function(){var e=new P;return e.source=this,e},t.create=function(e,t){return new G(e,t)},t}(P),G=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return D(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):M.EMPTY},t}(W);new(function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return D(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Z;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(W))(null);var K=(0,i.createGlobalStore)("nav-groups",{navGroups:[]});(0,i.createUseStore)(K);(0,i.createGlobalStore)("order-basket",{items:{},postDataPrepFunctions:{}});var Q=n(1167),q={};q.styleTagTransform=g(),q.setAttributes=f(),q.insert=d().bind(null,"head"),q.domAPI=c(),q.insertStyleElement=A(),s()(Q.Z,q),Q.Z&&Q.Z.locals&&Q.Z.locals;var X=n(3255);(0,n(4729).xD)(X.ZP,(e=>(t,n,r)=>(r.revalidateOnFocus=!1,r.revalidateIfStale=!1,r.revalidateOnReconnect=!1,e(t,n,r)))),n(6081);var Y=n(7578),J={};J.styleTagTransform=g(),J.setAttributes=f(),J.insert=d().bind(null,"head"),J.domAPI=c(),J.insertStyleElement=A(),s()(Y.Z,J),Y.Z&&Y.Z.locals&&Y.Z.locals},452:(e,t,n)=>{"use strict";var r=n(5206),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,s=r.useLayoutEffect,l=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 s((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]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},3100:(e,t,n)=>{"use strict";e.exports=n(452)},4729:(e,t,n)=>{"use strict";n.d(t,{$l:()=>a,BN:()=>$,DY:()=>h,J$:()=>U,JN:()=>v,LI:()=>T,PM:()=>c,W6:()=>k,i_:()=>i,ko:()=>X,kw:()=>O,mf:()=>l,o8:()=>s,qC:()=>H,s6:()=>q,sj:()=>N,u3:()=>M,u_:()=>j,w6:()=>D,xD:()=>Y});var r=n(5206);const o=()=>{},i=o(),a=Object,s=e=>e===i,l=e=>"function"==typeof e,c=(e,t)=>({...e,...t}),u=e=>l(e.then),d=new WeakMap;let p=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=d.get(e),o)return o;if(o=++p+"~",d.set(e,o),n==Array){for(o="@",i=0;i<e.length;i++)o+=f(e[i])+",";d.set(e,o)}if(n==a){o="#";const t=a.keys(e).sort();for(;!s(i=t.pop());)s(e[i])||(o+=i+":"+f(e[i])+",");d.set(e,o)}}return o},h=new WeakMap,A={},m={},g="undefined",_=typeof window!=g,b=typeof document!=g,v=(e,t)=>{const n=h.get(e);return[()=>!s(t)&&e.get(t)||A,r=>{if(!s(t)){const o=e.get(t);t in m||(m[t]=o),n[5](t,c(o,r),o||A)}},n[6],()=>!s(t)&&t in m?m[t]:!s(t)&&e.get(t)||A]};let y=!0;const[C,w]=_&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[o,o],E={isOnline:()=>y,isVisible:()=>{const e=b&&document.visibilityState;return s(e)||"hidden"!==e}},x={initFocus:e=>(b&&document.addEventListener("visibilitychange",e),C("focus",e),()=>{b&&document.removeEventListener("visibilitychange",e),w("focus",e)}),initReconnect:e=>{const t=()=>{y=!0,e()},n=()=>{y=!1};return C("online",t),C("offline",n),()=>{w("online",t),w("offline",n)}}},D=!r.useId,k=!_||"Deno"in window,O=e=>_&&typeof window.requestAnimationFrame!=g?window.requestAnimationFrame(e):setTimeout(e,1),T=k?r.useEffect:r.useLayoutEffect,S="undefined"!=typeof navigator&&navigator.connection,B=!k&&S&&(["slow-2g","2g"].includes(S.effectiveType)||S.saveData),H=e=>{if(l(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 V=0;const M=()=>++V,R=2;var N={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:R,RECONNECT_EVENT:1};async function $(...e){const[t,n,r,o]=e,a=c({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{});let d=a.populateCache;const p=a.rollbackOnError;let f=a.optimisticData;const A=!1!==a.revalidate,m=a.throwOnError;if(l(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(g))}return g(n);async function g(n){const[o]=H(n);if(!o)return;const[a,c]=v(t,o),[g,_,b,y]=h.get(t),C=()=>{const e=g[o];return A&&(delete b[o],delete y[o],e&&e[0])?e[0](R).then((()=>a().data)):a().data};if(e.length<3)return C();let w,E=r;const x=M();_[o]=[x,0];const D=!s(f),k=a(),O=k.data,T=k._c,S=s(T)?O:T;if(D&&(f=l(f)?f(S,O):f,c({data:f,_c:S})),l(E))try{E=E(S)}catch(e){w=e}if(E&&u(E)){if(E=await E.catch((e=>{w=e})),x!==_[o][0]){if(w)throw w;return E}w&&D&&(e=>"function"==typeof p?p(e):!1!==p)(w)&&(d=!0,c({data:S,_c:i}))}if(d&&!w)if(l(d)){const e=d(E,S);c({data:e,error:i,_c:i})}else c({data:E,error:i,_c:i});if(_[o][1]=M(),Promise.resolve(C()).then((()=>{c({_c:i})})),!w)return E;if(m)throw w}}const L=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},z=(e,t)=>{if(!h.has(e)){const n=c(x,t),r={},a=$.bind(i,e);let s=o;const l={},u=(e,t)=>{const n=l[e]||[];return l[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},d=(t,n,r)=>{e.set(t,n);const o=l[t];if(o)for(const e of o)e(n,r)},p=()=>{if(!h.has(e)&&(h.set(e,[r,{},{},{},a,d,u]),!k)){const t=n.initFocus(setTimeout.bind(i,L.bind(i,r,0))),o=n.initReconnect(setTimeout.bind(i,L.bind(i,r,1)));s=()=>{t&&t(),o&&o(),h.delete(e)}}};return p(),[e,a,p,s]}return[e,h.get(e)[4]]},[I,P]=z(new Map),j=c({onLoadingSlow:o,onSuccess:o,onError:o,onErrorRetry:(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,l=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!s(i)&&a>i||setTimeout(r,l,o)},onDiscarded:o,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:B?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:B?5e3:3e3,compare:(e,t)=>f(e)==f(t),isPaused:()=>!1,cache:I,mutate:P,fallback:{}},E),Z=(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},F=(0,r.createContext)({}),U=e=>{const{value:t}=e,n=(0,r.useContext)(F),o=l(t),a=(0,r.useMemo)((()=>o?t(n):t),[o,n,t]),s=(0,r.useMemo)((()=>o?a:Z(n,a)),[o,n,a]),u=a&&a.provider,d=(0,r.useRef)(i);u&&!d.current&&(d.current=z(u(s.cache||I),a));const p=d.current;return p&&(s.cache=p[0],s.mutate=p[1]),T((()=>{if(p)return p[2]&&p[2](),p[3]}),[]),(0,r.createElement)(F.Provider,c(e,{value:s}))},W=_&&window.__SWR_DEVTOOLS_USE__,G=W?window.__SWR_DEVTOOLS_USE__:[],K=e=>l(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],Q=G.concat((e=>(t,n,r)=>e(t,n&&((...e)=>{const[r]=H(t),[,,,o]=h.get(I);if(r.startsWith("$inf$"))return n(...e);const i=o[r];return s(i)?n(...e):(delete o[r],i)}),r))),q=e=>function(...t){const n=c(j,(0,r.useContext)(F)),[o,i,a]=K(t),s=Z(n,a);let l=e;const{use:u}=s,d=(u||[]).concat(Q);for(let e=d.length;e--;)l=d[e](l);return l(o,i||s.fetcher||null,s)},X=(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())}},Y=(e,t)=>(...n)=>{const[r,o,i]=K(n),a=(i.use||[]).concat(t);return e(r,o,{...i,use:a})};W&&(window.__SWR_DEVTOOLS_REACT__=r)},3255:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>l});var r=n(5206),o=n(3100),i=n(4729);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)}),s={dedupe:!0},l=(i.$l.defineProperty(i.J$,"defaultValue",{value:i.u_}),(0,i.s6)(((e,t,n)=>{const{cache:l,compare:c,suspense:u,fallbackData:d,revalidateOnMount:p,revalidateIfStale:f,refreshInterval:h,refreshWhenHidden:A,refreshWhenOffline:m,keepPreviousData:g}=n,[_,b,v,y]=i.DY.get(l),[C,w]=(0,i.qC)(e),E=(0,r.useRef)(!1),x=(0,r.useRef)(!1),D=(0,r.useRef)(C),k=(0,r.useRef)(t),O=(0,r.useRef)(n),T=()=>O.current,S=()=>T().isVisible()&&T().isOnline(),[B,H,V,M]=(0,i.JN)(l,C),R=(0,r.useRef)({}).current,N=(0,i.o8)(d)?n.fallback[C]:d,$=(e,t)=>{for(const n in R){const r=n;if("data"===r){if(!c(e[r],t[r])){if(!(0,i.o8)(e[r]))return!1;if(!c(W,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},L=(0,r.useMemo)((()=>{const e=!!C&&!!t&&((0,i.o8)(p)?!T().isPaused()&&!u&&(!!(0,i.o8)(f)||f):p),n=t=>{const n=(0,i.PM)(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=B(),o=M(),a=n(r),s=r===o?a:n(o);let l=a;return[()=>{const e=n(B());return $(e,l)?(l.data=e.data,l.isLoading=e.isLoading,l.isValidating=e.isValidating,l.error=e.error,l):(l=e,e)},()=>s]}),[l,C]),z=(0,o.useSyncExternalStore)((0,r.useCallback)((e=>V(C,((t,n)=>{$(n,t)||e()}))),[l,C]),L[0],L[1]),I=!E.current,P=_[C]&&_[C].length>0,j=z.data,Z=(0,i.o8)(j)?N:j,F=z.error,U=(0,r.useRef)(Z),W=g?(0,i.o8)(j)?U.current:j:Z,G=!(P&&!(0,i.o8)(F))&&(I&&!(0,i.o8)(p)?p:!T().isPaused()&&(u?!(0,i.o8)(Z)&&f:(0,i.o8)(Z)||f)),K=!!(C&&t&&I&&G),Q=(0,i.o8)(z.isValidating)?K:z.isValidating,q=(0,i.o8)(z.isLoading)?K:z.isLoading,X=(0,r.useCallback)((async e=>{const t=k.current;if(!C||!t||x.current||T().isPaused())return!1;let r,o,a=!0;const s=e||{},l=!v[C]||!s.dedupe,u=()=>i.w6?!x.current&&C===D.current&&E.current:C===D.current,d={isValidating:!1,isLoading:!1},p=()=>{H(d)},f=()=>{const e=v[C];e&&e[1]===o&&delete v[C]},h={isValidating:!0};(0,i.o8)(B().data)&&(h.isLoading=!0);try{if(l&&(H(h),n.loadingTimeout&&(0,i.o8)(B().data)&&setTimeout((()=>{a&&u()&&T().onLoadingSlow(C,n)}),n.loadingTimeout),v[C]=[t(w),(0,i.u3)()]),[r,o]=v[C],r=await r,l&&setTimeout(f,n.dedupingInterval),!v[C]||v[C][1]!==o)return l&&u()&&T().onDiscarded(C),!1;d.error=i.i_;const e=b[C];if(!(0,i.o8)(e)&&(o<=e[0]||o<=e[1]||0===e[1]))return p(),l&&u()&&T().onDiscarded(C),!1;const s=B().data;d.data=c(s,r)?s:r,l&&u()&&T().onSuccess(r,C,n)}catch(e){f();const t=T(),{shouldRetryOnError:n}=t;t.isPaused()||(d.error=e,l&&u()&&(t.onError(e,C,t),(!0===n||(0,i.mf)(n)&&n(e))&&S()&&t.onErrorRetry(e,C,t,(e=>{const t=_[C];t&&t[0]&&t[0](i.sj.ERROR_REVALIDATE_EVENT,e)}),{retryCount:(s.retryCount||0)+1,dedupe:!0})))}return a=!1,p(),!0}),[C,l]),Y=(0,r.useCallback)(((...e)=>(0,i.BN)(l,D.current,...e)),[]);if((0,i.LI)((()=>{k.current=t,O.current=n,(0,i.o8)(j)||(U.current=j)})),(0,i.LI)((()=>{if(!C)return;const e=X.bind(i.i_,s);let t=0;const n=(0,i.ko)(C,_,((n,r={})=>{if(n==i.sj.FOCUS_EVENT){const n=Date.now();T().revalidateOnFocus&&n>t&&S()&&(t=n+T().focusThrottleInterval,e())}else if(n==i.sj.RECONNECT_EVENT)T().revalidateOnReconnect&&S()&&e();else{if(n==i.sj.MUTATE_EVENT)return X();if(n==i.sj.ERROR_REVALIDATE_EVENT)return X(r)}}));return x.current=!1,D.current=C,E.current=!0,H({_k:w}),G&&((0,i.o8)(Z)||i.W6?e():(0,i.kw)(e)),()=>{x.current=!0,n()}}),[C]),(0,i.LI)((()=>{let e;function t(){const t=(0,i.mf)(h)?h(B().data):h;t&&-1!==e&&(e=setTimeout(n,t))}function n(){B().error||!A&&!T().isVisible()||!m&&!T().isOnline()?t():X(s).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[h,A,m,C]),(0,r.useDebugValue)(W),u&&(0,i.o8)(Z)&&C){if(!i.w6&&i.W6)throw new Error("Fallback data is required when using suspense in SSR.");k.current=t,O.current=n,x.current=!1;const e=y[C];if(!(0,i.o8)(e)){const t=Y(e);a(t)}if(!(0,i.o8)(F))throw F;{const e=X(s);(0,i.o8)(W)||(e.status="fulfilled",e.value=!0),a(e)}}return{mutate:Y,get data(){return R.data=!0,W},get error(){return R.error=!0,F},get isValidating(){return R.isValidating=!0,Q},get isLoading(){return R.isLoading=!0,q}}})))}}]);
2
+ (globalThis.webpackChunk_kenyaemr_esm_patient_flags_app=globalThis.webpackChunk_kenyaemr_esm_patient_flags_app||[]).push([[704],{7604:(e,t,n)=>{"use strict";function r(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?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>h});var s=["width","height","viewBox"],l=["tabindex"],c={focusable:"false",preserveAspectRatio:"xMidYMid meet"};var u=n(3980),d=n.n(u),p=n(5206),f=n.n(p);const h=f().forwardRef((function(e,t){let{className:n,children:r,tabIndex:i,xmlns:u="http://www.w3.org/2000/svg",preserveAspectRatio:d="xMidYMid meet",...p}=e;const{tabindex:h,...A}=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height,r=e.viewBox,i=void 0===r?"0 0 ".concat(t," ").concat(n):r,u=a(e,s),d=u.tabindex,p=a(u,l),f=o(o(o({},c),p),{},{width:t,height:n,viewBox:i});return f["aria-label"]||f["aria-labelledby"]||f.title?(f.role="img",null!=d&&(f.focusable="true",f.tabindex=d)):f["aria-hidden"]=!0,f}({...p,tabindex:i}),m=A;return n&&(m.className=n),null!=h&&(m.tabIndex="number"==typeof h?h:Number(i)),t&&(m.ref=t),u&&(m.xmlns=u),d&&(m.preserveAspectRatio=d),f().createElement("svg",m,r)}));h.displayName="Icon",h.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}},37:(e,t,n)=>{"use strict";n.d(t,{CQ:()=>p,wS:()=>d,yG:()=>f});var r,o,i,a,s,l=n(5206),c=n.n(l),u=n(7604);const d=c().forwardRef((function(e,t){let{children:n,size:i=16,...a}=e;return c().createElement(u.Z,{width:i,height:i,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...a},r||(r=c().createElement("path",{d:"M21 16H23V18H21zM9 16H17V18H9zM21 12H23V14H21zM9 12H17V14H9zM9 8H23V10H9z"})),o||(o=c().createElement("path",{d:"M25,2H7A2.002,2.002,0,0,0,5,4V29a1,1,0,0,0,1,1H7a.9987.9987,0,0,0,.8-.4L10,26.667,12.2,29.6a1.0353,1.0353,0,0,0,1.6,0L16,26.667,18.2,29.6a1.0353,1.0353,0,0,0,1.6,0L22,26.667,24.2,29.6a.9993.9993,0,0,0,.8.4h1a1,1,0,0,0,1-1V4A2.0023,2.0023,0,0,0,25,2Zm0,25.333L22.8,24.4a1.0353,1.0353,0,0,0-1.6,0L19,27.333,16.8,24.4a1.0353,1.0353,0,0,0-1.6,0L13,27.333,10.8,24.4a1.0353,1.0353,0,0,0-1.6,0L7,27.333V4H25Z"})),n)})),p=c().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return c().createElement(u.Z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},i||(i=c().createElement("path",{d:"M12 10H6.78A11 11 0 0127 16h2A13 13 0 006 7.68V4H4v8h8zM20 22h5.22A11 11 0 015 16H3a13 13 0 0023 8.32V28h2V20H20z"})),n)})),f=c().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return c().createElement(u.Z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},a||(a=c().createElement("path",{d:"M10 18H18V20H10zM10 13H22V15H10zM10 23H15V25H10z"})),s||(s=c().createElement("path",{d:"M25,5H22V4a2,2,0,0,0-2-2H12a2,2,0,0,0-2,2V5H7A2,2,0,0,0,5,7V28a2,2,0,0,0,2,2H25a2,2,0,0,0,2-2V7A2,2,0,0,0,25,5ZM12,4h8V8H12ZM25,28H7V7h3v3H22V7h3Z"})),n)}))},5508:(e,t,n)=>{"use strict";n.d(t,{SQ:()=>s});var r,o=n(5206),i=n.n(o),a=n(7604);const s=i().forwardRef((function(e,t){let{children:n,size:o=16,...s}=e;return i().createElement(a.Z,{width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...s},r||(r=i().createElement("path",{d:"M14 4H18V8H14zM4 4H8V8H4zM24 4H28V8H24zM14 14H18V18H14zM4 14H8V18H4zM24 14H28V18H24zM14 24H18V28H14zM4 24H8V28H4zM24 24H28V28H24z"})),n)}))},781:(e,t,n)=>{"use strict";n.d(t,{n5:()=>l});var r,o,i=n(5206),a=n.n(i),s=n(7604);const l=a().forwardRef((function(e,t){let{children:n,size:i=16,...l}=e;return 16===i||"16"===i||"16px"===i?a().createElement(s.Z,{width:i,height:i,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...l},r||(r=a().createElement("path",{d:"M8 2c1.4 0 2.5 1.1 2.5 2.5S9.4 7 8 7 5.5 5.9 5.5 4.5 6.6 2 8 2M8 1C6.1 1 4.5 2.6 4.5 4.5S6.1 8 8 8s3.5-1.6 3.5-3.5S9.9 1 8 1zM13 15h-1v-2.5c0-1.4-1.1-2.5-2.5-2.5h-3C5.1 10 4 11.1 4 12.5V15H3v-2.5C3 10.6 4.6 9 6.5 9h3c1.9 0 3.5 1.6 3.5 3.5V15z"})),n):a().createElement(s.Z,{width:i,height:i,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...l},o||(o=a().createElement("path",{d:"M16 4a5 5 0 11-5 5 5 5 0 015-5m0-2a7 7 0 107 7A7 7 0 0016 2zM26 30H24V25a5 5 0 00-5-5H13a5 5 0 00-5 5v5H6V25a7 7 0 017-7h6a7 7 0 017 7z"})),n)}))},9525:(e,t,n)=>{"use strict";n.d(t,{Nu:()=>l});var r,o,i=n(5206),a=n.n(i),s=n(7604);const l=a().forwardRef((function(e,t){let{children:n,size:i=16,...l}=e;return a().createElement(s.Z,{width:i,height:i,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...l},r||(r=a().createElement("path",{d:"M25.707,17.293l-5-5A1,1,0,0,0,20,12H14a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V18A1,1,0,0,0,25.707,17.293ZM23.5857,18H20V14.4141ZM14,28V14h4v4a2,2,0,0,0,2,2h4v8Z"})),o||(o=a().createElement("path",{d:"M8,27H4a2.0023,2.0023,0,0,1-2-2V5A2.0023,2.0023,0,0,1,4,3h7.5857A1.9865,1.9865,0,0,1,13,3.5859L16.4143,7H28a2.0023,2.0023,0,0,1,2,2v8H28V9H15.5857l-4-4H4V25H8Z"})),n)}))},2074:(e,t,n)=>{"use strict";n.d(t,{BV:()=>A,Cf:()=>f,XZ:()=>h,_M:()=>m});var r,o,i,a,s,l,c,u=n(5206),d=n.n(u),p=n(7604);const f=d().forwardRef((function(e,t){let{children:n,size:o=16,...i}=e;return d().createElement(p.Z,{width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...i},r||(r=d().createElement("path",{d:"M27,28V6H19V28H15V14H7V28H4V2H2V28a2,2,0,0,0,2,2H30V28ZM13,28H9V16h4Zm12,0H21V8h4Z"})),n)})),h=d().forwardRef((function(e,t){let{children:n,size:r=16,...i}=e;return d().createElement(p.Z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...i},o||(o=d().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"})),n)})),A=d().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return d().createElement(p.Z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},i||(i=d().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"})),a||(a=d().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"})),n)})),m=d().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return"glyph"===r||"glyph"===r||"glyphpx"===r?d().createElement(p.Z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 6",fill:"currentColor",...o},s||(s=d().createElement("path",{d:"M5 6L0 1 0.7 0.3 5 4.6 9.3 0.3 10 1z"})),n):16===r||"16"===r||"16px"===r?d().createElement(p.Z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...o},l||(l=d().createElement("path",{d:"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"})),n):d().createElement(p.Z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},c||(c=d().createElement("path",{d:"M16 22L6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z"})),n)}))},3238:(e,t,n)=>{"use strict";n.d(t,{x8:()=>s});var r,o=n(5206),i=n.n(o),a=n(7604);const s=i().forwardRef((function(e,t){let{children:n,size:o=16,...s}=e;return i().createElement(a.Z,{width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...s},r||(r=i().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"})),n)}))},7631:(e,t,n)=>{"use strict";n.d(t,{jj:()=>d,kb:()=>u,zW:()=>p});var r,o,i,a,s=n(5206),l=n.n(s),c=n(7604);const u=l().forwardRef((function(e,t){let{children:n,size:i=16,...a}=e;return l().createElement(c.Z,{width:i,height:i,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...a},r||(r=l().createElement("path",{d:"M30 24L26 24 26 20 24 20 24 24 20 24 20 26 24 26 24 30 26 30 26 26 30 26 30 24z"})),o||(o=l().createElement("path",{d:"M16,28H8V4h8v6a2.0058,2.0058,0,0,0,2,2h6v4h2V10a.9092.9092,0,0,0-.3-.7l-7-7A.9087.9087,0,0,0,18,2H8A2.0058,2.0058,0,0,0,6,4V28a2.0058,2.0058,0,0,0,2,2h8ZM18,4.4,23.6,10H18Z"})),n)})),d=l().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return l().createElement(c.Z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},i||(i=l().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"})),n)})),p=l().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return l().createElement(c.Z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},a||(a=l().createElement("path",{d:"M26 14H24v2h2a3.0033 3.0033 0 013 3v4h2V19A5.0058 5.0058 0 0026 14zM24 4a3 3 0 11-3 3 3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0024 2zM23 30H21V28a3.0033 3.0033 0 00-3-3H14a3.0033 3.0033 0 00-3 3v2H9V28a5.0059 5.0059 0 015-5h4a5.0059 5.0059 0 015 5zM16 13a3 3 0 11-3 3 3 3 0 013-3m0-2a5 5 0 105 5A5 5 0 0016 11zM8 14H6a5.0059 5.0059 0 00-5 5v4H3V19a3.0033 3.0033 0 013-3H8zM8 4A3 3 0 115 7 3 3 0 018 4M8 2a5 5 0 105 5A5 5 0 008 2z"})),n)}))},8557:(e,t,n)=>{"use strict";n.d(t,{N7:()=>u,SK:()=>c});var r,o,i,a=n(5206),s=n.n(a),l=n(7604);const c=s().forwardRef((function(e,t){let{children:n,size:o=16,...i}=e;return s().createElement(l.Z,{width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...i},r||(r=s().createElement("path",{d:"M16.6123,2.2138a1.01,1.01,0,0,0-1.2427,0L1,13.4194l1.2427,1.5717L4,13.6209V26a2.0041,2.0041,0,0,0,2,2H26a2.0037,2.0037,0,0,0,2-2V13.63L29.7573,15,31,13.4282ZM18,26H14V18h4Zm2,0V18a2.0023,2.0023,0,0,0-2-2H14a2.002,2.002,0,0,0-2,2v8H6V12.0615l10-7.79,10,7.8005V26Z"})),n)})),u=s().forwardRef((function(e,t){let{children:n,size:r=16,...a}=e;return s().createElement(l.Z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...a},o||(o=s().createElement("path",{d:"M25,16H17a2.0023,2.0023,0,0,0-2,2v6H4V14H2V30H4V26H28v4h2V21A5.0059,5.0059,0,0,0,25,16Zm3,8H17V18h8a3.0033,3.0033,0,0,1,3,3Z"})),i||(i=s().createElement("path",{d:"M9.5 17A1.5 1.5 0 118 18.5 1.5017 1.5017 0 019.5 17m0-2A3.5 3.5 0 1013 18.5 3.5 3.5 0 009.5 15zM21 6L17 6 17 2 15 2 15 6 11 6 11 8 15 8 15 12 17 12 17 8 21 8 21 6z"})),n)}))},4717:(e,t,n)=>{"use strict";n.d(t,{Xx:()=>l});var r,o,i=n(5206),a=n.n(i),s=n(7604);const l=a().forwardRef((function(e,t){let{children:n,size:i=16,...l}=e;return a().createElement(s.Z,{width:i,height:i,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...l},r||(r=a().createElement("path",{d:"M19 24H23V28H19zM26 24H30V28H26zM19 17H23V21H19zM26 17H30V21H26z"})),o||(o=a().createElement("path",{d:"M17,24H4V10H28v5h2V10a2.0023,2.0023,0,0,0-2-2H22V4a2.0023,2.0023,0,0,0-2-2H12a2.002,2.002,0,0,0-2,2V8H4a2.002,2.002,0,0,0-2,2V24a2.0023,2.0023,0,0,0,2,2H17ZM12,4h8V8H12Z"})),n)}))},6070:(e,t,n)=>{"use strict";n.d(t,{Bl:()=>s});var r,o=n(5206),i=n.n(o),a=n(7604);const s=i().forwardRef((function(e,t){let{children:n,size:o=16,...s}=e;return i().createElement(a.Z,{width:o,height:o,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...s},r||(r=i().createElement("path",{d:"M24,2H8A2,2,0,0,0,6,4V8a2,2,0,0,0,2,2V28a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V10a2,2,0,0,0,2-2V4A2,2,0,0,0,24,2ZM10,14h3V24H10ZM22,28H10V26h5V12H10V10H22ZM8,8V4H24V8Z"})),n)}))},1492:(e,t,n)=>{"use strict";n.d(t,{zxk:()=>W,JMr:()=>He,mh4:()=>Ne,olm:()=>ne,Vp9:()=>ce,n9L:()=>we});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_USE_CONTROLLED_STATE_WITH_VALUE&&"true"===process.env.CARBON_ENABLE_USE_CONTROLLED_STATE_WITH_VALUE?r.enableUseControlledStateWithValue=!0:r.enableUseControlledStateWithValue=!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_OVERFLOWMENU&&"true"===process.env.CARBON_ENABLE_V12_OVERFLOWMENU?r.enableV12Overflowmenu=!0:r.enableV12Overflowmenu=!1}catch(e){r.enableCssCustomProperties=!1,r.enableUseControlledStateWithValue=!1,r.enableCssGrid=!1,r.enableV11Release=!0,r.enableExperimentalTileContrast=!1,r.enableV12TileDefaultIcons=!1,r.enableV12Overflowmenu=!1}var o=[{name:"enable-css-custom-properties",description:"Describe what the flag does",enabled:r.enableCssCustomProperties},{name:"enable-use-controlled-state-with-value",description:"Enable components to be created in either a controlled or uncontrolled mode\n",enabled:r.enableUseControlledStateWithValue},{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-overflowmenu",description:"Enable the use of the v12 OverflowMenu leveraging the Menu subcomponents\n",enabled:r.enableV12Overflowmenu}];function i(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,(void 0,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?o:String(o)),r)}var o}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,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(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 s(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.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)?l(e,t):void 0}}function l(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}for(var c=function(){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])}))}var t,n;return t=e,n=[{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,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=s(e))){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(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)}}],n&&i(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),u=new c(void 0),d=0;d<o.length;d++){var p=o[d];u.add(p.name,p.enabled)}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,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});var h=n(3980),A=n.n(h),m=n(5206),g=n.n(m),_=n(2779),b=n.n(_),v="undefined"!=typeof window?m.useLayoutEffect:m.useEffect;const y=e=>(0,m.useCallback)((t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}),e),C=g().createContext("cds");function w(){return g().useContext(C)}function E(e,t){const n=(0,m.useRef)(null);(0,m.useEffect)((()=>{n.current=t}),[t]),(0,m.useEffect)((()=>{function t(e){n.current&&n.current(e)}return window.addEventListener(e,t),()=>{window.removeEventListener(e,t)}}),[e])}const x=g().createContext({floating:{current:null}}),D=g().forwardRef((function(e,t){let{isTabTip:n,align:r=(n?"bottom-left":"bottom"),as:o="span",autoAlign:i=!1,caret:a=!n,className:s,children:l,dropShadow:c=!0,highContrast:u=!1,onRequestClose:d,open:p,...h}=e;const A=w(),_=(0,m.useRef)(null),C=(0,m.useRef)(null);E("blur",(()=>{p&&d?.()})),E("click",(e=>{p&&!C?.current?.contains(e.target)&&d?.()}));const D=(0,m.useMemo)((()=>({floating:_})),[]);n&&(["bottom-left","bottom-right"].includes(r)||(r="bottom-left"));const k=y([t,C]),[O,T]=(0,m.useState)(!1),[S,B]=(0,m.useState)(r),H=b()({[`${A}--popover-container`]:!0,[`${A}--popover--caret`]:a,[`${A}--popover--drop-shadow`]:c,[`${A}--popover--high-contrast`]:u,[`${A}--popover--open`]:p,[`${A}--popover--${S}`]:O&&!n,[`${A}--popover--${r}`]:!O,[`${A}--popover--tab-tip`]:n},s);v((()=>{if(!p)return;if(!i||n)return void T(!1);if(!_.current)return;if(!0===O)return;const e=_.current.getBoundingClientRect(),t=e.x<-16,o=e.y<-16,a=e.x+(e.width-16)>document.documentElement.clientWidth,s=e.y+(e.height-16)>document.documentElement.clientHeight;if(!(t||o||a||s))return void T(!1);const l=["top","top-left","right-bottom","right","right-top","bottom-left","bottom","bottom-right","left-top","left","left-bottom","top-right"],c=[r];let u=l[(l.indexOf(r)+1)%l.length];for(;u&&!c.includes(u);)c.push(u),u=l[(l.indexOf(u)+1)%l.length];function d(e){if(!C.current||!_.current)return!1;C.current.classList.add(`${A}--popover--${e}`);const t=_.current.getBoundingClientRect();return t.x<-16||t.y<-16||t.x+(t.width-16)>document.documentElement.clientWidth||t.y+(t.height-16)>document.documentElement.clientHeight?(C.current.classList.remove(`${A}--popover--${e}`),!1):(C.current.classList.remove(`${A}--popover--${e}`),!0)}let f=null;for(let e=0;e<c.length;e++){const t=c[e];if(d(t)){f=t;break}}f&&(T(!0),B(f))}),[O,r,i,A,p,n]);const V=g().Children.map(l,(e=>{const t=e;if("button"===t?.type){const{className:e}=t.props,n=b()(`${A}--popover--tab-tip__button`,e);return g().cloneElement(t,{className:n})}return t})),M=o;return g().createElement(x.Provider,{value:D},g().createElement(M,f({},h,{className:H,ref:k}),n?V:l))}));function k(e,t){let{className:n,children:r,...o}=e;const i=w(),{floating:a}=g().useContext(x),s=y([a,t]);return g().createElement("span",f({},o,{className:`${i}--popover`}),g().createElement("span",{className:b()(`${i}--popover-content`,n),ref:s},r),g().createElement("span",{className:`${i}--popover-caret`}))}D.propTypes={align:A().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top"]),as:A().oneOfType([A().string,A().elementType]),autoAlign:A().bool,caret:A().bool,children:A().node,className:A().string,dropShadow:A().bool,highContrast:A().bool,isTabTip:A().bool,onRequestClose:A().func,open:A().bool.isRequired};const O=g().forwardRef(k);function T(){let e=0;return function(){return++e}}O.propTypes={children:A().node,className:A().string};const S=!("undefined"==typeof window||!window.document||!window.document.createElement),B=g().createContext(null),H=T(),V=S?m.useLayoutEffect:m.useEffect;let M=!1;function R(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id";const t=g().useContext(B),[n,r]=(0,m.useState)((()=>M?`${t?`${t}-`:""}${e}-${H()}`:null));if(V((()=>{null===n&&r(`${t?`${t}-`:""}${e}-${H()}`)}),[H]),(0,m.useEffect)((()=>{!1===M&&(M=!0)}),[]),"function"==typeof g().useId){const n=function(e,t){return`${e?`${e}-`:""}${t}-${g().useId()}`}(t,e);return n}return n}function N(e){if(!e||!e.childNodes)return null;if(function(e){if(e.tabIndex<0)return!1;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}(e))return e;for(const t of e.childNodes){const e=N(t);if(e)return e}return null}function $(e){if(!e||!e.childNodes)return null;if(e?.getAttribute?.("role")&&""!==e.getAttribute("role"))return e;for(const t of e.childNodes){const e=$(t);if(e)return e}return null}function L(e,t){for(let n=0;n<t.length;n++)if(z(e,t[n]))return!0;return!1}function z(e){let{key:t,which:n,keyCode:r,code:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e?e===t:"number"==typeof e?e===n||e===r:e.key&&Array.isArray(t)?-1!==t.indexOf(e.key):e.key===t||e.which===n||e.keyCode===r||e.code===o}const I={key:"Enter",which:13,keyCode:13,code:"Enter"},P={key:["Escape","Esc"],which:27,keyCode:27,code:"Esc"},j={key:" ",which:32,keyCode:32,code:"Space"};function Z(e){let{align:t="top",className:n,children:r,label:o,description:i,enterDelayMs:a=100,leaveDelayMs:s=300,defaultOpen:l=!1,closeOnActivation:c=!1,...u}=e;const d=(0,m.useRef)(null),p=(0,m.useRef)(null),[h,A]=function(e){const[t,n]=(0,m.useState)(e),r=(0,m.useRef)(null),o=(0,m.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]: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,m.useEffect)((()=>()=>{window.clearTimeout(r.current??void 0)}),[]),[t,o]}(l),_=R("tooltip"),v=w(),y=g().Children.only(r),C={onFocus:()=>A(!0),onBlur:()=>A(!1),onClick:()=>c&&A(!1),onMouseEnter:function(){A(!0,a)}};return o?C["aria-labelledby"]=_:C["aria-describedby"]=_,(0,m.useEffect)((()=>{null!==d&&d.current&&(N(d.current)||A(!1))})),g().createElement(D,f({},u,{align:t,className:b()(`${v}--tooltip`,n),dropShadow:!1,highContrast:!0,onKeyDown:function(e){h&&z(e,P)&&(e.stopPropagation(),A(!1)),h&&c&&(z(e,I)||z(e,j))&&A(!1)},onMouseLeave:function(){A(!1,s)},open:h,ref:d}),g().createElement("div",{className:`${v}--tooltip-trigger__wrapper`},void 0!==y?g().cloneElement(y,{...C,...function(e){const t={};return["onFocus","onBlur","onClick","onMouseEnter"].forEach((n=>{t[n]=t=>{C[n](),e?.[n]&&e?.[n](t)}})),t}(y.props)}):null),g().createElement(O,{"aria-hidden":h?"false":"true",className:`${v}--tooltip-content`,id:_,ref:p,role:"tooltip"},o||i))}Z.propTypes={align:A().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top"]),children:A().node,className:A().string,closeOnActivation:A().bool,defaultOpen:A().bool,description:A().node,enterDelayMs:A().number,label:A().node,leaveDelayMs:A().number};const F=g().forwardRef((function(e,t){const{align:n,children:r,className:o,closeOnActivation:i=!0,defaultOpen:a=!1,disabled:s,enterDelayMs:l=100,kind:c,label:u,leaveDelayMs:d=100,wrapperClasses:p,size:h,isSelected:A,...m}=e,_=w(),v=b()(p,`${_}--icon-tooltip`,{[`${_}--icon-tooltip--disabled`]:s});return g().createElement(Z,{align:n,closeOnActivation:i,className:v,defaultOpen:a,enterDelayMs:l,label:u,leaveDelayMs:d},g().createElement(W,f({},m,{disabled:s,kind:c,ref:t,size:h,className:b()(`${_}--btn--icon-only`,{[`${_}--btn--selected`]:A},o)}),r))}));F.propTypes={align:A().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","right"]),children:A().node,className:A().string,closeOnActivation:A().bool,defaultOpen:A().bool,disabled:A().bool,enterDelayMs:A().number,isSelected:A().bool,kind:A().oneOf(["primary","secondary","ghost","tertiary"]),label:A().node.isRequired,leaveDelayMs:A().number,size:A().oneOf(["sm","md","lg"]),wrapperClasses:A().string};const U=e=>function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(let n=0;n<e.length&&!t.defaultPrevented;n++){const o=e[n];"function"==typeof o&&o(t,...r)}},W=g().forwardRef((function(e,t){let{as:n,children:r,className:o,dangerDescription:i="danger",disabled:a=!1,hasIconOnly:s=!1,href:l,iconDescription:c,isExpressive:u=!1,isSelected:d,kind:p="primary",onBlur:h,onClick:A,onFocus:_,onMouseEnter:v,onMouseLeave:y,renderIcon:C,size:E,tabIndex:x,tooltipAlignment:D="center",tooltipPosition:k="top",type:O="button",...T}=e;const S=(0,m.useRef)(null),B=w(),H=e=>{e.target!==S.current||e.preventDefault()},V={tabIndex:x,className:b()(o,{[`${B}--btn`]:!0,[`${B}--btn--sm`]:"sm"===E&&!u,[`${B}--btn--md`]:"md"===E&&!u,[`${B}--btn--xl`]:"xl"===E,[`${B}--btn--2xl`]:"2xl"===E,[`${B}--layout--size-${E}`]:E,[`${B}--btn--${p}`]:p,[`${B}--btn--disabled`]:a,[`${B}--btn--expressive`]:u,[`${B}--btn--icon-only`]:s,[`${B}--btn--selected`]:s&&d&&"ghost"===p}),ref:t},M=C?g().createElement(C,{"aria-label":c,className:`${B}--btn__icon`,"aria-hidden":"true"}):null,N=C?g().createElement(C,null):null,$=["danger","danger--tertiary","danger--ghost"];let L="button";const z=R("danger-description"),{"aria-pressed":I}=T;let P={disabled:a,type:O,"aria-describedby":$.includes(p)?z:void 0,"aria-pressed":I??(s&&"ghost"===p?d:void 0)};const j={href:l};let Z=null;if($.includes(p)&&(Z=g().createElement("span",{id:z,className:`${B}--visually-hidden`},i)),n?(L=n,P={...P,...j}):l&&!a&&(L="a",P=j),s){let e;return"top"!==k&&"bottom"!==k||("center"===D&&(e=k),"end"===D&&(e=`${k}-right`),"start"===D&&(e=`${k}-left`)),"right"!==k&&"left"!==k||(e=k),g().createElement(F,f({as:n,align:e,label:c,kind:p,size:E,onMouseEnter:v,onMouseLeave:y,onFocus:_,onBlur:h,onClick:U([A,H])},T,V,P),N||r)}return g().createElement(L,{onMouseEnter:v,onMouseLeave:y,onFocus:_,onBlur:h,onClick:A,...T,...V,...P},Z,r,M)}));W.displayName="Button",W.propTypes={as:A().oneOfType([A().func,A().string,A().elementType]),children:A().node,className:A().string,dangerDescription:A().string,disabled:A().bool,hasIconOnly:A().bool,href:A().string,iconDescription:e=>!e.renderIcon||e.children||e.iconDescription?null:new Error("renderIcon property specified without also providing an iconDescription property."),isExpressive:A().bool,isSelected:A().bool,kind:A().oneOf(["primary","secondary","danger","ghost","danger--primary","danger--ghost","danger--tertiary","tertiary"]),onBlur:A().func,onClick:A().func,onFocus:A().func,onMouseEnter:A().func,onMouseLeave:A().func,renderIcon:A().oneOfType([A().func,A().object]),role:A().string,size:A().oneOf(["sm","md","lg","xl","2xl"]),tabIndex:A().number,tooltipAlignment:A().oneOf(["start","center","end"]),tooltipPosition:A().oneOf(["top","right","bottom","left"]),type:A().oneOf(["button","reset","submit"])};var G,K,Q=n(3238),q=n(7604);const X=g().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return 16===r||"16"===r||"16px"===r?g().createElement(q.Z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...o},G||(G=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"})),n):g().createElement(q.Z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},K||(K=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"})),n)})),Y={};function J(e,t){return function(t,n,r){if(void 0!==t[n]){Y[r]&&Y[r][n]||(Y[r]={...Y[r],[n]:!0});for(var o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];return e(t,n,r,...i)}}}const ee=(0,m.createContext)({isFluid:!1});var te;const ne=g().forwardRef((function(e,t){let{autoComplete:n="off",className:r,closeButtonLabelText:o="Clear search input",defaultValue:i,disabled:a,isExpanded:s=!0,id:l,labelText:c,light:u,onChange:d=(()=>{}),onClear:p=(()=>{}),onKeyDown:h,onExpand:A,placeholder:_="Search",renderIcon:v,role:C="searchbox",size:E="md",type:x="text",value:D,...k}=e;const O=!(!D&&!i),T=w(),{isFluid:S}=(0,m.useContext)(ee),B=(0,m.useRef)(null),H=y([t,B]),V=(0,m.useRef)(null),M=R("search-input"),N=l||M,$=`${N}-search`,[L,Z]=(0,m.useState)(O||!1),[F,W]=(0,m.useState)(D),G=b()({[`${T}--search`]:!0,[`${T}--search--sm`]:"sm"===E,[`${T}--search--md`]:"md"===E,[`${T}--search--lg`]:"lg"===E,[`${T}--search--light`]:u,[`${T}--search--disabled`]:a,[`${T}--search--fluid`]:S},r),K=b()({[`${T}--search-close`]:!0,[`${T}--search-close--hidden`]:!L||!s});function q(){!D&&B.current&&(B.current.value="");const e=Object.assign({},B.current,{value:""});d({target:e,type:"change"}),p(),Z(!1),function(e){const t=e.current||e;t&&t.focus&&document.activeElement!==t&&t.focus()}(B)}return D!==F&&(Z(!!D),W(D)),g().createElement("div",{role:"search","aria-label":_,className:G},g().createElement("div",{"aria-labelledby":A?N:void 0,role:A?"button":void 0,className:`${T}--search-magnifier`,onClick:A,onKeyDown:function(e){(z(e,I)||z(e,j))&&(e.stopPropagation(),A&&A(e))},tabIndex:A&&!s?0:-1,ref:V,"aria-expanded":!(!A||!s)||void 0,"aria-controls":A?N:void 0},g().createElement(re,{icon:v})),g().createElement("label",{id:$,htmlFor:N,className:`${T}--label`},c),g().createElement("input",f({autoComplete:n,className:`${T}--search-input`,defaultValue:i,disabled:a,role:C,ref:H,id:N,onChange:U([d,function(e){Z(""!==e.target.value)}]),onKeyDown:U([h,function(e){z(e,P)&&(e.stopPropagation(),B.current?.value?q():A&&s&&V.current?.focus())}]),placeholder:_,type:x,value:D,tabIndex:A&&!s?-1:void 0},k)),g().createElement("button",{"aria-label":o,className:K,disabled:a,onClick:q,title:o,type:"button"},te||(te=g().createElement(Q.x8,null))))}));function re(e){let{icon:t}=e;const n=w();return t?g().createElement(t,{className:`${n}--search-magnifier-icon`}):g().createElement(X,{className:`${n}--search-magnifier-icon`})}ne.displayName="Search",ne.propTypes={autoComplete:A().string,className:A().string,closeButtonLabelText:A().string,defaultValue:A().oneOfType([A().string,A().number]),disabled:A().bool,id:A().string,isExpanded:A().bool,labelText:A().node.isRequired,light:J(A().bool),onChange:A().func,onClear:A().func,onExpand:A().func,onKeyDown:A().func,placeholder:A().string,renderIcon:A().oneOfType([A().func,A().object]),role:A().string,size:A().oneOf(["sm","md","lg"]),type:A().string,value:A().oneOfType([A().string,A().number])},re.propTypes={icon:A().oneOfType([A().func,A().object])};const oe=(0,m.createContext)(null);function ie(e){let{as:t,children:n,dir:r="auto",...o}=e;const i=(0,m.useContext)(oe),a={},s=t??"span",l={...i};if(i){const{direction:e,getTextDirection:t}=i;if(t&&t.current){const r=function(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}(n),o=t.current(r);e!==o?(a.dir=o,l.direction=o):"auto"===e&&(a.dir=o)}else e!==r?(a.dir=r,l.direction=r):"auto"===e&&(a.dir=r)}else a.dir=r,l.direction=r;return g().createElement(oe.Provider,{value:l},g().createElement(s,f({},o,a),n))}var ae;ie.propTypes={as:A().oneOfType([A().func,A().string,A().elementType]),children:A().node.isRequired,dir:A().oneOf(["ltr","rtl","auto"])};const se=T(),le={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"},ce=e=>{let{children:t,className:n,id:r,type:o,filter:i,renderIcon:a,title:s="Clear filter",disabled:l,onClose:c,size:u,as:d,...p}=e;const h=w(),A=r||`tag-${se()}`,m=b()(`${h}--tag`,n,{[`${h}--tag--disabled`]:l,[`${h}--tag--filter`]:i,[`${h}--tag--${u}`]:u,[`${h}--layout--size-${u}`]:u,[`${h}--tag--${o}`]:o,[`${h}--tag--interactive`]:p.onClick&&!i}),_=void 0!==o&&o in Object.keys(le)?le[o]:"",v=e=>{c&&(e.stopPropagation(),c(e))};if(i){const e=d??"div";return g().createElement(e,f({className:m,id:A},p),g().createElement(ie,{className:`${h}--tag__label`,title:"string"==typeof t?t:void 0},null!=t?t:_),g().createElement("button",{type:"button",className:`${h}--tag__close-icon`,onClick:v,disabled:l,"aria-label":s,title:s},ae||(ae=g().createElement(Q.x8,null))))}const y=d??(p.onClick?"button":"div");return g().createElement(y,f({disabled:"button"===y?l:null,className:m,id:A},p),a?g().createElement("div",{className:`${h}--tag__custom-icon`},g().createElement(a,null)):"",g().createElement(ie,{title:"string"==typeof t?t:void 0},null!=t?t:_))};var ue,de,pe,fe;ce.propTypes={as:A().elementType,children:A().node,className:A().string,disabled:A().bool,filter:A().bool,id:A().string,onClose:A().func,renderIcon:A().oneOfType([A().func,A().object]),size:A().oneOf(["sm","md"]),title:A().string,type:A().oneOf(Object.keys(le))},Object.keys(le);const he=g().forwardRef((function(e,t){let{children:n,size:r=16,...o}=e;return 16===r||"16"===r||"16px"===r?g().createElement(q.Z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...o},ue||(ue=g().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"})),n):20===r||"20"===r||"20px"===r?g().createElement(q.Z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...o},de||(de=g().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"})),n):24===r||"24"===r||"24px"===r?g().createElement(q.Z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...o},pe||(pe=g().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"})),n):g().createElement(q.Z,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},fe||(fe=g().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"})),n)}));var Ae=n(7631),me=n(2074);const ge=g().forwardRef((function(e,t){let{children:n,className:r,href:o,disabled:i=!1,inline:a=!1,visited:s=!1,renderIcon:l,size:c,target:u,...d}=e;const p=w(),h={className:b()(`${p}--link`,r,{[`${p}--link--disabled`]:i,[`${p}--link--inline`]:a,[`${p}--link--visited`]:s,[`${p}--link--${c}`]:c}),rel:"_blank"===u?"noopener":void 0,target:u};return i?(h.role="link",h["aria-disabled"]=!0):h.href=o,g().createElement("a",f({ref:t},h,d),n,!a&&l&&g().createElement("div",{className:`${p}--link__icon`},g().createElement(l,null)))}));ge.displayName="Link",ge.propTypes={children:A().node,className:A().string,disabled:A().bool,href:A().string,inline:A().bool,renderIcon:A().oneOfType([A().func,A().object]),size:A().oneOf(["sm","md","lg"]),visited:A().bool};const _e=(0,m.createContext)(u);var be,ve,ye,Ce;A().node,A().objectOf(A().bool);const we=g().forwardRef((function(e,t){let{children:n,className:r,light:o=!1,...i}=e;const a=w(),s=b()(`${a}--tile`,o&&`${a}--tile--light`,r);return g().createElement("div",f({className:s,ref:t},i),n)}));we.displayName="Tile",we.propTypes={children:A().node,className:A().string,light:J(A().bool)};const Ee=g().forwardRef((function(e,t){let{children:n,className:r,clicked:o=!1,disabled:i,href:a,light:s,onClick:l=(()=>{}),onKeyDown:c=(()=>{}),renderIcon:u,...d}=e;const p=w(),h=b()(`${p}--tile`,`${p}--tile--clickable`,o&&`${p}--tile--is-clicked`,s&&`${p}--tile--light`,r),[A,_]=(0,m.useState)(o),v=("enable-v12-tile-default-icons",(0,m.useContext)(_e).enabled("enable-v12-tile-default-icons"));v&&(u||(u=he),i&&(u=Ae.jj));const y=b()({[`${p}--tile--icon`]:!v||v&&!i,[`${p}--tile--disabled-icon`]:v&&i});return g().createElement(ge,f({className:h,href:a,tabIndex:a||i?void 0:0,onClick:i?void 0:function(e){e?.persist?.(),_(!A),l(e)},onKeyDown:function(e){e?.persist?.(),L(e,[I,j])&&_(!A),c(e)},ref:t,disabled:i},d),n,u&&g().createElement(u,{className:y,"aria-hidden":"true"}))}));Ee.displayName="ClickableTile",Ee.propTypes={children:A().node,className:A().string,clicked:A().bool,disabled:A().bool,href:A().string,light:J(A().bool),onClick:A().func,onKeyDown:A().func,rel:A().string,renderIcon:A().oneOfType([A().func,A().object])};const xe=g().forwardRef((function(e,t){let{children:n,className:r,disabled:o,id:i,light:a,onClick:s=(()=>{}),onChange:l=(()=>{}),onKeyDown:c=(()=>{}),selected:u=!1,tabIndex:d=0,title:p="title",...h}=e;const A=w(),_=s,v=c,[y,C]=(0,m.useState)(u),[E,x]=(0,m.useState)(u),D=b()(`${A}--tile`,`${A}--tile--selectable`,y&&`${A}--tile--is-selected`,a&&`${A}--tile--light`,o&&`${A}--tile--disabled`,r);return u!==E&&(C(u),x(u)),g().createElement("div",f({className:D,onClick:o?void 0:function(e){e.preventDefault(),e?.persist?.(),C(!y),_(e),l(e)},role:"checkbox","aria-checked":y,onKeyDown:o?void 0:function(e){e?.persist?.(),L(e,[I,j])&&(e.preventDefault(),C(!y),l(e)),v(e)},tabIndex:o?void 0:d,ref:t,id:i,onChange:o?void 0:function(e){C(e.target.checked),l(e)},title:p},h),g().createElement("span",{className:`${A}--tile__checkmark ${A}--tile__checkmark--persistent`},y?be||(be=g().createElement(me.BV,null)):ve||(ve=g().createElement(me.XZ,null))),g().createElement(ie,{as:"label",htmlFor:i,className:`${A}--tile-content`},n))}));xe.displayName="SelectableTile",xe.propTypes={children:A().node,className:A().string,disabled:A().bool,id:A().string,light:J(A().bool),name:A().string,onChange:A().func,onClick:A().func,onKeyDown:A().func,selected:A().bool,tabIndex:A().number,title:A().string,value:A().oneOfType([A().string,A().number]).isRequired};const De=g().forwardRef((function(e,t){let{tabIndex:n=0,className:r,children:o,expanded:i=!1,tileMaxHeight:a=0,tilePadding:s=0,onClick:l,onKeyUp:c,tileCollapsedIconText:u="Interact to expand Tile",tileExpandedIconText:d="Interact to collapse Tile",tileCollapsedLabel:p,tileExpandedLabel:h,light:A,..._}=e;const[C,E]=(0,m.useState)(a),[x,D]=(0,m.useState)(s),[k,O]=(0,m.useState)(i),[T,S]=(0,m.useState)(a),[B,H]=(0,m.useState)(s),[V,M]=(0,m.useState)(i),[z,P]=(0,m.useState)(!0),Z=(0,m.useRef)(null),F=(0,m.useRef)(null),W=(0,m.useRef)(null),G=(0,m.useRef)(null),K=y([t,G]),Q=w();function q(){V&&W.current&&E(W.current.getBoundingClientRect()?.height),Z.current&&E(Z.current.getBoundingClientRect().height)}function X(e){e?.persist?.(),M(!V),q()}function Y(e){e.target!==G.current&&L(e,[I,j])&&e.preventDefault()}i!==k&&(M(i),O(i),q()),a!==T&&(E(a),S(a)),s!==B&&(D(s),H(s));const J=b()(`${Q}--tile`,`${Q}--tile--expandable`,{[`${Q}--tile--is-expanded`]:V,[`${Q}--tile--light`]:A},r),ee=b()(`${Q}--tile`,`${Q}--tile--expandable`,`${Q}--tile--expandable--interactive`,V&&`${Q}--tile--is-expanded`,A&&`${Q}--tile--light`,r),te=b()(`${Q}--tile__chevron`,`${Q}--tile__chevron--interactive`),ne=g().Children.toArray(o);v((()=>{if(!G.current||!Z.current)return;const e=window.getComputedStyle(G.current,null),{current:t}=Z,{height:n}=t.getBoundingClientRect(),r=parseInt(e.getPropertyValue("padding-top"),10),o=parseInt(e.getPropertyValue("padding-bottom"),10);E(n),D(r+o)}),[C]),v((()=>{Z.current&&F.current&&(N(F.current)||$(F.current)||N(Z.current)||$(Z.current)||P(!1))}),[]),v((()=>{G.current&&(G.current.style.maxHeight=V?"":C+x+"px")}),[V,C,x]),(0,m.useEffect)((()=>{if(!Z.current)return;const e=new ResizeObserver((e=>{const[t]=e;E(t.contentRect.height)}));return e.observe(Z.current),()=>e.disconnect()}),[]);const re=R("expandable-tile-interactive");return z?g().createElement("div",f({ref:K,className:ee},_),g().createElement("div",{ref:W},g().createElement("div",{ref:Z,className:`${Q}--tile-content`},ne[0]),g().createElement("button",{type:"button","aria-expanded":V,"aria-controls":re,onKeyUp:U([c,Y]),onClick:U([l,X]),"aria-label":V?d:u,className:te},ye||(ye=g().createElement(me._M,null))),g().createElement("div",{ref:F,className:`${Q}--tile-content`,id:re},ne[1]))):g().createElement("button",f({type:"button",ref:K,className:J,"aria-expanded":V,title:V?d:u},_,{onKeyUp:U([c,Y]),onClick:U([l,X]),tabIndex:n}),g().createElement("div",{ref:W},g().createElement("div",{ref:Z,className:`${Q}--tile-content`},ne[0]),g().createElement("div",{className:`${Q}--tile__chevron`},g().createElement("span",null,V?h:p),Ce||(Ce=g().createElement(me._M,null))),g().createElement("div",{ref:F,className:`${Q}--tile-content`},ne[1])))}));De.propTypes={children:A().node,className:A().string,expanded:A().bool,id:A().string,light:J(A().bool),onClick:A().func,onKeyUp:A().func,tabIndex:A().number,tileCollapsedIconText:A().string,tileCollapsedLabel:A().string,tileExpandedIconText:A().string,tileExpandedLabel:A().string},De.displayName="ExpandableTile";const ke=g().forwardRef((function(e,t){let{children:n}=e;const r=w();return g().createElement("span",{ref:t,className:`${r}--tile-content__above-the-fold`},n)}));ke.propTypes={children:A().node},ke.displayName="TileAboveTheFoldContent";const Oe=g().forwardRef((function(e,t){let{children:n}=e;const r=w();return g().createElement("span",{ref:t,className:`${r}--tile-content__below-the-fold`},n)}));Oe.propTypes={children:A().node},Oe.displayName="TileBelowTheFoldContent";const Te=(Se={"aria-label":A().string,"aria-labelledby":A().string},Object.keys(Se).reduce(((e,t)=>{return{...e,[t]:(n=Se[t],function(e,t,r){for(var o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];return n(e,t,r,...i)})};var n}),{}));var Se;const Be=g().forwardRef((function(e,t){let{"aria-label":n,"aria-labelledby":r,children:o,className:i,onClick:a,isActive:s,tooltipAlignment:l,...c}=e;const u=w(),d=b()({[i]:!!i,[`${u}--header__action`]:!0,[`${u}--header__action--active`]:s}),p={"aria-label":n,"aria-labelledby":r};return g().createElement(W,f({},c,p,{className:d,onClick:a,type:"button",hasIconOnly:!0,iconDescription:n,tooltipPosition:"bottom",tooltipAlignment:l,ref:t}),o)}));Be.propTypes={...Te,children:A().node.isRequired,className:A().string,isActive:A().bool,onClick:A().func,tooltipAlignment:A().oneOf(["start","center","end"])},Be.displayName="HeaderGlobalAction";var He=Be;const Ve=g().createContext(1),Me=["one","two","three"],Re=Me.length-1,Ne=g().forwardRef((function(e,t){let{as:n="div",className:r,children:o,level:i,...a}=e;const s=g().useContext(Ve),l=i??s,c=w(),u=b()(`${c}--layer-${Me[l]}`,r),d=Math.max(0,Math.min(l+1,Re));return g().createElement(Ve.Provider,{value:d},g().createElement(n,f({ref:t},a,{className:u}),o))}));Ne.propTypes={as:A().oneOfType([A().func,A().string,A().elementType]),children:A().node,className:A().string,level:A().oneOf([0,1,2])}},2779:(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];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},9010:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(272),o=n.n(r),i=n(2609),a=n.n(i)()(o());a.push([e.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-patient-flags__card-header__desktopHeader___GveXk,.-esm-patient-flags__card-header__tabletHeader___iKL3m{display:flex;justify-content:space-between;align-items:center;padding:.75rem 0 .75rem 1rem;background-color:#fff}.-esm-patient-flags__card-header__desktopHeader___GveXk h4:after,.-esm-patient-flags__card-header__tabletHeader___iKL3m h4:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-patient-flags__card-header__desktopHeader___GveXk{height:3rem}.-esm-patient-flags__card-header__desktopHeader___GveXk h4{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252}.-esm-patient-flags__card-header__tabletHeader___iKL3m{height:4.5rem}.-esm-patient-flags__card-header__tabletHeader___iKL3m h4{font-size:var(--cds-heading-03-font-size, 1.25rem);font-weight:var(--cds-heading-03-font-weight, 400);line-height:var(--cds-heading-03-line-height, 1.4);letter-spacing:var(--cds-heading-03-letter-spacing, 0);color:#525252}html[dir=rtl] .-esm-patient-flags__card-header__desktopHeader___GveXk,html[dir=rtl] .-esm-patient-flags__card-header__tabletHeader___iKL3m{text-align:right;padding:.75rem 1rem .75rem 0}',"",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./../../node_modules/@openmrs/esm-patient-common-lib/src/cards/card-header.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CCnDF,+GACE,YAAA,CACA,6BAAA,CACA,kBAAA,CACA,4BAAA,CACA,qBDFc,CCId,iIACE,UAAA,CACA,aAAA,CACA,UAAA,CACA,mBAAA,CACA,2CAAA,CAIJ,wDACE,WAAA,CACA,2DC40BE,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CD10BA,aDnBM,CCuBV,uDACE,aAAA,CACA,0DCo0BE,kDAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CDl0BA,aD3BM,CCiCR,2IACE,gBAAA,CACA,4BAAA",sourceRoot:""}]),a.locals={desktopHeader:"-esm-patient-flags__card-header__desktopHeader___GveXk",tabletHeader:"-esm-patient-flags__card-header__tabletHeader___iKL3m"};const s=a},8686:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(272),o=n.n(r),i=n(2609),a=n.n(i)()(o());a.push([e.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-patient-flags__empty-state__action___LOm6z{margin-bottom:.5rem}.-esm-patient-flags__empty-state__content___dTpXO{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px);color:#525252;margin-top:1rem;margin-bottom:.5rem}.-esm-patient-flags__empty-state__desktopHeading___iA5_A h4{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252}.-esm-patient-flags__empty-state__tabletHeading___VhDQa h4{font-size:var(--cds-heading-03-font-size, 1.25rem);font-weight:var(--cds-heading-03-font-weight, 400);line-height:var(--cds-heading-03-line-height, 1.4);letter-spacing:var(--cds-heading-03-letter-spacing, 0);color:#525252}.-esm-patient-flags__empty-state__desktopHeading___iA5_A,.-esm-patient-flags__empty-state__tabletHeading___VhDQa{text-align:left;text-transform:capitalize;margin-bottom:1rem}.-esm-patient-flags__empty-state__desktopHeading___iA5_A h4:after,.-esm-patient-flags__empty-state__tabletHeading___VhDQa h4:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-patient-flags__empty-state__heading___X_yCc:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-patient-flags__empty-state__tile___jIU4a{text-align:center;border:1px solid #e0e0e0}',"",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./../../node_modules/@openmrs/esm-patient-common-lib/src/empty-state/empty-state.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CCnDF,iDACE,mBCgBW,CDbb,kDE01BI,2DAAA,CAAA,0DAAA,CAAA,8DAAA,CAAA,mEAAA,CFx1BF,aDLQ,CCMR,eCoBW,CDnBX,mBCSW,CDLX,4DEk1BE,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CFh1BA,aDbM,CCkBR,2DE20BE,kDAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CFz0BA,aDpBM,CCwBV,iHACE,eAAA,CACA,yBAAA,CACA,kBCDW,CDGX,mIACE,UAAA,CACA,aAAA,CACA,UAAA,CACA,mBAAA,CACA,2CAAA,CAIJ,wDACE,UAAA,CACA,aAAA,CACA,UAAA,CACA,mBAAA,CACA,2CAAA,CAGF,+CACE,iBAAA,CACA,wBAAA",sourceRoot:""}]),a.locals={action:"-esm-patient-flags__empty-state__action___LOm6z",content:"-esm-patient-flags__empty-state__content___dTpXO",desktopHeading:"-esm-patient-flags__empty-state__desktopHeading___iA5_A",tabletHeading:"-esm-patient-flags__empty-state__tabletHeading___VhDQa",heading:"-esm-patient-flags__empty-state__heading___X_yCc",tile:"-esm-patient-flags__empty-state__tile___jIU4a"};const s=a},6970:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(272),o=n.n(r),i=n(2609),a=n.n(i)()(o());a.push([e.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-patient-flags__error-state__errorMessage___qND1G{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);margin-top:2.25rem;margin-bottom:.5rem}.-esm-patient-flags__error-state__errorCopy___EO3m2{margin-bottom:.5rem;font-size:var(--cds-body-01-font-size, 0.875rem);font-weight:var(--cds-body-01-font-weight, 400);line-height:var(--cds-body-01-line-height, 1.42857);letter-spacing:var(--cds-body-01-letter-spacing, 0.16px);color:#525252}.-esm-patient-flags__error-state__desktopHeading___QC3oF h4{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252}.-esm-patient-flags__error-state__tabletHeading___U5Hf5 h4{font-size:var(--cds-heading-03-font-size, 1.25rem);font-weight:var(--cds-heading-03-font-weight, 400);line-height:var(--cds-heading-03-line-height, 1.4);letter-spacing:var(--cds-heading-03-letter-spacing, 0);color:#525252}.-esm-patient-flags__error-state__desktopHeading___QC3oF,.-esm-patient-flags__error-state__tabletHeading___U5Hf5{text-align:left;text-transform:capitalize;margin-bottom:1rem}.-esm-patient-flags__error-state__desktopHeading___QC3oF h4:after,.-esm-patient-flags__error-state__tabletHeading___U5Hf5 h4:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-patient-flags__error-state__tile____mVKT{text-align:center;border:1px solid #e0e0e0}',"",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./../../node_modules/@openmrs/esm-patient-common-lib/src/error-state/error-state.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CCnDF,uDC81BI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CD31BF,kBAAA,CACA,mBEaW,CFVb,oDACE,mBESW,CD60BT,gDAAA,CAAA,+CAAA,CAAA,mDAAA,CAAA,wDAAA,CDp1BF,aDTQ,CCaR,4DCg1BE,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CD90BA,aDfM,CCoBR,2DCy0BE,kDAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CDv0BA,aDtBM,CC0BV,iHACE,eAAA,CACA,yBAAA,CACA,kBEHW,CFKX,mIACE,UAAA,CACA,aAAA,CACA,UAAA,CACA,mBAAA,CACA,2CAAA,CAIJ,+CACE,iBAAA,CACA,wBAAA",sourceRoot:""}]),a.locals={errorMessage:"-esm-patient-flags__error-state__errorMessage___qND1G",errorCopy:"-esm-patient-flags__error-state__errorCopy___EO3m2",desktopHeading:"-esm-patient-flags__error-state__desktopHeading___QC3oF",tabletHeading:"-esm-patient-flags__error-state__tabletHeading___U5Hf5",tile:"-esm-patient-flags__error-state__tile____mVKT"};const s=a},1167:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(272),o=n.n(r),i=n(2609),a=n.n(i)()(o());a.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-patient-flags__pagination__bodyShort01___ID5jB,.-esm-patient-flags__pagination__configurableLink___mTtvw{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px)}.-esm-patient-flags__pagination__desktop___XQVD2,.-esm-patient-flags__pagination__tablet___xanY5{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px);display:flex;justify-content:space-between;color:#525252;background-color:#fff;padding-left:1rem;align-items:center}.-esm-patient-flags__pagination__desktop___XQVD2 .cds--pagination{min-height:0rem;height:2rem;width:auto;border:none}.-esm-patient-flags__pagination__desktop___XQVD2 .cds--pagination .cds--select-input,.-esm-patient-flags__pagination__desktop___XQVD2 .cds--pagination .cds--btn,.-esm-patient-flags__pagination__desktop___XQVD2 .cds--pagination .cds--pagination__right{min-height:0rem;height:2rem}.-esm-patient-flags__pagination__tablet___xanY5 .cds--pagination{min-height:0rem;height:3rem;width:auto;border:none}.-esm-patient-flags__pagination__tablet___xanY5 .cds--pagination .cds--select-input,.-esm-patient-flags__pagination__tablet___xanY5 .cds--pagination .cds--btn,.-esm-patient-flags__pagination__tablet___xanY5 .cds--pagination .cds--pagination__right{min-height:0rem;height:3rem}.-esm-patient-flags__pagination__configurableLink___mTtvw{text-decoration:none;padding:0 .5rem}.-esm-patient-flags__pagination__pagination___iyW8v{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px);background-color:#fff;color:#525252;display:flex}div.-esm-patient-flags__pagination__pagination___iyW8v>.cds--pagination__left{display:none}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./../../node_modules/@openmrs/esm-patient-common-lib/src/pagination/pagination.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CCnDF,+GC81BI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CD11BJ,iGC01BI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CDx1BF,YAAA,CACA,6BAAA,CACA,aDPQ,CCQR,qBDZM,CCaN,iBAAA,CACA,kBAAA,CAGF,kEACE,eAAA,CACA,WAAA,CACA,UAAA,CACA,WAAA,CAEA,2PACE,eAAA,CACA,WAAA,CAIJ,iEACE,eAAA,CACA,WAAA,CACA,UAAA,CACA,WAAA,CAEA,wPACE,eAAA,CACA,WAAA,CAIJ,0DACE,oBAAA,CAEA,eAAA,CAGF,oDCkzBI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CDhzBF,qBDjDM,CCkDN,aD9CQ,CC+CR,YAAA,CAIA,8EACE,YAAA",sourceRoot:""}]),a.locals={bodyShort01:"-esm-patient-flags__pagination__bodyShort01___ID5jB",configurableLink:"-esm-patient-flags__pagination__configurableLink___mTtvw",desktop:"-esm-patient-flags__pagination__desktop___XQVD2",tablet:"-esm-patient-flags__pagination__tablet___xanY5",pagination:"-esm-patient-flags__pagination__pagination___iyW8v"};const s=a},7578:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(272),o=n.n(r),i=n(2609),a=n.n(i)()(o());a.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-patient-flags__siderail-nav-button__container___cDD8M{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100%;width:100%;color:#161616;max-width:none}.-esm-patient-flags__siderail-nav-button__container___cDD8M:hover{color:#525252}.-esm-patient-flags__siderail-nav-button__container___cDD8M>span{margin-top:.25rem;font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px);color:#525252}.-esm-patient-flags__siderail-nav-button__container___cDD8M svg{transform:scale(1.25)}.-esm-patient-flags__siderail-nav-button__elementContainer___AKqJ6{display:flex;align-items:center;position:relative}.-esm-patient-flags__siderail-nav-button__elementContainer___AKqJ6 .-esm-patient-flags__siderail-nav-button__countTag___PHvjz{position:absolute;font-family:IBMPlexSans;font-size:11px;font-weight:600;font-stretch:normal;font-style:normal;line-height:1.27;letter-spacing:.13px;text-align:center;color:#f4f4f4;background-color:#da1e28;padding:0 3px 0 4px;border-radius:4px;top:-6px;right:-6px}.omrs-breakpoint-gt-tablet .-esm-patient-flags__siderail-nav-button__active___W1QA7{border:.125rem solid;border-color:#007d79;border-color:var(--brand-03);border-radius:50%;background-color:#fff}.omrs-breakpoint-gt-tablet .-esm-patient-flags__siderail-nav-button__active___W1QA7:focus{border-color:var(--brand-03) !important}.omrs-breakpoint-gt-tablet .-esm-patient-flags__siderail-nav-button__container___cDD8M svg{transform:scale(1.25)}.omrs-breakpoint-lt-desktop .-esm-patient-flags__siderail-nav-button__active___W1QA7{background-color:#edf5ff;color:#0f62fe}.omrs-breakpoint-lt-desktop .-esm-patient-flags__siderail-nav-button__active___W1QA7:hover{color:#0f62fe}.omrs-breakpoint-lt-desktop .-esm-patient-flags__siderail-nav-button__active___W1QA7>span{color:#0f62fe;font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px)}.omrs-breakpoint-lt-desktop .-esm-patient-flags__siderail-nav-button__active___W1QA7 svg{fill:#0f62fe}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./../../node_modules/@openmrs/esm-patient-common-lib/src/siderail-nav-button/siderail-nav-button.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CCnDF,4DACE,YAAA,CACA,qBAAA,CACA,sBAAA,CACA,kBAAA,CACA,WAAA,CACA,UAAA,CACA,aDPM,CCQN,cAAA,CAEA,kEACE,aDVM,CCaR,iEACE,iBCHS,CCk1BT,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CF70BA,aDhBM,CCmBR,gEACE,qBAAA,CAIJ,mEACE,YAAA,CACA,kBAAA,CACA,iBAAA,CAEA,8HACE,iBAAA,CACC,uBAAA,CACD,cAAA,CACA,eAAA,CACA,mBAAA,CACA,iBAAA,CACA,gBAAA,CACA,oBAAA,CACA,iBAAA,CACA,aD5CI,CC6CJ,wBDzBK,CC0BL,mBAAA,CACA,iBAAA,CACA,QAAA,CACA,UAAA,CAMF,oFACE,oBAAA,CDRF,oBAAA,CACA,4BAAA,CCSE,iBAAA,CACA,qBD1DI,CC4DJ,0FACE,uCAAA,CAKF,2FACE,qBAAA,CAOJ,qFACE,wBDhEY,CCiEZ,aDxDa,CC0Db,2FACE,aD3DW,CC8Db,0FACE,aD/DW,CG60Bb,2DAAA,CAAA,0DAAA,CAAA,8DAAA,CAAA,mEAAA,CF1wBA,yFACE,YDpEW",sourceRoot:""}]),a.locals={container:"-esm-patient-flags__siderail-nav-button__container___cDD8M",elementContainer:"-esm-patient-flags__siderail-nav-button__elementContainer___AKqJ6",countTag:"-esm-patient-flags__siderail-nav-button__countTag___PHvjz",active:"-esm-patient-flags__siderail-nav-button__active___W1QA7"};const s=a},2609:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&a[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},272:e=>{"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),i="/*# ".concat(o," */"),a=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[t].concat(a).concat([i]).join("\n")}return[t].join("\n")}},8262:(e,t,n)=>{"use strict";var r=n(3586);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}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}},3980:(e,t,n)=>{e.exports=n(8262)()},3586:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6062: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=[],s=0;s<e.length;s++){var l=e[s],c=r.base?l[0]+r.base:l[0],u=i[c]||0,d="".concat(c," ").concat(u);i[c]=u+1;var p=n(d),f={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)t[p].references++,t[p].updater(f);else{var h=o(f,r);r.byIndex=s,t.splice(s,0,{identifier:d,updater:h,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 s=n(i[a]);t[s].references--}for(var l=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=l}}},6793: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)}},1173:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},7892:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},4036:e=>{"use strict";e.exports=function(e){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)}}}},2464: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))}}},7809:(e,t,n)=>{"use strict";n.d(t,{NT:()=>v});var r=n(5206),o=n.n(r),i=n(2870),a=n(6062),s=n.n(a),l=n(4036),c=n.n(l),u=n(6793),d=n.n(u),p=n(7892),f=n.n(p),h=n(1173),A=n.n(h),m=n(2464),g=n.n(m),_=n(9010),b={};b.styleTagTransform=g(),b.setAttributes=f(),b.insert=d().bind(null,"head"),b.domAPI=c(),b.insertStyleElement=A(),s()(_.Z,b),_.Z&&_.Z.locals&&_.Z.locals,n(8744),n(4924),n(1492);var v=function(e){var t=e.width,n=void 0===t?"64":t,r=e.height,i=void 0===r?"64":r;return o().createElement("svg",{width:n,height:i,viewBox:"0 0 64 64"},o().createElement("title",null,"Empty data illustration"),o().createElement("g",{fill:"none",fillRule:"evenodd"},o().createElement("path",{d:"M38.133 13.186H21.947c-.768.001-1.39.623-1.39 1.391V50.55l-.186.057-3.97 1.216a.743.743 0 01-.927-.493L3.664 12.751a.742.742 0 01.492-.926l6.118-1.874 17.738-5.43 6.119-1.873a.741.741 0 01.926.492L38.076 13l.057.186z",fill:"#F4F4F4"}),o().createElement("path",{d:"M41.664 13L38.026 1.117A1.576 1.576 0 0036.056.07l-8.601 2.633-17.737 5.43-8.603 2.634a1.578 1.578 0 00-1.046 1.97l12.436 40.616a1.58 1.58 0 001.969 1.046l5.897-1.805.185-.057v-.194l-.185.057-5.952 1.822a1.393 1.393 0 01-1.737-.923L.247 12.682a1.39 1.39 0 01.923-1.738L9.772 8.31 27.51 2.881 36.112.247a1.393 1.393 0 011.737.923L41.47 13l.057.186h.193l-.057-.185z",fill:"#8D8D8D"}),o().createElement("path",{d:"M11.378 11.855a.836.836 0 01-.798-.59L9.385 7.361a.835.835 0 01.554-1.042l16.318-4.996a.836.836 0 011.042.554l1.195 3.902a.836.836 0 01-.554 1.043l-16.318 4.995a.831.831 0 01-.244.037z",fill:"#C6C6C6"}),o().createElement("circle",{fill:"#C6C6C6",cx:17.636,cy:2.314,r:1.855}),o().createElement("circle",{fill:"#FFF",fillRule:"nonzero",cx:17.636,cy:2.314,r:1.175}),o().createElement("path",{d:"M55.893 53.995H24.544a.79.79 0 01-.788-.789V15.644a.79.79 0 01.788-.788h31.349a.79.79 0 01.788.788v37.562a.79.79 0 01-.788.789z",fill:"#F4F4F4"}),o().createElement("path",{d:"M41.47 13H21.948a1.579 1.579 0 00-1.576 1.577V52.4l.185-.057V14.577c.001-.768.623-1.39 1.391-1.39h19.581L41.471 13zm17.02 0H21.947a1.579 1.579 0 00-1.576 1.577v42.478c0 .87.706 1.576 1.576 1.577H58.49a1.579 1.579 0 001.576-1.577V14.577a1.579 1.579 0 00-1.576-1.576zm1.39 44.055c0 .768-.622 1.39-1.39 1.392H21.947c-.768-.001-1.39-.624-1.39-1.392V14.577c0-.768.622-1.39 1.39-1.39H58.49c.768 0 1.39.622 1.39 1.39v42.478z",fill:"#8D8D8D"}),o().createElement("path",{d:"M48.751 17.082H31.686a.836.836 0 01-.835-.835v-4.081c0-.46.374-.834.835-.835H48.75c.461 0 .834.374.835.835v4.08c0 .462-.374.835-.835.836z",fill:"#C6C6C6"}),o().createElement("circle",{fill:"#C6C6C6",cx:40.218,cy:9.755,r:1.855}),o().createElement("circle",{fill:"#FFF",fillRule:"nonzero",cx:40.218,cy:9.755,r:1.13})))},y=n(8686),C={};C.styleTagTransform=g(),C.setAttributes=f(),C.insert=d().bind(null,"head"),C.domAPI=c(),C.insertStyleElement=A(),s()(y.Z,C),y.Z&&y.Z.locals&&y.Z.locals;var w=n(6970),E={};E.styleTagTransform=g(),E.setAttributes=f(),E.insert=d().bind(null,"head"),E.domAPI=c(),E.insertStyleElement=A(),s()(w.Z,E),w.Z&&w.Z.locals&&w.Z.locals;var x=function(e,t){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},x(e,t)};function D(e,t){function n(){this.constructor=e}x(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function k(e){return"function"==typeof e}var O=!1,T={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e&&(new Error).stack,O=e},get useDeprecatedSynchronousErrorHandling(){return O}};function S(e){setTimeout((function(){throw e}),0)}var B={closed:!0,next:function(e){},error:function(e){if(T.useDeprecatedSynchronousErrorHandling)throw e;S(e)},complete:function(){}},H=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}(),V=function(){function e(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),M=function(){function e(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return e.prototype.unsubscribe=function(){var t;if(!this.closed){var n,r=this,o=r._parentOrParents,i=r._ctorUnsubscribe,a=r._unsubscribe,s=r._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,o instanceof e)o.remove(this);else if(null!==o)for(var l=0;l<o.length;++l)o[l].remove(this);if(k(a)){i&&(this._unsubscribe=void 0);try{a.call(this)}catch(e){t=e instanceof V?R(e.errors):[e]}}if(H(s)){l=-1;for(var c=s.length;++l<c;){var u=s[l];if(null!==(n=u)&&"object"==typeof n)try{u.unsubscribe()}catch(e){t=t||[],e instanceof V?t=t.concat(R(e.errors)):t.push(e)}}}if(t)throw new V(t)}},e.prototype.add=function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var r=n;(n=new e)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var o=n._parentOrParents;if(null===o)n._parentOrParents=this;else if(o instanceof e){if(o===this)return n;n._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return n;o.push(this)}var i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.EMPTY=function(e){return e.closed=!0,e}(new e),e}();function R(e){return e.reduce((function(e,t){return e.concat(t instanceof V?t.errors:t)}),[])}var N=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),$=function(e){function t(n,r,o){var i=e.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=B;break;case 1:if(!n){i.destination=B;break}if("object"==typeof n){n instanceof t?(i.syncErrorThrowable=n.syncErrorThrowable,i.destination=n,n.add(i)):(i.syncErrorThrowable=!0,i.destination=new L(i,n));break}default:i.syncErrorThrowable=!0,i.destination=new L(i,n,r,o)}return i}return D(t,e),t.prototype[N]=function(){return this},t.create=function(e,n,r){var o=new t(e,n,r);return o.syncErrorThrowable=!1,o},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},t}(M),L=function(e){function t(t,n,r,o){var i,a=e.call(this)||this;a._parentSubscriber=t;var s=a;return k(n)?i=n:n&&(i=n.next,r=n.error,o=n.complete,n!==B&&(k((s=Object.create(n)).unsubscribe)&&a.add(s.unsubscribe.bind(s)),s.unsubscribe=a.unsubscribe.bind(a))),a._context=s,a._next=i,a._error=r,a._complete=o,a}return D(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;T.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=T.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):S(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;S(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};T.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),T.useDeprecatedSynchronousErrorHandling)throw e;S(e)}},t.prototype.__tryOrSetError=function(e,t,n){if(!T.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(t){return T.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):(S(t),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}($),z=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function I(e){return e}var P=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this.operator,o=function(e,t,n){if(e){if(e instanceof $)return e;if(e[N])return e[N]()}return e||t||n?new $(e,t,n):new $(B)}(e,t,n);if(r?o.add(r.call(o,this.source)):o.add(this.source||T.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),T.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){T.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e,n=t.closed,r=t.destination,o=t.isStopped;if(n||o)return!1;e=r&&r instanceof $?r:null}return!0}(e)?e.error(t):console.warn(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=j(t))((function(t,r){var o;o=n.subscribe((function(t){try{e(t)}catch(e){r(e),o&&o.unsubscribe()}}),r,t)}))},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[z]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:(0===(n=e).length?I:1===n.length?n[0]:function(e){return n.reduce((function(e,t){return t(e)}),e)})(this);var n},e.prototype.toPromise=function(e){var t=this;return new(e=j(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function j(e){if(e||(e=T.Promise||Promise),!e)throw new Error("no Promise impl found");return e}var Z=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}(),F=function(e){function t(t,n){var r=e.call(this)||this;return r.subject=t,r.subscriber=n,r.closed=!1,r}return D(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(M),U=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=t,n}return D(t,e),t}($),W=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return D(t,e),t.prototype[N]=function(){return new U(this)},t.prototype.lift=function(e){var t=new G(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new Z;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].next(e)},t.prototype.error=function(e){if(this.closed)throw new Z;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new Z;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new Z;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new Z;return this.hasError?(e.error(this.thrownError),M.EMPTY):this.isStopped?(e.complete(),M.EMPTY):(this.observers.push(e),new F(this,e))},t.prototype.asObservable=function(){var e=new P;return e.source=this,e},t.create=function(e,t){return new G(e,t)},t}(P),G=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return D(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):M.EMPTY},t}(W);new(function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return D(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Z;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(W))(null);var K=(0,i.createGlobalStore)("nav-groups",{navGroups:[]});(0,i.createUseStore)(K);(0,i.createGlobalStore)("order-basket",{items:{},postDataPrepFunctions:{}});var Q=n(1167),q={};q.styleTagTransform=g(),q.setAttributes=f(),q.insert=d().bind(null,"head"),q.domAPI=c(),q.insertStyleElement=A(),s()(Q.Z,q),Q.Z&&Q.Z.locals&&Q.Z.locals;var X=n(3255);(0,n(4729).xD)(X.ZP,(e=>(t,n,r)=>(r.revalidateOnFocus=!1,r.revalidateIfStale=!1,r.revalidateOnReconnect=!1,e(t,n,r)))),n(6081);var Y=n(7578),J={};J.styleTagTransform=g(),J.setAttributes=f(),J.insert=d().bind(null,"head"),J.domAPI=c(),J.insertStyleElement=A(),s()(Y.Z,J),Y.Z&&Y.Z.locals&&Y.Z.locals},452:(e,t,n)=>{"use strict";var r=n(5206),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,s=r.useLayoutEffect,l=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 s((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]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},3100:(e,t,n)=>{"use strict";e.exports=n(452)},4729:(e,t,n)=>{"use strict";n.d(t,{$l:()=>a,BN:()=>$,DY:()=>h,J$:()=>U,JN:()=>v,LI:()=>T,PM:()=>c,W6:()=>k,i_:()=>i,ko:()=>X,kw:()=>O,mf:()=>l,o8:()=>s,qC:()=>H,s6:()=>q,sj:()=>N,u3:()=>M,u_:()=>j,w6:()=>D,xD:()=>Y});var r=n(5206);const o=()=>{},i=o(),a=Object,s=e=>e===i,l=e=>"function"==typeof e,c=(e,t)=>({...e,...t}),u=e=>l(e.then),d=new WeakMap;let p=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=d.get(e),o)return o;if(o=++p+"~",d.set(e,o),n==Array){for(o="@",i=0;i<e.length;i++)o+=f(e[i])+",";d.set(e,o)}if(n==a){o="#";const t=a.keys(e).sort();for(;!s(i=t.pop());)s(e[i])||(o+=i+":"+f(e[i])+",");d.set(e,o)}}return o},h=new WeakMap,A={},m={},g="undefined",_=typeof window!=g,b=typeof document!=g,v=(e,t)=>{const n=h.get(e);return[()=>!s(t)&&e.get(t)||A,r=>{if(!s(t)){const o=e.get(t);t in m||(m[t]=o),n[5](t,c(o,r),o||A)}},n[6],()=>!s(t)&&t in m?m[t]:!s(t)&&e.get(t)||A]};let y=!0;const[C,w]=_&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[o,o],E={isOnline:()=>y,isVisible:()=>{const e=b&&document.visibilityState;return s(e)||"hidden"!==e}},x={initFocus:e=>(b&&document.addEventListener("visibilitychange",e),C("focus",e),()=>{b&&document.removeEventListener("visibilitychange",e),w("focus",e)}),initReconnect:e=>{const t=()=>{y=!0,e()},n=()=>{y=!1};return C("online",t),C("offline",n),()=>{w("online",t),w("offline",n)}}},D=!r.useId,k=!_||"Deno"in window,O=e=>_&&typeof window.requestAnimationFrame!=g?window.requestAnimationFrame(e):setTimeout(e,1),T=k?r.useEffect:r.useLayoutEffect,S="undefined"!=typeof navigator&&navigator.connection,B=!k&&S&&(["slow-2g","2g"].includes(S.effectiveType)||S.saveData),H=e=>{if(l(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 V=0;const M=()=>++V,R=2;var N={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:R,RECONNECT_EVENT:1};async function $(...e){const[t,n,r,o]=e,a=c({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{});let d=a.populateCache;const p=a.rollbackOnError;let f=a.optimisticData;const A=!1!==a.revalidate,m=a.throwOnError;if(l(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(g))}return g(n);async function g(n){const[o]=H(n);if(!o)return;const[a,c]=v(t,o),[g,_,b,y]=h.get(t),C=()=>{const e=g[o];return A&&(delete b[o],delete y[o],e&&e[0])?e[0](R).then((()=>a().data)):a().data};if(e.length<3)return C();let w,E=r;const x=M();_[o]=[x,0];const D=!s(f),k=a(),O=k.data,T=k._c,S=s(T)?O:T;if(D&&(f=l(f)?f(S,O):f,c({data:f,_c:S})),l(E))try{E=E(S)}catch(e){w=e}if(E&&u(E)){if(E=await E.catch((e=>{w=e})),x!==_[o][0]){if(w)throw w;return E}w&&D&&(e=>"function"==typeof p?p(e):!1!==p)(w)&&(d=!0,c({data:S,_c:i}))}if(d&&!w)if(l(d)){const e=d(E,S);c({data:e,error:i,_c:i})}else c({data:E,error:i,_c:i});if(_[o][1]=M(),Promise.resolve(C()).then((()=>{c({_c:i})})),!w)return E;if(m)throw w}}const L=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},z=(e,t)=>{if(!h.has(e)){const n=c(x,t),r={},a=$.bind(i,e);let s=o;const l={},u=(e,t)=>{const n=l[e]||[];return l[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},d=(t,n,r)=>{e.set(t,n);const o=l[t];if(o)for(const e of o)e(n,r)},p=()=>{if(!h.has(e)&&(h.set(e,[r,{},{},{},a,d,u]),!k)){const t=n.initFocus(setTimeout.bind(i,L.bind(i,r,0))),o=n.initReconnect(setTimeout.bind(i,L.bind(i,r,1)));s=()=>{t&&t(),o&&o(),h.delete(e)}}};return p(),[e,a,p,s]}return[e,h.get(e)[4]]},[I,P]=z(new Map),j=c({onLoadingSlow:o,onSuccess:o,onError:o,onErrorRetry:(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,l=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!s(i)&&a>i||setTimeout(r,l,o)},onDiscarded:o,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:B?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:B?5e3:3e3,compare:(e,t)=>f(e)==f(t),isPaused:()=>!1,cache:I,mutate:P,fallback:{}},E),Z=(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},F=(0,r.createContext)({}),U=e=>{const{value:t}=e,n=(0,r.useContext)(F),o=l(t),a=(0,r.useMemo)((()=>o?t(n):t),[o,n,t]),s=(0,r.useMemo)((()=>o?a:Z(n,a)),[o,n,a]),u=a&&a.provider,d=(0,r.useRef)(i);u&&!d.current&&(d.current=z(u(s.cache||I),a));const p=d.current;return p&&(s.cache=p[0],s.mutate=p[1]),T((()=>{if(p)return p[2]&&p[2](),p[3]}),[]),(0,r.createElement)(F.Provider,c(e,{value:s}))},W=_&&window.__SWR_DEVTOOLS_USE__,G=W?window.__SWR_DEVTOOLS_USE__:[],K=e=>l(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],Q=G.concat((e=>(t,n,r)=>e(t,n&&((...e)=>{const[r]=H(t),[,,,o]=h.get(I);if(r.startsWith("$inf$"))return n(...e);const i=o[r];return s(i)?n(...e):(delete o[r],i)}),r))),q=e=>function(...t){const n=c(j,(0,r.useContext)(F)),[o,i,a]=K(t),s=Z(n,a);let l=e;const{use:u}=s,d=(u||[]).concat(Q);for(let e=d.length;e--;)l=d[e](l);return l(o,i||s.fetcher||null,s)},X=(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())}},Y=(e,t)=>(...n)=>{const[r,o,i]=K(n),a=(i.use||[]).concat(t);return e(r,o,{...i,use:a})};W&&(window.__SWR_DEVTOOLS_REACT__=r)},3255:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>l});var r=n(5206),o=n(3100),i=n(4729);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)}),s={dedupe:!0},l=(i.$l.defineProperty(i.J$,"defaultValue",{value:i.u_}),(0,i.s6)(((e,t,n)=>{const{cache:l,compare:c,suspense:u,fallbackData:d,revalidateOnMount:p,revalidateIfStale:f,refreshInterval:h,refreshWhenHidden:A,refreshWhenOffline:m,keepPreviousData:g}=n,[_,b,v,y]=i.DY.get(l),[C,w]=(0,i.qC)(e),E=(0,r.useRef)(!1),x=(0,r.useRef)(!1),D=(0,r.useRef)(C),k=(0,r.useRef)(t),O=(0,r.useRef)(n),T=()=>O.current,S=()=>T().isVisible()&&T().isOnline(),[B,H,V,M]=(0,i.JN)(l,C),R=(0,r.useRef)({}).current,N=(0,i.o8)(d)?n.fallback[C]:d,$=(e,t)=>{for(const n in R){const r=n;if("data"===r){if(!c(e[r],t[r])){if(!(0,i.o8)(e[r]))return!1;if(!c(W,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},L=(0,r.useMemo)((()=>{const e=!!C&&!!t&&((0,i.o8)(p)?!T().isPaused()&&!u&&(!!(0,i.o8)(f)||f):p),n=t=>{const n=(0,i.PM)(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=B(),o=M(),a=n(r),s=r===o?a:n(o);let l=a;return[()=>{const e=n(B());return $(e,l)?(l.data=e.data,l.isLoading=e.isLoading,l.isValidating=e.isValidating,l.error=e.error,l):(l=e,e)},()=>s]}),[l,C]),z=(0,o.useSyncExternalStore)((0,r.useCallback)((e=>V(C,((t,n)=>{$(n,t)||e()}))),[l,C]),L[0],L[1]),I=!E.current,P=_[C]&&_[C].length>0,j=z.data,Z=(0,i.o8)(j)?N:j,F=z.error,U=(0,r.useRef)(Z),W=g?(0,i.o8)(j)?U.current:j:Z,G=!(P&&!(0,i.o8)(F))&&(I&&!(0,i.o8)(p)?p:!T().isPaused()&&(u?!(0,i.o8)(Z)&&f:(0,i.o8)(Z)||f)),K=!!(C&&t&&I&&G),Q=(0,i.o8)(z.isValidating)?K:z.isValidating,q=(0,i.o8)(z.isLoading)?K:z.isLoading,X=(0,r.useCallback)((async e=>{const t=k.current;if(!C||!t||x.current||T().isPaused())return!1;let r,o,a=!0;const s=e||{},l=!v[C]||!s.dedupe,u=()=>i.w6?!x.current&&C===D.current&&E.current:C===D.current,d={isValidating:!1,isLoading:!1},p=()=>{H(d)},f=()=>{const e=v[C];e&&e[1]===o&&delete v[C]},h={isValidating:!0};(0,i.o8)(B().data)&&(h.isLoading=!0);try{if(l&&(H(h),n.loadingTimeout&&(0,i.o8)(B().data)&&setTimeout((()=>{a&&u()&&T().onLoadingSlow(C,n)}),n.loadingTimeout),v[C]=[t(w),(0,i.u3)()]),[r,o]=v[C],r=await r,l&&setTimeout(f,n.dedupingInterval),!v[C]||v[C][1]!==o)return l&&u()&&T().onDiscarded(C),!1;d.error=i.i_;const e=b[C];if(!(0,i.o8)(e)&&(o<=e[0]||o<=e[1]||0===e[1]))return p(),l&&u()&&T().onDiscarded(C),!1;const s=B().data;d.data=c(s,r)?s:r,l&&u()&&T().onSuccess(r,C,n)}catch(e){f();const t=T(),{shouldRetryOnError:n}=t;t.isPaused()||(d.error=e,l&&u()&&(t.onError(e,C,t),(!0===n||(0,i.mf)(n)&&n(e))&&S()&&t.onErrorRetry(e,C,t,(e=>{const t=_[C];t&&t[0]&&t[0](i.sj.ERROR_REVALIDATE_EVENT,e)}),{retryCount:(s.retryCount||0)+1,dedupe:!0})))}return a=!1,p(),!0}),[C,l]),Y=(0,r.useCallback)(((...e)=>(0,i.BN)(l,D.current,...e)),[]);if((0,i.LI)((()=>{k.current=t,O.current=n,(0,i.o8)(j)||(U.current=j)})),(0,i.LI)((()=>{if(!C)return;const e=X.bind(i.i_,s);let t=0;const n=(0,i.ko)(C,_,((n,r={})=>{if(n==i.sj.FOCUS_EVENT){const n=Date.now();T().revalidateOnFocus&&n>t&&S()&&(t=n+T().focusThrottleInterval,e())}else if(n==i.sj.RECONNECT_EVENT)T().revalidateOnReconnect&&S()&&e();else{if(n==i.sj.MUTATE_EVENT)return X();if(n==i.sj.ERROR_REVALIDATE_EVENT)return X(r)}}));return x.current=!1,D.current=C,E.current=!0,H({_k:w}),G&&((0,i.o8)(Z)||i.W6?e():(0,i.kw)(e)),()=>{x.current=!0,n()}}),[C]),(0,i.LI)((()=>{let e;function t(){const t=(0,i.mf)(h)?h(B().data):h;t&&-1!==e&&(e=setTimeout(n,t))}function n(){B().error||!A&&!T().isVisible()||!m&&!T().isOnline()?t():X(s).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[h,A,m,C]),(0,r.useDebugValue)(W),u&&(0,i.o8)(Z)&&C){if(!i.w6&&i.W6)throw new Error("Fallback data is required when using suspense in SSR.");k.current=t,O.current=n,x.current=!1;const e=y[C];if(!(0,i.o8)(e)){const t=Y(e);a(t)}if(!(0,i.o8)(F))throw F;{const e=X(s);(0,i.o8)(W)||(e.status="fulfilled",e.value=!0),a(e)}}return{mutate:Y,get data(){return R.data=!0,W},get error(){return R.error=!0,F},get isValidating(){return R.isValidating=!0,Q},get isLoading(){return R.isLoading=!0,q}}})))}}]);