@openfin/workspace 17.0.2 → 17.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/client-api/src/notifications.d.ts +6 -1
  2. package/client-api/src/shapes/templates.d.ts +4 -3
  3. package/client-api-platform/src/init/browser-window-focus.d.ts +0 -4
  4. package/client-api-platform/src/init/{browser-defaults.d.ts → override-callback/browser-defaults.d.ts} +2 -2
  5. package/client-api-platform/src/init/{dialogs.d.ts → override-callback/dialogs.d.ts} +1 -1
  6. package/client-api-platform/src/init/{override-callback.d.ts → override-callback/index.d.ts} +1 -1
  7. package/client-api-platform/src/init/{page-defaults.d.ts → override-callback/page-defaults.d.ts} +2 -2
  8. package/client-api-platform/src/init/override-callback/snapshot.d.ts +3 -0
  9. package/client-api-platform/src/init/override-callback/view-options.d.ts +12 -0
  10. package/client-api-platform/src/init/utils.d.ts +1 -4
  11. package/client-api-platform/src/shapes.d.ts +112 -1
  12. package/common/src/api/protocol/workspace-platform.d.ts +1 -2
  13. package/common/src/utils/modal-bounds.d.ts +1 -1
  14. package/common/src/utils/route.d.ts +0 -1
  15. package/common/src/utils/snapshot.d.ts +1 -2
  16. package/common/src/utils/window.d.ts +2 -0
  17. package/common/src/utils/workspace-modals.d.ts +1 -0
  18. package/home.js +23 -22
  19. package/home.js.map +1 -1
  20. package/index.js +23 -22
  21. package/index.js.map +1 -1
  22. package/notifications.js +63 -62
  23. package/notifications.js.map +1 -1
  24. package/package.json +3 -3
  25. package/store.js +24 -23
  26. package/store.js.map +1 -1
  27. /package/{client-api-platform/src/init → common/src/utils}/browser-base-url.d.ts +0 -0
package/index.js CHANGED
@@ -20,6 +20,7 @@
20
20
  line-height: ${({theme:e})=>e.lineHeight.ui};
21
21
  font-weight: ${({theme:e})=>e.fontWeight.bold};
22
22
  transition: border-color var(--openfin-ui-globalTransition);
23
+ font-family: var(--openfin-ui-globalTypography);
23
24
 
24
25
  &:not(:disabled) {
25
26
  cursor: pointer;
@@ -107,7 +108,7 @@
107
108
  padding: ${({theme:e})=>e.px.small} ${({theme:e})=>e.px.small} 0px
108
109
  ${({theme:e})=>e.px.base};
109
110
  width: 100%;
110
- `},124:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollapsibleCardStateless=t.CollapsibleCard=void 0;const o=n(5893),i=n(6689),a=r(n(7518)),l=n(3136),s=n(9634),c=n(1335),u=n(3911),f=n(7769),d=n(9507);t.CollapsibleCard=e=>{const[n,r]=(0,i.useState)(e.expanded||!1);return(0,o.jsx)(t.CollapsibleCardStateless,Object.assign({},e,{expanded:n,onExpand:e=>r(!e)}))},t.CollapsibleCardStateless=e=>(0,o.jsxs)(p,Object.assign({"data-testid":"collapsible-card"},{children:[(0,o.jsxs)(v,Object.assign({"aria-expanded":e.expanded,"data-testid":"heading-container",style:{position:e.fixedHeader?"sticky":void 0,top:0},onClick:()=>e.onExpand(e.expanded),tabIndex:0,onKeyDown:t=>{switch(t.code){case"Enter":case"Space":t.preventDefault(),e.onExpand(e.expanded)}}},{children:[(0,o.jsx)(h,{children:e.title}),(0,o.jsxs)("div",Object.assign({id:"icon-container"},{children:[void 0!==e.badgeText&&(0,o.jsx)(l.Badge,{count:e.badgeText,id:"collapsible-card-heading-badge","data-testid":"collapsible-card-heading-badge"}),(0,o.jsx)(s.Icon,{icon:e.expanded?"ChevronUpIcon":"ChevronDownIcon"})]}))]})),e.expanded&&(0,o.jsx)(u.CardContainer,Object.assign({maxHeight:e.maxHeight||"none"},{children:(0,o.jsx)("div",{children:e.children})}))]}));const p=a.default.div`
111
+ `},124:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollapsibleCardStateless=t.CollapsibleCard=void 0;const o=n(5893),i=n(6689),a=r(n(7518)),l=n(3136),s=n(9634),c=n(1335),u=n(3911),f=n(7769),d=n(9507);t.CollapsibleCard=(0,i.forwardRef)(((e,n)=>{const[r,a]=(0,i.useState)(e.expanded||!1);return(0,o.jsx)(t.CollapsibleCardStateless,Object.assign({},e,{ref:n,expanded:r,onExpand:e=>a(!e)}))})),t.CollapsibleCard.displayName="CollapsibleCard",t.CollapsibleCardStateless=(0,i.forwardRef)(((e,t)=>{var n,r;return(0,o.jsxs)(p,Object.assign({"data-testid":"collapsible-card"},{children:[(0,o.jsxs)(v,Object.assign({"aria-expanded":e.expanded,"data-testid":"heading-container",ref:t,zIndex:null===(n=e.headerSettings)||void 0===n?void 0:n.zIndex,fixedHeader:null===(r=e.headerSettings)||void 0===r?void 0:r.fixedHeader,onClick:()=>e.onExpand(e.expanded),tabIndex:0,onKeyDown:t=>{switch(t.code){case"Enter":case"Space":t.preventDefault(),e.onExpand(e.expanded)}}},{children:[(0,o.jsx)(h,{children:e.title}),(0,o.jsxs)("div",Object.assign({id:"icon-container"},{children:[void 0!==e.badgeText&&(0,o.jsx)(l.Badge,{count:e.badgeText,id:"collapsible-card-heading-badge","data-testid":"collapsible-card-heading-badge"}),(0,o.jsx)(s.Icon,{icon:e.expanded?"ChevronUpIcon":"ChevronDownIcon"})]}))]})),e.expanded&&(0,o.jsx)(u.CardContainer,Object.assign({maxHeight:e.maxHeight||"none"},{children:(0,o.jsx)("div",{children:e.children})}))]}))})),t.CollapsibleCardStateless.displayName="CollapsibleCardStateless";const p=a.default.div`
111
112
  position: relative;
112
113
  display: inline-block;
113
114
  width: 100%;
@@ -118,6 +119,9 @@
118
119
  display: block;
119
120
  overflow: hidden;
120
121
  `,v=(0,a.default)(c.Box)`
122
+ position: ${({fixedHeader:e})=>e?"sticky":"relative"};
123
+ top: ${({fixedHeader:e})=>e?0:void 0};
124
+ z-index: ${({zIndex:e})=>e};
121
125
  align-items: center;
122
126
  background: ${({theme:e})=>e.palette.background3};
123
127
  border-top: 1px solid ${({theme:e})=>e.palette.background5};
@@ -129,7 +133,6 @@
129
133
  line-height: ${({theme:e})=>e.lineHeight.heading};
130
134
  outline: none;
131
135
  padding: ${({theme:e})=>e.px.base};
132
- position: relative;
133
136
  transition: border-color var(--openfin-ui-globalTransition);
134
137
  width: 100%;
135
138
  white-space: nowrap;
@@ -243,12 +246,12 @@
243
246
  opacity: unset;
244
247
  }
245
248
  }
246
- `},4925:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(4021),t),o(n(9644),t)},2609:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5971),t)},5971:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Toggle=void 0;const i=n(5893),a=n(6689),l=o(n(7518)),s=n(8510),c=n(1335);t.Toggle=e=>{var{id:t,label:n,onChange:o,labelSide:l="right",type:s="checkbox"}=e,c=r(e,["id","label","onChange","labelSide","type"]);const[v,g]=(0,a.useState)(c.checked);return(0,a.useEffect)((()=>{g(c.checked)}),[c.checked]),(0,i.jsxs)(u,Object.assign({labelSide:l},{children:[n?(0,i.jsx)(h,Object.assign({htmlFor:t},{children:n})):void 0,(0,i.jsxs)(f,Object.assign({isChecked:v},{children:[(0,i.jsx)(p,Object.assign({},c,{id:t,type:s,onChange:e=>{g(e.target.checked),null==o||o(e)}})),(0,i.jsx)(d,{tabIndex:-1,"aria-hidden":"true",isChecked:v})]}))]}))};const u=l.default.div`
249
+ `},4925:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(4021),t),o(n(9644),t)},2609:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5971),t)},5971:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Toggle=void 0;const i=n(5893),a=n(6689),l=o(n(7518)),s=n(8510),c=n(1335),u=n(1944);t.Toggle=e=>{var{id:t,label:n,onChange:o,labelSide:l="right",type:s="checkbox",helperText:c}=e,v=r(e,["id","label","onChange","labelSide","type","helperText"]);const[g,C]=(0,a.useState)(v.checked);return(0,a.useEffect)((()=>{C(v.checked)}),[v.checked]),(0,i.jsxs)(f,Object.assign({labelSide:l},{children:[(n||c)&&(0,i.jsx)(u.Label,{htmlFor:t,text:n,helperText:c}),(0,i.jsxs)(d,Object.assign({isChecked:g},{children:[(0,i.jsx)(h,Object.assign({},v,{id:t,type:s,onChange:e=>{C(e.target.checked),null==o||o(e)}})),(0,i.jsx)(p,{tabIndex:-1,"aria-hidden":"true",isChecked:g})]}))]}))};const f=l.default.div`
247
250
  display: flex;
248
251
  gap: ${({theme:e})=>e.px.xlarge};
249
252
  flex-direction: ${({labelSide:e})=>"left"===e?"row":"row-reverse"};
250
253
  line-height: ${({theme:e})=>e.px.xlarge};
251
- `,f=(0,l.default)(c.Box)`
254
+ `,d=(0,l.default)(c.Box)`
252
255
  --px-toggle: ${({theme:e})=>e.px.xlarge};
253
256
  --px-knob: ${({theme:e})=>e.px.base};
254
257
 
@@ -266,7 +269,7 @@
266
269
  &:focus-within {
267
270
  border-color: ${({theme:e})=>e.palette.inputFocused};
268
271
  }
269
- `,d=l.default.button`
272
+ `,p=l.default.button`
270
273
  position: absolute;
271
274
  width: var(--px-knob);
272
275
  height: var(--px-knob);
@@ -279,7 +282,7 @@
279
282
  outline: none;
280
283
  transition: left var(--openfin-ui-globalTransition), background var(--openfin-ui-globalTransition);
281
284
  pointer-events: none; /* Allow pass-thru for native input */
282
- `,p=(0,l.default)(s.RawInput)`
285
+ `,h=(0,l.default)(s.RawInput)`
283
286
  position: absolute;
284
287
  top: 0;
285
288
  left: 0;
@@ -291,16 +294,16 @@
291
294
  appearance: none;
292
295
  display: block;
293
296
 
294
- &:checked + ${d} {
297
+ &:checked + ${p} {
295
298
  left: calc(100% - ${({theme:e})=>e.px.large});
296
299
  }
297
- &:disabled + ${d} {
300
+ &:disabled + ${p} {
298
301
  background: ${({theme:e})=>e.palette.inputDisabled};
299
302
  }
300
303
  &:not(:disabled) {
301
304
  cursor: pointer;
302
305
  }
303
- `,h=l.default.label``},5300:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Badge=void 0;const i=n(5893),a=o(n(7518)),l=n(1335);t.Badge=e=>{var{count:t=0,max:n}=e,o=r(e,["count","max"]);let a=t.toString();return n&&t>n&&(a=`${n}+`),(0,i.jsx)(s,Object.assign({},o,{children:a}))};const s=(0,a.default)(l.Box)`
306
+ `},5300:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Badge=void 0;const i=n(5893),a=o(n(7518)),l=n(1335);t.Badge=e=>{var{count:t=0,max:n}=e,o=r(e,["count","max"]);let a=t.toString();return n&&t>n&&(a=`${n}+`),(0,i.jsx)(s,Object.assign({},o,{children:a}))};const s=(0,a.default)(l.Box)`
304
307
  background: ${({theme:e})=>e.palette.statusCritical};
305
308
  border-radius: ${({theme:e})=>e.radius.pill};
306
309
  color: ${({theme:e})=>e._color.white};
@@ -428,16 +431,17 @@
428
431
  border-radius: 100px;
429
432
  }
430
433
  }
431
- `},9734:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(6895),t)},162:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DropdownButton=void 0;const o=n(5893),i=n(279),a=n(7261),l=n(9634),s=n(6689),c=r(n(7518)),u=n(1335),f=n(9507),d=n(1944);t.DropdownButton=(0,s.forwardRef)(((e,t)=>{var n,r,l,s,c;return(0,o.jsx)(h,{children:(0,o.jsxs)(p,{children:[!!e.label&&(0,o.jsx)(d.Label,{text:e.label,htmlFor:e.name}),(0,o.jsxs)(g,Object.assign({role:"comboxbox",ref:t,name:e.name,tabIndex:e.tabIndex,"aria-activedescendant":e.activeDescendant,status:e.status,"aria-expanded":e.expanded,"aria-haspopup":"listbox","aria-controls":"dropdown-listbox",onClick:()=>e.handleClick(),as:"button","data-testid":"dropdown-button",title:null!==(r=null===(n=e.selected)||void 0===n?void 0:n.title)&&void 0!==r?r:e.placeholder},{children:[(null===(l=e.selected)||void 0===l?void 0:l.iconUrl)&&(0,o.jsx)(i.ButtonImage,{src:e.selected.iconUrl}),(0,o.jsx)(a.OptionTitle,Object.assign({"aria-live":"polite","data-testid":"selected-option"},{children:null!==(c=null===(s=e.selected)||void 0===s?void 0:s.title)&&void 0!==c?c:e.placeholder})),(0,o.jsx)(v,{status:e.status,icon:e.expanded?"ChevronUpIcon":"ChevronDownIcon"})]}))]})})})),t.DropdownButton.displayName="DropdownButton";const p=(0,c.default)(u.Box)`
434
+ `},9734:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(6895),t)},162:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DropdownButton=void 0;const o=n(5893),i=n(279),a=n(7261),l=n(9634),s=n(6689),c=r(n(7518)),u=n(1335),f=n(9507),d=n(1944);t.DropdownButton=(0,s.forwardRef)(((e,t)=>{var n,r,l,s,c;return(0,o.jsx)(h,{children:(0,o.jsxs)(p,{children:[(e.label||e.helperText)&&(0,o.jsx)(d.Label,{text:e.label,helperText:e.helperText,htmlFor:e.name}),(0,o.jsxs)(g,Object.assign({role:"comboxbox",ref:t,name:e.name,tabIndex:e.tabIndex,"aria-activedescendant":e.activeDescendant,status:e.status,"aria-expanded":e.expanded,"aria-haspopup":"listbox","aria-controls":"dropdown-listbox",onClick:()=>e.handleClick(),as:"button","data-testid":"dropdown-button",title:null!==(r=null===(n=e.selected)||void 0===n?void 0:n.title)&&void 0!==r?r:e.placeholder},{children:[(null===(l=e.selected)||void 0===l?void 0:l.iconUrl)&&(0,o.jsx)(i.ButtonImage,{src:e.selected.iconUrl}),(0,o.jsx)(a.OptionTitle,Object.assign({"aria-live":"polite","data-testid":"selected-option"},{children:null!==(c=null===(s=e.selected)||void 0===s?void 0:s.title)&&void 0!==c?c:e.placeholder})),(0,o.jsx)(v,{status:e.status,icon:e.expanded?"ChevronUpIcon":"ChevronDownIcon"})]}))]})})})),t.DropdownButton.displayName="DropdownButton";const p=(0,c.default)(u.Box)`
432
435
  align-items: flex-start;
433
436
  flex-direction: column;
434
437
  justify-content: flex-start;
435
438
  width: 100%;
436
439
  `,h=(0,c.default)(u.Box)`
437
440
  font-size: ${({theme:e})=>e.fontSize.base};
441
+ width: 100%;
438
442
  user-select: none;
439
443
  `,v=(0,c.default)(l.Icon)`
440
- color: ${({theme:e,status:t})=>(0,f.getStatusColor)(e,t,"inputBorder")};
444
+ color: ${({theme:e,status:t})=>(0,f.getStatusColor)(e,t,"textDefault")};
441
445
  `,g=(0,c.default)(u.Box)`
442
446
  align-items: center;
443
447
  background: ${({theme:e})=>e.palette.background4};
@@ -471,16 +475,13 @@
471
475
  outline: 0;
472
476
  border-color: ${({theme:e,status:t})=>(0,f.getStatusColor)(e,t,"inputFocused")};
473
477
  }
474
- `},6062:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DropdownMenu=void 0;const o=n(5893),i=n(6689),a=n(1335),l=r(n(7518)),s=n(7261),c=n(279),u=n(347),f=n(162);t.DropdownMenu=(0,i.forwardRef)((({label:e,options:t=[[]],placeholder:n="Select an option",selected:r,onOptionHover:l,onChange:v,renderLabel:g,fitContent:C},m)=>{const[y,w]=(0,i.useState)(!1);(0,i.useEffect)((()=>{1===t[0].length&&b(!1)}),[t]);const b=e=>{w(null!=e?e:!y)},{focusedOption:x,handleKeyDown:_}=(0,u.useDropdownKeyboardNavigation)(t,r,y,b,v);return(0,o.jsx)(p,Object.assign({ref:m,flexDirection:"column",onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||w(!1)},onKeyDown:_},{children:(0,o.jsxs)(a.Box,Object.assign({gap:"small",flexDirection:"column",style:{width:"100%"}},{children:[e&&(0,o.jsx)(d,Object.assign({htmlFor:"dropdown-button"},{children:(0,o.jsx)(s.OptionTitle,{children:e})})),(0,o.jsxs)(h,{children:[g?g(r||{title:n,value:null},y,b,x):(0,o.jsx)(f.DropdownButton,{tabIndex:0,activeDescendant:`menu-option-${null==x?void 0:x.value}`,expanded:y&&t[0].length>1,handleClick:()=>b(),selected:r,placeholder:n}),t.length&&t[0].length>1&&y&&(0,o.jsx)(c.Menu,{menuId:"dropdown-listbox",options:t,selected:r,handleExpandMenu:b,onOptionHover:l,onChange:v,fitContent:C,focusedOption:x,absolutePosition:!0})]})]}))}))})),t.DropdownMenu.displayName="DropdownMenu";const d=l.default.label`
475
- font-weight: ${({theme:e})=>e.fontWeight.bold};
476
- `,p=(0,l.default)(a.Box)`
478
+ `},6062:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DropdownMenu=void 0;const o=n(5893),i=n(6689),a=n(1335),l=r(n(7518)),s=n(7261),c=n(279),u=n(347),f=n(162);t.DropdownMenu=(0,i.forwardRef)((({label:e,options:t=[[]],placeholder:n="Select an option",selected:r,onOptionHover:l,onChange:h,renderLabel:v,fitContent:g},C)=>{const[m,y]=(0,i.useState)(!1);(0,i.useEffect)((()=>{1===t[0].length&&w(!1)}),[t]);const w=e=>{y(null!=e?e:!m)},{focusedOption:b,handleKeyDown:x}=(0,u.useDropdownKeyboardNavigation)(t,r,m,w,h);return(0,o.jsx)(d,Object.assign({ref:C,flexDirection:"column",onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||y(!1)},onKeyDown:x},{children:(0,o.jsxs)(a.Box,Object.assign({gap:"small",flexDirection:"column",style:{width:"100%"}},{children:[e&&(0,o.jsx)("label",Object.assign({htmlFor:"dropdown-button"},{children:(0,o.jsx)(s.OptionTitle,{children:e})})),(0,o.jsxs)(p,{children:[v?v(r||{title:n,value:null},m,w,b):(0,o.jsx)(f.DropdownButton,{tabIndex:0,activeDescendant:`menu-option-${null==b?void 0:b.value}`,expanded:m&&t[0].length>1,handleClick:()=>w(),selected:r,placeholder:n}),t.length&&t[0].length>1&&m&&(0,o.jsx)(c.Menu,{menuId:"dropdown-listbox",options:t,selected:r,handleExpandMenu:w,onOptionHover:l,onChange:h,fitContent:g,focusedOption:b,absolutePosition:!0})]})]}))}))})),t.DropdownMenu.displayName="DropdownMenu";const d=(0,l.default)(a.Box)`
477
479
  user-select: none;
478
480
  position: relative;
479
- `,h=(0,l.default)(a.Box)``},6026:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(6062),t),o(n(279),t),o(n(162),t)},279:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonImage=t.Menu=void 0;const o=n(5893),i=r(n(6689)),a=r(n(7518)),l=n(9634),s=n(1335),c=n(7261);t.Menu=({options:e,selected:n,menuId:r,handleExpandMenu:a,onOptionHover:l,onChange:s,width:v,height:g,header:C,focusedOption:m,absolutePosition:y})=>{const w=e=>{null==l||l(e)};return(0,o.jsxs)(u,Object.assign({role:"listbox",flexDirection:"column",onMouseLeave:()=>{w(null)},"data-testid":"menu",id:r,width:v,height:g,absolutePosition:y},{children:[C&&(0,o.jsxs)(i.default.Fragment,{children:[(0,o.jsx)(d,{children:(0,o.jsx)(c.OptionTitle,{children:C})}),(0,o.jsx)(h,{})]}),e.map(((e,r)=>(0,o.jsxs)(i.default.Fragment,{children:[0!==r&&(0,o.jsx)(h,{}),e.map(((e,r)=>(0,o.jsxs)(f,Object.assign({role:"option",isFocused:(null==m?void 0:m.value)===e.value,"aria-selected":(null==n?void 0:n.value)===e.value,alignItems:"center",as:"button","data-testid":`menu-option-${r}`,id:`menu-option-${e.value}`,title:e.title,onClick:()=>{e.overrideOnClick?e.overrideOnClick(e):s(e),null==a||a()},onMouseOver:()=>w(e.value)},{children:[(null==e?void 0:e.iconUrl)&&(0,o.jsx)(t.ButtonImage,{src:e.iconUrl,style:{marginRight:"8px"}}),(0,o.jsx)(c.OptionTitle,{children:e.title}),(null==n?void 0:n.value)===e.value?(0,o.jsx)(p,{icon:"CheckIcon"}):(0,o.jsx)(p,{children:(0,o.jsx)(o.Fragment,{})})]}),r)))]},r)))]}))};const u=(0,a.default)(s.Box)`
481
+ `,p=(0,l.default)(a.Box)``},6026:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(6062),t),o(n(279),t),o(n(162),t)},279:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonImage=t.Menu=void 0;const o=n(5893),i=r(n(6689)),a=r(n(7518)),l=n(9634),s=n(1335),c=n(7261);t.Menu=({options:e,selected:n,menuId:r,handleExpandMenu:a,onOptionHover:l,onChange:s,width:v,height:g,header:C,focusedOption:m,absolutePosition:y,fitContent:w})=>{const b=e=>{null==l||l(e)};return(0,o.jsxs)(u,Object.assign({role:"listbox",flexDirection:"column",onMouseLeave:()=>{b(null)},"data-testid":"menu",id:r,width:v,height:g,absolutePosition:y,fitContent:w},{children:[C&&(0,o.jsxs)(i.default.Fragment,{children:[(0,o.jsx)(d,{children:(0,o.jsx)(c.OptionTitle,{children:C})}),(0,o.jsx)(h,{})]}),e.map(((e,r)=>(0,o.jsxs)(i.default.Fragment,{children:[0!==r&&(0,o.jsx)(h,{}),e.map(((e,r)=>(0,o.jsxs)(f,Object.assign({role:"option",isFocused:(null==m?void 0:m.value)===e.value,"aria-selected":(null==n?void 0:n.value)===e.value,alignItems:"center",as:"button","data-testid":`menu-option-${r}`,id:`menu-option-${e.value}`,title:e.title,onClick:()=>{e.overrideOnClick?e.overrideOnClick(e):s(e),null==a||a()},onMouseOver:()=>b(e.value)},{children:[(null==e?void 0:e.iconUrl)&&(0,o.jsx)(t.ButtonImage,{src:e.iconUrl,style:{marginRight:"8px"}}),(0,o.jsx)(c.OptionTitle,{children:e.title}),(null==n?void 0:n.value)===e.value?(0,o.jsx)(p,{icon:"CheckIcon"}):(0,o.jsx)(p,{children:(0,o.jsx)(o.Fragment,{})})]}),r)))]},r)))]}))};const u=(0,a.default)(s.Box)`
480
482
  width: ${({width:e,fitContent:t})=>e||(t?"fit-content":"100%")};
481
483
  max-height: ${({height:e})=>null!=e?e:"fit-content"};
482
484
  top: ${({theme:e})=>`calc(100% + ${e.px.xsmall})`};
483
- right: 0;
484
485
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
485
486
  background: ${({theme:e})=>e.palette.background4};
486
487
  color: ${({theme:e})=>e.palette.textDefault};
@@ -518,7 +519,7 @@
518
519
  height: ${({theme:e})=>e.iconSize.xlarge};
519
520
  width: ${({theme:e})=>e.iconSize.xlarge};
520
521
  border-radius: ${({theme:e})=>e.radius.small};
521
- `},7261:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useTooltip=t.isElementOverflown=t.OptionTitle=void 0;const i=n(5893),a=n(6689),l=n(7769),s=n(9507),c=o(n(7518));t.OptionTitle=e=>{var{children:n}=e,o=r(e,["children"]);return(0,i.jsx)(u,Object.assign({ref:(0,t.useTooltip)(n)},o,{children:(0,i.jsx)("div",Object.assign({style:{fontWeight:"bold"}},{children:n}))}))};const u=(0,c.default)(l.Text)`
522
+ `},7261:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useTooltip=t.isElementOverflown=t.OptionTitle=void 0;const i=n(5893),a=n(6689),l=n(7769),s=n(9507),c=o(n(7518));t.OptionTitle=e=>{var{children:n}=e,o=r(e,["children"]);return(0,i.jsx)(u,Object.assign({ref:(0,t.useTooltip)(n)},o,{children:(0,i.jsx)("div",{children:n})}))};const u=(0,c.default)(l.Text)`
522
523
  ${s.Mixins.textOverflow};
523
524
  margin-left: ${({theme:e})=>e.px.xsmall};
524
525
  `;function f(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}t.isElementOverflown=f,t.useTooltip=e=>(0,a.useCallback)((t=>{t&&e&&f(t)&&(t.title=e)}),[])},7006:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Icon=void 0;const i=n(5893),a=o(n(7518)),l=n(1335),s=n(9507),c=n(3471),u=n(9669);t.Icon=(0,a.default)((e=>{var{icon:t,children:n,size:o="base",containerSize:a,"data-testid":l}=e,s=r(e,["icon","children","size","containerSize","data-testid"]);return(0,i.jsx)(d,Object.assign({},s,{iconSize:o,containerSize:a||o,justifyContent:"center",alignItems:"center","data-testid":l},{children:t?(0,i.jsx)(f,Object.assign({ariaLabel:s["aria-label"],icon:t},s)):n}))}))``;const f=(0,a.default)((e=>{var{icon:t,ariaLabel:n}=e,o=r(e,["icon","ariaLabel"]);const a=c.IconSet[t];return(0,i.jsx)(a,Object.assign({role:"img","aria-label":n},o))}))``,d=(0,a.default)(l.Box)`
@@ -572,7 +573,7 @@
572
573
  --px-container: ${({theme:e})=>e.iconSize.xxlarge};
573
574
  `,xxxlarge:r.css`
574
575
  --px-container: ${({theme:e})=>e.iconSize.xxxlarge};
575
- `}}},9634:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(7006),t)},9285:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.BellFilledIcon=void 0;const o=n(5893);t.BellFilledIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsxs)("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:[(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C11.2296 2 10.5845 2.58379 10.5078 3.35041C10.4952 3.47677 10.4057 3.58157 10.2846 3.61971C8.06554 4.31851 6.42238 6.33796 6.30033 8.77893L6.12382 12.3091C6.09936 12.7982 5.81331 13.2362 5.3753 13.4552L4.60739 13.8392C4.14761 14.0691 3.85718 14.539 3.85718 15.0531V16.25C3.85718 16.6248 4.16098 16.9286 4.53575 16.9286H19.4643C19.8391 16.9286 20.1429 16.6248 20.1429 16.25V15.0531C20.1429 14.539 19.8525 14.0691 19.3927 13.8392L18.6247 13.4552C18.1867 13.2362 17.9006 12.7982 17.8762 12.3091L17.6997 8.77893C17.5776 6.33796 15.9344 4.31851 13.7154 3.61972C13.5942 3.58157 13.5048 3.47678 13.4922 3.35041C13.4155 2.5838 12.7704 2 12 2Z",fill:t}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.28571 18.2857C9.28571 19.7848 10.5009 21 12 21C13.4991 21 14.7143 19.7848 14.7143 18.2857L9.28571 18.2857Z",fill:t})]}))}},4718:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.BellIcon=void 0;const o=n(5893);t.BellIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.47306 1.22943C6.5193 1.22943 5.87291 1.98399 5.65371 2.72697C5.65207 2.72932 5.64921 2.73303 5.64485 2.73756C5.6392 2.74342 5.63264 2.74896 5.62599 2.75355C5.61926 2.75819 5.61452 2.7604 5.613 2.76102L5.61265 2.76117C5.05088 2.99251 4.39193 3.36022 3.87697 4.03357C3.35815 4.71196 3.01949 5.65571 3.01945 6.97749L5.65371 2.72697L3.01945 6.97776C3.01866 8.30165 2.87871 9.0313 2.67091 9.53439C2.48879 9.97531 2.24889 10.2658 1.912 10.6738L1.91185 10.674C1.86263 10.7336 1.81135 10.7957 1.75787 10.8612C1.14923 11.606 1.72729 12.6419 2.65986 12.6419H5.09019C5.21191 12.98 5.40726 13.2906 5.66618 13.5495C6.12827 14.0116 6.75499 14.2712 7.40848 14.2712C8.06197 14.2712 8.6887 14.0116 9.15078 13.5495C9.40971 13.2906 9.60505 12.98 9.72678 12.6419H12.2894C13.2234 12.6419 13.792 11.6008 13.1884 10.8613L13.1883 10.8612C13.1348 10.7957 13.0835 10.7336 13.0342 10.674C12.6973 10.2659 12.4574 9.9754 12.2755 9.53451C12.0678 9.03147 11.9282 8.30182 11.9282 6.97776C11.9282 5.65688 11.5891 4.71299 11.0703 4.03433C10.5553 3.36075 9.89652 2.99234 9.33499 2.76115L9.33467 2.76102C9.33409 2.76079 9.32982 2.75888 9.32313 2.75424C9.31655 2.74967 9.30981 2.74394 9.30382 2.7377C9.29875 2.73241 9.29545 2.72803 9.29363 2.72531C9.07264 1.98378 8.42691 1.22943 7.47306 1.22943ZM8.68654 12.6419H6.13042C6.1876 12.7295 6.25403 12.8115 6.3291 12.8866C6.61537 13.1729 7.00363 13.3337 7.40848 13.3337C7.81333 13.3337 8.2016 13.1729 8.48787 12.8866C8.56293 12.8115 8.62937 12.7295 8.68654 12.6419ZM6.55145 2.99716C6.69571 2.50085 7.07121 2.16693 7.47306 2.16693C7.87492 2.16693 8.2505 2.50061 8.3966 2.99785L8.39695 2.99904C8.48499 3.29575 8.72843 3.52538 8.97809 3.62806C9.45625 3.82492 9.94894 4.11119 10.3255 4.60373C10.6982 5.09119 10.9907 5.82486 10.9907 6.97776C10.9907 8.35506 11.1337 9.2255 11.4089 9.89217C11.6483 10.4723 11.9823 10.8749 12.3167 11.278C12.3653 11.3366 12.4139 11.3951 12.4622 11.4542C12.5016 11.5025 12.5046 11.5552 12.4793 11.605C12.4553 11.6524 12.3996 11.7044 12.2894 11.7044H2.65986C2.54604 11.7044 2.48955 11.6509 2.46588 11.6045C2.44119 11.5562 2.44325 11.504 2.4838 11.4544L2.48383 11.4544C2.53215 11.3952 2.58075 11.3366 2.62934 11.2781L2.62946 11.2779C2.96389 10.8748 3.29785 10.4723 3.5374 9.89229C3.81273 9.22571 3.95615 8.35533 3.95695 6.97803V6.97776C3.95695 5.82341 4.24928 5.08999 4.62165 4.60309C4.99792 4.1111 5.49044 3.82537 5.96963 3.62805C6.21661 3.52645 6.46257 3.30002 6.55111 2.99833L6.55145 2.99716Z",fill:t,role:"img"})}))}},8265:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.BrokenLinkIcon=void 0;const o=n(5893);t.BrokenLinkIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsxs)("svg",Object.assign({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:[(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.3335 3.7002C6.05735 3.7002 5.8335 3.92405 5.8335 4.2002V27.8002C5.8335 28.0763 6.05735 28.3002 6.3335 28.3002H25.6668C25.943 28.3002 26.1668 28.0763 26.1668 27.8002V12.2335H18.1335C17.8574 12.2335 17.6335 12.0097 17.6335 11.7335V3.7002H6.3335ZM18.6335 4.4073L25.4597 11.2335H18.6335V4.4073ZM4.8335 4.2002C4.8335 3.37177 5.50507 2.7002 6.3335 2.7002H18.1335C18.2661 2.7002 18.3933 2.75287 18.487 2.84664L27.0204 11.38C27.1141 11.4737 27.1668 11.6009 27.1668 11.7335V27.8002C27.1668 28.6286 26.4953 29.3002 25.6668 29.3002H6.3335C5.50507 29.3002 4.8335 28.6286 4.8335 27.8002V4.2002Z",fill:t}),(0,o.jsx)("path",{d:"M14.248 21.9084V21.8409C14.2528 21.4006 14.2966 21.0502 14.3794 20.7898C14.4647 20.5294 14.5854 20.3187 14.7417 20.1577C14.8979 19.9967 15.0861 19.8499 15.3063 19.7173C15.4483 19.6274 15.5762 19.5268 15.6898 19.4155C15.8034 19.3042 15.8934 19.1764 15.9597 19.032C16.026 18.8875 16.0591 18.7277 16.0591 18.5526C16.0591 18.3419 16.0094 18.1596 15.91 18.0057C15.8105 17.8518 15.678 17.7334 15.5123 17.6506C15.3489 17.5653 15.1666 17.5227 14.9654 17.5227C14.7831 17.5227 14.6091 17.5606 14.4434 17.6364C14.2776 17.7121 14.1403 17.8305 14.0314 17.9915C13.9225 18.1501 13.8598 18.3549 13.8432 18.6058H12.7637C12.7802 18.1797 12.888 17.8198 13.0868 17.5263C13.2857 17.2304 13.5485 17.0066 13.8752 16.8551C14.2042 16.7036 14.5676 16.6278 14.9654 16.6278C15.401 16.6278 15.7821 16.7095 16.1088 16.8729C16.4355 17.0339 16.6889 17.2599 16.8688 17.5511C17.0511 17.84 17.1422 18.1773 17.1422 18.5632C17.1422 18.8284 17.1008 19.0675 17.0179 19.2805C16.9351 19.4912 16.8167 19.6795 16.6628 19.8452C16.5113 20.0109 16.329 20.1577 16.1159 20.2855C15.9147 20.411 15.7514 20.5412 15.6259 20.6761C15.5028 20.8111 15.4128 20.9709 15.356 21.1555C15.2992 21.3402 15.2684 21.5687 15.2637 21.8409V21.9084H14.248ZM14.7843 24.0675C14.5901 24.0675 14.4232 23.9988 14.2836 23.8615C14.1439 23.7218 14.074 23.5537 14.074 23.3572C14.074 23.1631 14.1439 22.9974 14.2836 22.8601C14.4232 22.7204 14.5901 22.6506 14.7843 22.6506C14.976 22.6506 15.1417 22.7204 15.2814 22.8601C15.4235 22.9974 15.4945 23.1631 15.4945 23.3572C15.4945 23.4875 15.4614 23.607 15.3951 23.7159C15.3311 23.8224 15.2459 23.9077 15.1394 23.9716C15.0328 24.0355 14.9145 24.0675 14.7843 24.0675Z",fill:t})]}))}},6447:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.ChevronDownIcon=void 0;const o=n(5893);t.ChevronDownIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},{children:(0,o.jsx)("path",Object.assign({fillRule:"evenodd",clipRule:"evenodd",d:"M5.05282 9.88707C5.33612 9.58489 5.81075 9.56958 6.11293 9.85287L12 15.372L17.887 9.85287C18.1892 9.56958 18.6638 9.58489 18.9471 9.88707C19.2304 10.1893 19.2151 10.6639 18.9129 10.9472L12.5129 16.9472C12.2244 17.2176 11.7755 17.2176 11.487 16.9472L5.08702 10.9472C4.78484 10.6639 4.76952 10.1893 5.05282 9.88707Z",fill:t},n))}))}},2147:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.ChevronLeftIcon=void 0;const o=n(5893);t.ChevronLeftIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},{children:(0,o.jsx)("path",Object.assign({fillRule:"evenodd",clipRule:"evenodd",d:"M14.1127 5.05272C14.4149 5.33601 14.4302 5.81064 14.1469 6.11282L8.62784 11.9999L14.1469 17.8869C14.4302 18.1891 14.4149 18.6637 14.1127 18.947C13.8106 19.2303 13.3359 19.215 13.0526 18.9128L7.05264 12.5128C6.78218 12.2243 6.78218 11.7754 7.05264 11.4869L13.0526 5.08691C13.3359 4.78473 13.8106 4.76942 14.1127 5.05272Z",fill:t},n))}))}},2402:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.ChevronRightIcon=void 0;const o=n(5893);t.ChevronRightIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},{children:(0,o.jsx)("path",Object.assign({fillRule:"evenodd",clipRule:"evenodd",d:"M9.86986 6.66972C10.1628 6.37683 10.6376 6.37683 10.9305 6.66972L15.7305 11.4697C15.8712 11.6104 15.9502 11.8011 15.9502 12C15.9502 12.199 15.8712 12.3897 15.7305 12.5304L10.9305 17.3304C10.6376 17.6233 10.1628 17.6233 9.86986 17.3304C9.57696 17.0375 9.57696 16.5626 9.86986 16.2697L14.1395 12L9.86986 7.73038C9.57696 7.43749 9.57696 6.96261 9.86986 6.66972Z",fill:t},n))}))}},4825:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.ChevronUpIcon=void 0;const o=n(5893);t.ChevronUpIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},{children:(0,o.jsx)("path",Object.assign({fillRule:"evenodd",clipRule:"evenodd",d:"M5.05285 14.1129C5.33615 14.4151 5.81078 14.4304 6.11296 14.1471L12 8.62802L17.887 14.1471C18.1892 14.4304 18.6639 14.4151 18.9472 14.1129C19.2305 13.8107 19.2151 13.3361 18.913 13.0528L12.513 7.05282C12.2245 6.78236 11.7755 6.78236 11.4871 7.05282L5.08705 13.0528C4.78487 13.3361 4.76956 13.8107 5.05285 14.1129Z",fill:t},n))}))}},1281:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.ExclamationCircledFilledIcon=void 0;const o=n(5893),i=n(7518),a=n(6689),l=n(3471);t.ExclamationCircledFilledIcon=e=>{var{secondaryColor:t,color:n="currentColor"}=e,s=r(e,["secondaryColor","color"]);const c=(0,a.useContext)(i.ThemeContext).selectedScheme;return t||(t="dark"===c?l.Color.darkGray5:l.Color.white),(0,o.jsxs)("svg",Object.assign({width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s,{children:[(0,o.jsx)("path",{d:"M7.99988 15.3317C11.7729 15.3317 14.8316 12.2731 14.8316 8.50007C14.8316 4.72704 11.7729 1.6684 7.99988 1.6684C4.22686 1.6684 1.16821 4.72704 1.16821 8.50007C1.16821 12.2731 4.22686 15.3317 7.99988 15.3317Z",fill:n}),(0,o.jsx)("mask",Object.assign({id:"path-2-inside-1_6_262033",fill:t},{children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.99993 4.37384C7.57525 4.37384 7.23564 4.72676 7.25196 5.15113L7.42296 9.59706C7.43489 9.90708 7.68968 10.1523 7.99993 10.1523C8.31019 10.1523 8.56498 9.90708 8.5769 9.59706L8.7479 5.15113C8.76422 4.72676 8.42461 4.37384 7.99993 4.37384ZM7.99993 12.6406C8.46022 12.6406 8.83335 12.2675 8.83335 11.8072C8.83335 11.3469 8.46022 10.9738 7.99993 10.9738C7.53964 10.9738 7.1665 11.3469 7.1665 11.8072C7.1665 12.2675 7.53964 12.6406 7.99993 12.6406Z"})})),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.99993 4.37384C7.57525 4.37384 7.23564 4.72676 7.25196 5.15113L7.42296 9.59706C7.43489 9.90708 7.68968 10.1523 7.99993 10.1523C8.31019 10.1523 8.56498 9.90708 8.5769 9.59706L8.7479 5.15113C8.76422 4.72676 8.42461 4.37384 7.99993 4.37384ZM7.99993 12.6406C8.46022 12.6406 8.83335 12.2675 8.83335 11.8072C8.83335 11.3469 8.46022 10.9738 7.99993 10.9738C7.53964 10.9738 7.1665 11.3469 7.1665 11.8072C7.1665 12.2675 7.53964 12.6406 7.99993 12.6406Z",fill:t}),(0,o.jsx)("path",{d:"M7.25196 5.15113L5.64874 5.21279L5.64874 5.21279L7.25196 5.15113ZM7.42296 9.59706L9.02618 9.5354L9.02618 9.5354L7.42296 9.59706ZM8.5769 9.59706L10.1801 9.65872L8.5769 9.59706ZM8.7479 5.15113L10.3511 5.21279L10.3511 5.21279L8.7479 5.15113ZM8.85519 5.08947C8.87385 5.5747 8.48553 5.97825 7.99993 5.97825V2.76943C6.66498 2.76943 5.59744 3.87882 5.64874 5.21279L8.85519 5.08947ZM9.02618 9.5354L8.85519 5.08947L5.64874 5.21279L5.81974 9.65872L9.02618 9.5354ZM7.99993 8.54786C8.55177 8.54786 9.00498 8.98396 9.02618 9.5354L5.81974 9.65872C5.8648 10.8302 6.82758 11.7567 7.99993 11.7567V8.54786ZM6.97368 9.5354C6.99489 8.98396 7.44809 8.54786 7.99993 8.54786V11.7567C9.17228 11.7567 10.1351 10.8302 10.1801 9.65872L6.97368 9.5354ZM7.14468 5.08947L6.97368 9.5354L10.1801 9.65872L10.3511 5.21279L7.14468 5.08947ZM7.99993 5.97825C7.51434 5.97825 7.12602 5.5747 7.14468 5.08947L10.3511 5.21279C10.4024 3.87882 9.33489 2.76943 7.99993 2.76943V5.97825ZM7.22895 11.8072C7.22895 11.3814 7.57413 11.0362 7.99993 11.0362V14.245C9.34631 14.245 10.4378 13.1536 10.4378 11.8072H7.22895ZM7.99993 12.5782C7.57413 12.5782 7.22895 12.233 7.22895 11.8072H10.4378C10.4378 10.4608 9.34631 9.36937 7.99993 9.36937V12.5782ZM8.77091 11.8072C8.77091 12.233 8.42573 12.5782 7.99993 12.5782V9.36937C6.65355 9.36937 5.5621 10.4608 5.5621 11.8072H8.77091ZM7.99993 11.0362C8.42573 11.0362 8.77091 11.3814 8.77091 11.8072H5.5621C5.5621 13.1536 6.65355 14.245 7.99993 14.245V11.0362Z",fill:t,mask:"url(#path-2-inside-1_6_262033)"})]}))}},7429:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.FilledCircleIcon=void 0;const o=n(5893);t.FilledCircleIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("g",Object.assign({id:".Slot"},{children:(0,o.jsx)("circle",{id:"Ellipse 1",cx:"8",cy:"8",r:"8",fill:t})}))}))}},6795:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.FilterIcon=void 0;const o=n(5893);t.FilterIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"12",height:"7",viewBox:"0 0 12 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("path",{d:"M4 6.5C4 6.36739 4.05268 6.24021 4.14645 6.14645C4.24021 6.05268 4.36739 6 4.5 6H7.5C7.63261 6 7.75979 6.05268 7.85355 6.14645C7.94732 6.24021 8 6.36739 8 6.5C8 6.63261 7.94732 6.75979 7.85355 6.85355C7.75979 6.94732 7.63261 7 7.5 7H4.5C4.36739 7 4.24021 6.94732 4.14645 6.85355C4.05268 6.75979 4 6.63261 4 6.5ZM2 3.5C2 3.36739 2.05268 3.24021 2.14645 3.14645C2.24021 3.05268 2.36739 3 2.5 3H9.5C9.63261 3 9.75979 3.05268 9.85355 3.14645C9.94732 3.24021 10 3.36739 10 3.5C10 3.63261 9.94732 3.75979 9.85355 3.85355C9.75979 3.94732 9.63261 4 9.5 4H2.5C2.36739 4 2.24021 3.94732 2.14645 3.85355C2.05268 3.75979 2 3.63261 2 3.5ZM0 0.5C0 0.367392 0.0526785 0.240215 0.146447 0.146447C0.240215 0.0526785 0.367392 0 0.5 0H11.5C11.6326 0 11.7598 0.0526785 11.8536 0.146447C11.9473 0.240215 12 0.367392 12 0.5C12 0.632608 11.9473 0.759785 11.8536 0.853553C11.7598 0.947321 11.6326 1 11.5 1H0.5C0.367392 1 0.240215 0.947321 0.146447 0.853553C0.0526785 0.759785 0 0.632608 0 0.5Z",fill:t})}))}},117:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.FloppyDiskIcon=void 0;const o=n(5893);t.FloppyDiskIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("path",{d:"M1.875 2.1875C1.875 2.15298 1.90298 2.125 1.9375 2.125H8.23039C8.24697 2.125 8.26287 2.13158 8.27459 2.14331L9.98169 3.85041C9.99341 3.86213 10 3.87803 10 3.89461V10.1875C10 10.222 9.97202 10.25 9.9375 10.25H1.9375C1.90298 10.25 1.875 10.222 1.875 10.1875V2.1875ZM1.9375 1.25C1.41973 1.25 1 1.66973 1 2.1875V10.1875C1 10.7053 1.41973 11.125 1.9375 11.125H9.9375C10.4553 11.125 10.875 10.7053 10.875 10.1875V3.89461C10.875 3.64597 10.7762 3.40751 10.6004 3.23169L8.89331 1.52459C8.71749 1.34877 8.47903 1.25 8.23039 1.25H1.9375ZM2.84924 3.4081C2.84924 3.23754 2.98751 3.09927 3.15807 3.09927H7.4816C7.65215 3.09927 7.79042 3.23754 7.79042 3.4081V4.64339C7.79042 4.81395 7.65215 4.95221 7.4816 4.95221H3.15807C2.98751 4.95221 2.84924 4.81395 2.84924 4.64339V3.4081ZM4.5368 6.63977C4.82638 6.35019 5.21913 6.18751 5.62865 6.18751C6.03818 6.18751 6.43093 6.35019 6.72051 6.63977C7.01009 6.92935 7.17277 7.3221 7.17277 7.73163C7.17277 8.14115 7.01009 8.5339 6.72051 8.82348C6.43093 9.11306 6.03818 9.27574 5.62865 9.27574C5.21913 9.27574 4.82638 9.11306 4.5368 8.82348C4.24722 8.5339 4.08454 8.14115 4.08454 7.73163C4.08454 7.3221 4.24722 6.92935 4.5368 6.63977Z",fill:t,role:"img"})}))}},529:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.FragmentsIcon=void 0;const o=n(5893);t.FragmentsIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("path",{d:"M8.80001 4.80002H4.80001C3.91761 4.80002 3.20001 5.51762 3.20001 6.40002V10.4C3.20001 11.2824 3.91761 12 4.80001 12H8.80001C9.68241 12 10.4 11.2824 10.4 10.4V6.40002C10.4 5.51762 9.68241 4.80002 8.80001 4.80002ZM20.3592 6.46882L17.5312 3.64002C16.908 3.01602 15.892 3.01602 15.2688 3.64002L12.4408 6.46882C11.8168 7.09282 11.8168 8.10722 12.4408 8.73122L15.2688 11.56C15.5808 11.872 15.9904 12.028 16.4 12.028C16.8096 12.028 17.2192 11.872 17.5312 11.56L20.3592 8.73122C20.9832 8.10722 20.9832 7.09282 20.3592 6.46882ZM8.80001 13.6H4.80001C3.91761 13.6 3.20001 14.3176 3.20001 15.2V19.2C3.20001 20.0824 3.91761 20.8 4.80001 20.8H8.80001C9.68241 20.8 10.4 20.0824 10.4 19.2V15.2C10.4 14.3176 9.68241 13.6 8.80001 13.6ZM17.6 13.6H13.6C12.7176 13.6 12 14.3176 12 15.2V19.2C12 20.0824 12.7176 20.8 13.6 20.8H17.6C18.4824 20.8 19.2 20.0824 19.2 19.2V15.2C19.2 14.3176 18.4824 13.6 17.6 13.6Z",fill:t})}))}},7788:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.LightBulbFilledIcon=void 0;const o=n(5893);t.LightBulbFilledIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsxs)("svg",Object.assign({width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:[(0,o.jsx)("path",{d:"M1.83 1.31008C2.24409 0.891667 2.73768 0.560307 3.28174 0.335504C3.82581 0.110701 4.40934 -0.00300333 4.998 0.00108291C6.18628 -0.00310785 7.32905 0.457733 8.182 1.28508C8.59881 1.68719 8.93046 2.16903 9.15723 2.70194C9.384 3.23485 9.50125 3.80793 9.502 4.38708C9.502 5.68008 8.917 6.83008 7.883 7.82508L7.577 9.00008H2.466L2.236 8.03708C1.154 6.90708 0.556 5.81908 0.5 4.58208V4.54408C0.54 3.24808 1.033 2.12108 1.831 1.31108L1.83 1.31008Z",fill:t}),(0,o.jsx)("path",{d:"M2.7041 10L2.9371 10.978L2.9451 11C3.0451 11.297 3.2371 11.544 3.4791 11.717C3.7301 11.897 4.0371 11.999 4.3611 11.999H4.3631L5.7461 11.995L5.7671 11.993C6.07587 11.9669 6.36913 11.8465 6.6071 11.648C6.8381 11.454 7.0131 11.188 7.0871 10.874L7.3161 10H2.7041V10Z",fill:t})]}))}},3703:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.LightBulbOutlinedIcon=void 0;const o=n(5893);t.LightBulbOutlinedIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("path",{d:"M4.99766 0.00100149C3.76866 0.00100149 2.64766 0.482002 1.82966 1.311C1.03166 2.121 0.539657 3.248 0.499657 4.544L0.498657 4.563V4.583C0.555657 5.819 1.15366 6.907 2.23566 8.037L2.93766 10.978L2.94466 11C3.04466 11.297 3.23666 11.544 3.47866 11.717C3.72966 11.897 4.03666 11.999 4.36166 11.999L5.74566 11.995L5.76666 11.993C6.07542 11.9669 6.36869 11.8465 6.60666 11.648C6.83766 11.454 7.01266 11.188 7.08666 10.874L7.88266 7.824C8.91666 6.83 9.50066 5.68 9.50066 4.387C9.49991 3.80785 9.38266 3.23477 9.15589 2.70186C8.92912 2.16895 8.59746 1.68711 8.18066 1.285C7.32796 0.457894 6.18559 -0.00292788 4.99766 0.00100149ZM2.54266 2.013C2.86344 1.68871 3.24596 1.43198 3.66762 1.258C4.08928 1.08401 4.54153 0.996283 4.99766 1C5.92514 0.995784 6.81744 1.35471 7.48366 2C7.80471 2.30904 8.06023 2.67957 8.23496 3.08951C8.40969 3.49945 8.50005 3.94038 8.50066 4.386C8.50066 5.377 8.04766 6.312 7.09666 7.191L6.98866 7.291L6.54266 9H3.49366L3.14466 7.536L3.04766 7.436C1.99966 6.372 1.54766 5.48 1.49866 4.557C1.53666 3.509 1.93266 2.632 2.54266 2.014V2.013ZM3.73266 10H6.28266L6.11766 10.627L6.11466 10.64C6.09211 10.7342 6.03944 10.8185 5.96466 10.88C5.88873 10.9435 5.79595 10.9834 5.69766 10.995L4.36066 11C4.25321 11.0003 4.14833 10.9671 4.06066 10.905C3.9877 10.8536 3.93139 10.782 3.89866 10.699L3.73166 10H3.73266Z",fill:t})}))}},8311:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.LockedClosedFilledIcon=void 0;const o=n(5893);t.LockedClosedFilledIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("path",{d:"M5.00003 4.63623C5.00003 3.76052 5.24222 3.10561 5.64327 2.67378C6.03938 2.24727 6.64585 1.97852 7.50143 1.97852C8.35748 1.97852 8.96309 2.24673 9.35827 2.6723C9.75841 3.10321 10 3.75729 10 4.63346V6.50021H11V4.63346C11 3.57917 10.7076 2.65578 10.0911 1.99183C9.46955 1.32254 8.57586 0.978516 7.50143 0.978516C6.42678 0.978516 5.53255 1.3235 4.91052 1.99328C4.29342 2.65775 4.00003 3.58169 4.00003 4.63623V6.50021H5.00003V4.63623ZM3 6.50021C2.72386 6.50021 2.5 6.72407 2.5 7.00021V13.0002C2.5 13.2764 2.72386 13.5002 3 13.5002H12C12.2761 13.5002 12.5 13.2764 12.5 13.0002V7.00021C12.5 6.72407 12.2761 6.50021 12 6.50021H3Z",fill:t,role:"img"})}))}},5729:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.MinimizeIcon=void 0;const o=n(5893);t.MinimizeIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.16602 12C2.16602 11.7239 2.38987 11.5 2.66602 11.5H13.3327C13.6088 11.5 13.8327 11.7239 13.8327 12C13.8327 12.2761 13.6088 12.5 13.3327 12.5H2.66602C2.38987 12.5 2.16602 12.2761 2.16602 12Z",fill:t,role:"img"})}))}},379:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.OpenFinIcon=void 0;const o=n(5893);t.OpenFinIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("path",{d:"M14.2685 5.73916C14.1785 5.64906 14.0817 5.56592 13.979 5.49047L13.9412 5.46429C13.9196 5.44919 13.8984 5.43358 13.8763 5.41898C13.8541 5.40438 13.8284 5.38878 13.8048 5.37418L13.7715 5.35354C13.7418 5.33592 13.7116 5.3193 13.6814 5.30319L13.6638 5.29363C13.3065 5.10618 12.9091 5.00807 12.5057 5.00768C11.8417 5.00715 11.2052 4.74291 10.7362 4.2731C10.2671 3.8033 10.004 3.16642 10.0046 2.50262C10.0065 1.49222 9.39933 0.580219 8.46634 0.191911C7.53335 -0.196397 6.45826 0.015466 5.74244 0.728701C5.02661 1.44194 4.81103 2.51607 5.19621 3.4502C5.5814 4.38433 6.4915 4.99447 7.5021 4.9961C8.16603 4.99664 8.80256 5.26088 9.27161 5.73068C9.74066 6.20049 10.0038 6.83736 10.0031 7.50117C10.0026 8.16497 9.7383 8.80137 9.2684 9.27032C8.7985 9.73928 8.1615 10.0024 7.49756 10.0017C6.83413 10.0022 6.19772 9.73894 5.72865 9.26987C5.25958 8.8008 4.99636 8.16447 4.99703 7.50117C4.99703 6.12155 3.87841 5.00315 2.49852 5.00315C1.11862 5.00315 0 6.12155 0 7.50117C0 8.88078 1.11862 9.99918 2.49852 9.99918C3.87841 9.99918 4.99703 11.1176 4.99703 12.4972C4.99703 13.8795 6.1178 15 7.50033 15C8.88287 15 10.0036 13.8795 10.0036 12.4972C10.0036 11.1176 11.1223 9.99918 12.5021 9.99918C12.9482 9.99948 13.3862 9.88022 13.7705 9.65383C13.8038 9.6342 13.8365 9.61356 13.8712 9.59241L13.8783 9.58788C13.9085 9.56775 13.9387 9.5466 13.9679 9.52546L13.981 9.5164C14.0072 9.49727 14.0314 9.47662 14.0591 9.45598L14.0812 9.43887C14.1054 9.41923 14.1286 9.39859 14.1522 9.37795L14.1779 9.3558C14.2081 9.32862 14.2378 9.30042 14.267 9.27123L14.2716 9.2672C14.3794 9.15887 14.4772 9.04091 14.5636 8.9148C14.5824 8.88761 14.6005 8.86009 14.618 8.83223C15.237 7.84584 15.092 6.56267 14.2685 5.73916Z",fill:t,role:"img"})}))}},1539:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.StackIcon=void 0;const o=n(5893);t.StackIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("path",{d:"M14.2178 3.00092C14.1504 3.00514 14.0839 3.01844 14.02 3.04047L3.51986 6.4287C3.36864 6.47743 3.23681 6.57291 3.14335 6.70138C3.04989 6.82986 2.99964 6.98469 2.99983 7.14356V15.754C2.99843 15.8534 3.01679 15.9521 3.05385 16.0443C3.09091 16.1366 3.14593 16.2205 3.21571 16.2913C3.2855 16.3621 3.36865 16.4183 3.46035 16.4566C3.55204 16.495 3.65045 16.5147 3.74984 16.5147C3.84924 16.5147 3.94764 16.495 4.03934 16.4566C4.13103 16.4183 4.21419 16.3621 4.28397 16.2913C4.35375 16.2205 4.40878 16.1366 4.44584 16.0443C4.4829 15.9521 4.50126 15.8534 4.49985 15.754V7.68849L14.48 4.46725C14.649 4.41529 14.7942 4.30532 14.89 4.15674C14.9858 4.00815 15.026 3.8305 15.0036 3.65514C14.9812 3.47977 14.8975 3.31797 14.7674 3.19827C14.6373 3.07857 14.4691 3.00868 14.2925 3.00092C14.2676 2.99967 14.2427 2.99967 14.2178 3.00092ZM17.2178 5.25095C17.1504 5.25517 17.0839 5.26848 17.0201 5.2905L6.5199 8.67874C6.36869 8.72746 6.23685 8.82294 6.14339 8.95142C6.04993 9.07989 5.99968 9.23472 5.99988 9.39359V18.0041C5.99847 18.1035 6.01683 18.2021 6.05389 18.2944C6.09095 18.3866 6.14597 18.4705 6.21576 18.5413C6.28554 18.6121 6.3687 18.6683 6.46039 18.7066C6.55209 18.745 6.65049 18.7648 6.74989 18.7648C6.84928 18.7648 6.94769 18.745 7.03938 18.7066C7.13108 18.6683 7.21423 18.6121 7.28402 18.5413C7.3538 18.4705 7.40882 18.3866 7.44588 18.2944C7.48294 18.2021 7.5013 18.1035 7.4999 18.0041V9.93852L17.48 6.71728C17.649 6.66533 17.7942 6.55535 17.89 6.40677C17.9858 6.25818 18.0261 6.08054 18.0036 5.90517C17.9812 5.72981 17.8976 5.568 17.7675 5.4483C17.6374 5.32861 17.4691 5.25871 17.2925 5.25095C17.2676 5.24971 17.2427 5.24971 17.2178 5.25095ZM20.193 7.50538C20.1344 7.50982 20.0758 7.52197 20.0186 7.54053L9.51848 10.9288C9.20948 11.0293 8.99992 11.3181 8.99992 11.6436V20.2541C8.99992 20.4979 9.11829 20.7262 9.3178 20.8664C9.44605 20.9572 9.59693 21.0041 9.74993 21.0041C9.83468 21.0041 9.92014 20.9894 10.0019 20.9602L20.502 17.2101C20.8006 17.1044 21.0001 16.8213 21.0001 16.504V8.25392C21.0001 8.01467 20.8853 7.78922 20.691 7.64747C20.5459 7.54172 20.3688 7.49205 20.193 7.50538Z",fill:t})}))}},4020:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.StorefrontIcon=void 0;const o=n(5893);t.StorefrontIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("path",{d:"M5 3C4.448 3 4 3.448 4 4C4 4.552 4.448 5 5 5H19C19.552 5 20 4.552 20 4C20 3.448 19.552 3 19 3H5ZM4.61719 7C4.23819 7 3.89361 7.21373 3.72461 7.55273L2.10547 10.7891C2.03547 10.9281 2 11.0813 2 11.2363V12C2 12.552 2.448 13 3 13V19C3 20.105 3.895 21 5 21H19C20.105 21 21 20.105 21 19V13C21.552 13 22 12.552 22 12V11.2363C22 11.0813 21.9645 10.9281 21.8945 10.7891L20.2754 7.55273C20.1064 7.21373 19.7618 7 19.3828 7H4.61719ZM6 13H18C18.552 13 19 13.448 19 14V18C19 18.552 18.552 19 18 19H6C5.448 19 5 18.552 5 18V14C5 13.448 5.448 13 6 13Z",fill:t})}))}},7937:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceIcon=void 0;const o=n(5893);t.WorkspaceIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsxs)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img"},n,{children:[(0,o.jsx)("path",{d:"M6.73811 2.8125H3.53137C3.13442 2.8125 2.81262 3.1343 2.81262 3.53125V7.51204C2.81262 7.909 3.13442 8.23079 3.53137 8.23079H6.73811C7.13506 8.23079 7.45686 7.909 7.45686 7.51204V3.53125C7.45686 3.1343 7.13506 2.8125 6.73811 2.8125Z",fill:t}),(0,o.jsx)("path",{d:"M12.1565 6.26758H8.94971C8.75123 6.26758 8.59033 6.42848 8.59033 6.62696V11.3818C8.59033 11.5803 8.75123 11.7412 8.94971 11.7412H12.1565C12.3549 11.7412 12.5158 11.5803 12.5158 11.3818V6.62696C12.5158 6.42848 12.3549 6.26758 12.1565 6.26758Z",stroke:t,strokeWidth:"0.718753"}),(0,o.jsx)("path",{d:"M12.1564 2.8125H8.94971C8.55275 2.8125 8.23096 3.1343 8.23096 3.53125V4.41587C8.23096 4.81283 8.55275 5.13463 8.94971 5.13463H12.1564C12.5534 5.13463 12.8752 4.81283 12.8752 4.41587V3.53125C12.8752 3.1343 12.5534 2.8125 12.1564 2.8125Z",fill:t}),(0,o.jsx)("path",{d:"M6.73798 9.00488H3.53125C3.1343 9.00488 2.8125 9.32668 2.8125 9.72364V11.3823C2.8125 11.7793 3.1343 12.1011 3.53125 12.1011H6.73798C7.13494 12.1011 7.45674 11.7793 7.45674 11.3823V9.72364C7.45674 9.32668 7.13494 9.00488 6.73798 9.00488Z",fill:t})]}))}},2772:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(379),t),o(n(4718),t),o(n(7937),t),o(n(8311),t),o(n(5729),t),o(n(7788),t),o(n(3703),t),o(n(6795),t),o(n(8265),t),o(n(117),t),o(n(1539),t),o(n(9285),t),o(n(4020),t),o(n(529),t),o(n(2402),t),o(n(2147),t),o(n(4825),t),o(n(6447),t),o(n(1281),t),o(n(7429),t)},3117:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.IconWithBadge=void 0;const i=n(5893),a=o(n(7518)),l=n(7006),s=n(3136),c=n(1335);t.IconWithBadge=e=>{var{count:t=0,max:n}=e,o=r(e,["count","max"]);return(0,i.jsxs)(u,{children:[(0,i.jsx)(l.Icon,Object.assign({},o)),t>0&&(0,i.jsx)(f,{count:t,max:n})]})};const u=(0,a.default)(c.Box)`
576
+ `}}},9634:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(7006),t)},9285:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.BellFilledIcon=void 0;const o=n(5893);t.BellFilledIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsxs)("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:[(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C11.2296 2 10.5845 2.58379 10.5078 3.35041C10.4952 3.47677 10.4057 3.58157 10.2846 3.61971C8.06554 4.31851 6.42238 6.33796 6.30033 8.77893L6.12382 12.3091C6.09936 12.7982 5.81331 13.2362 5.3753 13.4552L4.60739 13.8392C4.14761 14.0691 3.85718 14.539 3.85718 15.0531V16.25C3.85718 16.6248 4.16098 16.9286 4.53575 16.9286H19.4643C19.8391 16.9286 20.1429 16.6248 20.1429 16.25V15.0531C20.1429 14.539 19.8525 14.0691 19.3927 13.8392L18.6247 13.4552C18.1867 13.2362 17.9006 12.7982 17.8762 12.3091L17.6997 8.77893C17.5776 6.33796 15.9344 4.31851 13.7154 3.61972C13.5942 3.58157 13.5048 3.47678 13.4922 3.35041C13.4155 2.5838 12.7704 2 12 2Z",fill:t}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.28571 18.2857C9.28571 19.7848 10.5009 21 12 21C13.4991 21 14.7143 19.7848 14.7143 18.2857L9.28571 18.2857Z",fill:t})]}))}},4718:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.BellIcon=void 0;const o=n(5893);t.BellIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.47306 1.22943C6.5193 1.22943 5.87291 1.98399 5.65371 2.72697C5.65207 2.72932 5.64921 2.73303 5.64485 2.73756C5.6392 2.74342 5.63264 2.74896 5.62599 2.75355C5.61926 2.75819 5.61452 2.7604 5.613 2.76102L5.61265 2.76117C5.05088 2.99251 4.39193 3.36022 3.87697 4.03357C3.35815 4.71196 3.01949 5.65571 3.01945 6.97749L5.65371 2.72697L3.01945 6.97776C3.01866 8.30165 2.87871 9.0313 2.67091 9.53439C2.48879 9.97531 2.24889 10.2658 1.912 10.6738L1.91185 10.674C1.86263 10.7336 1.81135 10.7957 1.75787 10.8612C1.14923 11.606 1.72729 12.6419 2.65986 12.6419H5.09019C5.21191 12.98 5.40726 13.2906 5.66618 13.5495C6.12827 14.0116 6.75499 14.2712 7.40848 14.2712C8.06197 14.2712 8.6887 14.0116 9.15078 13.5495C9.40971 13.2906 9.60505 12.98 9.72678 12.6419H12.2894C13.2234 12.6419 13.792 11.6008 13.1884 10.8613L13.1883 10.8612C13.1348 10.7957 13.0835 10.7336 13.0342 10.674C12.6973 10.2659 12.4574 9.9754 12.2755 9.53451C12.0678 9.03147 11.9282 8.30182 11.9282 6.97776C11.9282 5.65688 11.5891 4.71299 11.0703 4.03433C10.5553 3.36075 9.89652 2.99234 9.33499 2.76115L9.33467 2.76102C9.33409 2.76079 9.32982 2.75888 9.32313 2.75424C9.31655 2.74967 9.30981 2.74394 9.30382 2.7377C9.29875 2.73241 9.29545 2.72803 9.29363 2.72531C9.07264 1.98378 8.42691 1.22943 7.47306 1.22943ZM8.68654 12.6419H6.13042C6.1876 12.7295 6.25403 12.8115 6.3291 12.8866C6.61537 13.1729 7.00363 13.3337 7.40848 13.3337C7.81333 13.3337 8.2016 13.1729 8.48787 12.8866C8.56293 12.8115 8.62937 12.7295 8.68654 12.6419ZM6.55145 2.99716C6.69571 2.50085 7.07121 2.16693 7.47306 2.16693C7.87492 2.16693 8.2505 2.50061 8.3966 2.99785L8.39695 2.99904C8.48499 3.29575 8.72843 3.52538 8.97809 3.62806C9.45625 3.82492 9.94894 4.11119 10.3255 4.60373C10.6982 5.09119 10.9907 5.82486 10.9907 6.97776C10.9907 8.35506 11.1337 9.2255 11.4089 9.89217C11.6483 10.4723 11.9823 10.8749 12.3167 11.278C12.3653 11.3366 12.4139 11.3951 12.4622 11.4542C12.5016 11.5025 12.5046 11.5552 12.4793 11.605C12.4553 11.6524 12.3996 11.7044 12.2894 11.7044H2.65986C2.54604 11.7044 2.48955 11.6509 2.46588 11.6045C2.44119 11.5562 2.44325 11.504 2.4838 11.4544L2.48383 11.4544C2.53215 11.3952 2.58075 11.3366 2.62934 11.2781L2.62946 11.2779C2.96389 10.8748 3.29785 10.4723 3.5374 9.89229C3.81273 9.22571 3.95615 8.35533 3.95695 6.97803V6.97776C3.95695 5.82341 4.24928 5.08999 4.62165 4.60309C4.99792 4.1111 5.49044 3.82537 5.96963 3.62805C6.21661 3.52645 6.46257 3.30002 6.55111 2.99833L6.55145 2.99716Z",fill:t,role:"img"})}))}},8265:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.BrokenLinkIcon=void 0;const o=n(5893);t.BrokenLinkIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsxs)("svg",Object.assign({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:[(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.3335 3.7002C6.05735 3.7002 5.8335 3.92405 5.8335 4.2002V27.8002C5.8335 28.0763 6.05735 28.3002 6.3335 28.3002H25.6668C25.943 28.3002 26.1668 28.0763 26.1668 27.8002V12.2335H18.1335C17.8574 12.2335 17.6335 12.0097 17.6335 11.7335V3.7002H6.3335ZM18.6335 4.4073L25.4597 11.2335H18.6335V4.4073ZM4.8335 4.2002C4.8335 3.37177 5.50507 2.7002 6.3335 2.7002H18.1335C18.2661 2.7002 18.3933 2.75287 18.487 2.84664L27.0204 11.38C27.1141 11.4737 27.1668 11.6009 27.1668 11.7335V27.8002C27.1668 28.6286 26.4953 29.3002 25.6668 29.3002H6.3335C5.50507 29.3002 4.8335 28.6286 4.8335 27.8002V4.2002Z",fill:t}),(0,o.jsx)("path",{d:"M14.248 21.9084V21.8409C14.2528 21.4006 14.2966 21.0502 14.3794 20.7898C14.4647 20.5294 14.5854 20.3187 14.7417 20.1577C14.8979 19.9967 15.0861 19.8499 15.3063 19.7173C15.4483 19.6274 15.5762 19.5268 15.6898 19.4155C15.8034 19.3042 15.8934 19.1764 15.9597 19.032C16.026 18.8875 16.0591 18.7277 16.0591 18.5526C16.0591 18.3419 16.0094 18.1596 15.91 18.0057C15.8105 17.8518 15.678 17.7334 15.5123 17.6506C15.3489 17.5653 15.1666 17.5227 14.9654 17.5227C14.7831 17.5227 14.6091 17.5606 14.4434 17.6364C14.2776 17.7121 14.1403 17.8305 14.0314 17.9915C13.9225 18.1501 13.8598 18.3549 13.8432 18.6058H12.7637C12.7802 18.1797 12.888 17.8198 13.0868 17.5263C13.2857 17.2304 13.5485 17.0066 13.8752 16.8551C14.2042 16.7036 14.5676 16.6278 14.9654 16.6278C15.401 16.6278 15.7821 16.7095 16.1088 16.8729C16.4355 17.0339 16.6889 17.2599 16.8688 17.5511C17.0511 17.84 17.1422 18.1773 17.1422 18.5632C17.1422 18.8284 17.1008 19.0675 17.0179 19.2805C16.9351 19.4912 16.8167 19.6795 16.6628 19.8452C16.5113 20.0109 16.329 20.1577 16.1159 20.2855C15.9147 20.411 15.7514 20.5412 15.6259 20.6761C15.5028 20.8111 15.4128 20.9709 15.356 21.1555C15.2992 21.3402 15.2684 21.5687 15.2637 21.8409V21.9084H14.248ZM14.7843 24.0675C14.5901 24.0675 14.4232 23.9988 14.2836 23.8615C14.1439 23.7218 14.074 23.5537 14.074 23.3572C14.074 23.1631 14.1439 22.9974 14.2836 22.8601C14.4232 22.7204 14.5901 22.6506 14.7843 22.6506C14.976 22.6506 15.1417 22.7204 15.2814 22.8601C15.4235 22.9974 15.4945 23.1631 15.4945 23.3572C15.4945 23.4875 15.4614 23.607 15.3951 23.7159C15.3311 23.8224 15.2459 23.9077 15.1394 23.9716C15.0328 24.0355 14.9145 24.0675 14.7843 24.0675Z",fill:t})]}))}},6447:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.ChevronDownIcon=void 0;const o=n(5893);t.ChevronDownIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},{children:(0,o.jsx)("path",Object.assign({fillRule:"evenodd",clipRule:"evenodd",d:"M5.05282 9.88707C5.33612 9.58489 5.81075 9.56958 6.11293 9.85287L12 15.372L17.887 9.85287C18.1892 9.56958 18.6638 9.58489 18.9471 9.88707C19.2304 10.1893 19.2151 10.6639 18.9129 10.9472L12.5129 16.9472C12.2244 17.2176 11.7755 17.2176 11.487 16.9472L5.08702 10.9472C4.78484 10.6639 4.76952 10.1893 5.05282 9.88707Z",fill:t},n))}))}},2147:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.ChevronLeftIcon=void 0;const o=n(5893);t.ChevronLeftIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},{children:(0,o.jsx)("path",Object.assign({fillRule:"evenodd",clipRule:"evenodd",d:"M14.1127 5.05272C14.4149 5.33601 14.4302 5.81064 14.1469 6.11282L8.62784 11.9999L14.1469 17.8869C14.4302 18.1891 14.4149 18.6637 14.1127 18.947C13.8106 19.2303 13.3359 19.215 13.0526 18.9128L7.05264 12.5128C6.78218 12.2243 6.78218 11.7754 7.05264 11.4869L13.0526 5.08691C13.3359 4.78473 13.8106 4.76942 14.1127 5.05272Z",fill:t},n))}))}},2402:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.ChevronRightIcon=void 0;const o=n(5893);t.ChevronRightIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},{children:(0,o.jsx)("path",Object.assign({fillRule:"evenodd",clipRule:"evenodd",d:"M9.88762 5.05256C10.1898 4.76926 10.6644 4.78457 10.9477 5.08676L16.9477 11.4868C17.2182 11.7753 17.2182 12.2242 16.9477 12.5127L10.9477 18.9127C10.6644 19.2149 10.1898 19.2302 9.88762 18.9469C9.58543 18.6636 9.57012 18.1889 9.85342 17.8868L15.3725 11.9997L9.85342 6.11267C9.57012 5.81049 9.58544 5.33586 9.88762 5.05256Z",fill:t},n))}))}},4825:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.ChevronUpIcon=void 0;const o=n(5893);t.ChevronUpIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},{children:(0,o.jsx)("path",Object.assign({fillRule:"evenodd",clipRule:"evenodd",d:"M5.05285 14.1129C5.33615 14.4151 5.81078 14.4304 6.11296 14.1471L12 8.62802L17.887 14.1471C18.1892 14.4304 18.6639 14.4151 18.9472 14.1129C19.2305 13.8107 19.2151 13.3361 18.913 13.0528L12.513 7.05282C12.2245 6.78236 11.7755 6.78236 11.4871 7.05282L5.08705 13.0528C4.78487 13.3361 4.76956 13.8107 5.05285 14.1129Z",fill:t},n))}))}},1281:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExclamationCircledFilledIcon=void 0;const r=n(5893);t.ExclamationCircledFilledIcon=e=>(0,r.jsxs)("svg",Object.assign({width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:[(0,r.jsx)("path",{d:"M7.99988 15.3317C11.7729 15.3317 14.8316 12.2731 14.8316 8.50007C14.8316 4.72704 11.7729 1.6684 7.99988 1.6684C4.22686 1.6684 1.16821 4.72704 1.16821 8.50007C1.16821 12.2731 4.22686 15.3317 7.99988 15.3317Z",fill:"red"}),(0,r.jsx)("mask",Object.assign({id:"path-2-inside-1_6_262033",fill:"white"},{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.99993 4.37384C7.57525 4.37384 7.23564 4.72676 7.25196 5.15113L7.42296 9.59706C7.43489 9.90708 7.68968 10.1523 7.99993 10.1523C8.31019 10.1523 8.56498 9.90708 8.5769 9.59706L8.7479 5.15113C8.76422 4.72676 8.42461 4.37384 7.99993 4.37384ZM7.99993 12.6406C8.46022 12.6406 8.83335 12.2675 8.83335 11.8072C8.83335 11.3469 8.46022 10.9738 7.99993 10.9738C7.53964 10.9738 7.1665 11.3469 7.1665 11.8072C7.1665 12.2675 7.53964 12.6406 7.99993 12.6406Z"})})),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.99993 4.37384C7.57525 4.37384 7.23564 4.72676 7.25196 5.15113L7.42296 9.59706C7.43489 9.90708 7.68968 10.1523 7.99993 10.1523C8.31019 10.1523 8.56498 9.90708 8.5769 9.59706L8.7479 5.15113C8.76422 4.72676 8.42461 4.37384 7.99993 4.37384ZM7.99993 12.6406C8.46022 12.6406 8.83335 12.2675 8.83335 11.8072C8.83335 11.3469 8.46022 10.9738 7.99993 10.9738C7.53964 10.9738 7.1665 11.3469 7.1665 11.8072C7.1665 12.2675 7.53964 12.6406 7.99993 12.6406Z",fill:"white"}),(0,r.jsx)("path",{d:"M7.25196 5.15113L5.64874 5.21279L5.64874 5.21279L7.25196 5.15113ZM7.42296 9.59706L9.02618 9.5354L9.02618 9.5354L7.42296 9.59706ZM8.5769 9.59706L10.1801 9.65872L8.5769 9.59706ZM8.7479 5.15113L10.3511 5.21279L10.3511 5.21279L8.7479 5.15113ZM8.85519 5.08947C8.87385 5.5747 8.48553 5.97825 7.99993 5.97825V2.76943C6.66498 2.76943 5.59744 3.87882 5.64874 5.21279L8.85519 5.08947ZM9.02618 9.5354L8.85519 5.08947L5.64874 5.21279L5.81974 9.65872L9.02618 9.5354ZM7.99993 8.54786C8.55177 8.54786 9.00498 8.98396 9.02618 9.5354L5.81974 9.65872C5.8648 10.8302 6.82758 11.7567 7.99993 11.7567V8.54786ZM6.97368 9.5354C6.99489 8.98396 7.44809 8.54786 7.99993 8.54786V11.7567C9.17228 11.7567 10.1351 10.8302 10.1801 9.65872L6.97368 9.5354ZM7.14468 5.08947L6.97368 9.5354L10.1801 9.65872L10.3511 5.21279L7.14468 5.08947ZM7.99993 5.97825C7.51434 5.97825 7.12602 5.5747 7.14468 5.08947L10.3511 5.21279C10.4024 3.87882 9.33489 2.76943 7.99993 2.76943V5.97825ZM7.22895 11.8072C7.22895 11.3814 7.57413 11.0362 7.99993 11.0362V14.245C9.34631 14.245 10.4378 13.1536 10.4378 11.8072H7.22895ZM7.99993 12.5782C7.57413 12.5782 7.22895 12.233 7.22895 11.8072H10.4378C10.4378 10.4608 9.34631 9.36937 7.99993 9.36937V12.5782ZM8.77091 11.8072C8.77091 12.233 8.42573 12.5782 7.99993 12.5782V9.36937C6.65355 9.36937 5.5621 10.4608 5.5621 11.8072H8.77091ZM7.99993 11.0362C8.42573 11.0362 8.77091 11.3814 8.77091 11.8072H5.5621C5.5621 13.1536 6.65355 14.245 7.99993 14.245V11.0362Z",fill:"white",mask:"url(#path-2-inside-1_6_262033)"})]}))},7429:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.FilledCircleIcon=void 0;const o=n(5893);t.FilledCircleIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("g",Object.assign({id:".Slot"},{children:(0,o.jsx)("circle",{id:"Ellipse 1",cx:"8",cy:"8",r:"8",fill:t})}))}))}},6795:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.FilterIcon=void 0;const o=n(5893);t.FilterIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"12",height:"7",viewBox:"0 0 12 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("path",{d:"M4 6.5C4 6.36739 4.05268 6.24021 4.14645 6.14645C4.24021 6.05268 4.36739 6 4.5 6H7.5C7.63261 6 7.75979 6.05268 7.85355 6.14645C7.94732 6.24021 8 6.36739 8 6.5C8 6.63261 7.94732 6.75979 7.85355 6.85355C7.75979 6.94732 7.63261 7 7.5 7H4.5C4.36739 7 4.24021 6.94732 4.14645 6.85355C4.05268 6.75979 4 6.63261 4 6.5ZM2 3.5C2 3.36739 2.05268 3.24021 2.14645 3.14645C2.24021 3.05268 2.36739 3 2.5 3H9.5C9.63261 3 9.75979 3.05268 9.85355 3.14645C9.94732 3.24021 10 3.36739 10 3.5C10 3.63261 9.94732 3.75979 9.85355 3.85355C9.75979 3.94732 9.63261 4 9.5 4H2.5C2.36739 4 2.24021 3.94732 2.14645 3.85355C2.05268 3.75979 2 3.63261 2 3.5ZM0 0.5C0 0.367392 0.0526785 0.240215 0.146447 0.146447C0.240215 0.0526785 0.367392 0 0.5 0H11.5C11.6326 0 11.7598 0.0526785 11.8536 0.146447C11.9473 0.240215 12 0.367392 12 0.5C12 0.632608 11.9473 0.759785 11.8536 0.853553C11.7598 0.947321 11.6326 1 11.5 1H0.5C0.367392 1 0.240215 0.947321 0.146447 0.853553C0.0526785 0.759785 0 0.632608 0 0.5Z",fill:t})}))}},117:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.FloppyDiskIcon=void 0;const o=n(5893);t.FloppyDiskIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("path",{d:"M1.875 2.1875C1.875 2.15298 1.90298 2.125 1.9375 2.125H8.23039C8.24697 2.125 8.26287 2.13158 8.27459 2.14331L9.98169 3.85041C9.99341 3.86213 10 3.87803 10 3.89461V10.1875C10 10.222 9.97202 10.25 9.9375 10.25H1.9375C1.90298 10.25 1.875 10.222 1.875 10.1875V2.1875ZM1.9375 1.25C1.41973 1.25 1 1.66973 1 2.1875V10.1875C1 10.7053 1.41973 11.125 1.9375 11.125H9.9375C10.4553 11.125 10.875 10.7053 10.875 10.1875V3.89461C10.875 3.64597 10.7762 3.40751 10.6004 3.23169L8.89331 1.52459C8.71749 1.34877 8.47903 1.25 8.23039 1.25H1.9375ZM2.84924 3.4081C2.84924 3.23754 2.98751 3.09927 3.15807 3.09927H7.4816C7.65215 3.09927 7.79042 3.23754 7.79042 3.4081V4.64339C7.79042 4.81395 7.65215 4.95221 7.4816 4.95221H3.15807C2.98751 4.95221 2.84924 4.81395 2.84924 4.64339V3.4081ZM4.5368 6.63977C4.82638 6.35019 5.21913 6.18751 5.62865 6.18751C6.03818 6.18751 6.43093 6.35019 6.72051 6.63977C7.01009 6.92935 7.17277 7.3221 7.17277 7.73163C7.17277 8.14115 7.01009 8.5339 6.72051 8.82348C6.43093 9.11306 6.03818 9.27574 5.62865 9.27574C5.21913 9.27574 4.82638 9.11306 4.5368 8.82348C4.24722 8.5339 4.08454 8.14115 4.08454 7.73163C4.08454 7.3221 4.24722 6.92935 4.5368 6.63977Z",fill:t,role:"img"})}))}},529:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.FragmentsIcon=void 0;const o=n(5893);t.FragmentsIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("path",{d:"M8.80001 4.80002H4.80001C3.91761 4.80002 3.20001 5.51762 3.20001 6.40002V10.4C3.20001 11.2824 3.91761 12 4.80001 12H8.80001C9.68241 12 10.4 11.2824 10.4 10.4V6.40002C10.4 5.51762 9.68241 4.80002 8.80001 4.80002ZM20.3592 6.46882L17.5312 3.64002C16.908 3.01602 15.892 3.01602 15.2688 3.64002L12.4408 6.46882C11.8168 7.09282 11.8168 8.10722 12.4408 8.73122L15.2688 11.56C15.5808 11.872 15.9904 12.028 16.4 12.028C16.8096 12.028 17.2192 11.872 17.5312 11.56L20.3592 8.73122C20.9832 8.10722 20.9832 7.09282 20.3592 6.46882ZM8.80001 13.6H4.80001C3.91761 13.6 3.20001 14.3176 3.20001 15.2V19.2C3.20001 20.0824 3.91761 20.8 4.80001 20.8H8.80001C9.68241 20.8 10.4 20.0824 10.4 19.2V15.2C10.4 14.3176 9.68241 13.6 8.80001 13.6ZM17.6 13.6H13.6C12.7176 13.6 12 14.3176 12 15.2V19.2C12 20.0824 12.7176 20.8 13.6 20.8H17.6C18.4824 20.8 19.2 20.0824 19.2 19.2V15.2C19.2 14.3176 18.4824 13.6 17.6 13.6Z",fill:t})}))}},7788:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.LightBulbFilledIcon=void 0;const o=n(5893);t.LightBulbFilledIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsxs)("svg",Object.assign({width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:[(0,o.jsx)("path",{d:"M1.83 1.31008C2.24409 0.891667 2.73768 0.560307 3.28174 0.335504C3.82581 0.110701 4.40934 -0.00300333 4.998 0.00108291C6.18628 -0.00310785 7.32905 0.457733 8.182 1.28508C8.59881 1.68719 8.93046 2.16903 9.15723 2.70194C9.384 3.23485 9.50125 3.80793 9.502 4.38708C9.502 5.68008 8.917 6.83008 7.883 7.82508L7.577 9.00008H2.466L2.236 8.03708C1.154 6.90708 0.556 5.81908 0.5 4.58208V4.54408C0.54 3.24808 1.033 2.12108 1.831 1.31108L1.83 1.31008Z",fill:t}),(0,o.jsx)("path",{d:"M2.7041 10L2.9371 10.978L2.9451 11C3.0451 11.297 3.2371 11.544 3.4791 11.717C3.7301 11.897 4.0371 11.999 4.3611 11.999H4.3631L5.7461 11.995L5.7671 11.993C6.07587 11.9669 6.36913 11.8465 6.6071 11.648C6.8381 11.454 7.0131 11.188 7.0871 10.874L7.3161 10H2.7041V10Z",fill:t})]}))}},3703:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.LightBulbOutlinedIcon=void 0;const o=n(5893);t.LightBulbOutlinedIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("path",{d:"M4.99766 0.00100149C3.76866 0.00100149 2.64766 0.482002 1.82966 1.311C1.03166 2.121 0.539657 3.248 0.499657 4.544L0.498657 4.563V4.583C0.555657 5.819 1.15366 6.907 2.23566 8.037L2.93766 10.978L2.94466 11C3.04466 11.297 3.23666 11.544 3.47866 11.717C3.72966 11.897 4.03666 11.999 4.36166 11.999L5.74566 11.995L5.76666 11.993C6.07542 11.9669 6.36869 11.8465 6.60666 11.648C6.83766 11.454 7.01266 11.188 7.08666 10.874L7.88266 7.824C8.91666 6.83 9.50066 5.68 9.50066 4.387C9.49991 3.80785 9.38266 3.23477 9.15589 2.70186C8.92912 2.16895 8.59746 1.68711 8.18066 1.285C7.32796 0.457894 6.18559 -0.00292788 4.99766 0.00100149ZM2.54266 2.013C2.86344 1.68871 3.24596 1.43198 3.66762 1.258C4.08928 1.08401 4.54153 0.996283 4.99766 1C5.92514 0.995784 6.81744 1.35471 7.48366 2C7.80471 2.30904 8.06023 2.67957 8.23496 3.08951C8.40969 3.49945 8.50005 3.94038 8.50066 4.386C8.50066 5.377 8.04766 6.312 7.09666 7.191L6.98866 7.291L6.54266 9H3.49366L3.14466 7.536L3.04766 7.436C1.99966 6.372 1.54766 5.48 1.49866 4.557C1.53666 3.509 1.93266 2.632 2.54266 2.014V2.013ZM3.73266 10H6.28266L6.11766 10.627L6.11466 10.64C6.09211 10.7342 6.03944 10.8185 5.96466 10.88C5.88873 10.9435 5.79595 10.9834 5.69766 10.995L4.36066 11C4.25321 11.0003 4.14833 10.9671 4.06066 10.905C3.9877 10.8536 3.93139 10.782 3.89866 10.699L3.73166 10H3.73266Z",fill:t})}))}},8311:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.LockedClosedFilledIcon=void 0;const o=n(5893);t.LockedClosedFilledIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("path",{d:"M5.00003 4.63623C5.00003 3.76052 5.24222 3.10561 5.64327 2.67378C6.03938 2.24727 6.64585 1.97852 7.50143 1.97852C8.35748 1.97852 8.96309 2.24673 9.35827 2.6723C9.75841 3.10321 10 3.75729 10 4.63346V6.50021H11V4.63346C11 3.57917 10.7076 2.65578 10.0911 1.99183C9.46955 1.32254 8.57586 0.978516 7.50143 0.978516C6.42678 0.978516 5.53255 1.3235 4.91052 1.99328C4.29342 2.65775 4.00003 3.58169 4.00003 4.63623V6.50021H5.00003V4.63623ZM3 6.50021C2.72386 6.50021 2.5 6.72407 2.5 7.00021V13.0002C2.5 13.2764 2.72386 13.5002 3 13.5002H12C12.2761 13.5002 12.5 13.2764 12.5 13.0002V7.00021C12.5 6.72407 12.2761 6.50021 12 6.50021H3Z",fill:t,role:"img"})}))}},5729:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.MinimizeIcon=void 0;const o=n(5893);t.MinimizeIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.16602 12C2.16602 11.7239 2.38987 11.5 2.66602 11.5H13.3327C13.6088 11.5 13.8327 11.7239 13.8327 12C13.8327 12.2761 13.6088 12.5 13.3327 12.5H2.66602C2.38987 12.5 2.16602 12.2761 2.16602 12Z",fill:t,role:"img"})}))}},379:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.OpenFinIcon=void 0;const o=n(5893);t.OpenFinIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("path",{d:"M14.2685 5.73916C14.1785 5.64906 14.0817 5.56592 13.979 5.49047L13.9412 5.46429C13.9196 5.44919 13.8984 5.43358 13.8763 5.41898C13.8541 5.40438 13.8284 5.38878 13.8048 5.37418L13.7715 5.35354C13.7418 5.33592 13.7116 5.3193 13.6814 5.30319L13.6638 5.29363C13.3065 5.10618 12.9091 5.00807 12.5057 5.00768C11.8417 5.00715 11.2052 4.74291 10.7362 4.2731C10.2671 3.8033 10.004 3.16642 10.0046 2.50262C10.0065 1.49222 9.39933 0.580219 8.46634 0.191911C7.53335 -0.196397 6.45826 0.015466 5.74244 0.728701C5.02661 1.44194 4.81103 2.51607 5.19621 3.4502C5.5814 4.38433 6.4915 4.99447 7.5021 4.9961C8.16603 4.99664 8.80256 5.26088 9.27161 5.73068C9.74066 6.20049 10.0038 6.83736 10.0031 7.50117C10.0026 8.16497 9.7383 8.80137 9.2684 9.27032C8.7985 9.73928 8.1615 10.0024 7.49756 10.0017C6.83413 10.0022 6.19772 9.73894 5.72865 9.26987C5.25958 8.8008 4.99636 8.16447 4.99703 7.50117C4.99703 6.12155 3.87841 5.00315 2.49852 5.00315C1.11862 5.00315 0 6.12155 0 7.50117C0 8.88078 1.11862 9.99918 2.49852 9.99918C3.87841 9.99918 4.99703 11.1176 4.99703 12.4972C4.99703 13.8795 6.1178 15 7.50033 15C8.88287 15 10.0036 13.8795 10.0036 12.4972C10.0036 11.1176 11.1223 9.99918 12.5021 9.99918C12.9482 9.99948 13.3862 9.88022 13.7705 9.65383C13.8038 9.6342 13.8365 9.61356 13.8712 9.59241L13.8783 9.58788C13.9085 9.56775 13.9387 9.5466 13.9679 9.52546L13.981 9.5164C14.0072 9.49727 14.0314 9.47662 14.0591 9.45598L14.0812 9.43887C14.1054 9.41923 14.1286 9.39859 14.1522 9.37795L14.1779 9.3558C14.2081 9.32862 14.2378 9.30042 14.267 9.27123L14.2716 9.2672C14.3794 9.15887 14.4772 9.04091 14.5636 8.9148C14.5824 8.88761 14.6005 8.86009 14.618 8.83223C15.237 7.84584 15.092 6.56267 14.2685 5.73916Z",fill:t,role:"img"})}))}},1539:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.StackIcon=void 0;const o=n(5893);t.StackIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("path",{d:"M14.2178 3.00092C14.1504 3.00514 14.0839 3.01844 14.02 3.04047L3.51986 6.4287C3.36864 6.47743 3.23681 6.57291 3.14335 6.70138C3.04989 6.82986 2.99964 6.98469 2.99983 7.14356V15.754C2.99843 15.8534 3.01679 15.9521 3.05385 16.0443C3.09091 16.1366 3.14593 16.2205 3.21571 16.2913C3.2855 16.3621 3.36865 16.4183 3.46035 16.4566C3.55204 16.495 3.65045 16.5147 3.74984 16.5147C3.84924 16.5147 3.94764 16.495 4.03934 16.4566C4.13103 16.4183 4.21419 16.3621 4.28397 16.2913C4.35375 16.2205 4.40878 16.1366 4.44584 16.0443C4.4829 15.9521 4.50126 15.8534 4.49985 15.754V7.68849L14.48 4.46725C14.649 4.41529 14.7942 4.30532 14.89 4.15674C14.9858 4.00815 15.026 3.8305 15.0036 3.65514C14.9812 3.47977 14.8975 3.31797 14.7674 3.19827C14.6373 3.07857 14.4691 3.00868 14.2925 3.00092C14.2676 2.99967 14.2427 2.99967 14.2178 3.00092ZM17.2178 5.25095C17.1504 5.25517 17.0839 5.26848 17.0201 5.2905L6.5199 8.67874C6.36869 8.72746 6.23685 8.82294 6.14339 8.95142C6.04993 9.07989 5.99968 9.23472 5.99988 9.39359V18.0041C5.99847 18.1035 6.01683 18.2021 6.05389 18.2944C6.09095 18.3866 6.14597 18.4705 6.21576 18.5413C6.28554 18.6121 6.3687 18.6683 6.46039 18.7066C6.55209 18.745 6.65049 18.7648 6.74989 18.7648C6.84928 18.7648 6.94769 18.745 7.03938 18.7066C7.13108 18.6683 7.21423 18.6121 7.28402 18.5413C7.3538 18.4705 7.40882 18.3866 7.44588 18.2944C7.48294 18.2021 7.5013 18.1035 7.4999 18.0041V9.93852L17.48 6.71728C17.649 6.66533 17.7942 6.55535 17.89 6.40677C17.9858 6.25818 18.0261 6.08054 18.0036 5.90517C17.9812 5.72981 17.8976 5.568 17.7675 5.4483C17.6374 5.32861 17.4691 5.25871 17.2925 5.25095C17.2676 5.24971 17.2427 5.24971 17.2178 5.25095ZM20.193 7.50538C20.1344 7.50982 20.0758 7.52197 20.0186 7.54053L9.51848 10.9288C9.20948 11.0293 8.99992 11.3181 8.99992 11.6436V20.2541C8.99992 20.4979 9.11829 20.7262 9.3178 20.8664C9.44605 20.9572 9.59693 21.0041 9.74993 21.0041C9.83468 21.0041 9.92014 20.9894 10.0019 20.9602L20.502 17.2101C20.8006 17.1044 21.0001 16.8213 21.0001 16.504V8.25392C21.0001 8.01467 20.8853 7.78922 20.691 7.64747C20.5459 7.54172 20.3688 7.49205 20.193 7.50538Z",fill:t})}))}},4020:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.StorefrontIcon=void 0;const o=n(5893);t.StorefrontIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsx)("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,o.jsx)("path",{d:"M5 3C4.448 3 4 3.448 4 4C4 4.552 4.448 5 5 5H19C19.552 5 20 4.552 20 4C20 3.448 19.552 3 19 3H5ZM4.61719 7C4.23819 7 3.89361 7.21373 3.72461 7.55273L2.10547 10.7891C2.03547 10.9281 2 11.0813 2 11.2363V12C2 12.552 2.448 13 3 13V19C3 20.105 3.895 21 5 21H19C20.105 21 21 20.105 21 19V13C21.552 13 22 12.552 22 12V11.2363C22 11.0813 21.9645 10.9281 21.8945 10.7891L20.2754 7.55273C20.1064 7.21373 19.7618 7 19.3828 7H4.61719ZM6 13H18C18.552 13 19 13.448 19 14V18C19 18.552 18.552 19 18 19H6C5.448 19 5 18.552 5 18V14C5 13.448 5.448 13 6 13Z",fill:t})}))}},7937:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceIcon=void 0;const o=n(5893);t.WorkspaceIcon=e=>{var{color:t="currentColor"}=e,n=r(e,["color"]);return(0,o.jsxs)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img"},n,{children:[(0,o.jsx)("path",{d:"M6.73811 2.8125H3.53137C3.13442 2.8125 2.81262 3.1343 2.81262 3.53125V7.51204C2.81262 7.909 3.13442 8.23079 3.53137 8.23079H6.73811C7.13506 8.23079 7.45686 7.909 7.45686 7.51204V3.53125C7.45686 3.1343 7.13506 2.8125 6.73811 2.8125Z",fill:t}),(0,o.jsx)("path",{d:"M12.1565 6.26758H8.94971C8.75123 6.26758 8.59033 6.42848 8.59033 6.62696V11.3818C8.59033 11.5803 8.75123 11.7412 8.94971 11.7412H12.1565C12.3549 11.7412 12.5158 11.5803 12.5158 11.3818V6.62696C12.5158 6.42848 12.3549 6.26758 12.1565 6.26758Z",stroke:t,strokeWidth:"0.718753"}),(0,o.jsx)("path",{d:"M12.1564 2.8125H8.94971C8.55275 2.8125 8.23096 3.1343 8.23096 3.53125V4.41587C8.23096 4.81283 8.55275 5.13463 8.94971 5.13463H12.1564C12.5534 5.13463 12.8752 4.81283 12.8752 4.41587V3.53125C12.8752 3.1343 12.5534 2.8125 12.1564 2.8125Z",fill:t}),(0,o.jsx)("path",{d:"M6.73798 9.00488H3.53125C3.1343 9.00488 2.8125 9.32668 2.8125 9.72364V11.3823C2.8125 11.7793 3.1343 12.1011 3.53125 12.1011H6.73798C7.13494 12.1011 7.45674 11.7793 7.45674 11.3823V9.72364C7.45674 9.32668 7.13494 9.00488 6.73798 9.00488Z",fill:t})]}))}},2772:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(379),t),o(n(4718),t),o(n(7937),t),o(n(8311),t),o(n(5729),t),o(n(7788),t),o(n(3703),t),o(n(6795),t),o(n(8265),t),o(n(117),t),o(n(1539),t),o(n(9285),t),o(n(4020),t),o(n(529),t),o(n(2402),t),o(n(2147),t),o(n(4825),t),o(n(6447),t),o(n(1281),t),o(n(7429),t)},3117:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.IconWithBadge=void 0;const i=n(5893),a=o(n(7518)),l=n(7006),s=n(3136),c=n(1335);t.IconWithBadge=e=>{var{count:t=0,max:n}=e,o=r(e,["count","max"]);return(0,i.jsxs)(u,{children:[(0,i.jsx)(l.Icon,Object.assign({},o)),t>0&&(0,i.jsx)(f,{count:t,max:n})]})};const u=(0,a.default)(c.Box)`
576
577
  position: relative;
577
578
  `,f=(0,a.default)(s.Badge)`
578
579
  position: absolute;
@@ -651,7 +652,7 @@
651
652
  opacity: 0;
652
653
  }
653
654
  `)(e)} 2s ease-in-out infinite;
654
- `},7030:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationError=void 0;const o=n(5893),i=r(n(7518)),a=n(7769),l=n(9634);t.ValidationError=({children:e})=>(0,o.jsxs)(s,{children:[(0,o.jsx)(l.Icon,{icon:"ExclamationCircledFilledIcon",color:"red"}),(0,o.jsx)(c,{children:e})]});const s=i.default.div`
655
+ `},7030:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationError=void 0;const o=n(5893),i=r(n(7518)),a=n(7769),l=n(9634);t.ValidationError=({children:e})=>(0,o.jsxs)(s,{children:[(0,o.jsx)(l.Icon,{icon:"ExclamationCircledFilledIcon"}),(0,o.jsx)(c,{children:e})]});const s=i.default.div`
655
656
  display: flex;
656
657
  gap: ${({theme:e})=>e.px.xsmall};
657
658
  align-items: center;
@@ -884,7 +885,7 @@
884
885
  height: ${({theme:e})=>e.px.base};
885
886
  border-radius: 50%;
886
887
  border-style: solid;
887
- border-width: 2px;
888
+ border-width: 1px;
888
889
  border-color: ${({theme:e})=>e.palette.textDefault};
889
890
  box-sizing: content-box;
890
891
 
@@ -928,7 +929,7 @@
928
929
 
929
930
  color: ${({theme:e})=>e.palette.inputDisabled};
930
931
  `:null}
931
- `},8510:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(7068),t)},7068:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RawInput=void 0;const o=r(n(7518));t.RawInput=o.default.input``,t.RawInput.displayName="RawInput"},3119:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(799),t)},799:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TextArea=void 0;const o=n(5893),i=n(6689),a=r(n(7518)),l=n(9507),s=n(9507),c=n(9507),u=n(1335),f=n(1944);t.TextArea=(0,i.forwardRef)(((e,t)=>(0,o.jsx)(p,Object.assign({flexDirection:"column",alignItems:"flex-start"},{children:(0,o.jsxs)(d,{children:[!!e.label&&(0,o.jsx)(f.Label,{text:e.label,htmlFor:e.name}),(0,o.jsx)(h,Object.assign({ref:t},e,{onChange:e.onChange}))]})})))),t.TextArea.displayName="TextArea";const d=(0,a.default)(u.Box)`
932
+ `},8510:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(7068),t)},7068:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RawInput=void 0;const o=r(n(7518));t.RawInput=o.default.input``,t.RawInput.displayName="RawInput"},3119:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(799),t)},799:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TextArea=void 0;const o=n(5893),i=n(6689),a=r(n(7518)),l=n(9507),s=n(9507),c=n(9507),u=n(1335),f=n(1944);t.TextArea=(0,i.forwardRef)(((e,t)=>(0,o.jsx)(p,Object.assign({flexDirection:"column",alignItems:"flex-start"},{children:(0,o.jsxs)(d,{children:[!!e.label&&(0,o.jsx)(f.Label,{text:e.label,htmlFor:e.name,helperText:e.helperText}),(0,o.jsx)(h,Object.assign({ref:t},e,{onChange:e.onChange}))]})})))),t.TextArea.displayName="TextArea";const d=(0,a.default)(u.Box)`
932
933
  align-items: flex-start;
933
934
  flex-direction: column;
934
935
  justify-content: flex-start;
@@ -1203,5 +1204,5 @@
1203
1204
  font-size: ${({theme:e,size:t="base"})=>e.fontSize[t]};
1204
1205
  font-weight: ${({theme:e,weight:t="normal"})=>e.fontWeight[t]};
1205
1206
  line-height: ${({theme:e})=>e.lineHeight.text};
1206
- `,t.Text.displayName="Text"},3190:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useColorScheme=t.ColorScheme=void 0;const r=n(6689);t.ColorScheme={dark:"dark",light:"light",system:"system"};const o="(prefers-color-scheme: dark)";t.useColorScheme=({requestedScheme:e,fallbackScheme:n=t.ColorScheme.light})=>{const[i,a]=(0,r.useState)(n),l=e=>a(e.matches?"dark":"light");return(0,r.useEffect)((()=>{if("light"===e||"dark"===e)return void a(e);const t=window.matchMedia(o);return a(t.matches?"dark":"light"),t.addEventListener("change",l),()=>t.removeEventListener("change",l)}),[e,i,o]),i}},347:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useDropdownKeyboardNavigation=void 0;const r=n(6689);t.useDropdownKeyboardNavigation=(e,t,n,o,i)=>{const[a,l]=(0,r.useState)(0),[s,c]=(0,r.useState)("");let u;if((0,r.useEffect)((()=>{if(t&&!n){const n=e.flat().findIndex((e=>e.value===t.value));n>=0&&l(n)}}),[e,t,n]),(0,r.useEffect)((()=>{n||c("")}),[n]),(0,r.useEffect)((()=>{if(s){const t=e.flat().findIndex((e=>e.title.toLowerCase().startsWith(s.toLowerCase())));t>=0&&l(t)}}),[e,s]),e[0].length>0){const[t,n]=[Math.floor(a/e[0].length),a%e[0].length];u=e[t][n]}return(0,r.useEffect)((()=>{const e=setTimeout((()=>{c("")}),500);return()=>clearTimeout(e)}),[s]),{focusedOption:u,handleKeyDown:t=>{switch(t.code){case"ArrowUp":t.preventDefault(),a>0&&l(a-1);break;case"ArrowDown":t.preventDefault(),a<e.flat().length-1&&l(a+1);break;case"Enter":case"Space":t.preventDefault(),n?((null==u?void 0:u.overrideOnClick)?u.overrideOnClick():i(null!=u?u:e[0][0]),o()):o();break;case"Escape":t.preventDefault(),o(!1);break;default:/^[a-z0-9]$/i.test(t.key)&&c((e=>e+t.key))}}}}},4481:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useLayoutMediaQuery=t.useMediaQuery=void 0;const r=n(6689),o=e=>t=>{const[n,o]=(0,r.useState)(!1);return e((()=>{const e=window.matchMedia(t);if(e){e.matches!==n&&o(e.matches);const t=()=>o(e.matches),r=()=>e.removeEventListener("change",t);return e.addEventListener("change",t),r}}),[n,t]),n};t.useMediaQuery=o(r.useEffect),t.useLayoutMediaQuery=o(r.useLayoutEffect)},2776:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.usePrevious=void 0;const r=n(6689);t.usePrevious=e=>{const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e}),[e]),t.current}},7088:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useTheme=void 0;const r=n(6689),o=n(4266),i=n(3190),a=n(9507),l={[i.ColorScheme.dark]:o.OpenFinDarkTheme,[i.ColorScheme.light]:o.OpenFinLightTheme};t.useTheme=({themes:e,scheme:t,config:n})=>{const o=(0,i.useColorScheme)({requestedScheme:t}),s=(0,r.useMemo)((()=>void 0===e?l[o]:(0,a.createTheme)(Object.assign(Object.assign({},l[o].palette),e[o].palette),o)),[e,o]);return n?Object.assign(Object.assign({},s),{_config:Object.assign(Object.assign({},s._config),n)}):s}},341:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(4130),t),o(n(7401),t),o(n(4925),t),o(n(2609),t),o(n(3136),t),o(n(9734),t),o(n(6026),t),o(n(9634),t),o(n(144),t),o(n(9239),t),o(n(8878),t),o(n(8510),t),o(n(8951),t),o(n(1978),t),o(n(8051),t),o(n(4169),t),o(n(3641),t),o(n(5215),t),o(n(9654),t),o(n(3119),t),o(n(1335),t),o(n(5377),t),o(n(1069),t),o(n(9507),t),o(n(3188),t),o(n(7063),t),o(n(7769),t),o(n(3190),t),o(n(4481),t),o(n(2776),t),o(n(347),t),o(n(4991),t),o(n(8832),t),o(n(7030),t)},8832:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.generateColorFromString=void 0,t.generateColorFromString=function(e="",t=70,n=50){let r=0;for(let t=0;t<e.length;t++)r=e.charCodeAt(t)+((r<<5)-r),r&=r;return`hsl(${r%360}, ${t}%, ${n}%)`}},4991:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.whenFin=void 0,t.whenFin=function(e,t){const n="undefined"!=typeof fin?e:t;return"function"==typeof n?n():n}},655:(e,t,n)=>{n.r(t),n.d(t,{__assign:()=>i,__asyncDelegator:()=>L,__asyncGenerator:()=>O,__asyncValues:()=>E,__await:()=>_,__awaiter:()=>h,__classPrivateFieldGet:()=>R,__classPrivateFieldIn:()=>I,__classPrivateFieldSet:()=>P,__createBinding:()=>g,__decorate:()=>l,__esDecorate:()=>c,__exportStar:()=>C,__extends:()=>o,__generator:()=>v,__importDefault:()=>k,__importStar:()=>j,__makeTemplateObject:()=>S,__metadata:()=>p,__param:()=>s,__propKey:()=>f,__read:()=>y,__rest:()=>a,__runInitializers:()=>u,__setFunctionName:()=>d,__spread:()=>w,__spreadArray:()=>x,__spreadArrays:()=>b,__values:()=>m});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function l(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function s(e,t){return function(n,r){t(n,r,e)}}function c(e,t,n,r,o,i){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var l,s=r.kind,c="getter"===s?"get":"setter"===s?"set":"value",u=!t&&e?r.static?e:e.prototype:null,f=t||(u?Object.getOwnPropertyDescriptor(u,r.name):{}),d=!1,p=n.length-1;p>=0;p--){var h={};for(var v in r)h[v]="access"===v?{}:r[v];for(var v in r.access)h.access[v]=r.access[v];h.addInitializer=function(e){if(d)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var g=(0,n[p])("accessor"===s?{get:f.get,set:f.set}:f[c],h);if("accessor"===s){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(l=a(g.get))&&(f.get=l),(l=a(g.set))&&(f.set=l),(l=a(g.init))&&o.push(l)}else(l=a(g))&&("field"===s?o.push(l):f[c]=l)}u&&Object.defineProperty(u,r.name,f),d=!0}function u(e,t,n){for(var r=arguments.length>2,o=0;o<t.length;o++)n=r?t[o].call(e,n):t[o].call(e);return r?n:void 0}function f(e){return"symbol"==typeof e?e:"".concat(e)}function d(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function h(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))}function v(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}}var g=Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function C(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||g(t,e,n)}function m(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function w(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e}function b(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,l=i.length;a<l;a++,o++)r[o]=i[a];return r}function x(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function _(e){return this instanceof _?(this.v=e,this):new _(e)}function O(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||l(e,t)}))})}function l(e,t){try{(n=o[e](t)).value instanceof _?Promise.resolve(n.value.v).then(s,c):u(i[0][2],n)}catch(e){u(i[0][3],e)}var n}function s(e){l("next",e)}function c(e){l("throw",e)}function u(e,t){e(t),i.shift(),i.length&&l(i[0][0],i[0][1])}}function L(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:_(e[r](t)),done:!1}:o?o(t):t}:o}}function E(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=m(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}function S(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var M=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function j(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&g(t,e,n);return M(t,e),t}function k(e){return e&&e.__esModule?e:{default:e}}function R(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function P(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}function I(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}},6689:e=>{e.exports=n(378)},7518:e=>{e.exports=n(921)},8207:function(e){e.exports=function(){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var t=/^\s+/,n=/\s+$/;function r(o,i){if(i=i||{},(o=o||"")instanceof r)return o;if(!(this instanceof r))return new r(o,i);var a=function(r){var o,i,a,l={r:0,g:0,b:0},s=1,c=null,u=null,f=null,d=!1,p=!1;return"string"==typeof r&&(r=function(e){e=e.replace(t,"").replace(n,"").toLowerCase();var r,o=!1;if(w[e])e=w[e],o=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(r=I.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=I.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=I.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=I.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=I.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=I.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=I.hex8.exec(e))?{r:L(r[1]),g:L(r[2]),b:L(r[3]),a:j(r[4]),format:o?"name":"hex8"}:(r=I.hex6.exec(e))?{r:L(r[1]),g:L(r[2]),b:L(r[3]),format:o?"name":"hex"}:(r=I.hex4.exec(e))?{r:L(r[1]+""+r[1]),g:L(r[2]+""+r[2]),b:L(r[3]+""+r[3]),a:j(r[4]+""+r[4]),format:o?"name":"hex8"}:!!(r=I.hex3.exec(e))&&{r:L(r[1]+""+r[1]),g:L(r[2]+""+r[2]),b:L(r[3]+""+r[3]),format:o?"name":"hex"}}(r)),"object"==e(r)&&(A(r.r)&&A(r.g)&&A(r.b)?(o=r.r,i=r.g,a=r.b,l={r:255*_(o,255),g:255*_(i,255),b:255*_(a,255)},d=!0,p="%"===String(r.r).substr(-1)?"prgb":"rgb"):A(r.h)&&A(r.s)&&A(r.v)?(c=S(r.s),u=S(r.v),l=function(e,t,n){e=6*_(e,360),t=_(t,100),n=_(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),l=n*(1-(1-o)*t),s=r%6;return{r:255*[n,a,i,i,l,n][s],g:255*[l,n,n,a,i,i][s],b:255*[i,i,l,n,n,a][s]}}(r.h,c,u),d=!0,p="hsv"):A(r.h)&&A(r.s)&&A(r.l)&&(c=S(r.s),f=S(r.l),l=function(e,t,n){var r,o,i;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=_(e,360),t=_(t,100),n=_(n,100),0===t)r=o=i=n;else{var l=n<.5?n*(1+t):n+t-n*t,s=2*n-l;r=a(s,l,e+1/3),o=a(s,l,e),i=a(s,l,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(r.h,c,f),d=!0,p="hsl"),r.hasOwnProperty("a")&&(s=r.a)),s=x(s),{ok:d,format:r.format||p,r:Math.min(255,Math.max(l.r,0)),g:Math.min(255,Math.max(l.g,0)),b:Math.min(255,Math.max(l.b,0)),a:s}}(o);this._originalInput=o,this._r=a.r,this._g=a.g,this._b=a.b,this._a=a.a,this._roundA=Math.round(100*this._a)/100,this._format=i.format||a.format,this._gradientType=i.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=a.ok}function o(e,t,n){e=_(e,255),t=_(t,255),n=_(n,255);var r,o,i=Math.max(e,t,n),a=Math.min(e,t,n),l=(i+a)/2;if(i==a)r=o=0;else{var s=i-a;switch(o=l>.5?s/(2-i-a):s/(i+a),i){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:o,l}}function i(e,t,n){e=_(e,255),t=_(t,255),n=_(n,255);var r,o,i=Math.max(e,t,n),a=Math.min(e,t,n),l=i,s=i-a;if(o=0===i?0:s/i,i==a)r=0;else{switch(i){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:o,v:l}}function a(e,t,n,r){var o=[E(Math.round(e).toString(16)),E(Math.round(t).toString(16)),E(Math.round(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function l(e,t,n,r){return[E(M(r)),E(Math.round(e).toString(16)),E(Math.round(t).toString(16)),E(Math.round(n).toString(16))].join("")}function s(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.s-=t/100,n.s=O(n.s),r(n)}function c(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.s+=t/100,n.s=O(n.s),r(n)}function u(e){return r(e).desaturate(100)}function f(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.l+=t/100,n.l=O(n.l),r(n)}function d(e,t){t=0===t?0:t||10;var n=r(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),r(n)}function p(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.l-=t/100,n.l=O(n.l),r(n)}function h(e,t){var n=r(e).toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,r(n)}function v(e){var t=r(e).toHsl();return t.h=(t.h+180)%360,r(t)}function g(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=r(e).toHsl(),o=[r(e)],i=360/t,a=1;a<t;a++)o.push(r({h:(n.h+a*i)%360,s:n.s,l:n.l}));return o}function C(e){var t=r(e).toHsl(),n=t.h;return[r(e),r({h:(n+72)%360,s:t.s,l:t.l}),r({h:(n+216)%360,s:t.s,l:t.l})]}function m(e,t,n){t=t||6,n=n||30;var o=r(e).toHsl(),i=360/n,a=[r(e)];for(o.h=(o.h-(i*t>>1)+720)%360;--t;)o.h=(o.h+i)%360,a.push(r(o));return a}function y(e,t){t=t||6;for(var n=r(e).toHsv(),o=n.h,i=n.s,a=n.v,l=[],s=1/t;t--;)l.push(r({h:o,s:i,v:a})),a=(a+s)%1;return l}r.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=x(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=i(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=i(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=o(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=o(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return a(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var i=[E(Math.round(e).toString(16)),E(Math.round(t).toString(16)),E(Math.round(n).toString(16)),E(M(r))];return o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*_(this._r,255))+"%",g:Math.round(100*_(this._g,255))+"%",b:Math.round(100*_(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*_(this._r,255))+"%, "+Math.round(100*_(this._g,255))+"%, "+Math.round(100*_(this._b,255))+"%)":"rgba("+Math.round(100*_(this._r,255))+"%, "+Math.round(100*_(this._g,255))+"%, "+Math.round(100*_(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(b[a(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+l(this._r,this._g,this._b,this._a),n=t,o=this._gradientType?"GradientType = 1, ":"";if(e){var i=r(e);n="#"+l(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return r(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(f,arguments)},brighten:function(){return this._applyModification(d,arguments)},darken:function(){return this._applyModification(p,arguments)},desaturate:function(){return this._applyModification(s,arguments)},saturate:function(){return this._applyModification(c,arguments)},greyscale:function(){return this._applyModification(u,arguments)},spin:function(){return this._applyModification(h,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(m,arguments)},complement:function(){return this._applyCombination(v,arguments)},monochromatic:function(){return this._applyCombination(y,arguments)},splitcomplement:function(){return this._applyCombination(C,arguments)},triad:function(){return this._applyCombination(g,[3])},tetrad:function(){return this._applyCombination(g,[4])}},r.fromRatio=function(t,n){if("object"==e(t)){var o={};for(var i in t)t.hasOwnProperty(i)&&(o[i]="a"===i?t[i]:S(t[i]));t=o}return r(t,n)},r.equals=function(e,t){return!(!e||!t)&&r(e).toRgbString()==r(t).toRgbString()},r.random=function(){return r.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},r.mix=function(e,t,n){n=0===n?0:n||50;var o=r(e).toRgb(),i=r(t).toRgb(),a=n/100;return r({r:(i.r-o.r)*a+o.r,g:(i.g-o.g)*a+o.g,b:(i.b-o.b)*a+o.b,a:(i.a-o.a)*a+o.a})},r.readability=function(e,t){var n=r(e),o=r(t);return(Math.max(n.getLuminance(),o.getLuminance())+.05)/(Math.min(n.getLuminance(),o.getLuminance())+.05)},r.isReadable=function(e,t,n){var o,i,a,l,s,c=r.readability(e,t);switch(i=!1,(a=n,"AA"!==(l=((a=a||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==l&&(l="AA"),"small"!==(s=(a.size||"small").toLowerCase())&&"large"!==s&&(s="small"),o={level:l,size:s}).level+o.size){case"AAsmall":case"AAAlarge":i=c>=4.5;break;case"AAlarge":i=c>=3;break;case"AAAsmall":i=c>=7}return i},r.mostReadable=function(e,t,n){var o,i,a,l,s=null,c=0;i=(n=n||{}).includeFallbackColors,a=n.level,l=n.size;for(var u=0;u<t.length;u++)(o=r.readability(e,t[u]))>c&&(c=o,s=r(t[u]));return r.isReadable(e,s,{level:a,size:l})||!i?s:(n.includeFallbackColors=!1,r.mostReadable(e,["#fff","#000"],n))};var w=r.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},b=r.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(w);function x(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function _(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function O(e){return Math.min(1,Math.max(0,e))}function L(e){return parseInt(e,16)}function E(e){return 1==e.length?"0"+e:""+e}function S(e){return e<=1&&(e=100*e+"%"),e}function M(e){return Math.round(255*parseFloat(e)).toString(16)}function j(e){return L(e)/255}var k,R,P,I=(R="[\\s|\\(]+("+(k="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+k+")[,|\\s]+("+k+")\\s*\\)?",P="[\\s|\\(]+("+k+")[,|\\s]+("+k+")[,|\\s]+("+k+")[,|\\s]+("+k+")\\s*\\)?",{CSS_UNIT:new RegExp(k),rgb:new RegExp("rgb"+R),rgba:new RegExp("rgba"+P),hsl:new RegExp("hsl"+R),hsla:new RegExp("hsla"+P),hsv:new RegExp("hsv"+R),hsva:new RegExp("hsva"+P),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function A(e){return!!I.CSS_UNIT.exec(e)}return r}()}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={id:e,exports:{}};return r[e].call(n.exports,n,n.exports,i),n.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a=i(341),l=t;for(var s in a)l[s]=a[s];a.__esModule&&Object.defineProperty(l,"__esModule",{value:!0})},198:(e,t,n)=>{var r=NaN,o="[object Symbol]",i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt,u="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,f="object"==typeof self&&self&&self.Object===Object&&self,d=u||f||Function("return this")(),p=Object.prototype.toString,h=Math.max,v=Math.min,g=function(){return d.Date.now()};function C(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&p.call(e)==o}(e))return r;if(C(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=C(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=l.test(e);return n||s.test(e)?c(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,n){var r,o,i,a,l,s,c=0,u=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function y(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-c>=i}function w(){var e=g();if(y(e))return b(e);l=setTimeout(w,function(e){var n=t-(e-s);return f?v(n,i-(e-c)):n}(e))}function b(e){return l=void 0,d&&r?p(e):(r=o=void 0,a)}function x(){var e=g(),n=y(e);if(r=arguments,o=this,s=e,n){if(void 0===l)return function(e){return c=e,l=setTimeout(w,t),u?p(e):a}(s);if(f)return l=setTimeout(w,t),p(s)}return void 0===l&&(l=setTimeout(w,t)),a}return t=m(t)||0,C(n)&&(u=!!n.leading,i=(f="maxWait"in n)?h(m(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),x.cancel=function(){void 0!==l&&clearTimeout(l),c=0,r=s=o=l=void 0},x.flush=function(){return void 0===l?a:b(g())},x}},525:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var c in i=Object(arguments[s]))n.call(i,c)&&(l[c]=i[c]);if(t){a=t(i);for(var u=0;u<a.length;u++)r.call(i,a[u])&&(l[a[u]]=i[a[u]])}}return l}},702:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,C=n?Symbol.for("react.block"):60121,m=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case f:case i:case l:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case d:case g:case v:case s:return e;default:return t}}case o:return t}}}function x(e){return b(e)===f}t.ForwardRef=d,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===l||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===v||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===m||e.$$typeof===y||e.$$typeof===w||e.$$typeof===C)}},185:(e,t,n)=>{"use strict";e.exports=n(702)},535:(e,t,n)=>{"use strict";var r=n(525),o=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,l=60110,s=60112;t.Suspense=60113;var c=60115,u=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;o=f("react.element"),i=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=f("react.provider"),l=f("react.context"),s=f("react.forward_ref"),t.Suspense=f("react.suspense"),c=f("react.memo"),u=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v={};function g(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}function C(){}function m(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},C.prototype=g.prototype;var y=m.prototype=new C;y.constructor=m,r(y,g.prototype),y.isPureReactComponent=!0;var w={current:null},b=Object.prototype.hasOwnProperty,x={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,n){var r,i={},a=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)b.call(t,r)&&!x.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===i[r]&&(i[r]=s[r]);return{$$typeof:o,type:e,key:a,ref:l,props:i,_owner:w.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var L=/\/+/g;function E(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function S(e,t,n,r,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case o:case i:s=!0}}if(s)return a=a(s=e),e=""===r?"."+E(s,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(L,"$&/")+"/"),S(a,t,n,"",(function(e){return e}))):null!=a&&(O(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(L,"$&/")+"/")+e)),t.push(a)),1;if(s=0,r=""===r?".":r+":",Array.isArray(e))for(var c=0;c<e.length;c++){var u=r+E(l=e[c],c);s+=S(l,t,n,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(l=e.next()).done;)s+=S(l=l.value,t,n,u=r+E(l,c++),a);else if("object"===l)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function M(e,t,n){if(null==e)return e;var r=[],o=0;return S(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function j(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var k={current:null};function R(){var e=k.current;if(null===e)throw Error(p(321));return e}var P={ReactCurrentDispatcher:k,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:M,forEach:function(e,t,n){M(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return M(e,(function(){t++})),t},toArray:function(e){return M(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error(p(143));return e}},t.Component=g,t.PureComponent=m,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var i=r({},e.props),a=e.key,l=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,s=w.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)b.call(t,u)&&!x.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){c=Array(u);for(var f=0;f<u;f++)c[f]=arguments[f+2];i.children=c}return{$$typeof:o,type:e.type,key:a,ref:l,props:i,_owner:s}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:l,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:j}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return R().useCallback(e,t)},t.useContext=function(e,t){return R().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return R().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return R().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return R().useLayoutEffect(e,t)},t.useMemo=function(e,t){return R().useMemo(e,t)},t.useReducer=function(e,t,n){return R().useReducer(e,t,n)},t.useRef=function(e){return R().useRef(e)},t.useState=function(e){return R().useState(e)},t.version="17.0.2"},378:(e,t,n)=>{"use strict";e.exports=n(535)},921:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ServerStyleSheet:()=>pt,StyleSheetConsumer:()=>vt,StyleSheetContext:()=>ht,StyleSheetManager:()=>gt,ThemeConsumer:()=>ft,ThemeContext:()=>ut,ThemeProvider:()=>dt,__DO_NOT_USE_OR_YOU_WILL_BE_HAUNTED_BY_SPOOKY_GHOSTS:()=>Et,createGlobalStyle:()=>xt,css:()=>Ve,default:()=>St,isStyledComponent:()=>F,keyframes:()=>Ot,withTheme:()=>Lt});var r=n(946),o=n.n(r),i=n(246),a=n.n(i),l=n(378);const s={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var c=n(185),u=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function f(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||u(r)&&u(o)))return!1;var r,o;return!0}const d=function(e,t){var n;void 0===t&&(t=f);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}};var p=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;const h=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return p.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));function v(e){return Object.prototype.toString.call(e).slice(8,-1)}function g(e){return"Undefined"===v(e)}function C(e){return"Null"===v(e)}function m(e){return"Object"===v(e)&&(e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype)}function y(e){return"Array"===v(e)}function w(e){return"Symbol"===v(e)}var b,x,_,O,L;b=C,x=g;function E(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,l=i.length;a<l;a++,o++)r[o]=i[a];return r}function S(e,t,n,r){var o=r.propertyIsEnumerable(t)?"enumerable":"nonenumerable";"enumerable"===o&&(e[t]=n),"nonenumerable"===o&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function M(e,t,n){if(!m(t))return n&&y(n)&&n.forEach((function(n){t=n(e,t)})),t;var r={};m(e)&&(r=E(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)).reduce((function(n,r){var o=e[r];return(!w(r)&&!Object.getOwnPropertyNames(t).includes(r)||w(r)&&!Object.getOwnPropertySymbols(t).includes(r))&&S(n,r,o,e),n}),{}));return E(Object.getOwnPropertyNames(t),Object.getOwnPropertySymbols(t)).reduce((function(r,o){var i=t[o],a=m(e)?e[o]:void 0;return n&&y(n)&&n.forEach((function(e){i=e(a,i)})),void 0!==a&&m(i)&&(i=M(a,i,n)),S(r,o,i,t),r}),r)}const j=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=null,o=e;return m(e)&&e.extensions&&1===Object.keys(e).length&&(o={},r=e.extensions),t.reduce((function(e,t){return M(e,t,r)}),o)};var k=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},I=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},H=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},V=function(e){return"object"===(void 0===e?"undefined":R(e))&&e.constructor===Object},B=Object.freeze([]),D=Object.freeze({});function Z(e){return"function"==typeof e}function $(e){return e.displayName||e.name||"Component"}function F(e){return e&&"string"==typeof e.styledComponentId}var N="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",U="data-styled-version",W="data-styled-streamed",z="undefined"!=typeof window&&"HTMLElement"in window,G="boolean"==typeof SC_DISABLE_SPEEDY&&SC_DISABLE_SPEEDY||"undefined"!=typeof process&&(process.env.REACT_APP_SC_DISABLE_SPEEDY||process.env.SC_DISABLE_SPEEDY)||!1,q={};var Y=function(e){function t(n){P(this,t);for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];var a=H(this,e.call(this,"An error occurred. See https://github.com/styled-components/styled-components/blob/master/packages/styled-components/src/utils/errors.md#"+n+" for more information."+(o.length>0?" Additional arguments: "+o.join(", "):"")));return H(a)}return T(t,e),t}(Error),K=/^[^\S\n]*?\/\* sc-component-id:\s*(\S+)\s+\*\//gm,X=function(e){var t=""+(e||""),n=[];return t.replace(K,(function(e,t,r){return n.push({componentId:t,matchIndex:r}),e})),n.map((function(e,r){var o=e.componentId,i=e.matchIndex,a=n[r+1];return{componentId:o,cssFromDOM:a?t.slice(i,a.matchIndex):t.slice(i)}}))},J=/^\s*\/\/.*$/gm,Q=new(o())({global:!1,cascade:!0,keyframe:!1,prefix:!1,compress:!1,semicolon:!0}),ee=new(o())({global:!1,cascade:!0,keyframe:!1,prefix:!0,compress:!1,semicolon:!1}),te=[],ne=function(e){if(-2===e){var t=te;return te=[],t}},re=a()((function(e){te.push(e)})),oe=void 0,ie=void 0,ae=void 0,le=function(e,t,n){return t>0&&-1!==n.slice(0,t).indexOf(ie)&&n.slice(t-ie.length,t)!==ie?"."+oe:e};ee.use([function(e,t,n){2===e&&n.length&&n[0].lastIndexOf(ie)>0&&(n[0]=n[0].replace(ae,le))},re,ne]),Q.use([re,ne]);var se=function(e){return Q("",e)};function ce(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"&",o=e.join("").replace(J,""),i=t&&n?n+" "+t+" { "+o+" }":o;return oe=r,ie=t,ae=new RegExp("\\"+ie+"\\b","g"),ee(n||!t?"":t,i)}var ue=function(){return n.nc},fe=function(e,t,n){n&&((e[t]||(e[t]=Object.create(null)))[n]=!0)},de=function(e,t){e[t]=Object.create(null)},pe=function(e){return function(t,n){return void 0!==e[t]&&e[t][n]}},he=function(e){var t="";for(var n in e)t+=Object.keys(e[n]).join(" ")+" ";return t.trim()},ve=function(e){if(e.sheet)return e.sheet;for(var t=e.ownerDocument.styleSheets.length,n=0;n<t;n+=1){var r=e.ownerDocument.styleSheets[n];if(r.ownerNode===e)return r}throw new Y(10)},ge=function(e,t,n){if(!t)return!1;var r=e.cssRules.length;try{e.insertRule(t,n<=r?n:r)}catch(e){return!1}return!0},Ce=function(e){return"\n/* sc-component-id: "+e+" */\n"},me=function(e,t){for(var n=0,r=0;r<=t;r+=1)n+=e[r];return n},ye=function(e,t){return function(n){var r=ue();return"<style "+[r&&'nonce="'+r+'"',N+'="'+he(t)+'"',U+'="4.4.1"',n].filter(Boolean).join(" ")+">"+e()+"</style>"}},we=function(e,t){return function(){var n,r=((n={})[N]=he(t),n[U]="4.4.1",n),o=ue();return o&&(r.nonce=o),l.createElement("style",A({},r,{dangerouslySetInnerHTML:{__html:e()}}))}},be=function(e){return function(){return Object.keys(e)}},xe=function(e,t){return e.createTextNode(Ce(t))},_e=function e(t,n){var r=void 0===t?Object.create(null):t,o=void 0===n?Object.create(null):n,i=function(e){var t=o[e];return void 0!==t?t:o[e]=[""]},a=function(){var e="";for(var t in o){var n=o[t][0];n&&(e+=Ce(t)+n)}return e},l={clone:function(){var t=function(e){var t=Object.create(null);for(var n in e)t[n]=A({},e[n]);return t}(r),n=Object.create(null);for(var i in o)n[i]=[o[i][0]];return e(t,n)},css:a,getIds:be(o),hasNameForId:pe(r),insertMarker:i,insertRules:function(e,t,n){i(e)[0]+=t.join(" "),fe(r,e,n)},removeRules:function(e){var t=o[e];void 0!==t&&(t[0]="",de(r,e))},sealed:!1,styleTag:null,toElement:we(a,r),toHTML:ye(a,r)};return l},Oe=function(e,t,n,r,o){if(z&&!n){var i=function(e,t,n){var r=document;e?r=e.ownerDocument:t&&(r=t.ownerDocument);var o=r.createElement("style");o.setAttribute(N,""),o.setAttribute(U,"4.4.1");var i=ue();if(i&&o.setAttribute("nonce",i),o.appendChild(r.createTextNode("")),e&&!t)e.appendChild(o);else{if(!t||!e||!t.parentNode)throw new Y(6);t.parentNode.insertBefore(o,n?t:t.nextSibling)}return o}(e,t,r);return G?function(e,t){var n=Object.create(null),r=Object.create(null),o=void 0!==t,i=!1,a=function(t){var o=r[t];return void 0!==o?o:(r[t]=xe(e.ownerDocument,t),e.appendChild(r[t]),n[t]=Object.create(null),r[t])},l=function(){var e="";for(var t in r)e+=r[t].data;return e};return{clone:function(){throw new Y(5)},css:l,getIds:be(r),hasNameForId:pe(n),insertMarker:a,insertRules:function(e,r,l){for(var s=a(e),c=[],u=r.length,f=0;f<u;f+=1){var d=r[f],p=o;if(p&&-1!==d.indexOf("@import"))c.push(d);else{p=!1;var h=f===u-1?"":" ";s.appendData(""+d+h)}}fe(n,e,l),o&&c.length>0&&(i=!0,t().insertRules(e+"-import",c))},removeRules:function(a){var l=r[a];if(void 0!==l){var s=xe(e.ownerDocument,a);e.replaceChild(s,l),r[a]=s,de(n,a),o&&i&&t().removeRules(a+"-import")}},sealed:!1,styleTag:e,toElement:we(l,n),toHTML:ye(l,n)}}(i,o):function(e,t){var n=Object.create(null),r=Object.create(null),o=[],i=void 0!==t,a=!1,l=function(e){var t=r[e];return void 0!==t?t:(r[e]=o.length,o.push(0),de(n,e),r[e])},s=function(){var t=ve(e).cssRules,n="";for(var i in r){n+=Ce(i);for(var a=r[i],l=me(o,a),s=l-o[a];s<l;s+=1){var c=t[s];void 0!==c&&(n+=c.cssText)}}return n};return{clone:function(){throw new Y(5)},css:s,getIds:be(r),hasNameForId:pe(n),insertMarker:l,insertRules:function(r,s,c){for(var u=l(r),f=ve(e),d=me(o,u),p=0,h=[],v=s.length,g=0;g<v;g+=1){var C=s[g],m=i;m&&-1!==C.indexOf("@import")?h.push(C):ge(f,C,d+p)&&(m=!1,p+=1)}i&&h.length>0&&(a=!0,t().insertRules(r+"-import",h)),o[u]+=p,fe(n,r,c)},removeRules:function(l){var s=r[l];if(void 0!==s&&!1!==e.isConnected){var c=o[s];!function(e,t,n){for(var r=t-n,o=t;o>r;o-=1)e.deleteRule(o)}(ve(e),me(o,s)-1,c),o[s]=0,de(n,l),i&&a&&t().removeRules(l+"-import")}},sealed:!1,styleTag:e,toElement:we(s,n),toHTML:ye(s,n)}}(i,o)}return _e()},Le=/\s+/,Ee=void 0;Ee=z?G?40:1e3:-1;var Se=0,Me=void 0,je=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:z?document.head:null,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];P(this,e),this.getImportRuleTag=function(){var e=t.importRuleTag;if(void 0!==e)return e;var n=t.tags[0];return t.importRuleTag=Oe(t.target,n?n.styleTag:null,t.forceServer,!0)},Se+=1,this.id=Se,this.forceServer=r,this.target=r?null:n,this.tagMap={},this.deferred={},this.rehydratedNames={},this.ignoreRehydratedNames={},this.tags=[],this.capacity=1,this.clones=[]}return e.prototype.rehydrate=function(){if(!z||this.forceServer)return this;var e=[],t=[],n=!1,r=document.querySelectorAll("style["+N+"]["+U+'="4.4.1"]'),o=r.length;if(!o)return this;for(var i=0;i<o;i+=1){var a=r[i];n||(n=!!a.getAttribute(W));for(var l,s=(a.getAttribute(N)||"").trim().split(Le),c=s.length,u=0;u<c;u+=1)l=s[u],this.rehydratedNames[l]=!0;t.push.apply(t,X(a.textContent)),e.push(a)}var f=t.length;if(!f)return this;var d=this.makeTag(null);!function(e,t,n){for(var r=0,o=n.length;r<o;r+=1){var i=n[r],a=i.componentId,l=i.cssFromDOM,s=se(l);e.insertRules(a,s)}for(var c=0,u=t.length;c<u;c+=1){var f=t[c];f.parentNode&&f.parentNode.removeChild(f)}}(d,e,t),this.capacity=Math.max(1,Ee-f),this.tags.push(d);for(var p=0;p<f;p+=1)this.tagMap[t[p].componentId]=d;return this},e.reset=function(){Me=new e(void 0,arguments.length>0&&void 0!==arguments[0]&&arguments[0]).rehydrate()},e.prototype.clone=function(){var t=new e(this.target,this.forceServer);return this.clones.push(t),t.tags=this.tags.map((function(e){for(var n=e.getIds(),r=e.clone(),o=0;o<n.length;o+=1)t.tagMap[n[o]]=r;return r})),t.rehydratedNames=A({},this.rehydratedNames),t.deferred=A({},this.deferred),t},e.prototype.sealAllTags=function(){this.capacity=1,this.tags.forEach((function(e){e.sealed=!0}))},e.prototype.makeTag=function(e){var t=e?e.styleTag:null;return Oe(this.target,t,this.forceServer,!1,this.getImportRuleTag)},e.prototype.getTagForId=function(e){var t=this.tagMap[e];if(void 0!==t&&!t.sealed)return t;var n=this.tags[this.tags.length-1];return this.capacity-=1,0===this.capacity&&(this.capacity=Ee,n=this.makeTag(n),this.tags.push(n)),this.tagMap[e]=n},e.prototype.hasId=function(e){return void 0!==this.tagMap[e]},e.prototype.hasNameForId=function(e,t){if(void 0===this.ignoreRehydratedNames[e]&&this.rehydratedNames[t])return!0;var n=this.tagMap[e];return void 0!==n&&n.hasNameForId(e,t)},e.prototype.deferredInject=function(e,t){if(void 0===this.tagMap[e]){for(var n=this.clones,r=0;r<n.length;r+=1)n[r].deferredInject(e,t);this.getTagForId(e).insertMarker(e),this.deferred[e]=t}},e.prototype.inject=function(e,t,n){for(var r=this.clones,o=0;o<r.length;o+=1)r[o].inject(e,t,n);var i=this.getTagForId(e);if(void 0!==this.deferred[e]){var a=this.deferred[e].concat(t);i.insertRules(e,a,n),this.deferred[e]=void 0}else i.insertRules(e,t,n)},e.prototype.remove=function(e){var t=this.tagMap[e];if(void 0!==t){for(var n=this.clones,r=0;r<n.length;r+=1)n[r].remove(e);t.removeRules(e),this.ignoreRehydratedNames[e]=!0,this.deferred[e]=void 0}},e.prototype.toHTML=function(){return this.tags.map((function(e){return e.toHTML()})).join("")},e.prototype.toReactElements=function(){var e=this.id;return this.tags.map((function(t,n){var r="sc-"+e+"-"+n;return(0,l.cloneElement)(t.toElement(),{key:r})}))},I(e,null,[{key:"master",get:function(){return Me||(Me=(new e).rehydrate())}},{key:"instance",get:function(){return e.master}}]),e}(),ke=function(){function e(t,n){var r=this;P(this,e),this.inject=function(e){e.hasNameForId(r.id,r.name)||e.inject(r.id,r.rules,r.name)},this.toString=function(){throw new Y(12,String(r.name))},this.name=t,this.rules=n,this.id="sc-keyframes-"+t}return e.prototype.getName=function(){return this.name},e}(),Re=/([A-Z])/g,Pe=/^ms-/;function Ie(e){return e.replace(Re,"-$1").toLowerCase().replace(Pe,"-ms-")}var Ae=function(e){return null==e||!1===e||""===e},Te=function e(t,n){var r=[];return Object.keys(t).forEach((function(n){if(!Ae(t[n])){if(V(t[n]))return r.push.apply(r,e(t[n],n)),r;if(Z(t[n]))return r.push(Ie(n)+":",t[n],";"),r;r.push(Ie(n)+": "+(o=n,(null==(i=t[n])||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||o in s?String(i).trim():i+"px")+";"))}var o,i;return r})),n?[n+" {"].concat(r,["}"]):r};function He(e,t,n){if(Array.isArray(e)){for(var r,o=[],i=0,a=e.length;i<a;i+=1)null!==(r=He(e[i],t,n))&&(Array.isArray(r)?o.push.apply(o,r):o.push(r));return o}return Ae(e)?null:F(e)?"."+e.styledComponentId:Z(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t?e:He(e(t),t,n):e instanceof ke?n?(e.inject(n),e.getName()):e:V(e)?Te(e):e.toString();var l}function Ve(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Z(e)||V(e)?He(k(B,[e].concat(n))):He(k(e,n))}function Be(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:D;if(!(0,c.isValidElementType)(t))throw new Y(1,String(t));var r=function(){return e(t,n,Ve.apply(void 0,arguments))};return r.withConfig=function(r){return Be(e,t,A({},n,r))},r.attrs=function(r){return Be(e,t,A({},n,{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r}function De(e){for(var t,n=0|e.length,r=0|n,o=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++o;switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+((1540483477*(r>>>16)&65535)<<16)}return((r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16))^r>>>15)>>>0}var Ze=52,$e=function(e){return String.fromCharCode(e+(e>25?39:97))};function Fe(e){var t="",n=void 0;for(n=e;n>Ze;n=Math.floor(n/Ze))t=$e(n%Ze)+t;return $e(n%Ze)+t}function Ne(e,t){for(var n=0;n<e.length;n+=1){var r=e[n];if(Array.isArray(r)&&!Ne(r,t))return!1;if(Z(r)&&!F(r))return!1}return!t.some((function(e){return Z(e)||function(e){for(var t in e)if(Z(e[t]))return!0;return!1}(e)}))}var Ue,We=function(e){return Fe(De(e))},ze=function(){function e(t,n,r){P(this,e),this.rules=t,this.isStatic=Ne(t,n),this.componentId=r,je.master.hasId(r)||je.master.deferredInject(r,[])}return e.prototype.generateAndInjectStyles=function(e,t){var n=this.isStatic,r=this.componentId,o=this.lastClassName;if(z&&n&&"string"==typeof o&&t.hasNameForId(r,o))return o;var i=He(this.rules,e,t),a=We(this.componentId+i.join(""));return t.hasNameForId(r,a)||t.inject(this.componentId,ce(i,"."+a,void 0,r),a),this.lastClassName=a,a},e.generateName=function(e){return We(e)},e}(),Ge=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:D,r=!!n&&e.theme===n.theme;return e.theme&&!r?e.theme:t||n.theme},qe=/[[\].#*$><+~=|^:(),"'`-]+/g,Ye=/(^-|-$)/g;function Ke(e){return e.replace(qe,"-").replace(Ye,"")}function Xe(e){return"string"==typeof e&&!0}var Je={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Qe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},et=((Ue={})[c.ForwardRef]={$$typeof:!0,render:!0},Ue),tt=Object.defineProperty,nt=Object.getOwnPropertyNames,rt=Object.getOwnPropertySymbols,ot=void 0===rt?function(){return[]}:rt,it=Object.getOwnPropertyDescriptor,at=Object.getPrototypeOf,lt=Object.prototype,st=Array.prototype;function ct(e,t,n){if("string"!=typeof t){var r=at(t);r&&r!==lt&&ct(e,r,n);for(var o=st.concat(nt(t),ot(t)),i=et[e.$$typeof]||Je,a=et[t.$$typeof]||Je,l=o.length,s=void 0,c=void 0;l--;)if(c=o[l],!(Qe[c]||n&&n[c]||a&&a[c]||i&&i[c])&&(s=it(t,c)))try{tt(e,c,s)}catch(e){}return e}return e}var ut=(0,l.createContext)(),ft=ut.Consumer,dt=function(e){function t(n){P(this,t);var r=H(this,e.call(this,n));return r.getContext=d(r.getContext.bind(r)),r.renderInner=r.renderInner.bind(r),r}return T(t,e),t.prototype.render=function(){return this.props.children?l.createElement(ut.Consumer,null,this.renderInner):null},t.prototype.renderInner=function(e){var t=this.getContext(this.props.theme,e);return l.createElement(ut.Provider,{value:t},this.props.children)},t.prototype.getTheme=function(e,t){if(Z(e))return e(t);if(null===e||Array.isArray(e)||"object"!==(void 0===e?"undefined":R(e)))throw new Y(8);return A({},t,e)},t.prototype.getContext=function(e,t){return this.getTheme(e,t)},t}(l.Component),pt=function(){function e(){P(this,e),this.masterSheet=je.master,this.instance=this.masterSheet.clone(),this.sealed=!1}return e.prototype.seal=function(){if(!this.sealed){var e=this.masterSheet.clones.indexOf(this.instance);this.masterSheet.clones.splice(e,1),this.sealed=!0}},e.prototype.collectStyles=function(e){if(this.sealed)throw new Y(2);return l.createElement(gt,{sheet:this.instance},e)},e.prototype.getStyleTags=function(){return this.seal(),this.instance.toHTML()},e.prototype.getStyleElement=function(){return this.seal(),this.instance.toReactElements()},e.prototype.interleaveWithNodeStream=function(e){throw new Y(3)},e}(),ht=(0,l.createContext)(),vt=ht.Consumer,gt=function(e){function t(n){P(this,t);var r=H(this,e.call(this,n));return r.getContext=d(r.getContext),r}return T(t,e),t.prototype.getContext=function(e,t){if(e)return e;if(t)return new je(t);throw new Y(4)},t.prototype.render=function(){var e=this.props,t=e.children,n=e.sheet,r=e.target;return l.createElement(ht.Provider,{value:this.getContext(n,r)},t)},t}(l.Component),Ct={};var mt=function(e){function t(){P(this,t);var n=H(this,e.call(this));return n.attrs={},n.renderOuter=n.renderOuter.bind(n),n.renderInner=n.renderInner.bind(n),n}return T(t,e),t.prototype.render=function(){return l.createElement(vt,null,this.renderOuter)},t.prototype.renderOuter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:je.master;return this.styleSheet=e,this.props.forwardedComponent.componentStyle.isStatic?this.renderInner():l.createElement(ft,null,this.renderInner)},t.prototype.renderInner=function(e){var t=this.props.forwardedComponent,n=t.componentStyle,r=t.defaultProps,o=(t.displayName,t.foldedComponentIds),i=t.styledComponentId,a=t.target,s=void 0;s=n.isStatic?this.generateAndInjectStyles(D,this.props):this.generateAndInjectStyles(Ge(this.props,e,r)||D,this.props);var c=this.props.as||this.attrs.as||a,u=Xe(c),f={},d=A({},this.props,this.attrs),p=void 0;for(p in d)"forwardedComponent"!==p&&"as"!==p&&("forwardedRef"===p?f.ref=d[p]:"forwardedAs"===p?f.as=d[p]:u&&!h(p)||(f[p]=d[p]));return this.props.style&&this.attrs.style&&(f.style=A({},this.attrs.style,this.props.style)),f.className=Array.prototype.concat(o,i,s!==i?s:null,this.props.className,this.attrs.className).filter(Boolean).join(" "),(0,l.createElement)(c,f)},t.prototype.buildExecutionContext=function(e,t,n){var r=this,o=A({},t,{theme:e});return n.length?(this.attrs={},n.forEach((function(e){var t,n=e,i=!1,a=void 0,l=void 0;for(l in Z(n)&&(n=n(o),i=!0),n)a=n[l],i||!Z(a)||(t=a)&&t.prototype&&t.prototype.isReactComponent||F(a)||(a=a(o)),r.attrs[l]=a,o[l]=a})),o):o},t.prototype.generateAndInjectStyles=function(e,t){var n=t.forwardedComponent,r=n.attrs,o=n.componentStyle;n.warnTooManyClasses;return o.isStatic&&!r.length?o.generateAndInjectStyles(D,this.styleSheet):o.generateAndInjectStyles(this.buildExecutionContext(e,t,r),this.styleSheet)},t}(l.Component);function yt(e,t,n){var r=F(e),o=!Xe(e),i=t.displayName,a=void 0===i?function(e){return Xe(e)?"styled."+e:"Styled("+$(e)+")"}(e):i,s=t.componentId,c=void 0===s?function(e,t,n){var r="string"!=typeof t?"sc":Ke(t),o=(Ct[r]||0)+1;Ct[r]=o;var i=r+"-"+e.generateName(r+o);return n?n+"-"+i:i}(ze,t.displayName,t.parentComponentId):s,u=t.ParentComponent,f=void 0===u?mt:u,d=t.attrs,p=void 0===d?B:d,h=t.displayName&&t.componentId?Ke(t.displayName)+"-"+t.componentId:t.componentId||c,v=r&&e.attrs?Array.prototype.concat(e.attrs,p).filter(Boolean):p,g=new ze(r?e.componentStyle.rules.concat(n):n,v,h),C=void 0,m=function(e,t){return l.createElement(f,A({},e,{forwardedComponent:C,forwardedRef:t}))};return m.displayName=a,(C=l.forwardRef(m)).displayName=a,C.attrs=v,C.componentStyle=g,C.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):B,C.styledComponentId=h,C.target=r?e.target:e,C.withComponent=function(e){var r=t.componentId,o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["componentId"]),i=r&&r+"-"+(Xe(e)?e:Ke($(e)));return yt(e,A({},o,{attrs:v,componentId:i,ParentComponent:f}),n)},Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?j(e.defaultProps,t):t}}),C.toString=function(){return"."+C.styledComponentId},o&&ct(C,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,styledComponentId:!0,target:!0,withComponent:!0}),C}var wt=function(e){return Be(yt,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){wt[e]=wt(e)}));var bt=function(){function e(t,n){P(this,e),this.rules=t,this.componentId=n,this.isStatic=Ne(t,B),je.master.hasId(n)||je.master.deferredInject(n,[])}return e.prototype.createStyles=function(e,t){var n=ce(He(this.rules,e,t),"");t.inject(this.componentId,n)},e.prototype.removeStyles=function(e){var t=this.componentId;e.hasId(t)&&e.remove(t)},e.prototype.renderStyles=function(e,t){this.removeStyles(t),this.createStyles(e,t)},e}();function xt(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Ve.apply(void 0,[e].concat(n)),i="sc-global-"+De(JSON.stringify(o)),a=new bt(o,i),s=function(e){function t(n){P(this,t);var r=H(this,e.call(this,n)),o=r.constructor,i=o.globalStyle,a=o.styledComponentId;return z&&(window.scCGSHMRCache[a]=(window.scCGSHMRCache[a]||0)+1),r.state={globalStyle:i,styledComponentId:a},r}return T(t,e),t.prototype.componentWillUnmount=function(){window.scCGSHMRCache[this.state.styledComponentId]&&(window.scCGSHMRCache[this.state.styledComponentId]-=1),0===window.scCGSHMRCache[this.state.styledComponentId]&&this.state.globalStyle.removeStyles(this.styleSheet)},t.prototype.render=function(){var e=this;return l.createElement(vt,null,(function(t){e.styleSheet=t||je.master;var n=e.state.globalStyle;return n.isStatic?(n.renderStyles(q,e.styleSheet),null):l.createElement(ft,null,(function(t){var r=e.constructor.defaultProps,o=A({},e.props);return void 0!==t&&(o.theme=Ge(e.props,t,r)),n.renderStyles(o,e.styleSheet),null}))}))},t}(l.Component);return s.globalStyle=a,s.styledComponentId=i,s}z&&(window.scCGSHMRCache={});var _t=function(e){return e.replace(/\s|\\n/g,"")};function Ot(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Ve.apply(void 0,[e].concat(n)),i=Fe(De(_t(JSON.stringify(o))));return new ke(i,ce(o,i,"@keyframes"))}var Lt=function(e){var t=l.forwardRef((function(t,n){return l.createElement(ft,null,(function(r){var o=e.defaultProps,i=Ge(t,r,o);return l.createElement(e,A({},t,{theme:i,ref:n}))}))}));return ct(t,e),t.displayName="WithTheme("+$(e)+")",t},Et={StyleSheet:je};const St=wt},246:e=>{e.exports=function(){"use strict";return function(e){var t="/*|*/",n=t+"}";function r(t){if(t)try{e(t+"}")}catch(e){}}return function(o,i,a,l,s,c,u,f,d,p){switch(o){case 1:if(0===d&&64===i.charCodeAt(0))return e(i+";"),"";break;case 2:if(0===f)return i+t;break;case 3:switch(f){case 102:case 112:return e(a[0]+i),"";default:return i+(0===p?t:"")}case-2:i.split(n).forEach(r)}}}}()},946:e=>{e.exports=function e(t){"use strict";var n=/^\0+/g,r=/[\0\r\f]/g,o=/: */g,i=/zoo|gra/,a=/([,: ])(transform)/g,l=/,+\s*(?![^(]*[)])/g,s=/ +\s*(?![^(]*[)])/g,c=/ *[\0] */g,u=/,\r+?/g,f=/([\t\r\n ])*\f?&/g,d=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,p=/\W+/g,h=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,g=/:(read-only)/g,C=/\s+(?=[{\];=:>])/g,m=/([[}=:>])\s+/g,y=/(\{[^{]+?);(?=\})/g,w=/\s{2,}/g,b=/([^\(])(:+) */g,x=/[svh]\w+-[tblr]{2}/,_=/\(\s*(.*)\s*\)/g,O=/([\s\S]*?);/g,L=/-self|flex-/g,E=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,M=/([^-])(image-set\()/,j="-webkit-",k="-moz-",R="-ms-",P=59,I=125,A=123,T=40,H=41,V=91,B=93,D=10,Z=13,$=9,F=64,N=32,U=38,W=45,z=95,G=42,q=44,Y=58,K=39,X=34,J=47,Q=62,ee=43,te=126,ne=0,re=12,oe=11,ie=107,ae=109,le=115,se=112,ce=111,ue=105,fe=99,de=100,pe=112,he=1,ve=1,ge=0,Ce=1,me=1,ye=1,we=0,be=0,xe=0,_e=[],Oe=[],Le=0,Ee=null,Se=-2,Me=-1,je=0,ke=1,Re=2,Pe=3,Ie=0,Ae=1,Te="",He="",Ve="";function Be(e,t,o,i,a){for(var l,s,u=0,f=0,d=0,p=0,C=0,m=0,y=0,w=0,x=0,O=0,L=0,E=0,S=0,M=0,z=0,we=0,Oe=0,Ee=0,Se=0,Me=o.length,Ze=Me-1,ze="",Ge="",qe="",Ye="",Ke="",Xe="";z<Me;){if(y=o.charCodeAt(z),z===Ze&&f+p+d+u!==0&&(0!==f&&(y=f===J?D:J),p=d=u=0,Me++,Ze++),f+p+d+u===0){if(z===Ze&&(we>0&&(Ge=Ge.replace(r,"")),Ge.trim().length>0)){switch(y){case N:case $:case P:case Z:case D:break;default:Ge+=o.charAt(z)}y=P}if(1===Oe)switch(y){case A:case I:case P:case X:case K:case T:case H:case q:Oe=0;case $:case Z:case D:case N:break;default:for(Oe=0,Se=z,C=y,z--,y=P;Se<Me;)switch(o.charCodeAt(Se++)){case D:case Z:case P:++z,y=C,Se=Me;break;case Y:we>0&&(++z,y=C);case A:Se=Me}}switch(y){case A:for(C=(Ge=Ge.trim()).charCodeAt(0),L=1,Se=++z;z<Me;){switch(y=o.charCodeAt(z)){case A:L++;break;case I:L--;break;case J:switch(m=o.charCodeAt(z+1)){case G:case J:z=We(m,z,Ze,o)}break;case V:y++;case T:y++;case X:case K:for(;z++<Ze&&o.charCodeAt(z)!==y;);}if(0===L)break;z++}if(qe=o.substring(Se,z),C===ne&&(C=(Ge=Ge.replace(n,"").trim()).charCodeAt(0)),C===F){switch(we>0&&(Ge=Ge.replace(r,"")),m=Ge.charCodeAt(1)){case de:case ae:case le:case W:l=t;break;default:l=_e}if(Se=(qe=Be(t,l,qe,m,a+1)).length,xe>0&&0===Se&&(Se=Ge.length),Le>0&&(l=De(_e,Ge,Ee),s=Ue(Pe,qe,l,t,ve,he,Se,m,a,i),Ge=l.join(""),void 0!==s&&0===(Se=(qe=s.trim()).length)&&(m=0,qe="")),Se>0)switch(m){case le:Ge=Ge.replace(_,Ne);case de:case ae:case W:qe=Ge+"{"+qe+"}";break;case ie:qe=(Ge=Ge.replace(h,"$1 $2"+(Ae>0?Te:"")))+"{"+qe+"}",qe=1===me||2===me&&Fe("@"+qe,3)?"@"+j+qe+"@"+qe:"@"+qe;break;default:qe=Ge+qe,i===pe&&(Ye+=qe,qe="")}else qe=""}else qe=Be(t,De(t,Ge,Ee),qe,i,a+1);Ke+=qe,E=0,Oe=0,M=0,we=0,Ee=0,S=0,Ge="",qe="",y=o.charCodeAt(++z);break;case I:case P:if((Se=(Ge=(we>0?Ge.replace(r,""):Ge).trim()).length)>1)switch(0===M&&((C=Ge.charCodeAt(0))===W||C>96&&C<123)&&(Se=(Ge=Ge.replace(" ",":")).length),Le>0&&void 0!==(s=Ue(ke,Ge,t,e,ve,he,Ye.length,i,a,i))&&0===(Se=(Ge=s.trim()).length)&&(Ge="\0\0"),C=Ge.charCodeAt(0),m=Ge.charCodeAt(1),C){case ne:break;case F:if(m===ue||m===fe){Xe+=Ge+o.charAt(z);break}default:if(Ge.charCodeAt(Se-1)===Y)break;Ye+=$e(Ge,C,m,Ge.charCodeAt(2))}E=0,Oe=0,M=0,we=0,Ee=0,Ge="",y=o.charCodeAt(++z)}}switch(y){case Z:case D:if(f+p+d+u+be===0)switch(O){case H:case K:case X:case F:case te:case Q:case G:case ee:case J:case W:case Y:case q:case P:case A:case I:break;default:M>0&&(Oe=1)}f===J?f=0:Ce+E===0&&i!==ie&&Ge.length>0&&(we=1,Ge+="\0"),Le*Ie>0&&Ue(je,Ge,t,e,ve,he,Ye.length,i,a,i),he=1,ve++;break;case P:case I:if(f+p+d+u===0){he++;break}default:switch(he++,ze=o.charAt(z),y){case $:case N:if(p+u+f===0)switch(w){case q:case Y:case $:case N:ze="";break;default:y!==N&&(ze=" ")}break;case ne:ze="\\0";break;case re:ze="\\f";break;case oe:ze="\\v";break;case U:p+f+u===0&&Ce>0&&(Ee=1,we=1,ze="\f"+ze);break;case 108:if(p+f+u+ge===0&&M>0)switch(z-M){case 2:w===se&&o.charCodeAt(z-3)===Y&&(ge=w);case 8:x===ce&&(ge=x)}break;case Y:p+f+u===0&&(M=z);break;case q:f+d+p+u===0&&(we=1,ze+="\r");break;case X:case K:0===f&&(p=p===y?0:0===p?y:p);break;case V:p+f+d===0&&u++;break;case B:p+f+d===0&&u--;break;case H:p+f+u===0&&d--;break;case T:p+f+u===0&&(0===E&&(2*w+3*x==533||(L=0,E=1)),d++);break;case F:f+d+p+u+M+S===0&&(S=1);break;case G:case J:if(p+u+d>0)break;switch(f){case 0:switch(2*y+3*o.charCodeAt(z+1)){case 235:f=J;break;case 220:Se=z,f=G}break;case G:y===J&&w===G&&Se+2!==z&&(33===o.charCodeAt(Se+2)&&(Ye+=o.substring(Se,z+1)),ze="",f=0)}}if(0===f){if(Ce+p+u+S===0&&i!==ie&&y!==P)switch(y){case q:case te:case Q:case ee:case H:case T:if(0===E){switch(w){case $:case N:case D:case Z:ze+="\0";break;default:ze="\0"+ze+(y===q?"":"\0")}we=1}else switch(y){case T:M+7===z&&108===w&&(M=0),E=++L;break;case H:0==(E=--L)&&(we=1,ze+="\0")}break;case $:case N:switch(w){case ne:case A:case I:case P:case q:case re:case $:case N:case D:case Z:break;default:0===E&&(we=1,ze+="\0")}}Ge+=ze,y!==N&&y!==$&&(O=y)}}x=w,w=y,z++}if(Se=Ye.length,xe>0&&0===Se&&0===Ke.length&&0===t[0].length==0&&(i!==ae||1===t.length&&(Ce>0?He:Ve)===t[0])&&(Se=t.join(",").length+2),Se>0){if(l=0===Ce&&i!==ie?function(e){for(var t,n,o=0,i=e.length,a=Array(i);o<i;++o){for(var l=e[o].split(c),s="",u=0,f=0,d=0,p=0,h=l.length;u<h;++u)if(!(0===(f=(n=l[u]).length)&&h>1)){if(d=s.charCodeAt(s.length-1),p=n.charCodeAt(0),t="",0!==u)switch(d){case G:case te:case Q:case ee:case N:case T:break;default:t=" "}switch(p){case U:n=t+He;case te:case Q:case ee:case N:case H:case T:break;case V:n=t+n+He;break;case Y:switch(2*n.charCodeAt(1)+3*n.charCodeAt(2)){case 530:if(ye>0){n=t+n.substring(8,f-1);break}default:(u<1||l[u-1].length<1)&&(n=t+He+n)}break;case q:t="";default:n=f>1&&n.indexOf(":")>0?t+n.replace(b,"$1"+He+"$2"):t+n+He}s+=n}a[o]=s.replace(r,"").trim()}return a}(t):t,Le>0&&void 0!==(s=Ue(Re,Ye,l,e,ve,he,Se,i,a,i))&&0===(Ye=s).length)return Xe+Ye+Ke;if(Ye=l.join(",")+"{"+Ye+"}",me*ge!=0){switch(2!==me||Fe(Ye,2)||(ge=0),ge){case ce:Ye=Ye.replace(g,":"+k+"$1")+Ye;break;case se:Ye=Ye.replace(v,"::"+j+"input-$1")+Ye.replace(v,"::"+k+"$1")+Ye.replace(v,":"+R+"input-$1")+Ye}ge=0}}return Xe+Ye+Ke}function De(e,t,n){var r=t.trim().split(u),o=r,i=r.length,a=e.length;switch(a){case 0:case 1:for(var l=0,s=0===a?"":e[0]+" ";l<i;++l)o[l]=Ze(s,o[l],n,a).trim();break;default:l=0;var c=0;for(o=[];l<i;++l)for(var f=0;f<a;++f)o[c++]=Ze(e[f]+" ",r[l],n,a).trim()}return o}function Ze(e,t,n,r){var o=t,i=o.charCodeAt(0);switch(i<33&&(i=(o=o.trim()).charCodeAt(0)),i){case U:switch(Ce+r){case 0:case 1:if(0===e.trim().length)break;default:return o.replace(f,"$1"+e.trim())}break;case Y:if(103!==o.charCodeAt(1))return e.trim()+o.replace(f,"$1"+e.trim());if(ye>0&&Ce>0)return o.replace(d,"$1").replace(f,"$1"+Ve);default:if(n*Ce>0&&o.indexOf("\f")>0)return o.replace(f,(e.charCodeAt(0)===Y?"":"$1")+e.trim())}return e+o}function $e(e,t,n,r){var c,u=0,f=e+";",d=2*t+3*n+4*r;if(944===d)return function(e){var t=e.length,n=e.indexOf(":",9)+1,r=e.substring(0,n).trim(),o=e.substring(n,t-1).trim();switch(e.charCodeAt(9)*Ae){case 0:break;case W:if(110!==e.charCodeAt(10))break;default:var i=o.split((o="",l)),a=0;for(n=0,t=i.length;a<t;n=0,++a){for(var c=i[a],u=c.split(s);c=u[n];){var f=c.charCodeAt(0);if(1===Ae&&(f>F&&f<90||f>96&&f<123||f===z||f===W&&c.charCodeAt(1)!==W)&&isNaN(parseFloat(c))+(-1!==c.indexOf("("))===1)switch(c){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:c+=Te}u[n++]=c}o+=(0===a?"":",")+u.join(" ")}}return o=r+o+";",1===me||2===me&&Fe(o,1)?j+o+o:o}(f);if(0===me||2===me&&!Fe(f,1))return f;switch(d){case 1015:return 97===f.charCodeAt(10)?j+f+f:f;case 951:return 116===f.charCodeAt(3)?j+f+f:f;case 963:return 110===f.charCodeAt(5)?j+f+f:f;case 1009:if(100!==f.charCodeAt(4))break;case 969:case 942:return j+f+f;case 978:return j+f+k+f+f;case 1019:case 983:return j+f+k+f+R+f+f;case 883:return f.charCodeAt(8)===W?j+f+f:f.indexOf("image-set(",11)>0?f.replace(M,"$1"+j+"$2")+f:f;case 932:if(f.charCodeAt(4)===W)switch(f.charCodeAt(5)){case 103:return j+"box-"+f.replace("-grow","")+j+f+R+f.replace("grow","positive")+f;case 115:return j+f+R+f.replace("shrink","negative")+f;case 98:return j+f+R+f.replace("basis","preferred-size")+f}return j+f+R+f+f;case 964:return j+f+R+"flex-"+f+f;case 1023:if(99!==f.charCodeAt(8))break;return c=f.substring(f.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),j+"box-pack"+c+j+f+R+"flex-pack"+c+f;case 1005:return i.test(f)?f.replace(o,":"+j)+f.replace(o,":"+k)+f:f;case 1e3:switch(u=(c=f.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(u)){case 226:c=f.replace(x,"tb");break;case 232:c=f.replace(x,"tb-rl");break;case 220:c=f.replace(x,"lr");break;default:return f}return j+f+R+c+f;case 1017:if(-1===f.indexOf("sticky",9))return f;case 975:switch(u=(f=e).length-10,d=(c=(33===f.charCodeAt(u)?f.substring(0,u):f).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(c.charCodeAt(8)<111)break;case 115:f=f.replace(c,j+c)+";"+f;break;case 207:case 102:f=f.replace(c,j+(d>102?"inline-":"")+"box")+";"+f.replace(c,j+c)+";"+f.replace(c,R+c+"box")+";"+f}return f+";";case 938:if(f.charCodeAt(5)===W)switch(f.charCodeAt(6)){case 105:return c=f.replace("-items",""),j+f+j+"box-"+c+R+"flex-"+c+f;case 115:return j+f+R+"flex-item-"+f.replace(L,"")+f;default:return j+f+R+"flex-line-pack"+f.replace("align-content","").replace(L,"")+f}break;case 973:case 989:if(f.charCodeAt(3)!==W||122===f.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?$e(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):f.replace(c,j+c)+f.replace(c,k+c.replace("fill-",""))+f;break;case 962:if(f=j+f+(102===f.charCodeAt(5)?R+f:"")+f,n+r===211&&105===f.charCodeAt(13)&&f.indexOf("transform",10)>0)return f.substring(0,f.indexOf(";",27)+1).replace(a,"$1"+j+"$2")+f}return f}function Fe(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10),o=e.substring(n+1,e.length-1);return Ee(2!==t?r:r.replace(E,"$1"),o,t)}function Ne(e,t){var n=$e(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(O," or ($1)").substring(4):"("+t+")"}function Ue(e,t,n,r,o,i,a,l,s,c){for(var u,f=0,d=t;f<Le;++f)switch(u=Oe[f].call(Ge,e,d,n,r,o,i,a,l,s,c)){case void 0:case!1:case!0:case null:break;default:d=u}if(d!==t)return d}function We(e,t,n,r){for(var o=t+1;o<n;++o)switch(r.charCodeAt(o)){case J:if(e===G&&r.charCodeAt(o-1)===G&&t+2!==o)return o+1;break;case D:if(e===J)return o+1}return o}function ze(e){for(var t in e){var n=e[t];switch(t){case"keyframe":Ae=0|n;break;case"global":ye=0|n;break;case"cascade":Ce=0|n;break;case"compress":we=0|n;break;case"semicolon":be=0|n;break;case"preserve":xe=0|n;break;case"prefix":Ee=null,n?"function"!=typeof n?me=1:(me=2,Ee=n):me=0}}return ze}function Ge(t,n){if(void 0!==this&&this.constructor===Ge)return e(t);var o=t,i=o.charCodeAt(0);i<33&&(i=(o=o.trim()).charCodeAt(0)),Ae>0&&(Te=o.replace(p,i===V?"":"-")),i=1,1===Ce?Ve=o:He=o;var a,l=[Ve];Le>0&&void 0!==(a=Ue(Me,n,l,l,ve,he,0,0,0,0))&&"string"==typeof a&&(n=a);var s=Be(_e,l,n,0,0);return Le>0&&void 0!==(a=Ue(Se,s,l,l,ve,he,s.length,0,0,0))&&"string"!=typeof(s=a)&&(i=0),Te="",Ve="",He="",ge=0,ve=1,he=1,we*i==0?s:s.replace(r,"").replace(C,"").replace(m,"$1").replace(y,"$1").replace(w," ")}return Ge.use=function e(t){switch(t){case void 0:case null:Le=Oe.length=0;break;default:if("function"==typeof t)Oe[Le++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else Ie=0|!!t}return e},Ge.set=ze,void 0!==t&&ze(t),Ge}(null)},337:(e,t,n)=>{"use strict";n(678),n(438),n(100),n(121),n(127);n(705)},705:(e,t,n)=>{"use strict";n(61),n(728),n(121),n(127);var r=n(117);var o;!function(e){e.UpdatePlatformThemeScheme="update-platform-theme-scheme"}(o||(o={}));(0,r.Z)("of-workspace-notifications-sync");n(150),n(438)},100:(e,t,n)=>{"use strict";n.d(t,{wh:()=>r});var r,o,i,a,l,s,c,u,f;n(564),n(495);!function(e){e.NewWindow="NewWindow",e.NewPage="NewPage",e.SavePage="SavePage",e.SavePageAs="SavePageAs",e.Print="Print",e.PrintAll="PrintAll",e.PrintScreen="PrintScreen",e.CloseWindow="CloseWindow",e.RestoreChanges="RestoreChanges",e.SaveWorkspace="SaveWorkspace",e.SaveWorkspaceAs="SaveWorkspaceAs",e.RenameWorkspace="RenameWorkspace",e.SwitchWorkspace="SwitchWorkspace",e.DeleteWorkspace="DeleteWorkspace",e.Downloads="Downloads",e.OpenStorefront="OpenStorefront",e.Appearance="Appearance",e.Quit="Quit",e.Custom="Custom"}(r||(r={})),function(e){e.Light="light",e.Dark="dark",e.System="system"}(o||(o={})),function(e){e.Close="Close",e.Duplicate="Duplicate",e.Rename="Rename",e.Save="Save",e.SaveAs="Save As",e.Custom="Custom"}(i||(i={})),function(e){e.NewView="NewView",e.DuplicateViews="DuplicateView",e.OpenWithDefaultBrowser="OpenWithDefaultBrowser",e.ReloadViews="ReloadTab",e.CloseViews="CloseTab",e.AddToChannel="AddToChannel",e.RemoveFromChannel="RemoveFromChannel",e.Back="Back",e.Forward="Forward",e.Print="Print",e.PrintAll="PrintAll",e.PrintScreen="PrintScreen",e.Custom="Custom"}(a||(a={})),function(e){e.ShowHideTabs="ShowHideTabs",e.ColorLinking="ColorLinking",e.PresetLayouts="PresetLayouts",e.LockUnlockPage="LockUnlockPage",e.SaveMenu="SaveMenu",e.SavePage="SavePage",e.Minimise="Minimise",e.Maximise="Maximise",e.Close="Close",e.Custom="Custom"}(l||(l={})),function(e){e.SavePage="SavePage",e.SaveWorkspace="SaveWorkspace",e.SavePageAs="SavePageAs",e.SaveWorkspaceAs="SaveWorkspaceAs",e.Custom="Custom"}(s||(s={})),function(e){e.Browser="browser",e.Platform="platform"}(c||(c={})),function(e){e.CustomButton="CustomButton",e.StoreCustomButton="StoreCustomButton",e.CustomDropdownItem="CustomDropdownItem",e.GlobalContextMenu="GlobalContextMenu",e.ViewTabContextMenu="ViewTabContextMenu",e.PageTabContextMenu="PageTabContextMenu",e.SaveButtonContextMenu="SaveButtonContextMenu",e.API="API"}(u||(u={})),function(e){e.SAVE_PAGE="SAVE_PAGE",e.SAVE_WORKSPACE="SAVE_WORKSPACE",e.SAVE_PAGE_AS="SAVE_PAGE_AS",e.SAVE_WORKSPACE_AS="SAVE_WORKSPACE_AS",e.RENAME_PAGE="RENAME_PAGE",e.RENAME_WORKSPACE="RENAME_WORKSPACE"}(f||(f={}))},693:(e,t,n)=>{"use strict";n.d(t,{E:()=>i});var r=n(806),o=n(278);const i=(e,t)=>{o.Z.markStart(`${e}-registration`),(0,r.TZ)().once("started",(()=>o.Z.markAndMeasure("workspace-app-started",`${e}-registration`)));const n=fin.Window.wrapSync(t);n.once("initialized",(()=>o.Z.markAndMeasure(`${e}-window-initialized`,`${e}-registration`))),n.once("shown",(()=>{o.Z.markAndMeasure(`${e}-show`,`${e}-registration`)}))}},261:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CLIAction:()=>_.Pt,CLIFilterOptionType:()=>_.el,CLITemplate:()=>_.yW,deregister:()=>E,hide:()=>M,register:()=>L,show:()=>S});var r=n(678),o=n(278),i=n(558),a=n(121);const l={remoteProviderDataStreamId:"0",remoteClientSearchStreamId:"1",remoteProviderRegistrationStreamId:"2",remoteProviderDeregistrationStreamId:"3",remoteProviderInfoStreamId:"4",remoteProviderDispatchStreamId:"5",remoteSearchCloseStreamId:"6"};var s=n(150),c=n(438),u=n(264);var f=n(46);const d=()=>{};function p(e){const t={};let n=[];let r=[];let o=null;let i=f.w1.Initial;t.getStatus=()=>i,t.getResultBuffer=()=>n,t.setResultBuffer=e=>{n=e,n?.length&&t.onChange()},t.getRevokedBuffer=()=>r,t.setRevokedBuffer=e=>{r=e,r?.length&&t.onChange()},t.setUpdatedContext=e=>{o=e,null!==o&&t.onChange()},t.getUpdatedContext=()=>o,t.onChange=d;const a={};return t.res=a,a.close=()=>{i!==f.w1.Close&&(i=f.w1.Close,t.onChange())},a.open=()=>{i!==f.w1.Open&&(i=f.w1.Open,t.onChange())},a.respond=n=>{const r=function(e=[],t=[],n="ascending"){const r=[],o=new Map;t.forEach((e=>{if(e.key)return o.set(e.key,e);r.push(e)}));let i=e.map((e=>{if(e.key){const t=o.get(e.key);if(t)return o.delete(e.key),t}return e}));return i.push(...o.values(),...r),i="ascending"===n?i.sort(((e,t)=>(e?.score??1/0)-(t?.score??1/0))):i.sort(((e,t)=>(t?.score??1/0)-(e?.score??1/0))),i}(t.getResultBuffer(),n,e);t.setResultBuffer(r)},a.revoke=(...e)=>{const n=new Set(e),r=t.getResultBuffer().filter((({key:e})=>{const t=n.has(e);return t&&n.delete(e),!t}));t.setResultBuffer(r),n.size&&(t.getRevokedBuffer().forEach((e=>n.add(e))),t.setRevokedBuffer([...n]))},a.updateContext=e=>{t.setUpdatedContext(e)},t}const h=new Map,v=100;async function g(e){const{id:t,providerId:n}=e,r=w.getProviderOrFail(n);let o=h.get(t);o||(o=function(e,t){const n=new Set;let r=!1;return{close:()=>{r=!0;for(const e of n)e()},req:{id:e,...t,context:t?.context||{},onClose:e=>{n.add(e),r&&e()},removeListener:e=>{n.delete(e)}}}}(t,e),h.set(t,o));const i=p(),a=()=>{const e=i.getResultBuffer();i.setResultBuffer([]);const r=i.getRevokedBuffer();i.setRevokedBuffer([]);const o=i.getUpdatedContext();i.setUpdatedContext(null);const a=i.getStatus();!async function(e){(await(0,s.VD)()).dispatch(l.remoteProviderDataStreamId,e)}({id:t,providerId:n,results:e,revoked:r,status:a,context:o})};let c=!0,u=!1;i.onChange=()=>{if(c)return c=!1,void a();u||(u=!0,setTimeout((()=>{u=!1,a()}),v))};try{const{results:e,context:a}=await r.onUserInput(o.req,i.res),l=i.getStatus();return{id:t,providerId:n,status:l,results:e,context:a}}catch(e){return console.error(`OpenFin/Workspace/Home. Uncaught exception in search provider ${n} for search ${t}`,"This is likely a bug in the implementation of the search provider.",e),{id:t,providerId:n,error:e?.message}}}async function C(){for(const{req:e,close:t}of h.values())t(),h.delete(e.id)}async function m(e,t){const n=w.getProviderOrFail(e.providerId);return e.result.dispatcherIdentity=t,n.onResultDispatch?.(e.result)}function y(e){const t=h.get(e.id);t?.close(),h.delete(e.id)}const w=new u.lT("home"),b=async e=>{await(0,s.aB)();!("skipPlatformInitCheck"in e&&!0===e.skipPlatformInitCheck)&&await(0,c.Hh)(fin.me.identity);w.assertNotAlreadyRegistered(e.id),w.setProvider(e);const t=await(0,s.VD)();return function(e){e.homeChannelActionsRegistered||(e.homeChannelActionsRegistered=!0,e.register(l.remoteProviderDataStreamId,g),e.register(l.remoteSearchCloseStreamId,y),e.register(l.remoteProviderDispatchStreamId,m),e.addDisconnectionListener(C))}(t),t.dispatch(l.remoteProviderRegistrationStreamId,{id:e.id,title:e.title,icon:e.icon,clientAPIVersion:r.u0,identity:fin.me.identity,scoreOrder:e.scoreOrder,commandCode:e.commandCode,description:e.description,hidden:e.hidden,listTitle:e.listTitle,inputPlaceholder:e.inputPlaceholder,logoUrl:e.logoUrl,dispatchFocusEvents:e.dispatchFocusEvents})};var x=n(693),_=n(758);let O;const L=async e=>{if(!e.icon)throw new Error(`${e.id} provider needs to have icon property defined.`);(0,x.E)("home",a.OI);const t=await b(e);return O=new Promise(((n,a)=>{try{(0,i.ck)({allowed:!0,componentVersion:t?.workspaceVersion}),t?.workspaceVersion,r.u0,n({...t,clientAPIVersion:r.u0,setSearchQuery:async t=>(await(0,s.xZ)()).dispatch("set-search-query",{query:t,providerID:e.id})})}catch(e){(0,i.ck)({allowed:!1,rejectionCode:e instanceof Error?e.message:"unknown"}),a(e)}finally{o.Z.markEndAndMeasure("home-registration")}})),O},E=async e=>{w.deleteProvider(e);const t=await(0,s.VD)();await t.dispatch(l.remoteProviderDeregistrationStreamId,e)};async function S(){o.Z.markStart("home-show"),await O;const e=await(0,s.xZ)();await e.dispatch("show-home",void 0)}async function M(){await O;const e=await(0,s.xZ)();await e.dispatch("hide-home",void 0)}},264:(e,t,n)=>{"use strict";n.d(t,{lT:()=>d});var r=/\b(?:an?d?|a[st]|because|but|by|en|for|i[fn]|neither|nor|o[fnr]|only|over|per|so|some|tha[tn]|the|to|up|upon|vs?\.?|versus|via|when|with|without|yet)\b/i,o=/[^\s:–—-]+|./g,i=/\s/,a=/.(?=[A-Z]|\..)/,l=/[A-Za-z0-9\u00C0-\u00FF]/;function s(e){for(var t,n="";null!==(t=o.exec(e));){var s=t[0],c=t.index;a.test(s)||r.test(s)&&0!==c&&c+s.length!==e.length||":"===e.charAt(c+s.length)&&!i.test(e.charAt(c+s.length+1))?n+=s:n+=s.replace(l,(function(e){return e.toUpperCase()}))}return n}class c extends Error{constructor(e,t){const n=s(e);super(`${n} Provider. ${n} Provider${t?` with id ${t}`:""} is not currently registered.`)}}class u extends Error{constructor(e,t){const n=s(e);super(`${n} Provider. ${n} Provider${t?` with id ${t}`:""} is already registered. Call \`deregister\` before registering again.`)}}class f extends Error{constructor(e,t){const n=s(e);super(`Failed to get ${n} Provider. ${n} Provider with id ${t} is not currently registered.`)}}class d{constructor(e){this.providersMap=new Map,this.providerType=e}assertNotAlreadyRegistered(e){if(this.hasProvider(e))throw new u(this.providerType,e)}assertRegistered(e){if(!this.hasProvider(e))throw new c(this.providerType,e)}getProvider(e){return this.providersMap.get(e)}hasProvider(e){return this.providersMap.has(e)}setProvider(e){this.providersMap.set(e.id,e)}deleteProvider(e){this.providersMap.delete(e)}getProviderOrFail(e){const t=this.getProvider(e);if(!t)throw new f(this.providerType,e);return t}clearProviders(){this.providersMap.clear()}}},222:(e,t,n)=>{"use strict";var r,o,i;n.d(t,{p:()=>o,w:()=>i}),function(e){e.Fetching="fetching",e.Fetched="fetched",e.Complete="complete"}(r||(r={})),function(e){e.UserAction="user-action",e.FocusChange="focus-change",e.Reload="reload"}(o||(o={})),function(e){e.Active="active",e.Default="default"}(i||(i={}))},427:(e,t,n)=>{"use strict";var r;n.d(t,{v:()=>r}),function(e){e.ActionButton="ActionButton",e.DropdownButton="DropdownButton"}(r||(r={}))},758:(e,t,n)=>{"use strict";var r,o,i;n.d(t,{Pt:()=>r,el:()=>i,yW:()=>o}),function(e){e.Suggestion="suggestion"}(r||(r={})),function(e){e.Contact="Contact",e.Custom="Custom",e.List="List",e.Plain="Plain",e.SimpleText="SimpleText",e.Loading="Loading",e.Error="Error"}(o||(o={})),function(e){e.MultiSelect="MultiSelect"}(i||(i={}))},564:(e,t,n)=>{"use strict";n(222),n(758),n(114),n(109),n(427)},114:(e,t,n)=>{"use strict";var r,o;n.d(t,{L:()=>r,T:()=>o}),function(e){e.Snapshot="snapshot",e.Manifest="manifest",e.View="view",e.External="external"}(r||(r={})),function(e){e.LandingPage="landingPage",e.AppGrid="appGrid"}(o||(o={}))},109:(e,t,n)=>{"use strict";n.d(t,{Go:()=>o,ZJ:()=>a,bI:()=>i,p6:()=>r});const r={Container:"Container",Button:"Button",SplitButton:"SplitButton"},o={Text:"Text",Image:"Image",List:"List"},i={...r,...o};var a;!function(e){e.Primary="primary",e.Secondary="secondary",e.TextOnly="textOnly"}(a||(a={}))},528:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AppManifestType:()=>i.L,StorefrontTemplate:()=>i.T,deregister:()=>m,hide:()=>y,register:()=>C,show:()=>w});var r=n(558),o=n(150),i=n(114),a=n(678),l=n(278),s=n(121),c=n(438),u=n(264);let f=!1;async function d(e,t,n){const r=await(0,o.Dm)();try{return await r.dispatch(e.action,e.payload)}catch(o){if(o instanceof Error&&-1!==o.toString().indexOf(e.action))return f||console.warn("You are using a newer version of the Workspace client library that is not supported by the currently running workspace provider. Please upgrade the Workspace to version 9.0 or later."),f=!0,await r.dispatch(t.action,t.payload),n;throw o}}const p=new u.lT("storefront"),h=async e=>{await(0,c.Hh)(fin.me.identity);const t=await(0,o.xZ)();return p.assertNotAlreadyRegistered(e.id),p.setProvider(e),(e=>{e.storefrontChannelActionsRegistered||(e.storefrontChannelActionsRegistered=!0,e.register("get-storefront-provider-apps",(e=>p.getProviderOrFail(e).getApps())),e.register("get-storefront-provider-footer",(e=>p.getProviderOrFail(e).getFooter())),e.register("get-storefront-provider-landing-page",(e=>p.getProviderOrFail(e).getLandingPage())),e.register("get-storefront-provider-navigation",(e=>p.getProviderOrFail(e).getNavigation())),e.register("launch-storefront-provider-app",(({id:e,app:t})=>p.getProviderOrFail(e).launchApp(t))))})(t),e.clientAPIVersion=a.u0,d({action:"register-provider",payload:{providerType:"storefront",info:e}},{action:"register-storefront-provider",payload:e},{workspaceVersion:"unknown"})};var v=n(693);let g;const C=async e=>{(0,v.E)("store",s.nd);const t=await h(e);return g=new Promise(((n,i)=>{try{(0,r.d9)({allowed:!0,componentVersion:t?.workspaceVersion}),t?.workspaceVersion,a.u0,n({clientAPIVersion:a.u0,workspaceVersion:t?.workspaceVersion??"",updateAppCardButtons:async t=>{const n=await(0,o.Xl)();await n.dispatch("update-app-card-button-config",{...t,id:e.id,title:e.title,icon:e.icon,platformIdentity:fin.me.identity})}})}catch(e){(0,r.d9)({allowed:!1,rejectionCode:e instanceof Error?e.message:"unknown"}),i(e)}finally{l.Z.markEndAndMeasure("store-registration")}})),g},m=async e=>(await g,p.assertRegistered(e),p.deleteProvider(e),await(0,o.aB)(),d({action:"deregister-provider",payload:{providerType:"storefront",id:e}},{action:"deregister-storefront-provider",payload:e})),y=async()=>(await g,await(0,o.aB)(),d({action:"hide-provider-window",payload:{providerType:"storefront"}},{action:"hide-storefront"})),w=async()=>(l.Z.markStart("store-show"),await g,await(0,o.aB)(),d({action:"show-provider-window",payload:{providerType:"storefront"}},{action:"show-storefront"}))},420:(e,t,n)=>{"use strict";n.d(t,{hd:()=>o});n(311),n(912);var r=n(150);async function o(){return(await(0,r.Dm)()).dispatch("get-legacy-pages",void 0)}},495:(e,t,n)=>{"use strict";var r;!function(e){e.Left="Left",e.Right="Right",e.Top="Top",e.Bottom="Bottom"}(r||(r={}))},127:(e,t,n)=>{"use strict";n.d(t,{Dm:()=>a,yz:()=>c});var r=n(117);n(121);const o=e=>`__browser_window__-${e.uuid}-${e.name}`,i=new Map,a=e=>{const t=o(e);return i.has(t)||i.set(t,(0,r.Z)(t)),i.get(t)()};var l,s;!function(e){e.CloseBrowserWindow="close-browser-window",e.QuitPlatform="quit-platform",e.ClosePage="close-page",e.AddToChannel="add-to-channel",e.RemoveFromChannel="remove-from-channel",e.OpenSaveModalInternal="open-save-modal-internal",e.DuplicatePage="duplicate-page",e.SetSelectedScheme="set-selected-scheme",e.ShowBrowserIndicator="show-browser-indicator"}(l||(l={})),function(e){e.GetPages="get-pages",e.GetActivePageForWindow="get-active-page-for-window",e.AttachPagesToWindow="attach-pages-to-window",e.DetachPagesFromWindow="detach-pages-from-window",e.SetActivePageForWindow="set-active-page-for-window",e.RenamePage="rename-page",e.ReorderPagesForWindow="reorder-pages-for-window",e.UpdatePageForWindow="update-page-for-window",e.UpdatePagesWindowOptions="update-pages-window-options",e.IsDetachingPages="is-detaching-pages",e.IsActivePageChanging="is-active-page-changing"}(s||(s={}));const c={...l,...s}},438:(e,t,n)=>{"use strict";var r;n.d(t,{Hh:()=>i}),function(e){e.LaunchApp="launchApp",e.SavePage="savePage",e.GetSavedPage="getSavedPage",e.CreateSavedPage="createSavedPage",e.UpdateSavedPage="updateSavedPage",e.DeleteSavedPage="deleteSavedPage",e.GetSavedPages="getSavedPages",e.CreateSavedPageInternal="createSavedPageInternal",e.UpdateSavedPageInternal="updateSavedPageInternal",e.DeleteSavedPageInternal="deleteSavedPageInternal",e.SharePage="sharePage",e.UpdatePageForWindow="updatePageForWindow",e.AttachPagesToWindow="attachPagesToWindow",e.DetachPagesFromWindow="detachPagesFromWindow",e.ReorderPagesForWindow="reorderPagesForWindow",e.SetActivePage="setActivePage",e.GetAllAttachedPages="getAllAttachedPages",e.GetActivePageIdForWindow="getActivePageIdForWindow",e.GetPagesForWindow="getPagesForWindow",e.GetPageForWindow="getPageForWindow",e.GetSavedPageMetadata="getSavedPageMetadata",e.GetUniquePageTitle="getUniquePageTitle",e.GetLastFocusedBrowserWindow="getLastFocusedBrowserWindow",e.GetThemes="getThemes",e.GetSelectedScheme="getSelectedScheme",e.SetSelectedScheme="setSelectedScheme",e.OpenGlobalContextMenuInternal="openGlobalContextMenuInternal",e.OpenViewTabContextMenuInternal="openViewTabContextMenuInternal",e.OpenPageTabContextMenuInternal="openPageTabContextMenuInternal",e.OpenSaveButtonContextMenuInternal="openSaveButtonContextMenuInternal",e.InvokeCustomActionInternal="invokeCustomActionInternal",e.RequestQuitPlatformDialogInternal="requestQuitPlatformDialogInternal",e.GetSavedWorkspace="getSavedWorkspace",e.CreateSavedWorkspace="createSavedWorkspace",e.UpdateSavedWorkspace="updateSavedWorkspace",e.DeleteSavedWorkspace="deleteSavedWorkspace",e.GetSavedWorkspaces="getSavedWorkspaces",e.SaveWorkspace="saveWorkspace",e.GetCurrentWorkspace="getCurrentWorkspace",e.ApplyWorkspace="applyWorkspace",e.SetActiveWorkspace="setActiveWorkspace",e.IsBrowserInitialized="isBrowserInitialized",e.Analytics="analyticsInternal",e.GetDockProviderConfig="getDockProviderConfig",e.SaveDockProviderConfig="saveDockProviderConfig",e.HandleSaveModalOnPageClose="handleSaveModalOnPageClose",e.CopyPage="copyPage",e.HandlePageChanges="handlePageChanges"}(r||(r={}));const o=async e=>fin.Platform.wrapSync(e).getClient(),i=async e=>{const t=await o(e),n="Target is not a Workspace Platform. Target must call WorkspacePlatform.init";let r;try{r=await t.dispatch("isWorkspacePlatform")}catch(e){throw new Error(n)}if("boolean"==typeof r&&r)return console.warn("You are using an older version of the workspace platform. Please update your workspace platform."),r;if("object"==typeof r&&r.isWorkspacePlatform)return r;throw new Error(n)}},150:(e,t,n)=>{"use strict";n.d(t,{Dm:()=>s,VD:()=>u,Xl:()=>p,aB:()=>d,xZ:()=>h});var r=n(117),o=n(678),i=n(121),a=n(46);const l=(0,r.Z)("__of_workspace_protocol__"),s=l,c=l,u=(0,r.Z)(a.Qx),f=e=>{const t=new URL(e);return t.searchParams.append("isLaunchedViaLib","true"),t.toString()},d=async()=>{if(!await(0,i.JV)(i.iW)){if(o.ZK||-1===navigator.userAgent.indexOf("Win"))return void await fin.Application.startFromManifest(f(o.aW));await fin.System.openUrlWithBrowser(f(o.GX))}},p=async()=>(await d(),s()),h=async()=>(await d(),c())},82:(e,t,n)=>{"use strict";n.d(t,{R8:()=>a,RR:()=>o,X_:()=>i});var r=n(150);const o=({platformIdentity:e,id:t=""})=>`${e.name}-${e.uuid}-${t}`,i=async e=>(await(0,r.Dm)()).dispatch("show-provider-window",{providerType:e}),a=async e=>(await(0,r.Dm)()).dispatch("hide-provider-window",{providerType:e})},46:(e,t,n)=>{"use strict";n.d(t,{Qx:()=>o,w1:()=>a});var r=n(121);(0,n(82).RR)({id:"home-commands",platformIdentity:r.OI});const o="__search-openfin-browser-home-topic__";var i,a;!function(e){e.Fetching="fetching",e.Fetched="fetched",e.Complete="complete"}(i||(i={})),function(e){e[e.Initial=0]="Initial",e[e.Open=1]="Open",e[e.Close=2]="Close"}(a||(a={}))},65:(e,t,n)=>{"use strict";var r=n(304);n(337),n(150);const o={[r.Palette.brandPrimary]:"#0A76D3",[r.Palette.statusSuccess]:r.Color.functional1,[r.Palette.statusWarning]:r.Color.functional10,[r.Palette.statusCritical]:r.Color.functional7,[r.Palette.statusActive]:r.Color.functional3,[r.Palette.contentBackground1]:"#0A76D3",[r.Palette.contentBackground2]:"#000000",[r.Palette.contentBackground3]:"#000000",[r.Palette.contentBackground4]:"#000000",[r.Palette.contentBackground5]:"#000000"},i={...o,[r.Palette.background1]:r.Color.white,[r.Palette.background2]:r.Color.lightGray1,[r.Palette.background3]:r.Color.lightGray2,[r.Palette.background4]:r.Color.lightGray3,[r.Palette.background5]:r.Color.lightGray4,[r.Palette.background6]:r.Color.lightGray5,[r.Palette.brandSecondary]:r.Color.darkGray5,[r.Palette.inputBackground]:r.Color.lightGray3,[r.Palette.inputColor]:r.Color.darkGray5,[r.Palette.inputPlaceholder]:r.Color.darkGray2,[r.Palette.inputDisabled]:r.Color.neutralGray,[r.Palette.inputFocused]:r.Color.lightGray5,[r.Palette.inputBorder]:r.Color.neutralGray,[r.Palette.textDefault]:r.Color.darkGray5,[r.Palette.textHelp]:r.Color.darkGray3,[r.Palette.textInactive]:r.Color.neutralGray},a={...o,[r.Palette.background1]:r.Color.darkGray6,[r.Palette.background2]:r.Color.darkGray5,[r.Palette.background3]:r.Color.darkGray4,[r.Palette.background4]:r.Color.darkGray3,[r.Palette.background5]:r.Color.darkGray2,[r.Palette.background6]:r.Color.darkGray1,[r.Palette.brandSecondary]:r.Color.darkGray2,[r.Palette.inputBackground]:r.Color.darkGray1,[r.Palette.inputColor]:r.Color.white,[r.Palette.inputPlaceholder]:r.Color.lightGray5,[r.Palette.inputDisabled]:r.Color.neutralGray,[r.Palette.inputFocused]:r.Color.lightGray5,[r.Palette.inputBorder]:r.Color.neutralGray,[r.Palette.textDefault]:r.Color.white,[r.Palette.textHelp]:r.Color.lightGray5,[r.Palette.textInactive]:r.Color.neutralGray};r.Color.darkGray5,r.Color.darkGray5,r.Color.darkGray2,r.Color.darkGray5},806:(e,t,n)=>{"use strict";n.d(t,{D9:()=>c,TZ:()=>u,q9:()=>r});var r,o,i=n(678);!function(e){e.Workspace="openfin-workspace",e.OldWorkspace="openfin-browser"}(r||(r={})),function(e){e.FinProtocol="fin-protocol"}(o||(o={}));const a={uuid:i.AB},l={uuid:r.Workspace},s=e=>{if(!i.sS)throw new Error("getApplication cannot be used in a non OpenFin env. Avoid using this during pre-rendering.");return fin.Application.wrapSync(e)},c=()=>s(a),u=()=>s(l)},117:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(678);const o=r.Ax&&"complete"!==document.readyState&&new Promise((e=>document.addEventListener("readystatechange",(()=>{"complete"===document.readyState&&e()}))));function i(e){let t;const n=new Set;return()=>{if(!r.sS)throw new Error("getChannelClient cannot be used outside an OpenFin env. Avoid using this method during pre-rendering.");return t||(t=(async()=>{await o;const i={clientAPIVersion:r.u0},a=await fin.InterApplicationBus.Channel.connect(e,{payload:i});return a.onDisconnection((async()=>{n.forEach((e=>e())),n.clear(),console.warn(`disconnected from channel provider ${e}`),t=void 0})),a})().then((e=>(e.addDisconnectionListener=e=>{n.add(e)},e))).catch((n=>{throw t=void 0,new Error(`failed to connect to channel provider ${e}: ${n}`)}))),t}}},678:(e,t,n)=>{"use strict";var r;n.d(t,{AB:()=>s,Ax:()=>i,GX:()=>f,ZK:()=>u,_V:()=>a,aW:()=>d,oC:()=>c,rx:()=>h,sS:()=>o,u0:()=>v}),function(e){e.Local="local",e.Dev="dev",e.Staging="staging",e.Prod="prod"}(r||(r={}));const o="undefined"!=typeof window&&"undefined"!=typeof fin,i=("undefined"==typeof process||process.env?.JEST_WORKER_ID,"undefined"!=typeof window),a=i&&"undefined"!=typeof indexedDB,l=i?window.origin:r.Local,s=o&&fin.me.uuid,c=o&&fin.me.name,u=(o&&fin.me.entityType,"prod"===r.Local),f=(r.Dev,r.Staging,r.Prod,"fins://system-apps/workspace"),d="https://workspace.openfin.co/workspace/17.0.2/app.json",p=e=>e.startsWith("http://")||e.startsWith("https://")?e:l+e,h=(p("https://workspace.openfin.co/workspace/17.0.2"),p("https://workspace.openfin.co/workspace/17.0.2")),v=("undefined"!=typeof WORKSPACE_DOCS_PLATFORM_URL&&p(WORKSPACE_DOCS_PLATFORM_URL),"undefined"!=typeof WORKSPACE_DOCS_CLIENT_URL&&p(WORKSPACE_DOCS_CLIENT_URL),"17.0.2");"undefined"!=typeof WORKSPACE_BUILD_SHA&&WORKSPACE_BUILD_SHA},311:(e,t,n)=>{"use strict";n.d(t,{C$:()=>r});n(678),n(121);const r=e=>{const t=[];return(e&&Array.isArray(e)?e:[]).forEach((e=>{if("component"===e.type)return t.push(e.componentState);const n=r(e.content);t.push(...n)})),t};new Map},61:(e,t,n)=>{"use strict";var r;n.d(t,{Z:()=>o}),function(e){e.CurrentWorkspaceId="currentWorkspaceId",e.LastFocusedBrowserWindow="lastFocusedBrowserWindow",e.MachineName="machineName",e.NewTabPageLayout="NewTabPageLayout",e.NewTabPageSort="NewTabPageSort",e.DockPosition="DockPosition",e.SelectedColorScheme="SelectedColorScheme",e.HasMovedStore="HasMovedStore"}(r||(r={}));const o=r},728:(e,t,n)=>{"use strict";n.d(t,{L:()=>o,r:()=>i});var r=n(678);const o=(e,t)=>{localStorage.setItem(`${r.AB}-${e}`,t)},i=e=>localStorage.getItem(`${r.AB}-${e}`)},278:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});const r="of-workspace-";const o=new class{mark(e){performance.mark(`${r}${e}`)}markStart(e){performance.mark(`${r}${e}-start`)}markEnd(e){performance.mark(`${r}${e}-end`)}markEndAndMeasure(e){performance.mark(`${r}${e}-end`);try{return performance.measure(`${r}${e}`,`${r}${e}-start`,`${r}${e}-end`)}catch(e){0}}markAndMeasure(e,t){performance.mark(`${r}${e}`);try{return performance.measure(`${r}${e}-measure`,`${r}${t}-start`,`${r}${e}`)}catch(e){0}}reportWorkspacePerformanceEntries(){return performance.getEntriesByType("measure").filter((e=>e.name.startsWith(r)))}reportWorkspacePerformance(){return this.reportWorkspacePerformanceEntries().map((e=>({name:e.name.replace(`${r}`,"").replace("-measure",""),duration:e.duration})))}}},5:(e,t,n)=>{"use strict";var r;n.d(t,{ZP:()=>l,de:()=>i}),function(e){e.Home="/home/",e.HomeSearch="/home/?deeplink=search",e.HomePagesRename="/home/pages/rename/",e.Dock="/dock/",e.Browser="/browser/",e.BrowserPopupMenu="/browser/popup-menu/",e.Provider="/provider/",e.BrowserPopupMenuSharePage="/browser/popup-menu/share-page/",e.BrowserPopupMenuSaveModal="/browser/popup-menu/save-modal/",e.BrowserPopupMenuLayouts="/browser/popup-menu/layouts/layouts/",e.BrowserPopupMenuColorLinking="/browser/popup-menu/color-linking/color-linking/",e.BrowserIndicator="/browser/indicator/",e.ResponseModal="/browser/popup-menu/response-modal/",e.CloseConfirmationModal="/browser/popup-menu/close-confirmation-modal/",e.Docs="/provider/docs/",e.Storefront="/storefront/",e.DeprecatedAlert="/provider/deprecated-alert/",e.Analytics="/provider/analytics/"}(r||(r={}));const o="/microsoft-365-integration-assets/",i={IconOpenFinLogo:"/icons/openfinlogo.svg",IconFilter:"/icons/filter.svg",LightStorefront:"/icons/lightstorefront.png",DarkStorefront:"/icons/darkstorefront.png",CallIconLight:"/icons/call-icon-light.svg",CallIconDark:"/icons/call-icon-dark.svg",ChatIconLight:"/icons/chat-icon-light.svg",ChatIconDark:"/icons/chat-icon-dark.svg",MessageIconLight:"/icons/message-icon-light.svg",MessageIconDark:"/icons/message-icon-dark.svg",Microsoft365Assets:{Microsoft365DocumentIcon:`${o}microsoft-365-document-icon.svg`,Microsoft365ExcelIcon:`${o}microsoft-365-excel-icon.svg`,Microsoft365PowerpointIcon:`${o}microsoft-365-powerpoint-icon.svg`,Microsoft365OutlookIcon:`${o}microsoft-365-outlook-icon.svg`,Microsoft365TeamsIcon:`${o}microsoft-365-teams-icon.svg`,Microsoft365Icon:`${o}microsoft-365-icon.svg`,PDFFileIcon:`${o}pdf-file-icon.svg`}};var a;!function(e){e.Search="search"}(a||(a={}));const l=r},650:(e,t,n)=>{"use strict";n.d(t,{K3:()=>i});var r;n(678);!function(e){e.Home="/home",e.Browser="/browser",e.Provider="/provider",e.Storefront="/storefront",e.Dock="/dock"}(r||(r={}));const o="/workspace/17.0.2";function i(e){return o+e}},912:(e,t,n)=>{"use strict";n(311),n(61)},558:(e,t,n)=>{"use strict";n.d(t,{Wn:()=>B,ck:()=>H,d9:()=>V});var r=n(678),o=n(121),i=n(100);n(378);var a=n(806);var l=n(5),s=(n(420),n(127));n(438);var c=n(311);const u=async()=>{const e=await(0,o.GP)();return(await Promise.all(e.map((async e=>{try{return(async e=>{const t=await(0,s.Dm)(e);return await t.dispatch(s.yz.GetPages)})(e.identity)}catch(t){JSON.stringify(e.identity);const n=await e.getOptions();return n.workspacePlatform?.pages||[]}})))).reduce(((e,t)=>e.concat(t)),[])};new Map;var f;!function(e){e.ERROR="error",e.SUCCESS="success",e.INFO="info"}(f||(f={}));const d=((e,t)=>{const n=e;return n.workspacePlatform||(n.workspacePlatform={}),n.workspacePlatform._internalDeferShowOptions={setAsForeground:!!t,deferShowEnabled:!0,autoShow:n.workspacePlatform?._internalAutoShow||n.workspacePlatform?._internalDeferShowOptions?.autoShow||void 0===n.autoShow||n.autoShow},n.autoShow=!1,n})({alwaysOnTop:!0,autoShow:!1,frame:!1,resizable:!1,showTaskbarIcon:!1});var p;!function(e){e.Locked="LockClosedIcon",e.Unlocked="LockOpen1Icon"}(p||(p={}));!function(e=d){const t=new Map}();var h=n(61),v=n(728);n(650);const g=(e,t=0)=>{let n,r,o=!1;const i=async r=>{const a=await e(...r);if(o){await new Promise((e=>setTimeout(e,t)));const e=n;return n=void 0,o=!1,i(e)}return a};return(...e)=>(r?(o=!0,n=e):r=i(e).catch((e=>{throw console.error("makeDebouncedFunc",e),e})).finally((()=>{r=void 0})),r)};function C(e,t){return async(n,...r)=>{e.has(n)&&e.get(n).forEach((e=>e(...r))),t&&await t({event:n,payload:r})}}function m(e,t){return t&&t((t=>{const{event:n,payload:r}=t;e.has(n)&&e.get(n).forEach((e=>e(...r)))})),(t,n)=>{e.has(t)||e.set(t,new Set),e.get(t).add(n)}}function y(e){return(t,n)=>{e.has(t)||e.set(t,new Set);const r=e.get(t),o=(...e)=>{n(...e),r.delete(o)};r.add(o)}}function w(e){return(t,n)=>{e.has(t)&&e.get(t).delete(n)}}n(65);o.IA.BrowserMenu;(function(e){const t=new Map;C(t,(t=>r.sS&&fin.InterApplicationBus.publish(e,t))),m(t,(t=>r.sS&&fin.InterApplicationBus.subscribe({uuid:fin.me.uuid},e,t))),w(t),y(t)})("window.menu"),g((()=>(0,a.D9)().getChildWindows()),500);new Map;var b=n(198),x=n.n(b);const _=e=>`${e.name}`,O=async()=>{const e=await u(),t=new Set;return e.forEach((e=>{[...(0,c.C$)(e.layout.content),...(e.panels||[]).map((e=>e.viewOptions))].forEach((e=>{const n=_(e);n&&t.add(n)}))})),t};x()((()=>async function(){const e=await O(),t=(0,o.lQ)(),n=(await t.getCurrentViews()).filter((({identity:t})=>!e.has(_(t))));n.length&&setTimeout((async()=>{const e=await O();n.forEach((({identity:t})=>{const n=_(t);e.has(n)||fin.View.wrapSync(t).destroy()}))}),2500)}().catch((e=>console.debug("error in scheduleViewCleanup",e)))),5e3,{leading:!1,trailing:!0});x()((async()=>{const e=await fin.Platform.getCurrentSync().Application.getChildWindows();let t,n=!1;for(const r of e)if(r.identity.name===o.IA.BrowserMenu?t=r:await(0,o.B)(r.identity)&&(n=!0),n)break;!n&&t&&t.close()}),100,{leading:!1,trailing:!0});n(912);function L(e){return new Promise(((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)}))}function E(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=L(n);return(e,n)=>r.then((r=>n(r.transaction(t,e).objectStore(t))))}let S;function M(){return S||(S=E("keyval-store","keyval")),S}function j(e,t){return e.openCursor().onsuccess=function(){this.result&&(t(this.result),this.result.continue())},L(e.transaction)}const k=async(e,t,n)=>{const r=v.r(h.Z.HasMovedStore),o=r?JSON.parse(r):{};if(o&&o[n])return;o[n]=!0,v.L(h.Z.HasMovedStore,JSON.stringify(o));const i=await function(e=M()){return e("readonly",(t=>{if(t.getAll&&t.getAllKeys)return Promise.all([L(t.getAllKeys()),L(t.getAll())]).then((([e,t])=>e.map(((e,n)=>[e,t[n]]))));const n=[];return e("readonly",(e=>j(e,(e=>n.push([e.key,e.value]))).then((()=>n))))}))}(e);await function(e,t=M()){return t("readwrite",(t=>(e.forEach((e=>t.put(e[1],e[0]))),L(t.transaction))))}(i,t)},R=(e,t)=>E(e+"-"+fin.me.uuid,t),P=(e,t)=>{const n=R(e,t),r=E(e,t);return k(r,n,e),n};r._V&&r.sS&&P("openfin-home-pages","pages");var I;!function(e){e.Label="normal",e.Separator="separator",e.Submenu="submenu",e.Checkbox="checkbox"}(I||(I={}));I.Separator;n(337);I.Label,i.wh.CloseWindow,I.Label,i.wh.OpenStorefront,I.Label,i.wh.Quit,I.Label,i.wh.NewWindow,I.Label,i.wh.SavePage,I.Label,i.wh.SavePageAs,I.Label,i.wh.RestoreChanges,I.Label,i.wh.SaveWorkspace,I.Label,i.wh.SaveWorkspaceAs,I.Label,i.wh.RenameWorkspace;r._V&&r.sS&&R("dock-provider-configs","dock-provider-configs");n(705);r._V&&r.sS&&P("openfin-workspace-platform-workspaces","workspaces");n(564);n(495);r.rx,l.ZP.Browser,r.rx;var A;!function(e){e.Browser="Browser",e.Dock="Dock",e.Home="Home",e.Notification="Notification",e.Storefront="Storefront",e.Platform="Platform",e.Theming="Theming",e.Microflow="Microflow"}(A||(A={}));const T=async(e,t,n="workspace-licensing")=>{const o={apiVersion:t.apiVersion||r.u0,componentName:e,componentVersion:t.componentVersion||r.u0,allowed:t.allowed,rejectionCode:t.rejectionCode};fin.System.registerUsage({type:n,data:o})};const H=e=>{o.OI.uuid===o.Gi.uuid&&o.OI.name===o.Gi.name||T(A.Home,e)},V=e=>{T(A.Storefront,e)},B=e=>{T(A.Dock,e)};var D;!function(e){e.Browser="Browser",e.Dock="Dock",e.Home="Home",e.Notification="Notification",e.Storefront="Storefront",e.Platform="Platform",e.Theming="Theming",e.Interop="Interop"}(D||(D={}));new Map},121:(e,t,n)=>{"use strict";n.d(t,{B:()=>p,GP:()=>h,Gi:()=>l,IA:()=>r,JV:()=>v,OI:()=>c,ZJ:()=>u,iW:()=>d,lQ:()=>s,nd:()=>f});var r,o=n(806),i=n(678);!function(e){e.Home="openfin-home",e.Dock="openfin-dock",e.Storefront="openfin-storefront",e.HomeInternal="openfin-home-internal",e.BrowserMenu="openfin-browser-menu",e.BrowserIndicator="openfin-browser-indicator",e.BrowserWindow="internal-generated-window",e.ClassicWindow="internal-generated-classic-window"}(r||(r={}));function a(e){if(!i.sS)throw new Error("getOFWindow can only be used in an OpenFin env. Avoid calling this method during pre-rendering.");return fin.Window.wrapSync(e)}const l={name:i.oC,uuid:i.AB};function s(){return a(l)}const c={name:r.Home,uuid:o.q9.Workspace},u={name:r.Dock,uuid:o.q9.Workspace},f={name:r.Storefront,uuid:o.q9.Workspace},d={name:o.q9.Workspace,uuid:o.q9.Workspace};const p=async e=>{if(!e.name.startsWith(r.BrowserWindow))return!1;const t=await fin.Window.wrapSync({name:e.name,uuid:e.uuid??fin.me.uuid}).getOptions();return!!t.workspacePlatform?.pages};async function h(){const e=await fin.Application.getCurrentSync().getChildWindows(),t=await Promise.all(e.map((async e=>p(e.identity))));return e.filter(((e,n)=>t[n]))}const v=e=>a(e).getOptions().then((()=>!0)).catch((()=>!1))}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var r={};(()=>{"use strict";n.r(r),n.d(r,{ActionTrigger:()=>Ge.p,AppManifestType:()=>Ye.L,ButtonStyle:()=>qe.ZJ,CLIAction:()=>$.Pt,CLIFilterOptionType:()=>$.el,CLITemplate:()=>$.yW,ContainerTemplateFragmentNames:()=>qe.p6,Dock:()=>e,DockButtonNames:()=>p.v,Home:()=>O,Integrations:()=>t,Legacy:()=>o,PresentationTemplateFragmentNames:()=>qe.Go,SearchTagBackground:()=>Ge.w,Storefront:()=>ze,StorefrontTemplate:()=>Ye.T,TemplateFragmentTypes:()=>qe.bI});var e={};n.r(e),n.d(e,{DockButtonNames:()=>p.v,deregister:()=>m,minimize:()=>y,register:()=>C,show:()=>w});var t={};n.r(t),n.d(t,{Microsoft365WorkflowIntegration:()=>Fe});var o={};n.r(o),n.d(o,{getPages:()=>Ue,getWorkspaces:()=>We});var i=n(678),a=n(278),l=n(558),s=n(121),c=n(150),u=n(438),f=n(82),d=n(693),p=n(427);let h,v;const g=(e=[])=>{const t=e.filter((e=>!!e.id)).map((e=>e.id));if(new Set(t).size!==t.length)throw new Error("Dock provider buttons must have unique identifiers if specified.")},C=async e=>{(0,d.E)("dock",s.ZJ);const t=await(async e=>{await(0,u.Hh)(fin.me.identity);const t=await(0,c.xZ)();if(v)throw new Error("Error using `Dock.register`. A Dock provider for this Workspace Platform is already registered. Call `Dock.deregister` before calling `Dock.register` again.");return v=e,e.clientAPIVersion=i.u0,t.dispatch("register-provider",{providerType:"dock",info:e})})(e);return h=new Promise(((n,r)=>{try{(e=>{e.workspaceComponents&&!Array.isArray(e.workspaceComponents)&&console.warn("Using the `WorkspaceComponentButtonOptions` type to configure the Workspace Components Buttons is deprecated. Please use `WorkspaceButtonsConfig` instead.")})(e),g(e.buttons),(0,l.Wn)({allowed:!0,componentVersion:t?.workspaceVersion}),t?.workspaceVersion,i.u0,n({clientAPIVersion:i.u0,workspaceVersion:t?.workspaceVersion??"",updateDockProviderConfig:async t=>{if(!v)throw new Error("Error using `Dock.updateDockProviderConfig`. Dock provider is not registered. Make sure to call `Dock.register` first.");g(t.buttons);const n=await(0,c.xZ)();await n.dispatch("update-provider",{providerType:"dock",provider:{...e,workspaceComponents:t.workspaceComponents,buttons:t.buttons,title:t.title,icon:t.icon,disableUserRearrangement:t.disableUserRearrangement,id:e.id}})}})}catch(e){(0,l.Wn)({allowed:!1,rejectionCode:e instanceof Error?e.message:"unknown"}),r(e),h=void 0}finally{a.Z.markEndAndMeasure("dock-registration")}})),h},m=async()=>{if(await h,!v)throw new Error("Error using `Dock.deregister`. Dock provider is not registered. Call `Dock.register` before calling `Dock.deregister`.");const e=await(0,c.xZ)();await e.dispatch("deregister-provider",{providerType:"dock",id:v.id}),v=void 0,h=void 0},y=async()=>{await h,await(0,c.aB)(),await(0,f.R8)("dock")},w=async()=>{a.Z.markStart("dock-show"),await h,await(0,c.aB)(),await(0,f.X_)("dock")};var b,x,_,O=n(261),L=function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},E=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};b=new WeakMap,x=new WeakMap,_=new WeakMap;const S=class{constructor(e){b.set(this,void 0),x.set(this,void 0),_.set(this,void 0),L(this,b,e,"f"),L(this,x,new Map,"f"),L(this,_,[],"f")}get(e){if(E(this,x,"f").has(e))return this.updateQueue(e),E(this,x,"f").get(e)}has(e){return E(this,x,"f").has(e)}put(e,t){if(E(this,x,"f").has(e))E(this,x,"f").set(e,t),this.updateQueue(e);else{if(E(this,_,"f").length===E(this,b,"f")){const e=E(this,_,"f").shift();e&&E(this,x,"f").delete(e)}E(this,x,"f").set(e,t),E(this,_,"f").push(e)}}updateQueue(e){const t=E(this,_,"f").indexOf(e);-1!==t&&(E(this,_,"f").splice(t,1),E(this,_,"f").push(e))}};function M(e){return e&&"object"==typeof e&&!Array.isArray(e)}function j(e,...t){if(!t.length)return e;const n=t.shift();return M(e)&&M(n)&&Object.entries(n).forEach((([t,n])=>{if(M(n))return e[t]||(e[t]={}),j(e[t],n);e[t]=n})),j(e,...t)}var k,R,P,I,A,T=n(5),H=n(650),V=function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},B=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};R=new WeakMap,P=new WeakMap,I=new WeakMap,k=new WeakSet,A=function(){const e=Array.from(B(this,R,"f").entries()).reduce(((e,t)=>!e||t[1].timestamp<e[1].timestamp?t:e),null);return e?e[0]:null};const D=class{constructor(e=3e5,t=100){k.add(this),R.set(this,void 0),P.set(this,void 0),I.set(this,void 0),V(this,R,new Map,"f"),V(this,P,e,"f"),V(this,I,t,"f")}get(e){const t=B(this,R,"f").get(e);if(!t)return null;return Date.now()-t.timestamp<B(this,P,"f")?t.value:(B(this,R,"f").delete(e),null)}put(e,t){if(B(this,R,"f").size>=B(this,I,"f")){const e=B(this,k,"m",A).call(this);null!=e&&B(this,R,"f").delete(e)}B(this,R,"f").set(e,{value:t,timestamp:Date.now()})}remove(e){B(this,R,"f").delete(e)}clear(){B(this,R,"f").clear()}};var Z,$=n(758),F=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};const N={};class U{constructor(e){Z.set(this,new Set),this._initializeWorkflows=async(e=this.config)=>{const{workflows:t}=e;for(const e in t){if(!t[e].disableAutoInitialize)try{F(this,Z,"f").has(e)?console.warn(`Workflow ${e} already initialized.`):(F(this,Z,"f").add(e),await this.initializeWorkflow(e))}catch(t){F(this,Z,"f").delete(e),console.error(`Error registering ${e}:`,t)}}};const t=j({},N,e);this.config=t}async initializeWorkflow(e){F(this,Z,"f").add(e)}}Z=new WeakMap;var W={876:e=>{const{AbortController:t,AbortSignal:n}="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;e.exports=t,e.exports.AbortSignal=n,e.exports.default=t},60:(e,t)=>{t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=l(e),a=i[0],s=i[1],c=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),u=0,f=s>0?a-4:a;for(n=0;n<f;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=16383,l=0,c=r-o;l<c;l+=a)i.push(s(e,l,l+a>c?c:l+a));return 1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function s(e,t,r){for(var o,i,a=[],l=t;l<r;l+=3)o=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(255&e[l+2]),a.push(n[(i=o)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},485:(e,t,n)=>{const r=n(60),o=n(215),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function l(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return f(e)}return c(e,t,n)}function c(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!s.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|v(e,t);let r=l(n);const o=r.write(e,t);return o!==n&&(r=r.slice(0,o)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Y(e,Uint8Array)){const t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer))return p(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return p(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);const o=function(e){if(s.isBuffer(e)){const t=0|h(e.length),n=l(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||K(e.length)?l(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function f(e){return u(e),l(e<0?0:0|h(e))}function d(e){const t=e.length<0?0:0|h(e.length),n=l(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function p(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,s.prototype),r}function h(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function v(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(e).length;default:if(o)return r?-1:z(e).length;t=(""+t).toLowerCase(),o=!0}}function g(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return k(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return M(this,t,n);case"latin1":case"binary":return j(this,t,n);case"base64":return L(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function C(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),K(n=+n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,o){let i,a=1,l=e.length,s=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,l/=2,s/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){let r=-1;for(i=n;i<l;i++)if(c(e,i)===c(t,-1===r?0:i-r)){if(-1===r&&(r=i),i-r+1===s)return r*a}else-1!==r&&(i-=i-r),r=-1}else for(n+s>l&&(n=l-s),i=n;i>=0;i--){let n=!0;for(let r=0;r<s;r++)if(c(e,i+r)!==c(t,r)){n=!1;break}if(n)return i}return-1}function w(e,t,n,r){n=Number(n)||0;const o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;const i=t.length;let a;for(r>i/2&&(r=i/2),a=0;a<r;++a){const r=parseInt(t.substr(2*a,2),16);if(K(r))return a;e[n+a]=r}return a}function b(e,t,n,r){return q(z(t,e.length-n),e,n,r)}function x(e,t,n,r){return q(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function _(e,t,n,r){return q(G(t),e,n,r)}function O(e,t,n,r){return q(function(e,t){let n,r,o;const i=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function L(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);const r=[];let o=t;for(;o<n;){const t=e[o];let i=null,a=t>239?4:t>223?3:t>191?2:1;if(o+a<=n){let n,r,l,s;switch(a){case 1:t<128&&(i=t);break;case 2:n=e[o+1],128==(192&n)&&(s=(31&t)<<6|63&n,s>127&&(i=s));break;case 3:n=e[o+1],r=e[o+2],128==(192&n)&&128==(192&r)&&(s=(15&t)<<12|(63&n)<<6|63&r,s>2047&&(s<55296||s>57343)&&(i=s));break;case 4:n=e[o+1],r=e[o+2],l=e[o+3],128==(192&n)&&128==(192&r)&&128==(192&l)&&(s=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&l,s>65535&&s<1114112&&(i=s))}}null===i?(i=65533,a=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=a}return function(e){const t=e.length;if(t<=S)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=S));return n}(r)}t.kMaxLength=a,s.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return function(e,t,n){return u(e),e<=0?l(e):void 0!==t?"string"==typeof n?l(e).fill(t,n):l(e).fill(t):l(e)}(e,t,n)},s.allocUnsafe=function(e){return f(e)},s.allocUnsafeSlow=function(e){return f(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(Y(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),Y(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=s.allocUnsafe(t);let o=0;for(n=0;n<e.length;++n){let t=e[n];if(Y(t,Uint8Array))o+t.length>r.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(r,o)):Uint8Array.prototype.set.call(r,t,o);else{if(!s.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,o)}o+=t.length}return r},s.byteLength=v,s.prototype._isBuffer=!0,s.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)C(this,t,t+1);return this},s.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)C(this,t,t+3),C(this,t+1,t+2);return this},s.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)C(this,t,t+7),C(this,t+1,t+6),C(this,t+2,t+5),C(this,t+3,t+4);return this},s.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?E(this,0,e):g.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){let e="";const n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},i&&(s.prototype[i]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,o){if(Y(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;let i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const l=Math.min(i,a),c=this.slice(r,o),u=e.slice(t,n);for(let e=0;e<l;++e)if(c[e]!==u[e]){i=c[e],a=u[e];break}return i<a?-1:a<i?1:0},s.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},s.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},s.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":case"latin1":case"binary":return x(this,e,t,n);case"base64":return _(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const S=4096;function M(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function j(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function k(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let o="";for(let r=t;r<n;++r)o+=X[e[r]];return o}function R(e,t,n){const r=e.slice(t,n);let o="";for(let e=0;e<r.length-1;e+=2)o+=String.fromCharCode(r[e]+256*r[e+1]);return o}function P(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,r,o,i){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function A(e,t,n,r,o){F(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function T(e,t,n,r,o){F(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n+7]=i,i>>=8,e[n+6]=i,i>>=8,e[n+5]=i,i>>=8,e[n+4]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function H(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function V(e,t,n,r,i){return t=+t,n>>>=0,i||H(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function B(e,t,n,r,i){return t=+t,n>>>=0,i||H(e,0,n,8),o.write(e,t,n,r,52,8),n+8}s.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return r},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);let r=this[e+--t],o=1;for(;t>0&&(o*=256);)r+=this[e+--t]*o;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=J((function(e){N(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||U(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(o)<<BigInt(32))})),s.prototype.readBigUInt64BE=J((function(e){N(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||U(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(o)})),s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);let r=t,o=1,i=this[e+--r];for(;r>0&&(o*=256);)i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},s.prototype.readInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||P(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||P(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=J((function(e){N(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||U(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),s.prototype.readBigInt64BE=J((function(e){N(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||U(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||P(e,4,this.length),o.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||P(e,4,this.length),o.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||P(e,8,this.length),o.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||P(e,8,this.length),o.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||I(this,e,t,n,Math.pow(2,8*n)-1,0);let o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||I(this,e,t,n,Math.pow(2,8*n)-1,0);let o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigUInt64LE=J((function(e,t=0){return A(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),s.prototype.writeBigUInt64BE=J((function(e,t=0){return T(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);I(this,e,t,n,r-1,-r)}let o=0,i=1,a=0;for(this[t]=255&e;++o<n&&(i*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/i>>0)-a&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);I(this,e,t,n,r-1,-r)}let o=n-1,i=1,a=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/i>>0)-a&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigInt64LE=J((function(e,t=0){return A(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),s.prototype.writeBigInt64BE=J((function(e,t=0){return T(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),s.prototype.writeFloatLE=function(e,t,n){return V(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return V(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const o=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),o},s.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{const i=s.isBuffer(e)?e:s.from(e,r),a=i.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=i[o%a]}return this};const D={};function Z(e,t,n){D[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function $(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function F(e,t,n,r,o,i){if(e>n||e<t){const r="bigint"==typeof t?"n":"";let o;throw o=i>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(i+1)}${r}`:`>= -(2${r} ** ${8*(i+1)-1}${r}) and < 2 ** ${8*(i+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new D.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,n){N(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||U(t,e.length-(n+1))}(r,o,i)}function N(e,t){if("number"!=typeof e)throw new D.ERR_INVALID_ARG_TYPE(t,"number",e)}function U(e,t,n){if(Math.floor(e)!==e)throw N(e,n),new D.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new D.ERR_BUFFER_OUT_OF_BOUNDS;throw new D.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}Z("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),Z("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),Z("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,o=n;return Number.isInteger(n)&&Math.abs(n)>2**32?o=$(String(n)):"bigint"==typeof n&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=$(o)),o+="n"),r+=` It must be ${t}. Received ${o}`,r}),RangeError);const W=/[^+/0-9A-Za-z-_]/g;function z(e,t){let n;t=t||1/0;const r=e.length;let o=null;const i=[];for(let a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function G(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function q(e,t,n,r){let o;for(o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function Y(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function K(e){return e!=e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let o=0;o<16;++o)t[r+o]=e[n]+e[o]}return t}();function J(e){return"undefined"==typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}},465:e=>{var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}v(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&v(e,"error",t,{once:!0})}(e,o)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function s(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var o,i,a,c;if(l(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=s(e))>0&&a.length>o&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,c=u,console&&console.warn&&console.warn(c)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=u.bind(r);return o.listener=n,r.wrapFn=o,o}function d(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):h(o,o.length)}function p(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function v(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(i){r.once&&e.removeEventListener(t,o),n(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return s(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var l=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw l.context=a,l}var s=i[e];if(void 0===s)return!1;if("function"==typeof s)r(s,this,t);else{var c=s.length,u=h(s,c);for(n=0;n<c;++n)r(u[n],this,t)}return!0},i.prototype.addListener=function(e,t){return c(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return c(this,e,t,!0)},i.prototype.once=function(e,t){return l(t),this.on(e,f(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,f(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,o,i,a;if(l(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return d(this,e,!0)},i.prototype.rawListeners=function(e){return d(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},215:(e,t)=>{t.read=function(e,t,n,r,o){var i,a,l=8*o-r-1,s=(1<<l)-1,c=s>>1,u=-7,f=n?o-1:0,d=n?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-u)-1,p>>=-u,u+=l;u>0;i=256*i+e[t+f],f+=d,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+f],f+=d,u-=8);if(0===i)i=1-c;else{if(i===s)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=c}return(p?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,l,s,c=8*i-o-1,u=(1<<c)-1,f=u>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),(t+=a+f>=1?d/s:d*Math.pow(2,1-f))*s>=2&&(a++,s/=2),a+f>=u?(l=0,a=u):a+f>=1?(l=(t*s-1)*Math.pow(2,o),a+=f):(l=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&l,p+=h,l/=256,o-=8);for(a=a<<o|l,c+=o;c>0;e[n+p]=255&a,p+=h,a/=256,c-=8);e[n+p-h]|=128*v}},951:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",l="__lodash_placeholder__",s=32,c=128,u=1/0,f=9007199254740991,d=NaN,p=4294967295,h=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",s],["partialRight",64],["rearg",256]],v="[object Arguments]",g="[object Array]",C="[object Boolean]",m="[object Date]",y="[object Error]",w="[object Function]",b="[object GeneratorFunction]",x="[object Map]",_="[object Number]",O="[object Object]",L="[object Promise]",E="[object RegExp]",S="[object Set]",M="[object String]",j="[object Symbol]",k="[object WeakMap]",R="[object ArrayBuffer]",P="[object DataView]",I="[object Float32Array]",A="[object Float64Array]",T="[object Int8Array]",H="[object Int16Array]",V="[object Int32Array]",B="[object Uint8Array]",D="[object Uint8ClampedArray]",Z="[object Uint16Array]",$="[object Uint32Array]",F=/\b__p \+= '';/g,N=/\b(__p \+=) '' \+/g,U=/(__e\(.*?\)|\b__t\)) \+\n'';/g,W=/&(?:amp|lt|gt|quot|#39);/g,z=/[&<>"']/g,G=RegExp(W.source),q=RegExp(z.source),Y=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,se=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,ue=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,pe=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,Ce=/^(?:0|[1-9]\d*)$/,me=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ye=/($^)/,we=/['\n\r\u2028\u2029\\]/g,be="\\ud800-\\udfff",xe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",_e="\\u2700-\\u27bf",Oe="a-z\\xdf-\\xf6\\xf8-\\xff",Le="A-Z\\xc0-\\xd6\\xd8-\\xde",Ee="\\ufe0e\\ufe0f",Se="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Me="["+be+"]",je="["+Se+"]",ke="["+xe+"]",Re="\\d+",Pe="["+_e+"]",Ie="["+Oe+"]",Ae="[^"+be+Se+Re+_e+Oe+Le+"]",Te="\\ud83c[\\udffb-\\udfff]",He="[^"+be+"]",Ve="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",De="["+Le+"]",Ze="\\u200d",$e="(?:"+Ie+"|"+Ae+")",Fe="(?:"+De+"|"+Ae+")",Ne="(?:['’](?:d|ll|m|re|s|t|ve))?",Ue="(?:['’](?:D|LL|M|RE|S|T|VE))?",We="(?:"+ke+"|"+Te+")?",ze="["+Ee+"]?",Ge=ze+We+"(?:"+Ze+"(?:"+[He,Ve,Be].join("|")+")"+ze+We+")*",qe="(?:"+[Pe,Ve,Be].join("|")+")"+Ge,Ye="(?:"+[He+ke+"?",ke,Ve,Be,Me].join("|")+")",Ke=RegExp("['’]","g"),Xe=RegExp(ke,"g"),Je=RegExp(Te+"(?="+Te+")|"+Ye+Ge,"g"),Qe=RegExp([De+"?"+Ie+"+"+Ne+"(?="+[je,De,"$"].join("|")+")",Fe+"+"+Ue+"(?="+[je,De+$e,"$"].join("|")+")",De+"?"+$e+"+"+Ne,De+"+"+Ue,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Re,qe].join("|"),"g"),et=RegExp("["+Ze+be+xe+Ee+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,ot={};ot[I]=ot[A]=ot[T]=ot[H]=ot[V]=ot[B]=ot[D]=ot[Z]=ot[$]=!0,ot[v]=ot[g]=ot[R]=ot[C]=ot[P]=ot[m]=ot[y]=ot[w]=ot[x]=ot[_]=ot[O]=ot[E]=ot[S]=ot[M]=ot[k]=!1;var it={};it[v]=it[g]=it[R]=it[P]=it[C]=it[m]=it[I]=it[A]=it[T]=it[H]=it[V]=it[x]=it[_]=it[O]=it[E]=it[S]=it[M]=it[j]=it[B]=it[D]=it[Z]=it[$]=!0,it[y]=it[w]=it[k]=!1;var at={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lt=parseFloat,st=parseInt,ct="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ut="object"==typeof self&&self&&self.Object===Object&&self,ft=ct||ut||Function("return this")(),dt=t&&!t.nodeType&&t,pt=dt&&e&&!e.nodeType&&e,ht=pt&&pt.exports===dt,vt=ht&&ct.process,gt=function(){try{return pt&&pt.require&&pt.require("util").types||vt&&vt.binding&&vt.binding("util")}catch(e){}}(),Ct=gt&&gt.isArrayBuffer,mt=gt&&gt.isDate,yt=gt&&gt.isMap,wt=gt&&gt.isRegExp,bt=gt&&gt.isSet,xt=gt&&gt.isTypedArray;function _t(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ot(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function Lt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Et(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function St(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Mt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function jt(e,t){return!(null==e||!e.length)&&Dt(e,t,0)>-1}function kt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Rt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Pt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function It(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function At(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Tt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Ht=Nt("length");function Vt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Bt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Dt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Bt(e,$t,n)}function Zt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function $t(e){return e!=e}function Ft(e,t){var n=null==e?0:e.length;return n?zt(e,t)/n:d}function Nt(e){return function(t){return null==t?o:t[e]}}function Ut(e){return function(t){return null==e?o:e[t]}}function Wt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function zt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function Gt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function qt(e){return e?e.slice(0,fn(e)+1).replace(re,""):e}function Yt(e){return function(t){return e(t)}}function Kt(e,t){return Rt(t,(function(t){return e[t]}))}function Xt(e,t){return e.has(t)}function Jt(e,t){for(var n=-1,r=e.length;++n<r&&Dt(t,e[n],0)>-1;);return n}function Qt(e,t){for(var n=e.length;n--&&Dt(t,e[n],0)>-1;);return n}var en=Ut({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tn=Ut({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function nn(e){return"\\"+at[e]}function rn(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function an(e,t){return function(n){return e(t(n))}}function ln(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==l||(e[n]=l,i[o++]=n)}return i}function sn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function cn(e){return rn(e)?function(e){for(var t=Je.lastIndex=0;Je.test(e);)++t;return t}(e):Ht(e)}function un(e){return rn(e)?function(e){return e.match(Je)||[]}(e):function(e){return e.split("")}(e)}function fn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var dn=Ut({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),pn=function e(t){var n,r=(t=null==t?ft:pn.defaults(ft.Object(),t,pn.pick(ft,nt))).Array,oe=t.Date,be=t.Error,xe=t.Function,_e=t.Math,Oe=t.Object,Le=t.RegExp,Ee=t.String,Se=t.TypeError,Me=r.prototype,je=xe.prototype,ke=Oe.prototype,Re=t["__core-js_shared__"],Pe=je.toString,Ie=ke.hasOwnProperty,Ae=0,Te=(n=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",He=ke.toString,Ve=Pe.call(Oe),Be=ft._,De=Le("^"+Pe.call(Ie).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ze=ht?t.Buffer:o,$e=t.Symbol,Fe=t.Uint8Array,Ne=Ze?Ze.allocUnsafe:o,Ue=an(Oe.getPrototypeOf,Oe),We=Oe.create,ze=ke.propertyIsEnumerable,Ge=Me.splice,qe=$e?$e.isConcatSpreadable:o,Ye=$e?$e.iterator:o,Je=$e?$e.toStringTag:o,et=function(){try{var e=si(Oe,"defineProperty");return e({},"",{}),e}catch(e){}}(),at=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,ct=oe&&oe.now!==ft.Date.now&&oe.now,ut=t.setTimeout!==ft.setTimeout&&t.setTimeout,dt=_e.ceil,pt=_e.floor,vt=Oe.getOwnPropertySymbols,gt=Ze?Ze.isBuffer:o,Ht=t.isFinite,Ut=Me.join,hn=an(Oe.keys,Oe),vn=_e.max,gn=_e.min,Cn=oe.now,mn=t.parseInt,yn=_e.random,wn=Me.reverse,bn=si(t,"DataView"),xn=si(t,"Map"),_n=si(t,"Promise"),On=si(t,"Set"),Ln=si(t,"WeakMap"),En=si(Oe,"create"),Sn=Ln&&new Ln,Mn={},jn=Ai(bn),kn=Ai(xn),Rn=Ai(_n),Pn=Ai(On),In=Ai(Ln),An=$e?$e.prototype:o,Tn=An?An.valueOf:o,Hn=An?An.toString:o;function Vn(e){if(Xa(e)&&!Za(e)&&!(e instanceof $n)){if(e instanceof Zn)return e;if(Ie.call(e,"__wrapped__"))return Ti(e)}return new Zn(e)}var Bn=function(){function e(){}return function(t){if(!Ka(t))return{};if(We)return We(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Dn(){}function Zn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function $n(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Fn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Nn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Un(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Un;++t<n;)this.add(e[t])}function zn(e){var t=this.__data__=new Nn(e);this.size=t.size}function Gn(e,t){var n=Za(e),r=!n&&Da(e),o=!n&&!r&&Ua(e),i=!n&&!r&&!o&&il(e),a=n||r||o||i,l=a?Gt(e.length,Ee):[],s=l.length;for(var c in e)!t&&!Ie.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||vi(c,s))||l.push(c);return l}function qn(e){var t=e.length;return t?e[Ur(0,t-1)]:o}function Yn(e,t){return Ri(Eo(e),or(t,0,e.length))}function Kn(e){return Ri(Eo(e))}function Xn(e,t,n){(n!==o&&!Ha(e[t],n)||n===o&&!(t in e))&&nr(e,t,n)}function Jn(e,t,n){var r=e[t];Ie.call(e,t)&&Ha(r,n)&&(n!==o||t in e)||nr(e,t,n)}function Qn(e,t){for(var n=e.length;n--;)if(Ha(e[n][0],t))return n;return-1}function er(e,t,n,r){return cr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function tr(e,t){return e&&So(t,Sl(t),e)}function nr(e,t,n){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function rr(e,t){for(var n=-1,i=t.length,a=r(i),l=null==e;++n<i;)a[n]=l?o:xl(e,t[n]);return a}function or(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function ir(e,t,n,r,i,a){var l,s=1&t,c=2&t,u=4&t;if(n&&(l=i?n(e,r,i,a):n(e)),l!==o)return l;if(!Ka(e))return e;var f=Za(e);if(f){if(l=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ie.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!s)return Eo(e,l)}else{var d=fi(e),p=d==w||d==b;if(Ua(e))return wo(e,s);if(d==O||d==v||p&&!i){if(l=c||p?{}:pi(e),!s)return c?function(e,t){return So(e,ui(e),t)}(e,function(e,t){return e&&So(t,Ml(t),e)}(l,e)):function(e,t){return So(e,ci(e),t)}(e,tr(l,e))}else{if(!it[d])return i?e:{};l=function(e,t,n){var r,o=e.constructor;switch(t){case R:return bo(e);case C:case m:return new o(+e);case P:return function(e,t){var n=t?bo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case I:case A:case T:case H:case V:case B:case D:case Z:case $:return xo(e,n);case x:return new o;case _:case M:return new o(e);case E:return function(e){var t=new e.constructor(e.source,de.exec(e));return t.lastIndex=e.lastIndex,t}(e);case S:return new o;case j:return r=e,Tn?Oe(Tn.call(r)):{}}}(e,d,s)}}a||(a=new zn);var h=a.get(e);if(h)return h;a.set(e,l),nl(e)?e.forEach((function(r){l.add(ir(r,t,n,r,e,a))})):Ja(e)&&e.forEach((function(r,o){l.set(o,ir(r,t,n,o,e,a))}));var g=f?o:(u?c?ti:ei:c?Ml:Sl)(e);return Lt(g||e,(function(r,o){g&&(r=e[o=r]),Jn(l,o,ir(r,t,n,o,e,a))})),l}function ar(e,t,n){var r=n.length;if(null==e)return!r;for(e=Oe(e);r--;){var i=n[r],a=t[i],l=e[i];if(l===o&&!(i in e)||!a(l))return!1}return!0}function lr(e,t,n){if("function"!=typeof e)throw new Se(i);return Si((function(){e.apply(o,n)}),t)}function sr(e,t,n,r){var o=-1,i=jt,a=!0,l=e.length,s=[],c=t.length;if(!l)return s;n&&(t=Rt(t,Yt(n))),r?(i=kt,a=!1):t.length>=200&&(i=Xt,a=!1,t=new Wn(t));e:for(;++o<l;){var u=e[o],f=null==n?u:n(u);if(u=r||0!==u?u:0,a&&f==f){for(var d=c;d--;)if(t[d]===f)continue e;s.push(u)}else i(t,f,r)||s.push(u)}return s}Vn.templateSettings={escape:Y,evaluate:K,interpolate:X,variable:"",imports:{_:Vn}},Vn.prototype=Dn.prototype,Vn.prototype.constructor=Vn,Zn.prototype=Bn(Dn.prototype),Zn.prototype.constructor=Zn,$n.prototype=Bn(Dn.prototype),$n.prototype.constructor=$n,Fn.prototype.clear=function(){this.__data__=En?En(null):{},this.size=0},Fn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Fn.prototype.get=function(e){var t=this.__data__;if(En){var n=t[e];return n===a?o:n}return Ie.call(t,e)?t[e]:o},Fn.prototype.has=function(e){var t=this.__data__;return En?t[e]!==o:Ie.call(t,e)},Fn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=En&&t===o?a:t,this},Nn.prototype.clear=function(){this.__data__=[],this.size=0},Nn.prototype.delete=function(e){var t=this.__data__,n=Qn(t,e);return!(n<0||(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,0))},Nn.prototype.get=function(e){var t=this.__data__,n=Qn(t,e);return n<0?o:t[n][1]},Nn.prototype.has=function(e){return Qn(this.__data__,e)>-1},Nn.prototype.set=function(e,t){var n=this.__data__,r=Qn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Un.prototype.clear=function(){this.size=0,this.__data__={hash:new Fn,map:new(xn||Nn),string:new Fn}},Un.prototype.delete=function(e){var t=ai(this,e).delete(e);return this.size-=t?1:0,t},Un.prototype.get=function(e){return ai(this,e).get(e)},Un.prototype.has=function(e){return ai(this,e).has(e)},Un.prototype.set=function(e,t){var n=ai(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Wn.prototype.add=Wn.prototype.push=function(e){return this.__data__.set(e,a),this},Wn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.clear=function(){this.__data__=new Nn,this.size=0},zn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},zn.prototype.get=function(e){return this.__data__.get(e)},zn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Nn){var r=n.__data__;if(!xn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Un(r)}return n.set(e,t),this.size=n.size,this};var cr=ko(Cr),ur=ko(mr,!0);function fr(e,t){var n=!0;return cr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function dr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],l=t(a);if(null!=l&&(s===o?l==l&&!ol(l):n(l,s)))var s=l,c=a}return c}function pr(e,t){var n=[];return cr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function hr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=hi),o||(o=[]);++i<a;){var l=e[i];t>0&&n(l)?t>1?hr(l,t-1,n,r,o):Pt(o,l):r||(o[o.length]=l)}return o}var vr=Ro(),gr=Ro(!0);function Cr(e,t){return e&&vr(e,t,Sl)}function mr(e,t){return e&&gr(e,t,Sl)}function yr(e,t){return Mt(t,(function(t){return Ga(e[t])}))}function wr(e,t){for(var n=0,r=(t=go(t,e)).length;null!=e&&n<r;)e=e[Ii(t[n++])];return n&&n==r?e:o}function br(e,t,n){var r=t(e);return Za(e)?r:Pt(r,n(e))}function xr(e){return null==e?e===o?"[object Undefined]":"[object Null]":Je&&Je in Oe(e)?function(e){var t=Ie.call(e,Je),n=e[Je];try{e[Je]=o;var r=!0}catch(e){}var i=He.call(e);return r&&(t?e[Je]=n:delete e[Je]),i}(e):function(e){return He.call(e)}(e)}function _r(e,t){return e>t}function Or(e,t){return null!=e&&Ie.call(e,t)}function Lr(e,t){return null!=e&&t in Oe(e)}function Er(e,t,n){for(var i=n?kt:jt,a=e[0].length,l=e.length,s=l,c=r(l),u=1/0,f=[];s--;){var d=e[s];s&&t&&(d=Rt(d,Yt(t))),u=gn(d.length,u),c[s]=!n&&(t||a>=120&&d.length>=120)?new Wn(s&&d):o}d=e[0];var p=-1,h=c[0];e:for(;++p<a&&f.length<u;){var v=d[p],g=t?t(v):v;if(v=n||0!==v?v:0,!(h?Xt(h,g):i(f,g,n))){for(s=l;--s;){var C=c[s];if(!(C?Xt(C,g):i(e[s],g,n)))continue e}h&&h.push(g),f.push(v)}}return f}function Sr(e,t,n){var r=null==(e=Oi(e,t=go(t,e)))?e:e[Ii(zi(t))];return null==r?o:_t(r,e,n)}function Mr(e){return Xa(e)&&xr(e)==v}function jr(e,t,n,r,i){return e===t||(null==e||null==t||!Xa(e)&&!Xa(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var l=Za(e),s=Za(t),c=l?g:fi(e),u=s?g:fi(t),f=(c=c==v?O:c)==O,d=(u=u==v?O:u)==O,p=c==u;if(p&&Ua(e)){if(!Ua(t))return!1;l=!0,f=!1}if(p&&!f)return a||(a=new zn),l||il(e)?Jo(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case P:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case R:return!(e.byteLength!=t.byteLength||!i(new Fe(e),new Fe(t)));case C:case m:case _:return Ha(+e,+t);case y:return e.name==t.name&&e.message==t.message;case E:case M:return e==t+"";case x:var l=on;case S:var s=1&r;if(l||(l=sn),e.size!=t.size&&!s)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=Jo(l(e),l(t),r,o,i,a);return a.delete(e),u;case j:if(Tn)return Tn.call(e)==Tn.call(t)}return!1}(e,t,c,n,r,i,a);if(!(1&n)){var h=f&&Ie.call(e,"__wrapped__"),w=d&&Ie.call(t,"__wrapped__");if(h||w){var b=h?e.value():e,L=w?t.value():t;return a||(a=new zn),i(b,L,n,r,a)}}return!!p&&(a||(a=new zn),function(e,t,n,r,i,a){var l=1&n,s=ei(e),c=s.length;if(c!=ei(t).length&&!l)return!1;for(var u=c;u--;){var f=s[u];if(!(l?f in t:Ie.call(t,f)))return!1}var d=a.get(e),p=a.get(t);if(d&&p)return d==t&&p==e;var h=!0;a.set(e,t),a.set(t,e);for(var v=l;++u<c;){var g=e[f=s[u]],C=t[f];if(r)var m=l?r(C,g,f,t,e,a):r(g,C,f,e,t,a);if(!(m===o?g===C||i(g,C,n,r,a):m)){h=!1;break}v||(v="constructor"==f)}if(h&&!v){var y=e.constructor,w=t.constructor;y==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof w&&w instanceof w||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,r,i,a))}(e,t,n,r,jr,i))}function kr(e,t,n,r){var i=n.length,a=i,l=!r;if(null==e)return!a;for(e=Oe(e);i--;){var s=n[i];if(l&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){var c=(s=n[i])[0],u=e[c],f=s[1];if(l&&s[2]){if(u===o&&!(c in e))return!1}else{var d=new zn;if(r)var p=r(u,f,c,e,t,d);if(!(p===o?jr(f,u,3,r,d):p))return!1}}return!0}function Rr(e){return!(!Ka(e)||(t=e,Te&&Te in t))&&(Ga(e)?De:ve).test(Ai(e));var t}function Pr(e){return"function"==typeof e?e:null==e?Ql:"object"==typeof e?Za(e)?Vr(e[0],e[1]):Hr(e):ss(e)}function Ir(e){if(!wi(e))return hn(e);var t=[];for(var n in Oe(e))Ie.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Ar(e,t){return e<t}function Tr(e,t){var n=-1,o=Fa(e)?r(e.length):[];return cr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function Hr(e){var t=li(e);return 1==t.length&&t[0][2]?xi(t[0][0],t[0][1]):function(n){return n===e||kr(n,e,t)}}function Vr(e,t){return Ci(e)&&bi(t)?xi(Ii(e),t):function(n){var r=xl(n,e);return r===o&&r===t?_l(n,e):jr(t,r,3)}}function Br(e,t,n,r,i){e!==t&&vr(t,(function(a,l){if(i||(i=new zn),Ka(a))!function(e,t,n,r,i,a,l){var s=Li(e,n),c=Li(t,n),u=l.get(c);if(u)Xn(e,n,u);else{var f=a?a(s,c,n+"",e,t,l):o,d=f===o;if(d){var p=Za(c),h=!p&&Ua(c),v=!p&&!h&&il(c);f=c,p||h||v?Za(s)?f=s:Na(s)?f=Eo(s):h?(d=!1,f=wo(c,!0)):v?(d=!1,f=xo(c,!0)):f=[]:el(c)||Da(c)?(f=s,Da(s)?f=pl(s):Ka(s)&&!Ga(s)||(f=pi(c))):d=!1}d&&(l.set(c,f),i(f,c,r,a,l),l.delete(c)),Xn(e,n,f)}}(e,t,l,n,Br,r,i);else{var s=r?r(Li(e,l),a,l+"",e,t,i):o;s===o&&(s=a),Xn(e,l,s)}}),Ml)}function Dr(e,t){var n=e.length;if(n)return vi(t+=t<0?n:0,n)?e[t]:o}function Zr(e,t,n){t=t.length?Rt(t,(function(e){return Za(e)?function(t){return wr(t,1===e.length?e[0]:e)}:e})):[Ql];var r=-1;t=Rt(t,Yt(ii()));var o=Tr(e,(function(e,n,o){var i=Rt(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,(function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,l=n.length;++r<a;){var s=_o(o[r],i[r]);if(s)return r>=l?s:s*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function $r(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],l=wr(e,a);n(l,a)&&Yr(i,go(a,e),l)}return i}function Fr(e,t,n,r){var o=r?Zt:Dt,i=-1,a=t.length,l=e;for(e===t&&(t=Eo(t)),n&&(l=Rt(e,Yt(n)));++i<a;)for(var s=0,c=t[i],u=n?n(c):c;(s=o(l,u,s,r))>-1;)l!==e&&Ge.call(l,s,1),Ge.call(e,s,1);return e}function Nr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;vi(o)?Ge.call(e,o,1):lo(e,o)}}return e}function Ur(e,t){return e+pt(yn()*(t-e+1))}function Wr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=pt(t/2))&&(e+=e)}while(t);return n}function zr(e,t){return Mi(_i(e,t,Ql),e+"")}function Gr(e){return qn(Hl(e))}function qr(e,t){var n=Hl(e);return Ri(n,or(t,0,n.length))}function Yr(e,t,n,r){if(!Ka(e))return e;for(var i=-1,a=(t=go(t,e)).length,l=a-1,s=e;null!=s&&++i<a;){var c=Ii(t[i]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=l){var f=s[c];(u=r?r(f,c,s):o)===o&&(u=Ka(f)?f:vi(t[i+1])?[]:{})}Jn(s,c,u),s=s[c]}return e}var Kr=Sn?function(e,t){return Sn.set(e,t),e}:Ql,Xr=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Kl(t),writable:!0})}:Ql;function Jr(e){return Ri(Hl(e))}function Qr(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function eo(e,t){var n;return cr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function to(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!ol(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return no(e,t,Ql,n)}function no(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var l=(t=n(t))!=t,s=null===t,c=ol(t),u=t===o;i<a;){var f=pt((i+a)/2),d=n(e[f]),p=d!==o,h=null===d,v=d==d,g=ol(d);if(l)var C=r||v;else C=u?v&&(r||p):s?v&&p&&(r||!h):c?v&&p&&!h&&(r||!g):!h&&!g&&(r?d<=t:d<t);C?i=f+1:a=f}return gn(a,4294967294)}function ro(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],l=t?t(a):a;if(!n||!Ha(l,s)){var s=l;i[o++]=0===a?0:a}}return i}function oo(e){return"number"==typeof e?e:ol(e)?d:+e}function io(e){if("string"==typeof e)return e;if(Za(e))return Rt(e,io)+"";if(ol(e))return Hn?Hn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ao(e,t,n){var r=-1,o=jt,i=e.length,a=!0,l=[],s=l;if(n)a=!1,o=kt;else if(i>=200){var c=t?null:zo(e);if(c)return sn(c);a=!1,o=Xt,s=new Wn}else s=t?[]:l;e:for(;++r<i;){var u=e[r],f=t?t(u):u;if(u=n||0!==u?u:0,a&&f==f){for(var d=s.length;d--;)if(s[d]===f)continue e;t&&s.push(f),l.push(u)}else o(s,f,n)||(s!==l&&s.push(f),l.push(u))}return l}function lo(e,t){return null==(e=Oi(e,t=go(t,e)))||delete e[Ii(zi(t))]}function so(e,t,n,r){return Yr(e,t,n(wr(e,t)),r)}function co(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?Qr(e,r?0:i,r?i+1:o):Qr(e,r?i+1:0,r?o:i)}function uo(e,t){var n=e;return n instanceof $n&&(n=n.value()),It(t,(function(e,t){return t.func.apply(t.thisArg,Pt([e],t.args))}),n)}function fo(e,t,n){var o=e.length;if(o<2)return o?ao(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var l=e[i],s=-1;++s<o;)s!=i&&(a[i]=sr(a[i]||l,e[s],t,n));return ao(hr(a,1),t,n)}function po(e,t,n){for(var r=-1,i=e.length,a=t.length,l={};++r<i;){var s=r<a?t[r]:o;n(l,e[r],s)}return l}function ho(e){return Na(e)?e:[]}function vo(e){return"function"==typeof e?e:Ql}function go(e,t){return Za(e)?e:Ci(e,t)?[e]:Pi(hl(e))}var Co=zr;function mo(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:Qr(e,t,n)}var yo=at||function(e){return ft.clearTimeout(e)};function wo(e,t){if(t)return e.slice();var n=e.length,r=Ne?Ne(n):new e.constructor(n);return e.copy(r),r}function bo(e){var t=new e.constructor(e.byteLength);return new Fe(t).set(new Fe(e)),t}function xo(e,t){var n=t?bo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function _o(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=ol(e),l=t!==o,s=null===t,c=t==t,u=ol(t);if(!s&&!u&&!a&&e>t||a&&l&&c&&!s&&!u||r&&l&&c||!n&&c||!i)return 1;if(!r&&!a&&!u&&e<t||u&&n&&i&&!r&&!a||s&&n&&i||!l&&i||!c)return-1}return 0}function Oo(e,t,n,o){for(var i=-1,a=e.length,l=n.length,s=-1,c=t.length,u=vn(a-l,0),f=r(c+u),d=!o;++s<c;)f[s]=t[s];for(;++i<l;)(d||i<a)&&(f[n[i]]=e[i]);for(;u--;)f[s++]=e[i++];return f}function Lo(e,t,n,o){for(var i=-1,a=e.length,l=-1,s=n.length,c=-1,u=t.length,f=vn(a-s,0),d=r(f+u),p=!o;++i<f;)d[i]=e[i];for(var h=i;++c<u;)d[h+c]=t[c];for(;++l<s;)(p||i<a)&&(d[h+n[l]]=e[i++]);return d}function Eo(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function So(e,t,n,r){var i=!n;n||(n={});for(var a=-1,l=t.length;++a<l;){var s=t[a],c=r?r(n[s],e[s],s,n,e):o;c===o&&(c=e[s]),i?nr(n,s,c):Jn(n,s,c)}return n}function Mo(e,t){return function(n,r){var o=Za(n)?Ot:er,i=t?t():{};return o(n,e,ii(r,2),i)}}function jo(e){return zr((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,l=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,l&&gi(n[0],n[1],l)&&(a=i<3?o:a,i=1),t=Oe(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t}))}function ko(e,t){return function(n,r){if(null==n)return n;if(!Fa(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Oe(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Ro(e){return function(t,n,r){for(var o=-1,i=Oe(t),a=r(t),l=a.length;l--;){var s=a[e?l:++o];if(!1===n(i[s],s,i))break}return t}}function Po(e){return function(t){var n=rn(t=hl(t))?un(t):o,r=n?n[0]:t.charAt(0),i=n?mo(n,1).join(""):t.slice(1);return r[e]()+i}}function Io(e){return function(t){return It(Gl(Dl(t).replace(Ke,"")),e,"")}}function Ao(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Bn(e.prototype),r=e.apply(n,t);return Ka(r)?r:n}}function To(e){return function(t,n,r){var i=Oe(t);if(!Fa(t)){var a=ii(n,3);t=Sl(t),n=function(e){return a(i[e],e,i)}}var l=e(t,n,r);return l>-1?i[a?t[l]:l]:o}}function Ho(e){return Qo((function(t){var n=t.length,r=n,a=Zn.prototype.thru;for(e&&t.reverse();r--;){var l=t[r];if("function"!=typeof l)throw new Se(i);if(a&&!s&&"wrapper"==ri(l))var s=new Zn([],!0)}for(r=s?r:n;++r<n;){var c=ri(l=t[r]),u="wrapper"==c?ni(l):o;s=u&&mi(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?s[ri(u[0])].apply(s,u[3]):1==l.length&&mi(l)?s[c]():s.thru(l)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&Za(r))return s.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function Vo(e,t,n,i,a,l,s,u,f,d){var p=t&c,h=1&t,v=2&t,g=24&t,C=512&t,m=v?o:Ao(e);return function c(){for(var y=arguments.length,w=r(y),b=y;b--;)w[b]=arguments[b];if(g)var x=oi(c),_=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(w,x);if(i&&(w=Oo(w,i,a,g)),l&&(w=Lo(w,l,s,g)),y-=_,g&&y<d){var O=ln(w,x);return Uo(e,t,Vo,c.placeholder,n,w,O,u,f,d-y)}var L=h?n:this,E=v?L[e]:e;return y=w.length,u?w=function(e,t){for(var n=e.length,r=gn(t.length,n),i=Eo(e);r--;){var a=t[r];e[r]=vi(a,n)?i[a]:o}return e}(w,u):C&&y>1&&w.reverse(),p&&f<y&&(w.length=f),this&&this!==ft&&this instanceof c&&(E=m||Ao(E)),E.apply(L,w)}}function Bo(e,t){return function(n,r){return function(e,t,n,r){return Cr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Do(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=io(n),r=io(r)):(n=oo(n),r=oo(r)),i=e(n,r)}return i}}function Zo(e){return Qo((function(t){return t=Rt(t,Yt(ii())),zr((function(n){var r=this;return e(t,(function(e){return _t(e,r,n)}))}))}))}function $o(e,t){var n=(t=t===o?" ":io(t)).length;if(n<2)return n?Wr(t,e):t;var r=Wr(t,dt(e/cn(t)));return rn(t)?mo(un(r),0,e).join(""):r.slice(0,e)}function Fo(e){return function(t,n,i){return i&&"number"!=typeof i&&gi(t,n,i)&&(n=i=o),t=cl(t),n===o?(n=t,t=0):n=cl(n),function(e,t,n,o){for(var i=-1,a=vn(dt((t-e)/(n||1)),0),l=r(a);a--;)l[o?a:++i]=e,e+=n;return l}(t,n,i=i===o?t<n?1:-1:cl(i),e)}}function No(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=dl(t),n=dl(n)),e(t,n)}}function Uo(e,t,n,r,i,a,l,c,u,f){var d=8&t;t|=d?s:64,4&(t&=~(d?64:s))||(t&=-4);var p=[e,t,i,d?a:o,d?l:o,d?o:a,d?o:l,c,u,f],h=n.apply(o,p);return mi(e)&&Ei(h,p),h.placeholder=r,ji(h,e,t)}function Wo(e){var t=_e[e];return function(e,n){if(e=dl(e),(n=null==n?0:gn(ul(n),292))&&Ht(e)){var r=(hl(e)+"e").split("e");return+((r=(hl(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var zo=On&&1/sn(new On([,-0]))[1]==u?function(e){return new On(e)}:os;function Go(e){return function(t){var n=fi(t);return n==x?on(t):n==S?function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}(t):function(e,t){return Rt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function qo(e,t,n,a,u,f,d,p){var h=2&t;if(!h&&"function"!=typeof e)throw new Se(i);var v=a?a.length:0;if(v||(t&=-97,a=u=o),d=d===o?d:vn(ul(d),0),p=p===o?p:ul(p),v-=u?u.length:0,64&t){var g=a,C=u;a=u=o}var m=h?o:ni(e),y=[e,t,n,a,u,g,C,f,d,p];if(m&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==c&&8==n||r==c&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var s=t[3];if(s){var u=e[3];e[3]=u?Oo(u,s,t[4]):s,e[4]=u?ln(e[3],l):t[4]}(s=t[5])&&(u=e[5],e[5]=u?Lo(u,s,t[6]):s,e[6]=u?ln(e[5],l):t[6]),(s=t[7])&&(e[7]=s),r&c&&(e[8]=null==e[8]?t[8]:gn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(y,m),e=y[0],t=y[1],n=y[2],a=y[3],u=y[4],!(p=y[9]=y[9]===o?h?0:e.length:vn(y[9]-v,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||16==t?function(e,t,n){var i=Ao(e);return function a(){for(var l=arguments.length,s=r(l),c=l,u=oi(a);c--;)s[c]=arguments[c];var f=l<3&&s[0]!==u&&s[l-1]!==u?[]:ln(s,u);return(l-=f.length)<n?Uo(e,t,Vo,a.placeholder,o,s,f,o,o,n-l):_t(this&&this!==ft&&this instanceof a?i:e,this,s)}}(e,t,p):t!=s&&33!=t||u.length?Vo.apply(o,y):function(e,t,n,o){var i=1&t,a=Ao(e);return function t(){for(var l=-1,s=arguments.length,c=-1,u=o.length,f=r(u+s),d=this&&this!==ft&&this instanceof t?a:e;++c<u;)f[c]=o[c];for(;s--;)f[c++]=arguments[++l];return _t(d,i?n:this,f)}}(e,t,n,a);else var w=function(e,t,n){var r=1&t,o=Ao(e);return function t(){return(this&&this!==ft&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return ji((m?Kr:Ei)(w,y),e,t)}function Yo(e,t,n,r){return e===o||Ha(e,ke[n])&&!Ie.call(r,n)?t:e}function Ko(e,t,n,r,i,a){return Ka(e)&&Ka(t)&&(a.set(t,e),Br(e,t,o,Ko,a),a.delete(t)),e}function Xo(e){return el(e)?o:e}function Jo(e,t,n,r,i,a){var l=1&n,s=e.length,c=t.length;if(s!=c&&!(l&&c>s))return!1;var u=a.get(e),f=a.get(t);if(u&&f)return u==t&&f==e;var d=-1,p=!0,h=2&n?new Wn:o;for(a.set(e,t),a.set(t,e);++d<s;){var v=e[d],g=t[d];if(r)var C=l?r(g,v,d,t,e,a):r(v,g,d,e,t,a);if(C!==o){if(C)continue;p=!1;break}if(h){if(!Tt(t,(function(e,t){if(!Xt(h,t)&&(v===e||i(v,e,n,r,a)))return h.push(t)}))){p=!1;break}}else if(v!==g&&!i(v,g,n,r,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function Qo(e){return Mi(_i(e,o,$i),e+"")}function ei(e){return br(e,Sl,ci)}function ti(e){return br(e,Ml,ui)}var ni=Sn?function(e){return Sn.get(e)}:os;function ri(e){for(var t=e.name+"",n=Mn[t],r=Ie.call(Mn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function oi(e){return(Ie.call(Vn,"placeholder")?Vn:e).placeholder}function ii(){var e=Vn.iteratee||es;return e=e===es?Pr:e,arguments.length?e(arguments[0],arguments[1]):e}function ai(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function li(e){for(var t=Sl(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,bi(o)]}return t}function si(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Rr(n)?n:o}var ci=vt?function(e){return null==e?[]:(e=Oe(e),Mt(vt(e),(function(t){return ze.call(e,t)})))}:fs,ui=vt?function(e){for(var t=[];e;)Pt(t,ci(e)),e=Ue(e);return t}:fs,fi=xr;function di(e,t,n){for(var r=-1,o=(t=go(t,e)).length,i=!1;++r<o;){var a=Ii(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Ya(o)&&vi(a,o)&&(Za(e)||Da(e))}function pi(e){return"function"!=typeof e.constructor||wi(e)?{}:Bn(Ue(e))}function hi(e){return Za(e)||Da(e)||!!(qe&&e&&e[qe])}function vi(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&Ce.test(e))&&e>-1&&e%1==0&&e<t}function gi(e,t,n){if(!Ka(n))return!1;var r=typeof t;return!!("number"==r?Fa(n)&&vi(t,n.length):"string"==r&&t in n)&&Ha(n[t],e)}function Ci(e,t){if(Za(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ol(e))||Q.test(e)||!J.test(e)||null!=t&&e in Oe(t)}function mi(e){var t=ri(e),n=Vn[t];if("function"!=typeof n||!(t in $n.prototype))return!1;if(e===n)return!0;var r=ni(n);return!!r&&e===r[0]}(bn&&fi(new bn(new ArrayBuffer(1)))!=P||xn&&fi(new xn)!=x||_n&&fi(_n.resolve())!=L||On&&fi(new On)!=S||Ln&&fi(new Ln)!=k)&&(fi=function(e){var t=xr(e),n=t==O?e.constructor:o,r=n?Ai(n):"";if(r)switch(r){case jn:return P;case kn:return x;case Rn:return L;case Pn:return S;case In:return k}return t});var yi=Re?Ga:ds;function wi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ke)}function bi(e){return e==e&&!Ka(e)}function xi(e,t){return function(n){return null!=n&&n[e]===t&&(t!==o||e in Oe(n))}}function _i(e,t,n){return t=vn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=vn(o.length-t,0),l=r(a);++i<a;)l[i]=o[t+i];i=-1;for(var s=r(t+1);++i<t;)s[i]=o[i];return s[t]=n(l),_t(e,this,s)}}function Oi(e,t){return t.length<2?e:wr(e,Qr(t,0,-1))}function Li(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ei=ki(Kr),Si=ut||function(e,t){return ft.setTimeout(e,t)},Mi=ki(Xr);function ji(e,t,n){var r=t+"";return Mi(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Lt(h,(function(n){var r="_."+n[0];t&n[1]&&!jt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(le):[]}(r),n)))}function ki(e){var t=0,n=0;return function(){var r=Cn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ri(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=Ur(n,i),l=e[a];e[a]=e[n],e[n]=l}return e.length=t,e}var Pi=function(e){var t=ka((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,o){t.push(r?o.replace(ue,"$1"):n||e)})),t}),(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}();function Ii(e){if("string"==typeof e||ol(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ai(e){if(null!=e){try{return Pe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ti(e){if(e instanceof $n)return e.clone();var t=new Zn(e.__wrapped__,e.__chain__);return t.__actions__=Eo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Hi=zr((function(e,t){return Na(e)?sr(e,hr(t,1,Na,!0)):[]})),Vi=zr((function(e,t){var n=zi(t);return Na(n)&&(n=o),Na(e)?sr(e,hr(t,1,Na,!0),ii(n,2)):[]})),Bi=zr((function(e,t){var n=zi(t);return Na(n)&&(n=o),Na(e)?sr(e,hr(t,1,Na,!0),o,n):[]}));function Di(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ul(n);return o<0&&(o=vn(r+o,0)),Bt(e,ii(t,3),o)}function Zi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=ul(n),i=n<0?vn(r+i,0):gn(i,r-1)),Bt(e,ii(t,3),i,!0)}function $i(e){return null!=e&&e.length?hr(e,1):[]}function Fi(e){return e&&e.length?e[0]:o}var Ni=zr((function(e){var t=Rt(e,ho);return t.length&&t[0]===e[0]?Er(t):[]})),Ui=zr((function(e){var t=zi(e),n=Rt(e,ho);return t===zi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Er(n,ii(t,2)):[]})),Wi=zr((function(e){var t=zi(e),n=Rt(e,ho);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Er(n,o,t):[]}));function zi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Gi=zr(qi);function qi(e,t){return e&&e.length&&t&&t.length?Fr(e,t):e}var Yi=Qo((function(e,t){var n=null==e?0:e.length,r=rr(e,t);return Nr(e,Rt(t,(function(e){return vi(e,n)?+e:e})).sort(_o)),r}));function Ki(e){return null==e?e:wn.call(e)}var Xi=zr((function(e){return ao(hr(e,1,Na,!0))})),Ji=zr((function(e){var t=zi(e);return Na(t)&&(t=o),ao(hr(e,1,Na,!0),ii(t,2))})),Qi=zr((function(e){var t=zi(e);return t="function"==typeof t?t:o,ao(hr(e,1,Na,!0),o,t)}));function ea(e){if(!e||!e.length)return[];var t=0;return e=Mt(e,(function(e){if(Na(e))return t=vn(e.length,t),!0})),Gt(t,(function(t){return Rt(e,Nt(t))}))}function ta(e,t){if(!e||!e.length)return[];var n=ea(e);return null==t?n:Rt(n,(function(e){return _t(t,o,e)}))}var na=zr((function(e,t){return Na(e)?sr(e,t):[]})),ra=zr((function(e){return fo(Mt(e,Na))})),oa=zr((function(e){var t=zi(e);return Na(t)&&(t=o),fo(Mt(e,Na),ii(t,2))})),ia=zr((function(e){var t=zi(e);return t="function"==typeof t?t:o,fo(Mt(e,Na),o,t)})),aa=zr(ea),la=zr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,ta(e,n)}));function sa(e){var t=Vn(e);return t.__chain__=!0,t}function ca(e,t){return t(e)}var ua=Qo((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return rr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof $n&&vi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ca,args:[i],thisArg:o}),new Zn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)})),fa=Mo((function(e,t,n){Ie.call(e,n)?++e[n]:nr(e,n,1)})),da=To(Di),pa=To(Zi);function ha(e,t){return(Za(e)?Lt:cr)(e,ii(t,3))}function va(e,t){return(Za(e)?Et:ur)(e,ii(t,3))}var ga=Mo((function(e,t,n){Ie.call(e,n)?e[n].push(t):nr(e,n,[t])})),Ca=zr((function(e,t,n){var o=-1,i="function"==typeof t,a=Fa(e)?r(e.length):[];return cr(e,(function(e){a[++o]=i?_t(t,e,n):Sr(e,t,n)})),a})),ma=Mo((function(e,t,n){nr(e,n,t)}));function ya(e,t){return(Za(e)?Rt:Tr)(e,ii(t,3))}var wa=Mo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),ba=zr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&gi(e,t[0],t[1])?t=[]:n>2&&gi(t[0],t[1],t[2])&&(t=[t[0]]),Zr(e,hr(t,1),[])})),xa=ct||function(){return ft.Date.now()};function _a(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,qo(e,c,o,o,o,o,t)}function Oa(e,t){var n;if("function"!=typeof t)throw new Se(i);return e=ul(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var La=zr((function(e,t,n){var r=1;if(n.length){var o=ln(n,oi(La));r|=s}return qo(e,r,t,n,o)})),Ea=zr((function(e,t,n){var r=3;if(n.length){var o=ln(n,oi(Ea));r|=s}return qo(t,r,e,n,o)}));function Sa(e,t,n){var r,a,l,s,c,u,f=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new Se(i);function v(t){var n=r,i=a;return r=a=o,f=t,s=e.apply(i,n)}function g(e){var n=e-u;return u===o||n>=t||n<0||p&&e-f>=l}function C(){var e=xa();if(g(e))return m(e);c=Si(C,function(e){var n=t-(e-u);return p?gn(n,l-(e-f)):n}(e))}function m(e){return c=o,h&&r?v(e):(r=a=o,s)}function y(){var e=xa(),n=g(e);if(r=arguments,a=this,u=e,n){if(c===o)return function(e){return f=e,c=Si(C,t),d?v(e):s}(u);if(p)return yo(c),c=Si(C,t),v(u)}return c===o&&(c=Si(C,t)),s}return t=dl(t)||0,Ka(n)&&(d=!!n.leading,l=(p="maxWait"in n)?vn(dl(n.maxWait)||0,t):l,h="trailing"in n?!!n.trailing:h),y.cancel=function(){c!==o&&yo(c),f=0,r=u=a=c=o},y.flush=function(){return c===o?s:m(xa())},y}var Ma=zr((function(e,t){return lr(e,1,t)})),ja=zr((function(e,t,n){return lr(e,dl(t)||0,n)}));function ka(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Se(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(ka.Cache||Un),n}function Ra(e){if("function"!=typeof e)throw new Se(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ka.Cache=Un;var Pa=Co((function(e,t){var n=(t=1==t.length&&Za(t[0])?Rt(t[0],Yt(ii())):Rt(hr(t,1),Yt(ii()))).length;return zr((function(r){for(var o=-1,i=gn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return _t(e,this,r)}))})),Ia=zr((function(e,t){var n=ln(t,oi(Ia));return qo(e,s,o,t,n)})),Aa=zr((function(e,t){var n=ln(t,oi(Aa));return qo(e,64,o,t,n)})),Ta=Qo((function(e,t){return qo(e,256,o,o,o,t)}));function Ha(e,t){return e===t||e!=e&&t!=t}var Va=No(_r),Ba=No((function(e,t){return e>=t})),Da=Mr(function(){return arguments}())?Mr:function(e){return Xa(e)&&Ie.call(e,"callee")&&!ze.call(e,"callee")},Za=r.isArray,$a=Ct?Yt(Ct):function(e){return Xa(e)&&xr(e)==R};function Fa(e){return null!=e&&Ya(e.length)&&!Ga(e)}function Na(e){return Xa(e)&&Fa(e)}var Ua=gt||ds,Wa=mt?Yt(mt):function(e){return Xa(e)&&xr(e)==m};function za(e){if(!Xa(e))return!1;var t=xr(e);return t==y||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!el(e)}function Ga(e){if(!Ka(e))return!1;var t=xr(e);return t==w||t==b||"[object AsyncFunction]"==t||"[object Proxy]"==t}function qa(e){return"number"==typeof e&&e==ul(e)}function Ya(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function Ka(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Xa(e){return null!=e&&"object"==typeof e}var Ja=yt?Yt(yt):function(e){return Xa(e)&&fi(e)==x};function Qa(e){return"number"==typeof e||Xa(e)&&xr(e)==_}function el(e){if(!Xa(e)||xr(e)!=O)return!1;var t=Ue(e);if(null===t)return!0;var n=Ie.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Pe.call(n)==Ve}var tl=wt?Yt(wt):function(e){return Xa(e)&&xr(e)==E},nl=bt?Yt(bt):function(e){return Xa(e)&&fi(e)==S};function rl(e){return"string"==typeof e||!Za(e)&&Xa(e)&&xr(e)==M}function ol(e){return"symbol"==typeof e||Xa(e)&&xr(e)==j}var il=xt?Yt(xt):function(e){return Xa(e)&&Ya(e.length)&&!!ot[xr(e)]},al=No(Ar),ll=No((function(e,t){return e<=t}));function sl(e){if(!e)return[];if(Fa(e))return rl(e)?un(e):Eo(e);if(Ye&&e[Ye])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ye]());var t=fi(e);return(t==x?on:t==S?sn:Hl)(e)}function cl(e){return e?(e=dl(e))===u||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ul(e){var t=cl(e),n=t%1;return t==t?n?t-n:t:0}function fl(e){return e?or(ul(e),0,p):0}function dl(e){if("number"==typeof e)return e;if(ol(e))return d;if(Ka(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ka(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=qt(e);var n=he.test(e);return n||ge.test(e)?st(e.slice(2),n?2:8):pe.test(e)?d:+e}function pl(e){return So(e,Ml(e))}function hl(e){return null==e?"":io(e)}var vl=jo((function(e,t){if(wi(t)||Fa(t))So(t,Sl(t),e);else for(var n in t)Ie.call(t,n)&&Jn(e,n,t[n])})),gl=jo((function(e,t){So(t,Ml(t),e)})),Cl=jo((function(e,t,n,r){So(t,Ml(t),e,r)})),ml=jo((function(e,t,n,r){So(t,Sl(t),e,r)})),yl=Qo(rr),wl=zr((function(e,t){e=Oe(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&gi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],l=Ml(a),s=-1,c=l.length;++s<c;){var u=l[s],f=e[u];(f===o||Ha(f,ke[u])&&!Ie.call(e,u))&&(e[u]=a[u])}return e})),bl=zr((function(e){return e.push(o,Ko),_t(kl,o,e)}));function xl(e,t,n){var r=null==e?o:wr(e,t);return r===o?n:r}function _l(e,t){return null!=e&&di(e,t,Lr)}var Ol=Bo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=He.call(t)),e[t]=n}),Kl(Ql)),Ll=Bo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=He.call(t)),Ie.call(e,t)?e[t].push(n):e[t]=[n]}),ii),El=zr(Sr);function Sl(e){return Fa(e)?Gn(e):Ir(e)}function Ml(e){return Fa(e)?Gn(e,!0):function(e){if(!Ka(e))return function(e){var t=[];if(null!=e)for(var n in Oe(e))t.push(n);return t}(e);var t=wi(e),n=[];for(var r in e)("constructor"!=r||!t&&Ie.call(e,r))&&n.push(r);return n}(e)}var jl=jo((function(e,t,n){Br(e,t,n)})),kl=jo((function(e,t,n,r){Br(e,t,n,r)})),Rl=Qo((function(e,t){var n={};if(null==e)return n;var r=!1;t=Rt(t,(function(t){return t=go(t,e),r||(r=t.length>1),t})),So(e,ti(e),n),r&&(n=ir(n,7,Xo));for(var o=t.length;o--;)lo(n,t[o]);return n})),Pl=Qo((function(e,t){return null==e?{}:function(e,t){return $r(e,t,(function(t,n){return _l(e,n)}))}(e,t)}));function Il(e,t){if(null==e)return{};var n=Rt(ti(e),(function(e){return[e]}));return t=ii(t),$r(e,n,(function(e,n){return t(e,n[0])}))}var Al=Go(Sl),Tl=Go(Ml);function Hl(e){return null==e?[]:Kt(e,Sl(e))}var Vl=Io((function(e,t,n){return t=t.toLowerCase(),e+(n?Bl(t):t)}));function Bl(e){return zl(hl(e).toLowerCase())}function Dl(e){return(e=hl(e))&&e.replace(me,en).replace(Xe,"")}var Zl=Io((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),$l=Io((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Fl=Po("toLowerCase"),Nl=Io((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Ul=Io((function(e,t,n){return e+(n?" ":"")+zl(t)})),Wl=Io((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),zl=Po("toUpperCase");function Gl(e,t,n){return e=hl(e),(t=n?o:t)===o?function(e){return tt.test(e)}(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.match(se)||[]}(e):e.match(t)||[]}var ql=zr((function(e,t){try{return _t(e,o,t)}catch(e){return za(e)?e:new be(e)}})),Yl=Qo((function(e,t){return Lt(t,(function(t){t=Ii(t),nr(e,t,La(e[t],e))})),e}));function Kl(e){return function(){return e}}var Xl=Ho(),Jl=Ho(!0);function Ql(e){return e}function es(e){return Pr("function"==typeof e?e:ir(e,1))}var ts=zr((function(e,t){return function(n){return Sr(n,e,t)}})),ns=zr((function(e,t){return function(n){return Sr(e,n,t)}}));function rs(e,t,n){var r=Sl(t),o=yr(t,r);null!=n||Ka(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=yr(t,Sl(t)));var i=!(Ka(n)&&"chain"in n&&!n.chain),a=Ga(e);return Lt(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Eo(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Pt([this.value()],arguments))})})),e}function os(){}var is=Zo(Rt),as=Zo(St),ls=Zo(Tt);function ss(e){return Ci(e)?Nt(Ii(e)):function(e){return function(t){return wr(t,e)}}(e)}var cs=Fo(),us=Fo(!0);function fs(){return[]}function ds(){return!1}var ps,hs=Do((function(e,t){return e+t}),0),vs=Wo("ceil"),gs=Do((function(e,t){return e/t}),1),Cs=Wo("floor"),ms=Do((function(e,t){return e*t}),1),ys=Wo("round"),ws=Do((function(e,t){return e-t}),0);return Vn.after=function(e,t){if("function"!=typeof t)throw new Se(i);return e=ul(e),function(){if(--e<1)return t.apply(this,arguments)}},Vn.ary=_a,Vn.assign=vl,Vn.assignIn=gl,Vn.assignInWith=Cl,Vn.assignWith=ml,Vn.at=yl,Vn.before=Oa,Vn.bind=La,Vn.bindAll=Yl,Vn.bindKey=Ea,Vn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Za(e)?e:[e]},Vn.chain=sa,Vn.chunk=function(e,t,n){t=(n?gi(e,t,n):t===o)?1:vn(ul(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,l=0,s=r(dt(i/t));a<i;)s[l++]=Qr(e,a,a+=t);return s},Vn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Vn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Pt(Za(n)?Eo(n):[n],hr(t,1))},Vn.cond=function(e){var t=null==e?0:e.length,n=ii();return e=t?Rt(e,(function(e){if("function"!=typeof e[1])throw new Se(i);return[n(e[0]),e[1]]})):[],zr((function(n){for(var r=-1;++r<t;){var o=e[r];if(_t(o[0],this,n))return _t(o[1],this,n)}}))},Vn.conforms=function(e){return function(e){var t=Sl(e);return function(n){return ar(n,e,t)}}(ir(e,1))},Vn.constant=Kl,Vn.countBy=fa,Vn.create=function(e,t){var n=Bn(e);return null==t?n:tr(n,t)},Vn.curry=function e(t,n,r){var i=qo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Vn.curryRight=function e(t,n,r){var i=qo(t,16,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Vn.debounce=Sa,Vn.defaults=wl,Vn.defaultsDeep=bl,Vn.defer=Ma,Vn.delay=ja,Vn.difference=Hi,Vn.differenceBy=Vi,Vn.differenceWith=Bi,Vn.drop=function(e,t,n){var r=null==e?0:e.length;return r?Qr(e,(t=n||t===o?1:ul(t))<0?0:t,r):[]},Vn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Qr(e,0,(t=r-(t=n||t===o?1:ul(t)))<0?0:t):[]},Vn.dropRightWhile=function(e,t){return e&&e.length?co(e,ii(t,3),!0,!0):[]},Vn.dropWhile=function(e,t){return e&&e.length?co(e,ii(t,3),!0):[]},Vn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&gi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=ul(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:ul(r))<0&&(r+=i),r=n>r?0:fl(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Vn.filter=function(e,t){return(Za(e)?Mt:pr)(e,ii(t,3))},Vn.flatMap=function(e,t){return hr(ya(e,t),1)},Vn.flatMapDeep=function(e,t){return hr(ya(e,t),u)},Vn.flatMapDepth=function(e,t,n){return n=n===o?1:ul(n),hr(ya(e,t),n)},Vn.flatten=$i,Vn.flattenDeep=function(e){return null!=e&&e.length?hr(e,u):[]},Vn.flattenDepth=function(e,t){return null!=e&&e.length?hr(e,t=t===o?1:ul(t)):[]},Vn.flip=function(e){return qo(e,512)},Vn.flow=Xl,Vn.flowRight=Jl,Vn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Vn.functions=function(e){return null==e?[]:yr(e,Sl(e))},Vn.functionsIn=function(e){return null==e?[]:yr(e,Ml(e))},Vn.groupBy=ga,Vn.initial=function(e){return null!=e&&e.length?Qr(e,0,-1):[]},Vn.intersection=Ni,Vn.intersectionBy=Ui,Vn.intersectionWith=Wi,Vn.invert=Ol,Vn.invertBy=Ll,Vn.invokeMap=Ca,Vn.iteratee=es,Vn.keyBy=ma,Vn.keys=Sl,Vn.keysIn=Ml,Vn.map=ya,Vn.mapKeys=function(e,t){var n={};return t=ii(t,3),Cr(e,(function(e,r,o){nr(n,t(e,r,o),e)})),n},Vn.mapValues=function(e,t){var n={};return t=ii(t,3),Cr(e,(function(e,r,o){nr(n,r,t(e,r,o))})),n},Vn.matches=function(e){return Hr(ir(e,1))},Vn.matchesProperty=function(e,t){return Vr(e,ir(t,1))},Vn.memoize=ka,Vn.merge=jl,Vn.mergeWith=kl,Vn.method=ts,Vn.methodOf=ns,Vn.mixin=rs,Vn.negate=Ra,Vn.nthArg=function(e){return e=ul(e),zr((function(t){return Dr(t,e)}))},Vn.omit=Rl,Vn.omitBy=function(e,t){return Il(e,Ra(ii(t)))},Vn.once=function(e){return Oa(2,e)},Vn.orderBy=function(e,t,n,r){return null==e?[]:(Za(t)||(t=null==t?[]:[t]),Za(n=r?o:n)||(n=null==n?[]:[n]),Zr(e,t,n))},Vn.over=is,Vn.overArgs=Pa,Vn.overEvery=as,Vn.overSome=ls,Vn.partial=Ia,Vn.partialRight=Aa,Vn.partition=wa,Vn.pick=Pl,Vn.pickBy=Il,Vn.property=ss,Vn.propertyOf=function(e){return function(t){return null==e?o:wr(e,t)}},Vn.pull=Gi,Vn.pullAll=qi,Vn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Fr(e,t,ii(n,2)):e},Vn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Fr(e,t,o,n):e},Vn.pullAt=Yi,Vn.range=cs,Vn.rangeRight=us,Vn.rearg=Ta,Vn.reject=function(e,t){return(Za(e)?Mt:pr)(e,Ra(ii(t,3)))},Vn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ii(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Nr(e,o),n},Vn.rest=function(e,t){if("function"!=typeof e)throw new Se(i);return zr(e,t=t===o?t:ul(t))},Vn.reverse=Ki,Vn.sampleSize=function(e,t,n){return t=(n?gi(e,t,n):t===o)?1:ul(t),(Za(e)?Yn:qr)(e,t)},Vn.set=function(e,t,n){return null==e?e:Yr(e,t,n)},Vn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Yr(e,t,n,r)},Vn.shuffle=function(e){return(Za(e)?Kn:Jr)(e)},Vn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&gi(e,t,n)?(t=0,n=r):(t=null==t?0:ul(t),n=n===o?r:ul(n)),Qr(e,t,n)):[]},Vn.sortBy=ba,Vn.sortedUniq=function(e){return e&&e.length?ro(e):[]},Vn.sortedUniqBy=function(e,t){return e&&e.length?ro(e,ii(t,2)):[]},Vn.split=function(e,t,n){return n&&"number"!=typeof n&&gi(e,t,n)&&(t=n=o),(n=n===o?p:n>>>0)?(e=hl(e))&&("string"==typeof t||null!=t&&!tl(t))&&!(t=io(t))&&rn(e)?mo(un(e),0,n):e.split(t,n):[]},Vn.spread=function(e,t){if("function"!=typeof e)throw new Se(i);return t=null==t?0:vn(ul(t),0),zr((function(n){var r=n[t],o=mo(n,0,t);return r&&Pt(o,r),_t(e,this,o)}))},Vn.tail=function(e){var t=null==e?0:e.length;return t?Qr(e,1,t):[]},Vn.take=function(e,t,n){return e&&e.length?Qr(e,0,(t=n||t===o?1:ul(t))<0?0:t):[]},Vn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Qr(e,(t=r-(t=n||t===o?1:ul(t)))<0?0:t,r):[]},Vn.takeRightWhile=function(e,t){return e&&e.length?co(e,ii(t,3),!1,!0):[]},Vn.takeWhile=function(e,t){return e&&e.length?co(e,ii(t,3)):[]},Vn.tap=function(e,t){return t(e),e},Vn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Se(i);return Ka(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Sa(e,t,{leading:r,maxWait:t,trailing:o})},Vn.thru=ca,Vn.toArray=sl,Vn.toPairs=Al,Vn.toPairsIn=Tl,Vn.toPath=function(e){return Za(e)?Rt(e,Ii):ol(e)?[e]:Eo(Pi(hl(e)))},Vn.toPlainObject=pl,Vn.transform=function(e,t,n){var r=Za(e),o=r||Ua(e)||il(e);if(t=ii(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Ka(e)&&Ga(i)?Bn(Ue(e)):{}}return(o?Lt:Cr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Vn.unary=function(e){return _a(e,1)},Vn.union=Xi,Vn.unionBy=Ji,Vn.unionWith=Qi,Vn.uniq=function(e){return e&&e.length?ao(e):[]},Vn.uniqBy=function(e,t){return e&&e.length?ao(e,ii(t,2)):[]},Vn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?ao(e,o,t):[]},Vn.unset=function(e,t){return null==e||lo(e,t)},Vn.unzip=ea,Vn.unzipWith=ta,Vn.update=function(e,t,n){return null==e?e:so(e,t,vo(n))},Vn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:so(e,t,vo(n),r)},Vn.values=Hl,Vn.valuesIn=function(e){return null==e?[]:Kt(e,Ml(e))},Vn.without=na,Vn.words=Gl,Vn.wrap=function(e,t){return Ia(vo(t),e)},Vn.xor=ra,Vn.xorBy=oa,Vn.xorWith=ia,Vn.zip=aa,Vn.zipObject=function(e,t){return po(e||[],t||[],Jn)},Vn.zipObjectDeep=function(e,t){return po(e||[],t||[],Yr)},Vn.zipWith=la,Vn.entries=Al,Vn.entriesIn=Tl,Vn.extend=gl,Vn.extendWith=Cl,rs(Vn,Vn),Vn.add=hs,Vn.attempt=ql,Vn.camelCase=Vl,Vn.capitalize=Bl,Vn.ceil=vs,Vn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=dl(n))==n?n:0),t!==o&&(t=(t=dl(t))==t?t:0),or(dl(e),t,n)},Vn.clone=function(e){return ir(e,4)},Vn.cloneDeep=function(e){return ir(e,5)},Vn.cloneDeepWith=function(e,t){return ir(e,5,t="function"==typeof t?t:o)},Vn.cloneWith=function(e,t){return ir(e,4,t="function"==typeof t?t:o)},Vn.conformsTo=function(e,t){return null==t||ar(e,t,Sl(t))},Vn.deburr=Dl,Vn.defaultTo=function(e,t){return null==e||e!=e?t:e},Vn.divide=gs,Vn.endsWith=function(e,t,n){e=hl(e),t=io(t);var r=e.length,i=n=n===o?r:or(ul(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Vn.eq=Ha,Vn.escape=function(e){return(e=hl(e))&&q.test(e)?e.replace(z,tn):e},Vn.escapeRegExp=function(e){return(e=hl(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Vn.every=function(e,t,n){var r=Za(e)?St:fr;return n&&gi(e,t,n)&&(t=o),r(e,ii(t,3))},Vn.find=da,Vn.findIndex=Di,Vn.findKey=function(e,t){return Vt(e,ii(t,3),Cr)},Vn.findLast=pa,Vn.findLastIndex=Zi,Vn.findLastKey=function(e,t){return Vt(e,ii(t,3),mr)},Vn.floor=Cs,Vn.forEach=ha,Vn.forEachRight=va,Vn.forIn=function(e,t){return null==e?e:vr(e,ii(t,3),Ml)},Vn.forInRight=function(e,t){return null==e?e:gr(e,ii(t,3),Ml)},Vn.forOwn=function(e,t){return e&&Cr(e,ii(t,3))},Vn.forOwnRight=function(e,t){return e&&mr(e,ii(t,3))},Vn.get=xl,Vn.gt=Va,Vn.gte=Ba,Vn.has=function(e,t){return null!=e&&di(e,t,Or)},Vn.hasIn=_l,Vn.head=Fi,Vn.identity=Ql,Vn.includes=function(e,t,n,r){e=Fa(e)?e:Hl(e),n=n&&!r?ul(n):0;var o=e.length;return n<0&&(n=vn(o+n,0)),rl(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Dt(e,t,n)>-1},Vn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ul(n);return o<0&&(o=vn(r+o,0)),Dt(e,t,o)},Vn.inRange=function(e,t,n){return t=cl(t),n===o?(n=t,t=0):n=cl(n),function(e,t,n){return e>=gn(t,n)&&e<vn(t,n)}(e=dl(e),t,n)},Vn.invoke=El,Vn.isArguments=Da,Vn.isArray=Za,Vn.isArrayBuffer=$a,Vn.isArrayLike=Fa,Vn.isArrayLikeObject=Na,Vn.isBoolean=function(e){return!0===e||!1===e||Xa(e)&&xr(e)==C},Vn.isBuffer=Ua,Vn.isDate=Wa,Vn.isElement=function(e){return Xa(e)&&1===e.nodeType&&!el(e)},Vn.isEmpty=function(e){if(null==e)return!0;if(Fa(e)&&(Za(e)||"string"==typeof e||"function"==typeof e.splice||Ua(e)||il(e)||Da(e)))return!e.length;var t=fi(e);if(t==x||t==S)return!e.size;if(wi(e))return!Ir(e).length;for(var n in e)if(Ie.call(e,n))return!1;return!0},Vn.isEqual=function(e,t){return jr(e,t)},Vn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?jr(e,t,o,n):!!r},Vn.isError=za,Vn.isFinite=function(e){return"number"==typeof e&&Ht(e)},Vn.isFunction=Ga,Vn.isInteger=qa,Vn.isLength=Ya,Vn.isMap=Ja,Vn.isMatch=function(e,t){return e===t||kr(e,t,li(t))},Vn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,kr(e,t,li(t),n)},Vn.isNaN=function(e){return Qa(e)&&e!=+e},Vn.isNative=function(e){if(yi(e))throw new be("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Rr(e)},Vn.isNil=function(e){return null==e},Vn.isNull=function(e){return null===e},Vn.isNumber=Qa,Vn.isObject=Ka,Vn.isObjectLike=Xa,Vn.isPlainObject=el,Vn.isRegExp=tl,Vn.isSafeInteger=function(e){return qa(e)&&e>=-9007199254740991&&e<=f},Vn.isSet=nl,Vn.isString=rl,Vn.isSymbol=ol,Vn.isTypedArray=il,Vn.isUndefined=function(e){return e===o},Vn.isWeakMap=function(e){return Xa(e)&&fi(e)==k},Vn.isWeakSet=function(e){return Xa(e)&&"[object WeakSet]"==xr(e)},Vn.join=function(e,t){return null==e?"":Ut.call(e,t)},Vn.kebabCase=Zl,Vn.last=zi,Vn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=ul(n))<0?vn(r+i,0):gn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Bt(e,$t,i,!0)},Vn.lowerCase=$l,Vn.lowerFirst=Fl,Vn.lt=al,Vn.lte=ll,Vn.max=function(e){return e&&e.length?dr(e,Ql,_r):o},Vn.maxBy=function(e,t){return e&&e.length?dr(e,ii(t,2),_r):o},Vn.mean=function(e){return Ft(e,Ql)},Vn.meanBy=function(e,t){return Ft(e,ii(t,2))},Vn.min=function(e){return e&&e.length?dr(e,Ql,Ar):o},Vn.minBy=function(e,t){return e&&e.length?dr(e,ii(t,2),Ar):o},Vn.stubArray=fs,Vn.stubFalse=ds,Vn.stubObject=function(){return{}},Vn.stubString=function(){return""},Vn.stubTrue=function(){return!0},Vn.multiply=ms,Vn.nth=function(e,t){return e&&e.length?Dr(e,ul(t)):o},Vn.noConflict=function(){return ft._===this&&(ft._=Be),this},Vn.noop=os,Vn.now=xa,Vn.pad=function(e,t,n){e=hl(e);var r=(t=ul(t))?cn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return $o(pt(o),n)+e+$o(dt(o),n)},Vn.padEnd=function(e,t,n){e=hl(e);var r=(t=ul(t))?cn(e):0;return t&&r<t?e+$o(t-r,n):e},Vn.padStart=function(e,t,n){e=hl(e);var r=(t=ul(t))?cn(e):0;return t&&r<t?$o(t-r,n)+e:e},Vn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),mn(hl(e).replace(re,""),t||0)},Vn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&gi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=cl(e),t===o?(t=e,e=0):t=cl(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=yn();return gn(e+i*(t-e+lt("1e-"+((i+"").length-1))),t)}return Ur(e,t)},Vn.reduce=function(e,t,n){var r=Za(e)?It:Wt,o=arguments.length<3;return r(e,ii(t,4),n,o,cr)},Vn.reduceRight=function(e,t,n){var r=Za(e)?At:Wt,o=arguments.length<3;return r(e,ii(t,4),n,o,ur)},Vn.repeat=function(e,t,n){return t=(n?gi(e,t,n):t===o)?1:ul(t),Wr(hl(e),t)},Vn.replace=function(){var e=arguments,t=hl(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Vn.result=function(e,t,n){var r=-1,i=(t=go(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[Ii(t[r])];a===o&&(r=i,a=n),e=Ga(a)?a.call(e):a}return e},Vn.round=ys,Vn.runInContext=e,Vn.sample=function(e){return(Za(e)?qn:Gr)(e)},Vn.size=function(e){if(null==e)return 0;if(Fa(e))return rl(e)?cn(e):e.length;var t=fi(e);return t==x||t==S?e.size:Ir(e).length},Vn.snakeCase=Nl,Vn.some=function(e,t,n){var r=Za(e)?Tt:eo;return n&&gi(e,t,n)&&(t=o),r(e,ii(t,3))},Vn.sortedIndex=function(e,t){return to(e,t)},Vn.sortedIndexBy=function(e,t,n){return no(e,t,ii(n,2))},Vn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=to(e,t);if(r<n&&Ha(e[r],t))return r}return-1},Vn.sortedLastIndex=function(e,t){return to(e,t,!0)},Vn.sortedLastIndexBy=function(e,t,n){return no(e,t,ii(n,2),!0)},Vn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=to(e,t,!0)-1;if(Ha(e[n],t))return n}return-1},Vn.startCase=Ul,Vn.startsWith=function(e,t,n){return e=hl(e),n=null==n?0:or(ul(n),0,e.length),t=io(t),e.slice(n,n+t.length)==t},Vn.subtract=ws,Vn.sum=function(e){return e&&e.length?zt(e,Ql):0},Vn.sumBy=function(e,t){return e&&e.length?zt(e,ii(t,2)):0},Vn.template=function(e,t,n){var r=Vn.templateSettings;n&&gi(e,t,n)&&(t=o),e=hl(e),t=Cl({},t,r,Yo);var i,a,l=Cl({},t.imports,r.imports,Yo),s=Sl(l),c=Kt(l,s),u=0,f=t.interpolate||ye,d="__p += '",p=Le((t.escape||ye).source+"|"+f.source+"|"+(f===X?fe:ye).source+"|"+(t.evaluate||ye).source+"|$","g"),h="//# sourceURL="+(Ie.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(p,(function(t,n,r,o,l,s){return r||(r=o),d+=e.slice(u,s).replace(we,nn),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),l&&(a=!0,d+="';\n"+l+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=s+t.length,t})),d+="';\n";var v=Ie.call(t,"variable")&&t.variable;if(v){if(ce.test(v))throw new be("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(a?d.replace(F,""):d).replace(N,"$1").replace(U,"$1;"),d="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=ql((function(){return xe(s,h+"return "+d).apply(o,c)}));if(g.source=d,za(g))throw g;return g},Vn.times=function(e,t){if((e=ul(e))<1||e>f)return[];var n=p,r=gn(e,p);t=ii(t),e-=p;for(var o=Gt(r,t);++n<e;)t(n);return o},Vn.toFinite=cl,Vn.toInteger=ul,Vn.toLength=fl,Vn.toLower=function(e){return hl(e).toLowerCase()},Vn.toNumber=dl,Vn.toSafeInteger=function(e){return e?or(ul(e),-9007199254740991,f):0===e?e:0},Vn.toString=hl,Vn.toUpper=function(e){return hl(e).toUpperCase()},Vn.trim=function(e,t,n){if((e=hl(e))&&(n||t===o))return qt(e);if(!e||!(t=io(t)))return e;var r=un(e),i=un(t);return mo(r,Jt(r,i),Qt(r,i)+1).join("")},Vn.trimEnd=function(e,t,n){if((e=hl(e))&&(n||t===o))return e.slice(0,fn(e)+1);if(!e||!(t=io(t)))return e;var r=un(e);return mo(r,0,Qt(r,un(t))+1).join("")},Vn.trimStart=function(e,t,n){if((e=hl(e))&&(n||t===o))return e.replace(re,"");if(!e||!(t=io(t)))return e;var r=un(e);return mo(r,Jt(r,un(t))).join("")},Vn.truncate=function(e,t){var n=30,r="...";if(Ka(t)){var i="separator"in t?t.separator:i;n="length"in t?ul(t.length):n,r="omission"in t?io(t.omission):r}var a=(e=hl(e)).length;if(rn(e)){var l=un(e);a=l.length}if(n>=a)return e;var s=n-cn(r);if(s<1)return r;var c=l?mo(l,0,s).join(""):e.slice(0,s);if(i===o)return c+r;if(l&&(s+=c.length-s),tl(i)){if(e.slice(s).search(i)){var u,f=c;for(i.global||(i=Le(i.source,hl(de.exec(i))+"g")),i.lastIndex=0;u=i.exec(f);)var d=u.index;c=c.slice(0,d===o?s:d)}}else if(e.indexOf(io(i),s)!=s){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+r},Vn.unescape=function(e){return(e=hl(e))&&G.test(e)?e.replace(W,dn):e},Vn.uniqueId=function(e){var t=++Ae;return hl(e)+t},Vn.upperCase=Wl,Vn.upperFirst=zl,Vn.each=ha,Vn.eachRight=va,Vn.first=Fi,rs(Vn,(ps={},Cr(Vn,(function(e,t){Ie.call(Vn.prototype,t)||(ps[t]=e)})),ps),{chain:!1}),Vn.VERSION="4.17.21",Lt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Vn[e].placeholder=Vn})),Lt(["drop","take"],(function(e,t){$n.prototype[e]=function(n){n=n===o?1:vn(ul(n),0);var r=this.__filtered__&&!t?new $n(this):this.clone();return r.__filtered__?r.__takeCount__=gn(n,r.__takeCount__):r.__views__.push({size:gn(n,p),type:e+(r.__dir__<0?"Right":"")}),r},$n.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Lt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;$n.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ii(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Lt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");$n.prototype[e]=function(){return this[n](1).value()[0]}})),Lt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");$n.prototype[e]=function(){return this.__filtered__?new $n(this):this[n](1)}})),$n.prototype.compact=function(){return this.filter(Ql)},$n.prototype.find=function(e){return this.filter(e).head()},$n.prototype.findLast=function(e){return this.reverse().find(e)},$n.prototype.invokeMap=zr((function(e,t){return"function"==typeof e?new $n(this):this.map((function(n){return Sr(n,e,t)}))})),$n.prototype.reject=function(e){return this.filter(Ra(ii(e)))},$n.prototype.slice=function(e,t){e=ul(e);var n=this;return n.__filtered__&&(e>0||t<0)?new $n(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=ul(t))<0?n.dropRight(-t):n.take(t-e)),n)},$n.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},$n.prototype.toArray=function(){return this.take(p)},Cr($n.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Vn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Vn.prototype[t]=function(){var t=this.__wrapped__,l=r?[1]:arguments,s=t instanceof $n,c=l[0],u=s||Za(t),f=function(e){var t=i.apply(Vn,Pt([e],l));return r&&d?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(s=u=!1);var d=this.__chain__,p=!!this.__actions__.length,h=a&&!d,v=s&&!p;if(!a&&u){t=v?t:new $n(this);var g=e.apply(t,l);return g.__actions__.push({func:ca,args:[f],thisArg:o}),new Zn(g,d)}return h&&v?e.apply(this,l):(g=this.thru(f),h?r?g.value()[0]:g.value():g)})})),Lt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Me[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Vn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Za(o)?o:[],e)}return this[n]((function(n){return t.apply(Za(n)?n:[],e)}))}})),Cr($n.prototype,(function(e,t){var n=Vn[t];if(n){var r=n.name+"";Ie.call(Mn,r)||(Mn[r]=[]),Mn[r].push({name:t,func:n})}})),Mn[Vo(o,2).name]=[{name:"wrapper",func:o}],$n.prototype.clone=function(){var e=new $n(this.__wrapped__);return e.__actions__=Eo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Eo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Eo(this.__views__),e},$n.prototype.reverse=function(){if(this.__filtered__){var e=new $n(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},$n.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Za(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=gn(t,e+a);break;case"takeRight":e=vn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,l=i.end,s=l-a,c=r?l:a-1,u=this.__iteratees__,f=u.length,d=0,p=gn(s,this.__takeCount__);if(!n||!r&&o==s&&p==s)return uo(e,this.__actions__);var h=[];e:for(;s--&&d<p;){for(var v=-1,g=e[c+=t];++v<f;){var C=u[v],m=C.iteratee,y=C.type,w=m(g);if(2==y)g=w;else if(!w){if(1==y)continue e;break e}}h[d++]=g}return h},Vn.prototype.at=ua,Vn.prototype.chain=function(){return sa(this)},Vn.prototype.commit=function(){return new Zn(this.value(),this.__chain__)},Vn.prototype.next=function(){this.__values__===o&&(this.__values__=sl(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Vn.prototype.plant=function(e){for(var t,n=this;n instanceof Dn;){var r=Ti(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Vn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof $n){var t=e;return this.__actions__.length&&(t=new $n(this)),(t=t.reverse()).__actions__.push({func:ca,args:[Ki],thisArg:o}),new Zn(t,this.__chain__)}return this.thru(Ki)},Vn.prototype.toJSON=Vn.prototype.valueOf=Vn.prototype.value=function(){return uo(this.__wrapped__,this.__actions__)},Vn.prototype.first=Vn.prototype.head,Ye&&(Vn.prototype[Ye]=function(){return this}),Vn}();ft._=pn,(r=function(){return pn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},300:(e,t,n)=>{var r,o;e=n.nmd(e),function(t){t.runningInNodeJS=function(){return"object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node},t.runningInMainNodeJSModule=function(){return t.runningInNodeJS()&&n.c[n.s]===e},t.commonJSAvailable=function(){return"object"==typeof e.exports},t.runningInWebWorker=function(){return"undefined"==typeof window&&"object"==typeof self&&"function"==typeof self.addEventListener&&"function"==typeof self.close},t.runningInNodeChildProcess=function(){return t.runningInNodeJS()&&"function"==typeof process.send},t.runningInNullOrigin=function(){return"object"==typeof window&&"object"==typeof window.location&&"object"==typeof document&&"http:"!==document.location.protocol&&"https:"!==document.location.protocol},t.webWorkersAvailable=function(){return!("function"!=typeof Worker||t.runningInNullOrigin()||t.runningInNodeJS()||navigator&&navigator.userAgent&&navigator.userAgent.indexOf("Android 4.3")>=0)},t.log=function(e,t){void 0===t&&(t=!1),"object"==typeof console&&t&&"object"==typeof document&&(document.body.innerHTML+=e+"<br/>")},t.createErrorMessage=function(e,n){if(void 0===n&&(n="Unhandled exception"),null==e)return n;if(n+=": ","object"==typeof e.content){if(t.runningInNodeJS())return n+e.content.stack;var r=JSON.stringify(e.content);return"{}"!==r?n+r:n+e.content}return"string"==typeof e.content?n+e.content:n+e},t.printExceptionAndStackTraceToConsole=function(e,n){void 0===n&&(n="Unhandled exception"),t.log(t.createErrorMessage(e,n))},t.getGlobalObject=function(){return"object"==typeof n.g?n.g:"object"==typeof window?window:"object"==typeof self?self:{}},t.toString=Object.prototype.toString,t.commonJSAvailable()&&(e.exports=t)}(o||(o={})),function(e){if("function"==typeof Uint8Array&&0!==new Uint8Array(1).subarray(1).byteLength){var t=function(e,t){var n=function(e,t,n){return e<t?t:e>n?n:e};e|=0,t|=0,arguments.length<1&&(e=0),arguments.length<2&&(t=this.length),e<0&&(e=this.length+e),t<0&&(t=this.length+t),e=n(e,0,this.length);var r=(t=n(t,0,this.length))-e;return r<0&&(r=0),new this.constructor(this.buffer,this.byteOffset+e*this.BYTES_PER_ELEMENT,r)},n=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"],r=void 0;if("object"==typeof window?r=window:"object"==typeof self&&(r=self),void 0!==r)for(var o=0;o<n.length;o++)r[n[o]]&&(r[n[o]].prototype.subarray=t)}}(r||(r={})),function(e){var t=function(){function t(){}return t.compressAsync=function(t,n,r){var o=new e.Timer,i=new e.Compressor;if(!r)throw new TypeError("compressAsync: No callback argument given");if("string"==typeof t)t=e.encodeUTF8(t);else if(null==t||!(t instanceof Uint8Array))return void r(void 0,new TypeError("compressAsync: Invalid input argument, only 'string' and 'Uint8Array' are supported"));var a=e.ArrayTools.splitByteArray(t,n.blockSize),l=[],s=function(t){if(t<a.length){var c=void 0;try{c=i.compressBlock(a[t])}catch(e){return void r(void 0,e)}l.push(c),o.getElapsedTime()<=20?s(t+1):(e.enqueueImmediate((function(){return s(t+1)})),o.restart())}else{var u=e.ArrayTools.concatUint8Arrays(l);e.enqueueImmediate((function(){var t;try{t=e.CompressionCommon.encodeCompressedBytes(u,n.outputEncoding)}catch(e){return void r(void 0,e)}e.enqueueImmediate((function(){return r(t)}))}))}};e.enqueueImmediate((function(){return s(0)}))},t.createCompressionStream=function(){var t=new e.Compressor,r=new(n(99).Transform)({decodeStrings:!0,highWaterMark:65536});return r._transform=function(n,o,i){var a;try{a=e.BufferTools.uint8ArrayToBuffer(t.compressBlock(e.BufferTools.bufferToUint8Array(n)))}catch(e){return void r.emit("error",e)}r.push(a),i()},r},t}();e.AsyncCompressor=t}(o||(o={})),function(e){var t=function(){function t(){}return t.decompressAsync=function(t,n,r){if(!r)throw new TypeError("decompressAsync: No callback argument given");var o=new e.Timer;try{t=e.CompressionCommon.decodeCompressedBytes(t,n.inputEncoding)}catch(e){return void r(void 0,e)}var i=new e.Decompressor,a=e.ArrayTools.splitByteArray(t,n.blockSize),l=[],s=function(t){if(t<a.length){var c=void 0;try{c=i.decompressBlock(a[t])}catch(e){return void r(void 0,e)}l.push(c),o.getElapsedTime()<=20?s(t+1):(e.enqueueImmediate((function(){return s(t+1)})),o.restart())}else{var u=e.ArrayTools.concatUint8Arrays(l);e.enqueueImmediate((function(){var t;try{t=e.CompressionCommon.encodeDecompressedBytes(u,n.outputEncoding)}catch(e){return void r(void 0,e)}e.enqueueImmediate((function(){return r(t)}))}))}};e.enqueueImmediate((function(){return s(0)}))},t.createDecompressionStream=function(){var t=new e.Decompressor,r=new(n(99).Transform)({decodeStrings:!0,highWaterMark:65536});return r._transform=function(n,o,i){var a;try{a=e.BufferTools.uint8ArrayToBuffer(t.decompressBlock(e.BufferTools.bufferToUint8Array(n)))}catch(e){return void r.emit("error",e)}r.push(a),i()},r},t}();e.AsyncDecompressor=t}(o||(o={})),function(e){var t;!function(t){t.compressAsync=function(e,n,r){if("ByteArray"!=n.inputEncoding||e instanceof Uint8Array){var o={token:Math.random().toString(),type:"compress",data:e,inputEncoding:n.inputEncoding,outputEncoding:n.outputEncoding},i=function(e){var n=e.data;n&&n.token==o.token&&(t.globalWorker.removeEventListener("message",i),"error"==n.type?r(void 0,new Error(n.error)):r(n.data))};t.globalWorker.addEventListener("message",i),t.globalWorker.postMessage(o,[])}else r(void 0,new TypeError("compressAsync: input is not a Uint8Array"))},t.decompressAsync=function(e,n,r){var o={token:Math.random().toString(),type:"decompress",data:e,inputEncoding:n.inputEncoding,outputEncoding:n.outputEncoding},i=function(e){var n=e.data;n&&n.token==o.token&&(t.globalWorker.removeEventListener("message",i),"error"==n.type?r(void 0,new Error(n.error)):r(n.data))};t.globalWorker.addEventListener("message",i),t.globalWorker.postMessage(o,[])},t.installWebWorkerIfNeeded=function(){"object"==typeof self&&void 0===self.document&&null!=self.addEventListener&&(self.addEventListener("message",(function(t){var n=t.data;if("compress"==n.type){var r=void 0;try{r=e.compress(n.data,{outputEncoding:n.outputEncoding})}catch(t){return void self.postMessage({token:n.token,type:"error",error:e.createErrorMessage(t)},[])}(o={token:n.token,type:"compressionResult",data:r,encoding:n.outputEncoding}).data instanceof Uint8Array&&-1===navigator.appVersion.indexOf("MSIE 10")?self.postMessage(o,[o.data.buffer]):self.postMessage(o,[])}else if("decompress"==n.type){var o,i=void 0;try{i=e.decompress(n.data,{inputEncoding:n.inputEncoding,outputEncoding:n.outputEncoding})}catch(t){return void self.postMessage({token:n.token,type:"error",error:e.createErrorMessage(t)},[])}(o={token:n.token,type:"decompressionResult",data:i,encoding:n.outputEncoding}).data instanceof Uint8Array&&-1===navigator.appVersion.indexOf("MSIE 10")?self.postMessage(o,[o.data.buffer]):self.postMessage(o,[])}})),self.addEventListener("error",(function(t){e.log(e.createErrorMessage(t.error,"Unexpected LZUTF8 WebWorker exception"))})))},t.createGlobalWorkerIfNeeded=function(){if(t.globalWorker)return!0;if(!e.webWorkersAvailable())return!1;if(!t.scriptURI&&"object"==typeof document){var n=document.getElementById("lzutf8");null!=n&&(t.scriptURI=n.getAttribute("src")||void 0)}return!!t.scriptURI&&(t.globalWorker=new Worker(t.scriptURI),!0)},t.terminate=function(){t.globalWorker&&(t.globalWorker.terminate(),t.globalWorker=void 0)}}(t=e.WebWorker||(e.WebWorker={})),t.installWebWorkerIfNeeded()}(o||(o={})),function(e){var t=function(){function e(e,t,n){this.container=e,this.startPosition=t,this.length=n}return e.prototype.get=function(e){return this.container[this.startPosition+e]},e.prototype.getInReversedOrder=function(e){return this.container[this.startPosition+this.length-1-e]},e.prototype.set=function(e,t){this.container[this.startPosition+e]=t},e}();e.ArraySegment=t}(o||(o={})),function(e){!function(e){e.copyElements=function(e,t,n,r,o){for(;o--;)n[r++]=e[t++]},e.zeroElements=function(e,t,n){for(;n--;)e[t++]=0},e.countNonzeroValuesInArray=function(e){for(var t=0,n=0;n<e.length;n++)e[n]&&t++;return t},e.truncateStartingElements=function(e,t){if(e.length<=t)throw new RangeError("truncateStartingElements: Requested length should be smaller than array length");for(var n=e.length-t,r=0;r<t;r++)e[r]=e[n+r];e.length=t},e.doubleByteArrayCapacity=function(e){var t=new Uint8Array(2*e.length);return t.set(e),t},e.concatUint8Arrays=function(e){for(var t=0,n=0,r=e;n<r.length;n++)t+=(s=r[n]).length;for(var o=new Uint8Array(t),i=0,a=0,l=e;a<l.length;a++){var s=l[a];o.set(s,i),i+=s.length}return o},e.splitByteArray=function(e,t){for(var n=[],r=0;r<e.length;){var o=Math.min(t,e.length-r);n.push(e.subarray(r,r+o)),r+=o}return n}}(e.ArrayTools||(e.ArrayTools={}))}(o||(o={})),function(e){!function(e){e.convertToUint8ArrayIfNeeded=function(t){return"function"==typeof Buffer&&Buffer.isBuffer(t)?e.bufferToUint8Array(t):t},e.uint8ArrayToBuffer=function(e){if(Buffer.prototype instanceof Uint8Array){var t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);return Object.setPrototypeOf(t,Buffer.prototype),t}for(var n=e.length,r=new Buffer(n),o=0;o<n;o++)r[o]=e[o];return r},e.bufferToUint8Array=function(e){if(Buffer.prototype instanceof Uint8Array)return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);for(var t=e.length,n=new Uint8Array(t),r=0;r<t;r++)n[r]=e[r];return n}}(e.BufferTools||(e.BufferTools={}))}(o||(o={})),function(e){!function(t){t.getCroppedBuffer=function(e,t,n,r){void 0===r&&(r=0);var o=new Uint8Array(n+r);return o.set(e.subarray(t,t+n)),o},t.getCroppedAndAppendedByteArray=function(t,n,r,o){return e.ArrayTools.concatUint8Arrays([t.subarray(n,n+r),o])},t.detectCompressionSourceEncoding=function(e){if(null==e)throw new TypeError("detectCompressionSourceEncoding: input is null or undefined");if("string"==typeof e)return"String";if(e instanceof Uint8Array||"function"==typeof Buffer&&Buffer.isBuffer(e))return"ByteArray";throw new TypeError("detectCompressionSourceEncoding: input must be of type 'string', 'Uint8Array' or 'Buffer'")},t.encodeCompressedBytes=function(t,n){switch(n){case"ByteArray":return t;case"Buffer":return e.BufferTools.uint8ArrayToBuffer(t);case"Base64":return e.encodeBase64(t);case"BinaryString":return e.encodeBinaryString(t);case"StorageBinaryString":return e.encodeStorageBinaryString(t);default:throw new TypeError("encodeCompressedBytes: invalid output encoding requested")}},t.decodeCompressedBytes=function(t,n){if(null==n)throw new TypeError("decodeCompressedData: Input is null or undefined");switch(n){case"ByteArray":case"Buffer":var r=e.BufferTools.convertToUint8ArrayIfNeeded(t);if(!(r instanceof Uint8Array))throw new TypeError("decodeCompressedData: 'ByteArray' or 'Buffer' input type was specified but input is not a Uint8Array or Buffer");return r;case"Base64":if("string"!=typeof t)throw new TypeError("decodeCompressedData: 'Base64' input type was specified but input is not a string");return e.decodeBase64(t);case"BinaryString":if("string"!=typeof t)throw new TypeError("decodeCompressedData: 'BinaryString' input type was specified but input is not a string");return e.decodeBinaryString(t);case"StorageBinaryString":if("string"!=typeof t)throw new TypeError("decodeCompressedData: 'StorageBinaryString' input type was specified but input is not a string");return e.decodeStorageBinaryString(t);default:throw new TypeError("decodeCompressedData: invalid input encoding requested: '".concat(n,"'"))}},t.encodeDecompressedBytes=function(t,n){switch(n){case"String":return e.decodeUTF8(t);case"ByteArray":return t;case"Buffer":if("function"!=typeof Buffer)throw new TypeError("encodeDecompressedBytes: a 'Buffer' type was specified but is not supported at the current envirnment");return e.BufferTools.uint8ArrayToBuffer(t);default:throw new TypeError("encodeDecompressedBytes: invalid output encoding requested")}}}(e.CompressionCommon||(e.CompressionCommon={}))}(o||(o={})),function(e){var t;!function(t){var n,r=[];t.enqueueImmediate=function(e){r.push(e),1===r.length&&n()},t.initializeScheduler=function(){var t=function(){for(var t=0,n=r;t<n.length;t++){var o=n[t];try{o.call(void 0)}catch(t){e.printExceptionAndStackTraceToConsole(t,"enqueueImmediate exception")}}r.length=0};if(e.runningInNodeJS())n=function(){return setImmediate((function(){return t()}))};else if("object"==typeof window&&"function"==typeof window.addEventListener&&"function"==typeof window.postMessage){var o,i="enqueueImmediate-"+Math.random().toString();window.addEventListener("message",(function(e){e.data===i&&t()})),o=e.runningInNullOrigin()?"*":window.location.href,n=function(){return window.postMessage(i,o)}}else if("function"==typeof MessageChannel&&"function"==typeof MessagePort){var a=new MessageChannel;a.port1.onmessage=function(){return t()},n=function(){return a.port2.postMessage(0)}}else n=function(){return setTimeout((function(){return t()}),0)}},t.initializeScheduler()}(t=e.EventLoop||(e.EventLoop={})),e.enqueueImmediate=function(e){return t.enqueueImmediate(e)}}(o||(o={})),function(e){!function(e){e.override=function(t,n){return e.extend(t,n)},e.extend=function(e,t){if(null==e)throw new TypeError("obj is null or undefined");if("object"!=typeof e)throw new TypeError("obj is not an object");if(null==t&&(t={}),"object"!=typeof t)throw new TypeError("newProperties is not an object");if(null!=t)for(var n in t)e[n]=t[n];return e}}(e.ObjectTools||(e.ObjectTools={}))}(o||(o={})),function(e){e.getRandomIntegerInRange=function(e,t){return e+Math.floor(Math.random()*(t-e))},e.getRandomUTF16StringOfLength=function(t){for(var n="",r=0;r<t;r++){var o=void 0;do{o=e.getRandomIntegerInRange(0,1114112)}while(o>=55296&&o<=57343);n+=e.Encoding.CodePoint.decodeToString(o)}return n}}(o||(o={})),function(e){var t=function(){function e(e){void 0===e&&(e=1024),this.outputBufferCapacity=e,this.outputPosition=0,this.outputString="",this.outputBuffer=new Uint16Array(this.outputBufferCapacity)}return e.prototype.appendCharCode=function(e){this.outputBuffer[this.outputPosition++]=e,this.outputPosition===this.outputBufferCapacity&&this.flushBufferToOutputString()},e.prototype.appendCharCodes=function(e){for(var t=0,n=e.length;t<n;t++)this.appendCharCode(e[t])},e.prototype.appendString=function(e){for(var t=0,n=e.length;t<n;t++)this.appendCharCode(e.charCodeAt(t))},e.prototype.appendCodePoint=function(e){if(e<=65535)this.appendCharCode(e);else{if(!(e<=1114111))throw new Error("appendCodePoint: A code point of ".concat(e," cannot be encoded in UTF-16"));this.appendCharCode(55296+(e-65536>>>10)),this.appendCharCode(56320+(e-65536&1023))}},e.prototype.getOutputString=function(){return this.flushBufferToOutputString(),this.outputString},e.prototype.flushBufferToOutputString=function(){this.outputPosition===this.outputBufferCapacity?this.outputString+=String.fromCharCode.apply(null,this.outputBuffer):this.outputString+=String.fromCharCode.apply(null,this.outputBuffer.subarray(0,this.outputPosition)),this.outputPosition=0},e}();e.StringBuilder=t}(o||(o={})),function(e){var t=function(){function t(){this.restart()}return t.prototype.restart=function(){this.startTime=t.getTimestamp()},t.prototype.getElapsedTime=function(){return t.getTimestamp()-this.startTime},t.prototype.getElapsedTimeAndRestart=function(){var e=this.getElapsedTime();return this.restart(),e},t.prototype.logAndRestart=function(t,n){void 0===n&&(n=!0);var r=this.getElapsedTime(),o="".concat(t,": ").concat(r.toFixed(3),"ms");return e.log(o,n),this.restart(),r},t.getTimestamp=function(){return this.timestampFunc||this.createGlobalTimestampFunction(),this.timestampFunc()},t.getMicrosecondTimestamp=function(){return Math.floor(1e3*t.getTimestamp())},t.createGlobalTimestampFunction=function(){if("object"==typeof process&&"function"==typeof process.hrtime){var e=0;this.timestampFunc=function(){var t=process.hrtime(),n=1e3*t[0]+t[1]/1e6;return e+n},e=Date.now()-this.timestampFunc()}else if("object"==typeof chrome&&chrome.Interval){var t=Date.now(),n=new chrome.Interval;n.start(),this.timestampFunc=function(){return t+n.microseconds()/1e3}}else if("object"==typeof performance&&performance.now){var r=Date.now()-performance.now();this.timestampFunc=function(){return r+performance.now()}}else Date.now?this.timestampFunc=function(){return Date.now()}:this.timestampFunc=function(){return(new Date).getTime()}},t}();e.Timer=t}(o||(o={})),function(e){var t=function(){function t(t){void 0===t&&(t=!0),this.MinimumSequenceLength=4,this.MaximumSequenceLength=31,this.MaximumMatchDistance=32767,this.PrefixHashTableSize=65537,this.inputBufferStreamOffset=1,t&&"function"==typeof Uint32Array?this.prefixHashTable=new e.CompressorCustomHashTable(this.PrefixHashTableSize):this.prefixHashTable=new e.CompressorSimpleHashTable(this.PrefixHashTableSize)}return t.prototype.compressBlock=function(t){if(null==t)throw new TypeError("compressBlock: undefined or null input received");return"string"==typeof t&&(t=e.encodeUTF8(t)),t=e.BufferTools.convertToUint8ArrayIfNeeded(t),this.compressUtf8Block(t)},t.prototype.compressUtf8Block=function(e){if(!e||0==e.length)return new Uint8Array(0);var t=this.cropAndAddNewBytesToInputBuffer(e),n=this.inputBuffer,r=this.inputBuffer.length;this.outputBuffer=new Uint8Array(e.length),this.outputBufferPosition=0;for(var o=0,i=t;i<r;i++){var a=n[i],l=i<o;if(i>r-this.MinimumSequenceLength)l||this.outputRawByte(a);else{var s=this.getBucketIndexForPrefix(i);if(!l){var c=this.findLongestMatch(i,s);null!=c&&(this.outputPointerBytes(c.length,c.distance),o=i+c.length,l=!0)}l||this.outputRawByte(a);var u=this.inputBufferStreamOffset+i;this.prefixHashTable.addValueToBucket(s,u)}}return this.outputBuffer.subarray(0,this.outputBufferPosition)},t.prototype.findLongestMatch=function(e,t){var n=this.prefixHashTable.getArraySegmentForBucketIndex(t,this.reusableArraySegmentObject);if(null==n)return null;for(var r,o=this.inputBuffer,i=0,a=0;a<n.length;a++){var l,s=n.getInReversedOrder(a)-this.inputBufferStreamOffset,c=e-s;if(l=void 0===r?this.MinimumSequenceLength-1:r<128&&c>=128?i+(i>>>1):i,c>this.MaximumMatchDistance||l>=this.MaximumSequenceLength||e+l>=o.length)break;if(o[s+l]===o[e+l])for(var u=0;;u++){if(e+u===o.length||o[s+u]!==o[e+u]){u>l&&(r=c,i=u);break}if(u===this.MaximumSequenceLength)return{distance:c,length:this.MaximumSequenceLength}}}return void 0!==r?{distance:r,length:i}:null},t.prototype.getBucketIndexForPrefix=function(e){return(7880599*this.inputBuffer[e]+39601*this.inputBuffer[e+1]+199*this.inputBuffer[e+2]+this.inputBuffer[e+3])%this.PrefixHashTableSize},t.prototype.outputPointerBytes=function(e,t){t<128?(this.outputRawByte(192|e),this.outputRawByte(t)):(this.outputRawByte(224|e),this.outputRawByte(t>>>8),this.outputRawByte(255&t))},t.prototype.outputRawByte=function(e){this.outputBuffer[this.outputBufferPosition++]=e},t.prototype.cropAndAddNewBytesToInputBuffer=function(t){if(void 0===this.inputBuffer)return this.inputBuffer=t,0;var n=Math.min(this.inputBuffer.length,this.MaximumMatchDistance),r=this.inputBuffer.length-n;return this.inputBuffer=e.CompressionCommon.getCroppedAndAppendedByteArray(this.inputBuffer,r,n,t),this.inputBufferStreamOffset+=r,n},t}();e.Compressor=t}(o||(o={})),function(e){var t=function(){function t(e){this.minimumBucketCapacity=4,this.maximumBucketCapacity=64,this.bucketLocators=new Uint32Array(2*e),this.storage=new Uint32Array(2*e),this.storageIndex=1}return t.prototype.addValueToBucket=function(t,n){t<<=1,this.storageIndex>=this.storage.length>>>1&&this.compact();var r,o=this.bucketLocators[t];if(0===o)o=this.storageIndex,r=1,this.storage[this.storageIndex]=n,this.storageIndex+=this.minimumBucketCapacity;else{(r=this.bucketLocators[t+1])===this.maximumBucketCapacity-1&&(r=this.truncateBucketToNewerElements(o,r,this.maximumBucketCapacity/2));var i=o+r;0===this.storage[i]?(this.storage[i]=n,i===this.storageIndex&&(this.storageIndex+=r)):(e.ArrayTools.copyElements(this.storage,o,this.storage,this.storageIndex,r),o=this.storageIndex,this.storageIndex+=r,this.storage[this.storageIndex++]=n,this.storageIndex+=r),r++}this.bucketLocators[t]=o,this.bucketLocators[t+1]=r},t.prototype.truncateBucketToNewerElements=function(t,n,r){var o=t+n-r;return e.ArrayTools.copyElements(this.storage,o,this.storage,t,r),e.ArrayTools.zeroElements(this.storage,t+r,n-r),r},t.prototype.compact=function(){var t=this.bucketLocators,n=this.storage;this.bucketLocators=new Uint32Array(this.bucketLocators.length),this.storageIndex=1;for(var r=0;r<t.length;r+=2){var o=t[r+1];0!==o&&(this.bucketLocators[r]=this.storageIndex,this.bucketLocators[r+1]=o,this.storageIndex+=Math.max(Math.min(2*o,this.maximumBucketCapacity),this.minimumBucketCapacity))}for(this.storage=new Uint32Array(8*this.storageIndex),r=0;r<t.length;r+=2){var i=t[r];if(0!==i){var a=this.bucketLocators[r],l=this.bucketLocators[r+1];e.ArrayTools.copyElements(n,i,this.storage,a,l)}}},t.prototype.getArraySegmentForBucketIndex=function(t,n){t<<=1;var r=this.bucketLocators[t];return 0===r?null:(void 0===n&&(n=new e.ArraySegment(this.storage,r,this.bucketLocators[t+1])),n)},t.prototype.getUsedBucketCount=function(){return Math.floor(e.ArrayTools.countNonzeroValuesInArray(this.bucketLocators)/2)},t.prototype.getTotalElementCount=function(){for(var e=0,t=0;t<this.bucketLocators.length;t+=2)e+=this.bucketLocators[t+1];return e},t}();e.CompressorCustomHashTable=t}(o||(o={})),function(e){var t=function(){function t(e){this.maximumBucketCapacity=64,this.buckets=new Array(e)}return t.prototype.addValueToBucket=function(t,n){var r=this.buckets[t];void 0===r?this.buckets[t]=[n]:(r.length===this.maximumBucketCapacity-1&&e.ArrayTools.truncateStartingElements(r,this.maximumBucketCapacity/2),r.push(n))},t.prototype.getArraySegmentForBucketIndex=function(t,n){var r=this.buckets[t];return void 0===r?null:(void 0===n&&(n=new e.ArraySegment(r,0,r.length)),n)},t.prototype.getUsedBucketCount=function(){return e.ArrayTools.countNonzeroValuesInArray(this.buckets)},t.prototype.getTotalElementCount=function(){for(var e=0,t=0;t<this.buckets.length;t++)void 0!==this.buckets[t]&&(e+=this.buckets[t].length);return e},t}();e.CompressorSimpleHashTable=t}(o||(o={})),function(e){var t=function(){function t(){this.MaximumMatchDistance=32767,this.outputPosition=0}return t.prototype.decompressBlockToString=function(t){return t=e.BufferTools.convertToUint8ArrayIfNeeded(t),e.decodeUTF8(this.decompressBlock(t))},t.prototype.decompressBlock=function(t){this.inputBufferRemainder&&(t=e.ArrayTools.concatUint8Arrays([this.inputBufferRemainder,t]),this.inputBufferRemainder=void 0);for(var n=this.cropOutputBufferToWindowAndInitialize(Math.max(4*t.length,1024)),r=0,o=t.length;r<o;r++){var i=t[r];if(i>>>6==3){var a=i>>>5;if(r==o-1||r==o-2&&7==a){this.inputBufferRemainder=t.subarray(r);break}if(t[r+1]>>>7==1)this.outputByte(i);else{var l=31&i,s=void 0;6==a?(s=t[r+1],r+=1):(s=t[r+1]<<8|t[r+2],r+=2);for(var c=this.outputPosition-s,u=0;u<l;u++)this.outputByte(this.outputBuffer[c+u])}}else this.outputByte(i)}return this.rollBackIfOutputBufferEndsWithATruncatedMultibyteSequence(),e.CompressionCommon.getCroppedBuffer(this.outputBuffer,n,this.outputPosition-n)},t.prototype.outputByte=function(t){this.outputPosition===this.outputBuffer.length&&(this.outputBuffer=e.ArrayTools.doubleByteArrayCapacity(this.outputBuffer)),this.outputBuffer[this.outputPosition++]=t},t.prototype.cropOutputBufferToWindowAndInitialize=function(t){if(!this.outputBuffer)return this.outputBuffer=new Uint8Array(t),0;var n=Math.min(this.outputPosition,this.MaximumMatchDistance);if(this.outputBuffer=e.CompressionCommon.getCroppedBuffer(this.outputBuffer,this.outputPosition-n,n,t),this.outputPosition=n,this.outputBufferRemainder){for(var r=0;r<this.outputBufferRemainder.length;r++)this.outputByte(this.outputBufferRemainder[r]);this.outputBufferRemainder=void 0}return n},t.prototype.rollBackIfOutputBufferEndsWithATruncatedMultibyteSequence=function(){for(var e=1;e<=4&&this.outputPosition-e>=0;e++){var t=this.outputBuffer[this.outputPosition-e];if(e<4&&t>>>3==30||e<3&&t>>>4==14||e<2&&t>>>5==6)return this.outputBufferRemainder=this.outputBuffer.subarray(this.outputPosition-e,this.outputPosition),void(this.outputPosition-=e)}},t}();e.Decompressor=t}(o||(o={})),function(e){!function(t){!function(t){var n=new Uint8Array([65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,48,49,50,51,52,53,54,55,56,57,43,47]),r=new Uint8Array([255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,62,255,255,255,63,52,53,54,55,56,57,58,59,60,61,255,255,255,0,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255,255,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,255,255,255,255]);t.encode=function(n){return n&&0!=n.length?e.runningInNodeJS()?e.BufferTools.uint8ArrayToBuffer(n).toString("base64"):t.encodeWithJS(n):""},t.decode=function(n){return n?e.runningInNodeJS()?e.BufferTools.bufferToUint8Array(Buffer.from(n,"base64")):t.decodeWithJS(n):new Uint8Array(0)},t.encodeWithJS=function(t,r){if(void 0===r&&(r=!0),!t||0==t.length)return"";for(var o,i=n,a=new e.StringBuilder,l=0,s=t.length;l<s;l+=3)l<=s-3?(o=t[l]<<16|t[l+1]<<8|t[l+2],a.appendCharCode(i[o>>>18&63]),a.appendCharCode(i[o>>>12&63]),a.appendCharCode(i[o>>>6&63]),a.appendCharCode(i[63&o]),o=0):l===s-2?(o=t[l]<<16|t[l+1]<<8,a.appendCharCode(i[o>>>18&63]),a.appendCharCode(i[o>>>12&63]),a.appendCharCode(i[o>>>6&63]),r&&a.appendCharCode(61)):l===s-1&&(o=t[l]<<16,a.appendCharCode(i[o>>>18&63]),a.appendCharCode(i[o>>>12&63]),r&&(a.appendCharCode(61),a.appendCharCode(61)));return a.getOutputString()},t.decodeWithJS=function(e,t){if(!e||0==e.length)return new Uint8Array(0);var n=e.length%4;if(1===n)throw new Error("Invalid Base64 string: length % 4 == 1");2===n?e+="==":3===n&&(e+="="),t||(t=new Uint8Array(e.length));for(var o=0,i=e.length,a=0;a<i;a+=4){var l=r[e.charCodeAt(a)]<<18|r[e.charCodeAt(a+1)]<<12|r[e.charCodeAt(a+2)]<<6|r[e.charCodeAt(a+3)];t[o++]=l>>>16&255,t[o++]=l>>>8&255,t[o++]=255&l}return 61==e.charCodeAt(i-1)&&o--,61==e.charCodeAt(i-2)&&o--,t.subarray(0,o)}}(t.Base64||(t.Base64={}))}(e.Encoding||(e.Encoding={}))}(o||(o={})),function(e){!function(t){!function(t){t.encode=function(t){if(null==t)throw new TypeError("BinaryString.encode: undefined or null input received");if(0===t.length)return"";for(var n=t.length,r=new e.StringBuilder,o=0,i=1,a=0;a<n;a+=2){var l;l=a==n-1?t[a]<<8:t[a]<<8|t[a+1],r.appendCharCode(o<<16-i|l>>>i),o=l&(1<<i)-1,15===i?(r.appendCharCode(o),o=0,i=1):i+=1,a>=n-2&&r.appendCharCode(o<<16-i)}return r.appendCharCode(32768|n%2),r.getOutputString()},t.decode=function(e){if("string"!=typeof e)throw new TypeError("BinaryString.decode: invalid input type");if(""==e)return new Uint8Array(0);for(var t=new Uint8Array(3*e.length),n=0,r=function(e){t[n++]=e>>>8,t[n++]=255&e},o=0,i=0,a=0;a<e.length;a++){var l=e.charCodeAt(a);l>=32768?(32769==l&&n--,i=0):(0==i?o=l:(r(o<<i|l>>>15-i),o=l&(1<<15-i)-1),15==i?i=0:i+=1)}return t.subarray(0,n)}}(t.BinaryString||(t.BinaryString={}))}(e.Encoding||(e.Encoding={}))}(o||(o={})),function(e){!function(e){!function(e){e.encodeFromString=function(e,t){var n=e.charCodeAt(t);if(n<55296||n>56319)return n;var r=e.charCodeAt(t+1);if(r>=56320&&r<=57343)return r-56320+(n-55296<<10)+65536;throw new Error("getUnicodeCodePoint: Received a lead surrogate character, char code ".concat(n,", followed by ").concat(r,", which is not a trailing surrogate character code."))},e.decodeToString=function(e){if(e<=65535)return String.fromCharCode(e);if(e<=1114111)return String.fromCharCode(55296+(e-65536>>>10),56320+(e-65536&1023));throw new Error("getStringFromUnicodeCodePoint: A code point of ".concat(e," cannot be encoded in UTF-16"))}}(e.CodePoint||(e.CodePoint={}))}(e.Encoding||(e.Encoding={}))}(o||(o={})),function(e){!function(e){!function(e){var t=["000","001","002","003","004","005","006","007","008","009","010","011","012","013","014","015","016","017","018","019","020","021","022","023","024","025","026","027","028","029","030","031","032","033","034","035","036","037","038","039","040","041","042","043","044","045","046","047","048","049","050","051","052","053","054","055","056","057","058","059","060","061","062","063","064","065","066","067","068","069","070","071","072","073","074","075","076","077","078","079","080","081","082","083","084","085","086","087","088","089","090","091","092","093","094","095","096","097","098","099","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255"];e.encode=function(e){for(var n=[],r=0;r<e.length;r++)n.push(t[e[r]]);return n.join(" ")}}(e.DecimalString||(e.DecimalString={}))}(e.Encoding||(e.Encoding={}))}(o||(o={})),function(e){!function(e){!function(t){t.encode=function(t){return e.BinaryString.encode(t).replace(/\0/g,"耂")},t.decode=function(t){return e.BinaryString.decode(t.replace(/\u8002/g,"\0"))}}(e.StorageBinaryString||(e.StorageBinaryString={}))}(e.Encoding||(e.Encoding={}))}(o||(o={})),function(e){!function(t){!function(n){var r,o;n.encode=function(t){return t&&0!=t.length?e.runningInNodeJS()?e.BufferTools.bufferToUint8Array(Buffer.from(t,"utf8")):n.createNativeTextEncoderAndDecoderIfAvailable()?r.encode(t):n.encodeWithJS(t):new Uint8Array(0)},n.decode=function(t){return t&&0!=t.length?e.runningInNodeJS()?e.BufferTools.uint8ArrayToBuffer(t).toString("utf8"):n.createNativeTextEncoderAndDecoderIfAvailable()?o.decode(t):n.decodeWithJS(t):""},n.encodeWithJS=function(e,n){if(!e||0==e.length)return new Uint8Array(0);n||(n=new Uint8Array(4*e.length));for(var r=0,o=0;o<e.length;o++){var i=t.CodePoint.encodeFromString(e,o);if(i<=127)n[r++]=i;else if(i<=2047)n[r++]=192|i>>>6,n[r++]=128|63&i;else if(i<=65535)n[r++]=224|i>>>12,n[r++]=128|i>>>6&63,n[r++]=128|63&i;else{if(!(i<=1114111))throw new Error("Invalid UTF-16 string: Encountered a character unsupported by UTF-8/16 (RFC 3629)");n[r++]=240|i>>>18,n[r++]=128|i>>>12&63,n[r++]=128|i>>>6&63,n[r++]=128|63&i,o++}}return n.subarray(0,r)},n.decodeWithJS=function(t,n,r){if(void 0===n&&(n=0),!t||0==t.length)return"";void 0===r&&(r=t.length);for(var o,i,a=new e.StringBuilder,l=n,s=r;l<s;){if((i=t[l])>>>7==0)o=i,l+=1;else if(i>>>5==6){if(l+1>=r)throw new Error("Invalid UTF-8 stream: Truncated codepoint sequence encountered at position "+l);o=(31&i)<<6|63&t[l+1],l+=2}else if(i>>>4==14){if(l+2>=r)throw new Error("Invalid UTF-8 stream: Truncated codepoint sequence encountered at position "+l);o=(15&i)<<12|(63&t[l+1])<<6|63&t[l+2],l+=3}else{if(i>>>3!=30)throw new Error("Invalid UTF-8 stream: An invalid lead byte value encountered at position "+l);if(l+3>=r)throw new Error("Invalid UTF-8 stream: Truncated codepoint sequence encountered at position "+l);o=(7&i)<<18|(63&t[l+1])<<12|(63&t[l+2])<<6|63&t[l+3],l+=4}a.appendCodePoint(o)}return a.getOutputString()},n.createNativeTextEncoderAndDecoderIfAvailable=function(){return!!r||"function"==typeof TextEncoder&&(r=new TextEncoder("utf-8"),o=new TextDecoder("utf-8"),!0)}}(t.UTF8||(t.UTF8={}))}(e.Encoding||(e.Encoding={}))}(o||(o={})),function(e){e.compress=function(t,n){if(void 0===n&&(n={}),null==t)throw new TypeError("compress: undefined or null input received");var r=e.CompressionCommon.detectCompressionSourceEncoding(t);n=e.ObjectTools.override({inputEncoding:r,outputEncoding:"ByteArray"},n);var o=(new e.Compressor).compressBlock(t);return e.CompressionCommon.encodeCompressedBytes(o,n.outputEncoding)},e.decompress=function(t,n){if(void 0===n&&(n={}),null==t)throw new TypeError("decompress: undefined or null input received");n=e.ObjectTools.override({inputEncoding:"ByteArray",outputEncoding:"String"},n);var r=e.CompressionCommon.decodeCompressedBytes(t,n.inputEncoding),o=(new e.Decompressor).decompressBlock(r);return e.CompressionCommon.encodeDecompressedBytes(o,n.outputEncoding)},e.compressAsync=function(t,n,r){var o;null==r&&(r=function(){});try{o=e.CompressionCommon.detectCompressionSourceEncoding(t)}catch(e){return void r(void 0,e)}n=e.ObjectTools.override({inputEncoding:o,outputEncoding:"ByteArray",useWebWorker:!0,blockSize:65536},n),e.enqueueImmediate((function(){n.useWebWorker&&e.WebWorker.createGlobalWorkerIfNeeded()?e.WebWorker.compressAsync(t,n,r):e.AsyncCompressor.compressAsync(t,n,r)}))},e.decompressAsync=function(t,n,r){if(null==r&&(r=function(){}),null!=t){n=e.ObjectTools.override({inputEncoding:"ByteArray",outputEncoding:"String",useWebWorker:!0,blockSize:65536},n);var o=e.BufferTools.convertToUint8ArrayIfNeeded(t);e.EventLoop.enqueueImmediate((function(){n.useWebWorker&&e.WebWorker.createGlobalWorkerIfNeeded()?e.WebWorker.decompressAsync(o,n,r):e.AsyncDecompressor.decompressAsync(t,n,r)}))}else r(void 0,new TypeError("decompressAsync: undefined or null input received"))},e.createCompressionStream=function(){return e.AsyncCompressor.createCompressionStream()},e.createDecompressionStream=function(){return e.AsyncDecompressor.createDecompressionStream()},e.encodeUTF8=function(t){return e.Encoding.UTF8.encode(t)},e.decodeUTF8=function(t){return e.Encoding.UTF8.decode(t)},e.encodeBase64=function(t){return e.Encoding.Base64.encode(t)},e.decodeBase64=function(t){return e.Encoding.Base64.decode(t)},e.encodeBinaryString=function(t){return e.Encoding.BinaryString.encode(t)},e.decodeBinaryString=function(t){return e.Encoding.BinaryString.decode(t)},e.encodeStorageBinaryString=function(t){return e.Encoding.StorageBinaryString.encode(t)},e.decodeStorageBinaryString=function(t){return e.Encoding.StorageBinaryString.decode(t)}}(o||(o={}))},374:(e,t,n)=>{const{AbortError:r,codes:o}=n(141),{isNodeStream:i,isWebStream:a,kControllerErrorFunction:l}=n(132),s=n(86),{ERR_INVALID_ARG_TYPE:c}=o;e.exports.addAbortSignal=function(t,n){if(((e,t)=>{if("object"!=typeof e||!("aborted"in e))throw new c("signal","AbortSignal",e)})(t),!i(n)&&!a(n))throw new c("stream",["ReadableStream","WritableStream","Stream"],n);return e.exports.addAbortSignalNoValidate(t,n)},e.exports.addAbortSignalNoValidate=function(e,t){if("object"!=typeof e||!("aborted"in e))return t;const n=i(t)?()=>{t.destroy(new r(void 0,{cause:e.reason}))}:()=>{t[l](new r(void 0,{cause:e.reason}))};return e.aborted?n():(e.addEventListener("abort",n),s(t,(()=>e.removeEventListener("abort",n)))),t}},616:(e,t,n)=>{const{StringPrototypeSlice:r,SymbolIterator:o,TypedArrayPrototypeSet:i,Uint8Array:a}=n(191),{Buffer:l}=n(485),{inspect:s}=n(775);e.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){const t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}unshift(e){const t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}shift(){if(0===this.length)return;const e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(0===this.length)return"";let t=this.head,n=""+t.data;for(;null!==(t=t.next);)n+=e+t.data;return n}concat(e){if(0===this.length)return l.alloc(0);const t=l.allocUnsafe(e>>>0);let n=this.head,r=0;for(;n;)i(t,n.data,r),r+=n.data.length,n=n.next;return t}consume(e,t){const n=this.head.data;if(e<n.length){const t=n.slice(0,e);return this.head.data=n.slice(e),t}return e===n.length?this.shift():t?this._getString(e):this._getBuffer(e)}first(){return this.head.data}*[o](){for(let e=this.head;e;e=e.next)yield e.data}_getString(e){let t="",n=this.head,o=0;do{const i=n.data;if(!(e>i.length)){e===i.length?(t+=i,++o,n.next?this.head=n.next:this.head=this.tail=null):(t+=r(i,0,e),this.head=n,n.data=r(i,e));break}t+=i,e-=i.length,++o}while(null!==(n=n.next));return this.length-=o,t}_getBuffer(e){const t=l.allocUnsafe(e),n=e;let r=this.head,o=0;do{const l=r.data;if(!(e>l.length)){e===l.length?(i(t,l,n-e),++o,r.next?this.head=r.next:this.head=this.tail=null):(i(t,new a(l.buffer,l.byteOffset,e),n-e),this.head=r,r.data=l.slice(e));break}i(t,l,n-e),e-=l.length,++o}while(null!==(r=r.next));return this.length-=o,t}[Symbol.for("nodejs.util.inspect.custom")](e,t){return s(this,{...t,depth:0,customInspect:!1})}}},818:(e,t,n)=>{const{pipeline:r}=n(754),o=n(182),{destroyer:i}=n(230),{isNodeStream:a,isReadable:l,isWritable:s,isWebStream:c,isTransformStream:u,isWritableStream:f,isReadableStream:d}=n(132),{AbortError:p,codes:{ERR_INVALID_ARG_VALUE:h,ERR_MISSING_ARGS:v}}=n(141),g=n(86);e.exports=function(...e){if(0===e.length)throw new v("streams");if(1===e.length)return o.from(e[0]);const t=[...e];if("function"==typeof e[0]&&(e[0]=o.from(e[0])),"function"==typeof e[e.length-1]){const t=e.length-1;e[t]=o.from(e[t])}for(let n=0;n<e.length;++n)if(a(e[n])||c(e[n])){if(n<e.length-1&&!(l(e[n])||d(e[n])||u(e[n])))throw new h(`streams[${n}]`,t[n],"must be readable");if(n>0&&!(s(e[n])||f(e[n])||u(e[n])))throw new h(`streams[${n}]`,t[n],"must be writable")}let n,C,m,y,w;const b=e[0],x=r(e,(function(e){const t=y;y=null,t?t(e):e?w.destroy(e):O||_||w.destroy()})),_=!!(s(b)||f(b)||u(b)),O=!!(l(x)||d(x)||u(x));if(w=new o({writableObjectMode:!(null==b||!b.writableObjectMode),readableObjectMode:!(null==x||!x.writableObjectMode),writable:_,readable:O}),_){if(a(b))w._write=function(e,t,r){b.write(e,t)?r():n=r},w._final=function(e){b.end(),C=e},b.on("drain",(function(){if(n){const e=n;n=null,e()}}));else if(c(b)){const e=(u(b)?b.writable:b).getWriter();w._write=async function(t,n,r){try{await e.ready,e.write(t).catch((()=>{})),r()}catch(e){r(e)}},w._final=async function(t){try{await e.ready,e.close().catch((()=>{})),C=t}catch(e){t(e)}}}const e=u(x)?x.readable:x;g(e,(()=>{if(C){const e=C;C=null,e()}}))}if(O)if(a(x))x.on("readable",(function(){if(m){const e=m;m=null,e()}})),x.on("end",(function(){w.push(null)})),w._read=function(){for(;;){const e=x.read();if(null===e)return void(m=w._read);if(!w.push(e))return}};else if(c(x)){const e=(u(x)?x.readable:x).getReader();w._read=async function(){for(;;)try{const{value:t,done:n}=await e.read();if(!w.push(t))return;if(n)return void w.push(null)}catch{return}}}return w._destroy=function(e,t){e||null===y||(e=new p),m=null,n=null,C=null,null===y?t(e):(y=t,a(x)&&i(x,e))},w}},230:(e,t,n)=>{const r=n(533),{aggregateTwoErrors:o,codes:{ERR_MULTIPLE_CALLBACK:i},AbortError:a}=n(141),{Symbol:l}=n(191),{kDestroyed:s,isDestroyed:c,isFinished:u,isServerRequest:f}=n(132),d=l("kDestroy"),p=l("kConstruct");function h(e,t,n){e&&(e.stack,t&&!t.errored&&(t.errored=e),n&&!n.errored&&(n.errored=e))}function v(e,t,n){let o=!1;function i(t){if(o)return;o=!0;const i=e._readableState,a=e._writableState;h(t,a,i),a&&(a.closed=!0),i&&(i.closed=!0),"function"==typeof n&&n(t),t?r.nextTick(g,e,t):r.nextTick(C,e)}try{e._destroy(t||null,i)}catch(t){i(t)}}function g(e,t){m(e,t),C(e)}function C(e){const t=e._readableState,n=e._writableState;n&&(n.closeEmitted=!0),t&&(t.closeEmitted=!0),(null!=n&&n.emitClose||null!=t&&t.emitClose)&&e.emit("close")}function m(e,t){const n=e._readableState,r=e._writableState;null!=r&&r.errorEmitted||null!=n&&n.errorEmitted||(r&&(r.errorEmitted=!0),n&&(n.errorEmitted=!0),e.emit("error",t))}function y(e,t,n){const o=e._readableState,i=e._writableState;if(null!=i&&i.destroyed||null!=o&&o.destroyed)return this;null!=o&&o.autoDestroy||null!=i&&i.autoDestroy?e.destroy(t):t&&(t.stack,i&&!i.errored&&(i.errored=t),o&&!o.errored&&(o.errored=t),n?r.nextTick(m,e,t):m(e,t))}function w(e){let t=!1;function n(n){if(t)return void y(e,null!=n?n:new i);t=!0;const o=e._readableState,a=e._writableState,l=a||o;o&&(o.constructed=!0),a&&(a.constructed=!0),l.destroyed?e.emit(d,n):n?y(e,n,!0):r.nextTick(b,e)}try{e._construct((e=>{r.nextTick(n,e)}))}catch(e){r.nextTick(n,e)}}function b(e){e.emit(p)}function x(e){return(null==e?void 0:e.setHeader)&&"function"==typeof e.abort}function _(e){e.emit("close")}function O(e,t){e.emit("error",t),r.nextTick(_,e)}e.exports={construct:function(e,t){if("function"!=typeof e._construct)return;const n=e._readableState,o=e._writableState;n&&(n.constructed=!1),o&&(o.constructed=!1),e.once(p,t),e.listenerCount(p)>1||r.nextTick(w,e)},destroyer:function(e,t){e&&!c(e)&&(t||u(e)||(t=new a),f(e)?(e.socket=null,e.destroy(t)):x(e)?e.abort():x(e.req)?e.req.abort():"function"==typeof e.destroy?e.destroy(t):"function"==typeof e.close?e.close():t?r.nextTick(O,e,t):r.nextTick(_,e),e.destroyed||(e[s]=!0))},destroy:function(e,t){const n=this._readableState,r=this._writableState,i=r||n;return null!=r&&r.destroyed||null!=n&&n.destroyed?("function"==typeof t&&t(),this):(h(e,r,n),r&&(r.destroyed=!0),n&&(n.destroyed=!0),i.constructed?v(this,e,t):this.once(d,(function(n){v(this,o(n,e),t)})),this)},undestroy:function(){const e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=!1===e.readable,e.endEmitted=!1===e.readable),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=!1===t.writable,t.ending=!1===t.writable,t.finished=!1===t.writable)},errorOrDestroy:y}},182:(e,t,n)=>{const{ObjectDefineProperties:r,ObjectGetOwnPropertyDescriptor:o,ObjectKeys:i,ObjectSetPrototypeOf:a}=n(191);e.exports=c;const l=n(858),s=n(373);a(c.prototype,l.prototype),a(c,l);{const e=i(s.prototype);for(let t=0;t<e.length;t++){const n=e[t];c.prototype[n]||(c.prototype[n]=s.prototype[n])}}function c(e){if(!(this instanceof c))return new c(e);l.call(this,e),s.call(this,e),e?(this.allowHalfOpen=!1!==e.allowHalfOpen,!1===e.readable&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===e.writable&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}let u,f;function d(){return void 0===u&&(u={}),u}r(c.prototype,{writable:{__proto__:null,...o(s.prototype,"writable")},writableHighWaterMark:{__proto__:null,...o(s.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...o(s.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...o(s.prototype,"writableBuffer")},writableLength:{__proto__:null,...o(s.prototype,"writableLength")},writableFinished:{__proto__:null,...o(s.prototype,"writableFinished")},writableCorked:{__proto__:null,...o(s.prototype,"writableCorked")},writableEnded:{__proto__:null,...o(s.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...o(s.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set(e){this._readableState&&this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}}),c.fromWeb=function(e,t){return d().newStreamDuplexFromReadableWritablePair(e,t)},c.toWeb=function(e){return d().newReadableWritablePairFromDuplex(e)},c.from=function(e){return f||(f=n(749)),f(e,"body")}},749:(e,t,n)=>{const r=n(533),o=n(485),{isReadable:i,isWritable:a,isIterable:l,isNodeStream:s,isReadableNodeStream:c,isWritableNodeStream:u,isDuplexNodeStream:f}=n(132),d=n(86),{AbortError:p,codes:{ERR_INVALID_ARG_TYPE:h,ERR_INVALID_RETURN_VALUE:v}}=n(141),{destroyer:g}=n(230),C=n(182),m=n(858),{createDeferredPromise:y}=n(775),w=n(913),b=globalThis.Blob||o.Blob,x=void 0!==b?function(e){return e instanceof b}:function(e){return!1},_=globalThis.AbortController||n(876).AbortController,{FunctionPrototypeCall:O}=n(191);class L extends C{constructor(e){super(e),!1===(null==e?void 0:e.readable)&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===(null==e?void 0:e.writable)&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}function E(e){const t=e.readable&&"function"!=typeof e.readable.read?m.wrap(e.readable):e.readable,n=e.writable;let r,o,l,s,c,u=!!i(t),f=!!a(n);function h(e){const t=s;s=null,t?t(e):e&&c.destroy(e)}return c=new L({readableObjectMode:!(null==t||!t.readableObjectMode),writableObjectMode:!(null==n||!n.writableObjectMode),readable:u,writable:f}),f&&(d(n,(e=>{f=!1,e&&g(t,e),h(e)})),c._write=function(e,t,o){n.write(e,t)?o():r=o},c._final=function(e){n.end(),o=e},n.on("drain",(function(){if(r){const e=r;r=null,e()}})),n.on("finish",(function(){if(o){const e=o;o=null,e()}}))),u&&(d(t,(e=>{u=!1,e&&g(t,e),h(e)})),t.on("readable",(function(){if(l){const e=l;l=null,e()}})),t.on("end",(function(){c.push(null)})),c._read=function(){for(;;){const e=t.read();if(null===e)return void(l=c._read);if(!c.push(e))return}}),c._destroy=function(e,i){e||null===s||(e=new p),l=null,r=null,o=null,null===s?i(e):(s=i,g(n,e),g(t,e))},c}e.exports=function e(t,n){if(f(t))return t;if(c(t))return E({readable:t});if(u(t))return E({writable:t});if(s(t))return E({writable:!1,readable:!1});if("function"==typeof t){const{value:e,write:o,final:i,destroy:a}=function(e){let{promise:t,resolve:n}=y();const o=new _,i=o.signal,a=e(async function*(){for(;;){const e=t;t=null;const{chunk:o,done:a,cb:l}=await e;if(r.nextTick(l),a)return;if(i.aborted)throw new p(void 0,{cause:i.reason});({promise:t,resolve:n}=y()),yield o}}(),{signal:i});return{value:a,write(e,t,r){const o=n;n=null,o({chunk:e,done:!1,cb:r})},final(e){const t=n;n=null,t({done:!0,cb:e})},destroy(e,t){o.abort(),t(e)}}}(t);if(l(e))return w(L,e,{objectMode:!0,write:o,final:i,destroy:a});const s=null==e?void 0:e.then;if("function"==typeof s){let t;const n=O(s,e,(e=>{if(null!=e)throw new v("nully","body",e)}),(e=>{g(t,e)}));return t=new L({objectMode:!0,readable:!1,write:o,final(e){i((async()=>{try{await n,r.nextTick(e,null)}catch(t){r.nextTick(e,t)}}))},destroy:a})}throw new v("Iterable, AsyncIterable or AsyncFunction",n,e)}if(x(t))return e(t.arrayBuffer());if(l(t))return w(L,t,{objectMode:!0,writable:!1});if("object"==typeof(null==t?void 0:t.writable)||"object"==typeof(null==t?void 0:t.readable))return E({readable:null!=t&&t.readable?c(null==t?void 0:t.readable)?null==t?void 0:t.readable:e(t.readable):void 0,writable:null!=t&&t.writable?u(null==t?void 0:t.writable)?null==t?void 0:t.writable:e(t.writable):void 0});const o=null==t?void 0:t.then;if("function"==typeof o){let e;return O(o,t,(t=>{null!=t&&e.push(t),e.push(null)}),(t=>{g(e,t)})),e=new L({objectMode:!0,writable:!1,read(){}})}throw new h(n,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],t)}},86:(e,t,n)=>{const r=n(533),{AbortError:o,codes:i}=n(141),{ERR_INVALID_ARG_TYPE:a,ERR_STREAM_PREMATURE_CLOSE:l}=i,{kEmptyObject:s,once:c}=n(775),{validateAbortSignal:u,validateFunction:f,validateObject:d,validateBoolean:p}=n(904),{Promise:h,PromisePrototypeThen:v}=n(191),{isClosed:g,isReadable:C,isReadableNodeStream:m,isReadableStream:y,isReadableFinished:w,isReadableErrored:b,isWritable:x,isWritableNodeStream:_,isWritableStream:O,isWritableFinished:L,isWritableErrored:E,isNodeStream:S,willEmitClose:M,kIsClosedPromise:j}=n(132),k=()=>{};function R(e,t,n){var i,p;if(2===arguments.length?(n=t,t=s):null==t?t=s:d(t,"options"),f(n,"callback"),u(t.signal,"options.signal"),n=c(n),y(e)||O(e))return function(e,t,n){let i=!1,a=k;if(t.signal)if(a=()=>{i=!0,n.call(e,new o(void 0,{cause:t.signal.reason}))},t.signal.aborted)r.nextTick(a);else{const r=n;n=c(((...n)=>{t.signal.removeEventListener("abort",a),r.apply(e,n)})),t.signal.addEventListener("abort",a)}const l=(...t)=>{i||r.nextTick((()=>n.apply(e,t)))};return v(e[j].promise,l,l),k}(e,t,n);if(!S(e))throw new a("stream",["ReadableStream","WritableStream","Stream"],e);const h=null!==(i=t.readable)&&void 0!==i?i:m(e),R=null!==(p=t.writable)&&void 0!==p?p:_(e),P=e._writableState,I=e._readableState,A=()=>{e.writable||V()};let T=M(e)&&m(e)===h&&_(e)===R,H=L(e,!1);const V=()=>{H=!0,e.destroyed&&(T=!1),(!T||e.readable&&!h)&&(h&&!B||n.call(e))};let B=w(e,!1);const D=()=>{B=!0,e.destroyed&&(T=!1),(!T||e.writable&&!R)&&(R&&!H||n.call(e))},Z=t=>{n.call(e,t)};let $=g(e);const F=()=>{$=!0;const t=E(e)||b(e);return t&&"boolean"!=typeof t?n.call(e,t):h&&!B&&m(e,!0)&&!w(e,!1)?n.call(e,new l):!R||H||L(e,!1)?void n.call(e):n.call(e,new l)},N=()=>{$=!0;const t=E(e)||b(e);if(t&&"boolean"!=typeof t)return n.call(e,t);n.call(e)},U=()=>{e.req.on("finish",V)};!function(e){return e.setHeader&&"function"==typeof e.abort}(e)?R&&!P&&(e.on("end",A),e.on("close",A)):(e.on("complete",V),T||e.on("abort",F),e.req?U():e.on("request",U)),T||"boolean"!=typeof e.aborted||e.on("aborted",F),e.on("end",D),e.on("finish",V),!1!==t.error&&e.on("error",Z),e.on("close",F),$?r.nextTick(F):null!=P&&P.errorEmitted||null!=I&&I.errorEmitted?T||r.nextTick(N):(h||T&&!C(e)||!H&&!1!==x(e))&&(R||T&&!x(e)||!B&&!1!==C(e))?I&&e.req&&e.aborted&&r.nextTick(N):r.nextTick(N);const W=()=>{n=k,e.removeListener("aborted",F),e.removeListener("complete",V),e.removeListener("abort",F),e.removeListener("request",U),e.req&&e.req.removeListener("finish",V),e.removeListener("end",A),e.removeListener("close",A),e.removeListener("finish",V),e.removeListener("end",D),e.removeListener("error",Z),e.removeListener("close",F)};if(t.signal&&!$){const i=()=>{const r=n;W(),r.call(e,new o(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)r.nextTick(i);else{const r=n;n=c(((...n)=>{t.signal.removeEventListener("abort",i),r.apply(e,n)})),t.signal.addEventListener("abort",i)}}return W}e.exports=R,e.exports.finished=function(e,t){var n;let r=!1;return null===t&&(t=s),null!==(n=t)&&void 0!==n&&n.cleanup&&(p(t.cleanup,"cleanup"),r=t.cleanup),new h(((n,o)=>{const i=R(e,t,(e=>{r&&i(),e?o(e):n()}))}))}},913:(e,t,n)=>{const r=n(533),{PromisePrototypeThen:o,SymbolAsyncIterator:i,SymbolIterator:a}=n(191),{Buffer:l}=n(485),{ERR_INVALID_ARG_TYPE:s,ERR_STREAM_NULL_VALUES:c}=n(141).codes;e.exports=function(e,t,n){let u,f;if("string"==typeof t||t instanceof l)return new e({objectMode:!0,...n,read(){this.push(t),this.push(null)}});if(t&&t[i])f=!0,u=t[i]();else{if(!t||!t[a])throw new s("iterable",["Iterable"],t);f=!1,u=t[a]()}const d=new e({objectMode:!0,highWaterMark:1,...n});let p=!1;return d._read=function(){p||(p=!0,async function(){for(;;){try{const{value:e,done:t}=f?await u.next():u.next();if(t)d.push(null);else{const t=e&&"function"==typeof e.then?await e:e;if(null===t)throw p=!1,new c;if(d.push(t))continue;p=!1}}catch(e){d.destroy(e)}break}}())},d._destroy=function(e,t){o(async function(e){const t=null!=e,n="function"==typeof u.throw;if(t&&n){const{value:t,done:n}=await u.throw(e);if(await t,n)return}if("function"==typeof u.return){const{value:e}=await u.return();await e}}(e),(()=>r.nextTick(t,e)),(n=>r.nextTick(t,n||e)))},d}},200:(e,t,n)=>{const{ArrayIsArray:r,ObjectSetPrototypeOf:o}=n(191),{EventEmitter:i}=n(465);function a(e){i.call(this,e)}function l(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?r(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}o(a.prototype,i.prototype),o(a,i),a.prototype.pipe=function(e,t){const n=this;function r(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",r),e.on("drain",o),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",c));let a=!1;function s(){a||(a=!0,e.end())}function c(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){f(),0===i.listenerCount(this,"error")&&this.emit("error",e)}function f(){n.removeListener("data",r),e.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",c),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",f),n.removeListener("close",f),e.removeListener("close",f)}return l(n,"error",u),l(e,"error",u),n.on("end",f),n.on("close",f),e.on("close",f),e.emit("pipe",n),e},e.exports={Stream:a,prependListener:l}},554:(e,t,n)=>{const r=globalThis.AbortController||n(876).AbortController,{codes:{ERR_INVALID_ARG_VALUE:o,ERR_INVALID_ARG_TYPE:i,ERR_MISSING_ARGS:a,ERR_OUT_OF_RANGE:l},AbortError:s}=n(141),{validateAbortSignal:c,validateInteger:u,validateObject:f}=n(904),d=n(191).Symbol("kWeak"),{finished:p}=n(86),h=n(818),{addAbortSignalNoValidate:v}=n(374),{isWritable:g,isNodeStream:C}=n(132),{ArrayPrototypePush:m,MathFloor:y,Number:w,NumberIsNaN:b,Promise:x,PromiseReject:_,PromisePrototypeThen:O,Symbol:L}=n(191),E=L("kEmpty"),S=L("kEof");function M(e,t){if("function"!=typeof e)throw new i("fn",["Function","AsyncFunction"],e);null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&c(t.signal,"options.signal");let n=1;return null!=(null==t?void 0:t.concurrency)&&(n=y(t.concurrency)),u(n,"concurrency",1),async function*(){var o,i;const a=new r,l=this,c=[],u=a.signal,f={signal:u},d=()=>a.abort();let p,h;null!=t&&null!==(o=t.signal)&&void 0!==o&&o.aborted&&d(),null==t||null===(i=t.signal)||void 0===i||i.addEventListener("abort",d);let v=!1;function g(){v=!0}!async function(){try{for await(let t of l){var r;if(v)return;if(u.aborted)throw new s;try{t=e(t,f)}catch(e){t=_(e)}t!==E&&("function"==typeof(null===(r=t)||void 0===r?void 0:r.catch)&&t.catch(g),c.push(t),p&&(p(),p=null),!v&&c.length&&c.length>=n&&await new x((e=>{h=e})))}c.push(S)}catch(e){const t=_(e);O(t,void 0,g),c.push(t)}finally{var o;v=!0,p&&(p(),p=null),null==t||null===(o=t.signal)||void 0===o||o.removeEventListener("abort",d)}}();try{for(;;){for(;c.length>0;){const e=await c[0];if(e===S)return;if(u.aborted)throw new s;e!==E&&(yield e),c.shift(),h&&(h(),h=null)}await new x((e=>{p=e}))}}finally{a.abort(),v=!0,h&&(h(),h=null)}}.call(this)}async function j(e,t=undefined){for await(const n of k.call(this,e,t))return!0;return!1}function k(e,t){if("function"!=typeof e)throw new i("fn",["Function","AsyncFunction"],e);return M.call(this,(async function(t,n){return await e(t,n)?t:E}),t)}class R extends a{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}function P(e){if(e=w(e),b(e))return 0;if(e<0)throw new l("number",">= 0",e);return e}e.exports.streamReturningOperators={asIndexedPairs:function(e=undefined){return null!=e&&f(e,"options"),null!=(null==e?void 0:e.signal)&&c(e.signal,"options.signal"),async function*(){let t=0;for await(const r of this){var n;if(null!=e&&null!==(n=e.signal)&&void 0!==n&&n.aborted)throw new s({cause:e.signal.reason});yield[t++,r]}}.call(this)},drop:function(e,t=undefined){return null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&c(t.signal,"options.signal"),e=P(e),async function*(){var n;if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new s;for await(const n of this){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new s;e--<=0&&(yield n)}}.call(this)},filter:k,flatMap:function(e,t){const n=M.call(this,e,t);return async function*(){for await(const e of n)yield*e}.call(this)},map:M,take:function(e,t=undefined){return null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&c(t.signal,"options.signal"),e=P(e),async function*(){var n;if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new s;for await(const n of this){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new s;if(!(e-- >0))return;yield n}}.call(this)},compose:function(e,t){if(null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&c(t.signal,"options.signal"),C(e)&&!g(e))throw new o("stream",e,"must be writable");const n=h(this,e);return null!=t&&t.signal&&v(t.signal,n),n}},e.exports.promiseReturningOperators={every:async function(e,t=undefined){if("function"!=typeof e)throw new i("fn",["Function","AsyncFunction"],e);return!await j.call(this,(async(...t)=>!await e(...t)),t)},forEach:async function(e,t){if("function"!=typeof e)throw new i("fn",["Function","AsyncFunction"],e);for await(const n of M.call(this,(async function(t,n){return await e(t,n),E}),t));},reduce:async function(e,t,n){var o;if("function"!=typeof e)throw new i("reducer",["Function","AsyncFunction"],e);null!=n&&f(n,"options"),null!=(null==n?void 0:n.signal)&&c(n.signal,"options.signal");let a=arguments.length>1;if(null!=n&&null!==(o=n.signal)&&void 0!==o&&o.aborted){const e=new s(void 0,{cause:n.signal.reason});throw this.once("error",(()=>{})),await p(this.destroy(e)),e}const l=new r,u=l.signal;if(null!=n&&n.signal){const e={once:!0,[d]:this};n.signal.addEventListener("abort",(()=>l.abort()),e)}let h=!1;try{for await(const r of this){var v;if(h=!0,null!=n&&null!==(v=n.signal)&&void 0!==v&&v.aborted)throw new s;a?t=await e(t,r,{signal:u}):(t=r,a=!0)}if(!h&&!a)throw new R}finally{l.abort()}return t},toArray:async function(e){null!=e&&f(e,"options"),null!=(null==e?void 0:e.signal)&&c(e.signal,"options.signal");const t=[];for await(const r of this){var n;if(null!=e&&null!==(n=e.signal)&&void 0!==n&&n.aborted)throw new s(void 0,{cause:e.signal.reason});m(t,r)}return t},some:j,find:async function(e,t){for await(const n of k.call(this,e,t))return n}}},467:(e,t,n)=>{const{ObjectSetPrototypeOf:r}=n(191);e.exports=i;const o=n(210);function i(e){if(!(this instanceof i))return new i(e);o.call(this,e)}r(i.prototype,o.prototype),r(i,o),i.prototype._transform=function(e,t,n){n(null,e)}},754:(e,t,n)=>{const r=n(533),{ArrayIsArray:o,Promise:i,SymbolAsyncIterator:a}=n(191),l=n(86),{once:s}=n(775),c=n(230),u=n(182),{aggregateTwoErrors:f,codes:{ERR_INVALID_ARG_TYPE:d,ERR_INVALID_RETURN_VALUE:p,ERR_MISSING_ARGS:h,ERR_STREAM_DESTROYED:v,ERR_STREAM_PREMATURE_CLOSE:g},AbortError:C}=n(141),{validateFunction:m,validateAbortSignal:y}=n(904),{isIterable:w,isReadable:b,isReadableNodeStream:x,isNodeStream:_,isTransformStream:O,isWebStream:L,isReadableStream:E,isReadableEnded:S}=n(132),M=globalThis.AbortController||n(876).AbortController;let j,k;function R(e,t,n){let r=!1;return e.on("close",(()=>{r=!0})),{destroy:t=>{r||(r=!0,c.destroyer(e,t||new v("pipe")))},cleanup:l(e,{readable:t,writable:n},(e=>{r=!e}))}}function P(e){if(w(e))return e;if(x(e))return async function*(e){k||(k=n(858)),yield*k.prototype[a].call(e)}(e);throw new d("val",["Readable","Iterable","AsyncIterable"],e)}async function I(e,t,n,{end:r}){let o,a=null;const s=e=>{if(e&&(o=e),a){const e=a;a=null,e()}},c=()=>new i(((e,t)=>{o?t(o):a=()=>{o?t(o):e()}}));t.on("drain",s);const u=l(t,{readable:!1},s);try{t.writableNeedDrain&&await c();for await(const n of e)t.write(n)||await c();r&&t.end(),await c(),n()}catch(e){n(o!==e?f(o,e):e)}finally{u(),t.off("drain",s)}}async function A(e,t,n,{end:r}){O(t)&&(t=t.writable);const o=t.getWriter();try{for await(const t of e)await o.ready,o.write(t).catch((()=>{}));await o.ready,r&&await o.close(),n()}catch(e){try{await o.abort(e),n(e)}catch(e){n(e)}}}function T(e,t,i){if(1===e.length&&o(e[0])&&(e=e[0]),e.length<2)throw new h("streams");const a=new M,l=a.signal,s=null==i?void 0:i.signal,c=[];function f(){V(new C)}let v,g;y(s,"options.signal"),null==s||s.addEventListener("abort",f);const m=[];let S,k=0;function T(e){V(e,0==--k)}function V(e,n){if(!e||v&&"ERR_STREAM_PREMATURE_CLOSE"!==v.code||(v=e),v||n){for(;m.length;)m.shift()(v);null==s||s.removeEventListener("abort",f),a.abort(),n&&(v||c.forEach((e=>e())),r.nextTick(t,v,g))}}for(let Z=0;Z<e.length;Z++){const $=e[Z],F=Z<e.length-1,N=Z>0,U=F||!1!==(null==i?void 0:i.end),W=Z===e.length-1;if(_($)){if(U){const{destroy:G,cleanup:q}=R($,F,N);m.push(G),b($)&&W&&c.push(q)}function z(e){e&&"AbortError"!==e.name&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code&&T(e)}$.on("error",z),b($)&&W&&c.push((()=>{$.removeListener("error",z)}))}if(0===Z)if("function"==typeof $){if(S=$({signal:l}),!w(S))throw new p("Iterable, AsyncIterable or Stream","source",S)}else S=w($)||x($)||O($)?$:u.from($);else if("function"==typeof $){var B;if(S=O(S)?P(null===(B=S)||void 0===B?void 0:B.readable):P(S),S=$(S,{signal:l}),F){if(!w(S,!0))throw new p("AsyncIterable",`transform[${Z-1}]`,S)}else{var D;j||(j=n(467));const Y=new j({objectMode:!0}),K=null===(D=S)||void 0===D?void 0:D.then;if("function"==typeof K)k++,K.call(S,(e=>{g=e,null!=e&&Y.write(e),U&&Y.end(),r.nextTick(T)}),(e=>{Y.destroy(e),r.nextTick(T,e)}));else if(w(S,!0))k++,I(S,Y,T,{end:U});else{if(!E(S)&&!O(S))throw new p("AsyncIterable or Promise","destination",S);{const Q=S.readable||S;k++,I(Q,Y,T,{end:U})}}S=Y;const{destroy:X,cleanup:J}=R(S,!1,!0);m.push(X),W&&c.push(J)}}else if(_($)){if(x(S)){k+=2;const ee=H(S,$,T,{end:U});b($)&&W&&c.push(ee)}else if(O(S)||E(S)){const te=S.readable||S;k++,I(te,$,T,{end:U})}else{if(!w(S))throw new d("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],S);k++,I(S,$,T,{end:U})}S=$}else if(L($)){if(x(S))k++,A(P(S),$,T,{end:U});else if(E(S)||w(S))k++,A(S,$,T,{end:U});else{if(!O(S))throw new d("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],S);k++,A(S.readable,$,T,{end:U})}S=$}else S=u.from($)}return(null!=l&&l.aborted||null!=s&&s.aborted)&&r.nextTick(f),S}function H(e,t,n,{end:o}){let i=!1;if(t.on("close",(()=>{i||n(new g)})),e.pipe(t,{end:!1}),o){function a(){i=!0,t.end()}S(e)?r.nextTick(a):e.once("end",a)}else n();return l(e,{readable:!0,writable:!1},(t=>{const r=e._readableState;t&&"ERR_STREAM_PREMATURE_CLOSE"===t.code&&r&&r.ended&&!r.errored&&!r.errorEmitted?e.once("end",n).once("error",n):n(t)})),l(t,{readable:!1,writable:!0},n)}e.exports={pipelineImpl:T,pipeline:function(...e){return T(e,s(function(e){return m(e[e.length-1],"streams[stream.length - 1]"),e.pop()}(e)))}}},858:(e,t,n)=>{const r=n(533),{ArrayPrototypeIndexOf:o,NumberIsInteger:i,NumberIsNaN:a,NumberParseInt:l,ObjectDefineProperties:s,ObjectKeys:c,ObjectSetPrototypeOf:u,Promise:f,SafeSet:d,SymbolAsyncIterator:p,Symbol:h}=n(191);e.exports=D,D.ReadableState=B;const{EventEmitter:v}=n(465),{Stream:g,prependListener:C}=n(200),{Buffer:m}=n(485),{addAbortSignal:y}=n(374),w=n(86);let b=n(775).debuglog("stream",(e=>{b=e}));const x=n(616),_=n(230),{getHighWaterMark:O,getDefaultHighWaterMark:L}=n(498),{aggregateTwoErrors:E,codes:{ERR_INVALID_ARG_TYPE:S,ERR_METHOD_NOT_IMPLEMENTED:M,ERR_OUT_OF_RANGE:j,ERR_STREAM_PUSH_AFTER_EOF:k,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:R}}=n(141),{validateObject:P}=n(904),I=h("kPaused"),{StringDecoder:A}=n(464),T=n(913);u(D.prototype,g.prototype),u(D,g);const H=()=>{},{errorOrDestroy:V}=_;function B(e,t,r){"boolean"!=typeof r&&(r=t instanceof n(182)),this.objectMode=!(!e||!e.objectMode),r&&(this.objectMode=this.objectMode||!(!e||!e.readableObjectMode)),this.highWaterMark=e?O(this,e,"readableHighWaterMark",r):L(!1),this.buffer=new x,this.length=0,this.pipes=[],this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.constructed=!0,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this[I]=null,this.errorEmitted=!1,this.emitClose=!e||!1!==e.emitClose,this.autoDestroy=!e||!1!==e.autoDestroy,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,e&&e.encoding&&(this.decoder=new A(e.encoding),this.encoding=e.encoding)}function D(e){if(!(this instanceof D))return new D(e);const t=this instanceof n(182);this._readableState=new B(e,this,t),e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.construct&&(this._construct=e.construct),e.signal&&!t&&y(e.signal,this)),g.call(this,e),_.construct(this,(()=>{this._readableState.needReadable&&W(this,this._readableState)}))}function Z(e,t,n,r){b("readableAddChunk",t);const o=e._readableState;let i;if(o.objectMode||("string"==typeof t?(n=n||o.defaultEncoding,o.encoding!==n&&(r&&o.encoding?t=m.from(t,n).toString(o.encoding):(t=m.from(t,n),n=""))):t instanceof m?n="":g._isUint8Array(t)?(t=g._uint8ArrayToBuffer(t),n=""):null!=t&&(i=new S("chunk",["string","Buffer","Uint8Array"],t))),i)V(e,i);else if(null===t)o.reading=!1,function(e,t){if(b("onEofChunk"),!t.ended){if(t.decoder){const e=t.decoder.end();e&&e.length&&(t.buffer.push(e),t.length+=t.objectMode?1:e.length)}t.ended=!0,t.sync?N(e):(t.needReadable=!1,t.emittedReadable=!0,U(e))}}(e,o);else if(o.objectMode||t&&t.length>0)if(r)if(o.endEmitted)V(e,new R);else{if(o.destroyed||o.errored)return!1;$(e,o,t,!0)}else if(o.ended)V(e,new k);else{if(o.destroyed||o.errored)return!1;o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||0!==t.length?$(e,o,t,!1):W(e,o)):$(e,o,t,!1)}else r||(o.reading=!1,W(e,o));return!o.ended&&(o.length<o.highWaterMark||0===o.length)}function $(e,t,n,r){t.flowing&&0===t.length&&!t.sync&&e.listenerCount("data")>0?(t.multiAwaitDrain?t.awaitDrainWriters.clear():t.awaitDrainWriters=null,t.dataEmitted=!0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&N(e)),W(e,t)}function F(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:a(e)?t.flowing&&t.length?t.buffer.first().length:t.length:e<=t.length?e:t.ended?t.length:0}function N(e){const t=e._readableState;b("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(b("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(U,e))}function U(e){const t=e._readableState;b("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||t.errored||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,K(e)}function W(e,t){!t.readingMore&&t.constructed&&(t.readingMore=!0,r.nextTick(z,e,t))}function z(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){const n=t.length;if(b("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function G(e){const t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!1===t[I]?t.flowing=!0:e.listenerCount("data")>0?e.resume():t.readableListening||(t.flowing=null)}function q(e){b("readable nexttick read 0"),e.read(0)}function Y(e,t){b("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),K(e),t.flowing&&!t.reading&&e.read(0)}function K(e){const t=e._readableState;for(b("flow",t.flowing);t.flowing&&null!==e.read(););}function X(e,t){"function"!=typeof e.read&&(e=D.wrap(e,{objectMode:!0}));const n=async function*(e,t){let n,r=H;function o(t){this===e?(r(),r=H):r=t}e.on("readable",o);const i=w(e,{writable:!1},(e=>{n=e?E(n,e):null,r(),r=H}));try{for(;;){const t=e.destroyed?null:e.read();if(null!==t)yield t;else{if(n)throw n;if(null===n)return;await new f(o)}}}catch(e){throw n=E(n,e),n}finally{!n&&!1===(null==t?void 0:t.destroyOnReturn)||void 0!==n&&!e._readableState.autoDestroy?(e.off("readable",o),i()):_.destroyer(e,null)}}(e,t);return n.stream=e,n}function J(e,t){if(0===t.length)return null;let n;return t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}function Q(e){const t=e._readableState;b("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(ee,t,e))}function ee(e,t){if(b("endReadableNT",e.endEmitted,e.length),!e.errored&&!e.closeEmitted&&!e.endEmitted&&0===e.length)if(e.endEmitted=!0,t.emit("end"),t.writable&&!1===t.allowHalfOpen)r.nextTick(te,t);else if(e.autoDestroy){const e=t._writableState;(!e||e.autoDestroy&&(e.finished||!1===e.writable))&&t.destroy()}}function te(e){e.writable&&!e.writableEnded&&!e.destroyed&&e.end()}let ne;function re(){return void 0===ne&&(ne={}),ne}D.prototype.destroy=_.destroy,D.prototype._undestroy=_.undestroy,D.prototype._destroy=function(e,t){t(e)},D.prototype[v.captureRejectionSymbol]=function(e){this.destroy(e)},D.prototype.push=function(e,t){return Z(this,e,t,!1)},D.prototype.unshift=function(e,t){return Z(this,e,t,!0)},D.prototype.isPaused=function(){const e=this._readableState;return!0===e[I]||!1===e.flowing},D.prototype.setEncoding=function(e){const t=new A(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;const n=this._readableState.buffer;let r="";for(const e of n)r+=t.write(e);return n.clear(),""!==r&&n.push(r),this._readableState.length=r.length,this},D.prototype.read=function(e){b("read",e),void 0===e?e=NaN:i(e)||(e=l(e,10));const t=this._readableState,n=e;if(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>1073741824)throw new j("size","<= 1GiB",e);return e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,++e}(e)),0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return b("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?Q(this):N(this),null;if(0===(e=F(e,t))&&t.ended)return 0===t.length&&Q(this),null;let r,o=t.needReadable;if(b("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&(o=!0,b("length less than watermark",o)),t.ended||t.reading||t.destroyed||t.errored||!t.constructed)o=!1,b("reading, ended or constructing",o);else if(o){b("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0);try{this._read(t.highWaterMark)}catch(e){V(this,e)}t.sync=!1,t.reading||(e=F(n,t))}return r=e>0?J(e,t):null,null===r?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.multiAwaitDrain?t.awaitDrainWriters.clear():t.awaitDrainWriters=null),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&Q(this)),null===r||t.errorEmitted||t.closeEmitted||(t.dataEmitted=!0,this.emit("data",r)),r},D.prototype._read=function(e){throw new M("_read()")},D.prototype.pipe=function(e,t){const n=this,o=this._readableState;1===o.pipes.length&&(o.multiAwaitDrain||(o.multiAwaitDrain=!0,o.awaitDrainWriters=new d(o.awaitDrainWriters?[o.awaitDrainWriters]:[]))),o.pipes.push(e),b("pipe count=%d opts=%j",o.pipes.length,t);const i=t&&!1===t.end||e===r.stdout||e===r.stderr?v:a;function a(){b("onend"),e.end()}let l;o.endEmitted?r.nextTick(i):n.once("end",i),e.on("unpipe",(function t(r,i){b("onunpipe"),r===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,b("cleanup"),e.removeListener("close",p),e.removeListener("finish",h),l&&e.removeListener("drain",l),e.removeListener("error",f),e.removeListener("unpipe",t),n.removeListener("end",a),n.removeListener("end",v),n.removeListener("data",u),s=!0,l&&o.awaitDrainWriters&&(!e._writableState||e._writableState.needDrain)&&l())}));let s=!1;function c(){s||(1===o.pipes.length&&o.pipes[0]===e?(b("false write response, pause",0),o.awaitDrainWriters=e,o.multiAwaitDrain=!1):o.pipes.length>1&&o.pipes.includes(e)&&(b("false write response, pause",o.awaitDrainWriters.size),o.awaitDrainWriters.add(e)),n.pause()),l||(l=function(e,t){return function(){const n=e._readableState;n.awaitDrainWriters===t?(b("pipeOnDrain",1),n.awaitDrainWriters=null):n.multiAwaitDrain&&(b("pipeOnDrain",n.awaitDrainWriters.size),n.awaitDrainWriters.delete(t)),n.awaitDrainWriters&&0!==n.awaitDrainWriters.size||!e.listenerCount("data")||e.resume()}}(n,e),e.on("drain",l))}function u(t){b("ondata");const n=e.write(t);b("dest.write",n),!1===n&&c()}function f(t){if(b("onerror",t),v(),e.removeListener("error",f),0===e.listenerCount("error")){const n=e._writableState||e._readableState;n&&!n.errorEmitted?V(e,t):e.emit("error",t)}}function p(){e.removeListener("finish",h),v()}function h(){b("onfinish"),e.removeListener("close",p),v()}function v(){b("unpipe"),n.unpipe(e)}return n.on("data",u),C(e,"error",f),e.once("close",p),e.once("finish",h),e.emit("pipe",n),!0===e.writableNeedDrain?o.flowing&&c():o.flowing||(b("pipe resume"),n.resume()),e},D.prototype.unpipe=function(e){const t=this._readableState;if(0===t.pipes.length)return this;if(!e){const e=t.pipes;t.pipes=[],this.pause();for(let t=0;t<e.length;t++)e[t].emit("unpipe",this,{hasUnpiped:!1});return this}const n=o(t.pipes,e);return-1===n||(t.pipes.splice(n,1),0===t.pipes.length&&this.pause(),e.emit("unpipe",this,{hasUnpiped:!1})),this},D.prototype.on=function(e,t){const n=g.prototype.on.call(this,e,t),o=this._readableState;return"data"===e?(o.readableListening=this.listenerCount("readable")>0,!1!==o.flowing&&this.resume()):"readable"===e&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,b("on readable",o.length,o.reading),o.length?N(this):o.reading||r.nextTick(q,this))),n},D.prototype.addListener=D.prototype.on,D.prototype.removeListener=function(e,t){const n=g.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(G,this),n},D.prototype.off=D.prototype.removeListener,D.prototype.removeAllListeners=function(e){const t=g.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(G,this),t},D.prototype.resume=function(){const e=this._readableState;return e.flowing||(b("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(Y,e,t))}(this,e)),e[I]=!1,this},D.prototype.pause=function(){return b("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(b("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[I]=!0,this},D.prototype.wrap=function(e){let t=!1;e.on("data",(n=>{!this.push(n)&&e.pause&&(t=!0,e.pause())})),e.on("end",(()=>{this.push(null)})),e.on("error",(e=>{V(this,e)})),e.on("close",(()=>{this.destroy()})),e.on("destroy",(()=>{this.destroy()})),this._read=()=>{t&&e.resume&&(t=!1,e.resume())};const n=c(e);for(let t=1;t<n.length;t++){const r=n[t];void 0===this[r]&&"function"==typeof e[r]&&(this[r]=e[r].bind(e))}return this},D.prototype[p]=function(){return X(this)},D.prototype.iterator=function(e){return void 0!==e&&P(e,"options"),X(this,e)},s(D.prototype,{readable:{__proto__:null,get(){const e=this._readableState;return!(!e||!1===e.readable||e.destroyed||e.errorEmitted||e.endEmitted)},set(e){this._readableState&&(this._readableState.readable=!!e)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._readableState.readable||!this._readableState.destroyed&&!this._readableState.errored||this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.objectMode}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return!!this._readableState&&this._readableState.closed}},destroyed:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.destroyed},set(e){this._readableState&&(this._readableState.destroyed=e)}},readableEnded:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.endEmitted}}}),s(B.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return!1!==this[I]},set(e){this[I]=!!e}}}),D._fromList=J,D.from=function(e,t){return T(D,e,t)},D.fromWeb=function(e,t){return re().newStreamReadableFromReadableStream(e,t)},D.toWeb=function(e,t){return re().newReadableStreamFromStreamReadable(e,t)},D.wrap=function(e,t){var n,r;return new D({objectMode:null===(n=null!==(r=e.readableObjectMode)&&void 0!==r?r:e.objectMode)||void 0===n||n,...t,destroy(t,n){_.destroyer(e,t),n(t)}}).wrap(e)}},498:(e,t,n)=>{const{MathFloor:r,NumberIsInteger:o}=n(191),{ERR_INVALID_ARG_VALUE:i}=n(141).codes;function a(e){return e?16:16384}e.exports={getHighWaterMark:function(e,t,n,l){const s=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,l,n);if(null!=s){if(!o(s)||s<0)throw new i(l?`options.${n}`:"options.highWaterMark",s);return r(s)}return a(e.objectMode)},getDefaultHighWaterMark:a}},210:(e,t,n)=>{const{ObjectSetPrototypeOf:r,Symbol:o}=n(191);e.exports=c;const{ERR_METHOD_NOT_IMPLEMENTED:i}=n(141).codes,a=n(182),{getHighWaterMark:l}=n(498);r(c.prototype,a.prototype),r(c,a);const s=o("kCallback");function c(e){if(!(this instanceof c))return new c(e);const t=e?l(this,e,"readableHighWaterMark",!0):null;0===t&&(e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}),a.call(this,e),this._readableState.sync=!1,this[s]=null,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function u(e){"function"!=typeof this._flush||this.destroyed?(this.push(null),e&&e()):this._flush(((t,n)=>{t?e?e(t):this.destroy(t):(null!=n&&this.push(n),this.push(null),e&&e())}))}function f(){this._final!==u&&u.call(this)}c.prototype._final=u,c.prototype._transform=function(e,t,n){throw new i("_transform()")},c.prototype._write=function(e,t,n){const r=this._readableState,o=this._writableState,i=r.length;this._transform(e,t,((e,t)=>{e?n(e):(null!=t&&this.push(t),o.ended||i===r.length||r.length<r.highWaterMark?n():this[s]=n)}))},c.prototype._read=function(){if(this[s]){const e=this[s];this[s]=null,e()}}},132:(e,t,n)=>{const{Symbol:r,SymbolAsyncIterator:o,SymbolIterator:i,SymbolFor:a}=n(191),l=r("kDestroyed"),s=r("kIsErrored"),c=r("kIsReadable"),u=r("kIsDisturbed"),f=a("nodejs.webstream.isClosedPromise"),d=a("nodejs.webstream.controllerErrorFunction");function p(e,t=!1){var n;return!(!e||"function"!=typeof e.pipe||"function"!=typeof e.on||t&&("function"!=typeof e.pause||"function"!=typeof e.resume)||e._writableState&&!1===(null===(n=e._readableState)||void 0===n?void 0:n.readable)||e._writableState&&!e._readableState)}function h(e){var t;return!(!e||"function"!=typeof e.write||"function"!=typeof e.on||e._readableState&&!1===(null===(t=e._writableState)||void 0===t?void 0:t.writable))}function v(e){return e&&(e._readableState||e._writableState||"function"==typeof e.write&&"function"==typeof e.on||"function"==typeof e.pipe&&"function"==typeof e.on)}function g(e){return!(!e||v(e)||"function"!=typeof e.pipeThrough||"function"!=typeof e.getReader||"function"!=typeof e.cancel)}function C(e){return!(!e||v(e)||"function"!=typeof e.getWriter||"function"!=typeof e.abort)}function m(e){return!(!e||v(e)||"object"!=typeof e.readable||"object"!=typeof e.writable)}function y(e){if(!v(e))return null;const t=e._writableState,n=e._readableState,r=t||n;return!!(e.destroyed||e[l]||null!=r&&r.destroyed)}function w(e){if(!h(e))return null;if(!0===e.writableEnded)return!0;const t=e._writableState;return(null==t||!t.errored)&&("boolean"!=typeof(null==t?void 0:t.ended)?null:t.ended)}function b(e,t){if(!p(e))return null;const n=e._readableState;return(null==n||!n.errored)&&("boolean"!=typeof(null==n?void 0:n.endEmitted)?null:!!(n.endEmitted||!1===t&&!0===n.ended&&0===n.length))}function x(e){return e&&null!=e[c]?e[c]:"boolean"!=typeof(null==e?void 0:e.readable)?null:!y(e)&&p(e)&&e.readable&&!b(e)}function _(e){return"boolean"!=typeof(null==e?void 0:e.writable)?null:!y(e)&&h(e)&&e.writable&&!w(e)}function O(e){return"boolean"==typeof e._closed&&"boolean"==typeof e._defaultKeepAlive&&"boolean"==typeof e._removedConnection&&"boolean"==typeof e._removedContLen}function L(e){return"boolean"==typeof e._sent100&&O(e)}e.exports={kDestroyed:l,isDisturbed:function(e){var t;return!(!e||!(null!==(t=e[u])&&void 0!==t?t:e.readableDidRead||e.readableAborted))},kIsDisturbed:u,isErrored:function(e){var t,n,r,o,i,a,l,c,u,f;return!(!e||!(null!==(t=null!==(n=null!==(r=null!==(o=null!==(i=null!==(a=e[s])&&void 0!==a?a:e.readableErrored)&&void 0!==i?i:e.writableErrored)&&void 0!==o?o:null===(l=e._readableState)||void 0===l?void 0:l.errorEmitted)&&void 0!==r?r:null===(c=e._writableState)||void 0===c?void 0:c.errorEmitted)&&void 0!==n?n:null===(u=e._readableState)||void 0===u?void 0:u.errored)&&void 0!==t?t:null===(f=e._writableState)||void 0===f?void 0:f.errored))},kIsErrored:s,isReadable:x,kIsReadable:c,kIsClosedPromise:f,kControllerErrorFunction:d,isClosed:function(e){if(!v(e))return null;if("boolean"==typeof e.closed)return e.closed;const t=e._writableState,n=e._readableState;return"boolean"==typeof(null==t?void 0:t.closed)||"boolean"==typeof(null==n?void 0:n.closed)?(null==t?void 0:t.closed)||(null==n?void 0:n.closed):"boolean"==typeof e._closed&&O(e)?e._closed:null},isDestroyed:y,isDuplexNodeStream:function(e){return!(!e||"function"!=typeof e.pipe||!e._readableState||"function"!=typeof e.on||"function"!=typeof e.write)},isFinished:function(e,t){return v(e)?!(!y(e)&&(!1!==(null==t?void 0:t.readable)&&x(e)||!1!==(null==t?void 0:t.writable)&&_(e))):null},isIterable:function(e,t){return null!=e&&(!0===t?"function"==typeof e[o]:!1===t?"function"==typeof e[i]:"function"==typeof e[o]||"function"==typeof e[i])},isReadableNodeStream:p,isReadableStream:g,isReadableEnded:function(e){if(!p(e))return null;if(!0===e.readableEnded)return!0;const t=e._readableState;return!(!t||t.errored)&&("boolean"!=typeof(null==t?void 0:t.ended)?null:t.ended)},isReadableFinished:b,isReadableErrored:function(e){var t,n;return v(e)?e.readableErrored?e.readableErrored:null!==(t=null===(n=e._readableState)||void 0===n?void 0:n.errored)&&void 0!==t?t:null:null},isNodeStream:v,isWebStream:function(e){return g(e)||C(e)||m(e)},isWritable:_,isWritableNodeStream:h,isWritableStream:C,isWritableEnded:w,isWritableFinished:function(e,t){if(!h(e))return null;if(!0===e.writableFinished)return!0;const n=e._writableState;return(null==n||!n.errored)&&("boolean"!=typeof(null==n?void 0:n.finished)?null:!!(n.finished||!1===t&&!0===n.ended&&0===n.length))},isWritableErrored:function(e){var t,n;return v(e)?e.writableErrored?e.writableErrored:null!==(t=null===(n=e._writableState)||void 0===n?void 0:n.errored)&&void 0!==t?t:null:null},isServerRequest:function(e){var t;return"boolean"==typeof e._consuming&&"boolean"==typeof e._dumped&&void 0===(null===(t=e.req)||void 0===t?void 0:t.upgradeOrConnect)},isServerResponse:L,willEmitClose:function(e){if(!v(e))return null;const t=e._writableState,n=e._readableState,r=t||n;return!r&&L(e)||!!(r&&r.autoDestroy&&r.emitClose&&!1===r.closed)},isTransformStream:m}},373:(e,t,n)=>{const r=n(533),{ArrayPrototypeSlice:o,Error:i,FunctionPrototypeSymbolHasInstance:a,ObjectDefineProperty:l,ObjectDefineProperties:s,ObjectSetPrototypeOf:c,StringPrototypeToLowerCase:u,Symbol:f,SymbolHasInstance:d}=n(191);e.exports=A,A.WritableState=P;const{EventEmitter:p}=n(465),h=n(200).Stream,{Buffer:v}=n(485),g=n(230),{addAbortSignal:C}=n(374),{getHighWaterMark:m,getDefaultHighWaterMark:y}=n(498),{ERR_INVALID_ARG_TYPE:w,ERR_METHOD_NOT_IMPLEMENTED:b,ERR_MULTIPLE_CALLBACK:x,ERR_STREAM_CANNOT_PIPE:_,ERR_STREAM_DESTROYED:O,ERR_STREAM_ALREADY_FINISHED:L,ERR_STREAM_NULL_VALUES:E,ERR_STREAM_WRITE_AFTER_END:S,ERR_UNKNOWN_ENCODING:M}=n(141).codes,{errorOrDestroy:j}=g;function k(){}c(A.prototype,h.prototype),c(A,h);const R=f("kOnFinished");function P(e,t,r){"boolean"!=typeof r&&(r=t instanceof n(182)),this.objectMode=!(!e||!e.objectMode),r&&(this.objectMode=this.objectMode||!(!e||!e.writableObjectMode)),this.highWaterMark=e?m(this,e,"writableHighWaterMark",r):y(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const o=!(!e||!1!==e.decodeStrings);this.decodeStrings=!o,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=B.bind(void 0,t),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,I(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!e||!1!==e.emitClose,this.autoDestroy=!e||!1!==e.autoDestroy,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[R]=[]}function I(e){e.buffered=[],e.bufferedIndex=0,e.allBuffers=!0,e.allNoop=!0}function A(e){const t=this instanceof n(182);if(!t&&!a(A,this))return new A(e);this._writableState=new P(e,this,t),e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final),"function"==typeof e.construct&&(this._construct=e.construct),e.signal&&C(e.signal,this)),h.call(this,e),g.construct(this,(()=>{const e=this._writableState;e.writing||F(this,e),U(this,e)}))}function T(e,t,n,o){const i=e._writableState;if("function"==typeof n)o=n,n=i.defaultEncoding;else{if(n){if("buffer"!==n&&!v.isEncoding(n))throw new M(n)}else n=i.defaultEncoding;"function"!=typeof o&&(o=k)}if(null===t)throw new E;if(!i.objectMode)if("string"==typeof t)!1!==i.decodeStrings&&(t=v.from(t,n),n="buffer");else if(t instanceof v)n="buffer";else{if(!h._isUint8Array(t))throw new w("chunk",["string","Buffer","Uint8Array"],t);t=h._uint8ArrayToBuffer(t),n="buffer"}let a;return i.ending?a=new S:i.destroyed&&(a=new O("write")),a?(r.nextTick(o,a),j(e,a,!0),a):(i.pendingcb++,function(e,t,n,r,o){const i=t.objectMode?1:n.length;t.length+=i;const a=t.length<t.highWaterMark;return a||(t.needDrain=!0),t.writing||t.corked||t.errored||!t.constructed?(t.buffered.push({chunk:n,encoding:r,callback:o}),t.allBuffers&&"buffer"!==r&&(t.allBuffers=!1),t.allNoop&&o!==k&&(t.allNoop=!1)):(t.writelen=i,t.writecb=o,t.writing=!0,t.sync=!0,e._write(n,r,t.onwrite),t.sync=!1),a&&!t.errored&&!t.destroyed}(e,i,t,n,o))}function H(e,t,n,r,o,i,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new O("write")):n?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function V(e,t,n,r){--t.pendingcb,r(n),$(t),j(e,n)}function B(e,t){const n=e._writableState,o=n.sync,i=n.writecb;"function"==typeof i?(n.writing=!1,n.writecb=null,n.length-=n.writelen,n.writelen=0,t?(t.stack,n.errored||(n.errored=t),e._readableState&&!e._readableState.errored&&(e._readableState.errored=t),o?r.nextTick(V,e,n,t,i):V(e,n,t,i)):(n.buffered.length>n.bufferedIndex&&F(e,n),o?null!==n.afterWriteTickInfo&&n.afterWriteTickInfo.cb===i?n.afterWriteTickInfo.count++:(n.afterWriteTickInfo={count:1,cb:i,stream:e,state:n},r.nextTick(D,n.afterWriteTickInfo)):Z(e,n,1,i))):j(e,new x)}function D({stream:e,state:t,count:n,cb:r}){return t.afterWriteTickInfo=null,Z(e,t,n,r)}function Z(e,t,n,r){for(!t.ending&&!e.destroyed&&0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"));n-- >0;)t.pendingcb--,r();t.destroyed&&$(t),U(e,t)}function $(e){if(e.writing)return;for(let n=e.bufferedIndex;n<e.buffered.length;++n){var t;const{chunk:r,callback:o}=e.buffered[n],i=e.objectMode?1:r.length;e.length-=i,o(null!==(t=e.errored)&&void 0!==t?t:new O("write"))}const n=e[R].splice(0);for(let t=0;t<n.length;t++){var r;n[t](null!==(r=e.errored)&&void 0!==r?r:new O("end"))}I(e)}function F(e,t){if(t.corked||t.bufferProcessing||t.destroyed||!t.constructed)return;const{buffered:n,bufferedIndex:r,objectMode:i}=t,a=n.length-r;if(!a)return;let l=r;if(t.bufferProcessing=!0,a>1&&e._writev){t.pendingcb-=a-1;const r=t.allNoop?k:e=>{for(let t=l;t<n.length;++t)n[t].callback(e)},i=t.allNoop&&0===l?n:o(n,l);i.allBuffers=t.allBuffers,H(e,t,!0,t.length,i,"",r),I(t)}else{do{const{chunk:r,encoding:o,callback:a}=n[l];n[l++]=null,H(e,t,!1,i?1:r.length,r,o,a)}while(l<n.length&&!t.writing);l===n.length?I(t):l>256?(n.splice(0,l),t.bufferedIndex=0):t.bufferedIndex=l}t.bufferProcessing=!1}function N(e){return e.ending&&!e.destroyed&&e.constructed&&0===e.length&&!e.errored&&0===e.buffered.length&&!e.finished&&!e.writing&&!e.errorEmitted&&!e.closeEmitted}function U(e,t,n){N(t)&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.finalCalled=!0,function(e,t){let n=!1;function o(o){if(n)j(e,null!=o?o:x());else if(n=!0,t.pendingcb--,o){const n=t[R].splice(0);for(let e=0;e<n.length;e++)n[e](o);j(e,o,t.sync)}else N(t)&&(t.prefinished=!0,e.emit("prefinish"),t.pendingcb++,r.nextTick(W,e,t))}t.sync=!0,t.pendingcb++;try{e._final(o)}catch(e){o(e)}t.sync=!1}(e,t)))}(e,t),0===t.pendingcb&&(n?(t.pendingcb++,r.nextTick(((e,t)=>{N(t)?W(e,t):t.pendingcb--}),e,t)):N(t)&&(t.pendingcb++,W(e,t))))}function W(e,t){t.pendingcb--,t.finished=!0;const n=t[R].splice(0);for(let e=0;e<n.length;e++)n[e]();if(e.emit("finish"),t.autoDestroy){const t=e._readableState;(!t||t.autoDestroy&&(t.endEmitted||!1===t.readable))&&e.destroy()}}P.prototype.getBuffer=function(){return o(this.buffered,this.bufferedIndex)},l(P.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}}),l(A,d,{__proto__:null,value:function(e){return!!a(this,e)||this===A&&e&&e._writableState instanceof P}}),A.prototype.pipe=function(){j(this,new _)},A.prototype.write=function(e,t,n){return!0===T(this,e,t,n)},A.prototype.cork=function(){this._writableState.corked++},A.prototype.uncork=function(){const e=this._writableState;e.corked&&(e.corked--,e.writing||F(this,e))},A.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=u(e)),!v.isEncoding(e))throw new M(e);return this._writableState.defaultEncoding=e,this},A.prototype._write=function(e,t,n){if(!this._writev)throw new b("_write()");this._writev([{chunk:e,encoding:t}],n)},A.prototype._writev=null,A.prototype.end=function(e,t,n){const o=this._writableState;let a;if("function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e){const n=T(this,e,t);n instanceof i&&(a=n)}return o.corked&&(o.corked=1,this.uncork()),a||(o.errored||o.ending?o.finished?a=new L("end"):o.destroyed&&(a=new O("end")):(o.ending=!0,U(this,o,!0),o.ended=!0)),"function"==typeof n&&(a||o.finished?r.nextTick(n,a):o[R].push(n)),this},s(A.prototype,{closed:{__proto__:null,get(){return!!this._writableState&&this._writableState.closed}},destroyed:{__proto__:null,get(){return!!this._writableState&&this._writableState.destroyed},set(e){this._writableState&&(this._writableState.destroyed=e)}},writable:{__proto__:null,get(){const e=this._writableState;return!(!e||!1===e.writable||e.destroyed||e.errored||e.ending||e.ended)},set(e){this._writableState&&(this._writableState.writable=!!e)}},writableFinished:{__proto__:null,get(){return!!this._writableState&&this._writableState.finished}},writableObjectMode:{__proto__:null,get(){return!!this._writableState&&this._writableState.objectMode}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return!!this._writableState&&this._writableState.ending}},writableNeedDrain:{__proto__:null,get(){const e=this._writableState;return!!e&&!e.destroyed&&!e.ending&&e.needDrain}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._writableState.writable||!this._writableState.destroyed&&!this._writableState.errored||this._writableState.finished)}}});const z=g.destroy;let G;function q(){return void 0===G&&(G={}),G}A.prototype.destroy=function(e,t){const n=this._writableState;return!n.destroyed&&(n.bufferedIndex<n.buffered.length||n[R].length)&&r.nextTick($,n),z.call(this,e,t),this},A.prototype._undestroy=g.undestroy,A.prototype._destroy=function(e,t){t(e)},A.prototype[p.captureRejectionSymbol]=function(e){this.destroy(e)},A.fromWeb=function(e,t){return q().newStreamWritableFromWritableStream(e,t)},A.toWeb=function(e){return q().newWritableStreamFromStreamWritable(e)}},904:(e,t,n)=>{const{ArrayIsArray:r,ArrayPrototypeIncludes:o,ArrayPrototypeJoin:i,ArrayPrototypeMap:a,NumberIsInteger:l,NumberIsNaN:s,NumberMAX_SAFE_INTEGER:c,NumberMIN_SAFE_INTEGER:u,NumberParseInt:f,ObjectPrototypeHasOwnProperty:d,RegExpPrototypeExec:p,String:h,StringPrototypeToUpperCase:v,StringPrototypeTrim:g}=n(191),{hideStackFrames:C,codes:{ERR_SOCKET_BAD_PORT:m,ERR_INVALID_ARG_TYPE:y,ERR_INVALID_ARG_VALUE:w,ERR_OUT_OF_RANGE:b,ERR_UNKNOWN_SIGNAL:x}}=n(141),{normalizeEncoding:_}=n(775),{isAsyncFunction:O,isArrayBufferView:L}=n(775).types,E={},S=/^[0-7]+$/,M=C(((e,t,n=u,r=c)=>{if("number"!=typeof e)throw new y(t,"number",e);if(!l(e))throw new b(t,"an integer",e);if(e<n||e>r)throw new b(t,`>= ${n} && <= ${r}`,e)})),j=C(((e,t,n=-2147483648,r=2147483647)=>{if("number"!=typeof e)throw new y(t,"number",e);if(!l(e))throw new b(t,"an integer",e);if(e<n||e>r)throw new b(t,`>= ${n} && <= ${r}`,e)})),k=C(((e,t,n=!1)=>{if("number"!=typeof e)throw new y(t,"number",e);if(!l(e))throw new b(t,"an integer",e);const r=n?1:0,o=4294967295;if(e<r||e>o)throw new b(t,`>= ${r} && <= ${o}`,e)}));function R(e,t){if("string"!=typeof e)throw new y(t,"string",e)}const P=C(((e,t,n)=>{if(!o(n,e)){const r=i(a(n,(e=>"string"==typeof e?`'${e}'`:h(e))),", ");throw new w(t,e,"must be one of: "+r)}}));function I(e,t){if("boolean"!=typeof e)throw new y(t,"boolean",e)}function A(e,t,n){return null!=e&&d(e,t)?e[t]:n}const T=C(((e,t,n=null)=>{const o=A(n,"allowArray",!1),i=A(n,"allowFunction",!1);if(!A(n,"nullable",!1)&&null===e||!o&&r(e)||"object"!=typeof e&&(!i||"function"!=typeof e))throw new y(t,"Object",e)})),H=C(((e,t)=>{if(null!=e&&"object"!=typeof e&&"function"!=typeof e)throw new y(t,"a dictionary",e)})),V=C(((e,t,n=0)=>{if(!r(e))throw new y(t,"Array",e);if(e.length<n)throw new w(t,e,`must be longer than ${n}`)})),B=C(((e,t="buffer")=>{if(!L(e))throw new y(t,["Buffer","TypedArray","DataView"],e)})),D=C(((e,t)=>{if(void 0!==e&&(null===e||"object"!=typeof e||!("aborted"in e)))throw new y(t,"AbortSignal",e)})),Z=C(((e,t)=>{if("function"!=typeof e)throw new y(t,"Function",e)})),$=C(((e,t)=>{if("function"!=typeof e||O(e))throw new y(t,"Function",e)})),F=C(((e,t)=>{if(void 0!==e)throw new y(t,"undefined",e)})),N=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function U(e,t){if(void 0===e||!p(N,e))throw new w(t,e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}e.exports={isInt32:function(e){return e===(0|e)},isUint32:function(e){return e===e>>>0},parseFileMode:function(e,t,n){if(void 0===e&&(e=n),"string"==typeof e){if(null===p(S,e))throw new w(t,e,"must be a 32-bit unsigned integer or an octal string");e=f(e,8)}return k(e,t),e},validateArray:V,validateStringArray:function(e,t){V(e,t);for(let n=0;n<e.length;n++)R(e[n],`${t}[${n}]`)},validateBooleanArray:function(e,t){V(e,t);for(let n=0;n<e.length;n++)I(e[n],`${t}[${n}]`)},validateBoolean:I,validateBuffer:B,validateDictionary:H,validateEncoding:function(e,t){const n=_(t),r=e.length;if("hex"===n&&r%2!=0)throw new w("encoding",t,`is invalid for data of length ${r}`)},validateFunction:Z,validateInt32:j,validateInteger:M,validateNumber:function(e,t,n=undefined,r){if("number"!=typeof e)throw new y(t,"number",e);if(null!=n&&e<n||null!=r&&e>r||(null!=n||null!=r)&&s(e))throw new b(t,`${null!=n?`>= ${n}`:""}${null!=n&&null!=r?" && ":""}${null!=r?`<= ${r}`:""}`,e)},validateObject:T,validateOneOf:P,validatePlainFunction:$,validatePort:function(e,t="Port",n=!0){if("number"!=typeof e&&"string"!=typeof e||"string"==typeof e&&0===g(e).length||+e!=+e>>>0||e>65535||0===e&&!n)throw new m(t,e,n);return 0|e},validateSignalName:function(e,t="signal"){if(R(e,t),void 0===E[e]){if(void 0!==E[v(e)])throw new x(e+" (signals must use all capital letters)");throw new x(e)}},validateString:R,validateUint32:k,validateUndefined:F,validateUnion:function(e,t,n){if(!o(n,e))throw new y(t,`('${i(n,"|")}')`,e)},validateAbortSignal:D,validateLinkHeaderValue:function(e){if("string"==typeof e)return U(e,"hints"),e;if(r(e)){const t=e.length;let n="";if(0===t)return n;for(let r=0;r<t;r++){const o=e[r];U(o,"hints"),n+=o,r!==t-1&&(n+=", ")}return n}throw new w("hints",e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}}},99:(e,t,n)=>{const r=n(292),o=n(760),i=r.Readable.destroy;e.exports=r.Readable,e.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,e.exports._isUint8Array=r._isUint8Array,e.exports.isDisturbed=r.isDisturbed,e.exports.isErrored=r.isErrored,e.exports.isReadable=r.isReadable,e.exports.Readable=r.Readable,e.exports.Writable=r.Writable,e.exports.Duplex=r.Duplex,e.exports.Transform=r.Transform,e.exports.PassThrough=r.PassThrough,e.exports.addAbortSignal=r.addAbortSignal,e.exports.finished=r.finished,e.exports.destroy=r.destroy,e.exports.destroy=i,e.exports.pipeline=r.pipeline,e.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get:()=>o}),e.exports.Stream=r.Stream,e.exports.default=e.exports},141:(e,t,n)=>{const{format:r,inspect:o,AggregateError:i}=n(775),a=globalThis.AggregateError||i,l=Symbol("kIsNodeError"),s=["string","function","number","object","Function","Object","boolean","bigint","symbol"],c=/^([A-Z][a-z0-9]*)+$/,u={};function f(e,t){if(!e)throw new u.ERR_INTERNAL_ASSERTION(t)}function d(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function p(e,t,n){n||(n=Error);class o extends n{constructor(...n){super(function(e,t,n){if("function"==typeof t)return f(t.length<=n.length,`Code: ${e}; The provided arguments length (${n.length}) does not match the required ones (${t.length}).`),t(...n);const o=(t.match(/%[dfijoOs]/g)||[]).length;return f(o===n.length,`Code: ${e}; The provided arguments length (${n.length}) does not match the required ones (${o}).`),0===n.length?t:r(t,...n)}(e,t,n))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(o.prototype,{name:{value:n.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),o.prototype.code=e,o.prototype[l]=!0,u[e]=o}function h(e){const t="__node_internal_"+e.name;return Object.defineProperty(e,"name",{value:t}),e}class v extends Error{constructor(e="The operation was aborted",t=undefined){if(void 0!==t&&"object"!=typeof t)throw new u.ERR_INVALID_ARG_TYPE("options","Object",t);super(e,t),this.code="ABORT_ERR",this.name="AbortError"}}p("ERR_ASSERTION","%s",Error),p("ERR_INVALID_ARG_TYPE",((e,t,n)=>{f("string"==typeof e,"'name' must be a string"),Array.isArray(t)||(t=[t]);let r="The ";e.endsWith(" argument")?r+=`${e} `:r+=`"${e}" ${e.includes(".")?"property":"argument"} `,r+="must be ";const i=[],a=[],l=[];for(const e of t)f("string"==typeof e,"All expected entries have to be of type string"),s.includes(e)?i.push(e.toLowerCase()):c.test(e)?a.push(e):(f("object"!==e,'The value "object" should be written as "Object"'),l.push(e));if(a.length>0){const e=i.indexOf("object");-1!==e&&(i.splice(i,e,1),a.push("Object"))}if(i.length>0){switch(i.length){case 1:r+=`of type ${i[0]}`;break;case 2:r+=`one of type ${i[0]} or ${i[1]}`;break;default:{const e=i.pop();r+=`one of type ${i.join(", ")}, or ${e}`}}(a.length>0||l.length>0)&&(r+=" or ")}if(a.length>0){switch(a.length){case 1:r+=`an instance of ${a[0]}`;break;case 2:r+=`an instance of ${a[0]} or ${a[1]}`;break;default:{const e=a.pop();r+=`an instance of ${a.join(", ")}, or ${e}`}}l.length>0&&(r+=" or ")}switch(l.length){case 0:break;case 1:l[0].toLowerCase()!==l[0]&&(r+="an "),r+=`${l[0]}`;break;case 2:r+=`one of ${l[0]} or ${l[1]}`;break;default:{const e=l.pop();r+=`one of ${l.join(", ")}, or ${e}`}}if(null==n)r+=`. Received ${n}`;else if("function"==typeof n&&n.name)r+=`. Received function ${n.name}`;else if("object"==typeof n){var u;null!==(u=n.constructor)&&void 0!==u&&u.name?r+=`. Received an instance of ${n.constructor.name}`:r+=`. Received ${o(n,{depth:-1})}`}else{let e=o(n,{colors:!1});e.length>25&&(e=`${e.slice(0,25)}...`),r+=`. Received type ${typeof n} (${e})`}return r}),TypeError),p("ERR_INVALID_ARG_VALUE",((e,t,n="is invalid")=>{let r=o(t);return r.length>128&&(r=r.slice(0,128)+"..."),`The ${e.includes(".")?"property":"argument"} '${e}' ${n}. Received ${r}`}),TypeError),p("ERR_INVALID_RETURN_VALUE",((e,t,n)=>{var r;return`Expected ${e} to be returned from the "${t}" function but got ${null!=n&&null!==(r=n.constructor)&&void 0!==r&&r.name?`instance of ${n.constructor.name}`:"type "+typeof n}.`}),TypeError),p("ERR_MISSING_ARGS",((...e)=>{let t;f(e.length>0,"At least one arg needs to be specified");const n=e.length;switch(e=(Array.isArray(e)?e:[e]).map((e=>`"${e}"`)).join(" or "),n){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{const n=e.pop();t+=`The ${e.join(", ")}, and ${n} arguments`}}return`${t} must be specified`}),TypeError),p("ERR_OUT_OF_RANGE",((e,t,n)=>{let r;return f(t,'Missing "range" argument'),Number.isInteger(n)&&Math.abs(n)>2**32?r=d(String(n)):"bigint"==typeof n?(r=String(n),(n>2n**32n||n<-(2n**32n))&&(r=d(r)),r+="n"):r=o(n),`The value of "${e}" is out of range. It must be ${t}. Received ${r}`}),RangeError),p("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),p("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),p("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),p("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),p("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),p("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),p("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),p("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),p("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),p("ERR_STREAM_WRITE_AFTER_END","write after end",Error),p("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),e.exports={AbortError:v,aggregateTwoErrors:h((function(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;const n=new a([t,e],t.message);return n.code=t.code,n}return e||t})),hideStackFrames:h,codes:u}},191:e=>{e.exports={ArrayIsArray:e=>Array.isArray(e),ArrayPrototypeIncludes:(e,t)=>e.includes(t),ArrayPrototypeIndexOf:(e,t)=>e.indexOf(t),ArrayPrototypeJoin:(e,t)=>e.join(t),ArrayPrototypeMap:(e,t)=>e.map(t),ArrayPrototypePop:(e,t)=>e.pop(t),ArrayPrototypePush:(e,t)=>e.push(t),ArrayPrototypeSlice:(e,t,n)=>e.slice(t,n),Error,FunctionPrototypeCall:(e,t,...n)=>e.call(t,...n),FunctionPrototypeSymbolHasInstance:(e,t)=>Function.prototype[Symbol.hasInstance].call(e,t),MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties:(e,t)=>Object.defineProperties(e,t),ObjectDefineProperty:(e,t,n)=>Object.defineProperty(e,t,n),ObjectGetOwnPropertyDescriptor:(e,t)=>Object.getOwnPropertyDescriptor(e,t),ObjectKeys:e=>Object.keys(e),ObjectSetPrototypeOf:(e,t)=>Object.setPrototypeOf(e,t),Promise,PromisePrototypeCatch:(e,t)=>e.catch(t),PromisePrototypeThen:(e,t,n)=>e.then(t,n),PromiseReject:e=>Promise.reject(e),ReflectApply:Reflect.apply,RegExpPrototypeTest:(e,t)=>e.test(t),SafeSet:Set,String,StringPrototypeSlice:(e,t,n)=>e.slice(t,n),StringPrototypeToLowerCase:e=>e.toLowerCase(),StringPrototypeToUpperCase:e=>e.toUpperCase(),StringPrototypeTrim:e=>e.trim(),Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet:(e,t,n)=>e.set(t,n),Uint8Array}},775:(e,t,n)=>{const r=n(485),o=Object.getPrototypeOf((async function(){})).constructor,i=globalThis.Blob||r.Blob,a=void 0!==i?function(e){return e instanceof i}:function(e){return!1};class l extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError("Expected input to be an Array, got "+typeof e);let t="";for(let n=0;n<e.length;n++)t+=` ${e[n].stack}\n`;super(t),this.name="AggregateError",this.errors=e}}e.exports={AggregateError:l,kEmptyObject:Object.freeze({}),once(e){let t=!1;return function(...n){t||(t=!0,e.apply(this,n))}},createDeferredPromise:function(){let e,t;return{promise:new Promise(((n,r)=>{e=n,t=r})),resolve:e,reject:t}},promisify:e=>new Promise(((t,n)=>{e(((e,...r)=>e?n(e):t(...r)))})),debuglog:()=>function(){},format:(e,...t)=>e.replace(/%([sdifj])/g,(function(...[e,n]){const r=t.shift();return"f"===n?r.toFixed(6):"j"===n?JSON.stringify(r):"s"===n&&"object"==typeof r?`${r.constructor!==Object?r.constructor.name:""} {}`.trim():r.toString()})),inspect(e){switch(typeof e){case"string":if(e.includes("'")){if(!e.includes('"'))return`"${e}"`;if(!e.includes("`")&&!e.includes("${"))return`\`${e}\``}return`'${e}'`;case"number":return isNaN(e)?"NaN":Object.is(e,-0)?String(e):e;case"bigint":return`${String(e)}n`;case"boolean":case"undefined":return String(e);case"object":return"{}"}},types:{isAsyncFunction:e=>e instanceof o,isArrayBufferView:e=>ArrayBuffer.isView(e)},isBlob:a},e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")},292:(e,t,n)=>{const{Buffer:r}=n(485),{ObjectDefineProperty:o,ObjectKeys:i,ReflectApply:a}=n(191),{promisify:{custom:l}}=n(775),{streamReturningOperators:s,promiseReturningOperators:c}=n(554),{codes:{ERR_ILLEGAL_CONSTRUCTOR:u}}=n(141),f=n(818),{pipeline:d}=n(754),{destroyer:p}=n(230),h=n(86),v=n(760),g=n(132),C=e.exports=n(200).Stream;C.isDisturbed=g.isDisturbed,C.isErrored=g.isErrored,C.isReadable=g.isReadable,C.Readable=n(858);for(const y of i(s)){const w=s[y];function b(...e){if(new.target)throw u();return C.Readable.from(a(w,this,e))}o(b,"name",{__proto__:null,value:w.name}),o(b,"length",{__proto__:null,value:w.length}),o(C.Readable.prototype,y,{__proto__:null,value:b,enumerable:!1,configurable:!0,writable:!0})}for(const x of i(c)){const _=c[x];function O(...e){if(new.target)throw u();return a(_,this,e)}o(O,"name",{__proto__:null,value:_.name}),o(O,"length",{__proto__:null,value:_.length}),o(C.Readable.prototype,x,{__proto__:null,value:O,enumerable:!1,configurable:!0,writable:!0})}C.Writable=n(373),C.Duplex=n(182),C.Transform=n(210),C.PassThrough=n(467),C.pipeline=d;const{addAbortSignal:m}=n(374);C.addAbortSignal=m,C.finished=h,C.destroy=p,C.compose=f,o(C,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:()=>v}),o(d,l,{__proto__:null,enumerable:!0,get:()=>v.pipeline}),o(h,l,{__proto__:null,enumerable:!0,get:()=>v.finished}),C.Stream=C,C._isUint8Array=function(e){return e instanceof Uint8Array},C._uint8ArrayToBuffer=function(e){return r.from(e.buffer,e.byteOffset,e.byteLength)}},760:(e,t,n)=>{const{ArrayPrototypePop:r,Promise:o}=n(191),{isIterable:i,isNodeStream:a,isWebStream:l}=n(132),{pipelineImpl:s}=n(754),{finished:c}=n(86);n(91),e.exports={finished:c,pipeline:function(...e){return new o(((t,n)=>{let o,c;const u=e[e.length-1];if(u&&"object"==typeof u&&!a(u)&&!i(u)&&!l(u)){const t=r(e);o=t.signal,c=t.end}s(e,((e,r)=>{e?n(e):t(r)}),{signal:o,end:c})}))}}},533:e=>{var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var l,s=[],c=!1,u=-1;function f(){c&&l&&(c=!1,l.length?s=l.concat(s):u=-1,s.length&&d())}function d(){if(!c){var e=a(f);c=!0;for(var t=s.length;t;){for(l=s,s=[];++u<t;)l&&l[u].run();u=-1,t=s.length}l=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new p(e,t)),1!==s.length||c||a(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},377:(e,t,n)=>{var r=n(485),o=r.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=a),i(o,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},464:(e,t,n)=>{var r=n(377).Buffer,o=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=s,this.end=c,t=4;break;case"utf8":this.fillLast=l,t=4;break;case"base64":this.text=u,this.end=f,t=3;break;default:return this.write=d,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function l(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function s(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function u(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.StringDecoder=i,i.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},i.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},i.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var o=a(t[r]);return o>=0?(o>0&&(e.lastNeed=o-1),o):--r<n||-2===o?0:(o=a(t[r]))>=0?(o>0&&(e.lastNeed=o-2),o):--r<n||-2===o?0:(o=a(t[r]))>=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},54:(e,t,n)=>{n.d(t,{MS:()=>k,cF:()=>R,AK:()=>P,M_:()=>I,cX:()=>A,BT:()=>re,_W:()=>H,Pg:()=>he,$j:()=>te,U$:()=>F,U7:()=>N});var r={d:(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},o={};r.d(o,{MS:()=>i,cF:()=>a,AK:()=>s,M_:()=>l,cX:()=>c,Yd:()=>g,nj:()=>u,O4:()=>j,_W:()=>f,U$:()=>p,U7:()=>h});class i extends Error{constructor(e,t){var n,r;super(e=null!==(n=null!=e?e:null==t?void 0:t.message)&&void 0!==n?n:"An unexpected error has occurred"),this.name=this.constructor.name,this.stack=(e?this.stack:null!==(r=null==t?void 0:t.stack)&&void 0!==r?r:this.stack).replace(/^(\w*Error)/,`${this.constructor.name}`)}}class a extends i{constructor(e,t,n){var r;super(e=null!==(r=null!=e?e:null==n?void 0:n.message)&&void 0!==r?r:"An error occurred when executing the API request",n),this.status=t}}class l extends i{constructor(e,t){var n;super(e=null!==(n=null!=e?e:null==t?void 0:t.message)&&void 0!==n?n:"An authorization error occurred",t)}}class s extends i{constructor(e,t){var n;super(e=null!==(n=null!=e?e:null==t?void 0:t.message)&&void 0!==n?n:"The API request failed as the authorization tokens have expired",t)}}class c extends i{constructor(e,t){var n;super(e=null!==(n=null!=e?e:null==t?void 0:t.message)&&void 0!==n?n:"An initialization error occurred",t)}}class u extends i{constructor(e,t){var n;super(e=null!==(n=null!=e?e:null==t?void 0:t.message)&&void 0!==n?n:"The method has not been implemented",t)}}class f extends i{constructor(e){super(e=null!=e?e:"Invalid parameter detected")}}const d=e=>{let t=fin.Integrations;t||(fin.Integrations={},t=fin.Integrations);let n=t[e];return n||(t[e]={},n=t[e]),n},p=e=>{d(e).loggingEnabled=!1},h=(e,t="0.0.0")=>{d(e).loggingEnabled=!0,v(e)},v=e=>`[@openfin/${e.toLowerCase()}]`;class g{constructor(e){this.name=e,this.prefix=v(e),this.isLoggingEnabled=this.isLoggingEnabled.bind(this),this.logError=this.logError.bind(this),this.logInfo=this.logInfo.bind(this),this.logWarning=this.logWarning.bind(this)}isLoggingEnabled(){return d(this.name).loggingEnabled}logError(e){this.isLoggingEnabled()&&(e.innerError?console.error(this.prefix,e,"\n\n(inner)",e.innerError):console.error(this.prefix,e))}logInfo(...e){this.isLoggingEnabled()&&this.prefix}logWarning(...e){this.isLoggingEnabled()&&console.warn(this.prefix,...e)}}const C="oauth-api-auth-flow",m=(e,t,n,r,o,a,l,s)=>async c=>{const u=new URL(c);if(0!==u.href.toLowerCase().indexOf(o.toLowerCase()))return!1;if(window.clearInterval(s),window.clearTimeout(t),window.clearTimeout(n),e.removeAllListeners(),e.close(!0),u.searchParams.get("error")){const e=new i("Authorization error");return e.data=u.toString(),l(e),!0}if(u.searchParams.get("state")!==r){const e=new i("State mismatch");return e.data=u.toString(),l(e),!0}const f=u.searchParams.get("code");if(!f){const e=new i("Authorization code missing");return e.data=u.toString(),l(e),!0}return a(f),!0},y=(e,t,n,r)=>async(o,a)=>{let l;const s=window.setTimeout((()=>{window.clearInterval(l),window.clearTimeout(s),e.removeAllListeners(),e.close(!0),a(new i("Authorization timed out"))}),3e5);e.addListener("closing",(async()=>{r.logInfo("User closed auth window"),window.clearInterval(l),window.clearTimeout(s),e.removeAllListeners(),a(new i("Failed to complete authorization code flow"))}));const c=window.setTimeout((async()=>{try{await e.isShowing()||(r.logInfo("Showing auth window"),await e.show(!0),await e.focus())}catch(e){r.logWarning("Unable to show auth window")}}),2e3),{version:u}=await fin.System.getRuntimeInfo();parseInt(u.split(".")[0],10)>=30?await m(e,s,c,t,n,o,a)((await e.getInfo()).url)||await e.addListener("url-changed",(i=>{r.logInfo("Auth window navigated to",i.url),m(e,s,c,t,n,o,a)(i.url)})):l=window.setInterval((()=>(async(e,t,n,r,o,a,l,s)=>{let c;try{c=await e.getInfo()}catch(e){return window.clearInterval(t),window.clearTimeout(n),window.clearTimeout(r),s(new i("Could not locate auth window")),!1}return m(e,n,r,o,a,l,s,t)(c.url)})(e,l,s,c,t,n,o,a)),500)},w=()=>{let e,t,n,r;const o=async(t,n=!1)=>{const{command:r,data:a,id:l}=t,s={command:r,id:l};try{if(!e)throw new Error("Access token not found");const{apiRequestUrl:r,data:l,headers:c,httpMethod:u,includeAuthorization:f}=a,d=await(async(t,n,r,o,i)=>{var a,l;const s=Object.assign({Accept:"application/json"},o);"PATCH"!==n&&"POST"!==n&&"PUT"!==n||/content-type/i.test(Object.keys(s).join(","))||(s["Content-Type"]="application/json"),i&&(s.Authorization=`Bearer ${e}`);const c=await fetch(t,{body:"object"==typeof r?JSON.stringify(r):r,headers:s,method:n});if(!c.ok){const e={message:"Failed to execute API request"};return(null===(a=c.headers.get("Content-Type"))||void 0===a?void 0:a.includes("application/json"))&&(e.data=await c.json()),[c.status,void 0,void 0,e]}let u;const f=null!==(l=c.headers.get("Content-Type"))&&void 0!==l?l:"";switch(!0){case!f:break;case/^application\/(\w+\+)?json/i.test(f):u=await c.json();break;case/^multipart\/form-?data|^application\/x-?www-?form-?urlencoded/i.test(f):u=await c.formData();break;case/^application\/(([^/]+)?xml|vnd\.openxmlformats)|^text\/|^image\/svg/i.test(f):u=await c.text();break;default:u=await c.arrayBuffer()}return[c.status,u,f,void 0]})(r,u,l,c,f),[p,h,v,g]=d;if(s.status=p,g){if(!n&&401===p){const[e,n]=await i();return n?(s.status=e,s.error=n,s):await o(t,!0)}s.error=g}else h&&(s.data=h,s.type=v)}catch(e){e instanceof Error?s.error={message:e.message}:s.error={message:"Failed to execute API request"}}return Promise.resolve(s)},i=async()=>{var o;if(!n)throw new Error("Authorization server metadata not set");if(!t)throw new Error("Client ID not set");const i=`grant_type=refresh_token&client_id=${t}&refresh_token=${r}`,a=await fetch(n.token_endpoint,{body:i,headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"},method:"POST"});if(!a.ok){const e={message:"Failed to refresh access token"};return(null===(o=a.headers.get("Content-Type"))||void 0===o?void 0:o.includes("application/json"))&&(e.data=await a.json()),[a.status,e]}const l=await a.json();return e=l.access_token,[a.status]};self.onmessage=async i=>{const{command:a,id:l}=i.data;let s={command:a,id:l};switch(a){case"API_REQUEST":s=await o(i.data);break;case"CODE_EXCHANGE":s=await(async o=>{var i;const{command:a,data:l,id:s}=o,c={command:a,id:s};try{if(!n)throw new Error("Authorization server metadata not set");if(!t)throw new Error("Client ID not set");const{code:o,codeVerifier:a,redirectUri:s}=l,u=`grant_type=authorization_code&client_id=${t}&code=${o}&code_verifier=${a}&redirect_uri=${s}`,f=await fetch(n.token_endpoint,{body:u,headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"},method:"POST"});if(f.ok){const t=await f.json();e=t.access_token,r=t.refresh_token}else{const e={message:"Failed to retrieve tokens"};(null===(i=f.headers.get("Content-Type"))||void 0===i?void 0:i.includes("application/json"))&&(e.data=await f.json()),c.error=e}}catch(e){e instanceof Error?c.error={message:e.message}:c.error={message:"Failed to retrieve tokens"}}return Promise.resolve(c)})(i.data);break;case"EXPIRE_TOKENS":s=await(async t=>{var o;const{command:i,expireAccessTokenOnly:a,id:l}=t,s={command:i,id:l};try{if(!a&&!r)throw new Error("Refresh token not found");if(!n)throw new Error("Authorization server metadata not set");if(!n.revocation_endpoint)throw new Error("Revocation endpoint missing in authorization server metadata");const t=a?e:r,i=await fetch(`${n.revocation_endpoint}?token=${t}`,{headers:{Accept:"application/json"}});if(!i.ok){const e={message:"Failed to revoke tokens"};(null===(o=i.headers.get("Content-Type"))||void 0===o?void 0:o.includes("application/json"))&&(e.data=await i.json()),s.error=e}}catch(e){e instanceof Error?s.error={message:e.message}:s.error={message:"Failed to revoke tokens"}}return Promise.resolve(s)})(i.data);break;case"INIT":s=await(async e=>{const{command:r,data:o,id:i}=e,a={command:r,id:i};return t=o.clientId,n=o.metadata,Promise.resolve(a)})(i.data);break;default:s.error=new Error(`Unexpected oauth worker command: ${a}`)}self.postMessage(s)}};var b;!function(e){e.ApiRequest="API_REQUEST",e.CodeExchange="CODE_EXCHANGE",e.ExpireTokens="EXPIRE_TOKENS",e.Init="INIT"}(b||(b={}));const x=[],_=e=>{x.push(e)},O=(e,t)=>(n,r,o)=>new Promise(((i,a)=>{const l={command:b.CodeExchange,data:{code:n,codeVerifier:r,redirectUri:o},id:Date.now().toString()},{command:s,id:c}=l;_({command:s,id:c,reject:a,resolve:i}),e.postMessage(l),t.logInfo("Worker request sent",l)})),L=(e,t,n)=>(r,o,i,a,l)=>new Promise(((s,c)=>{const u={command:b.ApiRequest,data:{apiRequestUrl:r,clientId:e,data:i,headers:a,httpMethod:o,includeAuthorization:l},id:Date.now().toString()},{command:f,id:d}=u;_({command:f,id:d,reject:c,resolve:s}),t.postMessage(u),n.logInfo("Worker request sent",u)})),E=(e,t)=>n=>new Promise(((r,o)=>{const i={command:b.ExpireTokens,expireAccessTokenOnly:n,id:Date.now().toString()},{command:a,id:l}=i;_({command:a,id:l,reject:o,resolve:r}),e.postMessage(i),t.logInfo("Worker request sent",i)})),S=(e,t)=>{const n=x.findIndex((n=>n.command===t&&n.id===e));n>=0&&x.splice(n,1)},M=(e,t)=>async()=>{try{await E(e,t)(!1)}catch(e){t.logWarning(e.message)}e.terminate(),t.logInfo("Worker terminated")};class j{get apiOrigin(){return this._apiOrigin}get clientId(){return this._clientId}get logger(){return this._logger}get metadata(){return this._metadata}get worker(){return this._worker}constructor(e,t,n,r,o){if(this.executeApiRequest=async(e,t="GET",n,r,o=!0,i=!1)=>{this._logger.logInfo("ExecuteApiRequest started",e,t,n,r);try{const i=await((e,t)=>async(n,r,o,i,l)=>{try{return await t.executeApiRequest(`${e}${n}`,r,o,i,l)}catch(e){let t;const{data:n,message:r,status:o}=e;throw t=e instanceof Error?new a(r,o):"Failed to refresh access token"===r?new s(r):new a(r,o),t.data=n,t}})(this._apiOrigin,this._worker)(e,t,n,r,o);return this._logger.logInfo("ExecuteApiRequest completed",i),i}catch(e){if(e instanceof a){const{data:t,message:n,name:r,stack:o}=e,i=this.getErrorMessageFromServerResponse(t);i&&(e.message=i,e.stack=null==o?void 0:o.replace(`${r}: ${n}`,`${r}: ${i}`))}throw i&&this.logger.logError(e),e}},!(e&&t&&n&&r&&o))throw new c("Provider has not been properly initialized (call init to create new instances)");this._apiOrigin=e,this._clientId=t,this._metadata=n,this._worker=r,this._logger=o,this.authorize=this.authorize.bind(this),this.close=this.close.bind(this),this.executeApiRequest=this.executeApiRequest.bind(this),this.expireTokens=this.expireTokens.bind(this),this.getErrorMessageFromServerResponse=this.getErrorMessageFromServerResponse.bind(this)}async authorize(e,t,n){if(this._logger.logInfo("Authorize started",e,t,n),!this._metadata||!this._clientId||!this._worker)throw new c("Provider has not been properly initialized (call init to create new instances)");try{await(r=this._metadata,o=this._clientId,a=this._worker,s=this._logger,async(e,t,n)=>{const{authorization_endpoint:i}=r,l=fin.Application.getCurrentSync(),c=(await l.getChildWindows()).find((e=>e.identity.name===C));c&&await c.close(!0);const u=(new Date).getTime().toString(),f=(()=>{const e=new Uint32Array(64);return window.crypto.getRandomValues(e),Array.from(e,(e=>`0${e.toString(16)}`.slice(-2))).join("")})(),d=(await(async e=>{const t=(new TextEncoder).encode(e),n=await window.crypto.subtle.digest("SHA-256",t),r=await(e=>new Promise(((t,n)=>{try{const r=new Blob([e]),o=new FileReader;o.onload=e=>{var r,o;const i=null===(r=e.target)||void 0===r?void 0:r.result;if(i){const[,e]=Array.from(null!==(o=i.match(/base64,(.*)$/i))&&void 0!==o?o:[]);t(null!=e?e:"")}n(new Error("Unexpected empty result"))},o.readAsDataURL(r)}catch(e){n(e)}})))(n);return r.replace(/\+/g,"-").replace(/\//g,"_")})(f)).replace(/=+$/,"");let p="";t&&(p="&",p+=Object.entries(t).map((e=>`${encodeURIComponent(e[0])}=${encodeURIComponent(e[1])}`)).join("&"));const h=`${i}?client_id=${encodeURIComponent(o)}&redirect_uri=${encodeURIComponent(e)}&response_type=code&state=${u}&code_challenge=${d}&code_challenge_method=S256${p}`,v=null!=n?n:{},{defaultHeight:g,defaultWidth:m}=v,w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(v,["defaultHeight","defaultWidth"]);s.logInfo("Starting OAuth flow",h);const b=await fin.Window.create(Object.assign({alwaysOnTop:!0,maximizable:!1,minimizable:!1,autoShow:!1,defaultCentered:!0,defaultHeight:null!=g?g:700,defaultWidth:null!=m?m:600,includeInSnapshots:!1,name:C,resizable:!1,saveWindowState:!1,showTaskbarIcon:!1,url:h},w)),x=await new Promise(y(b,u,e,s));s.logInfo("Received authorization code"),await a.exchangeCodeForTokens(x,f,e),s.logInfo("Received tokens")})(e,t,n),this._logger.logInfo("Authorize completed")}catch(e){let t;if(e instanceof i){const{data:n}=e,r=this.getErrorMessageFromServerResponse(n);t=new l(r,e),t.data=n}else t=new l(void 0,e);throw this.logger.logError(t),t}var r,o,a,s}async close(){var e;this._logger.logInfo("Close started");try{await(null===(e=this._worker)||void 0===e?void 0:e.terminate()),this._worker=void 0,this._apiOrigin=void 0,this._clientId=void 0,this._metadata=void 0,this._logger.logInfo("Close completed")}catch(e){const t=new i(void 0,e);throw this._logger.logError(t),t}}async expireTokens(e=!1){var t;this._logger.logInfo("ExpireTokens started");try{await(null===(t=this._worker)||void 0===t?void 0:t.expireTokens(e)),this._logger.logInfo("ExpireTokens completed")}catch(e){const t=new i(void 0,e);throw this._logger.logError(t),t}}getErrorMessageFromServerResponse(e){e&&this._logger.logWarning(e)}static async init(e,t,n,r,...o){const a=new g(r);let l;a.logInfo("Init started",e,t,n);try{l=new URL(t)}catch(e){const t=new f("Unexpected invalid API origin");throw a.logError(t),t}try{const t=await(async e=>{let t;try{t=new URL(e)}catch(e){throw new f("Unexpected invalid metadata URL")}const n=await fetch(t,{headers:{Accept:"application/json"}});if(!n.ok)throw new Error("Failed to retrieve authorization server metadata");const r=await n.json();if(!r)throw new Error("Unexpected empty authorization server metadata response");if(!r.response_types_supported.find((e=>"code"===e.toLowerCase())))throw new Error("Authorization server does not support the authorization code response type");return r})(e),r=await(async(e,t,n)=>{const r=new Blob([`(${w})()`],{type:"text/javascript"}),o=URL.createObjectURL(r),i=new Worker(o);return i.onmessage=(e=>t=>{e.logInfo("Worker response received",t.data);const n=t.data,{command:r,error:o,id:i}=n,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(n,["command","error","id"]),l=((e,t)=>x.find((n=>n.command===t&&n.id===e)))(i,r);l?(o?("status"in a&&void 0!==a.status&&(o.status=a.status),l.reject(o)):l.resolve(a),S(i,r)):e.logError(new Error("Unable to locate awaited request"))})(n),await((e,t,n,r)=>new Promise(((o,i)=>{const a={command:b.Init,data:{clientId:t,metadata:e},id:Date.now().toString()},{command:l,id:s}=a;_({command:l,id:s,reject:i,resolve:o}),n.postMessage(a),r.logInfo("Worker request sent",a)})))(e,t,i,n),{exchangeCodeForTokens:O(i,n),executeApiRequest:L(t,i,n),expireTokens:E(i,n),terminate:M(i,n)}})(t,n,a);return a.logInfo("Init completed",t),new j(l.origin,n,t,r,a)}catch(e){let t;throw t=e instanceof i?e:new c(void 0,e),a.logError(t),t}}}var k=o.MS,R=o.cF,P=o.AK,I=o.M_,A=o.cX,T=o.O4,H=o._W,V=o.U$,B=o.U7,D=n(951);const Z="1.0.1",$="Microsoft365",F=()=>{V($)},N=()=>{B($,Z)};"undefined"!=typeof window&&("undefined"==typeof fin&&Object.assign(window,{fin:{}}),Object.assign(fin,{Integrations:{Microsoft365:{enableLogging:N,disableLogging:F}}}));const U=e=>async(t,n,r,o,i)=>{var a;return t=(a=t).startsWith("/")?a:`/${a}`,e.executeApiRequest(t,n,r,o,i,!0)},W=async(e,t,n=[])=>{const r=["id","userPrincipalName","userType",...n].join(","),o=await(async(e,t=[])=>{if(!(null==t?void 0:t.length))return[];const n=[];for(let r=0;r<t.length;r+=20){const o={requests:t.slice(r,r+20).map((e=>(e.id=crypto.randomUUID(),e)))};n.push(e.executeApiRequest("/v1.0/$batch","POST",o))}const r=(await Promise.all(n)).flatMap((e=>e.data.responses));return t.map((e=>{var t;return null===(t=r.find((t=>t.id===e.id)))||void 0===t?void 0:t.body}))})(e,t.map((e=>({method:"GET",url:`/users?$filter=mail eq '${encodeURIComponent(e)}'&$select=${r}`})))),i=o.map((e=>{var t;return null===(t=e.value)||void 0===t?void 0:t[0]}));return e.logger.logInfo("Resolved users from email addresses",i,t),i};var z=n(300);const G=e=>e.map((e=>e?{id:e.userPrincipalName,emailAddress:e.mail,name:e.displayName}:void 0)),q=async(e,t)=>{try{await fin.System.registerUsage({type:"integration-feature",data:{apiVersion:Z,componentName:e}})}catch(n){t.logWarning(`Unable to register usage for feature ${e}: ${null==n?void 0:n.message}`)}},Y=e=>{let t=e;return Array.isArray(e)?e.filter(Boolean).map(Y):("object"==typeof e&&(t=Object.fromEntries(Object.entries(e).filter((([,e])=>void 0!==(null!=e?e:void 0))).map((([e,t])=>[e,Y(t)])))),t)},K=e=>/#EXT#@/.test(e.userPrincipalName);var X;!function(e){e.MS365="MS-365",e.Teams="MS-TEAMS"}(X||(X={}));class J extends T{get currentUser(){return this._currentUser}get redirectUri(){return this._redirectUri}get permissions(){return this._permissions}get tenantId(){return this._tenantId}constructor(e,t,n,r,o,i,a,l){super(e,t,i,a,l),this._permissions=o,this._redirectUri=r,this._tenantId=n,q(X.MS365,l)}async authorize(e,t,n){await super.authorize(e,t,n);const r=await(async e=>{const{data:t}=await e.executeApiRequest("/v1.0/me");return t})(this);this._currentUser=r}getErrorMessageFromServerResponse(e){var t,n,r;if("string"==typeof e)try{return null===(n=null===(t=new URL(e).searchParams.get("error_description"))||void 0===t?void 0:t.split(/\r\n/))||void 0===n?void 0:n[0]}catch(e){return}return null===(r=null==e?void 0:e.error)||void 0===r?void 0:r.message}static async init(e,t,n,r,o,i,a){const l=await super.init(e,t,n,r);return new J(t,n,o,i,a,null==l?void 0:l.metadata,null==l?void 0:l.worker,null==l?void 0:l.logger)}}const Q=["User.ReadBasic.All","Team.ReadBasic.All","Channel.ReadBasic.All","ChannelMessage.Send","Chat.Create","ChatMessage.Send","offline_access"];let ee;const te=async(e,t,n,r=[],o,i)=>{await ne(e,t,n,r);const a=Object.assign({scope:[...Q,...r].join(" ")},o),l=Object.assign({defaultHeight:600,defaultWidth:550},i);return await ee.authorize(n,a,l),{clientId:e,currentUser:ee.currentUser,disconnect:ee.close,executeApiRequest:U(ee),provider:ee,tenantId:t}},ne=async(e,t,n,r)=>{if(!e)throw new H("Invalid client ID");if(!t)throw new H("Invalid tenant ID");if(!n)throw new H("Invalid redirect URI");const o=`https://login.microsoftonline.com/${t}/v2.0/.well-known/openid-configuration`;(!ee||ee.clientId!==e||ee.tenantId!==t||ee.redirectUri!==n||(0,D.xor)(ee.permissions,r).length>0)&&(ee=await J.init(o,"https://graph.microsoft.com",e,$,t,n,r))};class re extends k{constructor(e,t){var n;super(e=null!==(n=null!=e?e:null==t?void 0:t.message)&&void 0!==n?n:"An interop error occurred",t)}}var oe,ie,ae,le,se,ce;!function(e){e.AppNotFound="AppNotFound",e.ErrorOnLaunch="ErrorOnLaunch",e.AppTimeout="AppTimeout",e.ResolverUnavailable="ResolverUnavailable"}(oe||(oe={})),function(e){e.NoAppsFound="NoAppsFound",e.ResolverUnavailable="ResolverUnavailable",e.ResolverTimeout="ResolverTimeout"}(ie||(ie={})),function(e){e.NoChannelFound="NoChannelFound",e.AccessDenied="AccessDenied",e.CreationFailed="CreationFailed"}(ae||(ae={})),le=function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),a=new M(r||[]);return i._invoke=function(e,t,n){var r=f;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return k()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=L(a,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var s=u(e,t,n);if("normal"===s.type){if(r=n.done?h:d,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=h,n.method="throw",n.arg=s.arg)}}}(e,n,a),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",v={};function g(){}function C(){}function m(){}var y={};y[i]=function(){return this};var w=Object.getPrototypeOf,b=w&&w(w(j([])));b&&b!==n&&r.call(b,i)&&(y=b);var x=m.prototype=g.prototype=Object.create(y);function _(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function n(o,i,a,l){var s=u(e[o],e,i);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,l)}))}l(s.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function L(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=u(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function j(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:k}}function k(){return{value:t,done:!0}}return C.prototype=x.constructor=m,m.constructor=C,C.displayName=s(m,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===C||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,s(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},_(O.prototype),O.prototype[a]=function(){return this},e.AsyncIterator=O,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new O(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(x),s(x,l,"Generator"),x[i]=function(){return this},x.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=j,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:j(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}},le({exports:{}}),function(e){e.Contact="fdc3.contact",e.ContactList="fdc3.contactList",e.Country="fdc3.country",e.Instrument="fdc3.instrument",e.Organization="fdc3.organization",e.Portfolio="fdc3.portfolio",e.Position="fdc3.position"}(se||(se={})),function(e){e.StartCall="StartCall",e.StartChat="StartChat",e.ViewChart="ViewChart",e.ViewContact="ViewContact",e.ViewQuote="ViewQuote",e.ViewNews="ViewNews",e.ViewInstrument="ViewInstrument",e.ViewAnalysis="ViewAnalysis"}(ce||(ce={}));const ue="ofms365action",fe=e=>e?"msteams:":"https://teams.microsoft.com",de=async e=>{const t=null==e?void 0:e[ue];if(t)try{const e=(e=>{const t=(0,z.decompress)(e,{inputEncoding:"Base64",outputEncoding:"String"});return JSON.parse(t)})(t),{context:n,intent:r}=e,o={context:n,name:r};return await fin.me.interop.fireIntent(o),o}catch(e){const t=e.message;throw new k("Failed to decompress share payload"+(t?` (${t})`:""),e)}},pe=async(e,t,n)=>{const r=await(async(e,t,n=[])=>{try{const r=["id",...n].join(","),{data:o}=await e.executeApiRequest(`/v1.0/teams/${encodeURIComponent(t)}?$select=${r}`);return o}catch(e){if(404!==e.status)throw e}})(e,t,["displayName"]);if(!r)return;let o;if(e.logger.logInfo("Resolved team",r),n){if(o=await(async(e,t,n,r=[])=>{try{const o=["id",...r].join(","),{data:i}=await e.executeApiRequest(`/v1.0/teams/${encodeURIComponent(n)}/channels/${encodeURIComponent(t)}?$select=${o}`);return i}catch(e){if(404!==e.status)throw e}})(e,n,t,["displayName"]),!o)return void e.logger.logWarning(`Could not resolve channel from id ${n}`)}else{e.logger.logInfo("No channel id supplied, using primary channel");const{data:n}=await e.executeApiRequest(`/v1.0/teams/${encodeURIComponent(t)}/primaryChannel?$select=displayName,id`);o=n}const i={channelId:o.id,channelName:o.displayName,teamId:r.id,teamName:r.displayName};return e.logger.logInfo("Resolved team channel",t,n,i),i};class he{constructor(e,t=!0){this.logger=e.provider.logger,this.provider=e.provider,this.useMsTeamsProtocol=t,this.registerIntentHandlers=this.registerIntentHandlers.bind(this),this.share=this.share.bind(this),this.startCall=this.startCall.bind(this),this.startChat=this.startChat.bind(this),this.enableSharePayloadHandler(),q(X.Teams,this.logger)}async enableSharePayloadHandler(){const{initialOptions:e}=await fin.Application.getCurrentSync().getInfo(),{userAppConfigArgs:t}=e,n=await de(t);n&&this.logger.logInfo("Firing intent",n),fin.Application.getCurrentSync().addListener("run-requested",(async e=>{try{const t=await de(e.userAppConfigArgs);t&&this.logger.logInfo("Firing intent",t)}catch(e){this.logger.logError(e)}}))}async openUrl(e){this.logger.logInfo("openUrl started",e);try{const t=this.useMsTeamsProtocol?e.replace(/^https:\/\/teams.microsoft.com\//i,"msteams:"):e;this.logger.logInfo("Opening url",t),await fin.System.openUrlWithBrowser(t),this.logger.logInfo("openUrl completed")}catch(e){throw this.logger.logError(e),e}}async registerIntentHandlers(){if(this.logger.logInfo("registerIntentHandlers started"),this.unsubscribeIntentHandlers)return{unsubscribe:this.unsubscribeIntentHandlers};try{await fin.me.interop.getContextGroups();const e=await fin.me.interop.registerIntentHandler((async e=>{try{await((e,t)=>async n=>{var r,o,i,a;if(e.logger.logInfo("handleStartCallIntent started",n),(null===(r=n.name)||void 0===r?void 0:r.toLowerCase())!==ce.StartCall.toLowerCase())throw new k(`Unexpected intent type: ${n.name}`);const{context:l}=n;if((null===(o=l.type)||void 0===o?void 0:o.toLowerCase())!==se.Contact.toLowerCase()&&(null===(i=l.type)||void 0===i?void 0:i.toLowerCase())!==se.ContactList.toLowerCase())throw new k(`Unexpected context type: ${l.type}`);const s=(null===(a=l.type)||void 0===a?void 0:a.toLowerCase())===se.ContactList.toLowerCase()?l.contacts.map((e=>e.id.email)).filter(Boolean):[l.id.email],c=await t(s);e.logger.logInfo("handleStartCallIntent completed",c)})(this.provider,this.startCall)(e)}catch(e){throw this.logger.logError(e),e}}),"StartCall"),t=await fin.me.interop.registerIntentHandler((async e=>{try{await((e,t)=>async n=>{var r,o,i,a;if(e.logger.logInfo("handleStartChatIntent started",n),(null===(r=n.name)||void 0===r?void 0:r.toLowerCase())!==ce.StartChat.toLowerCase())throw new k(`Unexpected intent type: ${n.name}`);const{context:l}=n;if((null===(o=l.type)||void 0===o?void 0:o.toLowerCase())!==se.Contact.toLowerCase()&&(null===(i=l.type)||void 0===i?void 0:i.toLowerCase())!==se.ContactList.toLowerCase())throw new k(`Unexpected context type: ${l.type}`);const s=(null===(a=l.type)||void 0===a?void 0:a.toLowerCase())===se.ContactList.toLowerCase()?l.contacts.map((e=>e.id.email)).filter(Boolean):[l.id.email],c=await t({emailAddresses:s,topicName:l.name});e.logger.logInfo("handleStartChatIntent completed",c)})(this.provider,this.startChat)(e)}catch(e){throw this.logger.logError(e),e}}),"StartChat");return this.unsubscribeIntentHandlers=async()=>{this.logger.logInfo("unsubscribeIntentHandlers started"),await e.unsubscribe(),await t.unsubscribe(),this.unsubscribeIntentHandlers=void 0,this.logger.logInfo("unsubscribeIntentHandlers completed")},this.logger.logInfo("registerIntentHandlers completed"),{unsubscribe:this.unsubscribeIntentHandlers}}catch(e){const t=new re(e.message);throw this.logger.logError(t),t}}async share(e){var t,n,r,o;this.logger.logInfo("share started",e);try{if(!e.target)throw new H("Target not provided");if((null===(t=e.context)||void 0===t?void 0:t.type.toLowerCase())!==se.Instrument.toLowerCase())throw new H("Unsupported context type");if(!(null===(r=null===(n=e.context)||void 0===n?void 0:n.id)||void 0===r?void 0:r.ticker))throw new H("Ticker not provided");if(!e.chartImage&&null==e.priceCurrent)throw new H("Current price not provided");const i=null===(o=e.showMessage)||void 0===o||o,a=await(async(e,t)=>{var n,r,o,i;const{chartImage:a,context:l}=t,{priceCurrent:s,priceHigh:c,priceLow:u,priceOpen:f}=t,d=(null===(r=null===(n=l.id)||void 0===n?void 0:n.ticker)||void 0===r?void 0:r.trim())||void 0,p=(null===(o=l.name)||void 0===o?void 0:o.trim())||void 0;let h,v,g,C,m,y;if(null!=t.timestamp||!a)try{h=new Date(null!==(i=t.timestamp)&&void 0!==i?i:Date.now()).toISOString().replace(/\.\d+Z$/,"+00:00")}catch(n){e.logger.logWarning("Invalid timestamp",t.timestamp)}if(null!=s&&null!=f&&(v=s-f,g=v/f*100,m=v>0?"▲":v<0?"▼":"●",C=v>0?"Good":v<0?"Attention":"Warning"),a){if(!/^image\/(gif|jp(e|e?g)|png)$/i.test(a.type))throw new H("Chart image MIME type not supported");try{y=await(async e=>new Promise(((t,n)=>{const r=new FileReader;r.onloadend=()=>t(r.result),r.onerror=()=>n(new Error("Failed to convert blob to base64")),r.readAsDataURL(e)})))(a)}catch(e){throw new k("Failed to convert blob to base64",e)}}const w=(await fin.System.getRuntimeInfo()).manifestUrl,b=(x={context:l,intent:a?ce.ViewChart:ce.ViewInstrument,version:Z},(0,z.compress)(JSON.stringify(x),{outputEncoding:"Base64"}));var x;const _=`${w}?$$${ue}=${encodeURIComponent(b)}`,O=`https://start.openfin.co/?manifest=${encodeURIComponent(_)}`,L={$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.4",body:[{type:"ColumnSet",columns:[{type:"Column",width:"stretch",items:[{type:"Container",items:[{type:"TextBlock",text:null!=p?p:d.toUpperCase(),wrap:!0,size:"Large",spacing:"None"},p&&{type:"TextBlock",text:d.toUpperCase(),isSubtle:!0,wrap:!0,spacing:"None"},h&&{type:"TextBlock",text:`{{DATE(${h}, SHORT)}} {{TIME(${h})}}`,wrap:!0,size:"Small"}]}]},null!=s&&!y&&{type:"Column",width:"stretch",items:[{type:"TextBlock",text:s.toFixed(2),size:"ExtraLarge",wrap:!0,horizontalAlignment:"Right"},null!=v&&null!=g&&{type:"TextBlock",text:`${m} ${v.toFixed(2)} (${g.toFixed(2)}%)`,color:C,spacing:"None",wrap:!0,horizontalAlignment:"Right"},(null!=f||null!=c||null!=u)&&{type:"Container",horizontalAlignment:"Right",items:[{type:"ColumnSet",columns:[{type:"Column",width:"stretch",items:[null!=f&&{type:"TextBlock",text:"Open",wrap:!0,horizontalAlignment:"Right",size:"Small",weight:"Bolder",spacing:"None"},null!=c&&{type:"TextBlock",text:"High",wrap:!0,spacing:"None",horizontalAlignment:"Right",size:"Small",weight:"Bolder"},null!=u&&{type:"TextBlock",text:"Low",wrap:!0,spacing:"None",horizontalAlignment:"Right",size:"Small",weight:"Bolder"}]},{type:"Column",width:"auto",items:[null!=f&&{type:"TextBlock",text:f.toFixed(2),wrap:!0,spacing:"None",horizontalAlignment:"Right",size:"Small"},null!=c&&{type:"TextBlock",text:c.toFixed(2),wrap:!0,spacing:"None",horizontalAlignment:"Right",size:"Small"},null!=u&&{type:"TextBlock",text:u.toFixed(2),wrap:!0,spacing:"None",horizontalAlignment:"Right",size:"Small"}]}]}],spacing:"Small"}]}]},y&&{type:"Image",url:"../hostedContents/1/$value",spacing:"Small"},{type:"ActionSet",actions:[{type:"Action.OpenUrl",url:O,title:"Open"}]}]},E={attachments:[{id:"1",contentType:"application/vnd.microsoft.card.adaptive",content:JSON.stringify(Y(L))}],body:{contentType:"html",content:'<attachment id="1"></attachment>'},summary:"Test summary"};if(y){const[,e,t]=[...y.match(/^data:([^;]+);base64,(.+)$/i)];E.hostedContents=[{"@microsoft.graph.temporaryId":"1",contentBytes:t,contentType:e}]}return E})(this.provider,e);let l;if(Array.isArray(e.target)){const{target:t}=e,n=await W(this.provider,t,["displayName","mail"]),r=n.filter(Boolean);if(!r.length)return this.logger.logWarning("Could not resolve any valid users from email addresses",t),t.map((()=>{}));const{id:o,webUrl:s}=await(async(e,t)=>{const n={chatType:t.length>2?"group":"oneOnOne",members:t.map((t=>({"@odata.type":"#microsoft.graph.aadUserConversationMember",roles:K(t)?["guest"]:["owner"],"user@odata.bind":`${e.apiOrigin}/v1.0/users('${t.id}')`})))},{data:r}=await e.executeApiRequest("/v1.0/chats","POST",n);return r})(this.provider,[this.provider.currentUser,...r]),{data:c}=await this.provider.executeApiRequest(`/v1.0/chats/${encodeURIComponent(o)}/messages`,"POST",a);this.logger.logInfo("Sent chat message",c),i&&await this.openUrl(s),l=G(n)}else{const{target:t}=e,n=await pe(this.provider,t.teamId,t.channelId);if(!n)return void this.logger.logWarning("Could not resolve team/channel",t.teamId,t.channelId);const{channelId:r,teamId:o}=n,{data:s}=await this.provider.executeApiRequest(`/v1.0/teams/${encodeURIComponent(o)}/channels/${encodeURIComponent(r)}/messages`,"POST",a);this.logger.logInfo("Sent chat message",s),i&&await this.openUrl(s.webUrl),l=n}return this.logger.logInfo("share completed",l),l}catch(e){throw this.logger.logError(e),e}}async startCall(e=[],t=!1){this.logger.logInfo("startCall started",e);try{let n=`${fe(this.useMsTeamsProtocol)}/l/call/0/0?`;const r=await W(this.provider,e,["displayName","mail"]),o=r.filter(Boolean).map((e=>encodeURIComponent(e.userPrincipalName)));if(!o.length)return this.logger.logWarning("Could not resolve any valid users from supplied emails",e),e.map((()=>{}));n+=`users=${o.join(",")}&withVideo=${t}`,this.logger.logInfo("Opening Teams",n),await fin.System.openUrlWithBrowser(n);const i=G(r);return this.logger.logInfo("startCall completed",i),i}catch(e){throw this.logger.logError(e),e}}async startChat(e){this.logger.logInfo("startChat started",e);try{let t,n;if("teamId"in e){const{teamId:r,channelId:o}=e,i=await pe(this.provider,r,o);if(!i)return void this.logger.logWarning("Could not resolve team/channel",r,o);t=`${fe(this.useMsTeamsProtocol)}/l/channel/${encodeURIComponent(i.channelId)}/${encodeURIComponent(i.channelName)}?groupId=${i.teamId}&tenantId=${this.provider.tenantId}`,n=i}else{const{emailAddresses:r,message:o,topicName:i}=e;t=`${fe(this.useMsTeamsProtocol)}/l/chat/0/0?`;const a=await W(this.provider,r,["displayName","mail"]),l=a.filter(Boolean).map((e=>encodeURIComponent(e.userPrincipalName)));if(!l.length)return this.logger.logWarning("Could not resolve any valid users from email addresses",r),r.map((()=>{}));t+=`users=${l.join(",")}`,i&&(t+=`&topicName=${encodeURIComponent(i)}`),o&&(t+=`&message=${encodeURIComponent(o)}`),n=G(a)}return this.logger.logInfo("Opening Teams",t),await fin.System.openUrlWithBrowser(t),this.logger.logInfo("startChat completed",n),n}catch(e){throw this.logger.logError(e),e}}}},91:()=>{}},z={};function G(e){var t=z[e];if(void 0!==t)return t.exports;var n=z[e]={id:e,loaded:!1,exports:{}};return W[e].call(n.exports,n,n.exports,G),n.loaded=!0,n.exports}G.c=z,G.d=(e,t)=>{for(var n in t)G.o(t,n)&&!G.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},G.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),G.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),G.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var q=G(G.s=54),Y=(q.MS,q.cF,q.AK),K=(q.M_,q.cX,q.BT,q._W,q.Pg),X=q.$j,J=(q.U$,q.U7);let Q=0;const ee={chatMessage:"Chat Message",event:"Event",message:"Email",drive:"Document",contact:"Contact",user:"User",list:"List"},te={pdf:"PDF",docx:"Word",pptx:"PowerPoint",xlsx:"Excel",onenote:"OneNote"},ne={chatMessage:["Chat.Read","ChannelMessage.Read.All"],list:["Sites.Read.All"],event:["Calendars.Read"],message:["Mail.ReadWrite.Shared"],contact:["Contacts.Read.Shared","Mail.ReadWrite.Shared"],user:["User.Read.All","Presence.Read.All"]},re="MICROSOFT_365_SEARCH_TYPE_FILTER",oe="MICROSOFT_365_SEARCH_FILE_TYPE_FILTER",ie="MICROSOFT_365_SEARCH_DEPARTMENT_FILTER",ae="MICROSOFT_365_SEARCH_JOB_TITLE_FILTER",le="Teams Call",se="Teams Chat",ce="Email",ue=(e,t)=>{const n=[],r={item:e.context.selectedFilters?.find((e=>e.id===re)),documentType:e.context.selectedFilters?.find((e=>e.id===oe))},o=[{value:"Document",isSelected:!!r.item?.options?.find((({value:e})=>"File"===e))?.isSelected},{value:"Contact",isSelected:!!r.item?.options?.find((({value:e})=>"Contact"===e))?.isSelected},{value:"Chat Message",isSelected:!!r.item?.options?.find((({value:e})=>"Chat Message"===e))?.isSelected},{value:"Email",isSelected:!!r.item?.options?.find((({value:e})=>"Email"===e))?.isSelected},{value:"Event",isSelected:!!r.item?.options?.find((({value:e})=>"Event"===e))?.isSelected},{value:"List",isSelected:!!r.item?.options?.find((({value:e})=>"List"===e))?.isSelected}];return n.push({id:re,title:"Type",type:$.el.MultiSelect,options:o.filter((e=>t.has(e.value)))}),"Document"===r.item?.options?.filter((e=>e.isSelected))?.[0].value&&n.push({id:oe,title:"File Type",type:$.el.MultiSelect,options:Object.entries(te).map((([,e])=>({value:e,isSelected:!!r.documentType?.options?.filter((e=>e.isSelected))?.find((({value:e})=>"File"===e))?.isSelected})))}),n},fe=(e,t)=>{const n=t.context.selectedFilters?.find((e=>e.id===re))?.options;if(!Array.isArray(n)||!n.find((e=>"Contact"===e.value||"User"===e.value))?.isSelected)return[];const{department:r,jobTitle:o}=e.reduce(((e,t)=>(t.department&&e.department.add(t.department),t.jobTitle&&e.jobTitle.add(t.jobTitle),e)),{department:new Set,jobTitle:new Set}),i=t.context.selectedFilters?.find((e=>e.id===ie)),a=Array.from(r).map((e=>({value:e,isSelected:!!i?.options?.find((({value:t})=>t===e))?.isSelected}))),l=t.context.selectedFilters?.find((e=>e.id===ie)),s=Array.from(o).map((e=>({value:e,isSelected:!!l?.options?.find((({value:t})=>t===e))?.isSelected})));return[{id:ie,title:"Department",type:$.el.MultiSelect,options:a},{id:ae,title:"Job Title",type:$.el.MultiSelect,options:s}]},de=e=>{const t=e.context.selectedFilters?.find((e=>e.id===ie)),n=Array.isArray(t?.options)?t.options.filter((e=>e.isSelected)).map((e=>e.value)):[],r=e.context.selectedFilters?.find((e=>e.id===ae)),o=Array.isArray(r?.options)?r.options.filter((e=>e.isSelected)).map((e=>e.value)):[];return{department:n,jobTitle:o}},pe=(e,t)=>{const{department:n,jobTitle:r}=t;return e.filter((e=>(!n.length||n.includes(e.department))&&(!r.length||r.includes(e.jobTitle))))},he=e=>{const t=Array.isArray(e.context.selectedFilters?.find((e=>e.id===oe))?.options)?e.context.selectedFilters.find((e=>e.id===oe))?.options:[];return{filterFiles:t&&t.some((({isSelected:e})=>e)),showWord:t.find((({value:e})=>"Word"===e))?.isSelected,showExcel:t.find((({value:e})=>"Excel"===e))?.isSelected,showPowerPoint:t.find((({value:e})=>"PowerPoint"===e))?.isSelected,showPDF:t.find((({value:e})=>"PDF"===e))?.isSelected,showOneNote:t.find((({value:e})=>"OneNote"===e))?.isSelected}},ve=(e,t)=>{const n=[];return t.showWord&&n.push(".docx"),t.showExcel&&n.push(".xlsx"),t.showPowerPoint&&n.push(".pptx"),t.showPDF&&n.push(".pdf"),t.showOneNote&&n.push(".one"),e.filter((e=>{if(e.file){const t=e.name.substring(e.name.lastIndexOf("."));return n.includes(t)}return!1}))},ge=(e="")=>{switch(e.split(".").pop()?.toLowerCase()??""){case"docx":case"doc":return"Microsoft Word";case"xlsx":case"xls":return"Microsoft Excel";case"pptx":case"ppt":return"Microsoft PowerPoint";case"pdf":return"PDF";case"png":case"jpg":case"jpeg":case"gif":return"Image";case"txt":return"Text";default:return"File"}},Ce=(e="")=>{switch(e.split(".").pop()?.toLowerCase()??""){case"docx":case"doc":return(0,H.K3)(T.de.Microsoft365Assets.Microsoft365DocumentIcon);case"xlsx":case"xls":return(0,H.K3)(T.de.Microsoft365Assets.Microsoft365ExcelIcon);case"pptx":case"ppt":return(0,H.K3)(T.de.Microsoft365Assets.Microsoft365PowerpointIcon);case"pdf":return(0,H.K3)(T.de.Microsoft365Assets.PDFFileIcon);default:return}},me=e=>e.replace(/\+/g,"_").replace(/\//g,"-");var ye,we,be,xe,_e,Oe,Le,Ee,Se,Me,je,ke,Re,Pe,Ie,Ae,Te,He,Ve,Be,De,Ze=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},$e=function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n};class Fe extends U{constructor(e){const t=j({},{workflows:{search:(Q+=1,{homeProvider:{description:"Microsoft 365 search results provider",id:`MS365-${fin.me.identity.uuid}-${Q}`,logoUrl:(0,H.K3)(T.de.Microsoft365Assets.Microsoft365Icon),icon:(0,H.K3)(T.de.Microsoft365Assets.Microsoft365Icon),title:"Microsoft 365 Search",inputPlaceholder:"What would you like to search in Microsoft 365 today?",dispatchFocusEvents:!0},microsoftEntityTypeConfig:{message:!0,chatMessage:!0,drive:!0,event:!0,user:!0,contact:!0,list:!0},useTeamsDeepLink:!0})}},e);super(t),ye.add(this),we.set(this,void 0),this.workflowIntegrationName="Microsoft 365",be.set(this,void 0),xe.set(this,void 0),_e.set(this,1),Oe.set(this,new Set),Le.set(this,new S(100)),Ee.set(this,new D(6e4)),this.connect=async(e=this.config.connect)=>{const{clientId:t,tenantId:n,redirectUri:r}=e,o=this.config.workflows?.search?Object.entries(this.config.workflows?.search?.microsoftEntityTypeConfig??{}).filter((([e,t])=>t)).map((([e])=>ne[e])).filter((e=>void 0!==e)).flat():[];this.config.connect=e,$e(this,we,await X(t,n,r,[...new Set(o)]),"f")},Se.set(this,(()=>{if(!Ze(this,we,"f"))throw new Error("Microsoft365WorkflowIntegration not connected");return Ze(this,we,"f")})),Pe.set(this,(async e=>{if($e(this,xe,e,"f"),e.data?.item?.id){const t=Ze(this,Ee,"f").get(e.data.item.id);if(t)return void Ze(this,be,"f").respond([t])}if("user"===e.data?.type)Ze(this,Ve,"f").call(this,e)})),Ie.set(this,(async e=>{await fin.Platform.getCurrentSync().createWindow({layout:{content:[{type:"stack",content:[{type:"component",componentName:"view",componentState:{url:e}}]}]},workspacePlatform:void 0})})),Ae.set(this,(async e=>{if(e.data.item.channelIdentity.teamId){const t=new URL(`msteams:/l/channel/${e.data.item.channelIdentity.channelId}/${e.data.item.id}`);return!1===this.config.workflows?.search?.useTeamsDeepLink&&(t.protocol="https:"),t.searchParams.append("context",JSON.stringify({contextType:"channel"})),void await fin.System.openUrlWithBrowser(t.toString())}const t=new URL(`msteams:/l/message/${e.data.item.chatId}/${e.data.item.id}`);!1===this.config.workflows?.search?.useTeamsDeepLink&&(t.protocol="https:"),t.searchParams.append("context",JSON.stringify({contextType:"chat"})),await fin.System.openUrlWithBrowser(t.toString())})),Te.set(this,(async e=>{switch(e.action.name){case le:{const t=new K(Ze(this,Se,"f").call(this),this.config.workflows?.search?.useTeamsDeepLink);Ze(this,ye,"m",Me).call(this,(()=>t.startCall([e.data.item.mail])));break}case ce:{const t=await this.executeApiRequest("/v1.0/me/messages","POST",{toRecipients:[{emailAddress:{address:e.data.item.mail}}]});let n=t.data.webLink;const r=new URL(t.data.webLink);if("/owa/"===r.pathname){const e=r.search.slice(1).split("&").reduce(((e,t)=>{const[n,r]=t.split("=");return e[n]=r,e}),{});if(e.ItemID){const t=e.ItemID;n=`${r.origin}/mail/deeplink/compose/${t}?ItemID=${t}&exvsurl=1`}}await fin.Platform.getCurrentSync().createView({url:n});break}case se:{const t=Ze(this,Se,"f").call(this),n=new K(t,this.config.workflows?.search?.useTeamsDeepLink);Ze(this,ye,"m",Me).call(this,(()=>n.startChat({emailAddresses:[t.currentUser.mail,e.data.item.mail]})));break}default:console.warn("Unhandled user action for result:",e,`Unknown action "${e.action.name}"`)}})),He.set(this,(async e=>{switch(e.data.type){case"driveItem":Ze(this,Ie,"f").call(this,e.data.item.webUrl);break;case"event":{const t=e.data.item,n=await this.executeApiRequest(`/v1.0/me/events/${t.id}`);Ze(this,Ie,"f").call(this,n.data.webLink);break}case"chatMessage":Ze(this,Ae,"f").call(this,e);break;case"message":Ze(this,Ie,"f").call(this,e.data.item.webLink);break;case"list":{const t=e.data.item,n=await this.executeApiRequest(`/v1.0/sites/${t.parentReference?.siteId}/lists/${t.id}`);Ze(this,Ie,"f").call(this,n.data.webUrl);break}case"user":Ze(this,Te,"f").call(this,e);break;default:console.warn("Unhandled user action for result:",e,`Unknown result type "${e.data.type}"`)}})),Ve.set(this,(async e=>{let t,n;const r=[],o=e.data.item;Ze(this,Le,"f").has(o.id)?t=Ze(this,Le,"f").get(o.id):r.push({id:"contactPhoto",method:"GET",url:`/users/${e.data.item.id}/photo/$value`,headers:{ConsistencyLevel:"eventual"}}),r.push({id:"presence",method:"GET",url:`/users/${e.data.item.id}/presence`});try{const e=await Ze(this,ye,"m",je).call(this,r),a=e.data?.responses.find((e=>"contactPhoto"===e.id));a&&200!==a.status&&console.warn("Error fetching user photo",a),a?.body&&200===a?.status&&(t=`data:image/jpeg;base64,${a.body}`,Ze(this,Le,"f").put(o.id,t));const l=e.data?.responses.find((e=>"presence"===e.id));200!==l.status&&console.warn("Error fetching user presence",l),l?.body&&200===l.status&&(i=l.body,n={available:"available",availableidle:"available",away:"away",berightback:"away",busy:"busy",busyidle:"busy",donotdisturb:"do-not-disturb",offline:"offline",presenceunknown:"offline"}[i.availability?.toLowerCase()])}catch(e){console.error("Error fetching user data",e)}var i;const a=[["Department",o.department||"N/A"],["Email",o.mail||"N/A"],["Work Phone",o.businessPhones?.[0]||"N/A"],["Mobile",o.mobilePhone||"N/A"],["Location",o.officeLocation||"N/A"]],l={...e,template:$.yW.Contact,templateContent:{name:e.data.item.displayName,title:e.data.item.jobTitle,details:[a],photoUrl:t,onlineStatus:n,buttons:[{type:"button",icon:{light:(0,H.K3)(T.de.CallIconLight),dark:(0,H.K3)(T.de.CallIconDark)},tooltip:"Teams Call",action:le},{type:"button",icon:{light:(0,H.K3)(T.de.ChatIconLight),dark:(0,H.K3)(T.de.ChatIconDark)},tooltip:"Chat",action:se},{type:"button",icon:{light:(0,H.K3)(T.de.MessageIconLight),dark:(0,H.K3)(T.de.MessageIconDark)},tooltip:"E-mail",action:ce}]}};Ze(this,Ee,"f").put(e.data.item.id,l),Ze(this,be,"f").respond([l])})),Be.set(this,(async(e,t)=>{if(Ze(this,be,"f")&&Ze(this,be,"f").close(),$e(this,be,t,"f"),Ze(this,be,"f").open(),e.query.length<Ze(this,_e,"f"))return{results:[]};const n=encodeURIComponent(e.query),r=[],o=((e,t)=>{const n=Array.isArray(e.context.selectedFilters?.find((e=>e.id===re))?.options)?e.context.selectedFilters.find((e=>e.id===re))?.options:[],r=n.every((({isSelected:e})=>!e));return{showDocuments:t.has("Document")&&(r||!!n.find((({value:e})=>"Document"===e))?.isSelected),showContacts:t.has("Contact")&&(r||!!n.find((({value:e})=>"Contact"===e))?.isSelected),showChatMessages:t.has("Chat Message")&&(r||!!n.find((({value:e})=>"Chat Message"===e))?.isSelected),showMessages:t.has("Email")&&(r||!!n.find((({value:e})=>"Email"===e))?.isSelected),showEvents:t.has("Event")&&(r||!!n.find((({value:e})=>"Event"===e))?.isSelected),showLists:t.has("List")&&(r||!!n.find((({value:e})=>"List"===e))?.isSelected)}})(e,Ze(this,Oe,"f"));if(o.showDocuments){const e=`'${n}'`;r.push({id:"driveItem",method:"GET",url:`/me/drive/root/search(q=${encodeURIComponent(e)})`,headers:{ConsistencyLevel:"eventual"}})}if(o.showEvents&&r.push({id:"event",url:"/search/query",method:"POST",body:{requests:[{entityTypes:["event"],query:{queryString:e.query},from:0,size:10}]},headers:{"Content-Type":"application/json"}}),o.showContacts){const t=`"${e.query}"`;r.push({id:"contact",method:"GET",url:`/me/contacts?$search=${encodeURIComponent(t)}&$top=10`});const n=["displayName","givenName","surname"].map((t=>`"${t}:${e.query}"`)).join(" OR ");r.push({id:"user",method:"GET",url:`/users?$search=${encodeURIComponent(n)}&$top=10&$select=id,displayName,department,mail,businessPhones,mobilePhone,officeLocation,jobTitle`,headers:{ConsistencyLevel:"eventual"}})}if(o.showMessages&&r.push({id:"message",method:"GET",url:`/me/messages?$select=sender,subject,bodyPreview,receivedDateTime,webLink&$search=${encodeURIComponent(`"${e.query}"`)}&$top=10`}),o.showChatMessages&&r.push({id:"chatMessage",url:"/search/query",method:"POST",body:{requests:[{entityTypes:["chatMessage"],query:{queryString:e.query},from:0,size:10}]},headers:{"Content-Type":"application/json"}}),o.showLists&&r.push({id:"list",url:"/search/query",method:"POST",body:{requests:[{entityTypes:["list"],query:{queryString:e.query},from:0,size:10}]},headers:{"Content-Type":"application/json"}}),0===r.length)return{results:[]};const{results:i,filters:a}=await Ze(this,ye,"m",ke).call(this,r,e);return i.find((e=>e.key===Ze(this,xe,"f")?.key))?.template===$.yW.Loading&&Ze(this,Pe,"f").call(this,Ze(this,xe,"f")),{results:i,context:{filters:a}}})),De.set(this,(async e=>{switch(e.action.trigger){case Ge.p.FocusChange:Ze(this,Pe,"f").call(this,e);break;case Ge.p.UserAction:Ze(this,He,"f").call(this,e);break;case Ge.p.Reload:break;default:console.warn(`Unknown action trigger: ${e.action.trigger}`)}})),this.initializeWorkflow=async e=>{if("search"!==e)throw new Error(`Attempted to initialize unknown workflow: ${e}`);await O.register({...this.config.workflows.search.homeProvider,onUserInput:Ze(this,Be,"f"),onResultDispatch:Ze(this,De,"f")}),J(),await this.connect(),super.initializeWorkflow(e)},Object.entries(t.workflows?.search?.microsoftEntityTypeConfig||{}).filter((([e,t])=>t)).forEach((([e])=>{Ze(this,Oe,"f").add(ee[e])}))}async executeApiRequest(...e){return Ze(this,ye,"m",Me).call(this,(()=>Ze(this,Se,"f").call(this).executeApiRequest(...e)))}}we=new WeakMap,be=new WeakMap,xe=new WeakMap,_e=new WeakMap,Oe=new WeakMap,Le=new WeakMap,Ee=new WeakMap,Se=new WeakMap,Pe=new WeakMap,Ie=new WeakMap,Ae=new WeakMap,Te=new WeakMap,He=new WeakMap,Ve=new WeakMap,Be=new WeakMap,De=new WeakMap,ye=new WeakSet,Me=async function(e){try{return await e()}catch(t){if(t instanceof Y)return await this.connect(),e();throw t}},je=async function(e){return this.executeApiRequest("/v1.0/$batch","POST",{requests:e})},ke=async function(e,t){try{const n=await Ze(this,ye,"m",je).call(this,e),r=[...ue(t,Ze(this,Oe,"f")),...fe(n.data.responses.find((e=>"user"===e.id))?.body?.value||[],t)];return{filters:r,results:Ze(this,ye,"m",Re).call(this,n,t)}}catch(e){return console.warn("Failed to execute Batch API request: ",e),{filters:[],results:[{key:crypto.randomUUID(),title:"Error Fetching Search Results",description:"",actions:[],template:$.yW.Error,templateContent:`Failed to execute Batch API request: ${JSON.stringify(e)}`}]}}},Re=function(e,t){let n=[];for(const r of e.data.responses)if(200===r.status)switch(r.id){case"driveItem":{const e=he(t),o=e.filterFiles?ve(r.body.value,e):r.body.value;n.push(...(o||[]).map((e=>({key:e.id??crypto.randomUUID(),title:e.name??"",description:e.file?.mimeType??"",label:ge(e.name),icon:Ce(e.name),data:{type:"driveItem",item:e},actions:[{name:"Launch"}],template:$.yW.Plain,templateContent:void 0}))));break}case"event":n.push(...r.body?.value?.[0]?.hitsContainers?.[0]?.hits?.filter((e=>e.resource.subject)).map((e=>{const t=e.resource,n=me(e.hitId);return{key:n,title:t.subject??"",label:"Calendar Event",icon:(0,H.K3)(T.de.Microsoft365Assets.Microsoft365OutlookIcon),actions:[{name:"Launch"}],data:{type:"event",item:{...t,id:n}},template:$.yW.Plain,templateContent:void 0}}))||[]);break;case"contact":{const e=de(t),o=pe(r.body.value||[],e);n.push(...(o||[]).map((e=>({key:e.id??crypto.randomUUID(),title:e.displayName??"",label:"Outlook contact",icon:(0,H.K3)(T.de.Microsoft365Assets.Microsoft365OutlookIcon),actions:[],data:{type:"contact",item:e},template:$.yW.Plain,templateContent:void 0}))));break}case"user":{const e=de(t),o=pe(r.body.value||[],e);n.push(...(o||[]).map((e=>({key:e.id??crypto.randomUUID(),title:e.displayName??"",label:"Teams contact",icon:(0,H.K3)(T.de.Microsoft365Assets.Microsoft365TeamsIcon),actions:[],data:{type:"user",item:e},template:$.yW.Loading,templateContent:void 0}))));break}case"message":n.push(...(r.body.value||[]).map((e=>({key:e.id??crypto.randomUUID(),title:`${e.subject??"Untitled Message"}${e.isDraft?" (Draft)":""}`,label:"Email",icon:(0,H.K3)(T.de.Microsoft365Assets.Microsoft365OutlookIcon),actions:[],data:{type:"message",item:e},template:$.yW.Plain,templateContent:void 0}))));break;case"chatMessage":n.push(...r.body?.value?.[0]?.hitsContainers?.[0]?.hits?.map((e=>{const t=e.resource;return{key:t.id??crypto.randomUUID(),title:e.summary??"Untitled Message",label:"Chat",icon:(0,H.K3)(T.de.Microsoft365Assets.Microsoft365TeamsIcon),actions:[],data:{type:"chatMessage",item:t},template:$.yW.Plain,templateContent:void 0}}))||[]);break;case"list":n.push(...r.body?.value?.[0]?.hitsContainers?.[0]?.hits?.map((e=>{const t=e.resource,n=me(e.hitId);return{key:n,title:t.displayName??"Untitled List",label:"List",actions:[{name:"Launch"}],data:{type:"list",item:{...t,id:n}},template:$.yW.Plain,templateContent:void 0}}))||[]);break;default:console.warn(`Unknown batch response id: ${r.id}`,r.body)}else console.warn("Batch API request failed: ",r);return n=n.map((e=>{if(!e.data?.item?.id)return e;const t=Ze(this,Ee,"f").get(e.data.item.id);return t?{...e,template:t.template,templateContent:t.templateContent}:e})),n.sort(((e,t)=>e.title>t.title?1:-1))};var Ne=n(420);const Ue=()=>Ne.hd(),We=()=>(async()=>(await(0,c.Dm)()).dispatch("get-legacy-workspaces",void 0))();var ze=n(528),Ge=n(222),qe=n(109),Ye=n(114)})(),module.exports=r})();
1207
+ `,t.Text.displayName="Text"},3190:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useColorScheme=t.ColorScheme=void 0;const r=n(6689);t.ColorScheme={dark:"dark",light:"light",system:"system"};const o="(prefers-color-scheme: dark)";t.useColorScheme=({requestedScheme:e,fallbackScheme:n=t.ColorScheme.light})=>{const[i,a]=(0,r.useState)(n),l=e=>a(e.matches?"dark":"light");return(0,r.useEffect)((()=>{if("light"===e||"dark"===e)return void a(e);const t=window.matchMedia(o);return a(t.matches?"dark":"light"),t.addEventListener("change",l),()=>t.removeEventListener("change",l)}),[e,i,o]),i}},347:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useDropdownKeyboardNavigation=void 0;const r=n(6689);t.useDropdownKeyboardNavigation=(e,t,n,o,i)=>{const[a,l]=(0,r.useState)(0),[s,c]=(0,r.useState)("");let u;if((0,r.useEffect)((()=>{if(t&&!n){const n=e.flat().findIndex((e=>e.value===t.value));n>=0&&l(n)}}),[e,t,n]),(0,r.useEffect)((()=>{n||c("")}),[n]),(0,r.useEffect)((()=>{if(s){const t=e.flat().findIndex((e=>e.title.toLowerCase().startsWith(s.toLowerCase())));t>=0&&l(t)}}),[e,s]),e[0].length>0){const[t,n]=[Math.floor(a/e[0].length),a%e[0].length];u=e[t][n]}return(0,r.useEffect)((()=>{const e=setTimeout((()=>{c("")}),500);return()=>clearTimeout(e)}),[s]),{focusedOption:u,handleKeyDown:t=>{switch(t.code){case"ArrowUp":t.preventDefault(),a>0&&l(a-1);break;case"ArrowDown":t.preventDefault(),a<e.flat().length-1&&l(a+1);break;case"Enter":case"Space":t.preventDefault(),n?((null==u?void 0:u.overrideOnClick)?u.overrideOnClick():i(null!=u?u:e[0][0]),o()):o();break;case"Escape":t.preventDefault(),o(!1);break;default:/^[a-z0-9]$/i.test(t.key)&&c((e=>e+t.key))}}}}},4481:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useLayoutMediaQuery=t.useMediaQuery=void 0;const r=n(6689),o=e=>t=>{const[n,o]=(0,r.useState)(!1);return e((()=>{const e=window.matchMedia(t);if(e){e.matches!==n&&o(e.matches);const t=()=>o(e.matches),r=()=>e.removeEventListener("change",t);return e.addEventListener("change",t),r}}),[n,t]),n};t.useMediaQuery=o(r.useEffect),t.useLayoutMediaQuery=o(r.useLayoutEffect)},2776:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.usePrevious=void 0;const r=n(6689);t.usePrevious=e=>{const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e}),[e]),t.current}},7088:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.useTheme=void 0;const o=n(6689),i=n(4266),a=n(3190),l=n(9507),s={[a.ColorScheme.dark]:i.OpenFinDarkTheme,[a.ColorScheme.light]:i.OpenFinLightTheme};t.useTheme=({themes:e,scheme:t,config:n})=>{const i=(0,a.useColorScheme)({requestedScheme:t}),c=(0,o.useMemo)((()=>((e,t)=>{const n=null==e?void 0:e[t];if(n){const{palette:e}=n,o=r(n,["palette"]),i=(0,l.createTheme)(Object.assign(Object.assign({},s[t].palette),e),t);return Object.assign(Object.assign({},i),o)}return s[t]})(e,i)),[e,i]);return n?Object.assign(Object.assign({},c),{_config:Object.assign(Object.assign({},c._config),n)}):c}},341:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(4130),t),o(n(7401),t),o(n(4925),t),o(n(2609),t),o(n(3136),t),o(n(9734),t),o(n(6026),t),o(n(9634),t),o(n(144),t),o(n(9239),t),o(n(8878),t),o(n(8510),t),o(n(8951),t),o(n(1978),t),o(n(8051),t),o(n(4169),t),o(n(3641),t),o(n(5215),t),o(n(9654),t),o(n(3119),t),o(n(1335),t),o(n(5377),t),o(n(1069),t),o(n(9507),t),o(n(3188),t),o(n(7063),t),o(n(7769),t),o(n(3190),t),o(n(4481),t),o(n(2776),t),o(n(347),t),o(n(4991),t),o(n(8832),t),o(n(7030),t)},8832:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.generateColorFromString=void 0,t.generateColorFromString=function(e="",t=70,n=50){let r=0;for(let t=0;t<e.length;t++)r=e.charCodeAt(t)+((r<<5)-r),r&=r;return`hsl(${r%360}, ${t}%, ${n}%)`}},4991:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.whenFin=void 0,t.whenFin=function(e,t){const n="undefined"!=typeof fin?e:t;return"function"==typeof n?n():n}},655:(e,t,n)=>{n.r(t),n.d(t,{__assign:()=>i,__asyncDelegator:()=>L,__asyncGenerator:()=>O,__asyncValues:()=>E,__await:()=>_,__awaiter:()=>h,__classPrivateFieldGet:()=>R,__classPrivateFieldIn:()=>I,__classPrivateFieldSet:()=>P,__createBinding:()=>g,__decorate:()=>l,__esDecorate:()=>c,__exportStar:()=>C,__extends:()=>o,__generator:()=>v,__importDefault:()=>k,__importStar:()=>j,__makeTemplateObject:()=>S,__metadata:()=>p,__param:()=>s,__propKey:()=>f,__read:()=>y,__rest:()=>a,__runInitializers:()=>u,__setFunctionName:()=>d,__spread:()=>w,__spreadArray:()=>x,__spreadArrays:()=>b,__values:()=>m});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function l(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function s(e,t){return function(n,r){t(n,r,e)}}function c(e,t,n,r,o,i){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var l,s=r.kind,c="getter"===s?"get":"setter"===s?"set":"value",u=!t&&e?r.static?e:e.prototype:null,f=t||(u?Object.getOwnPropertyDescriptor(u,r.name):{}),d=!1,p=n.length-1;p>=0;p--){var h={};for(var v in r)h[v]="access"===v?{}:r[v];for(var v in r.access)h.access[v]=r.access[v];h.addInitializer=function(e){if(d)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var g=(0,n[p])("accessor"===s?{get:f.get,set:f.set}:f[c],h);if("accessor"===s){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(l=a(g.get))&&(f.get=l),(l=a(g.set))&&(f.set=l),(l=a(g.init))&&o.push(l)}else(l=a(g))&&("field"===s?o.push(l):f[c]=l)}u&&Object.defineProperty(u,r.name,f),d=!0}function u(e,t,n){for(var r=arguments.length>2,o=0;o<t.length;o++)n=r?t[o].call(e,n):t[o].call(e);return r?n:void 0}function f(e){return"symbol"==typeof e?e:"".concat(e)}function d(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function h(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))}function v(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}}var g=Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function C(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||g(t,e,n)}function m(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function w(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e}function b(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,l=i.length;a<l;a++,o++)r[o]=i[a];return r}function x(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function _(e){return this instanceof _?(this.v=e,this):new _(e)}function O(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||l(e,t)}))})}function l(e,t){try{(n=o[e](t)).value instanceof _?Promise.resolve(n.value.v).then(s,c):u(i[0][2],n)}catch(e){u(i[0][3],e)}var n}function s(e){l("next",e)}function c(e){l("throw",e)}function u(e,t){e(t),i.shift(),i.length&&l(i[0][0],i[0][1])}}function L(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:_(e[r](t)),done:!1}:o?o(t):t}:o}}function E(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=m(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}function S(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var M=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function j(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&g(t,e,n);return M(t,e),t}function k(e){return e&&e.__esModule?e:{default:e}}function R(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function P(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}function I(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}},6689:e=>{e.exports=n(378)},7518:e=>{e.exports=n(921)},8207:function(e){e.exports=function(){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var t=/^\s+/,n=/\s+$/;function r(o,i){if(i=i||{},(o=o||"")instanceof r)return o;if(!(this instanceof r))return new r(o,i);var a=function(r){var o,i,a,l={r:0,g:0,b:0},s=1,c=null,u=null,f=null,d=!1,p=!1;return"string"==typeof r&&(r=function(e){e=e.replace(t,"").replace(n,"").toLowerCase();var r,o=!1;if(w[e])e=w[e],o=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(r=I.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=I.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=I.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=I.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=I.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=I.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=I.hex8.exec(e))?{r:L(r[1]),g:L(r[2]),b:L(r[3]),a:j(r[4]),format:o?"name":"hex8"}:(r=I.hex6.exec(e))?{r:L(r[1]),g:L(r[2]),b:L(r[3]),format:o?"name":"hex"}:(r=I.hex4.exec(e))?{r:L(r[1]+""+r[1]),g:L(r[2]+""+r[2]),b:L(r[3]+""+r[3]),a:j(r[4]+""+r[4]),format:o?"name":"hex8"}:!!(r=I.hex3.exec(e))&&{r:L(r[1]+""+r[1]),g:L(r[2]+""+r[2]),b:L(r[3]+""+r[3]),format:o?"name":"hex"}}(r)),"object"==e(r)&&(A(r.r)&&A(r.g)&&A(r.b)?(o=r.r,i=r.g,a=r.b,l={r:255*_(o,255),g:255*_(i,255),b:255*_(a,255)},d=!0,p="%"===String(r.r).substr(-1)?"prgb":"rgb"):A(r.h)&&A(r.s)&&A(r.v)?(c=S(r.s),u=S(r.v),l=function(e,t,n){e=6*_(e,360),t=_(t,100),n=_(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),l=n*(1-(1-o)*t),s=r%6;return{r:255*[n,a,i,i,l,n][s],g:255*[l,n,n,a,i,i][s],b:255*[i,i,l,n,n,a][s]}}(r.h,c,u),d=!0,p="hsv"):A(r.h)&&A(r.s)&&A(r.l)&&(c=S(r.s),f=S(r.l),l=function(e,t,n){var r,o,i;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=_(e,360),t=_(t,100),n=_(n,100),0===t)r=o=i=n;else{var l=n<.5?n*(1+t):n+t-n*t,s=2*n-l;r=a(s,l,e+1/3),o=a(s,l,e),i=a(s,l,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(r.h,c,f),d=!0,p="hsl"),r.hasOwnProperty("a")&&(s=r.a)),s=x(s),{ok:d,format:r.format||p,r:Math.min(255,Math.max(l.r,0)),g:Math.min(255,Math.max(l.g,0)),b:Math.min(255,Math.max(l.b,0)),a:s}}(o);this._originalInput=o,this._r=a.r,this._g=a.g,this._b=a.b,this._a=a.a,this._roundA=Math.round(100*this._a)/100,this._format=i.format||a.format,this._gradientType=i.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=a.ok}function o(e,t,n){e=_(e,255),t=_(t,255),n=_(n,255);var r,o,i=Math.max(e,t,n),a=Math.min(e,t,n),l=(i+a)/2;if(i==a)r=o=0;else{var s=i-a;switch(o=l>.5?s/(2-i-a):s/(i+a),i){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:o,l}}function i(e,t,n){e=_(e,255),t=_(t,255),n=_(n,255);var r,o,i=Math.max(e,t,n),a=Math.min(e,t,n),l=i,s=i-a;if(o=0===i?0:s/i,i==a)r=0;else{switch(i){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:o,v:l}}function a(e,t,n,r){var o=[E(Math.round(e).toString(16)),E(Math.round(t).toString(16)),E(Math.round(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function l(e,t,n,r){return[E(M(r)),E(Math.round(e).toString(16)),E(Math.round(t).toString(16)),E(Math.round(n).toString(16))].join("")}function s(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.s-=t/100,n.s=O(n.s),r(n)}function c(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.s+=t/100,n.s=O(n.s),r(n)}function u(e){return r(e).desaturate(100)}function f(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.l+=t/100,n.l=O(n.l),r(n)}function d(e,t){t=0===t?0:t||10;var n=r(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),r(n)}function p(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.l-=t/100,n.l=O(n.l),r(n)}function h(e,t){var n=r(e).toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,r(n)}function v(e){var t=r(e).toHsl();return t.h=(t.h+180)%360,r(t)}function g(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=r(e).toHsl(),o=[r(e)],i=360/t,a=1;a<t;a++)o.push(r({h:(n.h+a*i)%360,s:n.s,l:n.l}));return o}function C(e){var t=r(e).toHsl(),n=t.h;return[r(e),r({h:(n+72)%360,s:t.s,l:t.l}),r({h:(n+216)%360,s:t.s,l:t.l})]}function m(e,t,n){t=t||6,n=n||30;var o=r(e).toHsl(),i=360/n,a=[r(e)];for(o.h=(o.h-(i*t>>1)+720)%360;--t;)o.h=(o.h+i)%360,a.push(r(o));return a}function y(e,t){t=t||6;for(var n=r(e).toHsv(),o=n.h,i=n.s,a=n.v,l=[],s=1/t;t--;)l.push(r({h:o,s:i,v:a})),a=(a+s)%1;return l}r.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=x(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=i(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=i(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=o(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=o(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return a(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var i=[E(Math.round(e).toString(16)),E(Math.round(t).toString(16)),E(Math.round(n).toString(16)),E(M(r))];return o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*_(this._r,255))+"%",g:Math.round(100*_(this._g,255))+"%",b:Math.round(100*_(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*_(this._r,255))+"%, "+Math.round(100*_(this._g,255))+"%, "+Math.round(100*_(this._b,255))+"%)":"rgba("+Math.round(100*_(this._r,255))+"%, "+Math.round(100*_(this._g,255))+"%, "+Math.round(100*_(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(b[a(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+l(this._r,this._g,this._b,this._a),n=t,o=this._gradientType?"GradientType = 1, ":"";if(e){var i=r(e);n="#"+l(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return r(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(f,arguments)},brighten:function(){return this._applyModification(d,arguments)},darken:function(){return this._applyModification(p,arguments)},desaturate:function(){return this._applyModification(s,arguments)},saturate:function(){return this._applyModification(c,arguments)},greyscale:function(){return this._applyModification(u,arguments)},spin:function(){return this._applyModification(h,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(m,arguments)},complement:function(){return this._applyCombination(v,arguments)},monochromatic:function(){return this._applyCombination(y,arguments)},splitcomplement:function(){return this._applyCombination(C,arguments)},triad:function(){return this._applyCombination(g,[3])},tetrad:function(){return this._applyCombination(g,[4])}},r.fromRatio=function(t,n){if("object"==e(t)){var o={};for(var i in t)t.hasOwnProperty(i)&&(o[i]="a"===i?t[i]:S(t[i]));t=o}return r(t,n)},r.equals=function(e,t){return!(!e||!t)&&r(e).toRgbString()==r(t).toRgbString()},r.random=function(){return r.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},r.mix=function(e,t,n){n=0===n?0:n||50;var o=r(e).toRgb(),i=r(t).toRgb(),a=n/100;return r({r:(i.r-o.r)*a+o.r,g:(i.g-o.g)*a+o.g,b:(i.b-o.b)*a+o.b,a:(i.a-o.a)*a+o.a})},r.readability=function(e,t){var n=r(e),o=r(t);return(Math.max(n.getLuminance(),o.getLuminance())+.05)/(Math.min(n.getLuminance(),o.getLuminance())+.05)},r.isReadable=function(e,t,n){var o,i,a,l,s,c=r.readability(e,t);switch(i=!1,(a=n,"AA"!==(l=((a=a||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==l&&(l="AA"),"small"!==(s=(a.size||"small").toLowerCase())&&"large"!==s&&(s="small"),o={level:l,size:s}).level+o.size){case"AAsmall":case"AAAlarge":i=c>=4.5;break;case"AAlarge":i=c>=3;break;case"AAAsmall":i=c>=7}return i},r.mostReadable=function(e,t,n){var o,i,a,l,s=null,c=0;i=(n=n||{}).includeFallbackColors,a=n.level,l=n.size;for(var u=0;u<t.length;u++)(o=r.readability(e,t[u]))>c&&(c=o,s=r(t[u]));return r.isReadable(e,s,{level:a,size:l})||!i?s:(n.includeFallbackColors=!1,r.mostReadable(e,["#fff","#000"],n))};var w=r.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},b=r.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(w);function x(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function _(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function O(e){return Math.min(1,Math.max(0,e))}function L(e){return parseInt(e,16)}function E(e){return 1==e.length?"0"+e:""+e}function S(e){return e<=1&&(e=100*e+"%"),e}function M(e){return Math.round(255*parseFloat(e)).toString(16)}function j(e){return L(e)/255}var k,R,P,I=(R="[\\s|\\(]+("+(k="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+k+")[,|\\s]+("+k+")\\s*\\)?",P="[\\s|\\(]+("+k+")[,|\\s]+("+k+")[,|\\s]+("+k+")[,|\\s]+("+k+")\\s*\\)?",{CSS_UNIT:new RegExp(k),rgb:new RegExp("rgb"+R),rgba:new RegExp("rgba"+P),hsl:new RegExp("hsl"+R),hsla:new RegExp("hsla"+P),hsv:new RegExp("hsv"+R),hsva:new RegExp("hsva"+P),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function A(e){return!!I.CSS_UNIT.exec(e)}return r}()}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={id:e,exports:{}};return r[e].call(n.exports,n,n.exports,i),n.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a=i(341),l=t;for(var s in a)l[s]=a[s];a.__esModule&&Object.defineProperty(l,"__esModule",{value:!0})},198:(e,t,n)=>{var r=NaN,o="[object Symbol]",i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt,u="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,f="object"==typeof self&&self&&self.Object===Object&&self,d=u||f||Function("return this")(),p=Object.prototype.toString,h=Math.max,v=Math.min,g=function(){return d.Date.now()};function C(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&p.call(e)==o}(e))return r;if(C(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=C(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=l.test(e);return n||s.test(e)?c(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,n){var r,o,i,a,l,s,c=0,u=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function y(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-c>=i}function w(){var e=g();if(y(e))return b(e);l=setTimeout(w,function(e){var n=t-(e-s);return f?v(n,i-(e-c)):n}(e))}function b(e){return l=void 0,d&&r?p(e):(r=o=void 0,a)}function x(){var e=g(),n=y(e);if(r=arguments,o=this,s=e,n){if(void 0===l)return function(e){return c=e,l=setTimeout(w,t),u?p(e):a}(s);if(f)return l=setTimeout(w,t),p(s)}return void 0===l&&(l=setTimeout(w,t)),a}return t=m(t)||0,C(n)&&(u=!!n.leading,i=(f="maxWait"in n)?h(m(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),x.cancel=function(){void 0!==l&&clearTimeout(l),c=0,r=s=o=l=void 0},x.flush=function(){return void 0===l?a:b(g())},x}},525:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var c in i=Object(arguments[s]))n.call(i,c)&&(l[c]=i[c]);if(t){a=t(i);for(var u=0;u<a.length;u++)r.call(i,a[u])&&(l[a[u]]=i[a[u]])}}return l}},702:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,C=n?Symbol.for("react.block"):60121,m=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case f:case i:case l:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case d:case g:case v:case s:return e;default:return t}}case o:return t}}}function x(e){return b(e)===f}t.ForwardRef=d,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===l||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===v||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===m||e.$$typeof===y||e.$$typeof===w||e.$$typeof===C)}},185:(e,t,n)=>{"use strict";e.exports=n(702)},535:(e,t,n)=>{"use strict";var r=n(525),o=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,l=60110,s=60112;t.Suspense=60113;var c=60115,u=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;o=f("react.element"),i=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=f("react.provider"),l=f("react.context"),s=f("react.forward_ref"),t.Suspense=f("react.suspense"),c=f("react.memo"),u=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v={};function g(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}function C(){}function m(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},C.prototype=g.prototype;var y=m.prototype=new C;y.constructor=m,r(y,g.prototype),y.isPureReactComponent=!0;var w={current:null},b=Object.prototype.hasOwnProperty,x={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,n){var r,i={},a=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)b.call(t,r)&&!x.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===i[r]&&(i[r]=s[r]);return{$$typeof:o,type:e,key:a,ref:l,props:i,_owner:w.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var L=/\/+/g;function E(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function S(e,t,n,r,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case o:case i:s=!0}}if(s)return a=a(s=e),e=""===r?"."+E(s,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(L,"$&/")+"/"),S(a,t,n,"",(function(e){return e}))):null!=a&&(O(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(L,"$&/")+"/")+e)),t.push(a)),1;if(s=0,r=""===r?".":r+":",Array.isArray(e))for(var c=0;c<e.length;c++){var u=r+E(l=e[c],c);s+=S(l,t,n,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(l=e.next()).done;)s+=S(l=l.value,t,n,u=r+E(l,c++),a);else if("object"===l)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function M(e,t,n){if(null==e)return e;var r=[],o=0;return S(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function j(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var k={current:null};function R(){var e=k.current;if(null===e)throw Error(p(321));return e}var P={ReactCurrentDispatcher:k,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:M,forEach:function(e,t,n){M(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return M(e,(function(){t++})),t},toArray:function(e){return M(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error(p(143));return e}},t.Component=g,t.PureComponent=m,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var i=r({},e.props),a=e.key,l=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,s=w.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)b.call(t,u)&&!x.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){c=Array(u);for(var f=0;f<u;f++)c[f]=arguments[f+2];i.children=c}return{$$typeof:o,type:e.type,key:a,ref:l,props:i,_owner:s}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:l,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:j}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return R().useCallback(e,t)},t.useContext=function(e,t){return R().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return R().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return R().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return R().useLayoutEffect(e,t)},t.useMemo=function(e,t){return R().useMemo(e,t)},t.useReducer=function(e,t,n){return R().useReducer(e,t,n)},t.useRef=function(e){return R().useRef(e)},t.useState=function(e){return R().useState(e)},t.version="17.0.2"},378:(e,t,n)=>{"use strict";e.exports=n(535)},921:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ServerStyleSheet:()=>pt,StyleSheetConsumer:()=>vt,StyleSheetContext:()=>ht,StyleSheetManager:()=>gt,ThemeConsumer:()=>ft,ThemeContext:()=>ut,ThemeProvider:()=>dt,__DO_NOT_USE_OR_YOU_WILL_BE_HAUNTED_BY_SPOOKY_GHOSTS:()=>Et,createGlobalStyle:()=>xt,css:()=>Ve,default:()=>St,isStyledComponent:()=>F,keyframes:()=>Ot,withTheme:()=>Lt});var r=n(946),o=n.n(r),i=n(246),a=n.n(i),l=n(378);const s={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var c=n(185),u=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function f(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||u(r)&&u(o)))return!1;var r,o;return!0}const d=function(e,t){var n;void 0===t&&(t=f);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}};var p=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;const h=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return p.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));function v(e){return Object.prototype.toString.call(e).slice(8,-1)}function g(e){return"Undefined"===v(e)}function C(e){return"Null"===v(e)}function m(e){return"Object"===v(e)&&(e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype)}function y(e){return"Array"===v(e)}function w(e){return"Symbol"===v(e)}var b,x,_,O,L;b=C,x=g;function E(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,l=i.length;a<l;a++,o++)r[o]=i[a];return r}function S(e,t,n,r){var o=r.propertyIsEnumerable(t)?"enumerable":"nonenumerable";"enumerable"===o&&(e[t]=n),"nonenumerable"===o&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function M(e,t,n){if(!m(t))return n&&y(n)&&n.forEach((function(n){t=n(e,t)})),t;var r={};m(e)&&(r=E(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)).reduce((function(n,r){var o=e[r];return(!w(r)&&!Object.getOwnPropertyNames(t).includes(r)||w(r)&&!Object.getOwnPropertySymbols(t).includes(r))&&S(n,r,o,e),n}),{}));return E(Object.getOwnPropertyNames(t),Object.getOwnPropertySymbols(t)).reduce((function(r,o){var i=t[o],a=m(e)?e[o]:void 0;return n&&y(n)&&n.forEach((function(e){i=e(a,i)})),void 0!==a&&m(i)&&(i=M(a,i,n)),S(r,o,i,t),r}),r)}const j=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=null,o=e;return m(e)&&e.extensions&&1===Object.keys(e).length&&(o={},r=e.extensions),t.reduce((function(e,t){return M(e,t,r)}),o)};var k=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},I=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},H=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},V=function(e){return"object"===(void 0===e?"undefined":R(e))&&e.constructor===Object},B=Object.freeze([]),D=Object.freeze({});function Z(e){return"function"==typeof e}function $(e){return e.displayName||e.name||"Component"}function F(e){return e&&"string"==typeof e.styledComponentId}var N="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",U="data-styled-version",W="data-styled-streamed",z="undefined"!=typeof window&&"HTMLElement"in window,G="boolean"==typeof SC_DISABLE_SPEEDY&&SC_DISABLE_SPEEDY||"undefined"!=typeof process&&(process.env.REACT_APP_SC_DISABLE_SPEEDY||process.env.SC_DISABLE_SPEEDY)||!1,q={};var Y=function(e){function t(n){P(this,t);for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];var a=H(this,e.call(this,"An error occurred. See https://github.com/styled-components/styled-components/blob/master/packages/styled-components/src/utils/errors.md#"+n+" for more information."+(o.length>0?" Additional arguments: "+o.join(", "):"")));return H(a)}return T(t,e),t}(Error),K=/^[^\S\n]*?\/\* sc-component-id:\s*(\S+)\s+\*\//gm,X=function(e){var t=""+(e||""),n=[];return t.replace(K,(function(e,t,r){return n.push({componentId:t,matchIndex:r}),e})),n.map((function(e,r){var o=e.componentId,i=e.matchIndex,a=n[r+1];return{componentId:o,cssFromDOM:a?t.slice(i,a.matchIndex):t.slice(i)}}))},J=/^\s*\/\/.*$/gm,Q=new(o())({global:!1,cascade:!0,keyframe:!1,prefix:!1,compress:!1,semicolon:!0}),ee=new(o())({global:!1,cascade:!0,keyframe:!1,prefix:!0,compress:!1,semicolon:!1}),te=[],ne=function(e){if(-2===e){var t=te;return te=[],t}},re=a()((function(e){te.push(e)})),oe=void 0,ie=void 0,ae=void 0,le=function(e,t,n){return t>0&&-1!==n.slice(0,t).indexOf(ie)&&n.slice(t-ie.length,t)!==ie?"."+oe:e};ee.use([function(e,t,n){2===e&&n.length&&n[0].lastIndexOf(ie)>0&&(n[0]=n[0].replace(ae,le))},re,ne]),Q.use([re,ne]);var se=function(e){return Q("",e)};function ce(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"&",o=e.join("").replace(J,""),i=t&&n?n+" "+t+" { "+o+" }":o;return oe=r,ie=t,ae=new RegExp("\\"+ie+"\\b","g"),ee(n||!t?"":t,i)}var ue=function(){return n.nc},fe=function(e,t,n){n&&((e[t]||(e[t]=Object.create(null)))[n]=!0)},de=function(e,t){e[t]=Object.create(null)},pe=function(e){return function(t,n){return void 0!==e[t]&&e[t][n]}},he=function(e){var t="";for(var n in e)t+=Object.keys(e[n]).join(" ")+" ";return t.trim()},ve=function(e){if(e.sheet)return e.sheet;for(var t=e.ownerDocument.styleSheets.length,n=0;n<t;n+=1){var r=e.ownerDocument.styleSheets[n];if(r.ownerNode===e)return r}throw new Y(10)},ge=function(e,t,n){if(!t)return!1;var r=e.cssRules.length;try{e.insertRule(t,n<=r?n:r)}catch(e){return!1}return!0},Ce=function(e){return"\n/* sc-component-id: "+e+" */\n"},me=function(e,t){for(var n=0,r=0;r<=t;r+=1)n+=e[r];return n},ye=function(e,t){return function(n){var r=ue();return"<style "+[r&&'nonce="'+r+'"',N+'="'+he(t)+'"',U+'="4.4.1"',n].filter(Boolean).join(" ")+">"+e()+"</style>"}},we=function(e,t){return function(){var n,r=((n={})[N]=he(t),n[U]="4.4.1",n),o=ue();return o&&(r.nonce=o),l.createElement("style",A({},r,{dangerouslySetInnerHTML:{__html:e()}}))}},be=function(e){return function(){return Object.keys(e)}},xe=function(e,t){return e.createTextNode(Ce(t))},_e=function e(t,n){var r=void 0===t?Object.create(null):t,o=void 0===n?Object.create(null):n,i=function(e){var t=o[e];return void 0!==t?t:o[e]=[""]},a=function(){var e="";for(var t in o){var n=o[t][0];n&&(e+=Ce(t)+n)}return e},l={clone:function(){var t=function(e){var t=Object.create(null);for(var n in e)t[n]=A({},e[n]);return t}(r),n=Object.create(null);for(var i in o)n[i]=[o[i][0]];return e(t,n)},css:a,getIds:be(o),hasNameForId:pe(r),insertMarker:i,insertRules:function(e,t,n){i(e)[0]+=t.join(" "),fe(r,e,n)},removeRules:function(e){var t=o[e];void 0!==t&&(t[0]="",de(r,e))},sealed:!1,styleTag:null,toElement:we(a,r),toHTML:ye(a,r)};return l},Oe=function(e,t,n,r,o){if(z&&!n){var i=function(e,t,n){var r=document;e?r=e.ownerDocument:t&&(r=t.ownerDocument);var o=r.createElement("style");o.setAttribute(N,""),o.setAttribute(U,"4.4.1");var i=ue();if(i&&o.setAttribute("nonce",i),o.appendChild(r.createTextNode("")),e&&!t)e.appendChild(o);else{if(!t||!e||!t.parentNode)throw new Y(6);t.parentNode.insertBefore(o,n?t:t.nextSibling)}return o}(e,t,r);return G?function(e,t){var n=Object.create(null),r=Object.create(null),o=void 0!==t,i=!1,a=function(t){var o=r[t];return void 0!==o?o:(r[t]=xe(e.ownerDocument,t),e.appendChild(r[t]),n[t]=Object.create(null),r[t])},l=function(){var e="";for(var t in r)e+=r[t].data;return e};return{clone:function(){throw new Y(5)},css:l,getIds:be(r),hasNameForId:pe(n),insertMarker:a,insertRules:function(e,r,l){for(var s=a(e),c=[],u=r.length,f=0;f<u;f+=1){var d=r[f],p=o;if(p&&-1!==d.indexOf("@import"))c.push(d);else{p=!1;var h=f===u-1?"":" ";s.appendData(""+d+h)}}fe(n,e,l),o&&c.length>0&&(i=!0,t().insertRules(e+"-import",c))},removeRules:function(a){var l=r[a];if(void 0!==l){var s=xe(e.ownerDocument,a);e.replaceChild(s,l),r[a]=s,de(n,a),o&&i&&t().removeRules(a+"-import")}},sealed:!1,styleTag:e,toElement:we(l,n),toHTML:ye(l,n)}}(i,o):function(e,t){var n=Object.create(null),r=Object.create(null),o=[],i=void 0!==t,a=!1,l=function(e){var t=r[e];return void 0!==t?t:(r[e]=o.length,o.push(0),de(n,e),r[e])},s=function(){var t=ve(e).cssRules,n="";for(var i in r){n+=Ce(i);for(var a=r[i],l=me(o,a),s=l-o[a];s<l;s+=1){var c=t[s];void 0!==c&&(n+=c.cssText)}}return n};return{clone:function(){throw new Y(5)},css:s,getIds:be(r),hasNameForId:pe(n),insertMarker:l,insertRules:function(r,s,c){for(var u=l(r),f=ve(e),d=me(o,u),p=0,h=[],v=s.length,g=0;g<v;g+=1){var C=s[g],m=i;m&&-1!==C.indexOf("@import")?h.push(C):ge(f,C,d+p)&&(m=!1,p+=1)}i&&h.length>0&&(a=!0,t().insertRules(r+"-import",h)),o[u]+=p,fe(n,r,c)},removeRules:function(l){var s=r[l];if(void 0!==s&&!1!==e.isConnected){var c=o[s];!function(e,t,n){for(var r=t-n,o=t;o>r;o-=1)e.deleteRule(o)}(ve(e),me(o,s)-1,c),o[s]=0,de(n,l),i&&a&&t().removeRules(l+"-import")}},sealed:!1,styleTag:e,toElement:we(s,n),toHTML:ye(s,n)}}(i,o)}return _e()},Le=/\s+/,Ee=void 0;Ee=z?G?40:1e3:-1;var Se=0,Me=void 0,je=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:z?document.head:null,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];P(this,e),this.getImportRuleTag=function(){var e=t.importRuleTag;if(void 0!==e)return e;var n=t.tags[0];return t.importRuleTag=Oe(t.target,n?n.styleTag:null,t.forceServer,!0)},Se+=1,this.id=Se,this.forceServer=r,this.target=r?null:n,this.tagMap={},this.deferred={},this.rehydratedNames={},this.ignoreRehydratedNames={},this.tags=[],this.capacity=1,this.clones=[]}return e.prototype.rehydrate=function(){if(!z||this.forceServer)return this;var e=[],t=[],n=!1,r=document.querySelectorAll("style["+N+"]["+U+'="4.4.1"]'),o=r.length;if(!o)return this;for(var i=0;i<o;i+=1){var a=r[i];n||(n=!!a.getAttribute(W));for(var l,s=(a.getAttribute(N)||"").trim().split(Le),c=s.length,u=0;u<c;u+=1)l=s[u],this.rehydratedNames[l]=!0;t.push.apply(t,X(a.textContent)),e.push(a)}var f=t.length;if(!f)return this;var d=this.makeTag(null);!function(e,t,n){for(var r=0,o=n.length;r<o;r+=1){var i=n[r],a=i.componentId,l=i.cssFromDOM,s=se(l);e.insertRules(a,s)}for(var c=0,u=t.length;c<u;c+=1){var f=t[c];f.parentNode&&f.parentNode.removeChild(f)}}(d,e,t),this.capacity=Math.max(1,Ee-f),this.tags.push(d);for(var p=0;p<f;p+=1)this.tagMap[t[p].componentId]=d;return this},e.reset=function(){Me=new e(void 0,arguments.length>0&&void 0!==arguments[0]&&arguments[0]).rehydrate()},e.prototype.clone=function(){var t=new e(this.target,this.forceServer);return this.clones.push(t),t.tags=this.tags.map((function(e){for(var n=e.getIds(),r=e.clone(),o=0;o<n.length;o+=1)t.tagMap[n[o]]=r;return r})),t.rehydratedNames=A({},this.rehydratedNames),t.deferred=A({},this.deferred),t},e.prototype.sealAllTags=function(){this.capacity=1,this.tags.forEach((function(e){e.sealed=!0}))},e.prototype.makeTag=function(e){var t=e?e.styleTag:null;return Oe(this.target,t,this.forceServer,!1,this.getImportRuleTag)},e.prototype.getTagForId=function(e){var t=this.tagMap[e];if(void 0!==t&&!t.sealed)return t;var n=this.tags[this.tags.length-1];return this.capacity-=1,0===this.capacity&&(this.capacity=Ee,n=this.makeTag(n),this.tags.push(n)),this.tagMap[e]=n},e.prototype.hasId=function(e){return void 0!==this.tagMap[e]},e.prototype.hasNameForId=function(e,t){if(void 0===this.ignoreRehydratedNames[e]&&this.rehydratedNames[t])return!0;var n=this.tagMap[e];return void 0!==n&&n.hasNameForId(e,t)},e.prototype.deferredInject=function(e,t){if(void 0===this.tagMap[e]){for(var n=this.clones,r=0;r<n.length;r+=1)n[r].deferredInject(e,t);this.getTagForId(e).insertMarker(e),this.deferred[e]=t}},e.prototype.inject=function(e,t,n){for(var r=this.clones,o=0;o<r.length;o+=1)r[o].inject(e,t,n);var i=this.getTagForId(e);if(void 0!==this.deferred[e]){var a=this.deferred[e].concat(t);i.insertRules(e,a,n),this.deferred[e]=void 0}else i.insertRules(e,t,n)},e.prototype.remove=function(e){var t=this.tagMap[e];if(void 0!==t){for(var n=this.clones,r=0;r<n.length;r+=1)n[r].remove(e);t.removeRules(e),this.ignoreRehydratedNames[e]=!0,this.deferred[e]=void 0}},e.prototype.toHTML=function(){return this.tags.map((function(e){return e.toHTML()})).join("")},e.prototype.toReactElements=function(){var e=this.id;return this.tags.map((function(t,n){var r="sc-"+e+"-"+n;return(0,l.cloneElement)(t.toElement(),{key:r})}))},I(e,null,[{key:"master",get:function(){return Me||(Me=(new e).rehydrate())}},{key:"instance",get:function(){return e.master}}]),e}(),ke=function(){function e(t,n){var r=this;P(this,e),this.inject=function(e){e.hasNameForId(r.id,r.name)||e.inject(r.id,r.rules,r.name)},this.toString=function(){throw new Y(12,String(r.name))},this.name=t,this.rules=n,this.id="sc-keyframes-"+t}return e.prototype.getName=function(){return this.name},e}(),Re=/([A-Z])/g,Pe=/^ms-/;function Ie(e){return e.replace(Re,"-$1").toLowerCase().replace(Pe,"-ms-")}var Ae=function(e){return null==e||!1===e||""===e},Te=function e(t,n){var r=[];return Object.keys(t).forEach((function(n){if(!Ae(t[n])){if(V(t[n]))return r.push.apply(r,e(t[n],n)),r;if(Z(t[n]))return r.push(Ie(n)+":",t[n],";"),r;r.push(Ie(n)+": "+(o=n,(null==(i=t[n])||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||o in s?String(i).trim():i+"px")+";"))}var o,i;return r})),n?[n+" {"].concat(r,["}"]):r};function He(e,t,n){if(Array.isArray(e)){for(var r,o=[],i=0,a=e.length;i<a;i+=1)null!==(r=He(e[i],t,n))&&(Array.isArray(r)?o.push.apply(o,r):o.push(r));return o}return Ae(e)?null:F(e)?"."+e.styledComponentId:Z(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t?e:He(e(t),t,n):e instanceof ke?n?(e.inject(n),e.getName()):e:V(e)?Te(e):e.toString();var l}function Ve(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Z(e)||V(e)?He(k(B,[e].concat(n))):He(k(e,n))}function Be(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:D;if(!(0,c.isValidElementType)(t))throw new Y(1,String(t));var r=function(){return e(t,n,Ve.apply(void 0,arguments))};return r.withConfig=function(r){return Be(e,t,A({},n,r))},r.attrs=function(r){return Be(e,t,A({},n,{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r}function De(e){for(var t,n=0|e.length,r=0|n,o=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++o;switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+((1540483477*(r>>>16)&65535)<<16)}return((r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16))^r>>>15)>>>0}var Ze=52,$e=function(e){return String.fromCharCode(e+(e>25?39:97))};function Fe(e){var t="",n=void 0;for(n=e;n>Ze;n=Math.floor(n/Ze))t=$e(n%Ze)+t;return $e(n%Ze)+t}function Ne(e,t){for(var n=0;n<e.length;n+=1){var r=e[n];if(Array.isArray(r)&&!Ne(r,t))return!1;if(Z(r)&&!F(r))return!1}return!t.some((function(e){return Z(e)||function(e){for(var t in e)if(Z(e[t]))return!0;return!1}(e)}))}var Ue,We=function(e){return Fe(De(e))},ze=function(){function e(t,n,r){P(this,e),this.rules=t,this.isStatic=Ne(t,n),this.componentId=r,je.master.hasId(r)||je.master.deferredInject(r,[])}return e.prototype.generateAndInjectStyles=function(e,t){var n=this.isStatic,r=this.componentId,o=this.lastClassName;if(z&&n&&"string"==typeof o&&t.hasNameForId(r,o))return o;var i=He(this.rules,e,t),a=We(this.componentId+i.join(""));return t.hasNameForId(r,a)||t.inject(this.componentId,ce(i,"."+a,void 0,r),a),this.lastClassName=a,a},e.generateName=function(e){return We(e)},e}(),Ge=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:D,r=!!n&&e.theme===n.theme;return e.theme&&!r?e.theme:t||n.theme},qe=/[[\].#*$><+~=|^:(),"'`-]+/g,Ye=/(^-|-$)/g;function Ke(e){return e.replace(qe,"-").replace(Ye,"")}function Xe(e){return"string"==typeof e&&!0}var Je={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Qe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},et=((Ue={})[c.ForwardRef]={$$typeof:!0,render:!0},Ue),tt=Object.defineProperty,nt=Object.getOwnPropertyNames,rt=Object.getOwnPropertySymbols,ot=void 0===rt?function(){return[]}:rt,it=Object.getOwnPropertyDescriptor,at=Object.getPrototypeOf,lt=Object.prototype,st=Array.prototype;function ct(e,t,n){if("string"!=typeof t){var r=at(t);r&&r!==lt&&ct(e,r,n);for(var o=st.concat(nt(t),ot(t)),i=et[e.$$typeof]||Je,a=et[t.$$typeof]||Je,l=o.length,s=void 0,c=void 0;l--;)if(c=o[l],!(Qe[c]||n&&n[c]||a&&a[c]||i&&i[c])&&(s=it(t,c)))try{tt(e,c,s)}catch(e){}return e}return e}var ut=(0,l.createContext)(),ft=ut.Consumer,dt=function(e){function t(n){P(this,t);var r=H(this,e.call(this,n));return r.getContext=d(r.getContext.bind(r)),r.renderInner=r.renderInner.bind(r),r}return T(t,e),t.prototype.render=function(){return this.props.children?l.createElement(ut.Consumer,null,this.renderInner):null},t.prototype.renderInner=function(e){var t=this.getContext(this.props.theme,e);return l.createElement(ut.Provider,{value:t},this.props.children)},t.prototype.getTheme=function(e,t){if(Z(e))return e(t);if(null===e||Array.isArray(e)||"object"!==(void 0===e?"undefined":R(e)))throw new Y(8);return A({},t,e)},t.prototype.getContext=function(e,t){return this.getTheme(e,t)},t}(l.Component),pt=function(){function e(){P(this,e),this.masterSheet=je.master,this.instance=this.masterSheet.clone(),this.sealed=!1}return e.prototype.seal=function(){if(!this.sealed){var e=this.masterSheet.clones.indexOf(this.instance);this.masterSheet.clones.splice(e,1),this.sealed=!0}},e.prototype.collectStyles=function(e){if(this.sealed)throw new Y(2);return l.createElement(gt,{sheet:this.instance},e)},e.prototype.getStyleTags=function(){return this.seal(),this.instance.toHTML()},e.prototype.getStyleElement=function(){return this.seal(),this.instance.toReactElements()},e.prototype.interleaveWithNodeStream=function(e){throw new Y(3)},e}(),ht=(0,l.createContext)(),vt=ht.Consumer,gt=function(e){function t(n){P(this,t);var r=H(this,e.call(this,n));return r.getContext=d(r.getContext),r}return T(t,e),t.prototype.getContext=function(e,t){if(e)return e;if(t)return new je(t);throw new Y(4)},t.prototype.render=function(){var e=this.props,t=e.children,n=e.sheet,r=e.target;return l.createElement(ht.Provider,{value:this.getContext(n,r)},t)},t}(l.Component),Ct={};var mt=function(e){function t(){P(this,t);var n=H(this,e.call(this));return n.attrs={},n.renderOuter=n.renderOuter.bind(n),n.renderInner=n.renderInner.bind(n),n}return T(t,e),t.prototype.render=function(){return l.createElement(vt,null,this.renderOuter)},t.prototype.renderOuter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:je.master;return this.styleSheet=e,this.props.forwardedComponent.componentStyle.isStatic?this.renderInner():l.createElement(ft,null,this.renderInner)},t.prototype.renderInner=function(e){var t=this.props.forwardedComponent,n=t.componentStyle,r=t.defaultProps,o=(t.displayName,t.foldedComponentIds),i=t.styledComponentId,a=t.target,s=void 0;s=n.isStatic?this.generateAndInjectStyles(D,this.props):this.generateAndInjectStyles(Ge(this.props,e,r)||D,this.props);var c=this.props.as||this.attrs.as||a,u=Xe(c),f={},d=A({},this.props,this.attrs),p=void 0;for(p in d)"forwardedComponent"!==p&&"as"!==p&&("forwardedRef"===p?f.ref=d[p]:"forwardedAs"===p?f.as=d[p]:u&&!h(p)||(f[p]=d[p]));return this.props.style&&this.attrs.style&&(f.style=A({},this.attrs.style,this.props.style)),f.className=Array.prototype.concat(o,i,s!==i?s:null,this.props.className,this.attrs.className).filter(Boolean).join(" "),(0,l.createElement)(c,f)},t.prototype.buildExecutionContext=function(e,t,n){var r=this,o=A({},t,{theme:e});return n.length?(this.attrs={},n.forEach((function(e){var t,n=e,i=!1,a=void 0,l=void 0;for(l in Z(n)&&(n=n(o),i=!0),n)a=n[l],i||!Z(a)||(t=a)&&t.prototype&&t.prototype.isReactComponent||F(a)||(a=a(o)),r.attrs[l]=a,o[l]=a})),o):o},t.prototype.generateAndInjectStyles=function(e,t){var n=t.forwardedComponent,r=n.attrs,o=n.componentStyle;n.warnTooManyClasses;return o.isStatic&&!r.length?o.generateAndInjectStyles(D,this.styleSheet):o.generateAndInjectStyles(this.buildExecutionContext(e,t,r),this.styleSheet)},t}(l.Component);function yt(e,t,n){var r=F(e),o=!Xe(e),i=t.displayName,a=void 0===i?function(e){return Xe(e)?"styled."+e:"Styled("+$(e)+")"}(e):i,s=t.componentId,c=void 0===s?function(e,t,n){var r="string"!=typeof t?"sc":Ke(t),o=(Ct[r]||0)+1;Ct[r]=o;var i=r+"-"+e.generateName(r+o);return n?n+"-"+i:i}(ze,t.displayName,t.parentComponentId):s,u=t.ParentComponent,f=void 0===u?mt:u,d=t.attrs,p=void 0===d?B:d,h=t.displayName&&t.componentId?Ke(t.displayName)+"-"+t.componentId:t.componentId||c,v=r&&e.attrs?Array.prototype.concat(e.attrs,p).filter(Boolean):p,g=new ze(r?e.componentStyle.rules.concat(n):n,v,h),C=void 0,m=function(e,t){return l.createElement(f,A({},e,{forwardedComponent:C,forwardedRef:t}))};return m.displayName=a,(C=l.forwardRef(m)).displayName=a,C.attrs=v,C.componentStyle=g,C.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):B,C.styledComponentId=h,C.target=r?e.target:e,C.withComponent=function(e){var r=t.componentId,o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["componentId"]),i=r&&r+"-"+(Xe(e)?e:Ke($(e)));return yt(e,A({},o,{attrs:v,componentId:i,ParentComponent:f}),n)},Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?j(e.defaultProps,t):t}}),C.toString=function(){return"."+C.styledComponentId},o&&ct(C,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,styledComponentId:!0,target:!0,withComponent:!0}),C}var wt=function(e){return Be(yt,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){wt[e]=wt(e)}));var bt=function(){function e(t,n){P(this,e),this.rules=t,this.componentId=n,this.isStatic=Ne(t,B),je.master.hasId(n)||je.master.deferredInject(n,[])}return e.prototype.createStyles=function(e,t){var n=ce(He(this.rules,e,t),"");t.inject(this.componentId,n)},e.prototype.removeStyles=function(e){var t=this.componentId;e.hasId(t)&&e.remove(t)},e.prototype.renderStyles=function(e,t){this.removeStyles(t),this.createStyles(e,t)},e}();function xt(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Ve.apply(void 0,[e].concat(n)),i="sc-global-"+De(JSON.stringify(o)),a=new bt(o,i),s=function(e){function t(n){P(this,t);var r=H(this,e.call(this,n)),o=r.constructor,i=o.globalStyle,a=o.styledComponentId;return z&&(window.scCGSHMRCache[a]=(window.scCGSHMRCache[a]||0)+1),r.state={globalStyle:i,styledComponentId:a},r}return T(t,e),t.prototype.componentWillUnmount=function(){window.scCGSHMRCache[this.state.styledComponentId]&&(window.scCGSHMRCache[this.state.styledComponentId]-=1),0===window.scCGSHMRCache[this.state.styledComponentId]&&this.state.globalStyle.removeStyles(this.styleSheet)},t.prototype.render=function(){var e=this;return l.createElement(vt,null,(function(t){e.styleSheet=t||je.master;var n=e.state.globalStyle;return n.isStatic?(n.renderStyles(q,e.styleSheet),null):l.createElement(ft,null,(function(t){var r=e.constructor.defaultProps,o=A({},e.props);return void 0!==t&&(o.theme=Ge(e.props,t,r)),n.renderStyles(o,e.styleSheet),null}))}))},t}(l.Component);return s.globalStyle=a,s.styledComponentId=i,s}z&&(window.scCGSHMRCache={});var _t=function(e){return e.replace(/\s|\\n/g,"")};function Ot(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Ve.apply(void 0,[e].concat(n)),i=Fe(De(_t(JSON.stringify(o))));return new ke(i,ce(o,i,"@keyframes"))}var Lt=function(e){var t=l.forwardRef((function(t,n){return l.createElement(ft,null,(function(r){var o=e.defaultProps,i=Ge(t,r,o);return l.createElement(e,A({},t,{theme:i,ref:n}))}))}));return ct(t,e),t.displayName="WithTheme("+$(e)+")",t},Et={StyleSheet:je};const St=wt},246:e=>{e.exports=function(){"use strict";return function(e){var t="/*|*/",n=t+"}";function r(t){if(t)try{e(t+"}")}catch(e){}}return function(o,i,a,l,s,c,u,f,d,p){switch(o){case 1:if(0===d&&64===i.charCodeAt(0))return e(i+";"),"";break;case 2:if(0===f)return i+t;break;case 3:switch(f){case 102:case 112:return e(a[0]+i),"";default:return i+(0===p?t:"")}case-2:i.split(n).forEach(r)}}}}()},946:e=>{e.exports=function e(t){"use strict";var n=/^\0+/g,r=/[\0\r\f]/g,o=/: */g,i=/zoo|gra/,a=/([,: ])(transform)/g,l=/,+\s*(?![^(]*[)])/g,s=/ +\s*(?![^(]*[)])/g,c=/ *[\0] */g,u=/,\r+?/g,f=/([\t\r\n ])*\f?&/g,d=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,p=/\W+/g,h=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,g=/:(read-only)/g,C=/\s+(?=[{\];=:>])/g,m=/([[}=:>])\s+/g,y=/(\{[^{]+?);(?=\})/g,w=/\s{2,}/g,b=/([^\(])(:+) */g,x=/[svh]\w+-[tblr]{2}/,_=/\(\s*(.*)\s*\)/g,O=/([\s\S]*?);/g,L=/-self|flex-/g,E=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,M=/([^-])(image-set\()/,j="-webkit-",k="-moz-",R="-ms-",P=59,I=125,A=123,T=40,H=41,V=91,B=93,D=10,Z=13,$=9,F=64,N=32,U=38,W=45,z=95,G=42,q=44,Y=58,K=39,X=34,J=47,Q=62,ee=43,te=126,ne=0,re=12,oe=11,ie=107,ae=109,le=115,se=112,ce=111,ue=105,fe=99,de=100,pe=112,he=1,ve=1,ge=0,Ce=1,me=1,ye=1,we=0,be=0,xe=0,_e=[],Oe=[],Le=0,Ee=null,Se=-2,Me=-1,je=0,ke=1,Re=2,Pe=3,Ie=0,Ae=1,Te="",He="",Ve="";function Be(e,t,o,i,a){for(var l,s,u=0,f=0,d=0,p=0,C=0,m=0,y=0,w=0,x=0,O=0,L=0,E=0,S=0,M=0,z=0,we=0,Oe=0,Ee=0,Se=0,Me=o.length,Ze=Me-1,ze="",Ge="",qe="",Ye="",Ke="",Xe="";z<Me;){if(y=o.charCodeAt(z),z===Ze&&f+p+d+u!==0&&(0!==f&&(y=f===J?D:J),p=d=u=0,Me++,Ze++),f+p+d+u===0){if(z===Ze&&(we>0&&(Ge=Ge.replace(r,"")),Ge.trim().length>0)){switch(y){case N:case $:case P:case Z:case D:break;default:Ge+=o.charAt(z)}y=P}if(1===Oe)switch(y){case A:case I:case P:case X:case K:case T:case H:case q:Oe=0;case $:case Z:case D:case N:break;default:for(Oe=0,Se=z,C=y,z--,y=P;Se<Me;)switch(o.charCodeAt(Se++)){case D:case Z:case P:++z,y=C,Se=Me;break;case Y:we>0&&(++z,y=C);case A:Se=Me}}switch(y){case A:for(C=(Ge=Ge.trim()).charCodeAt(0),L=1,Se=++z;z<Me;){switch(y=o.charCodeAt(z)){case A:L++;break;case I:L--;break;case J:switch(m=o.charCodeAt(z+1)){case G:case J:z=We(m,z,Ze,o)}break;case V:y++;case T:y++;case X:case K:for(;z++<Ze&&o.charCodeAt(z)!==y;);}if(0===L)break;z++}if(qe=o.substring(Se,z),C===ne&&(C=(Ge=Ge.replace(n,"").trim()).charCodeAt(0)),C===F){switch(we>0&&(Ge=Ge.replace(r,"")),m=Ge.charCodeAt(1)){case de:case ae:case le:case W:l=t;break;default:l=_e}if(Se=(qe=Be(t,l,qe,m,a+1)).length,xe>0&&0===Se&&(Se=Ge.length),Le>0&&(l=De(_e,Ge,Ee),s=Ue(Pe,qe,l,t,ve,he,Se,m,a,i),Ge=l.join(""),void 0!==s&&0===(Se=(qe=s.trim()).length)&&(m=0,qe="")),Se>0)switch(m){case le:Ge=Ge.replace(_,Ne);case de:case ae:case W:qe=Ge+"{"+qe+"}";break;case ie:qe=(Ge=Ge.replace(h,"$1 $2"+(Ae>0?Te:"")))+"{"+qe+"}",qe=1===me||2===me&&Fe("@"+qe,3)?"@"+j+qe+"@"+qe:"@"+qe;break;default:qe=Ge+qe,i===pe&&(Ye+=qe,qe="")}else qe=""}else qe=Be(t,De(t,Ge,Ee),qe,i,a+1);Ke+=qe,E=0,Oe=0,M=0,we=0,Ee=0,S=0,Ge="",qe="",y=o.charCodeAt(++z);break;case I:case P:if((Se=(Ge=(we>0?Ge.replace(r,""):Ge).trim()).length)>1)switch(0===M&&((C=Ge.charCodeAt(0))===W||C>96&&C<123)&&(Se=(Ge=Ge.replace(" ",":")).length),Le>0&&void 0!==(s=Ue(ke,Ge,t,e,ve,he,Ye.length,i,a,i))&&0===(Se=(Ge=s.trim()).length)&&(Ge="\0\0"),C=Ge.charCodeAt(0),m=Ge.charCodeAt(1),C){case ne:break;case F:if(m===ue||m===fe){Xe+=Ge+o.charAt(z);break}default:if(Ge.charCodeAt(Se-1)===Y)break;Ye+=$e(Ge,C,m,Ge.charCodeAt(2))}E=0,Oe=0,M=0,we=0,Ee=0,Ge="",y=o.charCodeAt(++z)}}switch(y){case Z:case D:if(f+p+d+u+be===0)switch(O){case H:case K:case X:case F:case te:case Q:case G:case ee:case J:case W:case Y:case q:case P:case A:case I:break;default:M>0&&(Oe=1)}f===J?f=0:Ce+E===0&&i!==ie&&Ge.length>0&&(we=1,Ge+="\0"),Le*Ie>0&&Ue(je,Ge,t,e,ve,he,Ye.length,i,a,i),he=1,ve++;break;case P:case I:if(f+p+d+u===0){he++;break}default:switch(he++,ze=o.charAt(z),y){case $:case N:if(p+u+f===0)switch(w){case q:case Y:case $:case N:ze="";break;default:y!==N&&(ze=" ")}break;case ne:ze="\\0";break;case re:ze="\\f";break;case oe:ze="\\v";break;case U:p+f+u===0&&Ce>0&&(Ee=1,we=1,ze="\f"+ze);break;case 108:if(p+f+u+ge===0&&M>0)switch(z-M){case 2:w===se&&o.charCodeAt(z-3)===Y&&(ge=w);case 8:x===ce&&(ge=x)}break;case Y:p+f+u===0&&(M=z);break;case q:f+d+p+u===0&&(we=1,ze+="\r");break;case X:case K:0===f&&(p=p===y?0:0===p?y:p);break;case V:p+f+d===0&&u++;break;case B:p+f+d===0&&u--;break;case H:p+f+u===0&&d--;break;case T:p+f+u===0&&(0===E&&(2*w+3*x==533||(L=0,E=1)),d++);break;case F:f+d+p+u+M+S===0&&(S=1);break;case G:case J:if(p+u+d>0)break;switch(f){case 0:switch(2*y+3*o.charCodeAt(z+1)){case 235:f=J;break;case 220:Se=z,f=G}break;case G:y===J&&w===G&&Se+2!==z&&(33===o.charCodeAt(Se+2)&&(Ye+=o.substring(Se,z+1)),ze="",f=0)}}if(0===f){if(Ce+p+u+S===0&&i!==ie&&y!==P)switch(y){case q:case te:case Q:case ee:case H:case T:if(0===E){switch(w){case $:case N:case D:case Z:ze+="\0";break;default:ze="\0"+ze+(y===q?"":"\0")}we=1}else switch(y){case T:M+7===z&&108===w&&(M=0),E=++L;break;case H:0==(E=--L)&&(we=1,ze+="\0")}break;case $:case N:switch(w){case ne:case A:case I:case P:case q:case re:case $:case N:case D:case Z:break;default:0===E&&(we=1,ze+="\0")}}Ge+=ze,y!==N&&y!==$&&(O=y)}}x=w,w=y,z++}if(Se=Ye.length,xe>0&&0===Se&&0===Ke.length&&0===t[0].length==0&&(i!==ae||1===t.length&&(Ce>0?He:Ve)===t[0])&&(Se=t.join(",").length+2),Se>0){if(l=0===Ce&&i!==ie?function(e){for(var t,n,o=0,i=e.length,a=Array(i);o<i;++o){for(var l=e[o].split(c),s="",u=0,f=0,d=0,p=0,h=l.length;u<h;++u)if(!(0===(f=(n=l[u]).length)&&h>1)){if(d=s.charCodeAt(s.length-1),p=n.charCodeAt(0),t="",0!==u)switch(d){case G:case te:case Q:case ee:case N:case T:break;default:t=" "}switch(p){case U:n=t+He;case te:case Q:case ee:case N:case H:case T:break;case V:n=t+n+He;break;case Y:switch(2*n.charCodeAt(1)+3*n.charCodeAt(2)){case 530:if(ye>0){n=t+n.substring(8,f-1);break}default:(u<1||l[u-1].length<1)&&(n=t+He+n)}break;case q:t="";default:n=f>1&&n.indexOf(":")>0?t+n.replace(b,"$1"+He+"$2"):t+n+He}s+=n}a[o]=s.replace(r,"").trim()}return a}(t):t,Le>0&&void 0!==(s=Ue(Re,Ye,l,e,ve,he,Se,i,a,i))&&0===(Ye=s).length)return Xe+Ye+Ke;if(Ye=l.join(",")+"{"+Ye+"}",me*ge!=0){switch(2!==me||Fe(Ye,2)||(ge=0),ge){case ce:Ye=Ye.replace(g,":"+k+"$1")+Ye;break;case se:Ye=Ye.replace(v,"::"+j+"input-$1")+Ye.replace(v,"::"+k+"$1")+Ye.replace(v,":"+R+"input-$1")+Ye}ge=0}}return Xe+Ye+Ke}function De(e,t,n){var r=t.trim().split(u),o=r,i=r.length,a=e.length;switch(a){case 0:case 1:for(var l=0,s=0===a?"":e[0]+" ";l<i;++l)o[l]=Ze(s,o[l],n,a).trim();break;default:l=0;var c=0;for(o=[];l<i;++l)for(var f=0;f<a;++f)o[c++]=Ze(e[f]+" ",r[l],n,a).trim()}return o}function Ze(e,t,n,r){var o=t,i=o.charCodeAt(0);switch(i<33&&(i=(o=o.trim()).charCodeAt(0)),i){case U:switch(Ce+r){case 0:case 1:if(0===e.trim().length)break;default:return o.replace(f,"$1"+e.trim())}break;case Y:if(103!==o.charCodeAt(1))return e.trim()+o.replace(f,"$1"+e.trim());if(ye>0&&Ce>0)return o.replace(d,"$1").replace(f,"$1"+Ve);default:if(n*Ce>0&&o.indexOf("\f")>0)return o.replace(f,(e.charCodeAt(0)===Y?"":"$1")+e.trim())}return e+o}function $e(e,t,n,r){var c,u=0,f=e+";",d=2*t+3*n+4*r;if(944===d)return function(e){var t=e.length,n=e.indexOf(":",9)+1,r=e.substring(0,n).trim(),o=e.substring(n,t-1).trim();switch(e.charCodeAt(9)*Ae){case 0:break;case W:if(110!==e.charCodeAt(10))break;default:var i=o.split((o="",l)),a=0;for(n=0,t=i.length;a<t;n=0,++a){for(var c=i[a],u=c.split(s);c=u[n];){var f=c.charCodeAt(0);if(1===Ae&&(f>F&&f<90||f>96&&f<123||f===z||f===W&&c.charCodeAt(1)!==W)&&isNaN(parseFloat(c))+(-1!==c.indexOf("("))===1)switch(c){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:c+=Te}u[n++]=c}o+=(0===a?"":",")+u.join(" ")}}return o=r+o+";",1===me||2===me&&Fe(o,1)?j+o+o:o}(f);if(0===me||2===me&&!Fe(f,1))return f;switch(d){case 1015:return 97===f.charCodeAt(10)?j+f+f:f;case 951:return 116===f.charCodeAt(3)?j+f+f:f;case 963:return 110===f.charCodeAt(5)?j+f+f:f;case 1009:if(100!==f.charCodeAt(4))break;case 969:case 942:return j+f+f;case 978:return j+f+k+f+f;case 1019:case 983:return j+f+k+f+R+f+f;case 883:return f.charCodeAt(8)===W?j+f+f:f.indexOf("image-set(",11)>0?f.replace(M,"$1"+j+"$2")+f:f;case 932:if(f.charCodeAt(4)===W)switch(f.charCodeAt(5)){case 103:return j+"box-"+f.replace("-grow","")+j+f+R+f.replace("grow","positive")+f;case 115:return j+f+R+f.replace("shrink","negative")+f;case 98:return j+f+R+f.replace("basis","preferred-size")+f}return j+f+R+f+f;case 964:return j+f+R+"flex-"+f+f;case 1023:if(99!==f.charCodeAt(8))break;return c=f.substring(f.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),j+"box-pack"+c+j+f+R+"flex-pack"+c+f;case 1005:return i.test(f)?f.replace(o,":"+j)+f.replace(o,":"+k)+f:f;case 1e3:switch(u=(c=f.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(u)){case 226:c=f.replace(x,"tb");break;case 232:c=f.replace(x,"tb-rl");break;case 220:c=f.replace(x,"lr");break;default:return f}return j+f+R+c+f;case 1017:if(-1===f.indexOf("sticky",9))return f;case 975:switch(u=(f=e).length-10,d=(c=(33===f.charCodeAt(u)?f.substring(0,u):f).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(c.charCodeAt(8)<111)break;case 115:f=f.replace(c,j+c)+";"+f;break;case 207:case 102:f=f.replace(c,j+(d>102?"inline-":"")+"box")+";"+f.replace(c,j+c)+";"+f.replace(c,R+c+"box")+";"+f}return f+";";case 938:if(f.charCodeAt(5)===W)switch(f.charCodeAt(6)){case 105:return c=f.replace("-items",""),j+f+j+"box-"+c+R+"flex-"+c+f;case 115:return j+f+R+"flex-item-"+f.replace(L,"")+f;default:return j+f+R+"flex-line-pack"+f.replace("align-content","").replace(L,"")+f}break;case 973:case 989:if(f.charCodeAt(3)!==W||122===f.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?$e(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):f.replace(c,j+c)+f.replace(c,k+c.replace("fill-",""))+f;break;case 962:if(f=j+f+(102===f.charCodeAt(5)?R+f:"")+f,n+r===211&&105===f.charCodeAt(13)&&f.indexOf("transform",10)>0)return f.substring(0,f.indexOf(";",27)+1).replace(a,"$1"+j+"$2")+f}return f}function Fe(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10),o=e.substring(n+1,e.length-1);return Ee(2!==t?r:r.replace(E,"$1"),o,t)}function Ne(e,t){var n=$e(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(O," or ($1)").substring(4):"("+t+")"}function Ue(e,t,n,r,o,i,a,l,s,c){for(var u,f=0,d=t;f<Le;++f)switch(u=Oe[f].call(Ge,e,d,n,r,o,i,a,l,s,c)){case void 0:case!1:case!0:case null:break;default:d=u}if(d!==t)return d}function We(e,t,n,r){for(var o=t+1;o<n;++o)switch(r.charCodeAt(o)){case J:if(e===G&&r.charCodeAt(o-1)===G&&t+2!==o)return o+1;break;case D:if(e===J)return o+1}return o}function ze(e){for(var t in e){var n=e[t];switch(t){case"keyframe":Ae=0|n;break;case"global":ye=0|n;break;case"cascade":Ce=0|n;break;case"compress":we=0|n;break;case"semicolon":be=0|n;break;case"preserve":xe=0|n;break;case"prefix":Ee=null,n?"function"!=typeof n?me=1:(me=2,Ee=n):me=0}}return ze}function Ge(t,n){if(void 0!==this&&this.constructor===Ge)return e(t);var o=t,i=o.charCodeAt(0);i<33&&(i=(o=o.trim()).charCodeAt(0)),Ae>0&&(Te=o.replace(p,i===V?"":"-")),i=1,1===Ce?Ve=o:He=o;var a,l=[Ve];Le>0&&void 0!==(a=Ue(Me,n,l,l,ve,he,0,0,0,0))&&"string"==typeof a&&(n=a);var s=Be(_e,l,n,0,0);return Le>0&&void 0!==(a=Ue(Se,s,l,l,ve,he,s.length,0,0,0))&&"string"!=typeof(s=a)&&(i=0),Te="",Ve="",He="",ge=0,ve=1,he=1,we*i==0?s:s.replace(r,"").replace(C,"").replace(m,"$1").replace(y,"$1").replace(w," ")}return Ge.use=function e(t){switch(t){case void 0:case null:Le=Oe.length=0;break;default:if("function"==typeof t)Oe[Le++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else Ie=0|!!t}return e},Ge.set=ze,void 0!==t&&ze(t),Ge}(null)},337:(e,t,n)=>{"use strict";n(678),n(438),n(100),n(121),n(127);n(705)},705:(e,t,n)=>{"use strict";n(61),n(728),n(121),n(127);var r=n(117);var o;!function(e){e.UpdatePlatformThemeScheme="update-platform-theme-scheme"}(o||(o={}));(0,r.Z)("of-workspace-notifications-sync");n(150),n(438)},100:(e,t,n)=>{"use strict";n.d(t,{wh:()=>r});var r,o,i,a,l,s,c,u,f;n(564),n(495);!function(e){e.NewWindow="NewWindow",e.NewPage="NewPage",e.SavePage="SavePage",e.SavePageAs="SavePageAs",e.Print="Print",e.PrintAll="PrintAll",e.PrintScreen="PrintScreen",e.CloseWindow="CloseWindow",e.RestoreChanges="RestoreChanges",e.SaveWorkspace="SaveWorkspace",e.SaveWorkspaceAs="SaveWorkspaceAs",e.RenameWorkspace="RenameWorkspace",e.SwitchWorkspace="SwitchWorkspace",e.DeleteWorkspace="DeleteWorkspace",e.Downloads="Downloads",e.OpenStorefront="OpenStorefront",e.Appearance="Appearance",e.Quit="Quit",e.Custom="Custom"}(r||(r={})),function(e){e.Light="light",e.Dark="dark",e.System="system"}(o||(o={})),function(e){e.Close="Close",e.Duplicate="Duplicate",e.Rename="Rename",e.Save="Save",e.SaveAs="Save As",e.Custom="Custom"}(i||(i={})),function(e){e.NewView="NewView",e.DuplicateViews="DuplicateView",e.OpenWithDefaultBrowser="OpenWithDefaultBrowser",e.ReloadViews="ReloadTab",e.CloseViews="CloseTab",e.AddToChannel="AddToChannel",e.RemoveFromChannel="RemoveFromChannel",e.Back="Back",e.Forward="Forward",e.Print="Print",e.PrintAll="PrintAll",e.PrintScreen="PrintScreen",e.Custom="Custom"}(a||(a={})),function(e){e.ShowHideTabs="ShowHideTabs",e.ColorLinking="ColorLinking",e.PresetLayouts="PresetLayouts",e.LockUnlockPage="LockUnlockPage",e.SaveMenu="SaveMenu",e.SavePage="SavePage",e.Minimise="Minimise",e.Maximise="Maximise",e.Close="Close",e.Custom="Custom"}(l||(l={})),function(e){e.SavePage="SavePage",e.SaveWorkspace="SaveWorkspace",e.SavePageAs="SavePageAs",e.SaveWorkspaceAs="SaveWorkspaceAs",e.Custom="Custom"}(s||(s={})),function(e){e.Browser="browser",e.Platform="platform"}(c||(c={})),function(e){e.CustomButton="CustomButton",e.StoreCustomButton="StoreCustomButton",e.CustomDropdownItem="CustomDropdownItem",e.GlobalContextMenu="GlobalContextMenu",e.ViewTabContextMenu="ViewTabContextMenu",e.PageTabContextMenu="PageTabContextMenu",e.SaveButtonContextMenu="SaveButtonContextMenu",e.API="API"}(u||(u={})),function(e){e.SAVE_PAGE="SAVE_PAGE",e.SAVE_WORKSPACE="SAVE_WORKSPACE",e.SAVE_PAGE_AS="SAVE_PAGE_AS",e.SAVE_WORKSPACE_AS="SAVE_WORKSPACE_AS",e.RENAME_PAGE="RENAME_PAGE",e.RENAME_WORKSPACE="RENAME_WORKSPACE"}(f||(f={}))},693:(e,t,n)=>{"use strict";n.d(t,{E:()=>i});var r=n(806),o=n(278);const i=(e,t)=>{o.Z.markStart(`${e}-registration`),(0,r.TZ)().once("started",(()=>o.Z.markAndMeasure("workspace-app-started",`${e}-registration`)));const n=fin.Window.wrapSync(t);n.once("initialized",(()=>o.Z.markAndMeasure(`${e}-window-initialized`,`${e}-registration`))),n.once("shown",(()=>{o.Z.markAndMeasure(`${e}-show`,`${e}-registration`)}))}},261:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CLIAction:()=>_.Pt,CLIFilterOptionType:()=>_.el,CLITemplate:()=>_.yW,deregister:()=>E,hide:()=>M,register:()=>L,show:()=>S});var r=n(678),o=n(278),i=n(891),a=n(121);const l={remoteProviderDataStreamId:"0",remoteClientSearchStreamId:"1",remoteProviderRegistrationStreamId:"2",remoteProviderDeregistrationStreamId:"3",remoteProviderInfoStreamId:"4",remoteProviderDispatchStreamId:"5",remoteSearchCloseStreamId:"6"};var s=n(150),c=n(438),u=n(264);var f=n(46);const d=()=>{};function p(e){const t={};let n=[];let r=[];let o=null;let i=f.w1.Initial;t.getStatus=()=>i,t.getResultBuffer=()=>n,t.setResultBuffer=e=>{n=e,n?.length&&t.onChange()},t.getRevokedBuffer=()=>r,t.setRevokedBuffer=e=>{r=e,r?.length&&t.onChange()},t.setUpdatedContext=e=>{o=e,null!==o&&t.onChange()},t.getUpdatedContext=()=>o,t.onChange=d;const a={};return t.res=a,a.close=()=>{i!==f.w1.Close&&(i=f.w1.Close,t.onChange())},a.open=()=>{i!==f.w1.Open&&(i=f.w1.Open,t.onChange())},a.respond=n=>{const r=function(e=[],t=[],n="ascending"){const r=[],o=new Map;t.forEach((e=>{if(e.key)return o.set(e.key,e);r.push(e)}));let i=e.map((e=>{if(e.key){const t=o.get(e.key);if(t)return o.delete(e.key),t}return e}));return i.push(...o.values(),...r),i="ascending"===n?i.sort(((e,t)=>(e?.score??1/0)-(t?.score??1/0))):i.sort(((e,t)=>(t?.score??1/0)-(e?.score??1/0))),i}(t.getResultBuffer(),n,e);t.setResultBuffer(r)},a.revoke=(...e)=>{const n=new Set(e),r=t.getResultBuffer().filter((({key:e})=>{const t=n.has(e);return t&&n.delete(e),!t}));t.setResultBuffer(r),n.size&&(t.getRevokedBuffer().forEach((e=>n.add(e))),t.setRevokedBuffer([...n]))},a.updateContext=e=>{t.setUpdatedContext(e)},t}const h=new Map,v=100;async function g(e){const{id:t,providerId:n}=e,r=w.getProviderOrFail(n);let o=h.get(t);o||(o=function(e,t){const n=new Set;let r=!1;return{close:()=>{r=!0;for(const e of n)e()},req:{id:e,...t,context:t?.context||{},onClose:e=>{n.add(e),r&&e()},removeListener:e=>{n.delete(e)}}}}(t,e),h.set(t,o));const i=p(),a=()=>{const e=i.getResultBuffer();i.setResultBuffer([]);const r=i.getRevokedBuffer();i.setRevokedBuffer([]);const o=i.getUpdatedContext();i.setUpdatedContext(null);const a=i.getStatus();!async function(e){(await(0,s.VD)()).dispatch(l.remoteProviderDataStreamId,e)}({id:t,providerId:n,results:e,revoked:r,status:a,context:o})};let c=!0,u=!1;i.onChange=()=>{if(c)return c=!1,void a();u||(u=!0,setTimeout((()=>{u=!1,a()}),v))};try{const{results:e,context:a}=await r.onUserInput(o.req,i.res),l=i.getStatus();return{id:t,providerId:n,status:l,results:e,context:a}}catch(e){return console.error(`OpenFin/Workspace/Home. Uncaught exception in search provider ${n} for search ${t}`,"This is likely a bug in the implementation of the search provider.",e),{id:t,providerId:n,error:e?.message}}}async function C(){for(const{req:e,close:t}of h.values())t(),h.delete(e.id)}async function m(e,t){const n=w.getProviderOrFail(e.providerId);return e.result.dispatcherIdentity=t,n.onResultDispatch?.(e.result)}function y(e){const t=h.get(e.id);t?.close(),h.delete(e.id)}const w=new u.lT("home"),b=async e=>{await(0,s.aB)();!("skipPlatformInitCheck"in e&&!0===e.skipPlatformInitCheck)&&await(0,c.Hh)(fin.me.identity);w.assertNotAlreadyRegistered(e.id),w.setProvider(e);const t=await(0,s.VD)();return function(e){e.homeChannelActionsRegistered||(e.homeChannelActionsRegistered=!0,e.register(l.remoteProviderDataStreamId,g),e.register(l.remoteSearchCloseStreamId,y),e.register(l.remoteProviderDispatchStreamId,m),e.addDisconnectionListener(C))}(t),t.dispatch(l.remoteProviderRegistrationStreamId,{id:e.id,title:e.title,icon:e.icon,clientAPIVersion:r.u0,identity:fin.me.identity,scoreOrder:e.scoreOrder,commandCode:e.commandCode,description:e.description,hidden:e.hidden,listTitle:e.listTitle,inputPlaceholder:e.inputPlaceholder,logoUrl:e.logoUrl,dispatchFocusEvents:e.dispatchFocusEvents})};var x=n(693),_=n(758);let O;const L=async e=>{if(!e.icon)throw new Error(`${e.id} provider needs to have icon property defined.`);(0,x.E)("home",a.OI);const t=await b(e);return O=new Promise(((n,a)=>{try{(0,i.ck)({allowed:!0,componentVersion:t?.workspaceVersion}),r.u0,n({...t,clientAPIVersion:r.u0,setSearchQuery:async t=>(await(0,s.xZ)()).dispatch("set-search-query",{query:t,providerID:e.id})})}catch(e){(0,i.ck)({allowed:!1,rejectionCode:e instanceof Error?e.message:"unknown"}),a(e)}finally{o.Z.markEndAndMeasure("home-registration")}})),O},E=async e=>{w.deleteProvider(e);const t=await(0,s.VD)();await t.dispatch(l.remoteProviderDeregistrationStreamId,e)};async function S(){o.Z.markStart("home-show"),await O;const e=await(0,s.xZ)();await e.dispatch("show-home",void 0)}async function M(){await O;const e=await(0,s.xZ)();await e.dispatch("hide-home",void 0)}},264:(e,t,n)=>{"use strict";n.d(t,{lT:()=>d});var r=/\b(?:an?d?|a[st]|because|but|by|en|for|i[fn]|neither|nor|o[fnr]|only|over|per|so|some|tha[tn]|the|to|up|upon|vs?\.?|versus|via|when|with|without|yet)\b/i,o=/[^\s:–—-]+|./g,i=/\s/,a=/.(?=[A-Z]|\..)/,l=/[A-Za-z0-9\u00C0-\u00FF]/;function s(e){for(var t,n="";null!==(t=o.exec(e));){var s=t[0],c=t.index;a.test(s)||r.test(s)&&0!==c&&c+s.length!==e.length||":"===e.charAt(c+s.length)&&!i.test(e.charAt(c+s.length+1))?n+=s:n+=s.replace(l,(function(e){return e.toUpperCase()}))}return n}class c extends Error{constructor(e,t){const n=s(e);super(`${n} Provider. ${n} Provider${t?` with id ${t}`:""} is not currently registered.`)}}class u extends Error{constructor(e,t){const n=s(e);super(`${n} Provider. ${n} Provider${t?` with id ${t}`:""} is already registered. Call \`deregister\` before registering again.`)}}class f extends Error{constructor(e,t){const n=s(e);super(`Failed to get ${n} Provider. ${n} Provider with id ${t} is not currently registered.`)}}class d{constructor(e){this.providersMap=new Map,this.providerType=e}assertNotAlreadyRegistered(e){if(this.hasProvider(e))throw new u(this.providerType,e)}assertRegistered(e){if(!this.hasProvider(e))throw new c(this.providerType,e)}getProvider(e){return this.providersMap.get(e)}hasProvider(e){return this.providersMap.has(e)}setProvider(e){this.providersMap.set(e.id,e)}deleteProvider(e){this.providersMap.delete(e)}getProviderOrFail(e){const t=this.getProvider(e);if(!t)throw new f(this.providerType,e);return t}clearProviders(){this.providersMap.clear()}}},222:(e,t,n)=>{"use strict";var r,o,i;n.d(t,{p:()=>o,w:()=>i}),function(e){e.Fetching="fetching",e.Fetched="fetched",e.Complete="complete"}(r||(r={})),function(e){e.UserAction="user-action",e.FocusChange="focus-change",e.Reload="reload"}(o||(o={})),function(e){e.Active="active",e.Default="default"}(i||(i={}))},427:(e,t,n)=>{"use strict";var r;n.d(t,{v:()=>r}),function(e){e.ActionButton="ActionButton",e.DropdownButton="DropdownButton"}(r||(r={}))},758:(e,t,n)=>{"use strict";var r,o,i;n.d(t,{Pt:()=>r,el:()=>i,yW:()=>o}),function(e){e.Suggestion="suggestion"}(r||(r={})),function(e){e.Contact="Contact",e.Custom="Custom",e.List="List",e.Plain="Plain",e.SimpleText="SimpleText",e.Loading="Loading",e.Error="Error"}(o||(o={})),function(e){e.MultiSelect="MultiSelect"}(i||(i={}))},564:(e,t,n)=>{"use strict";n(222),n(758),n(114),n(109),n(427)},114:(e,t,n)=>{"use strict";var r,o;n.d(t,{L:()=>r,T:()=>o}),function(e){e.Snapshot="snapshot",e.Manifest="manifest",e.View="view",e.External="external"}(r||(r={})),function(e){e.LandingPage="landingPage",e.AppGrid="appGrid"}(o||(o={}))},109:(e,t,n)=>{"use strict";n.d(t,{Go:()=>o,ZJ:()=>a,bI:()=>i,p6:()=>r});const r={Container:"Container",Button:"Button",SplitButton:"SplitButton"},o={Text:"Text",Image:"Image",List:"List"},i={...r,...o};var a;!function(e){e.Primary="primary",e.Secondary="secondary",e.TextOnly="textOnly"}(a||(a={}))},528:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AppManifestType:()=>i.L,StorefrontTemplate:()=>i.T,deregister:()=>m,hide:()=>y,register:()=>C,show:()=>w});var r=n(891),o=n(150),i=n(114),a=n(678),l=n(278),s=n(121),c=n(438),u=n(264);let f=!1;async function d(e,t,n){const r=await(0,o.Dm)();try{return await r.dispatch(e.action,e.payload)}catch(o){if(o instanceof Error&&-1!==o.toString().indexOf(e.action))return f||console.warn("You are using a newer version of the Workspace client library that is not supported by the currently running workspace provider. Please upgrade the Workspace to version 9.0 or later."),f=!0,await r.dispatch(t.action,t.payload),n;throw o}}const p=new u.lT("storefront"),h=async e=>{await(0,c.Hh)(fin.me.identity);const t=await(0,o.xZ)();return p.assertNotAlreadyRegistered(e.id),p.setProvider(e),(e=>{e.storefrontChannelActionsRegistered||(e.storefrontChannelActionsRegistered=!0,e.register("get-storefront-provider-apps",(e=>p.getProviderOrFail(e).getApps())),e.register("get-storefront-provider-footer",(e=>p.getProviderOrFail(e).getFooter())),e.register("get-storefront-provider-landing-page",(e=>p.getProviderOrFail(e).getLandingPage())),e.register("get-storefront-provider-navigation",(e=>p.getProviderOrFail(e).getNavigation())),e.register("launch-storefront-provider-app",(({id:e,app:t})=>p.getProviderOrFail(e).launchApp(t))))})(t),e.clientAPIVersion=a.u0,d({action:"register-provider",payload:{providerType:"storefront",info:e}},{action:"register-storefront-provider",payload:e},{workspaceVersion:"unknown"})};var v=n(693);let g;const C=async e=>{(0,v.E)("store",s.nd);const t=await h(e);return g=new Promise(((n,i)=>{try{(0,r.d9)({allowed:!0,componentVersion:t?.workspaceVersion}),a.u0,n({clientAPIVersion:a.u0,workspaceVersion:t?.workspaceVersion??"",updateAppCardButtons:async t=>{const n=await(0,o.Xl)();await n.dispatch("update-app-card-button-config",{...t,id:e.id,title:e.title,icon:e.icon,platformIdentity:fin.me.identity})}})}catch(e){(0,r.d9)({allowed:!1,rejectionCode:e instanceof Error?e.message:"unknown"}),i(e)}finally{l.Z.markEndAndMeasure("store-registration")}})),g},m=async e=>(await g,p.assertRegistered(e),p.deleteProvider(e),await(0,o.aB)(),d({action:"deregister-provider",payload:{providerType:"storefront",id:e}},{action:"deregister-storefront-provider",payload:e})),y=async()=>(await g,await(0,o.aB)(),d({action:"hide-provider-window",payload:{providerType:"storefront"}},{action:"hide-storefront"})),w=async()=>(l.Z.markStart("store-show"),await g,await(0,o.aB)(),d({action:"show-provider-window",payload:{providerType:"storefront"}},{action:"show-storefront"}))},420:(e,t,n)=>{"use strict";n.d(t,{hd:()=>o});n(311),n(912);var r=n(150);async function o(){return(await(0,r.Dm)()).dispatch("get-legacy-pages",void 0)}},495:(e,t,n)=>{"use strict";var r;!function(e){e.Left="Left",e.Right="Right",e.Top="Top",e.Bottom="Bottom"}(r||(r={}))},127:(e,t,n)=>{"use strict";n.d(t,{Dm:()=>a,yz:()=>c});var r=n(117);n(121);const o=e=>`__browser_window__-${e.uuid}-${e.name}`,i=new Map,a=e=>{const t=o(e);return i.has(t)||i.set(t,(0,r.Z)(t)),i.get(t)()};var l,s;!function(e){e.CloseBrowserWindow="close-browser-window",e.QuitPlatform="quit-platform",e.ClosePage="close-page",e.AddToChannel="add-to-channel",e.RemoveFromChannel="remove-from-channel",e.OpenSaveModalInternal="open-save-modal-internal",e.DuplicatePage="duplicate-page",e.SetSelectedScheme="set-selected-scheme",e.ShowBrowserIndicator="show-browser-indicator"}(l||(l={})),function(e){e.GetPages="get-pages",e.GetActivePageForWindow="get-active-page-for-window",e.AttachPagesToWindow="attach-pages-to-window",e.DetachPagesFromWindow="detach-pages-from-window",e.SetActivePageForWindow="set-active-page-for-window",e.RenamePage="rename-page",e.ReorderPagesForWindow="reorder-pages-for-window",e.UpdatePageForWindow="update-page-for-window",e.UpdatePagesWindowOptions="update-pages-window-options",e.IsDetachingPages="is-detaching-pages",e.IsActivePageChanging="is-active-page-changing"}(s||(s={}));const c={...l,...s}},438:(e,t,n)=>{"use strict";var r;n.d(t,{Hh:()=>i}),function(e){e.LaunchApp="launchApp",e.SavePage="savePage",e.GetSavedPage="getSavedPage",e.CreateSavedPage="createSavedPage",e.UpdateSavedPage="updateSavedPage",e.DeleteSavedPage="deleteSavedPage",e.GetSavedPages="getSavedPages",e.CreateSavedPageInternal="createSavedPageInternal",e.UpdateSavedPageInternal="updateSavedPageInternal",e.DeleteSavedPageInternal="deleteSavedPageInternal",e.UpdatePageForWindow="updatePageForWindow",e.AttachPagesToWindow="attachPagesToWindow",e.DetachPagesFromWindow="detachPagesFromWindow",e.ReorderPagesForWindow="reorderPagesForWindow",e.SetActivePage="setActivePage",e.GetAllAttachedPages="getAllAttachedPages",e.GetActivePageIdForWindow="getActivePageIdForWindow",e.GetPagesForWindow="getPagesForWindow",e.GetPageForWindow="getPageForWindow",e.GetSavedPageMetadata="getSavedPageMetadata",e.GetUniquePageTitle="getUniquePageTitle",e.GetLastFocusedBrowserWindow="getLastFocusedBrowserWindow",e.GetThemes="getThemes",e.GetSelectedScheme="getSelectedScheme",e.SetSelectedScheme="setSelectedScheme",e.OpenGlobalContextMenuInternal="openGlobalContextMenuInternal",e.OpenViewTabContextMenuInternal="openViewTabContextMenuInternal",e.OpenPageTabContextMenuInternal="openPageTabContextMenuInternal",e.OpenSaveButtonContextMenuInternal="openSaveButtonContextMenuInternal",e.InvokeCustomActionInternal="invokeCustomActionInternal",e.RequestQuitPlatformDialogInternal="requestQuitPlatformDialogInternal",e.GetSavedWorkspace="getSavedWorkspace",e.CreateSavedWorkspace="createSavedWorkspace",e.UpdateSavedWorkspace="updateSavedWorkspace",e.DeleteSavedWorkspace="deleteSavedWorkspace",e.GetSavedWorkspaces="getSavedWorkspaces",e.SaveWorkspace="saveWorkspace",e.GetCurrentWorkspace="getCurrentWorkspace",e.ApplyWorkspace="applyWorkspace",e.SetActiveWorkspace="setActiveWorkspace",e.IsBrowserInitialized="isBrowserInitialized",e.Analytics="analyticsInternal",e.GetDockProviderConfig="getDockProviderConfig",e.SaveDockProviderConfig="saveDockProviderConfig",e.HandleSaveModalOnPageClose="handleSaveModalOnPageClose",e.CopyPage="copyPage",e.HandlePageChanges="handlePageChanges"}(r||(r={}));const o=async e=>fin.Platform.wrapSync(e).getClient(),i=async e=>{const t=await o(e),n="Target is not a Workspace Platform. Target must call WorkspacePlatform.init";let r;try{r=await t.dispatch("isWorkspacePlatform")}catch(e){throw new Error(n)}if("boolean"==typeof r&&r)return console.warn("You are using an older version of the workspace platform. Please update your workspace platform."),r;if("object"==typeof r&&r.isWorkspacePlatform)return r;throw new Error(n)}},150:(e,t,n)=>{"use strict";n.d(t,{Dm:()=>s,VD:()=>u,Xl:()=>p,aB:()=>d,xZ:()=>h});var r=n(117),o=n(678),i=n(121),a=n(46);const l=(0,r.Z)("__of_workspace_protocol__"),s=l,c=l,u=(0,r.Z)(a.Qx),f=e=>{const t=new URL(e);return t.searchParams.append("isLaunchedViaLib","true"),t.toString()},d=async()=>{if(!await(0,i.JV)(i.iW)){if(o.ZK||-1===navigator.userAgent.indexOf("Win"))return void await fin.Application.startFromManifest(f(o.aW));await fin.System.openUrlWithBrowser(f(o.GX))}},p=async()=>(await d(),s()),h=async()=>(await d(),c())},82:(e,t,n)=>{"use strict";n.d(t,{R8:()=>a,RR:()=>o,X_:()=>i});var r=n(150);const o=({platformIdentity:e,id:t=""})=>`${e.name}-${e.uuid}-${t}`,i=async e=>(await(0,r.Dm)()).dispatch("show-provider-window",{providerType:e}),a=async e=>(await(0,r.Dm)()).dispatch("hide-provider-window",{providerType:e})},46:(e,t,n)=>{"use strict";n.d(t,{Qx:()=>o,w1:()=>a});var r=n(121);(0,n(82).RR)({id:"home-commands",platformIdentity:r.OI});const o="__search-openfin-browser-home-topic__";var i,a;!function(e){e.Fetching="fetching",e.Fetched="fetched",e.Complete="complete"}(i||(i={})),function(e){e[e.Initial=0]="Initial",e[e.Open=1]="Open",e[e.Close=2]="Close"}(a||(a={}))},65:(e,t,n)=>{"use strict";var r=n(304);n(337),n(150);const o={[r.Palette.brandPrimary]:"#0A76D3",[r.Palette.statusSuccess]:r.Color.functional1,[r.Palette.statusWarning]:r.Color.functional10,[r.Palette.statusCritical]:r.Color.functional7,[r.Palette.statusActive]:r.Color.functional3,[r.Palette.contentBackground1]:"#0A76D3",[r.Palette.contentBackground2]:"#000000",[r.Palette.contentBackground3]:"#000000",[r.Palette.contentBackground4]:"#000000",[r.Palette.contentBackground5]:"#000000"},i={...o,[r.Palette.background1]:r.Color.white,[r.Palette.background2]:r.Color.lightGray1,[r.Palette.background3]:r.Color.lightGray2,[r.Palette.background4]:r.Color.lightGray3,[r.Palette.background5]:r.Color.lightGray4,[r.Palette.background6]:r.Color.lightGray5,[r.Palette.brandSecondary]:r.Color.darkGray5,[r.Palette.inputBackground]:r.Color.lightGray3,[r.Palette.inputColor]:r.Color.darkGray5,[r.Palette.inputPlaceholder]:r.Color.darkGray2,[r.Palette.inputDisabled]:r.Color.neutralGray,[r.Palette.inputFocused]:r.Color.lightGray5,[r.Palette.inputBorder]:r.Color.neutralGray,[r.Palette.textDefault]:r.Color.darkGray5,[r.Palette.textHelp]:r.Color.darkGray3,[r.Palette.textInactive]:r.Color.neutralGray},a={...o,[r.Palette.background1]:r.Color.darkGray6,[r.Palette.background2]:r.Color.darkGray5,[r.Palette.background3]:r.Color.darkGray4,[r.Palette.background4]:r.Color.darkGray3,[r.Palette.background5]:r.Color.darkGray2,[r.Palette.background6]:r.Color.darkGray1,[r.Palette.brandSecondary]:r.Color.darkGray2,[r.Palette.inputBackground]:r.Color.darkGray1,[r.Palette.inputColor]:r.Color.white,[r.Palette.inputPlaceholder]:r.Color.lightGray5,[r.Palette.inputDisabled]:r.Color.neutralGray,[r.Palette.inputFocused]:r.Color.lightGray5,[r.Palette.inputBorder]:r.Color.neutralGray,[r.Palette.textDefault]:r.Color.white,[r.Palette.textHelp]:r.Color.lightGray5,[r.Palette.textInactive]:r.Color.neutralGray};r.Color.darkGray5,r.Color.darkGray5,r.Color.darkGray2,r.Color.darkGray5},806:(e,t,n)=>{"use strict";n.d(t,{D9:()=>c,TZ:()=>u,q9:()=>r});var r,o,i=n(678);!function(e){e.Workspace="openfin-workspace",e.OldWorkspace="openfin-browser"}(r||(r={})),function(e){e.FinProtocol="fin-protocol"}(o||(o={}));const a={uuid:i.AB},l={uuid:r.Workspace},s=e=>{if(!i.sS)throw new Error("getApplication cannot be used in a non OpenFin env. Avoid using this during pre-rendering.");return fin.Application.wrapSync(e)},c=()=>s(a),u=()=>s(l)},117:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(678);const o=r.Ax&&"complete"!==document.readyState&&new Promise((e=>document.addEventListener("readystatechange",(()=>{"complete"===document.readyState&&e()}))));function i(e){let t;const n=new Set;return()=>{if(!r.sS)throw new Error("getChannelClient cannot be used outside an OpenFin env. Avoid using this method during pre-rendering.");return t||(t=(async()=>{await o;const i={clientAPIVersion:r.u0},a=await fin.InterApplicationBus.Channel.connect(e,{payload:i});return a.onDisconnection((async()=>{n.forEach((e=>e())),n.clear(),console.warn(`disconnected from channel provider ${e}`),t=void 0})),a})().then((e=>(e.addDisconnectionListener=e=>{n.add(e)},e))).catch((n=>{throw t=void 0,new Error(`failed to connect to channel provider ${e}: ${n}`)}))),t}}},678:(e,t,n)=>{"use strict";var r;n.d(t,{AB:()=>s,Ax:()=>i,GX:()=>f,ZK:()=>u,_V:()=>a,aW:()=>d,oC:()=>c,rx:()=>h,sS:()=>o,u0:()=>v}),function(e){e.Local="local",e.Dev="dev",e.Staging="staging",e.Prod="prod"}(r||(r={}));const o="undefined"!=typeof window&&"undefined"!=typeof fin,i=("undefined"==typeof process||process.env,"undefined"!=typeof window),a=i&&"undefined"!=typeof indexedDB,l=i?window.origin:r.Local,s=o&&fin.me.uuid,c=o&&fin.me.name,u=(o&&fin.me.entityType,"prod"===r.Local),f=(r.Dev,r.Staging,r.Prod,"fins://system-apps/workspace"),d="https://workspace.openfin.co/workspace/17.0.4/app.json",p=e=>e.startsWith("http://")||e.startsWith("https://")?e:l+e,h=(p("https://workspace.openfin.co/workspace/17.0.4"),p("https://workspace.openfin.co/workspace/17.0.4")),v=("undefined"!=typeof WORKSPACE_DOCS_PLATFORM_URL&&p(WORKSPACE_DOCS_PLATFORM_URL),"undefined"!=typeof WORKSPACE_DOCS_CLIENT_URL&&p(WORKSPACE_DOCS_CLIENT_URL),"17.0.4");"undefined"!=typeof WORKSPACE_BUILD_SHA&&WORKSPACE_BUILD_SHA},311:(e,t,n)=>{"use strict";n.d(t,{C$:()=>r});n(678),n(121);const r=e=>{const t=[];return(e&&Array.isArray(e)?e:[]).forEach((e=>{if("component"===e.type)return t.push(e.componentState);const n=r(e.content);t.push(...n)})),t};new Map},61:(e,t,n)=>{"use strict";var r;n.d(t,{Z:()=>o}),function(e){e.CurrentWorkspaceId="currentWorkspaceId",e.LastFocusedBrowserWindow="lastFocusedBrowserWindow",e.MachineName="machineName",e.NewTabPageLayout="NewTabPageLayout",e.NewTabPageSort="NewTabPageSort",e.DockPosition="DockPosition",e.SelectedColorScheme="SelectedColorScheme",e.HasMovedStore="HasMovedStore"}(r||(r={}));const o=r},728:(e,t,n)=>{"use strict";n.d(t,{L:()=>o,r:()=>i});var r=n(678);const o=(e,t)=>{localStorage.setItem(`${r.AB}-${e}`,t)},i=e=>localStorage.getItem(`${r.AB}-${e}`)},278:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});const r="of-workspace-";const o=new class{mark(e){performance.mark(`${r}${e}`)}markStart(e){performance.mark(`${r}${e}-start`)}markEnd(e){performance.mark(`${r}${e}-end`)}markEndAndMeasure(e){performance.mark(`${r}${e}-end`);try{return performance.measure(`${r}${e}`,`${r}${e}-start`,`${r}${e}-end`)}catch(e){0}}markAndMeasure(e,t){performance.mark(`${r}${e}`);try{return performance.measure(`${r}${e}-measure`,`${r}${t}-start`,`${r}${e}`)}catch(e){0}}reportWorkspacePerformanceEntries(){return performance.getEntriesByType("measure").filter((e=>e.name.startsWith(r)))}reportWorkspacePerformance(){return this.reportWorkspacePerformanceEntries().map((e=>({name:e.name.replace(`${r}`,"").replace("-measure",""),duration:e.duration})))}}},5:(e,t,n)=>{"use strict";var r;n.d(t,{ZP:()=>l,de:()=>i}),function(e){e.Home="/home/",e.HomeSearch="/home/?deeplink=search",e.HomePagesRename="/home/pages/rename/",e.Dock="/dock/",e.Browser="/browser/",e.BrowserPopupMenu="/browser/popup-menu/",e.Provider="/provider/",e.BrowserPopupMenuSaveModal="/browser/popup-menu/save-modal/",e.BrowserPopupMenuLayouts="/browser/popup-menu/layouts/layouts/",e.BrowserPopupMenuColorLinking="/browser/popup-menu/color-linking/color-linking/",e.BrowserIndicator="/browser/indicator/",e.ResponseModal="/browser/popup-menu/response-modal/",e.CloseConfirmationModal="/browser/popup-menu/close-confirmation-modal/",e.Docs="/provider/docs/",e.Storefront="/storefront/",e.DeprecatedAlert="/provider/deprecated-alert/",e.Analytics="/provider/analytics/"}(r||(r={}));const o="/microsoft-365-integration-assets/",i={IconOpenFinLogo:"/icons/openfinlogo.svg",IconFilter:"/icons/filter.svg",LightStorefront:"/icons/lightstorefront.png",DarkStorefront:"/icons/darkstorefront.png",CallIconLight:"/icons/call-icon-light.svg",CallIconDark:"/icons/call-icon-dark.svg",ChatIconLight:"/icons/chat-icon-light.svg",ChatIconDark:"/icons/chat-icon-dark.svg",MessageIconLight:"/icons/message-icon-light.svg",MessageIconDark:"/icons/message-icon-dark.svg",Microsoft365Assets:{Microsoft365DocumentIcon:`${o}microsoft-365-document-icon.svg`,Microsoft365ExcelIcon:`${o}microsoft-365-excel-icon.svg`,Microsoft365PowerpointIcon:`${o}microsoft-365-powerpoint-icon.svg`,Microsoft365OutlookIcon:`${o}microsoft-365-outlook-icon.svg`,Microsoft365TeamsIcon:`${o}microsoft-365-teams-icon.svg`,Microsoft365Icon:`${o}microsoft-365-icon.svg`,PDFFileIcon:`${o}pdf-file-icon.svg`}};var a;!function(e){e.Search="search"}(a||(a={}));const l=r},650:(e,t,n)=>{"use strict";n.d(t,{K3:()=>i});var r;n(678);!function(e){e.Home="/home",e.Browser="/browser",e.Provider="/provider",e.Storefront="/storefront",e.Dock="/dock"}(r||(r={}));const o="/workspace/17.0.4";function i(e){return o+e}},912:(e,t,n)=>{"use strict";n(311),n(61)},891:(e,t,n)=>{"use strict";n.d(t,{Wn:()=>B,ck:()=>H,d9:()=>V});var r=n(678),o=n(121),i=n(100);n(378);var a=n(806);var l=n(5),s=(n(420),n(127));n(438);var c=n(311);const u=async()=>{const e=await(0,o.GP)();return(await Promise.all(e.map((async e=>{try{return(async e=>{const t=await(0,s.Dm)(e);return await t.dispatch(s.yz.GetPages)})(e.identity)}catch(t){JSON.stringify(e.identity);const n=await e.getOptions();return n.workspacePlatform?.pages||[]}})))).reduce(((e,t)=>e.concat(t)),[])};new Map;var f;!function(e){e.ERROR="error",e.SUCCESS="success",e.INFO="info"}(f||(f={}));const d=((e,t)=>{const n=e;return n.workspacePlatform||(n.workspacePlatform={}),n.workspacePlatform._internalDeferShowOptions={setAsForeground:!!t,deferShowEnabled:!0,autoShow:n.workspacePlatform?._internalAutoShow||n.workspacePlatform?._internalDeferShowOptions?.autoShow||void 0===n.autoShow||n.autoShow},n.autoShow=!1,n})({alwaysOnTop:!0,autoShow:!1,frame:!1,resizable:!1,showTaskbarIcon:!1});var p;!function(e){e.Locked="LockClosedIcon",e.Unlocked="LockOpen1Icon"}(p||(p={}));!function(e=d){const t=new Map}();var h=n(61),v=n(728);n(650);const g=(e,t=0)=>{let n,r,o=!1;const i=async r=>{const a=await e(...r);if(o){await new Promise((e=>setTimeout(e,t)));const e=n;return n=void 0,o=!1,i(e)}return a};return(...e)=>(r?(o=!0,n=e):r=i(e).catch((e=>{throw console.error("makeDebouncedFunc",e),e})).finally((()=>{r=void 0})),r)};function C(e,t){return async(n,...r)=>{e.has(n)&&e.get(n).forEach((e=>e(...r))),t&&await t({event:n,payload:r})}}function m(e,t){return t&&t((t=>{const{event:n,payload:r}=t;e.has(n)&&e.get(n).forEach((e=>e(...r)))})),(t,n)=>{e.has(t)||e.set(t,new Set),e.get(t).add(n)}}function y(e){return(t,n)=>{e.has(t)||e.set(t,new Set);const r=e.get(t),o=(...e)=>{n(...e),r.delete(o)};r.add(o)}}function w(e){return(t,n)=>{e.has(t)&&e.get(t).delete(n)}}n(65);o.IA.BrowserMenu;(function(e){const t=new Map;C(t,(t=>r.sS&&fin.InterApplicationBus.publish(e,t))),m(t,(t=>r.sS&&fin.InterApplicationBus.subscribe({uuid:fin.me.uuid},e,t))),w(t),y(t)})("window.menu"),g((()=>(0,a.D9)().getChildWindows()),500);new Map;var b=n(198),x=n.n(b);const _=e=>`${e.name}`,O=async()=>{const e=await u(),t=new Set;return e.forEach((e=>{[...(0,c.C$)(e.layout.content),...(e.panels||[]).map((e=>e.viewOptions))].forEach((e=>{const n=_(e);n&&t.add(n)}))})),t};x()((()=>async function(){const e=await O(),t=(0,o.lQ)(),n=(await t.getCurrentViews()).filter((({identity:t})=>!e.has(_(t))));n.length&&setTimeout((async()=>{const e=await O();n.forEach((({identity:t})=>{const n=_(t);e.has(n)||fin.View.wrapSync(t).destroy()}))}),2500)}().catch((e=>console.debug("error in scheduleViewCleanup",e)))),5e3,{leading:!1,trailing:!0});x()((async()=>{const e=await fin.Platform.getCurrentSync().Application.getChildWindows();let t,n=!1;for(const r of e)if(r.identity.name===o.IA.BrowserMenu?t=r:await(0,o.B)(r.identity)&&(n=!0),n)break;!n&&t&&t.close()}),100,{leading:!1,trailing:!0});n(912);function L(e){return new Promise(((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)}))}function E(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=L(n);return(e,n)=>r.then((r=>n(r.transaction(t,e).objectStore(t))))}let S;function M(){return S||(S=E("keyval-store","keyval")),S}function j(e,t){return e.openCursor().onsuccess=function(){this.result&&(t(this.result),this.result.continue())},L(e.transaction)}const k=async(e,t,n)=>{const r=v.r(h.Z.HasMovedStore),o=r?JSON.parse(r):{};if(o&&o[n])return;o[n]=!0,v.L(h.Z.HasMovedStore,JSON.stringify(o));const i=await function(e=M()){return e("readonly",(t=>{if(t.getAll&&t.getAllKeys)return Promise.all([L(t.getAllKeys()),L(t.getAll())]).then((([e,t])=>e.map(((e,n)=>[e,t[n]]))));const n=[];return e("readonly",(e=>j(e,(e=>n.push([e.key,e.value]))).then((()=>n))))}))}(e);await function(e,t=M()){return t("readwrite",(t=>(e.forEach((e=>t.put(e[1],e[0]))),L(t.transaction))))}(i,t)},R=(e,t)=>E(e+"-"+fin.me.uuid,t),P=(e,t)=>{const n=R(e,t),r=E(e,t);return k(r,n,e),n};r._V&&r.sS&&P("openfin-home-pages","pages");var I;!function(e){e.Label="normal",e.Separator="separator",e.Submenu="submenu",e.Checkbox="checkbox"}(I||(I={}));I.Separator;n(337);I.Label,i.wh.CloseWindow,I.Label,i.wh.OpenStorefront,I.Label,i.wh.Quit,I.Label,i.wh.NewWindow,I.Label,i.wh.SavePage,I.Label,i.wh.SavePageAs,I.Label,i.wh.RestoreChanges,I.Label,i.wh.SaveWorkspace,I.Label,i.wh.SaveWorkspaceAs,I.Label,i.wh.RenameWorkspace;r._V&&r.sS&&R("dock-provider-configs","dock-provider-configs");n(705);r._V&&r.sS&&P("openfin-workspace-platform-workspaces","workspaces");n(495);r.rx,l.ZP.Browser,r.rx;n(564);var A;!function(e){e.Browser="Browser",e.Dock="Dock",e.Home="Home",e.Notification="Notification",e.Storefront="Storefront",e.Platform="Platform",e.Theming="Theming",e.Microflow="Microflow"}(A||(A={}));const T=async(e,t,n="workspace-licensing")=>{const o={apiVersion:t.apiVersion||r.u0,componentName:e,componentVersion:t.componentVersion||r.u0,allowed:t.allowed,rejectionCode:t.rejectionCode};fin.System.registerUsage({type:n,data:o})};const H=e=>{o.OI.uuid===o.Gi.uuid&&o.OI.name===o.Gi.name||T(A.Home,e)},V=e=>{T(A.Storefront,e)},B=e=>{T(A.Dock,e)};var D;!function(e){e.Browser="Browser",e.Dock="Dock",e.Home="Home",e.Notification="Notification",e.Storefront="Storefront",e.Platform="Platform",e.Theming="Theming",e.Interop="Interop"}(D||(D={}));new Map},121:(e,t,n)=>{"use strict";n.d(t,{B:()=>p,GP:()=>h,Gi:()=>l,IA:()=>r,JV:()=>v,OI:()=>c,ZJ:()=>u,iW:()=>d,lQ:()=>s,nd:()=>f});var r,o=n(806),i=n(678);!function(e){e.Home="openfin-home",e.Dock="openfin-dock",e.Storefront="openfin-storefront",e.HomeInternal="openfin-home-internal",e.BrowserMenu="openfin-browser-menu",e.BrowserIndicator="openfin-browser-indicator",e.BrowserWindow="internal-generated-window",e.ClassicWindow="internal-generated-classic-window"}(r||(r={}));function a(e){if(!i.sS)throw new Error("getOFWindow can only be used in an OpenFin env. Avoid calling this method during pre-rendering.");return fin.Window.wrapSync(e)}const l={name:i.oC,uuid:i.AB};function s(){return a(l)}const c={name:r.Home,uuid:o.q9.Workspace},u={name:r.Dock,uuid:o.q9.Workspace},f={name:r.Storefront,uuid:o.q9.Workspace},d={name:o.q9.Workspace,uuid:o.q9.Workspace};const p=async e=>{if(!e.name.startsWith(r.BrowserWindow))return!1;const t=await fin.Window.wrapSync({name:e.name,uuid:e.uuid??fin.me.uuid}).getOptions();return!!t.workspacePlatform?.pages};async function h(){const e=await fin.Application.getCurrentSync().getChildWindows(),t=await Promise.all(e.map((async e=>p(e.identity))));return e.filter(((e,n)=>t[n]))}const v=e=>a(e).getOptions().then((()=>!0)).catch((()=>!1))}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var r={};(()=>{"use strict";n.r(r),n.d(r,{ActionTrigger:()=>Ge.p,AppManifestType:()=>Ye.L,ButtonStyle:()=>qe.ZJ,CLIAction:()=>$.Pt,CLIFilterOptionType:()=>$.el,CLITemplate:()=>$.yW,ContainerTemplateFragmentNames:()=>qe.p6,Dock:()=>e,DockButtonNames:()=>p.v,Home:()=>O,Integrations:()=>t,Legacy:()=>o,PresentationTemplateFragmentNames:()=>qe.Go,SearchTagBackground:()=>Ge.w,Storefront:()=>ze,StorefrontTemplate:()=>Ye.T,TemplateFragmentTypes:()=>qe.bI});var e={};n.r(e),n.d(e,{DockButtonNames:()=>p.v,deregister:()=>m,minimize:()=>y,register:()=>C,show:()=>w});var t={};n.r(t),n.d(t,{Microsoft365WorkflowIntegration:()=>Fe});var o={};n.r(o),n.d(o,{getPages:()=>Ue,getWorkspaces:()=>We});var i=n(678),a=n(278),l=n(891),s=n(121),c=n(150),u=n(438),f=n(82),d=n(693),p=n(427);let h,v;const g=(e=[])=>{const t=e.filter((e=>!!e.id)).map((e=>e.id));if(new Set(t).size!==t.length)throw new Error("Dock provider buttons must have unique identifiers if specified.")},C=async e=>{(0,d.E)("dock",s.ZJ);const t=await(async e=>{await(0,u.Hh)(fin.me.identity);const t=await(0,c.xZ)();if(v)throw new Error("Error using `Dock.register`. A Dock provider for this Workspace Platform is already registered. Call `Dock.deregister` before calling `Dock.register` again.");return v=e,e.clientAPIVersion=i.u0,t.dispatch("register-provider",{providerType:"dock",info:e})})(e);return h=new Promise(((n,r)=>{try{(e=>{e.workspaceComponents&&!Array.isArray(e.workspaceComponents)&&console.warn("Using the `WorkspaceComponentButtonOptions` type to configure the Workspace Components Buttons is deprecated. Please use `WorkspaceButtonsConfig` instead.")})(e),g(e.buttons),(0,l.Wn)({allowed:!0,componentVersion:t?.workspaceVersion}),i.u0,n({clientAPIVersion:i.u0,workspaceVersion:t?.workspaceVersion??"",updateDockProviderConfig:async t=>{if(!v)throw new Error("Error using `Dock.updateDockProviderConfig`. Dock provider is not registered. Make sure to call `Dock.register` first.");g(t.buttons);const n=await(0,c.xZ)();await n.dispatch("update-provider",{providerType:"dock",provider:{...e,workspaceComponents:t.workspaceComponents,buttons:t.buttons,title:t.title,icon:t.icon,disableUserRearrangement:t.disableUserRearrangement,id:e.id}})}})}catch(e){(0,l.Wn)({allowed:!1,rejectionCode:e instanceof Error?e.message:"unknown"}),r(e),h=void 0}finally{a.Z.markEndAndMeasure("dock-registration")}})),h},m=async()=>{if(await h,!v)throw new Error("Error using `Dock.deregister`. Dock provider is not registered. Call `Dock.register` before calling `Dock.deregister`.");const e=await(0,c.xZ)();await e.dispatch("deregister-provider",{providerType:"dock",id:v.id}),v=void 0,h=void 0},y=async()=>{await h,await(0,c.aB)(),await(0,f.R8)("dock")},w=async()=>{a.Z.markStart("dock-show"),await h,await(0,c.aB)(),await(0,f.X_)("dock")};var b,x,_,O=n(261),L=function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},E=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};b=new WeakMap,x=new WeakMap,_=new WeakMap;const S=class{constructor(e){b.set(this,void 0),x.set(this,void 0),_.set(this,void 0),L(this,b,e,"f"),L(this,x,new Map,"f"),L(this,_,[],"f")}get(e){if(E(this,x,"f").has(e))return this.updateQueue(e),E(this,x,"f").get(e)}has(e){return E(this,x,"f").has(e)}put(e,t){if(E(this,x,"f").has(e))E(this,x,"f").set(e,t),this.updateQueue(e);else{if(E(this,_,"f").length===E(this,b,"f")){const e=E(this,_,"f").shift();e&&E(this,x,"f").delete(e)}E(this,x,"f").set(e,t),E(this,_,"f").push(e)}}updateQueue(e){const t=E(this,_,"f").indexOf(e);-1!==t&&(E(this,_,"f").splice(t,1),E(this,_,"f").push(e))}};function M(e){return e&&"object"==typeof e&&!Array.isArray(e)}function j(e,...t){if(!t.length)return e;const n=t.shift();return M(e)&&M(n)&&Object.entries(n).forEach((([t,n])=>{if(M(n))return e[t]||(e[t]={}),j(e[t],n);e[t]=n})),j(e,...t)}var k,R,P,I,A,T=n(5),H=n(650),V=function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},B=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};R=new WeakMap,P=new WeakMap,I=new WeakMap,k=new WeakSet,A=function(){const e=Array.from(B(this,R,"f").entries()).reduce(((e,t)=>!e||t[1].timestamp<e[1].timestamp?t:e),null);return e?e[0]:null};const D=class{constructor(e=3e5,t=100){k.add(this),R.set(this,void 0),P.set(this,void 0),I.set(this,void 0),V(this,R,new Map,"f"),V(this,P,e,"f"),V(this,I,t,"f")}get(e){const t=B(this,R,"f").get(e);if(!t)return null;return Date.now()-t.timestamp<B(this,P,"f")?t.value:(B(this,R,"f").delete(e),null)}put(e,t){if(B(this,R,"f").size>=B(this,I,"f")){const e=B(this,k,"m",A).call(this);null!=e&&B(this,R,"f").delete(e)}B(this,R,"f").set(e,{value:t,timestamp:Date.now()})}remove(e){B(this,R,"f").delete(e)}clear(){B(this,R,"f").clear()}};var Z,$=n(758),F=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};const N={};class U{constructor(e){Z.set(this,new Set),this._initializeWorkflows=async(e=this.config)=>{const{workflows:t}=e;for(const e in t){if(!t[e].disableAutoInitialize)try{F(this,Z,"f").has(e)?console.warn(`Workflow ${e} already initialized.`):(F(this,Z,"f").add(e),await this.initializeWorkflow(e))}catch(t){F(this,Z,"f").delete(e),console.error(`Error registering ${e}:`,t)}}};const t=j({},N,e);this.config=t}async initializeWorkflow(e){F(this,Z,"f").add(e)}}Z=new WeakMap;var W={876:e=>{const{AbortController:t,AbortSignal:n}="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;e.exports=t,e.exports.AbortSignal=n,e.exports.default=t},60:(e,t)=>{t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=l(e),a=i[0],s=i[1],c=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),u=0,f=s>0?a-4:a;for(n=0;n<f;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=16383,l=0,c=r-o;l<c;l+=a)i.push(s(e,l,l+a>c?c:l+a));return 1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function s(e,t,r){for(var o,i,a=[],l=t;l<r;l+=3)o=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(255&e[l+2]),a.push(n[(i=o)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},485:(e,t,n)=>{const r=n(60),o=n(215),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function l(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return f(e)}return c(e,t,n)}function c(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!s.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|v(e,t);let r=l(n);const o=r.write(e,t);return o!==n&&(r=r.slice(0,o)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Y(e,Uint8Array)){const t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer))return p(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return p(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);const o=function(e){if(s.isBuffer(e)){const t=0|h(e.length),n=l(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||K(e.length)?l(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function f(e){return u(e),l(e<0?0:0|h(e))}function d(e){const t=e.length<0?0:0|h(e.length),n=l(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function p(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,s.prototype),r}function h(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function v(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(e).length;default:if(o)return r?-1:z(e).length;t=(""+t).toLowerCase(),o=!0}}function g(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return k(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return M(this,t,n);case"latin1":case"binary":return j(this,t,n);case"base64":return L(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function C(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),K(n=+n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,o){let i,a=1,l=e.length,s=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,l/=2,s/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){let r=-1;for(i=n;i<l;i++)if(c(e,i)===c(t,-1===r?0:i-r)){if(-1===r&&(r=i),i-r+1===s)return r*a}else-1!==r&&(i-=i-r),r=-1}else for(n+s>l&&(n=l-s),i=n;i>=0;i--){let n=!0;for(let r=0;r<s;r++)if(c(e,i+r)!==c(t,r)){n=!1;break}if(n)return i}return-1}function w(e,t,n,r){n=Number(n)||0;const o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;const i=t.length;let a;for(r>i/2&&(r=i/2),a=0;a<r;++a){const r=parseInt(t.substr(2*a,2),16);if(K(r))return a;e[n+a]=r}return a}function b(e,t,n,r){return q(z(t,e.length-n),e,n,r)}function x(e,t,n,r){return q(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function _(e,t,n,r){return q(G(t),e,n,r)}function O(e,t,n,r){return q(function(e,t){let n,r,o;const i=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function L(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);const r=[];let o=t;for(;o<n;){const t=e[o];let i=null,a=t>239?4:t>223?3:t>191?2:1;if(o+a<=n){let n,r,l,s;switch(a){case 1:t<128&&(i=t);break;case 2:n=e[o+1],128==(192&n)&&(s=(31&t)<<6|63&n,s>127&&(i=s));break;case 3:n=e[o+1],r=e[o+2],128==(192&n)&&128==(192&r)&&(s=(15&t)<<12|(63&n)<<6|63&r,s>2047&&(s<55296||s>57343)&&(i=s));break;case 4:n=e[o+1],r=e[o+2],l=e[o+3],128==(192&n)&&128==(192&r)&&128==(192&l)&&(s=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&l,s>65535&&s<1114112&&(i=s))}}null===i?(i=65533,a=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=a}return function(e){const t=e.length;if(t<=S)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=S));return n}(r)}t.kMaxLength=a,s.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return function(e,t,n){return u(e),e<=0?l(e):void 0!==t?"string"==typeof n?l(e).fill(t,n):l(e).fill(t):l(e)}(e,t,n)},s.allocUnsafe=function(e){return f(e)},s.allocUnsafeSlow=function(e){return f(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(Y(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),Y(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=s.allocUnsafe(t);let o=0;for(n=0;n<e.length;++n){let t=e[n];if(Y(t,Uint8Array))o+t.length>r.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(r,o)):Uint8Array.prototype.set.call(r,t,o);else{if(!s.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,o)}o+=t.length}return r},s.byteLength=v,s.prototype._isBuffer=!0,s.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)C(this,t,t+1);return this},s.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)C(this,t,t+3),C(this,t+1,t+2);return this},s.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)C(this,t,t+7),C(this,t+1,t+6),C(this,t+2,t+5),C(this,t+3,t+4);return this},s.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?E(this,0,e):g.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){let e="";const n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},i&&(s.prototype[i]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,o){if(Y(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;let i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const l=Math.min(i,a),c=this.slice(r,o),u=e.slice(t,n);for(let e=0;e<l;++e)if(c[e]!==u[e]){i=c[e],a=u[e];break}return i<a?-1:a<i?1:0},s.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},s.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},s.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":case"latin1":case"binary":return x(this,e,t,n);case"base64":return _(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const S=4096;function M(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function j(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function k(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let o="";for(let r=t;r<n;++r)o+=X[e[r]];return o}function R(e,t,n){const r=e.slice(t,n);let o="";for(let e=0;e<r.length-1;e+=2)o+=String.fromCharCode(r[e]+256*r[e+1]);return o}function P(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,r,o,i){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function A(e,t,n,r,o){F(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function T(e,t,n,r,o){F(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n+7]=i,i>>=8,e[n+6]=i,i>>=8,e[n+5]=i,i>>=8,e[n+4]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function H(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function V(e,t,n,r,i){return t=+t,n>>>=0,i||H(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function B(e,t,n,r,i){return t=+t,n>>>=0,i||H(e,0,n,8),o.write(e,t,n,r,52,8),n+8}s.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return r},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);let r=this[e+--t],o=1;for(;t>0&&(o*=256);)r+=this[e+--t]*o;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=J((function(e){N(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||U(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(o)<<BigInt(32))})),s.prototype.readBigUInt64BE=J((function(e){N(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||U(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(o)})),s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);let r=t,o=1,i=this[e+--r];for(;r>0&&(o*=256);)i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},s.prototype.readInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||P(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||P(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=J((function(e){N(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||U(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),s.prototype.readBigInt64BE=J((function(e){N(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||U(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||P(e,4,this.length),o.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||P(e,4,this.length),o.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||P(e,8,this.length),o.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||P(e,8,this.length),o.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||I(this,e,t,n,Math.pow(2,8*n)-1,0);let o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||I(this,e,t,n,Math.pow(2,8*n)-1,0);let o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigUInt64LE=J((function(e,t=0){return A(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),s.prototype.writeBigUInt64BE=J((function(e,t=0){return T(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);I(this,e,t,n,r-1,-r)}let o=0,i=1,a=0;for(this[t]=255&e;++o<n&&(i*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/i>>0)-a&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);I(this,e,t,n,r-1,-r)}let o=n-1,i=1,a=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/i>>0)-a&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigInt64LE=J((function(e,t=0){return A(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),s.prototype.writeBigInt64BE=J((function(e,t=0){return T(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),s.prototype.writeFloatLE=function(e,t,n){return V(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return V(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const o=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),o},s.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{const i=s.isBuffer(e)?e:s.from(e,r),a=i.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=i[o%a]}return this};const D={};function Z(e,t,n){D[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function $(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function F(e,t,n,r,o,i){if(e>n||e<t){const r="bigint"==typeof t?"n":"";let o;throw o=i>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(i+1)}${r}`:`>= -(2${r} ** ${8*(i+1)-1}${r}) and < 2 ** ${8*(i+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new D.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,n){N(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||U(t,e.length-(n+1))}(r,o,i)}function N(e,t){if("number"!=typeof e)throw new D.ERR_INVALID_ARG_TYPE(t,"number",e)}function U(e,t,n){if(Math.floor(e)!==e)throw N(e,n),new D.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new D.ERR_BUFFER_OUT_OF_BOUNDS;throw new D.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}Z("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),Z("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),Z("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,o=n;return Number.isInteger(n)&&Math.abs(n)>2**32?o=$(String(n)):"bigint"==typeof n&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=$(o)),o+="n"),r+=` It must be ${t}. Received ${o}`,r}),RangeError);const W=/[^+/0-9A-Za-z-_]/g;function z(e,t){let n;t=t||1/0;const r=e.length;let o=null;const i=[];for(let a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function G(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function q(e,t,n,r){let o;for(o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function Y(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function K(e){return e!=e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let o=0;o<16;++o)t[r+o]=e[n]+e[o]}return t}();function J(e){return"undefined"==typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}},465:e=>{var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}v(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&v(e,"error",t,{once:!0})}(e,o)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function s(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var o,i,a,c;if(l(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=s(e))>0&&a.length>o&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,c=u,console&&console.warn&&console.warn(c)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=u.bind(r);return o.listener=n,r.wrapFn=o,o}function d(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):h(o,o.length)}function p(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function v(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(i){r.once&&e.removeEventListener(t,o),n(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return s(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var l=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw l.context=a,l}var s=i[e];if(void 0===s)return!1;if("function"==typeof s)r(s,this,t);else{var c=s.length,u=h(s,c);for(n=0;n<c;++n)r(u[n],this,t)}return!0},i.prototype.addListener=function(e,t){return c(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return c(this,e,t,!0)},i.prototype.once=function(e,t){return l(t),this.on(e,f(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,f(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,o,i,a;if(l(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return d(this,e,!0)},i.prototype.rawListeners=function(e){return d(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},215:(e,t)=>{t.read=function(e,t,n,r,o){var i,a,l=8*o-r-1,s=(1<<l)-1,c=s>>1,u=-7,f=n?o-1:0,d=n?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-u)-1,p>>=-u,u+=l;u>0;i=256*i+e[t+f],f+=d,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+f],f+=d,u-=8);if(0===i)i=1-c;else{if(i===s)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=c}return(p?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,l,s,c=8*i-o-1,u=(1<<c)-1,f=u>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),(t+=a+f>=1?d/s:d*Math.pow(2,1-f))*s>=2&&(a++,s/=2),a+f>=u?(l=0,a=u):a+f>=1?(l=(t*s-1)*Math.pow(2,o),a+=f):(l=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&l,p+=h,l/=256,o-=8);for(a=a<<o|l,c+=o;c>0;e[n+p]=255&a,p+=h,a/=256,c-=8);e[n+p-h]|=128*v}},951:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",l="__lodash_placeholder__",s=32,c=128,u=1/0,f=9007199254740991,d=NaN,p=4294967295,h=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",s],["partialRight",64],["rearg",256]],v="[object Arguments]",g="[object Array]",C="[object Boolean]",m="[object Date]",y="[object Error]",w="[object Function]",b="[object GeneratorFunction]",x="[object Map]",_="[object Number]",O="[object Object]",L="[object Promise]",E="[object RegExp]",S="[object Set]",M="[object String]",j="[object Symbol]",k="[object WeakMap]",R="[object ArrayBuffer]",P="[object DataView]",I="[object Float32Array]",A="[object Float64Array]",T="[object Int8Array]",H="[object Int16Array]",V="[object Int32Array]",B="[object Uint8Array]",D="[object Uint8ClampedArray]",Z="[object Uint16Array]",$="[object Uint32Array]",F=/\b__p \+= '';/g,N=/\b(__p \+=) '' \+/g,U=/(__e\(.*?\)|\b__t\)) \+\n'';/g,W=/&(?:amp|lt|gt|quot|#39);/g,z=/[&<>"']/g,G=RegExp(W.source),q=RegExp(z.source),Y=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,se=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,ue=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,pe=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,Ce=/^(?:0|[1-9]\d*)$/,me=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ye=/($^)/,we=/['\n\r\u2028\u2029\\]/g,be="\\ud800-\\udfff",xe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",_e="\\u2700-\\u27bf",Oe="a-z\\xdf-\\xf6\\xf8-\\xff",Le="A-Z\\xc0-\\xd6\\xd8-\\xde",Ee="\\ufe0e\\ufe0f",Se="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Me="["+be+"]",je="["+Se+"]",ke="["+xe+"]",Re="\\d+",Pe="["+_e+"]",Ie="["+Oe+"]",Ae="[^"+be+Se+Re+_e+Oe+Le+"]",Te="\\ud83c[\\udffb-\\udfff]",He="[^"+be+"]",Ve="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",De="["+Le+"]",Ze="\\u200d",$e="(?:"+Ie+"|"+Ae+")",Fe="(?:"+De+"|"+Ae+")",Ne="(?:['’](?:d|ll|m|re|s|t|ve))?",Ue="(?:['’](?:D|LL|M|RE|S|T|VE))?",We="(?:"+ke+"|"+Te+")?",ze="["+Ee+"]?",Ge=ze+We+"(?:"+Ze+"(?:"+[He,Ve,Be].join("|")+")"+ze+We+")*",qe="(?:"+[Pe,Ve,Be].join("|")+")"+Ge,Ye="(?:"+[He+ke+"?",ke,Ve,Be,Me].join("|")+")",Ke=RegExp("['’]","g"),Xe=RegExp(ke,"g"),Je=RegExp(Te+"(?="+Te+")|"+Ye+Ge,"g"),Qe=RegExp([De+"?"+Ie+"+"+Ne+"(?="+[je,De,"$"].join("|")+")",Fe+"+"+Ue+"(?="+[je,De+$e,"$"].join("|")+")",De+"?"+$e+"+"+Ne,De+"+"+Ue,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Re,qe].join("|"),"g"),et=RegExp("["+Ze+be+xe+Ee+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,ot={};ot[I]=ot[A]=ot[T]=ot[H]=ot[V]=ot[B]=ot[D]=ot[Z]=ot[$]=!0,ot[v]=ot[g]=ot[R]=ot[C]=ot[P]=ot[m]=ot[y]=ot[w]=ot[x]=ot[_]=ot[O]=ot[E]=ot[S]=ot[M]=ot[k]=!1;var it={};it[v]=it[g]=it[R]=it[P]=it[C]=it[m]=it[I]=it[A]=it[T]=it[H]=it[V]=it[x]=it[_]=it[O]=it[E]=it[S]=it[M]=it[j]=it[B]=it[D]=it[Z]=it[$]=!0,it[y]=it[w]=it[k]=!1;var at={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lt=parseFloat,st=parseInt,ct="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ut="object"==typeof self&&self&&self.Object===Object&&self,ft=ct||ut||Function("return this")(),dt=t&&!t.nodeType&&t,pt=dt&&e&&!e.nodeType&&e,ht=pt&&pt.exports===dt,vt=ht&&ct.process,gt=function(){try{return pt&&pt.require&&pt.require("util").types||vt&&vt.binding&&vt.binding("util")}catch(e){}}(),Ct=gt&&gt.isArrayBuffer,mt=gt&&gt.isDate,yt=gt&&gt.isMap,wt=gt&&gt.isRegExp,bt=gt&&gt.isSet,xt=gt&&gt.isTypedArray;function _t(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ot(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function Lt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Et(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function St(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Mt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function jt(e,t){return!(null==e||!e.length)&&Dt(e,t,0)>-1}function kt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Rt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Pt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function It(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function At(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Tt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Ht=Nt("length");function Vt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Bt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Dt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Bt(e,$t,n)}function Zt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function $t(e){return e!=e}function Ft(e,t){var n=null==e?0:e.length;return n?zt(e,t)/n:d}function Nt(e){return function(t){return null==t?o:t[e]}}function Ut(e){return function(t){return null==e?o:e[t]}}function Wt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function zt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function Gt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function qt(e){return e?e.slice(0,fn(e)+1).replace(re,""):e}function Yt(e){return function(t){return e(t)}}function Kt(e,t){return Rt(t,(function(t){return e[t]}))}function Xt(e,t){return e.has(t)}function Jt(e,t){for(var n=-1,r=e.length;++n<r&&Dt(t,e[n],0)>-1;);return n}function Qt(e,t){for(var n=e.length;n--&&Dt(t,e[n],0)>-1;);return n}var en=Ut({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tn=Ut({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function nn(e){return"\\"+at[e]}function rn(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function an(e,t){return function(n){return e(t(n))}}function ln(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==l||(e[n]=l,i[o++]=n)}return i}function sn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function cn(e){return rn(e)?function(e){for(var t=Je.lastIndex=0;Je.test(e);)++t;return t}(e):Ht(e)}function un(e){return rn(e)?function(e){return e.match(Je)||[]}(e):function(e){return e.split("")}(e)}function fn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var dn=Ut({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),pn=function e(t){var n,r=(t=null==t?ft:pn.defaults(ft.Object(),t,pn.pick(ft,nt))).Array,oe=t.Date,be=t.Error,xe=t.Function,_e=t.Math,Oe=t.Object,Le=t.RegExp,Ee=t.String,Se=t.TypeError,Me=r.prototype,je=xe.prototype,ke=Oe.prototype,Re=t["__core-js_shared__"],Pe=je.toString,Ie=ke.hasOwnProperty,Ae=0,Te=(n=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",He=ke.toString,Ve=Pe.call(Oe),Be=ft._,De=Le("^"+Pe.call(Ie).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ze=ht?t.Buffer:o,$e=t.Symbol,Fe=t.Uint8Array,Ne=Ze?Ze.allocUnsafe:o,Ue=an(Oe.getPrototypeOf,Oe),We=Oe.create,ze=ke.propertyIsEnumerable,Ge=Me.splice,qe=$e?$e.isConcatSpreadable:o,Ye=$e?$e.iterator:o,Je=$e?$e.toStringTag:o,et=function(){try{var e=si(Oe,"defineProperty");return e({},"",{}),e}catch(e){}}(),at=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,ct=oe&&oe.now!==ft.Date.now&&oe.now,ut=t.setTimeout!==ft.setTimeout&&t.setTimeout,dt=_e.ceil,pt=_e.floor,vt=Oe.getOwnPropertySymbols,gt=Ze?Ze.isBuffer:o,Ht=t.isFinite,Ut=Me.join,hn=an(Oe.keys,Oe),vn=_e.max,gn=_e.min,Cn=oe.now,mn=t.parseInt,yn=_e.random,wn=Me.reverse,bn=si(t,"DataView"),xn=si(t,"Map"),_n=si(t,"Promise"),On=si(t,"Set"),Ln=si(t,"WeakMap"),En=si(Oe,"create"),Sn=Ln&&new Ln,Mn={},jn=Ai(bn),kn=Ai(xn),Rn=Ai(_n),Pn=Ai(On),In=Ai(Ln),An=$e?$e.prototype:o,Tn=An?An.valueOf:o,Hn=An?An.toString:o;function Vn(e){if(Xa(e)&&!Za(e)&&!(e instanceof $n)){if(e instanceof Zn)return e;if(Ie.call(e,"__wrapped__"))return Ti(e)}return new Zn(e)}var Bn=function(){function e(){}return function(t){if(!Ka(t))return{};if(We)return We(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Dn(){}function Zn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function $n(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Fn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Nn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Un(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Un;++t<n;)this.add(e[t])}function zn(e){var t=this.__data__=new Nn(e);this.size=t.size}function Gn(e,t){var n=Za(e),r=!n&&Da(e),o=!n&&!r&&Ua(e),i=!n&&!r&&!o&&il(e),a=n||r||o||i,l=a?Gt(e.length,Ee):[],s=l.length;for(var c in e)!t&&!Ie.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||vi(c,s))||l.push(c);return l}function qn(e){var t=e.length;return t?e[Ur(0,t-1)]:o}function Yn(e,t){return Ri(Eo(e),or(t,0,e.length))}function Kn(e){return Ri(Eo(e))}function Xn(e,t,n){(n!==o&&!Ha(e[t],n)||n===o&&!(t in e))&&nr(e,t,n)}function Jn(e,t,n){var r=e[t];Ie.call(e,t)&&Ha(r,n)&&(n!==o||t in e)||nr(e,t,n)}function Qn(e,t){for(var n=e.length;n--;)if(Ha(e[n][0],t))return n;return-1}function er(e,t,n,r){return cr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function tr(e,t){return e&&So(t,Sl(t),e)}function nr(e,t,n){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function rr(e,t){for(var n=-1,i=t.length,a=r(i),l=null==e;++n<i;)a[n]=l?o:xl(e,t[n]);return a}function or(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function ir(e,t,n,r,i,a){var l,s=1&t,c=2&t,u=4&t;if(n&&(l=i?n(e,r,i,a):n(e)),l!==o)return l;if(!Ka(e))return e;var f=Za(e);if(f){if(l=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ie.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!s)return Eo(e,l)}else{var d=fi(e),p=d==w||d==b;if(Ua(e))return wo(e,s);if(d==O||d==v||p&&!i){if(l=c||p?{}:pi(e),!s)return c?function(e,t){return So(e,ui(e),t)}(e,function(e,t){return e&&So(t,Ml(t),e)}(l,e)):function(e,t){return So(e,ci(e),t)}(e,tr(l,e))}else{if(!it[d])return i?e:{};l=function(e,t,n){var r,o=e.constructor;switch(t){case R:return bo(e);case C:case m:return new o(+e);case P:return function(e,t){var n=t?bo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case I:case A:case T:case H:case V:case B:case D:case Z:case $:return xo(e,n);case x:return new o;case _:case M:return new o(e);case E:return function(e){var t=new e.constructor(e.source,de.exec(e));return t.lastIndex=e.lastIndex,t}(e);case S:return new o;case j:return r=e,Tn?Oe(Tn.call(r)):{}}}(e,d,s)}}a||(a=new zn);var h=a.get(e);if(h)return h;a.set(e,l),nl(e)?e.forEach((function(r){l.add(ir(r,t,n,r,e,a))})):Ja(e)&&e.forEach((function(r,o){l.set(o,ir(r,t,n,o,e,a))}));var g=f?o:(u?c?ti:ei:c?Ml:Sl)(e);return Lt(g||e,(function(r,o){g&&(r=e[o=r]),Jn(l,o,ir(r,t,n,o,e,a))})),l}function ar(e,t,n){var r=n.length;if(null==e)return!r;for(e=Oe(e);r--;){var i=n[r],a=t[i],l=e[i];if(l===o&&!(i in e)||!a(l))return!1}return!0}function lr(e,t,n){if("function"!=typeof e)throw new Se(i);return Si((function(){e.apply(o,n)}),t)}function sr(e,t,n,r){var o=-1,i=jt,a=!0,l=e.length,s=[],c=t.length;if(!l)return s;n&&(t=Rt(t,Yt(n))),r?(i=kt,a=!1):t.length>=200&&(i=Xt,a=!1,t=new Wn(t));e:for(;++o<l;){var u=e[o],f=null==n?u:n(u);if(u=r||0!==u?u:0,a&&f==f){for(var d=c;d--;)if(t[d]===f)continue e;s.push(u)}else i(t,f,r)||s.push(u)}return s}Vn.templateSettings={escape:Y,evaluate:K,interpolate:X,variable:"",imports:{_:Vn}},Vn.prototype=Dn.prototype,Vn.prototype.constructor=Vn,Zn.prototype=Bn(Dn.prototype),Zn.prototype.constructor=Zn,$n.prototype=Bn(Dn.prototype),$n.prototype.constructor=$n,Fn.prototype.clear=function(){this.__data__=En?En(null):{},this.size=0},Fn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Fn.prototype.get=function(e){var t=this.__data__;if(En){var n=t[e];return n===a?o:n}return Ie.call(t,e)?t[e]:o},Fn.prototype.has=function(e){var t=this.__data__;return En?t[e]!==o:Ie.call(t,e)},Fn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=En&&t===o?a:t,this},Nn.prototype.clear=function(){this.__data__=[],this.size=0},Nn.prototype.delete=function(e){var t=this.__data__,n=Qn(t,e);return!(n<0||(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,0))},Nn.prototype.get=function(e){var t=this.__data__,n=Qn(t,e);return n<0?o:t[n][1]},Nn.prototype.has=function(e){return Qn(this.__data__,e)>-1},Nn.prototype.set=function(e,t){var n=this.__data__,r=Qn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Un.prototype.clear=function(){this.size=0,this.__data__={hash:new Fn,map:new(xn||Nn),string:new Fn}},Un.prototype.delete=function(e){var t=ai(this,e).delete(e);return this.size-=t?1:0,t},Un.prototype.get=function(e){return ai(this,e).get(e)},Un.prototype.has=function(e){return ai(this,e).has(e)},Un.prototype.set=function(e,t){var n=ai(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Wn.prototype.add=Wn.prototype.push=function(e){return this.__data__.set(e,a),this},Wn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.clear=function(){this.__data__=new Nn,this.size=0},zn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},zn.prototype.get=function(e){return this.__data__.get(e)},zn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Nn){var r=n.__data__;if(!xn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Un(r)}return n.set(e,t),this.size=n.size,this};var cr=ko(Cr),ur=ko(mr,!0);function fr(e,t){var n=!0;return cr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function dr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],l=t(a);if(null!=l&&(s===o?l==l&&!ol(l):n(l,s)))var s=l,c=a}return c}function pr(e,t){var n=[];return cr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function hr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=hi),o||(o=[]);++i<a;){var l=e[i];t>0&&n(l)?t>1?hr(l,t-1,n,r,o):Pt(o,l):r||(o[o.length]=l)}return o}var vr=Ro(),gr=Ro(!0);function Cr(e,t){return e&&vr(e,t,Sl)}function mr(e,t){return e&&gr(e,t,Sl)}function yr(e,t){return Mt(t,(function(t){return Ga(e[t])}))}function wr(e,t){for(var n=0,r=(t=go(t,e)).length;null!=e&&n<r;)e=e[Ii(t[n++])];return n&&n==r?e:o}function br(e,t,n){var r=t(e);return Za(e)?r:Pt(r,n(e))}function xr(e){return null==e?e===o?"[object Undefined]":"[object Null]":Je&&Je in Oe(e)?function(e){var t=Ie.call(e,Je),n=e[Je];try{e[Je]=o;var r=!0}catch(e){}var i=He.call(e);return r&&(t?e[Je]=n:delete e[Je]),i}(e):function(e){return He.call(e)}(e)}function _r(e,t){return e>t}function Or(e,t){return null!=e&&Ie.call(e,t)}function Lr(e,t){return null!=e&&t in Oe(e)}function Er(e,t,n){for(var i=n?kt:jt,a=e[0].length,l=e.length,s=l,c=r(l),u=1/0,f=[];s--;){var d=e[s];s&&t&&(d=Rt(d,Yt(t))),u=gn(d.length,u),c[s]=!n&&(t||a>=120&&d.length>=120)?new Wn(s&&d):o}d=e[0];var p=-1,h=c[0];e:for(;++p<a&&f.length<u;){var v=d[p],g=t?t(v):v;if(v=n||0!==v?v:0,!(h?Xt(h,g):i(f,g,n))){for(s=l;--s;){var C=c[s];if(!(C?Xt(C,g):i(e[s],g,n)))continue e}h&&h.push(g),f.push(v)}}return f}function Sr(e,t,n){var r=null==(e=Oi(e,t=go(t,e)))?e:e[Ii(zi(t))];return null==r?o:_t(r,e,n)}function Mr(e){return Xa(e)&&xr(e)==v}function jr(e,t,n,r,i){return e===t||(null==e||null==t||!Xa(e)&&!Xa(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var l=Za(e),s=Za(t),c=l?g:fi(e),u=s?g:fi(t),f=(c=c==v?O:c)==O,d=(u=u==v?O:u)==O,p=c==u;if(p&&Ua(e)){if(!Ua(t))return!1;l=!0,f=!1}if(p&&!f)return a||(a=new zn),l||il(e)?Jo(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case P:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case R:return!(e.byteLength!=t.byteLength||!i(new Fe(e),new Fe(t)));case C:case m:case _:return Ha(+e,+t);case y:return e.name==t.name&&e.message==t.message;case E:case M:return e==t+"";case x:var l=on;case S:var s=1&r;if(l||(l=sn),e.size!=t.size&&!s)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=Jo(l(e),l(t),r,o,i,a);return a.delete(e),u;case j:if(Tn)return Tn.call(e)==Tn.call(t)}return!1}(e,t,c,n,r,i,a);if(!(1&n)){var h=f&&Ie.call(e,"__wrapped__"),w=d&&Ie.call(t,"__wrapped__");if(h||w){var b=h?e.value():e,L=w?t.value():t;return a||(a=new zn),i(b,L,n,r,a)}}return!!p&&(a||(a=new zn),function(e,t,n,r,i,a){var l=1&n,s=ei(e),c=s.length;if(c!=ei(t).length&&!l)return!1;for(var u=c;u--;){var f=s[u];if(!(l?f in t:Ie.call(t,f)))return!1}var d=a.get(e),p=a.get(t);if(d&&p)return d==t&&p==e;var h=!0;a.set(e,t),a.set(t,e);for(var v=l;++u<c;){var g=e[f=s[u]],C=t[f];if(r)var m=l?r(C,g,f,t,e,a):r(g,C,f,e,t,a);if(!(m===o?g===C||i(g,C,n,r,a):m)){h=!1;break}v||(v="constructor"==f)}if(h&&!v){var y=e.constructor,w=t.constructor;y==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof w&&w instanceof w||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,r,i,a))}(e,t,n,r,jr,i))}function kr(e,t,n,r){var i=n.length,a=i,l=!r;if(null==e)return!a;for(e=Oe(e);i--;){var s=n[i];if(l&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){var c=(s=n[i])[0],u=e[c],f=s[1];if(l&&s[2]){if(u===o&&!(c in e))return!1}else{var d=new zn;if(r)var p=r(u,f,c,e,t,d);if(!(p===o?jr(f,u,3,r,d):p))return!1}}return!0}function Rr(e){return!(!Ka(e)||(t=e,Te&&Te in t))&&(Ga(e)?De:ve).test(Ai(e));var t}function Pr(e){return"function"==typeof e?e:null==e?Ql:"object"==typeof e?Za(e)?Vr(e[0],e[1]):Hr(e):ss(e)}function Ir(e){if(!wi(e))return hn(e);var t=[];for(var n in Oe(e))Ie.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Ar(e,t){return e<t}function Tr(e,t){var n=-1,o=Fa(e)?r(e.length):[];return cr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function Hr(e){var t=li(e);return 1==t.length&&t[0][2]?xi(t[0][0],t[0][1]):function(n){return n===e||kr(n,e,t)}}function Vr(e,t){return Ci(e)&&bi(t)?xi(Ii(e),t):function(n){var r=xl(n,e);return r===o&&r===t?_l(n,e):jr(t,r,3)}}function Br(e,t,n,r,i){e!==t&&vr(t,(function(a,l){if(i||(i=new zn),Ka(a))!function(e,t,n,r,i,a,l){var s=Li(e,n),c=Li(t,n),u=l.get(c);if(u)Xn(e,n,u);else{var f=a?a(s,c,n+"",e,t,l):o,d=f===o;if(d){var p=Za(c),h=!p&&Ua(c),v=!p&&!h&&il(c);f=c,p||h||v?Za(s)?f=s:Na(s)?f=Eo(s):h?(d=!1,f=wo(c,!0)):v?(d=!1,f=xo(c,!0)):f=[]:el(c)||Da(c)?(f=s,Da(s)?f=pl(s):Ka(s)&&!Ga(s)||(f=pi(c))):d=!1}d&&(l.set(c,f),i(f,c,r,a,l),l.delete(c)),Xn(e,n,f)}}(e,t,l,n,Br,r,i);else{var s=r?r(Li(e,l),a,l+"",e,t,i):o;s===o&&(s=a),Xn(e,l,s)}}),Ml)}function Dr(e,t){var n=e.length;if(n)return vi(t+=t<0?n:0,n)?e[t]:o}function Zr(e,t,n){t=t.length?Rt(t,(function(e){return Za(e)?function(t){return wr(t,1===e.length?e[0]:e)}:e})):[Ql];var r=-1;t=Rt(t,Yt(ii()));var o=Tr(e,(function(e,n,o){var i=Rt(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,(function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,l=n.length;++r<a;){var s=_o(o[r],i[r]);if(s)return r>=l?s:s*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function $r(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],l=wr(e,a);n(l,a)&&Yr(i,go(a,e),l)}return i}function Fr(e,t,n,r){var o=r?Zt:Dt,i=-1,a=t.length,l=e;for(e===t&&(t=Eo(t)),n&&(l=Rt(e,Yt(n)));++i<a;)for(var s=0,c=t[i],u=n?n(c):c;(s=o(l,u,s,r))>-1;)l!==e&&Ge.call(l,s,1),Ge.call(e,s,1);return e}function Nr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;vi(o)?Ge.call(e,o,1):lo(e,o)}}return e}function Ur(e,t){return e+pt(yn()*(t-e+1))}function Wr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=pt(t/2))&&(e+=e)}while(t);return n}function zr(e,t){return Mi(_i(e,t,Ql),e+"")}function Gr(e){return qn(Hl(e))}function qr(e,t){var n=Hl(e);return Ri(n,or(t,0,n.length))}function Yr(e,t,n,r){if(!Ka(e))return e;for(var i=-1,a=(t=go(t,e)).length,l=a-1,s=e;null!=s&&++i<a;){var c=Ii(t[i]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=l){var f=s[c];(u=r?r(f,c,s):o)===o&&(u=Ka(f)?f:vi(t[i+1])?[]:{})}Jn(s,c,u),s=s[c]}return e}var Kr=Sn?function(e,t){return Sn.set(e,t),e}:Ql,Xr=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Kl(t),writable:!0})}:Ql;function Jr(e){return Ri(Hl(e))}function Qr(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function eo(e,t){var n;return cr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function to(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!ol(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return no(e,t,Ql,n)}function no(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var l=(t=n(t))!=t,s=null===t,c=ol(t),u=t===o;i<a;){var f=pt((i+a)/2),d=n(e[f]),p=d!==o,h=null===d,v=d==d,g=ol(d);if(l)var C=r||v;else C=u?v&&(r||p):s?v&&p&&(r||!h):c?v&&p&&!h&&(r||!g):!h&&!g&&(r?d<=t:d<t);C?i=f+1:a=f}return gn(a,4294967294)}function ro(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],l=t?t(a):a;if(!n||!Ha(l,s)){var s=l;i[o++]=0===a?0:a}}return i}function oo(e){return"number"==typeof e?e:ol(e)?d:+e}function io(e){if("string"==typeof e)return e;if(Za(e))return Rt(e,io)+"";if(ol(e))return Hn?Hn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ao(e,t,n){var r=-1,o=jt,i=e.length,a=!0,l=[],s=l;if(n)a=!1,o=kt;else if(i>=200){var c=t?null:zo(e);if(c)return sn(c);a=!1,o=Xt,s=new Wn}else s=t?[]:l;e:for(;++r<i;){var u=e[r],f=t?t(u):u;if(u=n||0!==u?u:0,a&&f==f){for(var d=s.length;d--;)if(s[d]===f)continue e;t&&s.push(f),l.push(u)}else o(s,f,n)||(s!==l&&s.push(f),l.push(u))}return l}function lo(e,t){return null==(e=Oi(e,t=go(t,e)))||delete e[Ii(zi(t))]}function so(e,t,n,r){return Yr(e,t,n(wr(e,t)),r)}function co(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?Qr(e,r?0:i,r?i+1:o):Qr(e,r?i+1:0,r?o:i)}function uo(e,t){var n=e;return n instanceof $n&&(n=n.value()),It(t,(function(e,t){return t.func.apply(t.thisArg,Pt([e],t.args))}),n)}function fo(e,t,n){var o=e.length;if(o<2)return o?ao(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var l=e[i],s=-1;++s<o;)s!=i&&(a[i]=sr(a[i]||l,e[s],t,n));return ao(hr(a,1),t,n)}function po(e,t,n){for(var r=-1,i=e.length,a=t.length,l={};++r<i;){var s=r<a?t[r]:o;n(l,e[r],s)}return l}function ho(e){return Na(e)?e:[]}function vo(e){return"function"==typeof e?e:Ql}function go(e,t){return Za(e)?e:Ci(e,t)?[e]:Pi(hl(e))}var Co=zr;function mo(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:Qr(e,t,n)}var yo=at||function(e){return ft.clearTimeout(e)};function wo(e,t){if(t)return e.slice();var n=e.length,r=Ne?Ne(n):new e.constructor(n);return e.copy(r),r}function bo(e){var t=new e.constructor(e.byteLength);return new Fe(t).set(new Fe(e)),t}function xo(e,t){var n=t?bo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function _o(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=ol(e),l=t!==o,s=null===t,c=t==t,u=ol(t);if(!s&&!u&&!a&&e>t||a&&l&&c&&!s&&!u||r&&l&&c||!n&&c||!i)return 1;if(!r&&!a&&!u&&e<t||u&&n&&i&&!r&&!a||s&&n&&i||!l&&i||!c)return-1}return 0}function Oo(e,t,n,o){for(var i=-1,a=e.length,l=n.length,s=-1,c=t.length,u=vn(a-l,0),f=r(c+u),d=!o;++s<c;)f[s]=t[s];for(;++i<l;)(d||i<a)&&(f[n[i]]=e[i]);for(;u--;)f[s++]=e[i++];return f}function Lo(e,t,n,o){for(var i=-1,a=e.length,l=-1,s=n.length,c=-1,u=t.length,f=vn(a-s,0),d=r(f+u),p=!o;++i<f;)d[i]=e[i];for(var h=i;++c<u;)d[h+c]=t[c];for(;++l<s;)(p||i<a)&&(d[h+n[l]]=e[i++]);return d}function Eo(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function So(e,t,n,r){var i=!n;n||(n={});for(var a=-1,l=t.length;++a<l;){var s=t[a],c=r?r(n[s],e[s],s,n,e):o;c===o&&(c=e[s]),i?nr(n,s,c):Jn(n,s,c)}return n}function Mo(e,t){return function(n,r){var o=Za(n)?Ot:er,i=t?t():{};return o(n,e,ii(r,2),i)}}function jo(e){return zr((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,l=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,l&&gi(n[0],n[1],l)&&(a=i<3?o:a,i=1),t=Oe(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t}))}function ko(e,t){return function(n,r){if(null==n)return n;if(!Fa(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Oe(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Ro(e){return function(t,n,r){for(var o=-1,i=Oe(t),a=r(t),l=a.length;l--;){var s=a[e?l:++o];if(!1===n(i[s],s,i))break}return t}}function Po(e){return function(t){var n=rn(t=hl(t))?un(t):o,r=n?n[0]:t.charAt(0),i=n?mo(n,1).join(""):t.slice(1);return r[e]()+i}}function Io(e){return function(t){return It(Gl(Dl(t).replace(Ke,"")),e,"")}}function Ao(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Bn(e.prototype),r=e.apply(n,t);return Ka(r)?r:n}}function To(e){return function(t,n,r){var i=Oe(t);if(!Fa(t)){var a=ii(n,3);t=Sl(t),n=function(e){return a(i[e],e,i)}}var l=e(t,n,r);return l>-1?i[a?t[l]:l]:o}}function Ho(e){return Qo((function(t){var n=t.length,r=n,a=Zn.prototype.thru;for(e&&t.reverse();r--;){var l=t[r];if("function"!=typeof l)throw new Se(i);if(a&&!s&&"wrapper"==ri(l))var s=new Zn([],!0)}for(r=s?r:n;++r<n;){var c=ri(l=t[r]),u="wrapper"==c?ni(l):o;s=u&&mi(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?s[ri(u[0])].apply(s,u[3]):1==l.length&&mi(l)?s[c]():s.thru(l)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&Za(r))return s.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function Vo(e,t,n,i,a,l,s,u,f,d){var p=t&c,h=1&t,v=2&t,g=24&t,C=512&t,m=v?o:Ao(e);return function c(){for(var y=arguments.length,w=r(y),b=y;b--;)w[b]=arguments[b];if(g)var x=oi(c),_=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(w,x);if(i&&(w=Oo(w,i,a,g)),l&&(w=Lo(w,l,s,g)),y-=_,g&&y<d){var O=ln(w,x);return Uo(e,t,Vo,c.placeholder,n,w,O,u,f,d-y)}var L=h?n:this,E=v?L[e]:e;return y=w.length,u?w=function(e,t){for(var n=e.length,r=gn(t.length,n),i=Eo(e);r--;){var a=t[r];e[r]=vi(a,n)?i[a]:o}return e}(w,u):C&&y>1&&w.reverse(),p&&f<y&&(w.length=f),this&&this!==ft&&this instanceof c&&(E=m||Ao(E)),E.apply(L,w)}}function Bo(e,t){return function(n,r){return function(e,t,n,r){return Cr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Do(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=io(n),r=io(r)):(n=oo(n),r=oo(r)),i=e(n,r)}return i}}function Zo(e){return Qo((function(t){return t=Rt(t,Yt(ii())),zr((function(n){var r=this;return e(t,(function(e){return _t(e,r,n)}))}))}))}function $o(e,t){var n=(t=t===o?" ":io(t)).length;if(n<2)return n?Wr(t,e):t;var r=Wr(t,dt(e/cn(t)));return rn(t)?mo(un(r),0,e).join(""):r.slice(0,e)}function Fo(e){return function(t,n,i){return i&&"number"!=typeof i&&gi(t,n,i)&&(n=i=o),t=cl(t),n===o?(n=t,t=0):n=cl(n),function(e,t,n,o){for(var i=-1,a=vn(dt((t-e)/(n||1)),0),l=r(a);a--;)l[o?a:++i]=e,e+=n;return l}(t,n,i=i===o?t<n?1:-1:cl(i),e)}}function No(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=dl(t),n=dl(n)),e(t,n)}}function Uo(e,t,n,r,i,a,l,c,u,f){var d=8&t;t|=d?s:64,4&(t&=~(d?64:s))||(t&=-4);var p=[e,t,i,d?a:o,d?l:o,d?o:a,d?o:l,c,u,f],h=n.apply(o,p);return mi(e)&&Ei(h,p),h.placeholder=r,ji(h,e,t)}function Wo(e){var t=_e[e];return function(e,n){if(e=dl(e),(n=null==n?0:gn(ul(n),292))&&Ht(e)){var r=(hl(e)+"e").split("e");return+((r=(hl(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var zo=On&&1/sn(new On([,-0]))[1]==u?function(e){return new On(e)}:os;function Go(e){return function(t){var n=fi(t);return n==x?on(t):n==S?function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}(t):function(e,t){return Rt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function qo(e,t,n,a,u,f,d,p){var h=2&t;if(!h&&"function"!=typeof e)throw new Se(i);var v=a?a.length:0;if(v||(t&=-97,a=u=o),d=d===o?d:vn(ul(d),0),p=p===o?p:ul(p),v-=u?u.length:0,64&t){var g=a,C=u;a=u=o}var m=h?o:ni(e),y=[e,t,n,a,u,g,C,f,d,p];if(m&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==c&&8==n||r==c&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var s=t[3];if(s){var u=e[3];e[3]=u?Oo(u,s,t[4]):s,e[4]=u?ln(e[3],l):t[4]}(s=t[5])&&(u=e[5],e[5]=u?Lo(u,s,t[6]):s,e[6]=u?ln(e[5],l):t[6]),(s=t[7])&&(e[7]=s),r&c&&(e[8]=null==e[8]?t[8]:gn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(y,m),e=y[0],t=y[1],n=y[2],a=y[3],u=y[4],!(p=y[9]=y[9]===o?h?0:e.length:vn(y[9]-v,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||16==t?function(e,t,n){var i=Ao(e);return function a(){for(var l=arguments.length,s=r(l),c=l,u=oi(a);c--;)s[c]=arguments[c];var f=l<3&&s[0]!==u&&s[l-1]!==u?[]:ln(s,u);return(l-=f.length)<n?Uo(e,t,Vo,a.placeholder,o,s,f,o,o,n-l):_t(this&&this!==ft&&this instanceof a?i:e,this,s)}}(e,t,p):t!=s&&33!=t||u.length?Vo.apply(o,y):function(e,t,n,o){var i=1&t,a=Ao(e);return function t(){for(var l=-1,s=arguments.length,c=-1,u=o.length,f=r(u+s),d=this&&this!==ft&&this instanceof t?a:e;++c<u;)f[c]=o[c];for(;s--;)f[c++]=arguments[++l];return _t(d,i?n:this,f)}}(e,t,n,a);else var w=function(e,t,n){var r=1&t,o=Ao(e);return function t(){return(this&&this!==ft&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return ji((m?Kr:Ei)(w,y),e,t)}function Yo(e,t,n,r){return e===o||Ha(e,ke[n])&&!Ie.call(r,n)?t:e}function Ko(e,t,n,r,i,a){return Ka(e)&&Ka(t)&&(a.set(t,e),Br(e,t,o,Ko,a),a.delete(t)),e}function Xo(e){return el(e)?o:e}function Jo(e,t,n,r,i,a){var l=1&n,s=e.length,c=t.length;if(s!=c&&!(l&&c>s))return!1;var u=a.get(e),f=a.get(t);if(u&&f)return u==t&&f==e;var d=-1,p=!0,h=2&n?new Wn:o;for(a.set(e,t),a.set(t,e);++d<s;){var v=e[d],g=t[d];if(r)var C=l?r(g,v,d,t,e,a):r(v,g,d,e,t,a);if(C!==o){if(C)continue;p=!1;break}if(h){if(!Tt(t,(function(e,t){if(!Xt(h,t)&&(v===e||i(v,e,n,r,a)))return h.push(t)}))){p=!1;break}}else if(v!==g&&!i(v,g,n,r,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function Qo(e){return Mi(_i(e,o,$i),e+"")}function ei(e){return br(e,Sl,ci)}function ti(e){return br(e,Ml,ui)}var ni=Sn?function(e){return Sn.get(e)}:os;function ri(e){for(var t=e.name+"",n=Mn[t],r=Ie.call(Mn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function oi(e){return(Ie.call(Vn,"placeholder")?Vn:e).placeholder}function ii(){var e=Vn.iteratee||es;return e=e===es?Pr:e,arguments.length?e(arguments[0],arguments[1]):e}function ai(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function li(e){for(var t=Sl(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,bi(o)]}return t}function si(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Rr(n)?n:o}var ci=vt?function(e){return null==e?[]:(e=Oe(e),Mt(vt(e),(function(t){return ze.call(e,t)})))}:fs,ui=vt?function(e){for(var t=[];e;)Pt(t,ci(e)),e=Ue(e);return t}:fs,fi=xr;function di(e,t,n){for(var r=-1,o=(t=go(t,e)).length,i=!1;++r<o;){var a=Ii(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Ya(o)&&vi(a,o)&&(Za(e)||Da(e))}function pi(e){return"function"!=typeof e.constructor||wi(e)?{}:Bn(Ue(e))}function hi(e){return Za(e)||Da(e)||!!(qe&&e&&e[qe])}function vi(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&Ce.test(e))&&e>-1&&e%1==0&&e<t}function gi(e,t,n){if(!Ka(n))return!1;var r=typeof t;return!!("number"==r?Fa(n)&&vi(t,n.length):"string"==r&&t in n)&&Ha(n[t],e)}function Ci(e,t){if(Za(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ol(e))||Q.test(e)||!J.test(e)||null!=t&&e in Oe(t)}function mi(e){var t=ri(e),n=Vn[t];if("function"!=typeof n||!(t in $n.prototype))return!1;if(e===n)return!0;var r=ni(n);return!!r&&e===r[0]}(bn&&fi(new bn(new ArrayBuffer(1)))!=P||xn&&fi(new xn)!=x||_n&&fi(_n.resolve())!=L||On&&fi(new On)!=S||Ln&&fi(new Ln)!=k)&&(fi=function(e){var t=xr(e),n=t==O?e.constructor:o,r=n?Ai(n):"";if(r)switch(r){case jn:return P;case kn:return x;case Rn:return L;case Pn:return S;case In:return k}return t});var yi=Re?Ga:ds;function wi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ke)}function bi(e){return e==e&&!Ka(e)}function xi(e,t){return function(n){return null!=n&&n[e]===t&&(t!==o||e in Oe(n))}}function _i(e,t,n){return t=vn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=vn(o.length-t,0),l=r(a);++i<a;)l[i]=o[t+i];i=-1;for(var s=r(t+1);++i<t;)s[i]=o[i];return s[t]=n(l),_t(e,this,s)}}function Oi(e,t){return t.length<2?e:wr(e,Qr(t,0,-1))}function Li(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ei=ki(Kr),Si=ut||function(e,t){return ft.setTimeout(e,t)},Mi=ki(Xr);function ji(e,t,n){var r=t+"";return Mi(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Lt(h,(function(n){var r="_."+n[0];t&n[1]&&!jt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(le):[]}(r),n)))}function ki(e){var t=0,n=0;return function(){var r=Cn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ri(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=Ur(n,i),l=e[a];e[a]=e[n],e[n]=l}return e.length=t,e}var Pi=function(e){var t=ka((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,o){t.push(r?o.replace(ue,"$1"):n||e)})),t}),(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}();function Ii(e){if("string"==typeof e||ol(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ai(e){if(null!=e){try{return Pe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ti(e){if(e instanceof $n)return e.clone();var t=new Zn(e.__wrapped__,e.__chain__);return t.__actions__=Eo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Hi=zr((function(e,t){return Na(e)?sr(e,hr(t,1,Na,!0)):[]})),Vi=zr((function(e,t){var n=zi(t);return Na(n)&&(n=o),Na(e)?sr(e,hr(t,1,Na,!0),ii(n,2)):[]})),Bi=zr((function(e,t){var n=zi(t);return Na(n)&&(n=o),Na(e)?sr(e,hr(t,1,Na,!0),o,n):[]}));function Di(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ul(n);return o<0&&(o=vn(r+o,0)),Bt(e,ii(t,3),o)}function Zi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=ul(n),i=n<0?vn(r+i,0):gn(i,r-1)),Bt(e,ii(t,3),i,!0)}function $i(e){return null!=e&&e.length?hr(e,1):[]}function Fi(e){return e&&e.length?e[0]:o}var Ni=zr((function(e){var t=Rt(e,ho);return t.length&&t[0]===e[0]?Er(t):[]})),Ui=zr((function(e){var t=zi(e),n=Rt(e,ho);return t===zi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Er(n,ii(t,2)):[]})),Wi=zr((function(e){var t=zi(e),n=Rt(e,ho);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Er(n,o,t):[]}));function zi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Gi=zr(qi);function qi(e,t){return e&&e.length&&t&&t.length?Fr(e,t):e}var Yi=Qo((function(e,t){var n=null==e?0:e.length,r=rr(e,t);return Nr(e,Rt(t,(function(e){return vi(e,n)?+e:e})).sort(_o)),r}));function Ki(e){return null==e?e:wn.call(e)}var Xi=zr((function(e){return ao(hr(e,1,Na,!0))})),Ji=zr((function(e){var t=zi(e);return Na(t)&&(t=o),ao(hr(e,1,Na,!0),ii(t,2))})),Qi=zr((function(e){var t=zi(e);return t="function"==typeof t?t:o,ao(hr(e,1,Na,!0),o,t)}));function ea(e){if(!e||!e.length)return[];var t=0;return e=Mt(e,(function(e){if(Na(e))return t=vn(e.length,t),!0})),Gt(t,(function(t){return Rt(e,Nt(t))}))}function ta(e,t){if(!e||!e.length)return[];var n=ea(e);return null==t?n:Rt(n,(function(e){return _t(t,o,e)}))}var na=zr((function(e,t){return Na(e)?sr(e,t):[]})),ra=zr((function(e){return fo(Mt(e,Na))})),oa=zr((function(e){var t=zi(e);return Na(t)&&(t=o),fo(Mt(e,Na),ii(t,2))})),ia=zr((function(e){var t=zi(e);return t="function"==typeof t?t:o,fo(Mt(e,Na),o,t)})),aa=zr(ea),la=zr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,ta(e,n)}));function sa(e){var t=Vn(e);return t.__chain__=!0,t}function ca(e,t){return t(e)}var ua=Qo((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return rr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof $n&&vi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ca,args:[i],thisArg:o}),new Zn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)})),fa=Mo((function(e,t,n){Ie.call(e,n)?++e[n]:nr(e,n,1)})),da=To(Di),pa=To(Zi);function ha(e,t){return(Za(e)?Lt:cr)(e,ii(t,3))}function va(e,t){return(Za(e)?Et:ur)(e,ii(t,3))}var ga=Mo((function(e,t,n){Ie.call(e,n)?e[n].push(t):nr(e,n,[t])})),Ca=zr((function(e,t,n){var o=-1,i="function"==typeof t,a=Fa(e)?r(e.length):[];return cr(e,(function(e){a[++o]=i?_t(t,e,n):Sr(e,t,n)})),a})),ma=Mo((function(e,t,n){nr(e,n,t)}));function ya(e,t){return(Za(e)?Rt:Tr)(e,ii(t,3))}var wa=Mo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),ba=zr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&gi(e,t[0],t[1])?t=[]:n>2&&gi(t[0],t[1],t[2])&&(t=[t[0]]),Zr(e,hr(t,1),[])})),xa=ct||function(){return ft.Date.now()};function _a(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,qo(e,c,o,o,o,o,t)}function Oa(e,t){var n;if("function"!=typeof t)throw new Se(i);return e=ul(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var La=zr((function(e,t,n){var r=1;if(n.length){var o=ln(n,oi(La));r|=s}return qo(e,r,t,n,o)})),Ea=zr((function(e,t,n){var r=3;if(n.length){var o=ln(n,oi(Ea));r|=s}return qo(t,r,e,n,o)}));function Sa(e,t,n){var r,a,l,s,c,u,f=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new Se(i);function v(t){var n=r,i=a;return r=a=o,f=t,s=e.apply(i,n)}function g(e){var n=e-u;return u===o||n>=t||n<0||p&&e-f>=l}function C(){var e=xa();if(g(e))return m(e);c=Si(C,function(e){var n=t-(e-u);return p?gn(n,l-(e-f)):n}(e))}function m(e){return c=o,h&&r?v(e):(r=a=o,s)}function y(){var e=xa(),n=g(e);if(r=arguments,a=this,u=e,n){if(c===o)return function(e){return f=e,c=Si(C,t),d?v(e):s}(u);if(p)return yo(c),c=Si(C,t),v(u)}return c===o&&(c=Si(C,t)),s}return t=dl(t)||0,Ka(n)&&(d=!!n.leading,l=(p="maxWait"in n)?vn(dl(n.maxWait)||0,t):l,h="trailing"in n?!!n.trailing:h),y.cancel=function(){c!==o&&yo(c),f=0,r=u=a=c=o},y.flush=function(){return c===o?s:m(xa())},y}var Ma=zr((function(e,t){return lr(e,1,t)})),ja=zr((function(e,t,n){return lr(e,dl(t)||0,n)}));function ka(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Se(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(ka.Cache||Un),n}function Ra(e){if("function"!=typeof e)throw new Se(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ka.Cache=Un;var Pa=Co((function(e,t){var n=(t=1==t.length&&Za(t[0])?Rt(t[0],Yt(ii())):Rt(hr(t,1),Yt(ii()))).length;return zr((function(r){for(var o=-1,i=gn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return _t(e,this,r)}))})),Ia=zr((function(e,t){var n=ln(t,oi(Ia));return qo(e,s,o,t,n)})),Aa=zr((function(e,t){var n=ln(t,oi(Aa));return qo(e,64,o,t,n)})),Ta=Qo((function(e,t){return qo(e,256,o,o,o,t)}));function Ha(e,t){return e===t||e!=e&&t!=t}var Va=No(_r),Ba=No((function(e,t){return e>=t})),Da=Mr(function(){return arguments}())?Mr:function(e){return Xa(e)&&Ie.call(e,"callee")&&!ze.call(e,"callee")},Za=r.isArray,$a=Ct?Yt(Ct):function(e){return Xa(e)&&xr(e)==R};function Fa(e){return null!=e&&Ya(e.length)&&!Ga(e)}function Na(e){return Xa(e)&&Fa(e)}var Ua=gt||ds,Wa=mt?Yt(mt):function(e){return Xa(e)&&xr(e)==m};function za(e){if(!Xa(e))return!1;var t=xr(e);return t==y||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!el(e)}function Ga(e){if(!Ka(e))return!1;var t=xr(e);return t==w||t==b||"[object AsyncFunction]"==t||"[object Proxy]"==t}function qa(e){return"number"==typeof e&&e==ul(e)}function Ya(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function Ka(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Xa(e){return null!=e&&"object"==typeof e}var Ja=yt?Yt(yt):function(e){return Xa(e)&&fi(e)==x};function Qa(e){return"number"==typeof e||Xa(e)&&xr(e)==_}function el(e){if(!Xa(e)||xr(e)!=O)return!1;var t=Ue(e);if(null===t)return!0;var n=Ie.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Pe.call(n)==Ve}var tl=wt?Yt(wt):function(e){return Xa(e)&&xr(e)==E},nl=bt?Yt(bt):function(e){return Xa(e)&&fi(e)==S};function rl(e){return"string"==typeof e||!Za(e)&&Xa(e)&&xr(e)==M}function ol(e){return"symbol"==typeof e||Xa(e)&&xr(e)==j}var il=xt?Yt(xt):function(e){return Xa(e)&&Ya(e.length)&&!!ot[xr(e)]},al=No(Ar),ll=No((function(e,t){return e<=t}));function sl(e){if(!e)return[];if(Fa(e))return rl(e)?un(e):Eo(e);if(Ye&&e[Ye])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ye]());var t=fi(e);return(t==x?on:t==S?sn:Hl)(e)}function cl(e){return e?(e=dl(e))===u||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ul(e){var t=cl(e),n=t%1;return t==t?n?t-n:t:0}function fl(e){return e?or(ul(e),0,p):0}function dl(e){if("number"==typeof e)return e;if(ol(e))return d;if(Ka(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ka(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=qt(e);var n=he.test(e);return n||ge.test(e)?st(e.slice(2),n?2:8):pe.test(e)?d:+e}function pl(e){return So(e,Ml(e))}function hl(e){return null==e?"":io(e)}var vl=jo((function(e,t){if(wi(t)||Fa(t))So(t,Sl(t),e);else for(var n in t)Ie.call(t,n)&&Jn(e,n,t[n])})),gl=jo((function(e,t){So(t,Ml(t),e)})),Cl=jo((function(e,t,n,r){So(t,Ml(t),e,r)})),ml=jo((function(e,t,n,r){So(t,Sl(t),e,r)})),yl=Qo(rr),wl=zr((function(e,t){e=Oe(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&gi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],l=Ml(a),s=-1,c=l.length;++s<c;){var u=l[s],f=e[u];(f===o||Ha(f,ke[u])&&!Ie.call(e,u))&&(e[u]=a[u])}return e})),bl=zr((function(e){return e.push(o,Ko),_t(kl,o,e)}));function xl(e,t,n){var r=null==e?o:wr(e,t);return r===o?n:r}function _l(e,t){return null!=e&&di(e,t,Lr)}var Ol=Bo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=He.call(t)),e[t]=n}),Kl(Ql)),Ll=Bo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=He.call(t)),Ie.call(e,t)?e[t].push(n):e[t]=[n]}),ii),El=zr(Sr);function Sl(e){return Fa(e)?Gn(e):Ir(e)}function Ml(e){return Fa(e)?Gn(e,!0):function(e){if(!Ka(e))return function(e){var t=[];if(null!=e)for(var n in Oe(e))t.push(n);return t}(e);var t=wi(e),n=[];for(var r in e)("constructor"!=r||!t&&Ie.call(e,r))&&n.push(r);return n}(e)}var jl=jo((function(e,t,n){Br(e,t,n)})),kl=jo((function(e,t,n,r){Br(e,t,n,r)})),Rl=Qo((function(e,t){var n={};if(null==e)return n;var r=!1;t=Rt(t,(function(t){return t=go(t,e),r||(r=t.length>1),t})),So(e,ti(e),n),r&&(n=ir(n,7,Xo));for(var o=t.length;o--;)lo(n,t[o]);return n})),Pl=Qo((function(e,t){return null==e?{}:function(e,t){return $r(e,t,(function(t,n){return _l(e,n)}))}(e,t)}));function Il(e,t){if(null==e)return{};var n=Rt(ti(e),(function(e){return[e]}));return t=ii(t),$r(e,n,(function(e,n){return t(e,n[0])}))}var Al=Go(Sl),Tl=Go(Ml);function Hl(e){return null==e?[]:Kt(e,Sl(e))}var Vl=Io((function(e,t,n){return t=t.toLowerCase(),e+(n?Bl(t):t)}));function Bl(e){return zl(hl(e).toLowerCase())}function Dl(e){return(e=hl(e))&&e.replace(me,en).replace(Xe,"")}var Zl=Io((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),$l=Io((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Fl=Po("toLowerCase"),Nl=Io((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Ul=Io((function(e,t,n){return e+(n?" ":"")+zl(t)})),Wl=Io((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),zl=Po("toUpperCase");function Gl(e,t,n){return e=hl(e),(t=n?o:t)===o?function(e){return tt.test(e)}(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.match(se)||[]}(e):e.match(t)||[]}var ql=zr((function(e,t){try{return _t(e,o,t)}catch(e){return za(e)?e:new be(e)}})),Yl=Qo((function(e,t){return Lt(t,(function(t){t=Ii(t),nr(e,t,La(e[t],e))})),e}));function Kl(e){return function(){return e}}var Xl=Ho(),Jl=Ho(!0);function Ql(e){return e}function es(e){return Pr("function"==typeof e?e:ir(e,1))}var ts=zr((function(e,t){return function(n){return Sr(n,e,t)}})),ns=zr((function(e,t){return function(n){return Sr(e,n,t)}}));function rs(e,t,n){var r=Sl(t),o=yr(t,r);null!=n||Ka(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=yr(t,Sl(t)));var i=!(Ka(n)&&"chain"in n&&!n.chain),a=Ga(e);return Lt(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Eo(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Pt([this.value()],arguments))})})),e}function os(){}var is=Zo(Rt),as=Zo(St),ls=Zo(Tt);function ss(e){return Ci(e)?Nt(Ii(e)):function(e){return function(t){return wr(t,e)}}(e)}var cs=Fo(),us=Fo(!0);function fs(){return[]}function ds(){return!1}var ps,hs=Do((function(e,t){return e+t}),0),vs=Wo("ceil"),gs=Do((function(e,t){return e/t}),1),Cs=Wo("floor"),ms=Do((function(e,t){return e*t}),1),ys=Wo("round"),ws=Do((function(e,t){return e-t}),0);return Vn.after=function(e,t){if("function"!=typeof t)throw new Se(i);return e=ul(e),function(){if(--e<1)return t.apply(this,arguments)}},Vn.ary=_a,Vn.assign=vl,Vn.assignIn=gl,Vn.assignInWith=Cl,Vn.assignWith=ml,Vn.at=yl,Vn.before=Oa,Vn.bind=La,Vn.bindAll=Yl,Vn.bindKey=Ea,Vn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Za(e)?e:[e]},Vn.chain=sa,Vn.chunk=function(e,t,n){t=(n?gi(e,t,n):t===o)?1:vn(ul(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,l=0,s=r(dt(i/t));a<i;)s[l++]=Qr(e,a,a+=t);return s},Vn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Vn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Pt(Za(n)?Eo(n):[n],hr(t,1))},Vn.cond=function(e){var t=null==e?0:e.length,n=ii();return e=t?Rt(e,(function(e){if("function"!=typeof e[1])throw new Se(i);return[n(e[0]),e[1]]})):[],zr((function(n){for(var r=-1;++r<t;){var o=e[r];if(_t(o[0],this,n))return _t(o[1],this,n)}}))},Vn.conforms=function(e){return function(e){var t=Sl(e);return function(n){return ar(n,e,t)}}(ir(e,1))},Vn.constant=Kl,Vn.countBy=fa,Vn.create=function(e,t){var n=Bn(e);return null==t?n:tr(n,t)},Vn.curry=function e(t,n,r){var i=qo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Vn.curryRight=function e(t,n,r){var i=qo(t,16,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Vn.debounce=Sa,Vn.defaults=wl,Vn.defaultsDeep=bl,Vn.defer=Ma,Vn.delay=ja,Vn.difference=Hi,Vn.differenceBy=Vi,Vn.differenceWith=Bi,Vn.drop=function(e,t,n){var r=null==e?0:e.length;return r?Qr(e,(t=n||t===o?1:ul(t))<0?0:t,r):[]},Vn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Qr(e,0,(t=r-(t=n||t===o?1:ul(t)))<0?0:t):[]},Vn.dropRightWhile=function(e,t){return e&&e.length?co(e,ii(t,3),!0,!0):[]},Vn.dropWhile=function(e,t){return e&&e.length?co(e,ii(t,3),!0):[]},Vn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&gi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=ul(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:ul(r))<0&&(r+=i),r=n>r?0:fl(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Vn.filter=function(e,t){return(Za(e)?Mt:pr)(e,ii(t,3))},Vn.flatMap=function(e,t){return hr(ya(e,t),1)},Vn.flatMapDeep=function(e,t){return hr(ya(e,t),u)},Vn.flatMapDepth=function(e,t,n){return n=n===o?1:ul(n),hr(ya(e,t),n)},Vn.flatten=$i,Vn.flattenDeep=function(e){return null!=e&&e.length?hr(e,u):[]},Vn.flattenDepth=function(e,t){return null!=e&&e.length?hr(e,t=t===o?1:ul(t)):[]},Vn.flip=function(e){return qo(e,512)},Vn.flow=Xl,Vn.flowRight=Jl,Vn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Vn.functions=function(e){return null==e?[]:yr(e,Sl(e))},Vn.functionsIn=function(e){return null==e?[]:yr(e,Ml(e))},Vn.groupBy=ga,Vn.initial=function(e){return null!=e&&e.length?Qr(e,0,-1):[]},Vn.intersection=Ni,Vn.intersectionBy=Ui,Vn.intersectionWith=Wi,Vn.invert=Ol,Vn.invertBy=Ll,Vn.invokeMap=Ca,Vn.iteratee=es,Vn.keyBy=ma,Vn.keys=Sl,Vn.keysIn=Ml,Vn.map=ya,Vn.mapKeys=function(e,t){var n={};return t=ii(t,3),Cr(e,(function(e,r,o){nr(n,t(e,r,o),e)})),n},Vn.mapValues=function(e,t){var n={};return t=ii(t,3),Cr(e,(function(e,r,o){nr(n,r,t(e,r,o))})),n},Vn.matches=function(e){return Hr(ir(e,1))},Vn.matchesProperty=function(e,t){return Vr(e,ir(t,1))},Vn.memoize=ka,Vn.merge=jl,Vn.mergeWith=kl,Vn.method=ts,Vn.methodOf=ns,Vn.mixin=rs,Vn.negate=Ra,Vn.nthArg=function(e){return e=ul(e),zr((function(t){return Dr(t,e)}))},Vn.omit=Rl,Vn.omitBy=function(e,t){return Il(e,Ra(ii(t)))},Vn.once=function(e){return Oa(2,e)},Vn.orderBy=function(e,t,n,r){return null==e?[]:(Za(t)||(t=null==t?[]:[t]),Za(n=r?o:n)||(n=null==n?[]:[n]),Zr(e,t,n))},Vn.over=is,Vn.overArgs=Pa,Vn.overEvery=as,Vn.overSome=ls,Vn.partial=Ia,Vn.partialRight=Aa,Vn.partition=wa,Vn.pick=Pl,Vn.pickBy=Il,Vn.property=ss,Vn.propertyOf=function(e){return function(t){return null==e?o:wr(e,t)}},Vn.pull=Gi,Vn.pullAll=qi,Vn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Fr(e,t,ii(n,2)):e},Vn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Fr(e,t,o,n):e},Vn.pullAt=Yi,Vn.range=cs,Vn.rangeRight=us,Vn.rearg=Ta,Vn.reject=function(e,t){return(Za(e)?Mt:pr)(e,Ra(ii(t,3)))},Vn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ii(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Nr(e,o),n},Vn.rest=function(e,t){if("function"!=typeof e)throw new Se(i);return zr(e,t=t===o?t:ul(t))},Vn.reverse=Ki,Vn.sampleSize=function(e,t,n){return t=(n?gi(e,t,n):t===o)?1:ul(t),(Za(e)?Yn:qr)(e,t)},Vn.set=function(e,t,n){return null==e?e:Yr(e,t,n)},Vn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Yr(e,t,n,r)},Vn.shuffle=function(e){return(Za(e)?Kn:Jr)(e)},Vn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&gi(e,t,n)?(t=0,n=r):(t=null==t?0:ul(t),n=n===o?r:ul(n)),Qr(e,t,n)):[]},Vn.sortBy=ba,Vn.sortedUniq=function(e){return e&&e.length?ro(e):[]},Vn.sortedUniqBy=function(e,t){return e&&e.length?ro(e,ii(t,2)):[]},Vn.split=function(e,t,n){return n&&"number"!=typeof n&&gi(e,t,n)&&(t=n=o),(n=n===o?p:n>>>0)?(e=hl(e))&&("string"==typeof t||null!=t&&!tl(t))&&!(t=io(t))&&rn(e)?mo(un(e),0,n):e.split(t,n):[]},Vn.spread=function(e,t){if("function"!=typeof e)throw new Se(i);return t=null==t?0:vn(ul(t),0),zr((function(n){var r=n[t],o=mo(n,0,t);return r&&Pt(o,r),_t(e,this,o)}))},Vn.tail=function(e){var t=null==e?0:e.length;return t?Qr(e,1,t):[]},Vn.take=function(e,t,n){return e&&e.length?Qr(e,0,(t=n||t===o?1:ul(t))<0?0:t):[]},Vn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Qr(e,(t=r-(t=n||t===o?1:ul(t)))<0?0:t,r):[]},Vn.takeRightWhile=function(e,t){return e&&e.length?co(e,ii(t,3),!1,!0):[]},Vn.takeWhile=function(e,t){return e&&e.length?co(e,ii(t,3)):[]},Vn.tap=function(e,t){return t(e),e},Vn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Se(i);return Ka(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Sa(e,t,{leading:r,maxWait:t,trailing:o})},Vn.thru=ca,Vn.toArray=sl,Vn.toPairs=Al,Vn.toPairsIn=Tl,Vn.toPath=function(e){return Za(e)?Rt(e,Ii):ol(e)?[e]:Eo(Pi(hl(e)))},Vn.toPlainObject=pl,Vn.transform=function(e,t,n){var r=Za(e),o=r||Ua(e)||il(e);if(t=ii(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Ka(e)&&Ga(i)?Bn(Ue(e)):{}}return(o?Lt:Cr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Vn.unary=function(e){return _a(e,1)},Vn.union=Xi,Vn.unionBy=Ji,Vn.unionWith=Qi,Vn.uniq=function(e){return e&&e.length?ao(e):[]},Vn.uniqBy=function(e,t){return e&&e.length?ao(e,ii(t,2)):[]},Vn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?ao(e,o,t):[]},Vn.unset=function(e,t){return null==e||lo(e,t)},Vn.unzip=ea,Vn.unzipWith=ta,Vn.update=function(e,t,n){return null==e?e:so(e,t,vo(n))},Vn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:so(e,t,vo(n),r)},Vn.values=Hl,Vn.valuesIn=function(e){return null==e?[]:Kt(e,Ml(e))},Vn.without=na,Vn.words=Gl,Vn.wrap=function(e,t){return Ia(vo(t),e)},Vn.xor=ra,Vn.xorBy=oa,Vn.xorWith=ia,Vn.zip=aa,Vn.zipObject=function(e,t){return po(e||[],t||[],Jn)},Vn.zipObjectDeep=function(e,t){return po(e||[],t||[],Yr)},Vn.zipWith=la,Vn.entries=Al,Vn.entriesIn=Tl,Vn.extend=gl,Vn.extendWith=Cl,rs(Vn,Vn),Vn.add=hs,Vn.attempt=ql,Vn.camelCase=Vl,Vn.capitalize=Bl,Vn.ceil=vs,Vn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=dl(n))==n?n:0),t!==o&&(t=(t=dl(t))==t?t:0),or(dl(e),t,n)},Vn.clone=function(e){return ir(e,4)},Vn.cloneDeep=function(e){return ir(e,5)},Vn.cloneDeepWith=function(e,t){return ir(e,5,t="function"==typeof t?t:o)},Vn.cloneWith=function(e,t){return ir(e,4,t="function"==typeof t?t:o)},Vn.conformsTo=function(e,t){return null==t||ar(e,t,Sl(t))},Vn.deburr=Dl,Vn.defaultTo=function(e,t){return null==e||e!=e?t:e},Vn.divide=gs,Vn.endsWith=function(e,t,n){e=hl(e),t=io(t);var r=e.length,i=n=n===o?r:or(ul(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Vn.eq=Ha,Vn.escape=function(e){return(e=hl(e))&&q.test(e)?e.replace(z,tn):e},Vn.escapeRegExp=function(e){return(e=hl(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Vn.every=function(e,t,n){var r=Za(e)?St:fr;return n&&gi(e,t,n)&&(t=o),r(e,ii(t,3))},Vn.find=da,Vn.findIndex=Di,Vn.findKey=function(e,t){return Vt(e,ii(t,3),Cr)},Vn.findLast=pa,Vn.findLastIndex=Zi,Vn.findLastKey=function(e,t){return Vt(e,ii(t,3),mr)},Vn.floor=Cs,Vn.forEach=ha,Vn.forEachRight=va,Vn.forIn=function(e,t){return null==e?e:vr(e,ii(t,3),Ml)},Vn.forInRight=function(e,t){return null==e?e:gr(e,ii(t,3),Ml)},Vn.forOwn=function(e,t){return e&&Cr(e,ii(t,3))},Vn.forOwnRight=function(e,t){return e&&mr(e,ii(t,3))},Vn.get=xl,Vn.gt=Va,Vn.gte=Ba,Vn.has=function(e,t){return null!=e&&di(e,t,Or)},Vn.hasIn=_l,Vn.head=Fi,Vn.identity=Ql,Vn.includes=function(e,t,n,r){e=Fa(e)?e:Hl(e),n=n&&!r?ul(n):0;var o=e.length;return n<0&&(n=vn(o+n,0)),rl(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Dt(e,t,n)>-1},Vn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ul(n);return o<0&&(o=vn(r+o,0)),Dt(e,t,o)},Vn.inRange=function(e,t,n){return t=cl(t),n===o?(n=t,t=0):n=cl(n),function(e,t,n){return e>=gn(t,n)&&e<vn(t,n)}(e=dl(e),t,n)},Vn.invoke=El,Vn.isArguments=Da,Vn.isArray=Za,Vn.isArrayBuffer=$a,Vn.isArrayLike=Fa,Vn.isArrayLikeObject=Na,Vn.isBoolean=function(e){return!0===e||!1===e||Xa(e)&&xr(e)==C},Vn.isBuffer=Ua,Vn.isDate=Wa,Vn.isElement=function(e){return Xa(e)&&1===e.nodeType&&!el(e)},Vn.isEmpty=function(e){if(null==e)return!0;if(Fa(e)&&(Za(e)||"string"==typeof e||"function"==typeof e.splice||Ua(e)||il(e)||Da(e)))return!e.length;var t=fi(e);if(t==x||t==S)return!e.size;if(wi(e))return!Ir(e).length;for(var n in e)if(Ie.call(e,n))return!1;return!0},Vn.isEqual=function(e,t){return jr(e,t)},Vn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?jr(e,t,o,n):!!r},Vn.isError=za,Vn.isFinite=function(e){return"number"==typeof e&&Ht(e)},Vn.isFunction=Ga,Vn.isInteger=qa,Vn.isLength=Ya,Vn.isMap=Ja,Vn.isMatch=function(e,t){return e===t||kr(e,t,li(t))},Vn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,kr(e,t,li(t),n)},Vn.isNaN=function(e){return Qa(e)&&e!=+e},Vn.isNative=function(e){if(yi(e))throw new be("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Rr(e)},Vn.isNil=function(e){return null==e},Vn.isNull=function(e){return null===e},Vn.isNumber=Qa,Vn.isObject=Ka,Vn.isObjectLike=Xa,Vn.isPlainObject=el,Vn.isRegExp=tl,Vn.isSafeInteger=function(e){return qa(e)&&e>=-9007199254740991&&e<=f},Vn.isSet=nl,Vn.isString=rl,Vn.isSymbol=ol,Vn.isTypedArray=il,Vn.isUndefined=function(e){return e===o},Vn.isWeakMap=function(e){return Xa(e)&&fi(e)==k},Vn.isWeakSet=function(e){return Xa(e)&&"[object WeakSet]"==xr(e)},Vn.join=function(e,t){return null==e?"":Ut.call(e,t)},Vn.kebabCase=Zl,Vn.last=zi,Vn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=ul(n))<0?vn(r+i,0):gn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Bt(e,$t,i,!0)},Vn.lowerCase=$l,Vn.lowerFirst=Fl,Vn.lt=al,Vn.lte=ll,Vn.max=function(e){return e&&e.length?dr(e,Ql,_r):o},Vn.maxBy=function(e,t){return e&&e.length?dr(e,ii(t,2),_r):o},Vn.mean=function(e){return Ft(e,Ql)},Vn.meanBy=function(e,t){return Ft(e,ii(t,2))},Vn.min=function(e){return e&&e.length?dr(e,Ql,Ar):o},Vn.minBy=function(e,t){return e&&e.length?dr(e,ii(t,2),Ar):o},Vn.stubArray=fs,Vn.stubFalse=ds,Vn.stubObject=function(){return{}},Vn.stubString=function(){return""},Vn.stubTrue=function(){return!0},Vn.multiply=ms,Vn.nth=function(e,t){return e&&e.length?Dr(e,ul(t)):o},Vn.noConflict=function(){return ft._===this&&(ft._=Be),this},Vn.noop=os,Vn.now=xa,Vn.pad=function(e,t,n){e=hl(e);var r=(t=ul(t))?cn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return $o(pt(o),n)+e+$o(dt(o),n)},Vn.padEnd=function(e,t,n){e=hl(e);var r=(t=ul(t))?cn(e):0;return t&&r<t?e+$o(t-r,n):e},Vn.padStart=function(e,t,n){e=hl(e);var r=(t=ul(t))?cn(e):0;return t&&r<t?$o(t-r,n)+e:e},Vn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),mn(hl(e).replace(re,""),t||0)},Vn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&gi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=cl(e),t===o?(t=e,e=0):t=cl(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=yn();return gn(e+i*(t-e+lt("1e-"+((i+"").length-1))),t)}return Ur(e,t)},Vn.reduce=function(e,t,n){var r=Za(e)?It:Wt,o=arguments.length<3;return r(e,ii(t,4),n,o,cr)},Vn.reduceRight=function(e,t,n){var r=Za(e)?At:Wt,o=arguments.length<3;return r(e,ii(t,4),n,o,ur)},Vn.repeat=function(e,t,n){return t=(n?gi(e,t,n):t===o)?1:ul(t),Wr(hl(e),t)},Vn.replace=function(){var e=arguments,t=hl(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Vn.result=function(e,t,n){var r=-1,i=(t=go(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[Ii(t[r])];a===o&&(r=i,a=n),e=Ga(a)?a.call(e):a}return e},Vn.round=ys,Vn.runInContext=e,Vn.sample=function(e){return(Za(e)?qn:Gr)(e)},Vn.size=function(e){if(null==e)return 0;if(Fa(e))return rl(e)?cn(e):e.length;var t=fi(e);return t==x||t==S?e.size:Ir(e).length},Vn.snakeCase=Nl,Vn.some=function(e,t,n){var r=Za(e)?Tt:eo;return n&&gi(e,t,n)&&(t=o),r(e,ii(t,3))},Vn.sortedIndex=function(e,t){return to(e,t)},Vn.sortedIndexBy=function(e,t,n){return no(e,t,ii(n,2))},Vn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=to(e,t);if(r<n&&Ha(e[r],t))return r}return-1},Vn.sortedLastIndex=function(e,t){return to(e,t,!0)},Vn.sortedLastIndexBy=function(e,t,n){return no(e,t,ii(n,2),!0)},Vn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=to(e,t,!0)-1;if(Ha(e[n],t))return n}return-1},Vn.startCase=Ul,Vn.startsWith=function(e,t,n){return e=hl(e),n=null==n?0:or(ul(n),0,e.length),t=io(t),e.slice(n,n+t.length)==t},Vn.subtract=ws,Vn.sum=function(e){return e&&e.length?zt(e,Ql):0},Vn.sumBy=function(e,t){return e&&e.length?zt(e,ii(t,2)):0},Vn.template=function(e,t,n){var r=Vn.templateSettings;n&&gi(e,t,n)&&(t=o),e=hl(e),t=Cl({},t,r,Yo);var i,a,l=Cl({},t.imports,r.imports,Yo),s=Sl(l),c=Kt(l,s),u=0,f=t.interpolate||ye,d="__p += '",p=Le((t.escape||ye).source+"|"+f.source+"|"+(f===X?fe:ye).source+"|"+(t.evaluate||ye).source+"|$","g"),h="//# sourceURL="+(Ie.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(p,(function(t,n,r,o,l,s){return r||(r=o),d+=e.slice(u,s).replace(we,nn),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),l&&(a=!0,d+="';\n"+l+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=s+t.length,t})),d+="';\n";var v=Ie.call(t,"variable")&&t.variable;if(v){if(ce.test(v))throw new be("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(a?d.replace(F,""):d).replace(N,"$1").replace(U,"$1;"),d="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=ql((function(){return xe(s,h+"return "+d).apply(o,c)}));if(g.source=d,za(g))throw g;return g},Vn.times=function(e,t){if((e=ul(e))<1||e>f)return[];var n=p,r=gn(e,p);t=ii(t),e-=p;for(var o=Gt(r,t);++n<e;)t(n);return o},Vn.toFinite=cl,Vn.toInteger=ul,Vn.toLength=fl,Vn.toLower=function(e){return hl(e).toLowerCase()},Vn.toNumber=dl,Vn.toSafeInteger=function(e){return e?or(ul(e),-9007199254740991,f):0===e?e:0},Vn.toString=hl,Vn.toUpper=function(e){return hl(e).toUpperCase()},Vn.trim=function(e,t,n){if((e=hl(e))&&(n||t===o))return qt(e);if(!e||!(t=io(t)))return e;var r=un(e),i=un(t);return mo(r,Jt(r,i),Qt(r,i)+1).join("")},Vn.trimEnd=function(e,t,n){if((e=hl(e))&&(n||t===o))return e.slice(0,fn(e)+1);if(!e||!(t=io(t)))return e;var r=un(e);return mo(r,0,Qt(r,un(t))+1).join("")},Vn.trimStart=function(e,t,n){if((e=hl(e))&&(n||t===o))return e.replace(re,"");if(!e||!(t=io(t)))return e;var r=un(e);return mo(r,Jt(r,un(t))).join("")},Vn.truncate=function(e,t){var n=30,r="...";if(Ka(t)){var i="separator"in t?t.separator:i;n="length"in t?ul(t.length):n,r="omission"in t?io(t.omission):r}var a=(e=hl(e)).length;if(rn(e)){var l=un(e);a=l.length}if(n>=a)return e;var s=n-cn(r);if(s<1)return r;var c=l?mo(l,0,s).join(""):e.slice(0,s);if(i===o)return c+r;if(l&&(s+=c.length-s),tl(i)){if(e.slice(s).search(i)){var u,f=c;for(i.global||(i=Le(i.source,hl(de.exec(i))+"g")),i.lastIndex=0;u=i.exec(f);)var d=u.index;c=c.slice(0,d===o?s:d)}}else if(e.indexOf(io(i),s)!=s){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+r},Vn.unescape=function(e){return(e=hl(e))&&G.test(e)?e.replace(W,dn):e},Vn.uniqueId=function(e){var t=++Ae;return hl(e)+t},Vn.upperCase=Wl,Vn.upperFirst=zl,Vn.each=ha,Vn.eachRight=va,Vn.first=Fi,rs(Vn,(ps={},Cr(Vn,(function(e,t){Ie.call(Vn.prototype,t)||(ps[t]=e)})),ps),{chain:!1}),Vn.VERSION="4.17.21",Lt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Vn[e].placeholder=Vn})),Lt(["drop","take"],(function(e,t){$n.prototype[e]=function(n){n=n===o?1:vn(ul(n),0);var r=this.__filtered__&&!t?new $n(this):this.clone();return r.__filtered__?r.__takeCount__=gn(n,r.__takeCount__):r.__views__.push({size:gn(n,p),type:e+(r.__dir__<0?"Right":"")}),r},$n.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Lt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;$n.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ii(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Lt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");$n.prototype[e]=function(){return this[n](1).value()[0]}})),Lt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");$n.prototype[e]=function(){return this.__filtered__?new $n(this):this[n](1)}})),$n.prototype.compact=function(){return this.filter(Ql)},$n.prototype.find=function(e){return this.filter(e).head()},$n.prototype.findLast=function(e){return this.reverse().find(e)},$n.prototype.invokeMap=zr((function(e,t){return"function"==typeof e?new $n(this):this.map((function(n){return Sr(n,e,t)}))})),$n.prototype.reject=function(e){return this.filter(Ra(ii(e)))},$n.prototype.slice=function(e,t){e=ul(e);var n=this;return n.__filtered__&&(e>0||t<0)?new $n(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=ul(t))<0?n.dropRight(-t):n.take(t-e)),n)},$n.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},$n.prototype.toArray=function(){return this.take(p)},Cr($n.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Vn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Vn.prototype[t]=function(){var t=this.__wrapped__,l=r?[1]:arguments,s=t instanceof $n,c=l[0],u=s||Za(t),f=function(e){var t=i.apply(Vn,Pt([e],l));return r&&d?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(s=u=!1);var d=this.__chain__,p=!!this.__actions__.length,h=a&&!d,v=s&&!p;if(!a&&u){t=v?t:new $n(this);var g=e.apply(t,l);return g.__actions__.push({func:ca,args:[f],thisArg:o}),new Zn(g,d)}return h&&v?e.apply(this,l):(g=this.thru(f),h?r?g.value()[0]:g.value():g)})})),Lt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Me[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Vn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Za(o)?o:[],e)}return this[n]((function(n){return t.apply(Za(n)?n:[],e)}))}})),Cr($n.prototype,(function(e,t){var n=Vn[t];if(n){var r=n.name+"";Ie.call(Mn,r)||(Mn[r]=[]),Mn[r].push({name:t,func:n})}})),Mn[Vo(o,2).name]=[{name:"wrapper",func:o}],$n.prototype.clone=function(){var e=new $n(this.__wrapped__);return e.__actions__=Eo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Eo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Eo(this.__views__),e},$n.prototype.reverse=function(){if(this.__filtered__){var e=new $n(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},$n.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Za(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=gn(t,e+a);break;case"takeRight":e=vn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,l=i.end,s=l-a,c=r?l:a-1,u=this.__iteratees__,f=u.length,d=0,p=gn(s,this.__takeCount__);if(!n||!r&&o==s&&p==s)return uo(e,this.__actions__);var h=[];e:for(;s--&&d<p;){for(var v=-1,g=e[c+=t];++v<f;){var C=u[v],m=C.iteratee,y=C.type,w=m(g);if(2==y)g=w;else if(!w){if(1==y)continue e;break e}}h[d++]=g}return h},Vn.prototype.at=ua,Vn.prototype.chain=function(){return sa(this)},Vn.prototype.commit=function(){return new Zn(this.value(),this.__chain__)},Vn.prototype.next=function(){this.__values__===o&&(this.__values__=sl(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Vn.prototype.plant=function(e){for(var t,n=this;n instanceof Dn;){var r=Ti(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Vn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof $n){var t=e;return this.__actions__.length&&(t=new $n(this)),(t=t.reverse()).__actions__.push({func:ca,args:[Ki],thisArg:o}),new Zn(t,this.__chain__)}return this.thru(Ki)},Vn.prototype.toJSON=Vn.prototype.valueOf=Vn.prototype.value=function(){return uo(this.__wrapped__,this.__actions__)},Vn.prototype.first=Vn.prototype.head,Ye&&(Vn.prototype[Ye]=function(){return this}),Vn}();ft._=pn,(r=function(){return pn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},300:(e,t,n)=>{var r,o;e=n.nmd(e),function(t){t.runningInNodeJS=function(){return"object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node},t.runningInMainNodeJSModule=function(){return t.runningInNodeJS()&&n.c[n.s]===e},t.commonJSAvailable=function(){return"object"==typeof e.exports},t.runningInWebWorker=function(){return"undefined"==typeof window&&"object"==typeof self&&"function"==typeof self.addEventListener&&"function"==typeof self.close},t.runningInNodeChildProcess=function(){return t.runningInNodeJS()&&"function"==typeof process.send},t.runningInNullOrigin=function(){return"object"==typeof window&&"object"==typeof window.location&&"object"==typeof document&&"http:"!==document.location.protocol&&"https:"!==document.location.protocol},t.webWorkersAvailable=function(){return!("function"!=typeof Worker||t.runningInNullOrigin()||t.runningInNodeJS()||navigator&&navigator.userAgent&&navigator.userAgent.indexOf("Android 4.3")>=0)},t.log=function(e,t){void 0===t&&(t=!1),"object"==typeof console&&t&&"object"==typeof document&&(document.body.innerHTML+=e+"<br/>")},t.createErrorMessage=function(e,n){if(void 0===n&&(n="Unhandled exception"),null==e)return n;if(n+=": ","object"==typeof e.content){if(t.runningInNodeJS())return n+e.content.stack;var r=JSON.stringify(e.content);return"{}"!==r?n+r:n+e.content}return"string"==typeof e.content?n+e.content:n+e},t.printExceptionAndStackTraceToConsole=function(e,n){void 0===n&&(n="Unhandled exception"),t.log(t.createErrorMessage(e,n))},t.getGlobalObject=function(){return"object"==typeof n.g?n.g:"object"==typeof window?window:"object"==typeof self?self:{}},t.toString=Object.prototype.toString,t.commonJSAvailable()&&(e.exports=t)}(o||(o={})),function(e){if("function"==typeof Uint8Array&&0!==new Uint8Array(1).subarray(1).byteLength){var t=function(e,t){var n=function(e,t,n){return e<t?t:e>n?n:e};e|=0,t|=0,arguments.length<1&&(e=0),arguments.length<2&&(t=this.length),e<0&&(e=this.length+e),t<0&&(t=this.length+t),e=n(e,0,this.length);var r=(t=n(t,0,this.length))-e;return r<0&&(r=0),new this.constructor(this.buffer,this.byteOffset+e*this.BYTES_PER_ELEMENT,r)},n=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"],r=void 0;if("object"==typeof window?r=window:"object"==typeof self&&(r=self),void 0!==r)for(var o=0;o<n.length;o++)r[n[o]]&&(r[n[o]].prototype.subarray=t)}}(r||(r={})),function(e){var t=function(){function t(){}return t.compressAsync=function(t,n,r){var o=new e.Timer,i=new e.Compressor;if(!r)throw new TypeError("compressAsync: No callback argument given");if("string"==typeof t)t=e.encodeUTF8(t);else if(null==t||!(t instanceof Uint8Array))return void r(void 0,new TypeError("compressAsync: Invalid input argument, only 'string' and 'Uint8Array' are supported"));var a=e.ArrayTools.splitByteArray(t,n.blockSize),l=[],s=function(t){if(t<a.length){var c=void 0;try{c=i.compressBlock(a[t])}catch(e){return void r(void 0,e)}l.push(c),o.getElapsedTime()<=20?s(t+1):(e.enqueueImmediate((function(){return s(t+1)})),o.restart())}else{var u=e.ArrayTools.concatUint8Arrays(l);e.enqueueImmediate((function(){var t;try{t=e.CompressionCommon.encodeCompressedBytes(u,n.outputEncoding)}catch(e){return void r(void 0,e)}e.enqueueImmediate((function(){return r(t)}))}))}};e.enqueueImmediate((function(){return s(0)}))},t.createCompressionStream=function(){var t=new e.Compressor,r=new(n(99).Transform)({decodeStrings:!0,highWaterMark:65536});return r._transform=function(n,o,i){var a;try{a=e.BufferTools.uint8ArrayToBuffer(t.compressBlock(e.BufferTools.bufferToUint8Array(n)))}catch(e){return void r.emit("error",e)}r.push(a),i()},r},t}();e.AsyncCompressor=t}(o||(o={})),function(e){var t=function(){function t(){}return t.decompressAsync=function(t,n,r){if(!r)throw new TypeError("decompressAsync: No callback argument given");var o=new e.Timer;try{t=e.CompressionCommon.decodeCompressedBytes(t,n.inputEncoding)}catch(e){return void r(void 0,e)}var i=new e.Decompressor,a=e.ArrayTools.splitByteArray(t,n.blockSize),l=[],s=function(t){if(t<a.length){var c=void 0;try{c=i.decompressBlock(a[t])}catch(e){return void r(void 0,e)}l.push(c),o.getElapsedTime()<=20?s(t+1):(e.enqueueImmediate((function(){return s(t+1)})),o.restart())}else{var u=e.ArrayTools.concatUint8Arrays(l);e.enqueueImmediate((function(){var t;try{t=e.CompressionCommon.encodeDecompressedBytes(u,n.outputEncoding)}catch(e){return void r(void 0,e)}e.enqueueImmediate((function(){return r(t)}))}))}};e.enqueueImmediate((function(){return s(0)}))},t.createDecompressionStream=function(){var t=new e.Decompressor,r=new(n(99).Transform)({decodeStrings:!0,highWaterMark:65536});return r._transform=function(n,o,i){var a;try{a=e.BufferTools.uint8ArrayToBuffer(t.decompressBlock(e.BufferTools.bufferToUint8Array(n)))}catch(e){return void r.emit("error",e)}r.push(a),i()},r},t}();e.AsyncDecompressor=t}(o||(o={})),function(e){var t;!function(t){t.compressAsync=function(e,n,r){if("ByteArray"!=n.inputEncoding||e instanceof Uint8Array){var o={token:Math.random().toString(),type:"compress",data:e,inputEncoding:n.inputEncoding,outputEncoding:n.outputEncoding},i=function(e){var n=e.data;n&&n.token==o.token&&(t.globalWorker.removeEventListener("message",i),"error"==n.type?r(void 0,new Error(n.error)):r(n.data))};t.globalWorker.addEventListener("message",i),t.globalWorker.postMessage(o,[])}else r(void 0,new TypeError("compressAsync: input is not a Uint8Array"))},t.decompressAsync=function(e,n,r){var o={token:Math.random().toString(),type:"decompress",data:e,inputEncoding:n.inputEncoding,outputEncoding:n.outputEncoding},i=function(e){var n=e.data;n&&n.token==o.token&&(t.globalWorker.removeEventListener("message",i),"error"==n.type?r(void 0,new Error(n.error)):r(n.data))};t.globalWorker.addEventListener("message",i),t.globalWorker.postMessage(o,[])},t.installWebWorkerIfNeeded=function(){"object"==typeof self&&void 0===self.document&&null!=self.addEventListener&&(self.addEventListener("message",(function(t){var n=t.data;if("compress"==n.type){var r=void 0;try{r=e.compress(n.data,{outputEncoding:n.outputEncoding})}catch(t){return void self.postMessage({token:n.token,type:"error",error:e.createErrorMessage(t)},[])}(o={token:n.token,type:"compressionResult",data:r,encoding:n.outputEncoding}).data instanceof Uint8Array&&-1===navigator.appVersion.indexOf("MSIE 10")?self.postMessage(o,[o.data.buffer]):self.postMessage(o,[])}else if("decompress"==n.type){var o,i=void 0;try{i=e.decompress(n.data,{inputEncoding:n.inputEncoding,outputEncoding:n.outputEncoding})}catch(t){return void self.postMessage({token:n.token,type:"error",error:e.createErrorMessage(t)},[])}(o={token:n.token,type:"decompressionResult",data:i,encoding:n.outputEncoding}).data instanceof Uint8Array&&-1===navigator.appVersion.indexOf("MSIE 10")?self.postMessage(o,[o.data.buffer]):self.postMessage(o,[])}})),self.addEventListener("error",(function(t){e.log(e.createErrorMessage(t.error,"Unexpected LZUTF8 WebWorker exception"))})))},t.createGlobalWorkerIfNeeded=function(){if(t.globalWorker)return!0;if(!e.webWorkersAvailable())return!1;if(!t.scriptURI&&"object"==typeof document){var n=document.getElementById("lzutf8");null!=n&&(t.scriptURI=n.getAttribute("src")||void 0)}return!!t.scriptURI&&(t.globalWorker=new Worker(t.scriptURI),!0)},t.terminate=function(){t.globalWorker&&(t.globalWorker.terminate(),t.globalWorker=void 0)}}(t=e.WebWorker||(e.WebWorker={})),t.installWebWorkerIfNeeded()}(o||(o={})),function(e){var t=function(){function e(e,t,n){this.container=e,this.startPosition=t,this.length=n}return e.prototype.get=function(e){return this.container[this.startPosition+e]},e.prototype.getInReversedOrder=function(e){return this.container[this.startPosition+this.length-1-e]},e.prototype.set=function(e,t){this.container[this.startPosition+e]=t},e}();e.ArraySegment=t}(o||(o={})),function(e){!function(e){e.copyElements=function(e,t,n,r,o){for(;o--;)n[r++]=e[t++]},e.zeroElements=function(e,t,n){for(;n--;)e[t++]=0},e.countNonzeroValuesInArray=function(e){for(var t=0,n=0;n<e.length;n++)e[n]&&t++;return t},e.truncateStartingElements=function(e,t){if(e.length<=t)throw new RangeError("truncateStartingElements: Requested length should be smaller than array length");for(var n=e.length-t,r=0;r<t;r++)e[r]=e[n+r];e.length=t},e.doubleByteArrayCapacity=function(e){var t=new Uint8Array(2*e.length);return t.set(e),t},e.concatUint8Arrays=function(e){for(var t=0,n=0,r=e;n<r.length;n++)t+=(s=r[n]).length;for(var o=new Uint8Array(t),i=0,a=0,l=e;a<l.length;a++){var s=l[a];o.set(s,i),i+=s.length}return o},e.splitByteArray=function(e,t){for(var n=[],r=0;r<e.length;){var o=Math.min(t,e.length-r);n.push(e.subarray(r,r+o)),r+=o}return n}}(e.ArrayTools||(e.ArrayTools={}))}(o||(o={})),function(e){!function(e){e.convertToUint8ArrayIfNeeded=function(t){return"function"==typeof Buffer&&Buffer.isBuffer(t)?e.bufferToUint8Array(t):t},e.uint8ArrayToBuffer=function(e){if(Buffer.prototype instanceof Uint8Array){var t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);return Object.setPrototypeOf(t,Buffer.prototype),t}for(var n=e.length,r=new Buffer(n),o=0;o<n;o++)r[o]=e[o];return r},e.bufferToUint8Array=function(e){if(Buffer.prototype instanceof Uint8Array)return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);for(var t=e.length,n=new Uint8Array(t),r=0;r<t;r++)n[r]=e[r];return n}}(e.BufferTools||(e.BufferTools={}))}(o||(o={})),function(e){!function(t){t.getCroppedBuffer=function(e,t,n,r){void 0===r&&(r=0);var o=new Uint8Array(n+r);return o.set(e.subarray(t,t+n)),o},t.getCroppedAndAppendedByteArray=function(t,n,r,o){return e.ArrayTools.concatUint8Arrays([t.subarray(n,n+r),o])},t.detectCompressionSourceEncoding=function(e){if(null==e)throw new TypeError("detectCompressionSourceEncoding: input is null or undefined");if("string"==typeof e)return"String";if(e instanceof Uint8Array||"function"==typeof Buffer&&Buffer.isBuffer(e))return"ByteArray";throw new TypeError("detectCompressionSourceEncoding: input must be of type 'string', 'Uint8Array' or 'Buffer'")},t.encodeCompressedBytes=function(t,n){switch(n){case"ByteArray":return t;case"Buffer":return e.BufferTools.uint8ArrayToBuffer(t);case"Base64":return e.encodeBase64(t);case"BinaryString":return e.encodeBinaryString(t);case"StorageBinaryString":return e.encodeStorageBinaryString(t);default:throw new TypeError("encodeCompressedBytes: invalid output encoding requested")}},t.decodeCompressedBytes=function(t,n){if(null==n)throw new TypeError("decodeCompressedData: Input is null or undefined");switch(n){case"ByteArray":case"Buffer":var r=e.BufferTools.convertToUint8ArrayIfNeeded(t);if(!(r instanceof Uint8Array))throw new TypeError("decodeCompressedData: 'ByteArray' or 'Buffer' input type was specified but input is not a Uint8Array or Buffer");return r;case"Base64":if("string"!=typeof t)throw new TypeError("decodeCompressedData: 'Base64' input type was specified but input is not a string");return e.decodeBase64(t);case"BinaryString":if("string"!=typeof t)throw new TypeError("decodeCompressedData: 'BinaryString' input type was specified but input is not a string");return e.decodeBinaryString(t);case"StorageBinaryString":if("string"!=typeof t)throw new TypeError("decodeCompressedData: 'StorageBinaryString' input type was specified but input is not a string");return e.decodeStorageBinaryString(t);default:throw new TypeError("decodeCompressedData: invalid input encoding requested: '".concat(n,"'"))}},t.encodeDecompressedBytes=function(t,n){switch(n){case"String":return e.decodeUTF8(t);case"ByteArray":return t;case"Buffer":if("function"!=typeof Buffer)throw new TypeError("encodeDecompressedBytes: a 'Buffer' type was specified but is not supported at the current envirnment");return e.BufferTools.uint8ArrayToBuffer(t);default:throw new TypeError("encodeDecompressedBytes: invalid output encoding requested")}}}(e.CompressionCommon||(e.CompressionCommon={}))}(o||(o={})),function(e){var t;!function(t){var n,r=[];t.enqueueImmediate=function(e){r.push(e),1===r.length&&n()},t.initializeScheduler=function(){var t=function(){for(var t=0,n=r;t<n.length;t++){var o=n[t];try{o.call(void 0)}catch(t){e.printExceptionAndStackTraceToConsole(t,"enqueueImmediate exception")}}r.length=0};if(e.runningInNodeJS())n=function(){return setImmediate((function(){return t()}))};else if("object"==typeof window&&"function"==typeof window.addEventListener&&"function"==typeof window.postMessage){var o,i="enqueueImmediate-"+Math.random().toString();window.addEventListener("message",(function(e){e.data===i&&t()})),o=e.runningInNullOrigin()?"*":window.location.href,n=function(){return window.postMessage(i,o)}}else if("function"==typeof MessageChannel&&"function"==typeof MessagePort){var a=new MessageChannel;a.port1.onmessage=function(){return t()},n=function(){return a.port2.postMessage(0)}}else n=function(){return setTimeout((function(){return t()}),0)}},t.initializeScheduler()}(t=e.EventLoop||(e.EventLoop={})),e.enqueueImmediate=function(e){return t.enqueueImmediate(e)}}(o||(o={})),function(e){!function(e){e.override=function(t,n){return e.extend(t,n)},e.extend=function(e,t){if(null==e)throw new TypeError("obj is null or undefined");if("object"!=typeof e)throw new TypeError("obj is not an object");if(null==t&&(t={}),"object"!=typeof t)throw new TypeError("newProperties is not an object");if(null!=t)for(var n in t)e[n]=t[n];return e}}(e.ObjectTools||(e.ObjectTools={}))}(o||(o={})),function(e){e.getRandomIntegerInRange=function(e,t){return e+Math.floor(Math.random()*(t-e))},e.getRandomUTF16StringOfLength=function(t){for(var n="",r=0;r<t;r++){var o=void 0;do{o=e.getRandomIntegerInRange(0,1114112)}while(o>=55296&&o<=57343);n+=e.Encoding.CodePoint.decodeToString(o)}return n}}(o||(o={})),function(e){var t=function(){function e(e){void 0===e&&(e=1024),this.outputBufferCapacity=e,this.outputPosition=0,this.outputString="",this.outputBuffer=new Uint16Array(this.outputBufferCapacity)}return e.prototype.appendCharCode=function(e){this.outputBuffer[this.outputPosition++]=e,this.outputPosition===this.outputBufferCapacity&&this.flushBufferToOutputString()},e.prototype.appendCharCodes=function(e){for(var t=0,n=e.length;t<n;t++)this.appendCharCode(e[t])},e.prototype.appendString=function(e){for(var t=0,n=e.length;t<n;t++)this.appendCharCode(e.charCodeAt(t))},e.prototype.appendCodePoint=function(e){if(e<=65535)this.appendCharCode(e);else{if(!(e<=1114111))throw new Error("appendCodePoint: A code point of ".concat(e," cannot be encoded in UTF-16"));this.appendCharCode(55296+(e-65536>>>10)),this.appendCharCode(56320+(e-65536&1023))}},e.prototype.getOutputString=function(){return this.flushBufferToOutputString(),this.outputString},e.prototype.flushBufferToOutputString=function(){this.outputPosition===this.outputBufferCapacity?this.outputString+=String.fromCharCode.apply(null,this.outputBuffer):this.outputString+=String.fromCharCode.apply(null,this.outputBuffer.subarray(0,this.outputPosition)),this.outputPosition=0},e}();e.StringBuilder=t}(o||(o={})),function(e){var t=function(){function t(){this.restart()}return t.prototype.restart=function(){this.startTime=t.getTimestamp()},t.prototype.getElapsedTime=function(){return t.getTimestamp()-this.startTime},t.prototype.getElapsedTimeAndRestart=function(){var e=this.getElapsedTime();return this.restart(),e},t.prototype.logAndRestart=function(t,n){void 0===n&&(n=!0);var r=this.getElapsedTime(),o="".concat(t,": ").concat(r.toFixed(3),"ms");return e.log(o,n),this.restart(),r},t.getTimestamp=function(){return this.timestampFunc||this.createGlobalTimestampFunction(),this.timestampFunc()},t.getMicrosecondTimestamp=function(){return Math.floor(1e3*t.getTimestamp())},t.createGlobalTimestampFunction=function(){if("object"==typeof process&&"function"==typeof process.hrtime){var e=0;this.timestampFunc=function(){var t=process.hrtime(),n=1e3*t[0]+t[1]/1e6;return e+n},e=Date.now()-this.timestampFunc()}else if("object"==typeof chrome&&chrome.Interval){var t=Date.now(),n=new chrome.Interval;n.start(),this.timestampFunc=function(){return t+n.microseconds()/1e3}}else if("object"==typeof performance&&performance.now){var r=Date.now()-performance.now();this.timestampFunc=function(){return r+performance.now()}}else Date.now?this.timestampFunc=function(){return Date.now()}:this.timestampFunc=function(){return(new Date).getTime()}},t}();e.Timer=t}(o||(o={})),function(e){var t=function(){function t(t){void 0===t&&(t=!0),this.MinimumSequenceLength=4,this.MaximumSequenceLength=31,this.MaximumMatchDistance=32767,this.PrefixHashTableSize=65537,this.inputBufferStreamOffset=1,t&&"function"==typeof Uint32Array?this.prefixHashTable=new e.CompressorCustomHashTable(this.PrefixHashTableSize):this.prefixHashTable=new e.CompressorSimpleHashTable(this.PrefixHashTableSize)}return t.prototype.compressBlock=function(t){if(null==t)throw new TypeError("compressBlock: undefined or null input received");return"string"==typeof t&&(t=e.encodeUTF8(t)),t=e.BufferTools.convertToUint8ArrayIfNeeded(t),this.compressUtf8Block(t)},t.prototype.compressUtf8Block=function(e){if(!e||0==e.length)return new Uint8Array(0);var t=this.cropAndAddNewBytesToInputBuffer(e),n=this.inputBuffer,r=this.inputBuffer.length;this.outputBuffer=new Uint8Array(e.length),this.outputBufferPosition=0;for(var o=0,i=t;i<r;i++){var a=n[i],l=i<o;if(i>r-this.MinimumSequenceLength)l||this.outputRawByte(a);else{var s=this.getBucketIndexForPrefix(i);if(!l){var c=this.findLongestMatch(i,s);null!=c&&(this.outputPointerBytes(c.length,c.distance),o=i+c.length,l=!0)}l||this.outputRawByte(a);var u=this.inputBufferStreamOffset+i;this.prefixHashTable.addValueToBucket(s,u)}}return this.outputBuffer.subarray(0,this.outputBufferPosition)},t.prototype.findLongestMatch=function(e,t){var n=this.prefixHashTable.getArraySegmentForBucketIndex(t,this.reusableArraySegmentObject);if(null==n)return null;for(var r,o=this.inputBuffer,i=0,a=0;a<n.length;a++){var l,s=n.getInReversedOrder(a)-this.inputBufferStreamOffset,c=e-s;if(l=void 0===r?this.MinimumSequenceLength-1:r<128&&c>=128?i+(i>>>1):i,c>this.MaximumMatchDistance||l>=this.MaximumSequenceLength||e+l>=o.length)break;if(o[s+l]===o[e+l])for(var u=0;;u++){if(e+u===o.length||o[s+u]!==o[e+u]){u>l&&(r=c,i=u);break}if(u===this.MaximumSequenceLength)return{distance:c,length:this.MaximumSequenceLength}}}return void 0!==r?{distance:r,length:i}:null},t.prototype.getBucketIndexForPrefix=function(e){return(7880599*this.inputBuffer[e]+39601*this.inputBuffer[e+1]+199*this.inputBuffer[e+2]+this.inputBuffer[e+3])%this.PrefixHashTableSize},t.prototype.outputPointerBytes=function(e,t){t<128?(this.outputRawByte(192|e),this.outputRawByte(t)):(this.outputRawByte(224|e),this.outputRawByte(t>>>8),this.outputRawByte(255&t))},t.prototype.outputRawByte=function(e){this.outputBuffer[this.outputBufferPosition++]=e},t.prototype.cropAndAddNewBytesToInputBuffer=function(t){if(void 0===this.inputBuffer)return this.inputBuffer=t,0;var n=Math.min(this.inputBuffer.length,this.MaximumMatchDistance),r=this.inputBuffer.length-n;return this.inputBuffer=e.CompressionCommon.getCroppedAndAppendedByteArray(this.inputBuffer,r,n,t),this.inputBufferStreamOffset+=r,n},t}();e.Compressor=t}(o||(o={})),function(e){var t=function(){function t(e){this.minimumBucketCapacity=4,this.maximumBucketCapacity=64,this.bucketLocators=new Uint32Array(2*e),this.storage=new Uint32Array(2*e),this.storageIndex=1}return t.prototype.addValueToBucket=function(t,n){t<<=1,this.storageIndex>=this.storage.length>>>1&&this.compact();var r,o=this.bucketLocators[t];if(0===o)o=this.storageIndex,r=1,this.storage[this.storageIndex]=n,this.storageIndex+=this.minimumBucketCapacity;else{(r=this.bucketLocators[t+1])===this.maximumBucketCapacity-1&&(r=this.truncateBucketToNewerElements(o,r,this.maximumBucketCapacity/2));var i=o+r;0===this.storage[i]?(this.storage[i]=n,i===this.storageIndex&&(this.storageIndex+=r)):(e.ArrayTools.copyElements(this.storage,o,this.storage,this.storageIndex,r),o=this.storageIndex,this.storageIndex+=r,this.storage[this.storageIndex++]=n,this.storageIndex+=r),r++}this.bucketLocators[t]=o,this.bucketLocators[t+1]=r},t.prototype.truncateBucketToNewerElements=function(t,n,r){var o=t+n-r;return e.ArrayTools.copyElements(this.storage,o,this.storage,t,r),e.ArrayTools.zeroElements(this.storage,t+r,n-r),r},t.prototype.compact=function(){var t=this.bucketLocators,n=this.storage;this.bucketLocators=new Uint32Array(this.bucketLocators.length),this.storageIndex=1;for(var r=0;r<t.length;r+=2){var o=t[r+1];0!==o&&(this.bucketLocators[r]=this.storageIndex,this.bucketLocators[r+1]=o,this.storageIndex+=Math.max(Math.min(2*o,this.maximumBucketCapacity),this.minimumBucketCapacity))}for(this.storage=new Uint32Array(8*this.storageIndex),r=0;r<t.length;r+=2){var i=t[r];if(0!==i){var a=this.bucketLocators[r],l=this.bucketLocators[r+1];e.ArrayTools.copyElements(n,i,this.storage,a,l)}}},t.prototype.getArraySegmentForBucketIndex=function(t,n){t<<=1;var r=this.bucketLocators[t];return 0===r?null:(void 0===n&&(n=new e.ArraySegment(this.storage,r,this.bucketLocators[t+1])),n)},t.prototype.getUsedBucketCount=function(){return Math.floor(e.ArrayTools.countNonzeroValuesInArray(this.bucketLocators)/2)},t.prototype.getTotalElementCount=function(){for(var e=0,t=0;t<this.bucketLocators.length;t+=2)e+=this.bucketLocators[t+1];return e},t}();e.CompressorCustomHashTable=t}(o||(o={})),function(e){var t=function(){function t(e){this.maximumBucketCapacity=64,this.buckets=new Array(e)}return t.prototype.addValueToBucket=function(t,n){var r=this.buckets[t];void 0===r?this.buckets[t]=[n]:(r.length===this.maximumBucketCapacity-1&&e.ArrayTools.truncateStartingElements(r,this.maximumBucketCapacity/2),r.push(n))},t.prototype.getArraySegmentForBucketIndex=function(t,n){var r=this.buckets[t];return void 0===r?null:(void 0===n&&(n=new e.ArraySegment(r,0,r.length)),n)},t.prototype.getUsedBucketCount=function(){return e.ArrayTools.countNonzeroValuesInArray(this.buckets)},t.prototype.getTotalElementCount=function(){for(var e=0,t=0;t<this.buckets.length;t++)void 0!==this.buckets[t]&&(e+=this.buckets[t].length);return e},t}();e.CompressorSimpleHashTable=t}(o||(o={})),function(e){var t=function(){function t(){this.MaximumMatchDistance=32767,this.outputPosition=0}return t.prototype.decompressBlockToString=function(t){return t=e.BufferTools.convertToUint8ArrayIfNeeded(t),e.decodeUTF8(this.decompressBlock(t))},t.prototype.decompressBlock=function(t){this.inputBufferRemainder&&(t=e.ArrayTools.concatUint8Arrays([this.inputBufferRemainder,t]),this.inputBufferRemainder=void 0);for(var n=this.cropOutputBufferToWindowAndInitialize(Math.max(4*t.length,1024)),r=0,o=t.length;r<o;r++){var i=t[r];if(i>>>6==3){var a=i>>>5;if(r==o-1||r==o-2&&7==a){this.inputBufferRemainder=t.subarray(r);break}if(t[r+1]>>>7==1)this.outputByte(i);else{var l=31&i,s=void 0;6==a?(s=t[r+1],r+=1):(s=t[r+1]<<8|t[r+2],r+=2);for(var c=this.outputPosition-s,u=0;u<l;u++)this.outputByte(this.outputBuffer[c+u])}}else this.outputByte(i)}return this.rollBackIfOutputBufferEndsWithATruncatedMultibyteSequence(),e.CompressionCommon.getCroppedBuffer(this.outputBuffer,n,this.outputPosition-n)},t.prototype.outputByte=function(t){this.outputPosition===this.outputBuffer.length&&(this.outputBuffer=e.ArrayTools.doubleByteArrayCapacity(this.outputBuffer)),this.outputBuffer[this.outputPosition++]=t},t.prototype.cropOutputBufferToWindowAndInitialize=function(t){if(!this.outputBuffer)return this.outputBuffer=new Uint8Array(t),0;var n=Math.min(this.outputPosition,this.MaximumMatchDistance);if(this.outputBuffer=e.CompressionCommon.getCroppedBuffer(this.outputBuffer,this.outputPosition-n,n,t),this.outputPosition=n,this.outputBufferRemainder){for(var r=0;r<this.outputBufferRemainder.length;r++)this.outputByte(this.outputBufferRemainder[r]);this.outputBufferRemainder=void 0}return n},t.prototype.rollBackIfOutputBufferEndsWithATruncatedMultibyteSequence=function(){for(var e=1;e<=4&&this.outputPosition-e>=0;e++){var t=this.outputBuffer[this.outputPosition-e];if(e<4&&t>>>3==30||e<3&&t>>>4==14||e<2&&t>>>5==6)return this.outputBufferRemainder=this.outputBuffer.subarray(this.outputPosition-e,this.outputPosition),void(this.outputPosition-=e)}},t}();e.Decompressor=t}(o||(o={})),function(e){!function(t){!function(t){var n=new Uint8Array([65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,48,49,50,51,52,53,54,55,56,57,43,47]),r=new Uint8Array([255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,62,255,255,255,63,52,53,54,55,56,57,58,59,60,61,255,255,255,0,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255,255,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,255,255,255,255]);t.encode=function(n){return n&&0!=n.length?e.runningInNodeJS()?e.BufferTools.uint8ArrayToBuffer(n).toString("base64"):t.encodeWithJS(n):""},t.decode=function(n){return n?e.runningInNodeJS()?e.BufferTools.bufferToUint8Array(Buffer.from(n,"base64")):t.decodeWithJS(n):new Uint8Array(0)},t.encodeWithJS=function(t,r){if(void 0===r&&(r=!0),!t||0==t.length)return"";for(var o,i=n,a=new e.StringBuilder,l=0,s=t.length;l<s;l+=3)l<=s-3?(o=t[l]<<16|t[l+1]<<8|t[l+2],a.appendCharCode(i[o>>>18&63]),a.appendCharCode(i[o>>>12&63]),a.appendCharCode(i[o>>>6&63]),a.appendCharCode(i[63&o]),o=0):l===s-2?(o=t[l]<<16|t[l+1]<<8,a.appendCharCode(i[o>>>18&63]),a.appendCharCode(i[o>>>12&63]),a.appendCharCode(i[o>>>6&63]),r&&a.appendCharCode(61)):l===s-1&&(o=t[l]<<16,a.appendCharCode(i[o>>>18&63]),a.appendCharCode(i[o>>>12&63]),r&&(a.appendCharCode(61),a.appendCharCode(61)));return a.getOutputString()},t.decodeWithJS=function(e,t){if(!e||0==e.length)return new Uint8Array(0);var n=e.length%4;if(1===n)throw new Error("Invalid Base64 string: length % 4 == 1");2===n?e+="==":3===n&&(e+="="),t||(t=new Uint8Array(e.length));for(var o=0,i=e.length,a=0;a<i;a+=4){var l=r[e.charCodeAt(a)]<<18|r[e.charCodeAt(a+1)]<<12|r[e.charCodeAt(a+2)]<<6|r[e.charCodeAt(a+3)];t[o++]=l>>>16&255,t[o++]=l>>>8&255,t[o++]=255&l}return 61==e.charCodeAt(i-1)&&o--,61==e.charCodeAt(i-2)&&o--,t.subarray(0,o)}}(t.Base64||(t.Base64={}))}(e.Encoding||(e.Encoding={}))}(o||(o={})),function(e){!function(t){!function(t){t.encode=function(t){if(null==t)throw new TypeError("BinaryString.encode: undefined or null input received");if(0===t.length)return"";for(var n=t.length,r=new e.StringBuilder,o=0,i=1,a=0;a<n;a+=2){var l;l=a==n-1?t[a]<<8:t[a]<<8|t[a+1],r.appendCharCode(o<<16-i|l>>>i),o=l&(1<<i)-1,15===i?(r.appendCharCode(o),o=0,i=1):i+=1,a>=n-2&&r.appendCharCode(o<<16-i)}return r.appendCharCode(32768|n%2),r.getOutputString()},t.decode=function(e){if("string"!=typeof e)throw new TypeError("BinaryString.decode: invalid input type");if(""==e)return new Uint8Array(0);for(var t=new Uint8Array(3*e.length),n=0,r=function(e){t[n++]=e>>>8,t[n++]=255&e},o=0,i=0,a=0;a<e.length;a++){var l=e.charCodeAt(a);l>=32768?(32769==l&&n--,i=0):(0==i?o=l:(r(o<<i|l>>>15-i),o=l&(1<<15-i)-1),15==i?i=0:i+=1)}return t.subarray(0,n)}}(t.BinaryString||(t.BinaryString={}))}(e.Encoding||(e.Encoding={}))}(o||(o={})),function(e){!function(e){!function(e){e.encodeFromString=function(e,t){var n=e.charCodeAt(t);if(n<55296||n>56319)return n;var r=e.charCodeAt(t+1);if(r>=56320&&r<=57343)return r-56320+(n-55296<<10)+65536;throw new Error("getUnicodeCodePoint: Received a lead surrogate character, char code ".concat(n,", followed by ").concat(r,", which is not a trailing surrogate character code."))},e.decodeToString=function(e){if(e<=65535)return String.fromCharCode(e);if(e<=1114111)return String.fromCharCode(55296+(e-65536>>>10),56320+(e-65536&1023));throw new Error("getStringFromUnicodeCodePoint: A code point of ".concat(e," cannot be encoded in UTF-16"))}}(e.CodePoint||(e.CodePoint={}))}(e.Encoding||(e.Encoding={}))}(o||(o={})),function(e){!function(e){!function(e){var t=["000","001","002","003","004","005","006","007","008","009","010","011","012","013","014","015","016","017","018","019","020","021","022","023","024","025","026","027","028","029","030","031","032","033","034","035","036","037","038","039","040","041","042","043","044","045","046","047","048","049","050","051","052","053","054","055","056","057","058","059","060","061","062","063","064","065","066","067","068","069","070","071","072","073","074","075","076","077","078","079","080","081","082","083","084","085","086","087","088","089","090","091","092","093","094","095","096","097","098","099","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255"];e.encode=function(e){for(var n=[],r=0;r<e.length;r++)n.push(t[e[r]]);return n.join(" ")}}(e.DecimalString||(e.DecimalString={}))}(e.Encoding||(e.Encoding={}))}(o||(o={})),function(e){!function(e){!function(t){t.encode=function(t){return e.BinaryString.encode(t).replace(/\0/g,"耂")},t.decode=function(t){return e.BinaryString.decode(t.replace(/\u8002/g,"\0"))}}(e.StorageBinaryString||(e.StorageBinaryString={}))}(e.Encoding||(e.Encoding={}))}(o||(o={})),function(e){!function(t){!function(n){var r,o;n.encode=function(t){return t&&0!=t.length?e.runningInNodeJS()?e.BufferTools.bufferToUint8Array(Buffer.from(t,"utf8")):n.createNativeTextEncoderAndDecoderIfAvailable()?r.encode(t):n.encodeWithJS(t):new Uint8Array(0)},n.decode=function(t){return t&&0!=t.length?e.runningInNodeJS()?e.BufferTools.uint8ArrayToBuffer(t).toString("utf8"):n.createNativeTextEncoderAndDecoderIfAvailable()?o.decode(t):n.decodeWithJS(t):""},n.encodeWithJS=function(e,n){if(!e||0==e.length)return new Uint8Array(0);n||(n=new Uint8Array(4*e.length));for(var r=0,o=0;o<e.length;o++){var i=t.CodePoint.encodeFromString(e,o);if(i<=127)n[r++]=i;else if(i<=2047)n[r++]=192|i>>>6,n[r++]=128|63&i;else if(i<=65535)n[r++]=224|i>>>12,n[r++]=128|i>>>6&63,n[r++]=128|63&i;else{if(!(i<=1114111))throw new Error("Invalid UTF-16 string: Encountered a character unsupported by UTF-8/16 (RFC 3629)");n[r++]=240|i>>>18,n[r++]=128|i>>>12&63,n[r++]=128|i>>>6&63,n[r++]=128|63&i,o++}}return n.subarray(0,r)},n.decodeWithJS=function(t,n,r){if(void 0===n&&(n=0),!t||0==t.length)return"";void 0===r&&(r=t.length);for(var o,i,a=new e.StringBuilder,l=n,s=r;l<s;){if((i=t[l])>>>7==0)o=i,l+=1;else if(i>>>5==6){if(l+1>=r)throw new Error("Invalid UTF-8 stream: Truncated codepoint sequence encountered at position "+l);o=(31&i)<<6|63&t[l+1],l+=2}else if(i>>>4==14){if(l+2>=r)throw new Error("Invalid UTF-8 stream: Truncated codepoint sequence encountered at position "+l);o=(15&i)<<12|(63&t[l+1])<<6|63&t[l+2],l+=3}else{if(i>>>3!=30)throw new Error("Invalid UTF-8 stream: An invalid lead byte value encountered at position "+l);if(l+3>=r)throw new Error("Invalid UTF-8 stream: Truncated codepoint sequence encountered at position "+l);o=(7&i)<<18|(63&t[l+1])<<12|(63&t[l+2])<<6|63&t[l+3],l+=4}a.appendCodePoint(o)}return a.getOutputString()},n.createNativeTextEncoderAndDecoderIfAvailable=function(){return!!r||"function"==typeof TextEncoder&&(r=new TextEncoder("utf-8"),o=new TextDecoder("utf-8"),!0)}}(t.UTF8||(t.UTF8={}))}(e.Encoding||(e.Encoding={}))}(o||(o={})),function(e){e.compress=function(t,n){if(void 0===n&&(n={}),null==t)throw new TypeError("compress: undefined or null input received");var r=e.CompressionCommon.detectCompressionSourceEncoding(t);n=e.ObjectTools.override({inputEncoding:r,outputEncoding:"ByteArray"},n);var o=(new e.Compressor).compressBlock(t);return e.CompressionCommon.encodeCompressedBytes(o,n.outputEncoding)},e.decompress=function(t,n){if(void 0===n&&(n={}),null==t)throw new TypeError("decompress: undefined or null input received");n=e.ObjectTools.override({inputEncoding:"ByteArray",outputEncoding:"String"},n);var r=e.CompressionCommon.decodeCompressedBytes(t,n.inputEncoding),o=(new e.Decompressor).decompressBlock(r);return e.CompressionCommon.encodeDecompressedBytes(o,n.outputEncoding)},e.compressAsync=function(t,n,r){var o;null==r&&(r=function(){});try{o=e.CompressionCommon.detectCompressionSourceEncoding(t)}catch(e){return void r(void 0,e)}n=e.ObjectTools.override({inputEncoding:o,outputEncoding:"ByteArray",useWebWorker:!0,blockSize:65536},n),e.enqueueImmediate((function(){n.useWebWorker&&e.WebWorker.createGlobalWorkerIfNeeded()?e.WebWorker.compressAsync(t,n,r):e.AsyncCompressor.compressAsync(t,n,r)}))},e.decompressAsync=function(t,n,r){if(null==r&&(r=function(){}),null!=t){n=e.ObjectTools.override({inputEncoding:"ByteArray",outputEncoding:"String",useWebWorker:!0,blockSize:65536},n);var o=e.BufferTools.convertToUint8ArrayIfNeeded(t);e.EventLoop.enqueueImmediate((function(){n.useWebWorker&&e.WebWorker.createGlobalWorkerIfNeeded()?e.WebWorker.decompressAsync(o,n,r):e.AsyncDecompressor.decompressAsync(t,n,r)}))}else r(void 0,new TypeError("decompressAsync: undefined or null input received"))},e.createCompressionStream=function(){return e.AsyncCompressor.createCompressionStream()},e.createDecompressionStream=function(){return e.AsyncDecompressor.createDecompressionStream()},e.encodeUTF8=function(t){return e.Encoding.UTF8.encode(t)},e.decodeUTF8=function(t){return e.Encoding.UTF8.decode(t)},e.encodeBase64=function(t){return e.Encoding.Base64.encode(t)},e.decodeBase64=function(t){return e.Encoding.Base64.decode(t)},e.encodeBinaryString=function(t){return e.Encoding.BinaryString.encode(t)},e.decodeBinaryString=function(t){return e.Encoding.BinaryString.decode(t)},e.encodeStorageBinaryString=function(t){return e.Encoding.StorageBinaryString.encode(t)},e.decodeStorageBinaryString=function(t){return e.Encoding.StorageBinaryString.decode(t)}}(o||(o={}))},374:(e,t,n)=>{const{AbortError:r,codes:o}=n(141),{isNodeStream:i,isWebStream:a,kControllerErrorFunction:l}=n(132),s=n(86),{ERR_INVALID_ARG_TYPE:c}=o;e.exports.addAbortSignal=function(t,n){if(((e,t)=>{if("object"!=typeof e||!("aborted"in e))throw new c("signal","AbortSignal",e)})(t),!i(n)&&!a(n))throw new c("stream",["ReadableStream","WritableStream","Stream"],n);return e.exports.addAbortSignalNoValidate(t,n)},e.exports.addAbortSignalNoValidate=function(e,t){if("object"!=typeof e||!("aborted"in e))return t;const n=i(t)?()=>{t.destroy(new r(void 0,{cause:e.reason}))}:()=>{t[l](new r(void 0,{cause:e.reason}))};return e.aborted?n():(e.addEventListener("abort",n),s(t,(()=>e.removeEventListener("abort",n)))),t}},616:(e,t,n)=>{const{StringPrototypeSlice:r,SymbolIterator:o,TypedArrayPrototypeSet:i,Uint8Array:a}=n(191),{Buffer:l}=n(485),{inspect:s}=n(775);e.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){const t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}unshift(e){const t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}shift(){if(0===this.length)return;const e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(0===this.length)return"";let t=this.head,n=""+t.data;for(;null!==(t=t.next);)n+=e+t.data;return n}concat(e){if(0===this.length)return l.alloc(0);const t=l.allocUnsafe(e>>>0);let n=this.head,r=0;for(;n;)i(t,n.data,r),r+=n.data.length,n=n.next;return t}consume(e,t){const n=this.head.data;if(e<n.length){const t=n.slice(0,e);return this.head.data=n.slice(e),t}return e===n.length?this.shift():t?this._getString(e):this._getBuffer(e)}first(){return this.head.data}*[o](){for(let e=this.head;e;e=e.next)yield e.data}_getString(e){let t="",n=this.head,o=0;do{const i=n.data;if(!(e>i.length)){e===i.length?(t+=i,++o,n.next?this.head=n.next:this.head=this.tail=null):(t+=r(i,0,e),this.head=n,n.data=r(i,e));break}t+=i,e-=i.length,++o}while(null!==(n=n.next));return this.length-=o,t}_getBuffer(e){const t=l.allocUnsafe(e),n=e;let r=this.head,o=0;do{const l=r.data;if(!(e>l.length)){e===l.length?(i(t,l,n-e),++o,r.next?this.head=r.next:this.head=this.tail=null):(i(t,new a(l.buffer,l.byteOffset,e),n-e),this.head=r,r.data=l.slice(e));break}i(t,l,n-e),e-=l.length,++o}while(null!==(r=r.next));return this.length-=o,t}[Symbol.for("nodejs.util.inspect.custom")](e,t){return s(this,{...t,depth:0,customInspect:!1})}}},818:(e,t,n)=>{const{pipeline:r}=n(754),o=n(182),{destroyer:i}=n(230),{isNodeStream:a,isReadable:l,isWritable:s,isWebStream:c,isTransformStream:u,isWritableStream:f,isReadableStream:d}=n(132),{AbortError:p,codes:{ERR_INVALID_ARG_VALUE:h,ERR_MISSING_ARGS:v}}=n(141),g=n(86);e.exports=function(...e){if(0===e.length)throw new v("streams");if(1===e.length)return o.from(e[0]);const t=[...e];if("function"==typeof e[0]&&(e[0]=o.from(e[0])),"function"==typeof e[e.length-1]){const t=e.length-1;e[t]=o.from(e[t])}for(let n=0;n<e.length;++n)if(a(e[n])||c(e[n])){if(n<e.length-1&&!(l(e[n])||d(e[n])||u(e[n])))throw new h(`streams[${n}]`,t[n],"must be readable");if(n>0&&!(s(e[n])||f(e[n])||u(e[n])))throw new h(`streams[${n}]`,t[n],"must be writable")}let n,C,m,y,w;const b=e[0],x=r(e,(function(e){const t=y;y=null,t?t(e):e?w.destroy(e):O||_||w.destroy()})),_=!!(s(b)||f(b)||u(b)),O=!!(l(x)||d(x)||u(x));if(w=new o({writableObjectMode:!(null==b||!b.writableObjectMode),readableObjectMode:!(null==x||!x.writableObjectMode),writable:_,readable:O}),_){if(a(b))w._write=function(e,t,r){b.write(e,t)?r():n=r},w._final=function(e){b.end(),C=e},b.on("drain",(function(){if(n){const e=n;n=null,e()}}));else if(c(b)){const e=(u(b)?b.writable:b).getWriter();w._write=async function(t,n,r){try{await e.ready,e.write(t).catch((()=>{})),r()}catch(e){r(e)}},w._final=async function(t){try{await e.ready,e.close().catch((()=>{})),C=t}catch(e){t(e)}}}const e=u(x)?x.readable:x;g(e,(()=>{if(C){const e=C;C=null,e()}}))}if(O)if(a(x))x.on("readable",(function(){if(m){const e=m;m=null,e()}})),x.on("end",(function(){w.push(null)})),w._read=function(){for(;;){const e=x.read();if(null===e)return void(m=w._read);if(!w.push(e))return}};else if(c(x)){const e=(u(x)?x.readable:x).getReader();w._read=async function(){for(;;)try{const{value:t,done:n}=await e.read();if(!w.push(t))return;if(n)return void w.push(null)}catch{return}}}return w._destroy=function(e,t){e||null===y||(e=new p),m=null,n=null,C=null,null===y?t(e):(y=t,a(x)&&i(x,e))},w}},230:(e,t,n)=>{const r=n(533),{aggregateTwoErrors:o,codes:{ERR_MULTIPLE_CALLBACK:i},AbortError:a}=n(141),{Symbol:l}=n(191),{kDestroyed:s,isDestroyed:c,isFinished:u,isServerRequest:f}=n(132),d=l("kDestroy"),p=l("kConstruct");function h(e,t,n){e&&(e.stack,t&&!t.errored&&(t.errored=e),n&&!n.errored&&(n.errored=e))}function v(e,t,n){let o=!1;function i(t){if(o)return;o=!0;const i=e._readableState,a=e._writableState;h(t,a,i),a&&(a.closed=!0),i&&(i.closed=!0),"function"==typeof n&&n(t),t?r.nextTick(g,e,t):r.nextTick(C,e)}try{e._destroy(t||null,i)}catch(t){i(t)}}function g(e,t){m(e,t),C(e)}function C(e){const t=e._readableState,n=e._writableState;n&&(n.closeEmitted=!0),t&&(t.closeEmitted=!0),(null!=n&&n.emitClose||null!=t&&t.emitClose)&&e.emit("close")}function m(e,t){const n=e._readableState,r=e._writableState;null!=r&&r.errorEmitted||null!=n&&n.errorEmitted||(r&&(r.errorEmitted=!0),n&&(n.errorEmitted=!0),e.emit("error",t))}function y(e,t,n){const o=e._readableState,i=e._writableState;if(null!=i&&i.destroyed||null!=o&&o.destroyed)return this;null!=o&&o.autoDestroy||null!=i&&i.autoDestroy?e.destroy(t):t&&(t.stack,i&&!i.errored&&(i.errored=t),o&&!o.errored&&(o.errored=t),n?r.nextTick(m,e,t):m(e,t))}function w(e){let t=!1;function n(n){if(t)return void y(e,null!=n?n:new i);t=!0;const o=e._readableState,a=e._writableState,l=a||o;o&&(o.constructed=!0),a&&(a.constructed=!0),l.destroyed?e.emit(d,n):n?y(e,n,!0):r.nextTick(b,e)}try{e._construct((e=>{r.nextTick(n,e)}))}catch(e){r.nextTick(n,e)}}function b(e){e.emit(p)}function x(e){return(null==e?void 0:e.setHeader)&&"function"==typeof e.abort}function _(e){e.emit("close")}function O(e,t){e.emit("error",t),r.nextTick(_,e)}e.exports={construct:function(e,t){if("function"!=typeof e._construct)return;const n=e._readableState,o=e._writableState;n&&(n.constructed=!1),o&&(o.constructed=!1),e.once(p,t),e.listenerCount(p)>1||r.nextTick(w,e)},destroyer:function(e,t){e&&!c(e)&&(t||u(e)||(t=new a),f(e)?(e.socket=null,e.destroy(t)):x(e)?e.abort():x(e.req)?e.req.abort():"function"==typeof e.destroy?e.destroy(t):"function"==typeof e.close?e.close():t?r.nextTick(O,e,t):r.nextTick(_,e),e.destroyed||(e[s]=!0))},destroy:function(e,t){const n=this._readableState,r=this._writableState,i=r||n;return null!=r&&r.destroyed||null!=n&&n.destroyed?("function"==typeof t&&t(),this):(h(e,r,n),r&&(r.destroyed=!0),n&&(n.destroyed=!0),i.constructed?v(this,e,t):this.once(d,(function(n){v(this,o(n,e),t)})),this)},undestroy:function(){const e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=!1===e.readable,e.endEmitted=!1===e.readable),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=!1===t.writable,t.ending=!1===t.writable,t.finished=!1===t.writable)},errorOrDestroy:y}},182:(e,t,n)=>{const{ObjectDefineProperties:r,ObjectGetOwnPropertyDescriptor:o,ObjectKeys:i,ObjectSetPrototypeOf:a}=n(191);e.exports=c;const l=n(858),s=n(373);a(c.prototype,l.prototype),a(c,l);{const e=i(s.prototype);for(let t=0;t<e.length;t++){const n=e[t];c.prototype[n]||(c.prototype[n]=s.prototype[n])}}function c(e){if(!(this instanceof c))return new c(e);l.call(this,e),s.call(this,e),e?(this.allowHalfOpen=!1!==e.allowHalfOpen,!1===e.readable&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===e.writable&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}let u,f;function d(){return void 0===u&&(u={}),u}r(c.prototype,{writable:{__proto__:null,...o(s.prototype,"writable")},writableHighWaterMark:{__proto__:null,...o(s.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...o(s.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...o(s.prototype,"writableBuffer")},writableLength:{__proto__:null,...o(s.prototype,"writableLength")},writableFinished:{__proto__:null,...o(s.prototype,"writableFinished")},writableCorked:{__proto__:null,...o(s.prototype,"writableCorked")},writableEnded:{__proto__:null,...o(s.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...o(s.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set(e){this._readableState&&this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}}),c.fromWeb=function(e,t){return d().newStreamDuplexFromReadableWritablePair(e,t)},c.toWeb=function(e){return d().newReadableWritablePairFromDuplex(e)},c.from=function(e){return f||(f=n(749)),f(e,"body")}},749:(e,t,n)=>{const r=n(533),o=n(485),{isReadable:i,isWritable:a,isIterable:l,isNodeStream:s,isReadableNodeStream:c,isWritableNodeStream:u,isDuplexNodeStream:f}=n(132),d=n(86),{AbortError:p,codes:{ERR_INVALID_ARG_TYPE:h,ERR_INVALID_RETURN_VALUE:v}}=n(141),{destroyer:g}=n(230),C=n(182),m=n(858),{createDeferredPromise:y}=n(775),w=n(913),b=globalThis.Blob||o.Blob,x=void 0!==b?function(e){return e instanceof b}:function(e){return!1},_=globalThis.AbortController||n(876).AbortController,{FunctionPrototypeCall:O}=n(191);class L extends C{constructor(e){super(e),!1===(null==e?void 0:e.readable)&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===(null==e?void 0:e.writable)&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}function E(e){const t=e.readable&&"function"!=typeof e.readable.read?m.wrap(e.readable):e.readable,n=e.writable;let r,o,l,s,c,u=!!i(t),f=!!a(n);function h(e){const t=s;s=null,t?t(e):e&&c.destroy(e)}return c=new L({readableObjectMode:!(null==t||!t.readableObjectMode),writableObjectMode:!(null==n||!n.writableObjectMode),readable:u,writable:f}),f&&(d(n,(e=>{f=!1,e&&g(t,e),h(e)})),c._write=function(e,t,o){n.write(e,t)?o():r=o},c._final=function(e){n.end(),o=e},n.on("drain",(function(){if(r){const e=r;r=null,e()}})),n.on("finish",(function(){if(o){const e=o;o=null,e()}}))),u&&(d(t,(e=>{u=!1,e&&g(t,e),h(e)})),t.on("readable",(function(){if(l){const e=l;l=null,e()}})),t.on("end",(function(){c.push(null)})),c._read=function(){for(;;){const e=t.read();if(null===e)return void(l=c._read);if(!c.push(e))return}}),c._destroy=function(e,i){e||null===s||(e=new p),l=null,r=null,o=null,null===s?i(e):(s=i,g(n,e),g(t,e))},c}e.exports=function e(t,n){if(f(t))return t;if(c(t))return E({readable:t});if(u(t))return E({writable:t});if(s(t))return E({writable:!1,readable:!1});if("function"==typeof t){const{value:e,write:o,final:i,destroy:a}=function(e){let{promise:t,resolve:n}=y();const o=new _,i=o.signal,a=e(async function*(){for(;;){const e=t;t=null;const{chunk:o,done:a,cb:l}=await e;if(r.nextTick(l),a)return;if(i.aborted)throw new p(void 0,{cause:i.reason});({promise:t,resolve:n}=y()),yield o}}(),{signal:i});return{value:a,write(e,t,r){const o=n;n=null,o({chunk:e,done:!1,cb:r})},final(e){const t=n;n=null,t({done:!0,cb:e})},destroy(e,t){o.abort(),t(e)}}}(t);if(l(e))return w(L,e,{objectMode:!0,write:o,final:i,destroy:a});const s=null==e?void 0:e.then;if("function"==typeof s){let t;const n=O(s,e,(e=>{if(null!=e)throw new v("nully","body",e)}),(e=>{g(t,e)}));return t=new L({objectMode:!0,readable:!1,write:o,final(e){i((async()=>{try{await n,r.nextTick(e,null)}catch(t){r.nextTick(e,t)}}))},destroy:a})}throw new v("Iterable, AsyncIterable or AsyncFunction",n,e)}if(x(t))return e(t.arrayBuffer());if(l(t))return w(L,t,{objectMode:!0,writable:!1});if("object"==typeof(null==t?void 0:t.writable)||"object"==typeof(null==t?void 0:t.readable))return E({readable:null!=t&&t.readable?c(null==t?void 0:t.readable)?null==t?void 0:t.readable:e(t.readable):void 0,writable:null!=t&&t.writable?u(null==t?void 0:t.writable)?null==t?void 0:t.writable:e(t.writable):void 0});const o=null==t?void 0:t.then;if("function"==typeof o){let e;return O(o,t,(t=>{null!=t&&e.push(t),e.push(null)}),(t=>{g(e,t)})),e=new L({objectMode:!0,writable:!1,read(){}})}throw new h(n,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],t)}},86:(e,t,n)=>{const r=n(533),{AbortError:o,codes:i}=n(141),{ERR_INVALID_ARG_TYPE:a,ERR_STREAM_PREMATURE_CLOSE:l}=i,{kEmptyObject:s,once:c}=n(775),{validateAbortSignal:u,validateFunction:f,validateObject:d,validateBoolean:p}=n(904),{Promise:h,PromisePrototypeThen:v}=n(191),{isClosed:g,isReadable:C,isReadableNodeStream:m,isReadableStream:y,isReadableFinished:w,isReadableErrored:b,isWritable:x,isWritableNodeStream:_,isWritableStream:O,isWritableFinished:L,isWritableErrored:E,isNodeStream:S,willEmitClose:M,kIsClosedPromise:j}=n(132),k=()=>{};function R(e,t,n){var i,p;if(2===arguments.length?(n=t,t=s):null==t?t=s:d(t,"options"),f(n,"callback"),u(t.signal,"options.signal"),n=c(n),y(e)||O(e))return function(e,t,n){let i=!1,a=k;if(t.signal)if(a=()=>{i=!0,n.call(e,new o(void 0,{cause:t.signal.reason}))},t.signal.aborted)r.nextTick(a);else{const r=n;n=c(((...n)=>{t.signal.removeEventListener("abort",a),r.apply(e,n)})),t.signal.addEventListener("abort",a)}const l=(...t)=>{i||r.nextTick((()=>n.apply(e,t)))};return v(e[j].promise,l,l),k}(e,t,n);if(!S(e))throw new a("stream",["ReadableStream","WritableStream","Stream"],e);const h=null!==(i=t.readable)&&void 0!==i?i:m(e),R=null!==(p=t.writable)&&void 0!==p?p:_(e),P=e._writableState,I=e._readableState,A=()=>{e.writable||V()};let T=M(e)&&m(e)===h&&_(e)===R,H=L(e,!1);const V=()=>{H=!0,e.destroyed&&(T=!1),(!T||e.readable&&!h)&&(h&&!B||n.call(e))};let B=w(e,!1);const D=()=>{B=!0,e.destroyed&&(T=!1),(!T||e.writable&&!R)&&(R&&!H||n.call(e))},Z=t=>{n.call(e,t)};let $=g(e);const F=()=>{$=!0;const t=E(e)||b(e);return t&&"boolean"!=typeof t?n.call(e,t):h&&!B&&m(e,!0)&&!w(e,!1)?n.call(e,new l):!R||H||L(e,!1)?void n.call(e):n.call(e,new l)},N=()=>{$=!0;const t=E(e)||b(e);if(t&&"boolean"!=typeof t)return n.call(e,t);n.call(e)},U=()=>{e.req.on("finish",V)};!function(e){return e.setHeader&&"function"==typeof e.abort}(e)?R&&!P&&(e.on("end",A),e.on("close",A)):(e.on("complete",V),T||e.on("abort",F),e.req?U():e.on("request",U)),T||"boolean"!=typeof e.aborted||e.on("aborted",F),e.on("end",D),e.on("finish",V),!1!==t.error&&e.on("error",Z),e.on("close",F),$?r.nextTick(F):null!=P&&P.errorEmitted||null!=I&&I.errorEmitted?T||r.nextTick(N):(h||T&&!C(e)||!H&&!1!==x(e))&&(R||T&&!x(e)||!B&&!1!==C(e))?I&&e.req&&e.aborted&&r.nextTick(N):r.nextTick(N);const W=()=>{n=k,e.removeListener("aborted",F),e.removeListener("complete",V),e.removeListener("abort",F),e.removeListener("request",U),e.req&&e.req.removeListener("finish",V),e.removeListener("end",A),e.removeListener("close",A),e.removeListener("finish",V),e.removeListener("end",D),e.removeListener("error",Z),e.removeListener("close",F)};if(t.signal&&!$){const i=()=>{const r=n;W(),r.call(e,new o(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)r.nextTick(i);else{const r=n;n=c(((...n)=>{t.signal.removeEventListener("abort",i),r.apply(e,n)})),t.signal.addEventListener("abort",i)}}return W}e.exports=R,e.exports.finished=function(e,t){var n;let r=!1;return null===t&&(t=s),null!==(n=t)&&void 0!==n&&n.cleanup&&(p(t.cleanup,"cleanup"),r=t.cleanup),new h(((n,o)=>{const i=R(e,t,(e=>{r&&i(),e?o(e):n()}))}))}},913:(e,t,n)=>{const r=n(533),{PromisePrototypeThen:o,SymbolAsyncIterator:i,SymbolIterator:a}=n(191),{Buffer:l}=n(485),{ERR_INVALID_ARG_TYPE:s,ERR_STREAM_NULL_VALUES:c}=n(141).codes;e.exports=function(e,t,n){let u,f;if("string"==typeof t||t instanceof l)return new e({objectMode:!0,...n,read(){this.push(t),this.push(null)}});if(t&&t[i])f=!0,u=t[i]();else{if(!t||!t[a])throw new s("iterable",["Iterable"],t);f=!1,u=t[a]()}const d=new e({objectMode:!0,highWaterMark:1,...n});let p=!1;return d._read=function(){p||(p=!0,async function(){for(;;){try{const{value:e,done:t}=f?await u.next():u.next();if(t)d.push(null);else{const t=e&&"function"==typeof e.then?await e:e;if(null===t)throw p=!1,new c;if(d.push(t))continue;p=!1}}catch(e){d.destroy(e)}break}}())},d._destroy=function(e,t){o(async function(e){const t=null!=e,n="function"==typeof u.throw;if(t&&n){const{value:t,done:n}=await u.throw(e);if(await t,n)return}if("function"==typeof u.return){const{value:e}=await u.return();await e}}(e),(()=>r.nextTick(t,e)),(n=>r.nextTick(t,n||e)))},d}},200:(e,t,n)=>{const{ArrayIsArray:r,ObjectSetPrototypeOf:o}=n(191),{EventEmitter:i}=n(465);function a(e){i.call(this,e)}function l(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?r(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}o(a.prototype,i.prototype),o(a,i),a.prototype.pipe=function(e,t){const n=this;function r(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",r),e.on("drain",o),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",c));let a=!1;function s(){a||(a=!0,e.end())}function c(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){f(),0===i.listenerCount(this,"error")&&this.emit("error",e)}function f(){n.removeListener("data",r),e.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",c),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",f),n.removeListener("close",f),e.removeListener("close",f)}return l(n,"error",u),l(e,"error",u),n.on("end",f),n.on("close",f),e.on("close",f),e.emit("pipe",n),e},e.exports={Stream:a,prependListener:l}},554:(e,t,n)=>{const r=globalThis.AbortController||n(876).AbortController,{codes:{ERR_INVALID_ARG_VALUE:o,ERR_INVALID_ARG_TYPE:i,ERR_MISSING_ARGS:a,ERR_OUT_OF_RANGE:l},AbortError:s}=n(141),{validateAbortSignal:c,validateInteger:u,validateObject:f}=n(904),d=n(191).Symbol("kWeak"),{finished:p}=n(86),h=n(818),{addAbortSignalNoValidate:v}=n(374),{isWritable:g,isNodeStream:C}=n(132),{ArrayPrototypePush:m,MathFloor:y,Number:w,NumberIsNaN:b,Promise:x,PromiseReject:_,PromisePrototypeThen:O,Symbol:L}=n(191),E=L("kEmpty"),S=L("kEof");function M(e,t){if("function"!=typeof e)throw new i("fn",["Function","AsyncFunction"],e);null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&c(t.signal,"options.signal");let n=1;return null!=(null==t?void 0:t.concurrency)&&(n=y(t.concurrency)),u(n,"concurrency",1),async function*(){var o,i;const a=new r,l=this,c=[],u=a.signal,f={signal:u},d=()=>a.abort();let p,h;null!=t&&null!==(o=t.signal)&&void 0!==o&&o.aborted&&d(),null==t||null===(i=t.signal)||void 0===i||i.addEventListener("abort",d);let v=!1;function g(){v=!0}!async function(){try{for await(let t of l){var r;if(v)return;if(u.aborted)throw new s;try{t=e(t,f)}catch(e){t=_(e)}t!==E&&("function"==typeof(null===(r=t)||void 0===r?void 0:r.catch)&&t.catch(g),c.push(t),p&&(p(),p=null),!v&&c.length&&c.length>=n&&await new x((e=>{h=e})))}c.push(S)}catch(e){const t=_(e);O(t,void 0,g),c.push(t)}finally{var o;v=!0,p&&(p(),p=null),null==t||null===(o=t.signal)||void 0===o||o.removeEventListener("abort",d)}}();try{for(;;){for(;c.length>0;){const e=await c[0];if(e===S)return;if(u.aborted)throw new s;e!==E&&(yield e),c.shift(),h&&(h(),h=null)}await new x((e=>{p=e}))}}finally{a.abort(),v=!0,h&&(h(),h=null)}}.call(this)}async function j(e,t=void 0){for await(const n of k.call(this,e,t))return!0;return!1}function k(e,t){if("function"!=typeof e)throw new i("fn",["Function","AsyncFunction"],e);return M.call(this,(async function(t,n){return await e(t,n)?t:E}),t)}class R extends a{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}function P(e){if(e=w(e),b(e))return 0;if(e<0)throw new l("number",">= 0",e);return e}e.exports.streamReturningOperators={asIndexedPairs:function(e=void 0){return null!=e&&f(e,"options"),null!=(null==e?void 0:e.signal)&&c(e.signal,"options.signal"),async function*(){let t=0;for await(const r of this){var n;if(null!=e&&null!==(n=e.signal)&&void 0!==n&&n.aborted)throw new s({cause:e.signal.reason});yield[t++,r]}}.call(this)},drop:function(e,t=void 0){return null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&c(t.signal,"options.signal"),e=P(e),async function*(){var n;if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new s;for await(const n of this){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new s;e--<=0&&(yield n)}}.call(this)},filter:k,flatMap:function(e,t){const n=M.call(this,e,t);return async function*(){for await(const e of n)yield*e}.call(this)},map:M,take:function(e,t=void 0){return null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&c(t.signal,"options.signal"),e=P(e),async function*(){var n;if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new s;for await(const n of this){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new s;if(!(e-- >0))return;yield n}}.call(this)},compose:function(e,t){if(null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&c(t.signal,"options.signal"),C(e)&&!g(e))throw new o("stream",e,"must be writable");const n=h(this,e);return null!=t&&t.signal&&v(t.signal,n),n}},e.exports.promiseReturningOperators={every:async function(e,t=void 0){if("function"!=typeof e)throw new i("fn",["Function","AsyncFunction"],e);return!await j.call(this,(async(...t)=>!await e(...t)),t)},forEach:async function(e,t){if("function"!=typeof e)throw new i("fn",["Function","AsyncFunction"],e);for await(const n of M.call(this,(async function(t,n){return await e(t,n),E}),t));},reduce:async function(e,t,n){var o;if("function"!=typeof e)throw new i("reducer",["Function","AsyncFunction"],e);null!=n&&f(n,"options"),null!=(null==n?void 0:n.signal)&&c(n.signal,"options.signal");let a=arguments.length>1;if(null!=n&&null!==(o=n.signal)&&void 0!==o&&o.aborted){const e=new s(void 0,{cause:n.signal.reason});throw this.once("error",(()=>{})),await p(this.destroy(e)),e}const l=new r,u=l.signal;if(null!=n&&n.signal){const e={once:!0,[d]:this};n.signal.addEventListener("abort",(()=>l.abort()),e)}let h=!1;try{for await(const r of this){var v;if(h=!0,null!=n&&null!==(v=n.signal)&&void 0!==v&&v.aborted)throw new s;a?t=await e(t,r,{signal:u}):(t=r,a=!0)}if(!h&&!a)throw new R}finally{l.abort()}return t},toArray:async function(e){null!=e&&f(e,"options"),null!=(null==e?void 0:e.signal)&&c(e.signal,"options.signal");const t=[];for await(const r of this){var n;if(null!=e&&null!==(n=e.signal)&&void 0!==n&&n.aborted)throw new s(void 0,{cause:e.signal.reason});m(t,r)}return t},some:j,find:async function(e,t){for await(const n of k.call(this,e,t))return n}}},467:(e,t,n)=>{const{ObjectSetPrototypeOf:r}=n(191);e.exports=i;const o=n(210);function i(e){if(!(this instanceof i))return new i(e);o.call(this,e)}r(i.prototype,o.prototype),r(i,o),i.prototype._transform=function(e,t,n){n(null,e)}},754:(e,t,n)=>{const r=n(533),{ArrayIsArray:o,Promise:i,SymbolAsyncIterator:a}=n(191),l=n(86),{once:s}=n(775),c=n(230),u=n(182),{aggregateTwoErrors:f,codes:{ERR_INVALID_ARG_TYPE:d,ERR_INVALID_RETURN_VALUE:p,ERR_MISSING_ARGS:h,ERR_STREAM_DESTROYED:v,ERR_STREAM_PREMATURE_CLOSE:g},AbortError:C}=n(141),{validateFunction:m,validateAbortSignal:y}=n(904),{isIterable:w,isReadable:b,isReadableNodeStream:x,isNodeStream:_,isTransformStream:O,isWebStream:L,isReadableStream:E,isReadableEnded:S}=n(132),M=globalThis.AbortController||n(876).AbortController;let j,k;function R(e,t,n){let r=!1;return e.on("close",(()=>{r=!0})),{destroy:t=>{r||(r=!0,c.destroyer(e,t||new v("pipe")))},cleanup:l(e,{readable:t,writable:n},(e=>{r=!e}))}}function P(e){if(w(e))return e;if(x(e))return async function*(e){k||(k=n(858)),yield*k.prototype[a].call(e)}(e);throw new d("val",["Readable","Iterable","AsyncIterable"],e)}async function I(e,t,n,{end:r}){let o,a=null;const s=e=>{if(e&&(o=e),a){const e=a;a=null,e()}},c=()=>new i(((e,t)=>{o?t(o):a=()=>{o?t(o):e()}}));t.on("drain",s);const u=l(t,{readable:!1},s);try{t.writableNeedDrain&&await c();for await(const n of e)t.write(n)||await c();r&&t.end(),await c(),n()}catch(e){n(o!==e?f(o,e):e)}finally{u(),t.off("drain",s)}}async function A(e,t,n,{end:r}){O(t)&&(t=t.writable);const o=t.getWriter();try{for await(const t of e)await o.ready,o.write(t).catch((()=>{}));await o.ready,r&&await o.close(),n()}catch(e){try{await o.abort(e),n(e)}catch(e){n(e)}}}function T(e,t,i){if(1===e.length&&o(e[0])&&(e=e[0]),e.length<2)throw new h("streams");const a=new M,l=a.signal,s=null==i?void 0:i.signal,c=[];function f(){V(new C)}let v,g;y(s,"options.signal"),null==s||s.addEventListener("abort",f);const m=[];let S,k=0;function T(e){V(e,0==--k)}function V(e,n){if(!e||v&&"ERR_STREAM_PREMATURE_CLOSE"!==v.code||(v=e),v||n){for(;m.length;)m.shift()(v);null==s||s.removeEventListener("abort",f),a.abort(),n&&(v||c.forEach((e=>e())),r.nextTick(t,v,g))}}for(let Z=0;Z<e.length;Z++){const $=e[Z],F=Z<e.length-1,N=Z>0,U=F||!1!==(null==i?void 0:i.end),W=Z===e.length-1;if(_($)){if(U){const{destroy:G,cleanup:q}=R($,F,N);m.push(G),b($)&&W&&c.push(q)}function z(e){e&&"AbortError"!==e.name&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code&&T(e)}$.on("error",z),b($)&&W&&c.push((()=>{$.removeListener("error",z)}))}if(0===Z)if("function"==typeof $){if(S=$({signal:l}),!w(S))throw new p("Iterable, AsyncIterable or Stream","source",S)}else S=w($)||x($)||O($)?$:u.from($);else if("function"==typeof $){var B;if(S=O(S)?P(null===(B=S)||void 0===B?void 0:B.readable):P(S),S=$(S,{signal:l}),F){if(!w(S,!0))throw new p("AsyncIterable",`transform[${Z-1}]`,S)}else{var D;j||(j=n(467));const Y=new j({objectMode:!0}),K=null===(D=S)||void 0===D?void 0:D.then;if("function"==typeof K)k++,K.call(S,(e=>{g=e,null!=e&&Y.write(e),U&&Y.end(),r.nextTick(T)}),(e=>{Y.destroy(e),r.nextTick(T,e)}));else if(w(S,!0))k++,I(S,Y,T,{end:U});else{if(!E(S)&&!O(S))throw new p("AsyncIterable or Promise","destination",S);{const Q=S.readable||S;k++,I(Q,Y,T,{end:U})}}S=Y;const{destroy:X,cleanup:J}=R(S,!1,!0);m.push(X),W&&c.push(J)}}else if(_($)){if(x(S)){k+=2;const ee=H(S,$,T,{end:U});b($)&&W&&c.push(ee)}else if(O(S)||E(S)){const te=S.readable||S;k++,I(te,$,T,{end:U})}else{if(!w(S))throw new d("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],S);k++,I(S,$,T,{end:U})}S=$}else if(L($)){if(x(S))k++,A(P(S),$,T,{end:U});else if(E(S)||w(S))k++,A(S,$,T,{end:U});else{if(!O(S))throw new d("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],S);k++,A(S.readable,$,T,{end:U})}S=$}else S=u.from($)}return(null!=l&&l.aborted||null!=s&&s.aborted)&&r.nextTick(f),S}function H(e,t,n,{end:o}){let i=!1;if(t.on("close",(()=>{i||n(new g)})),e.pipe(t,{end:!1}),o){function a(){i=!0,t.end()}S(e)?r.nextTick(a):e.once("end",a)}else n();return l(e,{readable:!0,writable:!1},(t=>{const r=e._readableState;t&&"ERR_STREAM_PREMATURE_CLOSE"===t.code&&r&&r.ended&&!r.errored&&!r.errorEmitted?e.once("end",n).once("error",n):n(t)})),l(t,{readable:!1,writable:!0},n)}e.exports={pipelineImpl:T,pipeline:function(...e){return T(e,s(function(e){return m(e[e.length-1],"streams[stream.length - 1]"),e.pop()}(e)))}}},858:(e,t,n)=>{const r=n(533),{ArrayPrototypeIndexOf:o,NumberIsInteger:i,NumberIsNaN:a,NumberParseInt:l,ObjectDefineProperties:s,ObjectKeys:c,ObjectSetPrototypeOf:u,Promise:f,SafeSet:d,SymbolAsyncIterator:p,Symbol:h}=n(191);e.exports=D,D.ReadableState=B;const{EventEmitter:v}=n(465),{Stream:g,prependListener:C}=n(200),{Buffer:m}=n(485),{addAbortSignal:y}=n(374),w=n(86);let b=n(775).debuglog("stream",(e=>{b=e}));const x=n(616),_=n(230),{getHighWaterMark:O,getDefaultHighWaterMark:L}=n(498),{aggregateTwoErrors:E,codes:{ERR_INVALID_ARG_TYPE:S,ERR_METHOD_NOT_IMPLEMENTED:M,ERR_OUT_OF_RANGE:j,ERR_STREAM_PUSH_AFTER_EOF:k,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:R}}=n(141),{validateObject:P}=n(904),I=h("kPaused"),{StringDecoder:A}=n(464),T=n(913);u(D.prototype,g.prototype),u(D,g);const H=()=>{},{errorOrDestroy:V}=_;function B(e,t,r){"boolean"!=typeof r&&(r=t instanceof n(182)),this.objectMode=!(!e||!e.objectMode),r&&(this.objectMode=this.objectMode||!(!e||!e.readableObjectMode)),this.highWaterMark=e?O(this,e,"readableHighWaterMark",r):L(!1),this.buffer=new x,this.length=0,this.pipes=[],this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.constructed=!0,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this[I]=null,this.errorEmitted=!1,this.emitClose=!e||!1!==e.emitClose,this.autoDestroy=!e||!1!==e.autoDestroy,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,e&&e.encoding&&(this.decoder=new A(e.encoding),this.encoding=e.encoding)}function D(e){if(!(this instanceof D))return new D(e);const t=this instanceof n(182);this._readableState=new B(e,this,t),e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.construct&&(this._construct=e.construct),e.signal&&!t&&y(e.signal,this)),g.call(this,e),_.construct(this,(()=>{this._readableState.needReadable&&W(this,this._readableState)}))}function Z(e,t,n,r){b("readableAddChunk",t);const o=e._readableState;let i;if(o.objectMode||("string"==typeof t?(n=n||o.defaultEncoding,o.encoding!==n&&(r&&o.encoding?t=m.from(t,n).toString(o.encoding):(t=m.from(t,n),n=""))):t instanceof m?n="":g._isUint8Array(t)?(t=g._uint8ArrayToBuffer(t),n=""):null!=t&&(i=new S("chunk",["string","Buffer","Uint8Array"],t))),i)V(e,i);else if(null===t)o.reading=!1,function(e,t){if(b("onEofChunk"),!t.ended){if(t.decoder){const e=t.decoder.end();e&&e.length&&(t.buffer.push(e),t.length+=t.objectMode?1:e.length)}t.ended=!0,t.sync?N(e):(t.needReadable=!1,t.emittedReadable=!0,U(e))}}(e,o);else if(o.objectMode||t&&t.length>0)if(r)if(o.endEmitted)V(e,new R);else{if(o.destroyed||o.errored)return!1;$(e,o,t,!0)}else if(o.ended)V(e,new k);else{if(o.destroyed||o.errored)return!1;o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||0!==t.length?$(e,o,t,!1):W(e,o)):$(e,o,t,!1)}else r||(o.reading=!1,W(e,o));return!o.ended&&(o.length<o.highWaterMark||0===o.length)}function $(e,t,n,r){t.flowing&&0===t.length&&!t.sync&&e.listenerCount("data")>0?(t.multiAwaitDrain?t.awaitDrainWriters.clear():t.awaitDrainWriters=null,t.dataEmitted=!0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&N(e)),W(e,t)}function F(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:a(e)?t.flowing&&t.length?t.buffer.first().length:t.length:e<=t.length?e:t.ended?t.length:0}function N(e){const t=e._readableState;b("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(b("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(U,e))}function U(e){const t=e._readableState;b("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||t.errored||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,K(e)}function W(e,t){!t.readingMore&&t.constructed&&(t.readingMore=!0,r.nextTick(z,e,t))}function z(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){const n=t.length;if(b("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function G(e){const t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!1===t[I]?t.flowing=!0:e.listenerCount("data")>0?e.resume():t.readableListening||(t.flowing=null)}function q(e){b("readable nexttick read 0"),e.read(0)}function Y(e,t){b("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),K(e),t.flowing&&!t.reading&&e.read(0)}function K(e){const t=e._readableState;for(b("flow",t.flowing);t.flowing&&null!==e.read(););}function X(e,t){"function"!=typeof e.read&&(e=D.wrap(e,{objectMode:!0}));const n=async function*(e,t){let n,r=H;function o(t){this===e?(r(),r=H):r=t}e.on("readable",o);const i=w(e,{writable:!1},(e=>{n=e?E(n,e):null,r(),r=H}));try{for(;;){const t=e.destroyed?null:e.read();if(null!==t)yield t;else{if(n)throw n;if(null===n)return;await new f(o)}}}catch(e){throw n=E(n,e),n}finally{!n&&!1===(null==t?void 0:t.destroyOnReturn)||void 0!==n&&!e._readableState.autoDestroy?(e.off("readable",o),i()):_.destroyer(e,null)}}(e,t);return n.stream=e,n}function J(e,t){if(0===t.length)return null;let n;return t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}function Q(e){const t=e._readableState;b("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(ee,t,e))}function ee(e,t){if(b("endReadableNT",e.endEmitted,e.length),!e.errored&&!e.closeEmitted&&!e.endEmitted&&0===e.length)if(e.endEmitted=!0,t.emit("end"),t.writable&&!1===t.allowHalfOpen)r.nextTick(te,t);else if(e.autoDestroy){const e=t._writableState;(!e||e.autoDestroy&&(e.finished||!1===e.writable))&&t.destroy()}}function te(e){e.writable&&!e.writableEnded&&!e.destroyed&&e.end()}let ne;function re(){return void 0===ne&&(ne={}),ne}D.prototype.destroy=_.destroy,D.prototype._undestroy=_.undestroy,D.prototype._destroy=function(e,t){t(e)},D.prototype[v.captureRejectionSymbol]=function(e){this.destroy(e)},D.prototype.push=function(e,t){return Z(this,e,t,!1)},D.prototype.unshift=function(e,t){return Z(this,e,t,!0)},D.prototype.isPaused=function(){const e=this._readableState;return!0===e[I]||!1===e.flowing},D.prototype.setEncoding=function(e){const t=new A(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;const n=this._readableState.buffer;let r="";for(const e of n)r+=t.write(e);return n.clear(),""!==r&&n.push(r),this._readableState.length=r.length,this},D.prototype.read=function(e){b("read",e),void 0===e?e=NaN:i(e)||(e=l(e,10));const t=this._readableState,n=e;if(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>1073741824)throw new j("size","<= 1GiB",e);return e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,++e}(e)),0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return b("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?Q(this):N(this),null;if(0===(e=F(e,t))&&t.ended)return 0===t.length&&Q(this),null;let r,o=t.needReadable;if(b("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&(o=!0,b("length less than watermark",o)),t.ended||t.reading||t.destroyed||t.errored||!t.constructed)o=!1,b("reading, ended or constructing",o);else if(o){b("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0);try{this._read(t.highWaterMark)}catch(e){V(this,e)}t.sync=!1,t.reading||(e=F(n,t))}return r=e>0?J(e,t):null,null===r?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.multiAwaitDrain?t.awaitDrainWriters.clear():t.awaitDrainWriters=null),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&Q(this)),null===r||t.errorEmitted||t.closeEmitted||(t.dataEmitted=!0,this.emit("data",r)),r},D.prototype._read=function(e){throw new M("_read()")},D.prototype.pipe=function(e,t){const n=this,o=this._readableState;1===o.pipes.length&&(o.multiAwaitDrain||(o.multiAwaitDrain=!0,o.awaitDrainWriters=new d(o.awaitDrainWriters?[o.awaitDrainWriters]:[]))),o.pipes.push(e),b("pipe count=%d opts=%j",o.pipes.length,t);const i=t&&!1===t.end||e===r.stdout||e===r.stderr?v:a;function a(){b("onend"),e.end()}let l;o.endEmitted?r.nextTick(i):n.once("end",i),e.on("unpipe",(function t(r,i){b("onunpipe"),r===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,b("cleanup"),e.removeListener("close",p),e.removeListener("finish",h),l&&e.removeListener("drain",l),e.removeListener("error",f),e.removeListener("unpipe",t),n.removeListener("end",a),n.removeListener("end",v),n.removeListener("data",u),s=!0,l&&o.awaitDrainWriters&&(!e._writableState||e._writableState.needDrain)&&l())}));let s=!1;function c(){s||(1===o.pipes.length&&o.pipes[0]===e?(b("false write response, pause",0),o.awaitDrainWriters=e,o.multiAwaitDrain=!1):o.pipes.length>1&&o.pipes.includes(e)&&(b("false write response, pause",o.awaitDrainWriters.size),o.awaitDrainWriters.add(e)),n.pause()),l||(l=function(e,t){return function(){const n=e._readableState;n.awaitDrainWriters===t?(b("pipeOnDrain",1),n.awaitDrainWriters=null):n.multiAwaitDrain&&(b("pipeOnDrain",n.awaitDrainWriters.size),n.awaitDrainWriters.delete(t)),n.awaitDrainWriters&&0!==n.awaitDrainWriters.size||!e.listenerCount("data")||e.resume()}}(n,e),e.on("drain",l))}function u(t){b("ondata");const n=e.write(t);b("dest.write",n),!1===n&&c()}function f(t){if(b("onerror",t),v(),e.removeListener("error",f),0===e.listenerCount("error")){const n=e._writableState||e._readableState;n&&!n.errorEmitted?V(e,t):e.emit("error",t)}}function p(){e.removeListener("finish",h),v()}function h(){b("onfinish"),e.removeListener("close",p),v()}function v(){b("unpipe"),n.unpipe(e)}return n.on("data",u),C(e,"error",f),e.once("close",p),e.once("finish",h),e.emit("pipe",n),!0===e.writableNeedDrain?o.flowing&&c():o.flowing||(b("pipe resume"),n.resume()),e},D.prototype.unpipe=function(e){const t=this._readableState;if(0===t.pipes.length)return this;if(!e){const e=t.pipes;t.pipes=[],this.pause();for(let t=0;t<e.length;t++)e[t].emit("unpipe",this,{hasUnpiped:!1});return this}const n=o(t.pipes,e);return-1===n||(t.pipes.splice(n,1),0===t.pipes.length&&this.pause(),e.emit("unpipe",this,{hasUnpiped:!1})),this},D.prototype.on=function(e,t){const n=g.prototype.on.call(this,e,t),o=this._readableState;return"data"===e?(o.readableListening=this.listenerCount("readable")>0,!1!==o.flowing&&this.resume()):"readable"===e&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,b("on readable",o.length,o.reading),o.length?N(this):o.reading||r.nextTick(q,this))),n},D.prototype.addListener=D.prototype.on,D.prototype.removeListener=function(e,t){const n=g.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(G,this),n},D.prototype.off=D.prototype.removeListener,D.prototype.removeAllListeners=function(e){const t=g.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(G,this),t},D.prototype.resume=function(){const e=this._readableState;return e.flowing||(b("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(Y,e,t))}(this,e)),e[I]=!1,this},D.prototype.pause=function(){return b("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(b("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[I]=!0,this},D.prototype.wrap=function(e){let t=!1;e.on("data",(n=>{!this.push(n)&&e.pause&&(t=!0,e.pause())})),e.on("end",(()=>{this.push(null)})),e.on("error",(e=>{V(this,e)})),e.on("close",(()=>{this.destroy()})),e.on("destroy",(()=>{this.destroy()})),this._read=()=>{t&&e.resume&&(t=!1,e.resume())};const n=c(e);for(let t=1;t<n.length;t++){const r=n[t];void 0===this[r]&&"function"==typeof e[r]&&(this[r]=e[r].bind(e))}return this},D.prototype[p]=function(){return X(this)},D.prototype.iterator=function(e){return void 0!==e&&P(e,"options"),X(this,e)},s(D.prototype,{readable:{__proto__:null,get(){const e=this._readableState;return!(!e||!1===e.readable||e.destroyed||e.errorEmitted||e.endEmitted)},set(e){this._readableState&&(this._readableState.readable=!!e)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._readableState.readable||!this._readableState.destroyed&&!this._readableState.errored||this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.objectMode}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return!!this._readableState&&this._readableState.closed}},destroyed:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.destroyed},set(e){this._readableState&&(this._readableState.destroyed=e)}},readableEnded:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.endEmitted}}}),s(B.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return!1!==this[I]},set(e){this[I]=!!e}}}),D._fromList=J,D.from=function(e,t){return T(D,e,t)},D.fromWeb=function(e,t){return re().newStreamReadableFromReadableStream(e,t)},D.toWeb=function(e,t){return re().newReadableStreamFromStreamReadable(e,t)},D.wrap=function(e,t){var n,r;return new D({objectMode:null===(n=null!==(r=e.readableObjectMode)&&void 0!==r?r:e.objectMode)||void 0===n||n,...t,destroy(t,n){_.destroyer(e,t),n(t)}}).wrap(e)}},498:(e,t,n)=>{const{MathFloor:r,NumberIsInteger:o}=n(191),{ERR_INVALID_ARG_VALUE:i}=n(141).codes;function a(e){return e?16:16384}e.exports={getHighWaterMark:function(e,t,n,l){const s=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,l,n);if(null!=s){if(!o(s)||s<0)throw new i(l?`options.${n}`:"options.highWaterMark",s);return r(s)}return a(e.objectMode)},getDefaultHighWaterMark:a}},210:(e,t,n)=>{const{ObjectSetPrototypeOf:r,Symbol:o}=n(191);e.exports=c;const{ERR_METHOD_NOT_IMPLEMENTED:i}=n(141).codes,a=n(182),{getHighWaterMark:l}=n(498);r(c.prototype,a.prototype),r(c,a);const s=o("kCallback");function c(e){if(!(this instanceof c))return new c(e);const t=e?l(this,e,"readableHighWaterMark",!0):null;0===t&&(e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}),a.call(this,e),this._readableState.sync=!1,this[s]=null,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function u(e){"function"!=typeof this._flush||this.destroyed?(this.push(null),e&&e()):this._flush(((t,n)=>{t?e?e(t):this.destroy(t):(null!=n&&this.push(n),this.push(null),e&&e())}))}function f(){this._final!==u&&u.call(this)}c.prototype._final=u,c.prototype._transform=function(e,t,n){throw new i("_transform()")},c.prototype._write=function(e,t,n){const r=this._readableState,o=this._writableState,i=r.length;this._transform(e,t,((e,t)=>{e?n(e):(null!=t&&this.push(t),o.ended||i===r.length||r.length<r.highWaterMark?n():this[s]=n)}))},c.prototype._read=function(){if(this[s]){const e=this[s];this[s]=null,e()}}},132:(e,t,n)=>{const{Symbol:r,SymbolAsyncIterator:o,SymbolIterator:i,SymbolFor:a}=n(191),l=r("kDestroyed"),s=r("kIsErrored"),c=r("kIsReadable"),u=r("kIsDisturbed"),f=a("nodejs.webstream.isClosedPromise"),d=a("nodejs.webstream.controllerErrorFunction");function p(e,t=!1){var n;return!(!e||"function"!=typeof e.pipe||"function"!=typeof e.on||t&&("function"!=typeof e.pause||"function"!=typeof e.resume)||e._writableState&&!1===(null===(n=e._readableState)||void 0===n?void 0:n.readable)||e._writableState&&!e._readableState)}function h(e){var t;return!(!e||"function"!=typeof e.write||"function"!=typeof e.on||e._readableState&&!1===(null===(t=e._writableState)||void 0===t?void 0:t.writable))}function v(e){return e&&(e._readableState||e._writableState||"function"==typeof e.write&&"function"==typeof e.on||"function"==typeof e.pipe&&"function"==typeof e.on)}function g(e){return!(!e||v(e)||"function"!=typeof e.pipeThrough||"function"!=typeof e.getReader||"function"!=typeof e.cancel)}function C(e){return!(!e||v(e)||"function"!=typeof e.getWriter||"function"!=typeof e.abort)}function m(e){return!(!e||v(e)||"object"!=typeof e.readable||"object"!=typeof e.writable)}function y(e){if(!v(e))return null;const t=e._writableState,n=e._readableState,r=t||n;return!!(e.destroyed||e[l]||null!=r&&r.destroyed)}function w(e){if(!h(e))return null;if(!0===e.writableEnded)return!0;const t=e._writableState;return(null==t||!t.errored)&&("boolean"!=typeof(null==t?void 0:t.ended)?null:t.ended)}function b(e,t){if(!p(e))return null;const n=e._readableState;return(null==n||!n.errored)&&("boolean"!=typeof(null==n?void 0:n.endEmitted)?null:!!(n.endEmitted||!1===t&&!0===n.ended&&0===n.length))}function x(e){return e&&null!=e[c]?e[c]:"boolean"!=typeof(null==e?void 0:e.readable)?null:!y(e)&&p(e)&&e.readable&&!b(e)}function _(e){return"boolean"!=typeof(null==e?void 0:e.writable)?null:!y(e)&&h(e)&&e.writable&&!w(e)}function O(e){return"boolean"==typeof e._closed&&"boolean"==typeof e._defaultKeepAlive&&"boolean"==typeof e._removedConnection&&"boolean"==typeof e._removedContLen}function L(e){return"boolean"==typeof e._sent100&&O(e)}e.exports={kDestroyed:l,isDisturbed:function(e){var t;return!(!e||!(null!==(t=e[u])&&void 0!==t?t:e.readableDidRead||e.readableAborted))},kIsDisturbed:u,isErrored:function(e){var t,n,r,o,i,a,l,c,u,f;return!(!e||!(null!==(t=null!==(n=null!==(r=null!==(o=null!==(i=null!==(a=e[s])&&void 0!==a?a:e.readableErrored)&&void 0!==i?i:e.writableErrored)&&void 0!==o?o:null===(l=e._readableState)||void 0===l?void 0:l.errorEmitted)&&void 0!==r?r:null===(c=e._writableState)||void 0===c?void 0:c.errorEmitted)&&void 0!==n?n:null===(u=e._readableState)||void 0===u?void 0:u.errored)&&void 0!==t?t:null===(f=e._writableState)||void 0===f?void 0:f.errored))},kIsErrored:s,isReadable:x,kIsReadable:c,kIsClosedPromise:f,kControllerErrorFunction:d,isClosed:function(e){if(!v(e))return null;if("boolean"==typeof e.closed)return e.closed;const t=e._writableState,n=e._readableState;return"boolean"==typeof(null==t?void 0:t.closed)||"boolean"==typeof(null==n?void 0:n.closed)?(null==t?void 0:t.closed)||(null==n?void 0:n.closed):"boolean"==typeof e._closed&&O(e)?e._closed:null},isDestroyed:y,isDuplexNodeStream:function(e){return!(!e||"function"!=typeof e.pipe||!e._readableState||"function"!=typeof e.on||"function"!=typeof e.write)},isFinished:function(e,t){return v(e)?!(!y(e)&&(!1!==(null==t?void 0:t.readable)&&x(e)||!1!==(null==t?void 0:t.writable)&&_(e))):null},isIterable:function(e,t){return null!=e&&(!0===t?"function"==typeof e[o]:!1===t?"function"==typeof e[i]:"function"==typeof e[o]||"function"==typeof e[i])},isReadableNodeStream:p,isReadableStream:g,isReadableEnded:function(e){if(!p(e))return null;if(!0===e.readableEnded)return!0;const t=e._readableState;return!(!t||t.errored)&&("boolean"!=typeof(null==t?void 0:t.ended)?null:t.ended)},isReadableFinished:b,isReadableErrored:function(e){var t,n;return v(e)?e.readableErrored?e.readableErrored:null!==(t=null===(n=e._readableState)||void 0===n?void 0:n.errored)&&void 0!==t?t:null:null},isNodeStream:v,isWebStream:function(e){return g(e)||C(e)||m(e)},isWritable:_,isWritableNodeStream:h,isWritableStream:C,isWritableEnded:w,isWritableFinished:function(e,t){if(!h(e))return null;if(!0===e.writableFinished)return!0;const n=e._writableState;return(null==n||!n.errored)&&("boolean"!=typeof(null==n?void 0:n.finished)?null:!!(n.finished||!1===t&&!0===n.ended&&0===n.length))},isWritableErrored:function(e){var t,n;return v(e)?e.writableErrored?e.writableErrored:null!==(t=null===(n=e._writableState)||void 0===n?void 0:n.errored)&&void 0!==t?t:null:null},isServerRequest:function(e){var t;return"boolean"==typeof e._consuming&&"boolean"==typeof e._dumped&&void 0===(null===(t=e.req)||void 0===t?void 0:t.upgradeOrConnect)},isServerResponse:L,willEmitClose:function(e){if(!v(e))return null;const t=e._writableState,n=e._readableState,r=t||n;return!r&&L(e)||!!(r&&r.autoDestroy&&r.emitClose&&!1===r.closed)},isTransformStream:m}},373:(e,t,n)=>{const r=n(533),{ArrayPrototypeSlice:o,Error:i,FunctionPrototypeSymbolHasInstance:a,ObjectDefineProperty:l,ObjectDefineProperties:s,ObjectSetPrototypeOf:c,StringPrototypeToLowerCase:u,Symbol:f,SymbolHasInstance:d}=n(191);e.exports=A,A.WritableState=P;const{EventEmitter:p}=n(465),h=n(200).Stream,{Buffer:v}=n(485),g=n(230),{addAbortSignal:C}=n(374),{getHighWaterMark:m,getDefaultHighWaterMark:y}=n(498),{ERR_INVALID_ARG_TYPE:w,ERR_METHOD_NOT_IMPLEMENTED:b,ERR_MULTIPLE_CALLBACK:x,ERR_STREAM_CANNOT_PIPE:_,ERR_STREAM_DESTROYED:O,ERR_STREAM_ALREADY_FINISHED:L,ERR_STREAM_NULL_VALUES:E,ERR_STREAM_WRITE_AFTER_END:S,ERR_UNKNOWN_ENCODING:M}=n(141).codes,{errorOrDestroy:j}=g;function k(){}c(A.prototype,h.prototype),c(A,h);const R=f("kOnFinished");function P(e,t,r){"boolean"!=typeof r&&(r=t instanceof n(182)),this.objectMode=!(!e||!e.objectMode),r&&(this.objectMode=this.objectMode||!(!e||!e.writableObjectMode)),this.highWaterMark=e?m(this,e,"writableHighWaterMark",r):y(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const o=!(!e||!1!==e.decodeStrings);this.decodeStrings=!o,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=B.bind(void 0,t),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,I(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!e||!1!==e.emitClose,this.autoDestroy=!e||!1!==e.autoDestroy,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[R]=[]}function I(e){e.buffered=[],e.bufferedIndex=0,e.allBuffers=!0,e.allNoop=!0}function A(e){const t=this instanceof n(182);if(!t&&!a(A,this))return new A(e);this._writableState=new P(e,this,t),e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final),"function"==typeof e.construct&&(this._construct=e.construct),e.signal&&C(e.signal,this)),h.call(this,e),g.construct(this,(()=>{const e=this._writableState;e.writing||F(this,e),U(this,e)}))}function T(e,t,n,o){const i=e._writableState;if("function"==typeof n)o=n,n=i.defaultEncoding;else{if(n){if("buffer"!==n&&!v.isEncoding(n))throw new M(n)}else n=i.defaultEncoding;"function"!=typeof o&&(o=k)}if(null===t)throw new E;if(!i.objectMode)if("string"==typeof t)!1!==i.decodeStrings&&(t=v.from(t,n),n="buffer");else if(t instanceof v)n="buffer";else{if(!h._isUint8Array(t))throw new w("chunk",["string","Buffer","Uint8Array"],t);t=h._uint8ArrayToBuffer(t),n="buffer"}let a;return i.ending?a=new S:i.destroyed&&(a=new O("write")),a?(r.nextTick(o,a),j(e,a,!0),a):(i.pendingcb++,function(e,t,n,r,o){const i=t.objectMode?1:n.length;t.length+=i;const a=t.length<t.highWaterMark;return a||(t.needDrain=!0),t.writing||t.corked||t.errored||!t.constructed?(t.buffered.push({chunk:n,encoding:r,callback:o}),t.allBuffers&&"buffer"!==r&&(t.allBuffers=!1),t.allNoop&&o!==k&&(t.allNoop=!1)):(t.writelen=i,t.writecb=o,t.writing=!0,t.sync=!0,e._write(n,r,t.onwrite),t.sync=!1),a&&!t.errored&&!t.destroyed}(e,i,t,n,o))}function H(e,t,n,r,o,i,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new O("write")):n?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function V(e,t,n,r){--t.pendingcb,r(n),$(t),j(e,n)}function B(e,t){const n=e._writableState,o=n.sync,i=n.writecb;"function"==typeof i?(n.writing=!1,n.writecb=null,n.length-=n.writelen,n.writelen=0,t?(t.stack,n.errored||(n.errored=t),e._readableState&&!e._readableState.errored&&(e._readableState.errored=t),o?r.nextTick(V,e,n,t,i):V(e,n,t,i)):(n.buffered.length>n.bufferedIndex&&F(e,n),o?null!==n.afterWriteTickInfo&&n.afterWriteTickInfo.cb===i?n.afterWriteTickInfo.count++:(n.afterWriteTickInfo={count:1,cb:i,stream:e,state:n},r.nextTick(D,n.afterWriteTickInfo)):Z(e,n,1,i))):j(e,new x)}function D({stream:e,state:t,count:n,cb:r}){return t.afterWriteTickInfo=null,Z(e,t,n,r)}function Z(e,t,n,r){for(!t.ending&&!e.destroyed&&0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"));n-- >0;)t.pendingcb--,r();t.destroyed&&$(t),U(e,t)}function $(e){if(e.writing)return;for(let n=e.bufferedIndex;n<e.buffered.length;++n){var t;const{chunk:r,callback:o}=e.buffered[n],i=e.objectMode?1:r.length;e.length-=i,o(null!==(t=e.errored)&&void 0!==t?t:new O("write"))}const n=e[R].splice(0);for(let t=0;t<n.length;t++){var r;n[t](null!==(r=e.errored)&&void 0!==r?r:new O("end"))}I(e)}function F(e,t){if(t.corked||t.bufferProcessing||t.destroyed||!t.constructed)return;const{buffered:n,bufferedIndex:r,objectMode:i}=t,a=n.length-r;if(!a)return;let l=r;if(t.bufferProcessing=!0,a>1&&e._writev){t.pendingcb-=a-1;const r=t.allNoop?k:e=>{for(let t=l;t<n.length;++t)n[t].callback(e)},i=t.allNoop&&0===l?n:o(n,l);i.allBuffers=t.allBuffers,H(e,t,!0,t.length,i,"",r),I(t)}else{do{const{chunk:r,encoding:o,callback:a}=n[l];n[l++]=null,H(e,t,!1,i?1:r.length,r,o,a)}while(l<n.length&&!t.writing);l===n.length?I(t):l>256?(n.splice(0,l),t.bufferedIndex=0):t.bufferedIndex=l}t.bufferProcessing=!1}function N(e){return e.ending&&!e.destroyed&&e.constructed&&0===e.length&&!e.errored&&0===e.buffered.length&&!e.finished&&!e.writing&&!e.errorEmitted&&!e.closeEmitted}function U(e,t,n){N(t)&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.finalCalled=!0,function(e,t){let n=!1;function o(o){if(n)j(e,null!=o?o:x());else if(n=!0,t.pendingcb--,o){const n=t[R].splice(0);for(let e=0;e<n.length;e++)n[e](o);j(e,o,t.sync)}else N(t)&&(t.prefinished=!0,e.emit("prefinish"),t.pendingcb++,r.nextTick(W,e,t))}t.sync=!0,t.pendingcb++;try{e._final(o)}catch(e){o(e)}t.sync=!1}(e,t)))}(e,t),0===t.pendingcb&&(n?(t.pendingcb++,r.nextTick(((e,t)=>{N(t)?W(e,t):t.pendingcb--}),e,t)):N(t)&&(t.pendingcb++,W(e,t))))}function W(e,t){t.pendingcb--,t.finished=!0;const n=t[R].splice(0);for(let e=0;e<n.length;e++)n[e]();if(e.emit("finish"),t.autoDestroy){const t=e._readableState;(!t||t.autoDestroy&&(t.endEmitted||!1===t.readable))&&e.destroy()}}P.prototype.getBuffer=function(){return o(this.buffered,this.bufferedIndex)},l(P.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}}),l(A,d,{__proto__:null,value:function(e){return!!a(this,e)||this===A&&e&&e._writableState instanceof P}}),A.prototype.pipe=function(){j(this,new _)},A.prototype.write=function(e,t,n){return!0===T(this,e,t,n)},A.prototype.cork=function(){this._writableState.corked++},A.prototype.uncork=function(){const e=this._writableState;e.corked&&(e.corked--,e.writing||F(this,e))},A.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=u(e)),!v.isEncoding(e))throw new M(e);return this._writableState.defaultEncoding=e,this},A.prototype._write=function(e,t,n){if(!this._writev)throw new b("_write()");this._writev([{chunk:e,encoding:t}],n)},A.prototype._writev=null,A.prototype.end=function(e,t,n){const o=this._writableState;let a;if("function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e){const n=T(this,e,t);n instanceof i&&(a=n)}return o.corked&&(o.corked=1,this.uncork()),a||(o.errored||o.ending?o.finished?a=new L("end"):o.destroyed&&(a=new O("end")):(o.ending=!0,U(this,o,!0),o.ended=!0)),"function"==typeof n&&(a||o.finished?r.nextTick(n,a):o[R].push(n)),this},s(A.prototype,{closed:{__proto__:null,get(){return!!this._writableState&&this._writableState.closed}},destroyed:{__proto__:null,get(){return!!this._writableState&&this._writableState.destroyed},set(e){this._writableState&&(this._writableState.destroyed=e)}},writable:{__proto__:null,get(){const e=this._writableState;return!(!e||!1===e.writable||e.destroyed||e.errored||e.ending||e.ended)},set(e){this._writableState&&(this._writableState.writable=!!e)}},writableFinished:{__proto__:null,get(){return!!this._writableState&&this._writableState.finished}},writableObjectMode:{__proto__:null,get(){return!!this._writableState&&this._writableState.objectMode}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return!!this._writableState&&this._writableState.ending}},writableNeedDrain:{__proto__:null,get(){const e=this._writableState;return!!e&&!e.destroyed&&!e.ending&&e.needDrain}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._writableState.writable||!this._writableState.destroyed&&!this._writableState.errored||this._writableState.finished)}}});const z=g.destroy;let G;function q(){return void 0===G&&(G={}),G}A.prototype.destroy=function(e,t){const n=this._writableState;return!n.destroyed&&(n.bufferedIndex<n.buffered.length||n[R].length)&&r.nextTick($,n),z.call(this,e,t),this},A.prototype._undestroy=g.undestroy,A.prototype._destroy=function(e,t){t(e)},A.prototype[p.captureRejectionSymbol]=function(e){this.destroy(e)},A.fromWeb=function(e,t){return q().newStreamWritableFromWritableStream(e,t)},A.toWeb=function(e){return q().newWritableStreamFromStreamWritable(e)}},904:(e,t,n)=>{const{ArrayIsArray:r,ArrayPrototypeIncludes:o,ArrayPrototypeJoin:i,ArrayPrototypeMap:a,NumberIsInteger:l,NumberIsNaN:s,NumberMAX_SAFE_INTEGER:c,NumberMIN_SAFE_INTEGER:u,NumberParseInt:f,ObjectPrototypeHasOwnProperty:d,RegExpPrototypeExec:p,String:h,StringPrototypeToUpperCase:v,StringPrototypeTrim:g}=n(191),{hideStackFrames:C,codes:{ERR_SOCKET_BAD_PORT:m,ERR_INVALID_ARG_TYPE:y,ERR_INVALID_ARG_VALUE:w,ERR_OUT_OF_RANGE:b,ERR_UNKNOWN_SIGNAL:x}}=n(141),{normalizeEncoding:_}=n(775),{isAsyncFunction:O,isArrayBufferView:L}=n(775).types,E={},S=/^[0-7]+$/,M=C(((e,t,n=u,r=c)=>{if("number"!=typeof e)throw new y(t,"number",e);if(!l(e))throw new b(t,"an integer",e);if(e<n||e>r)throw new b(t,`>= ${n} && <= ${r}`,e)})),j=C(((e,t,n=-2147483648,r=2147483647)=>{if("number"!=typeof e)throw new y(t,"number",e);if(!l(e))throw new b(t,"an integer",e);if(e<n||e>r)throw new b(t,`>= ${n} && <= ${r}`,e)})),k=C(((e,t,n=!1)=>{if("number"!=typeof e)throw new y(t,"number",e);if(!l(e))throw new b(t,"an integer",e);const r=n?1:0,o=4294967295;if(e<r||e>o)throw new b(t,`>= ${r} && <= ${o}`,e)}));function R(e,t){if("string"!=typeof e)throw new y(t,"string",e)}const P=C(((e,t,n)=>{if(!o(n,e)){const r=i(a(n,(e=>"string"==typeof e?`'${e}'`:h(e))),", ");throw new w(t,e,"must be one of: "+r)}}));function I(e,t){if("boolean"!=typeof e)throw new y(t,"boolean",e)}function A(e,t,n){return null!=e&&d(e,t)?e[t]:n}const T=C(((e,t,n=null)=>{const o=A(n,"allowArray",!1),i=A(n,"allowFunction",!1);if(!A(n,"nullable",!1)&&null===e||!o&&r(e)||"object"!=typeof e&&(!i||"function"!=typeof e))throw new y(t,"Object",e)})),H=C(((e,t)=>{if(null!=e&&"object"!=typeof e&&"function"!=typeof e)throw new y(t,"a dictionary",e)})),V=C(((e,t,n=0)=>{if(!r(e))throw new y(t,"Array",e);if(e.length<n)throw new w(t,e,`must be longer than ${n}`)})),B=C(((e,t="buffer")=>{if(!L(e))throw new y(t,["Buffer","TypedArray","DataView"],e)})),D=C(((e,t)=>{if(void 0!==e&&(null===e||"object"!=typeof e||!("aborted"in e)))throw new y(t,"AbortSignal",e)})),Z=C(((e,t)=>{if("function"!=typeof e)throw new y(t,"Function",e)})),$=C(((e,t)=>{if("function"!=typeof e||O(e))throw new y(t,"Function",e)})),F=C(((e,t)=>{if(void 0!==e)throw new y(t,"undefined",e)})),N=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function U(e,t){if(void 0===e||!p(N,e))throw new w(t,e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}e.exports={isInt32:function(e){return e===(0|e)},isUint32:function(e){return e===e>>>0},parseFileMode:function(e,t,n){if(void 0===e&&(e=n),"string"==typeof e){if(null===p(S,e))throw new w(t,e,"must be a 32-bit unsigned integer or an octal string");e=f(e,8)}return k(e,t),e},validateArray:V,validateStringArray:function(e,t){V(e,t);for(let n=0;n<e.length;n++)R(e[n],`${t}[${n}]`)},validateBooleanArray:function(e,t){V(e,t);for(let n=0;n<e.length;n++)I(e[n],`${t}[${n}]`)},validateBoolean:I,validateBuffer:B,validateDictionary:H,validateEncoding:function(e,t){const n=_(t),r=e.length;if("hex"===n&&r%2!=0)throw new w("encoding",t,`is invalid for data of length ${r}`)},validateFunction:Z,validateInt32:j,validateInteger:M,validateNumber:function(e,t,n=void 0,r){if("number"!=typeof e)throw new y(t,"number",e);if(null!=n&&e<n||null!=r&&e>r||(null!=n||null!=r)&&s(e))throw new b(t,`${null!=n?`>= ${n}`:""}${null!=n&&null!=r?" && ":""}${null!=r?`<= ${r}`:""}`,e)},validateObject:T,validateOneOf:P,validatePlainFunction:$,validatePort:function(e,t="Port",n=!0){if("number"!=typeof e&&"string"!=typeof e||"string"==typeof e&&0===g(e).length||+e!=+e>>>0||e>65535||0===e&&!n)throw new m(t,e,n);return 0|e},validateSignalName:function(e,t="signal"){if(R(e,t),void 0===E[e]){if(void 0!==E[v(e)])throw new x(e+" (signals must use all capital letters)");throw new x(e)}},validateString:R,validateUint32:k,validateUndefined:F,validateUnion:function(e,t,n){if(!o(n,e))throw new y(t,`('${i(n,"|")}')`,e)},validateAbortSignal:D,validateLinkHeaderValue:function(e){if("string"==typeof e)return U(e,"hints"),e;if(r(e)){const t=e.length;let n="";if(0===t)return n;for(let r=0;r<t;r++){const o=e[r];U(o,"hints"),n+=o,r!==t-1&&(n+=", ")}return n}throw new w("hints",e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}}},99:(e,t,n)=>{const r=n(292),o=n(760),i=r.Readable.destroy;e.exports=r.Readable,e.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,e.exports._isUint8Array=r._isUint8Array,e.exports.isDisturbed=r.isDisturbed,e.exports.isErrored=r.isErrored,e.exports.isReadable=r.isReadable,e.exports.Readable=r.Readable,e.exports.Writable=r.Writable,e.exports.Duplex=r.Duplex,e.exports.Transform=r.Transform,e.exports.PassThrough=r.PassThrough,e.exports.addAbortSignal=r.addAbortSignal,e.exports.finished=r.finished,e.exports.destroy=r.destroy,e.exports.destroy=i,e.exports.pipeline=r.pipeline,e.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get:()=>o}),e.exports.Stream=r.Stream,e.exports.default=e.exports},141:(e,t,n)=>{const{format:r,inspect:o,AggregateError:i}=n(775),a=globalThis.AggregateError||i,l=Symbol("kIsNodeError"),s=["string","function","number","object","Function","Object","boolean","bigint","symbol"],c=/^([A-Z][a-z0-9]*)+$/,u={};function f(e,t){if(!e)throw new u.ERR_INTERNAL_ASSERTION(t)}function d(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function p(e,t,n){n||(n=Error);class o extends n{constructor(...n){super(function(e,t,n){if("function"==typeof t)return f(t.length<=n.length,`Code: ${e}; The provided arguments length (${n.length}) does not match the required ones (${t.length}).`),t(...n);const o=(t.match(/%[dfijoOs]/g)||[]).length;return f(o===n.length,`Code: ${e}; The provided arguments length (${n.length}) does not match the required ones (${o}).`),0===n.length?t:r(t,...n)}(e,t,n))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(o.prototype,{name:{value:n.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),o.prototype.code=e,o.prototype[l]=!0,u[e]=o}function h(e){const t="__node_internal_"+e.name;return Object.defineProperty(e,"name",{value:t}),e}class v extends Error{constructor(e="The operation was aborted",t=void 0){if(void 0!==t&&"object"!=typeof t)throw new u.ERR_INVALID_ARG_TYPE("options","Object",t);super(e,t),this.code="ABORT_ERR",this.name="AbortError"}}p("ERR_ASSERTION","%s",Error),p("ERR_INVALID_ARG_TYPE",((e,t,n)=>{f("string"==typeof e,"'name' must be a string"),Array.isArray(t)||(t=[t]);let r="The ";e.endsWith(" argument")?r+=`${e} `:r+=`"${e}" ${e.includes(".")?"property":"argument"} `,r+="must be ";const i=[],a=[],l=[];for(const e of t)f("string"==typeof e,"All expected entries have to be of type string"),s.includes(e)?i.push(e.toLowerCase()):c.test(e)?a.push(e):(f("object"!==e,'The value "object" should be written as "Object"'),l.push(e));if(a.length>0){const e=i.indexOf("object");-1!==e&&(i.splice(i,e,1),a.push("Object"))}if(i.length>0){switch(i.length){case 1:r+=`of type ${i[0]}`;break;case 2:r+=`one of type ${i[0]} or ${i[1]}`;break;default:{const e=i.pop();r+=`one of type ${i.join(", ")}, or ${e}`}}(a.length>0||l.length>0)&&(r+=" or ")}if(a.length>0){switch(a.length){case 1:r+=`an instance of ${a[0]}`;break;case 2:r+=`an instance of ${a[0]} or ${a[1]}`;break;default:{const e=a.pop();r+=`an instance of ${a.join(", ")}, or ${e}`}}l.length>0&&(r+=" or ")}switch(l.length){case 0:break;case 1:l[0].toLowerCase()!==l[0]&&(r+="an "),r+=`${l[0]}`;break;case 2:r+=`one of ${l[0]} or ${l[1]}`;break;default:{const e=l.pop();r+=`one of ${l.join(", ")}, or ${e}`}}if(null==n)r+=`. Received ${n}`;else if("function"==typeof n&&n.name)r+=`. Received function ${n.name}`;else if("object"==typeof n){var u;null!==(u=n.constructor)&&void 0!==u&&u.name?r+=`. Received an instance of ${n.constructor.name}`:r+=`. Received ${o(n,{depth:-1})}`}else{let e=o(n,{colors:!1});e.length>25&&(e=`${e.slice(0,25)}...`),r+=`. Received type ${typeof n} (${e})`}return r}),TypeError),p("ERR_INVALID_ARG_VALUE",((e,t,n="is invalid")=>{let r=o(t);return r.length>128&&(r=r.slice(0,128)+"..."),`The ${e.includes(".")?"property":"argument"} '${e}' ${n}. Received ${r}`}),TypeError),p("ERR_INVALID_RETURN_VALUE",((e,t,n)=>{var r;return`Expected ${e} to be returned from the "${t}" function but got ${null!=n&&null!==(r=n.constructor)&&void 0!==r&&r.name?`instance of ${n.constructor.name}`:"type "+typeof n}.`}),TypeError),p("ERR_MISSING_ARGS",((...e)=>{let t;f(e.length>0,"At least one arg needs to be specified");const n=e.length;switch(e=(Array.isArray(e)?e:[e]).map((e=>`"${e}"`)).join(" or "),n){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{const n=e.pop();t+=`The ${e.join(", ")}, and ${n} arguments`}}return`${t} must be specified`}),TypeError),p("ERR_OUT_OF_RANGE",((e,t,n)=>{let r;return f(t,'Missing "range" argument'),Number.isInteger(n)&&Math.abs(n)>2**32?r=d(String(n)):"bigint"==typeof n?(r=String(n),(n>2n**32n||n<-(2n**32n))&&(r=d(r)),r+="n"):r=o(n),`The value of "${e}" is out of range. It must be ${t}. Received ${r}`}),RangeError),p("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),p("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),p("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),p("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),p("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),p("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),p("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),p("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),p("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),p("ERR_STREAM_WRITE_AFTER_END","write after end",Error),p("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),e.exports={AbortError:v,aggregateTwoErrors:h((function(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;const n=new a([t,e],t.message);return n.code=t.code,n}return e||t})),hideStackFrames:h,codes:u}},191:e=>{e.exports={ArrayIsArray:e=>Array.isArray(e),ArrayPrototypeIncludes:(e,t)=>e.includes(t),ArrayPrototypeIndexOf:(e,t)=>e.indexOf(t),ArrayPrototypeJoin:(e,t)=>e.join(t),ArrayPrototypeMap:(e,t)=>e.map(t),ArrayPrototypePop:(e,t)=>e.pop(t),ArrayPrototypePush:(e,t)=>e.push(t),ArrayPrototypeSlice:(e,t,n)=>e.slice(t,n),Error,FunctionPrototypeCall:(e,t,...n)=>e.call(t,...n),FunctionPrototypeSymbolHasInstance:(e,t)=>Function.prototype[Symbol.hasInstance].call(e,t),MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties:(e,t)=>Object.defineProperties(e,t),ObjectDefineProperty:(e,t,n)=>Object.defineProperty(e,t,n),ObjectGetOwnPropertyDescriptor:(e,t)=>Object.getOwnPropertyDescriptor(e,t),ObjectKeys:e=>Object.keys(e),ObjectSetPrototypeOf:(e,t)=>Object.setPrototypeOf(e,t),Promise,PromisePrototypeCatch:(e,t)=>e.catch(t),PromisePrototypeThen:(e,t,n)=>e.then(t,n),PromiseReject:e=>Promise.reject(e),ReflectApply:Reflect.apply,RegExpPrototypeTest:(e,t)=>e.test(t),SafeSet:Set,String,StringPrototypeSlice:(e,t,n)=>e.slice(t,n),StringPrototypeToLowerCase:e=>e.toLowerCase(),StringPrototypeToUpperCase:e=>e.toUpperCase(),StringPrototypeTrim:e=>e.trim(),Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet:(e,t,n)=>e.set(t,n),Uint8Array}},775:(e,t,n)=>{const r=n(485),o=Object.getPrototypeOf((async function(){})).constructor,i=globalThis.Blob||r.Blob,a=void 0!==i?function(e){return e instanceof i}:function(e){return!1};class l extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError("Expected input to be an Array, got "+typeof e);let t="";for(let n=0;n<e.length;n++)t+=` ${e[n].stack}\n`;super(t),this.name="AggregateError",this.errors=e}}e.exports={AggregateError:l,kEmptyObject:Object.freeze({}),once(e){let t=!1;return function(...n){t||(t=!0,e.apply(this,n))}},createDeferredPromise:function(){let e,t;return{promise:new Promise(((n,r)=>{e=n,t=r})),resolve:e,reject:t}},promisify:e=>new Promise(((t,n)=>{e(((e,...r)=>e?n(e):t(...r)))})),debuglog:()=>function(){},format:(e,...t)=>e.replace(/%([sdifj])/g,(function(...[e,n]){const r=t.shift();return"f"===n?r.toFixed(6):"j"===n?JSON.stringify(r):"s"===n&&"object"==typeof r?`${r.constructor!==Object?r.constructor.name:""} {}`.trim():r.toString()})),inspect(e){switch(typeof e){case"string":if(e.includes("'")){if(!e.includes('"'))return`"${e}"`;if(!e.includes("`")&&!e.includes("${"))return`\`${e}\``}return`'${e}'`;case"number":return isNaN(e)?"NaN":Object.is(e,-0)?String(e):e;case"bigint":return`${String(e)}n`;case"boolean":case"undefined":return String(e);case"object":return"{}"}},types:{isAsyncFunction:e=>e instanceof o,isArrayBufferView:e=>ArrayBuffer.isView(e)},isBlob:a},e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")},292:(e,t,n)=>{const{Buffer:r}=n(485),{ObjectDefineProperty:o,ObjectKeys:i,ReflectApply:a}=n(191),{promisify:{custom:l}}=n(775),{streamReturningOperators:s,promiseReturningOperators:c}=n(554),{codes:{ERR_ILLEGAL_CONSTRUCTOR:u}}=n(141),f=n(818),{pipeline:d}=n(754),{destroyer:p}=n(230),h=n(86),v=n(760),g=n(132),C=e.exports=n(200).Stream;C.isDisturbed=g.isDisturbed,C.isErrored=g.isErrored,C.isReadable=g.isReadable,C.Readable=n(858);for(const y of i(s)){const w=s[y];function b(...e){if(new.target)throw u();return C.Readable.from(a(w,this,e))}o(b,"name",{__proto__:null,value:w.name}),o(b,"length",{__proto__:null,value:w.length}),o(C.Readable.prototype,y,{__proto__:null,value:b,enumerable:!1,configurable:!0,writable:!0})}for(const x of i(c)){const _=c[x];function O(...e){if(new.target)throw u();return a(_,this,e)}o(O,"name",{__proto__:null,value:_.name}),o(O,"length",{__proto__:null,value:_.length}),o(C.Readable.prototype,x,{__proto__:null,value:O,enumerable:!1,configurable:!0,writable:!0})}C.Writable=n(373),C.Duplex=n(182),C.Transform=n(210),C.PassThrough=n(467),C.pipeline=d;const{addAbortSignal:m}=n(374);C.addAbortSignal=m,C.finished=h,C.destroy=p,C.compose=f,o(C,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:()=>v}),o(d,l,{__proto__:null,enumerable:!0,get:()=>v.pipeline}),o(h,l,{__proto__:null,enumerable:!0,get:()=>v.finished}),C.Stream=C,C._isUint8Array=function(e){return e instanceof Uint8Array},C._uint8ArrayToBuffer=function(e){return r.from(e.buffer,e.byteOffset,e.byteLength)}},760:(e,t,n)=>{const{ArrayPrototypePop:r,Promise:o}=n(191),{isIterable:i,isNodeStream:a,isWebStream:l}=n(132),{pipelineImpl:s}=n(754),{finished:c}=n(86);n(91),e.exports={finished:c,pipeline:function(...e){return new o(((t,n)=>{let o,c;const u=e[e.length-1];if(u&&"object"==typeof u&&!a(u)&&!i(u)&&!l(u)){const t=r(e);o=t.signal,c=t.end}s(e,((e,r)=>{e?n(e):t(r)}),{signal:o,end:c})}))}}},533:e=>{var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var l,s=[],c=!1,u=-1;function f(){c&&l&&(c=!1,l.length?s=l.concat(s):u=-1,s.length&&d())}function d(){if(!c){var e=a(f);c=!0;for(var t=s.length;t;){for(l=s,s=[];++u<t;)l&&l[u].run();u=-1,t=s.length}l=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new p(e,t)),1!==s.length||c||a(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},377:(e,t,n)=>{var r=n(485),o=r.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=a),i(o,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},464:(e,t,n)=>{var r=n(377).Buffer,o=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=s,this.end=c,t=4;break;case"utf8":this.fillLast=l,t=4;break;case"base64":this.text=u,this.end=f,t=3;break;default:return this.write=d,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function l(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function s(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function u(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.StringDecoder=i,i.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},i.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},i.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var o=a(t[r]);return o>=0?(o>0&&(e.lastNeed=o-1),o):--r<n||-2===o?0:(o=a(t[r]))>=0?(o>0&&(e.lastNeed=o-2),o):--r<n||-2===o?0:(o=a(t[r]))>=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},54:(e,t,n)=>{n.d(t,{MS:()=>k,cF:()=>R,AK:()=>P,M_:()=>I,cX:()=>A,BT:()=>re,_W:()=>H,Pg:()=>he,$j:()=>te,U$:()=>F,U7:()=>N});var r={d:(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},o={};r.d(o,{MS:()=>i,cF:()=>a,AK:()=>s,M_:()=>l,cX:()=>c,Yd:()=>g,nj:()=>u,O4:()=>j,_W:()=>f,U$:()=>p,U7:()=>h});class i extends Error{constructor(e,t){var n,r;super(e=null!==(n=null!=e?e:null==t?void 0:t.message)&&void 0!==n?n:"An unexpected error has occurred"),this.name=this.constructor.name,this.stack=(e?this.stack:null!==(r=null==t?void 0:t.stack)&&void 0!==r?r:this.stack).replace(/^(\w*Error)/,`${this.constructor.name}`)}}class a extends i{constructor(e,t,n){var r;super(e=null!==(r=null!=e?e:null==n?void 0:n.message)&&void 0!==r?r:"An error occurred when executing the API request",n),this.status=t}}class l extends i{constructor(e,t){var n;super(e=null!==(n=null!=e?e:null==t?void 0:t.message)&&void 0!==n?n:"An authorization error occurred",t)}}class s extends i{constructor(e,t){var n;super(e=null!==(n=null!=e?e:null==t?void 0:t.message)&&void 0!==n?n:"The API request failed as the authorization tokens have expired",t)}}class c extends i{constructor(e,t){var n;super(e=null!==(n=null!=e?e:null==t?void 0:t.message)&&void 0!==n?n:"An initialization error occurred",t)}}class u extends i{constructor(e,t){var n;super(e=null!==(n=null!=e?e:null==t?void 0:t.message)&&void 0!==n?n:"The method has not been implemented",t)}}class f extends i{constructor(e){super(e=null!=e?e:"Invalid parameter detected")}}const d=e=>{let t=fin.Integrations;t||(fin.Integrations={},t=fin.Integrations);let n=t[e];return n||(t[e]={},n=t[e]),n},p=e=>{d(e).loggingEnabled=!1},h=(e,t="0.0.0")=>{d(e).loggingEnabled=!0,v(e)},v=e=>`[@openfin/${e.toLowerCase()}]`;class g{constructor(e){this.name=e,this.prefix=v(e),this.isLoggingEnabled=this.isLoggingEnabled.bind(this),this.logError=this.logError.bind(this),this.logInfo=this.logInfo.bind(this),this.logWarning=this.logWarning.bind(this)}isLoggingEnabled(){return d(this.name).loggingEnabled}logError(e){this.isLoggingEnabled()&&(e.innerError?console.error(this.prefix,e,"\n\n(inner)",e.innerError):console.error(this.prefix,e))}logInfo(...e){this.isLoggingEnabled()&&this.prefix}logWarning(...e){this.isLoggingEnabled()&&console.warn(this.prefix,...e)}}const C="oauth-api-auth-flow",m=(e,t,n,r,o,a,l,s)=>async c=>{const u=new URL(c);if(0!==u.href.toLowerCase().indexOf(o.toLowerCase()))return!1;if(window.clearInterval(s),window.clearTimeout(t),window.clearTimeout(n),e.removeAllListeners(),e.close(!0),u.searchParams.get("error")){const e=new i("Authorization error");return e.data=u.toString(),l(e),!0}if(u.searchParams.get("state")!==r){const e=new i("State mismatch");return e.data=u.toString(),l(e),!0}const f=u.searchParams.get("code");if(!f){const e=new i("Authorization code missing");return e.data=u.toString(),l(e),!0}return a(f),!0},y=(e,t,n,r)=>async(o,a)=>{let l;const s=window.setTimeout((()=>{window.clearInterval(l),window.clearTimeout(s),e.removeAllListeners(),e.close(!0),a(new i("Authorization timed out"))}),3e5);e.addListener("closing",(async()=>{r.logInfo("User closed auth window"),window.clearInterval(l),window.clearTimeout(s),e.removeAllListeners(),a(new i("Failed to complete authorization code flow"))}));const c=window.setTimeout((async()=>{try{await e.isShowing()||(r.logInfo("Showing auth window"),await e.show(!0),await e.focus())}catch(e){r.logWarning("Unable to show auth window")}}),2e3),{version:u}=await fin.System.getRuntimeInfo();parseInt(u.split(".")[0],10)>=30?await m(e,s,c,t,n,o,a)((await e.getInfo()).url)||await e.addListener("url-changed",(i=>{r.logInfo("Auth window navigated to",i.url),m(e,s,c,t,n,o,a)(i.url)})):l=window.setInterval((()=>(async(e,t,n,r,o,a,l,s)=>{let c;try{c=await e.getInfo()}catch(e){return window.clearInterval(t),window.clearTimeout(n),window.clearTimeout(r),s(new i("Could not locate auth window")),!1}return m(e,n,r,o,a,l,s,t)(c.url)})(e,l,s,c,t,n,o,a)),500)},w=()=>{let e,t,n,r;const o=async(t,n=!1)=>{const{command:r,data:a,id:l}=t,s={command:r,id:l};try{if(!e)throw new Error("Access token not found");const{apiRequestUrl:r,data:l,headers:c,httpMethod:u,includeAuthorization:f}=a,d=await(async(t,n,r,o,i)=>{var a,l;const s=Object.assign({Accept:"application/json"},o);"PATCH"!==n&&"POST"!==n&&"PUT"!==n||/content-type/i.test(Object.keys(s).join(","))||(s["Content-Type"]="application/json"),i&&(s.Authorization=`Bearer ${e}`);const c=await fetch(t,{body:"object"==typeof r?JSON.stringify(r):r,headers:s,method:n});if(!c.ok){const e={message:"Failed to execute API request"};return(null===(a=c.headers.get("Content-Type"))||void 0===a?void 0:a.includes("application/json"))&&(e.data=await c.json()),[c.status,void 0,void 0,e]}let u;const f=null!==(l=c.headers.get("Content-Type"))&&void 0!==l?l:"";switch(!0){case!f:break;case/^application\/(\w+\+)?json/i.test(f):u=await c.json();break;case/^multipart\/form-?data|^application\/x-?www-?form-?urlencoded/i.test(f):u=await c.formData();break;case/^application\/(([^/]+)?xml|vnd\.openxmlformats)|^text\/|^image\/svg/i.test(f):u=await c.text();break;default:u=await c.arrayBuffer()}return[c.status,u,f,void 0]})(r,u,l,c,f),[p,h,v,g]=d;if(s.status=p,g){if(!n&&401===p){const[e,n]=await i();return n?(s.status=e,s.error=n,s):await o(t,!0)}s.error=g}else h&&(s.data=h,s.type=v)}catch(e){e instanceof Error?s.error={message:e.message}:s.error={message:"Failed to execute API request"}}return Promise.resolve(s)},i=async()=>{var o;if(!n)throw new Error("Authorization server metadata not set");if(!t)throw new Error("Client ID not set");const i=`grant_type=refresh_token&client_id=${t}&refresh_token=${r}`,a=await fetch(n.token_endpoint,{body:i,headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"},method:"POST"});if(!a.ok){const e={message:"Failed to refresh access token"};return(null===(o=a.headers.get("Content-Type"))||void 0===o?void 0:o.includes("application/json"))&&(e.data=await a.json()),[a.status,e]}const l=await a.json();return e=l.access_token,[a.status]};self.onmessage=async i=>{const{command:a,id:l}=i.data;let s={command:a,id:l};switch(a){case"API_REQUEST":s=await o(i.data);break;case"CODE_EXCHANGE":s=await(async o=>{var i;const{command:a,data:l,id:s}=o,c={command:a,id:s};try{if(!n)throw new Error("Authorization server metadata not set");if(!t)throw new Error("Client ID not set");const{code:o,codeVerifier:a,redirectUri:s}=l,u=`grant_type=authorization_code&client_id=${t}&code=${o}&code_verifier=${a}&redirect_uri=${s}`,f=await fetch(n.token_endpoint,{body:u,headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"},method:"POST"});if(f.ok){const t=await f.json();e=t.access_token,r=t.refresh_token}else{const e={message:"Failed to retrieve tokens"};(null===(i=f.headers.get("Content-Type"))||void 0===i?void 0:i.includes("application/json"))&&(e.data=await f.json()),c.error=e}}catch(e){e instanceof Error?c.error={message:e.message}:c.error={message:"Failed to retrieve tokens"}}return Promise.resolve(c)})(i.data);break;case"EXPIRE_TOKENS":s=await(async t=>{var o;const{command:i,expireAccessTokenOnly:a,id:l}=t,s={command:i,id:l};try{if(!a&&!r)throw new Error("Refresh token not found");if(!n)throw new Error("Authorization server metadata not set");if(!n.revocation_endpoint)throw new Error("Revocation endpoint missing in authorization server metadata");const t=a?e:r,i=await fetch(`${n.revocation_endpoint}?token=${t}`,{headers:{Accept:"application/json"}});if(!i.ok){const e={message:"Failed to revoke tokens"};(null===(o=i.headers.get("Content-Type"))||void 0===o?void 0:o.includes("application/json"))&&(e.data=await i.json()),s.error=e}}catch(e){e instanceof Error?s.error={message:e.message}:s.error={message:"Failed to revoke tokens"}}return Promise.resolve(s)})(i.data);break;case"INIT":s=await(async e=>{const{command:r,data:o,id:i}=e,a={command:r,id:i};return t=o.clientId,n=o.metadata,Promise.resolve(a)})(i.data);break;default:s.error=new Error(`Unexpected oauth worker command: ${a}`)}self.postMessage(s)}};var b;!function(e){e.ApiRequest="API_REQUEST",e.CodeExchange="CODE_EXCHANGE",e.ExpireTokens="EXPIRE_TOKENS",e.Init="INIT"}(b||(b={}));const x=[],_=e=>{x.push(e)},O=(e,t)=>(n,r,o)=>new Promise(((i,a)=>{const l={command:b.CodeExchange,data:{code:n,codeVerifier:r,redirectUri:o},id:Date.now().toString()},{command:s,id:c}=l;_({command:s,id:c,reject:a,resolve:i}),e.postMessage(l),t.logInfo("Worker request sent",l)})),L=(e,t,n)=>(r,o,i,a,l)=>new Promise(((s,c)=>{const u={command:b.ApiRequest,data:{apiRequestUrl:r,clientId:e,data:i,headers:a,httpMethod:o,includeAuthorization:l},id:Date.now().toString()},{command:f,id:d}=u;_({command:f,id:d,reject:c,resolve:s}),t.postMessage(u),n.logInfo("Worker request sent",u)})),E=(e,t)=>n=>new Promise(((r,o)=>{const i={command:b.ExpireTokens,expireAccessTokenOnly:n,id:Date.now().toString()},{command:a,id:l}=i;_({command:a,id:l,reject:o,resolve:r}),e.postMessage(i),t.logInfo("Worker request sent",i)})),S=(e,t)=>{const n=x.findIndex((n=>n.command===t&&n.id===e));n>=0&&x.splice(n,1)},M=(e,t)=>async()=>{try{await E(e,t)(!1)}catch(e){t.logWarning(e.message)}e.terminate(),t.logInfo("Worker terminated")};class j{get apiOrigin(){return this._apiOrigin}get clientId(){return this._clientId}get logger(){return this._logger}get metadata(){return this._metadata}get worker(){return this._worker}constructor(e,t,n,r,o){if(this.executeApiRequest=async(e,t="GET",n,r,o=!0,i=!1)=>{this._logger.logInfo("ExecuteApiRequest started",e,t,n,r);try{const i=await((e,t)=>async(n,r,o,i,l)=>{try{return await t.executeApiRequest(`${e}${n}`,r,o,i,l)}catch(e){let t;const{data:n,message:r,status:o}=e;throw t=e instanceof Error?new a(r,o):"Failed to refresh access token"===r?new s(r):new a(r,o),t.data=n,t}})(this._apiOrigin,this._worker)(e,t,n,r,o);return this._logger.logInfo("ExecuteApiRequest completed",i),i}catch(e){if(e instanceof a){const{data:t,message:n,name:r,stack:o}=e,i=this.getErrorMessageFromServerResponse(t);i&&(e.message=i,e.stack=null==o?void 0:o.replace(`${r}: ${n}`,`${r}: ${i}`))}throw i&&this.logger.logError(e),e}},!(e&&t&&n&&r&&o))throw new c("Provider has not been properly initialized (call init to create new instances)");this._apiOrigin=e,this._clientId=t,this._metadata=n,this._worker=r,this._logger=o,this.authorize=this.authorize.bind(this),this.close=this.close.bind(this),this.executeApiRequest=this.executeApiRequest.bind(this),this.expireTokens=this.expireTokens.bind(this),this.getErrorMessageFromServerResponse=this.getErrorMessageFromServerResponse.bind(this)}async authorize(e,t,n){if(this._logger.logInfo("Authorize started",e,t,n),!this._metadata||!this._clientId||!this._worker)throw new c("Provider has not been properly initialized (call init to create new instances)");try{await(r=this._metadata,o=this._clientId,a=this._worker,s=this._logger,async(e,t,n)=>{const{authorization_endpoint:i}=r,l=fin.Application.getCurrentSync(),c=(await l.getChildWindows()).find((e=>e.identity.name===C));c&&await c.close(!0);const u=(new Date).getTime().toString(),f=(()=>{const e=new Uint32Array(64);return window.crypto.getRandomValues(e),Array.from(e,(e=>`0${e.toString(16)}`.slice(-2))).join("")})(),d=(await(async e=>{const t=(new TextEncoder).encode(e),n=await window.crypto.subtle.digest("SHA-256",t),r=await(e=>new Promise(((t,n)=>{try{const r=new Blob([e]),o=new FileReader;o.onload=e=>{var r,o;const i=null===(r=e.target)||void 0===r?void 0:r.result;if(i){const[,e]=Array.from(null!==(o=i.match(/base64,(.*)$/i))&&void 0!==o?o:[]);t(null!=e?e:"")}n(new Error("Unexpected empty result"))},o.readAsDataURL(r)}catch(e){n(e)}})))(n);return r.replace(/\+/g,"-").replace(/\//g,"_")})(f)).replace(/=+$/,"");let p="";t&&(p="&",p+=Object.entries(t).map((e=>`${encodeURIComponent(e[0])}=${encodeURIComponent(e[1])}`)).join("&"));const h=`${i}?client_id=${encodeURIComponent(o)}&redirect_uri=${encodeURIComponent(e)}&response_type=code&state=${u}&code_challenge=${d}&code_challenge_method=S256${p}`,v=null!=n?n:{},{defaultHeight:g,defaultWidth:m}=v,w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(v,["defaultHeight","defaultWidth"]);s.logInfo("Starting OAuth flow",h);const b=await fin.Window.create(Object.assign({alwaysOnTop:!0,maximizable:!1,minimizable:!1,autoShow:!1,defaultCentered:!0,defaultHeight:null!=g?g:700,defaultWidth:null!=m?m:600,includeInSnapshots:!1,name:C,resizable:!1,saveWindowState:!1,showTaskbarIcon:!1,url:h},w)),x=await new Promise(y(b,u,e,s));s.logInfo("Received authorization code"),await a.exchangeCodeForTokens(x,f,e),s.logInfo("Received tokens")})(e,t,n),this._logger.logInfo("Authorize completed")}catch(e){let t;if(e instanceof i){const{data:n}=e,r=this.getErrorMessageFromServerResponse(n);t=new l(r,e),t.data=n}else t=new l(void 0,e);throw this.logger.logError(t),t}var r,o,a,s}async close(){var e;this._logger.logInfo("Close started");try{await(null===(e=this._worker)||void 0===e?void 0:e.terminate()),this._worker=void 0,this._apiOrigin=void 0,this._clientId=void 0,this._metadata=void 0,this._logger.logInfo("Close completed")}catch(e){const t=new i(void 0,e);throw this._logger.logError(t),t}}async expireTokens(e=!1){var t;this._logger.logInfo("ExpireTokens started");try{await(null===(t=this._worker)||void 0===t?void 0:t.expireTokens(e)),this._logger.logInfo("ExpireTokens completed")}catch(e){const t=new i(void 0,e);throw this._logger.logError(t),t}}getErrorMessageFromServerResponse(e){e&&this._logger.logWarning(e)}static async init(e,t,n,r,...o){const a=new g(r);let l;a.logInfo("Init started",e,t,n);try{l=new URL(t)}catch(e){const t=new f("Unexpected invalid API origin");throw a.logError(t),t}try{const t=await(async e=>{let t;try{t=new URL(e)}catch(e){throw new f("Unexpected invalid metadata URL")}const n=await fetch(t,{headers:{Accept:"application/json"}});if(!n.ok)throw new Error("Failed to retrieve authorization server metadata");const r=await n.json();if(!r)throw new Error("Unexpected empty authorization server metadata response");if(!r.response_types_supported.find((e=>"code"===e.toLowerCase())))throw new Error("Authorization server does not support the authorization code response type");return r})(e),r=await(async(e,t,n)=>{const r=new Blob([`(${w})()`],{type:"text/javascript"}),o=URL.createObjectURL(r),i=new Worker(o);return i.onmessage=(e=>t=>{e.logInfo("Worker response received",t.data);const n=t.data,{command:r,error:o,id:i}=n,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(n,["command","error","id"]),l=((e,t)=>x.find((n=>n.command===t&&n.id===e)))(i,r);l?(o?("status"in a&&void 0!==a.status&&(o.status=a.status),l.reject(o)):l.resolve(a),S(i,r)):e.logError(new Error("Unable to locate awaited request"))})(n),await((e,t,n,r)=>new Promise(((o,i)=>{const a={command:b.Init,data:{clientId:t,metadata:e},id:Date.now().toString()},{command:l,id:s}=a;_({command:l,id:s,reject:i,resolve:o}),n.postMessage(a),r.logInfo("Worker request sent",a)})))(e,t,i,n),{exchangeCodeForTokens:O(i,n),executeApiRequest:L(t,i,n),expireTokens:E(i,n),terminate:M(i,n)}})(t,n,a);return a.logInfo("Init completed",t),new j(l.origin,n,t,r,a)}catch(e){let t;throw t=e instanceof i?e:new c(void 0,e),a.logError(t),t}}}var k=o.MS,R=o.cF,P=o.AK,I=o.M_,A=o.cX,T=o.O4,H=o._W,V=o.U$,B=o.U7,D=n(951);const Z="1.0.1",$="Microsoft365",F=()=>{V($)},N=()=>{B($,Z)};"undefined"!=typeof window&&("undefined"==typeof fin&&Object.assign(window,{fin:{}}),Object.assign(fin,{Integrations:{Microsoft365:{enableLogging:N,disableLogging:F}}}));const U=e=>async(t,n,r,o,i)=>{var a;return t=(a=t).startsWith("/")?a:`/${a}`,e.executeApiRequest(t,n,r,o,i,!0)},W=async(e,t,n=[])=>{const r=["id","userPrincipalName","userType",...n].join(","),o=await(async(e,t=[])=>{if(!(null==t?void 0:t.length))return[];const n=[];for(let r=0;r<t.length;r+=20){const o={requests:t.slice(r,r+20).map((e=>(e.id=crypto.randomUUID(),e)))};n.push(e.executeApiRequest("/v1.0/$batch","POST",o))}const r=(await Promise.all(n)).flatMap((e=>e.data.responses));return t.map((e=>{var t;return null===(t=r.find((t=>t.id===e.id)))||void 0===t?void 0:t.body}))})(e,t.map((e=>({method:"GET",url:`/users?$filter=mail eq '${encodeURIComponent(e)}'&$select=${r}`})))),i=o.map((e=>{var t;return null===(t=e.value)||void 0===t?void 0:t[0]}));return e.logger.logInfo("Resolved users from email addresses",i,t),i};var z=n(300);const G=e=>e.map((e=>e?{id:e.userPrincipalName,emailAddress:e.mail,name:e.displayName}:void 0)),q=async(e,t)=>{try{await fin.System.registerUsage({type:"integration-feature",data:{apiVersion:Z,componentName:e}})}catch(n){t.logWarning(`Unable to register usage for feature ${e}: ${null==n?void 0:n.message}`)}},Y=e=>{let t=e;return Array.isArray(e)?e.filter(Boolean).map(Y):("object"==typeof e&&(t=Object.fromEntries(Object.entries(e).filter((([,e])=>void 0!==(null!=e?e:void 0))).map((([e,t])=>[e,Y(t)])))),t)},K=e=>/#EXT#@/.test(e.userPrincipalName);var X;!function(e){e.MS365="MS-365",e.Teams="MS-TEAMS"}(X||(X={}));class J extends T{get currentUser(){return this._currentUser}get redirectUri(){return this._redirectUri}get permissions(){return this._permissions}get tenantId(){return this._tenantId}constructor(e,t,n,r,o,i,a,l){super(e,t,i,a,l),this._permissions=o,this._redirectUri=r,this._tenantId=n,q(X.MS365,l)}async authorize(e,t,n){await super.authorize(e,t,n);const r=await(async e=>{const{data:t}=await e.executeApiRequest("/v1.0/me");return t})(this);this._currentUser=r}getErrorMessageFromServerResponse(e){var t,n,r;if("string"==typeof e)try{return null===(n=null===(t=new URL(e).searchParams.get("error_description"))||void 0===t?void 0:t.split(/\r\n/))||void 0===n?void 0:n[0]}catch(e){return}return null===(r=null==e?void 0:e.error)||void 0===r?void 0:r.message}static async init(e,t,n,r,o,i,a){const l=await super.init(e,t,n,r);return new J(t,n,o,i,a,null==l?void 0:l.metadata,null==l?void 0:l.worker,null==l?void 0:l.logger)}}const Q=["User.ReadBasic.All","Team.ReadBasic.All","Channel.ReadBasic.All","ChannelMessage.Send","Chat.Create","ChatMessage.Send","offline_access"];let ee;const te=async(e,t,n,r=[],o,i)=>{await ne(e,t,n,r);const a=Object.assign({scope:[...Q,...r].join(" ")},o),l=Object.assign({defaultHeight:600,defaultWidth:550},i);return await ee.authorize(n,a,l),{clientId:e,currentUser:ee.currentUser,disconnect:ee.close,executeApiRequest:U(ee),provider:ee,tenantId:t}},ne=async(e,t,n,r)=>{if(!e)throw new H("Invalid client ID");if(!t)throw new H("Invalid tenant ID");if(!n)throw new H("Invalid redirect URI");const o=`https://login.microsoftonline.com/${t}/v2.0/.well-known/openid-configuration`;(!ee||ee.clientId!==e||ee.tenantId!==t||ee.redirectUri!==n||(0,D.xor)(ee.permissions,r).length>0)&&(ee=await J.init(o,"https://graph.microsoft.com",e,$,t,n,r))};class re extends k{constructor(e,t){var n;super(e=null!==(n=null!=e?e:null==t?void 0:t.message)&&void 0!==n?n:"An interop error occurred",t)}}var oe,ie,ae,le,se,ce;!function(e){e.AppNotFound="AppNotFound",e.ErrorOnLaunch="ErrorOnLaunch",e.AppTimeout="AppTimeout",e.ResolverUnavailable="ResolverUnavailable"}(oe||(oe={})),function(e){e.NoAppsFound="NoAppsFound",e.ResolverUnavailable="ResolverUnavailable",e.ResolverTimeout="ResolverTimeout"}(ie||(ie={})),function(e){e.NoChannelFound="NoChannelFound",e.AccessDenied="AccessDenied",e.CreationFailed="CreationFailed"}(ae||(ae={})),le=function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),a=new M(r||[]);return i._invoke=function(e,t,n){var r=f;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return k()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=L(a,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var s=u(e,t,n);if("normal"===s.type){if(r=n.done?h:d,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=h,n.method="throw",n.arg=s.arg)}}}(e,n,a),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",v={};function g(){}function C(){}function m(){}var y={};y[i]=function(){return this};var w=Object.getPrototypeOf,b=w&&w(w(j([])));b&&b!==n&&r.call(b,i)&&(y=b);var x=m.prototype=g.prototype=Object.create(y);function _(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function n(o,i,a,l){var s=u(e[o],e,i);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,l)}))}l(s.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function L(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=u(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function j(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:k}}function k(){return{value:t,done:!0}}return C.prototype=x.constructor=m,m.constructor=C,C.displayName=s(m,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===C||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,s(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},_(O.prototype),O.prototype[a]=function(){return this},e.AsyncIterator=O,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new O(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(x),s(x,l,"Generator"),x[i]=function(){return this},x.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=j,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:j(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}},le({exports:{}}),function(e){e.Contact="fdc3.contact",e.ContactList="fdc3.contactList",e.Country="fdc3.country",e.Instrument="fdc3.instrument",e.Organization="fdc3.organization",e.Portfolio="fdc3.portfolio",e.Position="fdc3.position"}(se||(se={})),function(e){e.StartCall="StartCall",e.StartChat="StartChat",e.ViewChart="ViewChart",e.ViewContact="ViewContact",e.ViewQuote="ViewQuote",e.ViewNews="ViewNews",e.ViewInstrument="ViewInstrument",e.ViewAnalysis="ViewAnalysis"}(ce||(ce={}));const ue="ofms365action",fe=e=>e?"msteams:":"https://teams.microsoft.com",de=async e=>{const t=null==e?void 0:e[ue];if(t)try{const e=(e=>{const t=(0,z.decompress)(e,{inputEncoding:"Base64",outputEncoding:"String"});return JSON.parse(t)})(t),{context:n,intent:r}=e,o={context:n,name:r};return await fin.me.interop.fireIntent(o),o}catch(e){const t=e.message;throw new k("Failed to decompress share payload"+(t?` (${t})`:""),e)}},pe=async(e,t,n)=>{const r=await(async(e,t,n=[])=>{try{const r=["id",...n].join(","),{data:o}=await e.executeApiRequest(`/v1.0/teams/${encodeURIComponent(t)}?$select=${r}`);return o}catch(e){if(404!==e.status)throw e}})(e,t,["displayName"]);if(!r)return;let o;if(e.logger.logInfo("Resolved team",r),n){if(o=await(async(e,t,n,r=[])=>{try{const o=["id",...r].join(","),{data:i}=await e.executeApiRequest(`/v1.0/teams/${encodeURIComponent(n)}/channels/${encodeURIComponent(t)}?$select=${o}`);return i}catch(e){if(404!==e.status)throw e}})(e,n,t,["displayName"]),!o)return void e.logger.logWarning(`Could not resolve channel from id ${n}`)}else{e.logger.logInfo("No channel id supplied, using primary channel");const{data:n}=await e.executeApiRequest(`/v1.0/teams/${encodeURIComponent(t)}/primaryChannel?$select=displayName,id`);o=n}const i={channelId:o.id,channelName:o.displayName,teamId:r.id,teamName:r.displayName};return e.logger.logInfo("Resolved team channel",t,n,i),i};class he{constructor(e,t=!0){this.logger=e.provider.logger,this.provider=e.provider,this.useMsTeamsProtocol=t,this.registerIntentHandlers=this.registerIntentHandlers.bind(this),this.share=this.share.bind(this),this.startCall=this.startCall.bind(this),this.startChat=this.startChat.bind(this),this.enableSharePayloadHandler(),q(X.Teams,this.logger)}async enableSharePayloadHandler(){const{initialOptions:e}=await fin.Application.getCurrentSync().getInfo(),{userAppConfigArgs:t}=e,n=await de(t);n&&this.logger.logInfo("Firing intent",n),fin.Application.getCurrentSync().addListener("run-requested",(async e=>{try{const t=await de(e.userAppConfigArgs);t&&this.logger.logInfo("Firing intent",t)}catch(e){this.logger.logError(e)}}))}async openUrl(e){this.logger.logInfo("openUrl started",e);try{const t=this.useMsTeamsProtocol?e.replace(/^https:\/\/teams.microsoft.com\//i,"msteams:"):e;this.logger.logInfo("Opening url",t),await fin.System.openUrlWithBrowser(t),this.logger.logInfo("openUrl completed")}catch(e){throw this.logger.logError(e),e}}async registerIntentHandlers(){if(this.logger.logInfo("registerIntentHandlers started"),this.unsubscribeIntentHandlers)return{unsubscribe:this.unsubscribeIntentHandlers};try{await fin.me.interop.getContextGroups();const e=await fin.me.interop.registerIntentHandler((async e=>{try{await((e,t)=>async n=>{var r,o,i,a;if(e.logger.logInfo("handleStartCallIntent started",n),(null===(r=n.name)||void 0===r?void 0:r.toLowerCase())!==ce.StartCall.toLowerCase())throw new k(`Unexpected intent type: ${n.name}`);const{context:l}=n;if((null===(o=l.type)||void 0===o?void 0:o.toLowerCase())!==se.Contact.toLowerCase()&&(null===(i=l.type)||void 0===i?void 0:i.toLowerCase())!==se.ContactList.toLowerCase())throw new k(`Unexpected context type: ${l.type}`);const s=(null===(a=l.type)||void 0===a?void 0:a.toLowerCase())===se.ContactList.toLowerCase()?l.contacts.map((e=>e.id.email)).filter(Boolean):[l.id.email],c=await t(s);e.logger.logInfo("handleStartCallIntent completed",c)})(this.provider,this.startCall)(e)}catch(e){throw this.logger.logError(e),e}}),"StartCall"),t=await fin.me.interop.registerIntentHandler((async e=>{try{await((e,t)=>async n=>{var r,o,i,a;if(e.logger.logInfo("handleStartChatIntent started",n),(null===(r=n.name)||void 0===r?void 0:r.toLowerCase())!==ce.StartChat.toLowerCase())throw new k(`Unexpected intent type: ${n.name}`);const{context:l}=n;if((null===(o=l.type)||void 0===o?void 0:o.toLowerCase())!==se.Contact.toLowerCase()&&(null===(i=l.type)||void 0===i?void 0:i.toLowerCase())!==se.ContactList.toLowerCase())throw new k(`Unexpected context type: ${l.type}`);const s=(null===(a=l.type)||void 0===a?void 0:a.toLowerCase())===se.ContactList.toLowerCase()?l.contacts.map((e=>e.id.email)).filter(Boolean):[l.id.email],c=await t({emailAddresses:s,topicName:l.name});e.logger.logInfo("handleStartChatIntent completed",c)})(this.provider,this.startChat)(e)}catch(e){throw this.logger.logError(e),e}}),"StartChat");return this.unsubscribeIntentHandlers=async()=>{this.logger.logInfo("unsubscribeIntentHandlers started"),await e.unsubscribe(),await t.unsubscribe(),this.unsubscribeIntentHandlers=void 0,this.logger.logInfo("unsubscribeIntentHandlers completed")},this.logger.logInfo("registerIntentHandlers completed"),{unsubscribe:this.unsubscribeIntentHandlers}}catch(e){const t=new re(e.message);throw this.logger.logError(t),t}}async share(e){var t,n,r,o;this.logger.logInfo("share started",e);try{if(!e.target)throw new H("Target not provided");if((null===(t=e.context)||void 0===t?void 0:t.type.toLowerCase())!==se.Instrument.toLowerCase())throw new H("Unsupported context type");if(!(null===(r=null===(n=e.context)||void 0===n?void 0:n.id)||void 0===r?void 0:r.ticker))throw new H("Ticker not provided");if(!e.chartImage&&null==e.priceCurrent)throw new H("Current price not provided");const i=null===(o=e.showMessage)||void 0===o||o,a=await(async(e,t)=>{var n,r,o,i;const{chartImage:a,context:l}=t,{priceCurrent:s,priceHigh:c,priceLow:u,priceOpen:f}=t,d=(null===(r=null===(n=l.id)||void 0===n?void 0:n.ticker)||void 0===r?void 0:r.trim())||void 0,p=(null===(o=l.name)||void 0===o?void 0:o.trim())||void 0;let h,v,g,C,m,y;if(null!=t.timestamp||!a)try{h=new Date(null!==(i=t.timestamp)&&void 0!==i?i:Date.now()).toISOString().replace(/\.\d+Z$/,"+00:00")}catch(n){e.logger.logWarning("Invalid timestamp",t.timestamp)}if(null!=s&&null!=f&&(v=s-f,g=v/f*100,m=v>0?"▲":v<0?"▼":"●",C=v>0?"Good":v<0?"Attention":"Warning"),a){if(!/^image\/(gif|jp(e|e?g)|png)$/i.test(a.type))throw new H("Chart image MIME type not supported");try{y=await(async e=>new Promise(((t,n)=>{const r=new FileReader;r.onloadend=()=>t(r.result),r.onerror=()=>n(new Error("Failed to convert blob to base64")),r.readAsDataURL(e)})))(a)}catch(e){throw new k("Failed to convert blob to base64",e)}}const w=(await fin.System.getRuntimeInfo()).manifestUrl,b=(x={context:l,intent:a?ce.ViewChart:ce.ViewInstrument,version:Z},(0,z.compress)(JSON.stringify(x),{outputEncoding:"Base64"}));var x;const _=`${w}?$$${ue}=${encodeURIComponent(b)}`,O=`https://start.openfin.co/?manifest=${encodeURIComponent(_)}`,L={$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.4",body:[{type:"ColumnSet",columns:[{type:"Column",width:"stretch",items:[{type:"Container",items:[{type:"TextBlock",text:null!=p?p:d.toUpperCase(),wrap:!0,size:"Large",spacing:"None"},p&&{type:"TextBlock",text:d.toUpperCase(),isSubtle:!0,wrap:!0,spacing:"None"},h&&{type:"TextBlock",text:`{{DATE(${h}, SHORT)}} {{TIME(${h})}}`,wrap:!0,size:"Small"}]}]},null!=s&&!y&&{type:"Column",width:"stretch",items:[{type:"TextBlock",text:s.toFixed(2),size:"ExtraLarge",wrap:!0,horizontalAlignment:"Right"},null!=v&&null!=g&&{type:"TextBlock",text:`${m} ${v.toFixed(2)} (${g.toFixed(2)}%)`,color:C,spacing:"None",wrap:!0,horizontalAlignment:"Right"},(null!=f||null!=c||null!=u)&&{type:"Container",horizontalAlignment:"Right",items:[{type:"ColumnSet",columns:[{type:"Column",width:"stretch",items:[null!=f&&{type:"TextBlock",text:"Open",wrap:!0,horizontalAlignment:"Right",size:"Small",weight:"Bolder",spacing:"None"},null!=c&&{type:"TextBlock",text:"High",wrap:!0,spacing:"None",horizontalAlignment:"Right",size:"Small",weight:"Bolder"},null!=u&&{type:"TextBlock",text:"Low",wrap:!0,spacing:"None",horizontalAlignment:"Right",size:"Small",weight:"Bolder"}]},{type:"Column",width:"auto",items:[null!=f&&{type:"TextBlock",text:f.toFixed(2),wrap:!0,spacing:"None",horizontalAlignment:"Right",size:"Small"},null!=c&&{type:"TextBlock",text:c.toFixed(2),wrap:!0,spacing:"None",horizontalAlignment:"Right",size:"Small"},null!=u&&{type:"TextBlock",text:u.toFixed(2),wrap:!0,spacing:"None",horizontalAlignment:"Right",size:"Small"}]}]}],spacing:"Small"}]}]},y&&{type:"Image",url:"../hostedContents/1/$value",spacing:"Small"},{type:"ActionSet",actions:[{type:"Action.OpenUrl",url:O,title:"Open"}]}]},E={attachments:[{id:"1",contentType:"application/vnd.microsoft.card.adaptive",content:JSON.stringify(Y(L))}],body:{contentType:"html",content:'<attachment id="1"></attachment>'},summary:"Test summary"};if(y){const[,e,t]=[...y.match(/^data:([^;]+);base64,(.+)$/i)];E.hostedContents=[{"@microsoft.graph.temporaryId":"1",contentBytes:t,contentType:e}]}return E})(this.provider,e);let l;if(Array.isArray(e.target)){const{target:t}=e,n=await W(this.provider,t,["displayName","mail"]),r=n.filter(Boolean);if(!r.length)return this.logger.logWarning("Could not resolve any valid users from email addresses",t),t.map((()=>{}));const{id:o,webUrl:s}=await(async(e,t)=>{const n={chatType:t.length>2?"group":"oneOnOne",members:t.map((t=>({"@odata.type":"#microsoft.graph.aadUserConversationMember",roles:K(t)?["guest"]:["owner"],"user@odata.bind":`${e.apiOrigin}/v1.0/users('${t.id}')`})))},{data:r}=await e.executeApiRequest("/v1.0/chats","POST",n);return r})(this.provider,[this.provider.currentUser,...r]),{data:c}=await this.provider.executeApiRequest(`/v1.0/chats/${encodeURIComponent(o)}/messages`,"POST",a);this.logger.logInfo("Sent chat message",c),i&&await this.openUrl(s),l=G(n)}else{const{target:t}=e,n=await pe(this.provider,t.teamId,t.channelId);if(!n)return void this.logger.logWarning("Could not resolve team/channel",t.teamId,t.channelId);const{channelId:r,teamId:o}=n,{data:s}=await this.provider.executeApiRequest(`/v1.0/teams/${encodeURIComponent(o)}/channels/${encodeURIComponent(r)}/messages`,"POST",a);this.logger.logInfo("Sent chat message",s),i&&await this.openUrl(s.webUrl),l=n}return this.logger.logInfo("share completed",l),l}catch(e){throw this.logger.logError(e),e}}async startCall(e=[],t=!1){this.logger.logInfo("startCall started",e);try{let n=`${fe(this.useMsTeamsProtocol)}/l/call/0/0?`;const r=await W(this.provider,e,["displayName","mail"]),o=r.filter(Boolean).map((e=>encodeURIComponent(e.userPrincipalName)));if(!o.length)return this.logger.logWarning("Could not resolve any valid users from supplied emails",e),e.map((()=>{}));n+=`users=${o.join(",")}&withVideo=${t}`,this.logger.logInfo("Opening Teams",n),await fin.System.openUrlWithBrowser(n);const i=G(r);return this.logger.logInfo("startCall completed",i),i}catch(e){throw this.logger.logError(e),e}}async startChat(e){this.logger.logInfo("startChat started",e);try{let t,n;if("teamId"in e){const{teamId:r,channelId:o}=e,i=await pe(this.provider,r,o);if(!i)return void this.logger.logWarning("Could not resolve team/channel",r,o);t=`${fe(this.useMsTeamsProtocol)}/l/channel/${encodeURIComponent(i.channelId)}/${encodeURIComponent(i.channelName)}?groupId=${i.teamId}&tenantId=${this.provider.tenantId}`,n=i}else{const{emailAddresses:r,message:o,topicName:i}=e;t=`${fe(this.useMsTeamsProtocol)}/l/chat/0/0?`;const a=await W(this.provider,r,["displayName","mail"]),l=a.filter(Boolean).map((e=>encodeURIComponent(e.userPrincipalName)));if(!l.length)return this.logger.logWarning("Could not resolve any valid users from email addresses",r),r.map((()=>{}));t+=`users=${l.join(",")}`,i&&(t+=`&topicName=${encodeURIComponent(i)}`),o&&(t+=`&message=${encodeURIComponent(o)}`),n=G(a)}return this.logger.logInfo("Opening Teams",t),await fin.System.openUrlWithBrowser(t),this.logger.logInfo("startChat completed",n),n}catch(e){throw this.logger.logError(e),e}}}},91:()=>{}},z={};function G(e){var t=z[e];if(void 0!==t)return t.exports;var n=z[e]={id:e,loaded:!1,exports:{}};return W[e].call(n.exports,n,n.exports,G),n.loaded=!0,n.exports}G.c=z,G.d=(e,t)=>{for(var n in t)G.o(t,n)&&!G.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},G.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),G.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),G.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var q=G(G.s=54),Y=(q.MS,q.cF,q.AK),K=(q.M_,q.cX,q.BT,q._W,q.Pg),X=q.$j,J=(q.U$,q.U7);let Q=0;const ee={chatMessage:"Chat Message",event:"Event",message:"Email",drive:"Document",contact:"Contact",user:"User",list:"List"},te={pdf:"PDF",docx:"Word",pptx:"PowerPoint",xlsx:"Excel",onenote:"OneNote"},ne={chatMessage:["Chat.Read","ChannelMessage.Read.All"],list:["Sites.Read.All"],event:["Calendars.Read"],message:["Mail.ReadWrite.Shared"],contact:["Contacts.Read.Shared","Mail.ReadWrite.Shared"],user:["User.Read.All","Presence.Read.All"]},re="MICROSOFT_365_SEARCH_TYPE_FILTER",oe="MICROSOFT_365_SEARCH_FILE_TYPE_FILTER",ie="MICROSOFT_365_SEARCH_DEPARTMENT_FILTER",ae="MICROSOFT_365_SEARCH_JOB_TITLE_FILTER",le="Teams Call",se="Teams Chat",ce="Email",ue=(e,t)=>{const n=[],r={item:e.context.selectedFilters?.find((e=>e.id===re)),documentType:e.context.selectedFilters?.find((e=>e.id===oe))},o=[{value:"Document",isSelected:!!r.item?.options?.find((({value:e})=>"File"===e))?.isSelected},{value:"Contact",isSelected:!!r.item?.options?.find((({value:e})=>"Contact"===e))?.isSelected},{value:"Chat Message",isSelected:!!r.item?.options?.find((({value:e})=>"Chat Message"===e))?.isSelected},{value:"Email",isSelected:!!r.item?.options?.find((({value:e})=>"Email"===e))?.isSelected},{value:"Event",isSelected:!!r.item?.options?.find((({value:e})=>"Event"===e))?.isSelected},{value:"List",isSelected:!!r.item?.options?.find((({value:e})=>"List"===e))?.isSelected}];return n.push({id:re,title:"Type",type:$.el.MultiSelect,options:o.filter((e=>t.has(e.value)))}),"Document"===r.item?.options?.filter((e=>e.isSelected))?.[0].value&&n.push({id:oe,title:"File Type",type:$.el.MultiSelect,options:Object.entries(te).map((([,e])=>({value:e,isSelected:!!r.documentType?.options?.filter((e=>e.isSelected))?.find((({value:e})=>"File"===e))?.isSelected})))}),n},fe=(e,t)=>{const n=t.context.selectedFilters?.find((e=>e.id===re))?.options;if(!Array.isArray(n)||!n.find((e=>"Contact"===e.value||"User"===e.value))?.isSelected)return[];const{department:r,jobTitle:o}=e.reduce(((e,t)=>(t.department&&e.department.add(t.department),t.jobTitle&&e.jobTitle.add(t.jobTitle),e)),{department:new Set,jobTitle:new Set}),i=t.context.selectedFilters?.find((e=>e.id===ie)),a=Array.from(r).map((e=>({value:e,isSelected:!!i?.options?.find((({value:t})=>t===e))?.isSelected}))),l=t.context.selectedFilters?.find((e=>e.id===ie)),s=Array.from(o).map((e=>({value:e,isSelected:!!l?.options?.find((({value:t})=>t===e))?.isSelected})));return[{id:ie,title:"Department",type:$.el.MultiSelect,options:a},{id:ae,title:"Job Title",type:$.el.MultiSelect,options:s}]},de=e=>{const t=e.context.selectedFilters?.find((e=>e.id===ie)),n=Array.isArray(t?.options)?t.options.filter((e=>e.isSelected)).map((e=>e.value)):[],r=e.context.selectedFilters?.find((e=>e.id===ae)),o=Array.isArray(r?.options)?r.options.filter((e=>e.isSelected)).map((e=>e.value)):[];return{department:n,jobTitle:o}},pe=(e,t)=>{const{department:n,jobTitle:r}=t;return e.filter((e=>(!n.length||n.includes(e.department))&&(!r.length||r.includes(e.jobTitle))))},he=e=>{const t=Array.isArray(e.context.selectedFilters?.find((e=>e.id===oe))?.options)?e.context.selectedFilters.find((e=>e.id===oe))?.options:[];return{filterFiles:t&&t.some((({isSelected:e})=>e)),showWord:t.find((({value:e})=>"Word"===e))?.isSelected,showExcel:t.find((({value:e})=>"Excel"===e))?.isSelected,showPowerPoint:t.find((({value:e})=>"PowerPoint"===e))?.isSelected,showPDF:t.find((({value:e})=>"PDF"===e))?.isSelected,showOneNote:t.find((({value:e})=>"OneNote"===e))?.isSelected}},ve=(e,t)=>{const n=[];return t.showWord&&n.push(".docx"),t.showExcel&&n.push(".xlsx"),t.showPowerPoint&&n.push(".pptx"),t.showPDF&&n.push(".pdf"),t.showOneNote&&n.push(".one"),e.filter((e=>{if(e.file){const t=e.name.substring(e.name.lastIndexOf("."));return n.includes(t)}return!1}))},ge=(e="")=>{switch(e.split(".").pop()?.toLowerCase()??""){case"docx":case"doc":return"Microsoft Word";case"xlsx":case"xls":return"Microsoft Excel";case"pptx":case"ppt":return"Microsoft PowerPoint";case"pdf":return"PDF";case"png":case"jpg":case"jpeg":case"gif":return"Image";case"txt":return"Text";default:return"File"}},Ce=(e="")=>{switch(e.split(".").pop()?.toLowerCase()??""){case"docx":case"doc":return(0,H.K3)(T.de.Microsoft365Assets.Microsoft365DocumentIcon);case"xlsx":case"xls":return(0,H.K3)(T.de.Microsoft365Assets.Microsoft365ExcelIcon);case"pptx":case"ppt":return(0,H.K3)(T.de.Microsoft365Assets.Microsoft365PowerpointIcon);case"pdf":return(0,H.K3)(T.de.Microsoft365Assets.PDFFileIcon);default:return}},me=e=>e.replace(/\+/g,"_").replace(/\//g,"-");var ye,we,be,xe,_e,Oe,Le,Ee,Se,Me,je,ke,Re,Pe,Ie,Ae,Te,He,Ve,Be,De,Ze=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},$e=function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n};class Fe extends U{constructor(e){const t=j({},{workflows:{search:(Q+=1,{homeProvider:{description:"Microsoft 365 search results provider",id:`MS365-${fin.me.identity.uuid}-${Q}`,logoUrl:(0,H.K3)(T.de.Microsoft365Assets.Microsoft365Icon),icon:(0,H.K3)(T.de.Microsoft365Assets.Microsoft365Icon),title:"Microsoft 365 Search",inputPlaceholder:"What would you like to search in Microsoft 365 today?",dispatchFocusEvents:!0},microsoftEntityTypeConfig:{message:!0,chatMessage:!0,drive:!0,event:!0,user:!0,contact:!0,list:!0},useTeamsDeepLink:!0})}},e);super(t),ye.add(this),we.set(this,void 0),this.workflowIntegrationName="Microsoft 365",be.set(this,void 0),xe.set(this,void 0),_e.set(this,1),Oe.set(this,new Set),Le.set(this,new S(100)),Ee.set(this,new D(6e4)),this.connect=async(e=this.config.connect)=>{const{clientId:t,tenantId:n,redirectUri:r}=e,o=this.config.workflows?.search?Object.entries(this.config.workflows?.search?.microsoftEntityTypeConfig??{}).filter((([e,t])=>t)).map((([e])=>ne[e])).filter((e=>void 0!==e)).flat():[];this.config.connect=e,$e(this,we,await X(t,n,r,[...new Set(o)]),"f")},Se.set(this,(()=>{if(!Ze(this,we,"f"))throw new Error("Microsoft365WorkflowIntegration not connected");return Ze(this,we,"f")})),Pe.set(this,(async e=>{if($e(this,xe,e,"f"),e.data?.item?.id){const t=Ze(this,Ee,"f").get(e.data.item.id);if(t)return void Ze(this,be,"f").respond([t])}if("user"===e.data?.type)Ze(this,Ve,"f").call(this,e)})),Ie.set(this,(async e=>{await fin.Platform.getCurrentSync().createWindow({layout:{content:[{type:"stack",content:[{type:"component",componentName:"view",componentState:{url:e}}]}]},workspacePlatform:void 0})})),Ae.set(this,(async e=>{if(e.data.item.channelIdentity.teamId){const t=new URL(`msteams:/l/channel/${e.data.item.channelIdentity.channelId}/${e.data.item.id}`);return!1===this.config.workflows?.search?.useTeamsDeepLink&&(t.protocol="https:"),t.searchParams.append("context",JSON.stringify({contextType:"channel"})),void await fin.System.openUrlWithBrowser(t.toString())}const t=new URL(`msteams:/l/message/${e.data.item.chatId}/${e.data.item.id}`);!1===this.config.workflows?.search?.useTeamsDeepLink&&(t.protocol="https:"),t.searchParams.append("context",JSON.stringify({contextType:"chat"})),await fin.System.openUrlWithBrowser(t.toString())})),Te.set(this,(async e=>{switch(e.action.name){case le:{const t=new K(Ze(this,Se,"f").call(this),this.config.workflows?.search?.useTeamsDeepLink);Ze(this,ye,"m",Me).call(this,(()=>t.startCall([e.data.item.mail])));break}case ce:{const t=await this.executeApiRequest("/v1.0/me/messages","POST",{toRecipients:[{emailAddress:{address:e.data.item.mail}}]});let n=t.data.webLink;const r=new URL(t.data.webLink);if("/owa/"===r.pathname){const e=r.search.slice(1).split("&").reduce(((e,t)=>{const[n,r]=t.split("=");return e[n]=r,e}),{});if(e.ItemID){const t=e.ItemID;n=`${r.origin}/mail/deeplink/compose/${t}?ItemID=${t}&exvsurl=1`}}await fin.Platform.getCurrentSync().createView({url:n});break}case se:{const t=Ze(this,Se,"f").call(this),n=new K(t,this.config.workflows?.search?.useTeamsDeepLink);Ze(this,ye,"m",Me).call(this,(()=>n.startChat({emailAddresses:[t.currentUser.mail,e.data.item.mail]})));break}default:console.warn("Unhandled user action for result:",e,`Unknown action "${e.action.name}"`)}})),He.set(this,(async e=>{switch(e.data.type){case"driveItem":Ze(this,Ie,"f").call(this,e.data.item.webUrl);break;case"event":{const t=e.data.item,n=await this.executeApiRequest(`/v1.0/me/events/${t.id}`);Ze(this,Ie,"f").call(this,n.data.webLink);break}case"chatMessage":Ze(this,Ae,"f").call(this,e);break;case"message":Ze(this,Ie,"f").call(this,e.data.item.webLink);break;case"list":{const t=e.data.item,n=await this.executeApiRequest(`/v1.0/sites/${t.parentReference?.siteId}/lists/${t.id}`);Ze(this,Ie,"f").call(this,n.data.webUrl);break}case"user":Ze(this,Te,"f").call(this,e);break;default:console.warn("Unhandled user action for result:",e,`Unknown result type "${e.data.type}"`)}})),Ve.set(this,(async e=>{let t,n;const r=[],o=e.data.item;Ze(this,Le,"f").has(o.id)?t=Ze(this,Le,"f").get(o.id):r.push({id:"contactPhoto",method:"GET",url:`/users/${e.data.item.id}/photo/$value`,headers:{ConsistencyLevel:"eventual"}}),r.push({id:"presence",method:"GET",url:`/users/${e.data.item.id}/presence`});try{const e=await Ze(this,ye,"m",je).call(this,r),a=e.data?.responses.find((e=>"contactPhoto"===e.id));a&&200!==a.status&&console.warn("Error fetching user photo",a),a?.body&&200===a?.status&&(t=`data:image/jpeg;base64,${a.body}`,Ze(this,Le,"f").put(o.id,t));const l=e.data?.responses.find((e=>"presence"===e.id));200!==l.status&&console.warn("Error fetching user presence",l),l?.body&&200===l.status&&(i=l.body,n={available:"available",availableidle:"available",away:"away",berightback:"away",busy:"busy",busyidle:"busy",donotdisturb:"do-not-disturb",offline:"offline",presenceunknown:"offline"}[i.availability?.toLowerCase()])}catch(e){console.error("Error fetching user data",e)}var i;const a=[["Department",o.department||"N/A"],["Email",o.mail||"N/A"],["Work Phone",o.businessPhones?.[0]||"N/A"],["Mobile",o.mobilePhone||"N/A"],["Location",o.officeLocation||"N/A"]],l={...e,template:$.yW.Contact,templateContent:{name:e.data.item.displayName,title:e.data.item.jobTitle,details:[a],photoUrl:t,onlineStatus:n,buttons:[{type:"button",icon:{light:(0,H.K3)(T.de.CallIconLight),dark:(0,H.K3)(T.de.CallIconDark)},tooltip:"Teams Call",action:le},{type:"button",icon:{light:(0,H.K3)(T.de.ChatIconLight),dark:(0,H.K3)(T.de.ChatIconDark)},tooltip:"Chat",action:se},{type:"button",icon:{light:(0,H.K3)(T.de.MessageIconLight),dark:(0,H.K3)(T.de.MessageIconDark)},tooltip:"E-mail",action:ce}]}};Ze(this,Ee,"f").put(e.data.item.id,l),Ze(this,be,"f").respond([l])})),Be.set(this,(async(e,t)=>{if(Ze(this,be,"f")&&Ze(this,be,"f").close(),$e(this,be,t,"f"),Ze(this,be,"f").open(),e.query.length<Ze(this,_e,"f"))return{results:[]};const n=encodeURIComponent(e.query),r=[],o=((e,t)=>{const n=Array.isArray(e.context.selectedFilters?.find((e=>e.id===re))?.options)?e.context.selectedFilters.find((e=>e.id===re))?.options:[],r=n.every((({isSelected:e})=>!e));return{showDocuments:t.has("Document")&&(r||!!n.find((({value:e})=>"Document"===e))?.isSelected),showContacts:t.has("Contact")&&(r||!!n.find((({value:e})=>"Contact"===e))?.isSelected),showChatMessages:t.has("Chat Message")&&(r||!!n.find((({value:e})=>"Chat Message"===e))?.isSelected),showMessages:t.has("Email")&&(r||!!n.find((({value:e})=>"Email"===e))?.isSelected),showEvents:t.has("Event")&&(r||!!n.find((({value:e})=>"Event"===e))?.isSelected),showLists:t.has("List")&&(r||!!n.find((({value:e})=>"List"===e))?.isSelected)}})(e,Ze(this,Oe,"f"));if(o.showDocuments){const e=`'${n}'`;r.push({id:"driveItem",method:"GET",url:`/me/drive/root/search(q=${encodeURIComponent(e)})`,headers:{ConsistencyLevel:"eventual"}})}if(o.showEvents&&r.push({id:"event",url:"/search/query",method:"POST",body:{requests:[{entityTypes:["event"],query:{queryString:e.query},from:0,size:10}]},headers:{"Content-Type":"application/json"}}),o.showContacts){const t=`"${e.query}"`;r.push({id:"contact",method:"GET",url:`/me/contacts?$search=${encodeURIComponent(t)}&$top=10`});const n=["displayName","givenName","surname"].map((t=>`"${t}:${e.query}"`)).join(" OR ");r.push({id:"user",method:"GET",url:`/users?$search=${encodeURIComponent(n)}&$top=10&$select=id,displayName,department,mail,businessPhones,mobilePhone,officeLocation,jobTitle`,headers:{ConsistencyLevel:"eventual"}})}if(o.showMessages&&r.push({id:"message",method:"GET",url:`/me/messages?$select=sender,subject,bodyPreview,receivedDateTime,webLink&$search=${encodeURIComponent(`"${e.query}"`)}&$top=10`}),o.showChatMessages&&r.push({id:"chatMessage",url:"/search/query",method:"POST",body:{requests:[{entityTypes:["chatMessage"],query:{queryString:e.query},from:0,size:10}]},headers:{"Content-Type":"application/json"}}),o.showLists&&r.push({id:"list",url:"/search/query",method:"POST",body:{requests:[{entityTypes:["list"],query:{queryString:e.query},from:0,size:10}]},headers:{"Content-Type":"application/json"}}),0===r.length)return{results:[]};const{results:i,filters:a}=await Ze(this,ye,"m",ke).call(this,r,e);return i.find((e=>e.key===Ze(this,xe,"f")?.key))?.template===$.yW.Loading&&Ze(this,Pe,"f").call(this,Ze(this,xe,"f")),{results:i,context:{filters:a}}})),De.set(this,(async e=>{switch(e.action.trigger){case Ge.p.FocusChange:Ze(this,Pe,"f").call(this,e);break;case Ge.p.UserAction:Ze(this,He,"f").call(this,e);break;case Ge.p.Reload:break;default:console.warn(`Unknown action trigger: ${e.action.trigger}`)}})),this.initializeWorkflow=async e=>{if("search"!==e)throw new Error(`Attempted to initialize unknown workflow: ${e}`);await O.register({...this.config.workflows.search.homeProvider,onUserInput:Ze(this,Be,"f"),onResultDispatch:Ze(this,De,"f")}),J(),await this.connect(),super.initializeWorkflow(e)},Object.entries(t.workflows?.search?.microsoftEntityTypeConfig||{}).filter((([e,t])=>t)).forEach((([e])=>{Ze(this,Oe,"f").add(ee[e])}))}async executeApiRequest(...e){return Ze(this,ye,"m",Me).call(this,(()=>Ze(this,Se,"f").call(this).executeApiRequest(...e)))}}we=new WeakMap,be=new WeakMap,xe=new WeakMap,_e=new WeakMap,Oe=new WeakMap,Le=new WeakMap,Ee=new WeakMap,Se=new WeakMap,Pe=new WeakMap,Ie=new WeakMap,Ae=new WeakMap,Te=new WeakMap,He=new WeakMap,Ve=new WeakMap,Be=new WeakMap,De=new WeakMap,ye=new WeakSet,Me=async function(e){try{return await e()}catch(t){if(t instanceof Y)return await this.connect(),e();throw t}},je=async function(e){return this.executeApiRequest("/v1.0/$batch","POST",{requests:e})},ke=async function(e,t){try{const n=await Ze(this,ye,"m",je).call(this,e),r=[...ue(t,Ze(this,Oe,"f")),...fe(n.data.responses.find((e=>"user"===e.id))?.body?.value||[],t)];return{filters:r,results:Ze(this,ye,"m",Re).call(this,n,t)}}catch(e){return console.warn("Failed to execute Batch API request: ",e),{filters:[],results:[{key:crypto.randomUUID(),title:"Error Fetching Search Results",description:"",actions:[],template:$.yW.Error,templateContent:`Failed to execute Batch API request: ${JSON.stringify(e)}`}]}}},Re=function(e,t){let n=[];for(const r of e.data.responses)if(200===r.status)switch(r.id){case"driveItem":{const e=he(t),o=e.filterFiles?ve(r.body.value,e):r.body.value;n.push(...(o||[]).map((e=>({key:e.id??crypto.randomUUID(),title:e.name??"",description:e.file?.mimeType??"",label:ge(e.name),icon:Ce(e.name),data:{type:"driveItem",item:e},actions:[{name:"Launch"}],template:$.yW.Plain,templateContent:void 0}))));break}case"event":n.push(...r.body?.value?.[0]?.hitsContainers?.[0]?.hits?.filter((e=>e.resource.subject)).map((e=>{const t=e.resource,n=me(e.hitId);return{key:n,title:t.subject??"",label:"Calendar Event",icon:(0,H.K3)(T.de.Microsoft365Assets.Microsoft365OutlookIcon),actions:[{name:"Launch"}],data:{type:"event",item:{...t,id:n}},template:$.yW.Plain,templateContent:void 0}}))||[]);break;case"contact":{const e=de(t),o=pe(r.body.value||[],e);n.push(...(o||[]).map((e=>({key:e.id??crypto.randomUUID(),title:e.displayName??"",label:"Outlook contact",icon:(0,H.K3)(T.de.Microsoft365Assets.Microsoft365OutlookIcon),actions:[],data:{type:"contact",item:e},template:$.yW.Plain,templateContent:void 0}))));break}case"user":{const e=de(t),o=pe(r.body.value||[],e);n.push(...(o||[]).map((e=>({key:e.id??crypto.randomUUID(),title:e.displayName??"",label:"Teams contact",icon:(0,H.K3)(T.de.Microsoft365Assets.Microsoft365TeamsIcon),actions:[],data:{type:"user",item:e},template:$.yW.Loading,templateContent:void 0}))));break}case"message":n.push(...(r.body.value||[]).map((e=>({key:e.id??crypto.randomUUID(),title:`${e.subject??"Untitled Message"}${e.isDraft?" (Draft)":""}`,label:"Email",icon:(0,H.K3)(T.de.Microsoft365Assets.Microsoft365OutlookIcon),actions:[],data:{type:"message",item:e},template:$.yW.Plain,templateContent:void 0}))));break;case"chatMessage":n.push(...r.body?.value?.[0]?.hitsContainers?.[0]?.hits?.map((e=>{const t=e.resource;return{key:t.id??crypto.randomUUID(),title:e.summary??"Untitled Message",label:"Chat",icon:(0,H.K3)(T.de.Microsoft365Assets.Microsoft365TeamsIcon),actions:[],data:{type:"chatMessage",item:t},template:$.yW.Plain,templateContent:void 0}}))||[]);break;case"list":n.push(...r.body?.value?.[0]?.hitsContainers?.[0]?.hits?.map((e=>{const t=e.resource,n=me(e.hitId);return{key:n,title:t.displayName??"Untitled List",label:"List",actions:[{name:"Launch"}],data:{type:"list",item:{...t,id:n}},template:$.yW.Plain,templateContent:void 0}}))||[]);break;default:console.warn(`Unknown batch response id: ${r.id}`,r.body)}else console.warn("Batch API request failed: ",r);return n=n.map((e=>{if(!e.data?.item?.id)return e;const t=Ze(this,Ee,"f").get(e.data.item.id);return t?{...e,template:t.template,templateContent:t.templateContent}:e})),n.sort(((e,t)=>e.title>t.title?1:-1))};var Ne=n(420);const Ue=()=>Ne.hd(),We=()=>(async()=>(await(0,c.Dm)()).dispatch("get-legacy-workspaces",void 0))();var ze=n(528),Ge=n(222),qe=n(109),Ye=n(114)})(),module.exports=r})();
1207
1208
  //# sourceMappingURL=index.js.map