@openfin/workspace 19.2.11 → 19.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/home.js +1 -1
- package/index.js +1 -1
- package/notifications.js +1 -1
- package/notifications.js.map +1 -1
- package/package.json +4 -4
- package/store.js +1 -1
package/index.js
CHANGED
|
@@ -1320,5 +1320,5 @@
|
|
|
1320
1320
|
font-size: ${({theme:e,size:t="base"})=>e.fontSize[t]};
|
|
1321
1321
|
font-weight: ${({theme:e,weight:t="normal"})=>e.fontWeight[t]};
|
|
1322
1322
|
line-height: ${({theme:e})=>e.lineHeight.text};
|
|
1323
|
-
`,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"},t.useColorScheme=({colorScheme:e,fallbackScheme:n=t.ColorScheme.light})=>{const[i,a]=(0,r.useState)(e&&e!==t.ColorScheme.system?e:n),l=t=>{a(o(t,e||n))};return(0,r.useEffect)((()=>{const t=window.matchMedia("(prefers-color-scheme: dark)");return a(o(t,e||n)),t.addEventListener("change",l),()=>t.removeEventListener("change",l)}),[e,i]),i};const o=(e,n)=>n===t.ColorScheme.system?e.matches?t.ColorScheme.dark:t.ColorScheme.light:n},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&&e.flat().length>a){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=n(6486),s={[i.ColorScheme.dark]:o.OpenFinDarkTheme,[i.ColorScheme.light]:o.OpenFinLightTheme};t.useTheme=({themes:e,scheme:t})=>{let n={};const o=(0,i.useColorScheme)({colorScheme:t});try{n=(0,r.useMemo)((()=>((e,t)=>{const n=null==t?void 0:t[e];let r=Object.assign({},s[e]);return n&&n.palette&&(r=(0,l.merge)(r,n,(0,a.createTheme)(n.palette))),r})(o,e)),[e,o])}catch(e){console.error(e)}return n}},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(9501),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(3877),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),o(n(6218),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:()=>v,__decorate:()=>l,__esDecorate:()=>c,__exportStar:()=>m,__extends:()=>o,__generator:()=>g,__importDefault:()=>k,__importStar:()=>M,__makeTemplateObject:()=>S,__metadata:()=>p,__param:()=>s,__propKey:()=>f,__read:()=>y,__rest:()=>a,__runInitializers:()=>u,__setFunctionName:()=>d,__spread:()=>w,__spreadArray:()=>x,__spreadArrays:()=>b,__values:()=>C});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 g in r)h[g]="access"===g?{}:r[g];for(var g in r.access)h.access[g]=r.access[g];h.addInitializer=function(e){if(d)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var v=(0,n[p])("accessor"===s?{get:f.get,set:f.set}:f[c],h);if("accessor"===s){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw new TypeError("Object expected");(l=a(v.get))&&(f.get=l),(l=a(v.set))&&(f.set=l),(l=a(v.init))&&o.push(l)}else(l=a(v))&&("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 g(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 v=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 m(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||v(t,e,n)}function C(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=C(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 j=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function M(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)&&v(t,e,n);return j(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)}},6036:e=>{e.exports="https://cdn.openfin.co/ui-library/fonts/Inter-Italic.woff2"},4668:e=>{e.exports="https://cdn.openfin.co/ui-library/fonts/Inter-Regular.woff2"},5941:e=>{e.exports="https://cdn.openfin.co/ui-library/fonts/Inter-SemiBold.woff2"},2813:e=>{e.exports="https://cdn.openfin.co/ui-library/fonts/Inter-SemiBoldItalic.woff2"},6689:e=>{e.exports=n(7378)},7518:e=>{e.exports=n(2921)},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:M(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:M(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(j(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 g(e){var t=r(e).toHsl();return t.h=(t.h+180)%360,r(t)}function v(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 m(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 C(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(j(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(C,arguments)},complement:function(){return this._applyCombination(g,arguments)},monochromatic:function(){return this._applyCombination(y,arguments)},splitcomplement:function(){return this._applyCombination(m,arguments)},triad:function(){return this._applyCombination(v,[3])},tetrad:function(){return this._applyCombination(v,[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 j(e){return Math.round(255*parseFloat(e)).toString(16)}function M(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,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,i),n.loaded=!0,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})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var a=i(341),l=t;for(var s in a)l[s]=a[s];a.__esModule&&Object.defineProperty(l,"__esModule",{value:!0})},3198:(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,g=Math.min,v=function(){return d.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function C(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(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(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=v();if(y(e))return b(e);l=setTimeout(w,function(e){var n=t-(e-s);return f?g(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=v(),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=C(t)||0,m(n)&&(u=!!n.leading,i=(f="maxWait"in n)?h(C(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(v())},x}},2525: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}},8702:(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,g=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,m=n?Symbol.for("react.block"):60121,C=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 v:case g: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===v||e.$$typeof===g||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===C||e.$$typeof===y||e.$$typeof===w||e.$$typeof===m)}},9185:(e,t,n)=>{"use strict";e.exports=n(8702)},1535:(e,t,n)=>{"use strict";var r=n(2525),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(){}},g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function m(){}function C(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}v.prototype.isReactComponent={},v.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")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=v.prototype;var y=C.prototype=new m;y.constructor=C,r(y,v.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 j(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 M(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:j,forEach:function(e,t,n){j(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return j(e,(function(){t++})),t},toArray:function(e){return j(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error(p(143));return e}},t.Component=v,t.PureComponent=C,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:M}},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"},7378:(e,t,n)=>{"use strict";e.exports=n(1535)},2921:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ServerStyleSheet:()=>pt,StyleSheetConsumer:()=>gt,StyleSheetContext:()=>ht,StyleSheetManager:()=>vt,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:()=>N,keyframes:()=>Ot,withTheme:()=>Lt});var r=n(1946),o=n.n(r),i=n(5246),a=n.n(i),l=n(7378);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(9185),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 g(e){return Object.prototype.toString.call(e).slice(8,-1)}function v(e){return"Undefined"===g(e)}function m(e){return"Null"===g(e)}function C(e){return"Object"===g(e)&&(e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype)}function y(e){return"Array"===g(e)}function w(e){return"Symbol"===g(e)}var b,x,_,O,L;b=m,x=v;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 j(e,t,n){if(!C(t))return n&&y(n)&&n.forEach((function(n){t=n(e,t)})),t;var r={};C(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=C(e)?e[o]:void 0;return n&&y(n)&&n.forEach((function(e){i=e(a,i)})),void 0!==a&&C(i)&&(i=j(a,i,n)),S(r,o,i,t),r}),r)}const M=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=null,o=e;return C(e)&&e.extensions&&1===Object.keys(e).length&&(o={},r=e.extensions),t.reduce((function(e,t){return j(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 N(e){return e&&"string"==typeof e.styledComponentId}var F="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()},ge=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)},ve=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},me=function(e){return"\n/* sc-component-id: "+e+" */\n"},Ce=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+'"',F+'="'+he(t)+'"',U+'="4.4.1"',n].filter(Boolean).join(" ")+">"+e()+"</style>"}},we=function(e,t){return function(){var n,r=((n={})[F]=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(me(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+=me(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(F,""),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=ge(e).cssRules,n="";for(var i in r){n+=me(i);for(var a=r[i],l=Ce(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=ge(e),d=Ce(o,u),p=0,h=[],g=s.length,v=0;v<g;v+=1){var m=s[v],C=i;C&&-1!==m.indexOf("@import")?h.push(m):ve(f,m,d+p)&&(C=!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)}(ge(e),Ce(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,je=void 0,Me=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["+F+"]["+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(F)||"").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(){je=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 je||(je=(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:N(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 Ne(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 Fe(e,t){for(var n=0;n<e.length;n+=1){var r=e[n];if(Array.isArray(r)&&!Fe(r,t))return!1;if(Z(r)&&!N(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 Ne(De(e))},ze=function(){function e(t,n,r){P(this,e),this.rules=t,this.isStatic=Fe(t,n),this.componentId=r,Me.master.hasId(r)||Me.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=Me.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(vt,{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)(),gt=ht.Consumer,vt=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 Me(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),mt={};var Ct=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(gt,null,this.renderOuter)},t.prototype.renderOuter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Me.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||N(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=N(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=(mt[r]||0)+1;mt[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?Ct:u,d=t.attrs,p=void 0===d?B:d,h=t.displayName&&t.componentId?Ke(t.displayName)+"-"+t.componentId:t.componentId||c,g=r&&e.attrs?Array.prototype.concat(e.attrs,p).filter(Boolean):p,v=new ze(r?e.componentStyle.rules.concat(n):n,g,h),m=void 0,C=function(e,t){return l.createElement(f,A({},e,{forwardedComponent:m,forwardedRef:t}))};return C.displayName=a,(m=l.forwardRef(C)).displayName=a,m.attrs=g,m.componentStyle=v,m.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):B,m.styledComponentId=h,m.target=r?e.target:e,m.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:g,componentId:i,ParentComponent:f}),n)},Object.defineProperty(m,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?M(e.defaultProps,t):t}}),m.toString=function(){return"."+m.styledComponentId},o&&ct(m,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,styledComponentId:!0,target:!0,withComponent:!0}),m}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=Fe(t,B),Me.master.hasId(n)||Me.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(gt,null,(function(t){e.styleSheet=t||Me.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=Ne(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:Me};const St=wt},5246: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)}}}}()},1946: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*/,g=/::(place)/g,v=/:(read-only)/g,m=/\s+(?=[{\];=:>])/g,C=/([[}=:>])\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)/,j=/([^-])(image-set\()/,M="-webkit-",k="-moz-",R="-ms-",P=59,I=125,A=123,T=40,H=41,V=91,B=93,D=10,Z=13,$=9,N=64,F=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,ge=1,ve=0,me=1,Ce=1,ye=1,we=0,be=0,xe=0,_e=[],Oe=[],Le=0,Ee=null,Se=-2,je=-1,Me=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,m=0,C=0,y=0,w=0,x=0,O=0,L=0,E=0,S=0,j=0,z=0,we=0,Oe=0,Ee=0,Se=0,je=o.length,Ze=je-1,ze="",Ge="",qe="",Ye="",Ke="",Xe="";z<je;){if(y=o.charCodeAt(z),z===Ze&&f+p+d+u!==0&&(0!==f&&(y=f===J?D:J),p=d=u=0,je++,Ze++),f+p+d+u===0){if(z===Ze&&(we>0&&(Ge=Ge.replace(r,"")),Ge.trim().length>0)){switch(y){case F: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 F:break;default:for(Oe=0,Se=z,m=y,z--,y=P;Se<je;)switch(o.charCodeAt(Se++)){case D:case Z:case P:++z,y=m,Se=je;break;case Y:we>0&&(++z,y=m);case A:Se=je}}switch(y){case A:for(m=(Ge=Ge.trim()).charCodeAt(0),L=1,Se=++z;z<je;){switch(y=o.charCodeAt(z)){case A:L++;break;case I:L--;break;case J:switch(C=o.charCodeAt(z+1)){case G:case J:z=We(C,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),m===ne&&(m=(Ge=Ge.replace(n,"").trim()).charCodeAt(0)),m===N){switch(we>0&&(Ge=Ge.replace(r,"")),C=Ge.charCodeAt(1)){case de:case ae:case le:case W:l=t;break;default:l=_e}if(Se=(qe=Be(t,l,qe,C,a+1)).length,xe>0&&0===Se&&(Se=Ge.length),Le>0&&(l=De(_e,Ge,Ee),s=Ue(Pe,qe,l,t,ge,he,Se,C,a,i),Ge=l.join(""),void 0!==s&&0===(Se=(qe=s.trim()).length)&&(C=0,qe="")),Se>0)switch(C){case le:Ge=Ge.replace(_,Fe);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===Ce||2===Ce&&Ne("@"+qe,3)?"@"+M+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,j=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===j&&((m=Ge.charCodeAt(0))===W||m>96&&m<123)&&(Se=(Ge=Ge.replace(" ",":")).length),Le>0&&void 0!==(s=Ue(ke,Ge,t,e,ge,he,Ye.length,i,a,i))&&0===(Se=(Ge=s.trim()).length)&&(Ge="\0\0"),m=Ge.charCodeAt(0),C=Ge.charCodeAt(1),m){case ne:break;case N:if(C===ue||C===fe){Xe+=Ge+o.charAt(z);break}default:if(Ge.charCodeAt(Se-1)===Y)break;Ye+=$e(Ge,m,C,Ge.charCodeAt(2))}E=0,Oe=0,j=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 N:case te:case Q:case G:case ee:case J:case W:case Y:case q:case P:case A:case I:break;default:j>0&&(Oe=1)}f===J?f=0:me+E===0&&i!==ie&&Ge.length>0&&(we=1,Ge+="\0"),Le*Ie>0&&Ue(Me,Ge,t,e,ge,he,Ye.length,i,a,i),he=1,ge++;break;case P:case I:if(f+p+d+u===0){he++;break}default:switch(he++,ze=o.charAt(z),y){case $:case F:if(p+u+f===0)switch(w){case q:case Y:case $:case F:ze="";break;default:y!==F&&(ze=" ")}break;case ne:ze="\\0";break;case re:ze="\\f";break;case oe:ze="\\v";break;case U:p+f+u===0&&me>0&&(Ee=1,we=1,ze="\f"+ze);break;case 108:if(p+f+u+ve===0&&j>0)switch(z-j){case 2:w===se&&o.charCodeAt(z-3)===Y&&(ve=w);case 8:x===ce&&(ve=x)}break;case Y:p+f+u===0&&(j=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 N:f+d+p+u+j+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(me+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 F:case D:case Z:ze+="\0";break;default:ze="\0"+ze+(y===q?"":"\0")}we=1}else switch(y){case T:j+7===z&&108===w&&(j=0),E=++L;break;case H:0==(E=--L)&&(we=1,ze+="\0")}break;case $:case F:switch(w){case ne:case A:case I:case P:case q:case re:case $:case F:case D:case Z:break;default:0===E&&(we=1,ze+="\0")}}Ge+=ze,y!==F&&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&&(me>0?He:Ve)===t[0])&&(Se=t.join(",").length+2),Se>0){if(l=0===me&&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 F:case T:break;default:t=" "}switch(p){case U:n=t+He;case te:case Q:case ee:case F: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,ge,he,Se,i,a,i))&&0===(Ye=s).length)return Xe+Ye+Ke;if(Ye=l.join(",")+"{"+Ye+"}",Ce*ve!=0){switch(2!==Ce||Ne(Ye,2)||(ve=0),ve){case ce:Ye=Ye.replace(v,":"+k+"$1")+Ye;break;case se:Ye=Ye.replace(g,"::"+M+"input-$1")+Ye.replace(g,"::"+k+"$1")+Ye.replace(g,":"+R+"input-$1")+Ye}ve=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(me+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&&me>0)return o.replace(d,"$1").replace(f,"$1"+Ve);default:if(n*me>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>N&&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===Ce||2===Ce&&Ne(o,1)?M+o+o:o}(f);if(0===Ce||2===Ce&&!Ne(f,1))return f;switch(d){case 1015:return 97===f.charCodeAt(10)?M+f+f:f;case 951:return 116===f.charCodeAt(3)?M+f+f:f;case 963:return 110===f.charCodeAt(5)?M+f+f:f;case 1009:if(100!==f.charCodeAt(4))break;case 969:case 942:return M+f+f;case 978:return M+f+k+f+f;case 1019:case 983:return M+f+k+f+R+f+f;case 883:return f.charCodeAt(8)===W?M+f+f:f.indexOf("image-set(",11)>0?f.replace(j,"$1"+M+"$2")+f:f;case 932:if(f.charCodeAt(4)===W)switch(f.charCodeAt(5)){case 103:return M+"box-"+f.replace("-grow","")+M+f+R+f.replace("grow","positive")+f;case 115:return M+f+R+f.replace("shrink","negative")+f;case 98:return M+f+R+f.replace("basis","preferred-size")+f}return M+f+R+f+f;case 964:return M+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"),M+"box-pack"+c+M+f+R+"flex-pack"+c+f;case 1005:return i.test(f)?f.replace(o,":"+M)+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 M+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,M+c)+";"+f;break;case 207:case 102:f=f.replace(c,M+(d>102?"inline-":"")+"box")+";"+f.replace(c,M+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",""),M+f+M+"box-"+c+R+"flex-"+c+f;case 115:return M+f+R+"flex-item-"+f.replace(L,"")+f;default:return M+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,M+c)+f.replace(c,k+c.replace("fill-",""))+f;break;case 962:if(f=M+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"+M+"$2")+f}return f}function Ne(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 Fe(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":me=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?Ce=1:(Ce=2,Ee=n):Ce=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===me?Ve=o:He=o;var a,l=[Ve];Le>0&&void 0!==(a=Ue(je,n,l,l,ge,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,ge,he,s.length,0,0,0))&&"string"!=typeof(s=a)&&(i=0),Te="",Ve="",He="",ve=0,ge=1,he=1,we*i==0?s:s.replace(r,"").replace(m,"").replace(C,"$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)},9663:(e,t,n)=>{"use strict";n.d(t,{a:()=>g});var r=n(6678),o=n(5438),i=n(7100),a=n(121),l=n(7278),s=n(9610);var c=n(1127),u=n(6572);const f=e=>({identity:e,openfinWindow:fin.Window.wrapSync(e),getPages:async()=>(await(0,o.xp)(e)).dispatch(o.fn.GetPagesForWindow,e),getPage:async t=>(await(0,o.xp)(e)).dispatch(o.fn.GetPageForWindow,{identity:e,pageId:t}),addPage:async t=>(0,u.aA)().Browser.wrapSync(e)._addPage(t),_addPage:async(t,n)=>{const r=await(0,o.xp)(e),i={identity:e,page:t,insertionIndex:n?.index};return r.dispatch(o.fn.AddPage,i)},removePage:async t=>(await(0,o.xp)(e)).dispatch(o.fn.DetachPagesFromWindow,{identity:e,pageIds:[t]}),reparentPage:async t=>(0,u.aA)().Browser.wrapSync(e)._reparentPage(t),_reparentPage:async t=>{const{pageId:n}=t,r=await(0,o.xp)(e),i=(await r.dispatch(o.fn.GetAllAttachedPages,void 0)).find((({pageId:e})=>e===n));if(!i)throw new Error(`Reparent Page Error: Target page with pageId ${n} not found`);i.multiInstanceViewBehavior="reparent";const a={identity:e,pages:[i],insertionIndex:t.index};return r.dispatch(o.fn.AttachPagesToWindow,a)},setActivePage:async t=>(await(0,o.xp)(e)).dispatch(o.fn.SetActivePage,{identity:e,pageId:t}),updatePage:async t=>{const n=await(0,o.xp)(e);return t.identity=e,n.dispatch(o.fn.UpdatePageForWindow,t)},reorderPages:async t=>{const n=await(0,o.xp)(e);return t.identity=e,n.dispatch(o.fn.ReorderPagesForWindow,t)},_openGlobalContextMenu:async t=>{const n=await(0,o.xp)(e);return t.identity=e,n.dispatch(o.fn.OpenGlobalContextMenuInternal,t)},replaceToolbarOptions:async t=>{await(0,o.xp)(e);const n=fin.Window.wrapSync(e);await n.updateOptions({workspacePlatform:{toolbarOptions:t}})},replaceWindowStateButtonOptions:async t=>{await(0,o.xp)(e);const n=fin.Window.wrapSync(e);await n.updateOptions({workspacePlatform:{windowStateButtonOptions:t}})},updateBrowserWindowTitle:async t=>{const n=fin.Window.wrapSync(e);"string"!=typeof t?await n.updateOptions({workspacePlatform:{title:t}}):console.warn("Type string for window title is deprecated, please use WindowTitle type instead",t)},_openViewTabContextMenu:async t=>{const n=await(0,o.xp)(e);return t.identity=e,n.dispatch(o.fn.OpenViewTabContextMenuInternal,t)},_openPageTabContextMenu:async t=>{const n=await(0,o.xp)(e);return t.identity=e,n.dispatch(o.fn.OpenPageTabContextMenuInternal,t)},_openSaveModal:async t=>{await(0,o.xp)(e);return(await(0,c.Dm)(e)).dispatch(c.yz.OpenSaveModalInternal,t)},_openSaveButtonContextMenu:async t=>{const n=await(0,o.xp)(e);return t.identity=e,n.dispatch(o.fn.OpenSaveButtonContextMenuInternal,t)},_addDefaultPage:async t=>{const n=await(0,o.xp)(e);return t.identity=e,n.dispatch(o.fn.AddDefaultPage,t)},_trackRemovedTab:async t=>(await(0,o.xp)(e)).dispatch(o.fn.TrackRemovedTabInternal,t),_restoreRemovedTab:async t=>(await(0,o.xp)(e)).dispatch(o.fn.RestoreRemovedTabInternal,t),_trackVisitedSite:async t=>(await(0,o.xp)(e)).dispatch(o.fn.TrackVisitedSiteInternal,t),_getRecentlyVisitedSites:async t=>(await(0,o.xp)(e)).dispatch(o.fn.GetRecentlyVisitedSitesInternal,t),_getFrequentlyVisitedSites:async t=>(await(0,o.xp)(e)).dispatch(o.fn.GetFrequentlyVisitedSitesInternal,t),_searchSites:async t=>(await(0,o.xp)(e)).dispatch(o.fn.SearchSitesInternal,{identity:e,req:t}),_getCuratedContent:async t=>(await(0,o.xp)(e)).dispatch(o.fn.GetCuratedContentInternal,{identity:e,req:t}),_handleRequestNavigation:async t=>(await(0,o.xp)(e)).dispatch(o.fn.HandleRequestNavigationInternal,t)}),d=e=>{const t=fin.Platform.wrapSync(e);return{wrapSync:e=>f(e),createWindow:async n=>{const r=(()=>{const e=`browser-window-startup-${(0,s.H)()}`;return l.Z.markStart(e),e})();(e=>{fin.Application.wrapSync({uuid:fin.me.identity.uuid}).once("window-shown",(()=>{l.Z.markAndMeasure("browser-window-shown",e)}))})(r),await(0,o.xp)(e);const i=await t.createWindow(n);return(e=>{l.Z.markAndMeasure("browser-window-started",e)})(r),f(i.identity)},getAllAttachedPages:async()=>(await(0,o.xp)(e)).dispatch(o.fn.GetAllAttachedPages,void 0),getAllWindows:async()=>{await(0,o.xp)(e);return(await(0,a.GP)()).map((e=>f(e.identity)))},getUniquePageTitle:async t=>(await(0,o.xp)(e)).dispatch(o.fn.GetUniquePageTitle,t),getLastFocusedWindow:async()=>(await(0,o.xp)(e)).dispatch(o.fn.GetLastFocusedBrowserWindow,void 0)}},p=e=>({createPage:async t=>(await(0,o.xp)(e)).dispatch(o.fn.CreateSavedPageInternal,t),deletePage:async t=>(await(0,o.xp)(e)).dispatch(o.fn.DeleteSavedPageInternal,t),updatePage:async t=>(await(0,o.xp)(e)).dispatch(o.fn.UpdateSavedPageInternal,t),getPage:async t=>(await(0,o.xp)(e)).dispatch(o.fn.GetSavedPage,t),getPages:async t=>(await(0,o.xp)(e)).dispatch(o.fn.GetSavedPages,t),savePage:async t=>(await(0,o.xp)(e)).dispatch(o.fn.SavePage,t),createWorkspace:async t=>(await(0,o.j7)(e)).dispatch(o.fn.CreateSavedWorkspace,t),deleteWorkspace:async t=>{const n=g(),r=await n.getCurrentWorkspace();if(r.workspaceId===t)throw new Error(`Cannot delete current active workspace ${r.title}`);return(await(0,o.j7)(e)).dispatch(o.fn.DeleteSavedWorkspace,t)},updateWorkspace:async t=>(await(0,o.j7)(e)).dispatch(o.fn.UpdateSavedWorkspace,t),getWorkspace:async t=>(await(0,o.j7)(e)).dispatch(o.fn.GetSavedWorkspace,t),getWorkspaces:async t=>(await(0,o.j7)(e)).dispatch(o.fn.GetSavedWorkspaces,t),saveWorkspace:async t=>(await(0,o.j7)(e)).dispatch(o.fn.SaveWorkspace,t),getDockProviderConfig:async t=>(await(0,o.j7)(e)).dispatch(o.fn.GetDockProviderConfig,t),saveDockProviderConfig:async t=>(await(0,o.j7)(e)).dispatch(o.fn.SaveDockProviderConfig,t)});var h=n(705);const g=()=>(e=>{const t=fin.Platform.wrapSync(e);let n;return Object.assign(t,{applySnapshot:async(t,n)=>{if("string"!=typeof t&&!t?.windows)throw new Error("Not a valid browser snapshot");return fin.Platform.wrapSync(e).applySnapshot(t,n)},getSnapshot:()=>fin.Platform.wrapSync(e).getSnapshot().then((e=>e)),getViewSnapshot:t=>fin.Platform.wrapSync(e).getViewSnapshot(t),createView:(t,n,r)=>fin.Platform.wrapSync(e).createView(t,n,r),launchApp:async t=>(console.warn("launchApp method is deprecated. It is recommended to use createView - https://developers.openfin.co/of-docs/docs/platform-getting-started#add-a-view-to-an-existing-window or createWindow - https://developers.openfin.co/of-docs/docs/platform-getting-started#create-a-platform-window instead."),t.target||(t.target={uuid:r.AB,name:r.oC,entityType:r.CL||"unknown"}),(await(0,o.j7)(e)).dispatch(o.fn.LaunchApp,t)),_invokeCustomAction:async(t,n)=>{const r=await(0,o.j7)(e),a={actionId:t,payload:{...n,callerType:n.callerType||i.$g.API}};return r.dispatch(o.fn.InvokeCustomActionInternal,a)},_requestQuitPlatformDialog:async t=>(await(0,o.j7)(e)).dispatch(o.fn.RequestQuitPlatformDialogInternal,t),getCurrentWorkspace:async()=>(await(0,o.j7)(e)).dispatch(o.fn.GetCurrentWorkspace,void 0),applyWorkspace:async(t,n)=>(await(0,o.j7)(e)).dispatch(o.fn.ApplyWorkspace,{...t,options:n}),setActiveWorkspace:async t=>(await(0,o.j7)(e)).dispatch(o.fn.SetActiveWorkspace,t),getLanguage:async()=>(await(0,o.j7)(e)).dispatch(o.fn.GetLanguage),_getLanguageResources:async()=>(await(0,o.j7)(e)).dispatch(o.fn.GetLanguageResourcesInternal),setLanguage:async t=>(await(0,o.j7)(e)).dispatch(o.fn.SetLanguage,t),_raiseAnalytics:async t=>{if(n||(n=await(0,o.Hh)(e)),"object"==typeof n&&n?.analytics?.isSupported)return(await(0,o.j7)(e)).dispatch(o.fn.Analytics,t);e.uuid},getNotificationsConfig:async()=>(await(0,o.j7)(e)).dispatch(o.fn.GetNotificationsConfig),Theme:(0,h.P0)(e),Browser:d(e),Storage:p(e)})})(fin.me.identity)},705:(e,t,n)=>{"use strict";n.d(t,{P0:()=>a});n(8061),n(4728),n(6005),n(121),n(1127);var r=n(9117);var o;!function(e){e.UpdatePlatformThemeScheme="update-platform-theme-scheme"}(o||(o={}));(0,r.Z)("of-workspace-notifications-sync");n(5150);var i=n(5438);const a=e=>({getThemes:async()=>(await(0,i.j7)(e)).dispatch(i.fn.GetThemes,void 0),setSelectedScheme:async t=>(await(0,i.j7)(e)).dispatch(i.fn.SetSelectedScheme,t),getSelectedScheme:async()=>(await(0,i.j7)(e)).dispatch(i.fn.GetSelectedScheme,void 0)})},6572:(e,t,n)=>{"use strict";n.d(t,{aA:()=>q.a});n(7100),n(8423);var r=n(6678),o=(n(6532),n(7378));var i=n(5806);var a=n(6005),l=n(121);n(8311),n(2304);Object.create(null);(0,o.createContext)();const s={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class c{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||s,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new c(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new c(this.logger,e)}}var u=new c;class f{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach((e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)})),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){Array.from(this.observers[e].entries()).forEach((e=>{let[t,r]=e;for(let e=0;e<r;e++)t(...n)}))}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach((t=>{let[r,o]=t;for(let t=0;t<o;t++)r.apply(r,[e,...n])}))}}}function d(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n}function p(e){return null==e?"":""+e}const h=/###/g;function g(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(h,"."):e}function o(){return!e||"string"==typeof e}const i="string"!=typeof t?t:t.split(".");let a=0;for(;a<i.length-1;){if(o())return{};const t=r(i[a]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++a}return o()?{}:{obj:e,k:r(i[a])}}function v(e,t,n){const{obj:r,k:o}=g(e,t,Object);if(void 0!==r||1===t.length)return void(r[o]=n);let i=t[t.length-1],a=t.slice(0,t.length-1),l=g(e,a,Object);for(;void 0===l.obj&&a.length;)i=`${a[a.length-1]}.${i}`,a=a.slice(0,a.length-1),l=g(e,a,Object),l&&l.obj&&void 0!==l.obj[`${l.k}.${i}`]&&(l.obj=void 0);l.obj[`${l.k}.${i}`]=n}function m(e,t){const{obj:n,k:r}=g(e,t);if(n)return n[r]}function C(e,t,n){for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):C(e[r],t[r],n):e[r]=t[r]);return e}function y(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var w={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function b(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(e=>w[e])):e}const x=[" ",",","?","!",";"],_=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20);function O(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let o=e;for(let e=0;e<r.length;){if(!o||"object"!=typeof o)return;let t,i="";for(let a=e;a<r.length;++a)if(a!==e&&(i+=n),i+=r[a],t=o[i],void 0!==t){if(["string","number","boolean"].indexOf(typeof t)>-1&&a<r.length-1)continue;e+=a-e+1;break}o=t}return o}function L(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class E extends f{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],n&&(Array.isArray(n)?a.push(...n):"string"==typeof n&&o?a.push(...n.split(o)):a.push(n)));const l=m(this.data,a);return!l&&!t&&!n&&e.indexOf(".")>-1&&(e=a[0],t=a[1],n=a.slice(2).join(".")),l||!i||"string"!=typeof n?l:O(this.data&&this.data[e]&&this.data[e][t],n,o)}addResource(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),v(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const r in n)"string"!=typeof n[r]&&"[object Array]"!==Object.prototype.toString.apply(n[r])||this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let l=m(this.data,a)||{};r?C(l,n,o):l={...l,...n},v(this.data,a,l),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((e=>t[e]&&Object.keys(t[e]).length>0))}toJSON(){return this.data}}var S={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach((e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,o))})),t}};const j={};class M extends f{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),function(e,t,n){e.forEach((e=>{t[e]&&(n[e]=t[e])}))}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=u.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;const n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const i=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";const r=x.filter((e=>t.indexOf(e)<0&&n.indexOf(e)<0));if(0===r.length)return!0;const o=_.getRegExp(`(${r.map((e=>"?"===e?"\\?":e)).join("|")})`);let i=!o.test(e);if(!i){const t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i}(e,n,r));if(i&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:o};const i=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),e=i.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}translate(e,t,n){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);const r=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:i,namespaces:a}=this.extractFromKey(e[e.length-1],t),l=a[a.length-1],s=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(s&&"cimode"===s.toLowerCase()){if(c){const e=t.nsSeparator||this.options.nsSeparator;return r?{res:`${l}${e}${i}`,usedKey:i,exactUsedKey:i,usedLng:s,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:`${l}${e}${i}`}return r?{res:i,usedKey:i,exactUsedKey:i,usedLng:s,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:i}const u=this.resolve(e,t);let f=u&&u.res;const d=u&&u.usedKey||i,p=u&&u.exactUsedKey||i,h=Object.prototype.toString.apply(f),g=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&f&&("string"!=typeof f&&"boolean"!=typeof f&&"number"!=typeof f)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(h)<0&&("string"!=typeof g||"[object Array]"!==h)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,{...t,ns:a}):`key '${i} (${this.language})' returned an object instead of string.`;return r?(u.res=e,u.usedParams=this.getUsedParamsDetails(t),u):e}if(o){const e="[object Array]"===h,n=e?[]:{},r=e?p:d;for(const e in f)if(Object.prototype.hasOwnProperty.call(f,e)){const i=`${r}${o}${e}`;n[e]=this.translate(i,{...t,joinArrays:!1,ns:a}),n[e]===i&&(n[e]=f[e])}f=n}}else if(v&&"string"==typeof g&&"[object Array]"===h)f=f.join(g),f&&(f=this.extendTranslation(f,e,t,n));else{let r=!1,a=!1;const c=void 0!==t.count&&"string"!=typeof t.count,d=M.hasDefaultValue(t),p=c?this.pluralResolver.getSuffix(s,t.count,t):"",h=t.ordinal&&c?this.pluralResolver.getSuffix(s,t.count,{ordinal:!1}):"",g=c&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),v=g&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${p}`]||t[`defaultValue${h}`]||t.defaultValue;!this.isValidLookup(f)&&d&&(r=!0,f=v),this.isValidLookup(f)||(a=!0,f=i);const m=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:f,C=d&&v!==f&&this.options.updateMissing;if(a||r||C){if(this.logger.log(C?"updateKey":"missingKey",s,l,i,C?v:f),o){const e=this.resolve(i,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t<n.length;t++)e.push(n[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);const r=(e,n,r)=>{const o=d&&r!==f?r:m;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,n,o,C,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,l,n,o,C,t),this.emit("missingKey",e,l,n,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?e.forEach((e=>{const n=this.pluralResolver.getSuffixes(e,t);g&&t[`defaultValue${this.options.pluralSeparator}zero`]&&n.indexOf(`${this.options.pluralSeparator}zero`)<0&&n.push(`${this.options.pluralSeparator}zero`),n.forEach((n=>{r([e],i+n,t[`defaultValue${n}`]||v)}))})):r(e,i,v))}f=this.extendTranslation(f,e,t,u,n),a&&f===i&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${i}`),(a||r)&&this.options.parseMissingKeyHandler&&(f="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${i}`:i,r?f:void 0):this.options.parseMissingKeyHandler(f))}return r?(u.res=f,u.usedParams=this.getUsedParamsDetails(t),u):f}extendTranslation(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const a="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let l;if(a){const t=e.match(this.interpolator.nestingRegexp);l=t&&t.length}let s=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language,n),a){const t=e.match(this.interpolator.nestingRegexp);l<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn(`It seems you are nesting recursively key: ${r[0]} in key: ${t[0]}`),null):i.translate(...r,t)}),n)),n.interpolation&&this.interpolator.reset()}const a=n.postProcess||this.options.postProcess,l="string"==typeof a?[a]:a;return null!=e&&l&&l.length&&!1!==n.applyPostProcessor&&(e=S.handle(l,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t,n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((e=>{if(this.isValidLookup(t))return;const l=this.extractFromKey(e,a),s=l.key;n=s;let c=l.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==a.count&&"string"!=typeof a.count,f=u&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),d=void 0!==a.context&&("string"==typeof a.context||"number"==typeof a.context)&&""!==a.context,p=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);c.forEach((e=>{this.isValidLookup(t)||(i=e,!j[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(i)&&(j[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${p.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((n=>{if(this.isValidLookup(t))return;o=n;const i=[s];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(i,s,n,e,a);else{let e;u&&(e=this.pluralResolver.getSuffix(n,a.count,a));const t=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(i.push(s+e),a.ordinal&&0===e.indexOf(r)&&i.push(s+e.replace(r,this.options.pluralSeparator)),f&&i.push(s+t)),d){const n=`${s}${this.options.contextSeparator}${a.context}`;i.push(n),u&&(i.push(n+e),a.ordinal&&0===e.indexOf(r)&&i.push(n+e.replace(r,this.options.pluralSeparator)),f&&i.push(n+t))}}let l;for(;l=i.pop();)this.isValidLookup(t)||(r=l,t=this.getResource(n,e,l,a))})))}))})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&"string"!=typeof e.replace;let r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}function k(e){return e.charAt(0).toUpperCase()+e.slice(1)}class R{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=u.create("languageUtils")}getScriptPartFromCode(e){if(!(e=L(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=L(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"==typeof e&&e.indexOf("-")>-1){const t=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map((e=>e.toLowerCase())):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=k(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=k(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=k(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach((e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)})),!t&&this.options.supportedLngs&&e.forEach((e=>{if(t)return;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find((e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:0===e.indexOf(n)?e:void 0))})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],o=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),n.forEach((e=>{r.indexOf(e)<0&&o(this.formatLanguageCode(e))})),r}}let P=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],I={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};const A=["v1","v2","v3"],T=["v4"],H={zero:0,one:1,two:2,few:3,many:4,other:5};class V{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=u.create("pluralResolver"),this.options.compatibilityJSON&&!T.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){const e={};return P.forEach((t=>{t.lngs.forEach((n=>{e[n]={numbers:t.nr,plurals:I[t.fc]}}))})),e}()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(L("dev"===e?"en":e),{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((e=>`${t}${e}`))}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(((e,t)=>H[e]-H[t])).map((e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`)):n.numbers.map((n=>this.getSuffix(e,n,t))):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));const o=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?`_plural_${r.toString()}`:o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!A.includes(this.options.compatibilityJSON)}}function B(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=function(e,t,n){const r=m(e,n);return void 0!==r?r:m(t,n)}(e,t,n);return!i&&o&&"string"==typeof n&&(i=O(e,n,r),void 0===i&&(i=O(t,n,r))),i}class D{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=u.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const t=e.interpolation;this.escape=void 0!==t.escape?t.escape:b,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?y(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?y(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?y(t.nestingPrefix):t.nestingPrefixEscaped||y("$t("),this.nestingSuffix=t.nestingSuffix?y(t.nestingSuffix):t.nestingSuffixEscaped||y(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let o,i,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function s(e){return e.replace(/\$/g,"$$$$")}const c=e=>{if(e.indexOf(this.formatSeparator)<0){const o=B(t,l,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...r,...t,interpolationkey:e}):o}const o=e.split(this.formatSeparator),i=o.shift().trim(),a=o.join(this.formatSeparator).trim();return this.format(B(t,l,i,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:i})};this.resetRegExp();const u=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>s(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?s(this.escape(e)):s(e)}].forEach((t=>{for(a=0;o=t.regex.exec(e);){const n=o[1].trim();if(i=c(n),void 0===i)if("function"==typeof u){const t=u(e,o,r);i="string"==typeof t?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))i="";else{if(f){i=o[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),i=""}else"string"==typeof i||this.useRawValueToEscape||(i=p(i));const l=t.safeValue(i);if(e=e.replace(o[0],l),f?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,a++,a>=this.maxReplaces)break}})),e}nest(e,t){let n,r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function a(e,t){const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(`${n}[ ]*{`));let i=`{${r[1]}`;e=r[0],i=this.interpolate(i,o);const a=i.match(/'/g),l=i.match(/"/g);(a&&a.length%2==0&&!l||l.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o={...t,...o})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return delete o.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){let l=[];o={...i},o=o.replace&&"string"!=typeof o.replace?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let s=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const e=n[1].split(this.formatSeparator).map((e=>e.trim()));n[1]=e.shift(),l=e,s=!0}if(r=t(a.call(this,n[1].trim(),o),o),r&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=p(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),r=""),s&&(r=l.reduce(((e,t)=>this.format(e,t,i.lng,{...i,interpolationkey:n[1].trim()})),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}function Z(e){const t={};return function(n,r,o){const i=r+JSON.stringify(o);let a=t[i];return a||(a=e(L(r),o),t[i]=a),a(n)}}class ${constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=u.create("formatter"),this.options=e,this.formats={number:Z(((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)})),currency:Z(((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)})),datetime:Z(((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)})),relativetime:Z(((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")})),list:Z(((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)}))},this.init(e)}init(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Z(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.split(this.formatSeparator).reduce(((e,t)=>{const{formatName:o,formatOptions:i}=function(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);"currency"===t&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach((e=>{if(!e)return;const[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,"");n[t.trim()]||(n[t.trim()]=o),"false"===o&&(n[t.trim()]=!1),"true"===o&&(n[t.trim()]=!0),isNaN(o)||(n[t.trim()]=parseInt(o,10))}))}return{formatName:t,formatOptions:n}}(t);if(this.formats[o]){let t=e;try{const a=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},l=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[o](e,l,{...i,...r,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e}),e)}}class N extends f{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=u.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){const o={},i={},a={},l={};return e.forEach((e=>{let r=!0;t.forEach((t=>{const a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===i[a]&&(i[a]=!0):(this.state[a]=1,r=!1,void 0===i[a]&&(i[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===l[t]&&(l[t]=!0)))})),r||(a[e]=!0)})),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(e,t,n){const r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;const a={};this.queue.forEach((n=>{!function(e,t,n,r){const{obj:o,k:i}=g(e,t,Object);o[i]=o[i]||[],r&&(o[i]=o[i].concat(n)),r||o[i].push(n)}(n.loaded,[o],i),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((e=>{a[e]||(a[e]={});const t=n.loaded[e];t.length&&t.forEach((t=>{void 0===a[e][t]&&(a[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((e=>!e.done))}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:i});this.readingCalls++;const a=(a,l)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&l&&r<this.maxRetries?setTimeout((()=>{this.read.call(this,e,t,n,r+1,2*o,i)}),o):i(a,l)},l=this.backend[n].bind(this.backend);if(2!==l.length)return l(e,t,a);try{const n=l(e,t);n&&"function"==typeof n.then?n.then((e=>a(null,e))).catch(a):a(null,n)}catch(e){a(e)}}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);const o=this.queueLoad(e,t,n,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach((e=>{this.loadOne(e)}))}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,((n,i)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${r} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${r}`,i),this.loaded(e,n,i)}))}saveMissing(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){const l={...i,isUpdate:o},s=this.backend.create.bind(this.backend);if(s.length<6)try{let o;o=5===s.length?s(e,t,n,r,l):s(e,t,n,r),o&&"function"==typeof o.then?o.then((e=>a(null,e))).catch(a):a(null,o)}catch(e){a(e)}else s(e,t,n,r,a,l)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}function F(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach((e=>{t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function U(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function W(){}class z extends f{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=U(e),this.services={},this.logger=u,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))})),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout((()=>{this.init(e,t)}),0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=F();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options={...r,...this.options,...U(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){let t;this.modules.logger?u.init(o(this.modules.logger),this.options):u.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=$);const n=new R(this.options);this.store=new E(this.options.resources,this.options);const i=this.services;i.logger=u,i.resourceStore=this.store,i.languageUtils=n,i.pluralResolver=new V(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(i.formatter=o(t),i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new D(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new N(o(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit(t,...r)})),this.modules.languageDetector&&(i.languageDetector=o(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=o(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new M(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit(t,...r)})),this.modules.external.forEach((e=>{e.init&&e.init(this)}))}if(this.format=this.options.interpolation.format,n||(n=W),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((t=>{this[t]=function(){return e.store[t](...arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((t=>{this[t]=function(){return e.store[t](...arguments),e}}));const i=d(),a=()=>{const e=(e,t)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),i.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?a():setTimeout(a,0),i}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W;const n="string"==typeof e?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],r=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach((t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)}))};if(n)r(n);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e=>r(e)))}this.options.preload&&this.options.preload.forEach((e=>r(e))),this.services.backendConnector.load(e,this.options.ns,(e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)}))}else t(null)}reloadResources(e,t,n){const r=d();return e||(e=this.languages),t||(t=this.options.ns),n||(n=W),this.services.backendConnector.reload(e,t,(e=>{r.resolve(),n(e)})),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&S.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const r=d();this.emit("languageChanging",e);const o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(e,i)=>{i?(o(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,r.resolve((function(){return n.t(...arguments)})),t&&t(e,(function(){return n.t(...arguments)}))},a=t=>{e||t||!this.services.languageDetector||(t=[]);const n="string"==typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||o(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,(e=>{i(e,n)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;const o=function(e,t){let i;if("object"!=typeof t){for(var a=arguments.length,l=new Array(a>2?a-2:0),s=2;s<a;s++)l[s-2]=arguments[s];i=r.options.overloadTranslationOptionHandler([e,t].concat(l))}else i={...t};i.lng=i.lng||o.lng,i.lngs=i.lngs||o.lngs,i.ns=i.ns||o.ns,i.keyPrefix=i.keyPrefix||n||o.keyPrefix;const c=r.options.keySeparator||".";let u;return u=i.keyPrefix&&Array.isArray(e)?e.map((e=>`${i.keyPrefix}${c}${e}`)):i.keyPrefix?`${i.keyPrefix}${c}${e}`:e,r.t(u,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const i=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||2===n};if(t.precheck){const e=t.precheck(this,i);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!i(n,e)||r&&!i(o,e)))}loadNamespaces(e,t){const n=d();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)})),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=d();"string"==typeof e&&(e=[e]);const r=this.options.preload||[],o=e.filter((e=>r.indexOf(e)<0));return o.length?(this.options.preload=r.concat(o),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new R(F());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new z(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},o=new z(r);void 0===e.debug&&void 0===e.prefix||(o.logger=o.logger.clone(e));return["store","services","language"].forEach((e=>{o[e]=this[e]})),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n&&(o.store=new E(this.store.data,r),o.services.resourceStore=o.store),o.translator=new M(o.services,r),o.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o.emit(e,...n)})),o.init(r,t),o.translator.options=r,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const G=z.createInstance();G.createInstance=z.createInstance;G.createInstance,G.dir,G.init,G.loadResources,G.reloadResources,G.use,G.changeLanguage,G.getFixedT,G.t,G.exists,G.setDefaultNamespace,G.hasLoadedNamespace,G.loadNamespaces,G.loadLanguages;G.t;n(3420),n(1127);n(5438);var q=n(9663);new class{constructor(){this.queue=[],this.locked=!1}lock(){return new Promise((e=>{this.locked?this.queue.push(e):(this.locked=!0,e())}))}unlock(){if(this.queue.length>0){const e=this.queue.shift();e&&e()}else this.locked=!1}};new Map;var Y;!function(e){e.ERROR="error",e.SUCCESS="success",e.INFO="info"}(Y||(Y={}));const K=((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 X;!function(e){e.Locked="LockClosedIcon",e.Unlocked="LockOpen1Icon"}(X||(X={}));!function(e=K){const t=new Map}();var J=n(8061),Q=n(4728);n(6650);const ee=(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 te(e,t){return async(n,...r)=>{e.has(n)&&e.get(n).forEach((e=>e(...r))),t&&await t({event:n,payload:r})}}function ne(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 re(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 oe(e){return(t,n)=>{e.has(t)&&e.get(t).delete(n)}}n(1065);l.IA.BrowserMenu;(function(e){const t=new Map;te(t,(t=>r.sS&&fin.InterApplicationBus.publish(e,t))),ne(t,(t=>r.sS&&fin.InterApplicationBus.subscribe({uuid:fin.me.uuid},e,t))),oe(t),re(t)})("window.menu"),ee((()=>(0,i.D9)().getChildWindows()),500);new Map;var ie=n(3198);n.n(ie)()((async()=>{const e=await fin.Platform.getCurrentSync().Application.getChildWindows();let t,n=!1;for(const r of e)if(r.identity.name===l.IA.BrowserMenu||r.identity.name===l.IA.BrowserSaveMenu?t=r:await(0,l.B)(r.identity)&&(n=!0),n)break;!n&&t&&t.close()}),100,{leading:!1,trailing:!0});var ae;!function(e){e.Label="normal",e.Separator="separator",e.Submenu="submenu",e.Checkbox="checkbox"}(ae||(ae={}));ae.Separator;var le;!function(e){e.Save="Save",e.SaveAs="SaveAs"}(le||(le={}));var se;!function(e){e.GlobalMenu="global-menu",e.ContextMenu="context-menu",e.RenameSupertab="rename-supertab"}(se||(se={}));n(5912);function ce(e){return new Promise(((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)}))}function ue(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=ce(n);return(e,n)=>r.then((r=>n(r.transaction(t,e).objectStore(t))))}let fe;function de(){return fe||(fe=ue("keyval-store","keyval")),fe}function pe(e,t){return e.openCursor().onsuccess=function(){this.result&&(t(this.result),this.result.continue())},ce(e.transaction)}const he=async(e,t,n)=>{const r=Q.rV(J.Z.HasMovedStore),o=r?JSON.parse(r):{};if(o&&o[n])return;o[n]=!0,Q.LS(J.Z.HasMovedStore,JSON.stringify(o));const i=await function(e=de()){return e("readonly",(t=>{if(t.getAll&&t.getAllKeys)return Promise.all([ce(t.getAllKeys()),ce(t.getAll())]).then((([e,t])=>e.map(((e,n)=>[e,t[n]]))));const n=[];return e("readonly",(e=>pe(e,(e=>n.push([e.key,e.value]))).then((()=>n))))}))}(e);await function(e,t=de()){return t("readwrite",(t=>(e.forEach((e=>t.put(e[1],e[0]))),ce(t.transaction))))}(i,t)},ge=(e,t)=>ue(e+"-"+fin.me.uuid,t),ve=(e,t)=>{const n=ge(e,t),r=ue(e,t);return he(r,n,e),n};r._V&&r.sS&&ve("openfin-home-pages","pages");r._V&&r.sS&&ge("openfin-enterprise-tab-history","removed-tab-stack"),r._V&&r.sS&&ge("openfin-enterprise-site-history","visited-sites");n(1646);var me;!function(e){e[e.BottomLeft=0]="BottomLeft",e[e.BottomRight=1]="BottomRight",e[e.Center=2]="Center"}(me||(me={}));r._V&&r.sS&&ge("dock-provider-configs","dock-provider-configs");n(705);r._V&&r.sS&&ve("openfin-workspace-platform-workspaces","workspaces");n(6495);r.rx,a.ZP.Browser,l.Gi.uuid,l.IA.BrowserAddressSearchPrefix;n(7098),n(7564),n(9117)},7098:(e,t,n)=>{"use strict"},7100:(e,t,n)=>{"use strict";n.d(t,{$g:()=>d});var r,o,i,a,l,s,c,u,f,d,p;n(7564),n(6495),n(5304);!function(e){e.UrlChange="URL_CHANGE",e.ViewAdded="VIEW_ADDED",e.ViewRemoved="VIEW_REMOVED",e.PageContextAdded="PAGE_CONTEXT_ADDED",e.PageContextRemoved="PAGE_CONTEXT_REMOVED"}(r||(r={})),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"}(o||(o={})),function(e){e.Light="light",e.Dark="dark",e.System="system"}(i||(i={})),function(e){e.Close="Close",e.Duplicate="Duplicate",e.Rename="Rename",e.Save="Save",e.SaveAs="Save As",e.NewPage="New Page",e.DeletePage="Delete Page",e.SaveWorkspaceAs="SaveWorkspaceAs",e.Refresh="Refresh",e.CloseOthers="Close others",e.Delete="Delete",e.Custom="Custom"}(a||(a={})),function(e){e.Lock="Lock",e.ShowHideTabs="ShowHideTabs",e.AddToChanel="AddToChannel",e.Print="Print",e.Pin="Pin"}(l||(l={})),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"}(s||(s={})),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"}(c||(c={})),function(e){e.SavePage="SavePage",e.SaveWorkspace="SaveWorkspace",e.SavePageAs="SavePageAs",e.SaveWorkspaceAs="SaveWorkspaceAs",e.Custom="Custom"}(u||(u={})),function(e){e.Browser="browser",e.Platform="platform"}(f||(f={})),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"}(d||(d={})),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"}(p||(p={}))},2693:(e,t,n)=>{"use strict";n.d(t,{E:()=>i});var r=n(5806),o=n(7278);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`)}))}},3261:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CLIAction:()=>_.Pt,CLIFilterOptionType:()=>_.el,CLITemplate:()=>_.yW,deregister:()=>E,hide:()=>j,register:()=>L,show:()=>S});var r=n(6678),o=n(7278),i=n(6532),a=n(121);const l={remoteProviderDataStreamId:"0",remoteClientSearchStreamId:"1",remoteProviderRegistrationStreamId:"2",remoteProviderDeregistrationStreamId:"3",remoteProviderInfoStreamId:"4",remoteProviderDispatchStreamId:"5",remoteSearchCloseStreamId:"6"};var s=n(5150),c=n(5438),u=n(3264);var f=n(7046);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,g=100;async function v(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()}),g))};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 m(){for(const{req:e,close:t}of h.values())t(),h.delete(e.id)}async function C(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,v),e.register(l.remoteSearchCloseStreamId,y),e.register(l.remoteProviderDispatchStreamId,C),e.addDisconnectionListener(m))}(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(2693),_=n(3758);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 j(){await O;const e=await(0,s.xZ)();await e.dispatch("hide-home",void 0)}},3264:(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()}}},1222:(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={}))},7427:(e,t,n)=>{"use strict";var r;n.d(t,{v:()=>r}),function(e){e.ActionButton="ActionButton",e.DropdownButton="DropdownButton"}(r||(r={}))},3758:(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={}))},7564:(e,t,n)=>{"use strict";n(1222),n(3758),n(6114),n(2109),n(7427)},6114:(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={}))},2109:(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={}))},2528:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AppManifestType:()=>i.L,StorefrontTemplate:()=>i.T,deregister:()=>C,hide:()=>y,register:()=>m,show:()=>w});var r=n(6532),o=n(5150),i=n(6114),a=n(6678),l=n(7278),s=n(121),c=n(5438),u=n(3264);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 g=n(2693);let v;const m=async e=>{(0,g.E)("store",s.nd);const t=await h(e);return v=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")}})),v},C=async e=>(await v,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 v,await(0,o.aB)(),d({action:"hide-provider-window",payload:{providerType:"storefront"}},{action:"hide-storefront"})),w=async()=>(l.Z.markStart("store-show"),await v,await(0,o.aB)(),d({action:"show-provider-window",payload:{providerType:"storefront"}},{action:"show-storefront"}))},3420:(e,t,n)=>{"use strict";n.d(t,{VR:()=>c,hd:()=>l});var r=n(8311),o=n(5912),i=n(9610),a=n(5150);async function l(){return(await(0,a.Dm)()).dispatch("get-legacy-pages",void 0)}const s=async e=>({...e,layoutDetails:{machineId:await(0,o.$w)(),machineName:(0,o.X5)()}}),c=async e=>{const t=await(async(e,t)=>({pageId:(0,i.H)(),title:e,layout:await s(t),isReadOnly:!1}))(e.title,(0,r.dG)(e.layout));return e.panels&&(t.panels=e.panels.map((e=>({...e,viewOptions:(0,r.ZS)(e.viewOptions)})))),{...e,...t}}},6495:(e,t,n)=>{"use strict";var r;!function(e){e.Left="Left",e.Right="Right",e.Top="Top",e.Bottom="Bottom"}(r||(r={}))},1127:(e,t,n)=>{"use strict";n.d(t,{Dm:()=>a,yz:()=>u});var r=n(9117);n(121);const o=(e,t)=>t?`${t}-${e.uuid}-${e.name}`:`__browser_window__-${e.uuid}-${e.name}`,i=new Map,a=(e,t)=>{const n=o(e,t);return i.has(n)||i.set(n,(0,r.Z)(n)),i.get(n)()};var l,s,c;!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",e.SetSelectedLanguage="set-selected-language"}(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={})),function(e){e.GetApps="get-apps",e.GetCuratedContent="get-curated-content",e.GetRecentlyVisited="get-recently-visited"}(c||(c={}));const u={...l,...s}},5438:(e,t,n)=>{"use strict";var r;n.d(t,{Hh:()=>i,fn:()=>r,j7:()=>a,xp:()=>l}),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.AddPage="addPage",e.AddDefaultPage="addDefaultPage",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.GetLanguage="getLanguage",e.GetLanguageResourcesInternal="getLanguageResourcesInternal",e.SetLanguage="setLanguage",e.GetDockProviderConfig="getDockProviderConfig",e.SaveDockProviderConfig="saveDockProviderConfig",e.HandleSaveModalOnPageClose="handleSaveModalOnPageClose",e.ShouldPageClose="shouldPageClose",e.ShouldWindowClose="shouldWindowClose",e.CopyPage="copyPage",e.HandlePageChanges="handlePageChanges",e.MarkUnsavedPagesAsSavedInternal="markUnsavedPagesAsSavedInternal",e.TrackRemovedTabInternal="trackRemovedTabInternal",e.RestoreRemovedTabInternal="restoreRemovedTabInternal",e.TrackVisitedSiteInternal="trackVisitedSiteInternal",e.GetRecentlyVisitedSitesInternal="getRecentlyVisitedSitesInternal",e.GetFrequentlyVisitedSitesInternal="getFrequentlyVisitedSitesInternal",e.SearchSitesInternal="searchSitesInternal",e.GetCuratedContentInternal="getCuratedContentInternal",e.HandleRequestNavigationInternal="handleRequestNavigationInternal",e.GetNotificationsConfig="getNotificationsConfig"}(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)},a=async e=>(await i(e),o(e)),l=async e=>{const t=await i(e);if("object"==typeof t&&!0!==t?.isBrowserInitialized)throw new Error("Target is not a Browser-enabled Workspace Platform.");return o(e)}},5150:(e,t,n)=>{"use strict";n.d(t,{Dm:()=>s,VD:()=>u,Xl:()=>p,aB:()=>d,xZ:()=>h});var r=n(9117),o=n(6678),i=n(121),a=n(7046);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())},7046:(e,t,n)=>{"use strict";n.d(t,{Qx:()=>r,w1:()=>i});const r="__search-openfin-browser-home-topic__";var o,i;!function(e){e.Fetching="fetching",e.Fetched="fetched",e.Complete="complete"}(o||(o={})),function(e){e[e.Initial=0]="Initial",e[e.Open=1]="Open",e[e.Close=2]="Close"}(i||(i={}))},1646:(e,t,n)=>{"use strict";n.d(t,{e:()=>o});var r=n(8423);const o=e=>{const t=fin.Platform.Layout.wrapSync(e);return{show:async()=>{const n=await t.getConfig(),{settings:o,dimensions:i}=n,a=await(0,r.YQ)(e);await t.replace({...n,settings:{...o,hasHeaders:!0,reorderEnabled:!0},dimensions:{...i,headerHeight:a?28:30}})},hide:async e=>{const n=await t.getConfig(),{settings:r,dimensions:o}=await n;await t.replace({...n,settings:{...r,hasHeaders:!1,reorderEnabled:e?.settings?.reorderEnabled??!1},dimensions:{...o,headerHeight:0}})},isShowingTabs:async()=>{try{const e=await t.getConfig(),{settings:n}=await e;return n.hasHeaders}catch(e){return console.error("failed to get layout config: ",e),!0}}}}},1065:(e,t,n)=>{"use strict";var r=n(5304);n(121),n(6572),n(5150);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.lightGray4,[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.lightGray4,r.Color.darkGray5,r.Color.darkGray2,r.Color.darkGray5},5806:(e,t,n)=>{"use strict";n.d(t,{D9:()=>c,TZ:()=>u,q9:()=>r});var r,o,i=n(6678);!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)},9117:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(6678);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}}},8423:(e,t,n)=>{"use strict";n.d(t,{YQ:()=>r});n(6005),n(121);const r=async e=>{const t=e?fin.Window.wrapSync(e):fin.Window.getCurrentSync(),n=await t.getOptions();return n.workspacePlatform?.windowType&&"enterprise"===n.workspacePlatform.windowType}},6678:(e,t,n)=>{"use strict";var r;n.d(t,{AB:()=>s,Ax:()=>i,CL:()=>u,GX:()=>d,ZK:()=>f,_V:()=>a,aW:()=>p,oC:()=>c,rx:()=>g,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,f="prod"===r.Local,d=(r.Dev,r.Staging,r.Prod,"fins://system-apps/workspace"),p="https://workspace.openfin.co/workspace/19.2.11/app.json",h=e=>e.startsWith("http://")||e.startsWith("https://")?e:l+e,g=(h("https://workspace.openfin.co/workspace/19.2.11"),h("https://workspace.openfin.co/workspace/19.2.11")),v=("undefined"!=typeof WORKSPACE_DOCS_PLATFORM_URL&&h(WORKSPACE_DOCS_PLATFORM_URL),"undefined"!=typeof WORKSPACE_DOCS_CLIENT_URL&&h(WORKSPACE_DOCS_CLIENT_URL),"19.2.11");"undefined"!=typeof WORKSPACE_BUILD_SHA&&WORKSPACE_BUILD_SHA},8311:(e,t,n)=>{"use strict";n.d(t,{ZS:()=>u,dG:()=>f});var r=n(3198),o=n.n(r),i=(n(6678),n(3420)),a=n(1646),l=n(9663),s=(n(7098),n(121));const c=(e,t)=>e.content?{...e,content:e.content.map((e=>c(e,t)))}:{...e,componentState:t(e.componentState)},u=e=>({...e,name:void 0}),f=e=>{const t={...e};return c(t,u)},d=e=>{const t=[];return(e&&Array.isArray(e)?e:[]).forEach((e=>{if("component"===e.type)return t.push(e.componentState);const n=d(e.content);t.push(...n)})),t};new Map,new Map;o()((async e=>{try{const t=await(async e=>fin.Platform.Layout.wrapSync({...fin.me.identity,layoutName:e}).getConfig())(e.layoutContainerKey),n=t.content?d(t.content):[],r=n.length;r>1?(e=>{"multiView"!==e.attachedPageType&&(0,l.a)().Browser.wrapSync(s.Gi).updatePage({pageId:e.pageId,page:{singleViewName:null,attachedPageType:"multiView"}})})(e):1===r&&(async(e,t)=>{const n=(0,l.a)().Browser.wrapSync(s.Gi);if("singleView"!==e.attachedPageType){const r=await(0,i.VR)(e),o=await(0,l.a)().Browser.getUniquePageTitle();delete r.layout;const a={...r,singleViewName:t,title:o,hasUnsavedChanges:!1,attachedPageType:"singleView"};await n.updatePage({pageId:e.pageId,page:a})}})(e,n[0].name),await(async(e,t)=>{const n=(0,a.e)({...s.Gi,layoutName:e.layoutContainerKey}),r=await n.isShowingTabs();t>1?r||await n.show():1===t&&r&&await n.hide({settings:{reorderEnabled:!0}})})(e,r)}catch(e){}}),50,{leading:!1,trailing:!0})},8061:(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",e.PageDragState="BrowserPageDragState"}(r||(r={}));const o=r},4728:(e,t,n)=>{"use strict";n.d(t,{LS:()=>o,rV:()=>i});var r=n(6678);const o=(e,t)=>{localStorage.setItem(`${r.AB}-${e}`,t)},i=e=>localStorage.getItem(`${r.AB}-${e}`)},7278:(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})))}}},6005:(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.BrowserPopupMenuAddressSearchView="/browser/popup-menu/address-search-view/",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/",e.EnterpriseBrowser="/browser/enterprise/",e.EnterpriseContextMenu="/browser/enterprise/context-menu/"}(r||(r={}));const o="/microsoft-365-integration-assets/",i={IconOpenFinLogo:"/icons/openfinlogo.svg",IconFilter:"/icons/filter.svg",LightStorefront:"/icons/store-icon-light.png",DarkStorefront:"/icons/store-icon-dark.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`},DockIconLight:"/icons/dock-icon-light.png",DockIconDark:"/icons/dock-icon-dark.png"};var a;!function(e){e.Search="search"}(a||(a={}));const l=r},6650:(e,t,n)=>{"use strict";n.d(t,{K3:()=>i});var r;n(6678);!function(e){e.Home="/home",e.Browser="/browser",e.Provider="/provider",e.Storefront="/storefront",e.Dock="/dock"}(r||(r={}));const o="/workspace/19.2.11";function i(e){return o+e}},5912:(e,t,n)=>{"use strict";n.d(t,{$w:()=>a,X5:()=>o});n(8311);var r=n(8061);function o(){return localStorage.getItem(r.Z.MachineName)??"unknown"}let i;async function a(){return i||(i=await fin.System.getMachineId()),i}},6532:(e,t,n)=>{"use strict";n.d(t,{Wn:()=>c,ck:()=>l,d9:()=>s});var r,o=n(6678),i=n(121);n(6572);!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"}(r||(r={}));const a=async(e,t,n="workspace-licensing")=>{const r={apiVersion:t.apiVersion||o.u0,componentName:e,componentVersion:t.componentVersion||o.u0,allowed:t.allowed,rejectionCode:t.rejectionCode};fin.System.registerUsage({type:n,data:r})};const l=e=>{i.OI.uuid===i.Gi.uuid&&i.OI.name===i.Gi.name||a(r.Home,e)},s=e=>{a(r.Storefront,e)},c=e=>{a(r.Dock,e)};new Map},9610:(e,t,n)=>{"use strict";function r(){return void 0!==typeof crypto&&"randomUUID"in crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():"10000000-1000-4000-8000-100000000000".replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))}n.d(t,{H:()=>r})},121:(e,t,n)=>{"use strict";n.d(t,{B:()=>d,GP:()=>p,Gi:()=>l,IA:()=>r,JV:()=>h,OI:()=>s,ZJ:()=>c,iW:()=>f,nd:()=>u});var r,o=n(5806),i=n(6678);!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.BrowserSaveMenu="openfin-browser-save-menu",e.BrowserIndicator="openfin-browser-indicator",e.BrowserWindow="internal-generated-window",e.ClassicWindow="internal-generated-classic-window",e.EnterpriseContextMenu="openfin-enterprise-context-menu",e.BrowserAddressSearchPrefix="openfin-browser-menu-address-search-"}(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};const s={name:r.Home,uuid:o.q9.Workspace},c={name:r.Dock,uuid:o.q9.Workspace},u={name:r.Storefront,uuid:o.q9.Workspace},f={name:o.q9.Workspace,uuid:o.q9.Workspace};const d=async e=>{try{const t=await fin.Window.wrapSync({name:e.name,uuid:e.uuid??fin.me.uuid}).getOptions();return("browser"===t.workspacePlatform?.windowType||"enterprise"===t.workspacePlatform?.windowType)&&t.workspacePlatform?.pages}catch(e){return console.warn("isBrowserWindow error: ",e),!1}};async function p(){const e=await fin.Application.getCurrentSync().getChildWindows(),t=await Promise.all(e.map((async e=>d(e.identity))));return e.filter(((e,n)=>t[n]))}const h=e=>a(e).getOptions().then((()=>!0)).catch((()=>!1))},2304:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}}},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:()=>d.v,Home:()=>_,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:()=>d.v,deregister:()=>m,minimize:()=>C,register:()=>v,show:()=>y});var t={};n.r(t),n.d(t,{Microsoft365WorkflowIntegration:()=>Ne});var o={};n.r(o),n.d(o,{getPages:()=>Ue,getWorkspaces:()=>We});var i=n(6678),a=n(7278),l=n(6532),s=n(121),c=n(5150),u=n(5438);var f=n(2693),d=n(7427);let p,h;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.")},v=async e=>{(0,f.E)("dock",s.ZJ);const t=await(async e=>{await(0,u.Hh)(fin.me.identity);const t=await(0,c.xZ)();if(h)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 h=e,e.clientAPIVersion=i.u0,t.dispatch("register-provider",{providerType:"dock",info:e})})(e);return p=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(!h)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),p=void 0}finally{a.Z.markEndAndMeasure("dock-registration")}})),p},m=async()=>{if(await p,!h)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:h.id}),h=void 0,p=void 0},C=async()=>{await p,await(0,c.aB)(),await(async e=>(await(0,c.Dm)()).dispatch("hide-provider-window",{providerType:e}))("dock")},y=async()=>{a.Z.markStart("dock-show"),await p,await(0,c.aB)(),await(async e=>(await(0,c.Dm)()).dispatch("show-provider-window",{providerType:e}))("dock")};var w,b,x,_=n(3261),O=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},L=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)};w=new WeakMap,b=new WeakMap,x=new WeakMap;const E=class{constructor(e){w.set(this,void 0),b.set(this,void 0),x.set(this,void 0),O(this,w,e,"f"),O(this,b,new Map,"f"),O(this,x,[],"f")}get(e){if(L(this,b,"f").has(e))return this.updateQueue(e),L(this,b,"f").get(e)}has(e){return L(this,b,"f").has(e)}put(e,t){if(L(this,b,"f").has(e))L(this,b,"f").set(e,t),this.updateQueue(e);else{if(L(this,x,"f").length===L(this,w,"f")){const e=L(this,x,"f").shift();e&&L(this,b,"f").delete(e)}L(this,b,"f").set(e,t),L(this,x,"f").push(e)}}updateQueue(e){const t=L(this,x,"f").indexOf(e);-1!==t&&(L(this,x,"f").splice(t,1),L(this,x,"f").push(e))}};function S(e){return e&&"object"==typeof e&&!Array.isArray(e)}function j(e,...t){if(!t.length)return e;const n=t.shift();return S(e)&&S(n)&&Object.entries(n).forEach((([t,n])=>{if(S(n))return e[t]||(e[t]={}),j(e[t],n);e[t]=n})),j(e,...t)}var M,k,R,P,I,A=n(6005),T=n(6650),H=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},V=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)};k=new WeakMap,R=new WeakMap,P=new WeakMap,M=new WeakSet,I=function(){const e=Array.from(V(this,k,"f").entries()).reduce(((e,t)=>!e||t[1].timestamp<e[1].timestamp?t:e),null);return e?e[0]:null};const B=class{constructor(e=3e5,t=100){M.add(this),k.set(this,void 0),R.set(this,void 0),P.set(this,void 0),H(this,k,new Map,"f"),H(this,R,e,"f"),H(this,P,t,"f")}get(e){const t=V(this,k,"f").get(e);if(!t)return null;return Date.now()-t.timestamp<V(this,R,"f")?t.value:(V(this,k,"f").delete(e),null)}put(e,t){if(V(this,k,"f").size>=V(this,P,"f")){const e=V(this,M,"m",I).call(this);null!=e&&V(this,k,"f").delete(e)}V(this,k,"f").set(e,{value:t,timestamp:Date.now()})}remove(e){V(this,k,"f").delete(e)}clear(){V(this,k,"f").clear()}};var D,Z=n(9610),$=n(3758),N=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 F={};class U{constructor(e){D.set(this,new Set),this._initializeWorkflows=async(e=this.config)=>{const{workflows:t}=e;for(const e in t){if(!t[e].disableAutoInitialize)try{N(this,D,"f").has(e)?console.warn(`Workflow ${e} already initialized.`):(N(this,D,"f").add(e),await this.initializeWorkflow(e))}catch(t){N(this,D,"f").delete(e),console.error(`Error registering ${e}:`,t)}}};const t=j({},F,e);this.config=t}async initializeWorkflow(e){N(this,D,"f").add(e)}}D=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|g(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 g(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 v(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 j(this,t,n);case"latin1":case"binary":return M(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 m(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function C(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=g,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)m(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)m(this,t,t+3),m(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)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(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):v.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 C(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return C(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 j(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 M(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){N(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){N(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){F(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){F(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){F(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){F(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 N(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){F(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||U(t,e.length-(n+1))}(r,o,i)}function F(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 F(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))}g(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&g(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 g(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,g=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*g}},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]],g="[object Arguments]",v="[object Array]",m="[object Boolean]",C="[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]",j="[object String]",M="[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]",N=/\b__p \+= '';/g,F=/\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,ge=/^\[object .+?Constructor\]$/,ve=/^0o[0-7]+$/i,me=/^(?:0|[1-9]\d*)$/,Ce=/[\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",je="["+be+"]",Me="["+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+")",Ne="(?:"+De+"|"+Ae+")",Fe="(?:['’](?: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,je].join("|")+")",Ke=RegExp("['’]","g"),Xe=RegExp(ke,"g"),Je=RegExp(Te+"(?="+Te+")|"+Ye+Ge,"g"),Qe=RegExp([De+"?"+Ie+"+"+Fe+"(?="+[Me,De,"$"].join("|")+")",Ne+"+"+Ue+"(?="+[Me,De+$e,"$"].join("|")+")",De+"?"+$e+"+"+Fe,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[g]=ot[v]=ot[R]=ot[m]=ot[P]=ot[C]=ot[y]=ot[w]=ot[x]=ot[_]=ot[O]=ot[E]=ot[S]=ot[j]=ot[k]=!1;var it={};it[g]=it[v]=it[R]=it[P]=it[m]=it[C]=it[I]=it[A]=it[T]=it[H]=it[V]=it[x]=it[_]=it[O]=it[E]=it[S]=it[j]=it[M]=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,gt=ht&&ct.process,vt=function(){try{return pt&&pt.require&&pt.require("util").types||gt&>.binding&>.binding("util")}catch(e){}}(),mt=vt&&vt.isArrayBuffer,Ct=vt&&vt.isDate,yt=vt&&vt.isMap,wt=vt&&vt.isRegExp,bt=vt&&vt.isSet,xt=vt&&vt.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 jt(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 Mt(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=Ft("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 Nt(e,t){var n=null==e?0:e.length;return n?zt(e,t)/n:d}function Ft(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({"&":"&","<":"<",">":">",'"':""","'":"'"});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({"&":"&","<":"<",">":">",""":'"',"'":"'"}),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,je=r.prototype,Me=xe.prototype,ke=Oe.prototype,Re=t["__core-js_shared__"],Pe=Me.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,Ne=t.Uint8Array,Fe=Ze?Ze.allocUnsafe:o,Ue=an(Oe.getPrototypeOf,Oe),We=Oe.create,ze=ke.propertyIsEnumerable,Ge=je.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,gt=Oe.getOwnPropertySymbols,vt=Ze?Ze.isBuffer:o,Ht=t.isFinite,Ut=je.join,hn=an(Oe.keys,Oe),gn=_e.max,vn=_e.min,mn=oe.now,Cn=t.parseInt,yn=_e.random,wn=je.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,jn={},Mn=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 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 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 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 Fn(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)||gi(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==g||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,jl(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 m:case C: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 j: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 M: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 v=f?o:(u?c?ti:ei:c?jl:Sl)(e);return Lt(v||e,(function(r,o){v&&(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=Mt,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,Nn.prototype.clear=function(){this.__data__=En?En(null):{},this.size=0},Nn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Nn.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},Nn.prototype.has=function(e){var t=this.__data__;return En?t[e]!==o:Ie.call(t,e)},Nn.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},Fn.prototype.clear=function(){this.__data__=[],this.size=0},Fn.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))},Fn.prototype.get=function(e){var t=this.__data__,n=Qn(t,e);return n<0?o:t[n][1]},Fn.prototype.has=function(e){return Qn(this.__data__,e)>-1},Fn.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 Nn,map:new(xn||Fn),string:new Nn}},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 Fn,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 Fn){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(mr),ur=ko(Cr,!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 gr=Ro(),vr=Ro(!0);function mr(e,t){return e&&gr(e,t,Sl)}function Cr(e,t){return e&&vr(e,t,Sl)}function yr(e,t){return jt(t,(function(t){return Ga(e[t])}))}function wr(e,t){for(var n=0,r=(t=vo(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:Mt,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=vn(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 g=d[p],v=t?t(g):g;if(g=n||0!==g?g:0,!(h?Xt(h,v):i(f,v,n))){for(s=l;--s;){var m=c[s];if(!(m?Xt(m,v):i(e[s],v,n)))continue e}h&&h.push(v),f.push(g)}}return f}function Sr(e,t,n){var r=null==(e=Oi(e,t=vo(t,e)))?e:e[Ii(zi(t))];return null==r?o:_t(r,e,n)}function jr(e){return Xa(e)&&xr(e)==g}function Mr(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?v:fi(e),u=s?v:fi(t),f=(c=c==g?O:c)==O,d=(u=u==g?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 Ne(e),new Ne(t)));case m:case C:case _:return Ha(+e,+t);case y:return e.name==t.name&&e.message==t.message;case E:case j: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 M: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 g=l;++u<c;){var v=e[f=s[u]],m=t[f];if(r)var C=l?r(m,v,f,t,e,a):r(v,m,f,e,t,a);if(!(C===o?v===m||i(v,m,n,r,a):C)){h=!1;break}g||(g="constructor"==f)}if(h&&!g){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,Mr,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?Mr(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:ge).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=Na(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 mi(e)&&bi(t)?xi(Ii(e),t):function(n){var r=xl(n,e);return r===o&&r===t?_l(n,e):Mr(t,r,3)}}function Br(e,t,n,r,i){e!==t&&gr(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),g=!p&&!h&&il(c);f=c,p||h||g?Za(s)?f=s:Fa(s)?f=Eo(s):h?(d=!1,f=wo(c,!0)):g?(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)}}),jl)}function Dr(e,t){var n=e.length;if(n)return gi(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,vo(a,e),l)}return i}function Nr(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 Fr(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;gi(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 ji(_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=vo(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:gi(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,g=d==d,v=ol(d);if(l)var m=r||g;else m=u?g&&(r||p):s?g&&p&&(r||!h):c?g&&p&&!h&&(r||!v):!h&&!v&&(r?d<=t:d<t);m?i=f+1:a=f}return vn(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=Mt,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=vo(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 Fa(e)?e:[]}function go(e){return"function"==typeof e?e:Ql}function vo(e,t){return Za(e)?e:mi(e,t)?[e]:Pi(hl(e))}var mo=zr;function Co(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=Fe?Fe(n):new e.constructor(n);return e.copy(r),r}function bo(e){var t=new e.constructor(e.byteLength);return new Ne(t).set(new Ne(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=gn(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=gn(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 jo(e,t){return function(n,r){var o=Za(n)?Ot:er,i=t?t():{};return o(n,e,ii(r,2),i)}}function Mo(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&&vi(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(!Na(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?Co(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(!Na(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&&Ci(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?s[ri(u[0])].apply(s,u[3]):1==l.length&&Ci(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,g=2&t,v=24&t,m=512&t,C=g?o:Ao(e);return function c(){for(var y=arguments.length,w=r(y),b=y;b--;)w[b]=arguments[b];if(v)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,v)),l&&(w=Lo(w,l,s,v)),y-=_,v&&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=g?L[e]:e;return y=w.length,u?w=function(e,t){for(var n=e.length,r=vn(t.length,n),i=Eo(e);r--;){var a=t[r];e[r]=gi(a,n)?i[a]:o}return e}(w,u):m&&y>1&&w.reverse(),p&&f<y&&(w.length=f),this&&this!==ft&&this instanceof c&&(E=C||Ao(E)),E.apply(L,w)}}function Bo(e,t){return function(n,r){return function(e,t,n,r){return mr(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)?Co(un(r),0,e).join(""):r.slice(0,e)}function No(e){return function(t,n,i){return i&&"number"!=typeof i&&vi(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=gn(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 Fo(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 Ci(e)&&Ei(h,p),h.placeholder=r,Mi(h,e,t)}function Wo(e){var t=_e[e];return function(e,n){if(e=dl(e),(n=null==n?0:vn(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 g=a?a.length:0;if(g||(t&=-97,a=u=o),d=d===o?d:gn(ul(d),0),p=p===o?p:ul(p),g-=u?u.length:0,64&t){var v=a,m=u;a=u=o}var C=h?o:ni(e),y=[e,t,n,a,u,v,m,f,d,p];if(C&&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]:vn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(y,C),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:gn(y[9]-g,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 Mi((C?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 g=e[d],v=t[d];if(r)var m=l?r(v,g,d,t,e,a):r(g,v,d,e,t,a);if(m!==o){if(m)continue;p=!1;break}if(h){if(!Tt(t,(function(e,t){if(!Xt(h,t)&&(g===e||i(g,e,n,r,a)))return h.push(t)}))){p=!1;break}}else if(g!==v&&!i(g,v,n,r,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function Qo(e){return ji(_i(e,o,$i),e+"")}function ei(e){return br(e,Sl,ci)}function ti(e){return br(e,jl,ui)}var ni=Sn?function(e){return Sn.get(e)}:os;function ri(e){for(var t=e.name+"",n=jn[t],r=Ie.call(jn,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=gt?function(e){return null==e?[]:(e=Oe(e),jt(gt(e),(function(t){return ze.call(e,t)})))}:fs,ui=gt?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=vo(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)&&gi(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 gi(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&me.test(e))&&e>-1&&e%1==0&&e<t}function vi(e,t,n){if(!Ka(n))return!1;var r=typeof t;return!!("number"==r?Na(n)&&gi(t,n.length):"string"==r&&t in n)&&Ha(n[t],e)}function mi(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 Ci(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 Mn: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=gn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=gn(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)},ji=ki(Xr);function Mi(e,t,n){var r=t+"";return ji(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]&&!Mt(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=mn(),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 Fa(e)?sr(e,hr(t,1,Fa,!0)):[]})),Vi=zr((function(e,t){var n=zi(t);return Fa(n)&&(n=o),Fa(e)?sr(e,hr(t,1,Fa,!0),ii(n,2)):[]})),Bi=zr((function(e,t){var n=zi(t);return Fa(n)&&(n=o),Fa(e)?sr(e,hr(t,1,Fa,!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=gn(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?gn(r+i,0):vn(i,r-1)),Bt(e,ii(t,3),i,!0)}function $i(e){return null!=e&&e.length?hr(e,1):[]}function Ni(e){return e&&e.length?e[0]:o}var Fi=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?Nr(e,t):e}var Yi=Qo((function(e,t){var n=null==e?0:e.length,r=rr(e,t);return Fr(e,Rt(t,(function(e){return gi(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,Fa,!0))})),Ji=zr((function(e){var t=zi(e);return Fa(t)&&(t=o),ao(hr(e,1,Fa,!0),ii(t,2))})),Qi=zr((function(e){var t=zi(e);return t="function"==typeof t?t:o,ao(hr(e,1,Fa,!0),o,t)}));function ea(e){if(!e||!e.length)return[];var t=0;return e=jt(e,(function(e){if(Fa(e))return t=gn(e.length,t),!0})),Gt(t,(function(t){return Rt(e,Ft(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 Fa(e)?sr(e,t):[]})),ra=zr((function(e){return fo(jt(e,Fa))})),oa=zr((function(e){var t=zi(e);return Fa(t)&&(t=o),fo(jt(e,Fa),ii(t,2))})),ia=zr((function(e){var t=zi(e);return t="function"==typeof t?t:o,fo(jt(e,Fa),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&&gi(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=jo((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 ga(e,t){return(Za(e)?Et:ur)(e,ii(t,3))}var va=jo((function(e,t,n){Ie.call(e,n)?e[n].push(t):nr(e,n,[t])})),ma=zr((function(e,t,n){var o=-1,i="function"==typeof t,a=Na(e)?r(e.length):[];return cr(e,(function(e){a[++o]=i?_t(t,e,n):Sr(e,t,n)})),a})),Ca=jo((function(e,t,n){nr(e,n,t)}));function ya(e,t){return(Za(e)?Rt:Tr)(e,ii(t,3))}var wa=jo((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&&vi(e,t[0],t[1])?t=[]:n>2&&vi(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 g(t){var n=r,i=a;return r=a=o,f=t,s=e.apply(i,n)}function v(e){var n=e-u;return u===o||n>=t||n<0||p&&e-f>=l}function m(){var e=xa();if(v(e))return C(e);c=Si(m,function(e){var n=t-(e-u);return p?vn(n,l-(e-f)):n}(e))}function C(e){return c=o,h&&r?g(e):(r=a=o,s)}function y(){var e=xa(),n=v(e);if(r=arguments,a=this,u=e,n){if(c===o)return function(e){return f=e,c=Si(m,t),d?g(e):s}(u);if(p)return yo(c),c=Si(m,t),g(u)}return c===o&&(c=Si(m,t)),s}return t=dl(t)||0,Ka(n)&&(d=!!n.leading,l=(p="maxWait"in n)?gn(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:C(xa())},y}var ja=zr((function(e,t){return lr(e,1,t)})),Ma=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=mo((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=vn(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=Fo(_r),Ba=Fo((function(e,t){return e>=t})),Da=jr(function(){return arguments}())?jr:function(e){return Xa(e)&&Ie.call(e,"callee")&&!ze.call(e,"callee")},Za=r.isArray,$a=mt?Yt(mt):function(e){return Xa(e)&&xr(e)==R};function Na(e){return null!=e&&Ya(e.length)&&!Ga(e)}function Fa(e){return Xa(e)&&Na(e)}var Ua=vt||ds,Wa=Ct?Yt(Ct):function(e){return Xa(e)&&xr(e)==C};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)==j}function ol(e){return"symbol"==typeof e||Xa(e)&&xr(e)==M}var il=xt?Yt(xt):function(e){return Xa(e)&&Ya(e.length)&&!!ot[xr(e)]},al=Fo(Ar),ll=Fo((function(e,t){return e<=t}));function sl(e){if(!e)return[];if(Na(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||ve.test(e)?st(e.slice(2),n?2:8):pe.test(e)?d:+e}function pl(e){return So(e,jl(e))}function hl(e){return null==e?"":io(e)}var gl=Mo((function(e,t){if(wi(t)||Na(t))So(t,Sl(t),e);else for(var n in t)Ie.call(t,n)&&Jn(e,n,t[n])})),vl=Mo((function(e,t){So(t,jl(t),e)})),ml=Mo((function(e,t,n,r){So(t,jl(t),e,r)})),Cl=Mo((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&&vi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],l=jl(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 Na(e)?Gn(e):Ir(e)}function jl(e){return Na(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 Ml=Mo((function(e,t,n){Br(e,t,n)})),kl=Mo((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=vo(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(jl);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(Ce,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()})),Nl=Po("toLowerCase"),Fl=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 mi(e)?Ft(Ii(e)):function(e){return function(t){return wr(t,e)}}(e)}var cs=No(),us=No(!0);function fs(){return[]}function ds(){return!1}var ps,hs=Do((function(e,t){return e+t}),0),gs=Wo("ceil"),vs=Do((function(e,t){return e/t}),1),ms=Wo("floor"),Cs=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=gl,Vn.assignIn=vl,Vn.assignInWith=ml,Vn.assignWith=Cl,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?vi(e,t,n):t===o)?1:gn(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=ja,Vn.delay=Ma,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&&vi(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)?jt: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,jl(e))},Vn.groupBy=va,Vn.initial=function(e){return null!=e&&e.length?Qr(e,0,-1):[]},Vn.intersection=Fi,Vn.intersectionBy=Ui,Vn.intersectionWith=Wi,Vn.invert=Ol,Vn.invertBy=Ll,Vn.invokeMap=ma,Vn.iteratee=es,Vn.keyBy=Ca,Vn.keys=Sl,Vn.keysIn=jl,Vn.map=ya,Vn.mapKeys=function(e,t){var n={};return t=ii(t,3),mr(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),mr(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=Ml,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?Nr(e,t,ii(n,2)):e},Vn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Nr(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)?jt: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 Fr(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?vi(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&&vi(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&&vi(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)?Co(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:gn(ul(t),0),zr((function(n){var r=n[t],o=Co(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:mr)(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,go(n))},Vn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:so(e,t,go(n),r)},Vn.values=Hl,Vn.valuesIn=function(e){return null==e?[]:Kt(e,jl(e))},Vn.without=na,Vn.words=Gl,Vn.wrap=function(e,t){return Ia(go(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=vl,Vn.extendWith=ml,rs(Vn,Vn),Vn.add=hs,Vn.attempt=ql,Vn.camelCase=Vl,Vn.capitalize=Bl,Vn.ceil=gs,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=vs,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&&vi(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),mr)},Vn.findLast=pa,Vn.findLastIndex=Zi,Vn.findLastKey=function(e,t){return Vt(e,ii(t,3),Cr)},Vn.floor=ms,Vn.forEach=ha,Vn.forEachRight=ga,Vn.forIn=function(e,t){return null==e?e:gr(e,ii(t,3),jl)},Vn.forInRight=function(e,t){return null==e?e:vr(e,ii(t,3),jl)},Vn.forOwn=function(e,t){return e&&mr(e,ii(t,3))},Vn.forOwnRight=function(e,t){return e&&Cr(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=Ni,Vn.identity=Ql,Vn.includes=function(e,t,n,r){e=Na(e)?e:Hl(e),n=n&&!r?ul(n):0;var o=e.length;return n<0&&(n=gn(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=gn(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>=vn(t,n)&&e<gn(t,n)}(e=dl(e),t,n)},Vn.invoke=El,Vn.isArguments=Da,Vn.isArray=Za,Vn.isArrayBuffer=$a,Vn.isArrayLike=Na,Vn.isArrayLikeObject=Fa,Vn.isBoolean=function(e){return!0===e||!1===e||Xa(e)&&xr(e)==m},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(Na(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 Mr(e,t)},Vn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Mr(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?gn(r+i,0):vn(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=Nl,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 Nt(e,Ql)},Vn.meanBy=function(e,t){return Nt(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=Cs,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),Cn(hl(e).replace(re,""),t||0)},Vn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&vi(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 vn(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?vi(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=vo(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(Na(e))return rl(e)?cn(e):e.length;var t=fi(e);return t==x||t==S?e.size:Ir(e).length},Vn.snakeCase=Fl,Vn.some=function(e,t,n){var r=Za(e)?Tt:eo;return n&&vi(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&&vi(e,t,n)&&(t=o),e=hl(e),t=ml({},t,r,Yo);var i,a,l=ml({},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 g=Ie.call(t,"variable")&&t.variable;if(g){if(ce.test(g))throw new be("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(a?d.replace(N,""):d).replace(F,"$1").replace(U,"$1;"),d="function("+(g||"obj")+") {\n"+(g?"":"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 v=ql((function(){return xe(s,h+"return "+d).apply(o,c)}));if(v.source=d,za(v))throw v;return v},Vn.times=function(e,t){if((e=ul(e))<1||e>f)return[];var n=p,r=vn(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 Co(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 Co(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 Co(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?Co(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=ga,Vn.first=Ni,rs(Vn,(ps={},mr(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:gn(ul(n),0);var r=this.__filtered__&&!t?new $n(this):this.clone();return r.__filtered__?r.__takeCount__=vn(n,r.__takeCount__):r.__views__.push({size:vn(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)},mr($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,g=s&&!p;if(!a&&u){t=g?t:new $n(this);var v=e.apply(t,l);return v.__actions__.push({func:ca,args:[f],thisArg:o}),new Zn(v,d)}return h&&g?e.apply(this,l):(v=this.thru(f),h?r?v.value()[0]:v.value():v)})})),Lt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=je[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)}))}})),mr($n.prototype,(function(e,t){var n=Vn[t];if(n){var r=n.name+"";Ie.call(jn,r)||(jn[r]=[]),jn[r].push({name:t,func:n})}})),jn[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=vn(t,e+a);break;case"takeRight":e=gn(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=vn(s,this.__takeCount__);if(!n||!r&&o==s&&p==s)return uo(e,this.__actions__);var h=[];e:for(;s--&&d<p;){for(var g=-1,v=e[c+=t];++g<f;){var m=u[g],C=m.iteratee,y=m.type,w=C(v);if(2==y)v=w;else if(!w){if(1==y)continue e;break e}}h[d++]=v}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:g}}=n(141),v=n(86);e.exports=function(...e){if(0===e.length)throw new g("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,m,C,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(),m=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((()=>{})),m=t}catch(e){t(e)}}}const e=u(x)?x.readable:x;v(e,(()=>{if(m){const e=m;m=null,e()}}))}if(O)if(a(x))x.on("readable",(function(){if(C){const e=C;C=null,e()}})),x.on("end",(function(){w.push(null)})),w._read=function(){for(;;){const e=x.read();if(null===e)return void(C=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),C=null,n=null,m=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 g(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(v,e,t):r.nextTick(m,e)}try{e._destroy(t||null,i)}catch(t){i(t)}}function v(e,t){C(e,t),m(e)}function m(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 C(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(C,e,t):C(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?g(this,e,t):this.once(d,(function(n){g(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:g}}=n(141),{destroyer:v}=n(230),m=n(182),C=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 m{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?C.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&&v(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&&v(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,v(n,e),v(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 g("nully","body",e)}),(e=>{v(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 g("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=>{v(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:g}=n(191),{isClosed:v,isReadable:m,isReadableNodeStream:C,isReadableStream:y,isReadableFinished:w,isReadableErrored:b,isWritable:x,isWritableNodeStream:_,isWritableStream:O,isWritableFinished:L,isWritableErrored:E,isNodeStream:S,willEmitClose:j,kIsClosedPromise:M}=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 g(e[M].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:C(e),R=null!==(p=t.writable)&&void 0!==p?p:_(e),P=e._writableState,I=e._readableState,A=()=>{e.writable||V()};let T=j(e)&&C(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 $=v(e);const N=()=>{$=!0;const t=E(e)||b(e);return t&&"boolean"!=typeof t?n.call(e,t):h&&!B&&C(e,!0)&&!w(e,!1)?n.call(e,new l):!R||H||L(e,!1)?void n.call(e):n.call(e,new l)},F=()=>{$=!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",N),e.req?U():e.on("request",U)),T||"boolean"!=typeof e.aborted||e.on("aborted",N),e.on("end",D),e.on("finish",V),!1!==t.error&&e.on("error",Z),e.on("close",N),$?r.nextTick(N):null!=P&&P.errorEmitted||null!=I&&I.errorEmitted?T||r.nextTick(F):(h||T&&!m(e)||!H&&!1!==x(e))&&(R||T&&!x(e)||!B&&!1!==m(e))?I&&e.req&&e.aborted&&r.nextTick(F):r.nextTick(F);const W=()=>{n=k,e.removeListener("aborted",N),e.removeListener("complete",V),e.removeListener("abort",N),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",N)};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:g}=n(374),{isWritable:v,isNodeStream:m}=n(132),{ArrayPrototypePush:C,MathFloor:y,Number:w,NumberIsNaN:b,Promise:x,PromiseReject:_,PromisePrototypeThen:O,Symbol:L}=n(191),E=L("kEmpty"),S=L("kEof");function j(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 g=!1;function v(){g=!0}!async function(){try{for await(let t of l){var r;if(g)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(v),c.push(t),p&&(p(),p=null),!g&&c.length&&c.length>=n&&await new x((e=>{h=e})))}c.push(S)}catch(e){const t=_(e);O(t,void 0,v),c.push(t)}finally{var o;g=!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(),g=!0,h&&(h(),h=null)}}.call(this)}async function M(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 j.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=j.call(this,e,t);return async function*(){for await(const e of n)yield*e}.call(this)},map:j,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"),m(e)&&!v(e))throw new o("stream",e,"must be writable");const n=h(this,e);return null!=t&&t.signal&&g(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 M.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 j.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 g;if(h=!0,null!=n&&null!==(g=n.signal)&&void 0!==g&&g.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});C(t,r)}return t},some:M,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:g,ERR_STREAM_PREMATURE_CLOSE:v},AbortError:m}=n(141),{validateFunction:C,validateAbortSignal:y}=n(904),{isIterable:w,isReadable:b,isReadableNodeStream:x,isNodeStream:_,isTransformStream:O,isWebStream:L,isReadableStream:E,isReadableEnded:S}=n(132),j=globalThis.AbortController||n(876).AbortController;let M,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 g("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 j,l=a.signal,s=null==i?void 0:i.signal,c=[];function f(){V(new m)}let g,v;y(s,"options.signal"),null==s||s.addEventListener("abort",f);const C=[];let S,k=0;function T(e){V(e,0==--k)}function V(e,n){if(!e||g&&"ERR_STREAM_PREMATURE_CLOSE"!==g.code||(g=e),g||n){for(;C.length;)C.shift()(g);null==s||s.removeEventListener("abort",f),a.abort(),n&&(g||c.forEach((e=>e())),r.nextTick(t,g,v))}}for(let Z=0;Z<e.length;Z++){const $=e[Z],N=Z<e.length-1,F=Z>0,U=N||!1!==(null==i?void 0:i.end),W=Z===e.length-1;if(_($)){if(U){const{destroy:G,cleanup:q}=R($,N,F);C.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}),N){if(!w(S,!0))throw new p("AsyncIterable",`transform[${Z-1}]`,S)}else{var D;M||(M=n(467));const Y=new M({objectMode:!0}),K=null===(D=S)||void 0===D?void 0:D.then;if("function"==typeof K)k++,K.call(S,(e=>{v=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);C.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 v)})),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 C(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:g}=n(465),{Stream:v,prependListener:m}=n(200),{Buffer:C}=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:j,ERR_OUT_OF_RANGE:M,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,v.prototype),u(D,v);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)),v.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=C.from(t,n).toString(o.encoding):(t=C.from(t,n),n=""))):t instanceof C?n="":v._isUint8Array(t)?(t=v._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?F(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&&F(e)),W(e,t)}function N(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 F(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[g.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 M("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):F(this),null;if(0===(e=N(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=N(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 j("_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?g: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",g),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),g(),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),g()}function h(){b("onfinish"),e.removeListener("close",p),g()}function g(){b("unpipe"),n.unpipe(e)}return n.on("data",u),m(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=v.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?F(this):o.reading||r.nextTick(q,this))),n},D.prototype.addListener=D.prototype.on,D.prototype.removeListener=function(e,t){const n=v.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=v.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 g(e){return e&&(e._readableState||e._writableState||"function"==typeof e.write&&"function"==typeof e.on||"function"==typeof e.pipe&&"function"==typeof e.on)}function v(e){return!(!e||g(e)||"function"!=typeof e.pipeThrough||"function"!=typeof e.getReader||"function"!=typeof e.cancel)}function m(e){return!(!e||g(e)||"function"!=typeof e.getWriter||"function"!=typeof e.abort)}function C(e){return!(!e||g(e)||"object"!=typeof e.readable||"object"!=typeof e.writable)}function y(e){if(!g(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(!g(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 g(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:v,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 g(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:g,isWebStream:function(e){return v(e)||m(e)||C(e)},isWritable:_,isWritableNodeStream:h,isWritableStream:m,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 g(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(!g(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:C}},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:g}=n(485),v=n(230),{addAbortSignal:m}=n(374),{getHighWaterMark:C,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:j}=n(141).codes,{errorOrDestroy:M}=v;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?C(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&&m(e.signal,this)),h.call(this,e),v.construct(this,(()=>{const e=this._writableState;e.writing||N(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&&!g.isEncoding(n))throw new j(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=g.from(t,n),n="buffer");else if(t instanceof g)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),M(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),M(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&&N(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))):M(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 N(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 F(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){F(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)M(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);M(e,o,t.sync)}else F(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)=>{F(t)?W(e,t):t.pendingcb--}),e,t)):F(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(){M(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||N(this,e))},A.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=u(e)),!g.isEncoding(e))throw new j(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=v.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=v.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:g,StringPrototypeTrim:v}=n(191),{hideStackFrames:m,codes:{ERR_SOCKET_BAD_PORT:C,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]+$/,j=m(((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)})),M=m(((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=m(((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=m(((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=m(((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=m(((e,t)=>{if(null!=e&&"object"!=typeof e&&"function"!=typeof e)throw new y(t,"a dictionary",e)})),V=m(((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=m(((e,t="buffer")=>{if(!L(e))throw new y(t,["Buffer","TypedArray","DataView"],e)})),D=m(((e,t)=>{if(void 0!==e&&(null===e||"object"!=typeof e||!("aborted"in e)))throw new y(t,"AbortSignal",e)})),Z=m(((e,t)=>{if("function"!=typeof e)throw new y(t,"Function",e)})),$=m(((e,t)=>{if("function"!=typeof e||O(e))throw new y(t,"Function",e)})),N=m(((e,t)=>{if(void 0!==e)throw new y(t,"undefined",e)})),F=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function U(e,t){if(void 0===e||!p(F,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:M,validateInteger:j,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===v(e).length||+e!=+e>>>0||e>65535||0===e&&!n)throw new C(t,e,n);return 0|e},validateSignalName:function(e,t="signal"){if(R(e,t),void 0===E[e]){if(void 0!==E[g(e)])throw new x(e+" (signals must use all capital letters)");throw new x(e)}},validateString:R,validateUint32:k,validateUndefined:N,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 g 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:g,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),g=n(760),v=n(132),m=e.exports=n(200).Stream;m.isDisturbed=v.isDisturbed,m.isErrored=v.isErrored,m.isReadable=v.isReadable,m.Readable=n(858);for(const y of i(s)){const w=s[y];function b(...e){if(new.target)throw u();return m.Readable.from(a(w,this,e))}o(b,"name",{__proto__:null,value:w.name}),o(b,"length",{__proto__:null,value:w.length}),o(m.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(m.Readable.prototype,x,{__proto__:null,value:O,enumerable:!1,configurable:!0,writable:!0})}m.Writable=n(373),m.Duplex=n(182),m.Transform=n(210),m.PassThrough=n(467),m.pipeline=d;const{addAbortSignal:C}=n(374);m.addAbortSignal=C,m.finished=h,m.destroy=p,m.compose=f,o(m,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:()=>g}),o(d,l,{__proto__:null,enumerable:!0,get:()=>g.pipeline}),o(h,l,{__proto__:null,enumerable:!0,get:()=>g.finished}),m.Stream=m,m._isUint8Array=function(e){return e instanceof Uint8Array},m._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$:()=>N,U7:()=>F});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:()=>v,nj:()=>u,O4:()=>M,_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,g(e)},g=e=>`[@openfin/${e.toLowerCase()}]`;class v{constructor(e){this.name=e,this.prefix=g(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 m="oauth-api-auth-flow",C=(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 C(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),C(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 C(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,g,v]=d;if(s.status=p,v){if(!n&&401===p){const[e,n]=await i();return n?(s.status=e,s.error=n,s):await o(t,!0)}s.error=v}else h&&(s.data=h,s.type=g)}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)},j=(e,t)=>async()=>{try{await E(e,t)(!1)}catch(e){t.logWarning(e.message)}e.terminate(),t.logInfo("Worker terminated")};class M{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===m));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}`,g=null!=n?n:{},{defaultHeight:v,defaultWidth:C}=g,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}(g,["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!=v?v:700,defaultWidth:null!=C?C:600,includeInSnapshots:!1,name:m,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 v(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:j(i,n)}})(t,n,a);return a.logInfo("Init completed",t),new M(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",N=()=>{V($)},F=()=>{B($,Z)};"undefined"!=typeof window&&("undefined"==typeof fin&&Object.assign(window,{fin:{}}),Object.assign(fin,{Integrations:{Microsoft365:{enableLogging:F,disableLogging:N}}}));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 v?t:v,i=Object.create(o.prototype),a=new j(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===g)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===g)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",g={};function v(){}function m(){}function C(){}var y={};y[i]=function(){return this};var w=Object.getPrototypeOf,b=w&&w(w(M([])));b&&b!==n&&r.call(b,i)&&(y=b);var x=C.prototype=v.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 g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var o=u(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;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,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}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 j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function M(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 m.prototype=x.constructor=C,C.constructor=m,m.displayName=s(C,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,C):(e.__proto__=C,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=M,j.prototype={constructor:j,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,g):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),g},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),g}},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:M(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},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,g,v,m,C,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&&(g=s-f,v=g/f*100,C=g>0?"▲":g<0?"▼":"●",m=g>0?"Good":g<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!=g&&null!=v&&{type:"TextBlock",text:`${C} ${g.toFixed(2)} (${v.toFixed(2)}%)`,color:m,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}},ge=(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}))},ve=(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"}},me=(e="")=>{switch(e.split(".").pop()?.toLowerCase()??""){case"docx":case"doc":return(0,T.K3)(A.de.Microsoft365Assets.Microsoft365DocumentIcon);case"xlsx":case"xls":return(0,T.K3)(A.de.Microsoft365Assets.Microsoft365ExcelIcon);case"pptx":case"ppt":return(0,T.K3)(A.de.Microsoft365Assets.Microsoft365PowerpointIcon);case"pdf":return(0,T.K3)(A.de.Microsoft365Assets.PDFFileIcon);default:return}},Ce=e=>e.replace(/\+/g,"_").replace(/\//g,"-");var ye,we,be,xe,_e,Oe,Le,Ee,Se,je,Me,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 Ne 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,T.K3)(A.de.Microsoft365Assets.Microsoft365Icon),icon:(0,T.K3)(A.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 E(100)),Ee.set(this,new B(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",je).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",je).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",Me).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,T.K3)(A.de.CallIconLight),dark:(0,T.K3)(A.de.CallIconDark)},tooltip:"Teams Call",action:le},{type:"button",icon:{light:(0,T.K3)(A.de.ChatIconLight),dark:(0,T.K3)(A.de.ChatIconDark)},tooltip:"Chat",action:se},{type:"button",icon:{light:(0,T.K3)(A.de.MessageIconLight),dark:(0,T.K3)(A.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 _.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",je).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,je=async function(e){try{return await e()}catch(t){if(t instanceof Y)return await this.connect(),e();throw t}},Me=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",Me).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:(0,Z.H)(),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?ge(r.body.value,e):r.body.value;n.push(...(o||[]).map((e=>({key:e.id??(0,Z.H)(),title:e.name??"",description:e.file?.mimeType??"",label:ve(e.name),icon:me(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=Ce(e.hitId);return{key:n,title:t.subject??"",label:"Calendar Event",icon:(0,T.K3)(A.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??(0,Z.H)(),title:e.displayName??"",label:"Outlook contact",icon:(0,T.K3)(A.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??(0,Z.H)(),title:e.displayName??"",label:"Teams contact",icon:(0,T.K3)(A.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??(0,Z.H)(),title:`${e.subject??"Untitled Message"}${e.isDraft?" (Draft)":""}`,label:"Email",icon:(0,T.K3)(A.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??(0,Z.H)(),title:e.summary??"Untitled Message",label:"Chat",icon:(0,T.K3)(A.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=Ce(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 Fe=n(3420);const Ue=()=>Fe.hd(),We=()=>(async()=>(await(0,c.Dm)()).dispatch("get-legacy-workspaces",void 0))();var ze=n(2528),Ge=n(1222),qe=n(2109),Ye=n(6114)})(),module.exports=r})();
|
|
1323
|
+
`,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"},t.useColorScheme=({colorScheme:e,fallbackScheme:n=t.ColorScheme.light})=>{const[i,a]=(0,r.useState)(e&&e!==t.ColorScheme.system?e:n),l=t=>{a(o(t,e||n))};return(0,r.useEffect)((()=>{const t=window.matchMedia("(prefers-color-scheme: dark)");return a(o(t,e||n)),t.addEventListener("change",l),()=>t.removeEventListener("change",l)}),[e,i]),i};const o=(e,n)=>n===t.ColorScheme.system?e.matches?t.ColorScheme.dark:t.ColorScheme.light:n},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&&e.flat().length>a){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=n(6486),s={[i.ColorScheme.dark]:o.OpenFinDarkTheme,[i.ColorScheme.light]:o.OpenFinLightTheme};t.useTheme=({themes:e,scheme:t})=>{let n={};const o=(0,i.useColorScheme)({colorScheme:t});try{n=(0,r.useMemo)((()=>((e,t)=>{const n=null==t?void 0:t[e];let r=Object.assign({},s[e]);return n&&n.palette&&(r=(0,l.merge)(r,n,(0,a.createTheme)(n.palette))),r})(o,e)),[e,o])}catch(e){console.error(e)}return n}},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(9501),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(3877),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),o(n(6218),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:()=>v,__decorate:()=>l,__esDecorate:()=>c,__exportStar:()=>m,__extends:()=>o,__generator:()=>g,__importDefault:()=>k,__importStar:()=>M,__makeTemplateObject:()=>S,__metadata:()=>p,__param:()=>s,__propKey:()=>f,__read:()=>y,__rest:()=>a,__runInitializers:()=>u,__setFunctionName:()=>d,__spread:()=>w,__spreadArray:()=>x,__spreadArrays:()=>b,__values:()=>C});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 g in r)h[g]="access"===g?{}:r[g];for(var g in r.access)h.access[g]=r.access[g];h.addInitializer=function(e){if(d)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var v=(0,n[p])("accessor"===s?{get:f.get,set:f.set}:f[c],h);if("accessor"===s){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw new TypeError("Object expected");(l=a(v.get))&&(f.get=l),(l=a(v.set))&&(f.set=l),(l=a(v.init))&&o.push(l)}else(l=a(v))&&("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 g(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 v=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 m(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||v(t,e,n)}function C(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=C(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 j=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function M(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)&&v(t,e,n);return j(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)}},6036:e=>{e.exports="https://cdn.openfin.co/ui-library/fonts/Inter-Italic.woff2"},4668:e=>{e.exports="https://cdn.openfin.co/ui-library/fonts/Inter-Regular.woff2"},5941:e=>{e.exports="https://cdn.openfin.co/ui-library/fonts/Inter-SemiBold.woff2"},2813:e=>{e.exports="https://cdn.openfin.co/ui-library/fonts/Inter-SemiBoldItalic.woff2"},6689:e=>{e.exports=n(7378)},7518:e=>{e.exports=n(2921)},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:M(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:M(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(j(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 g(e){var t=r(e).toHsl();return t.h=(t.h+180)%360,r(t)}function v(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 m(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 C(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(j(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(C,arguments)},complement:function(){return this._applyCombination(g,arguments)},monochromatic:function(){return this._applyCombination(y,arguments)},splitcomplement:function(){return this._applyCombination(m,arguments)},triad:function(){return this._applyCombination(v,[3])},tetrad:function(){return this._applyCombination(v,[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 j(e){return Math.round(255*parseFloat(e)).toString(16)}function M(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,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,i),n.loaded=!0,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})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var a=i(341),l=t;for(var s in a)l[s]=a[s];a.__esModule&&Object.defineProperty(l,"__esModule",{value:!0})},3198:(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,g=Math.min,v=function(){return d.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function C(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(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(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=v();if(y(e))return b(e);l=setTimeout(w,function(e){var n=t-(e-s);return f?g(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=v(),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=C(t)||0,m(n)&&(u=!!n.leading,i=(f="maxWait"in n)?h(C(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(v())},x}},2525: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}},8702:(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,g=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,m=n?Symbol.for("react.block"):60121,C=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 v:case g: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===v||e.$$typeof===g||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===C||e.$$typeof===y||e.$$typeof===w||e.$$typeof===m)}},9185:(e,t,n)=>{"use strict";e.exports=n(8702)},1535:(e,t,n)=>{"use strict";var r=n(2525),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(){}},g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function m(){}function C(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}v.prototype.isReactComponent={},v.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")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=v.prototype;var y=C.prototype=new m;y.constructor=C,r(y,v.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 j(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 M(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:j,forEach:function(e,t,n){j(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return j(e,(function(){t++})),t},toArray:function(e){return j(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error(p(143));return e}},t.Component=v,t.PureComponent=C,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:M}},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"},7378:(e,t,n)=>{"use strict";e.exports=n(1535)},2921:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ServerStyleSheet:()=>pt,StyleSheetConsumer:()=>gt,StyleSheetContext:()=>ht,StyleSheetManager:()=>vt,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:()=>N,keyframes:()=>Ot,withTheme:()=>Lt});var r=n(1946),o=n.n(r),i=n(5246),a=n.n(i),l=n(7378);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(9185),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 g(e){return Object.prototype.toString.call(e).slice(8,-1)}function v(e){return"Undefined"===g(e)}function m(e){return"Null"===g(e)}function C(e){return"Object"===g(e)&&(e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype)}function y(e){return"Array"===g(e)}function w(e){return"Symbol"===g(e)}var b,x,_,O,L;b=m,x=v;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 j(e,t,n){if(!C(t))return n&&y(n)&&n.forEach((function(n){t=n(e,t)})),t;var r={};C(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=C(e)?e[o]:void 0;return n&&y(n)&&n.forEach((function(e){i=e(a,i)})),void 0!==a&&C(i)&&(i=j(a,i,n)),S(r,o,i,t),r}),r)}const M=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=null,o=e;return C(e)&&e.extensions&&1===Object.keys(e).length&&(o={},r=e.extensions),t.reduce((function(e,t){return j(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 N(e){return e&&"string"==typeof e.styledComponentId}var F="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()},ge=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)},ve=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},me=function(e){return"\n/* sc-component-id: "+e+" */\n"},Ce=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+'"',F+'="'+he(t)+'"',U+'="4.4.1"',n].filter(Boolean).join(" ")+">"+e()+"</style>"}},we=function(e,t){return function(){var n,r=((n={})[F]=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(me(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+=me(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(F,""),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=ge(e).cssRules,n="";for(var i in r){n+=me(i);for(var a=r[i],l=Ce(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=ge(e),d=Ce(o,u),p=0,h=[],g=s.length,v=0;v<g;v+=1){var m=s[v],C=i;C&&-1!==m.indexOf("@import")?h.push(m):ve(f,m,d+p)&&(C=!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)}(ge(e),Ce(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,je=void 0,Me=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["+F+"]["+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(F)||"").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(){je=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 je||(je=(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:N(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 Ne(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 Fe(e,t){for(var n=0;n<e.length;n+=1){var r=e[n];if(Array.isArray(r)&&!Fe(r,t))return!1;if(Z(r)&&!N(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 Ne(De(e))},ze=function(){function e(t,n,r){P(this,e),this.rules=t,this.isStatic=Fe(t,n),this.componentId=r,Me.master.hasId(r)||Me.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=Me.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(vt,{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)(),gt=ht.Consumer,vt=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 Me(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),mt={};var Ct=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(gt,null,this.renderOuter)},t.prototype.renderOuter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Me.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||N(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=N(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=(mt[r]||0)+1;mt[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?Ct:u,d=t.attrs,p=void 0===d?B:d,h=t.displayName&&t.componentId?Ke(t.displayName)+"-"+t.componentId:t.componentId||c,g=r&&e.attrs?Array.prototype.concat(e.attrs,p).filter(Boolean):p,v=new ze(r?e.componentStyle.rules.concat(n):n,g,h),m=void 0,C=function(e,t){return l.createElement(f,A({},e,{forwardedComponent:m,forwardedRef:t}))};return C.displayName=a,(m=l.forwardRef(C)).displayName=a,m.attrs=g,m.componentStyle=v,m.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):B,m.styledComponentId=h,m.target=r?e.target:e,m.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:g,componentId:i,ParentComponent:f}),n)},Object.defineProperty(m,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?M(e.defaultProps,t):t}}),m.toString=function(){return"."+m.styledComponentId},o&&ct(m,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,styledComponentId:!0,target:!0,withComponent:!0}),m}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=Fe(t,B),Me.master.hasId(n)||Me.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(gt,null,(function(t){e.styleSheet=t||Me.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=Ne(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:Me};const St=wt},5246: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)}}}}()},1946: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*/,g=/::(place)/g,v=/:(read-only)/g,m=/\s+(?=[{\];=:>])/g,C=/([[}=:>])\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)/,j=/([^-])(image-set\()/,M="-webkit-",k="-moz-",R="-ms-",P=59,I=125,A=123,T=40,H=41,V=91,B=93,D=10,Z=13,$=9,N=64,F=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,ge=1,ve=0,me=1,Ce=1,ye=1,we=0,be=0,xe=0,_e=[],Oe=[],Le=0,Ee=null,Se=-2,je=-1,Me=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,m=0,C=0,y=0,w=0,x=0,O=0,L=0,E=0,S=0,j=0,z=0,we=0,Oe=0,Ee=0,Se=0,je=o.length,Ze=je-1,ze="",Ge="",qe="",Ye="",Ke="",Xe="";z<je;){if(y=o.charCodeAt(z),z===Ze&&f+p+d+u!==0&&(0!==f&&(y=f===J?D:J),p=d=u=0,je++,Ze++),f+p+d+u===0){if(z===Ze&&(we>0&&(Ge=Ge.replace(r,"")),Ge.trim().length>0)){switch(y){case F: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 F:break;default:for(Oe=0,Se=z,m=y,z--,y=P;Se<je;)switch(o.charCodeAt(Se++)){case D:case Z:case P:++z,y=m,Se=je;break;case Y:we>0&&(++z,y=m);case A:Se=je}}switch(y){case A:for(m=(Ge=Ge.trim()).charCodeAt(0),L=1,Se=++z;z<je;){switch(y=o.charCodeAt(z)){case A:L++;break;case I:L--;break;case J:switch(C=o.charCodeAt(z+1)){case G:case J:z=We(C,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),m===ne&&(m=(Ge=Ge.replace(n,"").trim()).charCodeAt(0)),m===N){switch(we>0&&(Ge=Ge.replace(r,"")),C=Ge.charCodeAt(1)){case de:case ae:case le:case W:l=t;break;default:l=_e}if(Se=(qe=Be(t,l,qe,C,a+1)).length,xe>0&&0===Se&&(Se=Ge.length),Le>0&&(l=De(_e,Ge,Ee),s=Ue(Pe,qe,l,t,ge,he,Se,C,a,i),Ge=l.join(""),void 0!==s&&0===(Se=(qe=s.trim()).length)&&(C=0,qe="")),Se>0)switch(C){case le:Ge=Ge.replace(_,Fe);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===Ce||2===Ce&&Ne("@"+qe,3)?"@"+M+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,j=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===j&&((m=Ge.charCodeAt(0))===W||m>96&&m<123)&&(Se=(Ge=Ge.replace(" ",":")).length),Le>0&&void 0!==(s=Ue(ke,Ge,t,e,ge,he,Ye.length,i,a,i))&&0===(Se=(Ge=s.trim()).length)&&(Ge="\0\0"),m=Ge.charCodeAt(0),C=Ge.charCodeAt(1),m){case ne:break;case N:if(C===ue||C===fe){Xe+=Ge+o.charAt(z);break}default:if(Ge.charCodeAt(Se-1)===Y)break;Ye+=$e(Ge,m,C,Ge.charCodeAt(2))}E=0,Oe=0,j=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 N:case te:case Q:case G:case ee:case J:case W:case Y:case q:case P:case A:case I:break;default:j>0&&(Oe=1)}f===J?f=0:me+E===0&&i!==ie&&Ge.length>0&&(we=1,Ge+="\0"),Le*Ie>0&&Ue(Me,Ge,t,e,ge,he,Ye.length,i,a,i),he=1,ge++;break;case P:case I:if(f+p+d+u===0){he++;break}default:switch(he++,ze=o.charAt(z),y){case $:case F:if(p+u+f===0)switch(w){case q:case Y:case $:case F:ze="";break;default:y!==F&&(ze=" ")}break;case ne:ze="\\0";break;case re:ze="\\f";break;case oe:ze="\\v";break;case U:p+f+u===0&&me>0&&(Ee=1,we=1,ze="\f"+ze);break;case 108:if(p+f+u+ve===0&&j>0)switch(z-j){case 2:w===se&&o.charCodeAt(z-3)===Y&&(ve=w);case 8:x===ce&&(ve=x)}break;case Y:p+f+u===0&&(j=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 N:f+d+p+u+j+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(me+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 F:case D:case Z:ze+="\0";break;default:ze="\0"+ze+(y===q?"":"\0")}we=1}else switch(y){case T:j+7===z&&108===w&&(j=0),E=++L;break;case H:0==(E=--L)&&(we=1,ze+="\0")}break;case $:case F:switch(w){case ne:case A:case I:case P:case q:case re:case $:case F:case D:case Z:break;default:0===E&&(we=1,ze+="\0")}}Ge+=ze,y!==F&&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&&(me>0?He:Ve)===t[0])&&(Se=t.join(",").length+2),Se>0){if(l=0===me&&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 F:case T:break;default:t=" "}switch(p){case U:n=t+He;case te:case Q:case ee:case F: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,ge,he,Se,i,a,i))&&0===(Ye=s).length)return Xe+Ye+Ke;if(Ye=l.join(",")+"{"+Ye+"}",Ce*ve!=0){switch(2!==Ce||Ne(Ye,2)||(ve=0),ve){case ce:Ye=Ye.replace(v,":"+k+"$1")+Ye;break;case se:Ye=Ye.replace(g,"::"+M+"input-$1")+Ye.replace(g,"::"+k+"$1")+Ye.replace(g,":"+R+"input-$1")+Ye}ve=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(me+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&&me>0)return o.replace(d,"$1").replace(f,"$1"+Ve);default:if(n*me>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>N&&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===Ce||2===Ce&&Ne(o,1)?M+o+o:o}(f);if(0===Ce||2===Ce&&!Ne(f,1))return f;switch(d){case 1015:return 97===f.charCodeAt(10)?M+f+f:f;case 951:return 116===f.charCodeAt(3)?M+f+f:f;case 963:return 110===f.charCodeAt(5)?M+f+f:f;case 1009:if(100!==f.charCodeAt(4))break;case 969:case 942:return M+f+f;case 978:return M+f+k+f+f;case 1019:case 983:return M+f+k+f+R+f+f;case 883:return f.charCodeAt(8)===W?M+f+f:f.indexOf("image-set(",11)>0?f.replace(j,"$1"+M+"$2")+f:f;case 932:if(f.charCodeAt(4)===W)switch(f.charCodeAt(5)){case 103:return M+"box-"+f.replace("-grow","")+M+f+R+f.replace("grow","positive")+f;case 115:return M+f+R+f.replace("shrink","negative")+f;case 98:return M+f+R+f.replace("basis","preferred-size")+f}return M+f+R+f+f;case 964:return M+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"),M+"box-pack"+c+M+f+R+"flex-pack"+c+f;case 1005:return i.test(f)?f.replace(o,":"+M)+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 M+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,M+c)+";"+f;break;case 207:case 102:f=f.replace(c,M+(d>102?"inline-":"")+"box")+";"+f.replace(c,M+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",""),M+f+M+"box-"+c+R+"flex-"+c+f;case 115:return M+f+R+"flex-item-"+f.replace(L,"")+f;default:return M+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,M+c)+f.replace(c,k+c.replace("fill-",""))+f;break;case 962:if(f=M+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"+M+"$2")+f}return f}function Ne(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 Fe(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":me=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?Ce=1:(Ce=2,Ee=n):Ce=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===me?Ve=o:He=o;var a,l=[Ve];Le>0&&void 0!==(a=Ue(je,n,l,l,ge,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,ge,he,s.length,0,0,0))&&"string"!=typeof(s=a)&&(i=0),Te="",Ve="",He="",ve=0,ge=1,he=1,we*i==0?s:s.replace(r,"").replace(m,"").replace(C,"$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)},9663:(e,t,n)=>{"use strict";n.d(t,{a:()=>g});var r=n(6678),o=n(5438),i=n(7100),a=n(121),l=n(7278),s=n(9610);var c=n(1127),u=n(6572);const f=e=>({identity:e,openfinWindow:fin.Window.wrapSync(e),getPages:async()=>(await(0,o.xp)(e)).dispatch(o.fn.GetPagesForWindow,e),getPage:async t=>(await(0,o.xp)(e)).dispatch(o.fn.GetPageForWindow,{identity:e,pageId:t}),addPage:async t=>(0,u.aA)().Browser.wrapSync(e)._addPage(t),_addPage:async(t,n)=>{const r=await(0,o.xp)(e),i={identity:e,page:t,insertionIndex:n?.index};return r.dispatch(o.fn.AddPage,i)},removePage:async t=>(await(0,o.xp)(e)).dispatch(o.fn.DetachPagesFromWindow,{identity:e,pageIds:[t]}),reparentPage:async t=>(0,u.aA)().Browser.wrapSync(e)._reparentPage(t),_reparentPage:async t=>{const{pageId:n}=t,r=await(0,o.xp)(e),i=(await r.dispatch(o.fn.GetAllAttachedPages,void 0)).find((({pageId:e})=>e===n));if(!i)throw new Error(`Reparent Page Error: Target page with pageId ${n} not found`);i.multiInstanceViewBehavior="reparent";const a={identity:e,pages:[i],insertionIndex:t.index};return r.dispatch(o.fn.AttachPagesToWindow,a)},setActivePage:async t=>(await(0,o.xp)(e)).dispatch(o.fn.SetActivePage,{identity:e,pageId:t}),updatePage:async t=>{const n=await(0,o.xp)(e);return t.identity=e,n.dispatch(o.fn.UpdatePageForWindow,t)},reorderPages:async t=>{const n=await(0,o.xp)(e);return t.identity=e,n.dispatch(o.fn.ReorderPagesForWindow,t)},_openGlobalContextMenu:async t=>{const n=await(0,o.xp)(e);return t.identity=e,n.dispatch(o.fn.OpenGlobalContextMenuInternal,t)},replaceToolbarOptions:async t=>{await(0,o.xp)(e);const n=fin.Window.wrapSync(e);await n.updateOptions({workspacePlatform:{toolbarOptions:t}})},replaceWindowStateButtonOptions:async t=>{await(0,o.xp)(e);const n=fin.Window.wrapSync(e);await n.updateOptions({workspacePlatform:{windowStateButtonOptions:t}})},updateBrowserWindowTitle:async t=>{const n=fin.Window.wrapSync(e);"string"!=typeof t?await n.updateOptions({workspacePlatform:{title:t}}):console.warn("Type string for window title is deprecated, please use WindowTitle type instead",t)},_openViewTabContextMenu:async t=>{const n=await(0,o.xp)(e);return t.identity=e,n.dispatch(o.fn.OpenViewTabContextMenuInternal,t)},_openPageTabContextMenu:async t=>{const n=await(0,o.xp)(e);return t.identity=e,n.dispatch(o.fn.OpenPageTabContextMenuInternal,t)},_openSaveModal:async t=>{await(0,o.xp)(e);return(await(0,c.Dm)(e)).dispatch(c.yz.OpenSaveModalInternal,t)},_openSaveButtonContextMenu:async t=>{const n=await(0,o.xp)(e);return t.identity=e,n.dispatch(o.fn.OpenSaveButtonContextMenuInternal,t)},_addDefaultPage:async t=>{const n=await(0,o.xp)(e);return t.identity=e,n.dispatch(o.fn.AddDefaultPage,t)},_trackRemovedTab:async t=>(await(0,o.xp)(e)).dispatch(o.fn.TrackRemovedTabInternal,t),_restoreRemovedTab:async t=>(await(0,o.xp)(e)).dispatch(o.fn.RestoreRemovedTabInternal,t),_trackVisitedSite:async t=>(await(0,o.xp)(e)).dispatch(o.fn.TrackVisitedSiteInternal,t),_getRecentlyVisitedSites:async t=>(await(0,o.xp)(e)).dispatch(o.fn.GetRecentlyVisitedSitesInternal,t),_getFrequentlyVisitedSites:async t=>(await(0,o.xp)(e)).dispatch(o.fn.GetFrequentlyVisitedSitesInternal,t),_searchSites:async t=>(await(0,o.xp)(e)).dispatch(o.fn.SearchSitesInternal,{identity:e,req:t}),_getCuratedContent:async t=>(await(0,o.xp)(e)).dispatch(o.fn.GetCuratedContentInternal,{identity:e,req:t}),_handleRequestNavigation:async t=>(await(0,o.xp)(e)).dispatch(o.fn.HandleRequestNavigationInternal,t)}),d=e=>{const t=fin.Platform.wrapSync(e);return{wrapSync:e=>f(e),createWindow:async n=>{const r=(()=>{const e=`browser-window-startup-${(0,s.H)()}`;return l.Z.markStart(e),e})();(e=>{fin.Application.wrapSync({uuid:fin.me.identity.uuid}).once("window-shown",(()=>{l.Z.markAndMeasure("browser-window-shown",e)}))})(r),await(0,o.xp)(e);const i=await t.createWindow(n);return(e=>{l.Z.markAndMeasure("browser-window-started",e)})(r),f(i.identity)},getAllAttachedPages:async()=>(await(0,o.xp)(e)).dispatch(o.fn.GetAllAttachedPages,void 0),getAllWindows:async()=>{await(0,o.xp)(e);return(await(0,a.GP)()).map((e=>f(e.identity)))},getUniquePageTitle:async t=>(await(0,o.xp)(e)).dispatch(o.fn.GetUniquePageTitle,t),getLastFocusedWindow:async()=>(await(0,o.xp)(e)).dispatch(o.fn.GetLastFocusedBrowserWindow,void 0)}},p=e=>({createPage:async t=>(await(0,o.xp)(e)).dispatch(o.fn.CreateSavedPageInternal,t),deletePage:async t=>(await(0,o.xp)(e)).dispatch(o.fn.DeleteSavedPageInternal,t),updatePage:async t=>(await(0,o.xp)(e)).dispatch(o.fn.UpdateSavedPageInternal,t),getPage:async t=>(await(0,o.xp)(e)).dispatch(o.fn.GetSavedPage,t),getPages:async t=>(await(0,o.xp)(e)).dispatch(o.fn.GetSavedPages,t),savePage:async t=>(await(0,o.xp)(e)).dispatch(o.fn.SavePage,t),createWorkspace:async t=>(await(0,o.j7)(e)).dispatch(o.fn.CreateSavedWorkspace,t),deleteWorkspace:async t=>{const n=g(),r=await n.getCurrentWorkspace();if(r.workspaceId===t)throw new Error(`Cannot delete current active workspace ${r.title}`);return(await(0,o.j7)(e)).dispatch(o.fn.DeleteSavedWorkspace,t)},updateWorkspace:async t=>(await(0,o.j7)(e)).dispatch(o.fn.UpdateSavedWorkspace,t),getWorkspace:async t=>(await(0,o.j7)(e)).dispatch(o.fn.GetSavedWorkspace,t),getWorkspaces:async t=>(await(0,o.j7)(e)).dispatch(o.fn.GetSavedWorkspaces,t),saveWorkspace:async t=>(await(0,o.j7)(e)).dispatch(o.fn.SaveWorkspace,t),getDockProviderConfig:async t=>(await(0,o.j7)(e)).dispatch(o.fn.GetDockProviderConfig,t),saveDockProviderConfig:async t=>(await(0,o.j7)(e)).dispatch(o.fn.SaveDockProviderConfig,t)});var h=n(705);const g=()=>(e=>{const t=fin.Platform.wrapSync(e);let n;return Object.assign(t,{applySnapshot:async(t,n)=>{if("string"!=typeof t&&!t?.windows)throw new Error("Not a valid browser snapshot");return fin.Platform.wrapSync(e).applySnapshot(t,n)},getSnapshot:()=>fin.Platform.wrapSync(e).getSnapshot().then((e=>e)),getViewSnapshot:t=>fin.Platform.wrapSync(e).getViewSnapshot(t),createView:(t,n,r)=>fin.Platform.wrapSync(e).createView(t,n,r),launchApp:async t=>(console.warn("launchApp method is deprecated. It is recommended to use createView - https://developers.openfin.co/of-docs/docs/platform-getting-started#add-a-view-to-an-existing-window or createWindow - https://developers.openfin.co/of-docs/docs/platform-getting-started#create-a-platform-window instead."),t.target||(t.target={uuid:r.AB,name:r.oC,entityType:r.CL||"unknown"}),(await(0,o.j7)(e)).dispatch(o.fn.LaunchApp,t)),_invokeCustomAction:async(t,n)=>{const r=await(0,o.j7)(e),a={actionId:t,payload:{...n,callerType:n.callerType||i.$g.API}};return r.dispatch(o.fn.InvokeCustomActionInternal,a)},_requestQuitPlatformDialog:async t=>(await(0,o.j7)(e)).dispatch(o.fn.RequestQuitPlatformDialogInternal,t),getCurrentWorkspace:async()=>(await(0,o.j7)(e)).dispatch(o.fn.GetCurrentWorkspace,void 0),applyWorkspace:async(t,n)=>(await(0,o.j7)(e)).dispatch(o.fn.ApplyWorkspace,{...t,options:n}),setActiveWorkspace:async t=>(await(0,o.j7)(e)).dispatch(o.fn.SetActiveWorkspace,t),getLanguage:async()=>(await(0,o.j7)(e)).dispatch(o.fn.GetLanguage),_getLanguageResources:async()=>(await(0,o.j7)(e)).dispatch(o.fn.GetLanguageResourcesInternal),setLanguage:async t=>(await(0,o.j7)(e)).dispatch(o.fn.SetLanguage,t),_raiseAnalytics:async t=>{if(n||(n=await(0,o.Hh)(e)),"object"==typeof n&&n?.analytics?.isSupported)return(await(0,o.j7)(e)).dispatch(o.fn.Analytics,t);e.uuid},getNotificationsConfig:async()=>(await(0,o.j7)(e)).dispatch(o.fn.GetNotificationsConfig),Theme:(0,h.P0)(e),Browser:d(e),Storage:p(e)})})(fin.me.identity)},705:(e,t,n)=>{"use strict";n.d(t,{P0:()=>a});n(8061),n(4728),n(6005),n(121),n(1127);var r=n(9117);var o;!function(e){e.UpdatePlatformThemeScheme="update-platform-theme-scheme"}(o||(o={}));(0,r.Z)("of-workspace-notifications-sync");n(5150);var i=n(5438);const a=e=>({getThemes:async()=>(await(0,i.j7)(e)).dispatch(i.fn.GetThemes,void 0),setSelectedScheme:async t=>(await(0,i.j7)(e)).dispatch(i.fn.SetSelectedScheme,t),getSelectedScheme:async()=>(await(0,i.j7)(e)).dispatch(i.fn.GetSelectedScheme,void 0)})},6572:(e,t,n)=>{"use strict";n.d(t,{aA:()=>q.a});n(7100),n(8423);var r=n(6678),o=(n(6532),n(7378));var i=n(5806);var a=n(6005),l=n(121);n(8311),n(2304);Object.create(null);(0,o.createContext)();const s={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class c{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||s,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new c(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new c(this.logger,e)}}var u=new c;class f{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach((e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)})),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){Array.from(this.observers[e].entries()).forEach((e=>{let[t,r]=e;for(let e=0;e<r;e++)t(...n)}))}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach((t=>{let[r,o]=t;for(let t=0;t<o;t++)r.apply(r,[e,...n])}))}}}function d(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n}function p(e){return null==e?"":""+e}const h=/###/g;function g(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(h,"."):e}function o(){return!e||"string"==typeof e}const i="string"!=typeof t?t:t.split(".");let a=0;for(;a<i.length-1;){if(o())return{};const t=r(i[a]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++a}return o()?{}:{obj:e,k:r(i[a])}}function v(e,t,n){const{obj:r,k:o}=g(e,t,Object);if(void 0!==r||1===t.length)return void(r[o]=n);let i=t[t.length-1],a=t.slice(0,t.length-1),l=g(e,a,Object);for(;void 0===l.obj&&a.length;)i=`${a[a.length-1]}.${i}`,a=a.slice(0,a.length-1),l=g(e,a,Object),l&&l.obj&&void 0!==l.obj[`${l.k}.${i}`]&&(l.obj=void 0);l.obj[`${l.k}.${i}`]=n}function m(e,t){const{obj:n,k:r}=g(e,t);if(n)return n[r]}function C(e,t,n){for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):C(e[r],t[r],n):e[r]=t[r]);return e}function y(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var w={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function b(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(e=>w[e])):e}const x=[" ",",","?","!",";"],_=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20);function O(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let o=e;for(let e=0;e<r.length;){if(!o||"object"!=typeof o)return;let t,i="";for(let a=e;a<r.length;++a)if(a!==e&&(i+=n),i+=r[a],t=o[i],void 0!==t){if(["string","number","boolean"].indexOf(typeof t)>-1&&a<r.length-1)continue;e+=a-e+1;break}o=t}return o}function L(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class E extends f{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],n&&(Array.isArray(n)?a.push(...n):"string"==typeof n&&o?a.push(...n.split(o)):a.push(n)));const l=m(this.data,a);return!l&&!t&&!n&&e.indexOf(".")>-1&&(e=a[0],t=a[1],n=a.slice(2).join(".")),l||!i||"string"!=typeof n?l:O(this.data&&this.data[e]&&this.data[e][t],n,o)}addResource(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),v(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const r in n)"string"!=typeof n[r]&&"[object Array]"!==Object.prototype.toString.apply(n[r])||this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let l=m(this.data,a)||{};r?C(l,n,o):l={...l,...n},v(this.data,a,l),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((e=>t[e]&&Object.keys(t[e]).length>0))}toJSON(){return this.data}}var S={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach((e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,o))})),t}};const j={};class M extends f{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),function(e,t,n){e.forEach((e=>{t[e]&&(n[e]=t[e])}))}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=u.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;const n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const i=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";const r=x.filter((e=>t.indexOf(e)<0&&n.indexOf(e)<0));if(0===r.length)return!0;const o=_.getRegExp(`(${r.map((e=>"?"===e?"\\?":e)).join("|")})`);let i=!o.test(e);if(!i){const t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i}(e,n,r));if(i&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:o};const i=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),e=i.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}translate(e,t,n){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);const r=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:i,namespaces:a}=this.extractFromKey(e[e.length-1],t),l=a[a.length-1],s=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(s&&"cimode"===s.toLowerCase()){if(c){const e=t.nsSeparator||this.options.nsSeparator;return r?{res:`${l}${e}${i}`,usedKey:i,exactUsedKey:i,usedLng:s,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:`${l}${e}${i}`}return r?{res:i,usedKey:i,exactUsedKey:i,usedLng:s,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:i}const u=this.resolve(e,t);let f=u&&u.res;const d=u&&u.usedKey||i,p=u&&u.exactUsedKey||i,h=Object.prototype.toString.apply(f),g=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&f&&("string"!=typeof f&&"boolean"!=typeof f&&"number"!=typeof f)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(h)<0&&("string"!=typeof g||"[object Array]"!==h)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,{...t,ns:a}):`key '${i} (${this.language})' returned an object instead of string.`;return r?(u.res=e,u.usedParams=this.getUsedParamsDetails(t),u):e}if(o){const e="[object Array]"===h,n=e?[]:{},r=e?p:d;for(const e in f)if(Object.prototype.hasOwnProperty.call(f,e)){const i=`${r}${o}${e}`;n[e]=this.translate(i,{...t,joinArrays:!1,ns:a}),n[e]===i&&(n[e]=f[e])}f=n}}else if(v&&"string"==typeof g&&"[object Array]"===h)f=f.join(g),f&&(f=this.extendTranslation(f,e,t,n));else{let r=!1,a=!1;const c=void 0!==t.count&&"string"!=typeof t.count,d=M.hasDefaultValue(t),p=c?this.pluralResolver.getSuffix(s,t.count,t):"",h=t.ordinal&&c?this.pluralResolver.getSuffix(s,t.count,{ordinal:!1}):"",g=c&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),v=g&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${p}`]||t[`defaultValue${h}`]||t.defaultValue;!this.isValidLookup(f)&&d&&(r=!0,f=v),this.isValidLookup(f)||(a=!0,f=i);const m=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:f,C=d&&v!==f&&this.options.updateMissing;if(a||r||C){if(this.logger.log(C?"updateKey":"missingKey",s,l,i,C?v:f),o){const e=this.resolve(i,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t<n.length;t++)e.push(n[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);const r=(e,n,r)=>{const o=d&&r!==f?r:m;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,n,o,C,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,l,n,o,C,t),this.emit("missingKey",e,l,n,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?e.forEach((e=>{const n=this.pluralResolver.getSuffixes(e,t);g&&t[`defaultValue${this.options.pluralSeparator}zero`]&&n.indexOf(`${this.options.pluralSeparator}zero`)<0&&n.push(`${this.options.pluralSeparator}zero`),n.forEach((n=>{r([e],i+n,t[`defaultValue${n}`]||v)}))})):r(e,i,v))}f=this.extendTranslation(f,e,t,u,n),a&&f===i&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${i}`),(a||r)&&this.options.parseMissingKeyHandler&&(f="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${i}`:i,r?f:void 0):this.options.parseMissingKeyHandler(f))}return r?(u.res=f,u.usedParams=this.getUsedParamsDetails(t),u):f}extendTranslation(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const a="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let l;if(a){const t=e.match(this.interpolator.nestingRegexp);l=t&&t.length}let s=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language,n),a){const t=e.match(this.interpolator.nestingRegexp);l<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn(`It seems you are nesting recursively key: ${r[0]} in key: ${t[0]}`),null):i.translate(...r,t)}),n)),n.interpolation&&this.interpolator.reset()}const a=n.postProcess||this.options.postProcess,l="string"==typeof a?[a]:a;return null!=e&&l&&l.length&&!1!==n.applyPostProcessor&&(e=S.handle(l,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t,n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((e=>{if(this.isValidLookup(t))return;const l=this.extractFromKey(e,a),s=l.key;n=s;let c=l.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==a.count&&"string"!=typeof a.count,f=u&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),d=void 0!==a.context&&("string"==typeof a.context||"number"==typeof a.context)&&""!==a.context,p=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);c.forEach((e=>{this.isValidLookup(t)||(i=e,!j[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(i)&&(j[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${p.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((n=>{if(this.isValidLookup(t))return;o=n;const i=[s];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(i,s,n,e,a);else{let e;u&&(e=this.pluralResolver.getSuffix(n,a.count,a));const t=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(i.push(s+e),a.ordinal&&0===e.indexOf(r)&&i.push(s+e.replace(r,this.options.pluralSeparator)),f&&i.push(s+t)),d){const n=`${s}${this.options.contextSeparator}${a.context}`;i.push(n),u&&(i.push(n+e),a.ordinal&&0===e.indexOf(r)&&i.push(n+e.replace(r,this.options.pluralSeparator)),f&&i.push(n+t))}}let l;for(;l=i.pop();)this.isValidLookup(t)||(r=l,t=this.getResource(n,e,l,a))})))}))})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&"string"!=typeof e.replace;let r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}function k(e){return e.charAt(0).toUpperCase()+e.slice(1)}class R{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=u.create("languageUtils")}getScriptPartFromCode(e){if(!(e=L(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=L(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"==typeof e&&e.indexOf("-")>-1){const t=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map((e=>e.toLowerCase())):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=k(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=k(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=k(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach((e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)})),!t&&this.options.supportedLngs&&e.forEach((e=>{if(t)return;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find((e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:0===e.indexOf(n)?e:void 0))})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],o=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),n.forEach((e=>{r.indexOf(e)<0&&o(this.formatLanguageCode(e))})),r}}let P=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],I={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};const A=["v1","v2","v3"],T=["v4"],H={zero:0,one:1,two:2,few:3,many:4,other:5};class V{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=u.create("pluralResolver"),this.options.compatibilityJSON&&!T.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){const e={};return P.forEach((t=>{t.lngs.forEach((n=>{e[n]={numbers:t.nr,plurals:I[t.fc]}}))})),e}()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(L("dev"===e?"en":e),{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((e=>`${t}${e}`))}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(((e,t)=>H[e]-H[t])).map((e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`)):n.numbers.map((n=>this.getSuffix(e,n,t))):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));const o=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?`_plural_${r.toString()}`:o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!A.includes(this.options.compatibilityJSON)}}function B(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=function(e,t,n){const r=m(e,n);return void 0!==r?r:m(t,n)}(e,t,n);return!i&&o&&"string"==typeof n&&(i=O(e,n,r),void 0===i&&(i=O(t,n,r))),i}class D{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=u.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const t=e.interpolation;this.escape=void 0!==t.escape?t.escape:b,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?y(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?y(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?y(t.nestingPrefix):t.nestingPrefixEscaped||y("$t("),this.nestingSuffix=t.nestingSuffix?y(t.nestingSuffix):t.nestingSuffixEscaped||y(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let o,i,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function s(e){return e.replace(/\$/g,"$$$$")}const c=e=>{if(e.indexOf(this.formatSeparator)<0){const o=B(t,l,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...r,...t,interpolationkey:e}):o}const o=e.split(this.formatSeparator),i=o.shift().trim(),a=o.join(this.formatSeparator).trim();return this.format(B(t,l,i,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:i})};this.resetRegExp();const u=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>s(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?s(this.escape(e)):s(e)}].forEach((t=>{for(a=0;o=t.regex.exec(e);){const n=o[1].trim();if(i=c(n),void 0===i)if("function"==typeof u){const t=u(e,o,r);i="string"==typeof t?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))i="";else{if(f){i=o[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),i=""}else"string"==typeof i||this.useRawValueToEscape||(i=p(i));const l=t.safeValue(i);if(e=e.replace(o[0],l),f?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,a++,a>=this.maxReplaces)break}})),e}nest(e,t){let n,r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function a(e,t){const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(`${n}[ ]*{`));let i=`{${r[1]}`;e=r[0],i=this.interpolate(i,o);const a=i.match(/'/g),l=i.match(/"/g);(a&&a.length%2==0&&!l||l.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o={...t,...o})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return delete o.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){let l=[];o={...i},o=o.replace&&"string"!=typeof o.replace?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let s=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const e=n[1].split(this.formatSeparator).map((e=>e.trim()));n[1]=e.shift(),l=e,s=!0}if(r=t(a.call(this,n[1].trim(),o),o),r&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=p(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),r=""),s&&(r=l.reduce(((e,t)=>this.format(e,t,i.lng,{...i,interpolationkey:n[1].trim()})),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}function Z(e){const t={};return function(n,r,o){const i=r+JSON.stringify(o);let a=t[i];return a||(a=e(L(r),o),t[i]=a),a(n)}}class ${constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=u.create("formatter"),this.options=e,this.formats={number:Z(((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)})),currency:Z(((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)})),datetime:Z(((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)})),relativetime:Z(((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")})),list:Z(((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)}))},this.init(e)}init(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Z(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.split(this.formatSeparator).reduce(((e,t)=>{const{formatName:o,formatOptions:i}=function(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);"currency"===t&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach((e=>{if(!e)return;const[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,"");n[t.trim()]||(n[t.trim()]=o),"false"===o&&(n[t.trim()]=!1),"true"===o&&(n[t.trim()]=!0),isNaN(o)||(n[t.trim()]=parseInt(o,10))}))}return{formatName:t,formatOptions:n}}(t);if(this.formats[o]){let t=e;try{const a=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},l=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[o](e,l,{...i,...r,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e}),e)}}class N extends f{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=u.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){const o={},i={},a={},l={};return e.forEach((e=>{let r=!0;t.forEach((t=>{const a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===i[a]&&(i[a]=!0):(this.state[a]=1,r=!1,void 0===i[a]&&(i[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===l[t]&&(l[t]=!0)))})),r||(a[e]=!0)})),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(e,t,n){const r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;const a={};this.queue.forEach((n=>{!function(e,t,n,r){const{obj:o,k:i}=g(e,t,Object);o[i]=o[i]||[],r&&(o[i]=o[i].concat(n)),r||o[i].push(n)}(n.loaded,[o],i),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((e=>{a[e]||(a[e]={});const t=n.loaded[e];t.length&&t.forEach((t=>{void 0===a[e][t]&&(a[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((e=>!e.done))}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:i});this.readingCalls++;const a=(a,l)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&l&&r<this.maxRetries?setTimeout((()=>{this.read.call(this,e,t,n,r+1,2*o,i)}),o):i(a,l)},l=this.backend[n].bind(this.backend);if(2!==l.length)return l(e,t,a);try{const n=l(e,t);n&&"function"==typeof n.then?n.then((e=>a(null,e))).catch(a):a(null,n)}catch(e){a(e)}}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);const o=this.queueLoad(e,t,n,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach((e=>{this.loadOne(e)}))}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,((n,i)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${r} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${r}`,i),this.loaded(e,n,i)}))}saveMissing(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){const l={...i,isUpdate:o},s=this.backend.create.bind(this.backend);if(s.length<6)try{let o;o=5===s.length?s(e,t,n,r,l):s(e,t,n,r),o&&"function"==typeof o.then?o.then((e=>a(null,e))).catch(a):a(null,o)}catch(e){a(e)}else s(e,t,n,r,a,l)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}function F(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach((e=>{t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function U(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function W(){}class z extends f{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=U(e),this.services={},this.logger=u,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))})),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout((()=>{this.init(e,t)}),0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=F();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options={...r,...this.options,...U(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){let t;this.modules.logger?u.init(o(this.modules.logger),this.options):u.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=$);const n=new R(this.options);this.store=new E(this.options.resources,this.options);const i=this.services;i.logger=u,i.resourceStore=this.store,i.languageUtils=n,i.pluralResolver=new V(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(i.formatter=o(t),i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new D(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new N(o(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit(t,...r)})),this.modules.languageDetector&&(i.languageDetector=o(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=o(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new M(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit(t,...r)})),this.modules.external.forEach((e=>{e.init&&e.init(this)}))}if(this.format=this.options.interpolation.format,n||(n=W),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((t=>{this[t]=function(){return e.store[t](...arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((t=>{this[t]=function(){return e.store[t](...arguments),e}}));const i=d(),a=()=>{const e=(e,t)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),i.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?a():setTimeout(a,0),i}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W;const n="string"==typeof e?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],r=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach((t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)}))};if(n)r(n);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e=>r(e)))}this.options.preload&&this.options.preload.forEach((e=>r(e))),this.services.backendConnector.load(e,this.options.ns,(e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)}))}else t(null)}reloadResources(e,t,n){const r=d();return e||(e=this.languages),t||(t=this.options.ns),n||(n=W),this.services.backendConnector.reload(e,t,(e=>{r.resolve(),n(e)})),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&S.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const r=d();this.emit("languageChanging",e);const o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(e,i)=>{i?(o(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,r.resolve((function(){return n.t(...arguments)})),t&&t(e,(function(){return n.t(...arguments)}))},a=t=>{e||t||!this.services.languageDetector||(t=[]);const n="string"==typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||o(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,(e=>{i(e,n)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;const o=function(e,t){let i;if("object"!=typeof t){for(var a=arguments.length,l=new Array(a>2?a-2:0),s=2;s<a;s++)l[s-2]=arguments[s];i=r.options.overloadTranslationOptionHandler([e,t].concat(l))}else i={...t};i.lng=i.lng||o.lng,i.lngs=i.lngs||o.lngs,i.ns=i.ns||o.ns,i.keyPrefix=i.keyPrefix||n||o.keyPrefix;const c=r.options.keySeparator||".";let u;return u=i.keyPrefix&&Array.isArray(e)?e.map((e=>`${i.keyPrefix}${c}${e}`)):i.keyPrefix?`${i.keyPrefix}${c}${e}`:e,r.t(u,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const i=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||2===n};if(t.precheck){const e=t.precheck(this,i);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!i(n,e)||r&&!i(o,e)))}loadNamespaces(e,t){const n=d();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)})),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=d();"string"==typeof e&&(e=[e]);const r=this.options.preload||[],o=e.filter((e=>r.indexOf(e)<0));return o.length?(this.options.preload=r.concat(o),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new R(F());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new z(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},o=new z(r);void 0===e.debug&&void 0===e.prefix||(o.logger=o.logger.clone(e));return["store","services","language"].forEach((e=>{o[e]=this[e]})),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n&&(o.store=new E(this.store.data,r),o.services.resourceStore=o.store),o.translator=new M(o.services,r),o.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o.emit(e,...n)})),o.init(r,t),o.translator.options=r,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const G=z.createInstance();G.createInstance=z.createInstance;G.createInstance,G.dir,G.init,G.loadResources,G.reloadResources,G.use,G.changeLanguage,G.getFixedT,G.t,G.exists,G.setDefaultNamespace,G.hasLoadedNamespace,G.loadNamespaces,G.loadLanguages;G.t;n(3420),n(1127);n(5438);var q=n(9663);new class{constructor(){this.queue=[],this.locked=!1}lock(){return new Promise((e=>{this.locked?this.queue.push(e):(this.locked=!0,e())}))}unlock(){if(this.queue.length>0){const e=this.queue.shift();e&&e()}else this.locked=!1}};new Map;var Y;!function(e){e.ERROR="error",e.SUCCESS="success",e.INFO="info"}(Y||(Y={}));const K=((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 X;!function(e){e.Locked="LockClosedIcon",e.Unlocked="LockOpen1Icon"}(X||(X={}));!function(e=K){const t=new Map}();var J=n(8061),Q=n(4728);n(6650);const ee=(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 te(e,t){return async(n,...r)=>{e.has(n)&&e.get(n).forEach((e=>e(...r))),t&&await t({event:n,payload:r})}}function ne(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 re(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 oe(e){return(t,n)=>{e.has(t)&&e.get(t).delete(n)}}n(1065);l.IA.BrowserMenu;(function(e){const t=new Map;te(t,(t=>r.sS&&fin.InterApplicationBus.publish(e,t))),ne(t,(t=>r.sS&&fin.InterApplicationBus.subscribe({uuid:fin.me.uuid},e,t))),oe(t),re(t)})("window.menu"),ee((()=>(0,i.D9)().getChildWindows()),500);new Map;var ie=n(3198);n.n(ie)()((async()=>{const e=await fin.Platform.getCurrentSync().Application.getChildWindows();let t,n=!1;for(const r of e)if(r.identity.name===l.IA.BrowserMenu||r.identity.name===l.IA.BrowserSaveMenu?t=r:await(0,l.B)(r.identity)&&(n=!0),n)break;!n&&t&&t.close()}),100,{leading:!1,trailing:!0});var ae;!function(e){e.Label="normal",e.Separator="separator",e.Submenu="submenu",e.Checkbox="checkbox"}(ae||(ae={}));ae.Separator;var le;!function(e){e.Save="Save",e.SaveAs="SaveAs"}(le||(le={}));var se;!function(e){e.GlobalMenu="global-menu",e.ContextMenu="context-menu",e.RenameSupertab="rename-supertab"}(se||(se={}));n(5912);function ce(e){return new Promise(((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)}))}function ue(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=ce(n);return(e,n)=>r.then((r=>n(r.transaction(t,e).objectStore(t))))}let fe;function de(){return fe||(fe=ue("keyval-store","keyval")),fe}function pe(e,t){return e.openCursor().onsuccess=function(){this.result&&(t(this.result),this.result.continue())},ce(e.transaction)}const he=async(e,t,n)=>{const r=Q.rV(J.Z.HasMovedStore),o=r?JSON.parse(r):{};if(o&&o[n])return;o[n]=!0,Q.LS(J.Z.HasMovedStore,JSON.stringify(o));const i=await function(e=de()){return e("readonly",(t=>{if(t.getAll&&t.getAllKeys)return Promise.all([ce(t.getAllKeys()),ce(t.getAll())]).then((([e,t])=>e.map(((e,n)=>[e,t[n]]))));const n=[];return e("readonly",(e=>pe(e,(e=>n.push([e.key,e.value]))).then((()=>n))))}))}(e);await function(e,t=de()){return t("readwrite",(t=>(e.forEach((e=>t.put(e[1],e[0]))),ce(t.transaction))))}(i,t)},ge=(e,t)=>ue(e+"-"+fin.me.uuid,t),ve=(e,t)=>{const n=ge(e,t),r=ue(e,t);return he(r,n,e),n};r._V&&r.sS&&ve("openfin-home-pages","pages");r._V&&r.sS&&ge("openfin-enterprise-tab-history","removed-tab-stack"),r._V&&r.sS&&ge("openfin-enterprise-site-history","visited-sites");n(1646);var me;!function(e){e[e.BottomLeft=0]="BottomLeft",e[e.BottomRight=1]="BottomRight",e[e.Center=2]="Center"}(me||(me={}));r._V&&r.sS&&ge("dock-provider-configs","dock-provider-configs");n(705);r._V&&r.sS&&ve("openfin-workspace-platform-workspaces","workspaces");n(6495);r.rx,a.ZP.Browser,l.Gi.uuid,l.IA.BrowserAddressSearchPrefix;n(7098),n(7564),n(9117)},7098:(e,t,n)=>{"use strict"},7100:(e,t,n)=>{"use strict";n.d(t,{$g:()=>d});var r,o,i,a,l,s,c,u,f,d,p;n(7564),n(6495),n(5304);!function(e){e.UrlChange="URL_CHANGE",e.ViewAdded="VIEW_ADDED",e.ViewRemoved="VIEW_REMOVED",e.PageContextAdded="PAGE_CONTEXT_ADDED",e.PageContextRemoved="PAGE_CONTEXT_REMOVED"}(r||(r={})),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"}(o||(o={})),function(e){e.Light="light",e.Dark="dark",e.System="system"}(i||(i={})),function(e){e.Close="Close",e.Duplicate="Duplicate",e.Rename="Rename",e.Save="Save",e.SaveAs="Save As",e.NewPage="New Page",e.DeletePage="Delete Page",e.SaveWorkspaceAs="SaveWorkspaceAs",e.Refresh="Refresh",e.CloseOthers="Close others",e.Delete="Delete",e.Custom="Custom"}(a||(a={})),function(e){e.Lock="Lock",e.ShowHideTabs="ShowHideTabs",e.AddToChanel="AddToChannel",e.Print="Print",e.Pin="Pin"}(l||(l={})),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"}(s||(s={})),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"}(c||(c={})),function(e){e.SavePage="SavePage",e.SaveWorkspace="SaveWorkspace",e.SavePageAs="SavePageAs",e.SaveWorkspaceAs="SaveWorkspaceAs",e.Custom="Custom"}(u||(u={})),function(e){e.Browser="browser",e.Platform="platform"}(f||(f={})),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"}(d||(d={})),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"}(p||(p={}))},2693:(e,t,n)=>{"use strict";n.d(t,{E:()=>i});var r=n(5806),o=n(7278);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`)}))}},3261:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CLIAction:()=>_.Pt,CLIFilterOptionType:()=>_.el,CLITemplate:()=>_.yW,deregister:()=>E,hide:()=>j,register:()=>L,show:()=>S});var r=n(6678),o=n(7278),i=n(6532),a=n(121);const l={remoteProviderDataStreamId:"0",remoteClientSearchStreamId:"1",remoteProviderRegistrationStreamId:"2",remoteProviderDeregistrationStreamId:"3",remoteProviderInfoStreamId:"4",remoteProviderDispatchStreamId:"5",remoteSearchCloseStreamId:"6"};var s=n(5150),c=n(5438),u=n(3264);var f=n(7046);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,g=100;async function v(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()}),g))};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 m(){for(const{req:e,close:t}of h.values())t(),h.delete(e.id)}async function C(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,v),e.register(l.remoteSearchCloseStreamId,y),e.register(l.remoteProviderDispatchStreamId,C),e.addDisconnectionListener(m))}(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(2693),_=n(3758);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 j(){await O;const e=await(0,s.xZ)();await e.dispatch("hide-home",void 0)}},3264:(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()}}},1222:(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={}))},7427:(e,t,n)=>{"use strict";var r;n.d(t,{v:()=>r}),function(e){e.ActionButton="ActionButton",e.DropdownButton="DropdownButton"}(r||(r={}))},3758:(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={}))},7564:(e,t,n)=>{"use strict";n(1222),n(3758),n(6114),n(2109),n(7427)},6114:(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={}))},2109:(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={}))},2528:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AppManifestType:()=>i.L,StorefrontTemplate:()=>i.T,deregister:()=>C,hide:()=>y,register:()=>m,show:()=>w});var r=n(6532),o=n(5150),i=n(6114),a=n(6678),l=n(7278),s=n(121),c=n(5438),u=n(3264);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 g=n(2693);let v;const m=async e=>{(0,g.E)("store",s.nd);const t=await h(e);return v=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")}})),v},C=async e=>(await v,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 v,await(0,o.aB)(),d({action:"hide-provider-window",payload:{providerType:"storefront"}},{action:"hide-storefront"})),w=async()=>(l.Z.markStart("store-show"),await v,await(0,o.aB)(),d({action:"show-provider-window",payload:{providerType:"storefront"}},{action:"show-storefront"}))},3420:(e,t,n)=>{"use strict";n.d(t,{VR:()=>c,hd:()=>l});var r=n(8311),o=n(5912),i=n(9610),a=n(5150);async function l(){return(await(0,a.Dm)()).dispatch("get-legacy-pages",void 0)}const s=async e=>({...e,layoutDetails:{machineId:await(0,o.$w)(),machineName:(0,o.X5)()}}),c=async e=>{const t=await(async(e,t)=>({pageId:(0,i.H)(),title:e,layout:await s(t),isReadOnly:!1}))(e.title,(0,r.dG)(e.layout));return e.panels&&(t.panels=e.panels.map((e=>({...e,viewOptions:(0,r.ZS)(e.viewOptions)})))),{...e,...t}}},6495:(e,t,n)=>{"use strict";var r;!function(e){e.Left="Left",e.Right="Right",e.Top="Top",e.Bottom="Bottom"}(r||(r={}))},1127:(e,t,n)=>{"use strict";n.d(t,{Dm:()=>a,yz:()=>u});var r=n(9117);n(121);const o=(e,t)=>t?`${t}-${e.uuid}-${e.name}`:`__browser_window__-${e.uuid}-${e.name}`,i=new Map,a=(e,t)=>{const n=o(e,t);return i.has(n)||i.set(n,(0,r.Z)(n)),i.get(n)()};var l,s,c;!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",e.SetSelectedLanguage="set-selected-language"}(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={})),function(e){e.GetApps="get-apps",e.GetCuratedContent="get-curated-content",e.GetRecentlyVisited="get-recently-visited"}(c||(c={}));const u={...l,...s}},5438:(e,t,n)=>{"use strict";var r;n.d(t,{Hh:()=>i,fn:()=>r,j7:()=>a,xp:()=>l}),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.AddPage="addPage",e.AddDefaultPage="addDefaultPage",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.GetLanguage="getLanguage",e.GetLanguageResourcesInternal="getLanguageResourcesInternal",e.SetLanguage="setLanguage",e.GetDockProviderConfig="getDockProviderConfig",e.SaveDockProviderConfig="saveDockProviderConfig",e.HandleSaveModalOnPageClose="handleSaveModalOnPageClose",e.ShouldPageClose="shouldPageClose",e.ShouldWindowClose="shouldWindowClose",e.CopyPage="copyPage",e.HandlePageChanges="handlePageChanges",e.MarkUnsavedPagesAsSavedInternal="markUnsavedPagesAsSavedInternal",e.TrackRemovedTabInternal="trackRemovedTabInternal",e.RestoreRemovedTabInternal="restoreRemovedTabInternal",e.TrackVisitedSiteInternal="trackVisitedSiteInternal",e.GetRecentlyVisitedSitesInternal="getRecentlyVisitedSitesInternal",e.GetFrequentlyVisitedSitesInternal="getFrequentlyVisitedSitesInternal",e.SearchSitesInternal="searchSitesInternal",e.GetCuratedContentInternal="getCuratedContentInternal",e.HandleRequestNavigationInternal="handleRequestNavigationInternal",e.GetNotificationsConfig="getNotificationsConfig"}(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)},a=async e=>(await i(e),o(e)),l=async e=>{const t=await i(e);if("object"==typeof t&&!0!==t?.isBrowserInitialized)throw new Error("Target is not a Browser-enabled Workspace Platform.");return o(e)}},5150:(e,t,n)=>{"use strict";n.d(t,{Dm:()=>s,VD:()=>u,Xl:()=>p,aB:()=>d,xZ:()=>h});var r=n(9117),o=n(6678),i=n(121),a=n(7046);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())},7046:(e,t,n)=>{"use strict";n.d(t,{Qx:()=>r,w1:()=>i});const r="__search-openfin-browser-home-topic__";var o,i;!function(e){e.Fetching="fetching",e.Fetched="fetched",e.Complete="complete"}(o||(o={})),function(e){e[e.Initial=0]="Initial",e[e.Open=1]="Open",e[e.Close=2]="Close"}(i||(i={}))},1646:(e,t,n)=>{"use strict";n.d(t,{e:()=>o});var r=n(8423);const o=e=>{const t=fin.Platform.Layout.wrapSync(e);return{show:async()=>{const n=await t.getConfig(),{settings:o,dimensions:i}=n,a=await(0,r.YQ)(e);await t.replace({...n,settings:{...o,hasHeaders:!0,reorderEnabled:!0},dimensions:{...i,headerHeight:a?28:30}})},hide:async e=>{const n=await t.getConfig(),{settings:r,dimensions:o}=await n;await t.replace({...n,settings:{...r,hasHeaders:!1,reorderEnabled:e?.settings?.reorderEnabled??!1},dimensions:{...o,headerHeight:0}})},isShowingTabs:async()=>{try{const e=await t.getConfig(),{settings:n}=await e;return n.hasHeaders}catch(e){return console.error("failed to get layout config: ",e),!0}}}}},1065:(e,t,n)=>{"use strict";var r=n(5304);n(121),n(6572),n(5150);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.lightGray4,[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.lightGray4,r.Color.darkGray5,r.Color.darkGray2,r.Color.darkGray5},5806:(e,t,n)=>{"use strict";n.d(t,{D9:()=>c,TZ:()=>u,q9:()=>r});var r,o,i=n(6678);!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)},9117:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(6678);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}}},8423:(e,t,n)=>{"use strict";n.d(t,{YQ:()=>r});n(6005),n(121);const r=async e=>{const t=e?fin.Window.wrapSync(e):fin.Window.getCurrentSync(),n=await t.getOptions();return n.workspacePlatform?.windowType&&"enterprise"===n.workspacePlatform.windowType}},6678:(e,t,n)=>{"use strict";var r;n.d(t,{AB:()=>s,Ax:()=>i,CL:()=>u,GX:()=>d,ZK:()=>f,_V:()=>a,aW:()=>p,oC:()=>c,rx:()=>g,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,f="prod"===r.Local,d=(r.Dev,r.Staging,r.Prod,"fins://system-apps/workspace"),p="https://workspace.openfin.co/workspace/19.2.13/app.json",h=e=>e.startsWith("http://")||e.startsWith("https://")?e:l+e,g=(h("https://workspace.openfin.co/workspace/19.2.13"),h("https://workspace.openfin.co/workspace/19.2.13")),v=("undefined"!=typeof WORKSPACE_DOCS_PLATFORM_URL&&h(WORKSPACE_DOCS_PLATFORM_URL),"undefined"!=typeof WORKSPACE_DOCS_CLIENT_URL&&h(WORKSPACE_DOCS_CLIENT_URL),"19.2.13");"undefined"!=typeof WORKSPACE_BUILD_SHA&&WORKSPACE_BUILD_SHA},8311:(e,t,n)=>{"use strict";n.d(t,{ZS:()=>u,dG:()=>f});var r=n(3198),o=n.n(r),i=(n(6678),n(3420)),a=n(1646),l=n(9663),s=(n(7098),n(121));const c=(e,t)=>e.content?{...e,content:e.content.map((e=>c(e,t)))}:{...e,componentState:t(e.componentState)},u=e=>({...e,name:void 0}),f=e=>{const t={...e};return c(t,u)},d=e=>{const t=[];return(e&&Array.isArray(e)?e:[]).forEach((e=>{if("component"===e.type)return t.push(e.componentState);const n=d(e.content);t.push(...n)})),t};new Map,new Map;o()((async e=>{try{const t=await(async e=>fin.Platform.Layout.wrapSync({...fin.me.identity,layoutName:e}).getConfig())(e.layoutContainerKey),n=t.content?d(t.content):[],r=n.length;r>1?(e=>{"multiView"!==e.attachedPageType&&(0,l.a)().Browser.wrapSync(s.Gi).updatePage({pageId:e.pageId,page:{singleViewName:null,attachedPageType:"multiView"}})})(e):1===r&&(async(e,t)=>{const n=(0,l.a)().Browser.wrapSync(s.Gi);if("singleView"!==e.attachedPageType){const r=await(0,i.VR)(e),o=await(0,l.a)().Browser.getUniquePageTitle();delete r.layout;const a={...r,singleViewName:t,title:o,hasUnsavedChanges:!1,attachedPageType:"singleView"};await n.updatePage({pageId:e.pageId,page:a})}})(e,n[0].name),await(async(e,t)=>{const n=(0,a.e)({...s.Gi,layoutName:e.layoutContainerKey}),r=await n.isShowingTabs();t>1?r||await n.show():1===t&&r&&await n.hide({settings:{reorderEnabled:!0}})})(e,r)}catch(e){}}),50,{leading:!1,trailing:!0})},8061:(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",e.PageDragState="BrowserPageDragState"}(r||(r={}));const o=r},4728:(e,t,n)=>{"use strict";n.d(t,{LS:()=>o,rV:()=>i});var r=n(6678);const o=(e,t)=>{localStorage.setItem(`${r.AB}-${e}`,t)},i=e=>localStorage.getItem(`${r.AB}-${e}`)},7278:(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})))}}},6005:(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.BrowserPopupMenuAddressSearchView="/browser/popup-menu/address-search-view/",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/",e.EnterpriseBrowser="/browser/enterprise/",e.EnterpriseContextMenu="/browser/enterprise/context-menu/"}(r||(r={}));const o="/microsoft-365-integration-assets/",i={IconOpenFinLogo:"/icons/openfinlogo.svg",IconFilter:"/icons/filter.svg",LightStorefront:"/icons/store-icon-light.png",DarkStorefront:"/icons/store-icon-dark.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`},DockIconLight:"/icons/dock-icon-light.png",DockIconDark:"/icons/dock-icon-dark.png"};var a;!function(e){e.Search="search"}(a||(a={}));const l=r},6650:(e,t,n)=>{"use strict";n.d(t,{K3:()=>i});var r;n(6678);!function(e){e.Home="/home",e.Browser="/browser",e.Provider="/provider",e.Storefront="/storefront",e.Dock="/dock"}(r||(r={}));const o="/workspace/19.2.13";function i(e){return o+e}},5912:(e,t,n)=>{"use strict";n.d(t,{$w:()=>a,X5:()=>o});n(8311);var r=n(8061);function o(){return localStorage.getItem(r.Z.MachineName)??"unknown"}let i;async function a(){return i||(i=await fin.System.getMachineId()),i}},6532:(e,t,n)=>{"use strict";n.d(t,{Wn:()=>c,ck:()=>l,d9:()=>s});var r,o=n(6678),i=n(121);n(6572);!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"}(r||(r={}));const a=async(e,t,n="workspace-licensing")=>{const r={apiVersion:t.apiVersion||o.u0,componentName:e,componentVersion:t.componentVersion||o.u0,allowed:t.allowed,rejectionCode:t.rejectionCode};fin.System.registerUsage({type:n,data:r})};const l=e=>{i.OI.uuid===i.Gi.uuid&&i.OI.name===i.Gi.name||a(r.Home,e)},s=e=>{a(r.Storefront,e)},c=e=>{a(r.Dock,e)};new Map},9610:(e,t,n)=>{"use strict";function r(){return void 0!==typeof crypto&&"randomUUID"in crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():"10000000-1000-4000-8000-100000000000".replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))}n.d(t,{H:()=>r})},121:(e,t,n)=>{"use strict";n.d(t,{B:()=>d,GP:()=>p,Gi:()=>l,IA:()=>r,JV:()=>h,OI:()=>s,ZJ:()=>c,iW:()=>f,nd:()=>u});var r,o=n(5806),i=n(6678);!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.BrowserSaveMenu="openfin-browser-save-menu",e.BrowserIndicator="openfin-browser-indicator",e.BrowserWindow="internal-generated-window",e.ClassicWindow="internal-generated-classic-window",e.EnterpriseContextMenu="openfin-enterprise-context-menu",e.BrowserAddressSearchPrefix="openfin-browser-menu-address-search-"}(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};const s={name:r.Home,uuid:o.q9.Workspace},c={name:r.Dock,uuid:o.q9.Workspace},u={name:r.Storefront,uuid:o.q9.Workspace},f={name:o.q9.Workspace,uuid:o.q9.Workspace};const d=async e=>{try{const t=await fin.Window.wrapSync({name:e.name,uuid:e.uuid??fin.me.uuid}).getOptions();return("browser"===t.workspacePlatform?.windowType||"enterprise"===t.workspacePlatform?.windowType)&&t.workspacePlatform?.pages}catch(e){return console.warn("isBrowserWindow error: ",e),!1}};async function p(){const e=await fin.Application.getCurrentSync().getChildWindows(),t=await Promise.all(e.map((async e=>d(e.identity))));return e.filter(((e,n)=>t[n]))}const h=e=>a(e).getOptions().then((()=>!0)).catch((()=>!1))},2304:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}}},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:()=>d.v,Home:()=>_,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:()=>d.v,deregister:()=>m,minimize:()=>C,register:()=>v,show:()=>y});var t={};n.r(t),n.d(t,{Microsoft365WorkflowIntegration:()=>Ne});var o={};n.r(o),n.d(o,{getPages:()=>Ue,getWorkspaces:()=>We});var i=n(6678),a=n(7278),l=n(6532),s=n(121),c=n(5150),u=n(5438);var f=n(2693),d=n(7427);let p,h;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.")},v=async e=>{(0,f.E)("dock",s.ZJ);const t=await(async e=>{await(0,u.Hh)(fin.me.identity);const t=await(0,c.xZ)();if(h)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 h=e,e.clientAPIVersion=i.u0,t.dispatch("register-provider",{providerType:"dock",info:e})})(e);return p=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(!h)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),p=void 0}finally{a.Z.markEndAndMeasure("dock-registration")}})),p},m=async()=>{if(await p,!h)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:h.id}),h=void 0,p=void 0},C=async()=>{await p,await(0,c.aB)(),await(async e=>(await(0,c.Dm)()).dispatch("hide-provider-window",{providerType:e}))("dock")},y=async()=>{a.Z.markStart("dock-show"),await p,await(0,c.aB)(),await(async e=>(await(0,c.Dm)()).dispatch("show-provider-window",{providerType:e}))("dock")};var w,b,x,_=n(3261),O=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},L=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)};w=new WeakMap,b=new WeakMap,x=new WeakMap;const E=class{constructor(e){w.set(this,void 0),b.set(this,void 0),x.set(this,void 0),O(this,w,e,"f"),O(this,b,new Map,"f"),O(this,x,[],"f")}get(e){if(L(this,b,"f").has(e))return this.updateQueue(e),L(this,b,"f").get(e)}has(e){return L(this,b,"f").has(e)}put(e,t){if(L(this,b,"f").has(e))L(this,b,"f").set(e,t),this.updateQueue(e);else{if(L(this,x,"f").length===L(this,w,"f")){const e=L(this,x,"f").shift();e&&L(this,b,"f").delete(e)}L(this,b,"f").set(e,t),L(this,x,"f").push(e)}}updateQueue(e){const t=L(this,x,"f").indexOf(e);-1!==t&&(L(this,x,"f").splice(t,1),L(this,x,"f").push(e))}};function S(e){return e&&"object"==typeof e&&!Array.isArray(e)}function j(e,...t){if(!t.length)return e;const n=t.shift();return S(e)&&S(n)&&Object.entries(n).forEach((([t,n])=>{if(S(n))return e[t]||(e[t]={}),j(e[t],n);e[t]=n})),j(e,...t)}var M,k,R,P,I,A=n(6005),T=n(6650),H=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},V=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)};k=new WeakMap,R=new WeakMap,P=new WeakMap,M=new WeakSet,I=function(){const e=Array.from(V(this,k,"f").entries()).reduce(((e,t)=>!e||t[1].timestamp<e[1].timestamp?t:e),null);return e?e[0]:null};const B=class{constructor(e=3e5,t=100){M.add(this),k.set(this,void 0),R.set(this,void 0),P.set(this,void 0),H(this,k,new Map,"f"),H(this,R,e,"f"),H(this,P,t,"f")}get(e){const t=V(this,k,"f").get(e);if(!t)return null;return Date.now()-t.timestamp<V(this,R,"f")?t.value:(V(this,k,"f").delete(e),null)}put(e,t){if(V(this,k,"f").size>=V(this,P,"f")){const e=V(this,M,"m",I).call(this);null!=e&&V(this,k,"f").delete(e)}V(this,k,"f").set(e,{value:t,timestamp:Date.now()})}remove(e){V(this,k,"f").delete(e)}clear(){V(this,k,"f").clear()}};var D,Z=n(9610),$=n(3758),N=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 F={};class U{constructor(e){D.set(this,new Set),this._initializeWorkflows=async(e=this.config)=>{const{workflows:t}=e;for(const e in t){if(!t[e].disableAutoInitialize)try{N(this,D,"f").has(e)?console.warn(`Workflow ${e} already initialized.`):(N(this,D,"f").add(e),await this.initializeWorkflow(e))}catch(t){N(this,D,"f").delete(e),console.error(`Error registering ${e}:`,t)}}};const t=j({},F,e);this.config=t}async initializeWorkflow(e){N(this,D,"f").add(e)}}D=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|g(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 g(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 v(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 j(this,t,n);case"latin1":case"binary":return M(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 m(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function C(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=g,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)m(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)m(this,t,t+3),m(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)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(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):v.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 C(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return C(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 j(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 M(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){N(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){N(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){F(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){F(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){F(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){F(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 N(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){F(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||U(t,e.length-(n+1))}(r,o,i)}function F(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 F(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))}g(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&g(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 g(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,g=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*g}},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]],g="[object Arguments]",v="[object Array]",m="[object Boolean]",C="[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]",j="[object String]",M="[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]",N=/\b__p \+= '';/g,F=/\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,ge=/^\[object .+?Constructor\]$/,ve=/^0o[0-7]+$/i,me=/^(?:0|[1-9]\d*)$/,Ce=/[\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",je="["+be+"]",Me="["+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+")",Ne="(?:"+De+"|"+Ae+")",Fe="(?:['’](?: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,je].join("|")+")",Ke=RegExp("['’]","g"),Xe=RegExp(ke,"g"),Je=RegExp(Te+"(?="+Te+")|"+Ye+Ge,"g"),Qe=RegExp([De+"?"+Ie+"+"+Fe+"(?="+[Me,De,"$"].join("|")+")",Ne+"+"+Ue+"(?="+[Me,De+$e,"$"].join("|")+")",De+"?"+$e+"+"+Fe,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[g]=ot[v]=ot[R]=ot[m]=ot[P]=ot[C]=ot[y]=ot[w]=ot[x]=ot[_]=ot[O]=ot[E]=ot[S]=ot[j]=ot[k]=!1;var it={};it[g]=it[v]=it[R]=it[P]=it[m]=it[C]=it[I]=it[A]=it[T]=it[H]=it[V]=it[x]=it[_]=it[O]=it[E]=it[S]=it[j]=it[M]=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,gt=ht&&ct.process,vt=function(){try{return pt&&pt.require&&pt.require("util").types||gt&>.binding&>.binding("util")}catch(e){}}(),mt=vt&&vt.isArrayBuffer,Ct=vt&&vt.isDate,yt=vt&&vt.isMap,wt=vt&&vt.isRegExp,bt=vt&&vt.isSet,xt=vt&&vt.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 jt(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 Mt(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=Ft("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 Nt(e,t){var n=null==e?0:e.length;return n?zt(e,t)/n:d}function Ft(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({"&":"&","<":"<",">":">",'"':""","'":"'"});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({"&":"&","<":"<",">":">",""":'"',"'":"'"}),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,je=r.prototype,Me=xe.prototype,ke=Oe.prototype,Re=t["__core-js_shared__"],Pe=Me.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,Ne=t.Uint8Array,Fe=Ze?Ze.allocUnsafe:o,Ue=an(Oe.getPrototypeOf,Oe),We=Oe.create,ze=ke.propertyIsEnumerable,Ge=je.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,gt=Oe.getOwnPropertySymbols,vt=Ze?Ze.isBuffer:o,Ht=t.isFinite,Ut=je.join,hn=an(Oe.keys,Oe),gn=_e.max,vn=_e.min,mn=oe.now,Cn=t.parseInt,yn=_e.random,wn=je.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,jn={},Mn=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 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 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 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 Fn(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)||gi(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==g||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,jl(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 m:case C: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 j: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 M: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 v=f?o:(u?c?ti:ei:c?jl:Sl)(e);return Lt(v||e,(function(r,o){v&&(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=Mt,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,Nn.prototype.clear=function(){this.__data__=En?En(null):{},this.size=0},Nn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Nn.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},Nn.prototype.has=function(e){var t=this.__data__;return En?t[e]!==o:Ie.call(t,e)},Nn.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},Fn.prototype.clear=function(){this.__data__=[],this.size=0},Fn.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))},Fn.prototype.get=function(e){var t=this.__data__,n=Qn(t,e);return n<0?o:t[n][1]},Fn.prototype.has=function(e){return Qn(this.__data__,e)>-1},Fn.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 Nn,map:new(xn||Fn),string:new Nn}},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 Fn,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 Fn){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(mr),ur=ko(Cr,!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 gr=Ro(),vr=Ro(!0);function mr(e,t){return e&&gr(e,t,Sl)}function Cr(e,t){return e&&vr(e,t,Sl)}function yr(e,t){return jt(t,(function(t){return Ga(e[t])}))}function wr(e,t){for(var n=0,r=(t=vo(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:Mt,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=vn(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 g=d[p],v=t?t(g):g;if(g=n||0!==g?g:0,!(h?Xt(h,v):i(f,v,n))){for(s=l;--s;){var m=c[s];if(!(m?Xt(m,v):i(e[s],v,n)))continue e}h&&h.push(v),f.push(g)}}return f}function Sr(e,t,n){var r=null==(e=Oi(e,t=vo(t,e)))?e:e[Ii(zi(t))];return null==r?o:_t(r,e,n)}function jr(e){return Xa(e)&&xr(e)==g}function Mr(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?v:fi(e),u=s?v:fi(t),f=(c=c==g?O:c)==O,d=(u=u==g?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 Ne(e),new Ne(t)));case m:case C:case _:return Ha(+e,+t);case y:return e.name==t.name&&e.message==t.message;case E:case j: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 M: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 g=l;++u<c;){var v=e[f=s[u]],m=t[f];if(r)var C=l?r(m,v,f,t,e,a):r(v,m,f,e,t,a);if(!(C===o?v===m||i(v,m,n,r,a):C)){h=!1;break}g||(g="constructor"==f)}if(h&&!g){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,Mr,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?Mr(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:ge).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=Na(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 mi(e)&&bi(t)?xi(Ii(e),t):function(n){var r=xl(n,e);return r===o&&r===t?_l(n,e):Mr(t,r,3)}}function Br(e,t,n,r,i){e!==t&&gr(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),g=!p&&!h&&il(c);f=c,p||h||g?Za(s)?f=s:Fa(s)?f=Eo(s):h?(d=!1,f=wo(c,!0)):g?(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)}}),jl)}function Dr(e,t){var n=e.length;if(n)return gi(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,vo(a,e),l)}return i}function Nr(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 Fr(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;gi(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 ji(_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=vo(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:gi(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,g=d==d,v=ol(d);if(l)var m=r||g;else m=u?g&&(r||p):s?g&&p&&(r||!h):c?g&&p&&!h&&(r||!v):!h&&!v&&(r?d<=t:d<t);m?i=f+1:a=f}return vn(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=Mt,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=vo(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 Fa(e)?e:[]}function go(e){return"function"==typeof e?e:Ql}function vo(e,t){return Za(e)?e:mi(e,t)?[e]:Pi(hl(e))}var mo=zr;function Co(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=Fe?Fe(n):new e.constructor(n);return e.copy(r),r}function bo(e){var t=new e.constructor(e.byteLength);return new Ne(t).set(new Ne(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=gn(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=gn(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 jo(e,t){return function(n,r){var o=Za(n)?Ot:er,i=t?t():{};return o(n,e,ii(r,2),i)}}function Mo(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&&vi(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(!Na(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?Co(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(!Na(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&&Ci(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?s[ri(u[0])].apply(s,u[3]):1==l.length&&Ci(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,g=2&t,v=24&t,m=512&t,C=g?o:Ao(e);return function c(){for(var y=arguments.length,w=r(y),b=y;b--;)w[b]=arguments[b];if(v)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,v)),l&&(w=Lo(w,l,s,v)),y-=_,v&&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=g?L[e]:e;return y=w.length,u?w=function(e,t){for(var n=e.length,r=vn(t.length,n),i=Eo(e);r--;){var a=t[r];e[r]=gi(a,n)?i[a]:o}return e}(w,u):m&&y>1&&w.reverse(),p&&f<y&&(w.length=f),this&&this!==ft&&this instanceof c&&(E=C||Ao(E)),E.apply(L,w)}}function Bo(e,t){return function(n,r){return function(e,t,n,r){return mr(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)?Co(un(r),0,e).join(""):r.slice(0,e)}function No(e){return function(t,n,i){return i&&"number"!=typeof i&&vi(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=gn(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 Fo(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 Ci(e)&&Ei(h,p),h.placeholder=r,Mi(h,e,t)}function Wo(e){var t=_e[e];return function(e,n){if(e=dl(e),(n=null==n?0:vn(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 g=a?a.length:0;if(g||(t&=-97,a=u=o),d=d===o?d:gn(ul(d),0),p=p===o?p:ul(p),g-=u?u.length:0,64&t){var v=a,m=u;a=u=o}var C=h?o:ni(e),y=[e,t,n,a,u,v,m,f,d,p];if(C&&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]:vn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(y,C),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:gn(y[9]-g,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 Mi((C?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 g=e[d],v=t[d];if(r)var m=l?r(v,g,d,t,e,a):r(g,v,d,e,t,a);if(m!==o){if(m)continue;p=!1;break}if(h){if(!Tt(t,(function(e,t){if(!Xt(h,t)&&(g===e||i(g,e,n,r,a)))return h.push(t)}))){p=!1;break}}else if(g!==v&&!i(g,v,n,r,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function Qo(e){return ji(_i(e,o,$i),e+"")}function ei(e){return br(e,Sl,ci)}function ti(e){return br(e,jl,ui)}var ni=Sn?function(e){return Sn.get(e)}:os;function ri(e){for(var t=e.name+"",n=jn[t],r=Ie.call(jn,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=gt?function(e){return null==e?[]:(e=Oe(e),jt(gt(e),(function(t){return ze.call(e,t)})))}:fs,ui=gt?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=vo(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)&&gi(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 gi(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&me.test(e))&&e>-1&&e%1==0&&e<t}function vi(e,t,n){if(!Ka(n))return!1;var r=typeof t;return!!("number"==r?Na(n)&&gi(t,n.length):"string"==r&&t in n)&&Ha(n[t],e)}function mi(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 Ci(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 Mn: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=gn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=gn(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)},ji=ki(Xr);function Mi(e,t,n){var r=t+"";return ji(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]&&!Mt(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=mn(),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 Fa(e)?sr(e,hr(t,1,Fa,!0)):[]})),Vi=zr((function(e,t){var n=zi(t);return Fa(n)&&(n=o),Fa(e)?sr(e,hr(t,1,Fa,!0),ii(n,2)):[]})),Bi=zr((function(e,t){var n=zi(t);return Fa(n)&&(n=o),Fa(e)?sr(e,hr(t,1,Fa,!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=gn(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?gn(r+i,0):vn(i,r-1)),Bt(e,ii(t,3),i,!0)}function $i(e){return null!=e&&e.length?hr(e,1):[]}function Ni(e){return e&&e.length?e[0]:o}var Fi=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?Nr(e,t):e}var Yi=Qo((function(e,t){var n=null==e?0:e.length,r=rr(e,t);return Fr(e,Rt(t,(function(e){return gi(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,Fa,!0))})),Ji=zr((function(e){var t=zi(e);return Fa(t)&&(t=o),ao(hr(e,1,Fa,!0),ii(t,2))})),Qi=zr((function(e){var t=zi(e);return t="function"==typeof t?t:o,ao(hr(e,1,Fa,!0),o,t)}));function ea(e){if(!e||!e.length)return[];var t=0;return e=jt(e,(function(e){if(Fa(e))return t=gn(e.length,t),!0})),Gt(t,(function(t){return Rt(e,Ft(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 Fa(e)?sr(e,t):[]})),ra=zr((function(e){return fo(jt(e,Fa))})),oa=zr((function(e){var t=zi(e);return Fa(t)&&(t=o),fo(jt(e,Fa),ii(t,2))})),ia=zr((function(e){var t=zi(e);return t="function"==typeof t?t:o,fo(jt(e,Fa),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&&gi(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=jo((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 ga(e,t){return(Za(e)?Et:ur)(e,ii(t,3))}var va=jo((function(e,t,n){Ie.call(e,n)?e[n].push(t):nr(e,n,[t])})),ma=zr((function(e,t,n){var o=-1,i="function"==typeof t,a=Na(e)?r(e.length):[];return cr(e,(function(e){a[++o]=i?_t(t,e,n):Sr(e,t,n)})),a})),Ca=jo((function(e,t,n){nr(e,n,t)}));function ya(e,t){return(Za(e)?Rt:Tr)(e,ii(t,3))}var wa=jo((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&&vi(e,t[0],t[1])?t=[]:n>2&&vi(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 g(t){var n=r,i=a;return r=a=o,f=t,s=e.apply(i,n)}function v(e){var n=e-u;return u===o||n>=t||n<0||p&&e-f>=l}function m(){var e=xa();if(v(e))return C(e);c=Si(m,function(e){var n=t-(e-u);return p?vn(n,l-(e-f)):n}(e))}function C(e){return c=o,h&&r?g(e):(r=a=o,s)}function y(){var e=xa(),n=v(e);if(r=arguments,a=this,u=e,n){if(c===o)return function(e){return f=e,c=Si(m,t),d?g(e):s}(u);if(p)return yo(c),c=Si(m,t),g(u)}return c===o&&(c=Si(m,t)),s}return t=dl(t)||0,Ka(n)&&(d=!!n.leading,l=(p="maxWait"in n)?gn(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:C(xa())},y}var ja=zr((function(e,t){return lr(e,1,t)})),Ma=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=mo((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=vn(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=Fo(_r),Ba=Fo((function(e,t){return e>=t})),Da=jr(function(){return arguments}())?jr:function(e){return Xa(e)&&Ie.call(e,"callee")&&!ze.call(e,"callee")},Za=r.isArray,$a=mt?Yt(mt):function(e){return Xa(e)&&xr(e)==R};function Na(e){return null!=e&&Ya(e.length)&&!Ga(e)}function Fa(e){return Xa(e)&&Na(e)}var Ua=vt||ds,Wa=Ct?Yt(Ct):function(e){return Xa(e)&&xr(e)==C};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)==j}function ol(e){return"symbol"==typeof e||Xa(e)&&xr(e)==M}var il=xt?Yt(xt):function(e){return Xa(e)&&Ya(e.length)&&!!ot[xr(e)]},al=Fo(Ar),ll=Fo((function(e,t){return e<=t}));function sl(e){if(!e)return[];if(Na(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||ve.test(e)?st(e.slice(2),n?2:8):pe.test(e)?d:+e}function pl(e){return So(e,jl(e))}function hl(e){return null==e?"":io(e)}var gl=Mo((function(e,t){if(wi(t)||Na(t))So(t,Sl(t),e);else for(var n in t)Ie.call(t,n)&&Jn(e,n,t[n])})),vl=Mo((function(e,t){So(t,jl(t),e)})),ml=Mo((function(e,t,n,r){So(t,jl(t),e,r)})),Cl=Mo((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&&vi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],l=jl(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 Na(e)?Gn(e):Ir(e)}function jl(e){return Na(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 Ml=Mo((function(e,t,n){Br(e,t,n)})),kl=Mo((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=vo(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(jl);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(Ce,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()})),Nl=Po("toLowerCase"),Fl=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 mi(e)?Ft(Ii(e)):function(e){return function(t){return wr(t,e)}}(e)}var cs=No(),us=No(!0);function fs(){return[]}function ds(){return!1}var ps,hs=Do((function(e,t){return e+t}),0),gs=Wo("ceil"),vs=Do((function(e,t){return e/t}),1),ms=Wo("floor"),Cs=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=gl,Vn.assignIn=vl,Vn.assignInWith=ml,Vn.assignWith=Cl,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?vi(e,t,n):t===o)?1:gn(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=ja,Vn.delay=Ma,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&&vi(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)?jt: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,jl(e))},Vn.groupBy=va,Vn.initial=function(e){return null!=e&&e.length?Qr(e,0,-1):[]},Vn.intersection=Fi,Vn.intersectionBy=Ui,Vn.intersectionWith=Wi,Vn.invert=Ol,Vn.invertBy=Ll,Vn.invokeMap=ma,Vn.iteratee=es,Vn.keyBy=Ca,Vn.keys=Sl,Vn.keysIn=jl,Vn.map=ya,Vn.mapKeys=function(e,t){var n={};return t=ii(t,3),mr(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),mr(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=Ml,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?Nr(e,t,ii(n,2)):e},Vn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Nr(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)?jt: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 Fr(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?vi(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&&vi(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&&vi(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)?Co(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:gn(ul(t),0),zr((function(n){var r=n[t],o=Co(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:mr)(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,go(n))},Vn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:so(e,t,go(n),r)},Vn.values=Hl,Vn.valuesIn=function(e){return null==e?[]:Kt(e,jl(e))},Vn.without=na,Vn.words=Gl,Vn.wrap=function(e,t){return Ia(go(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=vl,Vn.extendWith=ml,rs(Vn,Vn),Vn.add=hs,Vn.attempt=ql,Vn.camelCase=Vl,Vn.capitalize=Bl,Vn.ceil=gs,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=vs,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&&vi(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),mr)},Vn.findLast=pa,Vn.findLastIndex=Zi,Vn.findLastKey=function(e,t){return Vt(e,ii(t,3),Cr)},Vn.floor=ms,Vn.forEach=ha,Vn.forEachRight=ga,Vn.forIn=function(e,t){return null==e?e:gr(e,ii(t,3),jl)},Vn.forInRight=function(e,t){return null==e?e:vr(e,ii(t,3),jl)},Vn.forOwn=function(e,t){return e&&mr(e,ii(t,3))},Vn.forOwnRight=function(e,t){return e&&Cr(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=Ni,Vn.identity=Ql,Vn.includes=function(e,t,n,r){e=Na(e)?e:Hl(e),n=n&&!r?ul(n):0;var o=e.length;return n<0&&(n=gn(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=gn(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>=vn(t,n)&&e<gn(t,n)}(e=dl(e),t,n)},Vn.invoke=El,Vn.isArguments=Da,Vn.isArray=Za,Vn.isArrayBuffer=$a,Vn.isArrayLike=Na,Vn.isArrayLikeObject=Fa,Vn.isBoolean=function(e){return!0===e||!1===e||Xa(e)&&xr(e)==m},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(Na(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 Mr(e,t)},Vn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Mr(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?gn(r+i,0):vn(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=Nl,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 Nt(e,Ql)},Vn.meanBy=function(e,t){return Nt(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=Cs,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),Cn(hl(e).replace(re,""),t||0)},Vn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&vi(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 vn(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?vi(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=vo(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(Na(e))return rl(e)?cn(e):e.length;var t=fi(e);return t==x||t==S?e.size:Ir(e).length},Vn.snakeCase=Fl,Vn.some=function(e,t,n){var r=Za(e)?Tt:eo;return n&&vi(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&&vi(e,t,n)&&(t=o),e=hl(e),t=ml({},t,r,Yo);var i,a,l=ml({},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 g=Ie.call(t,"variable")&&t.variable;if(g){if(ce.test(g))throw new be("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(a?d.replace(N,""):d).replace(F,"$1").replace(U,"$1;"),d="function("+(g||"obj")+") {\n"+(g?"":"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 v=ql((function(){return xe(s,h+"return "+d).apply(o,c)}));if(v.source=d,za(v))throw v;return v},Vn.times=function(e,t){if((e=ul(e))<1||e>f)return[];var n=p,r=vn(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 Co(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 Co(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 Co(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?Co(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=ga,Vn.first=Ni,rs(Vn,(ps={},mr(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:gn(ul(n),0);var r=this.__filtered__&&!t?new $n(this):this.clone();return r.__filtered__?r.__takeCount__=vn(n,r.__takeCount__):r.__views__.push({size:vn(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)},mr($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,g=s&&!p;if(!a&&u){t=g?t:new $n(this);var v=e.apply(t,l);return v.__actions__.push({func:ca,args:[f],thisArg:o}),new Zn(v,d)}return h&&g?e.apply(this,l):(v=this.thru(f),h?r?v.value()[0]:v.value():v)})})),Lt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=je[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)}))}})),mr($n.prototype,(function(e,t){var n=Vn[t];if(n){var r=n.name+"";Ie.call(jn,r)||(jn[r]=[]),jn[r].push({name:t,func:n})}})),jn[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=vn(t,e+a);break;case"takeRight":e=gn(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=vn(s,this.__takeCount__);if(!n||!r&&o==s&&p==s)return uo(e,this.__actions__);var h=[];e:for(;s--&&d<p;){for(var g=-1,v=e[c+=t];++g<f;){var m=u[g],C=m.iteratee,y=m.type,w=C(v);if(2==y)v=w;else if(!w){if(1==y)continue e;break e}}h[d++]=v}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:g}}=n(141),v=n(86);e.exports=function(...e){if(0===e.length)throw new g("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,m,C,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(),m=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((()=>{})),m=t}catch(e){t(e)}}}const e=u(x)?x.readable:x;v(e,(()=>{if(m){const e=m;m=null,e()}}))}if(O)if(a(x))x.on("readable",(function(){if(C){const e=C;C=null,e()}})),x.on("end",(function(){w.push(null)})),w._read=function(){for(;;){const e=x.read();if(null===e)return void(C=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),C=null,n=null,m=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 g(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(v,e,t):r.nextTick(m,e)}try{e._destroy(t||null,i)}catch(t){i(t)}}function v(e,t){C(e,t),m(e)}function m(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 C(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(C,e,t):C(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?g(this,e,t):this.once(d,(function(n){g(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:g}}=n(141),{destroyer:v}=n(230),m=n(182),C=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 m{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?C.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&&v(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&&v(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,v(n,e),v(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 g("nully","body",e)}),(e=>{v(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 g("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=>{v(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:g}=n(191),{isClosed:v,isReadable:m,isReadableNodeStream:C,isReadableStream:y,isReadableFinished:w,isReadableErrored:b,isWritable:x,isWritableNodeStream:_,isWritableStream:O,isWritableFinished:L,isWritableErrored:E,isNodeStream:S,willEmitClose:j,kIsClosedPromise:M}=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 g(e[M].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:C(e),R=null!==(p=t.writable)&&void 0!==p?p:_(e),P=e._writableState,I=e._readableState,A=()=>{e.writable||V()};let T=j(e)&&C(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 $=v(e);const N=()=>{$=!0;const t=E(e)||b(e);return t&&"boolean"!=typeof t?n.call(e,t):h&&!B&&C(e,!0)&&!w(e,!1)?n.call(e,new l):!R||H||L(e,!1)?void n.call(e):n.call(e,new l)},F=()=>{$=!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",N),e.req?U():e.on("request",U)),T||"boolean"!=typeof e.aborted||e.on("aborted",N),e.on("end",D),e.on("finish",V),!1!==t.error&&e.on("error",Z),e.on("close",N),$?r.nextTick(N):null!=P&&P.errorEmitted||null!=I&&I.errorEmitted?T||r.nextTick(F):(h||T&&!m(e)||!H&&!1!==x(e))&&(R||T&&!x(e)||!B&&!1!==m(e))?I&&e.req&&e.aborted&&r.nextTick(F):r.nextTick(F);const W=()=>{n=k,e.removeListener("aborted",N),e.removeListener("complete",V),e.removeListener("abort",N),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",N)};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:g}=n(374),{isWritable:v,isNodeStream:m}=n(132),{ArrayPrototypePush:C,MathFloor:y,Number:w,NumberIsNaN:b,Promise:x,PromiseReject:_,PromisePrototypeThen:O,Symbol:L}=n(191),E=L("kEmpty"),S=L("kEof");function j(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 g=!1;function v(){g=!0}!async function(){try{for await(let t of l){var r;if(g)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(v),c.push(t),p&&(p(),p=null),!g&&c.length&&c.length>=n&&await new x((e=>{h=e})))}c.push(S)}catch(e){const t=_(e);O(t,void 0,v),c.push(t)}finally{var o;g=!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(),g=!0,h&&(h(),h=null)}}.call(this)}async function M(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 j.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=j.call(this,e,t);return async function*(){for await(const e of n)yield*e}.call(this)},map:j,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"),m(e)&&!v(e))throw new o("stream",e,"must be writable");const n=h(this,e);return null!=t&&t.signal&&g(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 M.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 j.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 g;if(h=!0,null!=n&&null!==(g=n.signal)&&void 0!==g&&g.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});C(t,r)}return t},some:M,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:g,ERR_STREAM_PREMATURE_CLOSE:v},AbortError:m}=n(141),{validateFunction:C,validateAbortSignal:y}=n(904),{isIterable:w,isReadable:b,isReadableNodeStream:x,isNodeStream:_,isTransformStream:O,isWebStream:L,isReadableStream:E,isReadableEnded:S}=n(132),j=globalThis.AbortController||n(876).AbortController;let M,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 g("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 j,l=a.signal,s=null==i?void 0:i.signal,c=[];function f(){V(new m)}let g,v;y(s,"options.signal"),null==s||s.addEventListener("abort",f);const C=[];let S,k=0;function T(e){V(e,0==--k)}function V(e,n){if(!e||g&&"ERR_STREAM_PREMATURE_CLOSE"!==g.code||(g=e),g||n){for(;C.length;)C.shift()(g);null==s||s.removeEventListener("abort",f),a.abort(),n&&(g||c.forEach((e=>e())),r.nextTick(t,g,v))}}for(let Z=0;Z<e.length;Z++){const $=e[Z],N=Z<e.length-1,F=Z>0,U=N||!1!==(null==i?void 0:i.end),W=Z===e.length-1;if(_($)){if(U){const{destroy:G,cleanup:q}=R($,N,F);C.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}),N){if(!w(S,!0))throw new p("AsyncIterable",`transform[${Z-1}]`,S)}else{var D;M||(M=n(467));const Y=new M({objectMode:!0}),K=null===(D=S)||void 0===D?void 0:D.then;if("function"==typeof K)k++,K.call(S,(e=>{v=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);C.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 v)})),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 C(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:g}=n(465),{Stream:v,prependListener:m}=n(200),{Buffer:C}=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:j,ERR_OUT_OF_RANGE:M,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,v.prototype),u(D,v);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)),v.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=C.from(t,n).toString(o.encoding):(t=C.from(t,n),n=""))):t instanceof C?n="":v._isUint8Array(t)?(t=v._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?F(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&&F(e)),W(e,t)}function N(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 F(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[g.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 M("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):F(this),null;if(0===(e=N(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=N(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 j("_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?g: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",g),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),g(),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),g()}function h(){b("onfinish"),e.removeListener("close",p),g()}function g(){b("unpipe"),n.unpipe(e)}return n.on("data",u),m(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=v.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?F(this):o.reading||r.nextTick(q,this))),n},D.prototype.addListener=D.prototype.on,D.prototype.removeListener=function(e,t){const n=v.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=v.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 g(e){return e&&(e._readableState||e._writableState||"function"==typeof e.write&&"function"==typeof e.on||"function"==typeof e.pipe&&"function"==typeof e.on)}function v(e){return!(!e||g(e)||"function"!=typeof e.pipeThrough||"function"!=typeof e.getReader||"function"!=typeof e.cancel)}function m(e){return!(!e||g(e)||"function"!=typeof e.getWriter||"function"!=typeof e.abort)}function C(e){return!(!e||g(e)||"object"!=typeof e.readable||"object"!=typeof e.writable)}function y(e){if(!g(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(!g(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 g(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:v,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 g(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:g,isWebStream:function(e){return v(e)||m(e)||C(e)},isWritable:_,isWritableNodeStream:h,isWritableStream:m,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 g(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(!g(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:C}},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:g}=n(485),v=n(230),{addAbortSignal:m}=n(374),{getHighWaterMark:C,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:j}=n(141).codes,{errorOrDestroy:M}=v;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?C(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&&m(e.signal,this)),h.call(this,e),v.construct(this,(()=>{const e=this._writableState;e.writing||N(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&&!g.isEncoding(n))throw new j(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=g.from(t,n),n="buffer");else if(t instanceof g)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),M(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),M(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&&N(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))):M(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 N(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 F(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){F(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)M(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);M(e,o,t.sync)}else F(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)=>{F(t)?W(e,t):t.pendingcb--}),e,t)):F(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(){M(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||N(this,e))},A.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=u(e)),!g.isEncoding(e))throw new j(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=v.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=v.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:g,StringPrototypeTrim:v}=n(191),{hideStackFrames:m,codes:{ERR_SOCKET_BAD_PORT:C,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]+$/,j=m(((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)})),M=m(((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=m(((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=m(((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=m(((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=m(((e,t)=>{if(null!=e&&"object"!=typeof e&&"function"!=typeof e)throw new y(t,"a dictionary",e)})),V=m(((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=m(((e,t="buffer")=>{if(!L(e))throw new y(t,["Buffer","TypedArray","DataView"],e)})),D=m(((e,t)=>{if(void 0!==e&&(null===e||"object"!=typeof e||!("aborted"in e)))throw new y(t,"AbortSignal",e)})),Z=m(((e,t)=>{if("function"!=typeof e)throw new y(t,"Function",e)})),$=m(((e,t)=>{if("function"!=typeof e||O(e))throw new y(t,"Function",e)})),N=m(((e,t)=>{if(void 0!==e)throw new y(t,"undefined",e)})),F=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function U(e,t){if(void 0===e||!p(F,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:M,validateInteger:j,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===v(e).length||+e!=+e>>>0||e>65535||0===e&&!n)throw new C(t,e,n);return 0|e},validateSignalName:function(e,t="signal"){if(R(e,t),void 0===E[e]){if(void 0!==E[g(e)])throw new x(e+" (signals must use all capital letters)");throw new x(e)}},validateString:R,validateUint32:k,validateUndefined:N,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 g 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:g,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),g=n(760),v=n(132),m=e.exports=n(200).Stream;m.isDisturbed=v.isDisturbed,m.isErrored=v.isErrored,m.isReadable=v.isReadable,m.Readable=n(858);for(const y of i(s)){const w=s[y];function b(...e){if(new.target)throw u();return m.Readable.from(a(w,this,e))}o(b,"name",{__proto__:null,value:w.name}),o(b,"length",{__proto__:null,value:w.length}),o(m.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(m.Readable.prototype,x,{__proto__:null,value:O,enumerable:!1,configurable:!0,writable:!0})}m.Writable=n(373),m.Duplex=n(182),m.Transform=n(210),m.PassThrough=n(467),m.pipeline=d;const{addAbortSignal:C}=n(374);m.addAbortSignal=C,m.finished=h,m.destroy=p,m.compose=f,o(m,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:()=>g}),o(d,l,{__proto__:null,enumerable:!0,get:()=>g.pipeline}),o(h,l,{__proto__:null,enumerable:!0,get:()=>g.finished}),m.Stream=m,m._isUint8Array=function(e){return e instanceof Uint8Array},m._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$:()=>N,U7:()=>F});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:()=>v,nj:()=>u,O4:()=>M,_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,g(e)},g=e=>`[@openfin/${e.toLowerCase()}]`;class v{constructor(e){this.name=e,this.prefix=g(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 m="oauth-api-auth-flow",C=(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 C(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),C(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 C(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,g,v]=d;if(s.status=p,v){if(!n&&401===p){const[e,n]=await i();return n?(s.status=e,s.error=n,s):await o(t,!0)}s.error=v}else h&&(s.data=h,s.type=g)}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)},j=(e,t)=>async()=>{try{await E(e,t)(!1)}catch(e){t.logWarning(e.message)}e.terminate(),t.logInfo("Worker terminated")};class M{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===m));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}`,g=null!=n?n:{},{defaultHeight:v,defaultWidth:C}=g,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}(g,["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!=v?v:700,defaultWidth:null!=C?C:600,includeInSnapshots:!1,name:m,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 v(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:j(i,n)}})(t,n,a);return a.logInfo("Init completed",t),new M(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",N=()=>{V($)},F=()=>{B($,Z)};"undefined"!=typeof window&&("undefined"==typeof fin&&Object.assign(window,{fin:{}}),Object.assign(fin,{Integrations:{Microsoft365:{enableLogging:F,disableLogging:N}}}));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 v?t:v,i=Object.create(o.prototype),a=new j(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===g)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===g)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",g={};function v(){}function m(){}function C(){}var y={};y[i]=function(){return this};var w=Object.getPrototypeOf,b=w&&w(w(M([])));b&&b!==n&&r.call(b,i)&&(y=b);var x=C.prototype=v.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 g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var o=u(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;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,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}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 j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function M(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 m.prototype=x.constructor=C,C.constructor=m,m.displayName=s(C,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,C):(e.__proto__=C,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=M,j.prototype={constructor:j,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,g):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),g},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),g}},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:M(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},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,g,v,m,C,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&&(g=s-f,v=g/f*100,C=g>0?"▲":g<0?"▼":"●",m=g>0?"Good":g<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!=g&&null!=v&&{type:"TextBlock",text:`${C} ${g.toFixed(2)} (${v.toFixed(2)}%)`,color:m,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}},ge=(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}))},ve=(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"}},me=(e="")=>{switch(e.split(".").pop()?.toLowerCase()??""){case"docx":case"doc":return(0,T.K3)(A.de.Microsoft365Assets.Microsoft365DocumentIcon);case"xlsx":case"xls":return(0,T.K3)(A.de.Microsoft365Assets.Microsoft365ExcelIcon);case"pptx":case"ppt":return(0,T.K3)(A.de.Microsoft365Assets.Microsoft365PowerpointIcon);case"pdf":return(0,T.K3)(A.de.Microsoft365Assets.PDFFileIcon);default:return}},Ce=e=>e.replace(/\+/g,"_").replace(/\//g,"-");var ye,we,be,xe,_e,Oe,Le,Ee,Se,je,Me,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 Ne 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,T.K3)(A.de.Microsoft365Assets.Microsoft365Icon),icon:(0,T.K3)(A.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 E(100)),Ee.set(this,new B(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",je).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",je).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",Me).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,T.K3)(A.de.CallIconLight),dark:(0,T.K3)(A.de.CallIconDark)},tooltip:"Teams Call",action:le},{type:"button",icon:{light:(0,T.K3)(A.de.ChatIconLight),dark:(0,T.K3)(A.de.ChatIconDark)},tooltip:"Chat",action:se},{type:"button",icon:{light:(0,T.K3)(A.de.MessageIconLight),dark:(0,T.K3)(A.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 _.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",je).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,je=async function(e){try{return await e()}catch(t){if(t instanceof Y)return await this.connect(),e();throw t}},Me=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",Me).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:(0,Z.H)(),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?ge(r.body.value,e):r.body.value;n.push(...(o||[]).map((e=>({key:e.id??(0,Z.H)(),title:e.name??"",description:e.file?.mimeType??"",label:ve(e.name),icon:me(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=Ce(e.hitId);return{key:n,title:t.subject??"",label:"Calendar Event",icon:(0,T.K3)(A.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??(0,Z.H)(),title:e.displayName??"",label:"Outlook contact",icon:(0,T.K3)(A.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??(0,Z.H)(),title:e.displayName??"",label:"Teams contact",icon:(0,T.K3)(A.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??(0,Z.H)(),title:`${e.subject??"Untitled Message"}${e.isDraft?" (Draft)":""}`,label:"Email",icon:(0,T.K3)(A.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??(0,Z.H)(),title:e.summary??"Untitled Message",label:"Chat",icon:(0,T.K3)(A.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=Ce(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 Fe=n(3420);const Ue=()=>Fe.hd(),We=()=>(async()=>(await(0,c.Dm)()).dispatch("get-legacy-workspaces",void 0))();var ze=n(2528),Ge=n(1222),qe=n(2109),Ye=n(6114)})(),module.exports=r})();
|
|
1324
1324
|
//# sourceMappingURL=index.js.map
|