@finsemble/finsemble-core 6.1.4 → 6.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/.mocharc.js +12 -12
  2. package/.nycrc.json +7 -7
  3. package/README.md +24 -24
  4. package/assets/fonts/LICENSE.txt +202 -202
  5. package/configs/core/config.json +214 -214
  6. package/configs/core/securityPolicies.json +24 -24
  7. package/configs/core/services.json +233 -233
  8. package/configs/schemas/README.md +1 -1
  9. package/configs/schemas/fileBasedSchemas/appdConfigFile.schema.json +5 -5
  10. package/configs/schemas/fileBasedSchemas/applicationConfigFile.schema.json +5 -5
  11. package/configs/schemas/fileBasedSchemas/componentsFile.schema.json +5 -5
  12. package/configs/schemas/fileBasedSchemas/coreConfigFile.schema.json +5 -5
  13. package/configs/schemas/fileBasedSchemas/dashbarFile.schema.json +5 -5
  14. package/configs/schemas/fileBasedSchemas/manifestFile.schema.json +5 -5
  15. package/configs/schemas/fileBasedSchemas/securityPoliciesFile.schema.json +5 -5
  16. package/configs/schemas/fileBasedSchemas/servicesFile.schema.json +5 -5
  17. package/configs/schemas/fileBasedSchemas/uiComponentsFile.schema.json +5 -5
  18. package/configs/schemas/fileBasedSchemas/workspacesFile.schema.json +5 -5
  19. package/configs/schemas/finsemble.schema.json +4006 -4006
  20. package/dist/FSBL.js +1 -1
  21. package/dist/clients/Interop/FinsembleDesktopAgent.md +154 -154
  22. package/dist/clients/Interop/tsconfig.json +7 -7
  23. package/dist/clients/Startup/README.md +28 -28
  24. package/dist/clients/dragAndDropAssets/dragAndDropScrim.css +54 -54
  25. package/dist/clients/dragAndDropAssets/ff-delete-circle.svg +10 -10
  26. package/dist/clients/dragAndDropAssets/ff-share.svg +13 -13
  27. package/dist/components/system/notification/ff-close.svg +14 -14
  28. package/dist/components/system/notification/finsemble_logo_white.svg +15 -15
  29. package/dist/components/system/notification/notification.html +155 -155
  30. package/dist/configs/core/config.json +214 -214
  31. package/dist/configs/core/securityPolicies.json +24 -24
  32. package/dist/configs/core/services.json +233 -233
  33. package/dist/configs/schemas/README.md +1 -1
  34. package/dist/configs/schemas/fileBasedSchemas/appdConfigFile.schema.json +5 -5
  35. package/dist/configs/schemas/fileBasedSchemas/applicationConfigFile.schema.json +5 -5
  36. package/dist/configs/schemas/fileBasedSchemas/componentsFile.schema.json +5 -5
  37. package/dist/configs/schemas/fileBasedSchemas/coreConfigFile.schema.json +5 -5
  38. package/dist/configs/schemas/fileBasedSchemas/dashbarFile.schema.json +5 -5
  39. package/dist/configs/schemas/fileBasedSchemas/manifestFile.schema.json +5 -5
  40. package/dist/configs/schemas/fileBasedSchemas/securityPoliciesFile.schema.json +5 -5
  41. package/dist/configs/schemas/fileBasedSchemas/servicesFile.schema.json +5 -5
  42. package/dist/configs/schemas/fileBasedSchemas/uiComponentsFile.schema.json +5 -5
  43. package/dist/configs/schemas/fileBasedSchemas/workspacesFile.schema.json +5 -5
  44. package/dist/configs/schemas/finsemble.schema.json +4006 -4006
  45. package/dist/finsemble-javascript-adapter.js +1 -1
  46. package/dist/index.js +1 -1
  47. package/dist/javascript-adapter-example-app.html +37 -37
  48. package/dist/services/Interop/DevTools.tsx +71 -71
  49. package/dist/services/Interop/Interop.html +15 -15
  50. package/dist/services/Interop/InteropService.js +1 -1
  51. package/dist/services/Interop/InteropService.md +148 -148
  52. package/dist/services/Interop/InteropServiceUI.css +12 -12
  53. package/dist/services/Interop/InteropServiceUI.js +1 -1
  54. package/dist/services/Interop/InteropServiceUI.tsx +39 -39
  55. package/dist/services/Interop/devtoolsEnhancer.tsx +63 -63
  56. package/dist/services/Interop/tsconfig.json +7 -7
  57. package/dist/services/ServiceTemplate.md +39 -39
  58. package/dist/services/assimilation/assimilation.html +18 -18
  59. package/dist/services/assimilation/assimilationService.js +1 -1
  60. package/dist/services/authentication/authentication.html +17 -17
  61. package/dist/services/authentication/authenticationService.js +1 -1
  62. package/dist/services/authentication/dialogSignOn.html +199 -199
  63. package/dist/services/config/config.html +17 -17
  64. package/dist/services/config/configService.js +1 -1
  65. package/dist/services/dataStore/dataStore.html +18 -18
  66. package/dist/services/dataStore/dataStoreService.js +1 -1
  67. package/dist/services/hotkeys/hotkeys.html +18 -18
  68. package/dist/services/hotkeys/hotkeysService.js +1 -1
  69. package/dist/services/linker/linker.html +18 -18
  70. package/dist/services/linker/linkerService.js +1 -1
  71. package/dist/services/logger/logger.html +18 -18
  72. package/dist/services/logger/loggerService.js +1 -1
  73. package/dist/services/logger/loggerUI.js +1 -1
  74. package/dist/services/logger/src/app.css +860 -860
  75. package/dist/services/logger/src/components/Views/Logs/rightPanel/consoleView.css +379 -379
  76. package/dist/services/logger/src/components/objectInspector/README.md +1 -1
  77. package/dist/services/notification/notification.html +11 -11
  78. package/dist/services/notification/notificationService.js +1 -1
  79. package/dist/services/preferences/preferencesService.js +1 -1
  80. package/dist/services/router/router.html +18 -18
  81. package/dist/services/router/routerService.js +1 -1
  82. package/dist/services/search/search.html +17 -17
  83. package/dist/services/search/searchService.js +1 -1
  84. package/dist/services/storage/adapters/instrumentedIndexedDBAdapter.js +1 -1
  85. package/dist/services/storage/storage.html +17 -17
  86. package/dist/services/storage/storageService.js +1 -1
  87. package/dist/services/systemManager/bootTasks/testTasks/_aReadMe.md +119 -119
  88. package/dist/services/systemManager/systemManager.html +24 -24
  89. package/dist/services/systemManager/systemManager.js +1 -1
  90. package/dist/services/window/Docking/GroupRequirements.md +18 -18
  91. package/dist/services/window/Splintering/SplinterAgentSlave.html +13 -13
  92. package/dist/services/window/Splintering/SplinterAgentSlave.js +1 -1
  93. package/dist/services/window/Splintering/Splintering.md +118 -118
  94. package/dist/services/window/StackedWindowManager/StackRequirements.md +23 -23
  95. package/dist/services/window/WindowBehaviorRequirements.md +25 -25
  96. package/dist/services/window/windowService.html +10 -10
  97. package/dist/services/window/windowService.js +1 -1
  98. package/dist/services/workspace/dev-docs/importExportFormat.md +51 -51
  99. package/dist/services/workspace/dev-docs/remotelyPersistedWorkspaces.md +62 -62
  100. package/dist/services/workspace/workspace.html +18 -18
  101. package/dist/services/workspace/workspace.schema.json +48 -48
  102. package/dist/services/workspace/workspaceService.js +1 -1
  103. package/package.json +1 -1
  104. package/tsconfig.json +23 -23
  105. package/types/index.d.ts +40 -55
  106. package/types/index.tsbuildinfo +1 -1
  107. package/types.tsconfig.json +15 -15
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see loggerUI.js.LICENSE.txt */
2
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,(function(){return(()=>{var e={57664:(e,t,n)=>{"use strict";function r(e,...t){return(...n)=>e(...t,...n)}function i(e){return function(...t){var n=t.pop();return e.call(this,t,n)}}n.r(t),n.d(t,{default:()=>pt,apply:()=>r,applyEach:()=>L,applyEachSeries:()=>A,asyncify:()=>c,auto:()=>P,autoInject:()=>B,cargo:()=>G,cargoQueue:()=>$,compose:()=>K,concat:()=>Q,concatLimit:()=>J,concatSeries:()=>X,constant:()=>ee,detect:()=>ne,detectLimit:()=>re,detectSeries:()=>ie,dir:()=>ae,doUntil:()=>le,doWhilst:()=>se,each:()=>ce,eachLimit:()=>de,eachOf:()=>k,eachOfLimit:()=>x,eachOfSeries:()=>R,eachSeries:()=>fe,ensureAsync:()=>he,every:()=>pe,everyLimit:()=>ge,everySeries:()=>me,filter:()=>be,filterLimit:()=>_e,filterSeries:()=>Se,forever:()=>Ce,groupBy:()=>Ee,groupByLimit:()=>xe,groupBySeries:()=>Te,log:()=>ke,map:()=>O,mapLimit:()=>Z,mapSeries:()=>I,mapValues:()=>Le,mapValuesLimit:()=>Oe,mapValuesSeries:()=>Re,memoize:()=>Ie,nextTick:()=>Ae,parallel:()=>Ne,parallelLimit:()=>Pe,priorityQueue:()=>je,queue:()=>De,race:()=>Be,reduce:()=>q,reduceRight:()=>He,reflect:()=>Ue,reflectAll:()=>Ve,reject:()=>$e,rejectLimit:()=>qe,rejectSeries:()=>Ye,retry:()=>Ze,retryable:()=>Qe,seq:()=>Y,series:()=>Xe,setImmediate:()=>u,some:()=>et,someLimit:()=>tt,someSeries:()=>nt,sortBy:()=>rt,timeout:()=>it,times:()=>at,timesLimit:()=>ot,timesSeries:()=>st,transform:()=>lt,tryEach:()=>ut,unmemoize:()=>ct,until:()=>ft,waterfall:()=>ht,whilst:()=>dt,all:()=>pe,allLimit:()=>ge,allSeries:()=>me,any:()=>et,anyLimit:()=>tt,anySeries:()=>nt,find:()=>ne,findLimit:()=>re,findSeries:()=>ie,flatMap:()=>Q,flatMapLimit:()=>J,flatMapSeries:()=>X,forEach:()=>ce,forEachSeries:()=>fe,forEachLimit:()=>de,forEachOf:()=>k,forEachOfSeries:()=>R,forEachOfLimit:()=>x,inject:()=>q,foldl:()=>q,foldr:()=>He,select:()=>be,selectLimit:()=>_e,selectSeries:()=>Se,wrapSync:()=>c,during:()=>dt,doDuring:()=>se});var o="function"==typeof setImmediate&&setImmediate,a="object"==typeof process&&"function"==typeof process.nextTick;function s(e){setTimeout(e,0)}function l(e){return(t,...n)=>e((()=>t(...n)))}var u=l(o?setImmediate:a?process.nextTick:s);function c(e){return h(e)?function(...t){const n=t.pop();return d(e.apply(this,t),n)}:i((function(t,n){var r;try{r=e.apply(this,t)}catch(e){return n(e)}if(r&&"function"==typeof r.then)return d(r,n);n(null,r)}))}function d(e,t){return e.then((e=>{f(t,null,e)}),(e=>{f(t,e&&e.message?e:new Error(e))}))}function f(e,t,n){try{e(t,n)}catch(e){u((e=>{throw e}),e)}}function h(e){return"AsyncFunction"===e[Symbol.toStringTag]}function p(e){if("function"!=typeof e)throw new Error("expected a function");return h(e)?c(e):e}function g(e,t=e.length){if(!t)throw new Error("arity is undefined");return function(...n){return"function"==typeof n[t-1]?e.apply(this,n):new Promise(((r,i)=>{n[t-1]=(e,...t)=>{if(e)return i(e);r(t.length>1?t:t[0])},e.apply(this,n)}))}}function m(e){return function(t,...n){return g((function(r){var i=this;return e(t,((e,t)=>{p(e).apply(i,n.concat(t))}),r)}))}}function v(e,t,n,r){t=t||[];var i=[],o=0,a=p(n);return e(t,((e,t,n)=>{var r=o++;a(e,((e,t)=>{i[r]=t,n(e)}))}),(e=>{r(e,i)}))}function y(e){return e&&"number"==typeof e.length&&e.length>=0&&e.length%1==0}const w={};function b(e){function t(...t){if(null!==e){var n=e;e=null,n.apply(this,t)}}return Object.assign(t,e),t}function _(e){return function(...t){if(null===e)throw new Error("Callback was already called.");var n=e;e=null,n.apply(this,t)}}function S(e,t,n,r){let i=!1,o=!1,a=!1,s=0,l=0;function u(){s>=t||a||i||(a=!0,e.next().then((({value:e,done:t})=>{if(!o&&!i){if(a=!1,t)return i=!0,void(s<=0&&r(null));s++,n(e,l,c),l++,u()}})).catch(d))}function c(e,t){if(s-=1,!o)return e?d(e):!1===e?(i=!0,void(o=!0)):t===w||i&&s<=0?(i=!0,r(null)):void u()}function d(e){o||(a=!1,i=!0,r(e))}u()}var C=e=>(t,n,r)=>{if(r=b(r),e<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!t)return r(null);if("AsyncGenerator"===t[Symbol.toStringTag])return S(t,e,n,r);if(function(e){return"function"==typeof e[Symbol.asyncIterator]}(t))return S(t[Symbol.asyncIterator](),e,n,r);var i=function(e){if(y(e))return function(e){var t=-1,n=e.length;return function(){return++t<n?{value:e[t],key:t}:null}}(e);var t,n,r,i,o=function(e){return e[Symbol.iterator]&&e[Symbol.iterator]()}(e);return o?function(e){var t=-1;return function(){var n=e.next();return n.done?null:(t++,{value:n.value,key:t})}}(o):(n=(t=e)?Object.keys(t):[],r=-1,i=n.length,function(){var e=n[++r];return r<i?{value:t[e],key:e}:null})}(t),o=!1,a=!1,s=0,l=!1;function u(e,t){if(!a)if(s-=1,e)o=!0,r(e);else if(!1===e)o=!0,a=!0;else{if(t===w||o&&s<=0)return o=!0,r(null);l||c()}}function c(){for(l=!0;s<e&&!o;){var t=i();if(null===t)return o=!0,void(s<=0&&r(null));s+=1,n(t.value,t.key,_(u))}l=!1}c()},x=g((function(e,t,n,r){return C(t)(e,p(n),r)}),4);function E(e,t,n){n=b(n);var r=0,i=0,{length:o}=e,a=!1;function s(e,t){!1===e&&(a=!0),!0!==a&&(e?n(e):++i!==o&&t!==w||n(null))}for(0===o&&n(null);r<o;r++)t(e[r],r,_(s))}function T(e,t,n){return x(e,1/0,t,n)}var k=g((function(e,t,n){return(y(e)?E:T)(e,p(t),n)}),3),O=g((function(e,t,n){return v(k,e,t,n)}),3),L=m(O),R=g((function(e,t,n){return x(e,1,t,n)}),3),I=g((function(e,t,n){return v(R,e,t,n)}),3),A=m(I);const M=Symbol("promiseCallback");function N(){let e,t;function n(n,...r){if(n)return t(n);e(r.length>1?r:r[0])}return n[M]=new Promise(((n,r)=>{e=n,t=r})),n}function P(e,t,n){"number"!=typeof t&&(n=t,t=null),n=b(n||N());var r=Object.keys(e).length;if(!r)return n(null);t||(t=r);var i={},o=0,a=!1,s=!1,l=Object.create(null),u=[],c=[],d={};function f(e,t){u.push((()=>function(e,t){if(!s){var r=_(((t,...r)=>{if(o--,!1!==t)if(r.length<2&&([r]=r),t){var u={};if(Object.keys(i).forEach((e=>{u[e]=i[e]})),u[e]=r,s=!0,l=Object.create(null),a)return;n(t,u)}else i[e]=r,(l[e]||[]).forEach((e=>e())),h();else a=!0}));o++;var u=p(t[t.length-1]);t.length>1?u(i,r):u(r)}}(e,t)))}function h(){if(!a){if(0===u.length&&0===o)return n(null,i);for(;u.length&&o<t;)u.shift()()}}function g(t){var n=[];return Object.keys(e).forEach((r=>{const i=e[r];Array.isArray(i)&&i.indexOf(t)>=0&&n.push(r)})),n}return Object.keys(e).forEach((t=>{var n=e[t];if(!Array.isArray(n))return f(t,[n]),void c.push(t);var r=n.slice(0,n.length-1),i=r.length;if(0===i)return f(t,n),void c.push(t);d[t]=i,r.forEach((o=>{if(!e[o])throw new Error("async.auto task `"+t+"` has a non-existent dependency `"+o+"` in "+r.join(", "));var a,s;(s=l[a=o])||(s=l[a]=[]),s.push((()=>{0==--i&&f(t,n)}))}))})),function(){for(var e=0;c.length;)e++,g(c.pop()).forEach((e=>{0==--d[e]&&c.push(e)}));if(e!==r)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),h(),n[M]}var D=/^(?:async\s+)?(?:function)?\s*\w*\s*\(\s*([^)]+)\s*\)(?:\s*{)/,F=/^(?:async\s+)?\(?\s*([^)=]+)\s*\)?(?:\s*=>)/,W=/,/,z=/(=.+)?(\s*)$/,j=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;function B(e,t){var n={};return Object.keys(e).forEach((t=>{var r,i=e[t],o=h(i),a=!o&&1===i.length||o&&0===i.length;if(Array.isArray(i))r=[...i],i=r.pop(),n[t]=r.concat(r.length>0?s:i);else if(a)n[t]=i;else{if(r=function(e){const t=e.toString().replace(j,"");let n=t.match(D);if(n||(n=t.match(F)),!n)throw new Error("could not parse args in autoInject\nSource:\n"+t);let[,r]=n;return r.replace(/\s/g,"").split(W).map((e=>e.replace(z,"").trim()))}(i),0===i.length&&!o&&0===r.length)throw new Error("autoInject task functions require explicit parameters.");o||r.pop(),n[t]=r.concat(s)}function s(e,t){var n=r.map((t=>e[t]));n.push(t),p(i)(...n)}})),P(n,t)}class H{constructor(){this.head=this.tail=null,this.length=0}removeLink(e){return e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev,e.prev=e.next=null,this.length-=1,e}empty(){for(;this.head;)this.shift();return this}insertAfter(e,t){t.prev=e,t.next=e.next,e.next?e.next.prev=t:this.tail=t,e.next=t,this.length+=1}insertBefore(e,t){t.prev=e.prev,t.next=e,e.prev?e.prev.next=t:this.head=t,e.prev=t,this.length+=1}unshift(e){this.head?this.insertBefore(this.head,e):U(this,e)}push(e){this.tail?this.insertAfter(this.tail,e):U(this,e)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var e=this.head;e;)yield e.data,e=e.next}remove(e){for(var t=this.head;t;){var{next:n}=t;e(t)&&this.removeLink(t),t=n}return this}}function U(e,t){e.length=1,e.head=e.tail=t}function V(e,t,n){if(null==t)t=1;else if(0===t)throw new RangeError("Concurrency must not be zero");var r=p(e),i=0,o=[];const a={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function s(e,t){return e?t?void(a[e]=a[e].filter((e=>e!==t))):a[e]=[]:Object.keys(a).forEach((e=>a[e]=[]))}function l(e,...t){a[e].forEach((e=>e(...t)))}var c=!1;function d(e,t,n,r){if(null!=r&&"function"!=typeof r)throw new Error("task callback must be a function");var i,o;function a(e,...t){return e?n?o(e):i():t.length<=1?i(t[0]):void i(t)}v.started=!0;var s={data:e,callback:n?a:r||a};if(t?v._tasks.unshift(s):v._tasks.push(s),c||(c=!0,u((()=>{c=!1,v.process()}))),n||!r)return new Promise(((e,t)=>{i=e,o=t}))}function f(e){return function(t,...n){i-=1;for(var r=0,a=e.length;r<a;r++){var s=e[r],u=o.indexOf(s);0===u?o.shift():u>0&&o.splice(u,1),s.callback(t,...n),null!=t&&l("error",t,s.data)}i<=v.concurrency-v.buffer&&l("unsaturated"),v.idle()&&l("drain"),v.process()}}function h(e){return!(0!==e.length||!v.idle()||(u((()=>l("drain"))),0))}const g=e=>t=>{if(!t)return new Promise(((t,n)=>{!function(e,r){const i=(...r)=>{s(e,i),((e,r)=>{if(e)return n(e);t(r)})(...r)};a[e].push(i)}(e)}));s(e),function(e,t){a[e].push(t)}(e,t)};var m=!1,v={_tasks:new H,*[Symbol.iterator](){yield*v._tasks[Symbol.iterator]()},concurrency:t,payload:n,buffer:t/4,started:!1,paused:!1,push(e,t){if(Array.isArray(e)){if(h(e))return;return e.map((e=>d(e,!1,!1,t)))}return d(e,!1,!1,t)},pushAsync(e,t){if(Array.isArray(e)){if(h(e))return;return e.map((e=>d(e,!1,!0,t)))}return d(e,!1,!0,t)},kill(){s(),v._tasks.empty()},unshift(e,t){if(Array.isArray(e)){if(h(e))return;return e.map((e=>d(e,!0,!1,t)))}return d(e,!0,!1,t)},unshiftAsync(e,t){if(Array.isArray(e)){if(h(e))return;return e.map((e=>d(e,!0,!0,t)))}return d(e,!0,!0,t)},remove(e){v._tasks.remove(e)},process(){if(!m){for(m=!0;!v.paused&&i<v.concurrency&&v._tasks.length;){var e=[],t=[],n=v._tasks.length;v.payload&&(n=Math.min(n,v.payload));for(var a=0;a<n;a++){var s=v._tasks.shift();e.push(s),o.push(s),t.push(s.data)}i+=1,0===v._tasks.length&&l("empty"),i===v.concurrency&&l("saturated");var u=_(f(e));r(t,u)}m=!1}},length:()=>v._tasks.length,running:()=>i,workersList:()=>o,idle:()=>v._tasks.length+i===0,pause(){v.paused=!0},resume(){!1!==v.paused&&(v.paused=!1,u(v.process))}};return Object.defineProperties(v,{saturated:{writable:!1,value:g("saturated")},unsaturated:{writable:!1,value:g("unsaturated")},empty:{writable:!1,value:g("empty")},drain:{writable:!1,value:g("drain")},error:{writable:!1,value:g("error")}}),v}function G(e,t){return V(e,1,t)}function $(e,t,n){return V(e,t,n)}var q=g((function(e,t,n,r){r=b(r);var i=p(n);return R(e,((e,n,r)=>{i(t,e,((e,n)=>{t=n,r(e)}))}),(e=>r(e,t)))}),4);function Y(...e){var t=e.map(p);return function(...e){var n=this,r=e[e.length-1];return"function"==typeof r?e.pop():r=N(),q(t,e,((e,t,r)=>{t.apply(n,e.concat(((e,...t)=>{r(e,t)})))}),((e,t)=>r(e,...t))),r[M]}}function K(...e){return Y(...e.reverse())}var Z=g((function(e,t,n,r){return v(C(t),e,n,r)}),4),J=g((function(e,t,n,r){var i=p(n);return Z(e,t,((e,t)=>{i(e,((e,...n)=>e?t(e):t(e,n)))}),((e,t)=>{for(var n=[],i=0;i<t.length;i++)t[i]&&(n=n.concat(...t[i]));return r(e,n)}))}),4),Q=g((function(e,t,n){return J(e,1/0,t,n)}),3),X=g((function(e,t,n){return J(e,1,t,n)}),3);function ee(...e){return function(...t){return t.pop()(null,...e)}}function te(e,t){return(n,r,i,o)=>{var a,s=!1;const l=p(i);n(r,((n,r,i)=>{l(n,((r,o)=>r||!1===r?i(r):e(o)&&!a?(s=!0,a=t(!0,n),i(null,w)):void i()))}),(e=>{if(e)return o(e);o(null,s?a:t(!1))}))}}var ne=g((function(e,t,n){return te((e=>e),((e,t)=>t))(k,e,t,n)}),3),re=g((function(e,t,n,r){return te((e=>e),((e,t)=>t))(C(t),e,n,r)}),4),ie=g((function(e,t,n){return te((e=>e),((e,t)=>t))(C(1),e,t,n)}),3);function oe(e){return(t,...n)=>p(t)(...n,((t,...n)=>{"object"==typeof console&&(t?console.error&&console.error(t):console[e]&&n.forEach((t=>console[e](t))))}))}var ae=oe("dir"),se=g((function(e,t,n){n=_(n);var r,i=p(e),o=p(t);function a(e,...t){if(e)return n(e);!1!==e&&(r=t,o(...t,s))}function s(e,t){return e?n(e):!1!==e?t?void i(a):n(null,...r):void 0}return s(null,!0)}),3);function le(e,t,n){const r=p(t);return se(e,((...e)=>{const t=e.pop();r(...e,((e,n)=>t(e,!n)))}),n)}function ue(e){return(t,n,r)=>e(t,r)}var ce=g((function(e,t,n){return k(e,ue(p(t)),n)}),3),de=g((function(e,t,n,r){return C(t)(e,ue(p(n)),r)}),4),fe=g((function(e,t,n){return de(e,1,t,n)}),3);function he(e){return h(e)?e:function(...t){var n=t.pop(),r=!0;t.push(((...e)=>{r?u((()=>n(...e))):n(...e)})),e.apply(this,t),r=!1}}var pe=g((function(e,t,n){return te((e=>!e),(e=>!e))(k,e,t,n)}),3),ge=g((function(e,t,n,r){return te((e=>!e),(e=>!e))(C(t),e,n,r)}),4),me=g((function(e,t,n){return te((e=>!e),(e=>!e))(R,e,t,n)}),3);function ve(e,t,n,r){var i=new Array(t.length);e(t,((e,t,r)=>{n(e,((e,n)=>{i[t]=!!n,r(e)}))}),(e=>{if(e)return r(e);for(var n=[],o=0;o<t.length;o++)i[o]&&n.push(t[o]);r(null,n)}))}function ye(e,t,n,r){var i=[];e(t,((e,t,r)=>{n(e,((n,o)=>{if(n)return r(n);o&&i.push({index:t,value:e}),r(n)}))}),(e=>{if(e)return r(e);r(null,i.sort(((e,t)=>e.index-t.index)).map((e=>e.value)))}))}function we(e,t,n,r){return(y(t)?ve:ye)(e,t,p(n),r)}var be=g((function(e,t,n){return we(k,e,t,n)}),3),_e=g((function(e,t,n,r){return we(C(t),e,n,r)}),4),Se=g((function(e,t,n){return we(R,e,t,n)}),3),Ce=g((function(e,t){var n=_(t),r=p(he(e));return function e(t){if(t)return n(t);!1!==t&&r(e)}()}),2),xe=g((function(e,t,n,r){var i=p(n);return Z(e,t,((e,t)=>{i(e,((n,r)=>n?t(n):t(n,{key:r,val:e})))}),((e,t)=>{for(var n={},{hasOwnProperty:i}=Object.prototype,o=0;o<t.length;o++)if(t[o]){var{key:a}=t[o],{val:s}=t[o];i.call(n,a)?n[a].push(s):n[a]=[s]}return r(e,n)}))}),4);function Ee(e,t,n){return xe(e,1/0,t,n)}function Te(e,t,n){return xe(e,1,t,n)}var ke=oe("log"),Oe=g((function(e,t,n,r){r=b(r);var i={},o=p(n);return C(t)(e,((e,t,n)=>{o(e,t,((e,r)=>{if(e)return n(e);i[t]=r,n(e)}))}),(e=>r(e,i)))}),4);function Le(e,t,n){return Oe(e,1/0,t,n)}function Re(e,t,n){return Oe(e,1,t,n)}function Ie(e,t=(e=>e)){var n=Object.create(null),r=Object.create(null),o=p(e),a=i(((e,i)=>{var a=t(...e);a in n?u((()=>i(null,...n[a]))):a in r?r[a].push(i):(r[a]=[i],o(...e,((e,...t)=>{e||(n[a]=t);var i=r[a];delete r[a];for(var o=0,s=i.length;o<s;o++)i[o](e,...t)})))}));return a.memo=n,a.unmemoized=e,a}var Ae=l(a?process.nextTick:o?setImmediate:s),Me=g(((e,t,n)=>{var r=y(t)?[]:{};e(t,((e,t,n)=>{p(e)(((e,...i)=>{i.length<2&&([i]=i),r[t]=i,n(e)}))}),(e=>n(e,r)))}),3);function Ne(e,t){return Me(k,e,t)}function Pe(e,t,n){return Me(C(t),e,n)}function De(e,t){var n=p(e);return V(((e,t)=>{n(e[0],t)}),t,1)}class Fe{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(e){let t;for(;e>0&&ze(this.heap[e],this.heap[t=We(e)]);){let n=this.heap[e];this.heap[e]=this.heap[t],this.heap[t]=n,e=t}}percDown(e){let t;for(;(t=1+(e<<1))<this.heap.length&&(t+1<this.heap.length&&ze(this.heap[t+1],this.heap[t])&&(t+=1),!ze(this.heap[e],this.heap[t]));){let n=this.heap[e];this.heap[e]=this.heap[t],this.heap[t]=n,e=t}}push(e){e.pushCount=++this.pushCount,this.heap.push(e),this.percUp(this.heap.length-1)}unshift(e){return this.heap.push(e)}shift(){let[e]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),e}toArray(){return[...this]}*[Symbol.iterator](){for(let e=0;e<this.heap.length;e++)yield this.heap[e].data}remove(e){let t=0;for(let n=0;n<this.heap.length;n++)e(this.heap[n])||(this.heap[t]=this.heap[n],t++);this.heap.splice(t);for(let e=We(this.heap.length-1);e>=0;e--)this.percDown(e);return this}}function We(e){return(e+1>>1)-1}function ze(e,t){return e.priority!==t.priority?e.priority<t.priority:e.pushCount<t.pushCount}function je(e,t){var n=De(e,t);return n._tasks=new Fe,n.push=function(e,t=0,r=(()=>{})){if("function"!=typeof r)throw new Error("task callback must be a function");if(n.started=!0,Array.isArray(e)||(e=[e]),0===e.length&&n.idle())return u((()=>n.drain()));for(var i=0,o=e.length;i<o;i++){var a={data:e[i],priority:t,callback:r};n._tasks.push(a)}u(n.process)},delete n.unshift,n}var Be=g((function(e,t){if(t=b(t),!Array.isArray(e))return t(new TypeError("First argument to race must be an array of functions"));if(!e.length)return t();for(var n=0,r=e.length;n<r;n++)p(e[n])(t)}),2);function He(e,t,n,r){var i=[...e].reverse();return q(i,t,n,r)}function Ue(e){var t=p(e);return i((function(e,n){return e.push(((e,...t)=>{let r={};if(e&&(r.error=e),t.length>0){var i=t;t.length<=1&&([i]=t),r.value=i}n(null,r)})),t.apply(this,e)}))}function Ve(e){var t;return Array.isArray(e)?t=e.map(Ue):(t={},Object.keys(e).forEach((n=>{t[n]=Ue.call(this,e[n])}))),t}function Ge(e,t,n,r){const i=p(n);return we(e,t,((e,t)=>{i(e,((e,n)=>{t(e,!n)}))}),r)}var $e=g((function(e,t,n){return Ge(k,e,t,n)}),3),qe=g((function(e,t,n,r){return Ge(C(t),e,n,r)}),4),Ye=g((function(e,t,n){return Ge(R,e,t,n)}),3);function Ke(e){return function(){return e}}function Ze(e,t,n){var r={times:5,intervalFunc:Ke(0)};if(arguments.length<3&&"function"==typeof e?(n=t||N(),t=e):(Je(r,e),n=n||N()),"function"!=typeof t)throw new Error("Invalid arguments for async.retry");var i=p(t),o=1;function a(){i(((e,...t)=>{!1!==e&&(e&&o++<r.times&&("function"!=typeof r.errorFilter||r.errorFilter(e))?setTimeout(a,r.intervalFunc(o-1)):n(e,...t))}))}return a(),n[M]}function Je(e,t){if("object"==typeof t)e.times=+t.times||5,e.intervalFunc="function"==typeof t.interval?t.interval:Ke(+t.interval||0),e.errorFilter=t.errorFilter;else{if("number"!=typeof t&&"string"!=typeof t)throw new Error("Invalid arguments for async.retry");e.times=+t||5}}function Qe(e,t){t||(t=e,e=null);let n=e&&e.arity||t.length;h(t)&&(n+=1);var r=p(t);return i(((t,i)=>{function o(e){r(...t,e)}return(t.length<n-1||null==i)&&(t.push(i),i=N()),e?Ze(e,o,i):Ze(o,i),i[M]}))}function Xe(e,t){return Me(R,e,t)}var et=g((function(e,t,n){return te(Boolean,(e=>e))(k,e,t,n)}),3),tt=g((function(e,t,n,r){return te(Boolean,(e=>e))(C(t),e,n,r)}),4),nt=g((function(e,t,n){return te(Boolean,(e=>e))(R,e,t,n)}),3),rt=g((function(e,t,n){var r=p(t);return O(e,((e,t)=>{r(e,((n,r)=>{if(n)return t(n);t(n,{value:e,criteria:r})}))}),((e,t)=>{if(e)return n(e);n(null,t.sort(i).map((e=>e.value)))}));function i(e,t){var n=e.criteria,r=t.criteria;return n<r?-1:n>r?1:0}}),3);function it(e,t,n){var r=p(e);return i(((i,o)=>{var a,s=!1;i.push(((...e)=>{s||(o(...e),clearTimeout(a))})),a=setTimeout((function(){var t=e.name||"anonymous",r=new Error('Callback function "'+t+'" timed out.');r.code="ETIMEDOUT",n&&(r.info=n),s=!0,o(r)}),t),r(...i)}))}function ot(e,t,n,r){var i=p(n);return Z(function(e){for(var t=Array(e);e--;)t[e]=e;return t}(e),t,i,r)}function at(e,t,n){return ot(e,1/0,t,n)}function st(e,t,n){return ot(e,1,t,n)}function lt(e,t,n,r){arguments.length<=3&&"function"==typeof t&&(r=n,n=t,t=Array.isArray(e)?[]:{}),r=b(r||N());var i=p(n);return k(e,((e,n,r)=>{i(t,e,n,r)}),(e=>r(e,t))),r[M]}var ut=g((function(e,t){var n,r=null;return fe(e,((e,t)=>{p(e)(((e,...i)=>{if(!1===e)return t(e);i.length<2?[n]=i:n=i,r=e,t(e?null:{})}))}),(()=>t(r,n)))}));function ct(e){return(...t)=>(e.unmemoized||e)(...t)}var dt=g((function(e,t,n){n=_(n);var r=p(t),i=p(e),o=[];function a(e,...t){if(e)return n(e);o=t,!1!==e&&i(s)}function s(e,t){return e?n(e):!1!==e?t?void r(a):n(null,...o):void 0}return i(s)}),3);function ft(e,t,n){const r=p(e);return dt((e=>r(((t,n)=>e(t,!n)))),t,n)}var ht=g((function(e,t){if(t=b(t),!Array.isArray(e))return t(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return t();var n=0;function r(t){p(e[n++])(...t,_(i))}function i(i,...o){if(!1!==i)return i||n===e.length?t(i,...o):void r(o)}r([])}));const pt={apply:r,applyEach:L,applyEachSeries:A,asyncify:c,auto:P,autoInject:B,cargo:G,cargoQueue:$,compose:K,concat:Q,concatLimit:J,concatSeries:X,constant:ee,detect:ne,detectLimit:re,detectSeries:ie,dir:ae,doUntil:le,doWhilst:se,each:ce,eachLimit:de,eachOf:k,eachOfLimit:x,eachOfSeries:R,eachSeries:fe,ensureAsync:he,every:pe,everyLimit:ge,everySeries:me,filter:be,filterLimit:_e,filterSeries:Se,forever:Ce,groupBy:Ee,groupByLimit:xe,groupBySeries:Te,log:ke,map:O,mapLimit:Z,mapSeries:I,mapValues:Le,mapValuesLimit:Oe,mapValuesSeries:Re,memoize:Ie,nextTick:Ae,parallel:Ne,parallelLimit:Pe,priorityQueue:je,queue:De,race:Be,reduce:q,reduceRight:He,reflect:Ue,reflectAll:Ve,reject:$e,rejectLimit:qe,rejectSeries:Ye,retry:Ze,retryable:Qe,seq:Y,series:Xe,setImmediate:u,some:et,someLimit:tt,someSeries:nt,sortBy:rt,timeout:it,times:at,timesLimit:ot,timesSeries:st,transform:lt,tryEach:ut,unmemoize:ct,until:ft,waterfall:ht,whilst:dt,all:pe,allLimit:ge,allSeries:me,any:et,anyLimit:tt,anySeries:nt,find:ne,findLimit:re,findSeries:ie,flatMap:Q,flatMapLimit:J,flatMapSeries:X,forEach:ce,forEachSeries:fe,forEachLimit:de,forEachOf:k,forEachOfSeries:R,forEachOfLimit:x,inject:q,foldl:q,foldr:He,select:be,selectLimit:_e,selectSeries:Se,wrapSync:c,during:dt,doDuring:se}},33998:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigUtilInstance=void 0;var r=a(n(72551)),i=n(51742),o=a(n(53059));function a(e){return e&&e.__esModule?e:{default:e}}const s=new function(){const e=this;this.resolveConfigVariables=function(e,t){let n=0,i=0,o=!0;function a(e){const t=e.split(/[/\\:?=&\s]/);for(let n=0;n<t.length;n++)if("$"===t[n][0]){const i=t[n].substring(1);let a=s(i);if(void 0!==a){const s=e.replace(t[n],a);r.default.system.verbose("forceObjectsToLogger","ConfigUtil.resolveConfigVariables:resolveString configString",t[n],i,a,"old value=",e,"value=",s),o=!0,e=s}}return e}function s(t){let n=e[t];return void 0===n&&(e.custom?(n=e.custom[t],void 0===n&&r.default.system.warn("ConfigUtil.resolveString",`Missing [${t}] variable from finsemble.custom configuration object`)):r.default.system.error("ConfigUtil.resolveString",`Missing "custom" node from finsemble configuration - unable to get variable resoution for variable: ${t}`)),n}function l(e,t,n){r.default.system.verbose("forceObjectsToLogger","resolveArray","pass",t,"recursionLevel",n,"configArray:",e);for(let r=0;r<e.length;r++){const i=e[r];"string"==typeof i&&i.indexOf("$")>-1?e[r]=a(i):i instanceof Array?l(i,t,n+1):"object"==typeof i&&u(i,t,n+1)}}function u(e,t,n){e=e||{},r.default.system.verbose("forceObjectsToLogger","ConfigUtil.resolveConfigVariables:resolveObject","pass",t,"recursionLevel",n,"configObject:",e),Object.keys(e).forEach((r=>{const i=e[r];"string"==typeof i&&i.indexOf("$")>-1?e[r]=a(i):i instanceof Array?l(i,t,n+1):"object"==typeof i&&u(i,t,n+1)}))}for(;o&&i++<100;)o=!1,u(t,++n,1);i>=100&&r.default.system.error("forceObjectsToLogger","resolveConfigVariables exceeded maximum passes so continuing -- probably a recursive macro definitions. Look in this config for unresolved macro variables",e)},this.getExpandedRawManifest=function(t,n){function o(t,a,s){r.default.system.debug("forceObjectsToLogger","ConfigUtil.getExpandedRawManifest:getRawManifest",a,s),a.getManifest((n=>{r.default.system.debug("forceObjectsToLogger","ConfigUtil.getExpandedRawManifest:getExpandedRawManifest: manifest retrieved. Pre-variable resolution",n),e.resolveConfigVariables(n.finsemble,n.finsemble),r.default.system.debug("forceObjectsToLogger","ConfigUtil.getExpandedRawManifest:getExpandedRawManifest:Complete. post-variable resolution",n),t(n)}),(e=>{e&&(r.default.system.error("ConfigUtil.getExpandedRawManifest:application.getManifest:err",e),n&&n()),a.getParentUuid((e=>{const n=i.System.Application.wrap(e);r.default.system.debug("forceObjectsToLogger","uuid",e,"parentApplication",n),s<10?o(t,n,++s):t("could not find manifest in parent applications")}))}))}r.default.system.debug("ConfigUtil.getExpandedRawManifest starting"),i.System.ready((()=>{const e=i.System.Application.getCurrent();o(t,e,1)}))},this.readConfigFile=function(e,t){r.default.system.debug(`fetching ${e}`),fetch(e,{credentials:"include",cache:"no-cache"}).then((e=>e.json())).catch((n=>{t(`Failure importing ${e}: ${n}`,null)})).then((e=>{t(null,e)}))},this.getInitialManifest=function(t){i.System.ready((()=>{i.System.Application.getCurrent().getManifest((n=>{n.finsemble=n.finsemble||{},e.resolveConfigVariables(n.finsemble,n.finsemble),n.finsemble.applicationRoot||r.default.system.error("FATAL ERROR: applicationRoot was not defined in manifest file.");const i=`${n.finsemble.moduleRoot}/configs/core/config.json`;e.readConfigFile(i,((o,a)=>{o?r.default.system.error(`ConfigUtil.getInitialManifest:getCoreConfig:failed importing into finsemble config. $moduleRoot=${n.finsemble.moduleRoot}; Full Path=${i}`,o):(Object.keys(a).forEach((e=>{if("importConfig"===e){n.finsemble.importConfig=n.finsemble.importConfig||[];for(let e=0;e<a.importConfig.length;e++)n.finsemble.importConfig.unshift(a.importConfig[e])}else if("importThirdPartyConfig"===e){n.finsemble.importThirdPartyConfig=n.finsemble.importThirdPartyConfig||[];for(let e=0;e<a.importThirdPartyConfig.length;e++)n.finsemble.importThirdPartyConfig.unshift(a.importThirdPartyConfig[e])}else n.finsemble[e]=a[e]})),e.resolveConfigVariables(n.finsemble,n.finsemble),r.default.system.debug("forceObjectsToLogger","ConfigUtil.getInitialManifest:getCoreConfig:Initial Manifest after variables Resolved",n)),t(n)}))}))}))},this.promptAndSaveJSONToLocalFile=function(e,t){r.default.system.debug("saveJSONToLocalFile",e,t);const n=JSON.stringify(t,null,"\t"),i=`data:application/json;charset=utf-8,${encodeURIComponent(n)}`,o=`${e}.json`,a=document.createElement("a");a.setAttribute("href",i),a.setAttribute("download",o),a.click()},this.configFormatForExport=function(e,t){r.default.system.debug("configFormatForExport starting",e,t);let n=o.default.cloneDeep(t);if("raw"===e);else if("all"===e)delete n.importConfig,delete n.comment;else if("application"===e)delete n.importConfig,delete n.comment,delete n.system,delete n.services;else if("workspace"===e)n={workspace:n};else if("workspaceTemplate"===e){const e={};e[n.name]=n,n={workspaceTemplates:e}}else"services"===e?n=n.services:"components"===e&&(n=n.components);return n},this.getDefault=function(e,t,n){let r=n;if(e){try{const n=t.split(".");let i=e;for(let e=1;e<n.length;e++)i=i[n[e]];r=i}catch(e){r=n}void 0===r&&(r=n)}return r},this.getFile=async function(e,t=Function.prototype){r.default.system.debug(`fetching import ${e}`);let n=null;return await fetch(e,{credentials:"include",cache:"no-cache"}).then((e=>e.json())).catch((n=>{t(`failure importing ${e}: ${n}`,null)})).then((e=>{t(null,e),n=e})),n}};t.ConfigUtilInstance=s},93802:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(5939),i=l(n(72551)),o=l(n(88021)),a=l(n(71879)),s=n(24232);function l(e){return e&&e.__esModule?e:{default:e}}let u;class c extends r.EventEmitter{constructor(e,t,n){if(super(),!n||!n.System)throw new Error("Monitors class requires dependency injection. Ensure that System is being passed in.");({System:u}=n),this.cachedMonitorInfo=null,this.limitedMonitorRefreshQueue=new o.default({concurrency:1}),this.bindAllFunctions(),this.limitedMonitorRefreshQueue.add((()=>this.refreshMonitors(e))),u.addEventListener("monitor-info-changed",(()=>{this.limitedMonitorRefreshQueue.add((()=>this.refreshMonitors(t)))})),u.addEventListener("session-changed",(e=>{e&&("object"!=typeof e||!e.hasOwnProperty("reason")||"unlock"!==e.reason&&"remote-connect"!==e.reason&&"unknown"!==e.reason)||this.limitedMonitorRefreshQueue.add((()=>this.refreshMonitors(t)))}))}bindAllFunctions(){let e=this;for(let t of Object.getOwnPropertyNames(Object.getPrototypeOf(e))){let n=e[t];n instanceof Function&&n!==c&&(e[t]=e[t].bind(e))}}asyncIt(e,t){return t(e),e}rationalizeMonitor(e){e.monitorRect.width=e.monitorRect.right-e.monitorRect.left,e.monitorRect.height=e.monitorRect.bottom-e.monitorRect.top,e.availableRect.width=e.availableRect.right-e.availableRect.left,e.availableRect.height=e.availableRect.bottom-e.availableRect.top}calculateMonitorScale(e,t){return(t.right-t.left)/(e.right-e.left)}monitorInfoIsChanged(e,t){if(!e||!t)return!0;if(e.nonPrimaryMonitors.length!==t.nonPrimaryMonitors.length)return!0;if(!(0,s.checkIfBoundsAreEqual)(e.primaryMonitor.availableRect,t.primaryMonitor.availableRect))return!0;if(!(0,s.checkIfBoundsAreEqual)(e.primaryMonitor.monitorRect,t.primaryMonitor.monitorRect))return!0;e.nonPrimaryMonitors.sort(((e,t)=>e.deviceName>t.deviceName?1:e.deviceName<t.deviceName?-1:0)),t.nonPrimaryMonitors.sort(((e,t)=>e.deviceName>t.deviceName?1:e.deviceName<t.deviceName?-1:0));let n=!1;return e.nonPrimaryMonitors.forEach(((e,r)=>{const i=t.nonPrimaryMonitors[r];(0,s.checkIfBoundsAreEqual)(e.availableRect,i.availableRect)&&(0,s.checkIfBoundsAreEqual)(e.monitorRect,i.monitorRect)||(n=!0)})),n}async refreshMonitors(e=Function.prototype){this.limitedMonitorRefreshQueue.clear();const t=await u.getMonitorInfo();if(!this.monitorInfoIsChanged(this.cachedMonitorInfo,t))return i.default.system.info("Skipped refreshMonitors because monitors do not change."),e(this.allMonitors);this.allMonitors=[];let{primaryMonitor:n}=t;if(Object.entries(n).length){n.whichMonitor="primary",n.position=0,this.allMonitors.push(Object.assign({},n));for(let e=0;e<t.nonPrimaryMonitors.length;e++){let n=t.nonPrimaryMonitors[e];n.whichMonitor=e,n.position=e+1,this.allMonitors.push(n)}for(let e=0;e<this.allMonitors.length;e++){let t=this.allMonitors[e];this.rationalizeMonitor(t)}this.cachedMonitorInfo=(0,a.default)(t),e(this.allMonitors),this.ready=!0,1===this.limitedMonitorRefreshQueue.pending&&this.emit("monitors-changed",{monitors:this.allMonitors})}else i.default.system.info("There is no primary monitor in 'monitorInfo' - the system is still in the process of updating the monitor information. Returning from monitorsAndScaling -> refreshMonitors")}getAllMonitors(e=Function.prototype){return this.ready?this.asyncIt(JSON.parse(JSON.stringify(this.allMonitors)),e):e?void this.refreshMonitors(e):"not ready"}getMonitorFromScaledXY(e,t,n=Function.prototype){return new Promise((r=>{if(!this.ready)return this.refreshMonitors((()=>{this.getMonitorFromScaledXY(e,t,n)})),"not ready";let i=null;for(var o=this.allMonitors,a=0;a<o.length;a++){var s=o[a],{monitorRect:l}=s;if(e>=l.left&&e<l.right&&t>=l.top&&t<l.bottom){i=s;break}}r(i),n(i)}))}getMonitorFromUnscaledXY(e,t,n=Function.prototype){if(!this.ready)return this.refreshMonitors((()=>{this.getMonitorFromUnscaledXY(e,t,n)})),"not ready";for(var r=this.allMonitors,i=0;i<r.length;i++){var o=r[i],a=o.monitor.scaledRect;if(e>=a.left&&e<a.right&&t>=a.top&&t<a.bottom)return this.asyncIt(o,n)}return this.asyncIt(null,n)}async translatePointFromScaled(e,t=Function.prototype){if(!this.ready)return this.refreshMonitors((()=>{this.translatePointFromScaled(e,t)})),"not ready";var n;e.point?({point:n}=e):n=e;var{monitor:r}=e;r||(r=(await this.getMonitorFromScaledXY(n.x,n.y)).data);let i=null;if(r){var o=n.x-r.monitorRect.left,a=n.y-r.monitorRect.top,s=o*r.deviceScaleFactor,l=a*r.deviceScaleFactor;i={x:s+r.monitor.scaledRect.left,y:l+r.monitor.scaledRect.top}}return t(i),Promise.resolve(i)}translatePointToScaled(e,t=Function.prototype){if(!this.ready)return this.refreshMonitors((()=>{this.translatePointToScaled(e,t)})),"not ready";var n;e.point?({point:n}=e):n=e;var r=e.monitor||this.getMonitorFromUnscaledXY(n.x,n.y);if(!r)return this.asyncIt(null,t);var i=n.x-r.monitor.scaledRect.left,o=n.y-r.monitor.scaledRect.top,a=i/r.deviceScaleFactor,s=o/r.deviceScaleFactor,l={x:a+r.monitorRect.left,y:s+r.monitorRect.top};return this.asyncIt(l,t)}async translateRectToScaled(e,t=Function.prototype){let n;if(!this.ready)return this.refreshMonitors((()=>{this.translateRectToScaled(e,t)})),"not ready";var r=this.translatePointToScaled({x:e.left,y:e.top}),i=this.translatePointToScaled({x:e.right,y:e.bottom});return!r&&i&&(n=await this.getMonitorFromScaledXY(i),r=this.translatePointToScaled({monitor:n,point:{x:e.left,y:e.top}})),!i&&r&&(n=await this.getMonitorFromScaledXY(i),i=this.translatePointToScaled({monitor:n,point:{x:e.right,y:e.bottom}})),this.asyncIt({top:r?r.y:null,left:r?r.x:null,bottom:i?i.y:null,right:i?i.x:null,height:r&&i?i.y-r.y:null,width:r&&i?i.x-r.x:null},t)}translateRectFromScaled(e,t=Function.prototype){if(!this.ready)return this.refreshMonitors((()=>{this.translateRectFromScaled(e,t)})),"not ready";var n=this.translatePointFromScaled({x:e.left,y:e.top}),r=this.translatePointFromScaled({x:e.right,y:e.bottom});return!n&&r&&(n=this.translatePointFromScaled({monitor:this.getMonitorFromUnscaledXY(r),point:{x:e.left,y:e.top}})),!r&&n&&(r=this.translatePointFromScaled({monitor:this.getMonitorFromUnscaledXY(n),point:{x:e.right,y:e.bottom}})),this.asyncIt({top:n?n.y:null,left:n?n.x:null,bottom:r?r.y:null,right:r?r.x:null,height:n&&r?r.y-n.y:null,width:n&&r?r.x-n.x:null},t)}}var d=c;t.default=d},21014:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=new function(){let e=3;this.diagLevel=function(){return e},this.setDiagLevel=function(t){e=t},this.validationEnabled=function(){return e>=4}};t.default=n},73699:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(72551)),i=n(33998),o=n(51742),a=s(n(5020));function s(e){return e&&e.__esModule?e:{default:e}}let l=null;var u=new function(){const e={},t={};let s=null;this.getDefaultTemplateURL=function(e){s?setTimeout((()=>{e(s)}),0):(l||(l=n(70010).default),l.getValue({field:"finsemble"},((t,n)=>{s=i.ConfigUtilInstance.getDefault(n,"finsemble.notificationURL",`${n.moduleRoot}/components/system/notification/notification.html`),e(s)})))},this.alert=function(e,t,n,r,i){const o=this;i&&i.url?this.alertInternal(e,t,n,r,i,i.url):this.getDefaultTemplateURL((a=>{o.alertInternal(e,t,n,r,i,a)}))},this.alertInternal=function(n,i,s,l,u,c){let d=!1;const f=`UserNotification.alert.${s}`,h=(u=u||{}).duration||864e5;switch(i){case"ONCE-SINCE-STARTUP":f in e?d=!1:(d=!0,e[f]=!0);break;case"MAX-COUNT":{let e=0;const n=u.maxCount||1;f in t&&(e=t[f]),t[f]=++e,e<=n&&(d=!0);break}default:d=!0}if(r.default.log("UserNotification.alert",n,d,i,s,l,u),d){const e={url:c,message:l,timeout:h};a.default.systemLog({notification:!0},`Notification: ${l}`),new o.System.Notification(e)}}};t.default=u},13712:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(21014))&&r.__esModule?r:{default:r},o=new function(){function e(e,t,n){const r=function(){try{throw Error("")}catch(e){return e}}(),i=r.stack.split("\n")[5],o=i.indexOf("at "),a=i.slice(o+2,i.length),s=r.stack.split("\n")[6],l=s.indexOf("at "),u=s.slice(l+2,s.length);console.warn(`parameter validation failed: parameter ${e} is of type '${typeof t}' but should be of type '${n}' in${a} called by${u}`)}this.args=function(){let t=!0;if(i.default.validationEnabled()){const n=arguments.length;if((n+1)%2!=0)for(let r=0;r<n;r+=2){let n=!1;const i=arguments[r];let o=arguments[r+1];if("="===o.slice(-1)&&(o=o.slice(0,-1),n=!0),typeof i!==o&&!(n&&void 0===i||void 0!==i&&"any"===o)){e(r/2+1,i,o),t=!1;break}}else console.warn(`validate.args requires even number of parameters: ${JSON.stringify(arguments)}`)}return t},this.args2=function(){let t=!0;if(i.default.validationEnabled()){const n=arguments.length;if((n+1)%3!=0)for(let r=0;r<n;r+=3){let n=!1;const i=arguments[r],o=arguments[r+1];let a=arguments[r+2];if("="===a.slice(-1)&&(a=a.slice(0,-1),n=!0),typeof o!==a&&!(n&&void 0===o||void 0!==o&&"any"===a)){e(i,o,a),t=!1;break}}else console.warn(`validate.args requires even number of parameters: ${JSON.stringify(arguments)}`)}return t}};t.default=o},76078:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=class{constructor(e){const t=e||{};let n;t.highlightFlag=[],t.logArgs=[],t.parsedLogArgs=[],t.allLogArgs="",t.previousRowTimeDelta=0;try{n=JSON.parse(e.logData)}catch(t){n={Note:"*** LoggingService: error parsing data (see local console warning for data) ***"},console.warn(n,e.logData,t)}for(const e in n)if(n.hasOwnProperty(e)){t.parsedLogArgs.push(n[e]);const r=JSON.stringify(n[e]);t.logArgs.push(r)}return t.allLogArgs=t.logArgs.join(" ").replace(""," ").replace('" "'," "),delete t.logData,delete t.logArgs,t}}},44453:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(60077))&&r.__esModule?r:{default:r};t.default=class{constructor(){this.name="loggerUI";try{n.g.adapterReceiver?n.g.adapterReceiver.loaded(this.name,this):console.error("Global Adapter Reciever not found on the global object. Fatal error.")}catch(e){console.error("BaseStorage constructor",e)}}receiveLoggerServiceState(e){i.default.setLoggerServiceState(e)}onNewMessage(e){i.default.onNewMessage(e)}onClientRegistered(e){return i.default.onClientRegistered(e)}onClientUnregistered(e){i.default.onClientUnregistered(e)}}},70594:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={BASE_FONT_FAMILY:"Consolas, Lucida Console, Courier New, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:"14px",BASE_BACKGROUND_COLOR:"transparent",BASE_COLOR:"black",OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_KEYWORD_COLOR:"rgb(170, 13, 145)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,TREENODE_FONT_FAMILY:"Consolas, Lucida Console, Courier New, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:"14px",TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"}},90611:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(89526)),i=u(n(2652)),o=u(n(71917)),a=u(n(71854)),s=u(n(29637)),l=u(n(43594));function u(e){return e&&e.__esModule?e:{default:e}}function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function d(){return(d=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}).apply(this,arguments)}const f=({onMatchFound:e,searchBoxText:t,filterStrings:n,depth:i,name:o,data:l,isNonenumerable:u})=>0===i?r.default.createElement(a.default,{onMatchFound:e,searchBoxText:t,filterStrings:n,name:o,data:l}):r.default.createElement(s.default,{onMatchFound:e,searchBoxText:t,filterStrings:n,name:o,data:l,isNonenumerable:u});class h extends r.Component{static defaultProps={showNonenumerable:!1,theme:"chromeLight"};static propTypes={expandLevel:i.default.number,expandPaths:i.default.oneOfType([i.default.string,i.default.array]),name:i.default.string,data:i.default.any,theme:i.default.oneOfType([i.default.string,i.default.object]),showNonenumerable:i.default.bool,sortObjectKeys:i.default.oneOfType([i.default.bool,i.default.func]),nodeRenderer:i.default.func};constructor(e){super(),this.state={expandLevel:e.expandLevel,allExpanded:!1}}render(){const{showNonenumerable:e,sortObjectKeys:t,nodeRenderer:n,...i}=this.props,{expandLevel:a}=this.state,s=((e,t)=>function*(n){if("object"==typeof n&&null!==n||"function"==typeof n)if(!Array.isArray(n)&&n[Symbol.iterator]){let e=0;for(const t of n){if(Array.isArray(t)&&2===t.length){const[e,n]=t;yield{name:e,data:n}}else yield{name:e.toString(),data:t};e++}}else{const r=Object.getOwnPropertyNames(n);!0===t?r.sort():"function"==typeof t&&r.sort(t);for(const t of r)if(n.propertyIsEnumerable(t)){const e=n[t];yield{name:t||'""',data:e}}else if(e){let e;try{e=n[t]}catch(e){}void 0!==e&&(yield{name:t,data:e,isNonenumerable:!0})}e&&n!==Object.prototype&&(yield{name:"__proto__",data:Object.getPrototypeOf(n),isNonenumerable:!0})}})(e,t),u=n||f;return r.default.createElement(l.default,{theme:this.props.theme},r.default.createElement(o.default,d({searchBoxText:this.props.searchBoxText,filterStrings:this.props.filterStrings,nodeRenderer:u,dataIterator:s},i,{expandLevel:a})))}}var p=h;t.default=p},29637:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(89526)),i=s(n(2652)),o=s(n(88043)),a=s(n(33920));function s(e){return e&&e.__esModule?e:{default:e}}const l=({onMatchFound:e,searchBoxText:t,filterStrings:n,name:i,data:s,isNonenumerable:l})=>{const u=s;return r.default.createElement("span",null,r.default.createElement(o.default,{onMatchFound:e,searchBoxText:t,filterStrings:n,name:i,dimmed:l}),r.default.createElement("span",null,": "),r.default.createElement(a.default,{onMatchFound:e,searchBoxText:t,filterStrings:n,object:u}))};l.propTypes={isNonenumerable:i.default.bool},l.defaultProps={isNonenumerable:!1};var u=l;t.default=u},88031:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(89526)),i=s(n(2652)),o=s(n(33920)),a=s(n(88043));function s(e){return e&&e.__esModule?e:{default:e}}const l={preview:{fontStyle:"italic"}};function u(e,t){return 0===e.length?[]:e.slice(1).reduce(((e,n)=>e.concat([t,n])),[e[0]])}const c=({onMatchFound:e,filterStrings:t,searchBoxText:n,data:i,maxProperties:s})=>{const c=i;if("object"!=typeof c||null===c||c instanceof Date||c instanceof RegExp)return r.default.createElement(o.default,{object:c});if(Array.isArray(c))return r.default.createElement("span",{style:l.preview},"[",u(c.map(((e,t)=>r.default.createElement(o.default,{key:t,object:e}))),", "),"]");const d=[];for(const i in c){const l=c[i];if(c.hasOwnProperty(i)){let u;if(d.length===s-1&&Object.keys(c).length>s&&(u=r.default.createElement("span",{key:"ellipsis"},"…")),d.push(r.default.createElement("span",{key:i},r.default.createElement(a.default,{onMatchFound:e,searchBoxText:n,filterStrings:t,name:i||'""'}),": ",r.default.createElement(o.default,{searchBoxText:n,filterStrings:t,onMatchFound:e,object:l}),u)),u)break}}return r.default.createElement("span",{style:l.preview},`${c.constructor.name} {`,u(d,", "),"}")};c.propTypes={maxProperties:i.default.number},c.defaultProps={maxProperties:5};var d=c;t.default=d},71854:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(89526)),i=a(n(88043)),o=a(n(88031));function a(e){return e&&e.__esModule?e:{default:e}}t.default=({onMatchFound:e,searchBoxText:t,filterStrings:n,name:a,data:s})=>"string"==typeof a?r.default.createElement("span",null,r.default.createElement(i.default,{onMatchFound:e,searchBoxText:t,filterStrings:n,name:a}),r.default.createElement("span",null,": "),r.default.createElement(o.default,{onMatchFound:e,searchBoxText:t,filterStrings:n,data:s})):r.default.createElement(o.default,{onMatchFound:e,searchBoxText:t,filterStrings:n,data:s})},88043:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(2652)),i=s(n(24268)),o=s(n(89526)),a=s(n(5445));function s(e){return e&&e.__esModule?e:{default:e}}const l=({onMatchFound:e,searchBoxText:t,filterStrings:n,name:r,dimmed:s,styles:l},{theme:u})=>{const c=(0,i.default)("ObjectName",u),d={...c.base,...s?c.dimmed:{},...l};return o.default.createElement("span",{style:d},o.default.createElement(a.default,{onMatchFound:e,searchBoxText:t,filterStrings:n,str:r}))};l.propTypes={name:r.default.string,dimmed:r.default.bool},l.defaultProps={dimmed:!1},l.contextTypes={theme:r.default.oneOfType([r.default.string,r.default.object])};var u=l;t.default=u},33920:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(2652)),i=s(n(24268)),o=s(n(89526)),a=s(n(5445));function s(e){return e&&e.__esModule?e:{default:e}}const l=({onMatchFound:e,searchBoxText:t,filterStrings:n,object:r,styles:s},{theme:l})=>{const u=(0,i.default)("ObjectValue",l),c=e=>({...u[e],...s});switch(typeof r){case"number":return o.default.createElement("span",{style:c("objectValueNumber")},o.default.createElement(a.default,{onMatchFound:e,searchBoxText:t,filterStrings:n,str:String(r)}));case"string":return o.default.createElement("span",{style:c("objectValueString")},o.default.createElement(a.default,{onMatchFound:e,searchBoxText:t,filterStrings:n,str:r}));case"boolean":return o.default.createElement("span",{style:c("objectValueBoolean")},o.default.createElement(a.default,{onMatchFound:e,searchBoxText:t,filterStrings:n,str:String(r)}));case"undefined":return o.default.createElement("span",{style:c("objectValueUndefined")},"undefined");case"object":return null===r?o.default.createElement("span",{style:c("objectValueNull")},"null"):r instanceof Date?o.default.createElement("span",null,o.default.createElement(a.default,{onMatchFound:e,searchBoxText:t,filterStrings:n,str:r.toString()})):r instanceof RegExp?o.default.createElement("span",{style:c("objectValueRegExp")},o.default.createElement(a.default,{onMatchFound:e,searchBoxText:t,filterStrings:n,str:r.toString()})):Array.isArray(r)?o.default.createElement("span",null,`Array[${r.length}]`):r.constructor?o.default.createElement("span",null,o.default.createElement(a.default,{onMatchFound:e,searchBoxText:t,filterStrings:n,str:r.constructor.name})):o.default.createElement("span",null,"Object");case"function":return o.default.createElement("span",null,o.default.createElement("span",{style:c("objectValueFunctionKeyword")},"function"),o.default.createElement("span",{style:c("objectValueFunctionName")}," ",o.default.createElement(a.default,{onMatchFound:e,searchBoxText:t,filterStrings:n,str:r.name}),"()"));case"symbol":return o.default.createElement("span",{style:c("objectValueSymbol")},o.default.createElement(a.default,{onMatchFound:e,searchBoxText:t,filterStrings:n,str:r.toString()}));default:return o.default.createElement("span",null)}};l.propTypes={object:r.default.any},l.contextTypes={theme:r.default.oneOfType([r.default.string,r.default.object])};var u=l;t.default=u},43594:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(89526),o=(r=n(2652))&&r.__esModule?r:{default:r};class a extends i.Component{getChildContext(){const{theme:e}=this.props;return{theme:e}}render(){return this.props.children}}a.childContextTypes={theme:o.default.oneOfType([o.default.string,o.default.object])};var s=a;t.default=s},8475:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(88555))&&r.__esModule?r:{default:r};t.default=e=>({DOMNodePreview:{htmlOpenTag:{base:{color:e.HTML_TAG_COLOR},tagName:{color:e.HTML_TAGNAME_COLOR,textTransform:e.HTML_TAGNAME_TEXT_TRANSFORM},htmlAttributeName:{color:e.HTML_ATTRIBUTE_NAME_COLOR},htmlAttributeValue:{color:e.HTML_ATTRIBUTE_VALUE_COLOR}},htmlCloseTag:{base:{color:e.HTML_TAG_COLOR},offsetLeft:{marginLeft:-e.TREENODE_PADDING_LEFT},tagName:{color:e.HTML_TAGNAME_COLOR,textTransform:e.HTML_TAGNAME_TEXT_TRANSFORM}},htmlComment:{color:e.HTML_COMMENT_COLOR},htmlDoctype:{color:e.HTML_DOCTYPE_COLOR}},ObjectName:{base:{color:e.OBJECT_NAME_COLOR},dimmed:{opacity:.6}},ObjectValue:{objectValueNull:{color:e.OBJECT_VALUE_NULL_COLOR},objectValueUndefined:{color:e.OBJECT_VALUE_UNDEFINED_COLOR},objectValueRegExp:{color:e.OBJECT_VALUE_REGEXP_COLOR},objectValueString:{color:e.OBJECT_VALUE_STRING_COLOR},objectValueSymbol:{color:e.OBJECT_VALUE_SYMBOL_COLOR},objectValueNumber:{color:e.OBJECT_VALUE_NUMBER_COLOR},objectValueBoolean:{color:e.OBJECT_VALUE_BOOLEAN_COLOR},objectValueFunctionKeyword:{color:e.OBJECT_VALUE_FUNCTION_KEYWORD_COLOR,fontStyle:"italic"},objectValueFunctionName:{fontStyle:"italic"}},TreeNode:{treeNodeBase:{color:e.BASE_COLOR,backgroundColor:e.BASE_BACKGROUND_COLOR,lineHeight:e.TREENODE_LINE_HEIGHT,cursor:"default",boxSizing:"border-box",listStyle:"none",fontFamily:e.TREENODE_FONT_FAMILY,fontSize:e.TREENODE_FONT_SIZE},treeNodePreviewContainer:{},treeNodePlaceholder:{whiteSpace:"pre",fontSize:e.ARROW_FONT_SIZE,marginRight:e.ARROW_MARGIN_RIGHT,...i.default},treeNodeArrow:{base:{color:e.ARROW_COLOR,display:"inline-block",fontSize:e.ARROW_FONT_SIZE,marginRight:e.ARROW_MARGIN_RIGHT,...i.default},expanded:{WebkitTransform:"rotateZ(90deg)",MozTransform:"rotateZ(90deg)",transform:"rotateZ(90deg)"},collapsed:{WebkitTransform:"rotateZ(0deg)",MozTransform:"rotateZ(0deg)",transform:"rotateZ(0deg)"}},treeNodeChildNodesContainer:{margin:0,paddingLeft:e.TREENODE_PADDING_LEFT}},TableInspector:{base:{color:e.BASE_COLOR,position:"relative",border:`1px solid ${e.TABLE_BORDER_COLOR}`,fontFamily:e.BASE_FONT_FAMILY,fontSize:e.BASE_FONT_SIZE,lineHeight:"120%",boxSizing:"border-box",cursor:"default"}},TableInspectorHeaderContainer:{base:{top:0,height:"17px",left:0,right:0,overflowX:"hidden"},table:{tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",height:"100%",width:"100%",margin:0}},TableInspectorDataContainer:{tr:{display:"table-row"},td:{boxSizing:"border-box",border:"none",height:"16px",verticalAlign:"top",padding:"1px 4px",WebkitUserSelect:"text",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px"},div:{position:"static",top:"17px",bottom:0,overflowY:"overlay",transform:"translateZ(0)",left:0,right:0,overflowX:"hidden"},table:{position:"static",left:0,top:0,right:0,bottom:0,borderTop:"0 none transparent",margin:0,backgroundImage:e.TABLE_DATA_BACKGROUND_IMAGE,backgroundSize:e.TABLE_DATA_BACKGROUND_SIZE,tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",width:"100%",fontSize:e.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorTH:{base:{position:"relative",height:"auto",textAlign:"left",backgroundColor:e.TABLE_TH_BACKGROUND_COLOR,borderBottom:`1px solid ${e.TABLE_BORDER_COLOR}`,fontWeight:"normal",verticalAlign:"middle",padding:"0 4px",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px",":hover":{backgroundColor:e.TABLE_TH_HOVER_COLOR}},div:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",fontSize:e.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorLeftBorder:{none:{borderLeft:"none"},solid:{borderLeft:`1px solid ${e.TABLE_BORDER_COLOR}`}},TableInspectorSortIcon:{display:"block",marginRight:3,width:8,height:7,marginTop:-7,color:e.TABLE_SORT_ICON_COLOR,fontSize:12,...i.default}})},24268:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(85595)),o=(r=n(8475))&&r.__esModule?r:{default:r};function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}const s=Object.keys(i).reduce(((e,t)=>(e[t]=(0,o.default)(i[t]),e)),{});t.default=(e,t)=>"string"==typeof t?s[t][e]:"object"==typeof t?(0,o.default)(t)[e]:s.chromeLight[e]},17659:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:"14px",BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_KEYWORD_COLOR:"rgb(242, 85, 217)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:"14px",TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"}},65417:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:"14px",BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_KEYWORD_COLOR:"rgb(170, 13, 145)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:"14px",TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"}},85595:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"chromeDark",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"chromeLight",{enumerable:!0,get:function(){return i.default}});var r=o(n(17659)),i=o(n(65417));function o(e){return e&&e.__esModule?e:{default:e}}},88555:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={WebkitTouchCallout:"none",WebkitUserSelect:"none",KhtmlUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",OUserSelect:"none",userSelect:"none"}},60968:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(89526)),i=a(n(2652)),o=a(n(24268));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}const{Children:l}=r.default,u=({expanded:e,styles:t})=>r.default.createElement("span",{style:{...t.base,...e?t.expanded:t.collapsed}},"▶");class c extends r.default.PureComponent{constructor(){super()}render(){const{expanded:e,onClick:t,children:n,nodeRenderer:i,title:a,shouldShowArrow:s,shouldShowPlaceholder:c}=this.props,{theme:d}=this.context,f=(0,o.default)("TreeNode",d),h=(0,r.createElement)(i,this.props),p=e?n:void 0;return r.default.createElement("li",{"aria-expanded":e,role:"treeitem",style:f.treeNodeBase,title:a},r.default.createElement("div",{style:f.treeNodePreviewContainer,onClick:t,onContextMenu:this.props.onContextMenu},s||l.count(n)>0?r.default.createElement(u,{expanded:e,styles:f.treeNodeArrow}):c&&r.default.createElement("span",{style:f.treeNodePlaceholder}," "),h),r.default.createElement("ol",{role:"group",style:f.treeNodeChildNodesContainer},p))}}c.propTypes={name:i.default.string,data:i.default.any,expanded:i.default.bool,shouldShowArrow:i.default.bool,shouldShowPlaceholder:i.default.bool,nodeRenderer:i.default.func,onClick:i.default.func},c.defaultProps={name:void 0,data:void 0,expanded:!0,nodeRenderer:({name:e})=>r.default.createElement("span",null,e),onClick:()=>{},shouldShowArrow:!1,shouldShowPlaceholder:!0},c.contextTypes={theme:i.default.oneOfType([i.default.string,i.default.object]).isRequired};var d=c;t.default=d},71917:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(89526)),i=s(n(2652)),o=s(n(60968)),a=n(62988);function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=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}).apply(this,arguments)}class u extends r.default.Component{constructor(e,t){super(e),this.state=t.store.storeState,this.state.depth=e.depth}shouldComponentUpdate(e,t){const n=this.props.filterStrings.every((t=>e.filterStrings.includes(t))),r=e.searchBoxText!==this.props.searchBoxText;return n||r||!!t.expandedPaths[e.path]!=!!this.state.expandedPaths[this.props.path]||e.data!==this.props.data||e.name!==this.props.name}handleRightClick(e){this.handleClick(e)}handleClick(e,t=Function.prototype){this.context.store.storeState=((e,t)=>{switch(t.type){case"TOGGLE_EXPAND":{let{path:n}=t;Array.isArray(n)||(n=[n]);const r={...e};return n.forEach((t=>{const{expandedPaths:n}=e,i=!!n[t];r.expandedPaths[t]=!i})),r}default:return e}})(this.context.store.storeState,{type:"TOGGLE_EXPAND",path:e}),this.setState(this.context.store.storeState,t)}renderChildNodes(e,t){const{dataIterator:n}=this.props,{depth:i}=this.props,{onMatchFound:o,nodeRenderer:a,searchBoxText:s,filterStrings:c}=this.props,d=[];for(const{name:f,data:h,...p}of n(e)){const e=f,g=`${t}.${e}`;d.push(r.default.createElement(u,l({name:f,data:h,depth:i+1,path:g,key:e,onMatchFound:o,dataIterator:n,nodeRenderer:a,searchBoxText:s,filterStrings:c},p)))}return d}render(){const{onMatchFound:e,data:t,dataIterator:n,path:i,depth:s}=this.props,u=(0,a.hasChildNodes)(t,n),{expandedPaths:c}=this.state,d=!!c[i],{nodeRenderer:f,searchBoxText:h,filterStrings:p}=this.props;return r.default.createElement(o.default,l({onMatchFound:e,expanded:d,onContextMenu:()=>{this.handleRightClick(i)},onClick:u?()=>{this.handleClick(i)}:()=>{},shouldShowArrow:u,shouldShowPlaceholder:s>0,nodeRenderer:f,searchBoxText:h,filterStrings:p},this.props),d?this.renderChildNodes(t,i):void 0)}}u.propTypes={name:i.default.string,data:i.default.any,dataIterator:i.default.func,depth:i.default.number,expanded:i.default.bool,nodeRenderer:i.default.func},u.contextTypes={store:i.default.any};class c extends r.default.PureComponent{static defaultProps={expandLevel:0,expandPaths:[]};constructor(e){super(e),this.state={expandLevel:0},this.store={storeState:{expandedPaths:(0,a.getExpandedPaths)(e.data,e.dataIterator,e.expandPaths,e.expandLevel)}}}UNSAFE_componentWillReceiveProps(e){this.store={storeState:{expandedPaths:(0,a.getExpandedPaths)(e.data,e.dataIterator,e.expandPaths,e.expandLevel,this.store.storeState.expandedPaths)}}}getChildContext(){return{store:this.store}}static childContextTypes={store:i.default.any};render(){const{name:e,data:t,dataIterator:n}=this.props,{nodeRenderer:i,filterStrings:o,searchBoxText:s}=this.props,l=a.DEFAULT_ROOT_PATH;return r.default.createElement(u,{name:e,data:t,dataIterator:n,depth:0,path:l,nodeRenderer:i,searchBoxText:s,filterStrings:o})}}c.propTypes={name:i.default.string,data:i.default.any,dataIterator:i.default.func,nodeRenderer:i.default.func},c.defaultProps={name:void 0};var d=c;t.default=d},62988:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildNodes=r,t.getExpandedPaths=t.wildcardPathsFromLevel=t.DEFAULT_ROOT_PATH=void 0;const n="$";function r(e,t){return!t(e).next().done}t.DEFAULT_ROOT_PATH=n;const i=e=>Array.from({length:e},((e,t)=>[n].concat(Array.from({length:t},(()=>"*"))).join(".")));t.wildcardPathsFromLevel=i,t.getExpandedPaths=(e,t,o,a,s={})=>{const l=[].concat(i(a)).concat(o).filter((e=>"string"==typeof e)),u=[];return l.forEach((i=>{const o=i.split("."),a=(e,i,s)=>{if(s===o.length)return void u.push(i);const l=o[s];if(0===s)!r(e,t)||l!==n&&"*"!==l||a(e,n,s+1);else if("*"===l)for(const{name:n,data:o}of t(e))r(o,t)&&a(o,`${i}.${n}`,s+1);else{const n=e[l];r(n,t)&&a(n,`${i}.${l}`,s+1)}};a(e,"",0)})),u.reduce(((e,t)=>(e[t]=!0,e)),s)}},60077:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(29581))&&r.__esModule?r:{default:r},o={onNewMessage(e){i.default.onNewMessage(e)},onClientRegistered:e=>i.default.onClientRegistered(e),onClientUnregistered(e){i.default.unRegisterClient(e)},setLoggerServiceState(e){i.default.setLoggerServiceState(e)}};t.default=o},27785:(e,t)=>{"use strict";function n(e=[]){let t=0,n=!0,r=null;return{getActiveIndex:()=>t+1,values:e,length:e.length,setActiveIndex:e=>t=e,next:()=>("prev"===r&&(t+=2),r="next",n&&(n=!1),t===e.length?t=0:-1===t&&(t=e.length-1),{searchResultNumber:t+1,value:e[t++],done:!1}),previous:()=>("next"===r&&(t-=2),r="prev",n&&(n=!1,t=e.length-1),t===e.length&&(t=0),-1===t&&(t=e.length-1),{searchResultNumber:t+1,value:e[t--],done:!1})}}Object.defineProperty(t,"__esModule",{value:!0}),t.SearchResults=n,t.default=void 0,t.default=class{constructor(){return this.searchString="",this.results=[],this}performLogSearch(e,t){this.searchString=t;const r=[];if(""!==t)for(let n=0;n<e.length;n++)e[n].allLogArgs.toLowerCase().includes(t.toLowerCase())&&r.push(n);this.results=new n(r)}performStringSearch(e,t){this.searchString=t;const r=[];if(""!==t)for(let n=0;n<e.length;n++)e[n].toLowerCase().includes(t.toLowerCase())&&r.push(n);this.results=new n(r)}getResults(){return this.results}}},29581:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(5939),i=_(n(76897)),o=_(n(38172)),a=_(n(71879)),s=n(38374),l=n(57664),u=_(n(39319)),c=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=b(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(76420)),d=_(n(76078)),f=_(n(27785)),h=_(n(70010)),p=n(51742),g=_(n(68718)),m=_(n(5020)),v=_(n(73699)),y=_(n(52851)),w=_(n(25908));function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(b=function(e){return e?n:t})(e)}function _(e){return e&&e.__esModule?e:{default:e}}const S=200,C=1e5,x=n(33837);g.default.initialize();const E="finsemble.loggerStore.mainkey";let T=0,k=1/0,O=!1,L=[],R={},I=[],A=[],M=0,N=0;const P={},D={},F={Error:!1,Warn:!1,Info:!1,Log:!1,Debug:!1,Verbose:!1},W={Error:!1,Warn:!1,Info:!1,Log:!1,Debug:!1,Verbose:!1,LocalOnly:!1};class z extends r.EventEmitter{constructor(){if(window.loggerStore)return window.loggerStore;super(),window.loggerStore=this,this.setMaxListeners(100),this.windowVisibility="visible",this.activeView="logger",this.Search=new f.default,this.showOnError=!1,this.showOnStartup=!1,this.activeRowIndex=0,this.rowTimediff=null,this.initialized=!1,this.shouldShowSearchBox=!1,this.RouterClient=u.default,this.defaultClientState=P,y.default.deriveMethods(this),w.default.deriveMethods(this),this.bindCorrectContext(),this.registerGlobalHotkey()}bindCorrectContext(){this.broadCastNewMessageUpdateThrottled=(0,o.default)(this.broadCastNewMessageUpdate.bind(this),1e3),this.setFilter1=(0,i.default)(this.setFilter1,S),this.setFilter2=(0,i.default)(this.setFilter2,S),this.setFilter3=(0,i.default)(this.setFilter3,S),this.setFilter4=(0,i.default)(this.setFilter4,S),this.setLogSearchBoxString=this.setLogSearchBoxString.bind(this),this.setLogSearchBoxString=(0,i.default)(this.setLogSearchBoxString,0),this.setWindowHidden=this.setWindowHidden.bind(this),this.setWindowVisible=this.setWindowVisible.bind(this),this.emitResizeTimeout=this.emitResizeTimeout.bind(this),this.setConfigVisible=this.setConfigVisible.bind(this),this.setLoggerVisible=this.setLoggerVisible.bind(this),this.clearData=this.clearData.bind(this),this.toggleShowOnError=this.toggleShowOnError.bind(this),this.toggleShowOnStartup=this.toggleShowOnStartup.bind(this),this.configureLoggerForDefaults=this.configureLoggerForDefaults.bind(this),this.configureLoggerForErrors=this.configureLoggerForErrors.bind(this),this.configureLoggerForFieldCapture=this.configureLoggerForFieldCapture.bind(this)}initialize(){M=window.innerWidth,N=window.innerHeight,this.addWindowListeners(),this.addHotkeys(),p.System.Window.getCurrent().getOptions((e=>{this.manifest=e.customData.manifest,console.log("Manifest",this.manifest)}))}addWindowListeners(){if(this.initialized)return;const e=p.System.Window.getCurrent(),t=e.nativeWindow||window;e.addEventListener("bounds-change-end",(e=>{this.processSizeChange(e.width,e.height)})),e.addEventListener("maximized",(()=>{this.processSizeChange(t.outerWidth,t.outerHeight)})),e.addEventListener("restored",(()=>{this.processSizeChange(t.outerWidth,t.outerHeight)}))}getRegisteredClient(){return L}getRegisteredClients(){return R}getWindowWidth(){return M}getWindowHeight(){return N}async registerGlobalHotkey(){await m.default.waitForStartup("configService"),h.default.getValue({field:"finsemble.servicesConfig.logger.hotkeyShowCentralLogger"},(async(e,t)=>{t&&(await m.default.waitForStartup("hotkeysService"),g.default.onReady((()=>{g.default.addGlobalHotkey(t,(()=>{window.showConsole()}))})))}))}addHotkeys(){window.addEventListener("keydown",(e=>{if(e.ctrlKey&&e.altKey)switch(e.key){case"c":this.toggleClientListVisible();break;case"d":this.configureLoggerForDefaults();break;case"e":this.configureLoggerForErrors();break;case"s":this.configureLoggerForFieldCapture();break;case"x":this.clearData()}}))}getFileMode(){return O}getFirstMessageTime(){return k}broadCastNewMessageUpdate(){"hidden"!==this.windowVisibility&&this.emit("loggerNewMessages")}getMasterLog(){return I}getFilteredLog(){return A}getLogCounts(){return{master:I.length,display:A.length}}openClient(e,t){const n=p.System.Window.wrap("",e);-1!==e.indexOf("InteropService")?n.show():p.System.showDeveloperTools(null,e,t)}getRowTimeDiff(){return this.rowTimediff}setRowTimeDiff(e){this.rowTimediff=e,this.emit("rowTimeDiffChange")}getClientListVisible(){return this.persistState.get("clientListVisible")}triggerRowheightRecalculation(){this.emit("recalculateHeight")}triggerLogRerender(){this.emit("rerenderList")}toggleClientListVisible(){this.persistState.toggle("clientListVisible"),this.emit("clientListVisibleChange")}emitResizeTimeout(){setTimeout((()=>{this.emit("WindowResize"),this.emit("rerenderList")}),400)}persist(){try{localStorage.setItem(E,JSON.stringify(this.persistState.data))}catch(e){console.error("Storage.saving Error",e,`key=${E}`,"value=",this.persistState.data)}}getLogState(){return this.persistState.get("logState")}getClientState(e){return this.persistState.get(`clientState[${e}]`)}getShowClientState(e){return this.persistState.get(`showClientState[${e}]`)}getLogCategoriesAllowed(){return{perf:this.persistState.get("perfModeState"),dev:this.persistState.get("devModeState"),system:this.persistState.get("systemModeState")}}getAllShowClientState(){return this.persistState.get("showClientState")}getClientMode(){return this.persistState.get("currentCategory")}clearData(){I=[],A=[],this.emit("loggerNewMessages")}setTop(){this.emit("SetTop")}setBottom(){this.emit("SetBottom")}scrollToActiveRow(){this.emit("scrollToActiveRow")}setActiveRowIndex(e){this.activeRowIndex=e,this.emit("activeRowChanged")}setActiveConfigSearchMatch(e){this.activeConfigSearchMatch=e,this.emit("activeConfigSearchMatch")}getActiveConfigSearchMatch(){return this.activeConfigSearchMatch}getActiveRowIndex(){return this.activeRowIndex}getHideInactiveState(){return this.persistState.get("hideInactiveState")}toggleHideInactive(){this.persistState.toggle("hideInactiveState"),this.emit("newHideInactiveState")}getCurrentCategory(){return this.persistState.get("currentCategory")}toggleShowClient(e){this.persistState.toggle(`showClientState[${e}]`),this.filterData(),this.emit("newShowClientState"),this.broadCastNewMessageUpdate()}toggleShowAllClients(){let e=!0;for(const t in this.persistState.data.showClientState)if(this.persistState.data.showClientState.hasOwnProperty(t)&&(e=e&&this.persistState.data.showClientState[t],!e))break;const t=!e;for(const e in this.persistState.data.showClientState)this.persistState.data.showClientState.hasOwnProperty(e)&&this.persistState.set(`showClientState[${e}]`,t);this.filterData(),this.emit("newShowClientState"),this.broadCastNewMessageUpdateThrottled()}getShowSearchBox(){return this.shouldShowSearchBox}showSearchBox(){this.shouldShowSearchBox=!0,this.emit("showSearchBoxChange")}hideSearchBox(){this.shouldShowSearchBox=!1,this.setLogSearchBoxString(""),this.emit("showSearchBoxChange")}getSearchBoxString(){return this.Search.searchString}getSearchMatches(){return this.Search.results}setLogSearchBoxString(e){this.Search.performLogSearch(A,e),this.emit("searchBoxTextChange")}setConfigSearchBoxString(e){this.finsembleConfig?(this.Search.performStringSearch(this.finsembleConfig,e),this.emit("searchBoxTextChange")):this.getFullConfig((()=>{this.Search.performStringSearch(this.finsembleConfig,e),this.emit("searchBoxTextChange")}))}setWindowVisible(){this.windowVisibility="visible",this.broadCastNewMessageUpdate(),this.emit("WindowVisibilityChange")}setWindowHidden(){this.windowVisibility="hidden",this.emit("WindowVisibilityChange")}getWindowVisibility(){return this.windowVisibility}setAllLogStateOn(){this.persistState.set("logState",{Error:!0,Warn:!0,Info:!0,Log:!0,Debug:!0,Verbose:!0}),this.emit("newDisplayState")}setLogState(e){this.persistState.set("logState",Object.assign(this.persistState.data.logState,e)),this.emit("newDisplayState")}configureLoggerForDefaults(){this.persistState.set("initialClientStateDefault.Error",!0),this.persistState.set("initialClientStateDefault.Warn",!0),this.persistState.set("initialClientStateDefault.Log",!0),this.persistState.set("initialClientStateDefault.Info",!1),this.persistState.set("initialClientStateDefault.Debug",!1),this.persistState.set("initialClientStateDefault.Verbose",!1),this.setAllLogStateOn(),this.defaultShowClientAll(),this.filterData(),this.emit("newInitialClientStateDefault")}configureLoggerForErrors(){this.persistState.set("initialClientStateDefault.Error",!0),this.emit("newInitialClientStateDefault"),this.setLogState({Error:!0,Warn:!1,Info:!1,Log:!1,Debug:!1,Verbose:!1}),this.defaultShowClientAll(),this.filterData()}configureLoggerForFieldCapture(){this.persistState.set("initialClientStateDefault.Error",!0),this.persistState.set("initialClientStateDefault.Warn",!0),this.persistState.set("initialClientStateDefault.Log",!0),this.persistState.set("initialClientStateDefault.Info",!0),this.persistState.set("initialClientStateDefault.Debug",!0),this.persistState.set("initialClientStateDefault.Verbose",!1),this.emit("newInitialClientStateDefault"),this.defaultShowClientAll(),this.persist(),this.filterData(),setTimeout((()=>{alert("Logger is now configured for field capture. Please restart your application if needed, recreate problem, export the log, and send it to Finsemble Support with description of the problem.\n\n\t\t\tIMPORTANT: Once your log is exported, revert to the default logger settings; otherwise, you may see degraded performance due to the extra logging.")}),200)}configureLoggerForStartup(){this.persistState.set("initialClientStateDefault.Error",!0),this.persistState.set("initialClientStateDefault.Warn",!0),this.persistState.set("initialClientStateDefault.Log",!0),this.persistState.set("initialClientStateDefault.Info",!0),this.persistState.set("initialClientStateDefault.Debug",!0),this.setFilter1("Service Online"),this.emit("NewHighlightValues1"),this.setFilter2("not online"),this.emit("NewHighlightValues2"),this.setFilter3(""),this.emit("NewHighlightValues3"),this.setFilter4(""),this.emit("NewHighlightValues4"),this.setFilterLogic("OR"),this.emit("newInitialClientStateDefault"),this.defaultShowClientAll()}setFilteredLog(e){A=(0,a.default)(e)}chunk(e,t){const n=[];let r=0;for(;r<e.length;)n.push(e.slice(r,t+r)),r+=t;return n}saveToFile(){const e={};e.registeredClientNames=L,e.registeredClients=R,e.persistState=this.persistState.data;const t=JSON.stringify(e),n=new Blob([t],{type:"application/json"}),r=new x;r.file("log_state.json",n),I.length>5e4&&v.default.alert("dev","ALWAYS","system","Currently exporting a large log, this may take some time.");const i=this.chunk(I,1e3);for(let e=0;e<i.length;e++){const t=i[e];console.log("adding to zip",e,t);const n=JSON.stringify({partial_log:t}),o=new Blob([n],{type:"application/json"});r.file(`log${e}.json`,o)}const o=(new Date).toLocaleString();r.generateAsync({type:"blob"}).then((e=>{(0,s.saveAs)(e,`logs-${o}.zip`)}))}setMasterLog(e){I=e}setRegisteredClientNames(e){L=e}setRegisteredClients(e){R=e}fileMode(){O=!0;const e=document.createElement("div");e.innerHTML='<input type="file">';const t=e.firstChild;t.addEventListener("change",(()=>{const e=t.files[0],n=!!e.name.match(/\.(zip)$/),r=!!e.name.match(/\.(json)$/);if(n||r){for(const e in this.persistState.data.showClientState)if(this.persistState.data.showClientState.hasOwnProperty(e)&&(!this.persistState.data.hideInactiveState||this.persistState.data.showClientState[e])){const t={...D};t.clientChannel=this.persistState.data.clientState[e].clientChannel,u.default.transmit(t.clientChannel,t),console.debug("disabledClientState",t.clientChannel,t)}if(n){console.log("***** ZipMode *****");const t=[];x.loadAsync(e).then((e=>{Object.keys(e.files).length>50&&v.default.alert("dev","ALWAYS","system","Currently importing a large log, this may take some time.");let n=!1;const r=Object.keys(e.files).sort(((e,t)=>{const r=/\/log[0-9]*.json$/;if(r.test(e)){if(r.test(t)){const i=Number(e.substring(e.search(r)+4,e.length-5)),o=Number(t.substring(t.search(r)+4,t.length-5));return Number.isNaN(i)||Number.isNaN(o)?(n=!0,0):i-o}return-1}return 1}));n&&v.default.alert("dev","ALWAYS","system","There was a problem sorting file names, logs may appear out of order"),(0,l.eachSeries)(r,(async n=>{const r=e.files[n],i=await r.async("blob"),o=new FileReader;o.onload=()=>{const e=JSON.parse(o.result);if(e&&"log_state.json"===n)this.persistState.data=e.persistState,e.registeredClientNames&&this.setRegisteredClientNames(e.registeredClientNames),e.registeredClients&&this.setRegisteredClients(e.registeredClients);else if(e&&e.partial_log){const n=e.partial_log;n.sort(((e,t)=>e.logTimestamp-t.logTimestamp)),Array.prototype.push.apply(t,n)}},o.readAsText(i)}),(()=>{I=t,k=t[0].logTimestamp,console.log("ImportZip",t,k),this.filterData(),this.emit("newFirstMessageTime"),this.emit("FileMode"),this.emit("LoggerRegister"),this.emit("newFilterHighlights"),this.emit("newDisplayState"),this.emit("LoggerUnregister"),this.emit("newShowClientState")}))}))}else if(r){const t=new FileReader;t.onload=()=>{console.log("***** FileMode *****");const n=JSON.parse(t.result);k=n.masterLog[0].logTimestamp,this.setMasterLog(n.masterLog),k=I[0].logTimestamp,this.persistState.data=n.persistState,n.registeredClientNames&&this.setRegisteredClientNames(n.registeredClientNames),n.registeredClients&&this.setRegisteredClients(n.registeredClients),console.log("ImportFile",n,e,t,k),this.filterData(),this.emit("newFirstMessageTime"),this.emit("FileMode"),this.emit("LoggerRegister"),this.emit("newFilterHighlights"),this.emit("newDisplayState"),this.emit("LoggerUnregister"),this.emit("newShowClientState")},t.readAsText(e)}}else console.error("File not supported, .zip or .json files only")})),t.click()}getFullConfig(e=Function.prototype){h.default.getValues(null,((t,n)=>{let r=n;r=JSON.stringify(r,null,4),r=r.split(/\n/g),this.finsembleConfig=r,e(r)}))}getActiveView(){return this.activeView}setLoggerVisible(){this.activeView="logger",this.emit("viewChange")}setConfigVisible(){this.activeView="config",this.emit("viewChange")}findIndexByTimestamp(e,t){for(var n=e.length-1;n>0&&!(e[n].logTimestamp<t);n--);return n}toggleShowOnStartup(){this.setShowOnStartup(!this.showOnStartup)}getShowOnStartup(){return this.showOnStartup}setShowOnStartup(e,t=!0){this.showOnStartup=e,this.emit("showOnStartup",this.showOnStartup),t&&h.default.setPreference({field:"finsemble.preferences.loggerService.showOnStartup",value:this.showOnStartup})}toggleShowOnError(){this.setShowOnError(!this.showOnError)}getShowOnError(){return this.showOnError}setShowOnError(e,t=!0){this.showOnError=e,this.emit("showOnError",this.showOnError),t&&h.default.setPreference({field:"finsemble.preferences.loggerService.showOnError",value:this.showOnError})}processSizeChange(e,t){M!==e&&(M=window.innerWidth,this.emit("WindowResize"),this.emit("newShowClientState")),N!==t&&(N=window.innerHeight,this.emit("WindowResize"),this.emit("newShowClientState"))}sortNewLogMessages(e){function t(e,t){let n=0;return e.logTimestamp<t.logTimestamp&&(n=-1),e.logTimestamp>t.logTimestamp&&(n=1),n}let n=this.findIndexByTimestamp(I,e),r=I.splice(n,I.length);r.sort(t),I=I.concat(r),this.shouldFilterData()?(n=this.findIndexByTimestamp(A,e),n!==A.length-1&&(r=A.splice(n,A.length),r.sort(t),A=A.concat(r))):A=(0,a.default)(I)}onNewMessage(e){const t=A.length;if(!O){let r=1/0;const i=e;for(let e=0;e<i.length;e++){var n=new d.default(i[e]);T++<1e4&&n.logTimestamp<k&&(k=n.logTimestamp,this.emit("newFirstMessageTime")),n.logTimestamp<r&&(r=n.logTimestamp),n.timeElapsedFromStartup=Math.round(n.logTimestamp-k),I.push(n),this.shouldFilterData()&&this.filterData(n).length&&A.push(n)}this.showOnError&&"Error"===n.logType&&window.showConsole(),this.sortNewLogMessages(r),I.length>C&&(I=I.slice(I.length-C)),t!==A.length&&this.broadCastNewMessageUpdateThrottled()}}onClientRegistered(e){let{clientName:t,viewId:n,centralLoggerNamePrefix:r}=e,i=n?`${t}: view-${n}`:t;if(!O){if(console.debug("LoggerStore.registerClient",i,e),L.includes(i)||(L.push(i),R[i]={name:t,viewId:n,centralLoggerNamePrefix:r}),i in this.persistState.data.showClientState||this.persistState.set(`showClientState[${i}]`,!0),!(i in this.persistState.data.clientState)){const t=c.clone(P);this.persistState.set(`clientState[${i}]`,t),this.persistState.set(`clientState[${i}].clientChannel`,e.clientChannel),this.persistState.set(`clientState[${i}].windowName`,e.windowName)}const o=this.persistState.data.clientState[i];return this.filterData(),this.emit("LoggerRegister"),this.emit("newShowClientState"),o}console.debug("Registration in FileMode");const o={...D};return o.clientChannel=e.clientChannel,o}unRegisterClient(e){let t,n=!0;"string"==typeof e||e instanceof String?t=e:(t=e.viewId?`${e.clientName}: view-${e.viewId}`:e.clientName,n=e.deleteFromPersistence);for(let e=0;e<L.length;e++)L[e]===t&&(L.splice(e,1),e--,delete R[t]);n&&(delete this.persistState.data.clientState[t],delete this.persistState.data.showClientState[t],this.persist()),this.emit("LoggerUnregister")}setLoggerServiceState(e){this.persistState=e,this.setDefaults(),D.console=F,D.dev=W,D.system=W,D.perf=W,D.clientChannel=""}setDefaults(){P.console=this.persistState.data.initialClientStateDefault,P.dev=this.persistState.data.initialClientStateDefault,P.system=this.persistState.data.initialClientStateDefault,P.perf=this.persistState.data.initialClientStateDefault,P.clientChannel="",P.showAdvancedViewFilters=this.persistState.data.showAdvancedViewFilters,P.wrapLog=this.persistState.data.wrapLog,P.showStackStraceInLog=this.persistState.data.showStackStraceInLog,P.filter=this.persistState.data.filter,P.showTimeElapsedFromStartup=this.persistState.data.showTimeElapsedFromStartup,P.clientListVisible=this.persistState.data.clientListVisible,P.colDefs=this.persistState.data.colDefs}}const j=new z;u.default.onReady((()=>{j.initialize();const e=p.System.Window.getCurrent();e.isShowing((t=>{t?j.setWindowVisible():j.setWindowHidden(),e.addEventListener("shown",j.setWindowVisible),e.addEventListener("restored",j.setWindowVisible),e.addEventListener("hidden",j.setWindowHidden),e.addEventListener("minimized",j.setWindowHidden)}))})),window.TheLoggerStore=j;var B=j;t.default=B},52851:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={deriveMethods(e){Object.keys(this).forEach((t=>{e[t]=this[t].bind(e)}))},setFilter1(e){this.persistState.set("highlightString[0]",{str:e.toString()}),this.persistState.data.filterHighlights&&this.filterData(),this.emit("NewHighlightValues1")},setFilter2(e){this.persistState.set("highlightString[1]",{str:e.toString()}),this.persistState.data.filterHighlights&&this.filterData(),this.emit("NewHighlightValues2")},setFilter3(e){this.persistState.set("highlightString[2]",{str:e.toString()}),this.persistState.data.filterHighlights&&this.filterData(),this.emit("NewHighlightValues3")},setFilter4(e){this.persistState.set("highlightString[3]",{str:e.toString()}),this.persistState.data.filterHighlights&&this.filterData(),this.emit("NewHighlightValues4")},getFilterStrings(e={removeEmpty:!1}){let t=this.persistState.get("highlightString");return t||(t=[]),t=t.map((e=>("string"==typeof e&&(e={str:e}),e))),e.removeEmpty?t.filter((e=>{const{str:t}=e;return""!==t})):t},toggleDisplayAll(){const{logState:e}=this.persistState.data;e.Error&&e.Warn&&e.Info&&e.Log&&e.Debug&&e.Verbose?this.persistState.set("logState",{Error:!1,Warn:!1,Info:!1,Log:!1,Debug:!1,Verbose:!1}):this.persistState.set("logState",{Error:!0,Warn:!0,Info:!0,Log:!0,Debug:!0,Verbose:!0}),this.filterData(),this.emit("newDisplayState")},toggleDisplayErrors(){this.persistState.toggle("logState.Error"),this.filterData(),this.emit("newDisplayState")},toggleDisplayWarnings(){this.persistState.toggle("logState.Warn"),this.filterData(),this.emit("newDisplayState")},toggleDisplayInfo(){this.persistState.toggle("logState.Info"),this.filterData(),this.emit("newDisplayState")},toggleDisplayLogs(){this.persistState.toggle("logState.Log"),this.filterData(),this.emit("newDisplayState")},toggleDisplayDebug(){this.persistState.toggle("logState.Debug"),this.filterData(),this.emit("newDisplayState")},toggleDisplayVerbose(){this.persistState.toggle("logState.Verbose"),this.filterData(),this.emit("newDisplayState")},getDevModeState(){return this.persistState.get("devModeState")},getSystemModeState(){return this.persistState.get("systemModeState")},getPerfModeState(){return this.persistState.get("perfModeState")},devModeToggle(){this.persistState.toggle("devModeState"),this.filterData(),this.emit("ModeStateChange")},systemModeToggle(){this.persistState.toggle("systemModeState"),this.filterData(),this.emit("ModeStateChange")},perfModeToggle(){this.persistState.toggle("perfModeState"),this.filterData(),this.emit("ModeStateChange")},devMode(){this.persistState.set("currentCategory","dev"),this.emit("ChangeClientMode"),this.emit("newClientState")},systemMode(){this.persistState.set("currentCategory","system"),this.emit("ChangeClientMode"),this.emit("newClientState")},perfMode(){this.persistState.set("currentCategory","perf"),this.emit("ChangeClientMode"),this.emit("newClientState")},getFilterLogic(){return this.persistState.get("filter.logic")},setFilterLogic(e){this.persistState.set("filter.logic",e),this.emit("filterLogicChange"),this.filterData()},shouldFilterData(){const e=0===this.getFilterStrings({removeEmpty:!0}).length,t=this.getLogCategoriesAllowed(),n=this.getLogState(),r=this.getAllShowClientState(),i=Object.keys(n).every((e=>n[e])),o=Object.keys(t).every((e=>t[e])),a=Object.keys(r).every((e=>r[e]));return!(o&&a&&e&&i)},shouldNotFilterData(){return!this.shouldFilterData()},filterData(e){const t=void 0===e,n=this.getMasterLog(),r=this.getFilteredLog(),i=t?n:[e],o=this.getFilterStrings({removeEmpty:!0}),a=0===o.length,s=this.getAllShowClientState(),l=this.getLogCategoriesAllowed(),u=this.getLogState();if(this.shouldNotFilterData())return this.setFilteredLog(n),t&&this.broadCastNewMessageUpdate(),r;const c=this.getFilterLogic();function d(e,t){if(!s[e.logClientName])return!1;const n=u[e.logType],r=l[e.category];let i=a;if(null===t)i=!0;else if(r&&n&&!a){if(t&&t.length>0){if("-"===t)return!0;const n=t,r=-1!==e.allLogArgs.toLowerCase().indexOf(n.toLowerCase());i=i||r}}else"AND"===c&&(i=!0);return r&&n&&i}const f=i.filter(((e,t)=>{if(a)return d(i[t],null);if("AND"===c){for(let e=0;e<o.length;e++){let n=!1,{str:r}=o[e];"-"===r.charAt(0)&&(r=r.substr(1),n=!0);const a=d(i[t],r);if(!a&&!n)return!1;if(n&&a)return!1}return!0}let n=!1;for(let e=0;e<o.length;e++){let{str:r}=o[e],a=!1;if("-"===r.charAt(0)&&(r=r.substr(1),a=!0),d(i[t],r)){if(a)return!1;n=!0}}return n}));return t&&this.setFilteredLog(f),t&&this.broadCastNewMessageUpdate(),f}};t.default=n},25908:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={deriveMethods(e){Object.keys(this).forEach((t=>{e[t]=this[t].bind(e)}))},showClientAllCategory(e){for(const t in this.persistState.data.showClientState)if(this.persistState.data.showClientState.hasOwnProperty(t)&&(!this.persistState.data.hideInactiveState||this.persistState.data.showClientState[t])){const n=this.persistState.data.clientState[t],r={...this.defaultClientState[e]};n[e]=r,this.RouterClient.transmit(n.clientChannel,n)}this.emit("newClientState")},defaultShowClientAll(){this.persistState.data.applyToAllCategories?(this.showClientAllCategory("console"),this.showClientAllCategory("dev"),this.showClientAllCategory("system"),this.showClientAllCategory("perf")):this.showClientAllCategory(this.persistState.data.currentCategory),this.emit("newClientState")},toggleLevelForAllClients(e,t){let n=!0,r=!1;for(const e in this.persistState.data.showClientState)if(this.persistState.data.showClientState.hasOwnProperty(e)&&(!this.persistState.data.hideInactiveState||this.persistState.data.showClientState[e])){const i=this.persistState.data.clientState[e];i[this.persistState.data.currentCategory][t]||(n=!1),i[this.persistState.data.currentCategory][t]&&(r=!0)}const i=!(n&&r);for(const e in this.persistState.data.showClientState)if(this.persistState.data.showClientState.hasOwnProperty(e)&&(!this.persistState.data.hideInactiveState||this.persistState.data.showClientState[e])){const n=this.persistState.data.clientState[e],r=n[this.persistState.data.currentCategory][t];n[this.persistState.data.currentCategory][t]=i,r!==i&&(this.persistState.set(`clientState[${e}]`,n),this.RouterClient.transmit(n.clientChannel,n))}this.emit("newClientState")},allCoreToggle(){this.allErrorsToggle(),this.allWarningToggle(),this.allDebugToggle(),this.allLogsToggle(),this.allInfoToggle()},allErrorsToggle(){this.toggleLevelForAllClients(this.persistState.data.currentCategory,"Error")},allWarningToggle(){this.toggleLevelForAllClients(this.persistState.data.currentCategory,"Warn")},allInfoToggle(){this.toggleLevelForAllClients(this.persistState.data.currentCategory,"Info")},allLogsToggle(){this.toggleLevelForAllClients(this.persistState.data.currentCategory,"Log")},allDebugToggle(){this.toggleLevelForAllClients(this.persistState.data.currentCategory,"Debug")},allVerboseToggle(){this.toggleLevelForAllClients(this.persistState.data.currentCategory,"Verbose")},allLocalConsoleToggle(){this.toggleLevelForAllClients(this.persistState.data.currentCategory,"LocalOnly")},toggleAllCategory(e,t){let n;if(2===arguments.length)n=t;else{let t=!0,r=!1;for(const n in this.persistState.data.showClientState)if(this.persistState.data.showClientState.hasOwnProperty(n)&&(!this.persistState.data.hideInactiveState||this.persistState.data.showClientState[n])){const i=this.persistState.data.clientState[n];i[e].Error&&i[e].Warn&&i[e].Info&&i[e].Log&&i[e].Debug||(t=!1),(i[e].Error||i[e].Warn||i[e].Info||i[e].Log||i[e].Debug)&&(r=!0)}n=!(t&&r)}for(const t in this.persistState.data.showClientState)if(this.persistState.data.showClientState.hasOwnProperty(t)&&(!this.persistState.data.hideInactiveState||this.persistState.data.showClientState[t])){const r=this.persistState.data.clientState[t];r[e]=n?{Error:!0,Warn:!0,Info:!0,Log:!0,Debug:!0,Verbose:r[e].Verbose,LocalOnly:r[e].LocalOnly}:{Error:!1,Warn:!1,Info:!1,Log:!1,Debug:!1,Verbose:r[e].Verbose,LocalOnly:r[e].LocalOnly},this.persistState.set(`clientState[${t}]`,r),this.RouterClient.transmit(r.clientChannel,r)}return n},toggleClientStateAllCategories(e,t){this.persistState.toggle(`clientState[${e}].dev[${t}]`),this.persistState.toggle(`clientState[${e}].system[${t}]`),this.persistState.toggle(`clientState[${e}].perf[${t}]`)},toggleClientErrors(e){const t=this.persistState.data.clientState[e];this.toggleClientStateAllCategories(e,"Error"),this.RouterClient.transmit(t.clientChannel,t),this.emit("newClientState")},toggleClientWarnings(e){const t=this.persistState.data.clientState[e];this.toggleClientStateAllCategories(e,"Warn"),this.RouterClient.transmit(t.clientChannel,t),this.emit("newClientState")},toggleClientInfo(e){const t=this.persistState.data.clientState[e];this.toggleClientStateAllCategories(e,"Info"),this.RouterClient.transmit(t.clientChannel,t),this.emit("newClientState")},toggleClientLogs(e){const t=this.persistState.data.clientState[e];this.toggleClientStateAllCategories(e,"Log"),this.RouterClient.transmit(t.clientChannel,t),this.emit("newClientState")},toggleClientDebug(e){const t=this.persistState.data.clientState[e];this.toggleClientStateAllCategories(e,"Debug"),this.RouterClient.transmit(t.clientChannel,t),this.emit("newClientState")},toggleClientVerbose(e){const t=this.persistState.data.clientState[e];this.toggleClientStateAllCategories(e,"Verbose"),this.RouterClient.transmit(t.clientChannel,t),this.emit("newClientState")},toggleClientLocalOnly(e){const t=this.persistState.data.clientState[e];this.toggleClientStateAllCategories(e,"LocalOnly"),this.RouterClient.transmit(t.clientChannel,t),this.emit("newClientState")},toggleInitialClientErrorsDefault(){this.persistState.toggle("initialClientStateDefault.Error"),this.emit("newInitialClientStateDefault"),this.defaultShowClientAll()},toggleInitialClientWarningsDefault(){this.persistState.toggle("initialClientStateDefault.Warn"),this.emit("newInitialClientStateDefault"),this.defaultShowClientAll()},toggleInitialClientInfoDefault(){this.persistState.toggle("initialClientStateDefault.Info"),this.emit("newInitialClientStateDefault"),this.defaultShowClientAll()},toggleInitialClientLogsDefault(){this.persistState.toggle("initialClientStateDefault.Log"),this.emit("newInitialClientStateDefault"),this.defaultShowClientAll()},toggleInitialClientDebugDefault(){this.persistState.toggle("initialClientStateDefault.Debug"),this.emit("newInitialClientStateDefault"),this.defaultShowClientAll()},toggleInitialClientVerboseDefault(){this.persistState.toggle("initialClientStateDefault.Verbose"),this.emit("newInitialClientStateDefault"),this.defaultShowClientAll()},toggleInitialClientLocalOnlyDefault(){this.persistState.toggle("initialClientStateDefault.LocalOnly"),this.emit("newInitialClientStateDefault"),this.defaultShowClientAll()},getInitialClientStateDefault(){return this.persistState.get("initialClientStateDefault")}};t.default=n},12622:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(89526)),i=f(n(29581)),o=f(n(39715)),a=f(n(91061)),s=f(n(37577));n(98208);var l=f(n(76897)),u=f(n(2075)),c=f(n(9562)),d=f(n(39319));function f(e){return e&&e.__esModule?e:{default:e}}c.default.initialize();class h extends r.default.Component{constructor(e){super(e);const t=i.default.getClientListVisible();this.state={activeView:i.default.getActiveView(),clientListWidth:t?500:0,clientListHeight:window?window.outerHeight-0:0,logWidth:t&&window?window.outerWidth-500:0,fileMode:i.default.getFileMode(),clientListVisible:t,windowVisibility:i.default.getWindowVisibility(),showSearchBox:i.default.getShowSearchBox(),showProcessMonitor:!1},this.fileMode=this.fileMode.bind(this),this.updateClientListVisible=this.updateClientListVisible.bind(this),this.updateWindowVisibility=this.updateWindowVisibility.bind(this),this.onkeydown=this.onkeydown.bind(this),this.getClientListClasses=this.getClientListClasses.bind(this),this.onResizeWindow=this.onResizeWindow.bind(this),this.setContainerWidths=(0,l.default)(this.setContainerWidths.bind(this),0),this.setActiveView=this.setActiveView.bind(this),this.setShowSearchBox=this.setShowSearchBox.bind(this),this.getShowProcessMonitor=this.getShowProcessMonitor.bind(this)}componentDidMount(){i.default.addListener("FileMode",this.fileMode),i.default.addListener("clientListVisibleChange",this.updateClientListVisible),i.default.addListener("WindowVisibilityChange",this.updateWindowVisibility),i.default.addListener("viewChange",this.setActiveView),i.default.addListener("showSearchBoxChange",this.setShowSearchBox),window.addEventListener("keydown",this.onkeydown),window.addEventListener("resize",this.onResizeWindow),this.getShowProcessMonitor()}componentWillUnmount(){i.default.removeListener("FileMode",this.fileMode),i.default.removeListener("clientListVisibleChange",this.updateClientListVisible),i.default.removeListener("WindowVisibilityChange",this.updateWindowVisibility),i.default.removeListener("viewChange",this.setActiveView),i.default.removeListener("showSearchBoxChange",this.setShowSearchBox),window.removeEventListener("resize",this.onResizeWindow),window.removeEventListener("keydown",this.onkeydown)}getShowProcessMonitor(){c.default.onReady((()=>{const e=(e,t)=>{this.setState({showProcessMonitor:t&&"Process Monitor"in t})};d.default.subscribe("Launcher.update",((t,n)=>{e(0,n.data.componentList)})),c.default.getComponentList(e)}))}setShowSearchBox(){this.setState({showSearchBox:i.default.getShowSearchBox()})}onkeydown(e){!e.ctrlKey||e.altKey?this.state.showSearchBox&&"Escape"===e.key&&i.default.hideSearchBox():"ArrowUp"===e.key?i.default.setTop():"ArrowDown"===e.key?i.default.setBottom():"ArrowLeft"===e.key||"ArrowRight"===e.key?i.default.scrollToActiveRow():"f"===e.key&&i.default.showSearchBox()}setActiveView(){const e=i.default.getActiveView();e!==this.state.activeView&&this.setState({activeView:e})}fileMode(){const e=i.default.getFileMode();this.setState({fileMode:e})}updateClientListVisible(){const e=i.default.getClientListVisible();this.setState({clientListVisible:e,logWidth:e?window.outerWidth-500:window.outerWidth-16,clientListWidth:e?500:0},i.default.triggerLogRerender.bind(i.default))}updateWindowVisibility(){this.setState({windowVisibility:i.default.getWindowVisibility()})}setContainerWidths(e){let{logWidth:t,clientListWidth:n,clientListHeight:r}=this.state;e.resizeChilds&&(t=e.resizeChilds[1].width,n=e.resizeChilds[0].width),r=window.outerHeight-0,this.setState({clientListWidth:n,logWidth:t,clientListHeight:r})}getClientListClasses(){return this.state.clientListWidth<500?"left-panel client-list-small":"left-panel"}onResizeWindow(e){i.default.triggerRowheightRecalculation(),this.setContainerWidths(e)}render(){return"hidden"===this.state.windowVisibility?null:r.default.createElement("div",{className:"body-wrapper"},r.default.createElement(o.default,{activeView:this.state.activeView,showProcessMonitor:this.state.showProcessMonitor}),r.default.createElement("div",{className:"inner-content-wrapper"},r.default.createElement(u.default,{activeView:this.state.activeView}),"logger"===this.state.activeView&&r.default.createElement(a.default,{clientListVisible:this.state.clientListVisible}),"config"===this.state.activeView&&r.default.createElement(s.default,null)))}}t.default=h},66125:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(89526))&&r.__esModule?r:{default:r};class o extends i.default.PureComponent{constructor(){super()}render(){let e=this.props.className||"";e="checkbox"===this.props.type?`${e} inline-checkbox `:`${e} fsbl-logger-button `,this.props.active&&(e+=this.props.activeClass||" active");const t=()=>{let e="checkbox";return e+=this.props.active?" active":"",i.default.createElement("div",{className:e},i.default.createElement("div",{className:"checkbox-background"}))};return i.default.createElement("div",{className:e,title:this.props.title||"",onClick:this.props.onClick},"checkbox"===this.props.type&&i.default.createElement(t,null),this.props.children)}}t.default=o},39715:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(89526)),i=l(n(29581)),o=l(n(66125)),a=n(51742),s=l(n(9562));function l(e){return e&&e.__esModule?e:{default:e}}s.default.initialize();class u extends r.default.PureComponent{constructor(e){super(e),this.state={logCount:i.default.getLogCounts(),clientListVisible:i.default.getClientListVisible()},this.getNewLogCounts=this.getNewLogCounts.bind(this),this.updateClientListVisible=this.updateClientListVisible.bind(this),this.calculateMemoryUsage=this.calculateMemoryUsage.bind(this)}componentDidMount(){i.default.addListener("loggerNewMessages",this.getNewLogCounts),i.default.addListener("clientListVisibleChange",this.updateClientListVisible)}componentWillUnmount(){i.default.removeListener("loggerNewMessages",this.getNewLogCounts),i.default.removeListener("clientListVisibleChange",this.updateClientListVisible)}clearData(){i.default.clearData()}saveToFile(){i.default.saveToFile()}fileMode(){i.default.fileMode()}persist(){i.default.persist()}getNewLogCounts(){const e=i.default.getLogCounts();this.setState({logCount:e})}toggleClientList(){i.default.toggleClientListVisible()}updateClientListVisible(){this.setState({clientListVisible:i.default.getClientListVisible()})}spawnProcessMonitor(){s.default.spawn("Process Monitor")}spawnLocalhost9090(){a.System.openUrlWithBrowser("http://localhost:9090")}calculateMemoryUsage(){const e=i.default.getCurrentLog();function t(e){const t=[],n=[e];let r=0,i=0;for(;n.length&&i<100;){i++;const e=n.pop();if("boolean"==typeof e)r+=4;else if("string"==typeof e)r+=2*e.length;else if("number"==typeof e)r+=8;else if("object"==typeof e&&-1===t.indexOf(e)){t.push(e);for(const t in e)n.push(e[t])}}return r}const n={};for(let r=0;r<e.length;r++){const i=e[r];void 0===n[i.logClientName]&&(n[i.logClientName]=0),n[i.logClientName]=n[i.logClientName]+t(i.allLogArgs)}this.setState({memoryUsage:n})}bytesToSize(e){if(0==e)return"0 Byte";const t=parseInt(Math.floor(Math.log(e)/Math.log(1024)));return`${Math.round(e/Math.pow(1024,t),2)} ${["Bytes","KB","MB","GB","TB"][t]}`}render(){const e={};for(const t in this.state.memoryUsage)e[t]=this.bytesToSize(this.state.memoryUsage[t]);return window.LoggerMemoryUsage=e,r.default.createElement("div",{className:"logger-row top-collar row-shadow"},"logger"===this.props.activeView&&r.default.createElement(o.default,{title:"CTRL+ALT+C",onClick:this.toggleClientList},this.state.clientListVisible?"Hide ":"Show ","Left Panel"),this.props.showProcessMonitor&&r.default.createElement(o.default,{onClick:this.spawnProcessMonitor},"Process Monitor"),r.default.createElement(o.default,{onClick:this.spawnLocalhost9090},"localhost:9090"),r.default.createElement("div",{className:"pull-right"},r.default.createElement("div",{className:"fsbl-logger-buttons"},r.default.createElement(o.default,{onClick:this.saveToFile},"Export Log"),r.default.createElement(o.default,{onClick:this.fileMode},"Import Log"))))}}t.default=u},2075:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(89526)),o=(r=n(29581))&&r.__esModule?r:{default:r};function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}class s extends i.Component{getClasses(e){let t="view-label";return e===this.props.activeView&&(t=`${t} view-label-active`),t}render(){return i.default.createElement("div",{className:"view-switcher"},i.default.createElement("div",{className:this.getClasses("logger"),onClick:o.default.setLoggerVisible},"Logs"),i.default.createElement("div",{className:this.getClasses("config"),onClick:o.default.setConfigVisible},"Conf"))}}var l=s;t.default=l},94687:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(89526)),i=a(n(29581)),o=n(27785);function a(e){return e&&e.__esModule?e:{default:e}}class s extends r.default.Component{constructor(e){super(e),this.state={matches:new o.SearchResults,activeIndex:1,searchString:i.default.getSearchBoxString()},this.onKeyPress=this.onKeyPress.bind(this),this.scrollToNextMatch=this.scrollToNextMatch.bind(this),this.scrollToPreviousMatch=this.scrollToPreviousMatch.bind(this),this.focus=this.focus.bind(this),this.setSearchString=this.setSearchString.bind(this),this.onSearchUpdate=this.onSearchUpdate.bind(this),i.default.setConfigSearchBoxString(this.state.searchString)}focus(){this.refs.SearchBox&&this.refs.SearchBox.focus()}onKeyPress(e){"Enter"===e.key&&this.scrollToNextMatch()}setSearchString(e){i.default.setConfigSearchBoxString(e.target.value)}onSearchUpdate(){this.setState({matches:i.default.getSearchMatches(),searchString:i.default.getSearchBoxString()},(()=>{1===this.state.activeIndex?this.scrollToNextMatch():this.state.matches.setActiveIndex(this.state.activeIndex)}))}scrollToNextMatch(){const{matches:e}=this.state,t=e.next();void 0!==t.value&&(this.setState({activeIndex:t.searchResultNumber}),i.default.setActiveConfigSearchMatch(t.value))}scrollToPreviousMatch(){const{matches:e}=this.state,t=e.previous();this.setState({activeIndex:t.searchResultNumber}),i.default.setActiveConfigSearchMatch(t.value)}hideSearchBox(){i.default.hideSearchBox()}componentDidMount(){i.default.addListener("loggerNewMessages",this.searchAgain),i.default.addListener("showSearchBox",this.focus),i.default.addListener("showSearchBoxChange",this.focus),i.default.addListener("searchBoxTextChange",this.onSearchUpdate)}componentWillUnmount(){i.default.removeListener("loggerNewMessages",this.searchAgain),i.default.removeListener("showSearchBox",this.focus),i.default.removeListener("showSearchBoxChange",this.focus),i.default.removeListener("searchBoxTextChange",this.onSearchUpdate)}searchAgain(){i.default.setConfigSearchBoxString(i.default.Search.searchString)}render(){if(!this.props.show)return null;const e=this.state.matches&&this.state.matches.values?this.state.matches.values.length:0;let t="152px";e>=10?t="142px":e>=100&&(t="128px");const n={left:t};return r.default.createElement("div",{className:"fsbl-logger-searchbox"},r.default.createElement("div",{className:"search-box-input-wrapper"},r.default.createElement("div",{className:"search-box-text-input"},r.default.createElement("input",{value:this.state.searchString,ref:"SearchBox",autoFocus:!0,placeholder:"Find string in logs",type:"text",onKeyPress:this.onKeyPress,onChange:this.setSearchString}),e>0&&r.default.createElement("label",{className:"search-box-match-text",style:n},r.default.createElement("span",null,this.state.activeIndex," of ",e))),r.default.createElement("div",{className:"search-box-match-navigators"},r.default.createElement("span",{onClick:this.scrollToPreviousMatch},"▲"),r.default.createElement("span",{onClick:this.scrollToNextMatch},"▼"))),r.default.createElement("div",{className:"search-box-cancel-button"},r.default.createElement("span",{onClick:this.hideSearchBox},"Cancel")))}}t.default=s},37577:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(89526)),i=s(n(29581)),o=s(n(94687)),a=s(n(5445));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}class u extends r.Component{constructor(){super(),this.state={config:[],showSearchBox:i.default.getShowSearchBox(),searchBoxText:i.default.getSearchBoxString()},this.setShowSearchBox=this.setShowSearchBox.bind(this),this.onSearchUpdate=this.onSearchUpdate.bind(this),this.scrollToActiveLine=this.scrollToActiveLine.bind(this)}setShowSearchBox(){this.setState({showSearchBox:i.default.getShowSearchBox()})}onSearchUpdate(){this.setState({searchBoxText:i.default.getSearchBoxString()})}componentWillUnmount(){i.default.removeListener("showSearchBoxChange",this.setShowSearchBox),i.default.removeListener("searchBoxTextChange",this.onSearchUpdate),i.default.removeListener("activeConfigSearchMatch",this.scrollToActiveLine)}componentDidMount(){i.default.addListener("searchBoxTextChange",this.onSearchUpdate),i.default.addListener("showSearchBoxChange",this.setShowSearchBox),i.default.addListener("activeConfigSearchMatch",this.scrollToActiveLine),i.default.getFullConfig((e=>{this.setState({config:e})}))}scrollToActiveLine(){const e=i.default.getActiveConfigSearchMatch(),t=this.refs[`line${e}`];t&&t.scrollIntoView()}render(){const e=this.state.config;return r.default.createElement("div",{className:"config-viewer"},r.default.createElement("div",{className:"config"},e.map(((e,t)=>{const n=`line${t}`;return r.default.createElement("pre",{ref:n,key:t},r.default.createElement(a.default,{ind:t,str:e,searchBoxText:this.state.searchBoxText}))}))),r.default.createElement(o.default,{show:this.state.showSearchBox}))}}var c=u;t.default=c},91061:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(89526)),i=a(n(99074)),o=a(n(99563));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}class l extends r.PureComponent{render(){return r.default.createElement("div",{className:"logger-wrapper"},this.props.clientListVisible?r.default.createElement(i.default,{fileMode:this.props.fileMode}):r.default.createElement("span",null),r.default.createElement(o.default,null))}}var u=l;t.default=u},19574:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(89526)),i=a(n(29581)),o=n(27785);function a(e){return e&&e.__esModule?e:{default:e}}class s extends r.default.Component{constructor(e){super(e),this.state={matches:new o.SearchResults,activeIndex:1,searchString:i.default.getSearchBoxString()},i.default.setLogSearchBoxString(this.state.searchString),this.onKeyPress=this.onKeyPress.bind(this),this.scrollToNextMatch=this.scrollToNextMatch.bind(this),this.scrollToPreviousMatch=this.scrollToPreviousMatch.bind(this),this.focus=this.focus.bind(this),this.setSearchString=this.setSearchString.bind(this),this.onSearchUpdate=this.onSearchUpdate.bind(this)}focus(){this.refs.SearchBox&&this.refs.SearchBox.focus()}onKeyPress(e){"Enter"===e.key&&this.scrollToNextMatch()}setSearchString(e){i.default.setLogSearchBoxString(e.target.value)}onSearchUpdate(){this.setState({matches:i.default.getSearchMatches(),searchString:i.default.getSearchBoxString()},(()=>{1===this.state.activeIndex?this.scrollToNextMatch():this.state.matches.setActiveIndex(this.state.activeIndex)}))}scrollToNextMatch(){const{matches:e}=this.state,t=e.next();void 0!==t.value&&(this.setState({activeIndex:t.searchResultNumber}),i.default.setActiveRowIndex(t.value))}scrollToPreviousMatch(){const{matches:e}=this.state,t=e.previous();this.setState({activeIndex:t.searchResultNumber}),i.default.setActiveRowIndex(t.value)}hideSearchBox(){i.default.hideSearchBox()}componentDidMount(){i.default.addListener("loggerNewMessages",this.searchAgain),i.default.addListener("showSearchBox",this.focus),i.default.addListener("showSearchBoxChange",this.focus),i.default.addListener("searchBoxTextChange",this.onSearchUpdate)}componentWillUnmount(){i.default.removeListener("loggerNewMessages",this.searchAgain),i.default.removeListener("showSearchBox",this.focus),i.default.removeListener("showSearchBoxChange",this.focus),i.default.removeListener("searchBoxTextChange",this.onSearchUpdate)}searchAgain(){i.default.setLogSearchBoxString(i.default.Search.searchString)}render(){if(!this.props.show)return null;const e=this.state.matches&&this.state.matches.values?this.state.matches.values.length:0;let t="152px";e>=10?t="142px":e>=100&&(t="128px");const n={left:t};return r.default.createElement("div",{className:"fsbl-logger-searchbox"},r.default.createElement("div",{className:"search-box-input-wrapper"},r.default.createElement("div",{className:"search-box-text-input"},r.default.createElement("input",{value:this.state.searchString,ref:"SearchBox",autoFocus:!0,placeholder:"Find string in logs",type:"text",onKeyPress:this.onKeyPress,onChange:this.setSearchString}),e>0&&r.default.createElement("label",{className:"search-box-match-text",style:n},r.default.createElement("span",null,this.state.activeIndex," of ",e))),r.default.createElement("div",{className:"search-box-match-navigators"},r.default.createElement("span",{onClick:this.scrollToPreviousMatch},"▲"),r.default.createElement("span",{onClick:this.scrollToNextMatch},"▼"))),r.default.createElement("div",{className:"search-box-cancel-button"},r.default.createElement("span",{onClick:this.hideSearchBox},"Cancel")))}}t.default=s},27520:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(89526)),i=a(n(66125)),o=a(n(29581));function a(e){return e&&e.__esModule?e:{default:e}}n(51742);class s extends r.default.Component{constructor(e){super(e),this.state={clientState:o.default.getClientState(this.props.clientName),showClientState:o.default.getShowClientState(this.props.clientName),registeredClients:o.default.getRegisteredClients(),hideInactive:o.default.getHideInactiveState(),fileMode:this.props.fileMode,clientMode:o.default.getClientMode(),viewId:this.props.viewId},this.showClientToggle=this.showClientToggle.bind(this),this.errorsToggle=this.errorsToggle.bind(this),this.warningsToggle=this.warningsToggle.bind(this),this.infoToggle=this.infoToggle.bind(this),this.logsToggle=this.logsToggle.bind(this),this.debugToggle=this.debugToggle.bind(this),this.verboseToggle=this.verboseToggle.bind(this),this.localOnlyToggle=this.localOnlyToggle.bind(this),this.getNewClientState=this.getNewClientState.bind(this),this.getNewShowClientState=this.getNewShowClientState.bind(this),this.getHideInactiveState=this.getHideInactiveState.bind(this),this.fileMode=this.fileMode.bind(this),this.changeClientMode=this.changeClientMode.bind(this)}componentDidMount(){o.default.addListener("newClientState",this.getNewClientState),o.default.addListener("newShowClientState",this.getNewShowClientState),o.default.addListener("newHideInactiveState",this.getHideInactiveState),o.default.addListener("FileMode",this.fileMode),o.default.addListener("ChangeClientMode",this.changeClientMode)}componentWillUnmount(){o.default.removeListener("newClientState",this.getNewClientState),o.default.removeListener("newShowClientState",this.getNewShowClientState),o.default.removeListener("newHideInactiveState",this.getHideInactiveState),o.default.removeListener("FileMode",this.fileMode),o.default.removeListener("ChangeClientMode",this.changeClientMode)}fileMode(){const e=o.default.getFileMode();this.setState({fileMode:e})}getNewRegisteredClients(){this.setState({registeredClients:o.default.getRegisteredClients()})}getNewClientState(){const e=o.default.getClientState(this.props.clientName);this.setState({clientState:e})}getNewShowClientState(){this.setState({showClientState:o.default.getShowClientState(this.props.clientName)})}getHideInactiveState(){const e=o.default.getHideInactiveState();this.setState({hideInactive:e})}showClientToggle(){o.default.toggleShowClient(this.props.clientName)}errorsToggle(){o.default.toggleClientErrors(this.props.clientName)}warningsToggle(){o.default.toggleClientWarnings(this.props.clientName)}infoToggle(){o.default.toggleClientInfo(this.props.clientName)}logsToggle(){o.default.toggleClientLogs(this.props.clientName)}debugToggle(){o.default.toggleClientDebug(this.props.clientName)}verboseToggle(){o.default.toggleClientVerbose(this.props.clientName)}localOnlyToggle(){o.default.toggleClientLocalOnly(this.props.clientName)}changeClientMode(){const e=o.default.getClientMode();this.setState({clientMode:e})}render(){const{viewName:e,clientName:t,viewId:n,centralLoggerNamePrefix:a}=this.props;return r.default.createElement("div",null,this.state.hideInactive&&!this.state.showClientState?null:r.default.createElement("div",{className:"fsbl-logger-client-row"},r.default.createElement("div",{className:"fsbl-logger-client-name"},r.default.createElement(i.default,{type:"checkbox",active:this.state.showClientState,onClick:this.showClientToggle}),r.default.createElement("span",{className:"fsbl-logger-client-name-label",title:t,onClick:()=>{o.default.openClient(n?e:t,n)}},a?`${a}-${t}`:t)),this.state.fileMode?null:r.default.createElement("div",{className:"fsbl-logger-button-group"},r.default.createElement("div",{className:"fsbl-logger-buttons"},r.default.createElement(i.default,{className:"fsbl-logger-toggle",active:this.state.clientState[this.state.clientMode].Error,onClick:this.errorsToggle},"Errors"),r.default.createElement(i.default,{className:"fsbl-logger-toggle",active:this.state.clientState[this.state.clientMode].Warn,onClick:this.warningsToggle},"Warning"),r.default.createElement(i.default,{className:"fsbl-logger-toggle",active:this.state.clientState[this.state.clientMode].Log,onClick:this.logsToggle},"Log"),r.default.createElement(i.default,{className:"fsbl-logger-toggle",active:this.state.clientState[this.state.clientMode].Info,onClick:this.infoToggle},"Info"),r.default.createElement(i.default,{className:"fsbl-logger-toggle",active:this.state.clientState[this.state.clientMode].Debug,onClick:this.debugToggle},"Debug"),"console"===this.state.clientMode?null:r.default.createElement("span",null,r.default.createElement(i.default,{className:"fsbl-logger-toggle",active:this.state.clientState[this.state.clientMode].Verbose,onClick:this.verboseToggle},"Verbose"))))))}}t.default=s},28113:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(89526)),i=s(n(27520)),o=s(n(66125)),a=s(n(29581));function s(e){return e&&e.__esModule?e:{default:e}}class l extends r.default.Component{constructor(e){super(e),this.state={theList:a.default.getRegisteredClient(),registeredClients:a.default.getRegisteredClients(),hideInactive:a.default.getHideInactiveState(),fileMode:this.props.fileMode,clientMode:a.default.getClientMode(),initialClientStateDefault:a.default.getInitialClientStateDefault(),clientListFilter:"",showFullClientNames:!1},this.loggerRegister=this.loggerRegister.bind(this),this.loggerUnregister=this.loggerUnregister.bind(this),this.getHideInactiveState=this.getHideInactiveState.bind(this),this.fileMode=this.fileMode.bind(this),this.getNewRegisteredClients=this.getNewRegisteredClients.bind(this),this.changeClientMode=this.changeClientMode.bind(this),this.clientModeButtonStyle=this.clientModeButtonStyle.bind(this),this.toggleClientNameLimit=this.toggleClientNameLimit.bind(this),this.getNewInitialClientStateDefault=this.getNewInitialClientStateDefault.bind(this),this.handleClientListFilterChange=this.handleClientListFilterChange.bind(this)}componentDidMount(){a.default.addListener("LoggerRegister",this.loggerRegister),a.default.addListener("LoggerUnregister",this.loggerUnregister),a.default.addListener("newHideInactiveState",this.getHideInactiveState),a.default.addListener("FileMode",this.fileMode),a.default.addListener("ChangeClientMode",this.changeClientMode),a.default.addListener("newInitialClientStateDefault",this.getNewInitialClientStateDefault),a.default.addListener("newShowClientState",this.getNewRegisteredClients)}componentWillUnmount(){a.default.removeListener("LoggerRegister",this.loggerRegister),a.default.removeListener("LoggerUnregister",this.loggerUnregister),a.default.removeListener("newHideInactiveState",this.getHideInactiveState),a.default.removeListener("FileMode",this.fileMode),a.default.removeListener("ChangeClientMode",this.changeClientMode),a.default.removeListener("newInitialClientStateDefault",this.getNewInitialClientStateDefault),a.default.removeListener("newShowClientState",this.getNewRegisteredClients)}loggerRegister(){const e=a.default.getRegisteredClient();this.setState({theList:e})}loggerUnregister(){const e=a.default.getRegisteredClient();this.setState({theList:e})}fileMode(){const e=a.default.getFileMode();this.setState({fileMode:e})}allToggle(){a.default.toggleShowAllClients()}toggleHideInactive(){a.default.toggleHideInactive()}getHideInactiveState(){const e=a.default.getHideInactiveState();this.setState({hideInactive:e})}default(){a.default.defaultShowClientAll()}consoleMode(){a.default.consoleMode()}devMode(){a.default.devMode()}systemMode(){a.default.systemMode()}perfMode(){a.default.perfMode()}getNewRegisteredClients(){this.setState({registeredClients:a.default.getRegisteredClients()})}changeClientMode(){const e=a.default.getClientMode();this.setState({clientMode:e})}allErrorsToggle(){a.default.allErrorsToggle()}allWarningToggle(){a.default.allWarningToggle()}allInfoToggle(){a.default.allInfoToggle()}allLogsToggle(){a.default.allLogsToggle()}allDebugToggle(){a.default.allDebugToggle()}allVerboseToggle(){a.default.allVerboseToggle()}allLocalConsoleToggle(){a.default.allLocalConsoleToggle()}allCoreToggle(){a.default.allCoreToggle()}clientModeButtonStyle(e){return e===this.state.clientMode?"active":"inactive"}errorsToggleInitialDefault(){a.default.toggleInitialClientErrorsDefault()}warningsToggleInitialDefault(){a.default.toggleInitialClientWarningsDefault()}infoToggleInitialDefault(){a.default.toggleInitialClientInfoDefault()}logsToggleInitialDefault(){a.default.toggleInitialClientLogsDefault()}debugToggleInitialDefault(){a.default.toggleInitialClientDebugDefault()}verboseToggleInitialDefault(){a.default.toggleInitialClientVerboseDefault()}localOnlyToggleInitialDefault(){a.default.toggleInitialClientLocalOnlyDefault()}getNewInitialClientStateDefault(){const e=a.default.getInitialClientStateDefault();this.setState({initialClientStateDefault:e})}handleClientListFilterChange(e){this.setState({clientListFilter:e.target.value})}toggleClientNameLimit(){const e=this.state.showFullClientNames;this.setState({showFullClientNames:!e})}render(){const e=this.state.theList.sort(((e,t)=>e.toLowerCase().localeCompare(t.toLowerCase()))).filter((e=>""===this.state.clientListFilter||e&&e.toLowerCase().includes(this.state.clientListFilter.toLowerCase()))).map(((e,t)=>{const{registeredClients:n}=this.state,o=n[e]&&n[e].viewId,a=n[e]&&n[e].name,s=n[e]&&n[e].centralLoggerNamePrefix;return r.default.createElement(i.default,{key:t,clientName:e,fileMode:this.state.fileMode,viewId:o,viewName:a,centralLoggerNamePrefix:s})}));return r.default.createElement("div",{className:"logger-clients-section topDiv"},this.state.fileMode||0!==e.length?r.default.createElement("div",{className:"fsbl-logger-client-row"},r.default.createElement("div",{className:"fsbl-logger-button-group fsbl-logger-client-list-actions"},r.default.createElement(o.default,{onClick:this.allToggle},"Toggle All"),r.default.createElement(o.default,{className:"fsbl-logger-toggle",active:this.state.hideInactive,onClick:this.toggleHideInactive},"Hide Uncaptured"),r.default.createElement(o.default,{active:this.state.showFullClientNames,onClick:this.toggleClientNameLimit},this.state.showFullClientNames?"Short Client Names":"Full Client Names")),r.default.createElement("div",null,r.default.createElement("div",{className:"fsbl-logger-buttons"},r.default.createElement("div",{className:"fsbl-logger-button-group-label"},"Select All"),r.default.createElement("div",{className:"fsbl-logger-button-group"},r.default.createElement(o.default,{className:"fsbl-logger-toggle",active:this.state.initialClientStateDefault.Error,onClick:this.errorsToggleInitialDefault},"Errors"),r.default.createElement(o.default,{className:"fsbl-logger-toggle",active:this.state.initialClientStateDefault.Warn,onClick:this.warningsToggleInitialDefault},"Warning"),r.default.createElement(o.default,{className:"fsbl-logger-toggle",active:this.state.initialClientStateDefault.Log,onClick:this.logsToggleInitialDefault},"Log"),r.default.createElement(o.default,{className:"fsbl-logger-toggle",active:this.state.initialClientStateDefault.Info,onClick:this.infoToggleInitialDefault},"Info"),r.default.createElement(o.default,{className:"fsbl-logger-toggle",active:this.state.initialClientStateDefault.Debug,onClick:this.debugToggleInitialDefault},"Debug"),r.default.createElement(o.default,{className:"fsbl-logger-toggle",active:this.state.initialClientStateDefault.Verbose,onClick:this.verboseToggleInitialDefault},"Verbose"))))):null,this.state.fileMode?r.default.createElement("div",{className:"logger-row"},r.default.createElement("div",{className:"fsbl-logger-button-group"},r.default.createElement("div",{className:"fsbl-logger-buttons"},r.default.createElement("span",{className:"fileStyle"},"File Mode")))):null,r.default.createElement("div",{className:"fsbl-logger-buttons"},r.default.createElement("input",{placeholder:"Filter List",value:this.state.clientListFilter,onChange:this.handleClientListFilterChange}),""!==this.state.clientListFilter&&r.default.createElement("div",null,"Filter hiding ",this.state.theList.length-e.length," clients.")),r.default.createElement("div",{style:{height:this.props.height},className:this.state.showFullClientNames?"logger-client-list logger-client-list--full-names":"logger-client-list"},e))}}t.default=l},90434:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(89526)),i=a(n(66125)),o=a(n(29581));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}class l extends r.Component{devModeToggle(){o.default.devModeToggle()}systemModeToggle(){o.default.systemModeToggle()}perfModeToggle(){o.default.perfModeToggle()}render(){return r.default.createElement("div",null,r.default.createElement("div",{className:"flex-column"},r.default.createElement("div",{className:"fsbl-logger-button-group-label"},"Log types"),r.default.createElement("div",{className:"fsbl-logger-button-group fsbl-logger-buttons"},r.default.createElement(i.default,{className:"fsbl-logger-toggle",active:this.props.systemMode,onClick:this.systemModeToggle},"System"),r.default.createElement(i.default,{className:"fsbl-logger-toggle",active:this.props.devMode,onClick:this.devModeToggle},"Dev"),r.default.createElement(i.default,{className:"fsbl-logger-toggle",active:this.props.perfMode,onClick:this.perfModeToggle},"Perf"))))}}var u=l;t.default=u},65222:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(89526)),i=u(n(7402)),o=u(n(76897)),a=u(n(66125)),s=u(n(29581)),l=u(n(90434));function u(e){return e&&e.__esModule?e:{default:e}}const c=(0,o.default)(s.default.emitResizeTimeout,200);class d extends r.default.Component{constructor(e){super(e),this.state={highLight1:s.default.getFilterStrings()[0],highLight2:s.default.getFilterStrings()[1],highLight3:s.default.getFilterStrings()[2],highLight4:s.default.getFilterStrings()[3],devMode:s.default.getDevModeState(),systemMode:s.default.getSystemModeState(),perfMode:s.default.getPerfModeState(),filter:{logic:s.default.getFilterLogic()},clientListWidth:2},this.highLight1=this.highLight1.bind(this),this.highLight2=this.highLight2.bind(this),this.highLight3=this.highLight3.bind(this),this.highLight4=this.highLight4.bind(this),this.getNewModeState=this.getNewModeState.bind(this),this.updateFilterLogic=this.updateFilterLogic.bind(this)}componentDidMount(){s.default.addListener("ModeStateChange",this.getNewModeState),s.default.addListener("filterLogicChange",this.updateFilterLogic),new i.default((()=>{setTimeout(c,200)})).observe(document.getElementById("displayControl"))}componentWillUnmount(){s.default.removeListener("ModeStateChange",this.getNewModeState),s.default.removeListener("filterLogicChange",this.updateFilterLogic)}updateFilterLogic(){this.setState({filter:{logic:s.default.getFilterLogic()}})}getNewModeState(){const e=s.default.getDevModeState(),t=s.default.getSystemModeState(),n=s.default.getPerfModeState();this.setState({devMode:e,systemMode:t,perfMode:n})}highLight1(e){this.setState({highLight1:e.target.value}),s.default.setFilter1(e.target.value)}highLight2(e){this.setState({highLight2:e.target.value}),s.default.setFilter2(e.target.value)}highLight3(e){this.setState({highLight3:e.target.value}),s.default.setFilter3(e.target.value)}highLight4(e){this.setState({highLight4:e.target.value}),s.default.setFilter4(e.target.value)}setFilterLogicAnd(){s.default.setFilterLogic("AND")}setFilterLogicOr(){s.default.setFilterLogic("OR")}render(){return r.default.createElement("div",{id:"displayControl"},r.default.createElement("div",{className:"topDiv"},r.default.createElement("div",{className:"logger-row"},r.default.createElement(l.default,{systemMode:this.state.systemMode,devMode:this.state.devMode,perfMode:this.state.perfMode}))),r.default.createElement("div",{className:"logger-row"},r.default.createElement("div",{className:"filter-logic "},r.default.createElement("div",{className:"fsbl-logger-button-group-label"},"Filter Logic"),r.default.createElement("div",{className:"fsbl-logger-button-group fsbl-logger-buttons"},r.default.createElement(a.default,{className:"fsbl-logger-toggle",active:"AND"===this.state.filter.logic,onClick:this.setFilterLogicAnd},"AND"),r.default.createElement(a.default,{className:"fsbl-logger-toggle",active:"OR"===this.state.filter.logic,onClick:this.setFilterLogicOr},"OR")))),r.default.createElement("div",{className:"logger-row"},r.default.createElement("div",{style:{margin:"2px 10px"},className:""},r.default.createElement("input",{className:"filter filter-0",type:"text",placeholder:"Filter 1",value:this.state.highLight1.str,onChange:this.highLight1}),r.default.createElement("input",{className:"filter filter-1",type:"text",placeholder:"Filter 2",value:this.state.highLight2.str,onChange:this.highLight2}),r.default.createElement("input",{className:"filter filter-2",type:"text",placeholder:"Filter 3",value:this.state.highLight3.str,onChange:this.highLight3}),r.default.createElement("input",{className:"filter filter-3",type:"text",placeholder:"Filter 4",value:this.state.highLight4.str,onChange:this.highLight4}))))}}t.default=d},99074:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(89526)),i=l(n(28113)),o=l(n(65222)),a=l(n(59898)),s=l(n(8393));function l(e){return e&&e.__esModule?e:{default:e}}function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}class c extends r.Component{constructor(){super(),this.state={visible:!0},this.toggleVisibility=this.toggleVisibility.bind(this)}toggleVisibility(){this.setState({visible:!this.state.visible})}render(){let e="left-panel-accordion ";this.props.className&&(e+=this.props.className);let t="left-panel-accordion-content";return this.state.visible&&(t=`${t} visible `),r.default.createElement("div",{className:e},r.default.createElement("div",{onClick:this.toggleVisibility,className:"left-panel-accordion-label-wrap"},r.default.createElement("span",{className:"left-panel-accordion-visiblity-indicator"},this.state.visible&&r.default.createElement("span",{className:"ff-arrow-down"}," ▼"),!this.state.visible&&r.default.createElement("span",{className:"ff-arrow-up"}," ▶")),this.props.label),r.default.createElement("div",{className:t},this.state.visible&&this.props.children))}}class d extends r.Component{render(){return r.default.createElement("div",{className:"left-panel"},r.default.createElement(a.default,null),r.default.createElement(c,{label:"Settings"},r.default.createElement(s.default,null)),r.default.createElement(c,{label:"Filters"},r.default.createElement(o.default,null)),r.default.createElement(c,{className:"client-list-accordion",label:"Components and Services"},r.default.createElement(i.default,{fileMode:this.props.fileMode})))}}var f=d;t.default=f},59898:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(89526)),i=a(n(66125)),o=a(n(29581));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}class l extends r.Component{render(){return r.default.createElement("div",{className:"quick-views logger-row"},"Quick views",r.default.createElement("div",{className:"fsbl-logger-buttons"},r.default.createElement(i.default,{title:"CTRL+ALT+E",className:"logger-button-margin-left",onClick:o.default.configureLoggerForErrors},"Errors Only"),r.default.createElement(i.default,{title:"CTRL+ALT+D",className:"logger-button-margin-left",onClick:o.default.configureLoggerForDefaults},"Default"),r.default.createElement(i.default,{title:"CTRL+ALT+S",className:"logger-button-margin-left",onClick:o.default.configureLoggerForFieldCapture},"Finsemble Support")))}}var u=l;t.default=u},8393:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(89526)),i=a(n(66125)),o=a(n(29581));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}class l extends r.Component{constructor(){super(),this.state={showOnStartup:o.default.getShowOnStartup(),showOnError:o.default.getShowOnError()},this.getShowLoggerOnError=this.getShowLoggerOnError.bind(this),this.getShowLoggerOnStartup=this.getShowLoggerOnStartup.bind(this)}getShowLoggerOnError(){this.setState({showOnError:o.default.getShowOnError()})}getShowLoggerOnStartup(){this.setState({showOnStartup:o.default.getShowOnStartup()})}componentDidMount(){o.default.addListener("showOnStartup",this.getShowLoggerOnStartup),o.default.addListener("showOnError",this.getShowLoggerOnError)}componentWillUnmount(){o.default.removeListener("showOnStartup",this.getShowLoggerOnStartup),o.default.removeListener("showOnError",this.getShowLoggerOnError)}render(){return r.default.createElement("div",null,r.default.createElement(i.default,{className:"checkbox-row",type:"checkbox",active:this.state.showOnStartup,onClick:o.default.toggleShowOnStartup},"Open Logger on Startup"),r.default.createElement(i.default,{type:"checkbox",className:"checkbox-row",active:this.state.showOnError,onClick:o.default.toggleShowOnError},"Open Logger on Error"))}}var u=l;t.default=u},90978:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(89526)),i=a(n(66125)),o=a(n(29581));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}class l extends r.Component{constructor(e){super(e);const t=o.default.getLogState();this.state={logState:t,rowTimeDiff:o.default.getRowTimeDiff(),logCounts:o.default.getLogCounts()},this.updateRowTimeDiff=this.updateRowTimeDiff.bind(this),this.getNewDisplayState=this.getNewDisplayState.bind(this),this.loggerGetNewMessages=this.loggerGetNewMessages.bind(this)}getNewDisplayState(){const e=o.default.getLogState();this.setState({logState:e})}updateRowTimeDiff(){this.setState({rowTimeDiff:o.default.getRowTimeDiff()})}componentDidMount(){o.default.addListener("rowTimeDiffChange",this.updateRowTimeDiff),o.default.addListener("newDisplayState",this.getNewDisplayState),o.default.addListener("loggerNewMessages",this.loggerGetNewMessages)}componentWillUnmount(){o.default.removeListener("rowTimeDiffChange",this.updateRowTimeDiff),o.default.removeListener("newDisplayState",this.getNewDisplayState),o.default.removeListener("loggerNewMessages",this.loggerGetNewMessages)}loggerGetNewMessages(){this.setState({logCounts:o.default.getLogCounts()})}allToggle(){o.default.toggleDisplayAll()}errorsToggle(){o.default.toggleDisplayErrors()}warningsToggle(){o.default.toggleDisplayWarnings()}infoToggle(){o.default.toggleDisplayInfo()}logsToggle(){o.default.toggleDisplayLogs()}debugToggle(){o.default.toggleDisplayDebug()}verboseToggle(){o.default.toggleDisplayVerbose()}getRowTimeDiffClasses(){let e="fsbl-logger-row-diff";if(this.state.rowTimeDiff){let t="okay";this.state.rowTimeDiff>100&&(t="slow"),this.state.rowTimeDiff>300&&(t="very-slow"),this.state.rowTimeDiff>500&&(t="beyond-help"),e=`${e} fsbl-logger-row-diff-${t}`}return e}top(){o.default.setTop()}bottom(){o.default.setBottom()}render(){const e=this.getRowTimeDiffClasses();return r.default.createElement("div",{id:"log-level-filters",className:"right-panel-controls logger-row",style:{justifyContent:"space-between",paddingTop:"5px",paddingBottom:"5px"}},r.default.createElement("div",{className:"flex-column",style:{marginRight:"15px"}},r.default.createElement("div",{className:"fsbl-logger-button-group-label"},"Log Levels"),r.default.createElement("div",{className:"fsbl-logger-button-group fsbl-logger-buttons"},r.default.createElement(i.default,{className:"fsbl-logger-toggle fsbl-logger-../LoggerButton",type:"../LoggerButton",onClick:this.allToggle},"All"),r.default.createElement(i.default,{className:"fsbl-logger-toggle",active:this.state.logState.Error,onClick:this.errorsToggle},"Error"),r.default.createElement(i.default,{className:"fsbl-logger-toggle",active:this.state.logState.Warn,onClick:this.warningsToggle},"Warning"),r.default.createElement(i.default,{className:"fsbl-logger-toggle",active:this.state.logState.Log,onClick:this.logsToggle},"Log"),r.default.createElement(i.default,{className:"fsbl-logger-toggle",active:this.state.logState.Info,onClick:this.infoToggle},"Info"),r.default.createElement(i.default,{className:"fsbl-logger-toggle",active:this.state.logState.Debug,onClick:this.debugToggle},"Debug"),r.default.createElement(i.default,{className:"fsbl-logger-toggle",active:this.state.logState.Verbose,onClick:this.verboseToggle},"Verbose")),r.default.createElement("div",{className:"fsbl-logger-button-group-label"},r.default.createElement("b",null,this.state.logCounts.display)," of  ",r.default.createElement("b",null,this.state.logCounts.master),"  lines visible")),r.default.createElement("div",{className:"delta-box-wrapper flex-column"},r.default.createElement("div",{className:"fsbl-logger-button-group-label"},"Delta"),r.default.createElement("div",{className:"fsbl-logger-buttons"},r.default.createElement("div",{className:e},null!==this.state.rowTimeDiff?this.state.rowTimeDiff:"N/A"))),r.default.createElement("div",{className:"flex-column pull-right"},r.default.createElement("div",{className:"fsbl-logger-button-group fsbl-logger-buttons"},r.default.createElement(i.default,{onClick:this.top,title:"Ctrl+Up"},"Scroll Top"),r.default.createElement(i.default,{onClick:this.bottom,title:"Ctrl+Down"},"Scroll Bottom"),r.default.createElement(i.default,{title:"CTRL+ALT+X",className:"fsbl-logger-button-negative",onClick:o.default.clearData},"Clear Data"))))}}var u=l;t.default=u},33452:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(89526)),i=d(n(38745)),o=n(34255),a=d(n(29581)),s=d(n(90611)),l=d(n(70594)),u=n(51865),c=d(n(5445));function d(e){return e&&e.__esModule?e:{default:e}}const f="This log happened after the next log in the list.",h=()=>{const e=u.IconMap.Error;return r.default.createElement(e,{title:f})};Date.prototype.YYYYMMDDHHMMSS=function(){function e(e){return(e<10?"0":"")+e}return`${e(this.getHours())}:${e(this.getMinutes())}:${e(this.getSeconds())}:${t=this.getMilliseconds(),t<10?`00${t}`:t<100?`0${t}`:t}`;var t},n(49434);const p="fsbl-log-message fsbl-plaintext-message-wrapper console-message-wrapper",g={Verbose:`${p} fsbl-log-verbose`,Log:`${p} console-log-level`,Info:`${p} console-info-level`,Debug:`${p} console-debug-level`,Warn:`${p} console-warning-level`,Error:`${p} console-error-level`},m=new o.CellMeasurerCache({defaultHeight:50,fixedWidth:!0});let v;function y(e){v=e,window.ListRef=v}class w extends r.default.Component{constructor(e){super(e),this.update=!1,this.ctrl=!1,this.state={tableWidth:100,tableHeight:100,logCounts:a.default.getLogCounts(),registeredClients:a.default.getRegisteredClients(),searchBoxIsVisible:a.default.getShowSearchBox(),searchBoxText:a.default.getSearchBoxString(),filterStrings:this.getFilterStrings(!0),allowedLogLevels:a.default.getLogState(),allClientVisibility:a.default.getAllShowClientState(),firstMessageTime:a.default.getFirstMessageTime(),activeRowTimestamp:0,activeRowIndex:null,clientListVisible:a.default.getClientListVisible(),comparisonRows:[]},this.getRegisteredClients=this.getRegisteredClients.bind(this),this.updateActiveRowState=this.updateActiveRowState.bind(this),this.windowResize=this.windowResize.bind(this),this.rowRenderer=this.rowRenderer.bind(this),this.onRowClicked=this.onRowClicked.bind(this),this.setSearchBoxIsVisible=this.setSearchBoxIsVisible.bind(this),this.updateSearchBoxText=this.updateSearchBoxText.bind(this),this.getFilterStrings=this.getFilterStrings.bind(this),this.setFirstMessageTime=this.setFirstMessageTime.bind(this),this.setBottom=this.setBottom.bind(this),this.setActiveRowTimestamp=this.setActiveRowTimestamp.bind(this),this.scrollToActiveRow=this.scrollToActiveRow.bind(this),this.addToRowDiff=this.addToRowDiff.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.onActiveRowChanged=this.onActiveRowChanged.bind(this),window.consoleComponent=this}componentDidMount(){v.recomputeRowHeights(),a.default.addListener("loggerNewMessages",this.updateActiveRowState),a.default.addListener("newShowClientState",this.updateActiveRowState),a.default.addListener("showSearchBoxChange",this.setSearchBoxIsVisible),a.default.addListener("searchBoxTextChange",this.updateSearchBoxText),a.default.addListener("activeRowChanged",this.onActiveRowChanged),a.default.addListener("NewHighlightValues1",this.getFilterStrings),a.default.addListener("NewHighlightValues2",this.getFilterStrings),a.default.addListener("NewHighlightValues3",this.getFilterStrings),a.default.addListener("NewHighlightValues4",this.getFilterStrings),a.default.addListener("rerenderList",this.rerenderList),a.default.addListener("recalculateHeight",this.recalculateAllRows),a.default.addListener("newFirstMessageTime",this.setFirstMessageTime),a.default.addListener("SetTop",this.setTop),a.default.addListener("SetBottom",this.setBottom),a.default.addListener("scrollToActiveRow",this.scrollToActiveRow),a.default.addListener("newShowClientState",this.getRegisteredClients),window.addEventListener("keydown",this.onKeyDown),window.addEventListener("keyup",this.onKeyUp)}componentWillUnmount(){a.default.removeListener("loggerNewMessages",this.updateActiveRowState),a.default.removeListener("newShowClientState",this.updateActiveRowState),a.default.removeListener("showSearchBoxChange",this.setSearchBoxIsVisible),a.default.removeListener("activeRowChanged",this.onActiveRowChanged),a.default.removeListener("searchBoxTextChange",this.updateSearchBoxText),a.default.removeListener("NewHighlightValues1",this.getFilterStrings),a.default.removeListener("NewHighlightValues2",this.getFilterStrings),a.default.removeListener("NewHighlightValues3",this.getFilterStrings),a.default.removeListener("NewHighlightValues4",this.getFilterStrings),a.default.removeListener("rerenderList",this.rerenderList),a.default.removeListener("recalculateHeight",this.recalculateAllRows),a.default.removeListener("newFirstMessageTime",this.setFirstMessageTime),a.default.removeListener("SetTop",this.setTop),a.default.removeListener("SetBottom",this.setBottom),a.default.removeListener("scrollToActiveRow",this.scrollToActiveRow),a.default.removeListener("newShowClientState",this.getRegisteredClients),window.removeEventListener("keydown",this.onKeyDown),window.removeEventListener("keyup",this.onKeyUp)}getRegisteredClients(){this.setState({registeredClients:a.default.getRegisteredClients()})}setFirstMessageTime(){this.setState({firstMessageTime:a.default.getFirstMessageTime()})}getFilterStrings(e=!1){let t=a.default.getFilterStrings();if(t=t.map((e=>e.str.split(" "))),e)return t;this.setState({filterStrings:t})}updateSearchBoxText(){this.setState({searchBoxText:a.default.getSearchBoxString()})}setSearchBoxIsVisible(){this.setState({searchBoxIsVisible:a.default.getShowSearchBox()})}setActiveRowTimestamp(e){this.setState({activeRowTimestamp:e,activeRowIndex:this.getActiveRowIndex(e)})}windowResize(){const e=a.default.getWindowWidth(),t=a.default.getWindowHeight(),n=document.querySelector("#message-list"),r=n?n.getBoundingClientRect().top:600,i=Math.abs(t-r-5);this.update=!0,this.setState({tableWidth:e,tableHeight:i})}updateActiveRowState(){this.update=!0,this.setState({activeRowIndex:this.getActiveRowIndex()})}typeStyle(e){let t;return t="Error"==e?{color:"red"}:"Warn"==e?{color:"#D4A017"}:"Debug"==e?{color:"blue"}:"Verbose"==e?{color:"darkblue"}:{color:"black"},t}onActiveRowChanged(){const e=a.default.getActiveRowIndex();this.setState({comparisonRows:[],activeRowIndex:e},(()=>{this.scrollToActiveRow();const t=a.default.getFilteredLog();t[e]&&this.setActiveRowTimestamp(t[e].logTimestamp),this.addToRowDiff(e)}))}onRowClicked(e=0){m.clear(e),this.setActiveRowTimestamp(a.default.getFilteredLog()[e].logTimestamp),this.addToRowDiff(e),v.recomputeRowHeights(e)}recalculateAllRows(){m.clearAll(),v.recomputeRowHeights()}rerenderList(){m.clearAll(),v.forceUpdate()}scrollToActiveRow(){null!==this.state.activeRowIndex&&void 0!==this.state.activeRowIndex&&(v.recomputeRowHeights(this.state.activeRowIndex),v.scrollToRow(this.state.activeRowIndex))}setTop(){v.scrollToRow(0)}setBottom(){const e=a.default.getFilteredLog();e.length>0&&(v.recomputeRowHeights(e.length-1),v.scrollToRow(e.length-1))}openClient(e,t=null){a.default.openClient(e,t)}addToRowDiff(e){const t=a.default.getFilteredLog();let n=t[e],r=this.state.comparisonRows.filter((e=>void 0!==e)),i=null;this.state.comparisonRow&&this.ctrl?(1==r.length?r.push(e):r=[e],n=this.state.comparisonRow):r=[e],2===r.length&&(i=Math.abs(t[r[0]].timeElapsedFromStartup-t[r[1]].timeElapsedFromStartup)),a.default.setRowTimeDiff(i),this.update=!0,this.setState({comparisonRow:n,comparisonRows:r})}getLogContent(e,t){let n="highlighted-message";return"string"==typeof e&&e.includes("Stack")&&(n=`${n} message-log-stack`),r.default.createElement("span",{key:t,className:n},r.default.createElement(c.default,{index:t,className:n,str:e,filterStrings:this.state.filterStrings,searchBoxText:this.state.searchBoxText})," ")}rowRenderer({index:e,key:t,parent:n,style:i}){const c=a.default.getFilteredLog(),d=c[e];let p=null,y=this.state.registeredClients[d.logClientName];y&&y.viewId&&(p=y.viewId);const w=c[e+1];let b=!1;if(w&&d.logTimestamp>w.logTimestamp&&(b=!0),!d)return null;if(d.previousRowTimeDelta=0,d.timeElapsedFromStartup=Math.round(d.logTimestamp-this.state.firstMessageTime),e>0){const t=c[e-1];t&&(d.previousRowTimeDelta=d.timeElapsedFromStartup-t.timeElapsedFromStartup)}const _={...i};_.wordBreak="break-all",_.display="flex",_.alignItems="center",_.justifyContent="space-between",_.fontFamily="Consolas, Lucida Console, Courier New, monospace",_.padding="3px",_.width="calc(100% - 8px)";const S=u.IconMap[d.logType];let C=g[d.logType];e===this.state.activeRowIndex&&(C=`${C} active-console-row`),this.state.comparisonRows.includes(e)&&(C=`${C} fsbl-logger-row-selected`);const x=b?"time-elapsed out-of-order":"time-elapsed",E=r.default.createElement("div",{onContextMenu:()=>{m.clear(e),v.recomputeRowHeights(e)},onClick:()=>{this.onRowClicked(e)},style:_,className:C,key:t},r.default.createElement(S,null),b&&r.default.createElement(h,null),r.default.createElement("div",{title:b?f:"",className:x},new Date(d.logTimestamp).YYYYMMDDHHMMSS()),r.default.createElement("div",{className:"console-message-text fsbl-plaintext-log-message",style:{width:"100%"}},d.parsedLogArgs.map(((e,t)=>"object"==typeof e?r.default.createElement("span",{key:t,style:{display:"inline-block !important",marginRight:"10px"}},r.default.createElement(s.default,{filterStrings:this.state.filterStrings||[],searchBoxText:this.state.searchBoxText,theme:l.default,data:e})):this.getLogContent(e,t)))),r.default.createElement("div",{className:"fsbl-plaintext-extra-info",onClick:()=>{this.openClient(y.name,p)}},d.logClientName));return r.default.createElement(o.CellMeasurer,{cache:m,columnIndex:0,key:t,parent:n,rowIndex:e},E)}shouldComponentUpdate(){let e=!1;return"visible"===a.default.getWindowVisibility()&&(e=!0),e}getActiveRowIndex(e=this.state.activeRowTimestamp){const t=a.default.getFilteredLog();for(let n=0;n<t.length;n++)if(t[n].logTimestamp===e)return n;return null}onKeyDown(e){this.ctrl=e.ctrlKey}onKeyUp(){this.ctrl=!1}render(){m.clearAll();let e=document.getElementById("log-level-filters")?document.getElementById("log-level-filters").offsetHeight:63;return this.state.searchBoxIsVisible&&(e+=20),r.default.createElement(i.default,null,(({width:t,height:n})=>r.default.createElement("div",{style:{width:`${t}px`}},r.default.createElement(o.List,{id:"log-console",ref:y,height:n-e,width:t,overscanRowCount:0,noRowsRenderer:()=>null,rowCount:a.default.getFilteredLog().length,deferredMeasurementCache:m,rowHeight:m.rowHeight||20,rowRenderer:this.rowRenderer}))))}}t.default=w},99563:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(89526)),i=l(n(90978)),o=l(n(33452)),a=l(n(19574)),s=l(n(29581));function l(e){return e&&e.__esModule?e:{default:e}}function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}class c extends r.Component{constructor(){super(),this.state={showSearchBox:s.default.getShowSearchBox()},this.setShowSearchBox=this.setShowSearchBox.bind(this)}componentDidMount(){s.default.addListener("showSearchBoxChange",this.setShowSearchBox)}componentWillUnmount(){s.default.removeListener("showSearchBoxChange",this.setShowSearchBox)}setShowSearchBox(){this.setState({showSearchBox:s.default.getShowSearchBox()})}render(){return r.default.createElement("div",{className:"right-panel"},r.default.createElement(i.default,null),r.default.createElement(o.default,null),r.default.createElement(a.default,{show:this.state.showSearchBox}))}}var d=c;t.default=d},51865:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IconMap=t.NoIcon=t.WarnIcon=t.InfoIcon=t.ErrorIcon=void 0;var r,i=(r=n(89526))&&r.__esModule?r:{default:r};class o extends i.default.PureComponent{constructor(e){super(e)}render(){return i.default.createElement("span",{is:"ui-icon",class:"message-level-icon spritesheet-smallicons smallicon-error",title:this.props.title||"Error",style:{backgroundPosition:"-40px 70px",width:"10px",height:"10px",marginRight:"5px"}})}}t.ErrorIcon=o;class a extends i.default.PureComponent{constructor(){super()}render(){return i.default.createElement("span",{is:"ui-icon",class:"message-level-icon spritesheet-smallicons smallicon-info",style:{backgroundPosition:"-40px 50px",width:"10px",height:"10px",marginRight:"5px"}})}}t.InfoIcon=a;class s extends i.default.PureComponent{constructor(){super()}render(){return i.default.createElement("span",{is:"ui-icon",class:"message-level-icon spritesheet-smallicons smallicon-warning",style:{backgroundPosition:"-60px 10px",width:"10px",height:"10px",marginRight:"5px"}})}}t.WarnIcon=s;class l extends i.default.PureComponent{constructor(){super()}render(){return i.default.createElement("span",{style:{width:"10px",height:"10px",marginRight:"5px"}})}}t.NoIcon=l;const u={Error:o,Warn:s,Info:a,Debug:l,Log:l,Verbose:l};t.IconMap=u},5445:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.findAll=t.fillInChunks=t.findChunks=t.combineChunks=void 0;var r,i=(r=n(89526))&&r.__esModule?r:{default:r};const o=({chunks:e})=>e.sort(((e,t)=>e.start-t.start)).reduce(((e,t)=>{if(0===e.length)return[t];const n=e.pop();if(t.start<=n.end){const r=Math.max(n.end,t.end);e.push({start:n.start,end:r,rawSearch:[t.rawSearch,n.rawSearch],searchWord:[t.searchWord,n.searchWord]})}else e.push(n,t);return e}),[]);function a(e){return e}t.combineChunks=o;const s=({autoEscape:e=!0,caseSensitive:t=!1,sanitize:n=a,searchWords:r,textToHighlight:i})=>(i=n(i),r.filter((e=>e)).reduce(((r,o)=>{Array.isArray(o)&&(o=o.join(" "));const a=o;o=n(o),e&&(o=o.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")),o=o.replace(/\s/g,"|");const s=new RegExp(o,t?"g":"gi");let l;for(;l=s.exec(i);){const e=l.index,t=s.lastIndex;t>e&&r.push({start:e,end:t,searchWord:o,rawSearch:a}),l.index==s.lastIndex&&s.lastIndex++}return r}),[]));t.findChunks=s;const l=({chunksToHighlight:e,totalLength:t})=>{const n=[],r=(e,t,r,i,o)=>{t-e>0&&n.push({start:e,end:t,highlight:r,searchWord:i,rawSearch:o})};if(0===e.length)r(0,t,!1);else{let n=0;e.forEach((e=>{r(n,e.start,!1,e.searchWord,e.rawSearch),r(e.start,e.end,!0,e.searchWord,e.rawSearch),n=e.end})),r(n,t,!1)}return n};t.fillInChunks=l;const u=({autoEscape:e=!0,caseSensitive:t=!1,findChunks:n=s,sanitize:r=(e=>e),searchWords:i,textToHighlight:a})=>l({chunksToHighlight:o({chunks:n({autoEscape:e,caseSensitive:t,sanitize:r,searchWords:i,textToHighlight:a})}),totalLength:a?a.length:0});t.findAll=u;class c extends i.default.PureComponent{constructor(e){super(e)}render(){let{searchBoxText:e,filterStrings:t,str:n}=this.props;const r=n.toString();t||(t=[]);const o=[e].concat(t).filter((e=>""!==e)),a={searchBox:e};t=t.map((e=>Array.isArray(e)?e.join(" "):e)),Object.keys(t).forEach((e=>{a[e]=t[e]}));const s=u({autoEscape:!0,caseSensitive:!1,searchWords:o,textToHighlight:r});return i.default.createElement("span",{key:this.props.index,className:this.props.className},s.map(((e,t)=>{const n=r.substr(e.start,e.end-e.start);let o="";return Array.isArray(e.rawSearch)||(e.rawSearch=[e.rawSearch]),e.highlight&&Object.keys(a).forEach((t=>{e.rawSearch.includes(a[t])&&(o=`${o} match-${t}`)})),o.trim().includes(" ")&&(o="multiple-matches"),i.default.createElement("i",{className:o,key:t},n)})))}}t.default=c},35053:(e,t,n)=>{var r=n(60352),i=n(18393),o=n(49914);t=r(!1);var a=i(o);t.push([e.id,'/* Roboto regular */\r\n\r\n@font-face {\r\n\tfont-family: "Roboto";\r\n\tsrc: url("/Roboto-Regular.eot");\r\n\tsrc: url("/Roboto-Regular.eot?#iefix") format("embedded-opentype"), url("/Roboto-Regular.woff2") format("woff2"),\r\n\t\turl("/Roboto-Regular.woff") format("woff"), url("/Roboto-Regular.ttf") format("truetype");\r\n\tfont-weight: 400;\r\n\tfont-style: normal;\r\n}\r\n\r\n/* Roboto italic */\r\n\r\n@font-face {\r\n\tfont-family: "Roboto";\r\n\tsrc: url("/Roboto-Italic.eot");\r\n\tsrc: url("/Roboto-Italic.eot?#iefix") format("embedded-opentype"), url("/Roboto-Italic.woff2") format("woff2"),\r\n\t\turl("/Roboto-Italic.woff") format("woff"), url("/Roboto-Italic.ttf") format("truetype");\r\n\tfont-weight: 400;\r\n\tfont-style: italic;\r\n}\r\n\r\n/* Roboto bold */\r\n\r\n@font-face {\r\n\tfont-family: "Roboto";\r\n\tsrc: url("/Roboto-Bold.eot");\r\n\tsrc: url("/Roboto-Bold.eot?#iefix") format("embedded-opentype"), url("/Roboto-Bold.woff2") format("woff2"),\r\n\t\turl("/Roboto-Bold.woff") format("woff"), url("/Roboto-Bold.ttf") format("truetype");\r\n\tfont-weight: 700;\r\n\tfont-style: normal;\r\n}\r\n\r\n:root {\r\n\t--core-primary: #22262f;\r\n\t--core-primary-opacity: rgb(34, 38, 47, 0.4);\r\n\t--core-primary-1: #171a20;\r\n\t--core-primary-2: #373b43;\r\n\t--core-primary-3: #3d4455;\r\n\t--core-primary-4: #5b606f;\r\n\t--core-primary-5: #acb2c0;\r\n\r\n\t--accent-primary: #42a5ba;\r\n\t--accent-primary-1: #36788b;\r\n\r\n\t--accent-positive: #2cc13f;\r\n\t--accent-positive-1: #27ae38;\r\n\r\n\t--accent-aware: #f5a623;\r\n\t--accent-aware-1: #dc951f;\r\n\r\n\t--accent-negative: #f26666;\r\n\t--accent-negative-1: #da5c5c;\r\n\r\n\t--scrollbar-color: var(--core-primary-5);\r\n\r\n\t--slate1: var(--core-primary-5);\r\n\t--slate2: var(--core-primary-5);\r\n\t--slate3: var(--core-primary-4);\r\n\t--slate4: var(--core-primary-3);\r\n\t--slate5: var(--core-primary-2);\r\n\t--slate6: var(--core-primary);\r\n\t--slate7: var(--core-primary-1);\r\n\t--gray1: #eee;\r\n\t--gray2: #ddd;\r\n\t--gray3: #ccc;\r\n\t--gray4: #bbb;\r\n\t--gray5: #999;\r\n\t--gray6: #777;\r\n\t--gray7: #555;\r\n\t--blue1: var(--accent-primary-1);\r\n\t--blue2: var(--accent-primary-1);\r\n\t--blue3: var(--accent-primary-1);\r\n\t--blue4: var(--accent-primary);\r\n\t--blue5: var(--accent-primary);\r\n\t--blue6: var(--accent-primary-1);\r\n\t--blue7: var(--accent-primary-1);\r\n\t--yellow1: var(--accent-aware);\r\n\t--yellow2: var(--accent-aware);\r\n\t--yellow3: var(--accent-aware);\r\n\t--yellow4: var(--accent-aware);\r\n\t--yellow5: var(--accent-aware-1);\r\n\t--yellow6: var(--accent-aware-1);\r\n\t--yellow7: var(--accent-aware-1);\r\n\t--red1: var(--accent-negative);\r\n\t--red2: var(--accent-negative);\r\n\t--red3: var(--accent-negative);\r\n\t--red4: var(--accent-negative);\r\n\t--red5: var(--accent-negative-1);\r\n\t--red6: var(--accent-negative-1);\r\n\t--red7: var(--accent-negative-1);\r\n\t--slate: var(--slate4);\r\n\t--gray: var(--gray4);\r\n\t--blue: var(--blue4);\r\n\t--yellow: var(--yellow4);\r\n\t--red: var(--red4);\r\n\r\n\t--collar-background-color: var(--core-primary);\r\n\t--collar-border-color: #dadada;\r\n\t--left-panel-background-color: var(--core-primary-2);\r\n\t--leftNav-background-color: var(--core-primary);\r\n\r\n\t--active-logger-button-background: var(--accent-primary);\r\n\t--basic-button-background-color: var(--gray1);\r\n\t--basic-button-font-color: black;\r\n\t--button-border-color: var(--active-logger-button-background);\r\n\t--accordion-label-color: var(--collar-background-color);\r\n\t--logger-row-border-color: var(--accordion-label-color);\r\n\t--inactive-logger-button-background: var(--basic-button-background-color);\r\n\t--toggle-button-font-color: var(--gray1);\r\n\t--toggle-button-background-color: var(--core-primary-4);\r\n\t--accordion-label-wrap-height: 30px;\r\n\r\n\t--match-0: var(--core-primary-5);\r\n\t--match-1: var(--accent-primary-1);\r\n\t--match-2: var(--accent-aware);\r\n\t--match-3: var(--accent-positive);\r\n}\r\n* {\r\n\tbox-sizing: border-box;\r\n}\r\nhtml {\r\n\theight: 100%;\r\n}\r\n\r\nbody {\r\n\toverflow: hidden;\r\n\tmargin: 10px;\r\n\theight: 100%;\r\n\twidth: 100%;\r\n\tfont-family: "Roboto medium, sans-serif";\r\n\tfont-size: 11px;\r\n}\r\n\r\ntitle {\r\n\tfont-family: "Roboto";\r\n\tfont-size: 18pt;\r\n}\r\n\r\n.hidden {\r\n\tdisplay: none !important;\r\n}\r\n\r\n.fsbl-logger-button.fsbl-logger-button-negative,\r\n.fsbl-logger-button-negative {\r\n\tbackground-color: var(--accent-negative);\r\n\tcolor: white;\r\n}\r\n\r\n.fsbl-logger-button.fsbl-logger-button-negative:hover {\r\n\tbackground-color: var(--accent-negative-1);\r\n\tcolor: white;\r\n}\r\n\r\n.fsbl-logger-button {\r\n\ttext-align: center;\r\n\tfont-size: 1em;\r\n\tmargin: 2px;\r\n\tdisplay: inline-block;\r\n\tpadding: 2px 4px;\r\n\tborder-radius: 3px;\r\n\tbackground-color: var(--basic-button-background-color);\r\n\tcolor: var(--basic-button-font-color);\r\n\tcursor: pointer;\r\n\tfont-weight: 400;\r\n}\r\n\r\n.flex-column {\r\n\tdisplay: flex;\r\n\tflex-direction: column;\r\n}\r\n\r\n.inline-flex-column {\r\n\tdisplay: inline-flex;\r\n\tflex-direction: column;\r\n}\r\n\r\n.filter-logic {\r\n\tmargin-right: 18px;\r\n}\r\n\r\n.fsbl-logger-searchbox {\r\n\tdisplay: flex;\r\n\tposition: absolute;\r\n\tbottom: 0;\r\n\tbackground-color: var(--gray1);\r\n\twidth: 100%;\r\n\tz-index: 100;\r\n\talign-items: center;\r\n}\r\n\r\n.fsbl-logger-searchbox > div {\r\n\tdisplay: flex;\r\n}\r\n\r\n/*forces log stacks onto a new line/ */\r\n\r\n.message-log-stack {\r\n\tdisplay: block !important;\r\n}\r\n\r\n.search-box-input-wrapper {\r\n\theight: 18px;\r\n}\r\n\r\n.search-box-match-navigators {\r\n\tmargin-right: 0.5em;\r\n\tdisplay: flex;\r\n}\r\n\r\n.search-box-match-navigators > span,\r\n.search-box-cancel-button > span {\r\n\tdisplay: flex;\r\n\tflex-direction: column;\r\n\talign-self: center;\r\n\tborder: 1px solid var(--collar-border-color);\r\n\tbackground-color: var(--inactive-logger-button-background);\r\n\twidth: 25px;\r\n\tjustify-content: center;\r\n\tcursor: pointer;\r\n\tcolor: #848383;\r\n\tfont-size: 8px;\r\n\theight: 100%;\r\n\talign-items: center;\r\n}\r\n\r\n.search-box-cancel-button {\r\n\tmargin-left: auto;\r\n}\r\n\r\n.search-box-cancel-button > span {\r\n\tbackground-color: white;\r\n\tpadding: 0px 4px;\r\n}\r\n\r\n.search-box-match-navigators > span:hover,\r\n.search-box-cancel-button > span:hover {\r\n\tbackground-color: gainsboro;\r\n\tcolor: black;\r\n}\r\n\r\n.search-box-cancel-button > span {\r\n\twidth: 100%;\r\n\tfont-size: 12px;\r\n}\r\n\r\n.search-box-match-text {\r\n\tdisplay: inline-flex;\r\n\talign-items: center;\r\n\tcolor: gray;\r\n\tbackground-color: white;\r\n}\r\n\r\n.search-box-text-input input {\r\n\tborder: 0px;\r\n\theight: 16px;\r\n}\r\n\r\n.search-box-text-input {\r\n\tborder: 1px solid var(--collar-border-color);\r\n}\r\n\r\n.fsbl-plaintext-log-message span {\r\n\tdisplay: inline-block;\r\n\twhite-space: pre-wrap;\r\n}\r\n\r\n.fsbl-logger-row-index {\r\n\ttext-align: right;\r\n}\r\n\r\n.fsbl-logger-button-group-label {\r\n\tdisplay: flex;\r\n\tmargin: 0.5em 0;\r\n\tfont-weight: 500;\r\n}\r\n\r\n.fsbl-log-message {\r\n\tuser-select: auto;\r\n\tword-break: break-all;\r\n}\r\n\r\n.fsbl-logger-highlight {\r\n\tbackground-color: #38ff03 !important;\r\n}\r\n\r\n.fsbl-logger-search-highlight {\r\n\tbackground-color: yellow !important;\r\n}\r\n\r\n.fsbl-logger-row-selected {\r\n\tbackground-color: rgba(0, 126, 255, 0.24) !important;\r\n\tborder-top: 2px solid;\r\n}\r\n\r\n.console-debug-level {\r\n\tcolor: blue;\r\n}\r\n\r\n.fsbl-log-info {\r\n\tcolor: #2b8686;\r\n\tbackground-color: #e9fbfb;\r\n\tborder-bottom: 1px solid #d2fbfb;\r\n}\r\n\r\n.fsbl-log-warning {\r\n\tcolor: #5c3b00;\r\n\tbackground-color: #fffbe6;\r\n\tborder: 1px solid #fff5c2;\r\n}\r\n\r\n.fsbl-log-error {\r\n\tbackground-color: #fff0f0;\r\n\tborder: 1px solid #ffd7d7;\r\n\tcolor: #ff0000;\r\n}\r\n\r\n.fsbl-log-verbose {\r\n\tcolor: gray;\r\n}\r\n\r\n.pull-right {\r\n\tmargin-left: auto;\r\n\talign-self: center;\r\n}\r\n\r\n.fsbl-logger-client-row,\r\n.logger-row {\r\n\tdisplay: flex;\r\n\tflex-direction: row;\r\n\talign-items: center;\r\n\tjustify-content: space-between;\r\n}\r\n\r\n.fsbl-logger-client-row {\r\n\tmargin: 3px 0;\r\n}\r\n\r\n.filter-client-list {\r\n\tmargin-left: 6px;\r\n}\r\n\r\n.fsbl-logger-client-name {\r\n\tflex-basis: 45%;\r\n\tdisplay: flex;\r\n\talign-content: center;\r\n\talign-items: center;\r\n}\r\n\r\n.fsbl-logger-client-name-label {\r\n\tmax-width: 25ch;\r\n\ttext-overflow: ellipsis;\r\n\toverflow: hidden;\r\n\twhite-space: nowrap;\r\n\tcursor: pointer;\r\n}\r\n\r\n.logger-client-list--full-names .fsbl-logger-client-name-label {\r\n\tmax-width: 100%;\r\n\twhite-space: normal;\r\n}\r\n\r\n.fsbl-logger-client-label {\r\n\twhite-space: nowrap;\r\n\toverflow: hidden;\r\n\ttext-overflow: ellipsis;\r\n\twidth: 100%;\r\n}\r\n\r\n.fsbl-logger-client-list-actions {\r\n\tflex-basis: 45%;\r\n}\r\n\r\n.time-elapsed {\r\n\tcolor: gray;\r\n\twidth: 85px;\r\n\tjustify-content: flex-start;\r\n\tdisplay: inline-flex;\r\n\tmargin-right: 5px;\r\n\talign-self: flex-start;\r\n}\r\n\r\n.time-elapsed.out-of-order {\r\n\tcolor: var(--accent-negative-1);\r\n}\r\n\r\n.fsbl-logger-button {\r\n\tborder: 1px solid transparent;\r\n}\r\n\r\n.fsbl-logger-button.active {\r\n\tbackground-color: var(--active-logger-button-background) !important;\r\n\tcolor: white !important;\r\n}\r\n\r\n.fsbl-logger-button.active:hover {\r\n\tbackground-color: var(--accent-primary-1) !important;\r\n\tcolor: white !important;\r\n}\r\n\r\n.fsbl-logger-button:hover {\r\n\tbackground-color: var(--gray3);\r\n\ttransition: 0.1s ease;\r\n}\r\n\r\n.fsbl-logger-toggle:hover {\r\n\tbackground: var(--active-logger-button-background);\r\n\tcolor: white;\r\n\ttransition: 0.1s ease;\r\n}\r\n.fsbl-logger-toggle {\r\n\tcolor: var(--toggle-button-font-color);\r\n\tbackground-color: var(--toggle-button-background-color);\r\n}\r\n.fsbl-logger-button i {\r\n\tvertical-align: middle;\r\n\tmargin: 0 6px;\r\n}\r\n\r\n.fsbl-log {\r\n\tfont-family: Consolas;\r\n\tfont-size: 1.1em;\r\n\tuser-select: initial;\r\n}\r\n\r\n.delta-box-wrapper {\r\n\tmargin-left: 12px;\r\n}\r\n\r\n.fsbl-logger-row-diff {\r\n\tfont-size: 1.1em;\r\n\tbackground-color: gainsboro;\r\n\tpadding: 0.25em;\r\n\ttext-align: center;\r\n\tfont-weight: 400;\r\n}\r\n\r\n.logger-button-margin-left {\r\n\tmargin-left: 6px;\r\n}\r\n\r\n.fsbl-logger-row-diff-okay {\r\n\tbackground-color: green;\r\n\tcolor: white;\r\n}\r\n\r\n.top-collar {\r\n\tbackground-color: var(--collar-background-color);\r\n\tmargin-bottom: 0px;\r\n\twidth: 100%;\r\n}\r\n\r\n.top-border {\r\n\tmargin-top: 8px;\r\n\tborder-top: 1px solid var(--collar-border-color);\r\n}\r\n\r\n.top-collar .fsbl-logger-button {\r\n\tborder: 0px;\r\n\tbox-shadow: none;\r\n\tbackground-color: transparent;\r\n\tmargin-top: 0px;\r\n\tmargin-bottom: 0px;\r\n\tpadding: 0.5em;\r\n\tcolor: var(--core-primary-5);\r\n}\r\n\r\n.top-collar .fsbl-logger-button:hover {\r\n\tbackground-color: var(--core-primary-2);\r\n\tcolor: white;\r\n}\r\n\r\n.fsbl-logger-row-diff-slow {\r\n\tbackground-color: #ffe900;\r\n\tcolor: #5a5a5a;\r\n}\r\ni,\r\ni:before,\r\ni:after,\r\n.fsbl-window-manager-icon {\r\n\tbox-sizing: content-box;\r\n}\r\n\r\n.fsbl-logger-row-diff-very-slow {\r\n\tbackground-color: orange;\r\n\tcolor: white;\r\n}\r\n\r\n.fsbl-logger-row-diff-beyond-help {\r\n\tbackground-color: red;\r\n\tcolor: white;\r\n}\r\n\r\n.fsbl-plaintext-message-wrapper {\r\n\tborder-top: 1px solid transparent;\r\n\tborder-bottom: 1px solid #f0f0f0;\r\n\tpadding: 0.5em;\r\n\talign-self: flex-start;\r\n\tpadding-left: 0.5em;\r\n}\r\n\r\n.active-console-row {\r\n\tborder-top: 1px solid #aeaef1;\r\n\tborder-bottom: 1px solid #aeaef1 !important;\r\n\tbackground-color: #e7f3fd;\r\n}\r\n\r\n.fsbl-plaintext-log-message {\r\n\tflex: 1 1;\r\n\tuser-select: text;\r\n}\r\n\r\n.fsbl-plaintext-message {\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\tjustify-content: space-between;\r\n}\r\n\r\n.fsbl-plaintext-extra-info {\r\n\tmax-width: 300px;\r\n\tdisplay: flex;\r\n\tjustify-content: flex-end;\r\n\twhite-space: nowrap;\r\n\ttext-decoration: underline;\r\n\tcursor: pointer;\r\n\tmargin-left: 10px;\r\n}\r\n\r\n.fsbl-plaintext-number {\r\n\tcolor: blue;\r\n}\r\n\r\n.fsbl-plaintext-timestamp {\r\n\tcolor: blue;\r\n}\r\n\r\n.fixed-header {\r\n\tborder-bottom: 1px solid #f0f0f0;\r\n\tz-index: 1000;\r\n}\r\n\r\n.flex-start {\r\n\talign-self: flex-start;\r\n}\r\n\r\nbody.dialog input:focus {\r\n\tborder: 1px solid #039bff;\r\n}\r\n\r\nbody {\r\n\tmargin: 0px;\r\n\tfont-family: "Segoe UI", Tahoma, sans-serif;\r\n\tfont-weight: 400;\r\n\toverflow-x: hidden;\r\n\theight: 100%;\r\n\t-webkit-user-select: none;\r\n\tbackground-color: white;\r\n}\r\n\r\n.checkStyle {\r\n\tvertical-align: bottom;\r\n\theight: 14px;\r\n}\r\n\r\n.fsbl-logger-toggle-all-span {\r\n\tmargin: 50px;\r\n}\r\n\r\nhr {\r\n\twidth: 100%;\r\n}\r\n\r\ninput {\r\n\tborder: 1px solid #d0d0d0;\r\n\tpadding: 1px 0px 1px 5px;\r\n}\r\n\r\n.filter {\r\n\twidth: 480px;\r\n}\r\n\r\n.checkbox {\r\n\twidth: 14px;\r\n\theight: 14px;\r\n\tdisplay: inline-flex;\r\n\talign-content: center;\r\n\tborder-radius: 50%;\r\n\tpadding: 2px;\r\n\tborder: 1px solid #abc5aa;\r\n\tcursor: pointer;\r\n\tmargin-right: 5px;\r\n}\r\n\r\n.inline-checkbox {\r\n\tdisplay: inline-flex;\r\n}\r\n\r\n.checkbox.active > .checkbox-background,\r\n.checkbox:hover > .checkbox-background {\r\n\tbackground-color: var(--active-logger-button-background);\r\n}\r\n\r\n.checkbox-background {\r\n\tbackground-color: var(--toggle-button-background-color);\r\n\twidth: 100%;\r\n\theight: 100%;\r\n\tborder-radius: 50%;\r\n}\r\n\r\n.source-code {\r\n\tfont-family: monospace;\r\n\tfont-size: 11px !important;\r\n\twhite-space: pre-wrap;\r\n}\r\n\r\n:focus {\r\n\toutline-width: 0;\r\n}\r\n\r\nimg {\r\n\t-webkit-user-drag: none;\r\n}\r\n\r\n.match-searchBox {\r\n\tbackground-color: yellow;\r\n}\r\n\r\n[class^="filter-"] {\r\n\tborder-radius: 2px;\r\n}\r\n\r\n.filter-0 {\r\n\tborder: solid 2px var(--match-0);\r\n}\r\n\r\n.filter-1 {\r\n\tborder: solid 2px var(--match-1);\r\n}\r\n\r\n.filter-2 {\r\n\tborder: solid 2px var(--match-2);\r\n}\r\n\r\n.filter-3 {\r\n\tborder: solid 2px var(--match-3);\r\n}\r\n\r\n.match-0 {\r\n\tbackground-color: var(--match-0);\r\n\tcolor: white;\r\n}\r\n\r\n.match-1 {\r\n\tbackground-color: var(--match-1);\r\n\tcolor: white;\r\n}\r\n\r\n.match-2 {\r\n\tbackground-color: var(--match-2);\r\n\tcolor: white;\r\n}\r\n\r\n.match-3 {\r\n\tbackground-color: var(--match-3);\r\n}\r\n\r\n.multiple-matches {\r\n\tbackground-color: #795c5f;\r\n\tcolor: white;\r\n}\r\n\r\n.active-console-row .match-searchBox {\r\n\tbackground-color: #ffb86f;\r\n}\r\n\r\n.Logger {\r\n\tdisplay: flex;\r\n\tflex-direction: column;\r\n}\r\n\r\n.log-content {\r\n\tdisplay: flex;\r\n\tflex-direction: row;\r\n}\r\n\r\n.left-panel,\r\n.right-panel {\r\n\tdisplay: flex;\r\n\tflex-direction: column;\r\n}\r\n\r\n.right-panel {\r\n\tflex: 1 1 auto;\r\n\theight: calc(100vh - 26px);\r\n}\r\n\r\n.left-panel input {\r\n\tdisplay: flex;\r\n\tbackground-color: var(--left-panel-background-color);\r\n\tcolor: var(--core-primary-5);\r\n\tcaret-color: var(--core-primary-5);\r\n\theight: 26px;\r\n\tmargin-top: 7px;\r\n}\r\n\r\n.left-panel {\r\n\tbackground-color: var(--left-panel-background-color);\r\n\theight: calc(100vh - 26px);\r\n\tcolor: var(--gray2);\r\n\twidth: 530px;\r\n\tborder-right: 1px solid var(--collar-border-color);\r\n}\r\n\r\n.left-panel-accordion {\r\n\tdisplay: flex;\r\n\tflex-direction: column;\r\n}\r\n.client-list-accordion {\r\n\tflex: 1;\r\n\toverflow: hidden;\r\n}\r\n\r\n.left-panel-accordion-content.visible {\r\n\tpadding: 1em;\r\n\theight: calc(100% - var(--accordion-label-wrap-height));\r\n\toverflow: auto;\r\n}\r\n\r\n.left-panel-accordion-label-wrap {\r\n\theight: var(--accordion-label-wrap-height);\r\n\tfont-size: 14px;\r\n\tpadding: 0 0.25em;\r\n\tcursor: pointer;\r\n\tbackground-color: var(--accordion-label-color);\r\n\tborder-bottom: 1px solid var(--slate7);\r\n\tdisplay: flex;\r\n\tflex-direction: row;\r\n\talign-items: center;\r\n\tfont-weight: bold;\r\n}\r\n\r\n.left-panel-accordion-visiblity-indicator {\r\n\tmargin-right: 0.5em;\r\n}\r\n\r\n.logger-client-list {\r\n\tmargin-top: 1em;\r\n}\r\n.right-panel-controls {\r\n\tborder-bottom: 1px solid var(--collar-border-color);\r\n\talign-items: flex-start;\r\n\tpadding: 1em;\r\n}\r\n\r\n.logger-wrapper {\r\n\tborder-top: 1px solid var(--slate7);\r\n\tdisplay: flex;\r\n\tflex: 1 1;\r\n}\r\n\r\n.quick-views {\r\n\tpadding: 1em;\r\n}\r\n\r\n.checkbox-row {\r\n\tdisplay: block;\r\n\tcursor: pointer;\r\n\tmargin-top: 5px;\r\n}\r\n\r\n.view-switcher {\r\n\tdisplay: flex;\r\n\tflex-direction: column;\r\n\twidth: 50px;\r\n\tpadding: 0 4px;\r\n\tbackground-color: var(--leftNav-background-color);\r\n\tcolor: var(--gray5);\r\n\talign-items: center;\r\n}\r\n\r\n.view-label {\r\n\tfont-size: 14px;\r\n\tmargin: 1em 0;\r\n\tcursor: pointer;\r\n\tpadding-bottom: 4px;\r\n\tborder-bottom: 3px solid transparent;\r\n}\r\n\r\n.view-label:hover {\r\n\tborder-bottom: 3px solid var(--core-primary-5);\r\n\tcolor: white;\r\n}\r\n\r\n.view-label-active {\r\n\tcolor: var(--gray2);\r\n\tfont-weight: bold;\r\n\tborder-bottom: 3px solid var(--accent-primary);\r\n}\r\n.config-viewer {\r\n\tdisplay: flex;\r\n\toverflow: auto;\r\n\theight: calc(100vh - 26px);\r\n\tflex: 1 1;\r\n\tbackground-color: var(--slate6);\r\n\tcolor: var(--gray4);\r\n\tflex-direction: column;\r\n}\r\n.config-viewer .config {\r\n\theight: 100%;\r\n\toverflow: auto;\r\n}\r\n.config-viewer pre {\r\n\tfont-family: Consolas !important;\r\n\tfont-size: 12px;\r\n\tuser-select: auto;\r\n\tmargin: 0px;\r\n}\r\n\r\n.body-wrapper {\r\n\tdisplay: flex;\r\n\tflex-direction: column;\r\n}\r\n\r\n.inner-content-wrapper {\r\n\tflex-direction: row;\r\n\tdisplay: flex;\r\n}\r\n\r\n.config-viewer .fsbl-logger-searchbox {\r\n\tposition: relative;\r\n}\r\n\r\n.config-viewer .match-searchBox {\r\n\tcolor: var(--gray7);\r\n}\r\n\r\n.spritesheet-smallicons:not(.icon-mask) {\r\n\talign-self: flex-start;\r\n\tbackground-image: url('+a+");\r\n}\r\n\r\n.spritesheet-smallicons.icon-mask {\r\n\t-webkit-mask-image: url("+a+");\r\n}\r\n\r\n::-webkit-scrollbar-track {\r\n\tborder-radius: 3px;\r\n}\r\n\r\n::-webkit-scrollbar {\r\n\twidth: 9px;\r\n\tbackground-color: var(--scrollbar-color);\r\n\tborder-radius: 3px;\r\n}\r\n\r\n::-webkit-scrollbar-thumb {\r\n\tcursor: pointer;\r\n\tborder-radius: inherit;\r\n\tbackground-color: rgba(0, 0, 0, 0.2);\r\n}\r\n",""]),e.exports=t},4188:(e,t,n)=>{(t=n(60352)(!1)).push([e.id,'/*\r\n * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.\r\n * Copyright (C) 2009 Anthony Ricaud <rik@webkit.org>\r\n *\r\n * Redistribution and use in source and binary forms, with or without\r\n * modification, are permitted provided that the following conditions\r\n * are met:\r\n *\r\n * 1. Redistributions of source code must retain the above copyright\r\n * notice, this list of conditions and the following disclaimer.\r\n * 2. Redistributions in binary form must reproduce the above copyright\r\n * notice, this list of conditions and the following disclaimer in the\r\n * documentation and/or other materials provided with the distribution.\r\n * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of\r\n * its contributors may be used to endorse or promote products derived\r\n * from this software without specific prior written permission.\r\n *\r\n * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY\r\n * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\r\n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\r\n * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY\r\n * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\r\n * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\r\n * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\r\n * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\r\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\r\n * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r\n */\r\n\r\n.console-view {\r\n\tbackground-color: white;\r\n\toverflow: hidden;\r\n}\r\n\r\n.console-view > .toolbar {\r\n\tborder-bottom: 1px solid #dadada;\r\n}\r\n\r\n.console-view-wrapper {\r\n\tbackground-color: #eee;\r\n}\r\n\r\n.console-view-fix-select-all {\r\n\theight: 0;\r\n\toverflow: hidden;\r\n}\r\n\r\n.console-settings-pane {\r\n\tflex: none;\r\n\tborder-bottom: 1px solid #dadada;\r\n}\r\n\r\n.console-settings-pane .toolbar {\r\n\tflex: 1 1;\r\n}\r\n\r\n#console-messages {\r\n\tflex: 1 1;\r\n\tpadding: 2px 0;\r\n\toverflow-y: auto;\r\n\tword-wrap: break-word;\r\n\t-webkit-user-select: text;\r\n\ttransform: translateZ(0);\r\n}\r\n\r\n#console-prompt {\r\n\tclear: right;\r\n\tposition: relative;\r\n\tmargin: 0 22px 0 20px;\r\n\tmin-height: 18px; /* Sync with ConsoleViewMessage.js */\r\n}\r\n\r\n#console-prompt .CodeMirror {\r\n\tpadding: 3px 0 1px 0;\r\n}\r\n\r\n#console-prompt .CodeMirror-line {\r\n\tpadding-top: 0;\r\n}\r\n\r\n#console-prompt .CodeMirror-lines {\r\n\tpadding-top: 0;\r\n}\r\n\r\n#console-prompt .console-prompt-icon {\r\n\tposition: absolute;\r\n\tleft: -13px;\r\n\ttop: 5px;\r\n\t-webkit-user-select: none;\r\n}\r\n\r\n.console-message,\r\n.console-user-command {\r\n\tclear: right;\r\n\tposition: relative;\r\n\tpadding: 3px 22px 1px 0;\r\n\tmargin-left: 24px;\r\n\tmin-height: 18px; /* Sync with ConsoleViewMessage.js */\r\n\tflex: auto;\r\n\tdisplay: flex;\r\n}\r\n\r\n.console-message > * {\r\n\tflex: auto;\r\n}\r\n\r\n.console-timestamp {\r\n\tcolor: gray;\r\n\t-webkit-user-select: none;\r\n\tflex: none;\r\n\tmargin-right: 5px;\r\n}\r\n\r\n.console-message-repeat-count {\r\n\tmargin: 2px 0 0 10px;\r\n\tflex: none;\r\n}\r\n\r\n.repeated-message {\r\n\tmargin-left: 4px;\r\n}\r\n\r\n.repeated-message .console-message-stack-trace-toggle,\r\n.repeated-message > .console-message-text {\r\n\tflex: 1;\r\n}\r\n\r\n.console-error-level .repeated-message,\r\n.console-warning-level .repeated-message,\r\n.console-verbose-level .repeated-message,\r\n.console-info-level .repeated-message {\r\n\tdisplay: flex;\r\n}\r\n\r\n.console-info {\r\n\tcolor: rgb(128, 128, 128);\r\n\tfont-style: italic;\r\n\tpadding-bottom: 2px;\r\n}\r\n\r\n.console-group .console-group > .console-group-messages {\r\n\tmargin-left: 16px;\r\n}\r\n\r\n.console-group-title {\r\n\tfont-weight: bold;\r\n}\r\n\r\n.expand-group-icon {\r\n\t-webkit-user-select: none;\r\n\tposition: absolute;\r\n\tbackground-color: rgb(110, 110, 110);\r\n\tleft: -14px;\r\n}\r\n\r\n.console-group {\r\n\tposition: relative;\r\n}\r\n\r\n.console-message-wrapper {\r\n\tdisplay: flex;\r\n\tborder-bottom: 1px solid rgb(240, 240, 240);\r\n}\r\n\r\n.console-message-wrapper.console-adjacent-user-command-result {\r\n\tborder-bottom: none;\r\n}\r\n\r\n.console-message-wrapper.console-error-level {\r\n\tborder-top: 1px solid hsl(0, 100%, 92%);\r\n\tborder-bottom: 1px solid hsl(0, 100%, 92%);\r\n\tmargin-top: -1px;\r\n}\r\n\r\n.console-message-wrapper.console-warning-level {\r\n\tborder-top: 1px solid hsl(50, 100%, 88%);\r\n\tborder-bottom: 1px solid hsl(50, 100%, 88%);\r\n\tmargin-top: -1px;\r\n}\r\n\r\n.console-message-wrapper .nesting-level-marker {\r\n\twidth: 14px;\r\n\tflex: 0 0 auto;\r\n\tborder-right: 1px solid #a5a5a5;\r\n\tposition: relative;\r\n\tmargin-bottom: -1px;\r\n}\r\n\r\n.console-message-wrapper:last-child .nesting-level-marker::before,\r\n.console-message-wrapper .nesting-level-marker.group-closed::before {\r\n\tcontent: "";\r\n}\r\n\r\n.console-message-wrapper .nesting-level-marker::before {\r\n\tborder-bottom: 1px solid #a5a5a5;\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tleft: 0;\r\n\tmargin-left: 100%;\r\n\twidth: 3px;\r\n\theight: 100%;\r\n\tbox-sizing: border-box;\r\n}\r\n\r\n.console-error-level {\r\n\tbackground-color: hsl(0, 100%, 97%);\r\n}\r\n\r\n.-theme-with-dark-background .console-error-level {\r\n\tbackground-color: hsl(0, 100%, 8%);\r\n}\r\n\r\n.console-warning-level {\r\n\tbackground-color: hsl(50, 100%, 95%);\r\n}\r\n\r\n.-theme-with-dark-background .console-warning-level {\r\n\tbackground-color: hsl(50, 100%, 10%);\r\n}\r\n\r\n.console-warning-level .console-message-text {\r\n\tcolor: hsl(39, 100%, 18%);\r\n}\r\n\r\n.console-error-level .console-message-text,\r\n.console-error-level .console-view-object-properties-section {\r\n\tcolor: red !important;\r\n}\r\n\r\n.-theme-with-dark-background .console-error-level .console-message-text,\r\n.-theme-with-dark-background .console-error-level .console-view-object-properties-section {\r\n\tcolor: hsl(0, 100%, 75%) !important;\r\n}\r\n\r\n.-theme-with-dark-background .console-verbose-level .console-message-text {\r\n\tcolor: hsl(220, 100%, 65%) !important;\r\n}\r\n\r\n.console-message.console-warning-level {\r\n\tbackground-color: rgb(255, 250, 224);\r\n}\r\n\r\n#console-messages .link {\r\n\ttext-decoration: underline;\r\n}\r\n\r\n#console-messages .link,\r\n#console-messages .devtools-link {\r\n\tcolor: rgb(33%, 33%, 33%);\r\n\tcursor: pointer;\r\n\tword-break: break-all;\r\n}\r\n\r\n#console-messages .link:hover,\r\n#console-messages .devtools-link:hover {\r\n\tcolor: rgb(15%, 15%, 15%);\r\n}\r\n\r\n.console-group-messages .section {\r\n\tmargin: 0 0 0 12px !important;\r\n}\r\n\r\n.console-group-messages .section > .header {\r\n\tpadding: 0 8px 0 0;\r\n\tbackground-image: none;\r\n\tborder: none;\r\n\tmin-height: 0;\r\n}\r\n\r\n.console-group-messages .section > .header::before {\r\n\tmargin-left: -12px;\r\n}\r\n\r\n.console-group-messages .section > .header .title {\r\n\tcolor: #222;\r\n\tfont-weight: normal;\r\n\tline-height: 13px;\r\n}\r\n\r\n.console-group-messages .section .properties li .info {\r\n\tpadding-top: 0;\r\n\tpadding-bottom: 0;\r\n\tcolor: rgb(60%, 60%, 60%);\r\n}\r\n\r\n.console-object-preview {\r\n\twhite-space: normal;\r\n\tword-wrap: break-word;\r\n\tfont-style: italic;\r\n}\r\n\r\n.console-object-preview .name {\r\n\t/* Follows .section .properties .name, .event-properties .name */\r\n\tcolor: rgb(136, 19, 145);\r\n\tflex-shrink: 0;\r\n}\r\n\r\n.console-message-text .object-value-string {\r\n\twhite-space: pre-wrap;\r\n}\r\n\r\n.console-message-formatted-table {\r\n\tclear: both;\r\n}\r\n\r\n.console-message-anchor {\r\n\tfloat: right;\r\n\ttext-align: right;\r\n\tmax-width: 100%;\r\n\tmargin-left: 4px;\r\n}\r\n\r\n.console-message-badge {\r\n\tfloat: right;\r\n\tmargin-left: 4px;\r\n}\r\n\r\n.console-message-nowrap-below,\r\n.console-message-nowrap-below div,\r\n.console-message-nowrap-below span {\r\n\twhite-space: nowrap !important;\r\n}\r\n\r\n.object-state-note {\r\n\tdisplay: inline-block;\r\n\twidth: 11px;\r\n\theight: 11px;\r\n\tcolor: white;\r\n\ttext-align: center;\r\n\tborder-radius: 3px;\r\n\tline-height: 13px;\r\n\tmargin: 0 6px;\r\n\tfont-size: 9px;\r\n}\r\n\r\n.-theme-with-dark-background .object-state-note {\r\n\tbackground-color: hsl(230, 100%, 80%);\r\n}\r\n\r\n.info-note {\r\n\tbackground-color: rgb(179, 203, 247);\r\n}\r\n\r\n.info-note::before {\r\n\tcontent: "i";\r\n}\r\n\r\n.console-view-object-properties-section:not(.expanded) .info-note {\r\n\tdisplay: none;\r\n}\r\n\r\n.console-view-object-properties-section {\r\n\tpadding: 0px;\r\n\tposition: relative;\r\n\tvertical-align: baseline;\r\n\tcolor: inherit;\r\n\tdisplay: inline-block;\r\n}\r\n\r\n.console-message-stack-trace-toggle {\r\n\tdisplay: flex;\r\n\tflex-direction: row;\r\n\talign-items: flex-start;\r\n}\r\n\r\n.console-message-stack-trace-wrapper {\r\n\tflex: 1 1 auto;\r\n\tdisplay: flex;\r\n\tflex-direction: column;\r\n\talign-items: stretch;\r\n}\r\n\r\n.console-message-stack-trace-wrapper > * {\r\n\tflex: none;\r\n}\r\n\r\n.console-message-expand-icon {\r\n\tmargin-bottom: -2px;\r\n}\r\n',""]),e.exports=t},79168:e=>{e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0},38972:e=>{e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.default=e.exports,e.exports.__esModule=!0},98884:e=>{function t(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)}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e},e.exports.default=e.exports,e.exports.__esModule=!0},18239:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.default=e.exports,e.exports.__esModule=!0},62094:e=>{function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.default=e.exports,e.exports.__esModule=!0,t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0},28914:(e,t,n)=>{var r=n(84307);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},9736:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0},3805:(e,t,n)=>{var r=n(88630).default;function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o},e.exports.default=e.exports,e.exports.__esModule=!0},12164:(e,t,n)=>{var r=n(88630).default,i=n(79168);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?i(e):t},e.exports.default=e.exports,e.exports.__esModule=!0},84307:e=>{function t(n,r){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,t(n,r)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0},88630:e=>{function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0},60352:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,r,i,o=e[1]||"",a=e[3];if(!a)return o;if(t&&"function"==typeof btoa){var s=(n=a,r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(i," */")),l=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[o].concat(l).concat([s]).join("\n")}return[o].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);r&&i[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},18393:e=>{"use strict";e.exports=function(e,t){return t||(t={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},33034:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new i(r,o||e,a),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=new Array(o);i<o;i++)a[i]=r[i].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,i,o,a){var s=n?n+e:e;if(!this._events[s])return!1;var l,u,c=this._events[s],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,r),!0;case 4:return c.fn.call(c.context,t,r,i),!0;case 5:return c.fn.call(c.context,t,r,i,o),!0;case 6:return c.fn.call(c.context,t,r,i,o,a),!0}for(u=1,l=new Array(d-1);u<d;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var f,h=c.length;for(u=0;u<h;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,r);break;case 4:c[u].fn.call(c[u].context,t,r,i);break;default:if(!l)for(f=1,l=new Array(d-1);f<d;f++)l[f-1]=arguments[f];c[u].fn.apply(c[u].context,l)}}return!0},s.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,i){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||i&&!s.once||r&&s.context!==r||a(this,o);else{for(var l=0,u=[],c=s.length;l<c;l++)(s[l].fn!==t||i&&!s[l].once||r&&s[l].context!==r)&&u.push(s[l]);u.length?this._events[o]=1===u.length?u[0]:u:a(this,o)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s},5939:e=>{"use strict";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 i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}g(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&g(e,"error",t,{once:!0})}(e,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){var i,o,a,u;if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=l(e))>0&&a.length>i&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,u=c,console&&console.warn&&console.warn(u)}return e}function c(){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 d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=c.bind(r);return i.listener=n,r.wrapFn=i,i}function f(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]: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}(i):p(i,i.length)}function h(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 p(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 i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.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},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(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},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)r(l,this,t);else{var u=l.length,c=p(l,u);for(n=0;n<u;++n)r(c[n],this,t)}return!0},o.prototype.addListener=function(e,t){return u(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return u(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,a;if(s(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(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.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 i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);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},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},38374:function(e,t,n){var r,i;void 0===(i="function"==typeof(r=function(){"use strict";function t(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){s(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function r(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function i(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,a=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(e,n,a){var s=o.URL||o.webkitURL,l=document.createElement("a");n=n||e.name||"download",l.download=n,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?i(l):r(l.href)?t(e,n,a):i(l,l.target="_blank")):(l.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){i(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,o){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,o),n);else if(r(e))t(e,n,o);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout((function(){i(a)}))}}:function(e,n,r,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,r);var s="application/octet-stream"===e.type,l=/constructor/i.test(o.HTMLElement)||o.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||s&&l||a)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var e=c.result;e=u?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},c.readAsDataURL(e)}else{var d=o.URL||o.webkitURL,f=d.createObjectURL(e);i?i.location=f:location.href=f,i=null,setTimeout((function(){d.revokeObjectURL(f)}),4e4)}});o.saveAs=s.saveAs=s,e.exports=s})?r.apply(t,[]):r)||(e.exports=i)},33837:(e,t,n)=>{e.exports=function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[a]={exports:{}};t[a][0].call(u.exports,(function(e){return i(t[a][1][e]||e)}),u,u.exports,e,t,n,r)}return n[a].exports}for(var o=void 0,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,r){(function(n){!function(e){"object"==typeof r&&void 0!==t?t.exports=e():("undefined"!=typeof window?window:void 0!==n?n:"undefined"!=typeof self?self:this).JSZip=e()}((function(){return function t(n,r,i){function o(s,l){if(!r[s]){if(!n[s]){var u="function"==typeof e&&e;if(!l&&u)return u(s,!0);if(a)return a(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var d=r[s]={exports:{}};n[s][0].call(d.exports,(function(e){return o(n[s][1][e]||e)}),d,d.exports,t,n,r,i)}return r[s].exports}for(var a="function"==typeof e&&e,s=0;s<i.length;s++)o(i[s]);return o}({1:[function(e,t,r){(function(n){!function(e){"object"==typeof r&&void 0!==t?t.exports=e():("undefined"!=typeof window?window:void 0!==n?n:"undefined"!=typeof self?self:this).JSZip=e()}((function(){return function t(n,r,i){function o(s,l){if(!r[s]){if(!n[s]){var u="function"==typeof e&&e;if(!l&&u)return u(s,!0);if(a)return a(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var d=r[s]={exports:{}};n[s][0].call(d.exports,(function(e){return o(n[s][1][e]||e)}),d,d.exports,t,n,r,i)}return r[s].exports}for(var a="function"==typeof e&&e,s=0;s<i.length;s++)o(i[s]);return o}({1:[function(e,t,r){(function(n){!function(e){"object"==typeof r&&void 0!==t?t.exports=e():("undefined"!=typeof window?window:void 0!==n?n:"undefined"!=typeof self?self:this).JSZip=e()}((function(){return function t(n,r,i){function o(s,l){if(!r[s]){if(!n[s]){var u="function"==typeof e&&e;if(!l&&u)return u(s,!0);if(a)return a(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var d=r[s]={exports:{}};n[s][0].call(d.exports,(function(e){return o(n[s][1][e]||e)}),d,d.exports,t,n,r,i)}return r[s].exports}for(var a="function"==typeof e&&e,s=0;s<i.length;s++)o(i[s]);return o}({1:[function(e,t,r){(function(n){!function(e){"object"==typeof r&&void 0!==t?t.exports=e():("undefined"!=typeof window?window:void 0!==n?n:"undefined"!=typeof self?self:this).JSZip=e()}((function(){return function t(n,r,i){function o(s,l){if(!r[s]){if(!n[s]){var u="function"==typeof e&&e;if(!l&&u)return u(s,!0);if(a)return a(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var d=r[s]={exports:{}};n[s][0].call(d.exports,(function(e){return o(n[s][1][e]||e)}),d,d.exports,t,n,r,i)}return r[s].exports}for(var a="function"==typeof e&&e,s=0;s<i.length;s++)o(i[s]);return o}({1:[function(e,t,r){(function(n){!function(e){"object"==typeof r&&void 0!==t?t.exports=e():("undefined"!=typeof window?window:void 0!==n?n:"undefined"!=typeof self?self:this).JSZip=e()}((function(){return function t(n,r,i){function o(s,l){if(!r[s]){if(!n[s]){var u="function"==typeof e&&e;if(!l&&u)return u(s,!0);if(a)return a(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var d=r[s]={exports:{}};n[s][0].call(d.exports,(function(e){return o(n[s][1][e]||e)}),d,d.exports,t,n,r,i)}return r[s].exports}for(var a="function"==typeof e&&e,s=0;s<i.length;s++)o(i[s]);return o}({1:[function(e,t,n){"use strict";var r=e("./utils"),i=e("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e){for(var t,n,i,a,s,l,u,c=[],d=0,f=e.length,h=f,p="string"!==r.getTypeOf(e);d<e.length;)h=f-d,i=p?(t=e[d++],n=d<f?e[d++]:0,d<f?e[d++]:0):(t=e.charCodeAt(d++),n=d<f?e.charCodeAt(d++):0,d<f?e.charCodeAt(d++):0),a=t>>2,s=(3&t)<<4|n>>4,l=1<h?(15&n)<<2|i>>6:64,u=2<h?63&i:64,c.push(o.charAt(a)+o.charAt(s)+o.charAt(l)+o.charAt(u));return c.join("")},n.decode=function(e){var t,n,r,a,s,l,u=0,c=0;if("data:"===e.substr(0,"data:".length))throw new Error("Invalid base64 input, it looks like a data url.");var d,f=3*(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(e.charAt(e.length-1)===o.charAt(64)&&f--,e.charAt(e.length-2)===o.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(d=i.uint8array?new Uint8Array(0|f):new Array(0|f);u<e.length;)t=o.indexOf(e.charAt(u++))<<2|(a=o.indexOf(e.charAt(u++)))>>4,n=(15&a)<<4|(s=o.indexOf(e.charAt(u++)))>>2,r=(3&s)<<6|(l=o.indexOf(e.charAt(u++))),d[c++]=t,64!==s&&(d[c++]=n),64!==l&&(d[c++]=r);return d}},{"./support":30,"./utils":32}],2:[function(e,t,n){"use strict";var r=e("./external"),i=e("./stream/DataWorker"),o=e("./stream/Crc32Probe"),a=e("./stream/DataLengthProbe");function s(e,t,n,r,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=i}s.prototype={getContentWorker:function(){var e=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,n){return e.pipe(new o).pipe(new a("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){"use strict";var r=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(e){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){"use strict";var r=e("./utils"),i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==r.getTypeOf(e)?function(e,t,n){var r=i,o=0+n;e^=-1;for(var a=0;a<o;a++)e=e>>>8^r[255&(e^t[a])];return-1^e}(0|t,e,e.length):function(e,t,n){var r=i,o=0+n;e^=-1;for(var a=0;a<o;a++)e=e>>>8^r[255&(e^t.charCodeAt(a))];return-1^e}(0|t,e,e.length):0}},{"./utils":32}],5:[function(e,t,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t,n){"use strict";var r;r="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:r}},{lie:37}],7:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),o=e("./utils"),a=e("./stream/GenericWorker"),s=r?"uint8array":"array";function l(e,t){a.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic="\b\0",o.inherits(l,a),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(s,e.data),!1)},l.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new l("Deflate",e)},n.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){"use strict";function r(e,t){var n,r="";for(n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r}function i(e,t,n,i,a,c){var d,f,h=e.file,p=e.compression,g=c!==s.utf8encode,m=o.transformTo("string",c(h.name)),v=o.transformTo("string",s.utf8encode(h.name)),y=h.comment,w=o.transformTo("string",c(y)),b=o.transformTo("string",s.utf8encode(y)),_=v.length!==h.name.length,S=b.length!==y.length,C="",x="",E="",T=h.dir,k=h.date,O={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(O.crc32=e.crc32,O.compressedSize=e.compressedSize,O.uncompressedSize=e.uncompressedSize);var L=0;t&&(L|=8),g||!_&&!S||(L|=2048);var R,I=0,A=0;T&&(I|=16),"UNIX"===a?(A=798,I|=((R=h.unixPermissions)||(R=T?16893:33204),(65535&R)<<16)):(A=20,I|=63&(h.dosPermissions||0)),d=k.getUTCHours(),d<<=6,d|=k.getUTCMinutes(),d<<=5,d|=k.getUTCSeconds()/2,f=k.getUTCFullYear()-1980,f<<=4,f|=k.getUTCMonth()+1,f<<=5,f|=k.getUTCDate(),_&&(C+="up"+r((x=r(1,1)+r(l(m),4)+v).length,2)+x),S&&(C+="uc"+r((E=r(1,1)+r(l(w),4)+b).length,2)+E);var M="";return M+="\n\0",M+=r(L,2),M+=p.magic,M+=r(d,2),M+=r(f,2),M+=r(O.crc32,4),M+=r(O.compressedSize,4),M+=r(O.uncompressedSize,4),M+=r(m.length,2),M+=r(C.length,2),{fileRecord:u.LOCAL_FILE_HEADER+M+m+C,dirRecord:u.CENTRAL_FILE_HEADER+r(A,2)+M+r(w.length,2)+"\0\0\0\0"+r(I,4)+r(i,4)+m+C+w}}var o=e("../utils"),a=e("../stream/GenericWorker"),s=e("../utf8"),l=e("../crc32"),u=e("../signature");function c(e,t,n,r){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(c,a),c.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,a.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},c.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},c.prototype.closedSource=function(e){this.accumulate=!1;var t,n=this.streamFiles&&!e.file.dir,o=i(e,n,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(o.dirRecord),n)this.push({data:(t=e,u.DATA_DESCRIPTOR+r(t.crc32,4)+r(t.compressedSize,4)+r(t.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:o.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},c.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n,i,a,s,l,c,d=this.bytesWritten-e,f=(n=this.dirRecords.length,i=d,a=e,s=this.zipComment,l=this.encodeFileName,c=o.transformTo("string",l(s)),u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+r(n,2)+r(n,2)+r(i,4)+r(a,4)+r(c.length,2)+c);this.push({data:f,meta:{percent:100}})},c.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},c.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),this},c.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},c.prototype.error=function(e){var t=this._sources;if(!a.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch(e){}return!0},c.prototype.lock=function(){a.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=c},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,n){"use strict";var r=e("../compressions"),i=e("./ZipFileWorker");n.generateWorker=function(e,t,n){var o=new i(t.streamFiles,n,t.platform,t.encodeFileName),a=0;try{e.forEach((function(e,n){a++;var i=function(e,t){var n=e||t,i=r[n];if(!i)throw new Error(n+" is not a valid compression method !");return i}(n.options.compression,t.compression),s=n.options.compressionOptions||t.compressionOptions||{},l=n.dir,u=n.date;n._compressWorker(i,s).withStreamInfo("file",{name:e,dir:l,date:u,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(o)})),o.entriesCount=a}catch(e){o.error(e)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,n){"use strict";function r(){if(!(this instanceof r))return new r;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files={},this.comment=null,this.root="",this.clone=function(){var e=new r;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(r.prototype=e("./object")).loadAsync=e("./load"),r.support=e("./support"),r.defaults=e("./defaults"),r.version="3.5.0",r.loadAsync=function(e,t){return(new r).loadAsync(e,t)},r.external=e("./external"),t.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,n){"use strict";var r=e("./utils"),i=e("./external"),o=e("./utf8"),a=e("./zipEntries"),s=e("./stream/Crc32Probe"),l=e("./nodejsUtils");function u(e){return new i.Promise((function(t,n){var r=e.decompressed.getContentWorker().pipe(new s);r.on("error",(function(e){n(e)})).on("end",(function(){r.streamInfo.crc32!==e.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}t.exports=function(e,t){var n=this;return t=r.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),l.isNode&&l.isStream(e)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var n=new a(t);return n.load(e),n})).then((function(e){var n=[i.Promise.resolve(e)],r=e.files;if(t.checkCRC32)for(var o=0;o<r.length;o++)n.push(u(r[o]));return i.Promise.all(n)})).then((function(e){for(var r=e.shift(),i=r.files,o=0;o<i.length;o++){var a=i[o];n.file(a.fileNameStr,a.decompressed,{binary:!0,optimizedBinaryString:!0,date:a.date,dir:a.dir,comment:a.fileCommentStr.length?a.fileCommentStr:null,unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions,createFolders:t.createFolders})}return r.zipComment.length&&(n.comment=r.zipComment),n}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,n){"use strict";var r=e("../utils"),i=e("../stream/GenericWorker");function o(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}r.inherits(o,i),o.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},o.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,n){"use strict";var r=e("readable-stream").Readable;function i(e,t,n){r.call(this,t),this._helper=e;var i=this;e.on("data",(function(e,t){i.push(e)||i._helper.pause(),n&&n(t)})).on("error",(function(e){i.emit("error",e)})).on("end",(function(){i.push(null)}))}e("../utils").inherits(i,r),i.prototype._read=function(){this._helper.resume()},t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,t,n){"use strict";t.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,n){"use strict";function r(e,t,n){var r,o=a.getTypeOf(t),l=a.extend(n||{},u);l.date=l.date||new Date,null!==l.compression&&(l.compression=l.compression.toUpperCase()),"string"==typeof l.unixPermissions&&(l.unixPermissions=parseInt(l.unixPermissions,8)),l.unixPermissions&&16384&l.unixPermissions&&(l.dir=!0),l.dosPermissions&&16&l.dosPermissions&&(l.dir=!0),l.dir&&(e=i(e)),l.createFolders&&(r=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""}(e))&&g.call(this,r,!0);var f,m="string"===o&&!1===l.binary&&!1===l.base64;n&&void 0!==n.binary||(l.binary=!m),(t instanceof c&&0===t.uncompressedSize||l.dir||!t||0===t.length)&&(l.base64=!1,l.binary=!0,t="",l.compression="STORE",o="string"),f=t instanceof c||t instanceof s?t:h.isNode&&h.isStream(t)?new p(e,t):a.prepareContent(e,t,l.binary,l.optimizedBinaryString,l.base64);var v=new d(e,f,l);this.files[e]=v}function i(e){return"/"!==e.slice(-1)&&(e+="/"),e}var o=e("./utf8"),a=e("./utils"),s=e("./stream/GenericWorker"),l=e("./stream/StreamHelper"),u=e("./defaults"),c=e("./compressedObject"),d=e("./zipObject"),f=e("./generate"),h=e("./nodejsUtils"),p=e("./nodejs/NodejsStreamInputAdapter"),g=function(e,t){return t=void 0!==t?t:u.createFolders,e=i(e),this.files[e]||r.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function m(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var v={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,n,r;for(t in this.files)this.files.hasOwnProperty(t)&&(r=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,r))},filter:function(e){var t=[];return this.forEach((function(n,r){e(n,r)&&t.push(r)})),t},file:function(e,t,n){if(1!==arguments.length)return e=this.root+e,r.call(this,e,t,n),this;if(m(e)){var i=e;return this.filter((function(e,t){return!t.dir&&i.test(e)}))}var o=this.files[this.root+e];return o&&!o.dir?o:null},folder:function(e){if(!e)return this;if(m(e))return this.filter((function(t,n){return n.dir&&e.test(t)}));var t=this.root+e,n=g.call(this,t),r=this.clone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter((function(t,n){return n.name.slice(0,e.length)===e})),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(e){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,n={};try{if((n=a.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");a.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var r=n.comment||this.comment||"";t=f.generateWorker(this,n,r)}catch(e){(t=new s("error")).error(e)}return new l(t,n.type||"string",n.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=v},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,n){t.exports=e("stream")},{stream:void 0}],17:[function(e,t,n){"use strict";var r=e("./DataReader");function i(e){r.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(i,r),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===t&&this.data[o+1]===n&&this.data[o+2]===r&&this.data[o+3]===i)return o-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),o=this.readData(4);return t===o[0]&&n===o[1]&&r===o[2]&&i===o[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,t,n){"use strict";var r=e("../utils");function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(e){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readAndCheckSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,n){"use strict";var r=e("./Uint8ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){"use strict";var r=e("./DataReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){"use strict";var r=e("./ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){"use strict";var r=e("../utils"),i=e("../support"),o=e("./ArrayReader"),a=e("./StringReader"),s=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new s(e):i.uint8array?new l(r.transformTo("uint8array",e)):new o(r.transformTo("array",e)):new a(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){"use strict";n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,n){"use strict";var r=e("./GenericWorker"),i=e("../utils");function o(e){r.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(o,r),o.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){"use strict";var r=e("./GenericWorker"),i=e("../crc32");function o(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(o,r),o.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}r.inherits(o,i),o.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}r.inherits(o,i),o.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){"use strict";function r(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n<this._listeners[e].length;n++)this._listeners[e][n].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=r},{}],29:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./ConvertWorker"),o=e("./GenericWorker"),a=e("../base64"),s=e("../support"),l=e("../external"),u=null;if(s.nodestream)try{u=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function c(e,t,n){var a=t;switch(t){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this._internalType=a,this._outputType=t,this._mimeType=n,r.checkSupport(a),this._worker=e.pipe(new i(a)),e.lock()}catch(e){this._worker=new o("error"),this._worker.error(e)}}c.prototype={accumulate:function(e){return t=this,n=e,new l.Promise((function(e,i){var o=[],s=t._internalType,l=t._outputType,u=t._mimeType;t.on("data",(function(e,t){o.push(e),n&&n(t)})).on("error",(function(e){o=[],i(e)})).on("end",(function(){try{var t=function(e,t,n){switch(e){case"blob":return r.newBlob(r.transformTo("arraybuffer",t),n);case"base64":return a.encode(t);default:return r.transformTo(e,t)}}(l,function(e,t){var n,r=0,i=null,o=0;for(n=0;n<t.length;n++)o+=t[n].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(i=new Uint8Array(o),n=0;n<t.length;n++)i.set(t[n],r),r+=t[n].length;return i;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(s,o),u);e(t)}catch(t){i(t)}o=[]})).resume()}));var t,n},on:function(e,t){var n=this;return"data"===e?this._worker.on(e,(function(e){t.call(n,e.data,e.meta)})):this._worker.on(e,(function(){r.delay(t,arguments,n)})),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(r.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=c},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,n){"use strict";if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer="undefined"!=typeof Buffer,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var r=new ArrayBuffer(0);try{n.blob=0===new Blob([r],{type:"application/zip"}).size}catch(e){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(r),n.blob=0===i.getBlob("application/zip").size}catch(e){n.blob=!1}}}try{n.nodestream=!!e("readable-stream").Readable}catch(e){n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){"use strict";for(var r=e("./utils"),i=e("./support"),o=e("./nodejsUtils"),a=e("./stream/GenericWorker"),s=new Array(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function u(){a.call(this,"utf-8 decode"),this.leftOver=null}function c(){a.call(this,"utf-8 encode")}s[254]=s[254]=1,n.utf8encode=function(e){return i.nodebuffer?o.newBufferFrom(e,"utf-8"):function(e){var t,n,r,o,a,s=e.length,l=0;for(o=0;o<s;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=i.uint8array?new Uint8Array(l):new Array(l),o=a=0;a<l;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t}(e)},n.utf8decode=function(e){return i.nodebuffer?r.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,i,o,a=e.length,l=new Array(2*a);for(t=n=0;t<a;)if((i=e[t++])<128)l[n++]=i;else if(4<(o=s[i]))l[n++]=65533,t+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&t<a;)i=i<<6|63&e[t++],o--;1<o?l[n++]=65533:i<65536?l[n++]=i:(i-=65536,l[n++]=55296|i>>10&1023,l[n++]=56320|1023&i)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),r.applyFromCharCode(l)}(e=r.transformTo(i.uint8array?"uint8array":"array",e))},r.inherits(u,a),u.prototype.processChunk=function(e){var t=r.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var o=t;(t=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),t.set(o,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var a=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+s[e[n]]>t?n:t}(t),l=t;a!==t.length&&(i.uint8array?(l=t.subarray(0,a),this.leftOver=t.subarray(a,t.length)):(l=t.slice(0,a),this.leftOver=t.slice(a,t.length))),this.push({data:n.utf8decode(l),meta:e.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=u,r.inherits(c,a),c.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=c},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){"use strict";var r=e("./support"),i=e("./base64"),o=e("./nodejsUtils"),a=e("set-immediate-shim"),s=e("./external");function l(e){return e}function u(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}n.newBlob=function(e,t){n.checkSupport("blob");try{return new Blob([e],{type:t})}catch(n){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return r.append(e),r.getBlob(t)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(e,t,n){var r=[],i=0,o=e.length;if(o<=n)return String.fromCharCode.apply(null,e);for(;i<o;)"array"===t||"nodebuffer"===t?r.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+n,o)))):r.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+n,o)))),i+=n;return r.join("")},stringifyByChar:function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(e){return!1}}()}};function d(e){var t=65536,r=n.getTypeOf(e),i=!0;if("uint8array"===r?i=c.applyCanBeUsed.uint8array:"nodebuffer"===r&&(i=c.applyCanBeUsed.nodebuffer),i)for(;1<t;)try{return c.stringifyByChunk(e,r,t)}catch(e){t=Math.floor(t/2)}return c.stringifyByChar(e)}function f(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=d;var h={};h.string={string:l,array:function(e){return u(e,new Array(e.length))},arraybuffer:function(e){return h.string.uint8array(e).buffer},uint8array:function(e){return u(e,new Uint8Array(e.length))},nodebuffer:function(e){return u(e,o.allocBuffer(e.length))}},h.array={string:d,array:l,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(e)}},h.arraybuffer={string:function(e){return d(new Uint8Array(e))},array:function(e){return f(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:l,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(new Uint8Array(e))}},h.uint8array={string:d,array:function(e){return f(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:l,nodebuffer:function(e){return o.newBufferFrom(e)}},h.nodebuffer={string:d,array:function(e){return f(e,new Array(e.length))},arraybuffer:function(e){return h.nodebuffer.uint8array(e).buffer},uint8array:function(e){return f(e,new Uint8Array(e.length))},nodebuffer:l},n.transformTo=function(e,t){if(t=t||"",!e)return t;n.checkSupport(e);var r=n.getTypeOf(t);return h[r][e](t)},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":r.nodebuffer&&o.isBuffer(e)?"nodebuffer":r.uint8array&&e instanceof Uint8Array?"uint8array":r.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){if(!r[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,r="";for(n=0;n<(e||"").length;n++)r+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return r},n.delay=function(e,t,n){a((function(){e.apply(n||null,t||[])}))},n.inherits=function(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])arguments[e].hasOwnProperty(t)&&void 0===n[t]&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,o,a,l){return s.Promise.resolve(t).then((function(e){return r.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new s.Promise((function(t,n){var r=new FileReader;r.onload=function(e){t(e.target.result)},r.onerror=function(e){n(e.target.error)},r.readAsArrayBuffer(e)})):e})).then((function(t){var c,d=n.getTypeOf(t);return d?("arraybuffer"===d?t=n.transformTo("uint8array",t):"string"===d&&(l?t=i.decode(t):o&&!0!==a&&(t=u(c=t,r.uint8array?new Uint8Array(c.length):new Array(c.length)))),t):s.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,"set-immediate-shim":54}],33:[function(e,t,n){"use strict";var r=e("./reader/readerFor"),i=e("./utils"),o=e("./signature"),a=e("./zipEntry"),s=(e("./utf8"),e("./support"));function l(e){this.files=[],this.loadOptions=e}l.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(t)+", expected "+i.pretty(e)+")")}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4)===t;return this.reader.setIndex(n),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",n=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,n,r=this.zip64EndOfCentralSize-44;0<r;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(e=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=t-n;if(0<r)this.isSignature(t,o.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw new Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(e){this.reader=r(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(e,t,n){"use strict";var r=e("./reader/readerFor"),i=e("./utils"),o=e("./compressedObject"),a=e("./crc32"),s=e("./utf8"),l=e("./compressions"),u=e("./support");function c(e,t){this.options=e,this.loadOptions=t}c.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in l)if(l.hasOwnProperty(t)&&l[t].magic===e)return l[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){var t=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t,n,r,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<i;)t=e.readInt(2),n=e.readInt(2),r=e.readData(n),this.extraFields[t]={id:t,length:n,value:r};e.setIndex(i)},handleUTF8:function(){var e=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var n=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(null!==r)this.fileCommentStr=r;else{var o=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=r(e.value);return 1!==t.readInt(1)||a(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=r(e.value);return 1!==t.readInt(1)||a(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=c},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,n){"use strict";function r(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var i=e("./stream/StreamHelper"),o=e("./stream/DataWorker"),a=e("./utf8"),s=e("./compressedObject"),l=e("./stream/GenericWorker");r.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw new Error("No output type specified.");var r="string"===(n=e.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),t=this._decompressWorker();var o=!this._dataBinary;o&&!r&&(t=t.pipe(new a.Utf8EncodeWorker)),!o&&r&&(t=t.pipe(new a.Utf8DecodeWorker))}catch(e){(t=new l("error")).error(e)}return new i(t,n,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new a.Utf8EncodeWorker)),s.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof l?this._data:new o(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],c=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<u.length;d++)r.prototype[u[d]]=c;t.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,r){(function(e){"use strict";var n,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var o=0,a=new i(c),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),n=function(){s.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){c(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(c,0)};else{var l=new e.MessageChannel;l.port1.onmessage=c,n=function(){l.port2.postMessage(0)}}var u=[];function c(){var e,t;r=!0;for(var n=u.length;n;){for(t=u,u=[],e=-1;++e<n;)t[e]();n=u.length}r=!1}t.exports=function(e){1!==u.push(e)||r||n()}}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,n){"use strict";var r=e("immediate");function i(){}var o={},a=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function u(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==i&&h(this,e)}function c(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(e,t,n){r((function(){var r;try{r=t(n)}catch(r){return o.reject(e,r)}r===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,r)}))}function f(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function h(e,t){var n=!1;function r(t){n||(n=!0,o.reject(e,t))}function i(t){n||(n=!0,o.resolve(e,t))}var a=p((function(){t(i,r)}));"error"===a.status&&r(a.value)}function p(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}(t.exports=u).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))},u.prototype.catch=function(e){return this.then(null,e)},u.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a)return this;var n=new this.constructor(i);return this.state!==l?d(n,this.state===s?e:t,this.outcome):this.queue.push(new c(n,e,t)),n},c.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},c.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},c.prototype.callRejected=function(e){o.reject(this.promise,e)},c.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},o.resolve=function(e,t){var n=p(f,t);if("error"===n.status)return o.reject(e,n.value);var r=n.value;if(r)h(e,r);else{e.state=s,e.outcome=t;for(var i=-1,a=e.queue.length;++i<a;)e.queue[i].callFulfilled(t)}return e},o.reject=function(e,t){e.state=a,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},u.resolve=function(e){return e instanceof this?e:o.resolve(new this(i),e)},u.reject=function(e){var t=new this(i);return o.reject(t,e)},u.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var a=new Array(n),s=0,l=-1,u=new this(i);++l<n;)c(e[l],l);return u;function c(e,i){t.resolve(e).then((function(e){a[i]=e,++s!==n||r||(r=!0,o.resolve(u,a))}),(function(e){r||(r=!0,o.reject(u,e))}))}},u.race=function(e){if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var t=e.length,n=!1;if(!t)return this.resolve([]);for(var r,a=-1,s=new this(i);++a<t;)r=e[a],this.resolve(r).then((function(e){n||(n=!0,o.resolve(s,e))}),(function(e){n||(n=!0,o.reject(s,e))}));return s}},{immediate:36}],38:[function(e,t,n){"use strict";var r={};(0,e("./lib/utils/common").assign)(r,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){"use strict";var r=e("./zlib/deflate"),i=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/messages"),s=e("./zlib/zstream"),l=Object.prototype.toString;function u(e){if(!(this instanceof u))return new u(e);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw new Error(a[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var c;if(c="string"==typeof t.dictionary?o.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=r.deflateSetDictionary(this.strm,c)))throw new Error(a[n]);this._dict_set=!0}}function c(e,t){var n=new u(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}u.prototype.push=function(e,t){var n,a,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=o.string2buf(e):"[object ArrayBuffer]"===l.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(u),s.next_out=0,s.avail_out=u),1!==(n=r.deflate(s,a))&&0!==n)return this.onEnd(n),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==a||(this.onEnd(0),!(s.avail_out=0))},u.prototype.onData=function(e){this.chunks.push(e)},u.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=u,n.deflate=c,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,c(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,c(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,n){"use strict";var r=e("./zlib/inflate"),i=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/constants"),s=e("./zlib/messages"),l=e("./zlib/zstream"),u=e("./zlib/gzheader"),c=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);this.header=new u,r.inflateGetHeader(this.strm,this.header)}function f(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}d.prototype.push=function(e,t){var n,s,l,u,d,f,h=this.strm,p=this.options.chunkSize,g=this.options.dictionary,m=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?h.input=o.binstring2buf(e):"[object ArrayBuffer]"===c.call(e)?h.input=new Uint8Array(e):h.input=e,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new i.Buf8(p),h.next_out=0,h.avail_out=p),(n=r.inflate(h,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&g&&(f="string"==typeof g?o.string2buf(g):"[object ArrayBuffer]"===c.call(g)?new Uint8Array(g):g,n=r.inflateSetDictionary(this.strm,f)),n===a.Z_BUF_ERROR&&!0===m&&(n=a.Z_OK,m=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),!(this.ended=!0);h.next_out&&(0!==h.avail_out&&n!==a.Z_STREAM_END&&(0!==h.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(l=o.utf8border(h.output,h.next_out),u=h.next_out-l,d=o.buf2string(h.output,l),h.next_out=u,h.avail_out=p-u,u&&i.arraySet(h.output,h.output,l,u,0),this.onData(d)):this.onData(i.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(m=!0)}while((0<h.avail_in||0===h.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(h.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=d,n.inflate=f,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,f(e,t)},n.ungzip=f},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){var t,n,r,i,o,a;for(t=r=0,n=e.length;t<n;t++)r+=e[t].length;for(a=new Uint8Array(r),t=i=0,n=e.length;t<n;t++)o=e[t],a.set(o,i),i+=o.length;return a}},o={arraySet:function(e,t,n,r,i){for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(r)},{}],42:[function(e,t,n){"use strict";var r=e("./common"),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){o=!1}for(var a=new r.Buf8(256),s=0;s<256;s++)a[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(e,t){if(t<65537&&(e.subarray&&o||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",a=0;a<t;a++)n+=String.fromCharCode(e[a]);return n}a[254]=a[254]=1,n.string2buf=function(e){var t,n,i,o,a,s=e.length,l=0;for(o=0;o<s;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(l),o=a=0;a<l;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t},n.buf2binstring=function(e){return l(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,i,o,s=t||e.length,u=new Array(2*s);for(n=r=0;n<s;)if((i=e[n++])<128)u[r++]=i;else if(4<(o=a[i]))u[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&n<s;)i=i<<6|63&e[n++],o--;1<o?u[r++]=65533:i<65536?u[r++]=i:(i-=65536,u[r++]=55296|i>>10&1023,u[r++]=56320|1023&i)}return l(u,r)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+a[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){for(var i=65535&e|0,o=e>>>16&65535|0,a=0;0!==n;){for(n-=a=2e3<n?2e3:n;o=o+(i=i+t[r++]|0)|0,--a;);i%=65521,o%=65521}return i|o<<16|0}},{}],44:[function(e,t,n){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,n){"use strict";var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var o=r,a=i+n;e^=-1;for(var s=i;s<a;s++)e=e>>>8^o[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,n){"use strict";var r,i=e("../utils/common"),o=e("./trees"),a=e("./adler32"),s=e("./crc32"),l=e("./messages"),u=-2,c=258,d=262,f=113;function h(e,t){return e.msg=l[t],t}function p(e){return(e<<1)-(4<e?9:0)}function g(e){for(var t=e.length;0<=--t;)e[t]=0}function m(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function v(e,t){o._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,m(e.strm)}function y(e,t){e.pending_buf[e.pending++]=t}function w(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function b(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-d?e.strstart-(e.w_size-d):0,u=e.window,f=e.w_mask,h=e.prev,p=e.strstart+c,g=u[o+a-1],m=u[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(n=t)+a]===m&&u[n+a-1]===g&&u[n]===u[o]&&u[++n]===u[o+1]){o+=2,n++;do{}while(u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&o<p);if(r=c-(p-o),o=p-c,a<r){if(e.match_start=t,s<=(a=r))break;g=u[o+a-1],m=u[o+a]}}}while((t=h[t&f])>l&&0!=--i);return a<=e.lookahead?a:e.lookahead}function _(e){var t,n,r,o,l,u,c,f,h,p,g=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=g+(g-d)){for(i.arraySet(e.window,e.window,g,g,0),e.match_start-=g,e.strstart-=g,e.block_start-=g,t=n=e.hash_size;r=e.head[--t],e.head[t]=g<=r?r-g:0,--n;);for(t=n=g;r=e.prev[--t],e.prev[t]=g<=r?r-g:0,--n;);o+=g}if(0===e.strm.avail_in)break;if(u=e.strm,c=e.window,f=e.strstart+e.lookahead,p=void 0,(h=o)<(p=u.avail_in)&&(p=h),n=0===p?0:(u.avail_in-=p,i.arraySet(c,u.input,u.next_in,p,f),1===u.state.wrap?u.adler=a(u.adler,c,p,f):2===u.state.wrap&&(u.adler=s(u.adler,c,p,f)),u.next_in+=p,u.total_in+=p,p),e.lookahead+=n,e.lookahead+e.insert>=3)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+3-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<d&&0!==e.strm.avail_in)}function S(e,t){for(var n,r;;){if(e.lookahead<d){if(_(e),e.lookahead<d&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-d&&(e.match_length=b(e,n)),e.match_length>=3)if(r=o._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}function C(e,t){for(var n,r,i;;){if(e.lookahead<d){if(_(e),e.lookahead<d&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-d&&(e.match_length=b(e,n),e.match_length<=5&&(1===e.strategy||3===e.match_length&&4096<e.strstart-e.match_start)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-3,r=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(v(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=o._tr_tally(e,0,e.window[e.strstart-1]))&&v(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}function x(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function E(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),g(this.dyn_ltree),g(this.dyn_dtree),g(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),g(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),g(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function T(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:f,e.adler=2===t.wrap?0:1,t.last_flush=0,o._tr_init(t),0):h(e,u)}function k(e){var t,n=T(e);return 0===n&&((t=e.state).window_size=2*t.w_size,g(t.head),t.max_lazy_match=r[t.level].max_lazy,t.good_match=r[t.level].good_length,t.nice_match=r[t.level].nice_length,t.max_chain_length=r[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),n}function O(e,t,n,r,o,a){if(!e)return u;var s=1;if(-1===t&&(t=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),o<1||9<o||8!==n||r<8||15<r||t<0||9<t||a<0||4<a)return h(e,u);8===r&&(r=9);var l=new E;return(e.state=l).strm=e,l.wrap=s,l.gzhead=null,l.w_bits=r,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=o+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new i.Buf8(2*l.w_size),l.head=new i.Buf16(l.hash_size),l.prev=new i.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new i.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=a,l.method=n,k(e)}r=[new x(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(_(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,v(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-d&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(v(e,!1),e.strm.avail_out),1)})),new x(4,4,8,4,S),new x(4,5,16,8,S),new x(4,6,32,32,S),new x(4,4,16,16,C),new x(8,16,32,32,C),new x(8,16,128,128,C),new x(8,32,128,256,C),new x(32,128,258,1024,C),new x(32,258,258,4096,C)],n.deflateInit=function(e,t){return O(e,t,8,15,8,0)},n.deflateInit2=O,n.deflateReset=k,n.deflateResetKeep=T,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?u:(e.state.gzhead=t,0):u},n.deflate=function(e,t){var n,i,a,l;if(!e||!e.state||5<t||t<0)return e?h(e,u):u;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&4!==t)return h(e,0===e.avail_out?-5:u);if(i.strm=e,n=i.last_flush,i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,y(i,31),y(i,139),y(i,8),i.gzhead?(y(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),y(i,255&i.gzhead.time),y(i,i.gzhead.time>>8&255),y(i,i.gzhead.time>>16&255),y(i,i.gzhead.time>>24&255),y(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),y(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(y(i,255&i.gzhead.extra.length),y(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(y(i,0),y(i,0),y(i,0),y(i,0),y(i,0),y(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),y(i,3),i.status=f);else{var d=8+(i.w_bits-8<<4)<<8;d|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(d|=32),d+=31-d%31,i.status=f,w(i,d),0!==i.strstart&&(w(i,e.adler>>>16),w(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),m(e),a=i.pending,i.pending!==i.pending_buf_size));)y(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),m(e),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,y(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),m(e),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,y(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&m(e),i.pending+2<=i.pending_buf_size&&(y(i,255&e.adler),y(i,e.adler>>8&255),e.adler=0,i.status=f)):i.status=f),0!==i.pending){if(m(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&p(t)<=p(n)&&4!==t)return h(e,-5);if(666===i.status&&0!==e.avail_in)return h(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&666!==i.status){var b=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(_(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var n,r,i,a,s=e.window;;){if(e.lookahead<=c){if(_(e),e.lookahead<=c&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&0<e.strstart&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=e.strstart+c;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<a);e.match_length=c-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=o._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}(i,t):r[i.level].func(i,t);if(3!==b&&4!==b||(i.status=666),1===b||3===b)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===b&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(g(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),m(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(y(i,255&e.adler),y(i,e.adler>>8&255),y(i,e.adler>>16&255),y(i,e.adler>>24&255),y(i,255&e.total_in),y(i,e.total_in>>8&255),y(i,e.total_in>>16&255),y(i,e.total_in>>24&255)):(w(i,e.adler>>>16),w(i,65535&e.adler)),m(e),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?0:1)},n.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&t!==f&&666!==t?h(e,u):(e.state=null,t===f?h(e,-3):0):u},n.deflateSetDictionary=function(e,t){var n,r,o,s,l,c,d,f,h=t.length;if(!e||!e.state)return u;if(2===(s=(n=e.state).wrap)||1===s&&42!==n.status||n.lookahead)return u;for(1===s&&(e.adler=a(e.adler,t,h,0)),n.wrap=0,h>=n.w_size&&(0===s&&(g(n.head),n.strstart=0,n.block_start=0,n.insert=0),f=new i.Buf8(n.w_size),i.arraySet(f,t,h-n.w_size,n.w_size,0),t=f,h=n.w_size),l=e.avail_in,c=e.next_in,d=e.input,e.avail_in=h,e.next_in=0,e.input=t,_(n);n.lookahead>=3;){for(r=n.strstart,o=n.lookahead-2;n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--o;);n.strstart=r,n.lookahead=2,_(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,e.next_in=c,e.input=d,e.avail_in=l,n.wrap=s,0},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,n){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t,n){"use strict";t.exports=function(e,t){var n,r,i,o,a,s,l,u,c,d,f,h,p,g,m,v,y,w,b,_,S,C,x,E,T;n=e.state,r=e.next_in,E=e.input,i=r+(e.avail_in-5),o=e.next_out,T=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),l=n.dmax,u=n.wsize,c=n.whave,d=n.wnext,f=n.window,h=n.hold,p=n.bits,g=n.lencode,m=n.distcode,v=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;e:do{p<15&&(h+=E[r++]<<p,p+=8,h+=E[r++]<<p,p+=8),w=g[h&v];t:for(;;){if(h>>>=b=w>>>24,p-=b,0==(b=w>>>16&255))T[o++]=65535&w;else{if(!(16&b)){if(0==(64&b)){w=g[(65535&w)+(h&(1<<b)-1)];continue t}if(32&b){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}_=65535&w,(b&=15)&&(p<b&&(h+=E[r++]<<p,p+=8),_+=h&(1<<b)-1,h>>>=b,p-=b),p<15&&(h+=E[r++]<<p,p+=8,h+=E[r++]<<p,p+=8),w=m[h&y];n:for(;;){if(h>>>=b=w>>>24,p-=b,!(16&(b=w>>>16&255))){if(0==(64&b)){w=m[(65535&w)+(h&(1<<b)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(S=65535&w,p<(b&=15)&&(h+=E[r++]<<p,(p+=8)<b&&(h+=E[r++]<<p,p+=8)),l<(S+=h&(1<<b)-1)){e.msg="invalid distance too far back",n.mode=30;break e}if(h>>>=b,p-=b,(b=o-a)<S){if(c<(b=S-b)&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(x=f,(C=0)===d){if(C+=u-b,b<_){for(_-=b;T[o++]=f[C++],--b;);C=o-S,x=T}}else if(d<b){if(C+=u+d-b,(b-=d)<_){for(_-=b;T[o++]=f[C++],--b;);if(C=0,d<_){for(_-=b=d;T[o++]=f[C++],--b;);C=o-S,x=T}}}else if(C+=d-b,b<_){for(_-=b;T[o++]=f[C++],--b;);C=o-S,x=T}for(;2<_;)T[o++]=x[C++],T[o++]=x[C++],T[o++]=x[C++],_-=3;_&&(T[o++]=x[C++],1<_&&(T[o++]=x[C++]))}else{for(C=o-S;T[o++]=T[C++],T[o++]=T[C++],T[o++]=T[C++],2<(_-=3););_&&(T[o++]=T[C++],1<_&&(T[o++]=T[C++]))}break}}break}}while(r<i&&o<s);r-=_=p>>3,h&=(1<<(p-=_<<3))-1,e.next_in=r,e.next_out=o,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=o<s?s-o+257:257-(o-s),n.hold=h,n.bits=p}},{}],49:[function(e,t,n){"use strict";var r=e("../utils/common"),i=e("./adler32"),o=e("./crc32"),a=e("./inffast"),s=e("./inftrees"),l=-2;function u(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function c(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function d(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(852),t.distcode=t.distdyn=new r.Buf32(592),t.sane=1,t.back=-1,0):l}function f(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,d(e)):l}function h(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?l:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,f(e))):l}function p(e,t){var n,r;return e?(r=new c,(e.state=r).window=null,0!==(n=h(e,t))&&(e.state=null),n):l}var g,m,v=!0;function y(e){if(v){var t;for(g=new r.Buf32(512),m=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,g,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,m,0,e.work,{bits:5}),v=!1}e.lencode=g,e.lenbits=9,e.distcode=m,e.distbits=5}function w(e,t,n,i){var o,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),i>=a.wsize?(r.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(i<(o=a.wsize-a.wnext)&&(o=i),r.arraySet(a.window,t,n-i,o,a.wnext),(i-=o)?(r.arraySet(a.window,t,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}n.inflateReset=f,n.inflateReset2=h,n.inflateResetKeep=d,n.inflateInit=function(e){return p(e,15)},n.inflateInit2=p,n.inflate=function(e,t){var n,c,d,f,h,p,g,m,v,b,_,S,C,x,E,T,k,O,L,R,I,A,M,N,P=0,D=new r.Buf8(4),F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return l;12===(n=e.state).mode&&(n.mode=13),h=e.next_out,d=e.output,g=e.avail_out,f=e.next_in,c=e.input,p=e.avail_in,m=n.hold,v=n.bits,b=p,_=g,A=0;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;v<16;){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}if(2&n.wrap&&35615===m){D[n.check=0]=255&m,D[1]=m>>>8&255,n.check=o(n.check,D,2,0),v=m=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&m)<<8)+(m>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&m)){e.msg="unknown compression method",n.mode=30;break}if(v-=4,I=8+(15&(m>>>=4)),0===n.wbits)n.wbits=I;else if(I>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<I,e.adler=n.check=1,n.mode=512&m?10:12,v=m=0;break;case 2:for(;v<16;){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}if(n.flags=m,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=m>>8&1),512&n.flags&&(D[0]=255&m,D[1]=m>>>8&255,n.check=o(n.check,D,2,0)),v=m=0,n.mode=3;case 3:for(;v<32;){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}n.head&&(n.head.time=m),512&n.flags&&(D[0]=255&m,D[1]=m>>>8&255,D[2]=m>>>16&255,D[3]=m>>>24&255,n.check=o(n.check,D,4,0)),v=m=0,n.mode=4;case 4:for(;v<16;){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}n.head&&(n.head.xflags=255&m,n.head.os=m>>8),512&n.flags&&(D[0]=255&m,D[1]=m>>>8&255,n.check=o(n.check,D,2,0)),v=m=0,n.mode=5;case 5:if(1024&n.flags){for(;v<16;){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}n.length=m,n.head&&(n.head.extra_len=m),512&n.flags&&(D[0]=255&m,D[1]=m>>>8&255,n.check=o(n.check,D,2,0)),v=m=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(p<(S=n.length)&&(S=p),S&&(n.head&&(I=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,c,f,S,I)),512&n.flags&&(n.check=o(n.check,c,S,f)),p-=S,f+=S,n.length-=S),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===p)break e;for(S=0;I=c[f+S++],n.head&&I&&n.length<65536&&(n.head.name+=String.fromCharCode(I)),I&&S<p;);if(512&n.flags&&(n.check=o(n.check,c,S,f)),p-=S,f+=S,I)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===p)break e;for(S=0;I=c[f+S++],n.head&&I&&n.length<65536&&(n.head.comment+=String.fromCharCode(I)),I&&S<p;);if(512&n.flags&&(n.check=o(n.check,c,S,f)),p-=S,f+=S,I)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;v<16;){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}if(m!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}v=m=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;v<32;){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}e.adler=n.check=u(m),v=m=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=h,e.avail_out=g,e.next_in=f,e.avail_in=p,n.hold=m,n.bits=v,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){m>>>=7&v,v-=7&v,n.mode=27;break}for(;v<3;){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}switch(n.last=1&m,v-=1,3&(m>>>=1)){case 0:n.mode=14;break;case 1:if(y(n),n.mode=20,6!==t)break;m>>>=2,v-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}m>>>=2,v-=2;break;case 14:for(m>>>=7&v,v-=7&v;v<32;){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}if((65535&m)!=(m>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&m,v=m=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(S=n.length){if(p<S&&(S=p),g<S&&(S=g),0===S)break e;r.arraySet(d,c,f,S,h),p-=S,f+=S,g-=S,h+=S,n.length-=S;break}n.mode=12;break;case 17:for(;v<14;){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}if(n.nlen=257+(31&m),m>>>=5,v-=5,n.ndist=1+(31&m),m>>>=5,v-=5,n.ncode=4+(15&m),m>>>=4,v-=4,286<n.nlen||30<n.ndist){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;v<3;){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}n.lens[F[n.have++]]=7&m,m>>>=3,v-=3}for(;n.have<19;)n.lens[F[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,M={bits:n.lenbits},A=s(0,n.lens,0,19,n.lencode,0,n.work,M),n.lenbits=M.bits,A){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;T=(P=n.lencode[m&(1<<n.lenbits)-1])>>>16&255,k=65535&P,!((E=P>>>24)<=v);){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}if(k<16)m>>>=E,v-=E,n.lens[n.have++]=k;else{if(16===k){for(N=E+2;v<N;){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}if(m>>>=E,v-=E,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}I=n.lens[n.have-1],S=3+(3&m),m>>>=2,v-=2}else if(17===k){for(N=E+3;v<N;){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}v-=E,I=0,S=3+(7&(m>>>=E)),m>>>=3,v-=3}else{for(N=E+7;v<N;){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}v-=E,I=0,S=11+(127&(m>>>=E)),m>>>=7,v-=7}if(n.have+S>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;S--;)n.lens[n.have++]=I}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,M={bits:n.lenbits},A=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,M),n.lenbits=M.bits,A){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,M={bits:n.distbits},A=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,M),n.distbits=M.bits,A){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(6<=p&&258<=g){e.next_out=h,e.avail_out=g,e.next_in=f,e.avail_in=p,n.hold=m,n.bits=v,a(e,_),h=e.next_out,d=e.output,g=e.avail_out,f=e.next_in,c=e.input,p=e.avail_in,m=n.hold,v=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;T=(P=n.lencode[m&(1<<n.lenbits)-1])>>>16&255,k=65535&P,!((E=P>>>24)<=v);){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}if(T&&0==(240&T)){for(O=E,L=T,R=k;T=(P=n.lencode[R+((m&(1<<O+L)-1)>>O)])>>>16&255,k=65535&P,!(O+(E=P>>>24)<=v);){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}m>>>=O,v-=O,n.back+=O}if(m>>>=E,v-=E,n.back+=E,n.length=k,0===T){n.mode=26;break}if(32&T){n.back=-1,n.mode=12;break}if(64&T){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&T,n.mode=22;case 22:if(n.extra){for(N=n.extra;v<N;){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}n.length+=m&(1<<n.extra)-1,m>>>=n.extra,v-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;T=(P=n.distcode[m&(1<<n.distbits)-1])>>>16&255,k=65535&P,!((E=P>>>24)<=v);){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}if(0==(240&T)){for(O=E,L=T,R=k;T=(P=n.distcode[R+((m&(1<<O+L)-1)>>O)])>>>16&255,k=65535&P,!(O+(E=P>>>24)<=v);){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}m>>>=O,v-=O,n.back+=O}if(m>>>=E,v-=E,n.back+=E,64&T){e.msg="invalid distance code",n.mode=30;break}n.offset=k,n.extra=15&T,n.mode=24;case 24:if(n.extra){for(N=n.extra;v<N;){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}n.offset+=m&(1<<n.extra)-1,m>>>=n.extra,v-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===g)break e;if(S=_-g,n.offset>S){if((S=n.offset-S)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}C=S>n.wnext?(S-=n.wnext,n.wsize-S):n.wnext-S,S>n.length&&(S=n.length),x=n.window}else x=d,C=h-n.offset,S=n.length;for(g<S&&(S=g),g-=S,n.length-=S;d[h++]=x[C++],--S;);0===n.length&&(n.mode=21);break;case 26:if(0===g)break e;d[h++]=n.length,g--,n.mode=21;break;case 27:if(n.wrap){for(;v<32;){if(0===p)break e;p--,m|=c[f++]<<v,v+=8}if(_-=g,e.total_out+=_,n.total+=_,_&&(e.adler=n.check=n.flags?o(n.check,d,_,h-_):i(n.check,d,_,h-_)),_=g,(n.flags?m:u(m))!==n.check){e.msg="incorrect data check",n.mode=30;break}v=m=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;v<32;){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}if(m!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}v=m=0}n.mode=29;case 29:A=1;break e;case 30:A=-3;break e;case 31:return-4;case 32:default:return l}return e.next_out=h,e.avail_out=g,e.next_in=f,e.avail_in=p,n.hold=m,n.bits=v,(n.wsize||_!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&w(e,e.output,e.next_out,_-e.avail_out)?(n.mode=31,-4):(b-=e.avail_in,_-=e.avail_out,e.total_in+=b,e.total_out+=_,n.total+=_,n.wrap&&_&&(e.adler=n.check=n.flags?o(n.check,d,_,e.next_out-_):i(n.check,d,_,e.next_out-_)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==b&&0===_||4===t)&&0===A&&(A=-5),A)},n.inflateEnd=function(e){if(!e||!e.state)return l;var t=e.state;return t.window&&(t.window=null),e.state=null,0},n.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?l:((n.head=t).done=!1,0):l},n.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?l:11===n.mode&&i(1,t,r,0)!==n.check?-3:w(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,0):l},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,n){"use strict";var r=e("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,l,u,c,d,f){var h,p,g,m,v,y,w,b,_,S=f.bits,C=0,x=0,E=0,T=0,k=0,O=0,L=0,R=0,I=0,A=0,M=null,N=0,P=new r.Buf16(16),D=new r.Buf16(16),F=null,W=0;for(C=0;C<=15;C++)P[C]=0;for(x=0;x<l;x++)P[t[n+x]]++;for(k=S,T=15;1<=T&&0===P[T];T--);if(T<k&&(k=T),0===T)return u[c++]=20971520,u[c++]=20971520,f.bits=1,0;for(E=1;E<T&&0===P[E];E++);for(k<E&&(k=E),C=R=1;C<=15;C++)if(R<<=1,(R-=P[C])<0)return-1;if(0<R&&(0===e||1!==T))return-1;for(D[1]=0,C=1;C<15;C++)D[C+1]=D[C]+P[C];for(x=0;x<l;x++)0!==t[n+x]&&(d[D[t[n+x]]++]=x);if(y=0===e?(M=F=d,19):1===e?(M=i,N-=257,F=o,W-=257,256):(M=a,F=s,-1),C=E,v=c,L=x=A=0,g=-1,m=(I=1<<(O=k))-1,1===e&&852<I||2===e&&592<I)return 1;for(;;){for(w=C-L,_=d[x]<y?(b=0,d[x]):d[x]>y?(b=F[W+d[x]],M[N+d[x]]):(b=96,0),h=1<<C-L,E=p=1<<O;u[v+(A>>L)+(p-=h)]=w<<24|b<<16|_|0,0!==p;);for(h=1<<C-1;A&h;)h>>=1;if(0!==h?(A&=h-1,A+=h):A=0,x++,0==--P[C]){if(C===T)break;C=t[n+d[x]]}if(k<C&&(A&m)!==g){for(0===L&&(L=k),v+=E,R=1<<(O=C-L);O+L<T&&!((R-=P[O+L])<=0);)O++,R<<=1;if(I+=1<<O,1===e&&852<I||2===e&&592<I)return 1;u[g=A&m]=k<<24|O<<16|v-c|0}}return 0!==A&&(u[v+A]=C-L<<24|64<<16|0),f.bits=k,0}},{"../utils/common":41}],51:[function(e,t,n){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,t,n){"use strict";var r=e("../utils/common");function i(e){for(var t=e.length;0<=--t;)e[t]=0}var o=15,a=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],s=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],l=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],c=new Array(576);i(c);var d=new Array(60);i(d);var f=new Array(512);i(f);var h=new Array(256);i(h);var p=new Array(29);i(p);var g,m,v,y=new Array(30);function w(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function b(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function _(e){return e<256?f[e]:f[256+(e>>>7)]}function S(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function C(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,S(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function x(e,t,n){C(e,n[2*t],n[2*t+1])}function E(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function T(e,t,n){var r,i,a=new Array(16),s=0;for(r=1;r<=o;r++)a[r]=s=s+n[r-1]<<1;for(i=0;i<=t;i++){var l=e[2*i+1];0!==l&&(e[2*i]=E(a[l]++,l))}}function k(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function O(e){8<e.bi_valid?S(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function L(e,t,n,r){var i=2*t,o=2*n;return e[i]<e[o]||e[i]===e[o]&&r[t]<=r[n]}function R(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&L(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!L(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function I(e,t,n){var r,i,o,l,u=0;if(0!==e.last_lit)for(;r=e.pending_buf[e.d_buf+2*u]<<8|e.pending_buf[e.d_buf+2*u+1],i=e.pending_buf[e.l_buf+u],u++,0===r?x(e,i,t):(x(e,(o=h[i])+256+1,t),0!==(l=a[o])&&C(e,i-=p[o],l),x(e,o=_(--r),n),0!==(l=s[o])&&C(e,r-=y[o],l)),u<e.last_lit;);x(e,256,t)}function A(e,t){var n,r,i,a=t.dyn_tree,s=t.stat_desc.static_tree,l=t.stat_desc.has_stree,u=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<u;n++)0!==a[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):a[2*n+1]=0;for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[i]=0,e.opt_len--,l&&(e.static_len-=s[2*i+1]);for(t.max_code=c,n=e.heap_len>>1;1<=n;n--)R(e,a,n);for(i=u;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],R(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,R(e,a,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,s,l,u=t.dyn_tree,c=t.max_code,d=t.stat_desc.static_tree,f=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,g=t.stat_desc.max_length,m=0;for(a=0;a<=o;a++)e.bl_count[a]=0;for(u[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)g<(a=u[2*u[2*(r=e.heap[n])+1]+1]+1)&&(a=g,m++),u[2*r+1]=a,c<r||(e.bl_count[a]++,s=0,p<=r&&(s=h[r-p]),l=u[2*r],e.opt_len+=l*(a+s),f&&(e.static_len+=l*(d[2*r+1]+s)));if(0!==m){do{for(a=g-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[g]--,m-=2}while(0<m);for(a=g;0!==a;a--)for(r=e.bl_count[a];0!==r;)c<(i=e.heap[--n])||(u[2*i+1]!==a&&(e.opt_len+=(a-u[2*i+1])*u[2*i],u[2*i+1]=a),r--)}}(e,t),T(a,c,e.bl_count)}function M(e,t,n){var r,i,o=-1,a=t[1],s=0,l=7,u=4;for(0===a&&(l=138,u=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=t[2*(r+1)+1],++s<l&&i===a||(s<u?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,o=i,u=(s=0)===a?(l=138,3):i===a?(l=6,3):(l=7,4))}function N(e,t,n){var r,i,o=-1,a=t[1],s=0,l=7,u=4;for(0===a&&(l=138,u=3),r=0;r<=n;r++)if(i=a,a=t[2*(r+1)+1],!(++s<l&&i===a)){if(s<u)for(;x(e,i,e.bl_tree),0!=--s;);else 0!==i?(i!==o&&(x(e,i,e.bl_tree),s--),x(e,16,e.bl_tree),C(e,s-3,2)):s<=10?(x(e,17,e.bl_tree),C(e,s-3,3)):(x(e,18,e.bl_tree),C(e,s-11,7));o=i,u=(s=0)===a?(l=138,3):i===a?(l=6,3):(l=7,4)}}i(y);var P=!1;function D(e,t,n,i){var o,a,s;C(e,0+(i?1:0),3),a=t,s=n,O(o=e),S(o,s),S(o,~s),r.arraySet(o.pending_buf,o.window,a,s,o.pending),o.pending+=s}n._tr_init=function(e){P||(function(){var e,t,n,r,i,u=new Array(16);for(r=n=0;r<28;r++)for(p[r]=n,e=0;e<1<<a[r];e++)h[n++]=r;for(h[n-1]=r,r=i=0;r<16;r++)for(y[r]=i,e=0;e<1<<s[r];e++)f[i++]=r;for(i>>=7;r<30;r++)for(y[r]=i<<7,e=0;e<1<<s[r]-7;e++)f[256+i++]=r;for(t=0;t<=o;t++)u[t]=0;for(e=0;e<=143;)c[2*e+1]=8,e++,u[8]++;for(;e<=255;)c[2*e+1]=9,e++,u[9]++;for(;e<=279;)c[2*e+1]=7,e++,u[7]++;for(;e<=287;)c[2*e+1]=8,e++,u[8]++;for(T(c,287,u),e=0;e<30;e++)d[2*e+1]=5,d[2*e]=E(e,5);g=new w(c,a,257,286,o),m=new w(d,s,0,30,o),v=new w(new Array(0),l,0,19,7)}(),P=!0),e.l_desc=new b(e.dyn_ltree,g),e.d_desc=new b(e.dyn_dtree,m),e.bl_desc=new b(e.bl_tree,v),e.bi_buf=0,e.bi_valid=0,k(e)},n._tr_stored_block=D,n._tr_flush_block=function(e,t,n,r){var i,o,a=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),A(e,e.l_desc),A(e,e.d_desc),a=function(e){var t;for(M(e,e.dyn_ltree,e.l_desc.max_code),M(e,e.dyn_dtree,e.d_desc.max_code),A(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*u[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==t?D(e,t,n,r):4===e.strategy||o===i?(C(e,2+(r?1:0),3),I(e,c,d)):(C(e,4+(r?1:0),3),function(e,t,n,r){var i;for(C(e,t-257,5),C(e,n-1,5),C(e,r-4,4),i=0;i<r;i++)C(e,e.bl_tree[2*u[i]+1],3);N(e,e.dyn_ltree,t-1),N(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),I(e,e.dyn_ltree,e.dyn_dtree)),k(e),r&&O(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(h[n]+256+1)]++,e.dyn_dtree[2*_(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){var t;C(e,2,3),x(e,256,c),16===(t=e).bi_valid?(S(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}},{"../utils/common":41}],53:[function(e,t,n){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,n){"use strict";t.exports="function"==typeof setImmediate?setImmediate:function(){var e=[].slice.apply(arguments);e.splice(1,0,0),setTimeout.apply(null,e)}},{}]},{},[10])(10)}))}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)}))}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)}))}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)}))}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)}))}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)},24081:(e,t,n)=>{var r=n(21059)(n(158),"DataView");e.exports=r},15999:(e,t,n)=>{var r=n(13387),i=n(69252),o=n(31125),a=n(9021),s=n(68131);function l(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])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},26811:(e,t,n)=>{var r=n(72215),i=n(56105),o=n(30484),a=n(8046),s=n(30603);function l(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])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},60945:(e,t,n)=>{var r=n(21059)(n(158),"Map");e.exports=r},25835:(e,t,n)=>{var r=n(73633),i=n(39382),o=n(28850),a=n(70756),s=n(2769);function l(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])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},27540:(e,t,n)=>{var r=n(21059)(n(158),"Promise");e.exports=r},80476:(e,t,n)=>{var r=n(21059)(n(158),"Set");e.exports=r},74868:(e,t,n)=>{var r=n(25835),i=n(57554),o=n(18800);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},34987:(e,t,n)=>{var r=n(26811),i=n(73832),o=n(31676),a=n(33577),s=n(43343),l=n(20488);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},44937:(e,t,n)=>{var r=n(158).Symbol;e.exports=r},48596:(e,t,n)=>{var r=n(158).Uint8Array;e.exports=r},18307:(e,t,n)=>{var r=n(21059)(n(158),"WeakMap");e.exports=r},90929:e=>{e.exports=function(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)}},73034:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},5680:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},92554:(e,t,n)=>{var r=n(65086),i=n(67016),o=n(93706),a=n(77638),s=n(49699),l=n(70094),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),c=!n&&i(e),d=!n&&!c&&a(e),f=!n&&!c&&!d&&l(e),h=n||c||d||f,p=h?r(e.length,String):[],g=p.length;for(var m in e)!t&&!u.call(e,m)||h&&("length"==m||d&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||p.push(m);return p}},57041:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},52824:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},99280:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},96122:(e,t,n)=>{var r=n(88039),i=n(1316),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},33993:(e,t,n)=>{var r=n(1316);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},73977:(e,t,n)=>{var r=n(34386),i=n(23150);e.exports=function(e,t){return e&&r(t,i(t),e)}},5081:(e,t,n)=>{var r=n(34386),i=n(61530);e.exports=function(e,t){return e&&r(t,i(t),e)}},88039:(e,t,n)=>{var r=n(88689);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},49548:(e,t,n)=>{var r=n(34987),i=n(73034),o=n(96122),a=n(73977),s=n(5081),l=n(728),u=n(86923),c=n(21375),d=n(1584),f=n(47461),h=n(31441),p=n(35551),g=n(75539),m=n(83394),v=n(45010),y=n(93706),w=n(77638),b=n(55948),_=n(23619),S=n(78255),C=n(23150),x=n(61530),E="[object Arguments]",T="[object Function]",k="[object Object]",O={};O[E]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O[k]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O[T]=O["[object WeakMap]"]=!1,e.exports=function e(t,n,L,R,I,A){var M,N=1&n,P=2&n,D=4&n;if(L&&(M=I?L(t,R,I,A):L(t)),void 0!==M)return M;if(!_(t))return t;var F=y(t);if(F){if(M=g(t),!N)return u(t,M)}else{var W=p(t),z=W==T||"[object GeneratorFunction]"==W;if(w(t))return l(t,N);if(W==k||W==E||z&&!I){if(M=P||z?{}:v(t),!N)return P?d(t,s(M,t)):c(t,a(M,t))}else{if(!O[W])return I?t:{};M=m(t,W,N)}}A||(A=new r);var j=A.get(t);if(j)return j;A.set(t,M),S(t)?t.forEach((function(r){M.add(e(r,n,L,r,t,A))})):b(t)&&t.forEach((function(r,i){M.set(i,e(r,n,L,i,t,A))}));var B=F?void 0:(D?P?h:f:P?x:C)(t);return i(B||t,(function(r,i){B&&(r=t[i=r]),o(M,i,e(r,n,L,i,t,A))})),M}},33776:(e,t,n)=>{var r=n(23619),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},22153:(e,t,n)=>{var r=n(52824),i=n(76648);e.exports=function e(t,n,o,a,s){var l=-1,u=t.length;for(o||(o=i),s||(s=[]);++l<u;){var c=t[l];n>0&&o(c)?n>1?e(c,n-1,o,a,s):r(s,c):a||(s[s.length]=c)}return s}},51845:(e,t,n)=>{var r=n(49160),i=n(46384);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},45328:(e,t,n)=>{var r=n(52824),i=n(93706);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},20194:(e,t,n)=>{var r=n(44937),i=n(15401),o=n(92445),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},56640:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},64634:(e,t,n)=>{var r=n(20194),i=n(81653);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},95372:(e,t,n)=>{var r=n(55365),i=n(81653);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,a,e,s))}},55365:(e,t,n)=>{var r=n(34987),i=n(95428),o=n(1108),a=n(71711),s=n(35551),l=n(93706),u=n(77638),c=n(70094),d="[object Arguments]",f="[object Array]",h="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,m,v){var y=l(e),w=l(t),b=y?f:s(e),_=w?f:s(t),S=(b=b==d?h:b)==h,C=(_=_==d?h:_)==h,x=b==_;if(x&&u(e)){if(!u(t))return!1;y=!0,S=!1}if(x&&!S)return v||(v=new r),y||c(e)?i(e,t,n,g,m,v):o(e,t,b,n,g,m,v);if(!(1&n)){var E=S&&p.call(e,"__wrapped__"),T=C&&p.call(t,"__wrapped__");if(E||T){var k=E?e.value():e,O=T?t.value():t;return v||(v=new r),m(k,O,n,g,v)}}return!!x&&(v||(v=new r),a(e,t,n,g,m,v))}},2471:(e,t,n)=>{var r=n(35551),i=n(81653);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},4249:(e,t,n)=>{var r=n(39277),i=n(83481),o=n(23619),a=n(91223),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,d=u.hasOwnProperty,f=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?f:s).test(a(e))}},42388:(e,t,n)=>{var r=n(35551),i=n(81653);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},88595:(e,t,n)=>{var r=n(20194),i=n(62008),o=n(81653),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},76324:(e,t,n)=>{var r=n(3067),i=n(32501),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},21506:(e,t,n)=>{var r=n(23619),i=n(3067),o=n(90807),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},11241:(e,t,n)=>{var r=n(10722),i=n(47975);e.exports=function(e,t){return r(e,t,(function(t,n){return i(e,n)}))}},10722:(e,t,n)=>{var r=n(51845),i=n(68400),o=n(49160);e.exports=function(e,t,n){for(var a=-1,s=t.length,l={};++a<s;){var u=t[a],c=r(e,u);n(c,u)&&i(l,o(u,e),c)}return l}},68400:(e,t,n)=>{var r=n(96122),i=n(49160),o=n(49699),a=n(23619),s=n(46384);e.exports=function(e,t,n,l){if(!a(e))return e;for(var u=-1,c=(t=i(t,e)).length,d=c-1,f=e;null!=f&&++u<c;){var h=s(t[u]),p=n;if("__proto__"===h||"constructor"===h||"prototype"===h)return e;if(u!=d){var g=f[h];void 0===(p=l?l(g,h,f):void 0)&&(p=a(g)?g:o(t[u+1])?[]:{})}r(f,h,p),f=f[h]}return e}},86920:(e,t,n)=>{var r=n(80446),i=n(88689),o=n(41549),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},65086:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},80430:(e,t,n)=>{var r=n(44937),i=n(57041),o=n(93706),a=n(81878),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},12383:(e,t,n)=>{var r=n(38725),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},2723:e=>{e.exports=function(e){return function(t){return e(t)}}},67446:e=>{e.exports=function(e,t){return e.has(t)}},49160:(e,t,n)=>{var r=n(93706),i=n(63140),o=n(39230),a=n(33270);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},53310:(e,t,n)=>{var r=n(48596);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},728:(e,t,n)=>{e=n.nmd(e);var r=n(158),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},14352:(e,t,n)=>{var r=n(53310);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},44694:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},29169:(e,t,n)=>{var r=n(44937),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},69752:(e,t,n)=>{var r=n(53310);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},86923:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},34386:(e,t,n)=>{var r=n(96122),i=n(88039);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var u=t[s],c=o?o(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),a?i(n,u,c):r(n,u,c)}return n}},21375:(e,t,n)=>{var r=n(34386),i=n(45278);e.exports=function(e,t){return r(e,i(e),t)}},1584:(e,t,n)=>{var r=n(34386),i=n(27508);e.exports=function(e,t){return r(e,i(e),t)}},38728:(e,t,n)=>{var r=n(158)["__core-js_shared__"];e.exports=r},88689:(e,t,n)=>{var r=n(21059),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},95428:(e,t,n)=>{var r=n(74868),i=n(99280),o=n(67446);e.exports=function(e,t,n,a,s,l){var u=1&n,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var f=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var p=-1,g=!0,m=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++p<c;){var v=e[p],y=t[p];if(a)var w=u?a(y,v,p,t,e,l):a(v,y,p,e,t,l);if(void 0!==w){if(w)continue;g=!1;break}if(m){if(!i(t,(function(e,t){if(!o(m,t)&&(v===e||s(v,e,n,a,l)))return m.push(t)}))){g=!1;break}}else if(v!==y&&!s(v,y,n,a,l)){g=!1;break}}return l.delete(e),l.delete(t),g}},1108:(e,t,n)=>{var r=n(44937),i=n(48596),o=n(1316),a=n(95428),s=n(11382),l=n(76680),u=r?r.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=s;case"[object Set]":var p=1&r;if(h||(h=l),e.size!=t.size&&!p)return!1;var g=f.get(e);if(g)return g==t;r|=2,f.set(e,t);var m=a(h(e),h(t),r,u,d,f);return f.delete(e),m;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},71711:(e,t,n)=>{var r=n(47461),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var l=1&n,u=r(e),c=u.length;if(c!=r(t).length&&!l)return!1;for(var d=c;d--;){var f=u[d];if(!(l?f in t:i.call(t,f)))return!1}var h=s.get(e),p=s.get(t);if(h&&p)return h==t&&p==e;var g=!0;s.set(e,t),s.set(t,e);for(var m=l;++d<c;){var v=e[f=u[d]],y=t[f];if(o)var w=l?o(y,v,f,t,e,s):o(v,y,f,e,t,s);if(!(void 0===w?v===y||a(v,y,n,o,s):w)){g=!1;break}m||(m="constructor"==f)}if(g&&!m){var b=e.constructor,_=t.constructor;b==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _||(g=!1)}return s.delete(e),s.delete(t),g}},39169:(e,t,n)=>{var r=n(30597),i=n(53039),o=n(47209);e.exports=function(e){return o(i(e,void 0,r),e+"")}},14528:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},47461:(e,t,n)=>{var r=n(45328),i=n(45278),o=n(23150);e.exports=function(e){return r(e,o,i)}},31441:(e,t,n)=>{var r=n(45328),i=n(27508),o=n(61530);e.exports=function(e){return r(e,o,i)}},5662:(e,t,n)=>{var r=n(10205);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},21059:(e,t,n)=>{var r=n(4249),i=n(4759);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},97959:(e,t,n)=>{var r=n(78579)(Object.getPrototypeOf,Object);e.exports=r},15401:(e,t,n)=>{var r=n(44937),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},45278:(e,t,n)=>{var r=n(5680),i=n(59174),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},27508:(e,t,n)=>{var r=n(52824),i=n(97959),o=n(45278),a=n(59174),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=s},35551:(e,t,n)=>{var r=n(24081),i=n(60945),o=n(27540),a=n(80476),s=n(18307),l=n(20194),u=n(91223),c="[object Map]",d="[object Promise]",f="[object Set]",h="[object WeakMap]",p="[object DataView]",g=u(r),m=u(i),v=u(o),y=u(a),w=u(s),b=l;(r&&b(new r(new ArrayBuffer(1)))!=p||i&&b(new i)!=c||o&&b(o.resolve())!=d||a&&b(new a)!=f||s&&b(new s)!=h)&&(b=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case g:return p;case m:return c;case v:return d;case y:return f;case w:return h}return t}),e.exports=b},4759:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},96919:(e,t,n)=>{var r=n(49160),i=n(67016),o=n(93706),a=n(49699),s=n(62008),l=n(46384);e.exports=function(e,t,n){for(var u=-1,c=(t=r(t,e)).length,d=!1;++u<c;){var f=l(t[u]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++u!=c?d:!!(c=null==e?0:e.length)&&s(c)&&a(f,c)&&(o(e)||i(e))}},13387:(e,t,n)=>{var r=n(45155);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},69252:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},31125:(e,t,n)=>{var r=n(45155),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},9021:(e,t,n)=>{var r=n(45155),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},68131:(e,t,n)=>{var r=n(45155);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},75539:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},83394:(e,t,n)=>{var r=n(53310),i=n(14352),o=n(44694),a=n(29169),s=n(69752);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return o(e);case"[object Set]":return new l;case"[object Symbol]":return a(e)}}},45010:(e,t,n)=>{var r=n(33776),i=n(97959),o=n(3067);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},76648:(e,t,n)=>{var r=n(44937),i=n(67016),o=n(93706),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},49699:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},63140:(e,t,n)=>{var r=n(93706),i=n(81878),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},10205:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},83481:(e,t,n)=>{var r,i=n(38728),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},3067:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},72215:e=>{e.exports=function(){this.__data__=[],this.size=0}},56105:(e,t,n)=>{var r=n(33993),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))}},30484:(e,t,n)=>{var r=n(33993);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},8046:(e,t,n)=>{var r=n(33993);e.exports=function(e){return r(this.__data__,e)>-1}},30603:(e,t,n)=>{var r=n(33993);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},73633:(e,t,n)=>{var r=n(15999),i=n(26811),o=n(60945);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},39382:(e,t,n)=>{var r=n(5662);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},28850:(e,t,n)=>{var r=n(5662);e.exports=function(e){return r(this,e).get(e)}},70756:(e,t,n)=>{var r=n(5662);e.exports=function(e){return r(this,e).has(e)}},2769:(e,t,n)=>{var r=n(5662);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},11382:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},32202:(e,t,n)=>{var r=n(54883);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},45155:(e,t,n)=>{var r=n(21059)(Object,"create");e.exports=r},32501:(e,t,n)=>{var r=n(78579)(Object.keys,Object);e.exports=r},90807:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},41771:(e,t,n)=>{e=n.nmd(e);var r=n(14528),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},92445:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},78579:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},53039:(e,t,n)=>{var r=n(90929),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a<s;)l[a]=o[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=o[a];return u[t]=n(l),r(e,this,u)}}},158:(e,t,n)=>{var r=n(14528),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},57554:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},18800:e=>{e.exports=function(e){return this.__data__.has(e)}},76680:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},47209:(e,t,n)=>{var r=n(86920),i=n(10832)(r);e.exports=i},10832:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},73832:(e,t,n)=>{var r=n(26811);e.exports=function(){this.__data__=new r,this.size=0}},31676:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},33577:e=>{e.exports=function(e){return this.__data__.get(e)}},43343:e=>{e.exports=function(e){return this.__data__.has(e)}},20488:(e,t,n)=>{var r=n(26811),i=n(60945),o=n(25835);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},39230:(e,t,n)=>{var r=n(32202),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},46384:(e,t,n)=>{var r=n(81878);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},91223:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},38725:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},71879:(e,t,n)=>{var r=n(49548);e.exports=function(e){return r(e,4)}},99748:(e,t,n)=>{var r=n(49548);e.exports=function(e){return r(e,5)}},80446:e=>{e.exports=function(e){return function(){return e}}},76897:(e,t,n)=>{var r=n(23619),i=n(98253),o=n(95053),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,u,c,d,f,h,p=0,g=!1,m=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=u;return l=u=void 0,p=t,d=e.apply(r,n)}function w(e){return p=e,f=setTimeout(_,t),g?y(e):d}function b(e){var n=e-h;return void 0===h||n>=t||n<0||m&&e-p>=c}function _(){var e=i();if(b(e))return S(e);f=setTimeout(_,function(e){var n=t-(e-h);return m?s(n,c-(e-p)):n}(e))}function S(e){return f=void 0,v&&l?y(e):(l=u=void 0,d)}function C(){var e=i(),n=b(e);if(l=arguments,u=this,h=e,n){if(void 0===f)return w(h);if(m)return clearTimeout(f),f=setTimeout(_,t),y(h)}return void 0===f&&(f=setTimeout(_,t)),d}return t=o(t)||0,r(n)&&(g=!!n.leading,c=(m="maxWait"in n)?a(o(n.maxWait)||0,t):c,v="trailing"in n?!!n.trailing:v),C.cancel=function(){void 0!==f&&clearTimeout(f),p=0,l=h=u=f=void 0},C.flush=function(){return void 0===f?d:S(i())},C}},1316:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},30597:(e,t,n)=>{var r=n(22153);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},80089:(e,t,n)=>{var r=n(51845);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},47975:(e,t,n)=>{var r=n(56640),i=n(96919);e.exports=function(e,t){return null!=e&&i(e,t,r)}},41549:e=>{e.exports=function(e){return e}},67016:(e,t,n)=>{var r=n(64634),i=n(81653),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},93706:e=>{var t=Array.isArray;e.exports=t},51528:(e,t,n)=>{var r=n(39277),i=n(62008);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},77638:(e,t,n)=>{e=n.nmd(e);var r=n(158),i=n(30647),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;e.exports=l},47184:(e,t,n)=>{var r=n(95372);e.exports=function(e,t){return r(e,t)}},65162:(e,t,n)=>{var r=n(95372);e.exports=function(e,t,n){var i=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===i?r(e,t,void 0,n):!!i}},39277:(e,t,n)=>{var r=n(20194),i=n(23619);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},62008:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},55948:(e,t,n)=>{var r=n(2471),i=n(2723),o=n(41771),a=o&&o.isMap,s=a?i(a):r;e.exports=s},23619:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},81653:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},78255:(e,t,n)=>{var r=n(42388),i=n(2723),o=n(41771),a=o&&o.isSet,s=a?i(a):r;e.exports=s},81878:(e,t,n)=>{var r=n(20194),i=n(81653);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},70094:(e,t,n)=>{var r=n(88595),i=n(2723),o=n(41771),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},23150:(e,t,n)=>{var r=n(92554),i=n(76324),o=n(51528);e.exports=function(e){return o(e)?r(e):i(e)}},61530:(e,t,n)=>{var r=n(92554),i=n(21506),o=n(51528);e.exports=function(e){return o(e)?r(e,!0):i(e)}},53059:function(e,t,n){var r;e=n.nmd(e),function(){var i,o="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",l=32,u=128,c=1/0,d=9007199254740991,f=NaN,h=4294967295,p=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",256]],g="[object Arguments]",m="[object Array]",v="[object Boolean]",y="[object Date]",w="[object Error]",b="[object Function]",_="[object GeneratorFunction]",S="[object Map]",C="[object Number]",x="[object Object]",E="[object Promise]",T="[object RegExp]",k="[object Set]",O="[object String]",L="[object Symbol]",R="[object WeakMap]",I="[object ArrayBuffer]",A="[object DataView]",M="[object Float32Array]",N="[object Float64Array]",P="[object Int8Array]",D="[object Int16Array]",F="[object Int32Array]",W="[object Uint8Array]",z="[object Uint8ClampedArray]",j="[object Uint16Array]",B="[object Uint32Array]",H=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,$=/[&<>"']/g,q=RegExp(G.source),Y=RegExp($.source),K=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,ie=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,ce=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fe=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,me=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,be=/['\n\r\u2028\u2029\\]/g,_e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Se="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",xe="\\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",Ee="["+xe+"]",Te="["+_e+"]",ke="\\d+",Oe="["+Se+"]",Le="[^\\ud800-\\udfff"+xe+ke+"\\u2700-\\u27bf"+Se+Ce+"]",Re="\\ud83c[\\udffb-\\udfff]",Ie="[^\\ud800-\\udfff]",Ae="(?:\\ud83c[\\udde6-\\uddff]){2}",Me="[\\ud800-\\udbff][\\udc00-\\udfff]",Ne="["+Ce+"]",Pe="(?:"+Oe+"|"+Le+")",De="(?:"+Ne+"|"+Le+")",Fe="(?:['’](?:d|ll|m|re|s|t|ve))?",We="(?:['’](?:D|LL|M|RE|S|T|VE))?",ze="(?:"+Te+"|"+Re+")?",je="[\\ufe0e\\ufe0f]?",Be=je+ze+"(?:\\u200d(?:"+[Ie,Ae,Me].join("|")+")"+je+ze+")*",He="(?:"+["[\\u2700-\\u27bf]",Ae,Me].join("|")+")"+Be,Ue="(?:"+[Ie+Te+"?",Te,Ae,Me,"[\\ud800-\\udfff]"].join("|")+")",Ve=RegExp("['’]","g"),Ge=RegExp(Te,"g"),$e=RegExp(Re+"(?="+Re+")|"+Ue+Be,"g"),qe=RegExp([Ne+"?"+Oe+"+"+Fe+"(?="+[Ee,Ne,"$"].join("|")+")",De+"+"+We+"(?="+[Ee,Ne+Pe,"$"].join("|")+")",Ne+"?"+Pe+"+"+Fe,Ne+"+"+We,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ke,He].join("|"),"g"),Ye=RegExp("[\\u200d\\ud800-\\udfff"+_e+"\\ufe0e\\ufe0f]"),Ke=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ze=["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"],Je=-1,Qe={};Qe[M]=Qe[N]=Qe[P]=Qe[D]=Qe[F]=Qe[W]=Qe[z]=Qe[j]=Qe[B]=!0,Qe[g]=Qe[m]=Qe[I]=Qe[v]=Qe[A]=Qe[y]=Qe[w]=Qe[b]=Qe[S]=Qe[C]=Qe[x]=Qe[T]=Qe[k]=Qe[O]=Qe[R]=!1;var Xe={};Xe[g]=Xe[m]=Xe[I]=Xe[A]=Xe[v]=Xe[y]=Xe[M]=Xe[N]=Xe[P]=Xe[D]=Xe[F]=Xe[S]=Xe[C]=Xe[x]=Xe[T]=Xe[k]=Xe[O]=Xe[L]=Xe[W]=Xe[z]=Xe[j]=Xe[B]=!0,Xe[w]=Xe[b]=Xe[R]=!1;var et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,nt=parseInt,rt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,it="object"==typeof self&&self&&self.Object===Object&&self,ot=rt||it||Function("return this")(),at=t&&!t.nodeType&&t,st=at&&e&&!e.nodeType&&e,lt=st&&st.exports===at,ut=lt&&rt.process,ct=function(){try{return st&&st.require&&st.require("util").types||ut&&ut.binding&&ut.binding("util")}catch(e){}}(),dt=ct&&ct.isArrayBuffer,ft=ct&&ct.isDate,ht=ct&&ct.isMap,pt=ct&&ct.isRegExp,gt=ct&&ct.isSet,mt=ct&&ct.isTypedArray;function vt(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 yt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function wt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function bt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function _t(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 St(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function Ct(e,t){return!(null==e||!e.length)&&Mt(e,t,0)>-1}function xt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Et(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Tt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function kt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function Ot(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Lt(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 Rt=Ft("length");function It(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function At(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Mt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):At(e,Pt,n)}function Nt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Pt(e){return e!=e}function Dt(e,t){var n=null==e?0:e.length;return n?jt(e,t)/n:f}function Ft(e){return function(t){return null==t?i:t[e]}}function Wt(e){return function(t){return null==e?i:e[t]}}function zt(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function jt(e,t){for(var n,r=-1,o=e.length;++r<o;){var a=t(e[r]);a!==i&&(n=n===i?a:n+a)}return n}function Bt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Ht(e){return e?e.slice(0,sn(e)+1).replace(re,""):e}function Ut(e){return function(t){return e(t)}}function Vt(e,t){return Et(t,(function(t){return e[t]}))}function Gt(e,t){return e.has(t)}function $t(e,t){for(var n=-1,r=e.length;++n<r&&Mt(t,e[n],0)>-1;);return n}function qt(e,t){for(var n=e.length;n--&&Mt(t,e[n],0)>-1;);return n}function Yt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Kt=Wt({À:"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"}),Zt=Wt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Jt(e){return"\\"+et[e]}function Qt(e){return Ye.test(e)}function Xt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function en(e,t){return function(n){return e(t(n))}}function tn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,o[i++]=n)}return o}function nn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function rn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function on(e){return Qt(e)?function(e){for(var t=$e.lastIndex=0;$e.test(e);)++t;return t}(e):Rt(e)}function an(e){return Qt(e)?function(e){return e.match($e)||[]}(e):function(e){return e.split("")}(e)}function sn(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var ln=Wt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),un=function e(t){var n,r=(t=null==t?ot:un.defaults(ot.Object(),t,un.pick(ot,Ze))).Array,ie=t.Date,_e=t.Error,Se=t.Function,Ce=t.Math,xe=t.Object,Ee=t.RegExp,Te=t.String,ke=t.TypeError,Oe=r.prototype,Le=Se.prototype,Re=xe.prototype,Ie=t["__core-js_shared__"],Ae=Le.toString,Me=Re.hasOwnProperty,Ne=0,Pe=(n=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",De=Re.toString,Fe=Ae.call(xe),We=ot._,ze=Ee("^"+Ae.call(Me).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),je=lt?t.Buffer:i,Be=t.Symbol,He=t.Uint8Array,Ue=je?je.allocUnsafe:i,$e=en(xe.getPrototypeOf,xe),Ye=xe.create,et=Re.propertyIsEnumerable,rt=Oe.splice,it=Be?Be.isConcatSpreadable:i,at=Be?Be.iterator:i,st=Be?Be.toStringTag:i,ut=function(){try{var e=uo(xe,"defineProperty");return e({},"",{}),e}catch(e){}}(),ct=t.clearTimeout!==ot.clearTimeout&&t.clearTimeout,Rt=ie&&ie.now!==ot.Date.now&&ie.now,Wt=t.setTimeout!==ot.setTimeout&&t.setTimeout,cn=Ce.ceil,dn=Ce.floor,fn=xe.getOwnPropertySymbols,hn=je?je.isBuffer:i,pn=t.isFinite,gn=Oe.join,mn=en(xe.keys,xe),vn=Ce.max,yn=Ce.min,wn=ie.now,bn=t.parseInt,_n=Ce.random,Sn=Oe.reverse,Cn=uo(t,"DataView"),xn=uo(t,"Map"),En=uo(t,"Promise"),Tn=uo(t,"Set"),kn=uo(t,"WeakMap"),On=uo(xe,"create"),Ln=kn&&new kn,Rn={},In=zo(Cn),An=zo(xn),Mn=zo(En),Nn=zo(Tn),Pn=zo(kn),Dn=Be?Be.prototype:i,Fn=Dn?Dn.valueOf:i,Wn=Dn?Dn.toString:i;function zn(e){if(ns(e)&&!Ga(e)&&!(e instanceof Un)){if(e instanceof Hn)return e;if(Me.call(e,"__wrapped__"))return jo(e)}return new Hn(e)}var jn=function(){function e(){}return function(t){if(!ts(t))return{};if(Ye)return Ye(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Bn(){}function Hn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Un(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Vn(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 Gn(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 $n(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 qn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new $n;++t<n;)this.add(e[t])}function Yn(e){var t=this.__data__=new Gn(e);this.size=t.size}function Kn(e,t){var n=Ga(e),r=!n&&Va(e),i=!n&&!r&&Ka(e),o=!n&&!r&&!i&&cs(e),a=n||r||i||o,s=a?Bt(e.length,Te):[],l=s.length;for(var u in e)!t&&!Me.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||vo(u,l))||s.push(u);return s}function Zn(e){var t=e.length;return t?e[$r(0,t-1)]:i}function Jn(e,t){return No(ki(e),ar(t,0,e.length))}function Qn(e){return No(ki(e))}function Xn(e,t,n){(n!==i&&!Ba(e[t],n)||n===i&&!(t in e))&&ir(e,t,n)}function er(e,t,n){var r=e[t];Me.call(e,t)&&Ba(r,n)&&(n!==i||t in e)||ir(e,t,n)}function tr(e,t){for(var n=e.length;n--;)if(Ba(e[n][0],t))return n;return-1}function nr(e,t,n,r){return dr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function rr(e,t){return e&&Oi(t,As(t),e)}function ir(e,t,n){"__proto__"==t&&ut?ut(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function or(e,t){for(var n=-1,o=t.length,a=r(o),s=null==e;++n<o;)a[n]=s?i:ks(e,t[n]);return a}function ar(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function sr(e,t,n,r,o,a){var s,l=1&t,u=2&t,c=4&t;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!ts(e))return e;var d=Ga(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Me.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return ki(e,s)}else{var f=ho(e),h=f==b||f==_;if(Ka(e))return _i(e,l);if(f==x||f==g||h&&!o){if(s=u||h?{}:go(e),!l)return u?function(e,t){return Oi(e,fo(e),t)}(e,function(e,t){return e&&Oi(t,Ms(t),e)}(s,e)):function(e,t){return Oi(e,co(e),t)}(e,rr(s,e))}else{if(!Xe[f])return o?e:{};s=function(e,t,n){var r,i=e.constructor;switch(t){case I:return Si(e);case v:case y:return new i(+e);case A:return function(e,t){var n=t?Si(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case M:case N:case P:case D:case F:case W:case z:case j:case B:return Ci(e,n);case S:return new i;case C:case O:return new i(e);case T:return function(e){var t=new e.constructor(e.source,fe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case k:return new i;case L:return r=e,Fn?xe(Fn.call(r)):{}}}(e,f,l)}}a||(a=new Yn);var p=a.get(e);if(p)return p;a.set(e,s),ss(e)?e.forEach((function(r){s.add(sr(r,t,n,r,e,a))})):rs(e)&&e.forEach((function(r,i){s.set(i,sr(r,t,n,i,e,a))}));var m=d?i:(c?u?no:to:u?Ms:As)(e);return wt(m||e,(function(r,i){m&&(r=e[i=r]),er(s,i,sr(r,t,n,i,e,a))})),s}function lr(e,t,n){var r=n.length;if(null==e)return!r;for(e=xe(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function ur(e,t,n){if("function"!=typeof e)throw new ke(o);return Ro((function(){e.apply(i,n)}),t)}function cr(e,t,n,r){var i=-1,o=Ct,a=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=Et(t,Ut(n))),r?(o=xt,a=!1):t.length>=200&&(o=Gt,a=!1,t=new qn(t));e:for(;++i<s;){var c=e[i],d=null==n?c:n(c);if(c=r||0!==c?c:0,a&&d==d){for(var f=u;f--;)if(t[f]===d)continue e;l.push(c)}else o(t,d,r)||l.push(c)}return l}zn.templateSettings={escape:K,evaluate:Z,interpolate:J,variable:"",imports:{_:zn}},zn.prototype=Bn.prototype,zn.prototype.constructor=zn,Hn.prototype=jn(Bn.prototype),Hn.prototype.constructor=Hn,Un.prototype=jn(Bn.prototype),Un.prototype.constructor=Un,Vn.prototype.clear=function(){this.__data__=On?On(null):{},this.size=0},Vn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Vn.prototype.get=function(e){var t=this.__data__;if(On){var n=t[e];return n===a?i:n}return Me.call(t,e)?t[e]:i},Vn.prototype.has=function(e){var t=this.__data__;return On?t[e]!==i:Me.call(t,e)},Vn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=On&&t===i?a:t,this},Gn.prototype.clear=function(){this.__data__=[],this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=tr(t,e);return!(n<0||(n==t.length-1?t.pop():rt.call(t,n,1),--this.size,0))},Gn.prototype.get=function(e){var t=this.__data__,n=tr(t,e);return n<0?i:t[n][1]},Gn.prototype.has=function(e){return tr(this.__data__,e)>-1},Gn.prototype.set=function(e,t){var n=this.__data__,r=tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},$n.prototype.clear=function(){this.size=0,this.__data__={hash:new Vn,map:new(xn||Gn),string:new Vn}},$n.prototype.delete=function(e){var t=so(this,e).delete(e);return this.size-=t?1:0,t},$n.prototype.get=function(e){return so(this,e).get(e)},$n.prototype.has=function(e){return so(this,e).has(e)},$n.prototype.set=function(e,t){var n=so(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},qn.prototype.add=qn.prototype.push=function(e){return this.__data__.set(e,a),this},qn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.clear=function(){this.__data__=new Gn,this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Yn.prototype.get=function(e){return this.__data__.get(e)},Yn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var r=n.__data__;if(!xn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new $n(r)}return n.set(e,t),this.size=n.size,this};var dr=Ii(wr),fr=Ii(br,!0);function hr(e,t){var n=!0;return dr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function pr(e,t,n){for(var r=-1,o=e.length;++r<o;){var a=e[r],s=t(a);if(null!=s&&(l===i?s==s&&!us(s):n(s,l)))var l=s,u=a}return u}function gr(e,t){var n=[];return dr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function mr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=mo),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?mr(s,t-1,n,r,i):Tt(i,s):r||(i[i.length]=s)}return i}var vr=Ai(),yr=Ai(!0);function wr(e,t){return e&&vr(e,t,As)}function br(e,t){return e&&yr(e,t,As)}function _r(e,t){return St(t,(function(t){return Qa(e[t])}))}function Sr(e,t){for(var n=0,r=(t=vi(t,e)).length;null!=e&&n<r;)e=e[Wo(t[n++])];return n&&n==r?e:i}function Cr(e,t,n){var r=t(e);return Ga(e)?r:Tt(r,n(e))}function xr(e){return null==e?e===i?"[object Undefined]":"[object Null]":st&&st in xe(e)?function(e){var t=Me.call(e,st),n=e[st];try{e[st]=i;var r=!0}catch(e){}var o=De.call(e);return r&&(t?e[st]=n:delete e[st]),o}(e):function(e){return De.call(e)}(e)}function Er(e,t){return e>t}function Tr(e,t){return null!=e&&Me.call(e,t)}function kr(e,t){return null!=e&&t in xe(e)}function Or(e,t,n){for(var o=n?xt:Ct,a=e[0].length,s=e.length,l=s,u=r(s),c=1/0,d=[];l--;){var f=e[l];l&&t&&(f=Et(f,Ut(t))),c=yn(f.length,c),u[l]=!n&&(t||a>=120&&f.length>=120)?new qn(l&&f):i}f=e[0];var h=-1,p=u[0];e:for(;++h<a&&d.length<c;){var g=f[h],m=t?t(g):g;if(g=n||0!==g?g:0,!(p?Gt(p,m):o(d,m,n))){for(l=s;--l;){var v=u[l];if(!(v?Gt(v,m):o(e[l],m,n)))continue e}p&&p.push(m),d.push(g)}}return d}function Lr(e,t,n){var r=null==(e=To(e,t=vi(t,e)))?e:e[Wo(Jo(t))];return null==r?i:vt(r,e,n)}function Rr(e){return ns(e)&&xr(e)==g}function Ir(e,t,n,r,o){return e===t||(null==e||null==t||!ns(e)&&!ns(t)?e!=e&&t!=t:function(e,t,n,r,o,a){var s=Ga(e),l=Ga(t),u=s?m:ho(e),c=l?m:ho(t),d=(u=u==g?x:u)==x,f=(c=c==g?x:c)==x,h=u==c;if(h&&Ka(e)){if(!Ka(t))return!1;s=!0,d=!1}if(h&&!d)return a||(a=new Yn),s||cs(e)?Xi(e,t,n,r,o,a):function(e,t,n,r,i,o,a){switch(n){case A:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case I:return!(e.byteLength!=t.byteLength||!o(new He(e),new He(t)));case v:case y:case C:return Ba(+e,+t);case w:return e.name==t.name&&e.message==t.message;case T:case O:return e==t+"";case S:var s=Xt;case k:var l=1&r;if(s||(s=nn),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var c=Xi(s(e),s(t),r,i,o,a);return a.delete(e),c;case L:if(Fn)return Fn.call(e)==Fn.call(t)}return!1}(e,t,u,n,r,o,a);if(!(1&n)){var p=d&&Me.call(e,"__wrapped__"),b=f&&Me.call(t,"__wrapped__");if(p||b){var _=p?e.value():e,E=b?t.value():t;return a||(a=new Yn),o(_,E,n,r,a)}}return!!h&&(a||(a=new Yn),function(e,t,n,r,o,a){var s=1&n,l=to(e),u=l.length;if(u!=to(t).length&&!s)return!1;for(var c=u;c--;){var d=l[c];if(!(s?d in t:Me.call(t,d)))return!1}var f=a.get(e),h=a.get(t);if(f&&h)return f==t&&h==e;var p=!0;a.set(e,t),a.set(t,e);for(var g=s;++c<u;){var m=e[d=l[c]],v=t[d];if(r)var y=s?r(v,m,d,t,e,a):r(m,v,d,e,t,a);if(!(y===i?m===v||o(m,v,n,r,a):y)){p=!1;break}g||(g="constructor"==d)}if(p&&!g){var w=e.constructor,b=t.constructor;w==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof b&&b instanceof b||(p=!1)}return a.delete(e),a.delete(t),p}(e,t,n,r,o,a))}(e,t,n,r,Ir,o))}function Ar(e,t,n,r){var o=n.length,a=o,s=!r;if(null==e)return!a;for(e=xe(e);o--;){var l=n[o];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<a;){var u=(l=n[o])[0],c=e[u],d=l[1];if(s&&l[2]){if(c===i&&!(u in e))return!1}else{var f=new Yn;if(r)var h=r(c,d,u,e,t,f);if(!(h===i?Ir(d,c,3,r,f):h))return!1}}return!0}function Mr(e){return!(!ts(e)||(t=e,Pe&&Pe in t))&&(Qa(e)?ze:ge).test(zo(e));var t}function Nr(e){return"function"==typeof e?e:null==e?il:"object"==typeof e?Ga(e)?zr(e[0],e[1]):Wr(e):hl(e)}function Pr(e){if(!So(e))return mn(e);var t=[];for(var n in xe(e))Me.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Dr(e,t){return e<t}function Fr(e,t){var n=-1,i=qa(e)?r(e.length):[];return dr(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function Wr(e){var t=lo(e);return 1==t.length&&t[0][2]?xo(t[0][0],t[0][1]):function(n){return n===e||Ar(n,e,t)}}function zr(e,t){return wo(e)&&Co(t)?xo(Wo(e),t):function(n){var r=ks(n,e);return r===i&&r===t?Os(n,e):Ir(t,r,3)}}function jr(e,t,n,r,o){e!==t&&vr(t,(function(a,s){if(o||(o=new Yn),ts(a))!function(e,t,n,r,o,a,s){var l=Oo(e,n),u=Oo(t,n),c=s.get(u);if(c)Xn(e,n,c);else{var d=a?a(l,u,n+"",e,t,s):i,f=d===i;if(f){var h=Ga(u),p=!h&&Ka(u),g=!h&&!p&&cs(u);d=u,h||p||g?Ga(l)?d=l:Ya(l)?d=ki(l):p?(f=!1,d=_i(u,!0)):g?(f=!1,d=Ci(u,!0)):d=[]:os(u)||Va(u)?(d=l,Va(l)?d=ys(l):ts(l)&&!Qa(l)||(d=go(u))):f=!1}f&&(s.set(u,d),o(d,u,r,a,s),s.delete(u)),Xn(e,n,d)}}(e,t,s,n,jr,r,o);else{var l=r?r(Oo(e,s),a,s+"",e,t,o):i;l===i&&(l=a),Xn(e,s,l)}}),Ms)}function Br(e,t){var n=e.length;if(n)return vo(t+=t<0?n:0,n)?e[t]:i}function Hr(e,t,n){t=t.length?Et(t,(function(e){return Ga(e)?function(t){return Sr(t,1===e.length?e[0]:e)}:e})):[il];var r=-1;return t=Et(t,Ut(ao())),function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=xi(i[r],o[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(Fr(e,(function(e,n,i){return{criteria:Et(t,(function(t){return t(e)})),index:++r,value:e}})))}function Ur(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=Sr(e,a);n(s,a)&&Jr(o,vi(a,e),s)}return o}function Vr(e,t,n,r){var i=r?Nt:Mt,o=-1,a=t.length,s=e;for(e===t&&(t=ki(t)),n&&(s=Et(e,Ut(n)));++o<a;)for(var l=0,u=t[o],c=n?n(u):u;(l=i(s,c,l,r))>-1;)s!==e&&rt.call(s,l,1),rt.call(e,l,1);return e}function Gr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;vo(i)?rt.call(e,i,1):ui(e,i)}}return e}function $r(e,t){return e+dn(_n()*(t-e+1))}function qr(e,t){var n="";if(!e||t<1||t>d)return n;do{t%2&&(n+=e),(t=dn(t/2))&&(e+=e)}while(t);return n}function Yr(e,t){return Io(Eo(e,t,il),e+"")}function Kr(e){return Zn(Bs(e))}function Zr(e,t){var n=Bs(e);return No(n,ar(t,0,n.length))}function Jr(e,t,n,r){if(!ts(e))return e;for(var o=-1,a=(t=vi(t,e)).length,s=a-1,l=e;null!=l&&++o<a;){var u=Wo(t[o]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(o!=s){var d=l[u];(c=r?r(d,u,l):i)===i&&(c=ts(d)?d:vo(t[o+1])?[]:{})}er(l,u,c),l=l[u]}return e}var Qr=Ln?function(e,t){return Ln.set(e,t),e}:il,Xr=ut?function(e,t){return ut(e,"toString",{configurable:!0,enumerable:!1,value:tl(t),writable:!0})}:il;function ei(e){return No(Bs(e))}function ti(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i<o;)a[i]=e[i+t];return a}function ni(e,t){var n;return dr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function ri(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!us(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return ii(e,t,il,n)}function ii(e,t,n,r){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,l=null===t,u=us(t),c=t===i;o<a;){var d=dn((o+a)/2),f=n(e[d]),h=f!==i,p=null===f,g=f==f,m=us(f);if(s)var v=r||g;else v=c?g&&(r||h):l?g&&h&&(r||!p):u?g&&h&&!p&&(r||!m):!p&&!m&&(r?f<=t:f<t);v?o=d+1:a=d}return yn(a,4294967294)}function oi(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Ba(s,l)){var l=s;o[i++]=0===a?0:a}}return o}function ai(e){return"number"==typeof e?e:us(e)?f:+e}function si(e){if("string"==typeof e)return e;if(Ga(e))return Et(e,si)+"";if(us(e))return Wn?Wn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function li(e,t,n){var r=-1,i=Ct,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=xt;else if(o>=200){var u=t?null:qi(e);if(u)return nn(u);a=!1,i=Gt,l=new qn}else l=t?[]:s;e:for(;++r<o;){var c=e[r],d=t?t(c):c;if(c=n||0!==c?c:0,a&&d==d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(c)}else i(l,d,n)||(l!==s&&l.push(d),s.push(c))}return s}function ui(e,t){return null==(e=To(e,t=vi(t,e)))||delete e[Wo(Jo(t))]}function ci(e,t,n,r){return Jr(e,t,n(Sr(e,t)),r)}function di(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ti(e,r?0:o,r?o+1:i):ti(e,r?o+1:0,r?i:o)}function fi(e,t){var n=e;return n instanceof Un&&(n=n.value()),kt(t,(function(e,t){return t.func.apply(t.thisArg,Tt([e],t.args))}),n)}function hi(e,t,n){var i=e.length;if(i<2)return i?li(e[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=e[o],l=-1;++l<i;)l!=o&&(a[o]=cr(a[o]||s,e[l],t,n));return li(mr(a,1),t,n)}function pi(e,t,n){for(var r=-1,o=e.length,a=t.length,s={};++r<o;){var l=r<a?t[r]:i;n(s,e[r],l)}return s}function gi(e){return Ya(e)?e:[]}function mi(e){return"function"==typeof e?e:il}function vi(e,t){return Ga(e)?e:wo(e,t)?[e]:Fo(ws(e))}var yi=Yr;function wi(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ti(e,t,n)}var bi=ct||function(e){return ot.clearTimeout(e)};function _i(e,t){if(t)return e.slice();var n=e.length,r=Ue?Ue(n):new e.constructor(n);return e.copy(r),r}function Si(e){var t=new e.constructor(e.byteLength);return new He(t).set(new He(e)),t}function Ci(e,t){var n=t?Si(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function xi(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,a=us(e),s=t!==i,l=null===t,u=t==t,c=us(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||r&&s&&u||!n&&u||!o)return 1;if(!r&&!a&&!c&&e<t||c&&n&&o&&!r&&!a||l&&n&&o||!s&&o||!u)return-1}return 0}function Ei(e,t,n,i){for(var o=-1,a=e.length,s=n.length,l=-1,u=t.length,c=vn(a-s,0),d=r(u+c),f=!i;++l<u;)d[l]=t[l];for(;++o<s;)(f||o<a)&&(d[n[o]]=e[o]);for(;c--;)d[l++]=e[o++];return d}function Ti(e,t,n,i){for(var o=-1,a=e.length,s=-1,l=n.length,u=-1,c=t.length,d=vn(a-l,0),f=r(d+c),h=!i;++o<d;)f[o]=e[o];for(var p=o;++u<c;)f[p+u]=t[u];for(;++s<l;)(h||o<a)&&(f[p+n[s]]=e[o++]);return f}function ki(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function Oi(e,t,n,r){var o=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],u=r?r(n[l],e[l],l,n,e):i;u===i&&(u=e[l]),o?ir(n,l,u):er(n,l,u)}return n}function Li(e,t){return function(n,r){var i=Ga(n)?yt:nr,o=t?t():{};return i(n,e,ao(r,2),o)}}function Ri(e){return Yr((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&yo(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=xe(t);++r<o;){var l=n[r];l&&e(t,l,r,a)}return t}))}function Ii(e,t){return function(n,r){if(null==n)return n;if(!qa(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=xe(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Ai(e){return function(t,n,r){for(var i=-1,o=xe(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}function Mi(e){return function(t){var n=Qt(t=ws(t))?an(t):i,r=n?n[0]:t.charAt(0),o=n?wi(n,1).join(""):t.slice(1);return r[e]()+o}}function Ni(e){return function(t){return kt(Qs(Vs(t).replace(Ve,"")),e,"")}}function Pi(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=jn(e.prototype),r=e.apply(n,t);return ts(r)?r:n}}function Di(e){return function(t,n,r){var o=xe(t);if(!qa(t)){var a=ao(n,3);t=As(t),n=function(e){return a(o[e],e,o)}}var s=e(t,n,r);return s>-1?o[a?t[s]:s]:i}}function Fi(e){return eo((function(t){var n=t.length,r=n,a=Hn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new ke(o);if(a&&!l&&"wrapper"==io(s))var l=new Hn([],!0)}for(r=l?r:n;++r<n;){var u=io(s=t[r]),c="wrapper"==u?ro(s):i;l=c&&bo(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[io(c[0])].apply(l,c[3]):1==s.length&&bo(s)?l[u]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&Ga(r))return l.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function Wi(e,t,n,o,a,s,l,c,d,f){var h=t&u,p=1&t,g=2&t,m=24&t,v=512&t,y=g?i:Pi(e);return function i(){for(var u=arguments.length,w=r(u),b=u;b--;)w[b]=arguments[b];if(m)var _=oo(i),S=Yt(w,_);if(o&&(w=Ei(w,o,a,m)),s&&(w=Ti(w,s,l,m)),u-=S,m&&u<f){var C=tn(w,_);return Gi(e,t,Wi,i.placeholder,n,w,C,c,d,f-u)}var x=p?n:this,E=g?x[e]:e;return u=w.length,c?w=ko(w,c):v&&u>1&&w.reverse(),h&&d<u&&(w.length=d),this&&this!==ot&&this instanceof i&&(E=y||Pi(E)),E.apply(x,w)}}function zi(e,t){return function(n,r){return function(e,t,n,r){return wr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function ji(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=si(n),r=si(r)):(n=ai(n),r=ai(r)),o=e(n,r)}return o}}function Bi(e){return eo((function(t){return t=Et(t,Ut(ao())),Yr((function(n){var r=this;return e(t,(function(e){return vt(e,r,n)}))}))}))}function Hi(e,t){var n=(t=t===i?" ":si(t)).length;if(n<2)return n?qr(t,e):t;var r=qr(t,cn(e/on(t)));return Qt(t)?wi(an(r),0,e).join(""):r.slice(0,e)}function Ui(e){return function(t,n,o){return o&&"number"!=typeof o&&yo(t,n,o)&&(n=o=i),t=ps(t),n===i?(n=t,t=0):n=ps(n),function(e,t,n,i){for(var o=-1,a=vn(cn((t-e)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=e,e+=n;return s}(t,n,o=o===i?t<n?1:-1:ps(o),e)}}function Vi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=vs(t),n=vs(n)),e(t,n)}}function Gi(e,t,n,r,o,a,s,u,c,d){var f=8&t;t|=f?l:64,4&(t&=~(f?64:l))||(t&=-4);var h=[e,t,o,f?a:i,f?s:i,f?i:a,f?i:s,u,c,d],p=n.apply(i,h);return bo(e)&&Lo(p,h),p.placeholder=r,Ao(p,e,t)}function $i(e){var t=Ce[e];return function(e,n){if(e=vs(e),(n=null==n?0:yn(gs(n),292))&&pn(e)){var r=(ws(e)+"e").split("e");return+((r=(ws(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var qi=Tn&&1/nn(new Tn([,-0]))[1]==c?function(e){return new Tn(e)}:ul;function Yi(e){return function(t){var n=ho(t);return n==S?Xt(t):n==k?rn(t):function(e,t){return Et(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Ki(e,t,n,a,c,d,f,h){var p=2&t;if(!p&&"function"!=typeof e)throw new ke(o);var g=a?a.length:0;if(g||(t&=-97,a=c=i),f=f===i?f:vn(gs(f),0),h=h===i?h:gs(h),g-=c?c.length:0,64&t){var m=a,v=c;a=c=i}var y=p?i:ro(e),w=[e,t,n,a,c,m,v,d,f,h];if(y&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,a=r==u&&8==n||r==u&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!a)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?Ei(c,l,t[4]):l,e[4]=c?tn(e[3],s):t[4]}(l=t[5])&&(c=e[5],e[5]=c?Ti(c,l,t[6]):l,e[6]=c?tn(e[5],s):t[6]),(l=t[7])&&(e[7]=l),r&u&&(e[8]=null==e[8]?t[8]:yn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(w,y),e=w[0],t=w[1],n=w[2],a=w[3],c=w[4],!(h=w[9]=w[9]===i?p?0:e.length:vn(w[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)b=8==t||16==t?function(e,t,n){var o=Pi(e);return function a(){for(var s=arguments.length,l=r(s),u=s,c=oo(a);u--;)l[u]=arguments[u];var d=s<3&&l[0]!==c&&l[s-1]!==c?[]:tn(l,c);return(s-=d.length)<n?Gi(e,t,Wi,a.placeholder,i,l,d,i,i,n-s):vt(this&&this!==ot&&this instanceof a?o:e,this,l)}}(e,t,h):t!=l&&33!=t||c.length?Wi.apply(i,w):function(e,t,n,i){var o=1&t,a=Pi(e);return function t(){for(var s=-1,l=arguments.length,u=-1,c=i.length,d=r(c+l),f=this&&this!==ot&&this instanceof t?a:e;++u<c;)d[u]=i[u];for(;l--;)d[u++]=arguments[++s];return vt(f,o?n:this,d)}}(e,t,n,a);else var b=function(e,t,n){var r=1&t,i=Pi(e);return function t(){return(this&&this!==ot&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return Ao((y?Qr:Lo)(b,w),e,t)}function Zi(e,t,n,r){return e===i||Ba(e,Re[n])&&!Me.call(r,n)?t:e}function Ji(e,t,n,r,o,a){return ts(e)&&ts(t)&&(a.set(t,e),jr(e,t,i,Ji,a),a.delete(t)),e}function Qi(e){return os(e)?i:e}function Xi(e,t,n,r,o,a){var s=1&n,l=e.length,u=t.length;if(l!=u&&!(s&&u>l))return!1;var c=a.get(e),d=a.get(t);if(c&&d)return c==t&&d==e;var f=-1,h=!0,p=2&n?new qn:i;for(a.set(e,t),a.set(t,e);++f<l;){var g=e[f],m=t[f];if(r)var v=s?r(m,g,f,t,e,a):r(g,m,f,e,t,a);if(v!==i){if(v)continue;h=!1;break}if(p){if(!Lt(t,(function(e,t){if(!Gt(p,t)&&(g===e||o(g,e,n,r,a)))return p.push(t)}))){h=!1;break}}else if(g!==m&&!o(g,m,n,r,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function eo(e){return Io(Eo(e,i,$o),e+"")}function to(e){return Cr(e,As,co)}function no(e){return Cr(e,Ms,fo)}var ro=Ln?function(e){return Ln.get(e)}:ul;function io(e){for(var t=e.name+"",n=Rn[t],r=Me.call(Rn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function oo(e){return(Me.call(zn,"placeholder")?zn:e).placeholder}function ao(){var e=zn.iteratee||ol;return e=e===ol?Nr:e,arguments.length?e(arguments[0],arguments[1]):e}function so(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function lo(e){for(var t=As(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Co(i)]}return t}function uo(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Mr(n)?n:i}var co=fn?function(e){return null==e?[]:(e=xe(e),St(fn(e),(function(t){return et.call(e,t)})))}:ml,fo=fn?function(e){for(var t=[];e;)Tt(t,co(e)),e=$e(e);return t}:ml,ho=xr;function po(e,t,n){for(var r=-1,i=(t=vi(t,e)).length,o=!1;++r<i;){var a=Wo(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&es(i)&&vo(a,i)&&(Ga(e)||Va(e))}function go(e){return"function"!=typeof e.constructor||So(e)?{}:jn($e(e))}function mo(e){return Ga(e)||Va(e)||!!(it&&e&&e[it])}function vo(e,t){var n=typeof e;return!!(t=null==t?d:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function yo(e,t,n){if(!ts(n))return!1;var r=typeof t;return!!("number"==r?qa(n)&&vo(t,n.length):"string"==r&&t in n)&&Ba(n[t],e)}function wo(e,t){if(Ga(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!us(e))||X.test(e)||!Q.test(e)||null!=t&&e in xe(t)}function bo(e){var t=io(e),n=zn[t];if("function"!=typeof n||!(t in Un.prototype))return!1;if(e===n)return!0;var r=ro(n);return!!r&&e===r[0]}(Cn&&ho(new Cn(new ArrayBuffer(1)))!=A||xn&&ho(new xn)!=S||En&&ho(En.resolve())!=E||Tn&&ho(new Tn)!=k||kn&&ho(new kn)!=R)&&(ho=function(e){var t=xr(e),n=t==x?e.constructor:i,r=n?zo(n):"";if(r)switch(r){case In:return A;case An:return S;case Mn:return E;case Nn:return k;case Pn:return R}return t});var _o=Ie?Qa:vl;function So(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Re)}function Co(e){return e==e&&!ts(e)}function xo(e,t){return function(n){return null!=n&&n[e]===t&&(t!==i||e in xe(n))}}function Eo(e,t,n){return t=vn(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=vn(i.length-t,0),s=r(a);++o<a;)s[o]=i[t+o];o=-1;for(var l=r(t+1);++o<t;)l[o]=i[o];return l[t]=n(s),vt(e,this,l)}}function To(e,t){return t.length<2?e:Sr(e,ti(t,0,-1))}function ko(e,t){for(var n=e.length,r=yn(t.length,n),o=ki(e);r--;){var a=t[r];e[r]=vo(a,n)?o[a]:i}return e}function Oo(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Lo=Mo(Qr),Ro=Wt||function(e,t){return ot.setTimeout(e,t)},Io=Mo(Xr);function Ao(e,t,n){var r=t+"";return Io(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(oe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return wt(p,(function(n){var r="_."+n[0];t&n[1]&&!Ct(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function Mo(e){var t=0,n=0;return function(){var r=wn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function No(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var a=$r(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Po,Do,Fo=(Po=Pa((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,i){t.push(r?i.replace(ce,"$1"):n||e)})),t}),(function(e){return 500===Do.size&&Do.clear(),e})),Do=Po.cache,Po);function Wo(e){if("string"==typeof e||us(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function zo(e){if(null!=e){try{return Ae.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function jo(e){if(e instanceof Un)return e.clone();var t=new Hn(e.__wrapped__,e.__chain__);return t.__actions__=ki(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Bo=Yr((function(e,t){return Ya(e)?cr(e,mr(t,1,Ya,!0)):[]})),Ho=Yr((function(e,t){var n=Jo(t);return Ya(n)&&(n=i),Ya(e)?cr(e,mr(t,1,Ya,!0),ao(n,2)):[]})),Uo=Yr((function(e,t){var n=Jo(t);return Ya(n)&&(n=i),Ya(e)?cr(e,mr(t,1,Ya,!0),i,n):[]}));function Vo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:gs(n);return i<0&&(i=vn(r+i,0)),At(e,ao(t,3),i)}function Go(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=gs(n),o=n<0?vn(r+o,0):yn(o,r-1)),At(e,ao(t,3),o,!0)}function $o(e){return null!=e&&e.length?mr(e,1):[]}function qo(e){return e&&e.length?e[0]:i}var Yo=Yr((function(e){var t=Et(e,gi);return t.length&&t[0]===e[0]?Or(t):[]})),Ko=Yr((function(e){var t=Jo(e),n=Et(e,gi);return t===Jo(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Or(n,ao(t,2)):[]})),Zo=Yr((function(e){var t=Jo(e),n=Et(e,gi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Or(n,i,t):[]}));function Jo(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Qo=Yr(Xo);function Xo(e,t){return e&&e.length&&t&&t.length?Vr(e,t):e}var ea=eo((function(e,t){var n=null==e?0:e.length,r=or(e,t);return Gr(e,Et(t,(function(e){return vo(e,n)?+e:e})).sort(xi)),r}));function ta(e){return null==e?e:Sn.call(e)}var na=Yr((function(e){return li(mr(e,1,Ya,!0))})),ra=Yr((function(e){var t=Jo(e);return Ya(t)&&(t=i),li(mr(e,1,Ya,!0),ao(t,2))})),ia=Yr((function(e){var t=Jo(e);return t="function"==typeof t?t:i,li(mr(e,1,Ya,!0),i,t)}));function oa(e){if(!e||!e.length)return[];var t=0;return e=St(e,(function(e){if(Ya(e))return t=vn(e.length,t),!0})),Bt(t,(function(t){return Et(e,Ft(t))}))}function aa(e,t){if(!e||!e.length)return[];var n=oa(e);return null==t?n:Et(n,(function(e){return vt(t,i,e)}))}var sa=Yr((function(e,t){return Ya(e)?cr(e,t):[]})),la=Yr((function(e){return hi(St(e,Ya))})),ua=Yr((function(e){var t=Jo(e);return Ya(t)&&(t=i),hi(St(e,Ya),ao(t,2))})),ca=Yr((function(e){var t=Jo(e);return t="function"==typeof t?t:i,hi(St(e,Ya),i,t)})),da=Yr(oa),fa=Yr((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,aa(e,n)}));function ha(e){var t=zn(e);return t.__chain__=!0,t}function pa(e,t){return t(e)}var ga=eo((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return or(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Un&&vo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:pa,args:[o],thisArg:i}),new Hn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)})),ma=Li((function(e,t,n){Me.call(e,n)?++e[n]:ir(e,n,1)})),va=Di(Vo),ya=Di(Go);function wa(e,t){return(Ga(e)?wt:dr)(e,ao(t,3))}function ba(e,t){return(Ga(e)?bt:fr)(e,ao(t,3))}var _a=Li((function(e,t,n){Me.call(e,n)?e[n].push(t):ir(e,n,[t])})),Sa=Yr((function(e,t,n){var i=-1,o="function"==typeof t,a=qa(e)?r(e.length):[];return dr(e,(function(e){a[++i]=o?vt(t,e,n):Lr(e,t,n)})),a})),Ca=Li((function(e,t,n){ir(e,n,t)}));function xa(e,t){return(Ga(e)?Et:Fr)(e,ao(t,3))}var Ea=Li((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Ta=Yr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&yo(e,t[0],t[1])?t=[]:n>2&&yo(t[0],t[1],t[2])&&(t=[t[0]]),Hr(e,mr(t,1),[])})),ka=Rt||function(){return ot.Date.now()};function Oa(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Ki(e,u,i,i,i,i,t)}function La(e,t){var n;if("function"!=typeof t)throw new ke(o);return e=gs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Ra=Yr((function(e,t,n){var r=1;if(n.length){var i=tn(n,oo(Ra));r|=l}return Ki(e,r,t,n,i)})),Ia=Yr((function(e,t,n){var r=3;if(n.length){var i=tn(n,oo(Ia));r|=l}return Ki(t,r,e,n,i)}));function Aa(e,t,n){var r,a,s,l,u,c,d=0,f=!1,h=!1,p=!0;if("function"!=typeof e)throw new ke(o);function g(t){var n=r,o=a;return r=a=i,d=t,l=e.apply(o,n)}function m(e){return d=e,u=Ro(y,t),f?g(e):l}function v(e){var n=e-c;return c===i||n>=t||n<0||h&&e-d>=s}function y(){var e=ka();if(v(e))return w(e);u=Ro(y,function(e){var n=t-(e-c);return h?yn(n,s-(e-d)):n}(e))}function w(e){return u=i,p&&r?g(e):(r=a=i,l)}function b(){var e=ka(),n=v(e);if(r=arguments,a=this,c=e,n){if(u===i)return m(c);if(h)return bi(u),u=Ro(y,t),g(c)}return u===i&&(u=Ro(y,t)),l}return t=vs(t)||0,ts(n)&&(f=!!n.leading,s=(h="maxWait"in n)?vn(vs(n.maxWait)||0,t):s,p="trailing"in n?!!n.trailing:p),b.cancel=function(){u!==i&&bi(u),d=0,r=c=a=u=i},b.flush=function(){return u===i?l:w(ka())},b}var Ma=Yr((function(e,t){return ur(e,1,t)})),Na=Yr((function(e,t,n){return ur(e,vs(t)||0,n)}));function Pa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ke(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Pa.Cache||$n),n}function Da(e){if("function"!=typeof e)throw new ke(o);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)}}Pa.Cache=$n;var Fa=yi((function(e,t){var n=(t=1==t.length&&Ga(t[0])?Et(t[0],Ut(ao())):Et(mr(t,1),Ut(ao()))).length;return Yr((function(r){for(var i=-1,o=yn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return vt(e,this,r)}))})),Wa=Yr((function(e,t){var n=tn(t,oo(Wa));return Ki(e,l,i,t,n)})),za=Yr((function(e,t){var n=tn(t,oo(za));return Ki(e,64,i,t,n)})),ja=eo((function(e,t){return Ki(e,256,i,i,i,t)}));function Ba(e,t){return e===t||e!=e&&t!=t}var Ha=Vi(Er),Ua=Vi((function(e,t){return e>=t})),Va=Rr(function(){return arguments}())?Rr:function(e){return ns(e)&&Me.call(e,"callee")&&!et.call(e,"callee")},Ga=r.isArray,$a=dt?Ut(dt):function(e){return ns(e)&&xr(e)==I};function qa(e){return null!=e&&es(e.length)&&!Qa(e)}function Ya(e){return ns(e)&&qa(e)}var Ka=hn||vl,Za=ft?Ut(ft):function(e){return ns(e)&&xr(e)==y};function Ja(e){if(!ns(e))return!1;var t=xr(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!os(e)}function Qa(e){if(!ts(e))return!1;var t=xr(e);return t==b||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xa(e){return"number"==typeof e&&e==gs(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ns(e){return null!=e&&"object"==typeof e}var rs=ht?Ut(ht):function(e){return ns(e)&&ho(e)==S};function is(e){return"number"==typeof e||ns(e)&&xr(e)==C}function os(e){if(!ns(e)||xr(e)!=x)return!1;var t=$e(e);if(null===t)return!0;var n=Me.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ae.call(n)==Fe}var as=pt?Ut(pt):function(e){return ns(e)&&xr(e)==T},ss=gt?Ut(gt):function(e){return ns(e)&&ho(e)==k};function ls(e){return"string"==typeof e||!Ga(e)&&ns(e)&&xr(e)==O}function us(e){return"symbol"==typeof e||ns(e)&&xr(e)==L}var cs=mt?Ut(mt):function(e){return ns(e)&&es(e.length)&&!!Qe[xr(e)]},ds=Vi(Dr),fs=Vi((function(e,t){return e<=t}));function hs(e){if(!e)return[];if(qa(e))return ls(e)?an(e):ki(e);if(at&&e[at])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[at]());var t=ho(e);return(t==S?Xt:t==k?nn:Bs)(e)}function ps(e){return e?(e=vs(e))===c||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function gs(e){var t=ps(e),n=t%1;return t==t?n?t-n:t:0}function ms(e){return e?ar(gs(e),0,h):0}function vs(e){if("number"==typeof e)return e;if(us(e))return f;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Ht(e);var n=pe.test(e);return n||me.test(e)?nt(e.slice(2),n?2:8):he.test(e)?f:+e}function ys(e){return Oi(e,Ms(e))}function ws(e){return null==e?"":si(e)}var bs=Ri((function(e,t){if(So(t)||qa(t))Oi(t,As(t),e);else for(var n in t)Me.call(t,n)&&er(e,n,t[n])})),_s=Ri((function(e,t){Oi(t,Ms(t),e)})),Ss=Ri((function(e,t,n,r){Oi(t,Ms(t),e,r)})),Cs=Ri((function(e,t,n,r){Oi(t,As(t),e,r)})),xs=eo(or),Es=Yr((function(e,t){e=xe(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&yo(t[0],t[1],o)&&(r=1);++n<r;)for(var a=t[n],s=Ms(a),l=-1,u=s.length;++l<u;){var c=s[l],d=e[c];(d===i||Ba(d,Re[c])&&!Me.call(e,c))&&(e[c]=a[c])}return e})),Ts=Yr((function(e){return e.push(i,Ji),vt(Ps,i,e)}));function ks(e,t,n){var r=null==e?i:Sr(e,t);return r===i?n:r}function Os(e,t){return null!=e&&po(e,t,kr)}var Ls=zi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),e[t]=n}),tl(il)),Rs=zi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),Me.call(e,t)?e[t].push(n):e[t]=[n]}),ao),Is=Yr(Lr);function As(e){return qa(e)?Kn(e):Pr(e)}function Ms(e){return qa(e)?Kn(e,!0):function(e){if(!ts(e))return function(e){var t=[];if(null!=e)for(var n in xe(e))t.push(n);return t}(e);var t=So(e),n=[];for(var r in e)("constructor"!=r||!t&&Me.call(e,r))&&n.push(r);return n}(e)}var Ns=Ri((function(e,t,n){jr(e,t,n)})),Ps=Ri((function(e,t,n,r){jr(e,t,n,r)})),Ds=eo((function(e,t){var n={};if(null==e)return n;var r=!1;t=Et(t,(function(t){return t=vi(t,e),r||(r=t.length>1),t})),Oi(e,no(e),n),r&&(n=sr(n,7,Qi));for(var i=t.length;i--;)ui(n,t[i]);return n})),Fs=eo((function(e,t){return null==e?{}:function(e,t){return Ur(e,t,(function(t,n){return Os(e,n)}))}(e,t)}));function Ws(e,t){if(null==e)return{};var n=Et(no(e),(function(e){return[e]}));return t=ao(t),Ur(e,n,(function(e,n){return t(e,n[0])}))}var zs=Yi(As),js=Yi(Ms);function Bs(e){return null==e?[]:Vt(e,As(e))}var Hs=Ni((function(e,t,n){return t=t.toLowerCase(),e+(n?Us(t):t)}));function Us(e){return Js(ws(e).toLowerCase())}function Vs(e){return(e=ws(e))&&e.replace(ye,Kt).replace(Ge,"")}var Gs=Ni((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),$s=Ni((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),qs=Mi("toLowerCase"),Ys=Ni((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Ks=Ni((function(e,t,n){return e+(n?" ":"")+Js(t)})),Zs=Ni((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Js=Mi("toUpperCase");function Qs(e,t,n){return e=ws(e),(t=n?i:t)===i?function(e){return Ke.test(e)}(e)?function(e){return e.match(qe)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Xs=Yr((function(e,t){try{return vt(e,i,t)}catch(e){return Ja(e)?e:new _e(e)}})),el=eo((function(e,t){return wt(t,(function(t){t=Wo(t),ir(e,t,Ra(e[t],e))})),e}));function tl(e){return function(){return e}}var nl=Fi(),rl=Fi(!0);function il(e){return e}function ol(e){return Nr("function"==typeof e?e:sr(e,1))}var al=Yr((function(e,t){return function(n){return Lr(n,e,t)}})),sl=Yr((function(e,t){return function(n){return Lr(e,n,t)}}));function ll(e,t,n){var r=As(t),i=_r(t,r);null!=n||ts(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=_r(t,As(t)));var o=!(ts(n)&&"chain"in n&&!n.chain),a=Qa(e);return wt(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=ki(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Tt([this.value()],arguments))})})),e}function ul(){}var cl=Bi(Et),dl=Bi(_t),fl=Bi(Lt);function hl(e){return wo(e)?Ft(Wo(e)):function(e){return function(t){return Sr(t,e)}}(e)}var pl=Ui(),gl=Ui(!0);function ml(){return[]}function vl(){return!1}var yl,wl=ji((function(e,t){return e+t}),0),bl=$i("ceil"),_l=ji((function(e,t){return e/t}),1),Sl=$i("floor"),Cl=ji((function(e,t){return e*t}),1),xl=$i("round"),El=ji((function(e,t){return e-t}),0);return zn.after=function(e,t){if("function"!=typeof t)throw new ke(o);return e=gs(e),function(){if(--e<1)return t.apply(this,arguments)}},zn.ary=Oa,zn.assign=bs,zn.assignIn=_s,zn.assignInWith=Ss,zn.assignWith=Cs,zn.at=xs,zn.before=La,zn.bind=Ra,zn.bindAll=el,zn.bindKey=Ia,zn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ga(e)?e:[e]},zn.chain=ha,zn.chunk=function(e,t,n){t=(n?yo(e,t,n):t===i)?1:vn(gs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,l=r(cn(o/t));a<o;)l[s++]=ti(e,a,a+=t);return l},zn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},zn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Tt(Ga(n)?ki(n):[n],mr(t,1))},zn.cond=function(e){var t=null==e?0:e.length,n=ao();return e=t?Et(e,(function(e){if("function"!=typeof e[1])throw new ke(o);return[n(e[0]),e[1]]})):[],Yr((function(n){for(var r=-1;++r<t;){var i=e[r];if(vt(i[0],this,n))return vt(i[1],this,n)}}))},zn.conforms=function(e){return function(e){var t=As(e);return function(n){return lr(n,e,t)}}(sr(e,1))},zn.constant=tl,zn.countBy=ma,zn.create=function(e,t){var n=jn(e);return null==t?n:rr(n,t)},zn.curry=function e(t,n,r){var o=Ki(t,8,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},zn.curryRight=function e(t,n,r){var o=Ki(t,16,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},zn.debounce=Aa,zn.defaults=Es,zn.defaultsDeep=Ts,zn.defer=Ma,zn.delay=Na,zn.difference=Bo,zn.differenceBy=Ho,zn.differenceWith=Uo,zn.drop=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,(t=n||t===i?1:gs(t))<0?0:t,r):[]},zn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,0,(t=r-(t=n||t===i?1:gs(t)))<0?0:t):[]},zn.dropRightWhile=function(e,t){return e&&e.length?di(e,ao(t,3),!0,!0):[]},zn.dropWhile=function(e,t){return e&&e.length?di(e,ao(t,3),!0):[]},zn.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&yo(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=gs(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:gs(r))<0&&(r+=o),r=n>r?0:ms(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},zn.filter=function(e,t){return(Ga(e)?St:gr)(e,ao(t,3))},zn.flatMap=function(e,t){return mr(xa(e,t),1)},zn.flatMapDeep=function(e,t){return mr(xa(e,t),c)},zn.flatMapDepth=function(e,t,n){return n=n===i?1:gs(n),mr(xa(e,t),n)},zn.flatten=$o,zn.flattenDeep=function(e){return null!=e&&e.length?mr(e,c):[]},zn.flattenDepth=function(e,t){return null!=e&&e.length?mr(e,t=t===i?1:gs(t)):[]},zn.flip=function(e){return Ki(e,512)},zn.flow=nl,zn.flowRight=rl,zn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},zn.functions=function(e){return null==e?[]:_r(e,As(e))},zn.functionsIn=function(e){return null==e?[]:_r(e,Ms(e))},zn.groupBy=_a,zn.initial=function(e){return null!=e&&e.length?ti(e,0,-1):[]},zn.intersection=Yo,zn.intersectionBy=Ko,zn.intersectionWith=Zo,zn.invert=Ls,zn.invertBy=Rs,zn.invokeMap=Sa,zn.iteratee=ol,zn.keyBy=Ca,zn.keys=As,zn.keysIn=Ms,zn.map=xa,zn.mapKeys=function(e,t){var n={};return t=ao(t,3),wr(e,(function(e,r,i){ir(n,t(e,r,i),e)})),n},zn.mapValues=function(e,t){var n={};return t=ao(t,3),wr(e,(function(e,r,i){ir(n,r,t(e,r,i))})),n},zn.matches=function(e){return Wr(sr(e,1))},zn.matchesProperty=function(e,t){return zr(e,sr(t,1))},zn.memoize=Pa,zn.merge=Ns,zn.mergeWith=Ps,zn.method=al,zn.methodOf=sl,zn.mixin=ll,zn.negate=Da,zn.nthArg=function(e){return e=gs(e),Yr((function(t){return Br(t,e)}))},zn.omit=Ds,zn.omitBy=function(e,t){return Ws(e,Da(ao(t)))},zn.once=function(e){return La(2,e)},zn.orderBy=function(e,t,n,r){return null==e?[]:(Ga(t)||(t=null==t?[]:[t]),Ga(n=r?i:n)||(n=null==n?[]:[n]),Hr(e,t,n))},zn.over=cl,zn.overArgs=Fa,zn.overEvery=dl,zn.overSome=fl,zn.partial=Wa,zn.partialRight=za,zn.partition=Ea,zn.pick=Fs,zn.pickBy=Ws,zn.property=hl,zn.propertyOf=function(e){return function(t){return null==e?i:Sr(e,t)}},zn.pull=Qo,zn.pullAll=Xo,zn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Vr(e,t,ao(n,2)):e},zn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Vr(e,t,i,n):e},zn.pullAt=ea,zn.range=pl,zn.rangeRight=gl,zn.rearg=ja,zn.reject=function(e,t){return(Ga(e)?St:gr)(e,Da(ao(t,3)))},zn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=ao(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return Gr(e,i),n},zn.rest=function(e,t){if("function"!=typeof e)throw new ke(o);return Yr(e,t=t===i?t:gs(t))},zn.reverse=ta,zn.sampleSize=function(e,t,n){return t=(n?yo(e,t,n):t===i)?1:gs(t),(Ga(e)?Jn:Zr)(e,t)},zn.set=function(e,t,n){return null==e?e:Jr(e,t,n)},zn.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Jr(e,t,n,r)},zn.shuffle=function(e){return(Ga(e)?Qn:ei)(e)},zn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&yo(e,t,n)?(t=0,n=r):(t=null==t?0:gs(t),n=n===i?r:gs(n)),ti(e,t,n)):[]},zn.sortBy=Ta,zn.sortedUniq=function(e){return e&&e.length?oi(e):[]},zn.sortedUniqBy=function(e,t){return e&&e.length?oi(e,ao(t,2)):[]},zn.split=function(e,t,n){return n&&"number"!=typeof n&&yo(e,t,n)&&(t=n=i),(n=n===i?h:n>>>0)?(e=ws(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=si(t))&&Qt(e)?wi(an(e),0,n):e.split(t,n):[]},zn.spread=function(e,t){if("function"!=typeof e)throw new ke(o);return t=null==t?0:vn(gs(t),0),Yr((function(n){var r=n[t],i=wi(n,0,t);return r&&Tt(i,r),vt(e,this,i)}))},zn.tail=function(e){var t=null==e?0:e.length;return t?ti(e,1,t):[]},zn.take=function(e,t,n){return e&&e.length?ti(e,0,(t=n||t===i?1:gs(t))<0?0:t):[]},zn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,(t=r-(t=n||t===i?1:gs(t)))<0?0:t,r):[]},zn.takeRightWhile=function(e,t){return e&&e.length?di(e,ao(t,3),!1,!0):[]},zn.takeWhile=function(e,t){return e&&e.length?di(e,ao(t,3)):[]},zn.tap=function(e,t){return t(e),e},zn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new ke(o);return ts(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Aa(e,t,{leading:r,maxWait:t,trailing:i})},zn.thru=pa,zn.toArray=hs,zn.toPairs=zs,zn.toPairsIn=js,zn.toPath=function(e){return Ga(e)?Et(e,Wo):us(e)?[e]:ki(Fo(ws(e)))},zn.toPlainObject=ys,zn.transform=function(e,t,n){var r=Ga(e),i=r||Ka(e)||cs(e);if(t=ao(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:ts(e)&&Qa(o)?jn($e(e)):{}}return(i?wt:wr)(e,(function(e,r,i){return t(n,e,r,i)})),n},zn.unary=function(e){return Oa(e,1)},zn.union=na,zn.unionBy=ra,zn.unionWith=ia,zn.uniq=function(e){return e&&e.length?li(e):[]},zn.uniqBy=function(e,t){return e&&e.length?li(e,ao(t,2)):[]},zn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?li(e,i,t):[]},zn.unset=function(e,t){return null==e||ui(e,t)},zn.unzip=oa,zn.unzipWith=aa,zn.update=function(e,t,n){return null==e?e:ci(e,t,mi(n))},zn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:ci(e,t,mi(n),r)},zn.values=Bs,zn.valuesIn=function(e){return null==e?[]:Vt(e,Ms(e))},zn.without=sa,zn.words=Qs,zn.wrap=function(e,t){return Wa(mi(t),e)},zn.xor=la,zn.xorBy=ua,zn.xorWith=ca,zn.zip=da,zn.zipObject=function(e,t){return pi(e||[],t||[],er)},zn.zipObjectDeep=function(e,t){return pi(e||[],t||[],Jr)},zn.zipWith=fa,zn.entries=zs,zn.entriesIn=js,zn.extend=_s,zn.extendWith=Ss,ll(zn,zn),zn.add=wl,zn.attempt=Xs,zn.camelCase=Hs,zn.capitalize=Us,zn.ceil=bl,zn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=vs(n))==n?n:0),t!==i&&(t=(t=vs(t))==t?t:0),ar(vs(e),t,n)},zn.clone=function(e){return sr(e,4)},zn.cloneDeep=function(e){return sr(e,5)},zn.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:i)},zn.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:i)},zn.conformsTo=function(e,t){return null==t||lr(e,t,As(t))},zn.deburr=Vs,zn.defaultTo=function(e,t){return null==e||e!=e?t:e},zn.divide=_l,zn.endsWith=function(e,t,n){e=ws(e),t=si(t);var r=e.length,o=n=n===i?r:ar(gs(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},zn.eq=Ba,zn.escape=function(e){return(e=ws(e))&&Y.test(e)?e.replace($,Zt):e},zn.escapeRegExp=function(e){return(e=ws(e))&&ne.test(e)?e.replace(te,"\\$&"):e},zn.every=function(e,t,n){var r=Ga(e)?_t:hr;return n&&yo(e,t,n)&&(t=i),r(e,ao(t,3))},zn.find=va,zn.findIndex=Vo,zn.findKey=function(e,t){return It(e,ao(t,3),wr)},zn.findLast=ya,zn.findLastIndex=Go,zn.findLastKey=function(e,t){return It(e,ao(t,3),br)},zn.floor=Sl,zn.forEach=wa,zn.forEachRight=ba,zn.forIn=function(e,t){return null==e?e:vr(e,ao(t,3),Ms)},zn.forInRight=function(e,t){return null==e?e:yr(e,ao(t,3),Ms)},zn.forOwn=function(e,t){return e&&wr(e,ao(t,3))},zn.forOwnRight=function(e,t){return e&&br(e,ao(t,3))},zn.get=ks,zn.gt=Ha,zn.gte=Ua,zn.has=function(e,t){return null!=e&&po(e,t,Tr)},zn.hasIn=Os,zn.head=qo,zn.identity=il,zn.includes=function(e,t,n,r){e=qa(e)?e:Bs(e),n=n&&!r?gs(n):0;var i=e.length;return n<0&&(n=vn(i+n,0)),ls(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Mt(e,t,n)>-1},zn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:gs(n);return i<0&&(i=vn(r+i,0)),Mt(e,t,i)},zn.inRange=function(e,t,n){return t=ps(t),n===i?(n=t,t=0):n=ps(n),function(e,t,n){return e>=yn(t,n)&&e<vn(t,n)}(e=vs(e),t,n)},zn.invoke=Is,zn.isArguments=Va,zn.isArray=Ga,zn.isArrayBuffer=$a,zn.isArrayLike=qa,zn.isArrayLikeObject=Ya,zn.isBoolean=function(e){return!0===e||!1===e||ns(e)&&xr(e)==v},zn.isBuffer=Ka,zn.isDate=Za,zn.isElement=function(e){return ns(e)&&1===e.nodeType&&!os(e)},zn.isEmpty=function(e){if(null==e)return!0;if(qa(e)&&(Ga(e)||"string"==typeof e||"function"==typeof e.splice||Ka(e)||cs(e)||Va(e)))return!e.length;var t=ho(e);if(t==S||t==k)return!e.size;if(So(e))return!Pr(e).length;for(var n in e)if(Me.call(e,n))return!1;return!0},zn.isEqual=function(e,t){return Ir(e,t)},zn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Ir(e,t,i,n):!!r},zn.isError=Ja,zn.isFinite=function(e){return"number"==typeof e&&pn(e)},zn.isFunction=Qa,zn.isInteger=Xa,zn.isLength=es,zn.isMap=rs,zn.isMatch=function(e,t){return e===t||Ar(e,t,lo(t))},zn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Ar(e,t,lo(t),n)},zn.isNaN=function(e){return is(e)&&e!=+e},zn.isNative=function(e){if(_o(e))throw new _e("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Mr(e)},zn.isNil=function(e){return null==e},zn.isNull=function(e){return null===e},zn.isNumber=is,zn.isObject=ts,zn.isObjectLike=ns,zn.isPlainObject=os,zn.isRegExp=as,zn.isSafeInteger=function(e){return Xa(e)&&e>=-9007199254740991&&e<=d},zn.isSet=ss,zn.isString=ls,zn.isSymbol=us,zn.isTypedArray=cs,zn.isUndefined=function(e){return e===i},zn.isWeakMap=function(e){return ns(e)&&ho(e)==R},zn.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==xr(e)},zn.join=function(e,t){return null==e?"":gn.call(e,t)},zn.kebabCase=Gs,zn.last=Jo,zn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=gs(n))<0?vn(r+o,0):yn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):At(e,Pt,o,!0)},zn.lowerCase=$s,zn.lowerFirst=qs,zn.lt=ds,zn.lte=fs,zn.max=function(e){return e&&e.length?pr(e,il,Er):i},zn.maxBy=function(e,t){return e&&e.length?pr(e,ao(t,2),Er):i},zn.mean=function(e){return Dt(e,il)},zn.meanBy=function(e,t){return Dt(e,ao(t,2))},zn.min=function(e){return e&&e.length?pr(e,il,Dr):i},zn.minBy=function(e,t){return e&&e.length?pr(e,ao(t,2),Dr):i},zn.stubArray=ml,zn.stubFalse=vl,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=Cl,zn.nth=function(e,t){return e&&e.length?Br(e,gs(t)):i},zn.noConflict=function(){return ot._===this&&(ot._=We),this},zn.noop=ul,zn.now=ka,zn.pad=function(e,t,n){e=ws(e);var r=(t=gs(t))?on(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Hi(dn(i),n)+e+Hi(cn(i),n)},zn.padEnd=function(e,t,n){e=ws(e);var r=(t=gs(t))?on(e):0;return t&&r<t?e+Hi(t-r,n):e},zn.padStart=function(e,t,n){e=ws(e);var r=(t=gs(t))?on(e):0;return t&&r<t?Hi(t-r,n)+e:e},zn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),bn(ws(e).replace(re,""),t||0)},zn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&yo(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=ps(e),t===i?(t=e,e=0):t=ps(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=_n();return yn(e+o*(t-e+tt("1e-"+((o+"").length-1))),t)}return $r(e,t)},zn.reduce=function(e,t,n){var r=Ga(e)?kt:zt,i=arguments.length<3;return r(e,ao(t,4),n,i,dr)},zn.reduceRight=function(e,t,n){var r=Ga(e)?Ot:zt,i=arguments.length<3;return r(e,ao(t,4),n,i,fr)},zn.repeat=function(e,t,n){return t=(n?yo(e,t,n):t===i)?1:gs(t),qr(ws(e),t)},zn.replace=function(){var e=arguments,t=ws(e[0]);return e.length<3?t:t.replace(e[1],e[2])},zn.result=function(e,t,n){var r=-1,o=(t=vi(t,e)).length;for(o||(o=1,e=i);++r<o;){var a=null==e?i:e[Wo(t[r])];a===i&&(r=o,a=n),e=Qa(a)?a.call(e):a}return e},zn.round=xl,zn.runInContext=e,zn.sample=function(e){return(Ga(e)?Zn:Kr)(e)},zn.size=function(e){if(null==e)return 0;if(qa(e))return ls(e)?on(e):e.length;var t=ho(e);return t==S||t==k?e.size:Pr(e).length},zn.snakeCase=Ys,zn.some=function(e,t,n){var r=Ga(e)?Lt:ni;return n&&yo(e,t,n)&&(t=i),r(e,ao(t,3))},zn.sortedIndex=function(e,t){return ri(e,t)},zn.sortedIndexBy=function(e,t,n){return ii(e,t,ao(n,2))},zn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ri(e,t);if(r<n&&Ba(e[r],t))return r}return-1},zn.sortedLastIndex=function(e,t){return ri(e,t,!0)},zn.sortedLastIndexBy=function(e,t,n){return ii(e,t,ao(n,2),!0)},zn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ri(e,t,!0)-1;if(Ba(e[n],t))return n}return-1},zn.startCase=Ks,zn.startsWith=function(e,t,n){return e=ws(e),n=null==n?0:ar(gs(n),0,e.length),t=si(t),e.slice(n,n+t.length)==t},zn.subtract=El,zn.sum=function(e){return e&&e.length?jt(e,il):0},zn.sumBy=function(e,t){return e&&e.length?jt(e,ao(t,2)):0},zn.template=function(e,t,n){var r=zn.templateSettings;n&&yo(e,t,n)&&(t=i),e=ws(e),t=Ss({},t,r,Zi);var o,a,s=Ss({},t.imports,r.imports,Zi),l=As(s),u=Vt(s,l),c=0,d=t.interpolate||we,f="__p += '",h=Ee((t.escape||we).source+"|"+d.source+"|"+(d===J?de:we).source+"|"+(t.evaluate||we).source+"|$","g"),p="//# sourceURL="+(Me.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Je+"]")+"\n";e.replace(h,(function(t,n,r,i,s,l){return r||(r=i),f+=e.slice(c,l).replace(be,Jt),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),s&&(a=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=l+t.length,t})),f+="';\n";var g=Me.call(t,"variable")&&t.variable;if(g){if(ue.test(g))throw new _e("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(H,""):f).replace(U,"$1").replace(V,"$1;"),f="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m=Xs((function(){return Se(l,p+"return "+f).apply(i,u)}));if(m.source=f,Ja(m))throw m;return m},zn.times=function(e,t){if((e=gs(e))<1||e>d)return[];var n=h,r=yn(e,h);t=ao(t),e-=h;for(var i=Bt(r,t);++n<e;)t(n);return i},zn.toFinite=ps,zn.toInteger=gs,zn.toLength=ms,zn.toLower=function(e){return ws(e).toLowerCase()},zn.toNumber=vs,zn.toSafeInteger=function(e){return e?ar(gs(e),-9007199254740991,d):0===e?e:0},zn.toString=ws,zn.toUpper=function(e){return ws(e).toUpperCase()},zn.trim=function(e,t,n){if((e=ws(e))&&(n||t===i))return Ht(e);if(!e||!(t=si(t)))return e;var r=an(e),o=an(t);return wi(r,$t(r,o),qt(r,o)+1).join("")},zn.trimEnd=function(e,t,n){if((e=ws(e))&&(n||t===i))return e.slice(0,sn(e)+1);if(!e||!(t=si(t)))return e;var r=an(e);return wi(r,0,qt(r,an(t))+1).join("")},zn.trimStart=function(e,t,n){if((e=ws(e))&&(n||t===i))return e.replace(re,"");if(!e||!(t=si(t)))return e;var r=an(e);return wi(r,$t(r,an(t))).join("")},zn.truncate=function(e,t){var n=30,r="...";if(ts(t)){var o="separator"in t?t.separator:o;n="length"in t?gs(t.length):n,r="omission"in t?si(t.omission):r}var a=(e=ws(e)).length;if(Qt(e)){var s=an(e);a=s.length}if(n>=a)return e;var l=n-on(r);if(l<1)return r;var u=s?wi(s,0,l).join(""):e.slice(0,l);if(o===i)return u+r;if(s&&(l+=u.length-l),as(o)){if(e.slice(l).search(o)){var c,d=u;for(o.global||(o=Ee(o.source,ws(fe.exec(o))+"g")),o.lastIndex=0;c=o.exec(d);)var f=c.index;u=u.slice(0,f===i?l:f)}}else if(e.indexOf(si(o),l)!=l){var h=u.lastIndexOf(o);h>-1&&(u=u.slice(0,h))}return u+r},zn.unescape=function(e){return(e=ws(e))&&q.test(e)?e.replace(G,ln):e},zn.uniqueId=function(e){var t=++Ne;return ws(e)+t},zn.upperCase=Zs,zn.upperFirst=Js,zn.each=wa,zn.eachRight=ba,zn.first=qo,ll(zn,(yl={},wr(zn,(function(e,t){Me.call(zn.prototype,t)||(yl[t]=e)})),yl),{chain:!1}),zn.VERSION="4.17.21",wt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){zn[e].placeholder=zn})),wt(["drop","take"],(function(e,t){Un.prototype[e]=function(n){n=n===i?1:vn(gs(n),0);var r=this.__filtered__&&!t?new Un(this):this.clone();return r.__filtered__?r.__takeCount__=yn(n,r.__takeCount__):r.__views__.push({size:yn(n,h),type:e+(r.__dir__<0?"Right":"")}),r},Un.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),wt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Un.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ao(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),wt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Un.prototype[e]=function(){return this[n](1).value()[0]}})),wt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Un.prototype[e]=function(){return this.__filtered__?new Un(this):this[n](1)}})),Un.prototype.compact=function(){return this.filter(il)},Un.prototype.find=function(e){return this.filter(e).head()},Un.prototype.findLast=function(e){return this.reverse().find(e)},Un.prototype.invokeMap=Yr((function(e,t){return"function"==typeof e?new Un(this):this.map((function(n){return Lr(n,e,t)}))})),Un.prototype.reject=function(e){return this.filter(Da(ao(e)))},Un.prototype.slice=function(e,t){e=gs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Un(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=gs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Un.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Un.prototype.toArray=function(){return this.take(h)},wr(Un.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=zn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(zn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Un,u=s[0],c=l||Ga(t),d=function(e){var t=o.apply(zn,Tt([e],s));return r&&f?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var f=this.__chain__,h=!!this.__actions__.length,p=a&&!f,g=l&&!h;if(!a&&c){t=g?t:new Un(this);var m=e.apply(t,s);return m.__actions__.push({func:pa,args:[d],thisArg:i}),new Hn(m,f)}return p&&g?e.apply(this,s):(m=this.thru(d),p?r?m.value()[0]:m.value():m)})})),wt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Oe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);zn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ga(i)?i:[],e)}return this[n]((function(n){return t.apply(Ga(n)?n:[],e)}))}})),wr(Un.prototype,(function(e,t){var n=zn[t];if(n){var r=n.name+"";Me.call(Rn,r)||(Rn[r]=[]),Rn[r].push({name:t,func:n})}})),Rn[Wi(i,2).name]=[{name:"wrapper",func:i}],Un.prototype.clone=function(){var e=new Un(this.__wrapped__);return e.__actions__=ki(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ki(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ki(this.__views__),e},Un.prototype.reverse=function(){if(this.__filtered__){var e=new Un(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Un.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ga(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=yn(t,e+a);break;case"takeRight":e=vn(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,l=s-a,u=r?s:a-1,c=this.__iteratees__,d=c.length,f=0,h=yn(l,this.__takeCount__);if(!n||!r&&i==l&&h==l)return fi(e,this.__actions__);var p=[];e:for(;l--&&f<h;){for(var g=-1,m=e[u+=t];++g<d;){var v=c[g],y=v.iteratee,w=v.type,b=y(m);if(2==w)m=b;else if(!b){if(1==w)continue e;break e}}p[f++]=m}return p},zn.prototype.at=ga,zn.prototype.chain=function(){return ha(this)},zn.prototype.commit=function(){return new Hn(this.value(),this.__chain__)},zn.prototype.next=function(){this.__values__===i&&(this.__values__=hs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var t,n=this;n instanceof Bn;){var r=jo(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Un){var t=e;return this.__actions__.length&&(t=new Un(this)),(t=t.reverse()).__actions__.push({func:pa,args:[ta],thisArg:i}),new Hn(t,this.__chain__)}return this.thru(ta)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return fi(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,at&&(zn.prototype[at]=function(){return this}),zn}();ot._=un,(r=function(){return un}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},54883:(e,t,n)=>{var r=n(25835);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},98253:(e,t,n)=>{var r=n(158);e.exports=function(){return r.Date.now()}},75892:(e,t,n)=>{var r=n(11241),i=n(39169)((function(e,t){return null==e?{}:r(e,t)}));e.exports=i},59174:e=>{e.exports=function(){return[]}},30647:e=>{e.exports=function(){return!1}},38172:(e,t,n)=>{var r=n(76897),i=n(23619);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},95053:(e,t,n)=>{var r=n(12383),i=n(23619),o=n(81878),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):a.test(e)?NaN:+e}},33270:(e,t,n)=>{var r=n(80430);e.exports=function(e){return null==e?"":r(e)}},99813:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}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 a,s,l=i(e),u=1;u<arguments.length;u++){for(var c in a=Object(arguments[u]))n.call(a,c)&&(l[c]=a[c]);if(t){s=t(a);for(var d=0;d<s.length;d++)r.call(a,s[d])&&(l[s[d]]=a[s[d]])}}return l}},42169:(e,t,n)=>{"use strict";const r=n(14561);e.exports=e=>{if(!Number.isInteger(e)&&e!==1/0||!(e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");const t=new r;let n=0;const i=async(e,r,...i)=>{n++;const o=(async()=>e(...i))();r(o);try{await o}catch{}n--,t.size>0&&t.dequeue()()},o=(r,...o)=>new Promise((a=>{((r,o,...a)=>{t.enqueue(i.bind(null,r,o,...a)),(async()=>{await Promise.resolve(),n<e&&t.size>0&&t.dequeue()()})()})(r,a,...o)}));return Object.defineProperties(o,{activeCount:{get:()=>n},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),o}},88021:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(33034);class i extends Error{constructor(e){super(e),this.name="TimeoutError"}}class o{constructor(){Object.defineProperty(this,"_queue",{enumerable:!0,configurable:!0,writable:!0,value:[]})}enqueue(e,t){var n;const r={priority:(t={priority:0,...t}).priority,run:e};if(this.size&&(null===(n=this._queue[this.size-1])||void 0===n?void 0:n.priority)>=t.priority)return void this._queue.push(r);const i=function(e,t,n){let r=0,i=e.length;for(;i>0;){const n=Math.trunc(i/2);let a=r+n;o=e[a],t.priority-o.priority<=0?(r=++a,i-=n+1):i=n}var o;return r}(this._queue,r);this._queue.splice(i,0,r)}dequeue(){const e=this._queue.shift();return null==e?void 0:e.run}filter(e){return this._queue.filter((t=>t.priority===e.priority)).map((e=>e.run))}get size(){return this._queue.length}}const a=()=>{},s=new i;class l extends r{constructor(e){var t,n,r,i;if(super(),Object.defineProperty(this,"_carryoverConcurrencyCount",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isIntervalIgnored",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_intervalCount",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_intervalCap",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_interval",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_intervalEnd",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_intervalId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_timeoutId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_queue",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_queueClass",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_pendingCount",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_concurrency",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isPaused",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_resolveEmpty",{enumerable:!0,configurable:!0,writable:!0,value:a}),Object.defineProperty(this,"_resolveIdle",{enumerable:!0,configurable:!0,writable:!0,value:a}),Object.defineProperty(this,"_timeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_throwOnTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),!("number"==typeof(e={carryoverConcurrencyCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:o,...e}).intervalCap&&e.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${null!==(n=null===(t=e.intervalCap)||void 0===t?void 0:t.toString())&&void 0!==n?n:""}\` (${typeof e.intervalCap})`);if(void 0===e.interval||!(Number.isFinite(e.interval)&&e.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${null!==(i=null===(r=e.interval)||void 0===r?void 0:r.toString())&&void 0!==i?i:""}\` (${typeof e.interval})`);this._carryoverConcurrencyCount=e.carryoverConcurrencyCount,this._isIntervalIgnored=e.intervalCap===Number.POSITIVE_INFINITY||0===e.interval,this._intervalCap=e.intervalCap,this._interval=e.interval,this._queue=new e.queueClass,this._queueClass=e.queueClass,this.concurrency=e.concurrency,this._timeout=e.timeout,this._throwOnTimeout=!0===e.throwOnTimeout,this._isPaused=!1===e.autoStart}get _doesIntervalAllowAnother(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}get _doesConcurrentAllowAnother(){return this._pendingCount<this._concurrency}_next(){this._pendingCount--,this._tryToStartAnother(),this.emit("next")}_resolvePromises(){this._resolveEmpty(),this._resolveEmpty=a,0===this._pendingCount&&(this._resolveIdle(),this._resolveIdle=a,this.emit("idle"))}_onResumeInterval(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=void 0}_isIntervalPaused(){const e=Date.now();if(void 0===this._intervalId){const t=this._intervalEnd-e;if(!(t<0))return void 0===this._timeoutId&&(this._timeoutId=setTimeout((()=>{this._onResumeInterval()}),t)),!0;this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0}return!1}_tryToStartAnother(){if(0===this._queue.size)return this._intervalId&&clearInterval(this._intervalId),this._intervalId=void 0,this._resolvePromises(),!1;if(!this._isPaused){const e=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother){const t=this._queue.dequeue();return!!t&&(this.emit("active"),t(),e&&this._initializeIntervalIfNeeded(),!0)}}return!1}_initializeIntervalIfNeeded(){this._isIntervalIgnored||void 0!==this._intervalId||(this._intervalId=setInterval((()=>{this._onInterval()}),this._interval),this._intervalEnd=Date.now()+this._interval)}_onInterval(){0===this._intervalCount&&0===this._pendingCount&&this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0,this._processQueue()}_processQueue(){for(;this._tryToStartAnother(););}get concurrency(){return this._concurrency}set concurrency(e){if(!("number"==typeof e&&e>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${e}\` (${typeof e})`);this._concurrency=e,this._processQueue()}async add(e,t={}){return new Promise(((n,r)=>{this._queue.enqueue((async()=>{this._pendingCount++,this._intervalCount++;try{const i=void 0===this._timeout&&void 0===t.timeout?e():function(e,t,n,r){let i;const o=new Promise(((o,a)=>{if("number"!=typeof t||t<0)throw new TypeError("Expected `milliseconds` to be a positive number");t!==Number.POSITIVE_INFINITY?(r={customTimers:{setTimeout,clearTimeout},...r},i=r.customTimers.setTimeout.call(void 0,(()=>{try{o(n())}catch(e){a(e)}}),t),(async()=>{try{o(await e)}catch(e){a(e)}finally{r.customTimers.clearTimeout.call(void 0,i)}})()):o(e)}));return o.clear=()=>{clearTimeout(i),i=void 0},o}(Promise.resolve(e()),void 0===t.timeout?this._timeout:t.timeout,(()=>{(void 0===t.throwOnTimeout?this._throwOnTimeout:t.throwOnTimeout)&&r(s)})),o=await i;n(o),this.emit("completed",o)}catch(e){r(e),this.emit("error",e)}this._next()}),t),this._tryToStartAnother(),this.emit("add")}))}async addAll(e,t){return Promise.all(e.map((async e=>this.add(e,t))))}start(){return this._isPaused?(this._isPaused=!1,this._processQueue(),this):this}pause(){this._isPaused=!0}clear(){this._queue=new this._queueClass}async onEmpty(){if(0!==this._queue.size)return new Promise((e=>{const t=this._resolveEmpty;this._resolveEmpty=()=>{t(),e()}}))}async onSizeLessThan(e){if(!(this._queue.size<e))return new Promise((t=>{const n=()=>{this._queue.size<e&&(this.removeListener("next",n),t())};this.on("next",n)}))}async onIdle(){if(0!==this._pendingCount||0!==this._queue.size)return new Promise((e=>{const t=this._resolveIdle;this._resolveIdle=()=>{t(),e()}}))}get size(){return this._queue.size}sizeBy(e){return this._queue.filter(e).length}get pending(){return this._pendingCount}get isPaused(){return this._isPaused}get timeout(){return this._timeout}set timeout(e){this._timeout=e}}},5372:(e,t,n)=>{"use strict";var r=n(49567);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},2652:(e,t,n)=>{e.exports=n(5372)()},49567:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},57799:(e,t,n)=>{"use strict";var r=n(89526),i=n(99813),o=n(72851);function a(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."}if(!r)throw Error(a(227));var s=new Set,l={};function u(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(l[e]=t,e=0;e<t.length;e++)s.add(t[e])}var d=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h=Object.prototype.hasOwnProperty,p={},g={};function m(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function w(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=v.hasOwnProperty(t)?v[t]:null;(null!==i?0===i.type:!r&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!h.call(g,e)||!h.call(p,e)&&(f.test(e)?g[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,w);v[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,w);v[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,w);v[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var _=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=60103,C=60106,x=60107,E=60108,T=60114,k=60109,O=60110,L=60112,R=60113,I=60120,A=60115,M=60116,N=60121,P=60128,D=60129,F=60130,W=60131;if("function"==typeof Symbol&&Symbol.for){var z=Symbol.for;S=z("react.element"),C=z("react.portal"),x=z("react.fragment"),E=z("react.strict_mode"),T=z("react.profiler"),k=z("react.provider"),O=z("react.context"),L=z("react.forward_ref"),R=z("react.suspense"),I=z("react.suspense_list"),A=z("react.memo"),M=z("react.lazy"),N=z("react.block"),z("react.scope"),P=z("react.opaque.id"),D=z("react.debug_trace_mode"),F=z("react.offscreen"),W=z("react.legacy_hidden")}var j,B="function"==typeof Symbol&&Symbol.iterator;function H(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=B&&e[B]||e["@@iterator"])?e:null}function U(e){if(void 0===j)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);j=t&&t[1]||""}return"\n"+j+e}var V=!1;function G(e,t){if(!e||V)return"";V=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var i=e.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=s);break}}}finally{V=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?U(e):""}function $(e){switch(e.tag){case 5:return U(e.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return G(e.type,!1);case 11:return G(e.type.render,!1);case 22:return G(e.type._render,!1);case 1:return G(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case C:return"Portal";case T:return"Profiler";case E:return"StrictMode";case R:return"Suspense";case I:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case k:return(e._context.displayName||"Context")+".Provider";case L:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case A:return q(e.type);case N:return q(e._render);case M:t=e._payload,e=e._init;try{return q(e(t))}catch(e){}}return null}function Y(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Z(e){e._valueTracker||(e._valueTracker=function(e){var t=K(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function J(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function X(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Y(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=Y(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ie(e,t.type,n):t.hasOwnProperty("defaultValue")&&ie(e,t.type,Y(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ie(e,t,n){"number"===t&&Q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function oe(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Y(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Y(n)}}function ue(e,t){var n=Y(t.value),r=Y(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de="http://www.w3.org/1999/xhtml";function fe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?fe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var pe,ge,me=(ge=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((pe=pe||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=pe.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ge(e,t)}))}:ge);function ve(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},we=["Webkit","ms","Moz","O"];function be(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}function _e(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=be(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(ye).forEach((function(e){we.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ye[t]=ye[e]}))}));var Se=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ce(e,t){if(t){if(Se[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function xe(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Ee(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Te=null,ke=null,Oe=null;function Le(e){if(e=Xr(e)){if("function"!=typeof Te)throw Error(a(280));var t=e.stateNode;t&&(t=ti(t),Te(e.stateNode,e.type,t))}}function Re(e){ke?Oe?Oe.push(e):Oe=[e]:ke=e}function Ie(){if(ke){var e=ke,t=Oe;if(Oe=ke=null,Le(e),t)for(e=0;e<t.length;e++)Le(t[e])}}function Ae(e,t){return e(t)}function Me(e,t,n,r,i){return e(t,n,r,i)}function Ne(){}var Pe=Ae,De=!1,Fe=!1;function We(){null===ke&&null===Oe||(Ne(),Ie())}function ze(e,t){var n=e.stateNode;if(null===n)return null;var r=ti(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var je=!1;if(d)try{var Be={};Object.defineProperty(Be,"passive",{get:function(){je=!0}}),window.addEventListener("test",Be,Be),window.removeEventListener("test",Be,Be)}catch(ge){je=!1}function He(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Ue=!1,Ve=null,Ge=!1,$e=null,qe={onError:function(e){Ue=!0,Ve=e}};function Ye(e,t,n,r,i,o,a,s,l){Ue=!1,Ve=null,He.apply(qe,arguments)}function Ke(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ze(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Je(e){if(Ke(e)!==e)throw Error(a(188))}function Qe(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ke(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Je(i),e;if(o===r)return Je(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Xe(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,it=!1,ot=[],at=null,st=null,lt=null,ut=new Map,ct=new Map,dt=[],ft="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ht(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function pt(e,t){switch(e){case"focusin":case"focusout":at=null;break;case"dragenter":case"dragleave":st=null;break;case"mouseover":case"mouseout":lt=null;break;case"pointerover":case"pointerout":ut.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ct.delete(t.pointerId)}}function gt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=ht(t,n,r,i,o),null!==t&&null!==(t=Xr(t))&&tt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function mt(e){var t=Qr(e.target);if(null!==t){var n=Ke(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ze(n)))return e.blockedOn=t,void rt(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function vt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Xr(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function yt(e,t,n){vt(e)&&n.delete(t)}function wt(){for(it=!1;0<ot.length;){var e=ot[0];if(null!==e.blockedOn){null!==(e=Xr(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&ot.shift()}null!==at&&vt(at)&&(at=null),null!==st&&vt(st)&&(st=null),null!==lt&&vt(lt)&&(lt=null),ut.forEach(yt),ct.forEach(yt)}function bt(e,t){e.blockedOn===t&&(e.blockedOn=null,it||(it=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,wt)))}function _t(e){function t(t){return bt(t,e)}if(0<ot.length){bt(ot[0],e);for(var n=1;n<ot.length;n++){var r=ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==at&&bt(at,e),null!==st&&bt(st,e),null!==lt&&bt(lt,e),ut.forEach(t),ct.forEach(t),n=0;n<dt.length;n++)(r=dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)mt(n),null===n.blockedOn&&dt.shift()}function St(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ct={animationend:St("Animation","AnimationEnd"),animationiteration:St("Animation","AnimationIteration"),animationstart:St("Animation","AnimationStart"),transitionend:St("Transition","TransitionEnd")},xt={},Et={};function Tt(e){if(xt[e])return xt[e];if(!Ct[e])return e;var t,n=Ct[e];for(t in n)if(n.hasOwnProperty(t)&&t in Et)return xt[e]=n[t];return e}d&&(Et=document.createElement("div").style,"AnimationEvent"in window||(delete Ct.animationend.animation,delete Ct.animationiteration.animation,delete Ct.animationstart.animation),"TransitionEvent"in window||delete Ct.transitionend.transition);var kt=Tt("animationend"),Ot=Tt("animationiteration"),Lt=Tt("animationstart"),Rt=Tt("transitionend"),It=new Map,At=new Map,Mt=["abort","abort",kt,"animationEnd",Ot,"animationIteration",Lt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Rt,"transitionEnd","waiting","waiting"];function Nt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),At.set(r,t),It.set(r,i),u(i,[r])}}(0,o.unstable_now)();var Pt=8;function Dt(e){if(0!=(1&e))return Pt=15,1;if(0!=(2&e))return Pt=14,2;if(0!=(4&e))return Pt=13,4;var t=24&e;return 0!==t?(Pt=12,t):0!=(32&e)?(Pt=11,32):0!=(t=192&e)?(Pt=10,t):0!=(256&e)?(Pt=9,256):0!=(t=3584&e)?(Pt=8,t):0!=(4096&e)?(Pt=7,4096):0!=(t=4186112&e)?(Pt=6,t):0!=(t=62914560&e)?(Pt=5,t):67108864&e?(Pt=4,67108864):0!=(134217728&e)?(Pt=3,134217728):0!=(t=805306368&e)?(Pt=2,t):0!=(1073741824&e)?(Pt=1,1073741824):(Pt=8,e)}function Ft(e,t){var n=e.pendingLanes;if(0===n)return Pt=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(0!==o)r=o,i=Pt=15;else if(0!=(o=134217727&n)){var l=o&~a;0!==l?(r=Dt(l),i=Pt):0!=(s&=o)&&(r=Dt(s),i=Pt)}else 0!=(o=n&~a)?(r=Dt(o),i=Pt):0!==s&&(r=Dt(s),i=Pt);if(0===r)return 0;if(r=n&((0>(r=31-Ut(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&a)){if(Dt(t),i<=Pt)return t;Pt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-Ut(t)),r|=e[n],t&=~i;return r}function Wt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function zt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=jt(24&~t))?zt(10,t):e;case 10:return 0===(e=jt(192&~t))?zt(8,t):e;case 8:return 0===(e=jt(3584&~t))&&0===(e=jt(4186112&~t))&&(e=512),e;case 2:return 0===(t=jt(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function jt(e){return e&-e}function Bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ht(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ut(t)]=n}var Ut=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Vt(e)/Gt|0)|0},Vt=Math.log,Gt=Math.LN2,$t=o.unstable_UserBlockingPriority,qt=o.unstable_runWithPriority,Yt=!0;function Kt(e,t,n,r){De||Ne();var i=Jt,o=De;De=!0;try{Me(i,e,t,n,r)}finally{(De=o)||We()}}function Zt(e,t,n,r){qt($t,Jt.bind(null,e,t,n,r))}function Jt(e,t,n,r){var i;if(Yt)if((i=0==(4&t))&&0<ot.length&&-1<ft.indexOf(e))e=ht(null,e,t,n,r),ot.push(e);else{var o=Qt(e,t,n,r);if(null===o)i&&pt(e,r);else{if(i){if(-1<ft.indexOf(e))return e=ht(o,e,t,n,r),void ot.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return at=gt(at,e,t,n,r,i),!0;case"dragenter":return st=gt(st,e,t,n,r,i),!0;case"mouseover":return lt=gt(lt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return ut.set(o,gt(ut.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,ct.set(o,gt(ct.get(o)||null,e,t,n,r,i)),!0}return!1}(o,e,t,n,r))return;pt(e,r)}Ir(e,t,r,null,n)}}}function Qt(e,t,n,r){var i=Ee(r);if(null!==(i=Qr(i))){var o=Ke(i);if(null===o)i=null;else{var a=o.tag;if(13===a){if(null!==(i=Ze(o)))return i;i=null}else if(3===a){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return Ir(e,t,r,i,n),null}var Xt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,i="value"in Xt?Xt.value:Xt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return tn=i.slice(e,1<t?1-t:void 0)}function rn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function on(){return!0}function an(){return!1}function sn(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?on:an,this.isPropagationStopped=an,this}return i(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var ln,un,cn,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fn=sn(dn),hn=i({},dn,{view:0,detail:0}),pn=sn(hn),gn=i({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(ln=e.screenX-cn.screenX,un=e.screenY-cn.screenY):un=ln=0,cn=e),ln)},movementY:function(e){return"movementY"in e?e.movementY:un}}),mn=sn(gn),vn=sn(i({},gn,{dataTransfer:0})),yn=sn(i({},hn,{relatedTarget:0})),wn=sn(i({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=sn(i({},dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),_n=sn(i({},dn,{data:0})),Sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function Tn(){return En}var kn=sn(i({},hn,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Cn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tn,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),On=sn(i({},gn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ln=sn(i({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tn})),Rn=sn(i({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=sn(i({},gn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),An=[9,13,27,32],Mn=d&&"CompositionEvent"in window,Nn=null;d&&"documentMode"in document&&(Nn=document.documentMode);var Pn=d&&"TextEvent"in window&&!Nn,Dn=d&&(!Mn||Nn&&8<Nn&&11>=Nn),Fn=String.fromCharCode(32),Wn=!1;function zn(e,t){switch(e){case"keyup":return-1!==An.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1,Hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Un(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function Vn(e,t,n,r){Re(r),0<(t=Mr(t,"onChange")).length&&(n=new fn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,$n=null;function qn(e){Er(e,0)}function Yn(e){if(J(ei(e)))return e}function Kn(e,t){if("change"===e)return t}var Zn=!1;if(d){var Jn;if(d){var Qn="oninput"in document;if(!Qn){var Xn=document.createElement("div");Xn.setAttribute("oninput","return;"),Qn="function"==typeof Xn.oninput}Jn=Qn}else Jn=!1;Zn=Jn&&(!document.documentMode||9<document.documentMode)}function er(){Gn&&(Gn.detachEvent("onpropertychange",tr),$n=Gn=null)}function tr(e){if("value"===e.propertyName&&Yn($n)){var t=[];if(Vn(t,$n,e,Ee(e)),e=qn,De)e(t);else{De=!0;try{Ae(e,t)}finally{De=!1,We()}}}}function nr(e,t,n){"focusin"===e?(er(),$n=n,(Gn=t).attachEvent("onpropertychange",tr)):"focusout"===e&&er()}function rr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn($n)}function ir(e,t){if("click"===e)return Yn(t)}function or(e,t){if("input"===e||"change"===e)return Yn(t)}var ar="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},sr=Object.prototype.hasOwnProperty;function lr(e,t){if(ar(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!sr.call(t,n[r])||!ar(e[n[r]],t[n[r]]))return!1;return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Q((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var pr=d&&"documentMode"in document&&11>=document.documentMode,gr=null,mr=null,vr=null,yr=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==gr||gr!==Q(r)||(r="selectionStart"in(r=gr)&&hr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&lr(vr,r)||(vr=r,0<(r=Mr(mr,"onSelect")).length&&(t=new fn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}Nt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Nt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Nt(Mt,2);for(var br="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),_r=0;_r<br.length;_r++)At.set(br[_r],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Cr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Sr));function xr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,s,l,u){if(Ye.apply(this,arguments),Ue){if(!Ue)throw Error(a(198));var c=Ve;Ue=!1,Ve=null,Ge||(Ge=!0,$e=c)}}(r,t,void 0,e),e.currentTarget=null}function Er(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;xr(i,s,u),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;xr(i,s,u),o=l}}}if(Ge)throw e=$e,Ge=!1,$e=null,e}function Tr(e,t){var n=ni(t),r=e+"__bubble";n.has(r)||(Rr(t,e,2,!1),n.add(r))}var kr="_reactListening"+Math.random().toString(36).slice(2);function Or(e){e[kr]||(e[kr]=!0,s.forEach((function(t){Cr.has(t)||Lr(t,!1,e,null),Lr(t,!0,e,null)})))}function Lr(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=n;if("selectionchange"===e&&9!==n.nodeType&&(o=n.ownerDocument),null!==r&&!t&&Cr.has(e)){if("scroll"!==e)return;i|=2,o=r}var a=ni(o),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(i|=4),Rr(o,e,i,t),a.add(s))}function Rr(e,t,n,r){var i=At.get(t);switch(void 0===i?2:i){case 0:i=Kt;break;case 1:i=Zt;break;default:i=Jt}n=i.bind(null,t,n,e),i=void 0,!je||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Ir(e,t,n,r,i){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=Qr(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Fe)return e();Fe=!0;try{Pe(e,t,n)}finally{Fe=!1,We()}}((function(){var r=o,i=Ee(n),a=[];e:{var s=It.get(e);if(void 0!==s){var l=fn,u=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":l=kn;break;case"focusin":u="focus",l=yn;break;case"focusout":u="blur",l=yn;break;case"beforeblur":case"afterblur":l=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=vn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Ln;break;case kt:case Ot:case Lt:l=wn;break;case Rt:l=Rn;break;case"scroll":l=pn;break;case"wheel":l=In;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=On}var c=0!=(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var h,p=r;null!==p;){var g=(h=p).stateNode;if(5===h.tag&&null!==g&&(h=g,null!==f&&null!=(g=ze(p,f))&&c.push(Ar(p,g,h))),d)break;p=p.return}0<c.length&&(s=new l(s,u,null,n,i),a.push({event:s,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(u=n.relatedTarget||n.fromElement)||!Qr(u)&&!u[Zr])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?Qr(u):null)&&(u!==(d=Ke(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=mn,g="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=On,g="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==l?s:ei(l),h=null==u?s:ei(u),(s=new c(g,p+"leave",l,n,i)).target=d,s.relatedTarget=h,g=null,Qr(i)===r&&((c=new c(f,p+"enter",u,n,i)).target=h,c.relatedTarget=d,g=c),d=g,l&&u)e:{for(f=u,p=0,h=c=l;h;h=Nr(h))p++;for(h=0,g=f;g;g=Nr(g))h++;for(;0<p-h;)c=Nr(c),p--;for(;0<h-p;)f=Nr(f),h--;for(;p--;){if(c===f||null!==f&&c===f.alternate)break e;c=Nr(c),f=Nr(f)}c=null}else c=null;null!==l&&Pr(a,s,l,c,!1),null!==u&&null!==d&&Pr(a,d,u,c,!0)}if("select"===(l=(s=r?ei(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m=Kn;else if(Un(s))if(Zn)m=or;else{m=rr;var v=nr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=ir);switch(m&&(m=m(e,r))?Vn(a,m,n,i):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ie(s,"number",s.value)),v=r?ei(r):window,e){case"focusin":(Un(v)||"true"===v.contentEditable)&&(gr=v,mr=r,vr=null);break;case"focusout":vr=mr=gr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,wr(a,n,i);break;case"selectionchange":if(pr)break;case"keydown":case"keyup":wr(a,n,i)}var y;if(Mn)e:{switch(e){case"compositionstart":var w="onCompositionStart";break e;case"compositionend":w="onCompositionEnd";break e;case"compositionupdate":w="onCompositionUpdate";break e}w=void 0}else Bn?zn(e,n)&&(w="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(w="onCompositionStart");w&&(Dn&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==w?"onCompositionEnd"===w&&Bn&&(y=nn()):(en="value"in(Xt=i)?Xt.value:Xt.textContent,Bn=!0)),0<(v=Mr(r,w)).length&&(w=new _n(w,e,null,n,i),a.push({event:w,listeners:v}),(y||null!==(y=jn(n)))&&(w.data=y))),(y=Pn?function(e,t){switch(e){case"compositionend":return jn(t);case"keypress":return 32!==t.which?null:(Wn=!0,Fn);case"textInput":return(e=t.data)===Fn&&Wn?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!Mn&&zn(e,t)?(e=nn(),tn=en=Xt=null,Bn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dn&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&0<(r=Mr(r,"onBeforeInput")).length&&(i=new _n("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y)}Er(a,t)}))}function Ar(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Mr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=ze(e,n))&&r.unshift(Ar(e,o,i)),null!=(o=ze(e,t))&&r.push(Ar(e,o,i))),e=e.return}return r}function Nr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Pr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=ze(n,o))&&a.unshift(Ar(n,l,s)):i||null!=(l=ze(n,o))&&a.push(Ar(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Dr(){}var Fr=null,Wr=null;function zr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function jr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Br="function"==typeof setTimeout?setTimeout:void 0,Hr="function"==typeof clearTimeout?clearTimeout:void 0;function Ur(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function Vr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Gr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var $r=0,qr=Math.random().toString(36).slice(2),Yr="__reactFiber$"+qr,Kr="__reactProps$"+qr,Zr="__reactContainer$"+qr,Jr="__reactEvents$"+qr;function Qr(e){var t=e[Yr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Zr]||n[Yr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Gr(e);null!==e;){if(n=e[Yr])return n;e=Gr(e)}return t}n=(e=n).parentNode}return null}function Xr(e){return!(e=e[Yr]||e[Zr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ei(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function ti(e){return e[Kr]||null}function ni(e){var t=e[Jr];return void 0===t&&(t=e[Jr]=new Set),t}var ri=[],ii=-1;function oi(e){return{current:e}}function ai(e){0>ii||(e.current=ri[ii],ri[ii]=null,ii--)}function si(e,t){ii++,ri[ii]=e.current,e.current=t}var li={},ui=oi(li),ci=oi(!1),di=li;function fi(e,t){var n=e.type.contextTypes;if(!n)return li;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function hi(e){return null!=e.childContextTypes}function pi(){ai(ci),ai(ui)}function gi(e,t,n){if(ui.current!==li)throw Error(a(168));si(ui,t),si(ci,n)}function mi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,q(t)||"Unknown",o));return i({},n,r)}function vi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||li,di=ui.current,si(ui,e),si(ci,ci.current),!0}function yi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=mi(e,t,di),r.__reactInternalMemoizedMergedChildContext=e,ai(ci),ai(ui),si(ui,e)):ai(ci),si(ci,n)}var wi=null,bi=null,_i=o.unstable_runWithPriority,Si=o.unstable_scheduleCallback,Ci=o.unstable_cancelCallback,xi=o.unstable_shouldYield,Ei=o.unstable_requestPaint,Ti=o.unstable_now,ki=o.unstable_getCurrentPriorityLevel,Oi=o.unstable_ImmediatePriority,Li=o.unstable_UserBlockingPriority,Ri=o.unstable_NormalPriority,Ii=o.unstable_LowPriority,Ai=o.unstable_IdlePriority,Mi={},Ni=void 0!==Ei?Ei:function(){},Pi=null,Di=null,Fi=!1,Wi=Ti(),zi=1e4>Wi?Ti:function(){return Ti()-Wi};function ji(){switch(ki()){case Oi:return 99;case Li:return 98;case Ri:return 97;case Ii:return 96;case Ai:return 95;default:throw Error(a(332))}}function Bi(e){switch(e){case 99:return Oi;case 98:return Li;case 97:return Ri;case 96:return Ii;case 95:return Ai;default:throw Error(a(332))}}function Hi(e,t){return e=Bi(e),_i(e,t)}function Ui(e,t,n){return e=Bi(e),Si(e,t,n)}function Vi(){if(null!==Di){var e=Di;Di=null,Ci(e)}Gi()}function Gi(){if(!Fi&&null!==Pi){Fi=!0;var e=0;try{var t=Pi;Hi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Pi=null}catch(t){throw null!==Pi&&(Pi=Pi.slice(e+1)),Si(Oi,Vi),t}finally{Fi=!1}}}var $i=_.ReactCurrentBatchConfig;function qi(e,t){if(e&&e.defaultProps){for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Yi=oi(null),Ki=null,Zi=null,Ji=null;function Qi(){Ji=Zi=Ki=null}function Xi(e){var t=Yi.current;ai(Yi),e.type._context._currentValue=t}function eo(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function to(e,t){Ki=e,Ji=Zi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Ma=!0),e.firstContext=null)}function no(e,t){if(Ji!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Ji=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Zi){if(null===Ki)throw Error(a(308));Zi=t,Ki.dependencies={lanes:0,firstContext:t,responders:null}}else Zi=Zi.next=t;return e._currentValue}var ro=!1;function io(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function oo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ao(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function so(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function lo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function uo(e,t,n,r){var o=e.updateQueue;ro=!1;var a=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var u=l,c=u.next;u.next=null,null===s?a=c:s.next=c,s=u;var d=e.alternate;if(null!==d){var f=(d=d.updateQueue).lastBaseUpdate;f!==s&&(null===f?d.firstBaseUpdate=c:f.next=c,d.lastBaseUpdate=u)}}if(null!==a){for(f=o.baseState,s=0,d=c=u=null;;){l=a.lane;var h=a.eventTime;if((r&l)===l){null!==d&&(d=d.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var p=e,g=a;switch(l=t,h=n,g.tag){case 1:if("function"==typeof(p=g.payload)){f=p.call(h,f,l);break e}f=p;break e;case 3:p.flags=-4097&p.flags|64;case 0:if(null==(l="function"==typeof(p=g.payload)?p.call(h,f,l):p))break e;f=i({},f,l);break e;case 2:ro=!0}}null!==a.callback&&(e.flags|=32,null===(l=o.effects)?o.effects=[a]:l.push(a))}else h={eventTime:h,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===d?(c=d=h,u=f):d=d.next=h,s|=l;if(null===(a=a.next)){if(null===(l=o.shared.pending))break;a=l.next,l.next=null,o.lastBaseUpdate=l,o.shared.pending=null}}null===d&&(u=f),o.baseState=u,o.firstBaseUpdate=c,o.lastBaseUpdate=d,Ps|=s,e.lanes=s,e.memoizedState=f}}function co(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(a(191,i));i.call(r)}}}var fo=(new r.Component).refs;function ho(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var po={isMounted:function(e){return!!(e=e._reactInternals)&&Ke(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=al(),i=sl(e),o=ao(r,i);o.payload=t,null!=n&&(o.callback=n),so(e,o),ll(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=al(),i=sl(e),o=ao(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),so(e,o),ll(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=al(),r=sl(e),i=ao(n,r);i.tag=2,null!=t&&(i.callback=t),so(e,i),ll(e,r,n)}};function go(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!(t.prototype&&t.prototype.isPureReactComponent&&lr(n,r)&&lr(i,o))}function mo(e,t,n){var r=!1,i=li,o=t.contextType;return"object"==typeof o&&null!==o?o=no(o):(i=hi(t)?di:ui.current,o=(r=null!=(r=t.contextTypes))?fi(e,i):li),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=po,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function vo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&po.enqueueReplaceState(t,t.state,null)}function yo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=fo,io(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=no(o):(o=hi(t)?di:ui.current,i.context=fi(e,o)),uo(e,n,i,r),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(ho(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&po.enqueueReplaceState(i,i.state,null),uo(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4)}var wo=Array.isArray;function bo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===fo&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function _o(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function So(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=jl(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Vl(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=bo(e,t,n),r.return=e,r):((r=Bl(n.type,n.key,n.props,null,e.mode,r)).ref=bo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Gl(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Hl(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Vl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case S:return(n=Bl(t.type,t.key,t.props,null,e.mode,n)).ref=bo(e,null,t),n.return=e,n;case C:return(t=Gl(t,e.mode,n)).return=e,t}if(wo(t)||H(t))return(t=Hl(t,e.mode,n,null)).return=e,t;_o(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case S:return n.key===i?n.type===x?d(e,t,n.props.children,r,i):u(e,t,n,r):null;case C:return n.key===i?c(e,t,n,r):null}if(wo(n)||H(n))return null!==i?null:d(e,t,n,r,null);_o(e,n)}return null}function p(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case S:return e=e.get(null===r.key?n:r.key)||null,r.type===x?d(t,e,r.props.children,i,r.key):u(t,e,r,i);case C:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(wo(r)||H(r))return d(t,e=e.get(n)||null,r,i,null);_o(t,r)}return null}function g(i,a,s,l){for(var u=null,c=null,d=a,g=a=0,m=null;null!==d&&g<s.length;g++){d.index>g?(m=d,d=null):m=d.sibling;var v=h(i,d,s[g],l);if(null===v){null===d&&(d=m);break}e&&d&&null===v.alternate&&t(i,d),a=o(v,a,g),null===c?u=v:c.sibling=v,c=v,d=m}if(g===s.length)return n(i,d),u;if(null===d){for(;g<s.length;g++)null!==(d=f(i,s[g],l))&&(a=o(d,a,g),null===c?u=d:c.sibling=d,c=d);return u}for(d=r(i,d);g<s.length;g++)null!==(m=p(d,i,g,s[g],l))&&(e&&null!==m.alternate&&d.delete(null===m.key?g:m.key),a=o(m,a,g),null===c?u=m:c.sibling=m,c=m);return e&&d.forEach((function(e){return t(i,e)})),u}function m(i,s,l,u){var c=H(l);if("function"!=typeof c)throw Error(a(150));if(null==(l=c.call(l)))throw Error(a(151));for(var d=c=null,g=s,m=s=0,v=null,y=l.next();null!==g&&!y.done;m++,y=l.next()){g.index>m?(v=g,g=null):v=g.sibling;var w=h(i,g,y.value,u);if(null===w){null===g&&(g=v);break}e&&g&&null===w.alternate&&t(i,g),s=o(w,s,m),null===d?c=w:d.sibling=w,d=w,g=v}if(y.done)return n(i,g),c;if(null===g){for(;!y.done;m++,y=l.next())null!==(y=f(i,y.value,u))&&(s=o(y,s,m),null===d?c=y:d.sibling=y,d=y);return c}for(g=r(i,g);!y.done;m++,y=l.next())null!==(y=p(g,i,m,y.value,u))&&(e&&null!==y.alternate&&g.delete(null===y.key?m:y.key),s=o(y,s,m),null===d?c=y:d.sibling=y,d=y);return e&&g.forEach((function(e){return t(i,e)})),c}return function(e,r,o,l){var u="object"==typeof o&&null!==o&&o.type===x&&null===o.key;u&&(o=o.props.children);var c="object"==typeof o&&null!==o;if(c)switch(o.$$typeof){case S:e:{for(c=o.key,u=r;null!==u;){if(u.key===c){switch(u.tag){case 7:if(o.type===x){n(e,u.sibling),(r=i(u,o.props.children)).return=e,e=r;break e}break;default:if(u.elementType===o.type){n(e,u.sibling),(r=i(u,o.props)).ref=bo(e,u,o),r.return=e,e=r;break e}}n(e,u);break}t(e,u),u=u.sibling}o.type===x?((r=Hl(o.props.children,e.mode,l,o.key)).return=e,e=r):((l=Bl(o.type,o.key,o.props,null,e.mode,l)).ref=bo(e,r,o),l.return=e,e=l)}return s(e);case C:e:{for(u=o.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Gl(o,e.mode,l)).return=e,e=r}return s(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Vl(o,e.mode,l)).return=e,e=r),s(e);if(wo(o))return g(e,r,o,l);if(H(o))return m(e,r,o,l);if(c&&_o(e,o),void 0===o&&!u)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,q(e.type)||"Component"))}return n(e,r)}}var Co=So(!0),xo=So(!1),Eo={},To=oi(Eo),ko=oi(Eo),Oo=oi(Eo);function Lo(e){if(e===Eo)throw Error(a(174));return e}function Ro(e,t){switch(si(Oo,t),si(ko,e),si(To,Eo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ai(To),si(To,t)}function Io(){ai(To),ai(ko),ai(Oo)}function Ao(e){Lo(Oo.current);var t=Lo(To.current),n=he(t,e.type);t!==n&&(si(ko,e),si(To,n))}function Mo(e){ko.current===e&&(ai(To),ai(ko))}var No=oi(0);function Po(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Do=null,Fo=null,Wo=!1;function zo(e,t){var n=Wl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function jo(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Bo(e){if(Wo){var t=Fo;if(t){var n=t;if(!jo(e,t)){if(!(t=Vr(n.nextSibling))||!jo(e,t))return e.flags=-1025&e.flags|2,Wo=!1,void(Do=e);zo(Do,n)}Do=e,Fo=Vr(t.firstChild)}else e.flags=-1025&e.flags|2,Wo=!1,Do=e}}function Ho(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Do=e}function Uo(e){if(e!==Do)return!1;if(!Wo)return Ho(e),Wo=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!jr(t,e.memoizedProps))for(t=Fo;t;)zo(e,t),t=Vr(t.nextSibling);if(Ho(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Fo=Vr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Fo=null}}else Fo=Do?Vr(e.stateNode.nextSibling):null;return!0}function Vo(){Fo=Do=null,Wo=!1}var Go=[];function $o(){for(var e=0;e<Go.length;e++)Go[e]._workInProgressVersionPrimary=null;Go.length=0}var qo=_.ReactCurrentDispatcher,Yo=_.ReactCurrentBatchConfig,Ko=0,Zo=null,Jo=null,Qo=null,Xo=!1,ea=!1;function ta(){throw Error(a(321))}function na(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ar(e[n],t[n]))return!1;return!0}function ra(e,t,n,r,i,o){if(Ko=o,Zo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,qo.current=null===e||null===e.memoizedState?La:Ra,e=n(r,i),ea){o=0;do{if(ea=!1,!(25>o))throw Error(a(301));o+=1,Qo=Jo=null,t.updateQueue=null,qo.current=Ia,e=n(r,i)}while(ea)}if(qo.current=Oa,t=null!==Jo&&null!==Jo.next,Ko=0,Qo=Jo=Zo=null,Xo=!1,t)throw Error(a(300));return e}function ia(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Qo?Zo.memoizedState=Qo=e:Qo=Qo.next=e,Qo}function oa(){if(null===Jo){var e=Zo.alternate;e=null!==e?e.memoizedState:null}else e=Jo.next;var t=null===Qo?Zo.memoizedState:Qo.next;if(null!==t)Qo=t,Jo=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Jo=e).memoizedState,baseState:Jo.baseState,baseQueue:Jo.baseQueue,queue:Jo.queue,next:null},null===Qo?Zo.memoizedState=Qo=e:Qo=Qo.next=e}return Qo}function aa(e,t){return"function"==typeof t?t(e):t}function sa(e){var t=oa(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Jo,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var l=s=o=null,u=i;do{var c=u.lane;if((Ko&c)===c)null!==l&&(l=l.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===l?(s=l=d,o=r):l=l.next=d,Zo.lanes|=c,Ps|=c}u=u.next}while(null!==u&&u!==i);null===l?o=r:l.next=s,ar(r,t.memoizedState)||(Ma=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function la(e){var t=oa(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);ar(o,t.memoizedState)||(Ma=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ua(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Ko&e)===e)&&(t._workInProgressVersionPrimary=r,Go.push(t))),e)return n(t._source);throw Go.push(t),Error(a(350))}function ca(e,t,n,r){var i=ks;if(null===i)throw Error(a(349));var o=t._getVersion,s=o(t._source),l=qo.current,u=l.useState((function(){return ua(i,t,n)})),c=u[1],d=u[0];u=Qo;var f=e.memoizedState,h=f.refs,p=h.getSnapshot,g=f.source;f=f.subscribe;var m=Zo;return e.memoizedState={refs:h,source:t,subscribe:r},l.useEffect((function(){h.getSnapshot=n,h.setSnapshot=c;var e=o(t._source);if(!ar(s,e)){e=n(t._source),ar(d,e)||(c(e),e=sl(m),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,a=e;0<a;){var l=31-Ut(a),u=1<<l;r[l]|=e,a&=~u}}}),[n,t,r]),l.useEffect((function(){return r(t._source,(function(){var e=h.getSnapshot,n=h.setSnapshot;try{n(e(t._source));var r=sl(m);i.mutableReadLanes|=r&i.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),ar(p,n)&&ar(g,t)&&ar(f,r)||((e={pending:null,dispatch:null,lastRenderedReducer:aa,lastRenderedState:d}).dispatch=c=ka.bind(null,Zo,e),u.queue=e,u.baseQueue=null,d=ua(i,t,n),u.memoizedState=u.baseState=d),d}function da(e,t,n){return ca(oa(),e,t,n)}function fa(e){var t=ia();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:aa,lastRenderedState:e}).dispatch=ka.bind(null,Zo,e),[t.memoizedState,e]}function ha(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Zo.updateQueue)?(t={lastEffect:null},Zo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function pa(e){return e={current:e},ia().memoizedState=e}function ga(){return oa().memoizedState}function ma(e,t,n,r){var i=ia();Zo.flags|=e,i.memoizedState=ha(1|t,n,void 0,void 0===r?null:r)}function va(e,t,n,r){var i=oa();r=void 0===r?null:r;var o=void 0;if(null!==Jo){var a=Jo.memoizedState;if(o=a.destroy,null!==r&&na(r,a.deps))return void ha(t,n,o,r)}Zo.flags|=e,i.memoizedState=ha(1|t,n,o,r)}function ya(e,t){return ma(516,4,e,t)}function wa(e,t){return va(516,4,e,t)}function ba(e,t){return va(4,2,e,t)}function _a(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Sa(e,t,n){return n=null!=n?n.concat([e]):null,va(4,2,_a.bind(null,t,e),n)}function Ca(){}function xa(e,t){var n=oa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&na(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ea(e,t){var n=oa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&na(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ta(e,t){var n=ji();Hi(98>n?98:n,(function(){e(!0)})),Hi(97<n?97:n,(function(){var n=Yo.transition;Yo.transition=1;try{e(!1),t()}finally{Yo.transition=n}}))}function ka(e,t,n){var r=al(),i=sl(e),o={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===Zo||null!==a&&a===Zo)ea=Xo=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=a(s,n);if(o.eagerReducer=a,o.eagerState=l,ar(l,s))return}catch(e){}ll(e,i,r)}}var Oa={readContext:no,useCallback:ta,useContext:ta,useEffect:ta,useImperativeHandle:ta,useLayoutEffect:ta,useMemo:ta,useReducer:ta,useRef:ta,useState:ta,useDebugValue:ta,useDeferredValue:ta,useTransition:ta,useMutableSource:ta,useOpaqueIdentifier:ta,unstable_isNewReconciler:!1},La={readContext:no,useCallback:function(e,t){return ia().memoizedState=[e,void 0===t?null:t],e},useContext:no,useEffect:ya,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ma(4,2,_a.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ma(4,2,e,t)},useMemo:function(e,t){var n=ia();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ia();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=ka.bind(null,Zo,e),[r.memoizedState,e]},useRef:pa,useState:fa,useDebugValue:Ca,useDeferredValue:function(e){var t=fa(e),n=t[0],r=t[1];return ya((function(){var t=Yo.transition;Yo.transition=1;try{r(e)}finally{Yo.transition=t}}),[e]),n},useTransition:function(){var e=fa(!1),t=e[0];return pa(e=Ta.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=ia();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},ca(r,e,t,n)},useOpaqueIdentifier:function(){if(Wo){var e=!1,t=function(e){return{$$typeof:P,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+($r++).toString(36))),Error(a(355))})),n=fa(t)[1];return 0==(2&Zo.mode)&&(Zo.flags|=516,ha(5,(function(){n("r:"+($r++).toString(36))}),void 0,null)),t}return fa(t="r:"+($r++).toString(36)),t},unstable_isNewReconciler:!1},Ra={readContext:no,useCallback:xa,useContext:no,useEffect:wa,useImperativeHandle:Sa,useLayoutEffect:ba,useMemo:Ea,useReducer:sa,useRef:ga,useState:function(){return sa(aa)},useDebugValue:Ca,useDeferredValue:function(e){var t=sa(aa),n=t[0],r=t[1];return wa((function(){var t=Yo.transition;Yo.transition=1;try{r(e)}finally{Yo.transition=t}}),[e]),n},useTransition:function(){var e=sa(aa)[0];return[ga().current,e]},useMutableSource:da,useOpaqueIdentifier:function(){return sa(aa)[0]},unstable_isNewReconciler:!1},Ia={readContext:no,useCallback:xa,useContext:no,useEffect:wa,useImperativeHandle:Sa,useLayoutEffect:ba,useMemo:Ea,useReducer:la,useRef:ga,useState:function(){return la(aa)},useDebugValue:Ca,useDeferredValue:function(e){var t=la(aa),n=t[0],r=t[1];return wa((function(){var t=Yo.transition;Yo.transition=1;try{r(e)}finally{Yo.transition=t}}),[e]),n},useTransition:function(){var e=la(aa)[0];return[ga().current,e]},useMutableSource:da,useOpaqueIdentifier:function(){return la(aa)[0]},unstable_isNewReconciler:!1},Aa=_.ReactCurrentOwner,Ma=!1;function Na(e,t,n,r){t.child=null===e?xo(t,null,n,r):Co(t,e.child,n,r)}function Pa(e,t,n,r,i){n=n.render;var o=t.ref;return to(t,i),r=ra(e,t,n,r,o,i),null===e||Ma?(t.flags|=1,Na(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Xa(e,t,i))}function Da(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||zl(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Bl(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Fa(e,t,a,r,i,o))}return a=e.child,0==(i&o)&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:lr)(i,r)&&e.ref===t.ref)?Xa(e,t,o):(t.flags|=1,(e=jl(a,r)).ref=t.ref,e.return=t,t.child=e)}function Fa(e,t,n,r,i,o){if(null!==e&&lr(e.memoizedProps,r)&&e.ref===t.ref){if(Ma=!1,0==(o&i))return t.lanes=e.lanes,Xa(e,t,o);0!=(16384&e.flags)&&(Ma=!0)}return ja(e,t,n,r,o)}function Wa(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},ml(0,n);else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},ml(0,e),null;t.memoizedState={baseLanes:0},ml(0,null!==o?o.baseLanes:n)}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,ml(0,r);return Na(e,t,i,n),t.child}function za(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function ja(e,t,n,r,i){var o=hi(n)?di:ui.current;return o=fi(t,o),to(t,i),n=ra(e,t,n,r,o,i),null===e||Ma?(t.flags|=1,Na(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Xa(e,t,i))}function Ba(e,t,n,r,i){if(hi(n)){var o=!0;vi(t)}else o=!1;if(to(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),mo(t,n,r),yo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;u="object"==typeof u&&null!==u?no(u):fi(t,u=hi(n)?di:ui.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&vo(t,a,r,u),ro=!1;var f=t.memoizedState;a.state=f,uo(t,r,a,i),l=t.memoizedState,s!==r||f!==l||ci.current||ro?("function"==typeof c&&(ho(t,n,c,r),l=t.memoizedState),(s=ro||go(t,n,s,r,f,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4)):("function"==typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,oo(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:qi(t.type,s),a.props=u,d=t.pendingProps,f=a.context,l="object"==typeof(l=n.contextType)&&null!==l?no(l):fi(t,l=hi(n)?di:ui.current);var h=n.getDerivedStateFromProps;(c="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&vo(t,a,r,l),ro=!1,f=t.memoizedState,a.state=f,uo(t,r,a,i);var p=t.memoizedState;s!==d||f!==p||ci.current||ro?("function"==typeof h&&(ho(t,n,h,r),p=t.memoizedState),(u=ro||go(t,n,u,r,f,p,l))?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),r=!1)}return Ha(e,t,n,r,o,i)}function Ha(e,t,n,r,i,o){za(e,t);var a=0!=(64&t.flags);if(!r&&!a)return i&&yi(t,n,!1),Xa(e,t,o);r=t.stateNode,Aa.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Co(t,e.child,null,o),t.child=Co(t,null,s,o)):Na(e,t,s,o),t.memoizedState=r.state,i&&yi(t,n,!0),t.child}function Ua(e){var t=e.stateNode;t.pendingContext?gi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&gi(0,t.context,!1),Ro(e,t.containerInfo)}var Va,Ga,$a,qa={dehydrated:null,retryLane:0};function Ya(e,t,n){var r,i=t.pendingProps,o=No.current,a=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&o)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(o|=1),si(No,1&o),null===e?(void 0!==i.fallback&&Bo(t),e=i.children,o=i.fallback,a?(e=Ka(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=qa,e):"number"==typeof i.unstable_expectedLoadTime?(e=Ka(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=qa,t.lanes=33554432,e):((n=Ul({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(i=function(e,t,n,r,i){var o=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return 0==(2&o)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=s,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=jl(a,s),null!==e?r=jl(e,r):(r=Hl(r,o,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}(e,t,i.children,i.fallback,n),a=t.child,o=e.child.memoizedState,a.memoizedState=null===o?{baseLanes:n}:{baseLanes:o.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=qa,i):(n=function(e,t,n,r){var i=e.child;return e=i.sibling,n=jl(i,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}(e,t,i.children,n),t.memoizedState=null,n))}function Ka(e,t,n,r){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},0==(2&i)&&null!==o?(o.childLanes=0,o.pendingProps=t):o=Ul(t,i,0,null),n=Hl(n,i,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function Za(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),eo(e.return,t)}function Ja(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.lastEffect=o)}function Qa(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Na(e,t,r.children,n),0!=(2&(r=No.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Za(e,n);else if(19===e.tag)Za(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(si(No,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Po(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ja(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Po(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ja(t,!0,n,null,o,t.lastEffect);break;case"together":Ja(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Xa(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ps|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=jl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=jl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function es(e,t){if(!Wo)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ts(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return hi(t.type)&&pi(),null;case 3:return Io(),ai(ci),ai(ui),$o(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Uo(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Mo(t);var o=Lo(Oo.current);if(n=t.type,null!==e&&null!=t.stateNode)Ga(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Lo(To.current),Uo(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Yr]=t,r[Kr]=s,n){case"dialog":Tr("cancel",r),Tr("close",r);break;case"iframe":case"object":case"embed":Tr("load",r);break;case"video":case"audio":for(e=0;e<Sr.length;e++)Tr(Sr[e],r);break;case"source":Tr("error",r);break;case"img":case"image":case"link":Tr("error",r),Tr("load",r);break;case"details":Tr("toggle",r);break;case"input":ee(r,s),Tr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Tr("invalid",r);break;case"textarea":le(r,s),Tr("invalid",r)}for(var u in Ce(n,s),e=null,s)s.hasOwnProperty(u)&&(o=s[u],"children"===u?"string"==typeof o?r.textContent!==o&&(e=["children",o]):"number"==typeof o&&r.textContent!==""+o&&(e=["children",""+o]):l.hasOwnProperty(u)&&null!=o&&"onScroll"===u&&Tr("scroll",r));switch(n){case"input":Z(r),re(r,s,!0);break;case"textarea":Z(r),ce(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=Dr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(u=9===o.nodeType?o:o.ownerDocument,e===de&&(e=fe(n)),e===de?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[Yr]=t,e[Kr]=r,Va(e,t),t.stateNode=e,u=xe(n,r),n){case"dialog":Tr("cancel",e),Tr("close",e),o=r;break;case"iframe":case"object":case"embed":Tr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Sr.length;o++)Tr(Sr[o],e);o=r;break;case"source":Tr("error",e),o=r;break;case"img":case"image":case"link":Tr("error",e),Tr("load",e),o=r;break;case"details":Tr("toggle",e),o=r;break;case"input":ee(e,r),o=X(e,r),Tr("invalid",e);break;case"option":o=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=i({},r,{value:void 0}),Tr("invalid",e);break;case"textarea":le(e,r),o=se(e,r),Tr("invalid",e);break;default:o=r}Ce(n,o);var c=o;for(s in c)if(c.hasOwnProperty(s)){var d=c[s];"style"===s?_e(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&me(e,d):"children"===s?"string"==typeof d?("textarea"!==n||""!==d)&&ve(e,d):"number"==typeof d&&ve(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(l.hasOwnProperty(s)?null!=d&&"onScroll"===s&&Tr("scroll",e):null!=d&&b(e,s,d,u))}switch(n){case"input":Z(e),re(e,r,!1);break;case"textarea":Z(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Y(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ae(e,!!r.multiple,s,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Dr)}zr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)$a(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Lo(Oo.current),Lo(To.current),Uo(t)?(r=t.stateNode,n=t.memoizedProps,r[Yr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Yr]=t,t.stateNode=r)}return null;case 13:return ai(No),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Uo(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&No.current)?0===As&&(As=3):(0!==As&&3!==As||(As=4),null===ks||0==(134217727&Ps)&&0==(134217727&Ds)||fl(ks,Ls))),(r||n)&&(t.flags|=4),null);case 4:return Io(),null===e&&Or(t.stateNode.containerInfo),null;case 10:return Xi(t),null;case 17:return hi(t.type)&&pi(),null;case 19:if(ai(No),null===(r=t.memoizedState))return null;if(s=0!=(64&t.flags),null===(u=r.rendering))if(s)es(r,!1);else{if(0!==As||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(u=Po(e))){for(t.flags|=64,es(r,!1),null!==(s=u.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(u=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=u.childLanes,s.lanes=u.lanes,s.child=u.child,s.memoizedProps=u.memoizedProps,s.memoizedState=u.memoizedState,s.updateQueue=u.updateQueue,s.type=u.type,e=u.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return si(No,1&No.current|2),t.child}e=e.sibling}null!==r.tail&&zi()>js&&(t.flags|=64,s=!0,es(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=Po(u))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),es(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate&&!Wo)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*zi()-r.renderingStartTime>js&&1073741824!==n&&(t.flags|=64,s=!0,es(r,!1),t.lanes=33554432);r.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=zi(),n.sibling=null,t=No.current,si(No,s?1&t|2:1&t),n):null;case 23:case 24:return vl(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function ns(e){switch(e.tag){case 1:hi(e.type)&&pi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Io(),ai(ci),ai(ui),$o(),0!=(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Mo(e),null;case 13:return ai(No),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ai(No),null;case 4:return Io(),null;case 10:return Xi(e),null;case 23:case 24:return vl(),null;default:return null}}function rs(e,t){try{var n="",r=t;do{n+=$(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function is(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Va=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ga=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Lo(To.current);var a,s=null;switch(n){case"input":o=X(e,o),r=X(e,r),s=[];break;case"option":o=oe(e,o),r=oe(e,r),s=[];break;case"select":o=i({},o,{value:void 0}),r=i({},r,{value:void 0}),s=[];break;case"textarea":o=se(e,o),r=se(e,r),s=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Dr)}for(d in Ce(n,r),n=null,o)if(!r.hasOwnProperty(d)&&o.hasOwnProperty(d)&&null!=o[d])if("style"===d){var u=o[d];for(a in u)u.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(l.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in r){var c=r[d];if(u=null!=o?o[d]:void 0,r.hasOwnProperty(d)&&c!==u&&(null!=c||null!=u))if("style"===d)if(u){for(a in u)!u.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&u[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(s||(s=[]),s.push(d,n)),n=c;else"dangerouslySetInnerHTML"===d?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(s=s||[]).push(d,c)):"children"===d?"string"!=typeof c&&"number"!=typeof c||(s=s||[]).push(d,""+c):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(l.hasOwnProperty(d)?(null!=c&&"onScroll"===d&&Tr("scroll",e),s||u===c||(s=[])):"object"==typeof c&&null!==c&&c.$$typeof===P?c.toString():(s=s||[]).push(d,c))}n&&(s=s||[]).push("style",n);var d=s;(t.updateQueue=d)&&(t.flags|=4)}},$a=function(e,t,n,r){n!==r&&(t.flags|=4)};var os="function"==typeof WeakMap?WeakMap:Map;function as(e,t,n){(n=ao(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vs||(Vs=!0,Gs=r),is(0,t)},n}function ss(e,t,n){(n=ao(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return is(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===$s?$s=new Set([this]):$s.add(this),is(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ls="function"==typeof WeakSet?WeakSet:Set;function us(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Nl(e,t)}else t.current=null}function cs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:qi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Ur(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(a(163))}function ds(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(Il(n,e),Rl(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:qi(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&co(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}co(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&zr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&_t(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(a(163))}function fs(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=be("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function hs(e,t){if(bi&&"function"==typeof bi.onCommitFiberUnmount)try{bi.onCommitFiberUnmount(wi,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))Il(t,n);else{r=t;try{i()}catch(e){Nl(r,e)}}n=n.next}while(n!==e)}break;case 1:if(us(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Nl(t,e)}break;case 5:us(t);break;case 4:ws(e,t)}}function ps(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function gs(e){return 5===e.tag||3===e.tag||4===e.tag}function ms(e){e:{for(var t=e.return;null!==t;){if(gs(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(ve(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||gs(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?vs(e,n,t):ys(e,n,t)}function vs(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Dr));else if(4!==r&&null!==(e=e.child))for(vs(e,t,n),e=e.sibling;null!==e;)vs(e,t,n),e=e.sibling}function ys(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ys(e,t,n),e=e.sibling;null!==e;)ys(e,t,n),e=e.sibling}function ws(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(a(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var s=e,l=i,u=l;;)if(hs(s,u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===l)break e;for(;null===u.sibling;){if(null===u.return||u.return===l)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(s=n,l=i.stateNode,8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(hs(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function bs(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Kr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),xe(e,i),t=xe(e,r),i=0;i<o.length;i+=2){var s=o[i],l=o[i+1];"style"===s?_e(n,l):"dangerouslySetInnerHTML"===s?me(n,l):"children"===s?ve(n,l):b(n,s,l,t)}switch(e){case"input":ne(n,r);break;case"textarea":ue(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?ae(n,!!r.multiple,o,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,_t(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(zs=zi(),fs(t.child,!0)),void _s(t);case 19:return void _s(t);case 17:return;case 23:case 24:return void fs(t,null!==t.memoizedState)}throw Error(a(163))}function _s(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ls),t.forEach((function(t){var r=Dl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ss(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&null!==(t=t.memoizedState)&&null===t.dehydrated}var Cs=Math.ceil,xs=_.ReactCurrentDispatcher,Es=_.ReactCurrentOwner,Ts=0,ks=null,Os=null,Ls=0,Rs=0,Is=oi(0),As=0,Ms=null,Ns=0,Ps=0,Ds=0,Fs=0,Ws=null,zs=0,js=1/0;function Bs(){js=zi()+500}var Hs,Us=null,Vs=!1,Gs=null,$s=null,qs=!1,Ys=null,Ks=90,Zs=[],Js=[],Qs=null,Xs=0,el=null,tl=-1,nl=0,rl=0,il=null,ol=!1;function al(){return 0!=(48&Ts)?zi():-1!==tl?tl:tl=zi()}function sl(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===ji()?1:2;if(0===nl&&(nl=Ns),0!==$i.transition){0!==rl&&(rl=null!==Ws?Ws.pendingLanes:0),e=nl;var t=4186112&~rl;return 0==(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=ji(),e=zt(0!=(4&Ts)&&98===e?12:e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),nl)}function ll(e,t,n){if(50<Xs)throw Xs=0,el=null,Error(a(185));if(null===(e=ul(e,t)))return null;Ht(e,t,n),e===ks&&(Ds|=t,4===As&&fl(e,Ls));var r=ji();1===t?0!=(8&Ts)&&0==(48&Ts)?hl(e):(cl(e,n),0===Ts&&(Bs(),Vi())):(0==(4&Ts)||98!==r&&99!==r||(null===Qs?Qs=new Set([e]):Qs.add(e)),cl(e,n)),Ws=e}function ul(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function cl(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-Ut(s),u=1<<l,c=o[l];if(-1===c){if(0==(u&r)||0!=(u&i)){c=t,Dt(u);var d=Pt;o[l]=10<=d?c+250:6<=d?c+5e3:-1}}else c<=t&&(e.expiredLanes|=u);s&=~u}if(r=Ft(e,e===ks?Ls:0),t=Pt,0===r)null!==n&&(n!==Mi&&Ci(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Mi&&Ci(n)}15===t?(n=hl.bind(null,e),null===Pi?(Pi=[n],Di=Si(Oi,Gi)):Pi.push(n),n=Mi):n=14===t?Ui(99,hl.bind(null,e)):Ui(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),dl.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function dl(e){if(tl=-1,rl=nl=0,0!=(48&Ts))throw Error(a(327));var t=e.callbackNode;if(Ll()&&e.callbackNode!==t)return null;var n=Ft(e,e===ks?Ls:0);if(0===n)return null;var r=n,i=Ts;Ts|=16;var o=bl();for(ks===e&&Ls===r||(Bs(),yl(e,r));;)try{Cl();break}catch(t){wl(e,t)}if(Qi(),xs.current=o,Ts=i,null!==Os?r=0:(ks=null,Ls=0,r=As),0!=(Ns&Ds))yl(e,0);else if(0!==r){if(2===r&&(Ts|=64,e.hydrate&&(e.hydrate=!1,Ur(e.containerInfo)),0!==(n=Wt(e))&&(r=_l(e,n))),1===r)throw t=Ms,yl(e,0),fl(e,n),cl(e,zi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:Tl(e);break;case 3:if(fl(e,n),(62914560&n)===n&&10<(r=zs+500-zi())){if(0!==Ft(e,0))break;if(((i=e.suspendedLanes)&n)!==n){al(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Br(Tl.bind(null,e),r);break}Tl(e);break;case 4:if(fl(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var s=31-Ut(n);o=1<<s,(s=r[s])>i&&(i=s),n&=~o}if(n=i,10<(n=(120>(n=zi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Cs(n/1960))-n)){e.timeoutHandle=Br(Tl.bind(null,e),n);break}Tl(e);break;case 5:Tl(e);break;default:throw Error(a(329))}}return cl(e,zi()),e.callbackNode===t?dl.bind(null,e):null}function fl(e,t){for(t&=~Fs,t&=~Ds,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ut(t),r=1<<n;e[n]=-1,t&=~r}}function hl(e){if(0!=(48&Ts))throw Error(a(327));if(Ll(),e===ks&&0!=(e.expiredLanes&Ls)){var t=Ls,n=_l(e,t);0!=(Ns&Ds)&&(n=_l(e,t=Ft(e,t)))}else n=_l(e,t=Ft(e,0));if(0!==e.tag&&2===n&&(Ts|=64,e.hydrate&&(e.hydrate=!1,Ur(e.containerInfo)),0!==(t=Wt(e))&&(n=_l(e,t))),1===n)throw n=Ms,yl(e,0),fl(e,t),cl(e,zi()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Tl(e),cl(e,zi()),null}function pl(e,t){var n=Ts;Ts|=1;try{return e(t)}finally{0===(Ts=n)&&(Bs(),Vi())}}function gl(e,t){var n=Ts;Ts&=-2,Ts|=8;try{return e(t)}finally{0===(Ts=n)&&(Bs(),Vi())}}function ml(e,t){si(Is,Rs),Rs|=t,Ns|=t}function vl(){Rs=Is.current,ai(Is)}function yl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Hr(n)),null!==Os)for(n=Os.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&pi();break;case 3:Io(),ai(ci),ai(ui),$o();break;case 5:Mo(r);break;case 4:Io();break;case 13:case 19:ai(No);break;case 10:Xi(r);break;case 23:case 24:vl()}n=n.return}ks=e,Os=jl(e.current,null),Ls=Rs=Ns=t,As=0,Ms=null,Fs=Ds=Ps=0}function wl(e,t){for(;;){var n=Os;try{if(Qi(),qo.current=Oa,Xo){for(var r=Zo.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}Xo=!1}if(Ko=0,Qo=Jo=Zo=null,ea=!1,Es.current=null,null===n||null===n.return){As=1,Ms=t,Os=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=Ls,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l;if(0==(2&s.mode)){var c=s.alternate;c?(s.updateQueue=c.updateQueue,s.memoizedState=c.memoizedState,s.lanes=c.lanes):(s.updateQueue=null,s.memoizedState=null)}var d=0!=(1&No.current),f=a;do{var h;if(h=13===f.tag){var p=f.memoizedState;if(null!==p)h=null!==p.dehydrated;else{var g=f.memoizedProps;h=void 0!==g.fallback&&(!0!==g.unstable_avoidThisFallback||!d)}}if(h){var m=f.updateQueue;if(null===m){var v=new Set;v.add(u),f.updateQueue=v}else m.add(u);if(0==(2&f.mode)){if(f.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=ao(-1,1);y.tag=2,so(s,y)}s.lanes|=1;break e}l=void 0,s=t;var w=o.pingCache;if(null===w?(w=o.pingCache=new os,l=new Set,w.set(u,l)):void 0===(l=w.get(u))&&(l=new Set,w.set(u,l)),!l.has(s)){l.add(s);var b=Pl.bind(null,o,u,s);u.then(b,b)}f.flags|=4096,f.lanes=t;break e}f=f.return}while(null!==f);l=Error((q(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==As&&(As=2),l=rs(l,s),f=a;do{switch(f.tag){case 3:o=l,f.flags|=4096,t&=-t,f.lanes|=t,lo(f,as(0,o,t));break e;case 1:o=l;var _=f.type,S=f.stateNode;if(0==(64&f.flags)&&("function"==typeof _.getDerivedStateFromError||null!==S&&"function"==typeof S.componentDidCatch&&(null===$s||!$s.has(S)))){f.flags|=4096,t&=-t,f.lanes|=t,lo(f,ss(f,o,t));break e}}f=f.return}while(null!==f)}El(n)}catch(e){t=e,Os===n&&null!==n&&(Os=n=n.return);continue}break}}function bl(){var e=xs.current;return xs.current=Oa,null===e?Oa:e}function _l(e,t){var n=Ts;Ts|=16;var r=bl();for(ks===e&&Ls===t||yl(e,t);;)try{Sl();break}catch(t){wl(e,t)}if(Qi(),Ts=n,xs.current=r,null!==Os)throw Error(a(261));return ks=null,Ls=0,As}function Sl(){for(;null!==Os;)xl(Os)}function Cl(){for(;null!==Os&&!xi();)xl(Os)}function xl(e){var t=Hs(e.alternate,e,Rs);e.memoizedProps=e.pendingProps,null===t?El(e):Os=t,Es.current=null}function El(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=ts(n,t,Rs)))return void(Os=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Rs)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=ns(t)))return n.flags&=2047,void(Os=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Os=t);Os=t=e}while(null!==t);0===As&&(As=5)}function Tl(e){var t=ji();return Hi(99,kl.bind(null,e,t)),null}function kl(e,t){do{Ll()}while(null!==Ys);if(0!=(48&Ts))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,o=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var s=e.eventTimes,l=e.expirationTimes;0<o;){var u=31-Ut(o),c=1<<u;i[u]=0,s[u]=-1,l[u]=-1,o&=~c}if(null!==Qs&&0==(24&r)&&Qs.has(e)&&Qs.delete(e),e===ks&&(Os=ks=null,Ls=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=Ts,Ts|=32,Es.current=null,Fr=Yt,hr(s=fr())){if("selectionStart"in s)l={start:s.selectionStart,end:s.selectionEnd};else e:if(l=(l=s.ownerDocument)&&l.defaultView||window,(c=l.getSelection&&l.getSelection())&&0!==c.rangeCount){l=c.anchorNode,o=c.anchorOffset,u=c.focusNode,c=c.focusOffset;try{l.nodeType,u.nodeType}catch(e){l=null;break e}var d=0,f=-1,h=-1,p=0,g=0,m=s,v=null;t:for(;;){for(var y;m!==l||0!==o&&3!==m.nodeType||(f=d+o),m!==u||0!==c&&3!==m.nodeType||(h=d+c),3===m.nodeType&&(d+=m.nodeValue.length),null!==(y=m.firstChild);)v=m,m=y;for(;;){if(m===s)break t;if(v===l&&++p===o&&(f=d),v===u&&++g===c&&(h=d),null!==(y=m.nextSibling))break;v=(m=v).parentNode}m=y}l=-1===f||-1===h?null:{start:f,end:h}}else l=null;l=l||{start:0,end:0}}else l=null;Wr={focusedElem:s,selectionRange:l},Yt=!1,il=null,ol=!1,Us=r;do{try{Ol()}catch(e){if(null===Us)throw Error(a(330));Nl(Us,e),Us=Us.nextEffect}}while(null!==Us);il=null,Us=r;do{try{for(s=e;null!==Us;){var w=Us.flags;if(16&w&&ve(Us.stateNode,""),128&w){var b=Us.alternate;if(null!==b){var _=b.ref;null!==_&&("function"==typeof _?_(null):_.current=null)}}switch(1038&w){case 2:ms(Us),Us.flags&=-3;break;case 6:ms(Us),Us.flags&=-3,bs(Us.alternate,Us);break;case 1024:Us.flags&=-1025;break;case 1028:Us.flags&=-1025,bs(Us.alternate,Us);break;case 4:bs(Us.alternate,Us);break;case 8:ws(s,l=Us);var S=l.alternate;ps(l),null!==S&&ps(S)}Us=Us.nextEffect}}catch(e){if(null===Us)throw Error(a(330));Nl(Us,e),Us=Us.nextEffect}}while(null!==Us);if(_=Wr,b=fr(),w=_.focusedElem,s=_.selectionRange,b!==w&&w&&w.ownerDocument&&dr(w.ownerDocument.documentElement,w)){null!==s&&hr(w)&&(b=s.start,void 0===(_=s.end)&&(_=b),"selectionStart"in w?(w.selectionStart=b,w.selectionEnd=Math.min(_,w.value.length)):(_=(b=w.ownerDocument||document)&&b.defaultView||window).getSelection&&(_=_.getSelection(),l=w.textContent.length,S=Math.min(s.start,l),s=void 0===s.end?S:Math.min(s.end,l),!_.extend&&S>s&&(l=s,s=S,S=l),l=cr(w,S),o=cr(w,s),l&&o&&(1!==_.rangeCount||_.anchorNode!==l.node||_.anchorOffset!==l.offset||_.focusNode!==o.node||_.focusOffset!==o.offset)&&((b=b.createRange()).setStart(l.node,l.offset),_.removeAllRanges(),S>s?(_.addRange(b),_.extend(o.node,o.offset)):(b.setEnd(o.node,o.offset),_.addRange(b))))),b=[];for(_=w;_=_.parentNode;)1===_.nodeType&&b.push({element:_,left:_.scrollLeft,top:_.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w<b.length;w++)(_=b[w]).element.scrollLeft=_.left,_.element.scrollTop=_.top}Yt=!!Fr,Wr=Fr=null,e.current=n,Us=r;do{try{for(w=e;null!==Us;){var C=Us.flags;if(36&C&&ds(w,Us.alternate,Us),128&C){b=void 0;var x=Us.ref;if(null!==x){var E=Us.stateNode;switch(Us.tag){case 5:b=E;break;default:b=E}"function"==typeof x?x(b):x.current=b}}Us=Us.nextEffect}}catch(e){if(null===Us)throw Error(a(330));Nl(Us,e),Us=Us.nextEffect}}while(null!==Us);Us=null,Ni(),Ts=i}else e.current=n;if(qs)qs=!1,Ys=e,Ks=t;else for(Us=r;null!==Us;)t=Us.nextEffect,Us.nextEffect=null,8&Us.flags&&((C=Us).sibling=null,C.stateNode=null),Us=t;if(0===(r=e.pendingLanes)&&($s=null),1===r?e===el?Xs++:(Xs=0,el=e):Xs=0,n=n.stateNode,bi&&"function"==typeof bi.onCommitFiberRoot)try{bi.onCommitFiberRoot(wi,n,void 0,64==(64&n.current.flags))}catch(e){}if(cl(e,zi()),Vs)throw Vs=!1,e=Gs,Gs=null,e;return 0!=(8&Ts)||Vi(),null}function Ol(){for(;null!==Us;){var e=Us.alternate;ol||null===il||(0!=(8&Us.flags)?Xe(Us,il)&&(ol=!0):13===Us.tag&&Ss(e,Us)&&Xe(Us,il)&&(ol=!0));var t=Us.flags;0!=(256&t)&&cs(e,Us),0==(512&t)||qs||(qs=!0,Ui(97,(function(){return Ll(),null}))),Us=Us.nextEffect}}function Ll(){if(90!==Ks){var e=97<Ks?97:Ks;return Ks=90,Hi(e,Al)}return!1}function Rl(e,t){Zs.push(t,e),qs||(qs=!0,Ui(97,(function(){return Ll(),null})))}function Il(e,t){Js.push(t,e),qs||(qs=!0,Ui(97,(function(){return Ll(),null})))}function Al(){if(null===Ys)return!1;var e=Ys;if(Ys=null,0!=(48&Ts))throw Error(a(331));var t=Ts;Ts|=32;var n=Js;Js=[];for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1],s=i.destroy;if(i.destroy=void 0,"function"==typeof s)try{s()}catch(e){if(null===o)throw Error(a(330));Nl(o,e)}}for(n=Zs,Zs=[],r=0;r<n.length;r+=2){i=n[r],o=n[r+1];try{var l=i.create;i.destroy=l()}catch(e){if(null===o)throw Error(a(330));Nl(o,e)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return Ts=t,Vi(),!0}function Ml(e,t,n){so(e,t=as(0,t=rs(n,t),1)),t=al(),null!==(e=ul(e,1))&&(Ht(e,1,t),cl(e,t))}function Nl(e,t){if(3===e.tag)Ml(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Ml(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===$s||!$s.has(r))){var i=ss(n,e=rs(t,e),1);if(so(n,i),i=al(),null!==(n=ul(n,1)))Ht(n,1,i),cl(n,i);else if("function"==typeof r.componentDidCatch&&(null===$s||!$s.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Pl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=al(),e.pingedLanes|=e.suspendedLanes&n,ks===e&&(Ls&n)===n&&(4===As||3===As&&(62914560&Ls)===Ls&&500>zi()-zs?yl(e,0):Fs|=n),cl(e,t)}function Dl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===ji()?1:2:(0===nl&&(nl=Ns),0===(t=jt(62914560&~nl))&&(t=4194304))),n=al(),null!==(e=ul(e,t))&&(Ht(e,t,n),cl(e,n))}function Fl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Wl(e,t,n,r){return new Fl(e,t,n,r)}function zl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function jl(e,t){var n=e.alternate;return null===n?((n=Wl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Bl(e,t,n,r,i,o){var s=2;if(r=e,"function"==typeof e)zl(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case x:return Hl(n.children,i,o,t);case D:s=8,i|=16;break;case E:s=8,i|=1;break;case T:return(e=Wl(12,n,t,8|i)).elementType=T,e.type=T,e.lanes=o,e;case R:return(e=Wl(13,n,t,i)).type=R,e.elementType=R,e.lanes=o,e;case I:return(e=Wl(19,n,t,i)).elementType=I,e.lanes=o,e;case F:return Ul(n,i,o,t);case W:return(e=Wl(24,n,t,i)).elementType=W,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case k:s=10;break e;case O:s=9;break e;case L:s=11;break e;case A:s=14;break e;case M:s=16,r=null;break e;case N:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Wl(s,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function Hl(e,t,n,r){return(e=Wl(7,e,r,t)).lanes=n,e}function Ul(e,t,n,r){return(e=Wl(23,e,r,t)).elementType=F,e.lanes=n,e}function Vl(e,t,n){return(e=Wl(6,e,null,t)).lanes=n,e}function Gl(e,t,n){return(t=Wl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $l(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Bt(0),this.expirationTimes=Bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.mutableSourceEagerHydrationData=null}function ql(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:C,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Yl(e,t,n,r){var i=t.current,o=al(),s=sl(i);e:if(n){t:{if(Ke(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(hi(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(a(171))}if(1===n.tag){var u=n.type;if(hi(u)){n=mi(n,u,l);break e}}n=l}else n=li;return null===t.context?t.context=n:t.pendingContext=n,(t=ao(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),so(i,t),ll(i,s,o),s}function Kl(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Zl(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Jl(e,t){Zl(e,t),(e=e.alternate)&&Zl(e,t)}function Ql(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new $l(e,t,null!=n&&!0===n.hydrate),t=Wl(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,io(t),e[Zr]=n.current,Or(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function Xl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function eu(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=Kl(a);s.call(e)}}Yl(t,a,e,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Ql(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"==typeof i){var l=i;i=function(){var e=Kl(a);l.call(e)}}gl((function(){Yl(t,a,e,i)}))}return Kl(a)}function tu(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xl(t))throw Error(a(200));return ql(e,t,null,n)}Hs=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||ci.current)Ma=!0;else{if(0==(n&r)){switch(Ma=!1,t.tag){case 3:Ua(t),Vo();break;case 5:Ao(t);break;case 1:hi(t.type)&&vi(t);break;case 4:Ro(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;si(Yi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Ya(e,t,n):(si(No,1&No.current),null!==(t=Xa(e,t,n))?t.sibling:null);si(No,1&No.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return Qa(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),si(No,No.current),r)break;return null;case 23:case 24:return t.lanes=0,Wa(e,t,n)}return Xa(e,t,n)}Ma=0!=(16384&e.flags)}else Ma=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=fi(t,ui.current),to(t,n),i=ra(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,hi(r)){var o=!0;vi(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,io(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&ho(t,r,s,e),i.updater=po,t.stateNode=i,i._reactInternals=t,yo(t,r,e,n),t=Ha(null,t,r,!0,o,n)}else t.tag=0,Na(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"==typeof e)return zl(e)?1:0;if(null!=e){if((e=e.$$typeof)===L)return 11;if(e===A)return 14}return 2}(i),e=qi(i,e),o){case 0:t=ja(null,t,i,e,n);break e;case 1:t=Ba(null,t,i,e,n);break e;case 11:t=Pa(null,t,i,e,n);break e;case 14:t=Da(null,t,i,qi(i.type,e),r,n);break e}throw Error(a(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,ja(e,t,r,i=t.elementType===r?i:qi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ba(e,t,r,i=t.elementType===r?i:qi(r,i),n);case 3:if(Ua(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,oo(e,t),uo(t,r,null,n),(r=t.memoizedState.element)===i)Vo(),t=Xa(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(Fo=Vr(t.stateNode.containerInfo.firstChild),Do=t,o=Wo=!0),o){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(o=e[i])._workInProgressVersionPrimary=e[i+1],Go.push(o);for(n=xo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Na(e,t,r,n),Vo();t=t.child}return t;case 5:return Ao(t),null===e&&Bo(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,jr(r,i)?s=null:null!==o&&jr(r,o)&&(t.flags|=16),za(e,t),Na(e,t,s,n),t.child;case 6:return null===e&&Bo(t),null;case 13:return Ya(e,t,n);case 4:return Ro(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Co(t,null,r,n):Na(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Pa(e,t,r,i=t.elementType===r?i:qi(r,i),n);case 7:return Na(e,t,t.pendingProps,n),t.child;case 8:case 12:return Na(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value;var l=t.type._context;if(si(Yi,l._currentValue),l._currentValue=o,null!==s)if(l=s.value,0==(o=ar(l,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,o):1073741823))){if(s.children===i.children&&!ci.current){t=Xa(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){s=l.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&o)){1===l.tag&&((c=ao(-1,n&-n)).tag=2,so(l,c)),l.lanes|=n,null!==(c=l.alternate)&&(c.lanes|=n),eo(l.return,n),u.lanes|=n;break}c=c.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Na(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,to(t,n),r=r(i=no(i,o.unstable_observedBits)),t.flags|=1,Na(e,t,r,n),t.child;case 14:return o=qi(i=t.type,t.pendingProps),Da(e,t,i,o=qi(i.type,o),r,n);case 15:return Fa(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:qi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,hi(r)?(e=!0,vi(t)):e=!1,to(t,n),mo(t,r,i),yo(t,r,i,n),Ha(null,t,r,!0,e,n);case 19:return Qa(e,t,n);case 23:case 24:return Wa(e,t,n)}throw Error(a(156,t.tag))},Ql.prototype.render=function(e){Yl(e,this._internalRoot,null,null)},Ql.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Yl(null,e,null,(function(){t[Zr]=null}))},et=function(e){13===e.tag&&(ll(e,4,al()),Jl(e,4))},tt=function(e){13===e.tag&&(ll(e,67108864,al()),Jl(e,67108864))},nt=function(e){if(13===e.tag){var t=al(),n=sl(e);ll(e,n,t),Jl(e,n)}},rt=function(e,t){return t()},Te=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ti(r);if(!i)throw Error(a(90));J(r),ne(r,i)}}}break;case"textarea":ue(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Ae=pl,Me=function(e,t,n,r,i){var o=Ts;Ts|=4;try{return Hi(98,e.bind(null,t,n,r,i))}finally{0===(Ts=o)&&(Bs(),Vi())}},Ne=function(){0==(49&Ts)&&(function(){if(null!==Qs){var e=Qs;Qs=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,cl(e,zi())}))}Vi()}(),Ll())},Pe=function(e,t){var n=Ts;Ts|=2;try{return e(t)}finally{0===(Ts=n)&&(Bs(),Vi())}};var nu={Events:[Xr,ei,ti,Re,Ie,Ll,{current:!1}]},ru={findFiberByHostInstance:Qr,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},iu={bundleType:ru.bundleType,version:ru.version,rendererPackageName:ru.rendererPackageName,rendererConfig:ru.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Qe(e))?null:e.stateNode},findFiberByHostInstance:ru.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ou=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ou.isDisabled&&ou.supportsFiber)try{wi=ou.inject(iu),bi=ou}catch(ge){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=nu,t.createPortal=tu,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return null===(e=Qe(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Ts;if(0!=(48&n))return e(t);Ts|=1;try{if(e)return Hi(99,e.bind(null,t))}finally{Ts=n,Vi()}},t.hydrate=function(e,t,n){if(!Xl(t))throw Error(a(200));return eu(null,e,t,!0,n)},t.render=function(e,t,n){if(!Xl(t))throw Error(a(200));return eu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xl(e))throw Error(a(40));return!!e._reactRootContainer&&(gl((function(){eu(null,null,e,!1,(function(){e._reactRootContainer=null,e[Zr]=null}))})),!0)},t.unstable_batchedUpdates=pl,t.unstable_createPortal=function(e,t){return tu(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xl(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return eu(e,t,n,!1,r)},t.version="17.0.2"},73961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(57799)},76425:(e,t,n)=>{"use strict";var r=n(9736),i=n(3805);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,s=r(n(38972)),l=r(n(98884)),u=r(n(12164)),c=r(n(62094)),d=r(n(79168)),f=r(n(28914)),h=r(n(18239)),p=i(n(89526)),g=r(n(47785));function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(n,!0).forEach((function(t){(0,h.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}r(n(2652));var y=(a=o=function(e){function t(){var e,n;(0,s.default)(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=(0,u.default)(this,(e=(0,c.default)(t)).call.apply(e,[this].concat(i))),(0,h.default)((0,d.default)(n),"state",{height:n.props.defaultHeight||0,width:n.props.defaultWidth||0}),(0,h.default)((0,d.default)(n),"_parentNode",void 0),(0,h.default)((0,d.default)(n),"_autoSizer",void 0),(0,h.default)((0,d.default)(n),"_window",void 0),(0,h.default)((0,d.default)(n),"_detectElementResize",void 0),(0,h.default)((0,d.default)(n),"_onResize",(function(){var e=n.props,t=e.disableHeight,r=e.disableWidth,i=e.onResize;if(n._parentNode){var o=n._parentNode.offsetHeight||0,a=n._parentNode.offsetWidth||0,s=(n._window||window).getComputedStyle(n._parentNode)||{},l=parseInt(s.paddingLeft,10)||0,u=parseInt(s.paddingRight,10)||0,c=parseInt(s.paddingTop,10)||0,d=parseInt(s.paddingBottom,10)||0,f=o-c-d,h=a-l-u;(!t&&n.state.height!==f||!r&&n.state.width!==h)&&(n.setState({height:o-c-d,width:a-l-u}),i({height:o,width:a}))}})),(0,h.default)((0,d.default)(n),"_setRef",(function(e){n._autoSizer=e})),n}return(0,f.default)(t,e),(0,l.default)(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._window=this._autoSizer.parentNode.ownerDocument.defaultView,this._detectElementResize=(0,g.default)(e,this._window),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.disableHeight,i=e.disableWidth,o=e.style,a=this.state,s=a.height,l=a.width,u={overflow:"visible"},c={};return r||(u.height=0,c.height=s),i||(u.width=0,c.width=l),p.createElement("div",{className:n,ref:this._setRef,style:v({},u,{},o)},t(c))}}]),t}(p.Component),(0,h.default)(o,"propTypes",null),a);t.default=y,(0,h.default)(y,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}})},38745:(e,t,n)=>{"use strict";var r=n(9736);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"AutoSizer",{enumerable:!0,get:function(){return i.default}});var i=r(n(76425))},47785:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r,i,o,a=void 0!==(r=void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:n.g).document&&r.document.attachEvent;if(!a){var s=(o=r.requestAnimationFrame||r.mozRequestAnimationFrame||r.webkitRequestAnimationFrame||function(e){return r.setTimeout(e,20)},function(e){return o(e)}),l=(i=r.cancelAnimationFrame||r.mozCancelAnimationFrame||r.webkitCancelAnimationFrame||r.clearTimeout,function(e){return i(e)}),u=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},c=function(e){if(!(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;u(this),this.__resizeRAF__&&l(this.__resizeRAF__),this.__resizeRAF__=s((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}},d=!1,f="",h="animationstart",p="Webkit Moz O ms".split(" "),g="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),m=r.document.createElement("fakeelement");if(void 0!==m.style.animationName&&(d=!0),!1===d)for(var v=0;v<p.length;v++)if(void 0!==m.style[p[v]+"AnimationName"]){f="-"+p[v].toLowerCase()+"-",h=g[v],d=!0;break}var y="resizeanim",w="@"+f+"keyframes "+y+" { from { opacity: 0; } to { opacity: 0; } } ",b=f+"animation: 1ms "+y+"; "}return{addResizeListener:function(t,n){if(a)t.attachEvent("onresize",n);else{if(!t.__resizeTriggers__){var i=t.ownerDocument,o=r.getComputedStyle(t);o&&"static"==o.position&&(t.style.position="relative"),function(t){if(!t.getElementById("detectElementResize")){var n=(w||"")+".resize-triggers { "+(b||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=t.head||t.getElementsByTagName("head")[0],i=t.createElement("style");i.id="detectElementResize",i.type="text/css",null!=e&&i.setAttribute("nonce",e),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(t.createTextNode(n)),r.appendChild(i)}}(i),t.__resizeLast__={},t.__resizeListeners__=[],(t.__resizeTriggers__=i.createElement("div")).className="resize-triggers";var s='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>';if(window.trustedTypes){var l=trustedTypes.createPolicy("react-virtualized-auto-sizer",{createHTML:function(){return s}});t.__resizeTriggers__.innerHTML=l.createHTML("")}else t.__resizeTriggers__.innerHTML=s;t.appendChild(t.__resizeTriggers__),u(t),t.addEventListener("scroll",c,!0),h&&(t.__resizeTriggers__.__animationListener__=function(e){e.animationName==y&&u(t)},t.__resizeTriggers__.addEventListener(h,t.__resizeTriggers__.__animationListener__))}t.__resizeListeners__.push(n)}},removeResizeListener:function(e,t){if(a)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",c,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(h,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}},34255:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function a(e){return(a="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})(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?s(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.r(t),n.d(t,{ArrowKeyStepper:()=>J,AutoSizer:()=>re,CellMeasurer:()=>se,CellMeasurerCache:()=>le,Collection:()=>we,Column:()=>ft,ColumnSizer:()=>be,Grid:()=>G,InfiniteLoader:()=>Ce,List:()=>Te,Masonry:()=>Ze,MultiGrid:()=>nt,ScrollSync:()=>rt,SortDirection:()=>lt,SortIndicator:()=>ut,Table:()=>gt,WindowScroller:()=>Nt,accessibilityOverscanIndicesGetter:()=>$,createMasonryCellPositioner:()=>Je,createTableMultiSort:()=>it,defaultCellRangeRenderer:()=>O,defaultOverscanIndicesGetter:()=>T,defaultTableCellDataGetter:()=>ot,defaultTableCellRenderer:()=>at,defaultTableHeaderRenderer:()=>ct,defaultTableHeaderRowRenderer:()=>st,defaultTableRowRenderer:()=>dt});var h=n(89526);function p(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function g(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function m(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function v(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,r=null,i=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?i="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(i="UNSAFE_componentWillUpdate"),null!==n||null!==r||null!==i){var o=e.displayName||e.name,a="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+o+" uses "+a+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==r?"\n "+r:"")+(null!==i?"\n "+i:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=p,t.componentWillReceiveProps=g),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=m;var s=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;s.call(this,e,t,r)}}return e}function y(){return(y=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}).apply(this,arguments)}function w(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=w(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function b(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=w(e))&&(r&&(r+=" "),r+=t);return r}function _(e){var t=e.cellCount,n=e.cellSize,r=e.computeMetadataCallback,i=e.computeMetadataCallbackProps,o=e.nextCellsCount,a=e.nextCellSize,s=e.nextScrollToIndex,l=e.scrollToIndex,u=e.updateScrollOffsetForScrollToIndex;t===o&&("number"!=typeof n&&"number"!=typeof a||n===a)||(r(i),l>=0&&l===s&&u())}function S(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}p.__suppressDeprecationWarning=!0,g.__suppressDeprecationWarning=!0,m.__suppressDeprecationWarning=!0,n(2652);var C=function(){function e(t){var n=t.cellCount,i=t.cellSizeGetter,o=t.estimatedCellSize;r(this,e),f(this,"_cellSizeAndPositionData",{}),f(this,"_lastMeasuredIndex",-1),f(this,"_lastBatchedIndex",-1),f(this,"_cellCount",void 0),f(this,"_cellSizeGetter",void 0),f(this,"_estimatedCellSize",void 0),this._cellSizeGetter=i,this._cellCount=n,this._estimatedCellSize=o}return o(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,n=e.estimatedCellSize,r=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=n,this._cellSizeGetter=r}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(e){if(e<0||e>=this._cellCount)throw Error("Requested index ".concat(e," is outside of range 0..").concat(this._cellCount));if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,r=this._lastMeasuredIndex+1;r<=e;r++){var i=this._cellSizeGetter({index:r});if(void 0===i||isNaN(i))throw Error("Invalid size returned for cell ".concat(r," of value ").concat(i));null===i?(this._cellSizeAndPositionData[r]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[r]={offset:n,size:i},n+=i,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,r=e.containerSize,i=e.currentOffset,o=e.targetIndex;if(r<=0)return 0;var a,s=this.getSizeAndPositionOfCell(o),l=s.offset,u=l-r+s.size;switch(n){case"start":a=l;break;case"end":a=u;break;case"center":a=l-(r-s.size)/2;break;default:a=Math.max(u,Math.min(l,i))}var c=this.getTotalSize();return Math.max(0,Math.min(c-r,a))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};var r=n+t,i=this._findNearestCell(n),o=this.getSizeAndPositionOfCell(i);n=o.offset+o.size;for(var a=i;n<r&&a<this._cellCount-1;)a++,n+=this.getSizeAndPositionOfCell(a).size;return{start:i,stop:a}}},{key:"resetCell",value:function(e){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,e-1)}},{key:"_binarySearch",value:function(e,t,n){for(;t<=e;){var r=t+Math.floor((e-t)/2),i=this.getSizeAndPositionOfCell(r).offset;if(i===n)return r;i<n?t=r+1:i>n&&(e=r-1)}return t>0?t-1:0}},{key:"_exponentialSearch",value:function(e,t){for(var n=1;e<this._cellCount&&this.getSizeAndPositionOfCell(e).offset<t;)e+=n,n*=2;return this._binarySearch(Math.min(e,this._cellCount-1),Math.floor(e/2),t)}},{key:"_findNearestCell",value:function(e){if(isNaN(e))throw Error("Invalid offset ".concat(e," specified"));e=Math.max(0,e);var t=this.getSizeAndPositionOfLastMeasuredCell(),n=Math.max(0,this._lastMeasuredIndex);return t.offset>=e?this._binarySearch(n,0,e):this._exponentialSearch(n,e)}}]),e}(),x=function(){function e(t){var n=t.maxScrollSize,i=void 0===n?"undefined"!=typeof window&&window.chrome?16777100:15e5:n,o=S(t,["maxScrollSize"]);r(this,e),f(this,"_cellSizeAndPositionManager",void 0),f(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new C(o),this._maxScrollSize=i}return o(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),i=this.getTotalSize(),o=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:i});return Math.round(o*(i-r))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,r=e.containerSize,i=e.currentOffset,o=e.targetIndex;i=this._safeOffsetToOffset({containerSize:r,offset:i});var a=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:r,currentOffset:i,targetIndex:o});return this._offsetToSafeOffset({containerSize:r,offset:a})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,r=e.totalSize;return r<=t?0:n/(r-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),i=this.getTotalSize();if(r===i)return n;var o=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(o*(i-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),i=this.getTotalSize();if(r===i)return n;var o=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:i});return Math.round(o*(r-t))}}]),e}();function E(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var r=n.callback,i=n.indices,o=Object.keys(i),a=!e||o.every((function(e){var t=i[e];return Array.isArray(t)?t.length>0:t>=0})),s=o.length!==Object.keys(t).length||o.some((function(e){var n=t[e],r=i[e];return Array.isArray(r)?n.join(",")!==r.join(","):n!==r}));t=i,a&&s&&r(i)}}function T(e){var t=e.cellCount,n=e.overscanCellsCount,r=e.scrollDirection,i=e.startIndex,o=e.stopIndex;return 1===r?{overscanStartIndex:Math.max(0,i),overscanStopIndex:Math.min(t-1,o+n)}:{overscanStartIndex:Math.max(0,i-n),overscanStopIndex:Math.min(t-1,o)}}function k(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,r=e.previousCellsCount,i=e.previousCellSize,o=e.previousScrollToAlignment,a=e.previousScrollToIndex,s=e.previousSize,l=e.scrollOffset,u=e.scrollToAlignment,c=e.scrollToIndex,d=e.size,f=e.sizeJustIncreasedFromZero,h=e.updateScrollIndexCallback,p=n.getCellCount(),g=c>=0&&c<p;g&&(d!==s||f||!i||"number"==typeof t&&t!==i||u!==o||c!==a)?h(c):!g&&p>0&&(d<s||p<r)&&l>n.getTotalSize()-d&&h(p-1)}function O(e){for(var t=e.cellCache,n=e.cellRenderer,r=e.columnSizeAndPositionManager,i=e.columnStartIndex,o=e.columnStopIndex,a=e.deferredMeasurementCache,s=e.horizontalOffsetAdjustment,l=e.isScrolling,u=e.isScrollingOptOut,c=e.parent,d=e.rowSizeAndPositionManager,f=e.rowStartIndex,h=e.rowStopIndex,p=e.styleCache,g=e.verticalOffsetAdjustment,m=e.visibleColumnIndices,v=e.visibleRowIndices,y=[],w=r.areOffsetsAdjusted()||d.areOffsetsAdjusted(),b=!l&&!w,_=f;_<=h;_++)for(var S=d.getSizeAndPositionOfCell(_),C=i;C<=o;C++){var x=r.getSizeAndPositionOfCell(C),E=C>=m.start&&C<=m.stop&&_>=v.start&&_<=v.stop,T="".concat(_,"-").concat(C),k=void 0;b&&p[T]?k=p[T]:a&&!a.has(_,C)?k={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(k={height:S.size,left:x.offset+s,position:"absolute",top:S.offset+g,width:x.size},p[T]=k);var O={columnIndex:C,isScrolling:l,isVisible:E,key:T,parent:c,rowIndex:_,style:k},L=void 0;!u&&!l||s||g?L=n(O):(t[T]||(t[T]=n(O)),L=t[T]),null!=L&&!1!==L&&y.push(L)}return y}const L=!("undefined"==typeof window||!window.document||!window.document.createElement);var R,I;function A(e){if((!R&&0!==R||e)&&L){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),R=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return R}var M,N,P=(I="undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).requestAnimationFrame||I.webkitRequestAnimationFrame||I.mozRequestAnimationFrame||I.oRequestAnimationFrame||I.msRequestAnimationFrame||function(e){return I.setTimeout(e,1e3/60)},D=I.cancelAnimationFrame||I.webkitCancelAnimationFrame||I.mozCancelAnimationFrame||I.oCancelAnimationFrame||I.msCancelAnimationFrame||function(e){I.clearTimeout(e)},F=P,W=D,z=function(e){return W(e.id)},j=function(e,t){var n;Promise.resolve().then((function(){n=Date.now()}));var r={id:F((function i(){Date.now()-n>=t?e.call():r.id=F(i)}))};return r};function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(n,!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var U="requested",V=(N=M=function(e){function t(e){var n;r(this,t),f(s(n=l(this,u(t).call(this,e))),"_onGridRenderedMemoizer",E()),f(s(n),"_onScrollMemoizer",E(!1)),f(s(n),"_deferredInvalidateColumnIndex",null),f(s(n),"_deferredInvalidateRowIndex",null),f(s(n),"_recomputeScrollLeftFlag",!1),f(s(n),"_recomputeScrollTopFlag",!1),f(s(n),"_horizontalScrollBarSize",0),f(s(n),"_verticalScrollBarSize",0),f(s(n),"_scrollbarPresenceChanged",!1),f(s(n),"_scrollingContainer",void 0),f(s(n),"_childrenToDisplay",void 0),f(s(n),"_columnStartIndex",void 0),f(s(n),"_columnStopIndex",void 0),f(s(n),"_rowStartIndex",void 0),f(s(n),"_rowStopIndex",void 0),f(s(n),"_renderedColumnStartIndex",0),f(s(n),"_renderedColumnStopIndex",0),f(s(n),"_renderedRowStartIndex",0),f(s(n),"_renderedRowStopIndex",0),f(s(n),"_initialScrollTop",void 0),f(s(n),"_initialScrollLeft",void 0),f(s(n),"_disablePointerEventsTimeoutId",void 0),f(s(n),"_styleCache",{}),f(s(n),"_cellCache",{}),f(s(n),"_debounceScrollEndedCallback",(function(){n._disablePointerEventsTimeoutId=null,n.setState({isScrolling:!1,needToResetStyleCache:!1})})),f(s(n),"_invokeOnGridRenderedHelper",(function(){var e=n.props.onSectionRendered;n._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:n._columnStartIndex,columnOverscanStopIndex:n._columnStopIndex,columnStartIndex:n._renderedColumnStartIndex,columnStopIndex:n._renderedColumnStopIndex,rowOverscanStartIndex:n._rowStartIndex,rowOverscanStopIndex:n._rowStopIndex,rowStartIndex:n._renderedRowStartIndex,rowStopIndex:n._renderedRowStopIndex}})})),f(s(n),"_setScrollingContainerRef",(function(e){n._scrollingContainer=e})),f(s(n),"_onScroll",(function(e){e.target===n._scrollingContainer&&n.handleScrollEvent(e.target)}));var i=new x({cellCount:e.columnCount,cellSizeGetter:function(n){return t._wrapSizeGetter(e.columnWidth)(n)},estimatedCellSize:t._getEstimatedColumnSize(e)}),o=new x({cellCount:e.rowCount,cellSizeGetter:function(n){return t._wrapSizeGetter(e.rowHeight)(n)},estimatedCellSize:t._getEstimatedRowSize(e)});return n.state={instanceProps:{columnSizeAndPositionManager:i,rowSizeAndPositionManager:o,prevColumnWidth:e.columnWidth,prevRowHeight:e.rowHeight,prevColumnCount:e.columnCount,prevRowCount:e.rowCount,prevIsScrolling:!0===e.isScrolling,prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow,scrollbarSize:0,scrollbarSizeMeasured:!1},isScrolling:!1,scrollDirectionHorizontal:1,scrollDirectionVertical:1,scrollLeft:0,scrollTop:0,scrollPositionChangeReason:null,needToResetStyleCache:!1},e.scrollToRow>0&&(n._initialScrollTop=n._getCalculatedScrollTop(e,n.state)),e.scrollToColumn>0&&(n._initialScrollLeft=n._getCalculatedScrollLeft(e,n.state)),n}return d(t,e),o(t,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?this.props.scrollToAlignment:t,r=e.columnIndex,i=void 0===r?this.props.scrollToColumn:r,o=e.rowIndex,a=void 0===o?this.props.scrollToRow:o,s=H({},this.props,{scrollToAlignment:n,scrollToColumn:i,scrollToRow:a});return{scrollLeft:this._getCalculatedScrollLeft(s),scrollTop:this._getCalculatedScrollTop(s)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(e){var t=e.scrollLeft,n=void 0===t?0:t,r=e.scrollTop,i=void 0===r?0:r;if(!(i<0)){this._debounceScrollEnded();var o=this.props,a=o.autoHeight,s=o.autoWidth,l=o.height,u=o.width,c=this.state.instanceProps,d=c.scrollbarSize,f=c.rowSizeAndPositionManager.getTotalSize(),h=c.columnSizeAndPositionManager.getTotalSize(),p=Math.min(Math.max(0,h-u+d),n),g=Math.min(Math.max(0,f-l+d),i);if(this.state.scrollLeft!==p||this.state.scrollTop!==g){var m={isScrolling:!0,scrollDirectionHorizontal:p!==this.state.scrollLeft?p>this.state.scrollLeft?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:g!==this.state.scrollTop?g>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:"observed"};a||(m.scrollTop=g),s||(m.scrollLeft=p),m.needToResetStyleCache=!1,this.setState(m)}this._invokeOnScrollMemoizer({scrollLeft:p,scrollTop:g,totalColumnsWidth:h,totalRowsHeight:f})}}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,n):n}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,n=e.rowCount,r=this.state.instanceProps;r.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),r.rowSizeAndPositionManager.getSizeAndPositionOfCell(n-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,i=void 0===r?0:r,o=this.props,a=o.scrollToColumn,s=o.scrollToRow,l=this.state.instanceProps;l.columnSizeAndPositionManager.resetCell(n),l.rowSizeAndPositionManager.resetCell(i),this._recomputeScrollLeftFlag=a>=0&&(1===this.state.scrollDirectionHorizontal?n<=a:n>=a),this._recomputeScrollTopFlag=s>=0&&(1===this.state.scrollDirectionVertical?i<=s:i>=s),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,r=this.props.columnCount,i=this.props;r>1&&void 0!==t&&this._updateScrollLeftForScrollToColumn(H({},i,{scrollToColumn:t})),void 0!==n&&this._updateScrollTopForScrollToRow(H({},i,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,n=e.getScrollbarSize,r=e.height,i=e.scrollLeft,o=e.scrollToColumn,a=e.scrollTop,s=e.scrollToRow,l=e.width,u=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),u.scrollbarSizeMeasured||this.setState((function(e){var t=H({},e,{needToResetStyleCache:!1});return t.instanceProps.scrollbarSize=n(),t.instanceProps.scrollbarSizeMeasured=!0,t})),"number"==typeof i&&i>=0||"number"==typeof a&&a>=0){var c=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:i,scrollTop:a});c&&(c.needToResetStyleCache=!1,this.setState(c))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var d=r>0&&l>0;o>=0&&d&&this._updateScrollLeftForScrollToColumn(),s>=0&&d&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:i||0,scrollTop:a||0,totalColumnsWidth:u.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:u.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var n=this,r=this.props,i=r.autoHeight,o=r.autoWidth,a=r.columnCount,s=r.height,l=r.rowCount,u=r.scrollToAlignment,c=r.scrollToColumn,d=r.scrollToRow,f=r.width,h=this.state,p=h.scrollLeft,g=h.scrollPositionChangeReason,m=h.scrollTop,v=h.instanceProps;this._handleInvalidatedGridSize();var y=a>0&&0===e.columnCount||l>0&&0===e.rowCount;g===U&&(!o&&p>=0&&(p!==this._scrollingContainer.scrollLeft||y)&&(this._scrollingContainer.scrollLeft=p),!i&&m>=0&&(m!==this._scrollingContainer.scrollTop||y)&&(this._scrollingContainer.scrollTop=m));var w=(0===e.width||0===e.height)&&s>0&&f>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):k({cellSizeAndPositionManager:v.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:p,scrollToAlignment:u,scrollToIndex:c,size:f,sizeJustIncreasedFromZero:w,updateScrollIndexCallback:function(){return n._updateScrollLeftForScrollToColumn(n.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):k({cellSizeAndPositionManager:v.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:m,scrollToAlignment:u,scrollToIndex:d,size:s,sizeJustIncreasedFromZero:w,updateScrollIndexCallback:function(){return n._updateScrollTopForScrollToRow(n.props)}}),this._invokeOnGridRenderedHelper(),p!==t.scrollLeft||m!==t.scrollTop){var b=v.rowSizeAndPositionManager.getTotalSize(),_=v.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:p,scrollTop:m,totalColumnsWidth:_,totalRowsHeight:b})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&z(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,r=e.autoWidth,i=e.className,o=e.containerProps,a=e.containerRole,s=e.containerStyle,l=e.height,u=e.id,c=e.noContentRenderer,d=e.role,f=e.style,p=e.tabIndex,g=e.width,m=this.state,v=m.instanceProps,w=m.needToResetStyleCache,_=this._isScrolling(),S={boxSizing:"border-box",direction:"ltr",height:n?"auto":l,position:"relative",width:r?"auto":g,WebkitOverflowScrolling:"touch",willChange:"transform"};w&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var C=v.columnSizeAndPositionManager.getTotalSize(),x=v.rowSizeAndPositionManager.getTotalSize(),E=x>l?v.scrollbarSize:0,T=C>g?v.scrollbarSize:0;T===this._horizontalScrollBarSize&&E===this._verticalScrollBarSize||(this._horizontalScrollBarSize=T,this._verticalScrollBarSize=E,this._scrollbarPresenceChanged=!0),S.overflowX=C+E<=g?"hidden":"auto",S.overflowY=x+T<=l?"hidden":"auto";var k=this._childrenToDisplay,O=0===k.length&&l>0&&g>0;return h.createElement("div",y({ref:this._setScrollingContainerRef},o,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:b("ReactVirtualized__Grid",i),id:u,onScroll:this._onScroll,role:d,style:H({},S,{},f),tabIndex:p}),k.length>0&&h.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:a,style:H({width:t?"auto":C,height:x,maxWidth:C,maxHeight:x,overflow:"hidden",pointerEvents:_?"none":"",position:"relative"},s)},k),O&&c())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,r=e.cellRangeRenderer,i=e.columnCount,o=e.deferredMeasurementCache,a=e.height,s=e.overscanColumnCount,l=e.overscanIndicesGetter,u=e.overscanRowCount,c=e.rowCount,d=e.width,f=e.isScrollingOptOut,h=t.scrollDirectionHorizontal,p=t.scrollDirectionVertical,g=t.instanceProps,m=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,v=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,y=this._isScrolling(e,t);if(this._childrenToDisplay=[],a>0&&d>0){var w=g.columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:v}),b=g.rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:m}),_=g.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:v}),S=g.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:m});this._renderedColumnStartIndex=w.start,this._renderedColumnStopIndex=w.stop,this._renderedRowStartIndex=b.start,this._renderedRowStopIndex=b.stop;var C=l({direction:"horizontal",cellCount:i,overscanCellsCount:s,scrollDirection:h,startIndex:"number"==typeof w.start?w.start:0,stopIndex:"number"==typeof w.stop?w.stop:-1}),x=l({direction:"vertical",cellCount:c,overscanCellsCount:u,scrollDirection:p,startIndex:"number"==typeof b.start?b.start:0,stopIndex:"number"==typeof b.stop?b.stop:-1}),E=C.overscanStartIndex,T=C.overscanStopIndex,k=x.overscanStartIndex,O=x.overscanStopIndex;if(o){if(!o.hasFixedHeight())for(var L=k;L<=O;L++)if(!o.has(L,0)){E=0,T=i-1;break}if(!o.hasFixedWidth())for(var R=E;R<=T;R++)if(!o.has(0,R)){k=0,O=c-1;break}}this._childrenToDisplay=r({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:g.columnSizeAndPositionManager,columnStartIndex:E,columnStopIndex:T,deferredMeasurementCache:o,horizontalOffsetAdjustment:_,isScrolling:y,isScrollingOptOut:f,parent:this,rowSizeAndPositionManager:g.rowSizeAndPositionManager,rowStartIndex:k,rowStopIndex:O,scrollLeft:v,scrollTop:m,styleCache:this._styleCache,verticalOffsetAdjustment:S,visibleColumnIndices:w,visibleRowIndices:b}),this._columnStartIndex=E,this._columnStopIndex=T,this._rowStartIndex=k,this._rowStopIndex=O}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&z(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=j(this._debounceScrollEndedCallback,e)}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex&&"number"==typeof this._deferredInvalidateRowIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,r=e.scrollTop,i=e.totalColumnsWidth,o=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,r=e.scrollTop,a=t.props,s=a.height;(0,a.onScroll)({clientHeight:s,clientWidth:a.width,scrollHeight:o,scrollLeft:n,scrollTop:r,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:r}})}},{key:"_isScrolling",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return Object.hasOwnProperty.call(e,"isScrolling")?Boolean(e.isScrolling):Boolean(t.isScrolling)}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var e=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,e({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(e){var n=e.scrollLeft,r=e.scrollTop,i=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:n,scrollTop:r});i&&(i.needToResetStyleCache=!1,this.setState(i))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollLeft(e,n)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=t._getScrollLeftForScrollToColumnStateUpdate(e,n);r&&(r.needToResetStyleCache=!1,this.setState(r))}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollTop(e,n)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,n=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var r=this._rowStartIndex;r<=this._rowStopIndex;r++)for(var i=this._columnStartIndex;i<=this._columnStopIndex;i++){var o="".concat(r,"-").concat(i);this._styleCache[o]=e[o],n&&(this._cellCache[o]=t[o])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=t._getScrollTopForScrollToRowStateUpdate(e,n);r&&(r.needToResetStyleCache=!1,this.setState(r))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var r={};0===e.columnCount&&0!==n.scrollLeft||0===e.rowCount&&0!==n.scrollTop?(r.scrollLeft=0,r.scrollTop=0):(e.scrollLeft!==n.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==n.scrollTop&&e.scrollToRow<0)&&Object.assign(r,t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var i,o,a=n.instanceProps;return r.needToResetStyleCache=!1,e.columnWidth===a.prevColumnWidth&&e.rowHeight===a.prevRowHeight||(r.needToResetStyleCache=!0),a.columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:t._getEstimatedColumnSize(e),cellSizeGetter:t._wrapSizeGetter(e.columnWidth)}),a.rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:t._getEstimatedRowSize(e),cellSizeGetter:t._wrapSizeGetter(e.rowHeight)}),0!==a.prevColumnCount&&0!==a.prevRowCount||(a.prevColumnCount=0,a.prevRowCount=0),e.autoHeight&&!1===e.isScrolling&&!0===a.prevIsScrolling&&Object.assign(r,{isScrolling:!1}),_({cellCount:a.prevColumnCount,cellSize:"number"==typeof a.prevColumnWidth?a.prevColumnWidth:null,computeMetadataCallback:function(){return a.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:"number"==typeof e.columnWidth?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:a.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){i=t._getScrollLeftForScrollToColumnStateUpdate(e,n)}}),_({cellCount:a.prevRowCount,cellSize:"number"==typeof a.prevRowHeight?a.prevRowHeight:null,computeMetadataCallback:function(){return a.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:"number"==typeof e.rowHeight?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:a.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){o=t._getScrollTopForScrollToRowStateUpdate(e,n)}}),a.prevColumnCount=e.columnCount,a.prevColumnWidth=e.columnWidth,a.prevIsScrolling=!0===e.isScrolling,a.prevRowCount=e.rowCount,a.prevRowHeight=e.rowHeight,a.prevScrollToColumn=e.scrollToColumn,a.prevScrollToRow=e.scrollToRow,a.scrollbarSize=e.getScrollbarSize(),void 0===a.scrollbarSize?(a.scrollbarSizeMeasured=!1,a.scrollbarSize=0):a.scrollbarSizeMeasured=!0,r.instanceProps=a,H({},r,{},i,{},o)}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(e){var t=e.prevState,n=e.scrollLeft,r=e.scrollTop,i={scrollPositionChangeReason:U};return"number"==typeof n&&n>=0&&(i.scrollDirectionHorizontal=n>t.scrollLeft?1:-1,i.scrollLeft=n),"number"==typeof r&&r>=0&&(i.scrollDirectionVertical=r>t.scrollTop?1:-1,i.scrollTop=r),"number"==typeof n&&n>=0&&n!==t.scrollLeft||"number"==typeof r&&r>=0&&r!==t.scrollTop?i:{}}},{key:"_wrapSizeGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var n=e.columnCount,r=e.height,i=e.scrollToAlignment,o=e.scrollToColumn,a=e.width,s=t.scrollLeft,l=t.instanceProps;if(n>0){var u=n-1,c=o<0?u:Math.min(u,o),d=l.rowSizeAndPositionManager.getTotalSize(),f=l.scrollbarSizeMeasured&&d>r?l.scrollbarSize:0;return l.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:i,containerSize:a-f,currentOffset:s,targetIndex:c})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,n){var r=n.scrollLeft,i=t._getCalculatedScrollLeft(e,n);return"number"==typeof i&&i>=0&&r!==i?t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:i,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var n=e.height,r=e.rowCount,i=e.scrollToAlignment,o=e.scrollToRow,a=e.width,s=t.scrollTop,l=t.instanceProps;if(r>0){var u=r-1,c=o<0?u:Math.min(u,o),d=l.columnSizeAndPositionManager.getTotalSize(),f=l.scrollbarSizeMeasured&&d>a?l.scrollbarSize:0;return l.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:i,containerSize:n-f,currentOffset:s,targetIndex:c})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,n){var r=n.scrollTop,i=t._getCalculatedScrollTop(e,n);return"number"==typeof i&&i>=0&&r!==i?t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:-1,scrollTop:i}):{}}}]),t}(h.PureComponent),f(M,"propTypes",null),N);f(V,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:O,containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:A,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:T,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),v(V);const G=V;function $(e){var t=e.cellCount,n=e.overscanCellsCount,r=e.scrollDirection,i=e.startIndex,o=e.stopIndex;return n=Math.max(1,n),1===r?{overscanStartIndex:Math.max(0,i-1),overscanStopIndex:Math.min(t-1,o+n)}:{overscanStartIndex:Math.max(0,i-n),overscanStopIndex:Math.min(t-1,o+1)}}var q,Y;function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Z=(Y=q=function(e){function t(){var e,n;r(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return f(s(n=l(this,(e=u(t)).call.apply(e,[this].concat(o)))),"state",{scrollToColumn:0,scrollToRow:0,instanceProps:{prevScrollToColumn:0,prevScrollToRow:0}}),f(s(n),"_columnStartIndex",0),f(s(n),"_columnStopIndex",0),f(s(n),"_rowStartIndex",0),f(s(n),"_rowStopIndex",0),f(s(n),"_onKeyDown",(function(e){var t=n.props,r=t.columnCount,i=t.disabled,o=t.mode,a=t.rowCount;if(!i){var s=n._getScrollState(),l=s.scrollToColumn,u=s.scrollToRow,c=n._getScrollState(),d=c.scrollToColumn,f=c.scrollToRow;switch(e.key){case"ArrowDown":f="cells"===o?Math.min(f+1,a-1):Math.min(n._rowStopIndex+1,a-1);break;case"ArrowLeft":d="cells"===o?Math.max(d-1,0):Math.max(n._columnStartIndex-1,0);break;case"ArrowRight":d="cells"===o?Math.min(d+1,r-1):Math.min(n._columnStopIndex+1,r-1);break;case"ArrowUp":f="cells"===o?Math.max(f-1,0):Math.max(n._rowStartIndex-1,0)}d===l&&f===u||(e.preventDefault(),n._updateScrollState({scrollToColumn:d,scrollToRow:f}))}})),f(s(n),"_onSectionRendered",(function(e){var t=e.columnStartIndex,r=e.columnStopIndex,i=e.rowStartIndex,o=e.rowStopIndex;n._columnStartIndex=t,n._columnStopIndex=r,n._rowStartIndex=i,n._rowStopIndex=o})),n}return d(t,e),o(t,[{key:"setScrollIndexes",value:function(e){var t=e.scrollToColumn,n=e.scrollToRow;this.setState({scrollToRow:n,scrollToColumn:t})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.children,r=this._getScrollState(),i=r.scrollToColumn,o=r.scrollToRow;return h.createElement("div",{className:t,onKeyDown:this._onKeyDown},n({onSectionRendered:this._onSectionRendered,scrollToColumn:i,scrollToRow:o}))}},{key:"_getScrollState",value:function(){return this.props.isControlled?this.props:this.state}},{key:"_updateScrollState",value:function(e){var t=e.scrollToColumn,n=e.scrollToRow,r=this.props,i=r.isControlled,o=r.onScrollToChange;"function"==typeof o&&o({scrollToColumn:t,scrollToRow:n}),i||this.setState({scrollToColumn:t,scrollToRow:n})}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.isControlled?{}:e.scrollToColumn!==t.instanceProps.prevScrollToColumn||e.scrollToRow!==t.instanceProps.prevScrollToRow?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(n,!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{scrollToColumn:e.scrollToColumn,scrollToRow:e.scrollToRow,instanceProps:{prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow}}):{}}}]),t}(h.PureComponent),f(q,"propTypes",null),Y);f(Z,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0}),v(Z);const J=Z;function Q(e,t){var r,i=void 0!==(r=void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:n.g).document&&r.document.attachEvent;if(!i){var o=function(){var e=r.requestAnimationFrame||r.mozRequestAnimationFrame||r.webkitRequestAnimationFrame||function(e){return r.setTimeout(e,20)};return function(t){return e(t)}}(),a=function(){var e=r.cancelAnimationFrame||r.mozCancelAnimationFrame||r.webkitCancelAnimationFrame||r.clearTimeout;return function(t){return e(t)}}(),s=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},l=function(e){if(!(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;s(this),this.__resizeRAF__&&a(this.__resizeRAF__),this.__resizeRAF__=o((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}},u=!1,c="",d="animationstart",f="Webkit Moz O ms".split(" "),h="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p=r.document.createElement("fakeelement");if(void 0!==p.style.animationName&&(u=!0),!1===u)for(var g=0;g<f.length;g++)if(void 0!==p.style[f[g]+"AnimationName"]){c="-"+f[g].toLowerCase()+"-",d=h[g],u=!0;break}var m="resizeanim",v="@"+c+"keyframes "+m+" { from { opacity: 0; } to { opacity: 0; } } ",y=c+"animation: 1ms "+m+"; "}return{addResizeListener:function(t,n){if(i)t.attachEvent("onresize",n);else{if(!t.__resizeTriggers__){var o=t.ownerDocument,a=r.getComputedStyle(t);a&&"static"==a.position&&(t.style.position="relative"),function(t){if(!t.getElementById("detectElementResize")){var n=(v||"")+".resize-triggers { "+(y||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=t.head||t.getElementsByTagName("head")[0],i=t.createElement("style");i.id="detectElementResize",i.type="text/css",null!=e&&i.setAttribute("nonce",e),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(t.createTextNode(n)),r.appendChild(i)}}(o),t.__resizeLast__={},t.__resizeListeners__=[],(t.__resizeTriggers__=o.createElement("div")).className="resize-triggers";var u='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>';if(window.trustedTypes){var c=trustedTypes.createPolicy("react-virtualized-auto-sizer",{createHTML:function(){return u}});t.__resizeTriggers__.innerHTML=c.createHTML("")}else t.__resizeTriggers__.innerHTML=u;t.appendChild(t.__resizeTriggers__),s(t),t.addEventListener("scroll",l,!0),d&&(t.__resizeTriggers__.__animationListener__=function(e){e.animationName==m&&s(t)},t.__resizeTriggers__.addEventListener(d,t.__resizeTriggers__.__animationListener__))}t.__resizeListeners__.push(n)}},removeResizeListener:function(e,t){if(i)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",l,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(d,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}var X,ee;function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(n,!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var re=(ee=X=function(e){function t(){var e,n;r(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return f(s(n=l(this,(e=u(t)).call.apply(e,[this].concat(o)))),"state",{height:n.props.defaultHeight||0,width:n.props.defaultWidth||0}),f(s(n),"_parentNode",void 0),f(s(n),"_autoSizer",void 0),f(s(n),"_window",void 0),f(s(n),"_detectElementResize",void 0),f(s(n),"_onResize",(function(){var e=n.props,t=e.disableHeight,r=e.disableWidth,i=e.onResize;if(n._parentNode){var o=n._parentNode.offsetHeight||0,a=n._parentNode.offsetWidth||0,s=(n._window||window).getComputedStyle(n._parentNode)||{},l=parseInt(s.paddingLeft,10)||0,u=parseInt(s.paddingRight,10)||0,c=parseInt(s.paddingTop,10)||0,d=parseInt(s.paddingBottom,10)||0,f=o-c-d,h=a-l-u;(!t&&n.state.height!==f||!r&&n.state.width!==h)&&(n.setState({height:o-c-d,width:a-l-u}),i({height:o,width:a}))}})),f(s(n),"_setRef",(function(e){n._autoSizer=e})),n}return d(t,e),o(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._window=this._autoSizer.parentNode.ownerDocument.defaultView,this._detectElementResize=Q(e,this._window),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.disableHeight,i=e.disableWidth,o=e.style,a=this.state,s=a.height,l=a.width,u={overflow:"visible"},c={};return r||(u.height=0,c.height=s),i||(u.width=0,c.width=l),h.createElement("div",{className:n,ref:this._setRef,style:ne({},u,{},o)},t(c))}}]),t}(h.Component),f(X,"propTypes",null),ee);f(re,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});var ie,oe,ae=n(73961),se=(oe=ie=function(e){function t(){var e,n;r(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return f(s(n=l(this,(e=u(t)).call.apply(e,[this].concat(o)))),"_child",void 0),f(s(n),"_measure",(function(){var e=n.props,t=e.cache,r=e.columnIndex,i=void 0===r?0:r,o=e.parent,a=e.rowIndex,s=void 0===a?n.props.index||0:a,l=n._getCellMeasurements(),u=l.height,c=l.width;u===t.getHeight(s,i)&&c===t.getWidth(s,i)||(t.set(s,i,c,u),o&&"function"==typeof o.recomputeGridSize&&o.recomputeGridSize({columnIndex:i,rowIndex:s}))})),f(s(n),"_registerChild",(function(e){!e||e instanceof Element||console.warn("CellMeasurer registerChild expects to be passed Element or null"),n._child=e,e&&n._maybeMeasureCell()})),n}return d(t,e),o(t,[{key:"componentDidMount",value:function(){this._maybeMeasureCell()}},{key:"componentDidUpdate",value:function(){this._maybeMeasureCell()}},{key:"render",value:function(){var e=this.props.children;return"function"==typeof e?e({measure:this._measure,registerChild:this._registerChild}):e}},{key:"_getCellMeasurements",value:function(){var e=this.props.cache,t=this._child||(0,ae.findDOMNode)(this);if(t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){var n=t.style.width,r=t.style.height;e.hasFixedWidth()||(t.style.width="auto"),e.hasFixedHeight()||(t.style.height="auto");var i=Math.ceil(t.offsetHeight),o=Math.ceil(t.offsetWidth);return n&&(t.style.width=n),r&&(t.style.height=r),{height:i,width:o}}return{height:0,width:0}}},{key:"_maybeMeasureCell",value:function(){var e=this.props,t=e.cache,n=e.columnIndex,r=void 0===n?0:n,i=e.parent,o=e.rowIndex,a=void 0===o?this.props.index||0:o;if(!t.has(a,r)){var s=this._getCellMeasurements(),l=s.height,u=s.width;t.set(a,r,u,l),i&&"function"==typeof i.invalidateCellSizeAfterRender&&i.invalidateCellSizeAfterRender({columnIndex:r,rowIndex:a})}}}]),t}(h.PureComponent),f(ie,"propTypes",null),oe);f(se,"__internalCellMeasurerFlag",!1);var le=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,e),f(this,"_cellHeightCache",{}),f(this,"_cellWidthCache",{}),f(this,"_columnWidthCache",{}),f(this,"_rowHeightCache",{}),f(this,"_defaultHeight",void 0),f(this,"_defaultWidth",void 0),f(this,"_minHeight",void 0),f(this,"_minWidth",void 0),f(this,"_keyMapper",void 0),f(this,"_hasFixedHeight",void 0),f(this,"_hasFixedWidth",void 0),f(this,"_columnCount",0),f(this,"_rowCount",0),f(this,"columnWidth",(function(e){var n=e.index,r=t._keyMapper(0,n);return void 0!==t._columnWidthCache[r]?t._columnWidthCache[r]:t._defaultWidth})),f(this,"rowHeight",(function(e){var n=e.index,r=t._keyMapper(n,0);return void 0!==t._rowHeightCache[r]?t._rowHeightCache[r]:t._defaultHeight}));var i=n.defaultHeight,o=n.defaultWidth,a=n.fixedHeight,s=n.fixedWidth,l=n.keyMapper,u=n.minHeight,c=n.minWidth;this._hasFixedHeight=!0===a,this._hasFixedWidth=!0===s,this._minHeight=u||0,this._minWidth=c||0,this._keyMapper=l||ue,this._defaultHeight=Math.max(this._minHeight,"number"==typeof i?i:30),this._defaultWidth=Math.max(this._minWidth,"number"==typeof o?o:100)}return o(e,[{key:"clear",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this._keyMapper(e,t);delete this._cellHeightCache[n],delete this._cellWidthCache[n],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={},this._rowCount=0,this._columnCount=0}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._hasFixedHeight)return this._defaultHeight;var n=this._keyMapper(e,t);return void 0!==this._cellHeightCache[n]?Math.max(this._minHeight,this._cellHeightCache[n]):this._defaultHeight}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._hasFixedWidth)return this._defaultWidth;var n=this._keyMapper(e,t);return void 0!==this._cellWidthCache[n]?Math.max(this._minWidth,this._cellWidthCache[n]):this._defaultWidth}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this._keyMapper(e,t);return void 0!==this._cellHeightCache[n]}},{key:"set",value:function(e,t,n,r){var i=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[i]=r,this._cellWidthCache[i]=n,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){if(!this._hasFixedWidth){for(var n=0,r=0;r<this._rowCount;r++)n=Math.max(n,this.getWidth(r,t));var i=this._keyMapper(0,t);this._columnWidthCache[i]=n}if(!this._hasFixedHeight){for(var o=0,a=0;a<this._columnCount;a++)o=Math.max(o,this.getHeight(e,a));var s=this._keyMapper(e,0);this._rowHeightCache[s]=o}}},{key:"defaultHeight",get:function(){return this._defaultHeight}},{key:"defaultWidth",get:function(){return this._defaultWidth}}]),e}();function ue(e,t){return"".concat(e,"-").concat(t)}function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function de(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(n,!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fe="observed",he="requested",pe=function(e){function t(){var e,n;r(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return f(s(n=l(this,(e=u(t)).call.apply(e,[this].concat(o)))),"state",{isScrolling:!1,scrollLeft:0,scrollTop:0}),f(s(n),"_calculateSizeAndPositionDataOnNextUpdate",!1),f(s(n),"_onSectionRenderedMemoizer",E()),f(s(n),"_onScrollMemoizer",E(!1)),f(s(n),"_invokeOnSectionRenderedHelper",(function(){var e=n.props,t=e.cellLayoutManager,r=e.onSectionRendered;n._onSectionRenderedMemoizer({callback:r,indices:{indices:t.getLastRenderedIndices()}})})),f(s(n),"_setScrollingContainerRef",(function(e){n._scrollingContainer=e})),f(s(n),"_updateScrollPositionForScrollToCell",(function(){var e=n.props,t=e.cellLayoutManager,r=e.height,i=e.scrollToAlignment,o=e.scrollToCell,a=e.width,s=n.state,l=s.scrollLeft,u=s.scrollTop;if(o>=0){var c=t.getScrollPositionForCell({align:i,cellIndex:o,height:r,scrollLeft:l,scrollTop:u,width:a});c.scrollLeft===l&&c.scrollTop===u||n._setScrollPosition(c)}})),f(s(n),"_onScroll",(function(e){if(e.target===n._scrollingContainer){n._enablePointerEventsAfterDelay();var t=n.props,r=t.cellLayoutManager,i=t.height,o=t.isScrollingChange,a=t.width,s=n._scrollbarSize,l=r.getTotalSize(),u=l.height,c=l.width,d=Math.max(0,Math.min(c-a+s,e.target.scrollLeft)),f=Math.max(0,Math.min(u-i+s,e.target.scrollTop));if(n.state.scrollLeft!==d||n.state.scrollTop!==f){var h=e.cancelable?fe:he;n.state.isScrolling||o(!0),n.setState({isScrolling:!0,scrollLeft:d,scrollPositionChangeReason:h,scrollTop:f})}n._invokeOnScrollMemoizer({scrollLeft:d,scrollTop:f,totalWidth:c,totalHeight:u})}})),n._scrollbarSize=A(),void 0===n._scrollbarSize?(n._scrollbarSizeMeasured=!1,n._scrollbarSize=0):n._scrollbarSizeMeasured=!0,n}return d(t,e),o(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.scrollLeft,r=e.scrollToCell,i=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=A(),this._scrollbarSizeMeasured=!0,this.setState({})),r>=0?this._updateScrollPositionForScrollToCell():(n>=0||i>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:i}),this._invokeOnSectionRenderedHelper();var o=t.getTotalSize(),a=o.height,s=o.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:i||0,totalHeight:a,totalWidth:s})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.height,i=n.scrollToAlignment,o=n.scrollToCell,a=n.width,s=this.state,l=s.scrollLeft,u=s.scrollPositionChangeReason,c=s.scrollTop;u===he&&(l>=0&&l!==t.scrollLeft&&l!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=l),c>=0&&c!==t.scrollTop&&c!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=c)),r===e.height&&i===e.scrollToAlignment&&o===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,n=e.cellCount,r=e.cellLayoutManager,i=e.className,o=e.height,a=e.horizontalOverscanSize,s=e.id,l=e.noContentRenderer,u=e.style,c=e.verticalOverscanSize,d=e.width,f=this.state,p=f.isScrolling,g=f.scrollLeft,m=f.scrollTop;(this._lastRenderedCellCount!==n||this._lastRenderedCellLayoutManager!==r||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=n,this._lastRenderedCellLayoutManager=r,this._calculateSizeAndPositionDataOnNextUpdate=!1,r.calculateSizeAndPositionData());var v=r.getTotalSize(),y=v.height,w=v.width,_=Math.max(0,g-a),S=Math.max(0,m-c),C=Math.min(w,g+d+a),x=Math.min(y,m+o+c),E=o>0&&d>0?r.cellRenderers({height:x-S,isScrolling:p,width:C-_,x:_,y:S}):[],T={boxSizing:"border-box",direction:"ltr",height:t?"auto":o,position:"relative",WebkitOverflowScrolling:"touch",width:d,willChange:"transform"},k=y>o?this._scrollbarSize:0,O=w>d?this._scrollbarSize:0;return T.overflowX=w+k<=d?"hidden":"auto",T.overflowY=y+O<=o?"hidden":"auto",h.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:b("ReactVirtualized__Collection",i),id:s,onScroll:this._onScroll,role:"grid",style:de({},T,{},u),tabIndex:0},n>0&&h.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:y,maxHeight:y,maxWidth:w,overflow:"hidden",pointerEvents:p?"none":"",width:w}},E),0===n&&l())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout((function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})}),150)}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,r=e.scrollTop,i=e.totalHeight,o=e.totalWidth;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,r=e.scrollTop,a=t.props,s=a.height;(0,a.onScroll)({clientHeight:s,clientWidth:a.width,scrollHeight:i,scrollLeft:n,scrollTop:r,scrollWidth:o})},indices:{scrollLeft:n,scrollTop:r}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,r={scrollPositionChangeReason:he};t>=0&&(r.scrollLeft=t),n>=0&&(r.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(r)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 0!==e.cellCount||0===t.scrollLeft&&0===t.scrollTop?e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop?e.scrollTop:t.scrollTop,scrollPositionChangeReason:he}:null:{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:he}}}]),t}(h.PureComponent);f(pe,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0}),pe.propTypes={},v(pe);const ge=pe;var me=function(){function e(t){var n=t.height,i=t.width,o=t.x,a=t.y;r(this,e),this.height=n,this.width=i,this.x=o,this.y=a,this._indexMap={},this._indices=[]}return o(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}]),e}(),ve=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;r(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return o(e,[{key:"getCellIndices",value:function(e){var t=e.height,n=e.width,r=e.x,i=e.y,o={};return this.getSections({height:t,width:n,x:r,y:i}).forEach((function(e){return e.getCellIndices().forEach((function(e){o[e]=e}))})),Object.keys(o).map((function(e){return o[e]}))}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,n=e.width,r=e.x,i=e.y,o=Math.floor(r/this._sectionSize),a=Math.floor((r+n-1)/this._sectionSize),s=Math.floor(i/this._sectionSize),l=Math.floor((i+t-1)/this._sectionSize),u=[],c=o;c<=a;c++)for(var d=s;d<=l;d++){var f="".concat(c,".").concat(d);this._sections[f]||(this._sections[f]=new me({height:this._sectionSize,width:this._sectionSize,x:c*this._sectionSize,y:d*this._sectionSize})),u.push(this._sections[f])}return u}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var e=this;return Object.keys(this._sections).map((function(t){return e._sections[t].toString()}))}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,n=e.index;this._cellMetadata[n]=t,this.getSections(t).forEach((function(e){return e.addCellIndex({index:n})}))}}]),e}();function ye(e){var t=e.align,n=void 0===t?"auto":t,r=e.cellOffset,i=e.cellSize,o=e.containerSize,a=e.currentOffset,s=r,l=s-o+i;switch(n){case"start":return s;case"end":return l;case"center":return s-(o-i)/2;default:return Math.max(l,Math.min(s,a))}}var we=function(e){function t(e,n){var i;return r(this,t),(i=l(this,u(t).call(this,e,n)))._cellMetadata=[],i._lastRenderedCellIndices=[],i._cellCache=[],i._isScrollingChange=i._isScrollingChange.bind(s(i)),i._setCollectionViewRef=i._setCollectionViewRef.bind(s(i)),i}return d(t,e),o(t,[{key:"forceUpdate",value:function(){void 0!==this._collectionView&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var e=y({},this.props);return h.createElement(ge,y({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},e))}},{key:"calculateSizeAndPositionData",value:function(){var e=this.props,t=function(e){for(var t=e.cellCount,n=e.cellSizeAndPositionGetter,r=[],i=new ve(e.sectionSize),o=0,a=0,s=0;s<t;s++){var l=n({index:s});if(null==l.height||isNaN(l.height)||null==l.width||isNaN(l.width)||null==l.x||isNaN(l.x)||null==l.y||isNaN(l.y))throw Error("Invalid metadata returned for cell ".concat(s,":\n x:").concat(l.x,", y:").concat(l.y,", width:").concat(l.width,", height:").concat(l.height));o=Math.max(o,l.y+l.height),a=Math.max(a,l.x+l.width),r[s]=l,i.registerCell({cellMetadatum:l,index:s})}return{cellMetadata:r,height:o,sectionManager:i,width:a}}({cellCount:e.cellCount,cellSizeAndPositionGetter:e.cellSizeAndPositionGetter,sectionSize:e.sectionSize});this._cellMetadata=t.cellMetadata,this._sectionManager=t.sectionManager,this._height=t.height,this._width=t.width}},{key:"getLastRenderedIndices",value:function(){return this._lastRenderedCellIndices}},{key:"getScrollPositionForCell",value:function(e){var t=e.align,n=e.cellIndex,r=e.height,i=e.scrollLeft,o=e.scrollTop,a=e.width,s=this.props.cellCount;if(n>=0&&n<s){var l=this._cellMetadata[n];i=ye({align:t,cellOffset:l.x,cellSize:l.width,containerSize:a,currentOffset:i,targetIndex:n}),o=ye({align:t,cellOffset:l.y,cellSize:l.height,containerSize:r,currentOffset:o,targetIndex:n})}return{scrollLeft:i,scrollTop:o}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(e){var t=this,n=e.height,r=e.isScrolling,i=e.width,o=e.x,a=e.y,s=this.props,l=s.cellGroupRenderer,u=s.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:n,width:i,x:o,y:a}),l({cellCache:this._cellCache,cellRenderer:u,cellSizeAndPositionGetter:function(e){var n=e.index;return t._sectionManager.getCellMetadata({index:n})},indices:this._lastRenderedCellIndices,isScrolling:r})}},{key:"_isScrollingChange",value:function(e){e||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(e){this._collectionView=e}}]),t}(h.PureComponent);f(we,"defaultProps",{"aria-label":"grid",cellGroupRenderer:function(e){var t=e.cellCache,n=e.cellRenderer,r=e.cellSizeAndPositionGetter,i=e.indices,o=e.isScrolling;return i.map((function(e){var i=r({index:e}),a={index:e,isScrolling:o,key:e,style:{height:i.height,left:i.x,position:"absolute",top:i.y,width:i.width}};return o?(e in t||(t[e]=n(a)),t[e]):n(a)})).filter((function(e){return!!e}))}}),we.propTypes={};var be=function(e){function t(e,n){var i;return r(this,t),(i=l(this,u(t).call(this,e,n)))._registerChild=i._registerChild.bind(s(i)),i}return d(t,e),o(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.columnMaxWidth,r=t.columnMinWidth,i=t.columnCount,o=t.width;n===e.columnMaxWidth&&r===e.columnMinWidth&&i===e.columnCount&&o===e.width||this._registeredChild&&this._registeredChild.recomputeGridSize()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.columnMaxWidth,r=e.columnMinWidth,i=e.columnCount,o=e.width,a=r||1,s=n?Math.min(n,o):o,l=o/i;return l=Math.max(a,l),l=Math.min(s,l),l=Math.floor(l),t({adjustedWidth:Math.min(o,l*i),columnWidth:l,getColumnWidth:function(){return l},registerChild:this._registerChild})}},{key:"_registerChild",value:function(e){if(e&&"function"!=typeof e.recomputeGridSize)throw Error("Unexpected child type registered; only Grid/MultiGrid children are supported.");this._registeredChild=e,this._registeredChild&&this._registeredChild.recomputeGridSize()}}]),t}(h.PureComponent);function _e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Se(e,t){if(e){if("string"==typeof e)return _e(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_e(e,t):void 0}}be.propTypes={};var Ce=function(e){function t(e,n){var i;return r(this,t),(i=l(this,u(t).call(this,e,n)))._loadMoreRowsMemoizer=E(),i._onRowsRendered=i._onRowsRendered.bind(s(i)),i._registerChild=i._registerChild.bind(s(i)),i}return d(t,e),o(t,[{key:"resetLoadMoreRowsCache",value:function(e){this._loadMoreRowsMemoizer=E(),e&&this._doStuff(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,n=this.props.loadMoreRows;e.forEach((function(e){var r=n(e);r&&r.then((function(){var n;(n={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex}).startIndex>n.lastRenderedStopIndex||n.stopIndex<n.lastRenderedStartIndex||t._registeredChild&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;n?n.call(e,t):e.forceUpdate()}(t._registeredChild,t._lastRenderedStartIndex)}))}))}},{key:"_onRowsRendered",value:function(e){var t=e.startIndex,n=e.stopIndex;this._lastRenderedStartIndex=t,this._lastRenderedStopIndex=n,this._doStuff(t,n)}},{key:"_doStuff",value:function(e,t){var n,r,i=this,o=this.props,a=o.isRowLoaded,s=o.minimumBatchSize,l=o.rowCount,u=o.threshold,c=function(e){for(var t=e.isRowLoaded,n=e.minimumBatchSize,r=e.rowCount,i=e.stopIndex,o=[],a=null,s=null,l=e.startIndex;l<=i;l++)t({index:l})?null!==s&&(o.push({startIndex:a,stopIndex:s}),a=s=null):(s=l,null===a&&(a=l));if(null!==s){for(var u=Math.min(Math.max(s,a+n-1),r-1),c=s+1;c<=u&&!t({index:c});c++)s=c;o.push({startIndex:a,stopIndex:s})}if(o.length)for(var d=o[0];d.stopIndex-d.startIndex+1<n&&d.startIndex>0;){var f=d.startIndex-1;if(t({index:f}))break;d.startIndex=f}return o}({isRowLoaded:a,minimumBatchSize:s,rowCount:l,startIndex:Math.max(0,e-u),stopIndex:Math.min(l-1,t+u)}),d=(n=[]).concat.apply(n,function(e){if(Array.isArray(e))return _e(e)}(r=c.map((function(e){return[e.startIndex,e.stopIndex]})))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||Se(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());this._loadMoreRowsMemoizer({callback:function(){i._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:d}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(h.PureComponent);f(Ce,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),Ce.propTypes={};var xe,Ee,Te=(Ee=xe=function(e){function t(){var e,n;r(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return f(s(n=l(this,(e=u(t)).call.apply(e,[this].concat(o)))),"Grid",void 0),f(s(n),"_cellRenderer",(function(e){var t=e.parent,r=e.rowIndex,i=e.style,o=e.isScrolling,a=e.isVisible,s=e.key,l=n.props.rowRenderer,u=Object.getOwnPropertyDescriptor(i,"width");return u&&u.writable&&(i.width="100%"),l({index:r,style:i,isScrolling:o,isVisible:a,key:s,parent:t})})),f(s(n),"_setRef",(function(e){n.Grid=e})),f(s(n),"_onScroll",(function(e){var t=e.clientHeight,r=e.scrollHeight,i=e.scrollTop;(0,n.props.onScroll)({clientHeight:t,scrollHeight:r,scrollTop:i})})),f(s(n),"_onSectionRendered",(function(e){var t=e.rowOverscanStartIndex,r=e.rowOverscanStopIndex,i=e.rowStartIndex,o=e.rowStopIndex;(0,n.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:r,startIndex:i,stopIndex:o})})),n}return d(t,e),o(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,n=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:n,columnIndex:0}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:n,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,i=void 0===r?0:r;this.Grid&&this.Grid.recomputeGridSize({rowIndex:i,columnIndex:n})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e,columnIndex:0})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,r=e.scrollToIndex,i=e.width,o=b("ReactVirtualized__List",t);return h.createElement(G,y({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:o,columnWidth:i,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:r}))}}]),t}(h.PureComponent),f(xe,"propTypes",null),Ee);f(Te,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:$,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});const ke=function(e,t,n,r,i){return"function"==typeof n?function(e,t,n,r,i){for(var o=n+1;t<=n;){var a=t+n>>>1;i(e[a],r)>=0?(o=a,n=a-1):t=a+1}return o}(e,void 0===r?0:0|r,void 0===i?e.length-1:0|i,t,n):function(e,t,n,r){for(var i=n+1;t<=n;){var o=t+n>>>1;e[o]>=r?(i=o,n=o-1):t=o+1}return i}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)};function Oe(e,t,n,r,i){this.mid=e,this.left=t,this.right=n,this.leftPoints=r,this.rightPoints=i,this.count=(t?t.count:0)+(n?n.count:0)+r.length}var Le=Oe.prototype;function Re(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function Ie(e,t){var n=je(t);e.mid=n.mid,e.left=n.left,e.right=n.right,e.leftPoints=n.leftPoints,e.rightPoints=n.rightPoints,e.count=n.count}function Ae(e,t){var n=e.intervals([]);n.push(t),Ie(e,n)}function Me(e,t){var n=e.intervals([]),r=n.indexOf(t);return r<0?0:(n.splice(r,1),Ie(e,n),1)}function Ne(e,t,n){for(var r=0;r<e.length&&e[r][0]<=t;++r){var i=n(e[r]);if(i)return i}}function Pe(e,t,n){for(var r=e.length-1;r>=0&&e[r][1]>=t;--r){var i=n(e[r]);if(i)return i}}function De(e,t){for(var n=0;n<e.length;++n){var r=t(e[n]);if(r)return r}}function Fe(e,t){return e-t}function We(e,t){return e[0]-t[0]||e[1]-t[1]}function ze(e,t){return e[1]-t[1]||e[0]-t[0]}function je(e){if(0===e.length)return null;for(var t=[],n=0;n<e.length;++n)t.push(e[n][0],e[n][1]);t.sort(Fe);var r=t[t.length>>1],i=[],o=[],a=[];for(n=0;n<e.length;++n){var s=e[n];s[1]<r?i.push(s):r<s[0]?o.push(s):a.push(s)}var l=a,u=a.slice();return l.sort(We),u.sort(ze),new Oe(r,je(i),je(o),l,u)}function Be(e){this.root=e}Le.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e},Le.insert=function(e){var t=this.count-this.leftPoints.length;if(this.count+=1,e[1]<this.mid)this.left?4*(this.left.count+1)>3*(t+1)?Ae(this,e):this.left.insert(e):this.left=je([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?Ae(this,e):this.right.insert(e):this.right=je([e]);else{var n=ke(this.leftPoints,e,We),r=ke(this.rightPoints,e,ze);this.leftPoints.splice(n,0,e),this.rightPoints.splice(r,0,e)}},Le.remove=function(e){var t=this.count-this.leftPoints;if(e[1]<this.mid)return this.left?4*(this.right?this.right.count:0)>3*(t-1)?Me(this,e):2===(o=this.left.remove(e))?(this.left=null,this.count-=1,1):(1===o&&(this.count-=1),o):0;if(e[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(t-1)?Me(this,e):2===(o=this.right.remove(e))?(this.right=null,this.count-=1,1):(1===o&&(this.count-=1),o):0;if(1===this.count)return this.leftPoints[0]===e?2:0;if(1===this.leftPoints.length&&this.leftPoints[0]===e){if(this.left&&this.right){for(var n=this,r=this.left;r.right;)n=r,r=r.right;if(n===this)r.right=this.right;else{var i=this.left,o=this.right;n.count-=r.count,n.right=r.left,r.left=i,r.right=o}Re(this,r),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?Re(this,this.left):Re(this,this.right);return 1}for(i=ke(this.leftPoints,e,We);i<this.leftPoints.length&&this.leftPoints[i][0]===e[0];++i)if(this.leftPoints[i]===e)for(this.count-=1,this.leftPoints.splice(i,1),o=ke(this.rightPoints,e,ze);o<this.rightPoints.length&&this.rightPoints[o][1]===e[1];++o)if(this.rightPoints[o]===e)return this.rightPoints.splice(o,1),1;return 0},Le.queryPoint=function(e,t){return e<this.mid?this.left&&(n=this.left.queryPoint(e,t))?n:Ne(this.leftPoints,e,t):e>this.mid?this.right&&(n=this.right.queryPoint(e,t))?n:Pe(this.rightPoints,e,t):De(this.leftPoints,t);var n},Le.queryInterval=function(e,t,n){var r;return e<this.mid&&this.left&&(r=this.left.queryInterval(e,t,n))||t>this.mid&&this.right&&(r=this.right.queryInterval(e,t,n))?r:t<this.mid?Ne(this.leftPoints,t,n):e>this.mid?Pe(this.rightPoints,e,n):De(this.leftPoints,n)};var He=Be.prototype;He.insert=function(e){this.root?this.root.insert(e):this.root=new Oe(e[0],null,null,[e],[e])},He.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),0!==t}return!1},He.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},He.queryInterval=function(e,t,n){if(e<=t&&this.root)return this.root.queryInterval(e,t,n)},Object.defineProperty(He,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(He,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var Ue,Ve,Ge=function(){function e(){r(this,e),f(this,"_columnSizeMap",{}),f(this,"_intervalTree",new Be(null)),f(this,"_leftMap",{})}return o(e,[{key:"estimateTotalHeight",value:function(e,t,n){var r=e-this.count;return this.tallestColumnSize+Math.ceil(r/t)*n}},{key:"range",value:function(e,t,n){var r=this;this._intervalTree.queryInterval(e,e+t,(function(e){var t,i,o=(i=3,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(t,i)||Se(t,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=o[0],s=(o[1],o[2]);return n(s,r._leftMap[s],a)}))}},{key:"setPosition",value:function(e,t,n,r){this._intervalTree.insert([n,n+r,e]),this._leftMap[e]=t;var i=this._columnSizeMap,o=i[t];i[t]=void 0===o?n+r:Math.max(o,n+r)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var n in e){var r=e[n];t=0===t?r:Math.min(t,r)}return t}},{key:"tallestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var n in e){var r=e[n];t=Math.max(t,r)}return t}}]),e}();function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$e(n,!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$e(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ye=(Ve=Ue=function(e){function t(){var e,n;r(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return f(s(n=l(this,(e=u(t)).call.apply(e,[this].concat(o)))),"state",{isScrolling:!1,scrollTop:0}),f(s(n),"_debounceResetIsScrollingId",void 0),f(s(n),"_invalidateOnUpdateStartIndex",null),f(s(n),"_invalidateOnUpdateStopIndex",null),f(s(n),"_positionCache",new Ge),f(s(n),"_startIndex",null),f(s(n),"_startIndexMemoized",null),f(s(n),"_stopIndex",null),f(s(n),"_stopIndexMemoized",null),f(s(n),"_debounceResetIsScrollingCallback",(function(){n.setState({isScrolling:!1})})),f(s(n),"_setScrollingContainerRef",(function(e){n._scrollingContainer=e})),f(s(n),"_onScroll",(function(e){var t=n.props.height,r=e.currentTarget.scrollTop,i=Math.min(Math.max(0,n._getEstimatedTotalHeight()-t),r);r===i&&(n._debounceResetIsScrolling(),n.state.scrollTop!==i&&n.setState({isScrolling:!0,scrollTop:i}))})),n}return d(t,e),o(t,[{key:"clearCellPositions",value:function(){this._positionCache=new Ge,this.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.rowIndex;null===this._invalidateOnUpdateStartIndex?(this._invalidateOnUpdateStartIndex=t,this._invalidateOnUpdateStopIndex=t):(this._invalidateOnUpdateStartIndex=Math.min(this._invalidateOnUpdateStartIndex,t),this._invalidateOnUpdateStopIndex=Math.max(this._invalidateOnUpdateStopIndex,t))}},{key:"recomputeCellPositions",value:function(){var e=this._positionCache.count-1;this._positionCache=new Ge,this._populatePositionCache(0,e),this.forceUpdate()}},{key:"componentDidMount",value:function(){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback()}},{key:"componentDidUpdate",value:function(e,t){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback(),this.props.scrollTop!==e.scrollTop&&this._debounceResetIsScrolling()}},{key:"componentWillUnmount",value:function(){this._debounceResetIsScrollingId&&z(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.autoHeight,i=n.cellCount,o=n.cellMeasurerCache,a=n.cellRenderer,s=n.className,l=n.height,u=n.id,c=n.keyMapper,d=n.overscanByPixels,p=n.role,g=n.style,m=n.tabIndex,v=n.width,y=n.rowDirection,w=this.state,_=w.isScrolling,S=w.scrollTop,C=[],x=this._getEstimatedTotalHeight(),E=this._positionCache.shortestColumnSize,T=this._positionCache.count,k=0;if(this._positionCache.range(Math.max(0,S-d),l+2*d,(function(n,r,i){var s;void 0===e?(k=n,e=n):(k=Math.min(k,n),e=Math.max(e,n)),C.push(a({index:n,isScrolling:_,key:c(n),parent:t,style:(s={height:o.getHeight(n)},f(s,"ltr"===y?"left":"right",r),f(s,"position","absolute"),f(s,"top",i),f(s,"width",o.getWidth(n)),s)}))})),E<S+l+d&&T<i)for(var O=Math.min(i-T,Math.ceil((S+l+d-E)/o.defaultHeight*v/o.defaultWidth)),L=T;L<T+O;L++)e=L,C.push(a({index:L,isScrolling:_,key:c(L),parent:this,style:{width:o.getWidth(L)}}));return this._startIndex=k,this._stopIndex=e,h.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:b("ReactVirtualized__Masonry",s),id:u,onScroll:this._onScroll,role:p,style:qe({boxSizing:"border-box",direction:"ltr",height:r?"auto":l,overflowX:"hidden",overflowY:x<l?"hidden":"auto",position:"relative",width:v,WebkitOverflowScrolling:"touch",willChange:"transform"},g),tabIndex:m},h.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:x,maxWidth:"100%",maxHeight:x,overflow:"hidden",pointerEvents:_?"none":"",position:"relative"}},C))}},{key:"_checkInvalidateOnUpdate",value:function(){if("number"==typeof this._invalidateOnUpdateStartIndex){var e=this._invalidateOnUpdateStartIndex,t=this._invalidateOnUpdateStopIndex;this._invalidateOnUpdateStartIndex=null,this._invalidateOnUpdateStopIndex=null,this._populatePositionCache(e,t),this.forceUpdate()}}},{key:"_debounceResetIsScrolling",value:function(){var e=this.props.scrollingResetTimeInterval;this._debounceResetIsScrollingId&&z(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=j(this._debounceResetIsScrollingCallback,e)}},{key:"_getEstimatedTotalHeight",value:function(){var e=this.props,t=e.cellCount,n=e.cellMeasurerCache,r=e.width,i=Math.max(1,Math.floor(r/n.defaultWidth));return this._positionCache.estimateTotalHeight(t,i,n.defaultHeight)}},{key:"_invokeOnScrollCallback",value:function(){var e=this.props,t=e.height,n=e.onScroll,r=this.state.scrollTop;this._onScrollMemoized!==r&&(n({clientHeight:t,scrollHeight:this._getEstimatedTotalHeight(),scrollTop:r}),this._onScrollMemoized=r)}},{key:"_invokeOnCellsRenderedCallback",value:function(){this._startIndexMemoized===this._startIndex&&this._stopIndexMemoized===this._stopIndex||((0,this.props.onCellsRendered)({startIndex:this._startIndex,stopIndex:this._stopIndex}),this._startIndexMemoized=this._startIndex,this._stopIndexMemoized=this._stopIndex)}},{key:"_populatePositionCache",value:function(e,t){for(var n=this.props,r=n.cellMeasurerCache,i=n.cellPositioner,o=e;o<=t;o++){var a=i(o),s=a.left,l=a.top;this._positionCache.setPosition(o,s,l,r.getHeight(o))}}}],[{key:"getDerivedStateFromProps",value:function(e,t){return void 0!==e.scrollTop&&t.scrollTop!==e.scrollTop?{isScrolling:!0,scrollTop:e.scrollTop}:null}}]),t}(h.PureComponent),f(Ue,"propTypes",null),Ve);function Ke(){}f(Ye,"defaultProps",{autoHeight:!1,keyMapper:function(e){return e},onCellsRendered:Ke,onScroll:Ke,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:150,style:{},tabIndex:0,rowDirection:"ltr"}),v(Ye);const Ze=Ye;function Je(e){var t,n=e.cellMeasurerCache,r=e.columnCount,i=e.columnWidth,o=e.spacer,a=void 0===o?0:o;function s(e){for(var r=0,o=1;o<t.length;o++)t[o]<t[r]&&(r=o);var s=r*(i+a),l=t[r]||0;return t[r]=l+n.getHeight(e)+a,{left:s,top:l}}function l(){t=[];for(var e=0;e<r;e++)t[e]=0}return l(),s.reset=function(e){r=e.columnCount,i=e.columnWidth,a=e.spacer,l()},s}var Qe=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,e),f(this,"_cellMeasurerCache",void 0),f(this,"_columnIndexOffset",void 0),f(this,"_rowIndexOffset",void 0),f(this,"columnWidth",(function(e){var n=e.index;t._cellMeasurerCache.columnWidth({index:n+t._columnIndexOffset})})),f(this,"rowHeight",(function(e){var n=e.index;t._cellMeasurerCache.rowHeight({index:n+t._rowIndexOffset})}));var i=n.cellMeasurerCache,o=n.columnIndexOffset,a=void 0===o?0:o,s=n.rowIndexOffset,l=void 0===s?0:s;this._cellMeasurerCache=i,this._columnIndexOffset=a,this._rowIndexOffset=l}return o(e,[{key:"clear",value:function(e,t){this._cellMeasurerCache.clear(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getHeight(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getWidth(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.has(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"set",value:function(e,t,n,r){this._cellMeasurerCache.set(e+this._rowIndexOffset,t+this._columnIndexOffset,n,r)}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}}]),e}();function Xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xe(n,!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xe(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var tt=function(e){function t(e,n){var i;r(this,t),f(s(i=l(this,u(t).call(this,e,n))),"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),f(s(i),"_deferredInvalidateColumnIndex",null),f(s(i),"_deferredInvalidateRowIndex",null),f(s(i),"_bottomLeftGridRef",(function(e){i._bottomLeftGrid=e})),f(s(i),"_bottomRightGridRef",(function(e){i._bottomRightGrid=e})),f(s(i),"_cellRendererBottomLeftGrid",(function(e){var t=e.rowIndex,n=S(e,["rowIndex"]),r=i.props,o=r.cellRenderer,a=r.fixedRowCount;return t===r.rowCount-a?h.createElement("div",{key:n.key,style:et({},n.style,{height:20})}):o(et({},n,{parent:s(i),rowIndex:t+a}))})),f(s(i),"_cellRendererBottomRightGrid",(function(e){var t=e.columnIndex,n=e.rowIndex,r=S(e,["columnIndex","rowIndex"]),o=i.props,a=o.cellRenderer,l=o.fixedColumnCount,u=o.fixedRowCount;return a(et({},r,{columnIndex:t+l,parent:s(i),rowIndex:n+u}))})),f(s(i),"_cellRendererTopRightGrid",(function(e){var t=e.columnIndex,n=S(e,["columnIndex"]),r=i.props,o=r.cellRenderer,a=r.columnCount,l=r.fixedColumnCount;return t===a-l?h.createElement("div",{key:n.key,style:et({},n.style,{width:20})}):o(et({},n,{columnIndex:t+l,parent:s(i)}))})),f(s(i),"_columnWidthRightGrid",(function(e){var t=e.index,n=i.props,r=n.columnCount,o=n.fixedColumnCount,a=n.columnWidth,s=i.state,l=s.scrollbarSize;return s.showHorizontalScrollbar&&t===r-o?l:"function"==typeof a?a({index:t+o}):a})),f(s(i),"_onScroll",(function(e){var t=e.scrollLeft,n=e.scrollTop;i.setState({scrollLeft:t,scrollTop:n});var r=i.props.onScroll;r&&r(e)})),f(s(i),"_onScrollbarPresenceChange",(function(e){var t=e.horizontal,n=e.size,r=e.vertical,o=i.state,a=o.showHorizontalScrollbar,s=o.showVerticalScrollbar;if(t!==a||r!==s){i.setState({scrollbarSize:n,showHorizontalScrollbar:t,showVerticalScrollbar:r});var l=i.props.onScrollbarPresenceChange;"function"==typeof l&&l({horizontal:t,size:n,vertical:r})}})),f(s(i),"_onScrollLeft",(function(e){var t=e.scrollLeft;i._onScroll({scrollLeft:t,scrollTop:i.state.scrollTop})})),f(s(i),"_onScrollTop",(function(e){var t=e.scrollTop;i._onScroll({scrollTop:t,scrollLeft:i.state.scrollLeft})})),f(s(i),"_rowHeightBottomGrid",(function(e){var t=e.index,n=i.props,r=n.fixedRowCount,o=n.rowCount,a=n.rowHeight,s=i.state,l=s.scrollbarSize;return s.showVerticalScrollbar&&t===o-r?l:"function"==typeof a?a({index:t+r}):a})),f(s(i),"_topLeftGridRef",(function(e){i._topLeftGrid=e})),f(s(i),"_topRightGridRef",(function(e){i._topRightGrid=e}));var o=e.deferredMeasurementCache,a=e.fixedColumnCount,c=e.fixedRowCount;return i._maybeCalculateCachedStyles(!0),o&&(i._deferredMeasurementCacheBottomLeftGrid=c>0?new Qe({cellMeasurerCache:o,columnIndexOffset:0,rowIndexOffset:c}):o,i._deferredMeasurementCacheBottomRightGrid=a>0||c>0?new Qe({cellMeasurerCache:o,columnIndexOffset:a,rowIndexOffset:c}):o,i._deferredMeasurementCacheTopRightGrid=a>0?new Qe({cellMeasurerCache:o,columnIndexOffset:a,rowIndexOffset:0}):o),i}return d(t,e),o(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,i=void 0===r?0:r;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,i):i}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,i=void 0===r?0:r,o=this.props,a=o.fixedColumnCount,s=o.fixedRowCount,l=Math.max(0,n-a),u=Math.max(0,i-s);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:u}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:l,rowIndex:u}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:i}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:l,rowIndex:i}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.scrollLeft,n=e.scrollTop;if(t>0||n>0){var r={};t>0&&(r.scrollLeft=t),n>0&&(r.scrollTop=n),this.setState(r)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered,r=(e.onScrollbarPresenceChange,e.scrollLeft,e.scrollToColumn),i=(e.scrollTop,e.scrollToRow),o=S(e,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),0===this.props.width||0===this.props.height)return null;var a=this.state,s=a.scrollLeft,l=a.scrollTop;return h.createElement("div",{style:this._containerOuterStyle},h.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(o),this._renderTopRightGrid(et({},o,{onScroll:t,scrollLeft:s}))),h.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(et({},o,{onScroll:t,scrollTop:l})),this._renderBottomRightGrid(et({},o,{onScroll:t,onSectionRendered:n,scrollLeft:s,scrollToColumn:r,scrollToRow:i,scrollTop:l}))))}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof n){for(var r=0,i=0;i<t;i++)r+=n({index:i});this._leftGridWidth=r}else this._leftGridWidth=n*t;return this._leftGridWidth}},{key:"_getRightGridWidth",value:function(e){return e.width-this._getLeftGridWidth(e)}},{key:"_getTopGridHeight",value:function(e){var t=e.fixedRowCount,n=e.rowHeight;if(null==this._topGridHeight)if("function"==typeof n){for(var r=0,i=0;i<t;i++)r+=n({index:i});this._topGridHeight=r}else this._topGridHeight=n*t;return this._topGridHeight}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t}),this.forceUpdate()}}},{key:"_maybeCalculateCachedStyles",value:function(e){var t=this.props,n=t.columnWidth,r=t.enableFixedColumnScroll,i=t.enableFixedRowScroll,o=t.height,a=t.fixedColumnCount,s=t.fixedRowCount,l=t.rowHeight,u=t.style,c=t.styleBottomLeftGrid,d=t.styleBottomRightGrid,f=t.styleTopLeftGrid,h=t.styleTopRightGrid,p=t.width,g=e||o!==this._lastRenderedHeight||p!==this._lastRenderedWidth,m=e||n!==this._lastRenderedColumnWidth||a!==this._lastRenderedFixedColumnCount,v=e||s!==this._lastRenderedFixedRowCount||l!==this._lastRenderedRowHeight;(e||g||u!==this._lastRenderedStyle)&&(this._containerOuterStyle=et({height:o,overflow:"visible",width:p},u)),(e||g||v)&&(this._containerTopStyle={height:this._getTopGridHeight(this.props),position:"relative",width:p},this._containerBottomStyle={height:o-this._getTopGridHeight(this.props),overflow:"visible",position:"relative",width:p}),(e||c!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=et({left:0,overflowX:"hidden",overflowY:r?"auto":"hidden",position:"absolute"},c)),(e||m||d!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=et({left:this._getLeftGridWidth(this.props),position:"absolute"},d)),(e||f!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=et({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},f)),(e||m||h!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=et({left:this._getLeftGridWidth(this.props),overflowX:i?"auto":"hidden",overflowY:"hidden",position:"absolute",top:0},h)),this._lastRenderedColumnWidth=n,this._lastRenderedFixedColumnCount=a,this._lastRenderedFixedRowCount=s,this._lastRenderedHeight=o,this._lastRenderedRowHeight=l,this._lastRenderedStyle=u,this._lastRenderedStyleBottomLeftGrid=c,this._lastRenderedStyleBottomRightGrid=d,this._lastRenderedStyleTopLeftGrid=f,this._lastRenderedStyleTopRightGrid=h,this._lastRenderedWidth=p}},{key:"_prepareForRender",value:function(){this._lastRenderedColumnWidth===this.props.columnWidth&&this._lastRenderedFixedColumnCount===this.props.fixedColumnCount||(this._leftGridWidth=null),this._lastRenderedFixedRowCount===this.props.fixedRowCount&&this._lastRenderedRowHeight===this.props.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(),this._lastRenderedColumnWidth=this.props.columnWidth,this._lastRenderedFixedColumnCount=this.props.fixedColumnCount,this._lastRenderedFixedRowCount=this.props.fixedRowCount,this._lastRenderedRowHeight=this.props.rowHeight}},{key:"_renderBottomLeftGrid",value:function(e){var t=e.enableFixedColumnScroll,n=e.fixedColumnCount,r=e.fixedRowCount,i=e.rowCount,o=e.hideBottomLeftGridScrollbar,a=this.state.showVerticalScrollbar;if(!n)return null;var s=a?1:0,l=this._getBottomGridHeight(e),u=this._getLeftGridWidth(e),c=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,d=o?u+c:u,f=h.createElement(G,y({},e,{cellRenderer:this._cellRendererBottomLeftGrid,className:this.props.classNameBottomLeftGrid,columnCount:n,deferredMeasurementCache:this._deferredMeasurementCacheBottomLeftGrid,height:l,onScroll:t?this._onScrollTop:void 0,ref:this._bottomLeftGridRef,rowCount:Math.max(0,i-r)+s,rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:d}));return o?h.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:et({},this._bottomLeftGridStyle,{height:l,width:u,overflowY:"hidden"})},f):f}},{key:"_renderBottomRightGrid",value:function(e){var t=e.columnCount,n=e.fixedColumnCount,r=e.fixedRowCount,i=e.rowCount,o=e.scrollToColumn,a=e.scrollToRow;return h.createElement(G,y({},e,{cellRenderer:this._cellRendererBottomRightGrid,className:this.props.classNameBottomRightGrid,columnCount:Math.max(0,t-n),columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheBottomRightGrid,height:this._getBottomGridHeight(e),onScroll:this._onScroll,onScrollbarPresenceChange:this._onScrollbarPresenceChange,ref:this._bottomRightGridRef,rowCount:Math.max(0,i-r),rowHeight:this._rowHeightBottomGrid,scrollToColumn:o-n,scrollToRow:a-r,style:this._bottomRightGridStyle,width:this._getRightGridWidth(e)}))}},{key:"_renderTopLeftGrid",value:function(e){var t=e.fixedColumnCount,n=e.fixedRowCount;return t&&n?h.createElement(G,y({},e,{className:this.props.classNameTopLeftGrid,columnCount:t,height:this._getTopGridHeight(e),ref:this._topLeftGridRef,rowCount:n,style:this._topLeftGridStyle,tabIndex:null,width:this._getLeftGridWidth(e)})):null}},{key:"_renderTopRightGrid",value:function(e){var t=e.columnCount,n=e.enableFixedRowScroll,r=e.fixedColumnCount,i=e.fixedRowCount,o=e.scrollLeft,a=e.hideTopRightGridScrollbar,s=this.state,l=s.showHorizontalScrollbar,u=s.scrollbarSize;if(!i)return null;var c=l?1:0,d=this._getTopGridHeight(e),f=this._getRightGridWidth(e),p=l?u:0,g=d,m=this._topRightGridStyle;a&&(g=d+p,m=et({},this._topRightGridStyle,{left:0}));var v=h.createElement(G,y({},e,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,t-r)+c,columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheTopRightGrid,height:g,onScroll:n?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:i,scrollLeft:o,style:m,tabIndex:null,width:f}));return a?h.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:et({},this._topRightGridStyle,{height:d,width:f,overflowX:"hidden"})},v):v}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft&&e.scrollLeft>=0?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop&&e.scrollTop>=0?e.scrollTop:t.scrollTop}:null}}]),t}(h.PureComponent);f(tt,"defaultProps",{classNameBottomLeftGrid:"",classNameBottomRightGrid:"",classNameTopLeftGrid:"",classNameTopRightGrid:"",enableFixedColumnScroll:!1,enableFixedRowScroll:!1,fixedColumnCount:0,fixedRowCount:0,scrollToColumn:-1,scrollToRow:-1,style:{},styleBottomLeftGrid:{},styleBottomRightGrid:{},styleTopLeftGrid:{},styleTopRightGrid:{},hideTopRightGridScrollbar:!1,hideBottomLeftGridScrollbar:!1}),tt.propTypes={},v(tt);const nt=tt;var rt=function(e){function t(e,n){var i;return r(this,t),(i=l(this,u(t).call(this,e,n))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},i._onScroll=i._onScroll.bind(s(i)),i}return d(t,e),o(t,[{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.clientHeight,r=t.clientWidth,i=t.scrollHeight,o=t.scrollLeft,a=t.scrollTop,s=t.scrollWidth;return e({clientHeight:n,clientWidth:r,onScroll:this._onScroll,scrollHeight:i,scrollLeft:o,scrollTop:a,scrollWidth:s})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.clientWidth,r=e.scrollHeight,i=e.scrollLeft,o=e.scrollTop,a=e.scrollWidth;this.setState({clientHeight:t,clientWidth:n,scrollHeight:r,scrollLeft:i,scrollTop:o,scrollWidth:a})}}]),t}(h.PureComponent);function it(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.defaultSortBy,r=t.defaultSortDirection,i=void 0===r?{}:r;if(!e)throw Error('Required parameter "sortCallback" not specified');var o=n||[],a={};function s(t){var n=t.defaultSortDirection,r=t.event,i=t.sortBy;if(r.shiftKey)void 0!==a[i]?a[i]="ASC"===a[i]?"DESC":"ASC":(a[i]=n,o.push(i));else if(r.ctrlKey||r.metaKey){var s=o.indexOf(i);s>=0&&(o.splice(s,1),delete a[i])}else o.length=0,o.push(i),Object.keys(a).forEach((function(e){e!==i&&delete a[e]})),void 0!==a[i]?a[i]="ASC"===a[i]?"DESC":"ASC":a[i]=n;e({sortBy:o,sortDirection:a})}return o.forEach((function(e){a[e]=void 0!==i[e]?i[e]:"ASC"})),{sort:s,sortBy:o,sortDirection:a}}function ot(e){var t=e.dataKey,n=e.rowData;return"function"==typeof n.get?n.get(t):n[t]}function at(e){var t=e.cellData;return null==t?"":String(t)}function st(e){var t=e.className,n=e.columns,r=e.style;return h.createElement("div",{className:t,role:"row",style:r},n)}rt.propTypes={},st.propTypes=null;const lt={ASC:"ASC",DESC:"DESC"};function ut(e){var t=e.sortDirection,n=b("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===lt.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===lt.DESC});return h.createElement("svg",{className:n,width:18,height:18,viewBox:"0 0 24 24"},t===lt.ASC?h.createElement("path",{d:"M7 14l5-5 5 5z"}):h.createElement("path",{d:"M7 10l5 5 5-5z"}),h.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function ct(e){var t=e.dataKey,n=e.label,r=e.sortBy,i=e.sortDirection,o=r===t,a=[h.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"==typeof n?n:null},n)];return o&&a.push(h.createElement(ut,{key:"SortIndicator",sortDirection:i})),a}function dt(e){var t=e.className,n=e.columns,r=e.index,i=e.key,o=e.onRowClick,a=e.onRowDoubleClick,s=e.onRowMouseOut,l=e.onRowMouseOver,u=e.onRowRightClick,c=e.rowData,d=e.style,f={"aria-rowindex":r+1};return(o||a||s||l||u)&&(f["aria-label"]="row",f.tabIndex=0,o&&(f.onClick=function(e){return o({event:e,index:r,rowData:c})}),a&&(f.onDoubleClick=function(e){return a({event:e,index:r,rowData:c})}),s&&(f.onMouseOut=function(e){return s({event:e,index:r,rowData:c})}),l&&(f.onMouseOver=function(e){return l({event:e,index:r,rowData:c})}),u&&(f.onContextMenu=function(e){return u({event:e,index:r,rowData:c})})),h.createElement("div",y({},f,{className:t,key:i,role:"row",style:d}),n)}ut.propTypes={},ct.propTypes=null,dt.propTypes=null;var ft=function(e){function t(){return r(this,t),l(this,u(t).apply(this,arguments))}return d(t,e),t}(h.Component);function ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ht(n,!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ht(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}f(ft,"defaultProps",{cellDataGetter:ot,cellRenderer:at,defaultSortDirection:lt.ASC,flexGrow:0,flexShrink:1,headerRenderer:ct,style:{}}),ft.propTypes={};var gt=function(e){function t(e){var n;return r(this,t),(n=l(this,u(t).call(this,e))).state={scrollbarWidth:0},n._createColumn=n._createColumn.bind(s(n)),n._createRow=n._createRow.bind(s(n)),n._onScroll=n._onScroll.bind(s(n)),n._onSectionRendered=n._onSectionRendered.bind(s(n)),n._setRef=n._setRef.bind(s(n)),n}return d(t,e),o(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,n=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:n}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:n,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,i=void 0===r?0:r;this.Grid&&this.Grid.recomputeGridSize({rowIndex:i,columnIndex:n})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"getScrollbarWidth",value:function(){if(this.Grid){var e=(0,ae.findDOMNode)(this.Grid),t=e.clientWidth||0;return(e.offsetWidth||0)-t}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.className,i=t.disableHeader,o=t.gridClassName,a=t.gridStyle,s=t.headerHeight,l=t.headerRowRenderer,u=t.height,c=t.id,d=t.noRowsRenderer,f=t.rowClassName,p=t.rowStyle,g=t.scrollToIndex,m=t.style,v=t.width,w=this.state.scrollbarWidth,_=i?u:u-s,S="function"==typeof f?f({index:-1}):f,C="function"==typeof p?p({index:-1}):p;return this._cachedColumnStyles=[],h.Children.toArray(n).forEach((function(t,n){var r=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=pt({overflow:"hidden"},r)})),h.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":h.Children.toArray(n).length,"aria-rowcount":this.props.rowCount,className:b("ReactVirtualized__Table",r),id:c,role:"grid",style:m},!i&&l({className:b("ReactVirtualized__Table__headerRow",S),columns:this._getHeaderColumns(),style:pt({height:s,overflow:"hidden",paddingRight:w,width:v},C)}),h.createElement(G,y({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:b("ReactVirtualized__Table__Grid",o),cellRenderer:this._createRow,columnWidth:v,columnCount:1,height:_,id:void 0,noContentRenderer:d,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:w,scrollToRow:g,style:pt({},a,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,r=e.isScrolling,i=e.parent,o=e.rowData,a=e.rowIndex,s=this.props.onColumnClick,l=t.props,u=l.cellDataGetter,c=l.cellRenderer,d=l.className,f=l.columnData,p=l.dataKey,g=l.id,m=c({cellData:u({columnData:f,dataKey:p,rowData:o}),columnData:f,columnIndex:n,dataKey:p,isScrolling:r,parent:i,rowData:o,rowIndex:a}),v=this._cachedColumnStyles[n],y="string"==typeof m?m:null;return h.createElement("div",{"aria-colindex":n+1,"aria-describedby":g,className:b("ReactVirtualized__Table__rowColumn",d),key:"Row"+a+"-Col"+n,onClick:function(e){s&&s({columnData:f,dataKey:p,event:e})},role:"gridcell",style:v,title:y},m)}},{key:"_createHeader",value:function(e){var t,n,r,i,o,a=e.column,s=e.index,l=this.props,u=l.headerClassName,c=l.headerStyle,d=l.onHeaderClick,f=l.sort,p=l.sortBy,g=l.sortDirection,m=a.props,v=m.columnData,y=m.dataKey,w=m.defaultSortDirection,_=m.disableSort,S=m.headerRenderer,C=m.id,x=m.label,E=!_&&f,T=b("ReactVirtualized__Table__headerColumn",u,a.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:E}),k=this._getFlexStyleForColumn(a,pt({},c,{},a.props.headerStyle)),O=S({columnData:v,dataKey:y,disableSort:_,label:x,sortBy:p,sortDirection:g});if(E||d){var L=p!==y?w:g===lt.DESC?lt.ASC:lt.DESC,R=function(e){E&&f({defaultSortDirection:w,event:e,sortBy:y,sortDirection:L}),d&&d({columnData:v,dataKey:y,event:e})};o=a.props["aria-label"]||x||y,i="none",r=0,t=R,n=function(e){"Enter"!==e.key&&" "!==e.key||R(e)}}return p===y&&(i=g===lt.ASC?"ascending":"descending"),h.createElement("div",{"aria-label":o,"aria-sort":i,className:T,id:C,key:"Header-Col"+s,onClick:t,onKeyDown:n,role:"columnheader",style:k,tabIndex:r},O)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,r=e.isScrolling,i=e.key,o=e.parent,a=e.style,s=this.props,l=s.children,u=s.onRowClick,c=s.onRowDoubleClick,d=s.onRowRightClick,f=s.onRowMouseOver,p=s.onRowMouseOut,g=s.rowClassName,m=s.rowGetter,v=s.rowRenderer,y=s.rowStyle,w=this.state.scrollbarWidth,_="function"==typeof g?g({index:n}):g,S="function"==typeof y?y({index:n}):y,C=m({index:n}),x=h.Children.toArray(l).map((function(e,i){return t._createColumn({column:e,columnIndex:i,isScrolling:r,parent:o,rowData:C,rowIndex:n,scrollbarWidth:w})})),E=b("ReactVirtualized__Table__row",_),T=pt({},a,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:w},S);return v({className:E,columns:x,index:n,isScrolling:r,key:i,onRowClick:u,onRowDoubleClick:c,onRowRightClick:d,onRowMouseOver:f,onRowMouseOut:p,rowData:C,style:T})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="".concat(e.props.flexGrow," ").concat(e.props.flexShrink," ").concat(e.props.width,"px"),r=pt({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(r.maxWidth=e.props.maxWidth),e.props.minWidth&&(r.minWidth=e.props.minWidth),r}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:h.Children.toArray(n)).map((function(t,n){return e._createHeader({column:t,index:n})}))}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,r=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:r})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,r=e.rowStartIndex,i=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:r,stopIndex:i})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=this.getScrollbarWidth();this.setState({scrollbarWidth:e})}}]),t}(h.PureComponent);f(gt,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:$,overscanRowCount:10,rowRenderer:dt,headerRowRenderer:st,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),gt.propTypes={};var mt=[],vt=null,yt=null;function wt(){yt&&(yt=null,document.body&&null!=vt&&(document.body.style.pointerEvents=vt),vt=null)}function bt(){wt(),mt.forEach((function(e){return e.__resetIsScrolling()}))}function _t(e){e.currentTarget===window&&null==vt&&document.body&&(vt=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){yt&&z(yt);var e=0;mt.forEach((function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)})),yt=j(bt,e)}(),mt.forEach((function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()}))}function St(e,t){mt.some((function(e){return e.props.scrollElement===t}))||t.addEventListener("scroll",_t),mt.push(e)}function Ct(e,t){(mt=mt.filter((function(t){return t!==e}))).length||(t.removeEventListener("scroll",_t),yt&&(z(yt),wt()))}var xt,Et,Tt=function(e){return e===window},kt=function(e){return e.getBoundingClientRect()};function Ot(e,t){if(e){if(Tt(e)){var n=window,r=n.innerHeight,i=n.innerWidth;return{height:"number"==typeof r?r:0,width:"number"==typeof i?i:0}}return kt(e)}return{height:t.serverHeight,width:t.serverWidth}}function Lt(e,t){if(Tt(t)&&document.documentElement){var n=document.documentElement,r=kt(e),i=kt(n);return{top:r.top-i.top,left:r.left-i.left}}var o=Rt(t),a=kt(e),s=kt(t);return{top:a.top+o.top-s.top,left:a.left+o.left-s.left}}function Rt(e){return Tt(e)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:e.scrollTop,left:e.scrollLeft}}function It(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function At(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?It(n,!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):It(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Mt=function(){return"undefined"!=typeof window?window:void 0},Nt=(Et=xt=function(e){function t(){var e,n;r(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return f(s(n=l(this,(e=u(t)).call.apply(e,[this].concat(o)))),"_window",Mt()),f(s(n),"_isMounted",!1),f(s(n),"_positionFromTop",0),f(s(n),"_positionFromLeft",0),f(s(n),"_detectElementResize",void 0),f(s(n),"_child",void 0),f(s(n),"state",At({},Ot(n.props.scrollElement,n.props),{isScrolling:!1,scrollLeft:0,scrollTop:0})),f(s(n),"_registerChild",(function(e){!e||e instanceof Element||console.warn("WindowScroller registerChild expects to be passed Element or null"),n._child=e,n.updatePosition()})),f(s(n),"_onChildScroll",(function(e){var t=e.scrollTop;if(n.state.scrollTop!==t){var r=n.props.scrollElement;r&&("function"==typeof r.scrollTo?r.scrollTo(0,t+n._positionFromTop):r.scrollTop=t+n._positionFromTop)}})),f(s(n),"_registerResizeListener",(function(e){e===window?window.addEventListener("resize",n._onResize,!1):n._detectElementResize.addResizeListener(e,n._onResize)})),f(s(n),"_unregisterResizeListener",(function(e){e===window?window.removeEventListener("resize",n._onResize,!1):e&&n._detectElementResize.removeResizeListener(e,n._onResize)})),f(s(n),"_onResize",(function(){n.updatePosition()})),f(s(n),"__handleWindowScrollEvent",(function(){if(n._isMounted){var e=n.props.onScroll,t=n.props.scrollElement;if(t){var r=Rt(t),i=Math.max(0,r.left-n._positionFromLeft),o=Math.max(0,r.top-n._positionFromTop);n.setState({isScrolling:!0,scrollLeft:i,scrollTop:o}),e({scrollLeft:i,scrollTop:o})}}})),f(s(n),"__resetIsScrolling",(function(){n.setState({isScrolling:!1})})),n}return d(t,e),o(t,[{key:"updatePosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.scrollElement,t=this.props.onResize,n=this.state,r=n.height,i=n.width,o=this._child||ae.findDOMNode(this);if(o instanceof Element&&e){var a=Lt(o,e);this._positionFromTop=a.top,this._positionFromLeft=a.left}var s=Ot(e,this.props);r===s.height&&i===s.width||(this.setState({height:s.height,width:s.width}),t({height:s.height,width:s.width}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=Q(),this.updatePosition(e),e&&(St(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.scrollElement,r=e.scrollElement;r!==n&&null!=r&&null!=n&&(this.updatePosition(n),Ct(this,r),St(this,n),this._unregisterResizeListener(r),this._registerResizeListener(n))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(Ct(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,r=t.scrollTop,i=t.scrollLeft,o=t.height,a=t.width;return e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:o,isScrolling:n,scrollLeft:i,scrollTop:r,width:a})}}]),t}(h.PureComponent),f(xt,"propTypes",null),Et);f(Nt,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:Mt(),serverHeight:0,serverWidth:0})},13218:(e,t,n)=>{"use strict";var r=n(99813),i=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,s=60110,l=60112;t.Suspense=60113;var u=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var d=Symbol.for;i=d("react.element"),o=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),a=d("react.provider"),s=d("react.context"),l=d("react.forward_ref"),t.Suspense=d("react.suspense"),u=d("react.memo"),c=d("react.lazy")}var f="function"==typeof Symbol&&Symbol.iterator;function h(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 p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function m(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}function v(){}function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(h(85));this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=m.prototype;var w=y.prototype=new v;w.constructor=y,r(w,m.prototype),w.isPureReactComponent=!0;var b={current:null},_=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,n){var r,o={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)_.call(t,r)&&!S.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:i,type:e,key:a,ref:s,props:o,_owner:b.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var E=/\/+/g;function T(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 k(e,t,n,r,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case i:case o:l=!0}}if(l)return a=a(l=e),e=""===r?"."+T(l,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(E,"$&/")+"/"),k(a,t,n,"",(function(e){return e}))):null!=a&&(x(a)&&(a=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(E,"$&/")+"/")+e)),t.push(a)),1;if(l=0,r=""===r?".":r+":",Array.isArray(e))for(var u=0;u<e.length;u++){var c=r+T(s=e[u],u);l+=k(s,t,n,c,a)}else if("function"==typeof(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e)))for(e=c.call(e),u=0;!(s=e.next()).done;)l+=k(s=s.value,t,n,c=r+T(s,u++),a);else if("object"===s)throw t=""+e,Error(h(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function O(e,t,n){if(null==e)return e;var r=[],i=0;return k(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function L(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 R={current:null};function I(){var e=R.current;if(null===e)throw Error(h(321));return e}var A={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:b,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:O,forEach:function(e,t,n){O(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!x(e))throw Error(h(143));return e}},t.Component=m,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A,t.cloneElement=function(e,t,n){if(null==e)throw Error(h(267,e));var o=r({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=b.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)_.call(t,c)&&!S.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){u=Array(c);for(var d=0;d<c;d++)u[d]=arguments[d+2];o.children=u}return{$$typeof:i,type:e.type,key:a,ref:s,props:o,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=x,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:L}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return I().useCallback(e,t)},t.useContext=function(e,t){return I().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return I().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return I().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return I().useLayoutEffect(e,t)},t.useMemo=function(e,t){return I().useMemo(e,t)},t.useReducer=function(e,t,n){return I().useReducer(e,t,n)},t.useRef=function(e){return I().useRef(e)},t.useState=function(e){return I().useState(e)},t.version="17.0.2"},89526:(e,t,n)=>{"use strict";e.exports=n(13218)},7402:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>C});var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),i="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},s=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,u=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&l()}function s(){a(o)}function l(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(s,20);i=e}return l}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;s.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),c=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},d=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||o},f=v(0,0,0,0);function h(e){return parseFloat(e)||0}function p(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+h(e["border-"+n+"-width"])}),0)}var g="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof d(e).SVGGraphicsElement}:function(e){return e instanceof d(e).SVGElement&&"function"==typeof e.getBBox};function m(e){return i?g(e)?function(e){var t=e.getBBox();return v(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return f;var r=d(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=h(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,s=h(r.width),l=h(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=p(r,"left","right")+o),Math.round(l+a)!==n&&(l-=p(r,"top","bottom")+a)),!function(e){return e===d(e).document.documentElement}(e)){var u=Math.round(s+o)-t,c=Math.round(l+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(c)&&(l-=c)}return v(i.left,i.top,s,l)}(e):f}function v(e,t,n,r){return{x:e,y:t,width:n,height:r}}var y=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=v(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=m(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),w=function(e,t){var n,r,i,o,a,s,l,u=(r=(n=t).x,i=n.y,o=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),c(l,{x:r,y:i,width:o,height:a,top:i,right:r+o,bottom:a+i,left:r}),l);c(this,{target:e,contentRect:u})},b=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new y(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new w(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),_="undefined"!=typeof WeakMap?new WeakMap:new r,S=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=u.getInstance(),r=new b(t,n,this);_.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){S.prototype[e]=function(){var t;return(t=_.get(this))[e].apply(t,arguments)}}));const C=void 0!==o.ResizeObserver?o.ResizeObserver:S},41196:(e,t)=>{"use strict";var n,r,i,o;if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,c=null,d=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(d,0),e}};n=function(e){null!==u?setTimeout(n,0,e):(u=e,setTimeout(d,0))},r=function(e,t){c=setTimeout(e,t)},i=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var p=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof p&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var g=!1,m=null,v=-1,y=5,w=0;t.unstable_shouldYield=function(){return t.unstable_now()>=w},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<e?Math.floor(1e3/e):5};var b=new MessageChannel,_=b.port2;b.port1.onmessage=function(){if(null!==m){var e=t.unstable_now();w=e+y;try{m(!0,e)?_.postMessage(null):(g=!1,m=null)}catch(e){throw _.postMessage(null),e}}else g=!1},n=function(e){m=e,g||(g=!0,_.postMessage(null))},r=function(e,n){v=f((function(){e(t.unstable_now())}),n)},i=function(){h(v),v=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<E(i,t)))break e;e[r]=t,e[n]=i,n=r}}function C(e){return void 0===(e=e[0])?null:e}function x(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],s=o+1,l=e[s];if(void 0!==a&&0>E(a,n))void 0!==l&&0>E(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==l&&0>E(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function E(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var T=[],k=[],O=1,L=null,R=3,I=!1,A=!1,M=!1;function N(e){for(var t=C(k);null!==t;){if(null===t.callback)x(k);else{if(!(t.startTime<=e))break;x(k),t.sortIndex=t.expirationTime,S(T,t)}t=C(k)}}function P(e){if(M=!1,N(e),!A)if(null!==C(T))A=!0,n(D);else{var t=C(k);null!==t&&r(P,t.startTime-e)}}function D(e,n){A=!1,M&&(M=!1,i()),I=!0;var o=R;try{for(N(n),L=C(T);null!==L&&(!(L.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=L.callback;if("function"==typeof a){L.callback=null,R=L.priorityLevel;var s=a(L.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?L.callback=s:L===C(T)&&x(T),N(n)}else x(T);L=C(T)}if(null!==L)var l=!0;else{var u=C(k);null!==u&&r(P,u.startTime-n),l=!1}return l}finally{L=null,R=o,I=!1}}var F=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){A||I||(A=!0,n(D))},t.unstable_getCurrentPriorityLevel=function(){return R},t.unstable_getFirstCallbackNode=function(){return C(T)},t.unstable_next=function(e){switch(R){case 1:case 2:case 3:var t=3;break;default:t=R}var n=R;R=t;try{return e()}finally{R=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=F,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=R;R=e;try{return t()}finally{R=n}},t.unstable_scheduleCallback=function(e,o,a){var s=t.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?s+a:s,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:O++,callback:o,priorityLevel:e,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>s?(e.sortIndex=a,S(k,e),null===C(T)&&e===C(k)&&(M?i():M=!0,r(P,a-s))):(e.sortIndex=l,S(T,e),A||I||(A=!0,n(D))),e},t.unstable_wrapCallback=function(e){var t=R;return function(){var n=R;R=t;try{return e.apply(this,arguments)}finally{R=n}}}},72851:(e,t,n)=>{"use strict";e.exports=n(41196)},75701:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var o={},a=[],s=0;s<e.length;s++){var l=e[s],u=r.base?l[0]+r.base:l[0],c=o[u]||0,d="".concat(u," ").concat(c);o[u]=c+1;var f=n(d),h={css:l[1],media:l[2],sourceMap:l[3]};-1!==f?(t[f].references++,t[f].updater(h)):t.push({identifier:d,updater:i(h,r),references:1}),a.push(d)}return a}function i(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n.update(e=t)}else n.remove()}}e.exports=function(e,i){var o=r(e=e||[],i=i||{});return function(e){e=e||[];for(var a=0;a<o.length;a++){var s=n(o[a]);t[s].references--}for(var l=r(e,i),u=0;u<o.length;u++){var c=n(o[u]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}o=l}}},6080:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},87182:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t),t}},56850:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},8236:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r=n.css,i=n.media,o=n.sourceMap;i?e.setAttribute("media",i):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},39213:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},50586:(e,t,n)=>{var r=n(36589),i=n(22708),o=i;o.v1=r,o.v4=i,e.exports=o},98726:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var r=n||0,i=t;return i[e[r++]]+i[e[r++]]+i[e[r++]]+i[e[r++]]+"-"+i[e[r++]]+i[e[r++]]+"-"+i[e[r++]]+i[e[r++]]+"-"+i[e[r++]]+i[e[r++]]+"-"+i[e[r++]]+i[e[r++]]+i[e[r++]]+i[e[r++]]+i[e[r++]]+i[e[r++]]}},76338:(e,t,n)=>{var r,i=n.g.crypto||n.g.msCrypto;if(i&&i.getRandomValues){var o=new Uint8Array(16);r=function(){return i.getRandomValues(o),o}}if(!r){var a=new Array(16);r=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),a[t]=e>>>((3&t)<<3)&255;return a}}e.exports=r},36589:(e,t,n)=>{var r=n(76338),i=n(98726),o=r(),a=[1|o[0],o[1],o[2],o[3],o[4],o[5]],s=16383&(o[6]<<8|o[7]),l=0,u=0;e.exports=function(e,t,n){var r=t&&n||0,o=t||[],c=void 0!==(e=e||{}).clockseq?e.clockseq:s,d=void 0!==e.msecs?e.msecs:(new Date).getTime(),f=void 0!==e.nsecs?e.nsecs:u+1,h=d-l+(f-u)/1e4;if(h<0&&void 0===e.clockseq&&(c=c+1&16383),(h<0||d>l)&&void 0===e.nsecs&&(f=0),f>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=d,u=f,s=c;var p=(1e4*(268435455&(d+=122192928e5))+f)%4294967296;o[r++]=p>>>24&255,o[r++]=p>>>16&255,o[r++]=p>>>8&255,o[r++]=255&p;var g=d/4294967296*1e4&268435455;o[r++]=g>>>8&255,o[r++]=255&g,o[r++]=g>>>24&15|16,o[r++]=g>>>16&255,o[r++]=c>>>8|128,o[r++]=255&c;for(var m=e.node||a,v=0;v<6;++v)o[r+v]=m[v];return t||i(o)}},22708:(e,t,n)=>{var r=n(76338),i=n(98726);e.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"==e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[o+s]=a[s];return t||i(a)}},14561:e=>{class t{constructor(e){this.value=e,this.next=void 0}}class n{constructor(){this.clear()}enqueue(e){const n=new t(e);this._head?(this._tail.next=n,this._tail=n):(this._head=n,this._tail=n),this._size++}dequeue(){const e=this._head;if(e)return this._head=this._head.next,this._size--,e.value}clear(){this._head=void 0,this._tail=void 0,this._size=0}get size(){return this._size}*[Symbol.iterator](){let e=this._head;for(;e;)yield e.value,e=e.next}}e.exports=n},98208:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var r=n(75701),i=n.n(r),o=n(8236),a=n.n(o),s=n(6080),l=n.n(s),u=n(56850),c=n.n(u),d=n(87182),f=n.n(d),h=n(39213),p=n.n(h),g=n(35053),m=n.n(g),v={};for(const e in g)"default"!==e&&(v[e]=()=>g[e]);n.d(t,v);var y={};y.styleTagTransform=p(),y.setAttributes=c(),y.insert=l().bind(null,"head"),y.domAPI=a(),y.insertStyleElement=f(),i()(m(),y);const w=m()&&m().locals?m().locals:void 0},49434:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var r=n(75701),i=n.n(r),o=n(8236),a=n.n(o),s=n(6080),l=n.n(s),u=n(56850),c=n.n(u),d=n(87182),f=n.n(d),h=n(39213),p=n.n(h),g=n(4188),m=n.n(g),v={};for(const e in g)"default"!==e&&(v[e]=()=>g[e]);n.d(t,v);var y={};y.styleTagTransform=p(),y.setAttributes=c(),y.insert=l().bind(null,"head"),y.domAPI=a(),y.insertStyleElement=f(),i()(m(),y);const w=m()&&m().locals?m().locals:void 0},34361:function(e,t,n){"use strict";var r,i,o,a,s,l,u,c,d,f,h,p,g,m=this&&this.__classPrivateFieldSet||function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n},v=this&&this.__classPrivateFieldGet||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)},y=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FinsembleDesktopAgent=void 0;const w=n(98832),b=y(n(72551)),_=n(6192),S=n(81298),C=n(81298),x=y(n(60306));class E{constructor(e){r.set(this,void 0),i.set(this,void 0),m(this,r,e,"f")}start(e){const t={type:"heartbeat",meta:{uuid:e}};v(this,r,"f").transmit(S.HEARTBEAT_CHANNEL,t),m(this,i,setInterval((()=>{v(this,r,"f").transmit(S.HEARTBEAT_CHANNEL,t)}),S.HEARTBEAT_INTERVAL),"f")}stop(){clearInterval(v(this,i,"f")),m(this,i,void 0,"f")}}r=new WeakMap,i=new WeakMap;class T{constructor(e,t,n="app"){o.set(this,void 0),m(this,o,e,"f"),this.id=t,this.type=n}broadcast(e){v(this,o,"f").channelBroadcast(this.id,e)}getCurrentContext(e){return v(this,o,"f").channelGetCurrentContext(this.id,e)}addContextListener(e,t){return v(this,o,"f").channelAddContextListener(this.id,e,t)}}o=new WeakMap,t.FinsembleDesktopAgent=class{constructor({routerClient:e,startup:t}){a.set(this,!1),s.set(this,void 0),l.set(this,!1),u.set(this,""),c.set(this,`FSBL.FDC3.Client.${Date.now()}_${Math.random()}`),d.set(this,{}),f.set(this,{}),h.set(this,[]),p.set(this,void 0),g.set(this,void 0),m(this,p,e,"f"),m(this,s,new E(e),"f"),m(this,g,t,"f");const n=()=>!0===_.Globals?.FSBL?.Clients?.WindowClient?.options?.customData?.interop?.autoConnect;if(_.Globals?.FSBL?.addEventListener?_.Globals?.FSBL.addEventListener("onReady",(()=>{n()&&this.connectWhenFSBLIsReady()})):window.addEventListener("FSBLReady",(()=>{n()&&this.connectWhenFSBLIsReady()})),window.Event){const e=new Event("fdc3Ready");window&&window.dispatchEvent(e)}}meta(){return{uuid:v(this,u,"f"),href:window.document?document.location.href:""}}triggerContextListeners(e){const{context:t}=e.payload;(v(this,f,"f")[t?.type]??[]).concat(v(this,f,"f")["*"]??[]).forEach((({handler:n,channel:r})=>{e.meta.channel!==r&&(e.meta.channel||r)||n(t)}))}triggerIntentListeners(e){const{intent:t,context:n}=e.payload,r=v(this,d,"f")[t];n&&(r||[]).forEach((e=>e(n)))}handleIncoming(e){switch(b.default.log("FDC3 Client: handleIncoming",e.type,e),e.type){case"broadcast":this.triggerContextListeners(e);break;case"intent":this.triggerIntentListeners(e)}}releaseQueue(){const e=e=>(void 0!==e?.meta?.uuid&&(e.meta.uuid=v(this,u,"f")),e);v(this,h,"f").forEach((async t=>{const{message:n,handler:r,resolve:i}=t,{err:o,response:a}=await v(this,p,"f").query(S.SERVER_CHANNEL,e(n),r);i({err:o,receiveMessage:a?.data})})),m(this,h,[],"f")}async connectWhenFSBLIsReady(){v(this,l,"f")||(m(this,l,!0,"f"),await v(this,g,"f").onReady(),this.connect())}exchange(e,t=(()=>{})){return new Promise((async n=>{if(v(this,a,"f")){const{err:r,response:i}=await v(this,p,"f").query(S.SERVER_CHANNEL,e,t);n({err:r,receiveMessage:i?.data})}else v(this,h,"f").push({message:e,handler:t,resolve:n}),this.connectWhenFSBLIsReady()}))}async connect(){const e=v(this,g,"f").getStartupData(),{windowName:t="Unknown window",authenticationToken:n}=e;b.default.log(`fdc3.connect StartupData for ${t}`,e),m(this,u,t,"f");const r={type:"register",meta:this.meta(),payload:{clientChannel:v(this,c,"f"),windowName:t,authenticationToken:n}};v(this,p,"f").query(S.SERVER_CHANNEL,r,(e=>{e?b.default.error("connect error",e):(v(this,p,"f").addResponder(v(this,c,"f"),((e,t)=>{if(e||!t){const t=C.errorAsString(e??"No request received on responder");b.default.error(`FinsembleDesktopAgent can't listen on channel ${v(this,c,"f")} : ${t}`)}else t.data&&this.handleIncoming(t.data),t.sendQueryResponse(null)})),m(this,a,!0,"f"),this.releaseQueue())})),v(this,s,"f").start(v(this,u,"f"))}stop(){v(this,s,"f").stop();const e={type:"unregister",meta:this.meta()};this.exchange(e,(()=>{v(this,p,"f").removeResponder(v(this,c,"f")),m(this,a,!1,"f")}))}async getCurrentContext(e){const t={type:"currentContextRequest",meta:this.meta(),payload:{contextType:e}},{err:n,receiveMessage:r}=await this.exchange(t);return n?null:"currentContext"===r?.type&&r.payload.context?r.payload.context:null}async channelGetCurrentContext(e,t){const n={type:"currentContextRequest",meta:{...this.meta(),channel:e},payload:{contextType:t}},{err:r,receiveMessage:i}=await this.exchange(n);return r?null:"currentContext"===i?.type?i.payload.context:null}broadcast(e){const t={type:"broadcast",meta:this.meta(),payload:{context:e}};this.exchange(t)}channelBroadcast(e,t){const n={type:"broadcast",meta:{...this.meta(),channel:e},payload:{context:t}};this.exchange(n)}async getSystemChannels(){const e={type:"systemChannelRequest",meta:this.meta()},{err:t,receiveMessage:n}=await this.exchange(e);return t?[]:("systemChannels"===n?.type?n?.payload?.channels:[]).map((e=>new T(this,e,"system")))}async open(e,t){const n={type:"open",meta:this.meta(),payload:{target:e,context:t}},{err:r,receiveMessage:i}=await this.exchange(n),o=i;if(r)throw w.OpenError.ResolverUnavailable;if(o.payload.error)throw o.payload.error}async findIntent(e,t){const n={type:"findIntent",meta:this.meta(),payload:{intent:e,context:t}},{err:r,receiveMessage:i}=await this.exchange(n),o=i;if(r)throw w.ResolveError.ResolverUnavailable;if(o.payload.error)throw o.payload.error;if(!o.payload.appIntent)throw"Invalid response returned from InteropService for findIntent. No appIntent and no error.";return o.payload.appIntent}async findIntentsByContext(e){const t={type:"findIntentsByContext",meta:this.meta(),payload:{context:e}},{receiveMessage:n}=await this.exchange(t),r=n;if(r.payload.error)throw r.payload.error;return r.payload.intents||[]}async raiseIntent(e,t,n){const r={type:"raiseIntent",meta:this.meta(),payload:{intent:e,context:t,target:n}},{err:i,receiveMessage:o}=await this.exchange(r),a=o;if(i)throw w.ResolveError.ResolverUnavailable;if(a.payload.error)throw a.payload.error;if(!a.payload.data)throw"Invalid response returned from InteropService for raiseIntent. No data.";return a.payload.data}async raiseIntentForContext(e,t){const n={type:"raiseIntent",meta:this.meta(),payload:{context:e,target:t}},{err:r,receiveMessage:i}=await this.exchange(n),o=i;if(r)throw w.ResolveError.ResolverUnavailable;if(o.payload.error)throw o.payload.error;if(!o.payload.data)throw"Invalid response returned from InteropService for raiseIntentForContext. No data.";return o.payload.data}addIntentListener(e,t){v(this,d,"f")[e]=C.mmAdd(v(this,d,"f"),e,t);const n={type:"subscribeIntent",meta:this.meta(),payload:{intent:e}};return this.exchange(n),{unsubscribe:()=>{const n={type:"unsubscribeIntent",meta:this.meta(),payload:{intent:e}};this.exchange(n),v(this,d,"f")[e]=C.mmRemove(v(this,d,"f"),e,t)}}}channelAddContextListener(e,t,n){const r=n?t:"*";n||(n=t);const i={handler:n,channel:e};v(this,f,"f")[r]=C.mmAdd(v(this,d,"f"),r,i);let o={type:"subscribeContext",meta:this.meta(),payload:{contextType:r}};return e&&(o.meta.channel=e),this.exchange(o),{unsubscribe:()=>{let t={type:"unsubscribeContext",meta:this.meta(),payload:{contextType:r}};e&&(t.meta.channel=e),v(this,f,"f")[r]=C.mmRemove(v(this,d,"f"),r,i),this.exchange(t)}}}addContextListener(e,t){return this.channelAddContextListener(null,e,t)}async joinChannel(e){const t={type:"joinChannels",meta:this.meta(),payload:{channels:[e]}};await this.exchange(t)}async getOrCreateChannel(e){return new T(this,e)}async getCurrentChannels(){const e={type:"getCurrentChannels",meta:this.meta()},{err:t,receiveMessage:n}=await this.exchange(e),r=n;if(t)throw t;if(r.payload.error)throw r.payload.error;if(!r.payload.data)throw"Invalid response returned from InteropService for getCurrentChannels. No data.";return r.payload.data.map((e=>new T(this,e.channel,"system")))}async getCurrentChannel(){const e=await this.getCurrentChannels();return e&&e.length?e[0]:null}async leaveCurrentChannel(){const e={type:"leaveChannels",meta:this.meta(),payload:{}};await this.exchange(e)}getInfo(){return{fdc3Version:"1.2",provider:"Finsemble",providerVersion:x.default.version}}},a=new WeakMap,s=new WeakMap,l=new WeakMap,u=new WeakMap,c=new WeakMap,d=new WeakMap,f=new WeakMap,h=new WeakMap,p=new WeakMap,g=new WeakMap},81298:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnonymousAuthenticationToken=t.HEARTBEAT_INTERVAL=t.HEARTBEAT_CHANNEL=t.INTENT_RESOLVER_CHANNEL=t.SERVER_CHANNEL=t.GLOBAL_CHANNEL=t.errorAsString=t.mmRemove=t.concatNoDups=t.mmAdd=void 0,t.mmAdd=function(e,t,n){return(e[t]||[]).concat([n])},t.concatNoDups=function(e,t){const n=Array.isArray(t)?t:[t],r=e?n.concat(e):n;return Array.from(new Set(r))},t.mmRemove=function(e,t,n){return(e[t]||[]).filter((e=>e===n))},t.errorAsString=function(e){return e?.message??e??null},t.GLOBAL_CHANNEL="global",t.SERVER_CHANNEL="FSBL.FDC3.Interop.Server",t.INTENT_RESOLVER_CHANNEL="FSBL.FDC3.intent.resolver",t.HEARTBEAT_CHANNEL="FSBL.FDC3.Interop.Server",t.HEARTBEAT_INTERVAL=4e3,t.AnonymousAuthenticationToken={authenticationKeyType:"unauthenticated",meta:{name:"Anonymous app"}}},10589:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FSBLService=void 0;const i=r(n(39319)),o=n(67580),a=n(51742),s=n(16925),l=n(50586),u=n(6192),c=n(34361);t.FSBLService=class{async startApp(){await a.System.ready();const e=await o.getSystemStartupData(),t=a.System.Window.getCurrent(),n=t.name??document?.location?.href??"Unknown App",r=t.name??document?.location?.href??`Unknown window-${l.v4()}`,d=o.getManifestFromStartupData(e)??{},f=o.getRouterConfig({windowName:r,systemManifest:d});await i.default.start(f);const h=s.Startup.getInstance();h.setStartupData({windowName:r,authenticationToken:{authenticationKeyType:"unauthenticated",meta:{name:n}}}),u.Globals.fdc3=new c.FinsembleDesktopAgent({routerClient:i.default,startup:h}),h.ready()}async stopApp(){i.default.stop()}}},67580:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getManifestFromStartupData=t.getSystemStartupData=t.getRouterConfig=t.getRecommendedTransport=void 0;const i=r(n(72551)),o=n(51742),a=n(33998),s={sameDomainTransport:"FinsembleTransport",crossDomainTransport:"FinsembleTransport",transportSettings:{FinsembleTransport:{serverAddress:"ws://127.0.0.1:3376"}},transportName:"FinsembleTransport"},l=e=>{if(!e)return i.default.error("No documentRoot provided to RouterConfig.isCrossDomain(). Check the moduleRoot entry of the manifest."),!0;const t=document.createElement("a");t.href=e;const n=window.location.hostname===t.hostname,r=window.location.protocol===t.protocol,o=(void 0!==window.location.port?window.location.port:80)===(void 0!==t.port?t.port:80),a=n&&o&&r;return i.default.system.debug(`Transport crossDomain=${l} (${n}:${r}:${o})`),!a};t.getRecommendedTransport=e=>{const{moduleRoot:t,router:n}=e?.finsemble,{sameDomainTransport:r="SharedWorker",crossDomainTransport:o="IPCBus"}=n??{},a=l(t)?o:r;return i.default.system.log(`Transport Info: Selected=${a} SameDomainDefault=${r} CrossDomainDefault=${o}`),console.log(`Transport Info: Selected=${a} SameDomainDefault=${r} CrossDomainDefault=${o}`),a},t.getRouterConfig=({windowName:e,systemManifest:n,transportSettings:r})=>n?((e,n)=>{if(i.default.system.info("WINDOW LIFECYCLE:STARTUP:RouterClient:routerConfigFromManifest"),e&&"string"!=typeof e){const r=e.finsemble,i=r?.router?.transportSettings??r?.IAC??{},o=r?.notificationURL??`${r.moduleRoot}/components/system/notification/notification.html`;return{windowName:n,routerDomainRoot:r.moduleRoot,transportName:t.getRecommendedTransport(e),transportSettings:i,notificationURL:o}}return i.default.system.error("WINDOW LIFECYCLE:STARTUP:RouterClient:routerConfigFromManifest failed -- fatal error. No manifest found.",e),{...s,windowName:n}})(n,e):{...s,windowName:e,transportSettings:r??{}},t.getSystemStartupData=async()=>new Promise((e=>{o.System.Window.getCurrent().getOptions((t=>{e(t)}))})),t.getManifestFromStartupData=e=>{let t=e?.manifest;return t?.finsemble&&a.ConfigUtilInstance.resolveConfigVariables(t.finsemble,t.finsemble),t}},16925:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Startup=void 0;const r=n(81298),i=n(6192),o=n(50586),a=n(4971);class s{constructor(){this.isReady=!1,this.onReadyListeners=[],this.currentStartupData={authenticationToken:r.AnonymousAuthenticationToken,windowName:`Unknown window-${o.v4()}`}}static getInstance(){return s.instance?s.instance:s.instance=a.singleton("Startup",s)}getStartupData(){return this.currentStartupData}setStartupData(e){this.currentStartupData=e}onReady(e){return new Promise((t=>{this.isReady?(e&&setTimeout(e,0),t()):this.onReadyListeners.push((()=>{e&&e(),t()}))}))}ready(){this.isReady=!0,this.onReadyListeners.forEach((e=>{e()})),i.Globals.dispatchEvent&&i.Globals.dispatchEvent(new Event("FSBLReady"))}}t.Startup=s,s.instance=null},72669:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t._BaseClient=void 0;const i=r(n(39319)),o=r(n(72551)),a=n(51742),s=n(13854);t._BaseClient=class{constructor(e){this.status="offline",this.startupTime=0,this.initialized=!1,this.startupDependencies={services:[],clients:[]},this.finsembleWindow=null,this.windowName="",this.clientReadyQueue=[],this.processClientReadyQueue=()=>{for(const e of this.clientReadyQueue)e();this.clientReadyQueue=[]},this.onReady=e=>{this.clientReadyQueue.push(e),"online"===this.status&&this.processClientReadyQueue()},this.setClientOnline=()=>{this.status="online";const e=`STARTUP:CLIENT ONLINE:${this.finWindow?.name}:${this.name}`;this.startupTime=window.performance.now()-this.startupTime;const t=()=>{this.logger.system.debug(e),this.processClientReadyQueue(),s.FSBLDependencyManagerSingleton.setClientOnline(this.name)};this._onReady?this._onReady(t):t()},this.initialize=(e=Function.prototype)=>{this.initialized||(this.initialized=!0,this.startupTime=performance.now(),this.finWindow=a.System.Window.getCurrent(),this.windowName=this.finWindow.name,this.logger.system.debug("Baseclient Init Router Ready",this.name),s.FSBLDependencyManagerSingleton.startup.waitFor(this.startupDependencies,(()=>{e(),this.setClientOnline()})))},this.onClose=e=>{e&&e()},this.name=e.name,this._onReady=e.onReady,this.startupDependencies=e.startupDependencies||{services:[],clients:[]},this.logger=o.default,this.routerClient=i.default}}},70010:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(57664),o=r(n(13712)),a=n(72669),s=r(n(5020)),l=r(n(72551));class u extends a._BaseClient{constructor(e){super(e),this.listeners=[],this.changeSub=e=>{this.subs||(this.subs={}),this.subs[e]||(this.routerClient.query("configService.addListener",e,(t=>{t&&l.default.system.error("Error adding listener to config service",t),this.routerClient.subscribe(e,this.handleChanges)})),this.subs[e]=!0)},this.handleChanges=(e,t)=>{e&&l.default.system.error(e),t.data.field||(t.data.field=null);const n=t.data.storeData?t.data.storeData:t.data.value;this.triggerListeners(t.data.field?t.data.field:"configService",n)},this.triggerListeners=(e,t)=>{if(this.listeners[e])for(let n=0;n<this.listeners[e].length;n++)"function"==typeof this.listeners[e][n]?this.listeners[e][n](null,{field:e,value:t}):l.default.system.warn("ConfigClient:triggerListeners: listener is not a function",e)},this.set=(e,t)=>{l.default.system.debug("ConfigClient.Set",e),"function"==typeof e?(t=e,o.default.args(t,"function"),e={}):o.default.args(e,"object",t,"function"),this.routerClient.query("config.set",e,((e,n)=>{t(e,n?n.data:null)}))},this.processAndSet=this.processAndSet.bind(this),this.getValue=this.getValue.bind(this),this.getValues=this.getValues.bind(this),this.setValue=this.setValue.bind(this),this.setValues=this.setValues.bind(this),this.removeValue=this.removeValue.bind(this),this.removeValues=this.removeValues.bind(this),this.addListener=this.addListener.bind(this),this.addListeners=this.addListeners.bind(this),this.removeListener=this.removeListener.bind(this),this.removeListeners=this.removeListeners.bind(this),this.setPreference=this.setPreference.bind(this),this.getPreferences=this.getPreferences.bind(this),this.unsetPreference=this.unsetPreference.bind(this)}getValue(e,t=Function.prototype){return"string"==typeof e&&(e={field:e}),new Promise(((n,r)=>{if(!e.field){const e="no field provided";return r(e),t(e)}this.routerClient.query("configService.getValue",{field:e.field},((e,i)=>e?(r(e),t(e)):(n({err:e,data:i.data}),t(e,i.data))))}))}getValues(e,t=Function.prototype){return"function"==typeof e&&(t=e,e=null),e&&!Array.isArray(e)?this.getValue(e,t):new Promise((n=>{this.routerClient.query("configService.getValues",{fields:e},((e,r)=>e?t(e):(n({err:e,data:r.data}),t(e,r.data))))}))}setValue(e,t){const n={field:e.field,value:e.value};return this.routerClient.query("configService.setValue",n,(e=>t?t(e):null))}setValues(e,t){return e?Array.isArray(e)?this.routerClient.query("configService.setValues",e,(e=>t?t(e):null)):l.default.system.error("ConfigClient.SetValues. Params must be an array"):l.default.system.error("ConfigClient.SetValues. No params given")}removeValue(e,t=Function.prototype){if(void 0!==e){if(e.field||"string"!=typeof e)return t("no field provided");e={field:e}}return e.value=null,this.setValue(e,t)}removeValues(e,t=Function.prototype){if(!Array.isArray(e))return t("The passed in parameter needs to be an array");i.map(e,this.removeValue,((e,n)=>t(e,n)))}addListener(e,t,n){let r=null;"function"==typeof e&&(t=e,e={field:r}),({field:r}=e);const i="configService"+(r?`.${r}`:"");return this.listeners[i]?this.listeners[i].push(t):this.listeners[i]=[t],this.changeSub(i),n?n():null}addListeners(e,t,n){if(!Array.isArray(e))return this.addListener({field:e.field},t,n);for(let n=0;n<e.length;n++){let i=null;const o=e[n];var r;"string"==typeof o?i=o:o.field&&(({field:i}=o),r=o.listener);const a="configService"+(i?`.${i}`:"");r||t&&"function"==typeof t&&(r=t),this.listeners[a]?this.listeners[a].push(r):this.listeners[a]=[r],this.changeSub(a)}return n?n():null}removeListener(e,t,n){let r=null;"function"==typeof e&&(n=t,t=e,e={field:r}),({field:r}=e);const i=this.name+(r?`.${r}`:"");if(this.listeners[i])for(let e=0;e<this.listeners[i].length;e++)if(this.listeners[i][e]===t)return this.listeners[i].pop(e),n?n(null,!0):null;return n?n(null,!1):null}removeListeners(e,t,n){if(!Array.isArray(e))return"function"==typeof e?this.removeListener({},e,n):e.field&&this.removeListener(e,t,n),n?.("missing fields");let r=0;for(let n=0;n<e.length;n++){let o=null;const a=e[n];var i;"string"==typeof a?o=a:a.field&&(({field:o}=a),i=e[n].listener);const s="configService"+(o?`.${o}`:"");if(!i){if(!t||"function"!=typeof t)continue;i=t}for(let e=0;e<this.listeners[s].length;e++)this.listeners[s][e]===i&&(this.listeners[s].pop(n),r++)}return r<e.length?n?.("All listeners could not be found",!1):n?n(null,!0):null}get(e,t){l.default.system.debug("ConfigClient.Get",e),l.default.system.deprecated("This functionality has been deprecated. It will be removed in a future Finsemble release. Use getValue instead.",e),1===arguments.length?(t=e,o.default.args(t,"function"),e={}):o.default.args(e,"object",t,"function"),this.routerClient.query("config.get",e,((e,n)=>{t(e,n?n.data:null)}))}processAndSet(e,t){if(l.default.system.debug("ConfigClient.processAndSet",e),o.default.args(e,"object",t,"function=")&&o.default.args2("params.newConfig",e.newConfig,"object","params.overwrite",e.overwrite,"boolean=","params.replace",e.replace,"boolean="),!e.overwrite&&e.replace){const e="cannot use replace option unless overwrite is also true";l.default.system.warn("ConfigClient.processAndSet:",e),t&&t(e,null)}else this.routerClient.query("config.processAndSet",e,((e,n)=>{t&&t(e,n?n.data:null)}))}setPreference(e,t){this.routerClient.query("PreferencesService.setPreference",e,((e,n)=>{t&&t(e,n?n.data:null)}))}async getPreferences(e){await s.default.waitForStartup("preferencesService"),this.routerClient.query("PreferencesService.getPreferences",{},((t,n)=>{l.default.system.debug("ConfigClient.getPreferences response",n),e&&e(t,n?n.data:null)}))}async unsetPreference(e,t){l.default.system.debug("ConfigClient.unsetPreference",e),this.routerClient.query("PreferencesService.unsetPreference",e,((e,n)=>{t&&t(e,n?n.data:null)}))}}const c=new u({startupDependencies:{services:["configService"]},onReady(e){e&&e()},name:"configClient"});t.default=c},68718:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(5939),o=n(72669),a=r(n(39319)),s=r(n(72551)),l=n(87063).F,u=window,c=new i.EventEmitter;function d(e,t=l){const n=[];return e.keys.forEach((e=>{if("string"!=typeof e)return s.default.system.error("FSBL.Clients.HotkeyClient - one of the keys passed into a function was not a string: ",e);e=e.toLowerCase();const r=t[e];if(!r)return s.default.system.error(`FSBL.Clients.HotkeyClient - At least one of the key codes does not map to a supported key - registering hotkey unsuccessful. Unsupported keys: ${e}`);n.push(r)})),n}const f=function(e){this.cb=e,this.shift=!1,this.ctrl=!1,this.cmd=!1,this.capsLock=!1,this.initialize()};f.prototype.keyup=function(e){switch(e.key){case"Shift":return this.shift=!1,void this.cb({key:e.key,e,keystroke:this});case"Control":case"Alt":return this.ctrl=!1,void this.cb({key:e.key,e,keystroke:this});case"Meta":case"Win":return this.cmd=!1,void this.cb({key:e.key,e,keystroke:this})}this.key&&this.cb({key:this.key,e,keystroke:this})},f.prototype.keydown=function(e){if(!this.noKeyCapture)switch(this.key=e.key,e.key){case"Meta":case"Win":this.cmd=!0;break;case"Shift":this.shift=!0;break;case"Control":case"Alt":this.ctrl=!0;break;case"CapsLock":this.capsLock=!this.capsLock;break;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Up":case"Down":case"Left":case"Right":this.key=null,this.cb({key:e.key,e,keystroke:this})}},f.prototype.keypress=function(e){if(this.noKeyCapture)return;const t=e.which;t<32||t>222||(this.key=e.key)},f.prototype.initialize=function(){const e=this;document.addEventListener("keyup",(t=>{e.keyup(t)})),document.addEventListener("keydown",(t=>{e.downValue=t.key,e.keydown(t)})),document.addEventListener("keypress",(t=>{e.keypress(t)})),window.addEventListener("blur",(t=>{e.ctrl=!1,e.cb({key:"Control",e:t,keystroke:e})}))};const h=[];class p extends o._BaseClient{constructor(e){super(e),this.onClose=e=>{this.removeAllHotkeys(e)},this.keyMap=l,this.listenForHotkeys=this.listenForHotkeys.bind(this),this.routerClient=a.default,this.localListeners={}}addLocalHotkey(e,t,n=(()=>{})){s.default.system.info("HotkeyClient.addLocalHotkey"),s.default.system.debug("HotkeyClient.addLocalHotkey, keyArr: ",e);const r=d({keys:e}).sort().toString(),i=()=>{document.hasFocus()&&t()};this.localListeners[r]||(this.localListeners[r]={}),this.localListeners[r][t]=i,c.addListener(r,i),this.routerClient.query("hotkeysService.registerGlobalHotkey",{keys:r,windowName:this.windowName},n)}addBrowserHotkey(e,t){this.KeyStroke||(this.KeyStroke=new f((e=>{const{key:t,keystroke:n}=e,r=[t];n.ctrl&&r.push("control"),n.shift&&r.push("shift"),n.alt&&r.push("alt"),n.cmd&&r.push("command");const i=r.sort().toString();h.forEach((e=>{const t=e.keyString.toUpperCase(),n=i.toUpperCase();n!==t&&n.replace(/(CONTROL|COMMAND)/,"COMMANDORCONTROL")!==t||e.handler()}))})));const n=d({keys:e}).sort().toString();h.push({keyString:n,handler:t})}removeLocalHotkey(e,t,n=(()=>{})){s.default.system.info("HotkeyClient.removeLocalHotkey"),s.default.system.debug("HotkeyClient.removeLocalHotkey, keyArr: ",e);const r=d({keys:e}).sort().toString(),i=this.localListeners[r][t];c.removeListener(r,i),this.routerClient.query("hotkeysService.unregisterGlobalHotkey",{keys:r,windowName:this.windowName},n)}addGlobalHotkey(e,t,n=(()=>{})){s.default.system.info("HotkeyClient.addGlobalHotkey"),s.default.system.debug("HotkeyClient.addGlobalHotkey, keyArr: ",e);const r=d({keys:e}).sort().join("+");c.addListener(r,t),this.routerClient.query("hotkeysService.registerGlobalHotkey",{keys:r,windowName:this.windowName},n)}removeGlobalHotkey(e,t,n=(()=>{})){s.default.system.info("HotkeyClient.removeGlobalHotkey"),s.default.system.debug("HotkeyClient.removeGlobalHotkey, keyArr: ",e);const r=d({keys:e}).sort().join("+");c.removeListener(r,t),this.routerClient.query("hotkeysService.unregisterGlobalHotkey",{keys:r,windowName:this.windowName},n)}listenForHotkeys(){const e=this;this.routerClient.addListener("HotkeyTriggered",((t,n)=>{t?console.error(`Hotkey Channel Error: ${JSON.stringify(t)}`):n.data.windows.includes(e.windowName)&&c.emit(n.data.keys)}))}removeAllHotkeys(e){c.removeAllListeners(),this.routerClient.query("hotkeysService.removeAllHotkeysForWindow",{windowName:this.windowName},e)}}const g=new p({onReady(e){g.listenForHotkeys(),e&&e()},name:"hotkeyClient"});u.Keystroke=f,t.default=g},9562:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(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)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(72669),l=a(n(95376)),u=o(n(76420)),c=a(n(13712)),d=n(51742),f=a(n(72551)),h=n(75688),p=window,g={};class m extends s._BaseClient{constructor(e){super(e),c.default.args(e,"object=")&&e&&c.default.args2("params.onReady",e.onReady,"function="),this.windowClient=e.clients.windowClient}getComponentList(e=Function.prototype){return c.default.args(e,"function="),new Promise((t=>{this.routerClient.query("Launcher.componentList",{},((n,r)=>{e(n,r.data),t({err:n,data:r.data})}))}))}getComponentDefaultConfig(e,t=Function.prototype){return c.default.args(t,"function="),new Promise((n=>{this.routerClient.query("Launcher.componentList",{},((r,i)=>{const o=i.data[e];t(r,o),n({err:r,data:o})}))}))}getMonitorInfo(e={},t=Function.prototype){const n=this;return c.default.args(t,"function="),f.default.system.debug("MONITOR: launcherClient.getMonitorInfo"),"all"===e.monitor?n.getMonitorInfoAll(t):new Promise((r=>{u.getMyWindowIdentifier((i=>{e.windowIdentifier||(e.windowIdentifier=i),n.routerClient.query("Launcher.getMonitorInfo",e,((e,n)=>{t&&t(e,n.data),f.default.system.log("MONITOR: launcherClient.getMonitorInfo query response data",n.data),r({err:e,data:n.data})}))}))}))}getMonitorInfoAll(e=Function.prototype){return c.default.args(e,"function="),f.default.system.debug("MONITOR: launcherClient.getMonitorInfoAll"),new Promise(((t,n)=>{this.routerClient.query("Launcher.getMonitorInfoAll",{},((r,i)=>{r&&(n({err:r}),e(r)),t({err:r,data:i.data}),e(r,i.data)}))}))}registerComponent(e,t=Function.prototype){return new Promise((n=>{this.routerClient.query("LauncherService.registerComponent",e,((e,r)=>{t&&t(e,r.data),n({err:e,data:r.data})}))}))}unRegisterComponent(e,t=Function.prototype){return e.componentType?new Promise((n=>{this.routerClient.query("LauncherService.unRegisterComponent",e,((e,r)=>{t&&t(e,r.data),n({err:e,data:r.data})}))})):t("No componentType provided")}locatorToIdentifier(e){let t={};return t.windowName="windowName"in e?e.windowName:"","componentType"in e&&(t.componentType=e.componentType),"uuid"in e&&(t.uuid=e.uuid),t}toggleWindowOnClick(e,t,n){const r=this;let i=this.locatorToIdentifier(t),o=`${i.windowName}:${i.uuid}`;i.windowName||(o=i.componentType),!1!==g[o]?(n.position||(n.position="absolute"),this.showWindow(t,n,(function(t,n){if(!n)return;const{finWindow:i}=n;var a=function(){g[o]=!0,r.windowClient.isMouseOverDOMElement(e,(e=>{g[o]=!e})),i.removeEventListener("blurred",a)};i.addEventListener("blurred",a)}))):g[o]=!0}showWindow(e,t,n=Function.prototype){c.default.args(e,"object",t,"object=",n,"function=");const r=this;return t||(t={}),(t=u.clone(t)).staggerPixels||0===t.staggerPixels||(t.staggerPixels=100),t.windowIdentifier=this.locatorToIdentifier(e),new Promise((e=>{u.getMyWindowIdentifier((i=>{t.relativeWindow||(t.relativeWindow=i),r.routerClient.query("Launcher.showWindow",t,(async(t,r)=>{if(t)return e({err:t}),n(t);const i=r.data.windowIdentifier;r.data.windowIdentifier.name=r.data.windowIdentifier.windowName;const{wrap:o}=await h.FinsembleWindow.getInstance({name:i.windowName});r.data.finWindow=o,e({err:t,data:r.data}),n(t,r.data)}))}))}))}spawn(e,t,n=Function.prototype){const r=this;return c.default.args(e,"string",t,"object=",n,"function="),t||(t={}),(t=u.clone(t)).component=e,t.options||(t.options={}),t.options.customData||(t.options.customData={}),t.staggerPixels||0===t.staggerPixels||(t.staggerPixels=50),f.default.system.debug(`LauncherClient.spawn starting for componentType:${e}`),new Promise((i=>{u.getMyWindowIdentifier((o=>{t.launchingWindow=o,r.callSpawn(t,((t,r)=>{f.default.system.debug(`LauncherClient.spawn completing for componentType:${e}`,t),i({err:t,response:r}),n(t,r)}))}))}))}callSpawn(e,t=Function.prototype){const n=this;return c.default.args(t,"function="),f.default.perf.debug("CallSpawn","start","from spawn to callback",e),new Promise((r=>{function i(e,n){t(e,n),r({err:e,data:n})}n.routerClient.query("Launcher.spawn",e,(async(e,t)=>{if(f.default.system.debug("CallSpawn","Initial launcher callback params",e,t),f.default.perf.debug("CallSpawn","Initial launcher callback",t),e)return i(e,t.data),f.default.system.error("LauncherClient.callSpawn",e);t.data.windowIdentifier.name=t.data.windowIdentifier.windowName;var r=t.data;if(r.windowDescriptor.native)return i(e,r);const o=r.windowIdentifier,{wrap:a}=await h.FinsembleWindow.getInstance({name:o.windowName});r.finWindow=a;const s=`Finsemble.${r.windowIdentifier.windowName}.componentReady`,l=n.routerClient.subscribe(s,((t,o)=>{if(t)return f.default.system.error(t);o&&0===Object.keys(o.data).length||(f.default.perf.debug("CallSpawn","stop"),i(e,r),n.routerClient.unsubscribe(l))}))}))}))}getMonitor(e,t=Function.prototype){return f.default.system.deprecated("This method is deprecated and will be removed in a future release. Method getMonitorInfo should be used instead."),c.default.args(t,"function="),this.getMonitorInfo({windowIdentifier:e},t)}getMyWindowIdentifier(e=Function.prototype){return c.default.args(e,"function="),new Promise((t=>{u.getMyWindowIdentifier((n=>{e(n),t(n)}))}))}getActiveDescriptors(e=Function.prototype){return c.default.args(e,"function="),new Promise((t=>{this.routerClient.query("Launcher.getActiveDescriptors",{},((n,r)=>{n&&f.default.system.error(n),e(n,r.data),t({err:n,data:r.data})}))}))}getActiveAndPendingWindowNames(e=Function.prototype){return new Promise((t=>{this.routerClient.query("Launcher.getActiveAndPendingWindowNames",{},((n,r)=>{n&&f.default.system.error(n),e(n,r.data),t({err:n,data:r.data})}))}))}async getPendingWindows(){const{err:e,response:t}=await this.routerClient.query("Launcher.getPendingWindows",{});return e&&f.default.system.error("Error retrieving pending windows:",e),{err:e,data:t.data}}addUserDefinedComponent(e,t=Function.prototype){return c.default.args(t,"function="),new Promise((n=>{this.routerClient.query("Launcher.userDefinedComponentUpdate",{type:"add",name:e.name,url:e.url},((e,r)=>{t(e,r.data),n({err:e,data:r.data})}))}))}removeUserDefinedComponent(e,t=Function.prototype){return c.default.args(t,"function="),new Promise((n=>{this.routerClient.query("Launcher.userDefinedComponentUpdate",{type:"remove",name:e.name,url:e.url},((e,r)=>{t(e,r.data),n({err:e,data:r.data})}))}))}getComponentsThatCanReceiveDataTypes(e,t=Function.prototype){return c.default.args(t,"function="),new Promise((n=>{if(!e||!e.dataTypes){const e="Invalid params. Expected: {dataTypes: string[]}";return t(e),n({err:e})}Array.isArray(e.dataTypes)||(e.dataTypes=[e.dataTypes]),this.routerClient.query("LauncherService.getComponentsThatCanReceiveDataTypes",e,((e,r)=>{t(e,r.data),n({err:e,data:r.data})}))}))}bringWindowsToFront(e={},t=Function.prototype){return c.default.args(t,"function="),e.windowList&&!Array.isArray(e.windowList)&&(e.windowList=[e.windowList]),e.groupName&&c.default.args(e.groupName,"string"),e.componentType&&c.default.args(e.componentType,"string"),this.routerClient.query("LauncherService.bringWindowsToFront",e,((e,n)=>{t(e,n)})),Promise.resolve()}hyperFocus(e,t=Function.prototype){return f.default.system.deprecated("hyperFocus is deprecated as of version 4.0.0. This functionality may be removed in a future release"),c.default.args(t,"function="),e.windowList&&!Array.isArray(e.windowList)&&(e.windowList=[e.windowList]),e.windowList||e.groupName||e.componentType||(e.windowList=[this.myWindowIdentifier]),e.groupName&&c.default.args(e.groupName,"string"),e.componentType&&c.default.args(e.componentType,"string"),this.routerClient.transmit("LauncherService.hyperFocus",e),t(),Promise.resolve()}minimizeWindows(e,t=Function.prototype){return c.default.args(t,"function="),e.windowList&&!Array.isArray(e.windowList)&&(e.windowList=[e.windowList]),e.groupName&&c.default.args(e.groupName,"string"),e.componentType&&c.default.args(e.componentType,"string"),this.routerClient.transmit("LauncherService.minimizeWindows",e),t(),Promise.resolve()}createWindowGroup(e,t=Function.prototype){return c.default.args(t,"function="),e.windowList&&!Array.isArray(e.windowList)&&(e.windowList=[e.windowList],delete e.groupName),c.default.args(e.groupName,"string"),new Promise((n=>{if(!e.groupName){const e="Invalid Parameters";return n({err:e}),void t(e)}this.routerClient.query("LauncherService.createWindowGroup",e,((e,r)=>{t(e,r),n({err:e,data:r})}))}))}addWindowsToGroup(e,t=Function.prototype){return c.default.args(t,"function="),new Promise((n=>{if(!e.groupName||!e.windowList){const e="Invalid Parameters";return n({err:e}),void t(e)}e.windowList&&!Array.isArray(e.windowList)&&(e.windowList=[e.windowList]),c.default.args(e.groupName,"string"),this.routerClient.query("LauncherService.addWindowsToGroup",e,((e,r)=>{t(e,r),n({err:e,data:r})}))}))}removeWindowsFromGroup(e,t=Function.prototype){return c.default.args(t,"function="),new Promise((n=>{if(!e.groupName||!e.windowList){const e="Invalid Parameters";return n({err:e}),void t(e)}e.windowList&&!Array.isArray(e.windowList)&&(e.windowList=[e.windowList]),this.routerClient.query("LauncherService.removeWindowsFromGroup",e,((e,r)=>{t(e,r),n({err:e,data:r})}))}))}getGroupsForWindow(e,t=Function.prototype){return c.default.args(t,"function="),"function"==typeof e&&(t=e,e=null),new Promise((n=>{e&&e.windowIdentifier?this.routerClient.query("LauncherService.getGroupsForWindow",e,((e,r)=>{n({err:e,data:r.data}),t(e,r.data)})):this.windowClient.getComponentState({field:"finsemble:windowGroups"},((e,r)=>{n({err:e,data:r}),t(e,r)}))}))}addToGroups(e,t=Function.prototype){return c.default.args(t,"function="),c.default.args(e.groupNames,"array"),e.windowIdentifier||(e.windowIdentifier=this.myWindowIdentifier),new Promise((n=>{this.routerClient.query("LauncherService.addWindowToGroups",e,((e,r)=>{t(e,r),n({err:e,data:r})}))}))}_createWrap(e,t){this.routerClient.query("LauncherService.createWrap",e,t)}start(e){const t=this;if(void 0!==p.FSBL){function n(){t.routerClient.subscribe(`Finsemble.LauncherService.updateGroups.${t.windowName}`,((e,n)=>{Array.isArray(n.data)&&t.windowClient.setComponentState({field:"finsemble:windowGroups",value:n.data})}))}p.FSBL.addEventListener("onReady",(()=>{t.windowClient.onReady((()=>{t.windowClient.getComponentState({field:"finsemble:windowGroups"},((e,r)=>{if(!e&&r)return t.addToGroups({groupNames:r},n);n()}))}))}))}setInterval((()=>{t.routerClient.transmit("Finsemble.heartbeat",{type:"component",windowName:t.windowName,componentType:"finsemble",isBrowserView:d.System.isBrowserView()})}),1e3),this.getMyWindowIdentifier((n=>{t.myWindowIdentifier=n,e&&e()}))}}let v;function y(e){return(e=e||{}).windowClient||(e.windowClient=l.default),new m({clients:e,onReady(e){f.default.system.debug("launcherClient ready",window.name),f.default.perf.debug("LauncherClientReadyTime","stop"),v.start(e)},name:"launcherClient"})}v=y(),v.constructInstance=y,t.default=v},75729:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LocalLogger=void 0;const{debug:n,warn:r,log:i,error:o}=console,a=()=>{},s=a,l={warn:r,info:a,log:i,debug:n,error:o,verbose:s,deprecated:o},u={Error:!0,Warn:!0,Info:!0,Log:!0,Debug:!0,Verbose:!0,LocalOnly:!1},c={console:{Error:!0,Warn:!0,Info:!0,Log:!0,Debug:!0},dev:u,system:u,perf:u};function d(e){return"logger.service.logMessages"===e}t.LocalLogger=class{constructor(){this.start=()=>{},this.isLogMessage=d,this.setting=()=>c,this.callStack=()=>function(){const{stack:e}=function(){try{throw Error("")}catch(e){return e}}(),t=("\n",4,e.split("\n",4).join("\n").length);return`Log Stack: \n${e.substring(t).substr(1)}`}(),this.unregisterClient=()=>{},this.setRouterClient=()=>{},this.warn=r,this.info=a,this.log=i,this.debug=n,this.error=o,this.verbose=s,this.system=l,this.perf=l,this.deprecated=o}}},72551:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=t.LoggerConstructor=void 0;const r=n(51742),i=n(75729),o=n(16925),a={Error:!0,Warn:!0,Info:!0,Log:!0,Debug:!0,Verbose:!1,LocalOnly:!1},s={Error:!0,Warn:!0,Info:!0,Log:!0,Debug:!0},l=n(38172);t.LoggerConstructor=function(e){const i=this;let u;i.RouterClient=e&&e.RouterClient;let c=!1,d=!1;const f=i;let h,p,g=0,m=0;this.startupTime=0;let v=[];if("undefined"==typeof window)return;let y=r.System.Window.getCurrent().name;window.top!==window&&(y=`${y}.Frame`),this.onLogStateChangeCallback=[];let w={console:s,dev:a,system:a,perf:a};function b(e,t,n){this.category=e,!u&&r.System.isBrowserView()&&(u=r.System.getViewId()),this.logClientName=u?`${y}: view-${u}`:y,this.logType=t,this.logData=n,this.logTimestamp=window.performance.timing.navigationStart+window.performance.now()+g}function _(e,t){e&&e.dev&&(w=e,i.onLogStateChangeCallback.forEach((t=>{t(e)}))),function(e){f.system.debug("Logger updateQueueBasedOnState",e,g,"QUEUE LENGTH",v.length,w);const t=[];for(let n=0,{length:r}=v;n<r;n++)if(w[v[n].category][v[n].logType]&&!w[v[n].category].LocalOnly)e&&(v[n].logTimestamp=v[n].logTimestamp+g),t.push(v[n]);else if(w[v[n].category][v[n].logType]&&w[v[n].category].LocalOnly){const e=v[n];console.log(e.category,e.logType,e.logTimestamp-window.performance.timing.navigationStart,e.logData,"(Previously queued!)")}v=t}(t)}function S(){const{stack:e}=function(){try{throw Error("")}catch(e){return e}}(),t=("\n",4,e.split("\n",4).join("\n").length);return`Log Stack: \n${e.substring(t).substr(1)}`}this.onStateChanged=e=>{-1===this.onLogStateChangeCallback.indexOf(e)&&this.onLogStateChangeCallback.push(e)},this.setClientName=function(e){console.error("logger.setClientName() is deprecated"),y=e},this.getClientName=function(){return console.error("logger.getClientName() is deprecated"),y},this.clearMessageList=function(){v=[]},this.callStack=function(){return S()},this.setting=function(){return w};const C=console.error,x=console.warn,E=console.info,T=console.log,k=console.debug;function O(e){return e.reduce(((e,t)=>e.concat(Array.isArray(t)?O(t):t)),[])}function L(e,t){try{e.apply(console,O(t))}catch(e){(t=[]).push(S())}}let R=()=>{v.length>0&&(i.RouterClient.transmit("logger.service.logMessages",v),f.clearMessageList())};function I(e,n,r){let i,o=!1,a=!0;"forceObjectsToLogger"===r[0]&&(o=!0,a=!1,r.splice(0,1)),r=r.map((e=>a&&function(e){const t=[],n=[e];let r=0,i=0;for(;n.length&&i<1e3;){i++;const e=n.pop();if("boolean"==typeof e)r+=4;else if("string"==typeof e)r+=2*e.length;else if("number"==typeof e)r+=8;else if("object"==typeof e&&-1===t.indexOf(e)){t.push(e);for(const t in e)n.push(e[t])}}return r}(e)>5e4?(L(E,["Message too large to send to the logger.",r]),"Log argument greater than 50KB. Check local Console to see output of the object."):e));try{for(let e=0;e<r.length;e++)r[e]instanceof Error&&(r[e]=r[e].toString());i=new b(e,n,JSON.stringify(r))}catch(t){r.splice(0,r.length),r.push(S()),i=new b(e,n,`*** Logging Error: ${JSON.stringify(r)}`)}o||!function(e){return!0===e.logData.includes("Finsemble.heartbeat")}(i)?function(e){if(v.length<2e4)v.push(e);else{console.error("Logging Queue Overflowed! Dumping queue here then continuing.",v.length);let e,n=0;for(;e=v.shift();)console.log("Message "+n++,e);t.Logger.system.error("Logging Queue Overflowed! Dumping queue in client then continuing.")}}(i):++m<=5&&L(E,[`"Filtered Logger Message (${m} of first 5 shown)`,i]),d&&R()}function A(){const{windowName:e}=o.Startup.getInstance().getStartupData();y=e,window.top!==window&&(y=`${y}.Frame`);const t=`finsemble.logger.client.${y}`;!u&&r.System.isBrowserView()&&(u=r.System.getViewId()),f.system.debug("logger.service.registering",y),r.System.Window.getCurrent().getOptions((n=>{const r=n?.customData?.component?.centralLoggerNamePrefix;i.RouterClient.query("logger.service.register",{clientName:y,clientChannel:t,windowName:e,viewId:u,centralLoggerNamePrefix:r},((e,t)=>{if(e)setTimeout(A,750);else{for(const e of v)e.viewId=u;d=!0,f.system.debug("logger.service.registered"),h=t.data,"routerService"!==y?(g=p,_(h,!0)):_(h,!1),I("system","Debug",["Logger Registered"]),R()}}))})),i.RouterClient.addListener(t,((e,t)=>{f.system.debug("logger.client.setLogState",t.data),h=t.data,_(h,!1)}))}R=l(R,"routerService"===y?100:250,{leading:!1}),this.error=function(){const e=Array.prototype.slice.call(arguments);e.push(S()),w.dev.Error&&!w.dev.LocalOnly&&I("dev","Error",e),e.unshift(`dev error (${window.performance.now()}):`),L(C,e)},this.warn=function(){if(w.dev.Warn){const e=Array.prototype.slice.call(arguments);e.push(S()),w.dev.Warn&&!w.dev.LocalOnly&&I("dev","Warn",e),w.dev.Warn&&w.dev.LocalOnly&&(e.unshift(`dev warn (${window.performance.now()}):`),L(x,e))}},this.info=function(){if(w.dev.Info){const e=Array.prototype.slice.call(arguments);w.dev.Info&&!w.dev.LocalOnly&&I("dev","Info",e),w.dev.Info&&w.dev.LocalOnly&&(e.unshift(`dev info (${window.performance.now()}):`),L(E,e))}},this.log=function(){if(w.dev.Log){const e=Array.prototype.slice.call(arguments);w.dev.Log&&!w.dev.LocalOnly&&I("dev","Log",e),w.dev.Log&&w.dev.LocalOnly&&(e.unshift(`dev log (${window.performance.now()}):`),L(T,e))}},this.debug=function(){if(w.dev.Debug){const e=Array.prototype.slice.call(arguments);w.dev.Debug&&!w.dev.LocalOnly&&I("dev","Debug",e),w.dev.Debug&&w.dev.LocalOnly&&(e.unshift(`dev debug (${window.performance.now()}):`),L(k,e))}},this.verbose=function(){if(w.dev.Verbose){const e=Array.prototype.slice.call(arguments);w.dev.Verbose&&!w.dev.LocalOnly&&I("dev","Verbose",e),w.dev.Verbose&&w.dev.LocalOnly&&(e.unshift(`dev verbose (${window.performance.now()}):`),L(k,e))}},this.deprecated=this.error,this.system={},this.system.error=function(){const e=Array.prototype.slice.call(arguments);e.push(S()),w.system.Error&&!w.system.LocalOnly&&I("system","Error",e),e.unshift(`system error (${window.performance.now()}):`),L(C,e)},this.system.warn=function(){if(w.system.Warn){const e=Array.prototype.slice.call(arguments);e.push(S()),w.system.Warn&&!w.system.LocalOnly&&I("system","Warn",e),w.system.Warn&&w.system.LocalOnly&&(e.unshift(`system warn (${window.performance.now()}):`),L(x,e))}},this.system.info=function(){if(w.system.Info){const e=Array.prototype.slice.call(arguments);w.system.Info&&!w.system.LocalOnly&&I("system","Info",e),w.system.Info&&w.system.LocalOnly&&(e.unshift(`system info (${window.performance.now()}):`),L(E,e))}},this.system.log=function(){if(w.system.Log){const e=Array.prototype.slice.call(arguments);w.system.Log&&!w.system.LocalOnly&&I("system","Log",e),w.system.Log&&w.system.LocalOnly&&(e.unshift(`system log (${window.performance.now()}):`),L(T,e))}},this.system.debug=function(){if(w.system.Debug){const e=Array.prototype.slice.call(arguments);w.system.Debug&&!w.system.LocalOnly&&I("system","Debug",e),w.system.Debug&&w.system.LocalOnly&&(e.unshift(`system debug (${window.performance.now()}):`),L(k,e))}},this.system.verbose=function(){if(w.system.Verbose){var e=Array.prototype.slice.call(arguments);w.system.Verbose&&!w.system.LocalOnly&&I("system","Verbose",e),w.system.Verbose&&w.system.LocalOnly&&((e=Array.prototype.slice.call(arguments)).unshift(`system log (${window.performance.now()}):`),L(k,e))}},this.system.deprecated=this.system.error,this.perf={},this.perf.error=function(){const e=Array.prototype.slice.call(arguments);e.push(S()),w.perf.Error&&!w.perf.LocalOnly&&I("perf","Error",e),e.unshift(`perf error (${window.performance.now()}):`),L(C,e)},this.perf.warn=function(){if(w.perf.Warn){const e=Array.prototype.slice.call(arguments);e.push(S()),w.perf.Warn&&!w.perf.LocalOnly&&I("perf","Warn",e),w.perf.Warn&&w.perf.LocalOnly&&(e.unshift(`perf warn (${window.performance.now()}):`),L(x,e))}},this.perf.info=function(){if(w.perf.Info){const e=Array.prototype.slice.call(arguments);w.perf.Info&&!w.perf.LocalOnly&&I("perf","Info",e),w.perf.Info&&w.perf.LocalOnly&&(e.unshift(`perf info (${window.performance.now()}):`),L(E,e))}},this.perf.log=function(){if(w.perf.Log){const e=Array.prototype.slice.call(arguments);w.perf.Log&&!w.perf.LocalOnly&&I("perf","Log",e),w.perf.Log&&w.perf.LocalOnly&&(e.unshift(`perf log (${window.performance.now()}):`),L(T,e))}},this.perf.debug=function(){if(w.perf.Debug){const e=Array.prototype.slice.call(arguments);w.perf.Debug&&!w.perf.LocalOnly&&I("perf","Debug",e),w.perf.Debug&&w.perf.LocalOnly&&(e.unshift(`perf debug (${window.performance.now()}):`),L(k,e))}},this.perf.verbose=function(){if(w.perf.Verbose){const e=Array.prototype.slice.call(arguments);w.perf.Verbose&&!w.perf.LocalOnly&&I("perf","Verbose",e),w.perf.Verbose&&w.perf.LocalOnly&&(e.unshift(`perf verbose (${window.performance.now()}):`),L(k,e))}},this.perf.deprecated=this.perf.error,this.unregisterClient=function(e=null,t=Function.prototype){f.system.debug("logger.service.unregister",y,e,u),R();const n=e||{clientName:y,viewId:u};i.RouterClient.query("logger.service.unregister",n,t)},this.isLogMessage=function(e){return"logger.service.logMessages"===e},this.status="offline",this.setRouterClient=e=>{this.RouterClient=e},this.start=function(){let e;this.startupTime=performance.now(),i.RouterClient||(console.log("No instance of the RouterClient found for this instance of the Logger. Dynamically requiring it."),i.RouterClient=n(39319).default);const t=()=>{e=i.RouterClient.subscribe("Finsemble.Service.State.loggerService",((t,n)=>{"ready"===n.data.state&&(i.status="online",f.system.debug("Logger onReady",y),i.RouterClient.calibrateTimeWithRouterService((e=>{p=e,c||(i.startupTime=performance.now()-i.startupTime,A(),c=!0)})),i.RouterClient.unsubscribe(e))}))};"routerService"===window.name?i.RouterClient.query("logger.service.register",{},(e=>{e?setTimeout(t,750):t()})):i.RouterClient.onReady(t),r.System.isBrowserView()&&window.addEventListener("beforeunload",(()=>{i.unregisterClient()}))}},t.Logger="undefined"!=typeof window?new t.LoggerConstructor:new i.LocalLogger,t.default=t.Logger},40568:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RouterClientConstructor=void 0;const i=r(n(82369)),o=r(n(13712)),a=r(n(73699)),s=n(51742),l=n(72551),u=n(6192),c=n(75729),d=n(50586),f=[];let h=l.Logger;function p(e,t={}){if(null===e||"object"!=typeof e)return e;if(e.constructor==Date||e.constructor==RegExp||e.constructor==Function||e.constructor==String||e.constructor==Number||e.constructor==Boolean)return new e.constructor(e);t=t||new e.constructor;for(const n in e)t[n]=void 0===t[n]?p(e[n],null):t[n];return t}t.RouterClientConstructor=function(){let e,t;const n={},r={},l={},g={},m={},v={},y={},w={},b={},_={};let S,C=null,x=!1;const E=[];function T(){this.header={origin:S,type:"initialHandshake"}}function k(e,t){this.header={origin:S,type:"timeCalibration"},this.clientBaseTime=e,this.serviceBaseTime=t}function O(e){this.header={origin:S,type:"addListener",channel:e}}function L(e,t,n){this.header={origin:S,type:"transmit",channel:e},this.data=t,this.options=n}function R(e){this.header={origin:S,type:"removeListener",channel:e}}function I(e){this.header={origin:S,type:"addResponder",channel:e}}function A(e,t,n){this.header={origin:S,type:"query",queryID:e,channel:t},this.data=n}function M(e,t,n){this.header={origin:S,type:"queryResponse",queryID:e,error:t},this.data=n}function N(e){this.header={origin:S,type:"removeResponder",channel:e}}function P(e,t){this.header={origin:S,type:"subscribe",subscribeID:e,topic:t}}function D(e,t){this.header={origin:S,type:"unsubscribe",subscribeID:e,topic:t}}function F(e,t){this.header={origin:S,type:"publish",topic:e},this.data=t}function W(e,t,n,r){this.header={origin:S,type:"notify",subscribeID:e,topic:t,error:n},this.data=r}function z(e,t,n){this.header={origin:S,type:"addPubSubResponder",topic:e,handleOnServer:n},this.data=t}function j(e){this.header={origin:S,type:"removePubSubResponder",topic:e}}function B(e){C?C.send(e):(h.system.info("RouterClient: Queuing message since router initialization not complete",e),f.push(e))}function H(){return this.header.origin===this.header.lastClient}function U(e,t){h.system.info("RouterClient: outgoing query response","CHANNEL",this.header.channel,"RESPONSE DATA",t,"QUERY ID",this.header.queryID),B(new M(this.header.queryID,e,t))}function V(e,t){const n=e[t.header.channel];void 0===n?h.system.warn(`RouterClient: no query responder define on channel ${t.header.channel} incoming from ${t.header.origin}`,t):t.header.error?(h.system.warn("RouterClient: queryResponder error",t),n(t.header.error,null),delete e[t.header.channel]):(t.originatedHere=H,t.sendQueryResponse=U.bind(t),h.system.info("RouterClient: incoming query","CHANNEL",t.header.channel,"FROM",t.header.origin,"QUERY MESSAGE",t),n(null,t))}function G(e,t){if(e)h.system.warn("RouterClient: income publish rejected by pubsub responder",e,t);else{g[this.header.topic]=t;const n=v[this.header.topic];if(void 0!==n)for(let r=0;r<n.length;r++)h.system.info("RouterClient: sending pubsub notify","TOPIC",this.header.topic,"NOTIFY DATA",t),B(new W(n[r],this.header.topic,e,t))}}function $(e,t){var n,r,i;(function(e){let t=!1;return void 0===e&&(t=!0),t})(t)||B(new W(this.header.subscribeID,this.header.topic,e,t)),e?h.system.warn("RouterClient: incoming subscription rejected by pubsub responder","TOPIC",this.header.topic,"MESSAGE",this):(n=v,r=this.header.topic,i=this.header.subscribeID,r in n?n[r].push(i):n[r]=[i],h.system.info("RouterClient: incoming subscription added","TOPIC",this.header.topic,"MESSAGE",this))}function q(){!function(e,t,n){let r=!1;if(t in e){const i=v[t];for(let o=0;o<i.length;o++)if(n===i[o]){i.splice(o,1),0===i.length&&delete e[t],r=!0,h.system.info("RouterClient: PubSub removeListener","TOPIC",t,"FROM",n);break}}r||h.system.warn(`RouterClient: tried to remove non-existent listener on ${t} from ${JSON.stringify(n)}`)}(v,this.header.topic,this.header.subscribeID)}function Y(i){switch(h.system.verbose("Incoming Message Type",i.header.type,i),i.header.type){case"transmit":!function(e,t){const n=e[t.header.channel]||[],r=[];if(Array.isArray(n)&&0!==n.length){t.originatedHere=H,n.forEach((e=>{r.push(e)}));for(let e=0;e<r.length;e++)h.isLogMessage(t.header.channel)||h.system.info("RouterClient: incoming transmit","CHANNEL",t.header.channel,"FROM",t.header.origin,"MESSAGE",t),r[e](null,t)}else h.system.warn(`RouterClient: no listener for incoming transmit on channel ${t.header.channel} from ${t.header.origin}`,t)}(n,i);break;case"query":V(r,i);break;case"queryResponse":!function(e,t){const n=e[t.header.queryID];void 0===n?h.system.warn("RouterClient: no handler for incoming query response","QUERY ID",t.header.queryID):(function(e,t){const n=e[t];void 0!==n&&clearTimeout(n)}(_,t.header.queryID),t.header.error?(h.system.debug("RouterClient: incoming queryResponse error",t.header,"QUERY ID",t.header.queryID),n(t.header.error,t)):(h.system.info("RouterClient: incoming query response","RESPONSE MESSAGE",t,"QUERY ID",t.header.queryID),n(null,t)),delete e[t.header.queryID])}(b,i);break;case"notify":!function(e,t){const n=e[t.header.subscribeID];void 0===n?h.system.warn("RouterClient: no subscription handler defined for incoming notify for subscriberID",t.header.subscribeID,t):t.header.error?(h.system.info("RouterClient: incoming PubSub notify error for subscriberID","SUBSCRIBER ID",t.header.subscribeID,"NOTIFY MESSAGE",t),n(t.header.error,t)):(t.originatedHere=H,h.system.info("RouterClient: incoming PubSub notify","SUBSCRIBER ID",t.header.subscribeID,"NOTIFY MESSAGE",t),n(null,t))}(y,i);break;case"publish":!function(e){let t=l[e.header.topic];if(void 0===t)for(const n in m)if(m[n].test(e.header.topic)){t=l[n];break}void 0===t?h.system.warn("RouterClient: no pubsub responder defined for incoming publish","TOPIC",e.header.topic,"PUBLISH MESSAGE",e):(e.sendNotifyToAllSubscribers=G,t.publishCallback?(h.system.info("RouterClient: incoming PubSub publish callback invoked","TOPIC",e.header.topic,"PUBLISH MESSAGE",e),t.publishCallback(null,e)):(h.system.info("RouterClient: incoming PubSub publish","TOPIC",e.header.topic,"PUBLISH MESSAGE",e),e.sendNotifyToAllSubscribers(null,e.data)))}(i);break;case"subscribe":!function(e){h.system.info("RouterClient: PubSub subscribe","TOPIC",e.header.topic);let t=l[e.header.topic];if(void 0===t)for(const n in m)if(m[n].test(e.header.topic)){t=l[n];let r=g[e.header.topic];void 0===r&&(r=g[n]),g[e.header.topic]=r;break}void 0===t?h.system.warn("RouterClient: no pubsub responder defined for incoming subscribe",e):e.header.error?h.system.warn(`RouterClient: pubsub error received from router service: ${JSON.stringify(e.header.error)}`):(e.sendNotifyToSubscriber=$,t.subscribeCallback?(e.data=g[e.header.topic],t.subscribeCallback(null,e)):e.sendNotifyToSubscriber(null,g[e.header.topic]))}(i);break;case"unsubscribe":!function(e){let t=l[e.header.topic];if(void 0===t)for(const n in m)if(m[n].test(e.header.topic)){t=l[n];break}void 0===t?h.system.warn("RouterClient: no pubsub responder defined for incoming unsubscribe","TOPIC",e.header.topic,"UNSUBSCRIBE MESSAGE",e):(e.removeSubscriber=q,t.unsubscribeCallback?(h.system.info("RouterClient: incoming unsubscribe callback","TOPIC",e.header.topic,"UNSUBSCRIBE MESSAGE",e),t.unsubscribeCallback(null,e)):(h.system.info("RouterClient: incoming unsubscribe","TOPIC",e.header.topic,"UNSUBSCRIBE MESSAGE",e),e.removeSubscriber()))}(i);break;case"timeCalibration":const o=()=>{t?t(i):setTimeout((()=>{o()}),10)};o();break;case"initialHandshakeResponse":e()}}function K(e,t){t.header.lastClient=S,t.header.incomingTransportInfo=e,Y(t)}this.startupTime=0,this.notificationURL="";const Z=(t,n,r)=>{let o,s;h.system.debug(`Name of transport to establish: ${n}`),this.notificationURL=t.notificationURL;let l,u,c,d,p=!1,g=0;const m=t=>{s=0,h.system.debug("WINDOW LIFECYCLE:STARTUP:RouterClient:transport ready","TRANSPORT OBJECT",t),C=t,e=d,c(),o=setInterval(c,200)};l=e=>{h.system.error("RouterClientError",e)};const v=()=>{h.system.debug("WINDOW LIFECYCLE:STARTUP:RouterClient:getClientTransport","ROUTER PARAMS:",t),i.default.getTransport(t,n,K,S,"RouterService").then(m).catch(l)};u=()=>{if(clearInterval(o),g++,g<=3)h.system.error("WINDOW LIFECYCLE:STARTUP:RouterClient: failure to connect to router service. Retrying...",g,t),v();else{const e="A cross domain transport has failed to connect. Cross domain components may not work. Please contact your administrator.";h.system.error(e,t),a.default.alert("dev","ONCE-SINCE-STARTUP","FSBL-Internal-Transport-Failure",e,{url:this.notificationURL})}},c=()=>{h.system.debug("WINDOW LIFECYCLE:STARTUP:RouterClient: sendHandshake",s),B(new T),s++>50&&u()},d=()=>{if(!p){if(h.system.debug(`WINDOW LIFECYCLE:STARTUP:RouterClient connected: Starting ${S} with transport ${C.identifier()}`),p=!0,clearInterval(o),f)for(let e=0;e<f.length;e++){h.system.debug("RouterClient: firing queued msg");const t=f[e];C.send(t)}r&&r()}},v()};function J(){return`${S}.${d.v4()}`}function Q(e,t){let n=!1;return void 0!==e[t]&&(delete e[t],n=!0),n}this.calibrateTimeWithRouterService=function(e){let n,r=0,i=1/0;t=function(t){r++,r>5?function(t){let r=0;for(let e=1;e<5;e++){const o=t.clientBaseTime[e-1],a=t.clientBaseTime[e]-o,s=t.serviceBaseTime[e-1]-(o+a/2);a<i&&(i=a,n=s),r+=s,h.system.debug("calibrationCalculation Intermediate Values","lastRRT",a,"lastOffset",s,"fastestOffset",n,"fastestRRT",i)}r/=4,h.system.debug("RouterClient calibrationCalculation","Average Offset",r,"Chosen FastestOffset",n,t),e(n)}(t):(t.clientBaseTime.push(u.Globals.performance.timing.navigationStart+u.Globals.performance.now()),B(new k(t.clientBaseTime,t.serviceBaseTime)))},t(new k([],[]))},this.onReady=e=>new Promise((t=>{o.default.args(e,"function");const n=()=>{e&&e(),t()};x?n():E.push(n)})),this.addListener=function(e,t){h.system.info("RouterClient.addListener","CHANNEL",e),o.default.args(e,"string",t,"function"),function(e,t,n){let r=!1;const i=e[t];return void 0===i||0===i.length?(e[t]=[n],r=!0):i.push(n),r}(n,e,t)&&B(new O(e))},this.transmit=function(e,t,n={suppressWarnings:!1}){h.isLogMessage(e)||h.system.info("RouterClient.transmit","TO CHANNEL",e,"EVENT",t),o.default.args(e,"string",t,"any"),B(new L(e,t,n))},this.removeListener=function(e,t){h.system.info("RouterClient.removeListener","CHANNEL",e,"EVENT HANDLER",t),o.default.args(e,"string",t,"function"),function(e,t,n){let r=!1;const i=e[t];if(void 0!==i){const e=i.indexOf(n);e>-1?(i.splice(e,1),0===i.length&&(r=!0)):h.system.warn(`no listener defined for channel: ${t}`)}return r}(n,e,t)&&B(new R(e))},this.addResponder=(e,t)=>{if(h.system.info("RouterClient.addResponder","CHANNEL",e),o.default.args(e,"string",t,"function"),function(e,t,n){let r=!1;return void 0===e[t]&&(e[t]=n,r=!0),r}(r,e,t))B(new I(e));else{const n=`RouterClient.addResponder: Responder already locally defined for channel ${e}`;h.system.warn(n),t(n,null)}},this.query=(e,t,n,r)=>{const i=`${J()}.${e}`,a=window.performance.timing.navigationStart+window.performance.now(),s=window.performance.timing.navigationStart,l=window.performance.now();return h.system.info("RouterClient.query","RESPONDER CHANNEL",e,"QUERY EVENT",t,"PARAMS",n,"QUERY ID",i,{timestamp:a,navstart:s,timenow:l}),r||(r=n,n={timeout:2e4}),o.default.args(e,"string",t,"any=",n,"object=",r,"function"),n=n||{},o.default.args2("params.timeout",n.timeout,"number"),new Promise((function(o){b[i]=(u,c)=>{o({err:u,response:c}),"function"==typeof r?r(u,c):h.system.warn("No response event handler passed to RouterClient.query","RESPONDER CHANNEL",e,"QUERY EVENT",t,"PARAMS",n,"QUERY ID",i,{timestamp:a,navstart:s,timenow:l})},u.Globals.runningInFSBLUnitTest||function(e,t,n,r){r>0&&(e[t]=setTimeout((()=>{h.system.warn(`RouterClient: timeout waiting on query response on channel ${n} for queryID ${t} on timer ${e[t]} timeout=${r}`)}),r))}(_,i,e,n.timeout),B(new A(i,e,t))}))},this.removeResponder=e=>{h.system.info("RouterClient.removeResponder","RESPONDER CHANNEL",e),o.default.args(e,"string"),Q(r,e)&&B(new N(e))},this.addPubSubResponder=(e,t,n,r)=>{let i,a;h.system.info("RouterClient.addPubSubResponder","TOPIC",e,"INITIAL STATE",t,"PARAMS",n),o.default.args(e,"any",t,"object=",n,"object="),n=n||{},o.default.args2("params.subscribeCallback",n.subscribeCallback,"function=","params.publishCallback",n.publishCallback,"function=")&&o.default.args2("params.unsubscribeCallback",n.unsubscribeCallback,"function="),void 0===n.subscribeCallback&&void 0===n.publishCallback&&void 0===n.unsubscribeCallback?(t=t||{},B(new z(e.toString(),t,!0)),a="success"):!function(e,t,n,r){let i=!1;return void 0===l[e.toString()]&&(e instanceof RegExp&&(m[e.toString()]=e,h.system.info(`RouterClient: PubSub RegEx added for topic ${e.toString()}`)),l[e.toString()]={subscribeCallback:t,publishCallback:n,unsubscribeCallback:r},i=!0),i}(e,n.subscribeCallback,n.publishCallback,n.unsubscribeCallback)?(i=`RouterClient.addPubSubResponder: Responder already locally defined for topic ${e}`,h.system.error(i)):(t=t||{},g[e.toString()]=p(t),B(new z(e.toString(),t,!1)),a="success"),r&&r(i,a)},this.removePubSubResponder=e=>{h.system.info("RouterClient.removePubSubResponder","TOPIC",e),o.default.args(e,"any"),Q(l,e)?(delete g[e.toString()],delete m[e.toString()],B(new j(e))):h.system.warn(`RouterClient.removePubSubResponder failed: Could not find responder for topic ${e}`)},this.subscribe=(e,t)=>{h.system.info("RouterClient.subscribe","TOPIC",e),o.default.args(e,"string",t,"function");const n=J();return function(e,t,n,r){e[t]=n,w[t]=r}(y,n,t,e),B(new P(n,e)),{subscribeID:n,topic:e}},this.publish=(e,t)=>{h.system.info("RouterClient.publish","TOPIC",e,"EVENT",t),o.default.args(e,"string",t,"any"),B(new F(e,t))},this.unsubscribe=e=>{h.system.info("RouterClient.unsubscribe","SUBSCRIBE ID",e),o.default.args(e,"object")&&o.default.args2("subscribeIDStruct.subscribeID",e.subscribeID,"string"),!function(e,t){let n=!1;return void 0!==e[t]&&(delete e[t],n=!0),n}(y,e.subscribeID)?h.system.warn(`RouterClient.unsubscribe: Could not find subscribeID for topic ${e.topic}`):B(new D(e.subscribeID,e.topic))},this.trustedMessage=function(e){let t=!0;return h.system.debug("RouterClient.trustedMessage header",e.header),"SharedWorker"===e.header.originIncomingTransportInfo.transportID&&(t=!0),t},this.disconnectAll=function(){h.system.info("RouterClient.disconnectAll");for(const e in n)h.system.debug(`RouterClient.disconnectAll is removing listener on ${e}`),B(new R(e)),delete n[e];for(const e in r)h.system.debug(`RouterClient.disconnectAll is removing responder on ${e}`),B(new N(e)),delete r[e];for(const e in l)h.system.debug(`RouterClient.disconnectAll is removing pubsub responder on ${e}`),B(new j(e)),delete l[e.toString()],delete g[e.toString()],delete m[e.toString()];for(const e in y){const t=w[e];h.system.debug(`RouterClient.disconnectAll is removing subscriber on ${t}`),B(new D(e,t)),delete y[e],delete w[e]}},this.start=e=>new Promise((async t=>{if(this.started){const e="RouterClient.start() called twice. Ignoring second call.";return h.warn(e),t(e)}this.started=!0,h=new c.LocalLogger,"loggerService"===s.System.Window.getCurrent().name&&(h=new c.LocalLogger),S=`RouterClient.${e.windowName}.${d.v4()}`;const n=`"RouterClient Check: connecting new client for ${S}`;h.system.debug(n),console.debug(n),Z(e,e.transportName,(()=>{!function(){for(h.system.debug("WINDOW LIFECYCLE:STARTUP:RouterClient Ready"),x=!0;E.length>0;)h.system.debug("WINDOW LIFECYCLE:STARTUP:RouterClient parentReady invoked"),E.shift()()}(),t(null)}))})),this.stop=()=>{this.disconnectAll(),i.default.close(),this.started=!1}}},39319:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RouterConnectionInstance=t.RouterConnectionSingleton=void 0;const r=n(40568),i=n(72551),o=n(4971);t.RouterConnectionSingleton=o.singleton("RouterClient",r.RouterClientConstructor),i.Logger.setRouterClient(t.RouterConnectionSingleton);var a=n(40568);Object.defineProperty(t,"RouterConnectionInstance",{enumerable:!0,get:function(){return a.RouterClientConstructor}}),t.default=t.RouterConnectionSingleton},63862:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StorageClient=void 0;const i=r(n(42169)),o=r(n(13712)),a=r(n(72551)),s=n(72669),l=n(24232),u=i.default(1);class c extends s._BaseClient{constructor(){super(...arguments),this.clientReady=!1,this.delete=this.remove}setUser(e,t){this.clientReady||a.default.system.error("storageClient invoked before ready"),o.default.args(e.user,"string",t,"function="),this.routerClient.query("Storage.setUser",{user:e.user},((n,r)=>{(n?a.default.system.error:a.default.system.info)("APPLICATION LIFECYCLE:StorageClient.setUser",e,n,r),t&&t(n,r.data)}))}setStore(e,t){this.clientReady||a.default.system.error("storageClient invoked before ready"),o.default.args(e.topic,"string",e.dataStore,"string=",t,"function="),a.default.system.log("APPLICATION LIFECYCLE:StorageClient.setStore",e,t),this.routerClient.query("Storage.setStore",e,((e,n)=>{(e?a.default.system.error:a.default.system.info)("Storage.setStore",e,n),t&&t(e,n.data)}))}save(e,t){if(this.clientReady||a.default.system.error("storageClient invoked before ready"),"string"!=typeof e.key||"string"!=typeof e.topic)throw new Error("Values for key and topic must be strings.");return new Promise(((n,r)=>{o.default.args(e.topic,"string",e.key,"string",e.value,"any",t,"function="),this.routerClient.query("Storage.save",e,((e,i)=>{(e?a.default.system.error:a.default.system.info)("Storage.save",e,i),t&&t(e,i.data),e?r({err:e,data:null}):n({err:e,data:i.data})}))}))}save1(e){return u((()=>this.save(e)))}get(e,t){if(this.clientReady||a.default.system.error("storageClient invoked before ready"),"string"!=typeof e.key||"string"!=typeof e.topic)throw new Error("Values for key and topic must be strings.");return new Promise(((n,r)=>{o.default.args(e.topic,"string",e.key,"string",t,"function="),this.routerClient.query("Storage.get",e,((e,i)=>{if(e)return a.default.system.error("Storage.get",e,i),t&&t(e,i?i.data:null),r(e,i?i.data:null);a.default.system.info("Storage.get",e,i),t&&t(e,i.data),n(i.data)}))}))}get1(e,t){return u((()=>this.get(e,t)))}async updateStorage(e){const{topic:t,key:n,updateFn:r}=e,i=await this.get({topic:t,key:n});return await this.save({topic:t,key:n,value:r(i)})}updateStorage1(e){return u((()=>this.updateStorage(e)))}keys(e,t){this.clientReady||a.default.system.error("storageClient invoked before ready"),o.default.args(e.topic,"string",t,"function="),a.default.system.debug("StorageClient.keys",e,t),this.routerClient.query("Storage.keys",e,((e,n)=>{(e?a.default.system.error:a.default.system.info)("Storage.keys",e,n),t&&t(e,n.data)}))}keys1(e){return u((()=>l.promisify(this.keys.bind(this))(e)))}getMultiple(e,t){this.clientReady||a.default.system.error("storageClient invoked before ready"),a.default.system.info("StorageClient.getMultiple",e,t),this.routerClient.query("Storage.getMultiple",e,((n,r)=>{(n?a.default.system.error:a.default.system.info)("StorageClient.getMultiple:",e,r),t&&t(n,r)}))}remove(e,t){return this.clientReady||a.default.system.error("storageClient invoked before ready"),new Promise(((n,r)=>{o.default.args(e.topic,"string",e.key,"string",t,"function="),this.routerClient.query("Storage.delete",e,((e,i)=>{(e?a.default.system.error:a.default.system.info)("StorageClient.delete",e,i),t&&t(e,i.data),e?r({err:e,data:null}):n({err:e,data:i.data})}))}))}remove1(e){return u((()=>this.remove(e)))}clearCache(e){a.default.system.log("StorageClient.clearCache",e),this.routerClient.query("Storage.clearCache",null,((t,n)=>{(t?a.default.system.error:a.default.system.info)("StorageClient.clearCache",t,n),e&&e(t,n.data)}))}}t.StorageClient=c;var d=new c({onReady(e){e&&e(),d.clientReady=!0},name:"storageClient"});t.default=d},95376:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(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)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(57664),l=a(n(63862)),u=a(n(68718)),c=o(n(76420)),d=n(51742),f=n(72669),h=a(n(72551)),p=a(n(13712)),g=n(75688),m=n(33998),v=a(n(39319)),y=n(78379),w=a(n(70010)),b=n(24232),_=n(80089);let S;function C(e,t){return e.classList?e.classList.contains(t):!!e.className.match(new RegExp(`(\\s|^)${t}(\\s|$)`))}class x extends f._BaseClient{constructor(e){super(e),this.showAtMousePosition=function(){this.routerClient.transmit("DockingService.showAtMousePosition",this.getWindowIdentifier())},p.default.args(e,"object=")&&e&&p.default.args2("params.onReady",e.onReady,"function="),this.options={},this.windowHash="",this.title=null,this.toolbarBottom=40,this.containers=[],this.componentState={},this.windowState="normal",this.hasHeader=!1,this.enableWindowsAeroSnap=!1,this.bindFunctions(),this.minimizeWithDockedWindows=this.minimize}bindFunctions(){this.onWindowRestored=this.onWindowRestored.bind(this),this.onWindowMaximized=this.onWindowMaximized.bind(this),this.onWindowBlurred=this.onWindowBlurred.bind(this),this.onWindowFocused=this.onWindowFocused.bind(this),this.onMinimizedRestored=this.onMinimizedRestored.bind(this),this.onWindowMinimized=this.onWindowMinimized.bind(this),this.close=this.close.bind(this),this.getInitialOptions=this.getInitialOptions.bind(this),this.cacheInitialBounds=this.cacheInitialBounds.bind(this),this._setHeaderHeight=this._setHeaderHeight.bind(this)}onWindowRestored(){this.updateHeaderState("Maximize",{hide:!1})}onWindowMaximized(){this.updateHeaderState("Maximize",{hide:!0})}onWindowBlurred(){this.setActive(!1)}onWindowFocused(){this.setActive(!0)}onMinimizedRestored(){this.routerClient.transmit("DockingService.windowRestored",S.name),S.removeEventListener("restored",this.onMinimizedRestored)}onWindowMinimized(){this.routerClient.query("DockingService.windowMinimized",{windowName:S.name}),S.addEventListener("restored",this.onMinimizedRestored)}getWindowGroups(){return this.windowGroups}groupUpdateHandler(e,t){e?FSBL.Clients.Logger.error(e):t.data&&t.data.groupData&&(this.windowGroups=Object.values(t.data.groupData).filter((e=>e.windowNames.includes(this.getWindowNameForDocking()))))}close(e,t=(()=>{})){e||(e={removeFromWorkspace:!0,closeWindow:!0});const{parentWindow:n}=S;if(e.userInitiated&&n)return n.close(e,t);S.close(e,t)}getWindowHash(){return this.windowHash}getWindowTitle(){return this.title}retrieveMonitorDimensions(e=Function.prototype){c.getMonitor(null,(t=>{S.updateOptions({options:{monitorDimensions:t.monitorRect}}),e&&e(t.monitorRect)}))}listenForHashChanges(){d.System.hasBrowserView()||(S.updateOptions({url:window.top.location.href},(()=>{})),function(e){const{pushState:t}=e;e.pushState=function(n){"function"==typeof e.onpushstate&&e.onpushstate({state:n}),t.apply(e,arguments),S.updateOptions({url:window.top.location.href},(()=>{}))};const{replaceState:n}=e;e.replaceState=function(t){"function"==typeof e.onreplacestate&&e.onreplacestate({state:t}),n.apply(e,arguments),S.updateOptions({url:window.top.location.toString()})}}(window.history),window.addEventListener("hashchange",(()=>{S.updateOptions({url:window.top.location.toString()},(()=>{}))})))}getInitialOptions(e){this.isInAService?(this.options={},h.default.system.debug("WindowClient:getting options empty",this.options),e()):S.getOptions(((t,n)=>{t&&(n={}),S.windowOptions=n,this.options=n,h.default.system.debug("WindowClient:getting options",this.options),e()}))}cacheInitialBounds(e){if(d.System.hasBrowserView())return e();this.cacheBounds((()=>{try{if(!S.windowOptions.customData.foreign.components["Window Manager"].persistWindowState)return e();S.updateOptions({options:{url:window.top.location.toString()}})}catch(e){h.default.system.warn('customData.foreign.components["Window Manager" is undefined')}e()}))}setInitialWindowBounds(e){h.default.system.warn("`FSBL.Clients.WindowClient.setInitialWindowBounds is deprecated and will be removed in a future version of finsemble. Use 'getInitialOptions' and 'cacheInitialBounds' instead."),s.parallel([this.getInitialOptions,this.cacheInitialBounds],e)}getWindowBounds(){return{top:S.windowOptions.defaultTop,left:S.windowOptions.defaultLeft,width:S.windowOptions.defaultWidth,height:S.windowOptions.defaultHeight}}saveWindowBounds(e,t){if(h.default.system.debug("WINDOW LIFECYCLE:SavingBounds:",e,"setActiveWorkspaceDirty",t),void 0===t&&(t=!1),p.default.args(e,"object")&&p.default.args2("bounds.top",e.top,"number"),e){S.updateOptions({options:{top:Math.round(e.top),defaultTop:Math.round(e.top),left:Math.round(e.left),defaultLeft:Math.round(e.left),width:Math.round(e.width),defaultWidth:Math.round(e.width),height:Math.round(e.height),defaultHeight:Math.round(e.height)}});try{S.windowOptions.customData.foreign.components["Window Manager"].persistWindowState}catch(e){}}}minimize(e){this.cacheBounds((()=>{S.minimize(null,(t=>{t&&h.default.system.error("WindowClient:minimize",t),e&&e(t)}))}))}setAlwaysOnTop(e,t){S.setAlwaysOnTop({alwaysOnTop:e},t)}restore(e=(()=>{})){S.restore(null,(t=>{t&&h.default.system.error("WindowClient:restore",t),e(t)}))}cacheBounds(e){this.getBounds(((t,n)=>{if(t)return e(),console.warn("Get bounds error.",t,"Window may not be registered with the window service");S.updateOptions({options:{cachedLeft:n.left,defaultLeft:n.left,cachedTop:n.top,defaultTop:n.top,cachedWidth:n.width,defaultWidth:n.width,cachedHeight:n.height,defaultHeight:n.height}}),e&&e(n)}))}maximize(e){S.maximize(),e()}removeFinWindowEventListeners(){S.removeEventListener("maximized",this.onWindowMaximized),S.removeEventListener("restored",this.onWindowRestored),S.removeEventListener("blurred",this.onWindowBlurred),S.removeEventListener("focused",this.onWindowFocused),S.removeEventListener("close-requested",this.close),S.removeEventListener("minimized",this.onWindowMinimized)}injectDOM(e){if(h.default.system.debug("injectDOM",e),document.getElementById("FSBLHeader"))return;window.scrollTo(0,0);const t=document.createElement("div");t.innerHTML=`<div id="FSBLHeader"${e?` style=height:${e}`:""}></div>`,t.firstChild&&document.body.insertBefore(t.firstChild,document.body.firstChild)}getComponentState(e,t){if(e||(e={}),e.fields&&!Array.isArray(e.fields)&&(e.fields=[e.fields]),p.default.args(e,"object",t,"function"),S)return S.getComponentState(e,t);h.default.system.warn("Attempt to use getComponentState before component is ready or in a service"),e.windowName||(e.windowName=window.name);const n=this.getContainerHash(e.windowName);l.default.get({topic:y.WORKSPACE.CACHE_STORAGE_TOPIC,key:n},((n,r)=>{if(n)return h.default.system.error("Error retrieving window client's component state."),void t(n);const i=r;if(r&&e.field)this.componentState=i||{},t(n,i[e.field]);else{if(e.fields){const n={};for(let t=0;t<e.fields.length;t++)i[e.fields[t]]&&(n[e.fields[t]]=i[e.fields[t]]);return t(null,n)}if(r)return t(null,i);h.default.system.info("WindowClient:getComponentState:error, response, params",n,r,e),t("Not found",r)}}))}async setComponentState(e,t=(()=>{})){return p.default.args(e,"object",t,"function=")&&p.default.args2("params.field",e.field,"string"),S?S.setComponentState(e,t):this.isInAService?(t("Cannot call setComponentState in a service."),Promise.resolve()):(t("Cannot call setComponentState. The window may not be ready"),Promise.reject("The window is not yet ready to save state."))}async removeComponentState(e,t=(()=>{})){return p.default.args(e,"object",t,"function=")&&p.default.args2("params.field",e.field,"string"),(S||await g.FinsembleWindow.getInstance({name:e.windowName||window.name})).removeComponentState(e,t)}getWindowNameForDocking(){const e=S.parentWindow;return e?e.name:S.name}getContainerHash(e){return c.camelCase(this.windowHash,e)}formGroup(){S.formGroup()}registerWithDockingManager(e,t){S.parentWindow&&(h.default.system.debug("registerWithDockingManager ignore registration request if has a parent"),t&&t());const n=S.name,{uuid:r}=S;this.startedRegistrationWithDocking=!0,this.routerClient.query("DockingService.registerWindow",{name:n,uuid:r,options:e||{},windowType:"WebWindow"},(()=>{this.startedRegistrationWithDocking=!1,this.deregisterPlease&&(this.deregisterWithDockingManager(),this.deregisterPlease=!1),h.default.system.debug("WINDOW LIFECYCLE: Docking Registration complete."),t&&t()}))}deregisterWithDockingManager(e){this.startedRegistrationWithDocking&&(this.deregisterPlease=!0);const t=S.name;this.routerClient.transmit("DockingService.deregisterWindow",{name:t,userInitiated:e})}bumpFixedElements(e){if("complete"!==document.readyState)return setTimeout((()=>{this.bumpFixedElements(e)}),100);if(!e)return;let{absolute:t,fixed:n,bumpBy:r}=e;if(!t&&!n)return;const i=document.getElementById("FSBLHeader");if(!i||0===i.children.length||!i.children[0].clientHeight)return setTimeout((()=>{this.bumpFixedElements(e)}),100);"auto"===r?r="0px":-1===new String(r).indexOf("px")&&(r=`${r}px`);const o=document.body.getElementsByTagName("*"),a=o.length;for(let e=0;e<a;e++){if("FSBLHeader"===o[e].id||o[e].classList.contains("fsbl-header"))continue;const i=window.getComputedStyle(o[e],null),a=["0","0px",0],s=i.getPropertyValue("top");t&&o[e].parentNode===document.body&&"absolute"==i.getPropertyValue("position")&&("all"==t?o[e].style.top=`calc(${s} + ${r})`:"0Positioned"==t&&a.includes(s)&&(o[e].style.top=r)),n&&"fixed"==i.getPropertyValue("position")&&("all"==n?o[e].style.top=`calc(${s} + ${r})`:"0Positioned"==n&&a.includes(s)&&(o[e].style.top=r))}}bringWindowToFront(){S.bringToFront({forceFocus:!0},(e=>{e?h.default.system.error(`WindowClient.bringWindowToFront: failure:${e}`):h.default.system.info("WindowClient.bringWindowToFront: success")}))}injectStylesheetOverride(){const e=document.createElement("style");e.type="text/css",e.appendChild(document.createTextNode(S.windowOptions.customData.cssOverride)),document.body.appendChild(e)}checkIfChildApp(){if(S.windowOptions&&S.windowOptions.customData&&S.windowOptions.customData.parentUUID&&S.windowOptions.customData.parentUUID!==d.System.Application.getCurrent().uuid){const e=d.System.Application.wrap(S.windowOptions.customData.parentUUID);e.addEventListener("crashed",this.close.bind(null,!1)),e.addEventListener("initialized",this.close.bind(null,!1)),e.addEventListener("out-of-memory",this.close.bind(null,!1))}}preventUnintendedDropEvents(){function e(e){e.preventDefault()}window.addEventListener("dragover",e,!1),window.addEventListener("drop",e,!1)}rejectWindowsKeyResizes(){let e=!1;const t=async t=>{this.enableWindowsAeroSnap?"Meta"===t.key&&v.default.transmit("Finsemble.WindowService.WindowsKey","up"):"Meta"===t.key&&e&&(e=!1,d.System.Window.getCurrent().updateOptions({resizable:!0}))},n=t=>{this.enableWindowsAeroSnap?"Meta"===t.key&&v.default.transmit("Finsemble.WindowService.WindowsKey","down"):"Meta"===t.key&&(e=!0,d.System.Window.getCurrent().updateOptions({resizable:!1}))};FSBL&&u.default.onReady((()=>{window.addEventListener("keyup",t),window.addEventListener("keydown",n)}))}modifyReload(){FSBL&&u.default.onReady((()=>{u.default.addBrowserHotkey(["ctrl","r"],S.reload)}))}addListeners(e=Function.prototype){this.listenForHashChanges(),this.preventUnintendedDropEvents(),this.rejectWindowsKeyResizes(),this.modifyReload(),S.addListener("setParent",(()=>{h.default.system.info("WindowClient.setParent deregisterWithDockingManager"),this.deregisterWithDockingManager()})),S.addEventListener("maximized",this.onWindowMaximized),S.addEventListener("minimized",this.onWindowMinimized),S.addEventListener("restored",this.onWindowRestored),S.addEventListener("blurred",this.onWindowBlurred),S.addEventListener("focused",this.onWindowFocused),e()}updateHeaderState(e,t){this.commandChannel&&this.commandChannel(e,t)}headerCommandChannel(e){this.commandChannel=e}ejectFromGroup(){S.ejectFromGroup()}setWindowTitle(e){h.default.system.deprecated("This method is deprecated and will be removed in a future release. Please simply set the application's `document.title` element to change the title. Or, set `components['Window Manager'].title` in the app's manifest."),this.setWindowTitlePrivate(e)}setWindowTitlePrivate(e){p.default.args(e,"string"),this.title=e,this.updateHeaderState("Main",{windowTitle:e}),S.setTitle(e)}getSpawnData(){if(!this.options.customData)return{};const{spawnData:e}=this.options.customData;return void 0===e?{}:e}getCurrentWindow(){return d.System.Window.getCurrent()}async getDesktopBoundingBox(e){let t=e;"string"==typeof e&&(t=document.querySelector(e));const n=t.getBoundingClientRect(),r=await S.getBounds(),i=r.data;let o,a;r.err?(o=this.options.defaultTop,a=this.options.defaultLeft):(o=i.top,a=i.left);const s={top:o+n.top,left:a+n.left,width:n.width,height:n.height,right:0,bottom:0};return s.right=s.left+s.width,s.bottom=s.top+s.height,s}isPointInBox(e,t){return t.bottom||(t.bottom=t.top+t.height),t.right||(t.right=t.left+t.width),e.x>t.left&&e.x<t.right&&e.y<t.bottom&&e.y>t.top}isMouseOverDOMElement(e,t){this.getDesktopBoundingBox(e).then((e=>{d.System.getMousePosition(((n,r)=>{t(this.isPointInBox(r,e))}))}))}getWindowIdentifier(){var e=null;return this.options&&this.options.customData&&this.options.customData.component&&(e=this.options.customData.component.type),{windowName:S?S.name:window.name,uuid:S?S.uuid:null,componentType:e}}setActive(e){var t,n;e?(n="desktop-active",(t=document.documentElement).classList?t.classList.add(n):C(t,n)||(t.className=`${t.className} ${n}`)):function(e,t){if(e.classList)e.classList.remove(t);else if(C(e,t)){const n=new RegExp(`(\\s|^)${t}(\\s|$)`);e.className=e.className.replace(n," ")}}(document.documentElement,"desktop-active")}getBounds(e){S.getBounds(((t,n)=>{e(t,n)}))}setShape(e,t=Function.prototype){S.setShape(e,t)}startTilingOrTabbing(e,t=Function.prototype){FSBL.Clients.RouterClient.transmit("DockingService.startTilingOrTabbing",e),t()}startMovingWindow(e){d.System.Window.getCurrent().startMovingWindow(e)}stopMovingWindow(){d.System.Window.getCurrent().stopMovingWindow()}cancelTilingOrTabbing(e,t=Function.prototype){console.debug("CancelTilingOrTabbing"),v.default.transmit("DockingService.cancelTilingOrTabbing",e),t()}sendIdentifierForTilingOrTabbing(e,t=Function.prototype){FSBL.Clients.RouterClient.transmit("DockingService.identifierForTilingOrTabbing",e),t()}stopTilingOrTabbing(e,t=Function.prototype){const n=()=>{v.default.query("DockingService.stopTilingOrTabbing",e,(()=>{t()})),v.default.transmit("DockingService.stopTilingOrTabbing",e)};return e.mousePosition?(n(),e.allowDropOnSelf?void 0:t()):d.System.getMousePosition(((r,i)=>{if(e.mousePosition=i,n(),!e.allowDropOnSelf)return t()}))}getStackedWindow(e,t){if(h.default.system.debug("WindowClient.getStackedWindow",e),t=t||e,(e=e||{}).windowIdentifiers=e.windowIdentifiers||[],!S.parentWindow&&e.create){const n=e=>{const{parentName:r}=e.data;S.setParent({windowName:r},((e,n)=>{t?.(e,n)})),S.removeListener("parent-set",n)};S.addListener("parent-set",n),FSBL.Clients.LauncherClient.spawn("StackedWindow",{windowType:"StackedWindow",data:{windowIdentifiers:e.windowIdentifiers},options:{newStack:!0}},((e,n)=>{h.default.system.debug("WindowClient.getStackedWindow-success",e,n),e&&t?.(e,null)}))}else S.getParent(t)}getMonitorInfo(e,t){c.getMyWindowIdentifier((n=>{e.windowIdentifier||(e.windowIdentifier=n),this.routerClient.query("Launcher.getMonitorInfo",e,((e,n)=>{t&&t(e,n.data)}))}))}fitToDOM(e,t){let n=document.documentElement.offsetHeight,r=this.options.width;"function"==typeof e&&(t=e,e=null),e&&e.padding&&(e.padding.height&&(n+=e.padding.height),e.padding.width&&(r+=e.padding.width)),e&&e.maxHeight&&n>e.maxHeight&&(n=e.maxHeight),h.default.system.debug("WindowClient.FitToDOM:newHeight",n,e),this.getMonitorInfo({},((e,i)=>{i&&(n>=i.availableRect.height&&(n=i.availableRect.height),r>=i.availableRect.width&&(r=i.availableRect.width)),h.default.system.debug("WindowClient.FitToDOM:fixBounds",n,r),S.getBounds(((e,i)=>{i.width!=r||i.height!=n?(i.width=r,i.height=n,S.setBounds({bounds:i},t)):"function"==typeof t&&t()}))}))}_setHeaderHeight(e){let t=document.getElementsByClassName("fsbl-header")[0];if(!t)return setTimeout((()=>{this._setHeaderHeight(e)}),100);let n=window.getComputedStyle(t,null).getPropertyValue("height");document.body.style.marginTop=n,e.bumpElements&&"auto"===e.bumpElements.bumpBy&&(e.bumpElements.bumpBy=n),this.bumpFixedElements(e.bumpElements)}async start(e=Function.prototype){if(p.default.args(e,"function"),b.iAmAServiceWindow())return this.isInAService=!0,e();setInterval((()=>{S&&document?.title&&this.title!==document.title&&(!FSBL.System.isBrowserView&&FSBL.System.hasBrowserView||this.setWindowTitlePrivate(document.title))}),200);const t=this;await w.default.getValue("finsemble");let n=null,r=!1,i=!1,o=!1;this.componentState={},(e=>{g.FinsembleWindow.getInstance({name:this.finWindow?.name,uuid:this.finWindow?.uuid},((t,n)=>{if(h.default.system.debug(`FinsembleWindow.getInstance ${this.finWindow?.name}`),"Cannot Wrap Service Manager or Services"==t)return this.isInAService=!0,this.windowHash=c.camelCase("activeWorkspace",window.name),e();!t&&n||h.default.system.error("wrap failure",t),this.finsembleWindow=n,({finsembleWindow:S}=this),this.windowHash=c.camelCase("activeWorkspace",S.name),this.addListeners(),this.routerClient.subscribe("Finsemble.WorkspaceService.groupUpdate",((e,t)=>this.groupUpdateHandler(e,t))),e()}))})((()=>{this.retrieveMonitorDimensions(),this.getInitialOptions((()=>{if(!S||!S.windowOptions)return this.isInAService||h.default.system.error("Something went wrong attempting to get the current window."),e();({customData:n}=S.windowOptions),h.default.system.debug("getInitialOptions",n),n&&(r=_(n,"window.compound",!1),n.cssOverride&&(h.default.system.debug("Window has cssOverride. See local window to inspect object"),i=!0),o=!r&&_(n,["foreign","components","Window Manager","FSBLHeader"],!1)),s.parallel([function(e){i&&t.injectStylesheetOverride(),e()},function(e){w.default.getValue("finsemble",((n,r)=>{n&&h.default.system.error("Error reading windowService config from finsemble");const i=r.services.windowService.config.enableWindowsAeroSnap;t.enableWindowsAeroSnap=m.ConfigUtilInstance.getDefault(r,"config.servicesConfig.docking.enableWindowsAeroSnap",i),e()}))},function(e){if(d.System.isBrowserView())e();else{if(!n||!n.component||b.iAmAServiceWindow())return e();{let r=m.ConfigUtilInstance.getDefault(n,"customData.foreign.services.windowService.manageWindowMovement",!1);r||(r=m.ConfigUtilInstance.getDefault(n,"customData.foreign.services.dockingService.manageWindowMovement",!1));const i=m.ConfigUtilInstance.getDefault(n,"customData.foreign.components.Window Manager.FSBLHeader",!1),o=m.ConfigUtilInstance.getDefault(n,"customData.window.dockable",!1);r=r||i||o;let a=b.checkDeprecatedConfigs(n,{baseString:"customData.foreign.services",newPath:"windowService",oldPath:"dockingService",newValue:"allowAutoArrange",oldValue:"isArrangable"},null);if(null===a&&(a=b.checkDeprecatedConfigs(n,{baseString:"customData.foreign.services",newPath:"windowService",oldPath:"dockingService",newValue:"allowAutoArrange",oldValue:"isArrangeable"},r)),!r&&!a)return e();if(n.window.allowAutoArrange=a,n.window.snapping=b.checkDeprecatedConfigs(n,{baseString:"customData.foreign.services",newPath:"windowService",oldPath:"dockingService",newValue:"allowSnapping",oldValue:"ignoreSnappingRequests"},r),n&&n.foreign&&n.foreign.services){const e=void 0!==n.foreign.services.windowService?"windowService":"dockingService";void 0!==n.foreign.services[e].ignoreSnappingRequests&&(n.window.snapping=!n.foreign.services[e].ignoreSnappingRequests)}if(m.ConfigUtilInstance.getDefault(n,"customData.window.ephemeral",!1)&&!n.window.snapping&&(n.window.snapping=!1),n.window.tiling=b.checkDeprecatedConfigs(n,{baseString:"customData.foreign.services",newPath:"windowService",oldPath:"dockingService",newValue:"allowTiling",oldValue:"ignoreTilingAndTabbingRequests"},r),n.window.tabbing=b.checkDeprecatedConfigs(n,{baseString:"customData.foreign.services",newPath:"windowService",oldPath:"dockingService",newValue:"allowTabbing",oldValue:"ignoreTilingAndTabbingRequests"},r),n&&n.foreign&&n.foreign.services){const e=void 0!==n.foreign.services.windowService?"windowService":"dockingService";void 0!==n.foreign.services[e].ignoreTilingAndTabbingRequests&&(n.window.tiling=!n.window.tiling,n.window.tabbing=!n.window.tabbing)}n.window.canGroup=b.checkDeprecatedConfigs(n,{baseString:"customData.foreign.services",newPath:"windowService",oldPath:"dockingService",newValue:"allowGrouping",oldValue:"canGroup"},r),n.window.canMinimize=b.checkDeprecatedConfigs(n,{baseString:"customData.foreign.services",newPath:"windowService",oldPath:"dockingService",newValue:"allowMinimize",oldValue:"canMinimize"},void 0),void 0===n.window.canMinimize&&(n.window.canMinimize=n.component.canMinimize,void 0===n.window.canMinimize&&(n.window.canMinimize=r)),void 0===n.window.canMaximize&&(n.window.canMaximize=n.component.canMaximize,void 0===n.window.canMaximize&&(n.window.canMaximize=r)),n.window.overwriteStartDocked=m.ConfigUtilInstance.getDefault(n,"customData.foreign.services.workspaceService.global",!1),t.registerWithDockingManager(n.window,(()=>{t.cacheInitialBounds(e)}))}}}],((t,n)=>e(t,n)))}))}))}}var E=new x({startupDependencies:{clients:["storageClient"]},onReady(e){E.start(e)},name:"windowClient"});t.default=E},6192:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Globals=void 0,t.Globals="undefined"==typeof window?n.g:window},4971:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.singleton=void 0,t.singleton=(e,t)=>{const r=Symbol.for(`com.finsemble.singleton.${e}`);return Object.getOwnPropertySymbols(n.g).indexOf(r)>-1||(n.g[r]=new t),n.g[r]}},78379:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.MOVE_REASON=t.LAUNCHER_SERVICE=t.HEARTBEAT_TIMEOUT_CHANNEL=t.COMPONENT_STATE_STORAGE_TOPIC=t.WINDOW_SERVICE_REQUESTS=t.WORKSPACE=t.WINDOW=t.INTERRUPTIBLE_EVENTS=t.EVENT_INTERRUPT_CHANNEL=t.DOCKING=t.SERVICE_STOP_CHANNEL=t.SERVICE_START_CHANNEL=t.WINDOWSTATE=t.SERVICES_STATE_CHANNEL=t.CLIENT_SERVER_MAPPING=t.SERVICE_QUERY_READY_CHANNEL=t.SERVICE_CLOSED_CHANNEL=t.SERVICE_CLOSING_CHANNEL=t.SERVICE_READY_CHANNEL=t.SERVICE_INITIALIZING_CHANNEL=t.APPLICATION_STATE_CHANNEL=t.WRAPPERS=void 0,t.WRAPPERS={EVENTS:["title-changed","bringToFront","setBounds","alwaysOnTop","setOpacity"]},t.APPLICATION_STATE_CHANNEL="Finsemble.Application.State",t.SERVICE_INITIALIZING_CHANNEL="Finsemble.ServiceManager.serviceInitializing",t.SERVICE_READY_CHANNEL="Finsemble.ServiceManager.serviceReady",t.SERVICE_CLOSING_CHANNEL="Finsemble.ServiceManager.serviceClosing",t.SERVICE_CLOSED_CHANNEL="Finsemble.ServiceManager.serviceClosed",t.SERVICE_QUERY_READY_CHANNEL=e=>`Finsemble.ServiceManager.queryReady.${e}`,t.CLIENT_SERVER_MAPPING=e=>({authenticationClient:"authenticationService",configClient:"configService",distributedStoreClient:"dataStoreService",hotkeysClient:"hotkeysService",linkerClient:"linkerService",logger:"loggerService",searchClient:"searchService",storageClient:"storageService",windowClient:"windowService",workspaceClient:"workspaceService"}[e]),t.SERVICES_STATE_CHANNEL="Finsemble.State.Services",(n=t.WINDOWSTATE||(t.WINDOWSTATE={}))[n.NORMAL=0]="NORMAL",n[n.MINIMIZED_WAS_NORMAL=1]="MINIMIZED_WAS_NORMAL",n[n.MAXIMIZED=2]="MAXIMIZED",n[n.MINIMIZED_WAS_MAXIMIZED=3]="MINIMIZED_WAS_MAXIMIZED",n[n.TRANSITIONING=4]="TRANSITIONING",t.SERVICE_START_CHANNEL="Finsemble.Service.Start",t.SERVICE_STOP_CHANNEL="Finsemble.Service.Stop",t.DOCKING={GROUP_UPDATE:"DockingService.groupUpdate",WORKSPACE_GROUP_UPDATE:"Finsemble.WorkspaceService.groupUpdate",REQUEST_PUBLISH:"DockingService.requestGroupDataPublish"},t.EVENT_INTERRUPT_CHANNEL="Finsemble.Event.Interrupt",t.INTERRUPTIBLE_EVENTS=["close-requested","closed","close-complete","_container-close-handlers"],t.WINDOW={DELAYABLE_EVENTS:["close-requested","closed","close-complete","_container-close-handlers"],CANCELABLE_EVENTS:["close-requested"]},t.WORKSPACE={DELAYABLE_EVENTS:["load-requested","close-requested","save-requested"],CANCELABLE_EVENTS:["close-requested"],CLEAN_SHUTDOWN:"Finsemble.Workspace.cleanShutdown",UPDATE_PUBSUB:"Finsemble.WorkspaceService.update",STORAGE_TOPIC:"finsemble.workspace",CACHE_STORAGE_TOPIC:"finsemble.workspace.cache",ALL_WORKSPACES:"finsemble.allWorkspaces",ACTIVE_WORKSPACE:"activeWorkspace",LAST_USED_WORKSPACE_TOPIC:"finsemble",LAST_USED_WORKSPACE_NAME:"finsemble.lastUsedWorkspace.name",LAST_USED_WORKSPACE:"finsemble.lastUsedWorkspace",INITIAL_WORKSPACE_PREFERENCE:"finsemble.initialWorkspace",PUBLISH_REASONS:{INIT:"workspace:initialization",LOAD_DATA_RETRIEVED:"workspace:load:dataRetrieved",LOAD_FINISHED:"workspace:load:finished",WINDOW_REMOVED:"window:remove",WINDOW_ADDED:"window:add",LOAD_STARTED:"workspace:load:start",WORKSPACE_REMOVED:"Workspace:remove",WORKSPACE_RENAMED:"rename",SWITCHTO_TERMINATED:"workspace:switchTo:terminated",NEW_WORKSPACE:"new workspace",SAVE_AS:"APPLICATION LIFECYCLE:WORKSPACE LIFECYCLE:SaveAs:Workspace:Save As"},API_CHANNELS:{NEW_WORKSPACE:"Finsemble.Workspace.NewWorkspace",SAVE:"Finsemble.Workspace.Save",RENAME:"Finsemble.Workspace.Rename",SAVE_AS:"Finsemble.Workspace.SaveAs",SWITCH_TO:"Finsemble.Workspace.SwitchTo",IMPORT:"Finsemble.Workspace.Import",EXPORT:"Finsemble.Workspace.Export",REMOVE:"Finsemble.Workspace.Remove",SAVE_GLOBAL_DATA:"Finsemble.Workspace.SaveGlobalData",SAVE_VIEW_DATA:"Finsemble.Workspace.SaveViewData",GET_GLOBAL_DATA:"Finsemble.Workspace.GetGlobalData",GET_VIEW_DATA:"Finsemble.Workspace.GetViewData",GET_WORKSPACES:"Finsemble.Workspace.GetWorkspaces",GET_WORKSPACE_NAMES:"Finsemble.Workspace.GetWorkspaceNames",SET_WORKSPACE_ORDER:"Finsemble.Workspace.SetWorkspaceOrder",GET_ACTIVE_WORKSPACE:"Finsemble.Workspace.GetActiveWorkspace",GET_ACTIVE_WORKSPACE_DIRTY:"Finsemble.Workspace.GetActiveWorkspaceDirty",GET_TEMPLATES:"Finsemble.Workspace.GetTemplates",IMPORT_TEMPLATE:"Finsemble.Workspace.ImportTemplate",EXPORT_TEMPLATE:"Finsemble.Workspace.ExportTemplate",REMOVE_TEMPLATE:"Finsemble.Workspace.RemoveTemplate",SET_WINDOW_STATE:"Finsemble.Workspace.SetWindowData",GET_WINDOW_STATE:"Finsemble.Workspace.GetWindowData",ADD_WINDOW:"WorkspaceService.addWindow",REMOVE_WINDOW:"WorkspaceService.removeWindow"},DEFAULT_WINDOW_PROPS:["name","componentType","windowType","alwaysOnTop","autoShow","minWidth","minHeight","maxWidth","maxHeight","resizable","maximizable","minimizable","opacity","windowState","left","top","width","height","right","bottom","defaultLeft","defaultTop","defaultWidth","defaultHeight","defaultRight","defaultBottom","monitorInfo","icon","cachedBounds","showTaskbarIcon","isEvergreen","compositeComponentData"],ADDITIONAL_WINDOW_PROPS:{WebWindow:["url","fullscreen","frame","backgroundColor","transparent","waitForPageLoad","affinity","appUUID"],NativeWindow:["path","alias","arguments","argumentsAsQueryString","isWPF"],StackedWindow:["childWindowIdentifiers","visibleWindowIdentifier","bounds"]}},t.WINDOW_SERVICE_REQUESTS={REMOTE_FOCUS:"WindowService.remoteFocus",SET_ALWAYS_ON_TOP:"WindowService-Request-setAlwaysOnTop",IS_ALWAYS_ON_TOP:"WindowService-Request-isAlwaysOnTop"},t.COMPONENT_STATE_STORAGE_TOPIC="finsemble.componentStateStorage",t.HEARTBEAT_TIMEOUT_CHANNEL="Finsemble.WindowService.HeartbeatTimeout",t.LAUNCHER_SERVICE={WINDOW_CLOSED:"LauncherService.WindowClosed"},t.MOVE_REASON={AERO_KEY:"aero_key",SYSTEM_RESTORED:"system_restored"}},13854:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FSBLDependencyManagerSingleton=t.FSBLDependencyManager=void 0;const i=n(5939),o=r(n(39319)),a=n(78379),s=r(n(5020)),l=r(n(72551));class u extends i.EventEmitter{constructor(e){super(),this.callback=e.callback,this.dependencies=e.dependencies,this.startupTimer=null,this.setStartupTimer=this.setStartupTimer.bind(this),this.clearStartupTimer=this.clearStartupTimer.bind(this)}clearStartupTimer(){this.startupTimer&&clearTimeout(this.startupTimer),delete this.startupTimer}setStartupTimer(){const e=this;this.startupTimer=+setTimeout((()=>{e.emit("timeout")}),1e4)}}function c(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}class d{constructor(){this.servicesAreAllOnline={},this.clientsAreAllOnline={},this.onlineClients=[],this.dependencies={},this.startupTimers={},this.startupTimerFired=!1,this.bindCorrectContext()}waitFor(e,t){const n=c();e.clients||(e.clients=[]),e.clients.length&&(e.clients=e.clients.map((e=>e.charAt(0).toLowerCase()+e.slice(1))));const r=new u({dependencies:e,callback:t});return r.setStartupTimer(),r.on("timeout",(()=>{this.onDependencyTimeout(r)})),this.dependencies[n]=r,this.checkDependencies(),r}onDependencyTimeout(e){const t=this.getOfflineClients();let n="APPLICATION LIFECYCLE:STARTUP:Dependency not online after 10 seconds.";t.length&&(n=`${n} Waiting for these clients: ${t.join(", ")}.`),e.emit("err",n)}checkDependencies(){for(const e in this.dependencies){const t=this.dependencies[e],{dependencies:n,callback:r}=t;(!n.clients.length||this.clientsAreAllOnline[e]||(this.clientsAreAllOnline[e]=this.checkClients(n.clients),this.clientsAreAllOnline[e]))&&(delete this.dependencies[e],t.clearStartupTimer(),r&&r())}}getOfflineClients(){let e=[];for(const t in this.dependencies){const{dependencies:n}=this.dependencies[t];e=e.concat(n.clients.filter((e=>!this.onlineClients.includes(e))))}return e.filter(((t,n)=>e.indexOf(t)===n))}checkClients(e){return e.every((e=>this.onlineClients.includes(e)))}setClientOnline(e){this.onlineClients.includes(e)||(this.onlineClients.push(e),this.checkDependencies())}getOnlineClients(){return this.onlineClients}bindCorrectContext(){this.checkDependencies=this.checkDependencies.bind(this),this.checkClients=this.checkClients.bind(this),this.getOfflineClients=this.getOfflineClients.bind(this),this.onDependencyTimeout=this.onDependencyTimeout.bind(this),this.waitFor=this.waitFor.bind(this)}}class f{constructor(){this.offlineServices=[],this.dependencies={},this.checkDependencies=this.checkDependencies.bind(this)}waitFor(e,t){l.default.system.debug("DependencyManager:waitFor",e),e.services||(e.services=[]);const n=c();this.dependencies[n]={dependencies:e,callback:t}}checkDependencies(){if(console.debug("checkDependencies",this.dependencies),Object.keys(this.dependencies))for(const e in this.dependencies){const{dependencies:t,callback:n}=this.dependencies[e];(l.default.system.debug("DependencyManager:checkDependency",t.services,this.offlineServices),!t.services.length||this.checkServices(t.services))&&(console.debug("checkDependencies callback"),delete this.dependencies[e],n&&n())}}checkServices(e){return e.every((e=>this.offlineServices.includes(e)))}setServiceOffline(e){l.default.system.debug("setServiceOffline",e),console.debug("setServiceOffline",e),this.offlineServices.push(e),this.checkDependencies()}}class h extends i.EventEmitter{constructor(){super(),this.startup=new d,this.shutdown=new f,this.RouterClient=o.default,this.AuthorizationCompleted=!1,this.bindCorrectContext(),this.onAuthorizationCompleted(this.startup.checkDependencies),o.default.onReady(this.listenForServices)}bindCorrectContext(){this.listenForServices=this.listenForServices.bind(this),this.onAuthorizationCompleted=this.onAuthorizationCompleted.bind(this)}setClientOnline(e){this.startup.setClientOnline(e)}onServiceStateChange(e){Object.keys(e).forEach((t=>{const{state:n}=e[t];"closed"===n&&this.shutdown.setServiceOffline(t)}))}listenForServices(){l.default.system.debug("DependencyManager:listenForServices before wait"),s.default.waitForBootStage("kernel","stageEntered",(()=>{l.default.system.debug("DependencyManager:listenForServices after wait"),this.RouterClient.subscribe(a.SERVICES_STATE_CHANNEL,((e,t)=>{l.default.system.debug("DependencyManager:listenForServices SERVICES_STATE_CHANNEL",t.data),this.onServiceStateChange(t.data)})),this.RouterClient.addListener(a.SERVICE_CLOSED_CHANNEL,((e,t)=>{l.default.system.debug("DependencyManager:listenForServices SERVICE_CLOSED_CHANNEL",t.data);const n={};n[t.data.name]={state:"closed"},this.onServiceStateChange(n)})),this.RouterClient.subscribe(a.APPLICATION_STATE_CHANNEL,((e,t)=>{switch(t.data.state){case"authenticated":case"ready":break;case"closing":this.shutdown.checkDependencies()}}))}))}onAuthorizationCompleted(e){this.AuthorizationCompleted?e():this.addListener("AuthorizationCompleted",e)}}t.FSBLDependencyManager=h,t.FSBLDependencyManagerSingleton=new h,t.default=t.FSBLDependencyManagerSingleton},24232:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.checkDeprecatedConfigs=t.isEqualIgnoringArrayOrder=t.sleep=t.checkIfBoundsAreEqual=t.removeKeys=t.toRecord=t.isStackedWindow=t.wrapWithTimeout=t.timeoutPromise=t.getRandomWindowName=t.getProp=t.composeRL=t.instrumentPromise=t.promisify=t.identity=t.isNumber=t.chunkArray=t.Timeout=t.mockLogger=t.capitalizeFirst=t.clone=t.isServiceInWindow=t.iAmAServiceWindow=t.guuid=void 0;const i=n(50586),o=r(n(80089)),a=r(n(75892)),s=r(n(47184)),l=r(n(65162)),u=n(33998),c=r(n(72551)),d=window;function f(e,t){if(Array.isArray(e))return e.slice();try{return JSON.parse(JSON.stringify(e))}catch(e){return t("clone error",e),e}}function h(e,t){return new Promise(((n,r)=>{const i=setTimeout((()=>{clearTimeout(i),r(t)}),e)}))}function p(e,t,n){return`${e}.${t}.${n}`}function g(e,t,n){const r=`${p(e.baseString,e.newPath,e.newValue)}`;c.default.system.deprecated(`${p(e.baseString,t,n)} has been deprecated in favor of ${r}`)}t.guuid=function(){return i.v4()},t.iAmAServiceWindow=function(){return!(!d.finsembleServices||!d.finsembleServices.length)},t.isServiceInWindow=function(e){return d.finsembleServices&&d.finsembleServices.find((t=>t.name===e))},t.clone=f,t.capitalizeFirst=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},t.mockLogger=new class{constructor({debug:e}={debug:!0}){e?(this.system=console,this.system.debug=console.log):this.system={warn:Function.prototype,debug:Function.prototype,log:Function.prototype,info:Function.prototype,error:console.error}}isLogMessage(){return!0}start(){}},t.Timeout=class{constructor(e,t){this.fired=!1,this.id=setTimeout((()=>{e(),this.fired=!0}),t),this.clear=this.clear.bind(this),this.didFire=this.didFire.bind(this)}clear(){this.fired||clearTimeout(this.id)}didFire(){return this.fired}},t.chunkArray=function(e,t){if(e<=0)throw new Error("Can't chunk array by number less than 0");return t.reduce(((n,r,i)=>{if(i%e==0){const r=[];for(let n=i;n<i+e;n++)n<t.length&&r.push(t[n]);n.push(r)}return n}),[])},t.isNumber=function(e){return!(!e||Number.isNaN(Number(e)))&&Number(e)},t.identity=function(e){return e},t.promisify=function(e,t){return function(){const n=Array.prototype.slice.call(arguments);return new Promise(((r,i)=>{n.push(((e,t)=>e?i(e):r(t))),e.apply(t,n)}))}},t.instrumentPromise=async(e,t,n)=>{const r=`${t} end`;return e(`${t} start`),n.then((()=>e(r)))},t.composeRL=(...e)=>e.reduce(((e,t)=>(...n)=>e(t(...n)))),t.getProp=function e(t,n,r){const i=Array.isArray(n)?n:n.split(".").filter((e=>e.length));return i.length?e(t[i.shift()],i,r):void 0===t?r:t},t.getRandomWindowName=function(e="RouterClient"){return`${e}-${i.v4()}`},t.timeoutPromise=h,t.wrapWithTimeout=function(e,t,n){return Promise.race([e,h(t,n)])},t.isStackedWindow=function(e){return e&&"StackedWindow"===(o.default(e,"windowIdentifier.windowType")||e.windowType)},t.toRecord=function(e,t){const n="string"==typeof e?t=>t[e]:e;return t.reduce(((e,t)=>(e[n(t)]=t,e)),{})},t.removeKeys=function(e,t){if(!e)return e;const n=Object.keys(e).filter((e=>!t.includes(e)));return a.default(e,n)},t.checkIfBoundsAreEqual=function(e,t){if(!e||!t)return!1;const n=["left","right","top","bottom","width","height"],r=a.default(e,n),i=a.default(t,n);return!!s.default(r,i)},t.sleep=function(e,t=!1){return new Promise(((n,r)=>{t?setTimeout((()=>{try{r("timeout expired")}catch{}}),e):setTimeout(n,e)}))},t.isEqualIgnoringArrayOrder=function(e,t){const n=f(e,Function.prototype),r=f(t,Function.prototype);return l.default(n,r,((e,t)=>{if(Array.isArray(e)&&Array.isArray(t))return l.default(e.sort(),t.sort())}))},t.checkDeprecatedConfigs=function(e,t,n){const{baseString:r,oldPath:i,newPath:o,oldValue:a,newValue:s}=t;let l=u.ConfigUtilInstance.getDefault(e,p(r,o,s),null);return null===l&&(l=u.ConfigUtilInstance.getDefault(e,p(r,o,a),null),l?g(t,o,a):(l=u.ConfigUtilInstance.getDefault(e,p(r,i,s),null),l?g(t,i,s):(l=u.ConfigUtilInstance.getDefault(e,p(r,i,a),null),l?g(t,i,a):l=n))),l}},59459:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(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)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=a(n(39319)),l=o(n(78379));t.default=class{constructor(e,t){this.allowDelay=!1,this.delayed=!1,this.allowCancel=!1,this.canceled=!1,this.completed=!1,this.event=e.event,this.source=e.source,this.sourceType=e.sourceType,this.listenerGuid=e.listenerGuid,l[this.sourceType.toUpperCase()]&&l[this.sourceType.toUpperCase()].DELAYABLE_EVENTS.includes(this.event)&&(this.allowDelay=!0),l[this.sourceType.toUpperCase()]&&l[this.sourceType.toUpperCase()].CANCELABLE_EVENTS.includes(this.event)&&(this.allowCancel=!0),this.handler=e.handler,this.queryMessage=t,this.guid=t.data.guid,this.internalHandler()}async internalHandler(){this.data=this.queryMessage.data.data,this.handler&&await this.handler(this),this.delayed||this.canceled||this.completed||this.done()}cancel(){this.allowCancel&&(this.canceled=!0,this.done())}wait(){this.allowDelay?(this.delayed=!0,this.queryMessage.sendQueryResponse(null,{delayed:!0})):this.done()}done(e){this.completed=!0,this.delayed?s.default.transmit(`Finsemble.Listener.Done.${this.guid}.${this.listenerGuid}`,{canceled:this.canceled,data:e}):this.queryMessage.sendQueryResponse(null,{canceled:this.canceled,data:e})}}},57815:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(39319)),o=r(n(72551)),a=r(n(59459));t.default=class{constructor(e){this.eventList=[],this.eventHandlerMap={},this.eventGuidMap={},this.name=e.name,this.sourceType=e.sourceType,window.addEventListener("beforeunload",(()=>{this.cleanup()}))}addListener(e,t){return this.addEventListener(e,t)}removeListener(e,t){return this.removeEventListener(e,t)}addEventListener(e,t){if(!t)return console.error("no handler",e);if(o.default.system.debug("addEventListener:",e),this.eventHandlerMap[e]||(this.eventHandlerMap[e]=[],this.eventGuidMap[e]=[]),!this.eventHandlerMap[e].includes(t)){const n=`${window.name}_public_${Date.now()}_${Math.random()}`;this.eventHandlerMap[e].push(t),this.eventGuidMap[e].push(n),i.default.transmit(`Finsemble.RegisterInterruptibleEvent.${this.name}`,{event:e,listenerGuid:n}),i.default.addResponder(`Finsemble.Interrupt.${n}`,((r,i)=>{new a.default({source:this.name,sourceType:this.sourceType,listenerGuid:n,handler:t,event:e},i)}))}}removeEventListener(e,t){if(o.default.system.debug("removeEventListener:",e),!this.eventHandlerMap[e])return o.default.system.warn("not found");let n=this.eventHandlerMap[e].indexOf(t);if(-1!==n){const t=this.eventGuidMap[e][n];this.eventHandlerMap[e].splice(n,1),this.eventGuidMap[e].splice(n,1),i.default.transmit(`Finsemble.UnregisterInterruptibleEvent.${window.name}`,{event:e,guid:t}),i.default.removeResponder(`Finsemble.Interrupt.${t}`)}}cleanup(){for(var e of Object.keys(this.eventHandlerMap))for(var t of this.eventHandlerMap[e])this.removeEventListener(e,t)}}},82369:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(72551)),o=n(51742),a={activeTransports:{},liveTransport:null,addTransport(e,t){this.activeTransports[e]=t,i.default.system.log(`RouterTransport ${e} added to activeTransports`)},getActiveTransports(e){const t=[];function n(e){-1===t.indexOf(e)&&t.push(e)}return o.System.InterApplicationBus&&n("IPCBus"),n("FinsembleTransport"),SharedWorker&&n("SharedWorker"),n(e.sameDomainTransport),n(e.crossDomainTransport),i.default.system.log("getActiveTransports",t),t},getTransport:(e,t,n,r,i)=>new Promise(((o,s)=>{const l=a.activeTransports[t];l?a.liveTransport=new l(e,n,r,i,(e=>{o(e)})):s(`unknown router transport name: ${t}`)})),close(){a.liveTransport&&(a.liveTransport.close(),a.liveTransport=null)}},s=function(e,t,n,r,o){let a;const s=this;this.send=function(e,t){1===arguments.length?(t=arguments[0],e=null):(e=arguments[0],t=arguments[1]),i.default.system.verbose("SharedWorkerTransport Outgoing Transport",t);try{a.port.postMessage([e,t])}catch(e){i.default.system.error(`SharedWorkerTransport: post message failed: ${JSON.stringify(e)}`,"Probable cause is sending illegal data type (e.g. function).")}},this.identifier=function(){return"SharedWorker"};const l=e.transportSettings.SharedWorker&&e.transportSettings.SharedWorker.workerPath?e.transportSettings.SharedWorker.workerPath:`${e.routerDomainRoot}/common/routerSharedWorker.js`;i.default.system.log(`SharedWorker Transport Initializing for ${n} using ${l}`),console.log(`SharedWorker Transport Initializing for ${n} using ${l}`),a=new SharedWorker(l,{name:"Finsemble",credentials:"include"}),a.port.onmessage=function(e){const n=e.data[0],r=e.data[1],o={transportID:s.identifier(),port:n};i.default.system.verbose("SharedWorkerTransport Incoming Transport",o,"Message",r),t(o,r)},a.onerror=function(e){i.default.system.error(`SharedWorkerTransport Transport Error${JSON.stringify(e)}`)},a.port.start(),"RouterService"===n&&a.port.postMessage({data:"connect",source:"RouterService"}),this.close=()=>{a.port.close()},o(this)},l=function(e,t,n,r,a){const{uuid:s}=o.System.Application.getCurrent(),l=this;this.send=function(e,t){let n;1===arguments.length?(n=r,t=arguments[0]):(n=e.name,t=arguments[1]),i.default.system.verbose("IPCTransport Outgoing Transport",s,n,"Message",t),o.System.InterApplicationBus.publish(n,t,(()=>{}),(()=>{}))},this.identifier=function(){return"IPCBus"},i.default.system.log(`IPCBus Transport Initializing for ${n}`),console.log(`IPCBus Transport Initializing for ${n}`);const u=o.System.InterApplicationBus.subscribe("*",n,(function(e,n){const r={transportID:l.identifier(),senderUuid:n,name:e.header.origin};i.default.system.verbose("IPCTransport Incoming Transport",r,"Message",e),t(r,e)}),(()=>{}),(function(e){i.default.system.error(`IPCBus Subscribe Failure: ${e}`)}));this.close=()=>{o.System.InterApplicationBus.unsubscribe(u)},a(this)},u=function(e,t,n,r,o){const a=`${e?.transportSettings?.FinsembleTransport?.serverAddress??e?.transportSettings?.serverAddress??"ws://127.0.0.1:3376"}/router`,s=this;let l;function u(){i.default.system.error(`FinsembleTransport Connection Timeout for ${n}`),o(s)}function c(){i.default.system.log(`FinsembleTransport Transport Initializing for ${n} using ${a}`),console.log(`FinsembleTransport Transport Initializing for ${n} using ${a}`),a.startsWith("ws:")||a.startsWith("wss:")||console.error(`Illegal WebSocket address "${a}" (Missing ws:// or wss:// ?)`),l=new WebSocket(a);const e=setTimeout(u,3e3);l.addEventListener("open",(()=>{clearTimeout(e),i.default.system.log("FinsembleTransport Connected to Server"),console.log("FinsembleTransport Connected to Server"),l.addEventListener("message",(e=>{const r=JSON.parse(e.data);("RouterService"===n&&"ROUTER_SERVICE"==r.dest||n===r.message.client)&&function(e){const n={transportID:s.identifier(),client:e.clientMessage.header.origin};i.default.system.verbose("FinsembleTransport Incoming Transport",n,"Message",e),t(n,e.clientMessage)}(r.message)})),o(s)}))}this.send=function(e,t){let n,r;1===arguments.length?(n="ROUTER_SERVICE",r={clientMessage:t=arguments[0]}):(n="ROUTER_CLIENT",t=arguments[1],r={client:e.client,clientMessage:t}),i.default.system.verbose("FinsembleTransport Outgoing Transport",n,"NewMessage",r),l.readyState===WebSocket.OPEN&&l.send(JSON.stringify({dest:n,message:r})),l.readyState===WebSocket.CONNECTING&&l.addEventListener("open",(()=>{l.send(JSON.stringify({dest:n,message:r}))})),l.readyState===WebSocket.CLOSED&&(c(),l.addEventListener("open",(()=>{l.send(JSON.stringify({dest:n,message:r}))}))),l.readyState===WebSocket.CLOSING&&(l.onclose=()=>{c(),l.addEventListener("open",(()=>{l.send(JSON.stringify({dest:n,message:r}))}))})},this.identifier=function(){return"FinsembleTransport"},this.close=()=>{l.close()},c()};a.addTransport("SharedWorker",s),a.addTransport("IPCBus",l),a.addTransport("FinsembleTransport",u),t.default=a},51742:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.System=void 0;const r=n(16925);class i{constructor(e,t,n){return new fin.desktop.Window(e,t)}static get getCurrent(){return fin.desktop.Window.getCurrent}static get wrap(){return fin.desktop.Window.wrap}}class o{constructor(e,t,n){t&&t()}static getCurrent(){const{windowName:e}=r.Startup.getInstance().getStartupData();return{name:e,uuid:`${e}-uuid`,getOptions:e=>{e&&e({})},addEventListener:()=>{},updateOptions:()=>{},close:()=>{},startMovingWindow:()=>{},stopMovingWindow:()=>{},isShowing:()=>{},bringToFront:()=>{},show:()=>{},hide:()=>{},setTaskbarIcon:()=>{}}}static wrap(){return{}}}class a{constructor(e,t,n){return new fin.desktop.Application(e,t)}static get getCurrent(){return fin.desktop.Application.getCurrent}static get wrap(){return fin.desktop.Application.wrap}}class s{constructor(e){new fin.desktop.Notification(e)}}class l{constructor(){return new fin.desktop.System.Clipboard}static get writeText(){return fin.desktop.System.Clipboard.writeText}static get writeHTML(){return fin.desktop.System.Clipboard.writeHTML}static get writeRTF(){return fin.desktop.System.Clipboard.writeRTF}static get readText(){return fin.desktop.System.Clipboard.readText}static get readHTML(){return fin.desktop.System.Clipboard.readHTML}static get readRTF(){return fin.desktop.System.Clipboard.readRTF}}class u{static isFreestanding(){return"undefined"==typeof fin}static get Application(){return a}static get Window(){return u.isFreestanding()?o:i}static get Notification(){return s}static get Clipboard(){return l}static async getMousePosition(e=Function.prototype){return new Promise(((t,n)=>{fin.desktop.System.getMousePosition((n=>{(n.left||0===n.left)&&(n.x=n.left),(n.top||0===n.top)&&(n.y=n.top),e(null,n),t(n)}),(t=>{e(t,null),n(t)}))}))}static getSDServerInfo(e=Function.prototype){return new Promise((t=>{fin.desktop.System.getSDServerInfo((n=>{t(n),e(n)}))}))}static getMonitorInfo(e=Function.prototype){return new Promise((t=>{fin.desktop.System.getMonitorInfo((n=>{t(n),e(n)}))}))}static container(){return"undefined"==typeof fin?"freestanding":fin.container?fin.container:"FEA"}static isBrowserView(){return!u.isFreestanding()&&fin.isBrowserView()}static getViewId(){return fin.getViewId()}static hasBrowserView(){return!u.isFreestanding()&&fin.hasBrowserView()}static get fin(){return fin||{}}static ready(e){return new Promise((t=>{fin.desktop.main((()=>{e&&e(),t()}))}))}static getHostSpecs(e=Function.prototype){return new Promise((t=>{fin.desktop.System.getHostSpecs((n=>{t(n),e(n)}))}))}static get InterApplicationBus(){return fin.desktop.InterApplicationBus}static get launchExternalProcess(){return fin.desktop.System.launchExternalProcess}static get terminateExternalProcess(){return fin.desktop.System.terminateExternalProcess}static get getAllApplications(){return fin.desktop.System.getAllApplications}static get exit(){return fin.desktop.System.exit}static get clearCache(){return fin.desktop.System.clearCache}static get showDeveloperTools(){return fin.desktop.System.showDeveloperTools}static get getRuntimeInfo(){return fin.desktop.System.getRuntimeInfo}static get addEventListener(){return u.isFreestanding()?window.addEventListener:fin.desktop.System.addEventListener}static get addSelectClientCertificateListener(){return fin.desktop.System.addSelectClientCertificateListener}static get addCertificateErrorListener(){return fin.desktop.System.addCertificateErrorListener}static get getVersion(){return fin.desktop.System.getVersion}static get getUpdateAvailable(){return fin.desktop.System.getUpdateAvailable}static get openUrlWithBrowser(){return fin.desktop.System.openUrlWithBrowser}static get getAllWindows(){return fin.desktop.System.getAllWindows}static get getProcessList(){return fin.desktop.System.getProcessList}static get getProtocolString(){return fin.desktop.System.getProtocolString}static get hideSplashScreen(){return fin.desktop.System.hideSplashScreen}static startupApplicationHandshake(){fin.desktop.System.startupApplicationHandshake&&fin.desktop.System.startupApplicationHandshake()}static closeApplication(e,t=Function.prototype){return new Promise((n=>{let r,i=!1;const o=()=>{i||(console.log("Attempting to terminate",e.uuid),e.terminate((()=>{t(),n()}),(()=>{i||(i=!0,clearInterval(r),console.log("force closing ",e.uuid),e.terminate())})))};r=setInterval(o,2e3),console.log("closing ",e.uuid),e.close(!1,(()=>{console.log("app.close: successfully closed",e.uuid),i=!0,clearInterval(r),t(),n()}),o)}))}}t.System=u},5020:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(39319)),o=r(n(72551)),a=n(56188),s=n(33509),l=n(95269),u=new class{publishBootStatus(e,t,n){console.log("publishStartingStatus",e,n),o.default.system.debug("publishBootStatus",e,t,n),i.default.publish(l.statusChannel(e),{name:e,type:t,state:n})}waitForBootStage(e,t,n=Function.prototype){return new Promise(((r,l)=>{o.default.system.debug("SystemManagerClient.waitForBootStage entry",e,t);const u=a.ALL_BOOT_STAGES.indexOf(e);"microkernel"===e&&"stageEntered"===t&&o.default.system.error("Cannot wait on `stageEntered` for microkernel because router isn't up yet. So will instead wait for microkernal stage complete.");const c=i.default.subscribe(s.STAGE_CHANNEL,((s,d)=>{if(o.default.system.debug("SystemManagerClient.waitForBootStage new stage",d.data.stage,c),s)o.default.system.error("SystemManagerClient.waitForBootStage subscribe error",s),n(s),l(s);else if(-1===u)s="illegal stage argument",o.default.system.debug("SystemManagerClient.waitForBootStage subscribe error",s,e),n(s),l(s);else{const s=a.ALL_BOOT_STAGES.indexOf(d.data.stage);o.default.system.debug("SystemManagerClient.waitForBootStage new stage",d.data,c),"stageEntered"===t&&s+1>=u?(o.default.system.debug("SystemManagerClient.waitForBootStage stageEntered",e,c,n.name),n(),r(),i.default.unsubscribe(c)):"stageCompleted"===t&&s>=u?(o.default.system.debug("SystemManagerClient.waitForBootStage completed",e,c),n(),r(),i.default.unsubscribe(c)):o.default.system.debug(`SystemManagerClient.waitForBootStage else currentStageIndex=${s} stageIndex=${u} `,s,u,e,c)}}))}))}waitForStartup(e,t=Function.prototype){return new Promise(((n,r)=>{o.default.system.debug(`SystemManagerClient.waitForStartup.${e}`,e);const a=i.default.subscribe(l.statusChannel(e),((s,l)=>{o.default.system.debug("SystemManagerClient.waitForStartup subscribe",e,s,l),s?(o.default.system.error("SystemManagerClient.waitForStartup subscribe error",s),t(s),r()):l.data.name===e&&"completed"===l.data.state&&(o.default.system.debug("SystemManagerClient.waitForStartup completed",e),t(),n(),i.default.unsubscribe(a))}))}))}publishCheckpointState(e,t,n){console.log("publishCheckpoint",e,t,n,l.checkpointChannel(e,t)),o.default.system.debug("publishCheckpoint",e,t,n,l.checkpointChannel(e,t)),i.default.publish(l.checkpointChannel(e,t),{windowName:e,checkpointName:t,state:n})}showSystemLog(){o.default.system.debug("SystemManagerClient.showSystemLog"),i.default.transmit(s.SHOW_SYSLOG_CHANNEL,!0)}systemLog(e,t){o.default.system.debug("SystemManagerClient.systemLog",e,t),i.default.transmit(s.SYSLOG_CHANNEL,{params:e,logMessage:t})}};t.default=u},76420:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.windowNameFromRouterHeader=t.getWindowType=t.isWindows=t.adjustBoundsToBeOnMonitor=t.isOnAMonitor=t.getNewBoundsWhenMovedToMonitor=t.openSharedData=t.injectJS=t.guuid=t.camelCase=t.getMyWindowIdentifier=t.getMonitorByDescriptor=t.windowOnMonitor=t.getMonitorFromCommand=t.getMonitor=t.getWhichMonitor=t.findMonitor=t.getWindowDescriptor=t.getFinWindow=t.getMonitorFromWindow=t.getMonitorFromXY=t.getAllMonitors=t.crossDomain=t.isPercentage=t.castToPromise=t.getContainerVersion=t.clone=t.Monitors=void 0;const i=r(n(36589)),o=n(51742),a=r(n(93802)),s=r(n(72551));function l(e,t={}){if(null===e||"object"!=typeof e)return e;if(e.constructor==Date||e.constructor==RegExp||e.constructor==Function||e.constructor==String||e.constructor==Number||e.constructor==Boolean)return new e.constructor(e);t=t||new e.constructor;for(const n in e)t[n]=void 0===t[n]?l(e[n],null):t[n];return t}function u(e,n){const r=Number.isFinite(e.x)?e.x:e.defaultLeft,i=Number.isFinite(e.y)?e.y:e.defaultTop,o=r+e.defaultWidth,a=i+e.defaultHeight;return new Promise(((e,u)=>{t.Monitors.getMonitorFromScaledXY(r,i,(c=>{if(!c)return s.default.system.debug("getMonitorFromWindow - top-left is off screen, trying bottom right"),void t.Monitors.getMonitorFromScaledXY(o,a,(o=>{if(!o)return s.default.system.debug("getMonitorFromWindow - bottom-right is off screen, getting primary"),void t.Monitors.getAllMonitors((t=>{t[0]?(n&&n(t[0]),e(t[0])):(u(new Error("Cannot find monitor for window.")),n&&n(null))}));o=l(o);const{monitorRect:a}=o;(a.left<r||a.right<i)&&(o.straddling=!0),n&&n(o),e(o)}));c=l(c);const{monitorRect:d}=c;(d.right>o||d.bottom>a)&&(c.straddling=!0),n&&n(c),e(c)}))}))}function c(e,t){return new Promise(((n,r)=>{const i=o.System.Window.getCurrent();i.getOptions((a=>{if(e&&e.windowName){e.uuid||(e.uuid=a.uuid);const i=o.System.Window.wrap(e.uuid,e.windowName);i.getInfo((()=>{t&&t(i),n(i)}),(()=>{t&&t(null),r(`Window ${e.windowName} not found. UUID: ${e.uuid}`),console.debug(`util.getFinWindow: Window ${e.windowName} not found`)}))}else if(e&&e.componentType)if(void 0!==window.LauncherService){const i=window.LauncherService.componentFinder(e);i?(n(i),t&&t(i)):(r(`util.getFinWindow: Component ${e.componentType} not found.`),t&&t(null))}else r("getFinWindow by componentType is currently only operable within LaunchService"),t&&t(null);else t&&t(i),n(i)}))}))}function d(e,t){return new Promise(((n,r)=>{c(e).then((e=>{e.getOptions((e=>{t&&t(e),n(e)}))})).catch((e=>{console.warn(e),t&&t(null),r(e)}))}))}function f(e,t,n){for(let r=0;r<e.length;r++){const i=e[r];if(i[t]===n)return i}return null}function h(e,n){let r;arguments.length>2&&(e={commandMonitor:arguments[0],monitors:arguments[1],launchingMonitorPosition:arguments[2]},n=null);let{commandMonitor:i,monitors:o,launchingMonitorPosition:a}=e;const s=i&&""!==i||0===i;if("primary"===i)r=f(o,"whichMonitor","primary");else if("next"===i){let e=a+1;e>=o.length&&(e=0),r=o[e]}else if("previous"===i){let e=a-1;e<0&&(e=o.length-1),r=o[e]}else if("mine"===i){var l=!0;activeWindows.getWindow(e.windowIdentifier.windowName)._getBounds(((e,i)=>{e?(r=o[0],n(r)):t.Monitors.getMonitorFromScaledXY(i.left,i.top,(e=>{n(e)}))}))}else s?(i>=o.length&&(i=o.length-1),r=o.filter((e=>e.position===i))[0]):a&&(r=o[a]);if(r||(r=o[0]),!l){if(!n)return r;n(r)}}function p(e,t){return new Promise(((n,r)=>{d(e,(e=>{e?u(e,(e=>{t&&t(e),n(e)})):r("util.getMonitor: Can't locate windowDescriptor.")}))}))}t.Monitors=new a.default(Function.prototype,Function.prototype,{System:o.System}),t.clone=l,t.getContainerVersion=function(e=Function.prototype){return new Promise((t=>{o.System.getVersion((n=>{const r=n.split(".").map(Number),i={major:r[0],chromium:r[1],minor:r[2],patch:r[3]};e(i),t({versionObject:i})}))}))},t.castToPromise=function(e){return function(...t){return new Promise(((n,r)=>{const i=e.apply(null,Array.from(t));try{return i.then(n,r)}catch(e){e instanceof TypeError?n(i):r(e)}}))}},t.isPercentage=function(e){return"string"==typeof e&&-1!==e.indexOf("%")},t.crossDomain=function(e){const t=document.createElement("a");t.href=e;const n=window.location.hostname===t.hostname,r=window.location.protocol===t.protocol,i=(void 0!==window.location.port?window.location.port:80)===(void 0!==t.port?t.port:80),o=!(n&&i&&r);return s.default.system.debug(`Launcher crossDomain=${o} (${n}:${r}:${i})`),o},t.getAllMonitors=t.Monitors.getAllMonitors,t.getMonitorFromXY=t.Monitors.getMonitorFromScaledXY,t.getMonitorFromWindow=u,t.getFinWindow=c,t.getWindowDescriptor=d,t.findMonitor=f,t.getWhichMonitor=h,t.getMonitor=p,t.getMonitorFromCommand=function(e,n,r){return new Promise((i=>{p(n,(n=>{t.Monitors.getAllMonitors((t=>{h({commandMonitor:e,monitors:t,launchingMonitorPosition:n.position},(e=>{r&&r(e),i(e)}))}))}))}))},t.windowOnMonitor=function(e,t){return e.left>=t.left&&e.left<t.right||e.right<=t.right&&e.right>t.left},t.getMonitorByDescriptor=function(e,t){return new Promise((n=>{u(e,(e=>{t&&t(e),n(e)}))}))},t.getMyWindowIdentifier=function(e){const t=o.System.Window.getCurrent();return new Promise((n=>{t.getOptions((r=>{let i=null;const{customData:o}=r;o&&o.component&&(i=o.component.type);const a={windowName:t.name,uuid:t.uuid,componentType:i};e&&e(a),n(a)}))}))},t.camelCase=function(...e){let t="";for(let n=0;n<e.length;n++)t=`${t} ${e[n]}`;return t.replace(/\s(.)/g,(e=>e.toUpperCase())).replace(/\s/g,"").replace(/^(.)/,(e=>e.toLowerCase()))},t.guuid=function(){return i.default()},t.injectJS=function(e,t){const n=document.createElement("script");n.onload=t,n.type="text/javascript",n.async=!0,n.src=e;const r=document.getElementsByTagName("head")[0],i=r.getElementsByTagName("script")[0];r.insertBefore(n,i)},t.openSharedData=function(e,t){const n=FSBL.Clients.LauncherClient,r=FSBL.Clients.LinkerClient;e.multipleOpenerHandler||(e.multipleOpenerHandler=function(e){let t,n=0;for(const r of Object.keys(e))e[r].length>n&&(t=r,n=e[r].length);return[t]});const i=[],o={};n.getComponentsThatCanReceiveDataTypes({dataTypes:Object.keys(e.data)},((a,l)=>{for(const e of Object.keys(l))if(l[e].componentTypes.length)for(const t of l[e].componentTypes)o[t]?o[t].push(e):o[t]=[e];else{const t=`No Components Available to Handle the type: ${e}`;i.push(t),s.default.system.error(t)}let u=Object.keys(o);if(u.length){u.length>1&&(u=e.multipleOpenerHandler(o));const a=Object.keys(r.channels);if(a.length)if(r.getLinkedComponents({componentTypes:u,windowIdentifier:r.windowIdentifier()}).length||e.publishOnly)r.publish({dataType:"Finsemble.DragAndDropClient",data:e.data},(()=>{})),t&&t(i.length?i:null,"Data published");else{for(const t of u)n.spawn(t,{data:{sharedData:e.data,linker:{channels:a}},addToWorkspace:!0});t&&t(i.length?i:null,"Linked Window(s) spawned with data")}else if(!e.publishOnly){for(const t of u)n.spawn(t,{data:{sharedData:e.data},addToWorkspace:!0});t&&t(i.length?i:null,"New Window(s) spawned with data")}}else t&&t(i.length?i:null,null)}))},t.getNewBoundsWhenMovedToMonitor=function(e,t,n="availableRect"){const r=e[n]||e.availableRect||e.monitorRect,i=l(t);return t.top<r.top?i.top=r.top:t.top>r.bottom-t.height&&(i.top=r.bottom-t.height),t.left<r.left?i.left=r.left:t.left>r.right-t.width&&(i.left=r.right-t.width),i.bottom=i.top+i.height,i.right=i.left+i.width,i.right>r.right&&(i.right=r.right),i.top<r.top&&(i.top=r.top),i.left<r.left&&(i.left=r.left),i.bottom>r.bottom&&(i.bottom=r.bottom),i.height=i.bottom-i.top,i.width=i.right-i.left,{newBounds:i,distanceMoved:Math.sqrt((t.left-i.left)**2+(t.top-i.top)**2),monitor:e}},t.isOnAMonitor=function(e){return this.Monitors.allMonitors.some((t=>{const{monitorRect:n}=t;return e.left>=n.left&&e.left<=n.right&&e.right>=n.left&&e.right<=n.right&&e.top>=n.top&&e.top<=n.bottom&&e.bottom>=n.top&&e.bottom<=n.bottom}))},t.adjustBoundsToBeOnMonitor=function(e,t="availableRect"){if(this.isOnAMonitor(e))return s.default.system.info("Launcher.adjustWindowDescriptorBoundsToBeOnMonitor: on monitor."),e;const n=this.Monitors.allMonitors.map((n=>{let r=n.rawMonitor?n.rawMonitor:n;return this.getNewBoundsWhenMovedToMonitor(r,e,t)})).sort(((e,t)=>e.distanceMoved-t.distanceMoved))[0];return s.default.system.info("Launcher.adjustWindowDescriptorBoundsToBeOnMonitor: not on monitor. bounds",e,"monitor name",n.monitor.name,"newBounds",n.newBounds),n.newBounds},t.isWindows=async function(e=Function.prototype){const t=(await o.System.getHostSpecs()).name.toUpperCase().includes("WINDOWS");return e(t),t},t.getWindowType=function(e){const t="WebWindow";if(e.windowType&&!["assimilation","assimilated","native","application","NativeWindow","FinsembleNativeWindow","CompoundWindow","WebWindow","WebApplication","StackedWindow"].includes(e.windowType))return s.default.system.error(`Invalid windowType: ${e.windowType}, defaulting to windowType: WebWindow`),t;let n=e.windowType||t;switch(e.windowType){case"assimilation":case"assimilated":n="NativeWindow";break;case"native":n="FinsembleNativeWindow";break;case"application":n="WebApplication";break;case"Web":n="WebWindow";break;case"StackedWindow":n="StackedWindow"}return e.native&&(n="NativeWindow"),e.compound&&(n="CompoundWindow"),n},t.windowNameFromRouterHeader=e=>{let t,n=/\.(.*)\./s;try{t=e.origin.match(n)[1]}catch(n){t=e.origin.split(".")[1]}return t}},10428:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FinsembleView=void 0,t.FinsembleView=class{constructor(e){this.win=e.win,this.id=e.id}async remove(e=Function.prototype){await this.win.removeBrowserView(this,e)}async setBounds(e,t=Function.prototype){await this.win.setViewBounds({view:this,bounds:e},t)}async bringToFront(e=Function.prototype){await this.win.bringViewToFront(this,e)}}},75688:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(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)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FinsembleWindow=void 0;const s=a(n(39319)),l=a(n(72551)),u=o(n(76420)),c=a(n(57815)),d=o(n(78379)),f=n(24232),h=n(51742),p=a(n(99748)),g=n(10428);window._FSBLCache||(window._FSBLCache={storeClientReady:!1,windows:{},gettingWindow:[],windowAttempts:{}});class m extends c.default{constructor(e){super({name:e.name,sourceType:"Window"}),this.types={},this.wrapState=e.wrapState||"initializing",this.componentState={},this.windowState=m.WINDOWSTATE.NORMAL,this.type=null,this.windowType=null,this.bounds={},this.guid=`${Date.now()}_${Math.random()}`,this.WINDOWSTATE=d.WINDOWSTATE,this.windowOptions={},this.doConstruction(e),this.TITLE_CHANGED_CHANNEL=`Finsemble.${this.name}.titleChanged`,this.componentKey=u.camelCase("activeWorkspace",this.name,this.name),this.windowKey=u.camelCase("activeWorkspace",this.name),m.bindFunctions(this)}standardizeEventName(e){switch(e){case"bounds-set":case"stoppedMoving":return"bounds-change-end";case"startedMoving":return"bounds-change-start";case"bringToFront":return"broughtToFront";case"setParent":return"parent-set";case"clearParent":return"parent-unset";default:return e}}addEventListener(e,t){return e=this.standardizeEventName(e),super.addEventListener(e,t)}removeEventListener(e,t){if("closed"!==e||!window.finsembleWindow||this.name!==finsembleWindow.name)return e=this.standardizeEventName(e),super.removeEventListener(e,t)}windowServiceChannelName(e){return`WindowService-Request-${e}`}eventChannelName(e){return`WindowService-Event-${this.name||this.windowName}-${e}`}doConstruction(e){if(e.setWindowType||e.windowType||(e.windowType="WebWindow"),e.windowType)return e.setWindowType=e.windowType,delete e.windowType,new m(e);if(e)for(const t in e)this[t]=e[t];this.name||(this.name=e.windowName),this.windowType=this.setWindowType}static registerType(e,t){const n=m;n.types||(n.types={}),n.types[e]=t}static bindFunctions(e){e.setParent=e.setParent.bind(e),e.getParent=e.getParent.bind(e),e.eventChannelName=e.eventChannelName.bind(e),e.windowServiceChannelName=e.windowServiceChannelName.bind(e),e.handleWrapRemoveRequest=e.handleWrapRemoveRequest.bind(e),e.reload=e.reload.bind(e)}static getInstance(e,t=Function.prototype){const n=h.System.Window.getCurrent().name;return e&&e.windowName&&(e.name=e.windowName),(e=p.default(e))&&e.name?(e.windowName=e.name,new Promise((async function(r,i){if(window._FSBLCache.windows[e.name]){l.default.system.debug("WRAP LIFECYCLE:",e.name,"Window found in the cache, returning without going to the Launcher");const n=window._FSBLCache.windows[e.name];return r({wrap:n}),t(null,n)}if(e.uuid&&e.name){if(e.windowIdentifier||(e.windowIdentifier={uuid:e.uuid,name:e.name,windowName:e.name,windowType:e.windowType}),!1!==e.waitForReady)try{await m._windowReady(e.windowName),e.wrapState="ready"}catch(e){return i(e),t(e,null)}if(l.default.system.debug("WRAP LIFECYCLE:",e.name,"All information for wrap passed in, creating wrap locally"),window._FSBLCache.windows[e.name]){l.default.system.debug("WRAP LIFECYCLE:",e.name,"Window found in the cache, returning without going to the Launcher");const n=window._FSBLCache.windows[e.name];return r({wrap:n}),t(null,n)}const{wrap:n}=await m._createWrap(e);return r({wrap:n}),t(null,n)}if(!1!==e.waitForReady)try{await m._windowReady(e.windowName),e.wrapState="ready"}catch(e){return i(e),t(e,null)}s.default.query("WindowService-Request-getWindowIdentifier",{windowName:e.name,requester:n},(async(n,o)=>{if(n)return l.default.system.error(n),i(n),t(n,null);if(window._FSBLCache.windows[e.name]){const n=window._FSBLCache.windows[e.name];return l.default.system.debug("WRAP LIFECYCLE:",e.name,"Information received from launcher, but wrap exists in cache. Returning cached wrap."),r({wrap:n}),t(null,n)}const{identifier:a}=o.data;a.windowName&&(a.name=a.windowName),l.default.system.debug("WRAP LIFECYCLE:",e.name,"Information received from launcher. Creating wrap."),e.retrievedIdentifier=a;const{wrap:s}=await m._createWrap(e);o.data.descriptor&&(s.descriptor=o.data.descriptor),r({wrap:s}),t(null,s)}))}))):t("name is required")}static _createWrap(e){return new Promise((function(t){const n=e.retrievedIdentifier||e.windowIdentifier;let r=null;void 0===window._FSBLCache.windowAttempts[e.name]&&(window._FSBLCache.windowAttempts[e.name]=0),(e.setWindowType||n.windowType)&&"WebApplication"!==n.windowType||(n.windowType="WebWindow");let i={...n};i=Object.assign(i,e),i.setWindowType=i.windowType,delete i.windowType,l.default.system.debug("WRAP LIFECYCLE: Placing wrap into the local cache.",n.windowName);const o=m;window._FSBLCache.windows[n.windowName]=new o(i),r=window._FSBLCache.windows[n.windowName],r.windowType=n.windowType,r.identifier=n,r.addEventListener("closed",r.handleWrapRemoveRequest),r.addEventListener("maximized",(()=>{r.windowState=m.WINDOWSTATE.MAXIMIZED})),r.addEventListener("minimized",(()=>{r.windowState=m.WINDOWSTATE.MINIMIZED})),r.addEventListener("restored",(()=>{r.windowState=m.WINDOWSTATE.NORMAL}));const a=s.default.subscribe(`Finsemble.Component.State.${n.windowName}`,((e,t)=>{if(e)l.default.system.error("Finsemble component state change error",e);else{const{state:e}=t.data;r.wrapState=e,s.default.unsubscribe(a)}}));r.parentSubscribeID=s.default.subscribe(`Finsemble.parentChange.${n.windowName}`,((e,n)=>{if(e)l.default.system.error("FinsembleWindow parent change notification error",e),t({wrap:r});else{const e=n.data||{};"Added"===e.type?(l.default.system.debug("FinsembleWindow Parent Notification: window.addedToStack listener",e),r.setParent(e.stackedWindowIdentifier,(()=>{t({wrap:r})}))):"Exists"===e.type?(l.default.system.debug("FinsembleWindow Parent Notification: Parent already exists, checking if added to wrap",e),r.setParentOnWrap(e.stackedWindowIdentifier,(()=>{t({wrap:r})}))):"Removed"===e.type?(l.default.system.debug("FinsembleWindow Parent Notification: window.removedFromStack listener",e),r.clearParent(),t({wrap:r})):e.type?(l.default.system.error("FinsembleWindow Parent Notification: unknown type",e),t({wrap:r})):t({wrap:r})}}))}))}static _getRemoveWrapChannel(e){return`${h.System.Window.getCurrent().name}.removeWrap.${e}`}async handleWrapRemoveRequest(e){e&&e.wait(),l.default.system.debug("WRAP Destructor. Removing cached window",this.name,"in ",window.name),this.removeListeners&&this.removeListeners(),this.cleanupRouter(),this.cleanup(),this.name!==window.name&&this.name&&(delete window._FSBLCache.windows[this.name],delete window._FSBLCache.windowAttempts[this.name]),e&&e.done()}cleanupRouter(){const e=m._getRemoveWrapChannel(this.name);s.default.removeResponder(e),this.TITLE_CHANGED_SUBSCRIPTION&&s.default.unsubscribe(this.TITLE_CHANGED_SUBSCRIPTION),s.default.unsubscribe(this.parentSubscribeID)}onReady(e){if("ready"===this.wrapState)return e();this.addEventListener("ready",e)}queryWindowService(e,t,n=Function.prototype){if("close"===e||"setParent"===e||"ready"===this.wrapState)return new Promise((async(r,i)=>{"function"==typeof t&&(n=t,t={}),(t=t||{}).windowIdentifier=this.identifier,l.default.setting().system.Debug&&(t.callstack=l.default.callStack()),l.default.system.debug("FinsembleWindow.queryWindowService",this.windowServiceChannelName(e),t);let o=null;s.default.query(this.windowServiceChannelName(e),t,((t,a)=>{t?(l.default.system.debug(`WindowService.${e}: failed`,t),console.debug(`WindowService.${e}: failed`,t),"getComponentState"!==e&&"Not found"!==t&&i(t)):(o=a.data,l.default.system.debug(`${this.windowServiceChannelName(e)} successful`,o),console.debug(`${this.windowServiceChannelName(e)} successful`,o)),r(o),n(t,o)}))}));this.onReady((()=>{this.wrapState="ready",this.queryWindowService(e,t,n)}))}minimize(e=null,t=Function.prototype){this.queryWindowService("minimize",e,t)}maximize(e=null,t=Function.prototype){this.getBounds(((n,r)=>{n?l.default.system.warn("Error getting bounds, cached bounds will not be set"):this.updateOptions({options:{cachedLeft:r.left,defaultLeft:r.left,cachedTop:r.top,defaultTop:r.top,cachedWidth:r.width,defaultWidth:r.width,cachedHeight:r.height,defaultHeight:r.height}}),this.queryWindowService("maximize",e,t)}))}restore(e=null,t=Function.prototype){this.queryWindowService("restore",e,t)}blur(e=null,t=Function.prototype){this.queryWindowService("blur",e,t)}focus(e=null,t=Function.prototype){this.queryWindowService("focus",e,t)}bringToFront(e=null,t=Function.prototype){this.queryWindowService("bringToFront",e,t)}setAlwaysOnTop(e={alwaysOnTop:!0},t=Function.prototype){this.queryWindowService("setAlwaysOnTop",e,t)}isAlwaysOnTop(e={},t){this.queryWindowService("isAlwaysOnTop",{},t)}isShowing(e={},t){this.queryWindowService("isShowing",e,t)}setIgnoreMouseEvents(e,t,n=Function.prototype){const r={ignore:new Boolean(e).valueOf(),options:new Boolean(t).valueOf()?t:{forward:!1}};this.queryWindowService("setIgnoreMouseEvents",r,n)}setShape(e,t=Function.prototype){this.queryWindowService("setShape",e,t)}async addBrowserView(e,t=Function.prototype){const n=await this.queryWindowService("addBrowserView",e,t);return new g.FinsembleView({id:n,win:this})}async removeBrowserView(e,t=Function.prototype){await this.queryWindowService("removeBrowserView",{viewId:e.id},t)}async bringViewToFront(e,t=Function.prototype){await this.queryWindowService("bringViewToFront",{viewId:e.id},t)}async setViewBounds(e,t=Function.prototype){await this.queryWindowService("setViewBounds",{viewId:e.view.id,bounds:e.bounds},t)}setBounds(e={bounds:{}},t=Function.prototype){"function"==typeof e||e.bounds||(e={bounds:e}),this.queryWindowService("setBounds",e,t)}getBounds(e={},t=Function.prototype){return new Promise((n=>{this.queryWindowService("getBounds",e,((e,r)=>{n({err:e,data:r}),t(e,r)}))}))}updateOptions(e,t=Function.prototype){this.queryWindowService("updateOptions",e,t)}hide(e={},t=Function.prototype){this.queryWindowService("hide",e,t)}reload(e={},t=Function.prototype){this.queryWindowService("reload",e,t)}show(e={},t=Function.prototype){this.queryWindowService("show",e,t)}showAt(e={},t=Function.prototype){this.queryWindowService("showAt",e,t)}close(e={},t=Function.prototype){l.default.system.debug("WRAP CLOSE. Public close initiated for",this.name,e),this.queryWindowService("close",e,(()=>{l.default.system.debug("WRAP CLOSE. Public close initiated for",this.name),t()}))}animate(e={},t=Function.prototype){this.queryWindowService("animate",e,t)}registerWithDocking(e={},t){this.onReady((()=>{s.default.query("DockingService.registerWindow",{type:this.type,windowType:this.windowType,windowMsg:e,name:this.windowName},t)}))}showNativeOpenDialog(e={},t){this.queryWindowService("showNativeOpenDialog",e,t)}unRegisterWithDocking(){s.default.transmit("DockingService.deregisterWindow",{name:this.windowName})}initializeWindow({manageWindowMovement:e,identifier:t},n=Function.prototype){const r=()=>{s.default.publish(`Finsemble.${this.windowName}.componentReady`,{name:this.windowName}),n()};e?this.registerWithDocking(t,r):r()}wrapReady(){s.default.publish(`Finsemble.${this.windowName}.wrapReady`,{name:this.windowName,state:"open"})}setOpacity(e,t=Function.prototype){this.queryWindowService("setOpacity",e,t)}startTabTileMonitoring(e={}){l.default.system.debug("FinsembleWindow.startTabTileMonitoring",e),s.default.transmit("TabTile.startTabTile",{params:e})}stopTabTileMonitoring(e={},t=Function.prototype){l.default.system.debug("FinsembleWindow.stopTabTileMonitoring",e),s.default.query("TabTile.stopTabTile",{params:e},(function(e,n){e?l.default.system.warn("TabTile.stopTabTile: query failed",e):l.default.system.debug("TabTile.stopTabTile results",n.data);const r=n.data;t?t(e,r,this.defaultStopTrackingAction):this.defaultTabTileAction(r)}))}defaultTabTileAction(e){const t=this;switch(l.default.system.debug("FinsembleWindow.defaultTabTileAction",e),e.stoppedLocation){case"OutsideWindow":case"TabSection":break;case"InsideWindow":e.tileGroupId?t.Group.addWindow(this.identifier,e.tileGroupId,e.dropCoordinates):t.Group.createGroup((function(n){t.Group.addWindow(this.identifier,n,e.dropCoordinates,{startingWindowIdentifier:e.droppedOnWindowIdentifier})}));break;default:l.default.system.error("stopTracking returned an unknown stoppedLocation result",e)}}mergeBounds(e){e.right=e.left+e.width;const t={left:e.left,right:e.right,width:e.width,top:e.top,bottom:e.top+e.height,height:e.height},n={defaultLeft:e.left,defaultWidth:e.width,defaultTop:e.top,defaultHeight:e.height};Object.assign(this.windowOptions,t),Object.assign(this.windowOptions,n),this.windowOptions.bounds=t}startMove(e={}){l.default.system.debug("FinsembleWindow.startMove",e),e.windowIdentifier=this.identifier,s.default.transmit(this.eventChannelName("startedMoving"),{})}stopMove(e={}){l.default.system.debug("FinsembleWindow.stopMove",e),e.windowIdentifier=this.identifier,s.default.transmit(this.eventChannelName("stoppedMoving"),{})}getMonitor(e){s.default.query("DockingService.getMonitorForWindow",{windowIdentifier:this.identifier},((t,n)=>n?e(n.data):e()))}getComponentState(e,t){this.queryWindowService("getComponentState",e,t)}getWindowState(e,t){this.queryWindowService("getWindowState",e,t)}setComponentState(e,t=(()=>{})){this.queryWindowService("setComponentState",e,t)}removeComponentState(e,t=(()=>{})){this.queryWindowService("removeComponentState",e,t)}setWindowState(e,t=(()=>{})){this.queryWindowService("setWindowState",e,t)}saveCompleteWindowState(e={},t=Function.prototype){this.queryWindowService("saveCompleteWindowState",e,t)}cancelTabTileMonitoring(e={}){l.default.system.debug("FinsembleWindow.cancelTabTileMonitoring",e),s.default.transmit("TabTile.cancelTabTile",{params:e})}getParent(e){this.settingParent?m.getInstance(this.settingParent,((t,n)=>{e(null,n)})):this.parentWindow?e(null,this.parentWindow):e(null,null)}setParent(e,t){if(this.settingParent)return this.getParent(t);this.settingParent=e,this.parentWindow&&this.parentWindow.name===e.windowName?(l.default.system.debug("FinsembleWindow.setParent already set",e),this.settingParent=!1,t(null,this.parentWindow)):this.queryWindowService("setParent",e,(()=>{l.default.system.debug("FinsembleWindow.setParent",e),m.getInstance(e,((n,r)=>{n?l.default.system.error("FinsembleWindow.setParent error",n):(l.default.system.debug("FinsembleWindow.setParent wrap success",e),this.parentWindow=r,this.parentWindow.windowType.includes("StackedWindow")||l.default.system.error("FinsembleWindow.setParent error",this.parentWindow.name,e.windowName)),s.default.transmit(d.DOCKING.REQUEST_PUBLISH,null),this.settingParent=!1;const i=()=>{this.removeEventListener("parent-set",i),t(n,r)};this.addEventListener("parent-set",i)}))}))}setParentOnWrap(e,t=Function.prototype){this.parentWindow&&this.parentWindow.name===e.windowName?(l.default.system.debug("FinsembleWindow.setParentOnWrap already set",e),t(null,this.parentWindow)):this.queryWindowService("setParent",e,(()=>{l.default.system.debug("FinsembleWindow.setParentOnWrap",e),m.getInstance(e,((n,r)=>{n?l.default.system.error("FinsembleWindow.setParentOnWrap error",n):(l.default.system.debug("FinsembleWindow.setParentOnWrap success getting wrap",e),this.parentWindow=r,!1===this.parentWindow.windowType.includes("StackedWindow")&&l.default.system.error("FinsembleWindow.setParentOnWrap error",this.parentWindow.name,e.windowName)),t(n,r)}))}))}clearParent(){l.default.system.debug("FinsembleWindow.clearParent",this.parentWindow),this.parentWindow=null}setTitle(e){l.default.system.debug("Title change",e),s.default.publish(this.TITLE_CHANGED_CHANNEL,e)}getOptions(e=Function.prototype){this.queryWindowService("getOptions",{},e)}_privateManagementPreface(e,t){return"function"==typeof t&&l.default.system.error("StackedWindowWrapper.wrapPreface bad params",t),(t=t||{}).stackedWindowIdentifier={windowName:this.identifier?.windowName,windowType:this.identifier?.windowType},l.default.system.debug(`StackedWindow.${e} _privateManagementPreface`,t),t}addWindow(e,t=Function.prototype){return e=this._privateManagementPreface("addWindow",e),new Promise((n=>{s.default.query("StackedWindow.addWindow",e,((e,r)=>{l.default.system.debug("StackedWindow.addWindow callback",e,r),t(e,r.data),n({err:e,data:r.data})}))}))}removeWindow(e,t=Function.prototype){return e=this._privateManagementPreface("removeWindow",e),new Promise((n=>{s.default.query("StackedWindow.removeWindow",e,((e,r)=>{l.default.system.debug("StackedWindow.removeWindow callback",e,r),t(e,r.data),n({err:e,data:r.data})}))}))}deleteWindow(e,t=Function.prototype){return e=this._privateManagementPreface("deleteWindow",e),new Promise((n=>{s.default.query("StackedWindow.deleteWindow",e,((e,r)=>{l.default.system.debug("StackedWindow.deleteWindow callback",e,r),t(e,r.data),n({err:e,data:r.data})}))}))}setVisibleWindow(e,t=Function.prototype){return e=this._privateManagementPreface("setVisibleWindow",e),new Promise((n=>{s.default.query("StackedWindow.setVisibleWindow",e,((e,r)=>{l.default.system.debug("StackedWindow.setVisibleWindow callback",e,r),t(e,r.data),n({err:e,data:r.data})}))}))}reorder(e,t=Function.prototype){return e=this._privateManagementPreface("reorder",e),new Promise((n=>{s.default.query("StackedWindow.reorder",e,((e,r)=>{l.default.system.debug("StackedWindow.reorder callback",e,r),t(e,r.data),n({err:e,data:r.data})}))}))}formGroup(){const e=this.parentWindow?this.parentWindow.name:this.name;s.default.transmit("DockingService.formGroup",{windowName:e})}ejectFromGroup(){const e=this.parentWindow?this.parentWindow.name:this.name;s.default.query("DockingService.leaveGroup",{name:e},(()=>{}))}}t.FinsembleWindow=m,m.WINDOWSTATE={NORMAL:0,MINIMIZED:1,MAXIMIZED:2,HIDDEN:3},m.wrap=m.getInstance,m.isStartupApplication=async function(e){let t;const n=await new Promise(((e,t)=>{h.System.Application.getCurrent().getManifest(e,t)})).catch((()=>{t=!1}));return n&&(t=n&&n.startup_app&&n.startup_app.name===e),t},m._windowReady=function(e){let t;l.default.system.debug(`windowServiceReady: ${e} starting`);const n=`Finsemble.Component.State.${e}`;return new Promise((async(r,i)=>{await m.isStartupApplication(e)||f.isServiceInWindow(e)?i("Cannot Wrap Service Manager or Services"):(l.default.system.debug(`windowServiceReady: ${e} waiting`),t=s.default.subscribe(n,((n,i)=>{const{state:o}=i.data;switch(l.default.system.debug(`windowServiceReady: ${e} state change: ${o}`),o){case"ready":case"reloading":case"closing":l.default.system.debug(`windowServiceReady: ${e} ${o}`),s.default.unsubscribe(t),r()}})))}))}},33509:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CHECKPOINT_CHANNEL_BASE=t.STAGE_CHANNEL=t.STATUS_CHANNEL_BASE=t.SHOW_SYSLOG_CHANNEL=t.SYSLOG_CHANNEL=t.CRITICAL_BOOT_STAGES=t.ALL_BOOT_STAGES=void 0,t.ALL_BOOT_STAGES=["microkernel","kernel","authentication","preuser","earlyuser","user"],t.CRITICAL_BOOT_STAGES=["microkernel","kernel","authentication"],t.SYSLOG_CHANNEL="systemManager.systemlog",t.SHOW_SYSLOG_CHANNEL="systemManager.showSystemlog",t.STATUS_CHANNEL_BASE="systemManager.boot.status",t.STAGE_CHANNEL="systemManager.boot.stage",t.CHECKPOINT_CHANNEL_BASE="systemManager.checkpoint"},56188:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BootReadyItem=t.BootConfigElement=t.ALL_BOOT_STAGES=void 0,t.ALL_BOOT_STAGES=["microkernel","kernel","authentication","preuser","earlyuser","user"],t.BootConfigElement=class{},t.BootReadyItem=class{constructor(e,t,n){this.name=e,this.type=t,this.config=n}}},95269:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkpointChannel=t.statusChannel=t.killOldApplications=void 0;const r=n(51742),i=n(33509);t.killOldApplications=function(e){return new Promise((async t=>{r.System.getAllApplications((async n=>{if(n)for(let t=0;t<n.length;t++){const i=n[t];if(i.uuid?.endsWith(`-${e}`)){const e=r.System.Application.wrap(i.uuid);await r.System.closeApplication(e)}}console.log("killOldApplications: finished closing old apps"),t()}))}))},t.statusChannel=function(e){return`${i.STATUS_CHANNEL_BASE}.${e}`},t.checkpointChannel=function(e,t){return`${i.CHECKPOINT_CHANNEL_BASE}.${e}.${t}`}},88801:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},77661:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},80498:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},74215:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},19600:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},89520:(e,t)=>{"use strict";var n,r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.ChannelError=t.ResolveError=t.OpenError=void 0,(i=t.OpenError||(t.OpenError={})).AppNotFound="AppNotFound",i.ErrorOnLaunch="ErrorOnLaunch",i.AppTimeout="AppTimeout",i.ResolverUnavailable="ResolverUnavailable",(r=t.ResolveError||(t.ResolveError={})).NoAppsFound="NoAppsFound",r.ResolverUnavailable="ResolverUnavailable",r.ResolverTimeout="ResolverTimeout",(n=t.ChannelError||(t.ChannelError={})).NoChannelFound="NoChannelFound",n.AccessDenied="AccessDenied",n.CreationFailed="CreationFailed"},55182:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},35644:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},66129:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},51854:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},36611:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.versionIsAtLeast=t.compareVersionNumbers=t.getInfo=t.leaveCurrentChannel=t.getCurrentChannel=t.getOrCreateChannel=t.joinChannel=t.getSystemChannels=t.addContextListener=t.addIntentListener=t.raiseIntentForContext=t.raiseIntent=t.broadcast=t.findIntentsByContext=t.findIntent=t.open=t.fdc3Ready=void 0;const n=new Error("FDC3 DesktopAgent not available at `window.fdc3`."),r=new Error("Timed out waiting for `fdc3Ready` event."),i=new Error("`fdc3Ready` event fired, but `window.fdc3` not set to DesktopAgent.");function o(e){return window.fdc3?e():Promise.reject(n)}function a(e){if(!window.fdc3)throw n;return e()}t.fdc3Ready=async(e=5e3)=>new Promise(((t,n)=>{if(window.fdc3)t();else{const o=setTimeout((()=>window.fdc3?t():n(r)),e);window.addEventListener("fdc3Ready",(()=>{clearTimeout(o),window.fdc3?t():n(i)}),{once:!0})}})),t.open=function(e,t){return o((()=>window.fdc3.open(e,t)))},t.findIntent=function(e,t){return o((()=>window.fdc3.findIntent(e,t)))},t.findIntentsByContext=function(e){return o((()=>window.fdc3.findIntentsByContext(e)))},t.broadcast=function(e){a((()=>window.fdc3.broadcast(e)))},t.raiseIntent=function(e,t,n){return o((()=>window.fdc3.raiseIntent(e,t,n)))},t.raiseIntentForContext=function(e,t){return o((()=>window.fdc3.raiseIntentForContext(e,t)))},t.addIntentListener=function(e,t){return a((()=>window.fdc3.addIntentListener(e,t)))},t.addContextListener=function(e,t){return a("function"!=typeof e?()=>window.fdc3.addContextListener(e,t):()=>window.fdc3.addContextListener(e))},t.getSystemChannels=function(){return o((()=>window.fdc3.getSystemChannels()))},t.joinChannel=function(e){return o((()=>window.fdc3.joinChannel(e)))},t.getOrCreateChannel=function(e){return o((()=>window.fdc3.getOrCreateChannel(e)))},t.getCurrentChannel=function(){return o((()=>window.fdc3.getCurrentChannel()))},t.leaveCurrentChannel=function(){return o((()=>window.fdc3.leaveCurrentChannel()))},t.getInfo=function(){return a((()=>window.fdc3.getInfo()))},t.compareVersionNumbers=(e,t)=>{try{let n=e.split(".").map(Number),r=t.split(".").map(Number);for(let e=0;e<Math.max(n.length,r.length);e++){if(e===n.length||n[e]<r[e])return-1;if(e===r.length||n[e]>r[e])return 1}return 0}catch(e){return console.error("Failed to compare version strings",e),null}},t.versionIsAtLeast=(e,n)=>{let r=t.compareVersionNumbers(e.fdc3Version,n);return null===r?null:r>=0}},55972:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},91767:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ContextTypes=void 0,(n=t.ContextTypes||(t.ContextTypes={})).Contact="fdc3.contact",n.ContactList="fdc3.contactList",n.Country="fdc3.country",n.Instrument="fdc3.instrument",n.Organization="fdc3.organization",n.Portfolio="fdc3.portfolio",n.Position="fdc3.position"},91966:(e,t)=>{"use strict";function n(e,t,n=""){if(n)throw Error(`Invalid value for key "${n}". Expected type ${JSON.stringify(e)} but got ${JSON.stringify(t)}`);throw Error(`Invalid value ${JSON.stringify(t)} for type ${JSON.stringify(e)}`)}function r(e){if(void 0===e.jsonToJS){const t={};e.props.forEach((e=>t[e.json]={key:e.js,typ:e.typ})),e.jsonToJS=t}return e.jsonToJS}function i(e){if(void 0===e.jsToJSON){const t={};e.props.forEach((e=>t[e.js]={key:e.json,typ:e.typ})),e.jsToJSON=t}return e.jsToJSON}function o(e,t,r,i=""){if("any"===t)return e;if(null===t)return null===e?e:n(t,e);if(!1===t)return n(t,e);for(;"object"==typeof t&&void 0!==t.ref;)t=h[t.ref];return Array.isArray(t)?function(e,t){return-1!==e.indexOf(t)?t:n(e,t)}(t,e):"object"==typeof t?t.hasOwnProperty("unionMembers")?function(e,t){const i=e.length;for(let n=0;n<i;n++){const i=e[n];try{return o(t,i,r)}catch(e){}}return n(e,t)}(t.unionMembers,e):t.hasOwnProperty("arrayItems")?function(e,t){return Array.isArray(t)?t.map((t=>o(t,e,r))):n("array",t)}(t.arrayItems,e):t.hasOwnProperty("props")?function(e,t,i){if(null===i||"object"!=typeof i||Array.isArray(i))return n("object",i);const a={};return Object.getOwnPropertyNames(e).forEach((t=>{const n=e[t],s=Object.prototype.hasOwnProperty.call(i,t)?i[t]:void 0;a[n.key]=o(s,n.typ,r,n.key)})),Object.getOwnPropertyNames(i).forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)||(a[n]=o(i[n],t,r,n))})),a}(r(t),t.additional,e):n(t,e):t===Date&&"number"!=typeof e?function(e){if(null===e)return null;const t=new Date(e);return isNaN(t.valueOf())?n("Date",e):t}(e):function(e,t){return typeof e==typeof t?t:n(e,t,i)}(t,e)}function a(e,t){return o(e,t,r)}function s(e,t){return o(e,t,i)}function l(e){return{arrayItems:e}}function u(...e){return{unionMembers:e}}function c(e,t){return{props:e,additional:t}}function d(e){return{props:[],additional:e}}function f(e){return{ref:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Convert=void 0,t.Convert=class{static toContext(e){return a(JSON.parse(e),f("Context"))}static contextToJson(e){return JSON.stringify(s(e,f("Context")),null,2)}static toContact(e){return a(JSON.parse(e),f("Contact"))}static contactToJson(e){return JSON.stringify(s(e,f("Contact")),null,2)}static toContactList(e){return a(JSON.parse(e),f("ContactList"))}static contactListToJson(e){return JSON.stringify(s(e,f("ContactList")),null,2)}static toInstrument(e){return a(JSON.parse(e),f("Instrument"))}static instrumentToJson(e){return JSON.stringify(s(e,f("Instrument")),null,2)}static toInstrumentList(e){return a(JSON.parse(e),f("InstrumentList"))}static instrumentListToJson(e){return JSON.stringify(s(e,f("InstrumentList")),null,2)}static toCountry(e){return a(JSON.parse(e),f("Country"))}static countryToJson(e){return JSON.stringify(s(e,f("Country")),null,2)}static toOrganization(e){return a(JSON.parse(e),f("Organization"))}static organizationToJson(e){return JSON.stringify(s(e,f("Organization")),null,2)}static toPortfolio(e){return a(JSON.parse(e),f("Portfolio"))}static portfolioToJson(e){return JSON.stringify(s(e,f("Portfolio")),null,2)}static toPosition(e){return a(JSON.parse(e),f("Position"))}static positionToJson(e){return JSON.stringify(s(e,f("Position")),null,2)}};const h={Context:c([{json:"id",js:"id",typ:u(void 0,d(""))},{json:"name",js:"name",typ:u(void 0,"")},{json:"type",js:"type",typ:""}],"any"),ContactList:c([{json:"contacts",js:"contacts",typ:l(f("Contact"))},{json:"type",js:"type",typ:""},{json:"id",js:"id",typ:u(void 0,d(""))},{json:"name",js:"name",typ:u(void 0,"")}],"any"),Contact:c([{json:"id",js:"id",typ:f("ContactID")},{json:"type",js:"type",typ:""},{json:"name",js:"name",typ:u(void 0,"")}],"any"),ContactID:c([{json:"email",js:"email",typ:u(void 0,"")},{json:"FDS_ID",js:"FDS_ID",typ:u(void 0,"")}],""),InstrumentList:c([{json:"instruments",js:"instruments",typ:l(f("Instrument"))},{json:"type",js:"type",typ:""},{json:"id",js:"id",typ:u(void 0,d(""))},{json:"name",js:"name",typ:u(void 0,"")}],"any"),Instrument:c([{json:"id",js:"id",typ:f("InstrumentID")},{json:"type",js:"type",typ:""},{json:"name",js:"name",typ:u(void 0,"")}],"any"),InstrumentID:c([{json:"BBG",js:"BBG",typ:u(void 0,"")},{json:"CUSIP",js:"CUSIP",typ:u(void 0,"")},{json:"FDS_ID",js:"FDS_ID",typ:u(void 0,"")},{json:"FIGI",js:"FIGI",typ:u(void 0,"")},{json:"ISIN",js:"ISIN",typ:u(void 0,"")},{json:"PERMID",js:"PERMID",typ:u(void 0,"")},{json:"RIC",js:"RIC",typ:u(void 0,"")},{json:"SEDOL",js:"SEDOL",typ:u(void 0,"")},{json:"ticker",js:"ticker",typ:u(void 0,"")}],""),Country:c([{json:"id",js:"id",typ:f("CountryID")},{json:"type",js:"type",typ:""},{json:"name",js:"name",typ:u(void 0,"")}],"any"),CountryID:c([{json:"ISOALPHA2",js:"ISOALPHA2",typ:u(void 0,"")},{json:"ISOALPHA3",js:"ISOALPHA3",typ:u(void 0,"")}],""),Organization:c([{json:"id",js:"id",typ:f("OrganizationID")},{json:"type",js:"type",typ:""},{json:"name",js:"name",typ:u(void 0,"")}],"any"),OrganizationID:c([{json:"FDS_ID",js:"FDS_ID",typ:u(void 0,"")},{json:"LEI",js:"LEI",typ:u(void 0,"")},{json:"PERMID",js:"PERMID",typ:u(void 0,"")}],""),Portfolio:c([{json:"positions",js:"positions",typ:l(f("Position"))},{json:"type",js:"type",typ:""},{json:"id",js:"id",typ:u(void 0,d(""))},{json:"name",js:"name",typ:u(void 0,"")}],"any"),Position:c([{json:"holding",js:"holding",typ:3.14},{json:"instrument",js:"instrument",typ:f("Instrument")},{json:"type",js:"type",typ:""},{json:"id",js:"id",typ:u(void 0,d(""))},{json:"name",js:"name",typ:u(void 0,"")}],"any")}},98832:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=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}),i(n(88801),t),i(n(77661),t),i(n(80498),t),i(n(55972),t),i(n(74215),t),i(n(19600),t),i(n(89520),t),i(n(35644),t),i(n(66129),t),i(n(51854),t),i(n(55182),t),i(n(36611),t),i(n(91767),t),i(n(91966),t),i(n(77178),t)},77178:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Intents=void 0,(n=t.Intents||(t.Intents={})).StartCall="StartCall",n.StartChat="StartChat",n.ViewChart="ViewChart",n.ViewContact="ViewContact",n.ViewQuote="ViewQuote",n.ViewNews="ViewNews",n.ViewInstrument="ViewInstrument",n.ViewAnalysis="ViewAnalysis"},49914:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r="data:image/png;base64,iVBORwoaCgAAAA1JSERSAAAAWgAAAG4IBgAAAKdDBLkAAAu3SURBVHja7Z0FcFRXF8dPXJAQD4TiTg2HnaZNi7trvVgNjeEsNbTu7sWlTZsSgQQiJRR3dye2ySZYsuc7Z+ctc5vZj2bfe6Rhcn8zv8nNuXd27v735r773lZAwECuJOPJWHK5UqsoGMi15HnFtUrtnmIa+QsZJNSqke+R0RVkfiXkFfIH8ivyjFLjvnsCgzLhb0hnO/3v6bxyxpAdVMwPyU+Euje5jPvKdX4aWEuior2wq5HLQR/GkxYy3sH5XSE/Veb4Uam5XeIx+s9Pf86T+C9hx4J2xilvYgvp4+D8fiCdlBWN5IdC/xoeU97z0x60/bAd+YSrkY1K/zlqeBPnyc+BKBX2+ySTrCFoDfPTsnXYDzuIXAllZz15kWxGMqM1vgme3wnSy07Yn5E3NWwd2uen6mJjP+xfHLzYdCDzlLDniG9C4/yWklWEsL8lUcPF0KB5fhqOTyiq9vgkhI06vYnpylwukquV7eIW15Q+R3Enz4jzu5dvCDjseB3fxGPkHxw2y22ulfP8JBKJRCKRSCQSiUQi0cB6Eu8oj/nv+ZAsFuZUrNQcInyq2fJEZKFZ9PEI8/XwCHME3GWwjOrFQrIvOE6x3ZqDdI4qLHxpiQVFxy0qwS5RZtNjUflhoIH2s/JiOszIeVBN0KHkQB2DfoFEMg0cB+3XtAfNvjC/GJ+INF8Nm1xYE1TwsDG3RvtZ+WfbzzLltpuZbyhr0DfJn0lmjk5BP6q87iWyTkULmh31+s3izlHmPW3GoRuooI0xpw4FfYgsbDfL1ONOQW8lx5K+tg+KzNYh6IZkFnmN7AhMBQyaHTT7hrlLZOE3oJJW0wsCKeTtFPbNdrPzhpWebLYSKuOrhL1Vwx79EDlaafuQB0kkRwJTiYOeo7R/Jm/qcDHcSl4nW5HxJJLzQKSSbh0DyVAdTx0dyVtkEYnkctIJSiEvhvZ0nLkkkpmkF2inWDjTs1hRj3flfcPioqzkED1vWISg9b9hkUgkEolEIpFIJBKJRLK+ZrWwbU3qZe5t2ayA5TbXwEF+fNXJsnSSs1n0lwlO13+aABGgE93mm4xwt3nppZeajh07NvXll18OAQVuc437QAUZTessOtW2I17t9Pg/5Br3gQMsnehcmPt1NRS98kVVXDHF2fTjBAjTI+RuC0wI/0ZSUtKDCQkJMaCSzp07Nxk9evRpCvYoB8xym2vcBw6S0qJJ2On2Bmuw2QOGW3+Kbe7jMVqCZk9/VAVpdWf9OBlqag25tFCa+Ph4A4WcS55NTk6uASpp167dw7awbSFzDVSwu127TFuwJVnZmPfiRJbbt8PmMVqDZvcs9ipeNslp7+fjwE2vkNnSK7kHBVyYmJh4iKwDGunRo0f38ePHI8ttUMlhQ1gBh8laA84zocVksrZtdR6jR9Ds5rnuhcsmOX+jMWT7QVOwwyjkm/Rze1xcXKASfBeqXeCf4CDidiFuI6CCI2GdxaCtIXPYYtA8ptIFLYbM2wWrJezDnXv/69bBYyrd1tGvX7+2zz777A5xT+Y217jP4T16yFNh5x/t/n8vhtzHYyrjxZDxsV9Tx4HBzy06H97TGqwo17ivEhzvyo/9Y6LCTgx6LvN035EFLLe5dq/esEgkEolEIpFIJBKJRDIVXgA9+MH1keBfa6X3+6u/eejWYYW1Ymunw4+u4aCSziO2h3UYtC3zof5/F7TsvaWgSeeMzPtap4SBSs4vBUN2bEhqUWZ/c9HWIeac30NTuVZet98cNLpHu08HDfiuC5z/1vG3MD4rHhOzEkkyOxHfPvkOhsTWWggO0uOZvYseHrIdWwzejl+svohPzzpsbTftk4khbTcuAgfJWuPz5q0jsxEvrybX3Lb42BuY9VvwfNAAP1CyH7YSrmjw68Fmj2iPd0ENK13D22/pYFl4ciGyi04uwsUnF+PiU4txyakl2H17dwuscH0EysiIl/aHtR62wxpsSwp7x8ECNH52mn+32rhXJlZrsj7MkZV8I72VBY9Goz1vbulk4TEOhytqN+yh4MLhrs5ffdvvL3+PdRbWMXtO8/zJ2u8Iv7mkBKYG4tDdQ60O2z3M6vDdw3HEnhHYMKMhwq8um8r8Jp7bl2kLdcLC4/jV2ks4ZckJtNXYoA4pmVBGrq6CjbjZH3FHZ/umBiOP0Ri0nbCN4O4c4VzCAYv+nPUzNnuvGYcdBxPAA8rKn84mmiZ6p3hj4KZArJtaF+ul1sOQzSFYPaU6ch/EOedCGQl/ek+BGGp+YTGuS85CsVYrbHMBlBHTOsjFDYCY7Im4yZeDZblNNS/kPh6jPejSYU8BL5col1u6BZ1AIXKYdzLexfSfB23fuxj0y1DVLdrthm5bR4LrJlugTsmsk6IQdIJLipqtQwha29YhBpukKNT02jq6zze9Jv7HMn11vRgm0oVuo7MlaEtVvO/vGlhb0P+vKsh9NCZczcWQTxvXbpTgrsNm7PrSXtUXw6I4sJSkeGDJJq9/yDXuU3ExtJDF5A0h6Nfv+vEONrvOa7YtxDLqWFscdawNjjzKtsbm22taIMV1ntrjneG53Ryw1dajdqo+3l1eDsaidB/LtYN1UJRr3Kf1eNd9Qf6b5XfDkuoaXv0v79T2u+qbO+yqXxC4xScD0lwfqUg3LFfjPNPytvibWW7rcsOyIH8+3GtIJBKJRCKRSCQSiWQKeEF58SOAISEkJHV3//7mPUOGmBNDQ1O5pvN/gtOoIYxGrtGuOe7T3E02XaNc3wSNuMe4z/OI8TgKkyAY7ja/+/i8eWn2bCxavRqL1qy57eU33sA/goPnqwjaHkZNQUdAM985vgVfX/ga2RGxI5Ae434KGqCA3+Unlf1X9b9Jr3UWoqE2OE4cifblPoWVAIYjrVpZcqOj0Z7HOnWy8Bidgk5RFfgUeEd5fHvd9sz8+YTnkWtOEU7nqD8UHMPJM8bzq9A3Qwu/vfSt9fWe/vPpWxT2JYiE+uAYzclbdkLmGvUpxANsPO3vj1c6d7br6eBg5DE6BZ1Gvkeio8F4T/eObf9F+6JVplXWYObsnIP0Z19AIbcERzCCM31AX9/hgzsPk6ApOMYHdoKmmkAaQO5x6jjl6YlnfX3xPAXLcvuUlxdyH4/RKWgOOVxF0MBfp1HY23os7XFjyeElSH/2RRAJ4Vq2Ij+jX74YtIatyI/MFkKmNtcEMpSg72RGRQha+TaIwjhFX73dcolwGQka4KB5BYu6RLt8COqZIARN7VKkAmy0BXpCVAg61fGtw2jHFM1BM5PhZedI5w3wAlQDPTCCK0RBCGjHlTygSO1SbAAw7AGwnKnugecCvP/hGR9P5D4eA2VFDFbZkwXHaAnaLcptSuhboZbuS3sg/dnngEb4lEGvc6bBkoaXAuYFGEE7PRXtk07BHKvva7nctSGKHm/sb+E+UIO4VYhqCLrqjKqbn094AZfmLOegi0H4N1xVfnCvjN0w7tbyvJXoO9f3NJQHGQCGnTWrpR1sG1pwqGPtgp2h1dO5Buox6v7/DIiAdhTIjYB5gSV+c/3+1GNF+9KKbkgrmj6410FS6ng2Bfx0fD1X5a6wciORSCQSiUQikUgkcWRz0J+eihWSZCO4Hl0O+4+ugH3chnLA9tXLB8IDa30fG1ZAtn8DU8xJgCy3yyVowWxyghCOTg/CtfPRRx/FfPLJJw/qtZpPrATT2bWALLfLY1WjHQ+QPXX9akcD7777bo0PP/zwLJn7/vvvG/RYzWfWANrgtsZV7QaG8BgYPTmN5TbXNASt4ctKjVDAdWhVH6KwCz/++OMeWlbz6TWQxyvZBre5pnpVc7C/ZSIk7bPKba5p2Do0fv2ukQ8++CCQgt5O3qTQh2nZmy//Dnij6CrLbW17Na9iDliUaxovhtr/gRKdgla7mgs3ULDk+QM/WeU218RVrXPQwvGugqN16xBXsxK0KNfEVa3/1lHx0e9iSCv2KgfKlt6jbfVTayBH14thxUf/493hZbDrUiwge24dIP1uldu2+pFlsB105n9c+mBCXSDnVgAAAABJRU5ErkJggg=="},60306:e=>{"use strict";e.exports=JSON.parse('{"name":"@finsemble/finsemble-core","main":"dist/index.js","types":"types/index.d.ts","version":"6.1.4","description":"Finsemble is an application framework providing infrastructure, services, and components for quickly building HTML5 multi-window financial desktop applications.","scripts":{"do-audit":" improved-yarn-audit --min-severity high","build":"gulp build --production","build-docs":"gulp --gulpfile gulpfile-docs.js build-docs","clean":"gulp clean","dev":"gulp build --watch","dev:fresh":"gulp build --clean --watch","docs":"set DEBUG=gulp-jsdoc3&&gulp --gulpfile=./gulpfile-docs.js docs-server","lint":"eslint --ext .js,.jsx,.ts,.tsx ./src/**","lint-fix":"eslint --fix --ext .js,.jsx,.ts,.tsx ./src/**","lint-stats":"eslint --format node_modules/eslint-stats/byErrorAndWarning.js --ext .js,.jsx,.ts,.tsx ./src/**","monodev":"yarn dev","obfuscate":"gulp build --production --obfuscate","prod":"gulp build --production","test":"ts-mocha","test-coverage":"nyc ts-mocha && nyc merge .nyc_output ../../.nyc_output/core.json","types":"gulp types"},"author":"Cosaic","license":"SEE LICENSE IN LICENSE","dependencies":{"@babel/core":"7.14.6","@babel/preset-env":"7.14.7","@babel/preset-react":"7.14.5"},"devDependencies":{"@istanbuljs/nyc-config-typescript":"1.0.1","@reduxjs/toolkit":"1.6.1","@types/chai":"4.2.21","@types/deepmerge":"2.2.0","@types/lodash":"4.14.171","@types/mocha":"9.0.0","@types/node":"12.12.7","@typescript-eslint/eslint-plugin":"4.28.3","@typescript-eslint/parser":"4.28.4","ajv":"6.12.2","async":"3.2.0","babel-loader":"8.2.2","browser-sync":"2.27.4","case-sensitive-paths-webpack-plugin":"2.4.0","chai":"4.2.0","chalk":"4.1.1","copy-webpack-plugin":"6.4.1","css-loader":"3.5.3","deepmerge":"1.3.2","del":"6.0.0","esm":"~3.2.25","fast-check":"2.17.0","file-loader":"6.2.0","file-saver":"2.0.5","fs-extra":"2.1.2","fuse.js":"6.4.6","git-rev-sync":"3.0.1","gulp":"4.0.0","gulp-javascript-obfuscator":"^1.1.6","gulp-jsdoc3":"3.0.0","gulp-plumber":"1.2.1","gulp-rename":"1.2.3","gulp-string-replace":"1.1.2","gulp-watch":"5.0.1","immutable":"4.0.0-rc.14","improved-yarn-audit":"^2.3.2","jsdoc":"3.6.6","jszip":"3.6.0","lodash":"4.17.21","mocha":"^8.0.1","mock-socket":"9.0.3","nyc":"15.1.0","p-limit":"3.1.0","p-queue":"7.1.0","pretty-hrtime":"1.0.3","prop-types":"15.7.2","react":"17.0.2","react-dom":"17.0.2","react-redux":"7.2.4","react-virtualized":"9.22.3","redux-devtools":"3.7.0","redux-devtools-chart-monitor":"1.7.2","redux-devtools-log-monitor":"2.1.0","redux-loop":"6.1.0","require-directory":"2.1.1","resize-observer-polyfill":"1.5.1","rimraf":"3.0.2","sass-loader":"12.1.0","searchjs":"1.1.0","shelljs":"0.8.4","sinon":"11.1.1","sinon-chai":"3.7.0","source-map-loader":"3.0.0","style-loader":"3.2.1","superagent":"6.1.0","taffydb":"2.7.3","to-string-loader":"1.1.6","ts-loader":"9.2.3","ts-mocha":"8.0.0","typedoc":"0.17.8","typescript":"4.3.5","url-loader":"4.1.0","uuid":"3.0.1","vinyl-sourcemaps-apply":"0.2.1","webpack":"5.45.1","webpack-glob-entries":"1.0.1","worker-farm":"1.7.0"},"resolutions":{"ts-mocha/ts-node":"^10.1.0","xmlhttprequest-ssl":"1.6.3","underscore":"1.12.1","ua-parser-js":"0.7.24","javascript-obfuscator":"2.15.5"}}')},87063:e=>{"use strict";e.exports=JSON.parse('{"F":{"0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","backspace":"Backspace","bs":"Backspace","bksp":"Backspace","tab":"Tab","escape":"Escape","esc":"Escape","clear":"Clear","enter":"Enter","return":"Enter","shift":"Shift","shft":"Shift","lshift":"Shift","lshft":"Shift","left shift":"Shift","leftshift":"Shift","rshift":"Shift","rshft":"Shift","right shift":"Shift","rightshift":"Shift","control":"Control","ctrl":"Control","commandorcontrol":"CommandOrControl","alt":"Alt","alternate":"Alt","pause":"Pause","caps lock":"Capslock","capslock":"Capslock","spacebar":"Space","space":"Space","space bar":"Space","page up":"PageUp","pgup":"PageUp","pg up":"PageUp","page down":"PageDown","pgdn":"PageDown","pg dn":"PageDown","pgdown":"PageDown","end":"End","home":"Home","left arrow":"Left","left":"Left","up arrow":"Up","up":"Up","right arrow":"Right","right":"Right","down arrow":"Down","down":"Down","select":"Select","slct":"Select","print":"PrintScreen","prnt":"PrintScreen","execute":"Execute","print screen":"PrintScreen","printscreen":"PrintScreen","print scrn":"PrintScreen","printscrn":"PrintScreen","prnt scrn":"PrintScreen","prntscrn":"PrintScreen","prt scrn":"PrintScreen","prtscrn":"PrintScreen","prt scn":"PrintScreen","prtscn":"PrintScreen","prt scr":"PrintScreen","prtscr":"PrintScreen","prt sc":"PrintScreen","prtsc":"PrintScreen","pr sc":"PrintScreen","prsc":"PrintScreen","insert":"Insert","ins":"Insert","delete":"Delete","del":"Delete","a":"A","b":"B","c":"C","d":"D","e":"E","f":"F","g":"G","h":"H","i":"I","j":"J","k":"K","l":"L","m":"M","n":"N","o":"O","p":"P","q":"Q","r":"R","s":"S","t":"T","u":"U","v":"V","w":"W","x":"X","y":"Y","z":"Z","windows":"Super","left windows":"Super","right windows":"Super","numpad 0":"num0","numpad 1":"num1","numpad 2":"num2","numpad 3":"num3","numpad 4":"num4","numpad 5":"num5","numpad 6":"num6","numpad 7":"num7","numpad 8":"num8","numpad 9":"num9","f1":"F1","fn1":"F1","function 1":"F1","f2":"F2","fn2":"F2","function 2":"F2","f3":"F3","fn3":"F3","function 3":"F3","f4":"F4","fn4":"F4","function 4":"F4","f5":"F5","fn5":"F5","function 5":"F5","f6":"F6","fn6":"F6","function 6":"F6","f7":"F7","fn7":"F7","function 7":"F7","f8":"F8","fn8":"F8","function 8":"F8","f9":"F9","fn9":"F9","function 9":"F9","f10":"F10","fn10":"F10","function 10":"F10","f11":"F11","fn11":"F11","function 11":"F11","f12":"F12","fn12":"F12","function 12":"F12","f13":"F13","fn":"F13","function 13":"F13","f14":"F14","fn14":"F14","function 14":"F14","f15":"F15","fn15":"F15","function 15":"F15","f16":"F16","fn16":"F16","function 16":"F16","num lock":"Numlock","numlock":"Numlock","number lock":"Numlock","numeric lock":"Numlock","scroll lock":"Scrolllock","sclk":"Scrolllock","scrlk":"Scrolllock","slk":"Scrolllock","*":"*","+":"+","-":"-","/":"/",";":";","=":"=",",":",","_":"-",".":".","`":"`","[":"[","]":"]","\'":"\'"}}')}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.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.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var r={};return(()=>{"use strict";var e=c(n(89526)),t=c(n(73961)),r=c(n(29581)),i=c(n(12622)),o=c(n(70010)),a=n(51742),s=c(n(5020)),l=c(n(44453)),u=n(10589);function c(e){return e&&e.__esModule?e:{default:e}}o.default.initialize(),new l.default,window.showConsole=function(){const e=a.System.Window.getCurrent();e.restore(),e.show(),e.bringToFront((()=>{e.focus()}))},async function(){await(new u.FSBLService).startApp(),await s.default.waitForStartup("preferencesService"),o.default.getPreferences(((e,t)=>{let n=!1,i=!1;try{n=t["finsemble.preferences.loggerService.showOnStartup"],i=t["finsemble.preferences.loggerService.showOnError"]}catch(e){console.log("Caught error getting preferences...",e)}r.default.setShowOnStartup(n,!1),r.default.setShowOnError(i,!1),n&&window.showConsole()}))}(),t.default.render(e.default.createElement(i.default,null),document.getElementById("Logger-component-wrapper"))})(),r.default})()}));
2
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,(function(){return(()=>{var e={57664:(e,t,n)=>{"use strict";function r(e,...t){return(...n)=>e(...t,...n)}function i(e){return function(...t){var n=t.pop();return e.call(this,t,n)}}n.r(t),n.d(t,{default:()=>pt,apply:()=>r,applyEach:()=>L,applyEachSeries:()=>A,asyncify:()=>c,auto:()=>P,autoInject:()=>B,cargo:()=>G,cargoQueue:()=>$,compose:()=>K,concat:()=>Q,concatLimit:()=>J,concatSeries:()=>X,constant:()=>ee,detect:()=>ne,detectLimit:()=>re,detectSeries:()=>ie,dir:()=>ae,doUntil:()=>le,doWhilst:()=>se,each:()=>ce,eachLimit:()=>de,eachOf:()=>k,eachOfLimit:()=>x,eachOfSeries:()=>R,eachSeries:()=>fe,ensureAsync:()=>he,every:()=>pe,everyLimit:()=>ge,everySeries:()=>me,filter:()=>be,filterLimit:()=>_e,filterSeries:()=>Se,forever:()=>Ce,groupBy:()=>Ee,groupByLimit:()=>xe,groupBySeries:()=>Te,log:()=>ke,map:()=>O,mapLimit:()=>Z,mapSeries:()=>I,mapValues:()=>Le,mapValuesLimit:()=>Oe,mapValuesSeries:()=>Re,memoize:()=>Ie,nextTick:()=>Ae,parallel:()=>Ne,parallelLimit:()=>Pe,priorityQueue:()=>je,queue:()=>De,race:()=>Be,reduce:()=>q,reduceRight:()=>He,reflect:()=>Ue,reflectAll:()=>Ve,reject:()=>$e,rejectLimit:()=>qe,rejectSeries:()=>Ye,retry:()=>Ze,retryable:()=>Qe,seq:()=>Y,series:()=>Xe,setImmediate:()=>u,some:()=>et,someLimit:()=>tt,someSeries:()=>nt,sortBy:()=>rt,timeout:()=>it,times:()=>at,timesLimit:()=>ot,timesSeries:()=>st,transform:()=>lt,tryEach:()=>ut,unmemoize:()=>ct,until:()=>ft,waterfall:()=>ht,whilst:()=>dt,all:()=>pe,allLimit:()=>ge,allSeries:()=>me,any:()=>et,anyLimit:()=>tt,anySeries:()=>nt,find:()=>ne,findLimit:()=>re,findSeries:()=>ie,flatMap:()=>Q,flatMapLimit:()=>J,flatMapSeries:()=>X,forEach:()=>ce,forEachSeries:()=>fe,forEachLimit:()=>de,forEachOf:()=>k,forEachOfSeries:()=>R,forEachOfLimit:()=>x,inject:()=>q,foldl:()=>q,foldr:()=>He,select:()=>be,selectLimit:()=>_e,selectSeries:()=>Se,wrapSync:()=>c,during:()=>dt,doDuring:()=>se});var o="function"==typeof setImmediate&&setImmediate,a="object"==typeof process&&"function"==typeof process.nextTick;function s(e){setTimeout(e,0)}function l(e){return(t,...n)=>e((()=>t(...n)))}var u=l(o?setImmediate:a?process.nextTick:s);function c(e){return h(e)?function(...t){const n=t.pop();return d(e.apply(this,t),n)}:i((function(t,n){var r;try{r=e.apply(this,t)}catch(e){return n(e)}if(r&&"function"==typeof r.then)return d(r,n);n(null,r)}))}function d(e,t){return e.then((e=>{f(t,null,e)}),(e=>{f(t,e&&e.message?e:new Error(e))}))}function f(e,t,n){try{e(t,n)}catch(e){u((e=>{throw e}),e)}}function h(e){return"AsyncFunction"===e[Symbol.toStringTag]}function p(e){if("function"!=typeof e)throw new Error("expected a function");return h(e)?c(e):e}function g(e,t=e.length){if(!t)throw new Error("arity is undefined");return function(...n){return"function"==typeof n[t-1]?e.apply(this,n):new Promise(((r,i)=>{n[t-1]=(e,...t)=>{if(e)return i(e);r(t.length>1?t:t[0])},e.apply(this,n)}))}}function m(e){return function(t,...n){return g((function(r){var i=this;return e(t,((e,t)=>{p(e).apply(i,n.concat(t))}),r)}))}}function v(e,t,n,r){t=t||[];var i=[],o=0,a=p(n);return e(t,((e,t,n)=>{var r=o++;a(e,((e,t)=>{i[r]=t,n(e)}))}),(e=>{r(e,i)}))}function y(e){return e&&"number"==typeof e.length&&e.length>=0&&e.length%1==0}const w={};function b(e){function t(...t){if(null!==e){var n=e;e=null,n.apply(this,t)}}return Object.assign(t,e),t}function _(e){return function(...t){if(null===e)throw new Error("Callback was already called.");var n=e;e=null,n.apply(this,t)}}function S(e,t,n,r){let i=!1,o=!1,a=!1,s=0,l=0;function u(){s>=t||a||i||(a=!0,e.next().then((({value:e,done:t})=>{if(!o&&!i){if(a=!1,t)return i=!0,void(s<=0&&r(null));s++,n(e,l,c),l++,u()}})).catch(d))}function c(e,t){if(s-=1,!o)return e?d(e):!1===e?(i=!0,void(o=!0)):t===w||i&&s<=0?(i=!0,r(null)):void u()}function d(e){o||(a=!1,i=!0,r(e))}u()}var C=e=>(t,n,r)=>{if(r=b(r),e<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!t)return r(null);if("AsyncGenerator"===t[Symbol.toStringTag])return S(t,e,n,r);if(function(e){return"function"==typeof e[Symbol.asyncIterator]}(t))return S(t[Symbol.asyncIterator](),e,n,r);var i=function(e){if(y(e))return function(e){var t=-1,n=e.length;return function(){return++t<n?{value:e[t],key:t}:null}}(e);var t,n,r,i,o=function(e){return e[Symbol.iterator]&&e[Symbol.iterator]()}(e);return o?function(e){var t=-1;return function(){var n=e.next();return n.done?null:(t++,{value:n.value,key:t})}}(o):(n=(t=e)?Object.keys(t):[],r=-1,i=n.length,function(){var e=n[++r];return r<i?{value:t[e],key:e}:null})}(t),o=!1,a=!1,s=0,l=!1;function u(e,t){if(!a)if(s-=1,e)o=!0,r(e);else if(!1===e)o=!0,a=!0;else{if(t===w||o&&s<=0)return o=!0,r(null);l||c()}}function c(){for(l=!0;s<e&&!o;){var t=i();if(null===t)return o=!0,void(s<=0&&r(null));s+=1,n(t.value,t.key,_(u))}l=!1}c()},x=g((function(e,t,n,r){return C(t)(e,p(n),r)}),4);function E(e,t,n){n=b(n);var r=0,i=0,{length:o}=e,a=!1;function s(e,t){!1===e&&(a=!0),!0!==a&&(e?n(e):++i!==o&&t!==w||n(null))}for(0===o&&n(null);r<o;r++)t(e[r],r,_(s))}function T(e,t,n){return x(e,1/0,t,n)}var k=g((function(e,t,n){return(y(e)?E:T)(e,p(t),n)}),3),O=g((function(e,t,n){return v(k,e,t,n)}),3),L=m(O),R=g((function(e,t,n){return x(e,1,t,n)}),3),I=g((function(e,t,n){return v(R,e,t,n)}),3),A=m(I);const M=Symbol("promiseCallback");function N(){let e,t;function n(n,...r){if(n)return t(n);e(r.length>1?r:r[0])}return n[M]=new Promise(((n,r)=>{e=n,t=r})),n}function P(e,t,n){"number"!=typeof t&&(n=t,t=null),n=b(n||N());var r=Object.keys(e).length;if(!r)return n(null);t||(t=r);var i={},o=0,a=!1,s=!1,l=Object.create(null),u=[],c=[],d={};function f(e,t){u.push((()=>function(e,t){if(!s){var r=_(((t,...r)=>{if(o--,!1!==t)if(r.length<2&&([r]=r),t){var u={};if(Object.keys(i).forEach((e=>{u[e]=i[e]})),u[e]=r,s=!0,l=Object.create(null),a)return;n(t,u)}else i[e]=r,(l[e]||[]).forEach((e=>e())),h();else a=!0}));o++;var u=p(t[t.length-1]);t.length>1?u(i,r):u(r)}}(e,t)))}function h(){if(!a){if(0===u.length&&0===o)return n(null,i);for(;u.length&&o<t;)u.shift()()}}function g(t){var n=[];return Object.keys(e).forEach((r=>{const i=e[r];Array.isArray(i)&&i.indexOf(t)>=0&&n.push(r)})),n}return Object.keys(e).forEach((t=>{var n=e[t];if(!Array.isArray(n))return f(t,[n]),void c.push(t);var r=n.slice(0,n.length-1),i=r.length;if(0===i)return f(t,n),void c.push(t);d[t]=i,r.forEach((o=>{if(!e[o])throw new Error("async.auto task `"+t+"` has a non-existent dependency `"+o+"` in "+r.join(", "));var a,s;(s=l[a=o])||(s=l[a]=[]),s.push((()=>{0==--i&&f(t,n)}))}))})),function(){for(var e=0;c.length;)e++,g(c.pop()).forEach((e=>{0==--d[e]&&c.push(e)}));if(e!==r)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),h(),n[M]}var D=/^(?:async\s+)?(?:function)?\s*\w*\s*\(\s*([^)]+)\s*\)(?:\s*{)/,F=/^(?:async\s+)?\(?\s*([^)=]+)\s*\)?(?:\s*=>)/,W=/,/,z=/(=.+)?(\s*)$/,j=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;function B(e,t){var n={};return Object.keys(e).forEach((t=>{var r,i=e[t],o=h(i),a=!o&&1===i.length||o&&0===i.length;if(Array.isArray(i))r=[...i],i=r.pop(),n[t]=r.concat(r.length>0?s:i);else if(a)n[t]=i;else{if(r=function(e){const t=e.toString().replace(j,"");let n=t.match(D);if(n||(n=t.match(F)),!n)throw new Error("could not parse args in autoInject\nSource:\n"+t);let[,r]=n;return r.replace(/\s/g,"").split(W).map((e=>e.replace(z,"").trim()))}(i),0===i.length&&!o&&0===r.length)throw new Error("autoInject task functions require explicit parameters.");o||r.pop(),n[t]=r.concat(s)}function s(e,t){var n=r.map((t=>e[t]));n.push(t),p(i)(...n)}})),P(n,t)}class H{constructor(){this.head=this.tail=null,this.length=0}removeLink(e){return e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev,e.prev=e.next=null,this.length-=1,e}empty(){for(;this.head;)this.shift();return this}insertAfter(e,t){t.prev=e,t.next=e.next,e.next?e.next.prev=t:this.tail=t,e.next=t,this.length+=1}insertBefore(e,t){t.prev=e.prev,t.next=e,e.prev?e.prev.next=t:this.head=t,e.prev=t,this.length+=1}unshift(e){this.head?this.insertBefore(this.head,e):U(this,e)}push(e){this.tail?this.insertAfter(this.tail,e):U(this,e)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var e=this.head;e;)yield e.data,e=e.next}remove(e){for(var t=this.head;t;){var{next:n}=t;e(t)&&this.removeLink(t),t=n}return this}}function U(e,t){e.length=1,e.head=e.tail=t}function V(e,t,n){if(null==t)t=1;else if(0===t)throw new RangeError("Concurrency must not be zero");var r=p(e),i=0,o=[];const a={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function s(e,t){return e?t?void(a[e]=a[e].filter((e=>e!==t))):a[e]=[]:Object.keys(a).forEach((e=>a[e]=[]))}function l(e,...t){a[e].forEach((e=>e(...t)))}var c=!1;function d(e,t,n,r){if(null!=r&&"function"!=typeof r)throw new Error("task callback must be a function");var i,o;function a(e,...t){return e?n?o(e):i():t.length<=1?i(t[0]):void i(t)}v.started=!0;var s={data:e,callback:n?a:r||a};if(t?v._tasks.unshift(s):v._tasks.push(s),c||(c=!0,u((()=>{c=!1,v.process()}))),n||!r)return new Promise(((e,t)=>{i=e,o=t}))}function f(e){return function(t,...n){i-=1;for(var r=0,a=e.length;r<a;r++){var s=e[r],u=o.indexOf(s);0===u?o.shift():u>0&&o.splice(u,1),s.callback(t,...n),null!=t&&l("error",t,s.data)}i<=v.concurrency-v.buffer&&l("unsaturated"),v.idle()&&l("drain"),v.process()}}function h(e){return!(0!==e.length||!v.idle()||(u((()=>l("drain"))),0))}const g=e=>t=>{if(!t)return new Promise(((t,n)=>{!function(e,r){const i=(...r)=>{s(e,i),((e,r)=>{if(e)return n(e);t(r)})(...r)};a[e].push(i)}(e)}));s(e),function(e,t){a[e].push(t)}(e,t)};var m=!1,v={_tasks:new H,*[Symbol.iterator](){yield*v._tasks[Symbol.iterator]()},concurrency:t,payload:n,buffer:t/4,started:!1,paused:!1,push(e,t){if(Array.isArray(e)){if(h(e))return;return e.map((e=>d(e,!1,!1,t)))}return d(e,!1,!1,t)},pushAsync(e,t){if(Array.isArray(e)){if(h(e))return;return e.map((e=>d(e,!1,!0,t)))}return d(e,!1,!0,t)},kill(){s(),v._tasks.empty()},unshift(e,t){if(Array.isArray(e)){if(h(e))return;return e.map((e=>d(e,!0,!1,t)))}return d(e,!0,!1,t)},unshiftAsync(e,t){if(Array.isArray(e)){if(h(e))return;return e.map((e=>d(e,!0,!0,t)))}return d(e,!0,!0,t)},remove(e){v._tasks.remove(e)},process(){if(!m){for(m=!0;!v.paused&&i<v.concurrency&&v._tasks.length;){var e=[],t=[],n=v._tasks.length;v.payload&&(n=Math.min(n,v.payload));for(var a=0;a<n;a++){var s=v._tasks.shift();e.push(s),o.push(s),t.push(s.data)}i+=1,0===v._tasks.length&&l("empty"),i===v.concurrency&&l("saturated");var u=_(f(e));r(t,u)}m=!1}},length:()=>v._tasks.length,running:()=>i,workersList:()=>o,idle:()=>v._tasks.length+i===0,pause(){v.paused=!0},resume(){!1!==v.paused&&(v.paused=!1,u(v.process))}};return Object.defineProperties(v,{saturated:{writable:!1,value:g("saturated")},unsaturated:{writable:!1,value:g("unsaturated")},empty:{writable:!1,value:g("empty")},drain:{writable:!1,value:g("drain")},error:{writable:!1,value:g("error")}}),v}function G(e,t){return V(e,1,t)}function $(e,t,n){return V(e,t,n)}var q=g((function(e,t,n,r){r=b(r);var i=p(n);return R(e,((e,n,r)=>{i(t,e,((e,n)=>{t=n,r(e)}))}),(e=>r(e,t)))}),4);function Y(...e){var t=e.map(p);return function(...e){var n=this,r=e[e.length-1];return"function"==typeof r?e.pop():r=N(),q(t,e,((e,t,r)=>{t.apply(n,e.concat(((e,...t)=>{r(e,t)})))}),((e,t)=>r(e,...t))),r[M]}}function K(...e){return Y(...e.reverse())}var Z=g((function(e,t,n,r){return v(C(t),e,n,r)}),4),J=g((function(e,t,n,r){var i=p(n);return Z(e,t,((e,t)=>{i(e,((e,...n)=>e?t(e):t(e,n)))}),((e,t)=>{for(var n=[],i=0;i<t.length;i++)t[i]&&(n=n.concat(...t[i]));return r(e,n)}))}),4),Q=g((function(e,t,n){return J(e,1/0,t,n)}),3),X=g((function(e,t,n){return J(e,1,t,n)}),3);function ee(...e){return function(...t){return t.pop()(null,...e)}}function te(e,t){return(n,r,i,o)=>{var a,s=!1;const l=p(i);n(r,((n,r,i)=>{l(n,((r,o)=>r||!1===r?i(r):e(o)&&!a?(s=!0,a=t(!0,n),i(null,w)):void i()))}),(e=>{if(e)return o(e);o(null,s?a:t(!1))}))}}var ne=g((function(e,t,n){return te((e=>e),((e,t)=>t))(k,e,t,n)}),3),re=g((function(e,t,n,r){return te((e=>e),((e,t)=>t))(C(t),e,n,r)}),4),ie=g((function(e,t,n){return te((e=>e),((e,t)=>t))(C(1),e,t,n)}),3);function oe(e){return(t,...n)=>p(t)(...n,((t,...n)=>{"object"==typeof console&&(t?console.error&&console.error(t):console[e]&&n.forEach((t=>console[e](t))))}))}var ae=oe("dir"),se=g((function(e,t,n){n=_(n);var r,i=p(e),o=p(t);function a(e,...t){if(e)return n(e);!1!==e&&(r=t,o(...t,s))}function s(e,t){return e?n(e):!1!==e?t?void i(a):n(null,...r):void 0}return s(null,!0)}),3);function le(e,t,n){const r=p(t);return se(e,((...e)=>{const t=e.pop();r(...e,((e,n)=>t(e,!n)))}),n)}function ue(e){return(t,n,r)=>e(t,r)}var ce=g((function(e,t,n){return k(e,ue(p(t)),n)}),3),de=g((function(e,t,n,r){return C(t)(e,ue(p(n)),r)}),4),fe=g((function(e,t,n){return de(e,1,t,n)}),3);function he(e){return h(e)?e:function(...t){var n=t.pop(),r=!0;t.push(((...e)=>{r?u((()=>n(...e))):n(...e)})),e.apply(this,t),r=!1}}var pe=g((function(e,t,n){return te((e=>!e),(e=>!e))(k,e,t,n)}),3),ge=g((function(e,t,n,r){return te((e=>!e),(e=>!e))(C(t),e,n,r)}),4),me=g((function(e,t,n){return te((e=>!e),(e=>!e))(R,e,t,n)}),3);function ve(e,t,n,r){var i=new Array(t.length);e(t,((e,t,r)=>{n(e,((e,n)=>{i[t]=!!n,r(e)}))}),(e=>{if(e)return r(e);for(var n=[],o=0;o<t.length;o++)i[o]&&n.push(t[o]);r(null,n)}))}function ye(e,t,n,r){var i=[];e(t,((e,t,r)=>{n(e,((n,o)=>{if(n)return r(n);o&&i.push({index:t,value:e}),r(n)}))}),(e=>{if(e)return r(e);r(null,i.sort(((e,t)=>e.index-t.index)).map((e=>e.value)))}))}function we(e,t,n,r){return(y(t)?ve:ye)(e,t,p(n),r)}var be=g((function(e,t,n){return we(k,e,t,n)}),3),_e=g((function(e,t,n,r){return we(C(t),e,n,r)}),4),Se=g((function(e,t,n){return we(R,e,t,n)}),3),Ce=g((function(e,t){var n=_(t),r=p(he(e));return function e(t){if(t)return n(t);!1!==t&&r(e)}()}),2),xe=g((function(e,t,n,r){var i=p(n);return Z(e,t,((e,t)=>{i(e,((n,r)=>n?t(n):t(n,{key:r,val:e})))}),((e,t)=>{for(var n={},{hasOwnProperty:i}=Object.prototype,o=0;o<t.length;o++)if(t[o]){var{key:a}=t[o],{val:s}=t[o];i.call(n,a)?n[a].push(s):n[a]=[s]}return r(e,n)}))}),4);function Ee(e,t,n){return xe(e,1/0,t,n)}function Te(e,t,n){return xe(e,1,t,n)}var ke=oe("log"),Oe=g((function(e,t,n,r){r=b(r);var i={},o=p(n);return C(t)(e,((e,t,n)=>{o(e,t,((e,r)=>{if(e)return n(e);i[t]=r,n(e)}))}),(e=>r(e,i)))}),4);function Le(e,t,n){return Oe(e,1/0,t,n)}function Re(e,t,n){return Oe(e,1,t,n)}function Ie(e,t=(e=>e)){var n=Object.create(null),r=Object.create(null),o=p(e),a=i(((e,i)=>{var a=t(...e);a in n?u((()=>i(null,...n[a]))):a in r?r[a].push(i):(r[a]=[i],o(...e,((e,...t)=>{e||(n[a]=t);var i=r[a];delete r[a];for(var o=0,s=i.length;o<s;o++)i[o](e,...t)})))}));return a.memo=n,a.unmemoized=e,a}var Ae=l(a?process.nextTick:o?setImmediate:s),Me=g(((e,t,n)=>{var r=y(t)?[]:{};e(t,((e,t,n)=>{p(e)(((e,...i)=>{i.length<2&&([i]=i),r[t]=i,n(e)}))}),(e=>n(e,r)))}),3);function Ne(e,t){return Me(k,e,t)}function Pe(e,t,n){return Me(C(t),e,n)}function De(e,t){var n=p(e);return V(((e,t)=>{n(e[0],t)}),t,1)}class Fe{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(e){let t;for(;e>0&&ze(this.heap[e],this.heap[t=We(e)]);){let n=this.heap[e];this.heap[e]=this.heap[t],this.heap[t]=n,e=t}}percDown(e){let t;for(;(t=1+(e<<1))<this.heap.length&&(t+1<this.heap.length&&ze(this.heap[t+1],this.heap[t])&&(t+=1),!ze(this.heap[e],this.heap[t]));){let n=this.heap[e];this.heap[e]=this.heap[t],this.heap[t]=n,e=t}}push(e){e.pushCount=++this.pushCount,this.heap.push(e),this.percUp(this.heap.length-1)}unshift(e){return this.heap.push(e)}shift(){let[e]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),e}toArray(){return[...this]}*[Symbol.iterator](){for(let e=0;e<this.heap.length;e++)yield this.heap[e].data}remove(e){let t=0;for(let n=0;n<this.heap.length;n++)e(this.heap[n])||(this.heap[t]=this.heap[n],t++);this.heap.splice(t);for(let e=We(this.heap.length-1);e>=0;e--)this.percDown(e);return this}}function We(e){return(e+1>>1)-1}function ze(e,t){return e.priority!==t.priority?e.priority<t.priority:e.pushCount<t.pushCount}function je(e,t){var n=De(e,t);return n._tasks=new Fe,n.push=function(e,t=0,r=(()=>{})){if("function"!=typeof r)throw new Error("task callback must be a function");if(n.started=!0,Array.isArray(e)||(e=[e]),0===e.length&&n.idle())return u((()=>n.drain()));for(var i=0,o=e.length;i<o;i++){var a={data:e[i],priority:t,callback:r};n._tasks.push(a)}u(n.process)},delete n.unshift,n}var Be=g((function(e,t){if(t=b(t),!Array.isArray(e))return t(new TypeError("First argument to race must be an array of functions"));if(!e.length)return t();for(var n=0,r=e.length;n<r;n++)p(e[n])(t)}),2);function He(e,t,n,r){var i=[...e].reverse();return q(i,t,n,r)}function Ue(e){var t=p(e);return i((function(e,n){return e.push(((e,...t)=>{let r={};if(e&&(r.error=e),t.length>0){var i=t;t.length<=1&&([i]=t),r.value=i}n(null,r)})),t.apply(this,e)}))}function Ve(e){var t;return Array.isArray(e)?t=e.map(Ue):(t={},Object.keys(e).forEach((n=>{t[n]=Ue.call(this,e[n])}))),t}function Ge(e,t,n,r){const i=p(n);return we(e,t,((e,t)=>{i(e,((e,n)=>{t(e,!n)}))}),r)}var $e=g((function(e,t,n){return Ge(k,e,t,n)}),3),qe=g((function(e,t,n,r){return Ge(C(t),e,n,r)}),4),Ye=g((function(e,t,n){return Ge(R,e,t,n)}),3);function Ke(e){return function(){return e}}function Ze(e,t,n){var r={times:5,intervalFunc:Ke(0)};if(arguments.length<3&&"function"==typeof e?(n=t||N(),t=e):(Je(r,e),n=n||N()),"function"!=typeof t)throw new Error("Invalid arguments for async.retry");var i=p(t),o=1;function a(){i(((e,...t)=>{!1!==e&&(e&&o++<r.times&&("function"!=typeof r.errorFilter||r.errorFilter(e))?setTimeout(a,r.intervalFunc(o-1)):n(e,...t))}))}return a(),n[M]}function Je(e,t){if("object"==typeof t)e.times=+t.times||5,e.intervalFunc="function"==typeof t.interval?t.interval:Ke(+t.interval||0),e.errorFilter=t.errorFilter;else{if("number"!=typeof t&&"string"!=typeof t)throw new Error("Invalid arguments for async.retry");e.times=+t||5}}function Qe(e,t){t||(t=e,e=null);let n=e&&e.arity||t.length;h(t)&&(n+=1);var r=p(t);return i(((t,i)=>{function o(e){r(...t,e)}return(t.length<n-1||null==i)&&(t.push(i),i=N()),e?Ze(e,o,i):Ze(o,i),i[M]}))}function Xe(e,t){return Me(R,e,t)}var et=g((function(e,t,n){return te(Boolean,(e=>e))(k,e,t,n)}),3),tt=g((function(e,t,n,r){return te(Boolean,(e=>e))(C(t),e,n,r)}),4),nt=g((function(e,t,n){return te(Boolean,(e=>e))(R,e,t,n)}),3),rt=g((function(e,t,n){var r=p(t);return O(e,((e,t)=>{r(e,((n,r)=>{if(n)return t(n);t(n,{value:e,criteria:r})}))}),((e,t)=>{if(e)return n(e);n(null,t.sort(i).map((e=>e.value)))}));function i(e,t){var n=e.criteria,r=t.criteria;return n<r?-1:n>r?1:0}}),3);function it(e,t,n){var r=p(e);return i(((i,o)=>{var a,s=!1;i.push(((...e)=>{s||(o(...e),clearTimeout(a))})),a=setTimeout((function(){var t=e.name||"anonymous",r=new Error('Callback function "'+t+'" timed out.');r.code="ETIMEDOUT",n&&(r.info=n),s=!0,o(r)}),t),r(...i)}))}function ot(e,t,n,r){var i=p(n);return Z(function(e){for(var t=Array(e);e--;)t[e]=e;return t}(e),t,i,r)}function at(e,t,n){return ot(e,1/0,t,n)}function st(e,t,n){return ot(e,1,t,n)}function lt(e,t,n,r){arguments.length<=3&&"function"==typeof t&&(r=n,n=t,t=Array.isArray(e)?[]:{}),r=b(r||N());var i=p(n);return k(e,((e,n,r)=>{i(t,e,n,r)}),(e=>r(e,t))),r[M]}var ut=g((function(e,t){var n,r=null;return fe(e,((e,t)=>{p(e)(((e,...i)=>{if(!1===e)return t(e);i.length<2?[n]=i:n=i,r=e,t(e?null:{})}))}),(()=>t(r,n)))}));function ct(e){return(...t)=>(e.unmemoized||e)(...t)}var dt=g((function(e,t,n){n=_(n);var r=p(t),i=p(e),o=[];function a(e,...t){if(e)return n(e);o=t,!1!==e&&i(s)}function s(e,t){return e?n(e):!1!==e?t?void r(a):n(null,...o):void 0}return i(s)}),3);function ft(e,t,n){const r=p(e);return dt((e=>r(((t,n)=>e(t,!n)))),t,n)}var ht=g((function(e,t){if(t=b(t),!Array.isArray(e))return t(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return t();var n=0;function r(t){p(e[n++])(...t,_(i))}function i(i,...o){if(!1!==i)return i||n===e.length?t(i,...o):void r(o)}r([])}));const pt={apply:r,applyEach:L,applyEachSeries:A,asyncify:c,auto:P,autoInject:B,cargo:G,cargoQueue:$,compose:K,concat:Q,concatLimit:J,concatSeries:X,constant:ee,detect:ne,detectLimit:re,detectSeries:ie,dir:ae,doUntil:le,doWhilst:se,each:ce,eachLimit:de,eachOf:k,eachOfLimit:x,eachOfSeries:R,eachSeries:fe,ensureAsync:he,every:pe,everyLimit:ge,everySeries:me,filter:be,filterLimit:_e,filterSeries:Se,forever:Ce,groupBy:Ee,groupByLimit:xe,groupBySeries:Te,log:ke,map:O,mapLimit:Z,mapSeries:I,mapValues:Le,mapValuesLimit:Oe,mapValuesSeries:Re,memoize:Ie,nextTick:Ae,parallel:Ne,parallelLimit:Pe,priorityQueue:je,queue:De,race:Be,reduce:q,reduceRight:He,reflect:Ue,reflectAll:Ve,reject:$e,rejectLimit:qe,rejectSeries:Ye,retry:Ze,retryable:Qe,seq:Y,series:Xe,setImmediate:u,some:et,someLimit:tt,someSeries:nt,sortBy:rt,timeout:it,times:at,timesLimit:ot,timesSeries:st,transform:lt,tryEach:ut,unmemoize:ct,until:ft,waterfall:ht,whilst:dt,all:pe,allLimit:ge,allSeries:me,any:et,anyLimit:tt,anySeries:nt,find:ne,findLimit:re,findSeries:ie,flatMap:Q,flatMapLimit:J,flatMapSeries:X,forEach:ce,forEachSeries:fe,forEachLimit:de,forEachOf:k,forEachOfSeries:R,forEachOfLimit:x,inject:q,foldl:q,foldr:He,select:be,selectLimit:_e,selectSeries:Se,wrapSync:c,during:dt,doDuring:se}},33998:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigUtilInstance=void 0;var r=a(n(72551)),i=n(51742),o=a(n(53059));function a(e){return e&&e.__esModule?e:{default:e}}const s=new function(){const e=this;this.resolveConfigVariables=function(e,t){let n=0,i=0,o=!0;function a(e){const t=e.split(/[/\\:?=&\s]/);for(let n=0;n<t.length;n++)if("$"===t[n][0]){const i=t[n].substring(1);let a=s(i);if(void 0!==a){const s=e.replace(t[n],a);r.default.system.verbose("forceObjectsToLogger","ConfigUtil.resolveConfigVariables:resolveString configString",t[n],i,a,"old value=",e,"value=",s),o=!0,e=s}}return e}function s(t){let n=e[t];return void 0===n&&(e.custom?(n=e.custom[t],void 0===n&&r.default.system.warn("ConfigUtil.resolveString",`Missing [${t}] variable from finsemble.custom configuration object`)):r.default.system.error("ConfigUtil.resolveString",`Missing "custom" node from finsemble configuration - unable to get variable resoution for variable: ${t}`)),n}function l(e,t,n){r.default.system.verbose("forceObjectsToLogger","resolveArray","pass",t,"recursionLevel",n,"configArray:",e);for(let r=0;r<e.length;r++){const i=e[r];"string"==typeof i&&i.indexOf("$")>-1?e[r]=a(i):i instanceof Array?l(i,t,n+1):"object"==typeof i&&u(i,t,n+1)}}function u(e,t,n){e=e||{},r.default.system.verbose("forceObjectsToLogger","ConfigUtil.resolveConfigVariables:resolveObject","pass",t,"recursionLevel",n,"configObject:",e),Object.keys(e).forEach((r=>{const i=e[r];"string"==typeof i&&i.indexOf("$")>-1?e[r]=a(i):i instanceof Array?l(i,t,n+1):"object"==typeof i&&u(i,t,n+1)}))}for(;o&&i++<100;)o=!1,u(t,++n,1);i>=100&&r.default.system.error("forceObjectsToLogger","resolveConfigVariables exceeded maximum passes so continuing -- probably a recursive macro definitions. Look in this config for unresolved macro variables",e)},this.getExpandedRawManifest=function(t,n){function o(t,a,s){r.default.system.debug("forceObjectsToLogger","ConfigUtil.getExpandedRawManifest:getRawManifest",a,s),a.getManifest((n=>{r.default.system.debug("forceObjectsToLogger","ConfigUtil.getExpandedRawManifest:getExpandedRawManifest: manifest retrieved. Pre-variable resolution",n),e.resolveConfigVariables(n.finsemble,n.finsemble),r.default.system.debug("forceObjectsToLogger","ConfigUtil.getExpandedRawManifest:getExpandedRawManifest:Complete. post-variable resolution",n),t(n)}),(e=>{e&&(r.default.system.error("ConfigUtil.getExpandedRawManifest:application.getManifest:err",e),n&&n()),a.getParentUuid((e=>{const n=i.System.Application.wrap(e);r.default.system.debug("forceObjectsToLogger","uuid",e,"parentApplication",n),s<10?o(t,n,++s):t("could not find manifest in parent applications")}))}))}r.default.system.debug("ConfigUtil.getExpandedRawManifest starting"),i.System.ready((()=>{const e=i.System.Application.getCurrent();o(t,e,1)}))},this.readConfigFile=function(e,t){r.default.system.debug(`fetching ${e}`),fetch(e,{credentials:"include",cache:"no-cache"}).then((e=>e.json())).catch((n=>{t(`Failure importing ${e}: ${n}`,null)})).then((e=>{t(null,e)}))},this.getInitialManifest=function(t){i.System.ready((()=>{i.System.Application.getCurrent().getManifest((n=>{n.finsemble=n.finsemble||{},e.resolveConfigVariables(n.finsemble,n.finsemble),n.finsemble.applicationRoot||r.default.system.error("FATAL ERROR: applicationRoot was not defined in manifest file.");const i=`${n.finsemble.moduleRoot}/configs/core/config.json`;e.readConfigFile(i,((o,a)=>{o?r.default.system.error(`ConfigUtil.getInitialManifest:getCoreConfig:failed importing into finsemble config. $moduleRoot=${n.finsemble.moduleRoot}; Full Path=${i}`,o):(Object.keys(a).forEach((e=>{if("importConfig"===e){n.finsemble.importConfig=n.finsemble.importConfig||[];for(let e=0;e<a.importConfig.length;e++)n.finsemble.importConfig.unshift(a.importConfig[e])}else if("importThirdPartyConfig"===e){n.finsemble.importThirdPartyConfig=n.finsemble.importThirdPartyConfig||[];for(let e=0;e<a.importThirdPartyConfig.length;e++)n.finsemble.importThirdPartyConfig.unshift(a.importThirdPartyConfig[e])}else n.finsemble[e]=a[e]})),e.resolveConfigVariables(n.finsemble,n.finsemble),r.default.system.debug("forceObjectsToLogger","ConfigUtil.getInitialManifest:getCoreConfig:Initial Manifest after variables Resolved",n)),t(n)}))}))}))},this.promptAndSaveJSONToLocalFile=function(e,t){r.default.system.debug("saveJSONToLocalFile",e,t);const n=JSON.stringify(t,null,"\t"),i=`data:application/json;charset=utf-8,${encodeURIComponent(n)}`,o=`${e}.json`,a=document.createElement("a");a.setAttribute("href",i),a.setAttribute("download",o),a.click()},this.configFormatForExport=function(e,t){r.default.system.debug("configFormatForExport starting",e,t);let n=o.default.cloneDeep(t);if("raw"===e);else if("all"===e)delete n.importConfig,delete n.comment;else if("application"===e)delete n.importConfig,delete n.comment,delete n.system,delete n.services;else if("workspace"===e)n={workspace:n};else if("workspaceTemplate"===e){const e={};e[n.name]=n,n={workspaceTemplates:e}}else"services"===e?n=n.services:"components"===e&&(n=n.components);return n},this.getDefault=function(e,t,n){let r=n;if(e){try{const n=t.split(".");let i=e;for(let e=1;e<n.length;e++)i=i[n[e]];r=i}catch(e){r=n}void 0===r&&(r=n)}return r},this.getFile=async function(e,t=Function.prototype){r.default.system.debug(`fetching import ${e}`);let n=null;return await fetch(e,{credentials:"include",cache:"no-cache"}).then((e=>e.json())).catch((n=>{t(`failure importing ${e}: ${n}`,null)})).then((e=>{t(null,e),n=e})),n}};t.ConfigUtilInstance=s},93802:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(5939),i=l(n(72551)),o=l(n(88021)),a=l(n(71879)),s=n(24232);function l(e){return e&&e.__esModule?e:{default:e}}let u;class c extends r.EventEmitter{constructor(e,t,n){if(super(),!n||!n.System)throw new Error("Monitors class requires dependency injection. Ensure that System is being passed in.");({System:u}=n),this.cachedMonitorInfo=null,this.limitedMonitorRefreshQueue=new o.default({concurrency:1}),this.bindAllFunctions(),this.limitedMonitorRefreshQueue.add((()=>this.refreshMonitors(e))),u.addEventListener("monitor-info-changed",(()=>{this.limitedMonitorRefreshQueue.add((()=>this.refreshMonitors(t)))})),u.addEventListener("session-changed",(e=>{e&&("object"!=typeof e||!e.hasOwnProperty("reason")||"unlock"!==e.reason&&"remote-connect"!==e.reason&&"unknown"!==e.reason)||this.limitedMonitorRefreshQueue.add((()=>this.refreshMonitors(t)))}))}bindAllFunctions(){let e=this;for(let t of Object.getOwnPropertyNames(Object.getPrototypeOf(e))){let n=e[t];n instanceof Function&&n!==c&&(e[t]=e[t].bind(e))}}asyncIt(e,t){return t(e),e}rationalizeMonitor(e){e.monitorRect.width=e.monitorRect.right-e.monitorRect.left,e.monitorRect.height=e.monitorRect.bottom-e.monitorRect.top,e.availableRect.width=e.availableRect.right-e.availableRect.left,e.availableRect.height=e.availableRect.bottom-e.availableRect.top}calculateMonitorScale(e,t){return(t.right-t.left)/(e.right-e.left)}monitorInfoIsChanged(e,t){if(!e||!t)return!0;if(e.nonPrimaryMonitors.length!==t.nonPrimaryMonitors.length)return!0;if(!(0,s.checkIfBoundsAreEqual)(e.primaryMonitor.availableRect,t.primaryMonitor.availableRect))return!0;if(!(0,s.checkIfBoundsAreEqual)(e.primaryMonitor.monitorRect,t.primaryMonitor.monitorRect))return!0;e.nonPrimaryMonitors.sort(((e,t)=>e.deviceName>t.deviceName?1:e.deviceName<t.deviceName?-1:0)),t.nonPrimaryMonitors.sort(((e,t)=>e.deviceName>t.deviceName?1:e.deviceName<t.deviceName?-1:0));let n=!1;return e.nonPrimaryMonitors.forEach(((e,r)=>{const i=t.nonPrimaryMonitors[r];(0,s.checkIfBoundsAreEqual)(e.availableRect,i.availableRect)&&(0,s.checkIfBoundsAreEqual)(e.monitorRect,i.monitorRect)||(n=!0)})),n}async refreshMonitors(e=Function.prototype){this.limitedMonitorRefreshQueue.clear();const t=await u.getMonitorInfo();if(!this.monitorInfoIsChanged(this.cachedMonitorInfo,t))return i.default.system.info("Skipped refreshMonitors because monitors do not change."),e(this.allMonitors);this.allMonitors=[];let{primaryMonitor:n}=t;if(Object.entries(n).length){n.whichMonitor="primary",n.position=0,this.allMonitors.push(Object.assign({},n));for(let e=0;e<t.nonPrimaryMonitors.length;e++){let n=t.nonPrimaryMonitors[e];n.whichMonitor=e,n.position=e+1,this.allMonitors.push(n)}for(let e=0;e<this.allMonitors.length;e++){let t=this.allMonitors[e];this.rationalizeMonitor(t)}this.cachedMonitorInfo=(0,a.default)(t),e(this.allMonitors),this.ready=!0,1===this.limitedMonitorRefreshQueue.pending&&this.emit("monitors-changed",{monitors:this.allMonitors})}else i.default.system.info("There is no primary monitor in 'monitorInfo' - the system is still in the process of updating the monitor information. Returning from monitorsAndScaling -> refreshMonitors")}getAllMonitors(e=Function.prototype){return this.ready?this.asyncIt(JSON.parse(JSON.stringify(this.allMonitors)),e):e?void this.refreshMonitors(e):"not ready"}getMonitorFromScaledXY(e,t,n=Function.prototype){return new Promise((r=>{if(!this.ready)return this.refreshMonitors((()=>{this.getMonitorFromScaledXY(e,t,n)})),"not ready";let i=null;for(var o=this.allMonitors,a=0;a<o.length;a++){var s=o[a],{monitorRect:l}=s;if(e>=l.left&&e<l.right&&t>=l.top&&t<l.bottom){i=s;break}}r(i),n(i)}))}getMonitorFromUnscaledXY(e,t,n=Function.prototype){if(!this.ready)return this.refreshMonitors((()=>{this.getMonitorFromUnscaledXY(e,t,n)})),"not ready";for(var r=this.allMonitors,i=0;i<r.length;i++){var o=r[i],a=o.monitor.scaledRect;if(e>=a.left&&e<a.right&&t>=a.top&&t<a.bottom)return this.asyncIt(o,n)}return this.asyncIt(null,n)}async translatePointFromScaled(e,t=Function.prototype){if(!this.ready)return this.refreshMonitors((()=>{this.translatePointFromScaled(e,t)})),"not ready";var n;e.point?({point:n}=e):n=e;var{monitor:r}=e;r||(r=(await this.getMonitorFromScaledXY(n.x,n.y)).data);let i=null;if(r){var o=n.x-r.monitorRect.left,a=n.y-r.monitorRect.top,s=o*r.deviceScaleFactor,l=a*r.deviceScaleFactor;i={x:s+r.monitor.scaledRect.left,y:l+r.monitor.scaledRect.top}}return t(i),Promise.resolve(i)}translatePointToScaled(e,t=Function.prototype){if(!this.ready)return this.refreshMonitors((()=>{this.translatePointToScaled(e,t)})),"not ready";var n;e.point?({point:n}=e):n=e;var r=e.monitor||this.getMonitorFromUnscaledXY(n.x,n.y);if(!r)return this.asyncIt(null,t);var i=n.x-r.monitor.scaledRect.left,o=n.y-r.monitor.scaledRect.top,a=i/r.deviceScaleFactor,s=o/r.deviceScaleFactor,l={x:a+r.monitorRect.left,y:s+r.monitorRect.top};return this.asyncIt(l,t)}async translateRectToScaled(e,t=Function.prototype){let n;if(!this.ready)return this.refreshMonitors((()=>{this.translateRectToScaled(e,t)})),"not ready";var r=this.translatePointToScaled({x:e.left,y:e.top}),i=this.translatePointToScaled({x:e.right,y:e.bottom});return!r&&i&&(n=await this.getMonitorFromScaledXY(i),r=this.translatePointToScaled({monitor:n,point:{x:e.left,y:e.top}})),!i&&r&&(n=await this.getMonitorFromScaledXY(i),i=this.translatePointToScaled({monitor:n,point:{x:e.right,y:e.bottom}})),this.asyncIt({top:r?r.y:null,left:r?r.x:null,bottom:i?i.y:null,right:i?i.x:null,height:r&&i?i.y-r.y:null,width:r&&i?i.x-r.x:null},t)}translateRectFromScaled(e,t=Function.prototype){if(!this.ready)return this.refreshMonitors((()=>{this.translateRectFromScaled(e,t)})),"not ready";var n=this.translatePointFromScaled({x:e.left,y:e.top}),r=this.translatePointFromScaled({x:e.right,y:e.bottom});return!n&&r&&(n=this.translatePointFromScaled({monitor:this.getMonitorFromUnscaledXY(r),point:{x:e.left,y:e.top}})),!r&&n&&(r=this.translatePointFromScaled({monitor:this.getMonitorFromUnscaledXY(n),point:{x:e.right,y:e.bottom}})),this.asyncIt({top:n?n.y:null,left:n?n.x:null,bottom:r?r.y:null,right:r?r.x:null,height:n&&r?r.y-n.y:null,width:n&&r?r.x-n.x:null},t)}}var d=c;t.default=d},21014:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=new function(){let e=3;this.diagLevel=function(){return e},this.setDiagLevel=function(t){e=t},this.validationEnabled=function(){return e>=4}};t.default=n},73699:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(72551)),i=n(33998),o=n(51742),a=s(n(5020));function s(e){return e&&e.__esModule?e:{default:e}}let l=null;var u=new function(){const e={},t={};let s=null;this.getDefaultTemplateURL=function(e){s?setTimeout((()=>{e(s)}),0):(l||(l=n(70010).default),l.getValue({field:"finsemble"},((t,n)=>{s=i.ConfigUtilInstance.getDefault(n,"finsemble.notificationURL",`${n.moduleRoot}/components/system/notification/notification.html`),e(s)})))},this.alert=function(e,t,n,r,i){const o=this;i&&i.url?this.alertInternal(e,t,n,r,i,i.url):this.getDefaultTemplateURL((a=>{o.alertInternal(e,t,n,r,i,a)}))},this.alertInternal=function(n,i,s,l,u,c){let d=!1;const f=`UserNotification.alert.${s}`,h=(u=u||{}).duration||864e5;switch(i){case"ONCE-SINCE-STARTUP":f in e?d=!1:(d=!0,e[f]=!0);break;case"MAX-COUNT":{let e=0;const n=u.maxCount||1;f in t&&(e=t[f]),t[f]=++e,e<=n&&(d=!0);break}default:d=!0}if(r.default.log("UserNotification.alert",n,d,i,s,l,u),d){const e={url:c,message:l,timeout:h};a.default.systemLog({notification:!0},`Notification: ${l}`),new o.System.Notification(e)}}};t.default=u},13712:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(21014))&&r.__esModule?r:{default:r},o=new function(){function e(e,t,n){const r=function(){try{throw Error("")}catch(e){return e}}(),i=r.stack.split("\n")[5],o=i.indexOf("at "),a=i.slice(o+2,i.length),s=r.stack.split("\n")[6],l=s.indexOf("at "),u=s.slice(l+2,s.length);console.warn(`parameter validation failed: parameter ${e} is of type '${typeof t}' but should be of type '${n}' in${a} called by${u}`)}this.args=function(){let t=!0;if(i.default.validationEnabled()){const n=arguments.length;if((n+1)%2!=0)for(let r=0;r<n;r+=2){let n=!1;const i=arguments[r];let o=arguments[r+1];if("="===o.slice(-1)&&(o=o.slice(0,-1),n=!0),typeof i!==o&&!(n&&void 0===i||void 0!==i&&"any"===o)){e(r/2+1,i,o),t=!1;break}}else console.warn(`validate.args requires even number of parameters: ${JSON.stringify(arguments)}`)}return t},this.args2=function(){let t=!0;if(i.default.validationEnabled()){const n=arguments.length;if((n+1)%3!=0)for(let r=0;r<n;r+=3){let n=!1;const i=arguments[r],o=arguments[r+1];let a=arguments[r+2];if("="===a.slice(-1)&&(a=a.slice(0,-1),n=!0),typeof o!==a&&!(n&&void 0===o||void 0!==o&&"any"===a)){e(i,o,a),t=!1;break}}else console.warn(`validate.args requires even number of parameters: ${JSON.stringify(arguments)}`)}return t}};t.default=o},76078:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=class{constructor(e){const t=e||{};let n;t.highlightFlag=[],t.logArgs=[],t.parsedLogArgs=[],t.allLogArgs="",t.previousRowTimeDelta=0;try{n=JSON.parse(e.logData)}catch(t){n={Note:"*** LoggingService: error parsing data (see local console warning for data) ***"},console.warn(n,e.logData,t)}for(const e in n)if(n.hasOwnProperty(e)){t.parsedLogArgs.push(n[e]);const r=JSON.stringify(n[e]);t.logArgs.push(r)}return t.allLogArgs=t.logArgs.join(" ").replace(""," ").replace('" "'," "),delete t.logData,delete t.logArgs,t}}},44453:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(60077))&&r.__esModule?r:{default:r};t.default=class{constructor(){this.name="loggerUI";try{n.g.adapterReceiver?n.g.adapterReceiver.loaded(this.name,this):console.error("Global Adapter Reciever not found on the global object. Fatal error.")}catch(e){console.error("BaseStorage constructor",e)}}receiveLoggerServiceState(e){i.default.setLoggerServiceState(e)}onNewMessage(e){i.default.onNewMessage(e)}onClientRegistered(e){return i.default.onClientRegistered(e)}onClientUnregistered(e){i.default.onClientUnregistered(e)}}},70594:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={BASE_FONT_FAMILY:"Consolas, Lucida Console, Courier New, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:"14px",BASE_BACKGROUND_COLOR:"transparent",BASE_COLOR:"black",OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_KEYWORD_COLOR:"rgb(170, 13, 145)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,TREENODE_FONT_FAMILY:"Consolas, Lucida Console, Courier New, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:"14px",TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"}},90611:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(89526)),i=u(n(2652)),o=u(n(71917)),a=u(n(71854)),s=u(n(29637)),l=u(n(43594));function u(e){return e&&e.__esModule?e:{default:e}}function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function d(){return(d=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}).apply(this,arguments)}const f=({onMatchFound:e,searchBoxText:t,filterStrings:n,depth:i,name:o,data:l,isNonenumerable:u})=>0===i?r.default.createElement(a.default,{onMatchFound:e,searchBoxText:t,filterStrings:n,name:o,data:l}):r.default.createElement(s.default,{onMatchFound:e,searchBoxText:t,filterStrings:n,name:o,data:l,isNonenumerable:u});class h extends r.Component{static defaultProps={showNonenumerable:!1,theme:"chromeLight"};static propTypes={expandLevel:i.default.number,expandPaths:i.default.oneOfType([i.default.string,i.default.array]),name:i.default.string,data:i.default.any,theme:i.default.oneOfType([i.default.string,i.default.object]),showNonenumerable:i.default.bool,sortObjectKeys:i.default.oneOfType([i.default.bool,i.default.func]),nodeRenderer:i.default.func};constructor(e){super(),this.state={expandLevel:e.expandLevel,allExpanded:!1}}render(){const{showNonenumerable:e,sortObjectKeys:t,nodeRenderer:n,...i}=this.props,{expandLevel:a}=this.state,s=((e,t)=>function*(n){if("object"==typeof n&&null!==n||"function"==typeof n)if(!Array.isArray(n)&&n[Symbol.iterator]){let e=0;for(const t of n){if(Array.isArray(t)&&2===t.length){const[e,n]=t;yield{name:e,data:n}}else yield{name:e.toString(),data:t};e++}}else{const r=Object.getOwnPropertyNames(n);!0===t?r.sort():"function"==typeof t&&r.sort(t);for(const t of r)if(n.propertyIsEnumerable(t)){const e=n[t];yield{name:t||'""',data:e}}else if(e){let e;try{e=n[t]}catch(e){}void 0!==e&&(yield{name:t,data:e,isNonenumerable:!0})}e&&n!==Object.prototype&&(yield{name:"__proto__",data:Object.getPrototypeOf(n),isNonenumerable:!0})}})(e,t),u=n||f;return r.default.createElement(l.default,{theme:this.props.theme},r.default.createElement(o.default,d({searchBoxText:this.props.searchBoxText,filterStrings:this.props.filterStrings,nodeRenderer:u,dataIterator:s},i,{expandLevel:a})))}}var p=h;t.default=p},29637:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(89526)),i=s(n(2652)),o=s(n(88043)),a=s(n(33920));function s(e){return e&&e.__esModule?e:{default:e}}const l=({onMatchFound:e,searchBoxText:t,filterStrings:n,name:i,data:s,isNonenumerable:l})=>{const u=s;return r.default.createElement("span",null,r.default.createElement(o.default,{onMatchFound:e,searchBoxText:t,filterStrings:n,name:i,dimmed:l}),r.default.createElement("span",null,": "),r.default.createElement(a.default,{onMatchFound:e,searchBoxText:t,filterStrings:n,object:u}))};l.propTypes={isNonenumerable:i.default.bool},l.defaultProps={isNonenumerable:!1};var u=l;t.default=u},88031:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(89526)),i=s(n(2652)),o=s(n(33920)),a=s(n(88043));function s(e){return e&&e.__esModule?e:{default:e}}const l={preview:{fontStyle:"italic"}};function u(e,t){return 0===e.length?[]:e.slice(1).reduce(((e,n)=>e.concat([t,n])),[e[0]])}const c=({onMatchFound:e,filterStrings:t,searchBoxText:n,data:i,maxProperties:s})=>{const c=i;if("object"!=typeof c||null===c||c instanceof Date||c instanceof RegExp)return r.default.createElement(o.default,{object:c});if(Array.isArray(c))return r.default.createElement("span",{style:l.preview},"[",u(c.map(((e,t)=>r.default.createElement(o.default,{key:t,object:e}))),", "),"]");const d=[];for(const i in c){const l=c[i];if(c.hasOwnProperty(i)){let u;if(d.length===s-1&&Object.keys(c).length>s&&(u=r.default.createElement("span",{key:"ellipsis"},"…")),d.push(r.default.createElement("span",{key:i},r.default.createElement(a.default,{onMatchFound:e,searchBoxText:n,filterStrings:t,name:i||'""'}),": ",r.default.createElement(o.default,{searchBoxText:n,filterStrings:t,onMatchFound:e,object:l}),u)),u)break}}return r.default.createElement("span",{style:l.preview},`${c.constructor.name} {`,u(d,", "),"}")};c.propTypes={maxProperties:i.default.number},c.defaultProps={maxProperties:5};var d=c;t.default=d},71854:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(89526)),i=a(n(88043)),o=a(n(88031));function a(e){return e&&e.__esModule?e:{default:e}}t.default=({onMatchFound:e,searchBoxText:t,filterStrings:n,name:a,data:s})=>"string"==typeof a?r.default.createElement("span",null,r.default.createElement(i.default,{onMatchFound:e,searchBoxText:t,filterStrings:n,name:a}),r.default.createElement("span",null,": "),r.default.createElement(o.default,{onMatchFound:e,searchBoxText:t,filterStrings:n,data:s})):r.default.createElement(o.default,{onMatchFound:e,searchBoxText:t,filterStrings:n,data:s})},88043:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(2652)),i=s(n(24268)),o=s(n(89526)),a=s(n(5445));function s(e){return e&&e.__esModule?e:{default:e}}const l=({onMatchFound:e,searchBoxText:t,filterStrings:n,name:r,dimmed:s,styles:l},{theme:u})=>{const c=(0,i.default)("ObjectName",u),d={...c.base,...s?c.dimmed:{},...l};return o.default.createElement("span",{style:d},o.default.createElement(a.default,{onMatchFound:e,searchBoxText:t,filterStrings:n,str:r}))};l.propTypes={name:r.default.string,dimmed:r.default.bool},l.defaultProps={dimmed:!1},l.contextTypes={theme:r.default.oneOfType([r.default.string,r.default.object])};var u=l;t.default=u},33920:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(2652)),i=s(n(24268)),o=s(n(89526)),a=s(n(5445));function s(e){return e&&e.__esModule?e:{default:e}}const l=({onMatchFound:e,searchBoxText:t,filterStrings:n,object:r,styles:s},{theme:l})=>{const u=(0,i.default)("ObjectValue",l),c=e=>({...u[e],...s});switch(typeof r){case"number":return o.default.createElement("span",{style:c("objectValueNumber")},o.default.createElement(a.default,{onMatchFound:e,searchBoxText:t,filterStrings:n,str:String(r)}));case"string":return o.default.createElement("span",{style:c("objectValueString")},o.default.createElement(a.default,{onMatchFound:e,searchBoxText:t,filterStrings:n,str:r}));case"boolean":return o.default.createElement("span",{style:c("objectValueBoolean")},o.default.createElement(a.default,{onMatchFound:e,searchBoxText:t,filterStrings:n,str:String(r)}));case"undefined":return o.default.createElement("span",{style:c("objectValueUndefined")},"undefined");case"object":return null===r?o.default.createElement("span",{style:c("objectValueNull")},"null"):r instanceof Date?o.default.createElement("span",null,o.default.createElement(a.default,{onMatchFound:e,searchBoxText:t,filterStrings:n,str:r.toString()})):r instanceof RegExp?o.default.createElement("span",{style:c("objectValueRegExp")},o.default.createElement(a.default,{onMatchFound:e,searchBoxText:t,filterStrings:n,str:r.toString()})):Array.isArray(r)?o.default.createElement("span",null,`Array[${r.length}]`):r.constructor?o.default.createElement("span",null,o.default.createElement(a.default,{onMatchFound:e,searchBoxText:t,filterStrings:n,str:r.constructor.name})):o.default.createElement("span",null,"Object");case"function":return o.default.createElement("span",null,o.default.createElement("span",{style:c("objectValueFunctionKeyword")},"function"),o.default.createElement("span",{style:c("objectValueFunctionName")}," ",o.default.createElement(a.default,{onMatchFound:e,searchBoxText:t,filterStrings:n,str:r.name}),"()"));case"symbol":return o.default.createElement("span",{style:c("objectValueSymbol")},o.default.createElement(a.default,{onMatchFound:e,searchBoxText:t,filterStrings:n,str:r.toString()}));default:return o.default.createElement("span",null)}};l.propTypes={object:r.default.any},l.contextTypes={theme:r.default.oneOfType([r.default.string,r.default.object])};var u=l;t.default=u},43594:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(89526),o=(r=n(2652))&&r.__esModule?r:{default:r};class a extends i.Component{getChildContext(){const{theme:e}=this.props;return{theme:e}}render(){return this.props.children}}a.childContextTypes={theme:o.default.oneOfType([o.default.string,o.default.object])};var s=a;t.default=s},8475:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(88555))&&r.__esModule?r:{default:r};t.default=e=>({DOMNodePreview:{htmlOpenTag:{base:{color:e.HTML_TAG_COLOR},tagName:{color:e.HTML_TAGNAME_COLOR,textTransform:e.HTML_TAGNAME_TEXT_TRANSFORM},htmlAttributeName:{color:e.HTML_ATTRIBUTE_NAME_COLOR},htmlAttributeValue:{color:e.HTML_ATTRIBUTE_VALUE_COLOR}},htmlCloseTag:{base:{color:e.HTML_TAG_COLOR},offsetLeft:{marginLeft:-e.TREENODE_PADDING_LEFT},tagName:{color:e.HTML_TAGNAME_COLOR,textTransform:e.HTML_TAGNAME_TEXT_TRANSFORM}},htmlComment:{color:e.HTML_COMMENT_COLOR},htmlDoctype:{color:e.HTML_DOCTYPE_COLOR}},ObjectName:{base:{color:e.OBJECT_NAME_COLOR},dimmed:{opacity:.6}},ObjectValue:{objectValueNull:{color:e.OBJECT_VALUE_NULL_COLOR},objectValueUndefined:{color:e.OBJECT_VALUE_UNDEFINED_COLOR},objectValueRegExp:{color:e.OBJECT_VALUE_REGEXP_COLOR},objectValueString:{color:e.OBJECT_VALUE_STRING_COLOR},objectValueSymbol:{color:e.OBJECT_VALUE_SYMBOL_COLOR},objectValueNumber:{color:e.OBJECT_VALUE_NUMBER_COLOR},objectValueBoolean:{color:e.OBJECT_VALUE_BOOLEAN_COLOR},objectValueFunctionKeyword:{color:e.OBJECT_VALUE_FUNCTION_KEYWORD_COLOR,fontStyle:"italic"},objectValueFunctionName:{fontStyle:"italic"}},TreeNode:{treeNodeBase:{color:e.BASE_COLOR,backgroundColor:e.BASE_BACKGROUND_COLOR,lineHeight:e.TREENODE_LINE_HEIGHT,cursor:"default",boxSizing:"border-box",listStyle:"none",fontFamily:e.TREENODE_FONT_FAMILY,fontSize:e.TREENODE_FONT_SIZE},treeNodePreviewContainer:{},treeNodePlaceholder:{whiteSpace:"pre",fontSize:e.ARROW_FONT_SIZE,marginRight:e.ARROW_MARGIN_RIGHT,...i.default},treeNodeArrow:{base:{color:e.ARROW_COLOR,display:"inline-block",fontSize:e.ARROW_FONT_SIZE,marginRight:e.ARROW_MARGIN_RIGHT,...i.default},expanded:{WebkitTransform:"rotateZ(90deg)",MozTransform:"rotateZ(90deg)",transform:"rotateZ(90deg)"},collapsed:{WebkitTransform:"rotateZ(0deg)",MozTransform:"rotateZ(0deg)",transform:"rotateZ(0deg)"}},treeNodeChildNodesContainer:{margin:0,paddingLeft:e.TREENODE_PADDING_LEFT}},TableInspector:{base:{color:e.BASE_COLOR,position:"relative",border:`1px solid ${e.TABLE_BORDER_COLOR}`,fontFamily:e.BASE_FONT_FAMILY,fontSize:e.BASE_FONT_SIZE,lineHeight:"120%",boxSizing:"border-box",cursor:"default"}},TableInspectorHeaderContainer:{base:{top:0,height:"17px",left:0,right:0,overflowX:"hidden"},table:{tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",height:"100%",width:"100%",margin:0}},TableInspectorDataContainer:{tr:{display:"table-row"},td:{boxSizing:"border-box",border:"none",height:"16px",verticalAlign:"top",padding:"1px 4px",WebkitUserSelect:"text",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px"},div:{position:"static",top:"17px",bottom:0,overflowY:"overlay",transform:"translateZ(0)",left:0,right:0,overflowX:"hidden"},table:{position:"static",left:0,top:0,right:0,bottom:0,borderTop:"0 none transparent",margin:0,backgroundImage:e.TABLE_DATA_BACKGROUND_IMAGE,backgroundSize:e.TABLE_DATA_BACKGROUND_SIZE,tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",width:"100%",fontSize:e.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorTH:{base:{position:"relative",height:"auto",textAlign:"left",backgroundColor:e.TABLE_TH_BACKGROUND_COLOR,borderBottom:`1px solid ${e.TABLE_BORDER_COLOR}`,fontWeight:"normal",verticalAlign:"middle",padding:"0 4px",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px",":hover":{backgroundColor:e.TABLE_TH_HOVER_COLOR}},div:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",fontSize:e.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorLeftBorder:{none:{borderLeft:"none"},solid:{borderLeft:`1px solid ${e.TABLE_BORDER_COLOR}`}},TableInspectorSortIcon:{display:"block",marginRight:3,width:8,height:7,marginTop:-7,color:e.TABLE_SORT_ICON_COLOR,fontSize:12,...i.default}})},24268:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(85595)),o=(r=n(8475))&&r.__esModule?r:{default:r};function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}const s=Object.keys(i).reduce(((e,t)=>(e[t]=(0,o.default)(i[t]),e)),{});t.default=(e,t)=>"string"==typeof t?s[t][e]:"object"==typeof t?(0,o.default)(t)[e]:s.chromeLight[e]},17659:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:"14px",BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_KEYWORD_COLOR:"rgb(242, 85, 217)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:"14px",TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"}},65417:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:"14px",BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_KEYWORD_COLOR:"rgb(170, 13, 145)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:"14px",TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"}},85595:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"chromeDark",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"chromeLight",{enumerable:!0,get:function(){return i.default}});var r=o(n(17659)),i=o(n(65417));function o(e){return e&&e.__esModule?e:{default:e}}},88555:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={WebkitTouchCallout:"none",WebkitUserSelect:"none",KhtmlUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",OUserSelect:"none",userSelect:"none"}},60968:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(89526)),i=a(n(2652)),o=a(n(24268));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}const{Children:l}=r.default,u=({expanded:e,styles:t})=>r.default.createElement("span",{style:{...t.base,...e?t.expanded:t.collapsed}},"▶");class c extends r.default.PureComponent{constructor(){super()}render(){const{expanded:e,onClick:t,children:n,nodeRenderer:i,title:a,shouldShowArrow:s,shouldShowPlaceholder:c}=this.props,{theme:d}=this.context,f=(0,o.default)("TreeNode",d),h=(0,r.createElement)(i,this.props),p=e?n:void 0;return r.default.createElement("li",{"aria-expanded":e,role:"treeitem",style:f.treeNodeBase,title:a},r.default.createElement("div",{style:f.treeNodePreviewContainer,onClick:t,onContextMenu:this.props.onContextMenu},s||l.count(n)>0?r.default.createElement(u,{expanded:e,styles:f.treeNodeArrow}):c&&r.default.createElement("span",{style:f.treeNodePlaceholder}," "),h),r.default.createElement("ol",{role:"group",style:f.treeNodeChildNodesContainer},p))}}c.propTypes={name:i.default.string,data:i.default.any,expanded:i.default.bool,shouldShowArrow:i.default.bool,shouldShowPlaceholder:i.default.bool,nodeRenderer:i.default.func,onClick:i.default.func},c.defaultProps={name:void 0,data:void 0,expanded:!0,nodeRenderer:({name:e})=>r.default.createElement("span",null,e),onClick:()=>{},shouldShowArrow:!1,shouldShowPlaceholder:!0},c.contextTypes={theme:i.default.oneOfType([i.default.string,i.default.object]).isRequired};var d=c;t.default=d},71917:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(89526)),i=s(n(2652)),o=s(n(60968)),a=n(62988);function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=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}).apply(this,arguments)}class u extends r.default.Component{constructor(e,t){super(e),this.state=t.store.storeState,this.state.depth=e.depth}shouldComponentUpdate(e,t){const n=this.props.filterStrings.every((t=>e.filterStrings.includes(t))),r=e.searchBoxText!==this.props.searchBoxText;return n||r||!!t.expandedPaths[e.path]!=!!this.state.expandedPaths[this.props.path]||e.data!==this.props.data||e.name!==this.props.name}handleRightClick(e){this.handleClick(e)}handleClick(e,t=Function.prototype){this.context.store.storeState=((e,t)=>{switch(t.type){case"TOGGLE_EXPAND":{let{path:n}=t;Array.isArray(n)||(n=[n]);const r={...e};return n.forEach((t=>{const{expandedPaths:n}=e,i=!!n[t];r.expandedPaths[t]=!i})),r}default:return e}})(this.context.store.storeState,{type:"TOGGLE_EXPAND",path:e}),this.setState(this.context.store.storeState,t)}renderChildNodes(e,t){const{dataIterator:n}=this.props,{depth:i}=this.props,{onMatchFound:o,nodeRenderer:a,searchBoxText:s,filterStrings:c}=this.props,d=[];for(const{name:f,data:h,...p}of n(e)){const e=f,g=`${t}.${e}`;d.push(r.default.createElement(u,l({name:f,data:h,depth:i+1,path:g,key:e,onMatchFound:o,dataIterator:n,nodeRenderer:a,searchBoxText:s,filterStrings:c},p)))}return d}render(){const{onMatchFound:e,data:t,dataIterator:n,path:i,depth:s}=this.props,u=(0,a.hasChildNodes)(t,n),{expandedPaths:c}=this.state,d=!!c[i],{nodeRenderer:f,searchBoxText:h,filterStrings:p}=this.props;return r.default.createElement(o.default,l({onMatchFound:e,expanded:d,onContextMenu:()=>{this.handleRightClick(i)},onClick:u?()=>{this.handleClick(i)}:()=>{},shouldShowArrow:u,shouldShowPlaceholder:s>0,nodeRenderer:f,searchBoxText:h,filterStrings:p},this.props),d?this.renderChildNodes(t,i):void 0)}}u.propTypes={name:i.default.string,data:i.default.any,dataIterator:i.default.func,depth:i.default.number,expanded:i.default.bool,nodeRenderer:i.default.func},u.contextTypes={store:i.default.any};class c extends r.default.PureComponent{static defaultProps={expandLevel:0,expandPaths:[]};constructor(e){super(e),this.state={expandLevel:0},this.store={storeState:{expandedPaths:(0,a.getExpandedPaths)(e.data,e.dataIterator,e.expandPaths,e.expandLevel)}}}UNSAFE_componentWillReceiveProps(e){this.store={storeState:{expandedPaths:(0,a.getExpandedPaths)(e.data,e.dataIterator,e.expandPaths,e.expandLevel,this.store.storeState.expandedPaths)}}}getChildContext(){return{store:this.store}}static childContextTypes={store:i.default.any};render(){const{name:e,data:t,dataIterator:n}=this.props,{nodeRenderer:i,filterStrings:o,searchBoxText:s}=this.props,l=a.DEFAULT_ROOT_PATH;return r.default.createElement(u,{name:e,data:t,dataIterator:n,depth:0,path:l,nodeRenderer:i,searchBoxText:s,filterStrings:o})}}c.propTypes={name:i.default.string,data:i.default.any,dataIterator:i.default.func,nodeRenderer:i.default.func},c.defaultProps={name:void 0};var d=c;t.default=d},62988:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildNodes=r,t.getExpandedPaths=t.wildcardPathsFromLevel=t.DEFAULT_ROOT_PATH=void 0;const n="$";function r(e,t){return!t(e).next().done}t.DEFAULT_ROOT_PATH=n;const i=e=>Array.from({length:e},((e,t)=>[n].concat(Array.from({length:t},(()=>"*"))).join(".")));t.wildcardPathsFromLevel=i,t.getExpandedPaths=(e,t,o,a,s={})=>{const l=[].concat(i(a)).concat(o).filter((e=>"string"==typeof e)),u=[];return l.forEach((i=>{const o=i.split("."),a=(e,i,s)=>{if(s===o.length)return void u.push(i);const l=o[s];if(0===s)!r(e,t)||l!==n&&"*"!==l||a(e,n,s+1);else if("*"===l)for(const{name:n,data:o}of t(e))r(o,t)&&a(o,`${i}.${n}`,s+1);else{const n=e[l];r(n,t)&&a(n,`${i}.${l}`,s+1)}};a(e,"",0)})),u.reduce(((e,t)=>(e[t]=!0,e)),s)}},60077:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(29581))&&r.__esModule?r:{default:r},o={onNewMessage(e){i.default.onNewMessage(e)},onClientRegistered:e=>i.default.onClientRegistered(e),onClientUnregistered(e){i.default.unRegisterClient(e)},setLoggerServiceState(e){i.default.setLoggerServiceState(e)}};t.default=o},27785:(e,t)=>{"use strict";function n(e=[]){let t=0,n=!0,r=null;return{getActiveIndex:()=>t+1,values:e,length:e.length,setActiveIndex:e=>t=e,next:()=>("prev"===r&&(t+=2),r="next",n&&(n=!1),t===e.length?t=0:-1===t&&(t=e.length-1),{searchResultNumber:t+1,value:e[t++],done:!1}),previous:()=>("next"===r&&(t-=2),r="prev",n&&(n=!1,t=e.length-1),t===e.length&&(t=0),-1===t&&(t=e.length-1),{searchResultNumber:t+1,value:e[t--],done:!1})}}Object.defineProperty(t,"__esModule",{value:!0}),t.SearchResults=n,t.default=void 0,t.default=class{constructor(){return this.searchString="",this.results=[],this}performLogSearch(e,t){this.searchString=t;const r=[];if(""!==t)for(let n=0;n<e.length;n++)e[n].allLogArgs.toLowerCase().includes(t.toLowerCase())&&r.push(n);this.results=new n(r)}performStringSearch(e,t){this.searchString=t;const r=[];if(""!==t)for(let n=0;n<e.length;n++)e[n].toLowerCase().includes(t.toLowerCase())&&r.push(n);this.results=new n(r)}getResults(){return this.results}}},29581:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(5939),i=_(n(76897)),o=_(n(38172)),a=_(n(71879)),s=n(38374),l=n(57664),u=_(n(39319)),c=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=b(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(76420)),d=_(n(76078)),f=_(n(27785)),h=_(n(70010)),p=n(51742),g=_(n(68718)),m=_(n(5020)),v=_(n(73699)),y=_(n(52851)),w=_(n(25908));function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(b=function(e){return e?n:t})(e)}function _(e){return e&&e.__esModule?e:{default:e}}const S=200,C=1e5,x=n(33837);g.default.initialize();const E="finsemble.loggerStore.mainkey";let T=0,k=1/0,O=!1,L=[],R={},I=[],A=[],M=0,N=0;const P={},D={},F={Error:!1,Warn:!1,Info:!1,Log:!1,Debug:!1,Verbose:!1},W={Error:!1,Warn:!1,Info:!1,Log:!1,Debug:!1,Verbose:!1,LocalOnly:!1};class z extends r.EventEmitter{constructor(){if(window.loggerStore)return window.loggerStore;super(),window.loggerStore=this,this.setMaxListeners(100),this.windowVisibility="visible",this.activeView="logger",this.Search=new f.default,this.showOnError=!1,this.showOnStartup=!1,this.activeRowIndex=0,this.rowTimediff=null,this.initialized=!1,this.shouldShowSearchBox=!1,this.RouterClient=u.default,this.defaultClientState=P,y.default.deriveMethods(this),w.default.deriveMethods(this),this.bindCorrectContext(),this.registerGlobalHotkey()}bindCorrectContext(){this.broadCastNewMessageUpdateThrottled=(0,o.default)(this.broadCastNewMessageUpdate.bind(this),1e3),this.setFilter1=(0,i.default)(this.setFilter1,S),this.setFilter2=(0,i.default)(this.setFilter2,S),this.setFilter3=(0,i.default)(this.setFilter3,S),this.setFilter4=(0,i.default)(this.setFilter4,S),this.setLogSearchBoxString=this.setLogSearchBoxString.bind(this),this.setLogSearchBoxString=(0,i.default)(this.setLogSearchBoxString,0),this.setWindowHidden=this.setWindowHidden.bind(this),this.setWindowVisible=this.setWindowVisible.bind(this),this.emitResizeTimeout=this.emitResizeTimeout.bind(this),this.setConfigVisible=this.setConfigVisible.bind(this),this.setLoggerVisible=this.setLoggerVisible.bind(this),this.clearData=this.clearData.bind(this),this.toggleShowOnError=this.toggleShowOnError.bind(this),this.toggleShowOnStartup=this.toggleShowOnStartup.bind(this),this.configureLoggerForDefaults=this.configureLoggerForDefaults.bind(this),this.configureLoggerForErrors=this.configureLoggerForErrors.bind(this),this.configureLoggerForFieldCapture=this.configureLoggerForFieldCapture.bind(this)}initialize(){M=window.innerWidth,N=window.innerHeight,this.addWindowListeners(),this.addHotkeys(),p.System.Window.getCurrent().getOptions((e=>{this.manifest=e.customData.manifest,console.log("Manifest",this.manifest)}))}addWindowListeners(){if(this.initialized)return;const e=p.System.Window.getCurrent(),t=e.nativeWindow||window;e.addEventListener("bounds-change-end",(e=>{this.processSizeChange(e.width,e.height)})),e.addEventListener("maximized",(()=>{this.processSizeChange(t.outerWidth,t.outerHeight)})),e.addEventListener("restored",(()=>{this.processSizeChange(t.outerWidth,t.outerHeight)}))}getRegisteredClient(){return L}getRegisteredClients(){return R}getWindowWidth(){return M}getWindowHeight(){return N}async registerGlobalHotkey(){await m.default.waitForStartup("configService"),h.default.getValue({field:"finsemble.servicesConfig.logger.hotkeyShowCentralLogger"},(async(e,t)=>{t&&(await m.default.waitForStartup("hotkeysService"),g.default.onReady((()=>{g.default.addGlobalHotkey(t,(()=>{window.showConsole()}))})))}))}addHotkeys(){window.addEventListener("keydown",(e=>{if(e.ctrlKey&&e.altKey)switch(e.key){case"c":this.toggleClientListVisible();break;case"d":this.configureLoggerForDefaults();break;case"e":this.configureLoggerForErrors();break;case"s":this.configureLoggerForFieldCapture();break;case"x":this.clearData()}}))}getFileMode(){return O}getFirstMessageTime(){return k}broadCastNewMessageUpdate(){"hidden"!==this.windowVisibility&&this.emit("loggerNewMessages")}getMasterLog(){return I}getFilteredLog(){return A}getLogCounts(){return{master:I.length,display:A.length}}openClient(e,t){const n=p.System.Window.wrap("",e);-1!==e.indexOf("InteropService")?n.show():p.System.showDeveloperTools(null,e,t)}getRowTimeDiff(){return this.rowTimediff}setRowTimeDiff(e){this.rowTimediff=e,this.emit("rowTimeDiffChange")}getClientListVisible(){return this.persistState.get("clientListVisible")}triggerRowheightRecalculation(){this.emit("recalculateHeight")}triggerLogRerender(){this.emit("rerenderList")}toggleClientListVisible(){this.persistState.toggle("clientListVisible"),this.emit("clientListVisibleChange")}emitResizeTimeout(){setTimeout((()=>{this.emit("WindowResize"),this.emit("rerenderList")}),400)}persist(){try{localStorage.setItem(E,JSON.stringify(this.persistState.data))}catch(e){console.error("Storage.saving Error",e,`key=${E}`,"value=",this.persistState.data)}}getLogState(){return this.persistState.get("logState")}getClientState(e){return this.persistState.get(`clientState[${e}]`)}getShowClientState(e){return this.persistState.get(`showClientState[${e}]`)}getLogCategoriesAllowed(){return{perf:this.persistState.get("perfModeState"),dev:this.persistState.get("devModeState"),system:this.persistState.get("systemModeState")}}getAllShowClientState(){return this.persistState.get("showClientState")}getClientMode(){return this.persistState.get("currentCategory")}clearData(){I=[],A=[],this.emit("loggerNewMessages")}setTop(){this.emit("SetTop")}setBottom(){this.emit("SetBottom")}scrollToActiveRow(){this.emit("scrollToActiveRow")}setActiveRowIndex(e){this.activeRowIndex=e,this.emit("activeRowChanged")}setActiveConfigSearchMatch(e){this.activeConfigSearchMatch=e,this.emit("activeConfigSearchMatch")}getActiveConfigSearchMatch(){return this.activeConfigSearchMatch}getActiveRowIndex(){return this.activeRowIndex}getHideInactiveState(){return this.persistState.get("hideInactiveState")}toggleHideInactive(){this.persistState.toggle("hideInactiveState"),this.emit("newHideInactiveState")}getCurrentCategory(){return this.persistState.get("currentCategory")}toggleShowClient(e){this.persistState.toggle(`showClientState[${e}]`),this.filterData(),this.emit("newShowClientState"),this.broadCastNewMessageUpdate()}toggleShowAllClients(){let e=!0;for(const t in this.persistState.data.showClientState)if(this.persistState.data.showClientState.hasOwnProperty(t)&&(e=e&&this.persistState.data.showClientState[t],!e))break;const t=!e;for(const e in this.persistState.data.showClientState)this.persistState.data.showClientState.hasOwnProperty(e)&&this.persistState.set(`showClientState[${e}]`,t);this.filterData(),this.emit("newShowClientState"),this.broadCastNewMessageUpdateThrottled()}getShowSearchBox(){return this.shouldShowSearchBox}showSearchBox(){this.shouldShowSearchBox=!0,this.emit("showSearchBoxChange")}hideSearchBox(){this.shouldShowSearchBox=!1,this.setLogSearchBoxString(""),this.emit("showSearchBoxChange")}getSearchBoxString(){return this.Search.searchString}getSearchMatches(){return this.Search.results}setLogSearchBoxString(e){this.Search.performLogSearch(A,e),this.emit("searchBoxTextChange")}setConfigSearchBoxString(e){this.finsembleConfig?(this.Search.performStringSearch(this.finsembleConfig,e),this.emit("searchBoxTextChange")):this.getFullConfig((()=>{this.Search.performStringSearch(this.finsembleConfig,e),this.emit("searchBoxTextChange")}))}setWindowVisible(){this.windowVisibility="visible",this.broadCastNewMessageUpdate(),this.emit("WindowVisibilityChange")}setWindowHidden(){this.windowVisibility="hidden",this.emit("WindowVisibilityChange")}getWindowVisibility(){return this.windowVisibility}setAllLogStateOn(){this.persistState.set("logState",{Error:!0,Warn:!0,Info:!0,Log:!0,Debug:!0,Verbose:!0}),this.emit("newDisplayState")}setLogState(e){this.persistState.set("logState",Object.assign(this.persistState.data.logState,e)),this.emit("newDisplayState")}configureLoggerForDefaults(){this.persistState.set("initialClientStateDefault.Error",!0),this.persistState.set("initialClientStateDefault.Warn",!0),this.persistState.set("initialClientStateDefault.Log",!0),this.persistState.set("initialClientStateDefault.Info",!1),this.persistState.set("initialClientStateDefault.Debug",!1),this.persistState.set("initialClientStateDefault.Verbose",!1),this.setAllLogStateOn(),this.defaultShowClientAll(),this.filterData(),this.emit("newInitialClientStateDefault")}configureLoggerForErrors(){this.persistState.set("initialClientStateDefault.Error",!0),this.emit("newInitialClientStateDefault"),this.setLogState({Error:!0,Warn:!1,Info:!1,Log:!1,Debug:!1,Verbose:!1}),this.defaultShowClientAll(),this.filterData()}configureLoggerForFieldCapture(){this.persistState.set("initialClientStateDefault.Error",!0),this.persistState.set("initialClientStateDefault.Warn",!0),this.persistState.set("initialClientStateDefault.Log",!0),this.persistState.set("initialClientStateDefault.Info",!0),this.persistState.set("initialClientStateDefault.Debug",!0),this.persistState.set("initialClientStateDefault.Verbose",!1),this.emit("newInitialClientStateDefault"),this.defaultShowClientAll(),this.persist(),this.filterData(),setTimeout((()=>{alert("Logger is now configured for field capture. Please restart your application if needed, recreate problem, export the log, and send it to Finsemble Support with description of the problem.\n\n\t\t\tIMPORTANT: Once your log is exported, revert to the default logger settings; otherwise, you may see degraded performance due to the extra logging.")}),200)}configureLoggerForStartup(){this.persistState.set("initialClientStateDefault.Error",!0),this.persistState.set("initialClientStateDefault.Warn",!0),this.persistState.set("initialClientStateDefault.Log",!0),this.persistState.set("initialClientStateDefault.Info",!0),this.persistState.set("initialClientStateDefault.Debug",!0),this.setFilter1("Service Online"),this.emit("NewHighlightValues1"),this.setFilter2("not online"),this.emit("NewHighlightValues2"),this.setFilter3(""),this.emit("NewHighlightValues3"),this.setFilter4(""),this.emit("NewHighlightValues4"),this.setFilterLogic("OR"),this.emit("newInitialClientStateDefault"),this.defaultShowClientAll()}setFilteredLog(e){A=(0,a.default)(e)}chunk(e,t){const n=[];let r=0;for(;r<e.length;)n.push(e.slice(r,t+r)),r+=t;return n}saveToFile(){const e={};e.registeredClientNames=L,e.registeredClients=R,e.persistState=this.persistState.data;const t=JSON.stringify(e),n=new Blob([t],{type:"application/json"}),r=new x;r.file("log_state.json",n),I.length>5e4&&v.default.alert("dev","ALWAYS","system","Currently exporting a large log, this may take some time.");const i=this.chunk(I,1e3);for(let e=0;e<i.length;e++){const t=i[e];console.log("adding to zip",e,t);const n=JSON.stringify({partial_log:t}),o=new Blob([n],{type:"application/json"});r.file(`log${e}.json`,o)}const o=(new Date).toLocaleString();r.generateAsync({type:"blob"}).then((e=>{(0,s.saveAs)(e,`logs-${o}.zip`)}))}setMasterLog(e){I=e}setRegisteredClientNames(e){L=e}setRegisteredClients(e){R=e}fileMode(){O=!0;const e=document.createElement("div");e.innerHTML='<input type="file">';const t=e.firstChild;t.addEventListener("change",(()=>{const e=t.files[0],n=!!e.name.match(/\.(zip)$/),r=!!e.name.match(/\.(json)$/);if(n||r){for(const e in this.persistState.data.showClientState)if(this.persistState.data.showClientState.hasOwnProperty(e)&&(!this.persistState.data.hideInactiveState||this.persistState.data.showClientState[e])){const t={...D};t.clientChannel=this.persistState.data.clientState[e].clientChannel,u.default.transmit(t.clientChannel,t),console.debug("disabledClientState",t.clientChannel,t)}if(n){console.log("***** ZipMode *****");const t=[];x.loadAsync(e).then((e=>{Object.keys(e.files).length>50&&v.default.alert("dev","ALWAYS","system","Currently importing a large log, this may take some time.");let n=!1;const r=Object.keys(e.files).sort(((e,t)=>{const r=/\/log[0-9]*.json$/;if(r.test(e)){if(r.test(t)){const i=Number(e.substring(e.search(r)+4,e.length-5)),o=Number(t.substring(t.search(r)+4,t.length-5));return Number.isNaN(i)||Number.isNaN(o)?(n=!0,0):i-o}return-1}return 1}));n&&v.default.alert("dev","ALWAYS","system","There was a problem sorting file names, logs may appear out of order"),(0,l.eachSeries)(r,(async n=>{const r=e.files[n],i=await r.async("blob"),o=new FileReader;o.onload=()=>{const e=JSON.parse(o.result);if(e&&"log_state.json"===n)this.persistState.data=e.persistState,e.registeredClientNames&&this.setRegisteredClientNames(e.registeredClientNames),e.registeredClients&&this.setRegisteredClients(e.registeredClients);else if(e&&e.partial_log){const n=e.partial_log;n.sort(((e,t)=>e.logTimestamp-t.logTimestamp)),Array.prototype.push.apply(t,n)}},o.readAsText(i)}),(()=>{I=t,k=t[0].logTimestamp,console.log("ImportZip",t,k),this.filterData(),this.emit("newFirstMessageTime"),this.emit("FileMode"),this.emit("LoggerRegister"),this.emit("newFilterHighlights"),this.emit("newDisplayState"),this.emit("LoggerUnregister"),this.emit("newShowClientState")}))}))}else if(r){const t=new FileReader;t.onload=()=>{console.log("***** FileMode *****");const n=JSON.parse(t.result);k=n.masterLog[0].logTimestamp,this.setMasterLog(n.masterLog),k=I[0].logTimestamp,this.persistState.data=n.persistState,n.registeredClientNames&&this.setRegisteredClientNames(n.registeredClientNames),n.registeredClients&&this.setRegisteredClients(n.registeredClients),console.log("ImportFile",n,e,t,k),this.filterData(),this.emit("newFirstMessageTime"),this.emit("FileMode"),this.emit("LoggerRegister"),this.emit("newFilterHighlights"),this.emit("newDisplayState"),this.emit("LoggerUnregister"),this.emit("newShowClientState")},t.readAsText(e)}}else console.error("File not supported, .zip or .json files only")})),t.click()}getFullConfig(e=Function.prototype){h.default.getValues(null,((t,n)=>{let r=n;r=JSON.stringify(r,null,4),r=r.split(/\n/g),this.finsembleConfig=r,e(r)}))}getActiveView(){return this.activeView}setLoggerVisible(){this.activeView="logger",this.emit("viewChange")}setConfigVisible(){this.activeView="config",this.emit("viewChange")}findIndexByTimestamp(e,t){for(var n=e.length-1;n>0&&!(e[n].logTimestamp<t);n--);return n}toggleShowOnStartup(){this.setShowOnStartup(!this.showOnStartup)}getShowOnStartup(){return this.showOnStartup}setShowOnStartup(e,t=!0){this.showOnStartup=e,this.emit("showOnStartup",this.showOnStartup),t&&h.default.setPreference({field:"finsemble.preferences.loggerService.showOnStartup",value:this.showOnStartup})}toggleShowOnError(){this.setShowOnError(!this.showOnError)}getShowOnError(){return this.showOnError}setShowOnError(e,t=!0){this.showOnError=e,this.emit("showOnError",this.showOnError),t&&h.default.setPreference({field:"finsemble.preferences.loggerService.showOnError",value:this.showOnError})}processSizeChange(e,t){M!==e&&(M=window.innerWidth,this.emit("WindowResize"),this.emit("newShowClientState")),N!==t&&(N=window.innerHeight,this.emit("WindowResize"),this.emit("newShowClientState"))}sortNewLogMessages(e){function t(e,t){let n=0;return e.logTimestamp<t.logTimestamp&&(n=-1),e.logTimestamp>t.logTimestamp&&(n=1),n}let n=this.findIndexByTimestamp(I,e),r=I.splice(n,I.length);r.sort(t),I=I.concat(r),this.shouldFilterData()?(n=this.findIndexByTimestamp(A,e),n!==A.length-1&&(r=A.splice(n,A.length),r.sort(t),A=A.concat(r))):A=(0,a.default)(I)}onNewMessage(e){const t=A.length;if(!O){let r=1/0;const i=e;for(let e=0;e<i.length;e++){var n=new d.default(i[e]);T++<1e4&&n.logTimestamp<k&&(k=n.logTimestamp,this.emit("newFirstMessageTime")),n.logTimestamp<r&&(r=n.logTimestamp),n.timeElapsedFromStartup=Math.round(n.logTimestamp-k),I.push(n),this.shouldFilterData()&&this.filterData(n).length&&A.push(n)}this.showOnError&&"Error"===n.logType&&window.showConsole(),this.sortNewLogMessages(r),I.length>C&&(I=I.slice(I.length-C)),t!==A.length&&this.broadCastNewMessageUpdateThrottled()}}onClientRegistered(e){let{clientName:t,viewId:n,centralLoggerNamePrefix:r}=e,i=n?`${t}: view-${n}`:t;if(!O){if(console.debug("LoggerStore.registerClient",i,e),L.includes(i)||(L.push(i),R[i]={name:t,viewId:n,centralLoggerNamePrefix:r}),i in this.persistState.data.showClientState||this.persistState.set(`showClientState[${i}]`,!0),!(i in this.persistState.data.clientState)){const t=c.clone(P);this.persistState.set(`clientState[${i}]`,t),this.persistState.set(`clientState[${i}].clientChannel`,e.clientChannel),this.persistState.set(`clientState[${i}].windowName`,e.windowName)}const o=this.persistState.data.clientState[i];return this.filterData(),this.emit("LoggerRegister"),this.emit("newShowClientState"),o}console.debug("Registration in FileMode");const o={...D};return o.clientChannel=e.clientChannel,o}unRegisterClient(e){let t,n=!0;"string"==typeof e||e instanceof String?t=e:(t=e.viewId?`${e.clientName}: view-${e.viewId}`:e.clientName,n=e.deleteFromPersistence);for(let e=0;e<L.length;e++)L[e]===t&&(L.splice(e,1),e--,delete R[t]);n&&(delete this.persistState.data.clientState[t],delete this.persistState.data.showClientState[t],this.persist()),this.emit("LoggerUnregister")}setLoggerServiceState(e){this.persistState=e,this.setDefaults(),D.console=F,D.dev=W,D.system=W,D.perf=W,D.clientChannel=""}setDefaults(){P.console=this.persistState.data.initialClientStateDefault,P.dev=this.persistState.data.initialClientStateDefault,P.system=this.persistState.data.initialClientStateDefault,P.perf=this.persistState.data.initialClientStateDefault,P.clientChannel="",P.showAdvancedViewFilters=this.persistState.data.showAdvancedViewFilters,P.wrapLog=this.persistState.data.wrapLog,P.showStackStraceInLog=this.persistState.data.showStackStraceInLog,P.filter=this.persistState.data.filter,P.showTimeElapsedFromStartup=this.persistState.data.showTimeElapsedFromStartup,P.clientListVisible=this.persistState.data.clientListVisible,P.colDefs=this.persistState.data.colDefs}}const j=new z;u.default.onReady((()=>{j.initialize();const e=p.System.Window.getCurrent();e.isShowing((t=>{t?j.setWindowVisible():j.setWindowHidden(),e.addEventListener("shown",j.setWindowVisible),e.addEventListener("restored",j.setWindowVisible),e.addEventListener("hidden",j.setWindowHidden),e.addEventListener("minimized",j.setWindowHidden)}))})),window.TheLoggerStore=j;var B=j;t.default=B},52851:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={deriveMethods(e){Object.keys(this).forEach((t=>{e[t]=this[t].bind(e)}))},setFilter1(e){this.persistState.set("highlightString[0]",{str:e.toString()}),this.persistState.data.filterHighlights&&this.filterData(),this.emit("NewHighlightValues1")},setFilter2(e){this.persistState.set("highlightString[1]",{str:e.toString()}),this.persistState.data.filterHighlights&&this.filterData(),this.emit("NewHighlightValues2")},setFilter3(e){this.persistState.set("highlightString[2]",{str:e.toString()}),this.persistState.data.filterHighlights&&this.filterData(),this.emit("NewHighlightValues3")},setFilter4(e){this.persistState.set("highlightString[3]",{str:e.toString()}),this.persistState.data.filterHighlights&&this.filterData(),this.emit("NewHighlightValues4")},getFilterStrings(e={removeEmpty:!1}){let t=this.persistState.get("highlightString");return t||(t=[]),t=t.map((e=>("string"==typeof e&&(e={str:e}),e))),e.removeEmpty?t.filter((e=>{const{str:t}=e;return""!==t})):t},toggleDisplayAll(){const{logState:e}=this.persistState.data;e.Error&&e.Warn&&e.Info&&e.Log&&e.Debug&&e.Verbose?this.persistState.set("logState",{Error:!1,Warn:!1,Info:!1,Log:!1,Debug:!1,Verbose:!1}):this.persistState.set("logState",{Error:!0,Warn:!0,Info:!0,Log:!0,Debug:!0,Verbose:!0}),this.filterData(),this.emit("newDisplayState")},toggleDisplayErrors(){this.persistState.toggle("logState.Error"),this.filterData(),this.emit("newDisplayState")},toggleDisplayWarnings(){this.persistState.toggle("logState.Warn"),this.filterData(),this.emit("newDisplayState")},toggleDisplayInfo(){this.persistState.toggle("logState.Info"),this.filterData(),this.emit("newDisplayState")},toggleDisplayLogs(){this.persistState.toggle("logState.Log"),this.filterData(),this.emit("newDisplayState")},toggleDisplayDebug(){this.persistState.toggle("logState.Debug"),this.filterData(),this.emit("newDisplayState")},toggleDisplayVerbose(){this.persistState.toggle("logState.Verbose"),this.filterData(),this.emit("newDisplayState")},getDevModeState(){return this.persistState.get("devModeState")},getSystemModeState(){return this.persistState.get("systemModeState")},getPerfModeState(){return this.persistState.get("perfModeState")},devModeToggle(){this.persistState.toggle("devModeState"),this.filterData(),this.emit("ModeStateChange")},systemModeToggle(){this.persistState.toggle("systemModeState"),this.filterData(),this.emit("ModeStateChange")},perfModeToggle(){this.persistState.toggle("perfModeState"),this.filterData(),this.emit("ModeStateChange")},devMode(){this.persistState.set("currentCategory","dev"),this.emit("ChangeClientMode"),this.emit("newClientState")},systemMode(){this.persistState.set("currentCategory","system"),this.emit("ChangeClientMode"),this.emit("newClientState")},perfMode(){this.persistState.set("currentCategory","perf"),this.emit("ChangeClientMode"),this.emit("newClientState")},getFilterLogic(){return this.persistState.get("filter.logic")},setFilterLogic(e){this.persistState.set("filter.logic",e),this.emit("filterLogicChange"),this.filterData()},shouldFilterData(){const e=0===this.getFilterStrings({removeEmpty:!0}).length,t=this.getLogCategoriesAllowed(),n=this.getLogState(),r=this.getAllShowClientState(),i=Object.keys(n).every((e=>n[e])),o=Object.keys(t).every((e=>t[e])),a=Object.keys(r).every((e=>r[e]));return!(o&&a&&e&&i)},shouldNotFilterData(){return!this.shouldFilterData()},filterData(e){const t=void 0===e,n=this.getMasterLog(),r=this.getFilteredLog(),i=t?n:[e],o=this.getFilterStrings({removeEmpty:!0}),a=0===o.length,s=this.getAllShowClientState(),l=this.getLogCategoriesAllowed(),u=this.getLogState();if(this.shouldNotFilterData())return this.setFilteredLog(n),t&&this.broadCastNewMessageUpdate(),r;const c=this.getFilterLogic();function d(e,t){if(!s[e.logClientName])return!1;const n=u[e.logType],r=l[e.category];let i=a;if(null===t)i=!0;else if(r&&n&&!a){if(t&&t.length>0){if("-"===t)return!0;const n=t,r=-1!==e.allLogArgs.toLowerCase().indexOf(n.toLowerCase());i=i||r}}else"AND"===c&&(i=!0);return r&&n&&i}const f=i.filter(((e,t)=>{if(a)return d(i[t],null);if("AND"===c){for(let e=0;e<o.length;e++){let n=!1,{str:r}=o[e];"-"===r.charAt(0)&&(r=r.substr(1),n=!0);const a=d(i[t],r);if(!a&&!n)return!1;if(n&&a)return!1}return!0}let n=!1;for(let e=0;e<o.length;e++){let{str:r}=o[e],a=!1;if("-"===r.charAt(0)&&(r=r.substr(1),a=!0),d(i[t],r)){if(a)return!1;n=!0}}return n}));return t&&this.setFilteredLog(f),t&&this.broadCastNewMessageUpdate(),f}};t.default=n},25908:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={deriveMethods(e){Object.keys(this).forEach((t=>{e[t]=this[t].bind(e)}))},showClientAllCategory(e){for(const t in this.persistState.data.showClientState)if(this.persistState.data.showClientState.hasOwnProperty(t)&&(!this.persistState.data.hideInactiveState||this.persistState.data.showClientState[t])){const n=this.persistState.data.clientState[t],r={...this.defaultClientState[e]};n[e]=r,this.RouterClient.transmit(n.clientChannel,n)}this.emit("newClientState")},defaultShowClientAll(){this.persistState.data.applyToAllCategories?(this.showClientAllCategory("console"),this.showClientAllCategory("dev"),this.showClientAllCategory("system"),this.showClientAllCategory("perf")):this.showClientAllCategory(this.persistState.data.currentCategory),this.emit("newClientState")},toggleLevelForAllClients(e,t){let n=!0,r=!1;for(const e in this.persistState.data.showClientState)if(this.persistState.data.showClientState.hasOwnProperty(e)&&(!this.persistState.data.hideInactiveState||this.persistState.data.showClientState[e])){const i=this.persistState.data.clientState[e];i[this.persistState.data.currentCategory][t]||(n=!1),i[this.persistState.data.currentCategory][t]&&(r=!0)}const i=!(n&&r);for(const e in this.persistState.data.showClientState)if(this.persistState.data.showClientState.hasOwnProperty(e)&&(!this.persistState.data.hideInactiveState||this.persistState.data.showClientState[e])){const n=this.persistState.data.clientState[e],r=n[this.persistState.data.currentCategory][t];n[this.persistState.data.currentCategory][t]=i,r!==i&&(this.persistState.set(`clientState[${e}]`,n),this.RouterClient.transmit(n.clientChannel,n))}this.emit("newClientState")},allCoreToggle(){this.allErrorsToggle(),this.allWarningToggle(),this.allDebugToggle(),this.allLogsToggle(),this.allInfoToggle()},allErrorsToggle(){this.toggleLevelForAllClients(this.persistState.data.currentCategory,"Error")},allWarningToggle(){this.toggleLevelForAllClients(this.persistState.data.currentCategory,"Warn")},allInfoToggle(){this.toggleLevelForAllClients(this.persistState.data.currentCategory,"Info")},allLogsToggle(){this.toggleLevelForAllClients(this.persistState.data.currentCategory,"Log")},allDebugToggle(){this.toggleLevelForAllClients(this.persistState.data.currentCategory,"Debug")},allVerboseToggle(){this.toggleLevelForAllClients(this.persistState.data.currentCategory,"Verbose")},allLocalConsoleToggle(){this.toggleLevelForAllClients(this.persistState.data.currentCategory,"LocalOnly")},toggleAllCategory(e,t){let n;if(2===arguments.length)n=t;else{let t=!0,r=!1;for(const n in this.persistState.data.showClientState)if(this.persistState.data.showClientState.hasOwnProperty(n)&&(!this.persistState.data.hideInactiveState||this.persistState.data.showClientState[n])){const i=this.persistState.data.clientState[n];i[e].Error&&i[e].Warn&&i[e].Info&&i[e].Log&&i[e].Debug||(t=!1),(i[e].Error||i[e].Warn||i[e].Info||i[e].Log||i[e].Debug)&&(r=!0)}n=!(t&&r)}for(const t in this.persistState.data.showClientState)if(this.persistState.data.showClientState.hasOwnProperty(t)&&(!this.persistState.data.hideInactiveState||this.persistState.data.showClientState[t])){const r=this.persistState.data.clientState[t];r[e]=n?{Error:!0,Warn:!0,Info:!0,Log:!0,Debug:!0,Verbose:r[e].Verbose,LocalOnly:r[e].LocalOnly}:{Error:!1,Warn:!1,Info:!1,Log:!1,Debug:!1,Verbose:r[e].Verbose,LocalOnly:r[e].LocalOnly},this.persistState.set(`clientState[${t}]`,r),this.RouterClient.transmit(r.clientChannel,r)}return n},toggleClientStateAllCategories(e,t){this.persistState.toggle(`clientState[${e}].dev[${t}]`),this.persistState.toggle(`clientState[${e}].system[${t}]`),this.persistState.toggle(`clientState[${e}].perf[${t}]`)},toggleClientErrors(e){const t=this.persistState.data.clientState[e];this.toggleClientStateAllCategories(e,"Error"),this.RouterClient.transmit(t.clientChannel,t),this.emit("newClientState")},toggleClientWarnings(e){const t=this.persistState.data.clientState[e];this.toggleClientStateAllCategories(e,"Warn"),this.RouterClient.transmit(t.clientChannel,t),this.emit("newClientState")},toggleClientInfo(e){const t=this.persistState.data.clientState[e];this.toggleClientStateAllCategories(e,"Info"),this.RouterClient.transmit(t.clientChannel,t),this.emit("newClientState")},toggleClientLogs(e){const t=this.persistState.data.clientState[e];this.toggleClientStateAllCategories(e,"Log"),this.RouterClient.transmit(t.clientChannel,t),this.emit("newClientState")},toggleClientDebug(e){const t=this.persistState.data.clientState[e];this.toggleClientStateAllCategories(e,"Debug"),this.RouterClient.transmit(t.clientChannel,t),this.emit("newClientState")},toggleClientVerbose(e){const t=this.persistState.data.clientState[e];this.toggleClientStateAllCategories(e,"Verbose"),this.RouterClient.transmit(t.clientChannel,t),this.emit("newClientState")},toggleClientLocalOnly(e){const t=this.persistState.data.clientState[e];this.toggleClientStateAllCategories(e,"LocalOnly"),this.RouterClient.transmit(t.clientChannel,t),this.emit("newClientState")},toggleInitialClientErrorsDefault(){this.persistState.toggle("initialClientStateDefault.Error"),this.emit("newInitialClientStateDefault"),this.defaultShowClientAll()},toggleInitialClientWarningsDefault(){this.persistState.toggle("initialClientStateDefault.Warn"),this.emit("newInitialClientStateDefault"),this.defaultShowClientAll()},toggleInitialClientInfoDefault(){this.persistState.toggle("initialClientStateDefault.Info"),this.emit("newInitialClientStateDefault"),this.defaultShowClientAll()},toggleInitialClientLogsDefault(){this.persistState.toggle("initialClientStateDefault.Log"),this.emit("newInitialClientStateDefault"),this.defaultShowClientAll()},toggleInitialClientDebugDefault(){this.persistState.toggle("initialClientStateDefault.Debug"),this.emit("newInitialClientStateDefault"),this.defaultShowClientAll()},toggleInitialClientVerboseDefault(){this.persistState.toggle("initialClientStateDefault.Verbose"),this.emit("newInitialClientStateDefault"),this.defaultShowClientAll()},toggleInitialClientLocalOnlyDefault(){this.persistState.toggle("initialClientStateDefault.LocalOnly"),this.emit("newInitialClientStateDefault"),this.defaultShowClientAll()},getInitialClientStateDefault(){return this.persistState.get("initialClientStateDefault")}};t.default=n},12622:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(89526)),i=f(n(29581)),o=f(n(39715)),a=f(n(91061)),s=f(n(37577));n(98208);var l=f(n(76897)),u=f(n(2075)),c=f(n(9562)),d=f(n(39319));function f(e){return e&&e.__esModule?e:{default:e}}c.default.initialize();class h extends r.default.Component{constructor(e){super(e);const t=i.default.getClientListVisible();this.state={activeView:i.default.getActiveView(),clientListWidth:t?500:0,clientListHeight:window?window.outerHeight-0:0,logWidth:t&&window?window.outerWidth-500:0,fileMode:i.default.getFileMode(),clientListVisible:t,windowVisibility:i.default.getWindowVisibility(),showSearchBox:i.default.getShowSearchBox(),showProcessMonitor:!1},this.fileMode=this.fileMode.bind(this),this.updateClientListVisible=this.updateClientListVisible.bind(this),this.updateWindowVisibility=this.updateWindowVisibility.bind(this),this.onkeydown=this.onkeydown.bind(this),this.getClientListClasses=this.getClientListClasses.bind(this),this.onResizeWindow=this.onResizeWindow.bind(this),this.setContainerWidths=(0,l.default)(this.setContainerWidths.bind(this),0),this.setActiveView=this.setActiveView.bind(this),this.setShowSearchBox=this.setShowSearchBox.bind(this),this.getShowProcessMonitor=this.getShowProcessMonitor.bind(this)}componentDidMount(){i.default.addListener("FileMode",this.fileMode),i.default.addListener("clientListVisibleChange",this.updateClientListVisible),i.default.addListener("WindowVisibilityChange",this.updateWindowVisibility),i.default.addListener("viewChange",this.setActiveView),i.default.addListener("showSearchBoxChange",this.setShowSearchBox),window.addEventListener("keydown",this.onkeydown),window.addEventListener("resize",this.onResizeWindow),this.getShowProcessMonitor()}componentWillUnmount(){i.default.removeListener("FileMode",this.fileMode),i.default.removeListener("clientListVisibleChange",this.updateClientListVisible),i.default.removeListener("WindowVisibilityChange",this.updateWindowVisibility),i.default.removeListener("viewChange",this.setActiveView),i.default.removeListener("showSearchBoxChange",this.setShowSearchBox),window.removeEventListener("resize",this.onResizeWindow),window.removeEventListener("keydown",this.onkeydown)}getShowProcessMonitor(){c.default.onReady((()=>{const e=(e,t)=>{this.setState({showProcessMonitor:t&&"Process Monitor"in t})};d.default.subscribe("Launcher.update",((t,n)=>{e(0,n.data.componentList)})),c.default.getComponentList(e)}))}setShowSearchBox(){this.setState({showSearchBox:i.default.getShowSearchBox()})}onkeydown(e){!e.ctrlKey||e.altKey?this.state.showSearchBox&&"Escape"===e.key&&i.default.hideSearchBox():"ArrowUp"===e.key?i.default.setTop():"ArrowDown"===e.key?i.default.setBottom():"ArrowLeft"===e.key||"ArrowRight"===e.key?i.default.scrollToActiveRow():"f"===e.key&&i.default.showSearchBox()}setActiveView(){const e=i.default.getActiveView();e!==this.state.activeView&&this.setState({activeView:e})}fileMode(){const e=i.default.getFileMode();this.setState({fileMode:e})}updateClientListVisible(){const e=i.default.getClientListVisible();this.setState({clientListVisible:e,logWidth:e?window.outerWidth-500:window.outerWidth-16,clientListWidth:e?500:0},i.default.triggerLogRerender.bind(i.default))}updateWindowVisibility(){this.setState({windowVisibility:i.default.getWindowVisibility()})}setContainerWidths(e){let{logWidth:t,clientListWidth:n,clientListHeight:r}=this.state;e.resizeChilds&&(t=e.resizeChilds[1].width,n=e.resizeChilds[0].width),r=window.outerHeight-0,this.setState({clientListWidth:n,logWidth:t,clientListHeight:r})}getClientListClasses(){return this.state.clientListWidth<500?"left-panel client-list-small":"left-panel"}onResizeWindow(e){i.default.triggerRowheightRecalculation(),this.setContainerWidths(e)}render(){return"hidden"===this.state.windowVisibility?null:r.default.createElement("div",{className:"body-wrapper"},r.default.createElement(o.default,{activeView:this.state.activeView,showProcessMonitor:this.state.showProcessMonitor}),r.default.createElement("div",{className:"inner-content-wrapper"},r.default.createElement(u.default,{activeView:this.state.activeView}),"logger"===this.state.activeView&&r.default.createElement(a.default,{clientListVisible:this.state.clientListVisible}),"config"===this.state.activeView&&r.default.createElement(s.default,null)))}}t.default=h},66125:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(89526))&&r.__esModule?r:{default:r};class o extends i.default.PureComponent{constructor(){super()}render(){let e=this.props.className||"";e="checkbox"===this.props.type?`${e} inline-checkbox `:`${e} fsbl-logger-button `,this.props.active&&(e+=this.props.activeClass||" active");const t=()=>{let e="checkbox";return e+=this.props.active?" active":"",i.default.createElement("div",{className:e},i.default.createElement("div",{className:"checkbox-background"}))};return i.default.createElement("div",{className:e,title:this.props.title||"",onClick:this.props.onClick},"checkbox"===this.props.type&&i.default.createElement(t,null),this.props.children)}}t.default=o},39715:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(89526)),i=l(n(29581)),o=l(n(66125)),a=n(51742),s=l(n(9562));function l(e){return e&&e.__esModule?e:{default:e}}s.default.initialize();class u extends r.default.PureComponent{constructor(e){super(e),this.state={logCount:i.default.getLogCounts(),clientListVisible:i.default.getClientListVisible()},this.getNewLogCounts=this.getNewLogCounts.bind(this),this.updateClientListVisible=this.updateClientListVisible.bind(this),this.calculateMemoryUsage=this.calculateMemoryUsage.bind(this)}componentDidMount(){i.default.addListener("loggerNewMessages",this.getNewLogCounts),i.default.addListener("clientListVisibleChange",this.updateClientListVisible)}componentWillUnmount(){i.default.removeListener("loggerNewMessages",this.getNewLogCounts),i.default.removeListener("clientListVisibleChange",this.updateClientListVisible)}clearData(){i.default.clearData()}saveToFile(){i.default.saveToFile()}fileMode(){i.default.fileMode()}persist(){i.default.persist()}getNewLogCounts(){const e=i.default.getLogCounts();this.setState({logCount:e})}toggleClientList(){i.default.toggleClientListVisible()}updateClientListVisible(){this.setState({clientListVisible:i.default.getClientListVisible()})}spawnProcessMonitor(){s.default.spawn("Process Monitor")}spawnLocalhost9090(){a.System.openUrlWithBrowser("http://localhost:9090")}calculateMemoryUsage(){const e=i.default.getCurrentLog();function t(e){const t=[],n=[e];let r=0,i=0;for(;n.length&&i<100;){i++;const e=n.pop();if("boolean"==typeof e)r+=4;else if("string"==typeof e)r+=2*e.length;else if("number"==typeof e)r+=8;else if("object"==typeof e&&-1===t.indexOf(e)){t.push(e);for(const t in e)n.push(e[t])}}return r}const n={};for(let r=0;r<e.length;r++){const i=e[r];void 0===n[i.logClientName]&&(n[i.logClientName]=0),n[i.logClientName]=n[i.logClientName]+t(i.allLogArgs)}this.setState({memoryUsage:n})}bytesToSize(e){if(0==e)return"0 Byte";const t=parseInt(Math.floor(Math.log(e)/Math.log(1024)));return`${Math.round(e/Math.pow(1024,t),2)} ${["Bytes","KB","MB","GB","TB"][t]}`}render(){const e={};for(const t in this.state.memoryUsage)e[t]=this.bytesToSize(this.state.memoryUsage[t]);return window.LoggerMemoryUsage=e,r.default.createElement("div",{className:"logger-row top-collar row-shadow"},"logger"===this.props.activeView&&r.default.createElement(o.default,{title:"CTRL+ALT+C",onClick:this.toggleClientList},this.state.clientListVisible?"Hide ":"Show ","Left Panel"),this.props.showProcessMonitor&&r.default.createElement(o.default,{onClick:this.spawnProcessMonitor},"Process Monitor"),r.default.createElement(o.default,{onClick:this.spawnLocalhost9090},"localhost:9090"),r.default.createElement("div",{className:"pull-right"},r.default.createElement("div",{className:"fsbl-logger-buttons"},r.default.createElement(o.default,{onClick:this.saveToFile},"Export Log"),r.default.createElement(o.default,{onClick:this.fileMode},"Import Log"))))}}t.default=u},2075:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(89526)),o=(r=n(29581))&&r.__esModule?r:{default:r};function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}class s extends i.Component{getClasses(e){let t="view-label";return e===this.props.activeView&&(t=`${t} view-label-active`),t}render(){return i.default.createElement("div",{className:"view-switcher"},i.default.createElement("div",{className:this.getClasses("logger"),onClick:o.default.setLoggerVisible},"Logs"),i.default.createElement("div",{className:this.getClasses("config"),onClick:o.default.setConfigVisible},"Conf"))}}var l=s;t.default=l},94687:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(89526)),i=a(n(29581)),o=n(27785);function a(e){return e&&e.__esModule?e:{default:e}}class s extends r.default.Component{constructor(e){super(e),this.state={matches:new o.SearchResults,activeIndex:1,searchString:i.default.getSearchBoxString()},this.onKeyPress=this.onKeyPress.bind(this),this.scrollToNextMatch=this.scrollToNextMatch.bind(this),this.scrollToPreviousMatch=this.scrollToPreviousMatch.bind(this),this.focus=this.focus.bind(this),this.setSearchString=this.setSearchString.bind(this),this.onSearchUpdate=this.onSearchUpdate.bind(this),i.default.setConfigSearchBoxString(this.state.searchString)}focus(){this.refs.SearchBox&&this.refs.SearchBox.focus()}onKeyPress(e){"Enter"===e.key&&this.scrollToNextMatch()}setSearchString(e){i.default.setConfigSearchBoxString(e.target.value)}onSearchUpdate(){this.setState({matches:i.default.getSearchMatches(),searchString:i.default.getSearchBoxString()},(()=>{1===this.state.activeIndex?this.scrollToNextMatch():this.state.matches.setActiveIndex(this.state.activeIndex)}))}scrollToNextMatch(){const{matches:e}=this.state,t=e.next();void 0!==t.value&&(this.setState({activeIndex:t.searchResultNumber}),i.default.setActiveConfigSearchMatch(t.value))}scrollToPreviousMatch(){const{matches:e}=this.state,t=e.previous();this.setState({activeIndex:t.searchResultNumber}),i.default.setActiveConfigSearchMatch(t.value)}hideSearchBox(){i.default.hideSearchBox()}componentDidMount(){i.default.addListener("loggerNewMessages",this.searchAgain),i.default.addListener("showSearchBox",this.focus),i.default.addListener("showSearchBoxChange",this.focus),i.default.addListener("searchBoxTextChange",this.onSearchUpdate)}componentWillUnmount(){i.default.removeListener("loggerNewMessages",this.searchAgain),i.default.removeListener("showSearchBox",this.focus),i.default.removeListener("showSearchBoxChange",this.focus),i.default.removeListener("searchBoxTextChange",this.onSearchUpdate)}searchAgain(){i.default.setConfigSearchBoxString(i.default.Search.searchString)}render(){if(!this.props.show)return null;const e=this.state.matches&&this.state.matches.values?this.state.matches.values.length:0;let t="152px";e>=10?t="142px":e>=100&&(t="128px");const n={left:t};return r.default.createElement("div",{className:"fsbl-logger-searchbox"},r.default.createElement("div",{className:"search-box-input-wrapper"},r.default.createElement("div",{className:"search-box-text-input"},r.default.createElement("input",{value:this.state.searchString,ref:"SearchBox",autoFocus:!0,placeholder:"Find string in logs",type:"text",onKeyPress:this.onKeyPress,onChange:this.setSearchString}),e>0&&r.default.createElement("label",{className:"search-box-match-text",style:n},r.default.createElement("span",null,this.state.activeIndex," of ",e))),r.default.createElement("div",{className:"search-box-match-navigators"},r.default.createElement("span",{onClick:this.scrollToPreviousMatch},"▲"),r.default.createElement("span",{onClick:this.scrollToNextMatch},"▼"))),r.default.createElement("div",{className:"search-box-cancel-button"},r.default.createElement("span",{onClick:this.hideSearchBox},"Cancel")))}}t.default=s},37577:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(89526)),i=s(n(29581)),o=s(n(94687)),a=s(n(5445));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}class u extends r.Component{constructor(){super(),this.state={config:[],showSearchBox:i.default.getShowSearchBox(),searchBoxText:i.default.getSearchBoxString()},this.setShowSearchBox=this.setShowSearchBox.bind(this),this.onSearchUpdate=this.onSearchUpdate.bind(this),this.scrollToActiveLine=this.scrollToActiveLine.bind(this)}setShowSearchBox(){this.setState({showSearchBox:i.default.getShowSearchBox()})}onSearchUpdate(){this.setState({searchBoxText:i.default.getSearchBoxString()})}componentWillUnmount(){i.default.removeListener("showSearchBoxChange",this.setShowSearchBox),i.default.removeListener("searchBoxTextChange",this.onSearchUpdate),i.default.removeListener("activeConfigSearchMatch",this.scrollToActiveLine)}componentDidMount(){i.default.addListener("searchBoxTextChange",this.onSearchUpdate),i.default.addListener("showSearchBoxChange",this.setShowSearchBox),i.default.addListener("activeConfigSearchMatch",this.scrollToActiveLine),i.default.getFullConfig((e=>{this.setState({config:e})}))}scrollToActiveLine(){const e=i.default.getActiveConfigSearchMatch(),t=this.refs[`line${e}`];t&&t.scrollIntoView()}render(){const e=this.state.config;return r.default.createElement("div",{className:"config-viewer"},r.default.createElement("div",{className:"config"},e.map(((e,t)=>{const n=`line${t}`;return r.default.createElement("pre",{ref:n,key:t},r.default.createElement(a.default,{ind:t,str:e,searchBoxText:this.state.searchBoxText}))}))),r.default.createElement(o.default,{show:this.state.showSearchBox}))}}var c=u;t.default=c},91061:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(89526)),i=a(n(99074)),o=a(n(99563));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}class l extends r.PureComponent{render(){return r.default.createElement("div",{className:"logger-wrapper"},this.props.clientListVisible?r.default.createElement(i.default,{fileMode:this.props.fileMode}):r.default.createElement("span",null),r.default.createElement(o.default,null))}}var u=l;t.default=u},19574:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(89526)),i=a(n(29581)),o=n(27785);function a(e){return e&&e.__esModule?e:{default:e}}class s extends r.default.Component{constructor(e){super(e),this.state={matches:new o.SearchResults,activeIndex:1,searchString:i.default.getSearchBoxString()},i.default.setLogSearchBoxString(this.state.searchString),this.onKeyPress=this.onKeyPress.bind(this),this.scrollToNextMatch=this.scrollToNextMatch.bind(this),this.scrollToPreviousMatch=this.scrollToPreviousMatch.bind(this),this.focus=this.focus.bind(this),this.setSearchString=this.setSearchString.bind(this),this.onSearchUpdate=this.onSearchUpdate.bind(this)}focus(){this.refs.SearchBox&&this.refs.SearchBox.focus()}onKeyPress(e){"Enter"===e.key&&this.scrollToNextMatch()}setSearchString(e){i.default.setLogSearchBoxString(e.target.value)}onSearchUpdate(){this.setState({matches:i.default.getSearchMatches(),searchString:i.default.getSearchBoxString()},(()=>{1===this.state.activeIndex?this.scrollToNextMatch():this.state.matches.setActiveIndex(this.state.activeIndex)}))}scrollToNextMatch(){const{matches:e}=this.state,t=e.next();void 0!==t.value&&(this.setState({activeIndex:t.searchResultNumber}),i.default.setActiveRowIndex(t.value))}scrollToPreviousMatch(){const{matches:e}=this.state,t=e.previous();this.setState({activeIndex:t.searchResultNumber}),i.default.setActiveRowIndex(t.value)}hideSearchBox(){i.default.hideSearchBox()}componentDidMount(){i.default.addListener("loggerNewMessages",this.searchAgain),i.default.addListener("showSearchBox",this.focus),i.default.addListener("showSearchBoxChange",this.focus),i.default.addListener("searchBoxTextChange",this.onSearchUpdate)}componentWillUnmount(){i.default.removeListener("loggerNewMessages",this.searchAgain),i.default.removeListener("showSearchBox",this.focus),i.default.removeListener("showSearchBoxChange",this.focus),i.default.removeListener("searchBoxTextChange",this.onSearchUpdate)}searchAgain(){i.default.setLogSearchBoxString(i.default.Search.searchString)}render(){if(!this.props.show)return null;const e=this.state.matches&&this.state.matches.values?this.state.matches.values.length:0;let t="152px";e>=10?t="142px":e>=100&&(t="128px");const n={left:t};return r.default.createElement("div",{className:"fsbl-logger-searchbox"},r.default.createElement("div",{className:"search-box-input-wrapper"},r.default.createElement("div",{className:"search-box-text-input"},r.default.createElement("input",{value:this.state.searchString,ref:"SearchBox",autoFocus:!0,placeholder:"Find string in logs",type:"text",onKeyPress:this.onKeyPress,onChange:this.setSearchString}),e>0&&r.default.createElement("label",{className:"search-box-match-text",style:n},r.default.createElement("span",null,this.state.activeIndex," of ",e))),r.default.createElement("div",{className:"search-box-match-navigators"},r.default.createElement("span",{onClick:this.scrollToPreviousMatch},"▲"),r.default.createElement("span",{onClick:this.scrollToNextMatch},"▼"))),r.default.createElement("div",{className:"search-box-cancel-button"},r.default.createElement("span",{onClick:this.hideSearchBox},"Cancel")))}}t.default=s},27520:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(89526)),i=a(n(66125)),o=a(n(29581));function a(e){return e&&e.__esModule?e:{default:e}}n(51742);class s extends r.default.Component{constructor(e){super(e),this.state={clientState:o.default.getClientState(this.props.clientName),showClientState:o.default.getShowClientState(this.props.clientName),registeredClients:o.default.getRegisteredClients(),hideInactive:o.default.getHideInactiveState(),fileMode:this.props.fileMode,clientMode:o.default.getClientMode(),viewId:this.props.viewId},this.showClientToggle=this.showClientToggle.bind(this),this.errorsToggle=this.errorsToggle.bind(this),this.warningsToggle=this.warningsToggle.bind(this),this.infoToggle=this.infoToggle.bind(this),this.logsToggle=this.logsToggle.bind(this),this.debugToggle=this.debugToggle.bind(this),this.verboseToggle=this.verboseToggle.bind(this),this.localOnlyToggle=this.localOnlyToggle.bind(this),this.getNewClientState=this.getNewClientState.bind(this),this.getNewShowClientState=this.getNewShowClientState.bind(this),this.getHideInactiveState=this.getHideInactiveState.bind(this),this.fileMode=this.fileMode.bind(this),this.changeClientMode=this.changeClientMode.bind(this)}componentDidMount(){o.default.addListener("newClientState",this.getNewClientState),o.default.addListener("newShowClientState",this.getNewShowClientState),o.default.addListener("newHideInactiveState",this.getHideInactiveState),o.default.addListener("FileMode",this.fileMode),o.default.addListener("ChangeClientMode",this.changeClientMode)}componentWillUnmount(){o.default.removeListener("newClientState",this.getNewClientState),o.default.removeListener("newShowClientState",this.getNewShowClientState),o.default.removeListener("newHideInactiveState",this.getHideInactiveState),o.default.removeListener("FileMode",this.fileMode),o.default.removeListener("ChangeClientMode",this.changeClientMode)}fileMode(){const e=o.default.getFileMode();this.setState({fileMode:e})}getNewRegisteredClients(){this.setState({registeredClients:o.default.getRegisteredClients()})}getNewClientState(){const e=o.default.getClientState(this.props.clientName);this.setState({clientState:e})}getNewShowClientState(){this.setState({showClientState:o.default.getShowClientState(this.props.clientName)})}getHideInactiveState(){const e=o.default.getHideInactiveState();this.setState({hideInactive:e})}showClientToggle(){o.default.toggleShowClient(this.props.clientName)}errorsToggle(){o.default.toggleClientErrors(this.props.clientName)}warningsToggle(){o.default.toggleClientWarnings(this.props.clientName)}infoToggle(){o.default.toggleClientInfo(this.props.clientName)}logsToggle(){o.default.toggleClientLogs(this.props.clientName)}debugToggle(){o.default.toggleClientDebug(this.props.clientName)}verboseToggle(){o.default.toggleClientVerbose(this.props.clientName)}localOnlyToggle(){o.default.toggleClientLocalOnly(this.props.clientName)}changeClientMode(){const e=o.default.getClientMode();this.setState({clientMode:e})}render(){const{viewName:e,clientName:t,viewId:n,centralLoggerNamePrefix:a}=this.props;return r.default.createElement("div",null,this.state.hideInactive&&!this.state.showClientState?null:r.default.createElement("div",{className:"fsbl-logger-client-row"},r.default.createElement("div",{className:"fsbl-logger-client-name"},r.default.createElement(i.default,{type:"checkbox",active:this.state.showClientState,onClick:this.showClientToggle}),r.default.createElement("span",{className:"fsbl-logger-client-name-label",title:t,onClick:()=>{o.default.openClient(n?e:t,n)}},a?`${a}-${t}`:t)),this.state.fileMode?null:r.default.createElement("div",{className:"fsbl-logger-button-group"},r.default.createElement("div",{className:"fsbl-logger-buttons"},r.default.createElement(i.default,{className:"fsbl-logger-toggle",active:this.state.clientState[this.state.clientMode].Error,onClick:this.errorsToggle},"Errors"),r.default.createElement(i.default,{className:"fsbl-logger-toggle",active:this.state.clientState[this.state.clientMode].Warn,onClick:this.warningsToggle},"Warning"),r.default.createElement(i.default,{className:"fsbl-logger-toggle",active:this.state.clientState[this.state.clientMode].Log,onClick:this.logsToggle},"Log"),r.default.createElement(i.default,{className:"fsbl-logger-toggle",active:this.state.clientState[this.state.clientMode].Info,onClick:this.infoToggle},"Info"),r.default.createElement(i.default,{className:"fsbl-logger-toggle",active:this.state.clientState[this.state.clientMode].Debug,onClick:this.debugToggle},"Debug"),"console"===this.state.clientMode?null:r.default.createElement("span",null,r.default.createElement(i.default,{className:"fsbl-logger-toggle",active:this.state.clientState[this.state.clientMode].Verbose,onClick:this.verboseToggle},"Verbose"))))))}}t.default=s},28113:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(89526)),i=s(n(27520)),o=s(n(66125)),a=s(n(29581));function s(e){return e&&e.__esModule?e:{default:e}}class l extends r.default.Component{constructor(e){super(e),this.state={theList:a.default.getRegisteredClient(),registeredClients:a.default.getRegisteredClients(),hideInactive:a.default.getHideInactiveState(),fileMode:this.props.fileMode,clientMode:a.default.getClientMode(),initialClientStateDefault:a.default.getInitialClientStateDefault(),clientListFilter:"",showFullClientNames:!1},this.loggerRegister=this.loggerRegister.bind(this),this.loggerUnregister=this.loggerUnregister.bind(this),this.getHideInactiveState=this.getHideInactiveState.bind(this),this.fileMode=this.fileMode.bind(this),this.getNewRegisteredClients=this.getNewRegisteredClients.bind(this),this.changeClientMode=this.changeClientMode.bind(this),this.clientModeButtonStyle=this.clientModeButtonStyle.bind(this),this.toggleClientNameLimit=this.toggleClientNameLimit.bind(this),this.getNewInitialClientStateDefault=this.getNewInitialClientStateDefault.bind(this),this.handleClientListFilterChange=this.handleClientListFilterChange.bind(this)}componentDidMount(){a.default.addListener("LoggerRegister",this.loggerRegister),a.default.addListener("LoggerUnregister",this.loggerUnregister),a.default.addListener("newHideInactiveState",this.getHideInactiveState),a.default.addListener("FileMode",this.fileMode),a.default.addListener("ChangeClientMode",this.changeClientMode),a.default.addListener("newInitialClientStateDefault",this.getNewInitialClientStateDefault),a.default.addListener("newShowClientState",this.getNewRegisteredClients)}componentWillUnmount(){a.default.removeListener("LoggerRegister",this.loggerRegister),a.default.removeListener("LoggerUnregister",this.loggerUnregister),a.default.removeListener("newHideInactiveState",this.getHideInactiveState),a.default.removeListener("FileMode",this.fileMode),a.default.removeListener("ChangeClientMode",this.changeClientMode),a.default.removeListener("newInitialClientStateDefault",this.getNewInitialClientStateDefault),a.default.removeListener("newShowClientState",this.getNewRegisteredClients)}loggerRegister(){const e=a.default.getRegisteredClient();this.setState({theList:e})}loggerUnregister(){const e=a.default.getRegisteredClient();this.setState({theList:e})}fileMode(){const e=a.default.getFileMode();this.setState({fileMode:e})}allToggle(){a.default.toggleShowAllClients()}toggleHideInactive(){a.default.toggleHideInactive()}getHideInactiveState(){const e=a.default.getHideInactiveState();this.setState({hideInactive:e})}default(){a.default.defaultShowClientAll()}consoleMode(){a.default.consoleMode()}devMode(){a.default.devMode()}systemMode(){a.default.systemMode()}perfMode(){a.default.perfMode()}getNewRegisteredClients(){this.setState({registeredClients:a.default.getRegisteredClients()})}changeClientMode(){const e=a.default.getClientMode();this.setState({clientMode:e})}allErrorsToggle(){a.default.allErrorsToggle()}allWarningToggle(){a.default.allWarningToggle()}allInfoToggle(){a.default.allInfoToggle()}allLogsToggle(){a.default.allLogsToggle()}allDebugToggle(){a.default.allDebugToggle()}allVerboseToggle(){a.default.allVerboseToggle()}allLocalConsoleToggle(){a.default.allLocalConsoleToggle()}allCoreToggle(){a.default.allCoreToggle()}clientModeButtonStyle(e){return e===this.state.clientMode?"active":"inactive"}errorsToggleInitialDefault(){a.default.toggleInitialClientErrorsDefault()}warningsToggleInitialDefault(){a.default.toggleInitialClientWarningsDefault()}infoToggleInitialDefault(){a.default.toggleInitialClientInfoDefault()}logsToggleInitialDefault(){a.default.toggleInitialClientLogsDefault()}debugToggleInitialDefault(){a.default.toggleInitialClientDebugDefault()}verboseToggleInitialDefault(){a.default.toggleInitialClientVerboseDefault()}localOnlyToggleInitialDefault(){a.default.toggleInitialClientLocalOnlyDefault()}getNewInitialClientStateDefault(){const e=a.default.getInitialClientStateDefault();this.setState({initialClientStateDefault:e})}handleClientListFilterChange(e){this.setState({clientListFilter:e.target.value})}toggleClientNameLimit(){const e=this.state.showFullClientNames;this.setState({showFullClientNames:!e})}render(){const e=this.state.theList.sort(((e,t)=>e.toLowerCase().localeCompare(t.toLowerCase()))).filter((e=>""===this.state.clientListFilter||e&&e.toLowerCase().includes(this.state.clientListFilter.toLowerCase()))).map(((e,t)=>{const{registeredClients:n}=this.state,o=n[e]&&n[e].viewId,a=n[e]&&n[e].name,s=n[e]&&n[e].centralLoggerNamePrefix;return r.default.createElement(i.default,{key:t,clientName:e,fileMode:this.state.fileMode,viewId:o,viewName:a,centralLoggerNamePrefix:s})}));return r.default.createElement("div",{className:"logger-clients-section topDiv"},this.state.fileMode||0!==e.length?r.default.createElement("div",{className:"fsbl-logger-client-row"},r.default.createElement("div",{className:"fsbl-logger-button-group fsbl-logger-client-list-actions"},r.default.createElement(o.default,{onClick:this.allToggle},"Toggle All"),r.default.createElement(o.default,{className:"fsbl-logger-toggle",active:this.state.hideInactive,onClick:this.toggleHideInactive},"Hide Uncaptured"),r.default.createElement(o.default,{active:this.state.showFullClientNames,onClick:this.toggleClientNameLimit},this.state.showFullClientNames?"Short Client Names":"Full Client Names")),r.default.createElement("div",null,r.default.createElement("div",{className:"fsbl-logger-buttons"},r.default.createElement("div",{className:"fsbl-logger-button-group-label"},"Select All"),r.default.createElement("div",{className:"fsbl-logger-button-group"},r.default.createElement(o.default,{className:"fsbl-logger-toggle",active:this.state.initialClientStateDefault.Error,onClick:this.errorsToggleInitialDefault},"Errors"),r.default.createElement(o.default,{className:"fsbl-logger-toggle",active:this.state.initialClientStateDefault.Warn,onClick:this.warningsToggleInitialDefault},"Warning"),r.default.createElement(o.default,{className:"fsbl-logger-toggle",active:this.state.initialClientStateDefault.Log,onClick:this.logsToggleInitialDefault},"Log"),r.default.createElement(o.default,{className:"fsbl-logger-toggle",active:this.state.initialClientStateDefault.Info,onClick:this.infoToggleInitialDefault},"Info"),r.default.createElement(o.default,{className:"fsbl-logger-toggle",active:this.state.initialClientStateDefault.Debug,onClick:this.debugToggleInitialDefault},"Debug"),r.default.createElement(o.default,{className:"fsbl-logger-toggle",active:this.state.initialClientStateDefault.Verbose,onClick:this.verboseToggleInitialDefault},"Verbose"))))):null,this.state.fileMode?r.default.createElement("div",{className:"logger-row"},r.default.createElement("div",{className:"fsbl-logger-button-group"},r.default.createElement("div",{className:"fsbl-logger-buttons"},r.default.createElement("span",{className:"fileStyle"},"File Mode")))):null,r.default.createElement("div",{className:"fsbl-logger-buttons"},r.default.createElement("input",{placeholder:"Filter List",value:this.state.clientListFilter,onChange:this.handleClientListFilterChange}),""!==this.state.clientListFilter&&r.default.createElement("div",null,"Filter hiding ",this.state.theList.length-e.length," clients.")),r.default.createElement("div",{style:{height:this.props.height},className:this.state.showFullClientNames?"logger-client-list logger-client-list--full-names":"logger-client-list"},e))}}t.default=l},90434:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(89526)),i=a(n(66125)),o=a(n(29581));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}class l extends r.Component{devModeToggle(){o.default.devModeToggle()}systemModeToggle(){o.default.systemModeToggle()}perfModeToggle(){o.default.perfModeToggle()}render(){return r.default.createElement("div",null,r.default.createElement("div",{className:"flex-column"},r.default.createElement("div",{className:"fsbl-logger-button-group-label"},"Log types"),r.default.createElement("div",{className:"fsbl-logger-button-group fsbl-logger-buttons"},r.default.createElement(i.default,{className:"fsbl-logger-toggle",active:this.props.systemMode,onClick:this.systemModeToggle},"System"),r.default.createElement(i.default,{className:"fsbl-logger-toggle",active:this.props.devMode,onClick:this.devModeToggle},"Dev"),r.default.createElement(i.default,{className:"fsbl-logger-toggle",active:this.props.perfMode,onClick:this.perfModeToggle},"Perf"))))}}var u=l;t.default=u},65222:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(89526)),i=u(n(7402)),o=u(n(76897)),a=u(n(66125)),s=u(n(29581)),l=u(n(90434));function u(e){return e&&e.__esModule?e:{default:e}}const c=(0,o.default)(s.default.emitResizeTimeout,200);class d extends r.default.Component{constructor(e){super(e),this.state={highLight1:s.default.getFilterStrings()[0],highLight2:s.default.getFilterStrings()[1],highLight3:s.default.getFilterStrings()[2],highLight4:s.default.getFilterStrings()[3],devMode:s.default.getDevModeState(),systemMode:s.default.getSystemModeState(),perfMode:s.default.getPerfModeState(),filter:{logic:s.default.getFilterLogic()},clientListWidth:2},this.highLight1=this.highLight1.bind(this),this.highLight2=this.highLight2.bind(this),this.highLight3=this.highLight3.bind(this),this.highLight4=this.highLight4.bind(this),this.getNewModeState=this.getNewModeState.bind(this),this.updateFilterLogic=this.updateFilterLogic.bind(this)}componentDidMount(){s.default.addListener("ModeStateChange",this.getNewModeState),s.default.addListener("filterLogicChange",this.updateFilterLogic),new i.default((()=>{setTimeout(c,200)})).observe(document.getElementById("displayControl"))}componentWillUnmount(){s.default.removeListener("ModeStateChange",this.getNewModeState),s.default.removeListener("filterLogicChange",this.updateFilterLogic)}updateFilterLogic(){this.setState({filter:{logic:s.default.getFilterLogic()}})}getNewModeState(){const e=s.default.getDevModeState(),t=s.default.getSystemModeState(),n=s.default.getPerfModeState();this.setState({devMode:e,systemMode:t,perfMode:n})}highLight1(e){this.setState({highLight1:e.target.value}),s.default.setFilter1(e.target.value)}highLight2(e){this.setState({highLight2:e.target.value}),s.default.setFilter2(e.target.value)}highLight3(e){this.setState({highLight3:e.target.value}),s.default.setFilter3(e.target.value)}highLight4(e){this.setState({highLight4:e.target.value}),s.default.setFilter4(e.target.value)}setFilterLogicAnd(){s.default.setFilterLogic("AND")}setFilterLogicOr(){s.default.setFilterLogic("OR")}render(){return r.default.createElement("div",{id:"displayControl"},r.default.createElement("div",{className:"topDiv"},r.default.createElement("div",{className:"logger-row"},r.default.createElement(l.default,{systemMode:this.state.systemMode,devMode:this.state.devMode,perfMode:this.state.perfMode}))),r.default.createElement("div",{className:"logger-row"},r.default.createElement("div",{className:"filter-logic "},r.default.createElement("div",{className:"fsbl-logger-button-group-label"},"Filter Logic"),r.default.createElement("div",{className:"fsbl-logger-button-group fsbl-logger-buttons"},r.default.createElement(a.default,{className:"fsbl-logger-toggle",active:"AND"===this.state.filter.logic,onClick:this.setFilterLogicAnd},"AND"),r.default.createElement(a.default,{className:"fsbl-logger-toggle",active:"OR"===this.state.filter.logic,onClick:this.setFilterLogicOr},"OR")))),r.default.createElement("div",{className:"logger-row"},r.default.createElement("div",{style:{margin:"2px 10px"},className:""},r.default.createElement("input",{className:"filter filter-0",type:"text",placeholder:"Filter 1",value:this.state.highLight1.str,onChange:this.highLight1}),r.default.createElement("input",{className:"filter filter-1",type:"text",placeholder:"Filter 2",value:this.state.highLight2.str,onChange:this.highLight2}),r.default.createElement("input",{className:"filter filter-2",type:"text",placeholder:"Filter 3",value:this.state.highLight3.str,onChange:this.highLight3}),r.default.createElement("input",{className:"filter filter-3",type:"text",placeholder:"Filter 4",value:this.state.highLight4.str,onChange:this.highLight4}))))}}t.default=d},99074:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(89526)),i=l(n(28113)),o=l(n(65222)),a=l(n(59898)),s=l(n(8393));function l(e){return e&&e.__esModule?e:{default:e}}function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}class c extends r.Component{constructor(){super(),this.state={visible:!0},this.toggleVisibility=this.toggleVisibility.bind(this)}toggleVisibility(){this.setState({visible:!this.state.visible})}render(){let e="left-panel-accordion ";this.props.className&&(e+=this.props.className);let t="left-panel-accordion-content";return this.state.visible&&(t=`${t} visible `),r.default.createElement("div",{className:e},r.default.createElement("div",{onClick:this.toggleVisibility,className:"left-panel-accordion-label-wrap"},r.default.createElement("span",{className:"left-panel-accordion-visiblity-indicator"},this.state.visible&&r.default.createElement("span",{className:"ff-arrow-down"}," ▼"),!this.state.visible&&r.default.createElement("span",{className:"ff-arrow-up"}," ▶")),this.props.label),r.default.createElement("div",{className:t},this.state.visible&&this.props.children))}}class d extends r.Component{render(){return r.default.createElement("div",{className:"left-panel"},r.default.createElement(a.default,null),r.default.createElement(c,{label:"Settings"},r.default.createElement(s.default,null)),r.default.createElement(c,{label:"Filters"},r.default.createElement(o.default,null)),r.default.createElement(c,{className:"client-list-accordion",label:"Components and Services"},r.default.createElement(i.default,{fileMode:this.props.fileMode})))}}var f=d;t.default=f},59898:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(89526)),i=a(n(66125)),o=a(n(29581));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}class l extends r.Component{render(){return r.default.createElement("div",{className:"quick-views logger-row"},"Quick views",r.default.createElement("div",{className:"fsbl-logger-buttons"},r.default.createElement(i.default,{title:"CTRL+ALT+E",className:"logger-button-margin-left",onClick:o.default.configureLoggerForErrors},"Errors Only"),r.default.createElement(i.default,{title:"CTRL+ALT+D",className:"logger-button-margin-left",onClick:o.default.configureLoggerForDefaults},"Default"),r.default.createElement(i.default,{title:"CTRL+ALT+S",className:"logger-button-margin-left",onClick:o.default.configureLoggerForFieldCapture},"Finsemble Support")))}}var u=l;t.default=u},8393:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(89526)),i=a(n(66125)),o=a(n(29581));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}class l extends r.Component{constructor(){super(),this.state={showOnStartup:o.default.getShowOnStartup(),showOnError:o.default.getShowOnError()},this.getShowLoggerOnError=this.getShowLoggerOnError.bind(this),this.getShowLoggerOnStartup=this.getShowLoggerOnStartup.bind(this)}getShowLoggerOnError(){this.setState({showOnError:o.default.getShowOnError()})}getShowLoggerOnStartup(){this.setState({showOnStartup:o.default.getShowOnStartup()})}componentDidMount(){o.default.addListener("showOnStartup",this.getShowLoggerOnStartup),o.default.addListener("showOnError",this.getShowLoggerOnError)}componentWillUnmount(){o.default.removeListener("showOnStartup",this.getShowLoggerOnStartup),o.default.removeListener("showOnError",this.getShowLoggerOnError)}render(){return r.default.createElement("div",null,r.default.createElement(i.default,{className:"checkbox-row",type:"checkbox",active:this.state.showOnStartup,onClick:o.default.toggleShowOnStartup},"Open Logger on Startup"),r.default.createElement(i.default,{type:"checkbox",className:"checkbox-row",active:this.state.showOnError,onClick:o.default.toggleShowOnError},"Open Logger on Error"))}}var u=l;t.default=u},90978:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(89526)),i=a(n(66125)),o=a(n(29581));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}class l extends r.Component{constructor(e){super(e);const t=o.default.getLogState();this.state={logState:t,rowTimeDiff:o.default.getRowTimeDiff(),logCounts:o.default.getLogCounts()},this.updateRowTimeDiff=this.updateRowTimeDiff.bind(this),this.getNewDisplayState=this.getNewDisplayState.bind(this),this.loggerGetNewMessages=this.loggerGetNewMessages.bind(this)}getNewDisplayState(){const e=o.default.getLogState();this.setState({logState:e})}updateRowTimeDiff(){this.setState({rowTimeDiff:o.default.getRowTimeDiff()})}componentDidMount(){o.default.addListener("rowTimeDiffChange",this.updateRowTimeDiff),o.default.addListener("newDisplayState",this.getNewDisplayState),o.default.addListener("loggerNewMessages",this.loggerGetNewMessages)}componentWillUnmount(){o.default.removeListener("rowTimeDiffChange",this.updateRowTimeDiff),o.default.removeListener("newDisplayState",this.getNewDisplayState),o.default.removeListener("loggerNewMessages",this.loggerGetNewMessages)}loggerGetNewMessages(){this.setState({logCounts:o.default.getLogCounts()})}allToggle(){o.default.toggleDisplayAll()}errorsToggle(){o.default.toggleDisplayErrors()}warningsToggle(){o.default.toggleDisplayWarnings()}infoToggle(){o.default.toggleDisplayInfo()}logsToggle(){o.default.toggleDisplayLogs()}debugToggle(){o.default.toggleDisplayDebug()}verboseToggle(){o.default.toggleDisplayVerbose()}getRowTimeDiffClasses(){let e="fsbl-logger-row-diff";if(this.state.rowTimeDiff){let t="okay";this.state.rowTimeDiff>100&&(t="slow"),this.state.rowTimeDiff>300&&(t="very-slow"),this.state.rowTimeDiff>500&&(t="beyond-help"),e=`${e} fsbl-logger-row-diff-${t}`}return e}top(){o.default.setTop()}bottom(){o.default.setBottom()}render(){const e=this.getRowTimeDiffClasses();return r.default.createElement("div",{id:"log-level-filters",className:"right-panel-controls logger-row",style:{justifyContent:"space-between",paddingTop:"5px",paddingBottom:"5px"}},r.default.createElement("div",{className:"flex-column",style:{marginRight:"15px"}},r.default.createElement("div",{className:"fsbl-logger-button-group-label"},"Log Levels"),r.default.createElement("div",{className:"fsbl-logger-button-group fsbl-logger-buttons"},r.default.createElement(i.default,{className:"fsbl-logger-toggle fsbl-logger-../LoggerButton",type:"../LoggerButton",onClick:this.allToggle},"All"),r.default.createElement(i.default,{className:"fsbl-logger-toggle",active:this.state.logState.Error,onClick:this.errorsToggle},"Error"),r.default.createElement(i.default,{className:"fsbl-logger-toggle",active:this.state.logState.Warn,onClick:this.warningsToggle},"Warning"),r.default.createElement(i.default,{className:"fsbl-logger-toggle",active:this.state.logState.Log,onClick:this.logsToggle},"Log"),r.default.createElement(i.default,{className:"fsbl-logger-toggle",active:this.state.logState.Info,onClick:this.infoToggle},"Info"),r.default.createElement(i.default,{className:"fsbl-logger-toggle",active:this.state.logState.Debug,onClick:this.debugToggle},"Debug"),r.default.createElement(i.default,{className:"fsbl-logger-toggle",active:this.state.logState.Verbose,onClick:this.verboseToggle},"Verbose")),r.default.createElement("div",{className:"fsbl-logger-button-group-label"},r.default.createElement("b",null,this.state.logCounts.display)," of  ",r.default.createElement("b",null,this.state.logCounts.master),"  lines visible")),r.default.createElement("div",{className:"delta-box-wrapper flex-column"},r.default.createElement("div",{className:"fsbl-logger-button-group-label"},"Delta"),r.default.createElement("div",{className:"fsbl-logger-buttons"},r.default.createElement("div",{className:e},null!==this.state.rowTimeDiff?this.state.rowTimeDiff:"N/A"))),r.default.createElement("div",{className:"flex-column pull-right"},r.default.createElement("div",{className:"fsbl-logger-button-group fsbl-logger-buttons"},r.default.createElement(i.default,{onClick:this.top,title:"Ctrl+Up"},"Scroll Top"),r.default.createElement(i.default,{onClick:this.bottom,title:"Ctrl+Down"},"Scroll Bottom"),r.default.createElement(i.default,{title:"CTRL+ALT+X",className:"fsbl-logger-button-negative",onClick:o.default.clearData},"Clear Data"))))}}var u=l;t.default=u},33452:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(89526)),i=d(n(38745)),o=n(34255),a=d(n(29581)),s=d(n(90611)),l=d(n(70594)),u=n(51865),c=d(n(5445));function d(e){return e&&e.__esModule?e:{default:e}}const f="This log happened after the next log in the list.",h=()=>{const e=u.IconMap.Error;return r.default.createElement(e,{title:f})};Date.prototype.YYYYMMDDHHMMSS=function(){function e(e){return(e<10?"0":"")+e}return`${e(this.getHours())}:${e(this.getMinutes())}:${e(this.getSeconds())}:${t=this.getMilliseconds(),t<10?`00${t}`:t<100?`0${t}`:t}`;var t},n(49434);const p="fsbl-log-message fsbl-plaintext-message-wrapper console-message-wrapper",g={Verbose:`${p} fsbl-log-verbose`,Log:`${p} console-log-level`,Info:`${p} console-info-level`,Debug:`${p} console-debug-level`,Warn:`${p} console-warning-level`,Error:`${p} console-error-level`},m=new o.CellMeasurerCache({defaultHeight:50,fixedWidth:!0});let v;function y(e){v=e,window.ListRef=v}class w extends r.default.Component{constructor(e){super(e),this.update=!1,this.ctrl=!1,this.state={tableWidth:100,tableHeight:100,logCounts:a.default.getLogCounts(),registeredClients:a.default.getRegisteredClients(),searchBoxIsVisible:a.default.getShowSearchBox(),searchBoxText:a.default.getSearchBoxString(),filterStrings:this.getFilterStrings(!0),allowedLogLevels:a.default.getLogState(),allClientVisibility:a.default.getAllShowClientState(),firstMessageTime:a.default.getFirstMessageTime(),activeRowTimestamp:0,activeRowIndex:null,clientListVisible:a.default.getClientListVisible(),comparisonRows:[]},this.getRegisteredClients=this.getRegisteredClients.bind(this),this.updateActiveRowState=this.updateActiveRowState.bind(this),this.windowResize=this.windowResize.bind(this),this.rowRenderer=this.rowRenderer.bind(this),this.onRowClicked=this.onRowClicked.bind(this),this.setSearchBoxIsVisible=this.setSearchBoxIsVisible.bind(this),this.updateSearchBoxText=this.updateSearchBoxText.bind(this),this.getFilterStrings=this.getFilterStrings.bind(this),this.setFirstMessageTime=this.setFirstMessageTime.bind(this),this.setBottom=this.setBottom.bind(this),this.setActiveRowTimestamp=this.setActiveRowTimestamp.bind(this),this.scrollToActiveRow=this.scrollToActiveRow.bind(this),this.addToRowDiff=this.addToRowDiff.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.onActiveRowChanged=this.onActiveRowChanged.bind(this),window.consoleComponent=this}componentDidMount(){v.recomputeRowHeights(),a.default.addListener("loggerNewMessages",this.updateActiveRowState),a.default.addListener("newShowClientState",this.updateActiveRowState),a.default.addListener("showSearchBoxChange",this.setSearchBoxIsVisible),a.default.addListener("searchBoxTextChange",this.updateSearchBoxText),a.default.addListener("activeRowChanged",this.onActiveRowChanged),a.default.addListener("NewHighlightValues1",this.getFilterStrings),a.default.addListener("NewHighlightValues2",this.getFilterStrings),a.default.addListener("NewHighlightValues3",this.getFilterStrings),a.default.addListener("NewHighlightValues4",this.getFilterStrings),a.default.addListener("rerenderList",this.rerenderList),a.default.addListener("recalculateHeight",this.recalculateAllRows),a.default.addListener("newFirstMessageTime",this.setFirstMessageTime),a.default.addListener("SetTop",this.setTop),a.default.addListener("SetBottom",this.setBottom),a.default.addListener("scrollToActiveRow",this.scrollToActiveRow),a.default.addListener("newShowClientState",this.getRegisteredClients),window.addEventListener("keydown",this.onKeyDown),window.addEventListener("keyup",this.onKeyUp)}componentWillUnmount(){a.default.removeListener("loggerNewMessages",this.updateActiveRowState),a.default.removeListener("newShowClientState",this.updateActiveRowState),a.default.removeListener("showSearchBoxChange",this.setSearchBoxIsVisible),a.default.removeListener("activeRowChanged",this.onActiveRowChanged),a.default.removeListener("searchBoxTextChange",this.updateSearchBoxText),a.default.removeListener("NewHighlightValues1",this.getFilterStrings),a.default.removeListener("NewHighlightValues2",this.getFilterStrings),a.default.removeListener("NewHighlightValues3",this.getFilterStrings),a.default.removeListener("NewHighlightValues4",this.getFilterStrings),a.default.removeListener("rerenderList",this.rerenderList),a.default.removeListener("recalculateHeight",this.recalculateAllRows),a.default.removeListener("newFirstMessageTime",this.setFirstMessageTime),a.default.removeListener("SetTop",this.setTop),a.default.removeListener("SetBottom",this.setBottom),a.default.removeListener("scrollToActiveRow",this.scrollToActiveRow),a.default.removeListener("newShowClientState",this.getRegisteredClients),window.removeEventListener("keydown",this.onKeyDown),window.removeEventListener("keyup",this.onKeyUp)}getRegisteredClients(){this.setState({registeredClients:a.default.getRegisteredClients()})}setFirstMessageTime(){this.setState({firstMessageTime:a.default.getFirstMessageTime()})}getFilterStrings(e=!1){let t=a.default.getFilterStrings();if(t=t.map((e=>e.str.split(" "))),e)return t;this.setState({filterStrings:t})}updateSearchBoxText(){this.setState({searchBoxText:a.default.getSearchBoxString()})}setSearchBoxIsVisible(){this.setState({searchBoxIsVisible:a.default.getShowSearchBox()})}setActiveRowTimestamp(e){this.setState({activeRowTimestamp:e,activeRowIndex:this.getActiveRowIndex(e)})}windowResize(){const e=a.default.getWindowWidth(),t=a.default.getWindowHeight(),n=document.querySelector("#message-list"),r=n?n.getBoundingClientRect().top:600,i=Math.abs(t-r-5);this.update=!0,this.setState({tableWidth:e,tableHeight:i})}updateActiveRowState(){this.update=!0,this.setState({activeRowIndex:this.getActiveRowIndex()})}typeStyle(e){let t;return t="Error"==e?{color:"red"}:"Warn"==e?{color:"#D4A017"}:"Debug"==e?{color:"blue"}:"Verbose"==e?{color:"darkblue"}:{color:"black"},t}onActiveRowChanged(){const e=a.default.getActiveRowIndex();this.setState({comparisonRows:[],activeRowIndex:e},(()=>{this.scrollToActiveRow();const t=a.default.getFilteredLog();t[e]&&this.setActiveRowTimestamp(t[e].logTimestamp),this.addToRowDiff(e)}))}onRowClicked(e=0){m.clear(e),this.setActiveRowTimestamp(a.default.getFilteredLog()[e].logTimestamp),this.addToRowDiff(e),v.recomputeRowHeights(e)}recalculateAllRows(){m.clearAll(),v.recomputeRowHeights()}rerenderList(){m.clearAll(),v.forceUpdate()}scrollToActiveRow(){null!==this.state.activeRowIndex&&void 0!==this.state.activeRowIndex&&(v.recomputeRowHeights(this.state.activeRowIndex),v.scrollToRow(this.state.activeRowIndex))}setTop(){v.scrollToRow(0)}setBottom(){const e=a.default.getFilteredLog();e.length>0&&(v.recomputeRowHeights(e.length-1),v.scrollToRow(e.length-1))}openClient(e,t=null){a.default.openClient(e,t)}addToRowDiff(e){const t=a.default.getFilteredLog();let n=t[e],r=this.state.comparisonRows.filter((e=>void 0!==e)),i=null;this.state.comparisonRow&&this.ctrl?(1==r.length?r.push(e):r=[e],n=this.state.comparisonRow):r=[e],2===r.length&&(i=Math.abs(t[r[0]].timeElapsedFromStartup-t[r[1]].timeElapsedFromStartup)),a.default.setRowTimeDiff(i),this.update=!0,this.setState({comparisonRow:n,comparisonRows:r})}getLogContent(e,t){let n="highlighted-message";return"string"==typeof e&&e.includes("Stack")&&(n=`${n} message-log-stack`),r.default.createElement("span",{key:t,className:n},r.default.createElement(c.default,{index:t,className:n,str:e,filterStrings:this.state.filterStrings,searchBoxText:this.state.searchBoxText})," ")}rowRenderer({index:e,key:t,parent:n,style:i}){const c=a.default.getFilteredLog(),d=c[e];let p=null,y=this.state.registeredClients[d.logClientName];y&&y.viewId&&(p=y.viewId);const w=c[e+1];let b=!1;if(w&&d.logTimestamp>w.logTimestamp&&(b=!0),!d)return null;if(d.previousRowTimeDelta=0,d.timeElapsedFromStartup=Math.round(d.logTimestamp-this.state.firstMessageTime),e>0){const t=c[e-1];t&&(d.previousRowTimeDelta=d.timeElapsedFromStartup-t.timeElapsedFromStartup)}const _={...i};_.wordBreak="break-all",_.display="flex",_.alignItems="center",_.justifyContent="space-between",_.fontFamily="Consolas, Lucida Console, Courier New, monospace",_.padding="3px",_.width="calc(100% - 8px)";const S=u.IconMap[d.logType];let C=g[d.logType];e===this.state.activeRowIndex&&(C=`${C} active-console-row`),this.state.comparisonRows.includes(e)&&(C=`${C} fsbl-logger-row-selected`);const x=b?"time-elapsed out-of-order":"time-elapsed",E=r.default.createElement("div",{onContextMenu:()=>{m.clear(e),v.recomputeRowHeights(e)},onClick:()=>{this.onRowClicked(e)},style:_,className:C,key:t},r.default.createElement(S,null),b&&r.default.createElement(h,null),r.default.createElement("div",{title:b?f:"",className:x},new Date(d.logTimestamp).YYYYMMDDHHMMSS()),r.default.createElement("div",{className:"console-message-text fsbl-plaintext-log-message",style:{width:"100%"}},d.parsedLogArgs.map(((e,t)=>"object"==typeof e?r.default.createElement("span",{key:t,style:{display:"inline-block !important",marginRight:"10px"}},r.default.createElement(s.default,{filterStrings:this.state.filterStrings||[],searchBoxText:this.state.searchBoxText,theme:l.default,data:e})):this.getLogContent(e,t)))),r.default.createElement("div",{className:"fsbl-plaintext-extra-info",onClick:()=>{this.openClient(y.name,p)}},d.logClientName));return r.default.createElement(o.CellMeasurer,{cache:m,columnIndex:0,key:t,parent:n,rowIndex:e},E)}shouldComponentUpdate(){let e=!1;return"visible"===a.default.getWindowVisibility()&&(e=!0),e}getActiveRowIndex(e=this.state.activeRowTimestamp){const t=a.default.getFilteredLog();for(let n=0;n<t.length;n++)if(t[n].logTimestamp===e)return n;return null}onKeyDown(e){this.ctrl=e.ctrlKey}onKeyUp(){this.ctrl=!1}render(){m.clearAll();let e=document.getElementById("log-level-filters")?document.getElementById("log-level-filters").offsetHeight:63;return this.state.searchBoxIsVisible&&(e+=20),r.default.createElement(i.default,null,(({width:t,height:n})=>r.default.createElement("div",{style:{width:`${t}px`}},r.default.createElement(o.List,{id:"log-console",ref:y,height:n-e,width:t,overscanRowCount:0,noRowsRenderer:()=>null,rowCount:a.default.getFilteredLog().length,deferredMeasurementCache:m,rowHeight:m.rowHeight||20,rowRenderer:this.rowRenderer}))))}}t.default=w},99563:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(89526)),i=l(n(90978)),o=l(n(33452)),a=l(n(19574)),s=l(n(29581));function l(e){return e&&e.__esModule?e:{default:e}}function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}class c extends r.Component{constructor(){super(),this.state={showSearchBox:s.default.getShowSearchBox()},this.setShowSearchBox=this.setShowSearchBox.bind(this)}componentDidMount(){s.default.addListener("showSearchBoxChange",this.setShowSearchBox)}componentWillUnmount(){s.default.removeListener("showSearchBoxChange",this.setShowSearchBox)}setShowSearchBox(){this.setState({showSearchBox:s.default.getShowSearchBox()})}render(){return r.default.createElement("div",{className:"right-panel"},r.default.createElement(i.default,null),r.default.createElement(o.default,null),r.default.createElement(a.default,{show:this.state.showSearchBox}))}}var d=c;t.default=d},51865:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IconMap=t.NoIcon=t.WarnIcon=t.InfoIcon=t.ErrorIcon=void 0;var r,i=(r=n(89526))&&r.__esModule?r:{default:r};class o extends i.default.PureComponent{constructor(e){super(e)}render(){return i.default.createElement("span",{is:"ui-icon",class:"message-level-icon spritesheet-smallicons smallicon-error",title:this.props.title||"Error",style:{backgroundPosition:"-40px 70px",width:"10px",height:"10px",marginRight:"5px"}})}}t.ErrorIcon=o;class a extends i.default.PureComponent{constructor(){super()}render(){return i.default.createElement("span",{is:"ui-icon",class:"message-level-icon spritesheet-smallicons smallicon-info",style:{backgroundPosition:"-40px 50px",width:"10px",height:"10px",marginRight:"5px"}})}}t.InfoIcon=a;class s extends i.default.PureComponent{constructor(){super()}render(){return i.default.createElement("span",{is:"ui-icon",class:"message-level-icon spritesheet-smallicons smallicon-warning",style:{backgroundPosition:"-60px 10px",width:"10px",height:"10px",marginRight:"5px"}})}}t.WarnIcon=s;class l extends i.default.PureComponent{constructor(){super()}render(){return i.default.createElement("span",{style:{width:"10px",height:"10px",marginRight:"5px"}})}}t.NoIcon=l;const u={Error:o,Warn:s,Info:a,Debug:l,Log:l,Verbose:l};t.IconMap=u},5445:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.findAll=t.fillInChunks=t.findChunks=t.combineChunks=void 0;var r,i=(r=n(89526))&&r.__esModule?r:{default:r};const o=({chunks:e})=>e.sort(((e,t)=>e.start-t.start)).reduce(((e,t)=>{if(0===e.length)return[t];const n=e.pop();if(t.start<=n.end){const r=Math.max(n.end,t.end);e.push({start:n.start,end:r,rawSearch:[t.rawSearch,n.rawSearch],searchWord:[t.searchWord,n.searchWord]})}else e.push(n,t);return e}),[]);function a(e){return e}t.combineChunks=o;const s=({autoEscape:e=!0,caseSensitive:t=!1,sanitize:n=a,searchWords:r,textToHighlight:i})=>(i=n(i),r.filter((e=>e)).reduce(((r,o)=>{Array.isArray(o)&&(o=o.join(" "));const a=o;o=n(o),e&&(o=o.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")),o=o.replace(/\s/g,"|");const s=new RegExp(o,t?"g":"gi");let l;for(;l=s.exec(i);){const e=l.index,t=s.lastIndex;t>e&&r.push({start:e,end:t,searchWord:o,rawSearch:a}),l.index==s.lastIndex&&s.lastIndex++}return r}),[]));t.findChunks=s;const l=({chunksToHighlight:e,totalLength:t})=>{const n=[],r=(e,t,r,i,o)=>{t-e>0&&n.push({start:e,end:t,highlight:r,searchWord:i,rawSearch:o})};if(0===e.length)r(0,t,!1);else{let n=0;e.forEach((e=>{r(n,e.start,!1,e.searchWord,e.rawSearch),r(e.start,e.end,!0,e.searchWord,e.rawSearch),n=e.end})),r(n,t,!1)}return n};t.fillInChunks=l;const u=({autoEscape:e=!0,caseSensitive:t=!1,findChunks:n=s,sanitize:r=(e=>e),searchWords:i,textToHighlight:a})=>l({chunksToHighlight:o({chunks:n({autoEscape:e,caseSensitive:t,sanitize:r,searchWords:i,textToHighlight:a})}),totalLength:a?a.length:0});t.findAll=u;class c extends i.default.PureComponent{constructor(e){super(e)}render(){let{searchBoxText:e,filterStrings:t,str:n}=this.props;const r=n.toString();t||(t=[]);const o=[e].concat(t).filter((e=>""!==e)),a={searchBox:e};t=t.map((e=>Array.isArray(e)?e.join(" "):e)),Object.keys(t).forEach((e=>{a[e]=t[e]}));const s=u({autoEscape:!0,caseSensitive:!1,searchWords:o,textToHighlight:r});return i.default.createElement("span",{key:this.props.index,className:this.props.className},s.map(((e,t)=>{const n=r.substr(e.start,e.end-e.start);let o="";return Array.isArray(e.rawSearch)||(e.rawSearch=[e.rawSearch]),e.highlight&&Object.keys(a).forEach((t=>{e.rawSearch.includes(a[t])&&(o=`${o} match-${t}`)})),o.trim().includes(" ")&&(o="multiple-matches"),i.default.createElement("i",{className:o,key:t},n)})))}}t.default=c},35053:(e,t,n)=>{var r=n(60352),i=n(18393),o=n(49914);t=r(!1);var a=i(o);t.push([e.id,'/* Roboto regular */\n\n@font-face {\n\tfont-family: "Roboto";\n\tsrc: url("/Roboto-Regular.eot");\n\tsrc: url("/Roboto-Regular.eot?#iefix") format("embedded-opentype"), url("/Roboto-Regular.woff2") format("woff2"),\n\t\turl("/Roboto-Regular.woff") format("woff"), url("/Roboto-Regular.ttf") format("truetype");\n\tfont-weight: 400;\n\tfont-style: normal;\n}\n\n/* Roboto italic */\n\n@font-face {\n\tfont-family: "Roboto";\n\tsrc: url("/Roboto-Italic.eot");\n\tsrc: url("/Roboto-Italic.eot?#iefix") format("embedded-opentype"), url("/Roboto-Italic.woff2") format("woff2"),\n\t\turl("/Roboto-Italic.woff") format("woff"), url("/Roboto-Italic.ttf") format("truetype");\n\tfont-weight: 400;\n\tfont-style: italic;\n}\n\n/* Roboto bold */\n\n@font-face {\n\tfont-family: "Roboto";\n\tsrc: url("/Roboto-Bold.eot");\n\tsrc: url("/Roboto-Bold.eot?#iefix") format("embedded-opentype"), url("/Roboto-Bold.woff2") format("woff2"),\n\t\turl("/Roboto-Bold.woff") format("woff"), url("/Roboto-Bold.ttf") format("truetype");\n\tfont-weight: 700;\n\tfont-style: normal;\n}\n\n:root {\n\t--core-primary: #22262f;\n\t--core-primary-opacity: rgb(34, 38, 47, 0.4);\n\t--core-primary-1: #171a20;\n\t--core-primary-2: #373b43;\n\t--core-primary-3: #3d4455;\n\t--core-primary-4: #5b606f;\n\t--core-primary-5: #acb2c0;\n\n\t--accent-primary: #42a5ba;\n\t--accent-primary-1: #36788b;\n\n\t--accent-positive: #2cc13f;\n\t--accent-positive-1: #27ae38;\n\n\t--accent-aware: #f5a623;\n\t--accent-aware-1: #dc951f;\n\n\t--accent-negative: #f26666;\n\t--accent-negative-1: #da5c5c;\n\n\t--scrollbar-color: var(--core-primary-5);\n\n\t--slate1: var(--core-primary-5);\n\t--slate2: var(--core-primary-5);\n\t--slate3: var(--core-primary-4);\n\t--slate4: var(--core-primary-3);\n\t--slate5: var(--core-primary-2);\n\t--slate6: var(--core-primary);\n\t--slate7: var(--core-primary-1);\n\t--gray1: #eee;\n\t--gray2: #ddd;\n\t--gray3: #ccc;\n\t--gray4: #bbb;\n\t--gray5: #999;\n\t--gray6: #777;\n\t--gray7: #555;\n\t--blue1: var(--accent-primary-1);\n\t--blue2: var(--accent-primary-1);\n\t--blue3: var(--accent-primary-1);\n\t--blue4: var(--accent-primary);\n\t--blue5: var(--accent-primary);\n\t--blue6: var(--accent-primary-1);\n\t--blue7: var(--accent-primary-1);\n\t--yellow1: var(--accent-aware);\n\t--yellow2: var(--accent-aware);\n\t--yellow3: var(--accent-aware);\n\t--yellow4: var(--accent-aware);\n\t--yellow5: var(--accent-aware-1);\n\t--yellow6: var(--accent-aware-1);\n\t--yellow7: var(--accent-aware-1);\n\t--red1: var(--accent-negative);\n\t--red2: var(--accent-negative);\n\t--red3: var(--accent-negative);\n\t--red4: var(--accent-negative);\n\t--red5: var(--accent-negative-1);\n\t--red6: var(--accent-negative-1);\n\t--red7: var(--accent-negative-1);\n\t--slate: var(--slate4);\n\t--gray: var(--gray4);\n\t--blue: var(--blue4);\n\t--yellow: var(--yellow4);\n\t--red: var(--red4);\n\n\t--collar-background-color: var(--core-primary);\n\t--collar-border-color: #dadada;\n\t--left-panel-background-color: var(--core-primary-2);\n\t--leftNav-background-color: var(--core-primary);\n\n\t--active-logger-button-background: var(--accent-primary);\n\t--basic-button-background-color: var(--gray1);\n\t--basic-button-font-color: black;\n\t--button-border-color: var(--active-logger-button-background);\n\t--accordion-label-color: var(--collar-background-color);\n\t--logger-row-border-color: var(--accordion-label-color);\n\t--inactive-logger-button-background: var(--basic-button-background-color);\n\t--toggle-button-font-color: var(--gray1);\n\t--toggle-button-background-color: var(--core-primary-4);\n\t--accordion-label-wrap-height: 30px;\n\n\t--match-0: var(--core-primary-5);\n\t--match-1: var(--accent-primary-1);\n\t--match-2: var(--accent-aware);\n\t--match-3: var(--accent-positive);\n}\n* {\n\tbox-sizing: border-box;\n}\nhtml {\n\theight: 100%;\n}\n\nbody {\n\toverflow: hidden;\n\tmargin: 10px;\n\theight: 100%;\n\twidth: 100%;\n\tfont-family: "Roboto medium, sans-serif";\n\tfont-size: 11px;\n}\n\ntitle {\n\tfont-family: "Roboto";\n\tfont-size: 18pt;\n}\n\n.hidden {\n\tdisplay: none !important;\n}\n\n.fsbl-logger-button.fsbl-logger-button-negative,\n.fsbl-logger-button-negative {\n\tbackground-color: var(--accent-negative);\n\tcolor: white;\n}\n\n.fsbl-logger-button.fsbl-logger-button-negative:hover {\n\tbackground-color: var(--accent-negative-1);\n\tcolor: white;\n}\n\n.fsbl-logger-button {\n\ttext-align: center;\n\tfont-size: 1em;\n\tmargin: 2px;\n\tdisplay: inline-block;\n\tpadding: 2px 4px;\n\tborder-radius: 3px;\n\tbackground-color: var(--basic-button-background-color);\n\tcolor: var(--basic-button-font-color);\n\tcursor: pointer;\n\tfont-weight: 400;\n}\n\n.flex-column {\n\tdisplay: flex;\n\tflex-direction: column;\n}\n\n.inline-flex-column {\n\tdisplay: inline-flex;\n\tflex-direction: column;\n}\n\n.filter-logic {\n\tmargin-right: 18px;\n}\n\n.fsbl-logger-searchbox {\n\tdisplay: flex;\n\tposition: absolute;\n\tbottom: 0;\n\tbackground-color: var(--gray1);\n\twidth: 100%;\n\tz-index: 100;\n\talign-items: center;\n}\n\n.fsbl-logger-searchbox > div {\n\tdisplay: flex;\n}\n\n/*forces log stacks onto a new line/ */\n\n.message-log-stack {\n\tdisplay: block !important;\n}\n\n.search-box-input-wrapper {\n\theight: 18px;\n}\n\n.search-box-match-navigators {\n\tmargin-right: 0.5em;\n\tdisplay: flex;\n}\n\n.search-box-match-navigators > span,\n.search-box-cancel-button > span {\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-self: center;\n\tborder: 1px solid var(--collar-border-color);\n\tbackground-color: var(--inactive-logger-button-background);\n\twidth: 25px;\n\tjustify-content: center;\n\tcursor: pointer;\n\tcolor: #848383;\n\tfont-size: 8px;\n\theight: 100%;\n\talign-items: center;\n}\n\n.search-box-cancel-button {\n\tmargin-left: auto;\n}\n\n.search-box-cancel-button > span {\n\tbackground-color: white;\n\tpadding: 0px 4px;\n}\n\n.search-box-match-navigators > span:hover,\n.search-box-cancel-button > span:hover {\n\tbackground-color: gainsboro;\n\tcolor: black;\n}\n\n.search-box-cancel-button > span {\n\twidth: 100%;\n\tfont-size: 12px;\n}\n\n.search-box-match-text {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tcolor: gray;\n\tbackground-color: white;\n}\n\n.search-box-text-input input {\n\tborder: 0px;\n\theight: 16px;\n}\n\n.search-box-text-input {\n\tborder: 1px solid var(--collar-border-color);\n}\n\n.fsbl-plaintext-log-message span {\n\tdisplay: inline-block;\n\twhite-space: pre-wrap;\n}\n\n.fsbl-logger-row-index {\n\ttext-align: right;\n}\n\n.fsbl-logger-button-group-label {\n\tdisplay: flex;\n\tmargin: 0.5em 0;\n\tfont-weight: 500;\n}\n\n.fsbl-log-message {\n\tuser-select: auto;\n\tword-break: break-all;\n}\n\n.fsbl-logger-highlight {\n\tbackground-color: #38ff03 !important;\n}\n\n.fsbl-logger-search-highlight {\n\tbackground-color: yellow !important;\n}\n\n.fsbl-logger-row-selected {\n\tbackground-color: rgba(0, 126, 255, 0.24) !important;\n\tborder-top: 2px solid;\n}\n\n.console-debug-level {\n\tcolor: blue;\n}\n\n.fsbl-log-info {\n\tcolor: #2b8686;\n\tbackground-color: #e9fbfb;\n\tborder-bottom: 1px solid #d2fbfb;\n}\n\n.fsbl-log-warning {\n\tcolor: #5c3b00;\n\tbackground-color: #fffbe6;\n\tborder: 1px solid #fff5c2;\n}\n\n.fsbl-log-error {\n\tbackground-color: #fff0f0;\n\tborder: 1px solid #ffd7d7;\n\tcolor: #ff0000;\n}\n\n.fsbl-log-verbose {\n\tcolor: gray;\n}\n\n.pull-right {\n\tmargin-left: auto;\n\talign-self: center;\n}\n\n.fsbl-logger-client-row,\n.logger-row {\n\tdisplay: flex;\n\tflex-direction: row;\n\talign-items: center;\n\tjustify-content: space-between;\n}\n\n.fsbl-logger-client-row {\n\tmargin: 3px 0;\n}\n\n.filter-client-list {\n\tmargin-left: 6px;\n}\n\n.fsbl-logger-client-name {\n\tflex-basis: 45%;\n\tdisplay: flex;\n\talign-content: center;\n\talign-items: center;\n}\n\n.fsbl-logger-client-name-label {\n\tmax-width: 25ch;\n\ttext-overflow: ellipsis;\n\toverflow: hidden;\n\twhite-space: nowrap;\n\tcursor: pointer;\n}\n\n.logger-client-list--full-names .fsbl-logger-client-name-label {\n\tmax-width: 100%;\n\twhite-space: normal;\n}\n\n.fsbl-logger-client-label {\n\twhite-space: nowrap;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twidth: 100%;\n}\n\n.fsbl-logger-client-list-actions {\n\tflex-basis: 45%;\n}\n\n.time-elapsed {\n\tcolor: gray;\n\twidth: 85px;\n\tjustify-content: flex-start;\n\tdisplay: inline-flex;\n\tmargin-right: 5px;\n\talign-self: flex-start;\n}\n\n.time-elapsed.out-of-order {\n\tcolor: var(--accent-negative-1);\n}\n\n.fsbl-logger-button {\n\tborder: 1px solid transparent;\n}\n\n.fsbl-logger-button.active {\n\tbackground-color: var(--active-logger-button-background) !important;\n\tcolor: white !important;\n}\n\n.fsbl-logger-button.active:hover {\n\tbackground-color: var(--accent-primary-1) !important;\n\tcolor: white !important;\n}\n\n.fsbl-logger-button:hover {\n\tbackground-color: var(--gray3);\n\ttransition: 0.1s ease;\n}\n\n.fsbl-logger-toggle:hover {\n\tbackground: var(--active-logger-button-background);\n\tcolor: white;\n\ttransition: 0.1s ease;\n}\n.fsbl-logger-toggle {\n\tcolor: var(--toggle-button-font-color);\n\tbackground-color: var(--toggle-button-background-color);\n}\n.fsbl-logger-button i {\n\tvertical-align: middle;\n\tmargin: 0 6px;\n}\n\n.fsbl-log {\n\tfont-family: Consolas;\n\tfont-size: 1.1em;\n\tuser-select: initial;\n}\n\n.delta-box-wrapper {\n\tmargin-left: 12px;\n}\n\n.fsbl-logger-row-diff {\n\tfont-size: 1.1em;\n\tbackground-color: gainsboro;\n\tpadding: 0.25em;\n\ttext-align: center;\n\tfont-weight: 400;\n}\n\n.logger-button-margin-left {\n\tmargin-left: 6px;\n}\n\n.fsbl-logger-row-diff-okay {\n\tbackground-color: green;\n\tcolor: white;\n}\n\n.top-collar {\n\tbackground-color: var(--collar-background-color);\n\tmargin-bottom: 0px;\n\twidth: 100%;\n}\n\n.top-border {\n\tmargin-top: 8px;\n\tborder-top: 1px solid var(--collar-border-color);\n}\n\n.top-collar .fsbl-logger-button {\n\tborder: 0px;\n\tbox-shadow: none;\n\tbackground-color: transparent;\n\tmargin-top: 0px;\n\tmargin-bottom: 0px;\n\tpadding: 0.5em;\n\tcolor: var(--core-primary-5);\n}\n\n.top-collar .fsbl-logger-button:hover {\n\tbackground-color: var(--core-primary-2);\n\tcolor: white;\n}\n\n.fsbl-logger-row-diff-slow {\n\tbackground-color: #ffe900;\n\tcolor: #5a5a5a;\n}\ni,\ni:before,\ni:after,\n.fsbl-window-manager-icon {\n\tbox-sizing: content-box;\n}\n\n.fsbl-logger-row-diff-very-slow {\n\tbackground-color: orange;\n\tcolor: white;\n}\n\n.fsbl-logger-row-diff-beyond-help {\n\tbackground-color: red;\n\tcolor: white;\n}\n\n.fsbl-plaintext-message-wrapper {\n\tborder-top: 1px solid transparent;\n\tborder-bottom: 1px solid #f0f0f0;\n\tpadding: 0.5em;\n\talign-self: flex-start;\n\tpadding-left: 0.5em;\n}\n\n.active-console-row {\n\tborder-top: 1px solid #aeaef1;\n\tborder-bottom: 1px solid #aeaef1 !important;\n\tbackground-color: #e7f3fd;\n}\n\n.fsbl-plaintext-log-message {\n\tflex: 1 1;\n\tuser-select: text;\n}\n\n.fsbl-plaintext-message {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n}\n\n.fsbl-plaintext-extra-info {\n\tmax-width: 300px;\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\twhite-space: nowrap;\n\ttext-decoration: underline;\n\tcursor: pointer;\n\tmargin-left: 10px;\n}\n\n.fsbl-plaintext-number {\n\tcolor: blue;\n}\n\n.fsbl-plaintext-timestamp {\n\tcolor: blue;\n}\n\n.fixed-header {\n\tborder-bottom: 1px solid #f0f0f0;\n\tz-index: 1000;\n}\n\n.flex-start {\n\talign-self: flex-start;\n}\n\nbody.dialog input:focus {\n\tborder: 1px solid #039bff;\n}\n\nbody {\n\tmargin: 0px;\n\tfont-family: "Segoe UI", Tahoma, sans-serif;\n\tfont-weight: 400;\n\toverflow-x: hidden;\n\theight: 100%;\n\t-webkit-user-select: none;\n\tbackground-color: white;\n}\n\n.checkStyle {\n\tvertical-align: bottom;\n\theight: 14px;\n}\n\n.fsbl-logger-toggle-all-span {\n\tmargin: 50px;\n}\n\nhr {\n\twidth: 100%;\n}\n\ninput {\n\tborder: 1px solid #d0d0d0;\n\tpadding: 1px 0px 1px 5px;\n}\n\n.filter {\n\twidth: 480px;\n}\n\n.checkbox {\n\twidth: 14px;\n\theight: 14px;\n\tdisplay: inline-flex;\n\talign-content: center;\n\tborder-radius: 50%;\n\tpadding: 2px;\n\tborder: 1px solid #abc5aa;\n\tcursor: pointer;\n\tmargin-right: 5px;\n}\n\n.inline-checkbox {\n\tdisplay: inline-flex;\n}\n\n.checkbox.active > .checkbox-background,\n.checkbox:hover > .checkbox-background {\n\tbackground-color: var(--active-logger-button-background);\n}\n\n.checkbox-background {\n\tbackground-color: var(--toggle-button-background-color);\n\twidth: 100%;\n\theight: 100%;\n\tborder-radius: 50%;\n}\n\n.source-code {\n\tfont-family: monospace;\n\tfont-size: 11px !important;\n\twhite-space: pre-wrap;\n}\n\n:focus {\n\toutline-width: 0;\n}\n\nimg {\n\t-webkit-user-drag: none;\n}\n\n.match-searchBox {\n\tbackground-color: yellow;\n}\n\n[class^="filter-"] {\n\tborder-radius: 2px;\n}\n\n.filter-0 {\n\tborder: solid 2px var(--match-0);\n}\n\n.filter-1 {\n\tborder: solid 2px var(--match-1);\n}\n\n.filter-2 {\n\tborder: solid 2px var(--match-2);\n}\n\n.filter-3 {\n\tborder: solid 2px var(--match-3);\n}\n\n.match-0 {\n\tbackground-color: var(--match-0);\n\tcolor: white;\n}\n\n.match-1 {\n\tbackground-color: var(--match-1);\n\tcolor: white;\n}\n\n.match-2 {\n\tbackground-color: var(--match-2);\n\tcolor: white;\n}\n\n.match-3 {\n\tbackground-color: var(--match-3);\n}\n\n.multiple-matches {\n\tbackground-color: #795c5f;\n\tcolor: white;\n}\n\n.active-console-row .match-searchBox {\n\tbackground-color: #ffb86f;\n}\n\n.Logger {\n\tdisplay: flex;\n\tflex-direction: column;\n}\n\n.log-content {\n\tdisplay: flex;\n\tflex-direction: row;\n}\n\n.left-panel,\n.right-panel {\n\tdisplay: flex;\n\tflex-direction: column;\n}\n\n.right-panel {\n\tflex: 1 1 auto;\n\theight: calc(100vh - 26px);\n}\n\n.left-panel input {\n\tdisplay: flex;\n\tbackground-color: var(--left-panel-background-color);\n\tcolor: var(--core-primary-5);\n\tcaret-color: var(--core-primary-5);\n\theight: 26px;\n\tmargin-top: 7px;\n}\n\n.left-panel {\n\tbackground-color: var(--left-panel-background-color);\n\theight: calc(100vh - 26px);\n\tcolor: var(--gray2);\n\twidth: 530px;\n\tborder-right: 1px solid var(--collar-border-color);\n}\n\n.left-panel-accordion {\n\tdisplay: flex;\n\tflex-direction: column;\n}\n.client-list-accordion {\n\tflex: 1;\n\toverflow: hidden;\n}\n\n.left-panel-accordion-content.visible {\n\tpadding: 1em;\n\theight: calc(100% - var(--accordion-label-wrap-height));\n\toverflow: auto;\n}\n\n.left-panel-accordion-label-wrap {\n\theight: var(--accordion-label-wrap-height);\n\tfont-size: 14px;\n\tpadding: 0 0.25em;\n\tcursor: pointer;\n\tbackground-color: var(--accordion-label-color);\n\tborder-bottom: 1px solid var(--slate7);\n\tdisplay: flex;\n\tflex-direction: row;\n\talign-items: center;\n\tfont-weight: bold;\n}\n\n.left-panel-accordion-visiblity-indicator {\n\tmargin-right: 0.5em;\n}\n\n.logger-client-list {\n\tmargin-top: 1em;\n}\n.right-panel-controls {\n\tborder-bottom: 1px solid var(--collar-border-color);\n\talign-items: flex-start;\n\tpadding: 1em;\n}\n\n.logger-wrapper {\n\tborder-top: 1px solid var(--slate7);\n\tdisplay: flex;\n\tflex: 1 1;\n}\n\n.quick-views {\n\tpadding: 1em;\n}\n\n.checkbox-row {\n\tdisplay: block;\n\tcursor: pointer;\n\tmargin-top: 5px;\n}\n\n.view-switcher {\n\tdisplay: flex;\n\tflex-direction: column;\n\twidth: 50px;\n\tpadding: 0 4px;\n\tbackground-color: var(--leftNav-background-color);\n\tcolor: var(--gray5);\n\talign-items: center;\n}\n\n.view-label {\n\tfont-size: 14px;\n\tmargin: 1em 0;\n\tcursor: pointer;\n\tpadding-bottom: 4px;\n\tborder-bottom: 3px solid transparent;\n}\n\n.view-label:hover {\n\tborder-bottom: 3px solid var(--core-primary-5);\n\tcolor: white;\n}\n\n.view-label-active {\n\tcolor: var(--gray2);\n\tfont-weight: bold;\n\tborder-bottom: 3px solid var(--accent-primary);\n}\n.config-viewer {\n\tdisplay: flex;\n\toverflow: auto;\n\theight: calc(100vh - 26px);\n\tflex: 1 1;\n\tbackground-color: var(--slate6);\n\tcolor: var(--gray4);\n\tflex-direction: column;\n}\n.config-viewer .config {\n\theight: 100%;\n\toverflow: auto;\n}\n.config-viewer pre {\n\tfont-family: Consolas !important;\n\tfont-size: 12px;\n\tuser-select: auto;\n\tmargin: 0px;\n}\n\n.body-wrapper {\n\tdisplay: flex;\n\tflex-direction: column;\n}\n\n.inner-content-wrapper {\n\tflex-direction: row;\n\tdisplay: flex;\n}\n\n.config-viewer .fsbl-logger-searchbox {\n\tposition: relative;\n}\n\n.config-viewer .match-searchBox {\n\tcolor: var(--gray7);\n}\n\n.spritesheet-smallicons:not(.icon-mask) {\n\talign-self: flex-start;\n\tbackground-image: url('+a+");\n}\n\n.spritesheet-smallicons.icon-mask {\n\t-webkit-mask-image: url("+a+");\n}\n\n::-webkit-scrollbar-track {\n\tborder-radius: 3px;\n}\n\n::-webkit-scrollbar {\n\twidth: 9px;\n\tbackground-color: var(--scrollbar-color);\n\tborder-radius: 3px;\n}\n\n::-webkit-scrollbar-thumb {\n\tcursor: pointer;\n\tborder-radius: inherit;\n\tbackground-color: rgba(0, 0, 0, 0.2);\n}\n",""]),e.exports=t},4188:(e,t,n)=>{(t=n(60352)(!1)).push([e.id,'/*\n * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.\n * Copyright (C) 2009 Anthony Ricaud <rik@webkit.org>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n *\n * 1. Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n * notice, this list of conditions and the following disclaimer in the\n * documentation and/or other materials provided with the distribution.\n * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of\n * its contributors may be used to endorse or promote products derived\n * from this software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY\n * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY\n * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\n * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\n * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n.console-view {\n\tbackground-color: white;\n\toverflow: hidden;\n}\n\n.console-view > .toolbar {\n\tborder-bottom: 1px solid #dadada;\n}\n\n.console-view-wrapper {\n\tbackground-color: #eee;\n}\n\n.console-view-fix-select-all {\n\theight: 0;\n\toverflow: hidden;\n}\n\n.console-settings-pane {\n\tflex: none;\n\tborder-bottom: 1px solid #dadada;\n}\n\n.console-settings-pane .toolbar {\n\tflex: 1 1;\n}\n\n#console-messages {\n\tflex: 1 1;\n\tpadding: 2px 0;\n\toverflow-y: auto;\n\tword-wrap: break-word;\n\t-webkit-user-select: text;\n\ttransform: translateZ(0);\n}\n\n#console-prompt {\n\tclear: right;\n\tposition: relative;\n\tmargin: 0 22px 0 20px;\n\tmin-height: 18px; /* Sync with ConsoleViewMessage.js */\n}\n\n#console-prompt .CodeMirror {\n\tpadding: 3px 0 1px 0;\n}\n\n#console-prompt .CodeMirror-line {\n\tpadding-top: 0;\n}\n\n#console-prompt .CodeMirror-lines {\n\tpadding-top: 0;\n}\n\n#console-prompt .console-prompt-icon {\n\tposition: absolute;\n\tleft: -13px;\n\ttop: 5px;\n\t-webkit-user-select: none;\n}\n\n.console-message,\n.console-user-command {\n\tclear: right;\n\tposition: relative;\n\tpadding: 3px 22px 1px 0;\n\tmargin-left: 24px;\n\tmin-height: 18px; /* Sync with ConsoleViewMessage.js */\n\tflex: auto;\n\tdisplay: flex;\n}\n\n.console-message > * {\n\tflex: auto;\n}\n\n.console-timestamp {\n\tcolor: gray;\n\t-webkit-user-select: none;\n\tflex: none;\n\tmargin-right: 5px;\n}\n\n.console-message-repeat-count {\n\tmargin: 2px 0 0 10px;\n\tflex: none;\n}\n\n.repeated-message {\n\tmargin-left: 4px;\n}\n\n.repeated-message .console-message-stack-trace-toggle,\n.repeated-message > .console-message-text {\n\tflex: 1;\n}\n\n.console-error-level .repeated-message,\n.console-warning-level .repeated-message,\n.console-verbose-level .repeated-message,\n.console-info-level .repeated-message {\n\tdisplay: flex;\n}\n\n.console-info {\n\tcolor: rgb(128, 128, 128);\n\tfont-style: italic;\n\tpadding-bottom: 2px;\n}\n\n.console-group .console-group > .console-group-messages {\n\tmargin-left: 16px;\n}\n\n.console-group-title {\n\tfont-weight: bold;\n}\n\n.expand-group-icon {\n\t-webkit-user-select: none;\n\tposition: absolute;\n\tbackground-color: rgb(110, 110, 110);\n\tleft: -14px;\n}\n\n.console-group {\n\tposition: relative;\n}\n\n.console-message-wrapper {\n\tdisplay: flex;\n\tborder-bottom: 1px solid rgb(240, 240, 240);\n}\n\n.console-message-wrapper.console-adjacent-user-command-result {\n\tborder-bottom: none;\n}\n\n.console-message-wrapper.console-error-level {\n\tborder-top: 1px solid hsl(0, 100%, 92%);\n\tborder-bottom: 1px solid hsl(0, 100%, 92%);\n\tmargin-top: -1px;\n}\n\n.console-message-wrapper.console-warning-level {\n\tborder-top: 1px solid hsl(50, 100%, 88%);\n\tborder-bottom: 1px solid hsl(50, 100%, 88%);\n\tmargin-top: -1px;\n}\n\n.console-message-wrapper .nesting-level-marker {\n\twidth: 14px;\n\tflex: 0 0 auto;\n\tborder-right: 1px solid #a5a5a5;\n\tposition: relative;\n\tmargin-bottom: -1px;\n}\n\n.console-message-wrapper:last-child .nesting-level-marker::before,\n.console-message-wrapper .nesting-level-marker.group-closed::before {\n\tcontent: "";\n}\n\n.console-message-wrapper .nesting-level-marker::before {\n\tborder-bottom: 1px solid #a5a5a5;\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tmargin-left: 100%;\n\twidth: 3px;\n\theight: 100%;\n\tbox-sizing: border-box;\n}\n\n.console-error-level {\n\tbackground-color: hsl(0, 100%, 97%);\n}\n\n.-theme-with-dark-background .console-error-level {\n\tbackground-color: hsl(0, 100%, 8%);\n}\n\n.console-warning-level {\n\tbackground-color: hsl(50, 100%, 95%);\n}\n\n.-theme-with-dark-background .console-warning-level {\n\tbackground-color: hsl(50, 100%, 10%);\n}\n\n.console-warning-level .console-message-text {\n\tcolor: hsl(39, 100%, 18%);\n}\n\n.console-error-level .console-message-text,\n.console-error-level .console-view-object-properties-section {\n\tcolor: red !important;\n}\n\n.-theme-with-dark-background .console-error-level .console-message-text,\n.-theme-with-dark-background .console-error-level .console-view-object-properties-section {\n\tcolor: hsl(0, 100%, 75%) !important;\n}\n\n.-theme-with-dark-background .console-verbose-level .console-message-text {\n\tcolor: hsl(220, 100%, 65%) !important;\n}\n\n.console-message.console-warning-level {\n\tbackground-color: rgb(255, 250, 224);\n}\n\n#console-messages .link {\n\ttext-decoration: underline;\n}\n\n#console-messages .link,\n#console-messages .devtools-link {\n\tcolor: rgb(33%, 33%, 33%);\n\tcursor: pointer;\n\tword-break: break-all;\n}\n\n#console-messages .link:hover,\n#console-messages .devtools-link:hover {\n\tcolor: rgb(15%, 15%, 15%);\n}\n\n.console-group-messages .section {\n\tmargin: 0 0 0 12px !important;\n}\n\n.console-group-messages .section > .header {\n\tpadding: 0 8px 0 0;\n\tbackground-image: none;\n\tborder: none;\n\tmin-height: 0;\n}\n\n.console-group-messages .section > .header::before {\n\tmargin-left: -12px;\n}\n\n.console-group-messages .section > .header .title {\n\tcolor: #222;\n\tfont-weight: normal;\n\tline-height: 13px;\n}\n\n.console-group-messages .section .properties li .info {\n\tpadding-top: 0;\n\tpadding-bottom: 0;\n\tcolor: rgb(60%, 60%, 60%);\n}\n\n.console-object-preview {\n\twhite-space: normal;\n\tword-wrap: break-word;\n\tfont-style: italic;\n}\n\n.console-object-preview .name {\n\t/* Follows .section .properties .name, .event-properties .name */\n\tcolor: rgb(136, 19, 145);\n\tflex-shrink: 0;\n}\n\n.console-message-text .object-value-string {\n\twhite-space: pre-wrap;\n}\n\n.console-message-formatted-table {\n\tclear: both;\n}\n\n.console-message-anchor {\n\tfloat: right;\n\ttext-align: right;\n\tmax-width: 100%;\n\tmargin-left: 4px;\n}\n\n.console-message-badge {\n\tfloat: right;\n\tmargin-left: 4px;\n}\n\n.console-message-nowrap-below,\n.console-message-nowrap-below div,\n.console-message-nowrap-below span {\n\twhite-space: nowrap !important;\n}\n\n.object-state-note {\n\tdisplay: inline-block;\n\twidth: 11px;\n\theight: 11px;\n\tcolor: white;\n\ttext-align: center;\n\tborder-radius: 3px;\n\tline-height: 13px;\n\tmargin: 0 6px;\n\tfont-size: 9px;\n}\n\n.-theme-with-dark-background .object-state-note {\n\tbackground-color: hsl(230, 100%, 80%);\n}\n\n.info-note {\n\tbackground-color: rgb(179, 203, 247);\n}\n\n.info-note::before {\n\tcontent: "i";\n}\n\n.console-view-object-properties-section:not(.expanded) .info-note {\n\tdisplay: none;\n}\n\n.console-view-object-properties-section {\n\tpadding: 0px;\n\tposition: relative;\n\tvertical-align: baseline;\n\tcolor: inherit;\n\tdisplay: inline-block;\n}\n\n.console-message-stack-trace-toggle {\n\tdisplay: flex;\n\tflex-direction: row;\n\talign-items: flex-start;\n}\n\n.console-message-stack-trace-wrapper {\n\tflex: 1 1 auto;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: stretch;\n}\n\n.console-message-stack-trace-wrapper > * {\n\tflex: none;\n}\n\n.console-message-expand-icon {\n\tmargin-bottom: -2px;\n}\n',""]),e.exports=t},79168:e=>{e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0},38972:e=>{e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.default=e.exports,e.exports.__esModule=!0},98884:e=>{function t(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)}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e},e.exports.default=e.exports,e.exports.__esModule=!0},18239:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.default=e.exports,e.exports.__esModule=!0},62094:e=>{function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.default=e.exports,e.exports.__esModule=!0,t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0},28914:(e,t,n)=>{var r=n(84307);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},9736:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0},3805:(e,t,n)=>{var r=n(88630).default;function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o},e.exports.default=e.exports,e.exports.__esModule=!0},12164:(e,t,n)=>{var r=n(88630).default,i=n(79168);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?i(e):t},e.exports.default=e.exports,e.exports.__esModule=!0},84307:e=>{function t(n,r){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,t(n,r)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0},88630:e=>{function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0},60352:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,r,i,o=e[1]||"",a=e[3];if(!a)return o;if(t&&"function"==typeof btoa){var s=(n=a,r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(i," */")),l=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[o].concat(l).concat([s]).join("\n")}return[o].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);r&&i[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},18393:e=>{"use strict";e.exports=function(e,t){return t||(t={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},33034:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new i(r,o||e,a),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=new Array(o);i<o;i++)a[i]=r[i].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,i,o,a){var s=n?n+e:e;if(!this._events[s])return!1;var l,u,c=this._events[s],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,r),!0;case 4:return c.fn.call(c.context,t,r,i),!0;case 5:return c.fn.call(c.context,t,r,i,o),!0;case 6:return c.fn.call(c.context,t,r,i,o,a),!0}for(u=1,l=new Array(d-1);u<d;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var f,h=c.length;for(u=0;u<h;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,r);break;case 4:c[u].fn.call(c[u].context,t,r,i);break;default:if(!l)for(f=1,l=new Array(d-1);f<d;f++)l[f-1]=arguments[f];c[u].fn.apply(c[u].context,l)}}return!0},s.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,i){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||i&&!s.once||r&&s.context!==r||a(this,o);else{for(var l=0,u=[],c=s.length;l<c;l++)(s[l].fn!==t||i&&!s[l].once||r&&s[l].context!==r)&&u.push(s[l]);u.length?this._events[o]=1===u.length?u[0]:u:a(this,o)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s},5939:e=>{"use strict";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 i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}g(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&g(e,"error",t,{once:!0})}(e,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){var i,o,a,u;if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=l(e))>0&&a.length>i&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,u=c,console&&console.warn&&console.warn(u)}return e}function c(){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 d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=c.bind(r);return i.listener=n,r.wrapFn=i,i}function f(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]: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}(i):p(i,i.length)}function h(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 p(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 i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.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},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(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},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)r(l,this,t);else{var u=l.length,c=p(l,u);for(n=0;n<u;++n)r(c[n],this,t)}return!0},o.prototype.addListener=function(e,t){return u(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return u(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,a;if(s(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(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.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 i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);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},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},38374:function(e,t,n){var r,i;void 0===(i="function"==typeof(r=function(){"use strict";function t(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){s(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function r(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function i(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,a=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(e,n,a){var s=o.URL||o.webkitURL,l=document.createElement("a");n=n||e.name||"download",l.download=n,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?i(l):r(l.href)?t(e,n,a):i(l,l.target="_blank")):(l.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){i(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,o){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,o),n);else if(r(e))t(e,n,o);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout((function(){i(a)}))}}:function(e,n,r,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,r);var s="application/octet-stream"===e.type,l=/constructor/i.test(o.HTMLElement)||o.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||s&&l||a)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var e=c.result;e=u?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},c.readAsDataURL(e)}else{var d=o.URL||o.webkitURL,f=d.createObjectURL(e);i?i.location=f:location.href=f,i=null,setTimeout((function(){d.revokeObjectURL(f)}),4e4)}});o.saveAs=s.saveAs=s,e.exports=s})?r.apply(t,[]):r)||(e.exports=i)},33837:(e,t,n)=>{e.exports=function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[a]={exports:{}};t[a][0].call(u.exports,(function(e){return i(t[a][1][e]||e)}),u,u.exports,e,t,n,r)}return n[a].exports}for(var o=void 0,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,r){(function(n){!function(e){"object"==typeof r&&void 0!==t?t.exports=e():("undefined"!=typeof window?window:void 0!==n?n:"undefined"!=typeof self?self:this).JSZip=e()}((function(){return function t(n,r,i){function o(s,l){if(!r[s]){if(!n[s]){var u="function"==typeof e&&e;if(!l&&u)return u(s,!0);if(a)return a(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var d=r[s]={exports:{}};n[s][0].call(d.exports,(function(e){return o(n[s][1][e]||e)}),d,d.exports,t,n,r,i)}return r[s].exports}for(var a="function"==typeof e&&e,s=0;s<i.length;s++)o(i[s]);return o}({1:[function(e,t,r){(function(n){!function(e){"object"==typeof r&&void 0!==t?t.exports=e():("undefined"!=typeof window?window:void 0!==n?n:"undefined"!=typeof self?self:this).JSZip=e()}((function(){return function t(n,r,i){function o(s,l){if(!r[s]){if(!n[s]){var u="function"==typeof e&&e;if(!l&&u)return u(s,!0);if(a)return a(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var d=r[s]={exports:{}};n[s][0].call(d.exports,(function(e){return o(n[s][1][e]||e)}),d,d.exports,t,n,r,i)}return r[s].exports}for(var a="function"==typeof e&&e,s=0;s<i.length;s++)o(i[s]);return o}({1:[function(e,t,r){(function(n){!function(e){"object"==typeof r&&void 0!==t?t.exports=e():("undefined"!=typeof window?window:void 0!==n?n:"undefined"!=typeof self?self:this).JSZip=e()}((function(){return function t(n,r,i){function o(s,l){if(!r[s]){if(!n[s]){var u="function"==typeof e&&e;if(!l&&u)return u(s,!0);if(a)return a(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var d=r[s]={exports:{}};n[s][0].call(d.exports,(function(e){return o(n[s][1][e]||e)}),d,d.exports,t,n,r,i)}return r[s].exports}for(var a="function"==typeof e&&e,s=0;s<i.length;s++)o(i[s]);return o}({1:[function(e,t,r){(function(n){!function(e){"object"==typeof r&&void 0!==t?t.exports=e():("undefined"!=typeof window?window:void 0!==n?n:"undefined"!=typeof self?self:this).JSZip=e()}((function(){return function t(n,r,i){function o(s,l){if(!r[s]){if(!n[s]){var u="function"==typeof e&&e;if(!l&&u)return u(s,!0);if(a)return a(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var d=r[s]={exports:{}};n[s][0].call(d.exports,(function(e){return o(n[s][1][e]||e)}),d,d.exports,t,n,r,i)}return r[s].exports}for(var a="function"==typeof e&&e,s=0;s<i.length;s++)o(i[s]);return o}({1:[function(e,t,r){(function(n){!function(e){"object"==typeof r&&void 0!==t?t.exports=e():("undefined"!=typeof window?window:void 0!==n?n:"undefined"!=typeof self?self:this).JSZip=e()}((function(){return function t(n,r,i){function o(s,l){if(!r[s]){if(!n[s]){var u="function"==typeof e&&e;if(!l&&u)return u(s,!0);if(a)return a(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var d=r[s]={exports:{}};n[s][0].call(d.exports,(function(e){return o(n[s][1][e]||e)}),d,d.exports,t,n,r,i)}return r[s].exports}for(var a="function"==typeof e&&e,s=0;s<i.length;s++)o(i[s]);return o}({1:[function(e,t,n){"use strict";var r=e("./utils"),i=e("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e){for(var t,n,i,a,s,l,u,c=[],d=0,f=e.length,h=f,p="string"!==r.getTypeOf(e);d<e.length;)h=f-d,i=p?(t=e[d++],n=d<f?e[d++]:0,d<f?e[d++]:0):(t=e.charCodeAt(d++),n=d<f?e.charCodeAt(d++):0,d<f?e.charCodeAt(d++):0),a=t>>2,s=(3&t)<<4|n>>4,l=1<h?(15&n)<<2|i>>6:64,u=2<h?63&i:64,c.push(o.charAt(a)+o.charAt(s)+o.charAt(l)+o.charAt(u));return c.join("")},n.decode=function(e){var t,n,r,a,s,l,u=0,c=0;if("data:"===e.substr(0,"data:".length))throw new Error("Invalid base64 input, it looks like a data url.");var d,f=3*(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(e.charAt(e.length-1)===o.charAt(64)&&f--,e.charAt(e.length-2)===o.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(d=i.uint8array?new Uint8Array(0|f):new Array(0|f);u<e.length;)t=o.indexOf(e.charAt(u++))<<2|(a=o.indexOf(e.charAt(u++)))>>4,n=(15&a)<<4|(s=o.indexOf(e.charAt(u++)))>>2,r=(3&s)<<6|(l=o.indexOf(e.charAt(u++))),d[c++]=t,64!==s&&(d[c++]=n),64!==l&&(d[c++]=r);return d}},{"./support":30,"./utils":32}],2:[function(e,t,n){"use strict";var r=e("./external"),i=e("./stream/DataWorker"),o=e("./stream/Crc32Probe"),a=e("./stream/DataLengthProbe");function s(e,t,n,r,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=i}s.prototype={getContentWorker:function(){var e=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,n){return e.pipe(new o).pipe(new a("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){"use strict";var r=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(e){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){"use strict";var r=e("./utils"),i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==r.getTypeOf(e)?function(e,t,n){var r=i,o=0+n;e^=-1;for(var a=0;a<o;a++)e=e>>>8^r[255&(e^t[a])];return-1^e}(0|t,e,e.length):function(e,t,n){var r=i,o=0+n;e^=-1;for(var a=0;a<o;a++)e=e>>>8^r[255&(e^t.charCodeAt(a))];return-1^e}(0|t,e,e.length):0}},{"./utils":32}],5:[function(e,t,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t,n){"use strict";var r;r="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:r}},{lie:37}],7:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),o=e("./utils"),a=e("./stream/GenericWorker"),s=r?"uint8array":"array";function l(e,t){a.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic="\b\0",o.inherits(l,a),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(s,e.data),!1)},l.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new l("Deflate",e)},n.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){"use strict";function r(e,t){var n,r="";for(n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r}function i(e,t,n,i,a,c){var d,f,h=e.file,p=e.compression,g=c!==s.utf8encode,m=o.transformTo("string",c(h.name)),v=o.transformTo("string",s.utf8encode(h.name)),y=h.comment,w=o.transformTo("string",c(y)),b=o.transformTo("string",s.utf8encode(y)),_=v.length!==h.name.length,S=b.length!==y.length,C="",x="",E="",T=h.dir,k=h.date,O={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(O.crc32=e.crc32,O.compressedSize=e.compressedSize,O.uncompressedSize=e.uncompressedSize);var L=0;t&&(L|=8),g||!_&&!S||(L|=2048);var R,I=0,A=0;T&&(I|=16),"UNIX"===a?(A=798,I|=((R=h.unixPermissions)||(R=T?16893:33204),(65535&R)<<16)):(A=20,I|=63&(h.dosPermissions||0)),d=k.getUTCHours(),d<<=6,d|=k.getUTCMinutes(),d<<=5,d|=k.getUTCSeconds()/2,f=k.getUTCFullYear()-1980,f<<=4,f|=k.getUTCMonth()+1,f<<=5,f|=k.getUTCDate(),_&&(C+="up"+r((x=r(1,1)+r(l(m),4)+v).length,2)+x),S&&(C+="uc"+r((E=r(1,1)+r(l(w),4)+b).length,2)+E);var M="";return M+="\n\0",M+=r(L,2),M+=p.magic,M+=r(d,2),M+=r(f,2),M+=r(O.crc32,4),M+=r(O.compressedSize,4),M+=r(O.uncompressedSize,4),M+=r(m.length,2),M+=r(C.length,2),{fileRecord:u.LOCAL_FILE_HEADER+M+m+C,dirRecord:u.CENTRAL_FILE_HEADER+r(A,2)+M+r(w.length,2)+"\0\0\0\0"+r(I,4)+r(i,4)+m+C+w}}var o=e("../utils"),a=e("../stream/GenericWorker"),s=e("../utf8"),l=e("../crc32"),u=e("../signature");function c(e,t,n,r){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(c,a),c.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,a.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},c.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},c.prototype.closedSource=function(e){this.accumulate=!1;var t,n=this.streamFiles&&!e.file.dir,o=i(e,n,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(o.dirRecord),n)this.push({data:(t=e,u.DATA_DESCRIPTOR+r(t.crc32,4)+r(t.compressedSize,4)+r(t.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:o.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},c.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n,i,a,s,l,c,d=this.bytesWritten-e,f=(n=this.dirRecords.length,i=d,a=e,s=this.zipComment,l=this.encodeFileName,c=o.transformTo("string",l(s)),u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+r(n,2)+r(n,2)+r(i,4)+r(a,4)+r(c.length,2)+c);this.push({data:f,meta:{percent:100}})},c.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},c.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),this},c.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},c.prototype.error=function(e){var t=this._sources;if(!a.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch(e){}return!0},c.prototype.lock=function(){a.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=c},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,n){"use strict";var r=e("../compressions"),i=e("./ZipFileWorker");n.generateWorker=function(e,t,n){var o=new i(t.streamFiles,n,t.platform,t.encodeFileName),a=0;try{e.forEach((function(e,n){a++;var i=function(e,t){var n=e||t,i=r[n];if(!i)throw new Error(n+" is not a valid compression method !");return i}(n.options.compression,t.compression),s=n.options.compressionOptions||t.compressionOptions||{},l=n.dir,u=n.date;n._compressWorker(i,s).withStreamInfo("file",{name:e,dir:l,date:u,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(o)})),o.entriesCount=a}catch(e){o.error(e)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,n){"use strict";function r(){if(!(this instanceof r))return new r;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files={},this.comment=null,this.root="",this.clone=function(){var e=new r;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(r.prototype=e("./object")).loadAsync=e("./load"),r.support=e("./support"),r.defaults=e("./defaults"),r.version="3.5.0",r.loadAsync=function(e,t){return(new r).loadAsync(e,t)},r.external=e("./external"),t.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,n){"use strict";var r=e("./utils"),i=e("./external"),o=e("./utf8"),a=e("./zipEntries"),s=e("./stream/Crc32Probe"),l=e("./nodejsUtils");function u(e){return new i.Promise((function(t,n){var r=e.decompressed.getContentWorker().pipe(new s);r.on("error",(function(e){n(e)})).on("end",(function(){r.streamInfo.crc32!==e.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}t.exports=function(e,t){var n=this;return t=r.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),l.isNode&&l.isStream(e)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var n=new a(t);return n.load(e),n})).then((function(e){var n=[i.Promise.resolve(e)],r=e.files;if(t.checkCRC32)for(var o=0;o<r.length;o++)n.push(u(r[o]));return i.Promise.all(n)})).then((function(e){for(var r=e.shift(),i=r.files,o=0;o<i.length;o++){var a=i[o];n.file(a.fileNameStr,a.decompressed,{binary:!0,optimizedBinaryString:!0,date:a.date,dir:a.dir,comment:a.fileCommentStr.length?a.fileCommentStr:null,unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions,createFolders:t.createFolders})}return r.zipComment.length&&(n.comment=r.zipComment),n}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,n){"use strict";var r=e("../utils"),i=e("../stream/GenericWorker");function o(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}r.inherits(o,i),o.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},o.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,n){"use strict";var r=e("readable-stream").Readable;function i(e,t,n){r.call(this,t),this._helper=e;var i=this;e.on("data",(function(e,t){i.push(e)||i._helper.pause(),n&&n(t)})).on("error",(function(e){i.emit("error",e)})).on("end",(function(){i.push(null)}))}e("../utils").inherits(i,r),i.prototype._read=function(){this._helper.resume()},t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,t,n){"use strict";t.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,n){"use strict";function r(e,t,n){var r,o=a.getTypeOf(t),l=a.extend(n||{},u);l.date=l.date||new Date,null!==l.compression&&(l.compression=l.compression.toUpperCase()),"string"==typeof l.unixPermissions&&(l.unixPermissions=parseInt(l.unixPermissions,8)),l.unixPermissions&&16384&l.unixPermissions&&(l.dir=!0),l.dosPermissions&&16&l.dosPermissions&&(l.dir=!0),l.dir&&(e=i(e)),l.createFolders&&(r=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""}(e))&&g.call(this,r,!0);var f,m="string"===o&&!1===l.binary&&!1===l.base64;n&&void 0!==n.binary||(l.binary=!m),(t instanceof c&&0===t.uncompressedSize||l.dir||!t||0===t.length)&&(l.base64=!1,l.binary=!0,t="",l.compression="STORE",o="string"),f=t instanceof c||t instanceof s?t:h.isNode&&h.isStream(t)?new p(e,t):a.prepareContent(e,t,l.binary,l.optimizedBinaryString,l.base64);var v=new d(e,f,l);this.files[e]=v}function i(e){return"/"!==e.slice(-1)&&(e+="/"),e}var o=e("./utf8"),a=e("./utils"),s=e("./stream/GenericWorker"),l=e("./stream/StreamHelper"),u=e("./defaults"),c=e("./compressedObject"),d=e("./zipObject"),f=e("./generate"),h=e("./nodejsUtils"),p=e("./nodejs/NodejsStreamInputAdapter"),g=function(e,t){return t=void 0!==t?t:u.createFolders,e=i(e),this.files[e]||r.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function m(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var v={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,n,r;for(t in this.files)this.files.hasOwnProperty(t)&&(r=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,r))},filter:function(e){var t=[];return this.forEach((function(n,r){e(n,r)&&t.push(r)})),t},file:function(e,t,n){if(1!==arguments.length)return e=this.root+e,r.call(this,e,t,n),this;if(m(e)){var i=e;return this.filter((function(e,t){return!t.dir&&i.test(e)}))}var o=this.files[this.root+e];return o&&!o.dir?o:null},folder:function(e){if(!e)return this;if(m(e))return this.filter((function(t,n){return n.dir&&e.test(t)}));var t=this.root+e,n=g.call(this,t),r=this.clone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter((function(t,n){return n.name.slice(0,e.length)===e})),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(e){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,n={};try{if((n=a.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");a.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var r=n.comment||this.comment||"";t=f.generateWorker(this,n,r)}catch(e){(t=new s("error")).error(e)}return new l(t,n.type||"string",n.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=v},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,n){t.exports=e("stream")},{stream:void 0}],17:[function(e,t,n){"use strict";var r=e("./DataReader");function i(e){r.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(i,r),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===t&&this.data[o+1]===n&&this.data[o+2]===r&&this.data[o+3]===i)return o-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),o=this.readData(4);return t===o[0]&&n===o[1]&&r===o[2]&&i===o[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,t,n){"use strict";var r=e("../utils");function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(e){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readAndCheckSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,n){"use strict";var r=e("./Uint8ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){"use strict";var r=e("./DataReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){"use strict";var r=e("./ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){"use strict";var r=e("../utils"),i=e("../support"),o=e("./ArrayReader"),a=e("./StringReader"),s=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new s(e):i.uint8array?new l(r.transformTo("uint8array",e)):new o(r.transformTo("array",e)):new a(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){"use strict";n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,n){"use strict";var r=e("./GenericWorker"),i=e("../utils");function o(e){r.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(o,r),o.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){"use strict";var r=e("./GenericWorker"),i=e("../crc32");function o(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(o,r),o.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}r.inherits(o,i),o.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}r.inherits(o,i),o.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){"use strict";function r(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n<this._listeners[e].length;n++)this._listeners[e][n].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=r},{}],29:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./ConvertWorker"),o=e("./GenericWorker"),a=e("../base64"),s=e("../support"),l=e("../external"),u=null;if(s.nodestream)try{u=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function c(e,t,n){var a=t;switch(t){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this._internalType=a,this._outputType=t,this._mimeType=n,r.checkSupport(a),this._worker=e.pipe(new i(a)),e.lock()}catch(e){this._worker=new o("error"),this._worker.error(e)}}c.prototype={accumulate:function(e){return t=this,n=e,new l.Promise((function(e,i){var o=[],s=t._internalType,l=t._outputType,u=t._mimeType;t.on("data",(function(e,t){o.push(e),n&&n(t)})).on("error",(function(e){o=[],i(e)})).on("end",(function(){try{var t=function(e,t,n){switch(e){case"blob":return r.newBlob(r.transformTo("arraybuffer",t),n);case"base64":return a.encode(t);default:return r.transformTo(e,t)}}(l,function(e,t){var n,r=0,i=null,o=0;for(n=0;n<t.length;n++)o+=t[n].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(i=new Uint8Array(o),n=0;n<t.length;n++)i.set(t[n],r),r+=t[n].length;return i;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(s,o),u);e(t)}catch(t){i(t)}o=[]})).resume()}));var t,n},on:function(e,t){var n=this;return"data"===e?this._worker.on(e,(function(e){t.call(n,e.data,e.meta)})):this._worker.on(e,(function(){r.delay(t,arguments,n)})),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(r.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=c},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,n){"use strict";if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer="undefined"!=typeof Buffer,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var r=new ArrayBuffer(0);try{n.blob=0===new Blob([r],{type:"application/zip"}).size}catch(e){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(r),n.blob=0===i.getBlob("application/zip").size}catch(e){n.blob=!1}}}try{n.nodestream=!!e("readable-stream").Readable}catch(e){n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){"use strict";for(var r=e("./utils"),i=e("./support"),o=e("./nodejsUtils"),a=e("./stream/GenericWorker"),s=new Array(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function u(){a.call(this,"utf-8 decode"),this.leftOver=null}function c(){a.call(this,"utf-8 encode")}s[254]=s[254]=1,n.utf8encode=function(e){return i.nodebuffer?o.newBufferFrom(e,"utf-8"):function(e){var t,n,r,o,a,s=e.length,l=0;for(o=0;o<s;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=i.uint8array?new Uint8Array(l):new Array(l),o=a=0;a<l;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t}(e)},n.utf8decode=function(e){return i.nodebuffer?r.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,i,o,a=e.length,l=new Array(2*a);for(t=n=0;t<a;)if((i=e[t++])<128)l[n++]=i;else if(4<(o=s[i]))l[n++]=65533,t+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&t<a;)i=i<<6|63&e[t++],o--;1<o?l[n++]=65533:i<65536?l[n++]=i:(i-=65536,l[n++]=55296|i>>10&1023,l[n++]=56320|1023&i)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),r.applyFromCharCode(l)}(e=r.transformTo(i.uint8array?"uint8array":"array",e))},r.inherits(u,a),u.prototype.processChunk=function(e){var t=r.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var o=t;(t=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),t.set(o,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var a=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+s[e[n]]>t?n:t}(t),l=t;a!==t.length&&(i.uint8array?(l=t.subarray(0,a),this.leftOver=t.subarray(a,t.length)):(l=t.slice(0,a),this.leftOver=t.slice(a,t.length))),this.push({data:n.utf8decode(l),meta:e.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=u,r.inherits(c,a),c.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=c},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){"use strict";var r=e("./support"),i=e("./base64"),o=e("./nodejsUtils"),a=e("set-immediate-shim"),s=e("./external");function l(e){return e}function u(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}n.newBlob=function(e,t){n.checkSupport("blob");try{return new Blob([e],{type:t})}catch(n){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return r.append(e),r.getBlob(t)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(e,t,n){var r=[],i=0,o=e.length;if(o<=n)return String.fromCharCode.apply(null,e);for(;i<o;)"array"===t||"nodebuffer"===t?r.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+n,o)))):r.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+n,o)))),i+=n;return r.join("")},stringifyByChar:function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(e){return!1}}()}};function d(e){var t=65536,r=n.getTypeOf(e),i=!0;if("uint8array"===r?i=c.applyCanBeUsed.uint8array:"nodebuffer"===r&&(i=c.applyCanBeUsed.nodebuffer),i)for(;1<t;)try{return c.stringifyByChunk(e,r,t)}catch(e){t=Math.floor(t/2)}return c.stringifyByChar(e)}function f(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=d;var h={};h.string={string:l,array:function(e){return u(e,new Array(e.length))},arraybuffer:function(e){return h.string.uint8array(e).buffer},uint8array:function(e){return u(e,new Uint8Array(e.length))},nodebuffer:function(e){return u(e,o.allocBuffer(e.length))}},h.array={string:d,array:l,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(e)}},h.arraybuffer={string:function(e){return d(new Uint8Array(e))},array:function(e){return f(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:l,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(new Uint8Array(e))}},h.uint8array={string:d,array:function(e){return f(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:l,nodebuffer:function(e){return o.newBufferFrom(e)}},h.nodebuffer={string:d,array:function(e){return f(e,new Array(e.length))},arraybuffer:function(e){return h.nodebuffer.uint8array(e).buffer},uint8array:function(e){return f(e,new Uint8Array(e.length))},nodebuffer:l},n.transformTo=function(e,t){if(t=t||"",!e)return t;n.checkSupport(e);var r=n.getTypeOf(t);return h[r][e](t)},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":r.nodebuffer&&o.isBuffer(e)?"nodebuffer":r.uint8array&&e instanceof Uint8Array?"uint8array":r.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){if(!r[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,r="";for(n=0;n<(e||"").length;n++)r+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return r},n.delay=function(e,t,n){a((function(){e.apply(n||null,t||[])}))},n.inherits=function(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])arguments[e].hasOwnProperty(t)&&void 0===n[t]&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,o,a,l){return s.Promise.resolve(t).then((function(e){return r.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new s.Promise((function(t,n){var r=new FileReader;r.onload=function(e){t(e.target.result)},r.onerror=function(e){n(e.target.error)},r.readAsArrayBuffer(e)})):e})).then((function(t){var c,d=n.getTypeOf(t);return d?("arraybuffer"===d?t=n.transformTo("uint8array",t):"string"===d&&(l?t=i.decode(t):o&&!0!==a&&(t=u(c=t,r.uint8array?new Uint8Array(c.length):new Array(c.length)))),t):s.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,"set-immediate-shim":54}],33:[function(e,t,n){"use strict";var r=e("./reader/readerFor"),i=e("./utils"),o=e("./signature"),a=e("./zipEntry"),s=(e("./utf8"),e("./support"));function l(e){this.files=[],this.loadOptions=e}l.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(t)+", expected "+i.pretty(e)+")")}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4)===t;return this.reader.setIndex(n),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",n=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,n,r=this.zip64EndOfCentralSize-44;0<r;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(e=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=t-n;if(0<r)this.isSignature(t,o.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw new Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(e){this.reader=r(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(e,t,n){"use strict";var r=e("./reader/readerFor"),i=e("./utils"),o=e("./compressedObject"),a=e("./crc32"),s=e("./utf8"),l=e("./compressions"),u=e("./support");function c(e,t){this.options=e,this.loadOptions=t}c.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in l)if(l.hasOwnProperty(t)&&l[t].magic===e)return l[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){var t=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t,n,r,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<i;)t=e.readInt(2),n=e.readInt(2),r=e.readData(n),this.extraFields[t]={id:t,length:n,value:r};e.setIndex(i)},handleUTF8:function(){var e=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var n=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(null!==r)this.fileCommentStr=r;else{var o=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=r(e.value);return 1!==t.readInt(1)||a(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=r(e.value);return 1!==t.readInt(1)||a(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=c},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,n){"use strict";function r(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var i=e("./stream/StreamHelper"),o=e("./stream/DataWorker"),a=e("./utf8"),s=e("./compressedObject"),l=e("./stream/GenericWorker");r.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw new Error("No output type specified.");var r="string"===(n=e.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),t=this._decompressWorker();var o=!this._dataBinary;o&&!r&&(t=t.pipe(new a.Utf8EncodeWorker)),!o&&r&&(t=t.pipe(new a.Utf8DecodeWorker))}catch(e){(t=new l("error")).error(e)}return new i(t,n,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new a.Utf8EncodeWorker)),s.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof l?this._data:new o(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],c=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<u.length;d++)r.prototype[u[d]]=c;t.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,r){(function(e){"use strict";var n,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var o=0,a=new i(c),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),n=function(){s.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){c(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(c,0)};else{var l=new e.MessageChannel;l.port1.onmessage=c,n=function(){l.port2.postMessage(0)}}var u=[];function c(){var e,t;r=!0;for(var n=u.length;n;){for(t=u,u=[],e=-1;++e<n;)t[e]();n=u.length}r=!1}t.exports=function(e){1!==u.push(e)||r||n()}}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,n){"use strict";var r=e("immediate");function i(){}var o={},a=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function u(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==i&&h(this,e)}function c(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(e,t,n){r((function(){var r;try{r=t(n)}catch(r){return o.reject(e,r)}r===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,r)}))}function f(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function h(e,t){var n=!1;function r(t){n||(n=!0,o.reject(e,t))}function i(t){n||(n=!0,o.resolve(e,t))}var a=p((function(){t(i,r)}));"error"===a.status&&r(a.value)}function p(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}(t.exports=u).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))},u.prototype.catch=function(e){return this.then(null,e)},u.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a)return this;var n=new this.constructor(i);return this.state!==l?d(n,this.state===s?e:t,this.outcome):this.queue.push(new c(n,e,t)),n},c.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},c.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},c.prototype.callRejected=function(e){o.reject(this.promise,e)},c.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},o.resolve=function(e,t){var n=p(f,t);if("error"===n.status)return o.reject(e,n.value);var r=n.value;if(r)h(e,r);else{e.state=s,e.outcome=t;for(var i=-1,a=e.queue.length;++i<a;)e.queue[i].callFulfilled(t)}return e},o.reject=function(e,t){e.state=a,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},u.resolve=function(e){return e instanceof this?e:o.resolve(new this(i),e)},u.reject=function(e){var t=new this(i);return o.reject(t,e)},u.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var a=new Array(n),s=0,l=-1,u=new this(i);++l<n;)c(e[l],l);return u;function c(e,i){t.resolve(e).then((function(e){a[i]=e,++s!==n||r||(r=!0,o.resolve(u,a))}),(function(e){r||(r=!0,o.reject(u,e))}))}},u.race=function(e){if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var t=e.length,n=!1;if(!t)return this.resolve([]);for(var r,a=-1,s=new this(i);++a<t;)r=e[a],this.resolve(r).then((function(e){n||(n=!0,o.resolve(s,e))}),(function(e){n||(n=!0,o.reject(s,e))}));return s}},{immediate:36}],38:[function(e,t,n){"use strict";var r={};(0,e("./lib/utils/common").assign)(r,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){"use strict";var r=e("./zlib/deflate"),i=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/messages"),s=e("./zlib/zstream"),l=Object.prototype.toString;function u(e){if(!(this instanceof u))return new u(e);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw new Error(a[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var c;if(c="string"==typeof t.dictionary?o.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=r.deflateSetDictionary(this.strm,c)))throw new Error(a[n]);this._dict_set=!0}}function c(e,t){var n=new u(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}u.prototype.push=function(e,t){var n,a,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=o.string2buf(e):"[object ArrayBuffer]"===l.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(u),s.next_out=0,s.avail_out=u),1!==(n=r.deflate(s,a))&&0!==n)return this.onEnd(n),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==a||(this.onEnd(0),!(s.avail_out=0))},u.prototype.onData=function(e){this.chunks.push(e)},u.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=u,n.deflate=c,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,c(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,c(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,n){"use strict";var r=e("./zlib/inflate"),i=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/constants"),s=e("./zlib/messages"),l=e("./zlib/zstream"),u=e("./zlib/gzheader"),c=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);this.header=new u,r.inflateGetHeader(this.strm,this.header)}function f(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}d.prototype.push=function(e,t){var n,s,l,u,d,f,h=this.strm,p=this.options.chunkSize,g=this.options.dictionary,m=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?h.input=o.binstring2buf(e):"[object ArrayBuffer]"===c.call(e)?h.input=new Uint8Array(e):h.input=e,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new i.Buf8(p),h.next_out=0,h.avail_out=p),(n=r.inflate(h,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&g&&(f="string"==typeof g?o.string2buf(g):"[object ArrayBuffer]"===c.call(g)?new Uint8Array(g):g,n=r.inflateSetDictionary(this.strm,f)),n===a.Z_BUF_ERROR&&!0===m&&(n=a.Z_OK,m=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),!(this.ended=!0);h.next_out&&(0!==h.avail_out&&n!==a.Z_STREAM_END&&(0!==h.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(l=o.utf8border(h.output,h.next_out),u=h.next_out-l,d=o.buf2string(h.output,l),h.next_out=u,h.avail_out=p-u,u&&i.arraySet(h.output,h.output,l,u,0),this.onData(d)):this.onData(i.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(m=!0)}while((0<h.avail_in||0===h.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(h.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=d,n.inflate=f,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,f(e,t)},n.ungzip=f},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){var t,n,r,i,o,a;for(t=r=0,n=e.length;t<n;t++)r+=e[t].length;for(a=new Uint8Array(r),t=i=0,n=e.length;t<n;t++)o=e[t],a.set(o,i),i+=o.length;return a}},o={arraySet:function(e,t,n,r,i){for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(r)},{}],42:[function(e,t,n){"use strict";var r=e("./common"),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){o=!1}for(var a=new r.Buf8(256),s=0;s<256;s++)a[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(e,t){if(t<65537&&(e.subarray&&o||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",a=0;a<t;a++)n+=String.fromCharCode(e[a]);return n}a[254]=a[254]=1,n.string2buf=function(e){var t,n,i,o,a,s=e.length,l=0;for(o=0;o<s;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(l),o=a=0;a<l;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t},n.buf2binstring=function(e){return l(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,i,o,s=t||e.length,u=new Array(2*s);for(n=r=0;n<s;)if((i=e[n++])<128)u[r++]=i;else if(4<(o=a[i]))u[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&n<s;)i=i<<6|63&e[n++],o--;1<o?u[r++]=65533:i<65536?u[r++]=i:(i-=65536,u[r++]=55296|i>>10&1023,u[r++]=56320|1023&i)}return l(u,r)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+a[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){for(var i=65535&e|0,o=e>>>16&65535|0,a=0;0!==n;){for(n-=a=2e3<n?2e3:n;o=o+(i=i+t[r++]|0)|0,--a;);i%=65521,o%=65521}return i|o<<16|0}},{}],44:[function(e,t,n){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,n){"use strict";var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var o=r,a=i+n;e^=-1;for(var s=i;s<a;s++)e=e>>>8^o[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,n){"use strict";var r,i=e("../utils/common"),o=e("./trees"),a=e("./adler32"),s=e("./crc32"),l=e("./messages"),u=-2,c=258,d=262,f=113;function h(e,t){return e.msg=l[t],t}function p(e){return(e<<1)-(4<e?9:0)}function g(e){for(var t=e.length;0<=--t;)e[t]=0}function m(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function v(e,t){o._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,m(e.strm)}function y(e,t){e.pending_buf[e.pending++]=t}function w(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function b(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-d?e.strstart-(e.w_size-d):0,u=e.window,f=e.w_mask,h=e.prev,p=e.strstart+c,g=u[o+a-1],m=u[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(n=t)+a]===m&&u[n+a-1]===g&&u[n]===u[o]&&u[++n]===u[o+1]){o+=2,n++;do{}while(u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&o<p);if(r=c-(p-o),o=p-c,a<r){if(e.match_start=t,s<=(a=r))break;g=u[o+a-1],m=u[o+a]}}}while((t=h[t&f])>l&&0!=--i);return a<=e.lookahead?a:e.lookahead}function _(e){var t,n,r,o,l,u,c,f,h,p,g=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=g+(g-d)){for(i.arraySet(e.window,e.window,g,g,0),e.match_start-=g,e.strstart-=g,e.block_start-=g,t=n=e.hash_size;r=e.head[--t],e.head[t]=g<=r?r-g:0,--n;);for(t=n=g;r=e.prev[--t],e.prev[t]=g<=r?r-g:0,--n;);o+=g}if(0===e.strm.avail_in)break;if(u=e.strm,c=e.window,f=e.strstart+e.lookahead,p=void 0,(h=o)<(p=u.avail_in)&&(p=h),n=0===p?0:(u.avail_in-=p,i.arraySet(c,u.input,u.next_in,p,f),1===u.state.wrap?u.adler=a(u.adler,c,p,f):2===u.state.wrap&&(u.adler=s(u.adler,c,p,f)),u.next_in+=p,u.total_in+=p,p),e.lookahead+=n,e.lookahead+e.insert>=3)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+3-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<d&&0!==e.strm.avail_in)}function S(e,t){for(var n,r;;){if(e.lookahead<d){if(_(e),e.lookahead<d&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-d&&(e.match_length=b(e,n)),e.match_length>=3)if(r=o._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}function C(e,t){for(var n,r,i;;){if(e.lookahead<d){if(_(e),e.lookahead<d&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-d&&(e.match_length=b(e,n),e.match_length<=5&&(1===e.strategy||3===e.match_length&&4096<e.strstart-e.match_start)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-3,r=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(v(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=o._tr_tally(e,0,e.window[e.strstart-1]))&&v(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}function x(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function E(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),g(this.dyn_ltree),g(this.dyn_dtree),g(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),g(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),g(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function T(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:f,e.adler=2===t.wrap?0:1,t.last_flush=0,o._tr_init(t),0):h(e,u)}function k(e){var t,n=T(e);return 0===n&&((t=e.state).window_size=2*t.w_size,g(t.head),t.max_lazy_match=r[t.level].max_lazy,t.good_match=r[t.level].good_length,t.nice_match=r[t.level].nice_length,t.max_chain_length=r[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),n}function O(e,t,n,r,o,a){if(!e)return u;var s=1;if(-1===t&&(t=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),o<1||9<o||8!==n||r<8||15<r||t<0||9<t||a<0||4<a)return h(e,u);8===r&&(r=9);var l=new E;return(e.state=l).strm=e,l.wrap=s,l.gzhead=null,l.w_bits=r,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=o+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new i.Buf8(2*l.w_size),l.head=new i.Buf16(l.hash_size),l.prev=new i.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new i.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=a,l.method=n,k(e)}r=[new x(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(_(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,v(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-d&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(v(e,!1),e.strm.avail_out),1)})),new x(4,4,8,4,S),new x(4,5,16,8,S),new x(4,6,32,32,S),new x(4,4,16,16,C),new x(8,16,32,32,C),new x(8,16,128,128,C),new x(8,32,128,256,C),new x(32,128,258,1024,C),new x(32,258,258,4096,C)],n.deflateInit=function(e,t){return O(e,t,8,15,8,0)},n.deflateInit2=O,n.deflateReset=k,n.deflateResetKeep=T,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?u:(e.state.gzhead=t,0):u},n.deflate=function(e,t){var n,i,a,l;if(!e||!e.state||5<t||t<0)return e?h(e,u):u;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&4!==t)return h(e,0===e.avail_out?-5:u);if(i.strm=e,n=i.last_flush,i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,y(i,31),y(i,139),y(i,8),i.gzhead?(y(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),y(i,255&i.gzhead.time),y(i,i.gzhead.time>>8&255),y(i,i.gzhead.time>>16&255),y(i,i.gzhead.time>>24&255),y(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),y(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(y(i,255&i.gzhead.extra.length),y(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(y(i,0),y(i,0),y(i,0),y(i,0),y(i,0),y(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),y(i,3),i.status=f);else{var d=8+(i.w_bits-8<<4)<<8;d|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(d|=32),d+=31-d%31,i.status=f,w(i,d),0!==i.strstart&&(w(i,e.adler>>>16),w(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),m(e),a=i.pending,i.pending!==i.pending_buf_size));)y(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),m(e),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,y(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),m(e),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,y(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&m(e),i.pending+2<=i.pending_buf_size&&(y(i,255&e.adler),y(i,e.adler>>8&255),e.adler=0,i.status=f)):i.status=f),0!==i.pending){if(m(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&p(t)<=p(n)&&4!==t)return h(e,-5);if(666===i.status&&0!==e.avail_in)return h(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&666!==i.status){var b=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(_(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var n,r,i,a,s=e.window;;){if(e.lookahead<=c){if(_(e),e.lookahead<=c&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&0<e.strstart&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=e.strstart+c;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<a);e.match_length=c-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=o._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}(i,t):r[i.level].func(i,t);if(3!==b&&4!==b||(i.status=666),1===b||3===b)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===b&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(g(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),m(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(y(i,255&e.adler),y(i,e.adler>>8&255),y(i,e.adler>>16&255),y(i,e.adler>>24&255),y(i,255&e.total_in),y(i,e.total_in>>8&255),y(i,e.total_in>>16&255),y(i,e.total_in>>24&255)):(w(i,e.adler>>>16),w(i,65535&e.adler)),m(e),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?0:1)},n.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&t!==f&&666!==t?h(e,u):(e.state=null,t===f?h(e,-3):0):u},n.deflateSetDictionary=function(e,t){var n,r,o,s,l,c,d,f,h=t.length;if(!e||!e.state)return u;if(2===(s=(n=e.state).wrap)||1===s&&42!==n.status||n.lookahead)return u;for(1===s&&(e.adler=a(e.adler,t,h,0)),n.wrap=0,h>=n.w_size&&(0===s&&(g(n.head),n.strstart=0,n.block_start=0,n.insert=0),f=new i.Buf8(n.w_size),i.arraySet(f,t,h-n.w_size,n.w_size,0),t=f,h=n.w_size),l=e.avail_in,c=e.next_in,d=e.input,e.avail_in=h,e.next_in=0,e.input=t,_(n);n.lookahead>=3;){for(r=n.strstart,o=n.lookahead-2;n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--o;);n.strstart=r,n.lookahead=2,_(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,e.next_in=c,e.input=d,e.avail_in=l,n.wrap=s,0},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,n){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t,n){"use strict";t.exports=function(e,t){var n,r,i,o,a,s,l,u,c,d,f,h,p,g,m,v,y,w,b,_,S,C,x,E,T;n=e.state,r=e.next_in,E=e.input,i=r+(e.avail_in-5),o=e.next_out,T=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),l=n.dmax,u=n.wsize,c=n.whave,d=n.wnext,f=n.window,h=n.hold,p=n.bits,g=n.lencode,m=n.distcode,v=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;e:do{p<15&&(h+=E[r++]<<p,p+=8,h+=E[r++]<<p,p+=8),w=g[h&v];t:for(;;){if(h>>>=b=w>>>24,p-=b,0==(b=w>>>16&255))T[o++]=65535&w;else{if(!(16&b)){if(0==(64&b)){w=g[(65535&w)+(h&(1<<b)-1)];continue t}if(32&b){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}_=65535&w,(b&=15)&&(p<b&&(h+=E[r++]<<p,p+=8),_+=h&(1<<b)-1,h>>>=b,p-=b),p<15&&(h+=E[r++]<<p,p+=8,h+=E[r++]<<p,p+=8),w=m[h&y];n:for(;;){if(h>>>=b=w>>>24,p-=b,!(16&(b=w>>>16&255))){if(0==(64&b)){w=m[(65535&w)+(h&(1<<b)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(S=65535&w,p<(b&=15)&&(h+=E[r++]<<p,(p+=8)<b&&(h+=E[r++]<<p,p+=8)),l<(S+=h&(1<<b)-1)){e.msg="invalid distance too far back",n.mode=30;break e}if(h>>>=b,p-=b,(b=o-a)<S){if(c<(b=S-b)&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(x=f,(C=0)===d){if(C+=u-b,b<_){for(_-=b;T[o++]=f[C++],--b;);C=o-S,x=T}}else if(d<b){if(C+=u+d-b,(b-=d)<_){for(_-=b;T[o++]=f[C++],--b;);if(C=0,d<_){for(_-=b=d;T[o++]=f[C++],--b;);C=o-S,x=T}}}else if(C+=d-b,b<_){for(_-=b;T[o++]=f[C++],--b;);C=o-S,x=T}for(;2<_;)T[o++]=x[C++],T[o++]=x[C++],T[o++]=x[C++],_-=3;_&&(T[o++]=x[C++],1<_&&(T[o++]=x[C++]))}else{for(C=o-S;T[o++]=T[C++],T[o++]=T[C++],T[o++]=T[C++],2<(_-=3););_&&(T[o++]=T[C++],1<_&&(T[o++]=T[C++]))}break}}break}}while(r<i&&o<s);r-=_=p>>3,h&=(1<<(p-=_<<3))-1,e.next_in=r,e.next_out=o,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=o<s?s-o+257:257-(o-s),n.hold=h,n.bits=p}},{}],49:[function(e,t,n){"use strict";var r=e("../utils/common"),i=e("./adler32"),o=e("./crc32"),a=e("./inffast"),s=e("./inftrees"),l=-2;function u(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function c(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function d(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(852),t.distcode=t.distdyn=new r.Buf32(592),t.sane=1,t.back=-1,0):l}function f(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,d(e)):l}function h(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?l:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,f(e))):l}function p(e,t){var n,r;return e?(r=new c,(e.state=r).window=null,0!==(n=h(e,t))&&(e.state=null),n):l}var g,m,v=!0;function y(e){if(v){var t;for(g=new r.Buf32(512),m=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,g,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,m,0,e.work,{bits:5}),v=!1}e.lencode=g,e.lenbits=9,e.distcode=m,e.distbits=5}function w(e,t,n,i){var o,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),i>=a.wsize?(r.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(i<(o=a.wsize-a.wnext)&&(o=i),r.arraySet(a.window,t,n-i,o,a.wnext),(i-=o)?(r.arraySet(a.window,t,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}n.inflateReset=f,n.inflateReset2=h,n.inflateResetKeep=d,n.inflateInit=function(e){return p(e,15)},n.inflateInit2=p,n.inflate=function(e,t){var n,c,d,f,h,p,g,m,v,b,_,S,C,x,E,T,k,O,L,R,I,A,M,N,P=0,D=new r.Buf8(4),F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return l;12===(n=e.state).mode&&(n.mode=13),h=e.next_out,d=e.output,g=e.avail_out,f=e.next_in,c=e.input,p=e.avail_in,m=n.hold,v=n.bits,b=p,_=g,A=0;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;v<16;){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}if(2&n.wrap&&35615===m){D[n.check=0]=255&m,D[1]=m>>>8&255,n.check=o(n.check,D,2,0),v=m=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&m)<<8)+(m>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&m)){e.msg="unknown compression method",n.mode=30;break}if(v-=4,I=8+(15&(m>>>=4)),0===n.wbits)n.wbits=I;else if(I>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<I,e.adler=n.check=1,n.mode=512&m?10:12,v=m=0;break;case 2:for(;v<16;){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}if(n.flags=m,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=m>>8&1),512&n.flags&&(D[0]=255&m,D[1]=m>>>8&255,n.check=o(n.check,D,2,0)),v=m=0,n.mode=3;case 3:for(;v<32;){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}n.head&&(n.head.time=m),512&n.flags&&(D[0]=255&m,D[1]=m>>>8&255,D[2]=m>>>16&255,D[3]=m>>>24&255,n.check=o(n.check,D,4,0)),v=m=0,n.mode=4;case 4:for(;v<16;){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}n.head&&(n.head.xflags=255&m,n.head.os=m>>8),512&n.flags&&(D[0]=255&m,D[1]=m>>>8&255,n.check=o(n.check,D,2,0)),v=m=0,n.mode=5;case 5:if(1024&n.flags){for(;v<16;){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}n.length=m,n.head&&(n.head.extra_len=m),512&n.flags&&(D[0]=255&m,D[1]=m>>>8&255,n.check=o(n.check,D,2,0)),v=m=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(p<(S=n.length)&&(S=p),S&&(n.head&&(I=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,c,f,S,I)),512&n.flags&&(n.check=o(n.check,c,S,f)),p-=S,f+=S,n.length-=S),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===p)break e;for(S=0;I=c[f+S++],n.head&&I&&n.length<65536&&(n.head.name+=String.fromCharCode(I)),I&&S<p;);if(512&n.flags&&(n.check=o(n.check,c,S,f)),p-=S,f+=S,I)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===p)break e;for(S=0;I=c[f+S++],n.head&&I&&n.length<65536&&(n.head.comment+=String.fromCharCode(I)),I&&S<p;);if(512&n.flags&&(n.check=o(n.check,c,S,f)),p-=S,f+=S,I)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;v<16;){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}if(m!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}v=m=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;v<32;){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}e.adler=n.check=u(m),v=m=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=h,e.avail_out=g,e.next_in=f,e.avail_in=p,n.hold=m,n.bits=v,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){m>>>=7&v,v-=7&v,n.mode=27;break}for(;v<3;){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}switch(n.last=1&m,v-=1,3&(m>>>=1)){case 0:n.mode=14;break;case 1:if(y(n),n.mode=20,6!==t)break;m>>>=2,v-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}m>>>=2,v-=2;break;case 14:for(m>>>=7&v,v-=7&v;v<32;){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}if((65535&m)!=(m>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&m,v=m=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(S=n.length){if(p<S&&(S=p),g<S&&(S=g),0===S)break e;r.arraySet(d,c,f,S,h),p-=S,f+=S,g-=S,h+=S,n.length-=S;break}n.mode=12;break;case 17:for(;v<14;){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}if(n.nlen=257+(31&m),m>>>=5,v-=5,n.ndist=1+(31&m),m>>>=5,v-=5,n.ncode=4+(15&m),m>>>=4,v-=4,286<n.nlen||30<n.ndist){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;v<3;){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}n.lens[F[n.have++]]=7&m,m>>>=3,v-=3}for(;n.have<19;)n.lens[F[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,M={bits:n.lenbits},A=s(0,n.lens,0,19,n.lencode,0,n.work,M),n.lenbits=M.bits,A){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;T=(P=n.lencode[m&(1<<n.lenbits)-1])>>>16&255,k=65535&P,!((E=P>>>24)<=v);){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}if(k<16)m>>>=E,v-=E,n.lens[n.have++]=k;else{if(16===k){for(N=E+2;v<N;){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}if(m>>>=E,v-=E,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}I=n.lens[n.have-1],S=3+(3&m),m>>>=2,v-=2}else if(17===k){for(N=E+3;v<N;){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}v-=E,I=0,S=3+(7&(m>>>=E)),m>>>=3,v-=3}else{for(N=E+7;v<N;){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}v-=E,I=0,S=11+(127&(m>>>=E)),m>>>=7,v-=7}if(n.have+S>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;S--;)n.lens[n.have++]=I}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,M={bits:n.lenbits},A=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,M),n.lenbits=M.bits,A){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,M={bits:n.distbits},A=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,M),n.distbits=M.bits,A){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(6<=p&&258<=g){e.next_out=h,e.avail_out=g,e.next_in=f,e.avail_in=p,n.hold=m,n.bits=v,a(e,_),h=e.next_out,d=e.output,g=e.avail_out,f=e.next_in,c=e.input,p=e.avail_in,m=n.hold,v=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;T=(P=n.lencode[m&(1<<n.lenbits)-1])>>>16&255,k=65535&P,!((E=P>>>24)<=v);){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}if(T&&0==(240&T)){for(O=E,L=T,R=k;T=(P=n.lencode[R+((m&(1<<O+L)-1)>>O)])>>>16&255,k=65535&P,!(O+(E=P>>>24)<=v);){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}m>>>=O,v-=O,n.back+=O}if(m>>>=E,v-=E,n.back+=E,n.length=k,0===T){n.mode=26;break}if(32&T){n.back=-1,n.mode=12;break}if(64&T){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&T,n.mode=22;case 22:if(n.extra){for(N=n.extra;v<N;){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}n.length+=m&(1<<n.extra)-1,m>>>=n.extra,v-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;T=(P=n.distcode[m&(1<<n.distbits)-1])>>>16&255,k=65535&P,!((E=P>>>24)<=v);){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}if(0==(240&T)){for(O=E,L=T,R=k;T=(P=n.distcode[R+((m&(1<<O+L)-1)>>O)])>>>16&255,k=65535&P,!(O+(E=P>>>24)<=v);){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}m>>>=O,v-=O,n.back+=O}if(m>>>=E,v-=E,n.back+=E,64&T){e.msg="invalid distance code",n.mode=30;break}n.offset=k,n.extra=15&T,n.mode=24;case 24:if(n.extra){for(N=n.extra;v<N;){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}n.offset+=m&(1<<n.extra)-1,m>>>=n.extra,v-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===g)break e;if(S=_-g,n.offset>S){if((S=n.offset-S)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}C=S>n.wnext?(S-=n.wnext,n.wsize-S):n.wnext-S,S>n.length&&(S=n.length),x=n.window}else x=d,C=h-n.offset,S=n.length;for(g<S&&(S=g),g-=S,n.length-=S;d[h++]=x[C++],--S;);0===n.length&&(n.mode=21);break;case 26:if(0===g)break e;d[h++]=n.length,g--,n.mode=21;break;case 27:if(n.wrap){for(;v<32;){if(0===p)break e;p--,m|=c[f++]<<v,v+=8}if(_-=g,e.total_out+=_,n.total+=_,_&&(e.adler=n.check=n.flags?o(n.check,d,_,h-_):i(n.check,d,_,h-_)),_=g,(n.flags?m:u(m))!==n.check){e.msg="incorrect data check",n.mode=30;break}v=m=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;v<32;){if(0===p)break e;p--,m+=c[f++]<<v,v+=8}if(m!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}v=m=0}n.mode=29;case 29:A=1;break e;case 30:A=-3;break e;case 31:return-4;case 32:default:return l}return e.next_out=h,e.avail_out=g,e.next_in=f,e.avail_in=p,n.hold=m,n.bits=v,(n.wsize||_!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&w(e,e.output,e.next_out,_-e.avail_out)?(n.mode=31,-4):(b-=e.avail_in,_-=e.avail_out,e.total_in+=b,e.total_out+=_,n.total+=_,n.wrap&&_&&(e.adler=n.check=n.flags?o(n.check,d,_,e.next_out-_):i(n.check,d,_,e.next_out-_)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==b&&0===_||4===t)&&0===A&&(A=-5),A)},n.inflateEnd=function(e){if(!e||!e.state)return l;var t=e.state;return t.window&&(t.window=null),e.state=null,0},n.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?l:((n.head=t).done=!1,0):l},n.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?l:11===n.mode&&i(1,t,r,0)!==n.check?-3:w(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,0):l},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,n){"use strict";var r=e("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,l,u,c,d,f){var h,p,g,m,v,y,w,b,_,S=f.bits,C=0,x=0,E=0,T=0,k=0,O=0,L=0,R=0,I=0,A=0,M=null,N=0,P=new r.Buf16(16),D=new r.Buf16(16),F=null,W=0;for(C=0;C<=15;C++)P[C]=0;for(x=0;x<l;x++)P[t[n+x]]++;for(k=S,T=15;1<=T&&0===P[T];T--);if(T<k&&(k=T),0===T)return u[c++]=20971520,u[c++]=20971520,f.bits=1,0;for(E=1;E<T&&0===P[E];E++);for(k<E&&(k=E),C=R=1;C<=15;C++)if(R<<=1,(R-=P[C])<0)return-1;if(0<R&&(0===e||1!==T))return-1;for(D[1]=0,C=1;C<15;C++)D[C+1]=D[C]+P[C];for(x=0;x<l;x++)0!==t[n+x]&&(d[D[t[n+x]]++]=x);if(y=0===e?(M=F=d,19):1===e?(M=i,N-=257,F=o,W-=257,256):(M=a,F=s,-1),C=E,v=c,L=x=A=0,g=-1,m=(I=1<<(O=k))-1,1===e&&852<I||2===e&&592<I)return 1;for(;;){for(w=C-L,_=d[x]<y?(b=0,d[x]):d[x]>y?(b=F[W+d[x]],M[N+d[x]]):(b=96,0),h=1<<C-L,E=p=1<<O;u[v+(A>>L)+(p-=h)]=w<<24|b<<16|_|0,0!==p;);for(h=1<<C-1;A&h;)h>>=1;if(0!==h?(A&=h-1,A+=h):A=0,x++,0==--P[C]){if(C===T)break;C=t[n+d[x]]}if(k<C&&(A&m)!==g){for(0===L&&(L=k),v+=E,R=1<<(O=C-L);O+L<T&&!((R-=P[O+L])<=0);)O++,R<<=1;if(I+=1<<O,1===e&&852<I||2===e&&592<I)return 1;u[g=A&m]=k<<24|O<<16|v-c|0}}return 0!==A&&(u[v+A]=C-L<<24|64<<16|0),f.bits=k,0}},{"../utils/common":41}],51:[function(e,t,n){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,t,n){"use strict";var r=e("../utils/common");function i(e){for(var t=e.length;0<=--t;)e[t]=0}var o=15,a=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],s=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],l=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],c=new Array(576);i(c);var d=new Array(60);i(d);var f=new Array(512);i(f);var h=new Array(256);i(h);var p=new Array(29);i(p);var g,m,v,y=new Array(30);function w(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function b(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function _(e){return e<256?f[e]:f[256+(e>>>7)]}function S(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function C(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,S(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function x(e,t,n){C(e,n[2*t],n[2*t+1])}function E(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function T(e,t,n){var r,i,a=new Array(16),s=0;for(r=1;r<=o;r++)a[r]=s=s+n[r-1]<<1;for(i=0;i<=t;i++){var l=e[2*i+1];0!==l&&(e[2*i]=E(a[l]++,l))}}function k(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function O(e){8<e.bi_valid?S(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function L(e,t,n,r){var i=2*t,o=2*n;return e[i]<e[o]||e[i]===e[o]&&r[t]<=r[n]}function R(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&L(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!L(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function I(e,t,n){var r,i,o,l,u=0;if(0!==e.last_lit)for(;r=e.pending_buf[e.d_buf+2*u]<<8|e.pending_buf[e.d_buf+2*u+1],i=e.pending_buf[e.l_buf+u],u++,0===r?x(e,i,t):(x(e,(o=h[i])+256+1,t),0!==(l=a[o])&&C(e,i-=p[o],l),x(e,o=_(--r),n),0!==(l=s[o])&&C(e,r-=y[o],l)),u<e.last_lit;);x(e,256,t)}function A(e,t){var n,r,i,a=t.dyn_tree,s=t.stat_desc.static_tree,l=t.stat_desc.has_stree,u=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<u;n++)0!==a[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):a[2*n+1]=0;for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[i]=0,e.opt_len--,l&&(e.static_len-=s[2*i+1]);for(t.max_code=c,n=e.heap_len>>1;1<=n;n--)R(e,a,n);for(i=u;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],R(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,R(e,a,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,s,l,u=t.dyn_tree,c=t.max_code,d=t.stat_desc.static_tree,f=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,g=t.stat_desc.max_length,m=0;for(a=0;a<=o;a++)e.bl_count[a]=0;for(u[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)g<(a=u[2*u[2*(r=e.heap[n])+1]+1]+1)&&(a=g,m++),u[2*r+1]=a,c<r||(e.bl_count[a]++,s=0,p<=r&&(s=h[r-p]),l=u[2*r],e.opt_len+=l*(a+s),f&&(e.static_len+=l*(d[2*r+1]+s)));if(0!==m){do{for(a=g-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[g]--,m-=2}while(0<m);for(a=g;0!==a;a--)for(r=e.bl_count[a];0!==r;)c<(i=e.heap[--n])||(u[2*i+1]!==a&&(e.opt_len+=(a-u[2*i+1])*u[2*i],u[2*i+1]=a),r--)}}(e,t),T(a,c,e.bl_count)}function M(e,t,n){var r,i,o=-1,a=t[1],s=0,l=7,u=4;for(0===a&&(l=138,u=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=t[2*(r+1)+1],++s<l&&i===a||(s<u?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,o=i,u=(s=0)===a?(l=138,3):i===a?(l=6,3):(l=7,4))}function N(e,t,n){var r,i,o=-1,a=t[1],s=0,l=7,u=4;for(0===a&&(l=138,u=3),r=0;r<=n;r++)if(i=a,a=t[2*(r+1)+1],!(++s<l&&i===a)){if(s<u)for(;x(e,i,e.bl_tree),0!=--s;);else 0!==i?(i!==o&&(x(e,i,e.bl_tree),s--),x(e,16,e.bl_tree),C(e,s-3,2)):s<=10?(x(e,17,e.bl_tree),C(e,s-3,3)):(x(e,18,e.bl_tree),C(e,s-11,7));o=i,u=(s=0)===a?(l=138,3):i===a?(l=6,3):(l=7,4)}}i(y);var P=!1;function D(e,t,n,i){var o,a,s;C(e,0+(i?1:0),3),a=t,s=n,O(o=e),S(o,s),S(o,~s),r.arraySet(o.pending_buf,o.window,a,s,o.pending),o.pending+=s}n._tr_init=function(e){P||(function(){var e,t,n,r,i,u=new Array(16);for(r=n=0;r<28;r++)for(p[r]=n,e=0;e<1<<a[r];e++)h[n++]=r;for(h[n-1]=r,r=i=0;r<16;r++)for(y[r]=i,e=0;e<1<<s[r];e++)f[i++]=r;for(i>>=7;r<30;r++)for(y[r]=i<<7,e=0;e<1<<s[r]-7;e++)f[256+i++]=r;for(t=0;t<=o;t++)u[t]=0;for(e=0;e<=143;)c[2*e+1]=8,e++,u[8]++;for(;e<=255;)c[2*e+1]=9,e++,u[9]++;for(;e<=279;)c[2*e+1]=7,e++,u[7]++;for(;e<=287;)c[2*e+1]=8,e++,u[8]++;for(T(c,287,u),e=0;e<30;e++)d[2*e+1]=5,d[2*e]=E(e,5);g=new w(c,a,257,286,o),m=new w(d,s,0,30,o),v=new w(new Array(0),l,0,19,7)}(),P=!0),e.l_desc=new b(e.dyn_ltree,g),e.d_desc=new b(e.dyn_dtree,m),e.bl_desc=new b(e.bl_tree,v),e.bi_buf=0,e.bi_valid=0,k(e)},n._tr_stored_block=D,n._tr_flush_block=function(e,t,n,r){var i,o,a=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),A(e,e.l_desc),A(e,e.d_desc),a=function(e){var t;for(M(e,e.dyn_ltree,e.l_desc.max_code),M(e,e.dyn_dtree,e.d_desc.max_code),A(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*u[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==t?D(e,t,n,r):4===e.strategy||o===i?(C(e,2+(r?1:0),3),I(e,c,d)):(C(e,4+(r?1:0),3),function(e,t,n,r){var i;for(C(e,t-257,5),C(e,n-1,5),C(e,r-4,4),i=0;i<r;i++)C(e,e.bl_tree[2*u[i]+1],3);N(e,e.dyn_ltree,t-1),N(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),I(e,e.dyn_ltree,e.dyn_dtree)),k(e),r&&O(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(h[n]+256+1)]++,e.dyn_dtree[2*_(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){var t;C(e,2,3),x(e,256,c),16===(t=e).bi_valid?(S(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}},{"../utils/common":41}],53:[function(e,t,n){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,n){"use strict";t.exports="function"==typeof setImmediate?setImmediate:function(){var e=[].slice.apply(arguments);e.splice(1,0,0),setTimeout.apply(null,e)}},{}]},{},[10])(10)}))}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)}))}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)}))}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)}))}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)}))}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)},24081:(e,t,n)=>{var r=n(21059)(n(158),"DataView");e.exports=r},15999:(e,t,n)=>{var r=n(13387),i=n(69252),o=n(31125),a=n(9021),s=n(68131);function l(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])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},26811:(e,t,n)=>{var r=n(72215),i=n(56105),o=n(30484),a=n(8046),s=n(30603);function l(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])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},60945:(e,t,n)=>{var r=n(21059)(n(158),"Map");e.exports=r},25835:(e,t,n)=>{var r=n(73633),i=n(39382),o=n(28850),a=n(70756),s=n(2769);function l(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])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},27540:(e,t,n)=>{var r=n(21059)(n(158),"Promise");e.exports=r},80476:(e,t,n)=>{var r=n(21059)(n(158),"Set");e.exports=r},74868:(e,t,n)=>{var r=n(25835),i=n(57554),o=n(18800);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},34987:(e,t,n)=>{var r=n(26811),i=n(73832),o=n(31676),a=n(33577),s=n(43343),l=n(20488);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},44937:(e,t,n)=>{var r=n(158).Symbol;e.exports=r},48596:(e,t,n)=>{var r=n(158).Uint8Array;e.exports=r},18307:(e,t,n)=>{var r=n(21059)(n(158),"WeakMap");e.exports=r},90929:e=>{e.exports=function(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)}},73034:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},5680:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},92554:(e,t,n)=>{var r=n(65086),i=n(67016),o=n(93706),a=n(77638),s=n(49699),l=n(70094),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),c=!n&&i(e),d=!n&&!c&&a(e),f=!n&&!c&&!d&&l(e),h=n||c||d||f,p=h?r(e.length,String):[],g=p.length;for(var m in e)!t&&!u.call(e,m)||h&&("length"==m||d&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||p.push(m);return p}},57041:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},52824:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},99280:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},96122:(e,t,n)=>{var r=n(88039),i=n(1316),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},33993:(e,t,n)=>{var r=n(1316);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},73977:(e,t,n)=>{var r=n(34386),i=n(23150);e.exports=function(e,t){return e&&r(t,i(t),e)}},5081:(e,t,n)=>{var r=n(34386),i=n(61530);e.exports=function(e,t){return e&&r(t,i(t),e)}},88039:(e,t,n)=>{var r=n(88689);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},49548:(e,t,n)=>{var r=n(34987),i=n(73034),o=n(96122),a=n(73977),s=n(5081),l=n(728),u=n(86923),c=n(21375),d=n(1584),f=n(47461),h=n(31441),p=n(35551),g=n(75539),m=n(83394),v=n(45010),y=n(93706),w=n(77638),b=n(55948),_=n(23619),S=n(78255),C=n(23150),x=n(61530),E="[object Arguments]",T="[object Function]",k="[object Object]",O={};O[E]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O[k]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O[T]=O["[object WeakMap]"]=!1,e.exports=function e(t,n,L,R,I,A){var M,N=1&n,P=2&n,D=4&n;if(L&&(M=I?L(t,R,I,A):L(t)),void 0!==M)return M;if(!_(t))return t;var F=y(t);if(F){if(M=g(t),!N)return u(t,M)}else{var W=p(t),z=W==T||"[object GeneratorFunction]"==W;if(w(t))return l(t,N);if(W==k||W==E||z&&!I){if(M=P||z?{}:v(t),!N)return P?d(t,s(M,t)):c(t,a(M,t))}else{if(!O[W])return I?t:{};M=m(t,W,N)}}A||(A=new r);var j=A.get(t);if(j)return j;A.set(t,M),S(t)?t.forEach((function(r){M.add(e(r,n,L,r,t,A))})):b(t)&&t.forEach((function(r,i){M.set(i,e(r,n,L,i,t,A))}));var B=F?void 0:(D?P?h:f:P?x:C)(t);return i(B||t,(function(r,i){B&&(r=t[i=r]),o(M,i,e(r,n,L,i,t,A))})),M}},33776:(e,t,n)=>{var r=n(23619),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},22153:(e,t,n)=>{var r=n(52824),i=n(76648);e.exports=function e(t,n,o,a,s){var l=-1,u=t.length;for(o||(o=i),s||(s=[]);++l<u;){var c=t[l];n>0&&o(c)?n>1?e(c,n-1,o,a,s):r(s,c):a||(s[s.length]=c)}return s}},51845:(e,t,n)=>{var r=n(49160),i=n(46384);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},45328:(e,t,n)=>{var r=n(52824),i=n(93706);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},20194:(e,t,n)=>{var r=n(44937),i=n(15401),o=n(92445),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},56640:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},64634:(e,t,n)=>{var r=n(20194),i=n(81653);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},95372:(e,t,n)=>{var r=n(55365),i=n(81653);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,a,e,s))}},55365:(e,t,n)=>{var r=n(34987),i=n(95428),o=n(1108),a=n(71711),s=n(35551),l=n(93706),u=n(77638),c=n(70094),d="[object Arguments]",f="[object Array]",h="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,m,v){var y=l(e),w=l(t),b=y?f:s(e),_=w?f:s(t),S=(b=b==d?h:b)==h,C=(_=_==d?h:_)==h,x=b==_;if(x&&u(e)){if(!u(t))return!1;y=!0,S=!1}if(x&&!S)return v||(v=new r),y||c(e)?i(e,t,n,g,m,v):o(e,t,b,n,g,m,v);if(!(1&n)){var E=S&&p.call(e,"__wrapped__"),T=C&&p.call(t,"__wrapped__");if(E||T){var k=E?e.value():e,O=T?t.value():t;return v||(v=new r),m(k,O,n,g,v)}}return!!x&&(v||(v=new r),a(e,t,n,g,m,v))}},2471:(e,t,n)=>{var r=n(35551),i=n(81653);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},4249:(e,t,n)=>{var r=n(39277),i=n(83481),o=n(23619),a=n(91223),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,d=u.hasOwnProperty,f=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?f:s).test(a(e))}},42388:(e,t,n)=>{var r=n(35551),i=n(81653);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},88595:(e,t,n)=>{var r=n(20194),i=n(62008),o=n(81653),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},76324:(e,t,n)=>{var r=n(3067),i=n(32501),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},21506:(e,t,n)=>{var r=n(23619),i=n(3067),o=n(90807),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},11241:(e,t,n)=>{var r=n(10722),i=n(47975);e.exports=function(e,t){return r(e,t,(function(t,n){return i(e,n)}))}},10722:(e,t,n)=>{var r=n(51845),i=n(68400),o=n(49160);e.exports=function(e,t,n){for(var a=-1,s=t.length,l={};++a<s;){var u=t[a],c=r(e,u);n(c,u)&&i(l,o(u,e),c)}return l}},68400:(e,t,n)=>{var r=n(96122),i=n(49160),o=n(49699),a=n(23619),s=n(46384);e.exports=function(e,t,n,l){if(!a(e))return e;for(var u=-1,c=(t=i(t,e)).length,d=c-1,f=e;null!=f&&++u<c;){var h=s(t[u]),p=n;if("__proto__"===h||"constructor"===h||"prototype"===h)return e;if(u!=d){var g=f[h];void 0===(p=l?l(g,h,f):void 0)&&(p=a(g)?g:o(t[u+1])?[]:{})}r(f,h,p),f=f[h]}return e}},86920:(e,t,n)=>{var r=n(80446),i=n(88689),o=n(41549),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},65086:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},80430:(e,t,n)=>{var r=n(44937),i=n(57041),o=n(93706),a=n(81878),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},12383:(e,t,n)=>{var r=n(38725),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},2723:e=>{e.exports=function(e){return function(t){return e(t)}}},67446:e=>{e.exports=function(e,t){return e.has(t)}},49160:(e,t,n)=>{var r=n(93706),i=n(63140),o=n(39230),a=n(33270);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},53310:(e,t,n)=>{var r=n(48596);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},728:(e,t,n)=>{e=n.nmd(e);var r=n(158),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},14352:(e,t,n)=>{var r=n(53310);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},44694:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},29169:(e,t,n)=>{var r=n(44937),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},69752:(e,t,n)=>{var r=n(53310);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},86923:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},34386:(e,t,n)=>{var r=n(96122),i=n(88039);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var u=t[s],c=o?o(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),a?i(n,u,c):r(n,u,c)}return n}},21375:(e,t,n)=>{var r=n(34386),i=n(45278);e.exports=function(e,t){return r(e,i(e),t)}},1584:(e,t,n)=>{var r=n(34386),i=n(27508);e.exports=function(e,t){return r(e,i(e),t)}},38728:(e,t,n)=>{var r=n(158)["__core-js_shared__"];e.exports=r},88689:(e,t,n)=>{var r=n(21059),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},95428:(e,t,n)=>{var r=n(74868),i=n(99280),o=n(67446);e.exports=function(e,t,n,a,s,l){var u=1&n,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var f=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var p=-1,g=!0,m=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++p<c;){var v=e[p],y=t[p];if(a)var w=u?a(y,v,p,t,e,l):a(v,y,p,e,t,l);if(void 0!==w){if(w)continue;g=!1;break}if(m){if(!i(t,(function(e,t){if(!o(m,t)&&(v===e||s(v,e,n,a,l)))return m.push(t)}))){g=!1;break}}else if(v!==y&&!s(v,y,n,a,l)){g=!1;break}}return l.delete(e),l.delete(t),g}},1108:(e,t,n)=>{var r=n(44937),i=n(48596),o=n(1316),a=n(95428),s=n(11382),l=n(76680),u=r?r.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=s;case"[object Set]":var p=1&r;if(h||(h=l),e.size!=t.size&&!p)return!1;var g=f.get(e);if(g)return g==t;r|=2,f.set(e,t);var m=a(h(e),h(t),r,u,d,f);return f.delete(e),m;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},71711:(e,t,n)=>{var r=n(47461),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var l=1&n,u=r(e),c=u.length;if(c!=r(t).length&&!l)return!1;for(var d=c;d--;){var f=u[d];if(!(l?f in t:i.call(t,f)))return!1}var h=s.get(e),p=s.get(t);if(h&&p)return h==t&&p==e;var g=!0;s.set(e,t),s.set(t,e);for(var m=l;++d<c;){var v=e[f=u[d]],y=t[f];if(o)var w=l?o(y,v,f,t,e,s):o(v,y,f,e,t,s);if(!(void 0===w?v===y||a(v,y,n,o,s):w)){g=!1;break}m||(m="constructor"==f)}if(g&&!m){var b=e.constructor,_=t.constructor;b==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _||(g=!1)}return s.delete(e),s.delete(t),g}},39169:(e,t,n)=>{var r=n(30597),i=n(53039),o=n(47209);e.exports=function(e){return o(i(e,void 0,r),e+"")}},14528:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},47461:(e,t,n)=>{var r=n(45328),i=n(45278),o=n(23150);e.exports=function(e){return r(e,o,i)}},31441:(e,t,n)=>{var r=n(45328),i=n(27508),o=n(61530);e.exports=function(e){return r(e,o,i)}},5662:(e,t,n)=>{var r=n(10205);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},21059:(e,t,n)=>{var r=n(4249),i=n(4759);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},97959:(e,t,n)=>{var r=n(78579)(Object.getPrototypeOf,Object);e.exports=r},15401:(e,t,n)=>{var r=n(44937),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},45278:(e,t,n)=>{var r=n(5680),i=n(59174),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},27508:(e,t,n)=>{var r=n(52824),i=n(97959),o=n(45278),a=n(59174),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=s},35551:(e,t,n)=>{var r=n(24081),i=n(60945),o=n(27540),a=n(80476),s=n(18307),l=n(20194),u=n(91223),c="[object Map]",d="[object Promise]",f="[object Set]",h="[object WeakMap]",p="[object DataView]",g=u(r),m=u(i),v=u(o),y=u(a),w=u(s),b=l;(r&&b(new r(new ArrayBuffer(1)))!=p||i&&b(new i)!=c||o&&b(o.resolve())!=d||a&&b(new a)!=f||s&&b(new s)!=h)&&(b=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case g:return p;case m:return c;case v:return d;case y:return f;case w:return h}return t}),e.exports=b},4759:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},96919:(e,t,n)=>{var r=n(49160),i=n(67016),o=n(93706),a=n(49699),s=n(62008),l=n(46384);e.exports=function(e,t,n){for(var u=-1,c=(t=r(t,e)).length,d=!1;++u<c;){var f=l(t[u]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++u!=c?d:!!(c=null==e?0:e.length)&&s(c)&&a(f,c)&&(o(e)||i(e))}},13387:(e,t,n)=>{var r=n(45155);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},69252:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},31125:(e,t,n)=>{var r=n(45155),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},9021:(e,t,n)=>{var r=n(45155),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},68131:(e,t,n)=>{var r=n(45155);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},75539:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},83394:(e,t,n)=>{var r=n(53310),i=n(14352),o=n(44694),a=n(29169),s=n(69752);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return o(e);case"[object Set]":return new l;case"[object Symbol]":return a(e)}}},45010:(e,t,n)=>{var r=n(33776),i=n(97959),o=n(3067);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},76648:(e,t,n)=>{var r=n(44937),i=n(67016),o=n(93706),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},49699:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},63140:(e,t,n)=>{var r=n(93706),i=n(81878),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},10205:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},83481:(e,t,n)=>{var r,i=n(38728),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},3067:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},72215:e=>{e.exports=function(){this.__data__=[],this.size=0}},56105:(e,t,n)=>{var r=n(33993),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))}},30484:(e,t,n)=>{var r=n(33993);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},8046:(e,t,n)=>{var r=n(33993);e.exports=function(e){return r(this.__data__,e)>-1}},30603:(e,t,n)=>{var r=n(33993);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},73633:(e,t,n)=>{var r=n(15999),i=n(26811),o=n(60945);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},39382:(e,t,n)=>{var r=n(5662);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},28850:(e,t,n)=>{var r=n(5662);e.exports=function(e){return r(this,e).get(e)}},70756:(e,t,n)=>{var r=n(5662);e.exports=function(e){return r(this,e).has(e)}},2769:(e,t,n)=>{var r=n(5662);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},11382:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},32202:(e,t,n)=>{var r=n(54883);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},45155:(e,t,n)=>{var r=n(21059)(Object,"create");e.exports=r},32501:(e,t,n)=>{var r=n(78579)(Object.keys,Object);e.exports=r},90807:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},41771:(e,t,n)=>{e=n.nmd(e);var r=n(14528),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},92445:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},78579:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},53039:(e,t,n)=>{var r=n(90929),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a<s;)l[a]=o[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=o[a];return u[t]=n(l),r(e,this,u)}}},158:(e,t,n)=>{var r=n(14528),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},57554:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},18800:e=>{e.exports=function(e){return this.__data__.has(e)}},76680:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},47209:(e,t,n)=>{var r=n(86920),i=n(10832)(r);e.exports=i},10832:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},73832:(e,t,n)=>{var r=n(26811);e.exports=function(){this.__data__=new r,this.size=0}},31676:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},33577:e=>{e.exports=function(e){return this.__data__.get(e)}},43343:e=>{e.exports=function(e){return this.__data__.has(e)}},20488:(e,t,n)=>{var r=n(26811),i=n(60945),o=n(25835);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},39230:(e,t,n)=>{var r=n(32202),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},46384:(e,t,n)=>{var r=n(81878);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},91223:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},38725:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},71879:(e,t,n)=>{var r=n(49548);e.exports=function(e){return r(e,4)}},99748:(e,t,n)=>{var r=n(49548);e.exports=function(e){return r(e,5)}},80446:e=>{e.exports=function(e){return function(){return e}}},76897:(e,t,n)=>{var r=n(23619),i=n(98253),o=n(95053),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,u,c,d,f,h,p=0,g=!1,m=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=u;return l=u=void 0,p=t,d=e.apply(r,n)}function w(e){return p=e,f=setTimeout(_,t),g?y(e):d}function b(e){var n=e-h;return void 0===h||n>=t||n<0||m&&e-p>=c}function _(){var e=i();if(b(e))return S(e);f=setTimeout(_,function(e){var n=t-(e-h);return m?s(n,c-(e-p)):n}(e))}function S(e){return f=void 0,v&&l?y(e):(l=u=void 0,d)}function C(){var e=i(),n=b(e);if(l=arguments,u=this,h=e,n){if(void 0===f)return w(h);if(m)return clearTimeout(f),f=setTimeout(_,t),y(h)}return void 0===f&&(f=setTimeout(_,t)),d}return t=o(t)||0,r(n)&&(g=!!n.leading,c=(m="maxWait"in n)?a(o(n.maxWait)||0,t):c,v="trailing"in n?!!n.trailing:v),C.cancel=function(){void 0!==f&&clearTimeout(f),p=0,l=h=u=f=void 0},C.flush=function(){return void 0===f?d:S(i())},C}},1316:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},30597:(e,t,n)=>{var r=n(22153);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},80089:(e,t,n)=>{var r=n(51845);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},47975:(e,t,n)=>{var r=n(56640),i=n(96919);e.exports=function(e,t){return null!=e&&i(e,t,r)}},41549:e=>{e.exports=function(e){return e}},67016:(e,t,n)=>{var r=n(64634),i=n(81653),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},93706:e=>{var t=Array.isArray;e.exports=t},51528:(e,t,n)=>{var r=n(39277),i=n(62008);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},77638:(e,t,n)=>{e=n.nmd(e);var r=n(158),i=n(30647),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;e.exports=l},47184:(e,t,n)=>{var r=n(95372);e.exports=function(e,t){return r(e,t)}},65162:(e,t,n)=>{var r=n(95372);e.exports=function(e,t,n){var i=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===i?r(e,t,void 0,n):!!i}},39277:(e,t,n)=>{var r=n(20194),i=n(23619);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},62008:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},55948:(e,t,n)=>{var r=n(2471),i=n(2723),o=n(41771),a=o&&o.isMap,s=a?i(a):r;e.exports=s},23619:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},81653:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},78255:(e,t,n)=>{var r=n(42388),i=n(2723),o=n(41771),a=o&&o.isSet,s=a?i(a):r;e.exports=s},81878:(e,t,n)=>{var r=n(20194),i=n(81653);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},70094:(e,t,n)=>{var r=n(88595),i=n(2723),o=n(41771),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},23150:(e,t,n)=>{var r=n(92554),i=n(76324),o=n(51528);e.exports=function(e){return o(e)?r(e):i(e)}},61530:(e,t,n)=>{var r=n(92554),i=n(21506),o=n(51528);e.exports=function(e){return o(e)?r(e,!0):i(e)}},53059:function(e,t,n){var r;e=n.nmd(e),function(){var i,o="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",l=32,u=128,c=1/0,d=9007199254740991,f=NaN,h=4294967295,p=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",256]],g="[object Arguments]",m="[object Array]",v="[object Boolean]",y="[object Date]",w="[object Error]",b="[object Function]",_="[object GeneratorFunction]",S="[object Map]",C="[object Number]",x="[object Object]",E="[object Promise]",T="[object RegExp]",k="[object Set]",O="[object String]",L="[object Symbol]",R="[object WeakMap]",I="[object ArrayBuffer]",A="[object DataView]",M="[object Float32Array]",N="[object Float64Array]",P="[object Int8Array]",D="[object Int16Array]",F="[object Int32Array]",W="[object Uint8Array]",z="[object Uint8ClampedArray]",j="[object Uint16Array]",B="[object Uint32Array]",H=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,$=/[&<>"']/g,q=RegExp(G.source),Y=RegExp($.source),K=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,ie=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,ce=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fe=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,me=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,be=/['\n\r\u2028\u2029\\]/g,_e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Se="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",xe="\\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",Ee="["+xe+"]",Te="["+_e+"]",ke="\\d+",Oe="["+Se+"]",Le="[^\\ud800-\\udfff"+xe+ke+"\\u2700-\\u27bf"+Se+Ce+"]",Re="\\ud83c[\\udffb-\\udfff]",Ie="[^\\ud800-\\udfff]",Ae="(?:\\ud83c[\\udde6-\\uddff]){2}",Me="[\\ud800-\\udbff][\\udc00-\\udfff]",Ne="["+Ce+"]",Pe="(?:"+Oe+"|"+Le+")",De="(?:"+Ne+"|"+Le+")",Fe="(?:['’](?:d|ll|m|re|s|t|ve))?",We="(?:['’](?:D|LL|M|RE|S|T|VE))?",ze="(?:"+Te+"|"+Re+")?",je="[\\ufe0e\\ufe0f]?",Be=je+ze+"(?:\\u200d(?:"+[Ie,Ae,Me].join("|")+")"+je+ze+")*",He="(?:"+["[\\u2700-\\u27bf]",Ae,Me].join("|")+")"+Be,Ue="(?:"+[Ie+Te+"?",Te,Ae,Me,"[\\ud800-\\udfff]"].join("|")+")",Ve=RegExp("['’]","g"),Ge=RegExp(Te,"g"),$e=RegExp(Re+"(?="+Re+")|"+Ue+Be,"g"),qe=RegExp([Ne+"?"+Oe+"+"+Fe+"(?="+[Ee,Ne,"$"].join("|")+")",De+"+"+We+"(?="+[Ee,Ne+Pe,"$"].join("|")+")",Ne+"?"+Pe+"+"+Fe,Ne+"+"+We,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ke,He].join("|"),"g"),Ye=RegExp("[\\u200d\\ud800-\\udfff"+_e+"\\ufe0e\\ufe0f]"),Ke=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ze=["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"],Je=-1,Qe={};Qe[M]=Qe[N]=Qe[P]=Qe[D]=Qe[F]=Qe[W]=Qe[z]=Qe[j]=Qe[B]=!0,Qe[g]=Qe[m]=Qe[I]=Qe[v]=Qe[A]=Qe[y]=Qe[w]=Qe[b]=Qe[S]=Qe[C]=Qe[x]=Qe[T]=Qe[k]=Qe[O]=Qe[R]=!1;var Xe={};Xe[g]=Xe[m]=Xe[I]=Xe[A]=Xe[v]=Xe[y]=Xe[M]=Xe[N]=Xe[P]=Xe[D]=Xe[F]=Xe[S]=Xe[C]=Xe[x]=Xe[T]=Xe[k]=Xe[O]=Xe[L]=Xe[W]=Xe[z]=Xe[j]=Xe[B]=!0,Xe[w]=Xe[b]=Xe[R]=!1;var et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,nt=parseInt,rt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,it="object"==typeof self&&self&&self.Object===Object&&self,ot=rt||it||Function("return this")(),at=t&&!t.nodeType&&t,st=at&&e&&!e.nodeType&&e,lt=st&&st.exports===at,ut=lt&&rt.process,ct=function(){try{return st&&st.require&&st.require("util").types||ut&&ut.binding&&ut.binding("util")}catch(e){}}(),dt=ct&&ct.isArrayBuffer,ft=ct&&ct.isDate,ht=ct&&ct.isMap,pt=ct&&ct.isRegExp,gt=ct&&ct.isSet,mt=ct&&ct.isTypedArray;function vt(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 yt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function wt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function bt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function _t(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 St(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function Ct(e,t){return!(null==e||!e.length)&&Mt(e,t,0)>-1}function xt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Et(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Tt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function kt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function Ot(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Lt(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 Rt=Ft("length");function It(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function At(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Mt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):At(e,Pt,n)}function Nt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Pt(e){return e!=e}function Dt(e,t){var n=null==e?0:e.length;return n?jt(e,t)/n:f}function Ft(e){return function(t){return null==t?i:t[e]}}function Wt(e){return function(t){return null==e?i:e[t]}}function zt(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function jt(e,t){for(var n,r=-1,o=e.length;++r<o;){var a=t(e[r]);a!==i&&(n=n===i?a:n+a)}return n}function Bt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Ht(e){return e?e.slice(0,sn(e)+1).replace(re,""):e}function Ut(e){return function(t){return e(t)}}function Vt(e,t){return Et(t,(function(t){return e[t]}))}function Gt(e,t){return e.has(t)}function $t(e,t){for(var n=-1,r=e.length;++n<r&&Mt(t,e[n],0)>-1;);return n}function qt(e,t){for(var n=e.length;n--&&Mt(t,e[n],0)>-1;);return n}function Yt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Kt=Wt({À:"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"}),Zt=Wt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Jt(e){return"\\"+et[e]}function Qt(e){return Ye.test(e)}function Xt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function en(e,t){return function(n){return e(t(n))}}function tn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,o[i++]=n)}return o}function nn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function rn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function on(e){return Qt(e)?function(e){for(var t=$e.lastIndex=0;$e.test(e);)++t;return t}(e):Rt(e)}function an(e){return Qt(e)?function(e){return e.match($e)||[]}(e):function(e){return e.split("")}(e)}function sn(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var ln=Wt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),un=function e(t){var n,r=(t=null==t?ot:un.defaults(ot.Object(),t,un.pick(ot,Ze))).Array,ie=t.Date,_e=t.Error,Se=t.Function,Ce=t.Math,xe=t.Object,Ee=t.RegExp,Te=t.String,ke=t.TypeError,Oe=r.prototype,Le=Se.prototype,Re=xe.prototype,Ie=t["__core-js_shared__"],Ae=Le.toString,Me=Re.hasOwnProperty,Ne=0,Pe=(n=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",De=Re.toString,Fe=Ae.call(xe),We=ot._,ze=Ee("^"+Ae.call(Me).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),je=lt?t.Buffer:i,Be=t.Symbol,He=t.Uint8Array,Ue=je?je.allocUnsafe:i,$e=en(xe.getPrototypeOf,xe),Ye=xe.create,et=Re.propertyIsEnumerable,rt=Oe.splice,it=Be?Be.isConcatSpreadable:i,at=Be?Be.iterator:i,st=Be?Be.toStringTag:i,ut=function(){try{var e=uo(xe,"defineProperty");return e({},"",{}),e}catch(e){}}(),ct=t.clearTimeout!==ot.clearTimeout&&t.clearTimeout,Rt=ie&&ie.now!==ot.Date.now&&ie.now,Wt=t.setTimeout!==ot.setTimeout&&t.setTimeout,cn=Ce.ceil,dn=Ce.floor,fn=xe.getOwnPropertySymbols,hn=je?je.isBuffer:i,pn=t.isFinite,gn=Oe.join,mn=en(xe.keys,xe),vn=Ce.max,yn=Ce.min,wn=ie.now,bn=t.parseInt,_n=Ce.random,Sn=Oe.reverse,Cn=uo(t,"DataView"),xn=uo(t,"Map"),En=uo(t,"Promise"),Tn=uo(t,"Set"),kn=uo(t,"WeakMap"),On=uo(xe,"create"),Ln=kn&&new kn,Rn={},In=zo(Cn),An=zo(xn),Mn=zo(En),Nn=zo(Tn),Pn=zo(kn),Dn=Be?Be.prototype:i,Fn=Dn?Dn.valueOf:i,Wn=Dn?Dn.toString:i;function zn(e){if(ns(e)&&!Ga(e)&&!(e instanceof Un)){if(e instanceof Hn)return e;if(Me.call(e,"__wrapped__"))return jo(e)}return new Hn(e)}var jn=function(){function e(){}return function(t){if(!ts(t))return{};if(Ye)return Ye(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Bn(){}function Hn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Un(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Vn(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 Gn(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 $n(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 qn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new $n;++t<n;)this.add(e[t])}function Yn(e){var t=this.__data__=new Gn(e);this.size=t.size}function Kn(e,t){var n=Ga(e),r=!n&&Va(e),i=!n&&!r&&Ka(e),o=!n&&!r&&!i&&cs(e),a=n||r||i||o,s=a?Bt(e.length,Te):[],l=s.length;for(var u in e)!t&&!Me.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||vo(u,l))||s.push(u);return s}function Zn(e){var t=e.length;return t?e[$r(0,t-1)]:i}function Jn(e,t){return No(ki(e),ar(t,0,e.length))}function Qn(e){return No(ki(e))}function Xn(e,t,n){(n!==i&&!Ba(e[t],n)||n===i&&!(t in e))&&ir(e,t,n)}function er(e,t,n){var r=e[t];Me.call(e,t)&&Ba(r,n)&&(n!==i||t in e)||ir(e,t,n)}function tr(e,t){for(var n=e.length;n--;)if(Ba(e[n][0],t))return n;return-1}function nr(e,t,n,r){return dr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function rr(e,t){return e&&Oi(t,As(t),e)}function ir(e,t,n){"__proto__"==t&&ut?ut(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function or(e,t){for(var n=-1,o=t.length,a=r(o),s=null==e;++n<o;)a[n]=s?i:ks(e,t[n]);return a}function ar(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function sr(e,t,n,r,o,a){var s,l=1&t,u=2&t,c=4&t;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!ts(e))return e;var d=Ga(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Me.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return ki(e,s)}else{var f=ho(e),h=f==b||f==_;if(Ka(e))return _i(e,l);if(f==x||f==g||h&&!o){if(s=u||h?{}:go(e),!l)return u?function(e,t){return Oi(e,fo(e),t)}(e,function(e,t){return e&&Oi(t,Ms(t),e)}(s,e)):function(e,t){return Oi(e,co(e),t)}(e,rr(s,e))}else{if(!Xe[f])return o?e:{};s=function(e,t,n){var r,i=e.constructor;switch(t){case I:return Si(e);case v:case y:return new i(+e);case A:return function(e,t){var n=t?Si(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case M:case N:case P:case D:case F:case W:case z:case j:case B:return Ci(e,n);case S:return new i;case C:case O:return new i(e);case T:return function(e){var t=new e.constructor(e.source,fe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case k:return new i;case L:return r=e,Fn?xe(Fn.call(r)):{}}}(e,f,l)}}a||(a=new Yn);var p=a.get(e);if(p)return p;a.set(e,s),ss(e)?e.forEach((function(r){s.add(sr(r,t,n,r,e,a))})):rs(e)&&e.forEach((function(r,i){s.set(i,sr(r,t,n,i,e,a))}));var m=d?i:(c?u?no:to:u?Ms:As)(e);return wt(m||e,(function(r,i){m&&(r=e[i=r]),er(s,i,sr(r,t,n,i,e,a))})),s}function lr(e,t,n){var r=n.length;if(null==e)return!r;for(e=xe(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function ur(e,t,n){if("function"!=typeof e)throw new ke(o);return Ro((function(){e.apply(i,n)}),t)}function cr(e,t,n,r){var i=-1,o=Ct,a=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=Et(t,Ut(n))),r?(o=xt,a=!1):t.length>=200&&(o=Gt,a=!1,t=new qn(t));e:for(;++i<s;){var c=e[i],d=null==n?c:n(c);if(c=r||0!==c?c:0,a&&d==d){for(var f=u;f--;)if(t[f]===d)continue e;l.push(c)}else o(t,d,r)||l.push(c)}return l}zn.templateSettings={escape:K,evaluate:Z,interpolate:J,variable:"",imports:{_:zn}},zn.prototype=Bn.prototype,zn.prototype.constructor=zn,Hn.prototype=jn(Bn.prototype),Hn.prototype.constructor=Hn,Un.prototype=jn(Bn.prototype),Un.prototype.constructor=Un,Vn.prototype.clear=function(){this.__data__=On?On(null):{},this.size=0},Vn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Vn.prototype.get=function(e){var t=this.__data__;if(On){var n=t[e];return n===a?i:n}return Me.call(t,e)?t[e]:i},Vn.prototype.has=function(e){var t=this.__data__;return On?t[e]!==i:Me.call(t,e)},Vn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=On&&t===i?a:t,this},Gn.prototype.clear=function(){this.__data__=[],this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=tr(t,e);return!(n<0||(n==t.length-1?t.pop():rt.call(t,n,1),--this.size,0))},Gn.prototype.get=function(e){var t=this.__data__,n=tr(t,e);return n<0?i:t[n][1]},Gn.prototype.has=function(e){return tr(this.__data__,e)>-1},Gn.prototype.set=function(e,t){var n=this.__data__,r=tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},$n.prototype.clear=function(){this.size=0,this.__data__={hash:new Vn,map:new(xn||Gn),string:new Vn}},$n.prototype.delete=function(e){var t=so(this,e).delete(e);return this.size-=t?1:0,t},$n.prototype.get=function(e){return so(this,e).get(e)},$n.prototype.has=function(e){return so(this,e).has(e)},$n.prototype.set=function(e,t){var n=so(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},qn.prototype.add=qn.prototype.push=function(e){return this.__data__.set(e,a),this},qn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.clear=function(){this.__data__=new Gn,this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Yn.prototype.get=function(e){return this.__data__.get(e)},Yn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var r=n.__data__;if(!xn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new $n(r)}return n.set(e,t),this.size=n.size,this};var dr=Ii(wr),fr=Ii(br,!0);function hr(e,t){var n=!0;return dr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function pr(e,t,n){for(var r=-1,o=e.length;++r<o;){var a=e[r],s=t(a);if(null!=s&&(l===i?s==s&&!us(s):n(s,l)))var l=s,u=a}return u}function gr(e,t){var n=[];return dr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function mr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=mo),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?mr(s,t-1,n,r,i):Tt(i,s):r||(i[i.length]=s)}return i}var vr=Ai(),yr=Ai(!0);function wr(e,t){return e&&vr(e,t,As)}function br(e,t){return e&&yr(e,t,As)}function _r(e,t){return St(t,(function(t){return Qa(e[t])}))}function Sr(e,t){for(var n=0,r=(t=vi(t,e)).length;null!=e&&n<r;)e=e[Wo(t[n++])];return n&&n==r?e:i}function Cr(e,t,n){var r=t(e);return Ga(e)?r:Tt(r,n(e))}function xr(e){return null==e?e===i?"[object Undefined]":"[object Null]":st&&st in xe(e)?function(e){var t=Me.call(e,st),n=e[st];try{e[st]=i;var r=!0}catch(e){}var o=De.call(e);return r&&(t?e[st]=n:delete e[st]),o}(e):function(e){return De.call(e)}(e)}function Er(e,t){return e>t}function Tr(e,t){return null!=e&&Me.call(e,t)}function kr(e,t){return null!=e&&t in xe(e)}function Or(e,t,n){for(var o=n?xt:Ct,a=e[0].length,s=e.length,l=s,u=r(s),c=1/0,d=[];l--;){var f=e[l];l&&t&&(f=Et(f,Ut(t))),c=yn(f.length,c),u[l]=!n&&(t||a>=120&&f.length>=120)?new qn(l&&f):i}f=e[0];var h=-1,p=u[0];e:for(;++h<a&&d.length<c;){var g=f[h],m=t?t(g):g;if(g=n||0!==g?g:0,!(p?Gt(p,m):o(d,m,n))){for(l=s;--l;){var v=u[l];if(!(v?Gt(v,m):o(e[l],m,n)))continue e}p&&p.push(m),d.push(g)}}return d}function Lr(e,t,n){var r=null==(e=To(e,t=vi(t,e)))?e:e[Wo(Jo(t))];return null==r?i:vt(r,e,n)}function Rr(e){return ns(e)&&xr(e)==g}function Ir(e,t,n,r,o){return e===t||(null==e||null==t||!ns(e)&&!ns(t)?e!=e&&t!=t:function(e,t,n,r,o,a){var s=Ga(e),l=Ga(t),u=s?m:ho(e),c=l?m:ho(t),d=(u=u==g?x:u)==x,f=(c=c==g?x:c)==x,h=u==c;if(h&&Ka(e)){if(!Ka(t))return!1;s=!0,d=!1}if(h&&!d)return a||(a=new Yn),s||cs(e)?Xi(e,t,n,r,o,a):function(e,t,n,r,i,o,a){switch(n){case A:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case I:return!(e.byteLength!=t.byteLength||!o(new He(e),new He(t)));case v:case y:case C:return Ba(+e,+t);case w:return e.name==t.name&&e.message==t.message;case T:case O:return e==t+"";case S:var s=Xt;case k:var l=1&r;if(s||(s=nn),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var c=Xi(s(e),s(t),r,i,o,a);return a.delete(e),c;case L:if(Fn)return Fn.call(e)==Fn.call(t)}return!1}(e,t,u,n,r,o,a);if(!(1&n)){var p=d&&Me.call(e,"__wrapped__"),b=f&&Me.call(t,"__wrapped__");if(p||b){var _=p?e.value():e,E=b?t.value():t;return a||(a=new Yn),o(_,E,n,r,a)}}return!!h&&(a||(a=new Yn),function(e,t,n,r,o,a){var s=1&n,l=to(e),u=l.length;if(u!=to(t).length&&!s)return!1;for(var c=u;c--;){var d=l[c];if(!(s?d in t:Me.call(t,d)))return!1}var f=a.get(e),h=a.get(t);if(f&&h)return f==t&&h==e;var p=!0;a.set(e,t),a.set(t,e);for(var g=s;++c<u;){var m=e[d=l[c]],v=t[d];if(r)var y=s?r(v,m,d,t,e,a):r(m,v,d,e,t,a);if(!(y===i?m===v||o(m,v,n,r,a):y)){p=!1;break}g||(g="constructor"==d)}if(p&&!g){var w=e.constructor,b=t.constructor;w==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof b&&b instanceof b||(p=!1)}return a.delete(e),a.delete(t),p}(e,t,n,r,o,a))}(e,t,n,r,Ir,o))}function Ar(e,t,n,r){var o=n.length,a=o,s=!r;if(null==e)return!a;for(e=xe(e);o--;){var l=n[o];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<a;){var u=(l=n[o])[0],c=e[u],d=l[1];if(s&&l[2]){if(c===i&&!(u in e))return!1}else{var f=new Yn;if(r)var h=r(c,d,u,e,t,f);if(!(h===i?Ir(d,c,3,r,f):h))return!1}}return!0}function Mr(e){return!(!ts(e)||(t=e,Pe&&Pe in t))&&(Qa(e)?ze:ge).test(zo(e));var t}function Nr(e){return"function"==typeof e?e:null==e?il:"object"==typeof e?Ga(e)?zr(e[0],e[1]):Wr(e):hl(e)}function Pr(e){if(!So(e))return mn(e);var t=[];for(var n in xe(e))Me.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Dr(e,t){return e<t}function Fr(e,t){var n=-1,i=qa(e)?r(e.length):[];return dr(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function Wr(e){var t=lo(e);return 1==t.length&&t[0][2]?xo(t[0][0],t[0][1]):function(n){return n===e||Ar(n,e,t)}}function zr(e,t){return wo(e)&&Co(t)?xo(Wo(e),t):function(n){var r=ks(n,e);return r===i&&r===t?Os(n,e):Ir(t,r,3)}}function jr(e,t,n,r,o){e!==t&&vr(t,(function(a,s){if(o||(o=new Yn),ts(a))!function(e,t,n,r,o,a,s){var l=Oo(e,n),u=Oo(t,n),c=s.get(u);if(c)Xn(e,n,c);else{var d=a?a(l,u,n+"",e,t,s):i,f=d===i;if(f){var h=Ga(u),p=!h&&Ka(u),g=!h&&!p&&cs(u);d=u,h||p||g?Ga(l)?d=l:Ya(l)?d=ki(l):p?(f=!1,d=_i(u,!0)):g?(f=!1,d=Ci(u,!0)):d=[]:os(u)||Va(u)?(d=l,Va(l)?d=ys(l):ts(l)&&!Qa(l)||(d=go(u))):f=!1}f&&(s.set(u,d),o(d,u,r,a,s),s.delete(u)),Xn(e,n,d)}}(e,t,s,n,jr,r,o);else{var l=r?r(Oo(e,s),a,s+"",e,t,o):i;l===i&&(l=a),Xn(e,s,l)}}),Ms)}function Br(e,t){var n=e.length;if(n)return vo(t+=t<0?n:0,n)?e[t]:i}function Hr(e,t,n){t=t.length?Et(t,(function(e){return Ga(e)?function(t){return Sr(t,1===e.length?e[0]:e)}:e})):[il];var r=-1;return t=Et(t,Ut(ao())),function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=xi(i[r],o[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(Fr(e,(function(e,n,i){return{criteria:Et(t,(function(t){return t(e)})),index:++r,value:e}})))}function Ur(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=Sr(e,a);n(s,a)&&Jr(o,vi(a,e),s)}return o}function Vr(e,t,n,r){var i=r?Nt:Mt,o=-1,a=t.length,s=e;for(e===t&&(t=ki(t)),n&&(s=Et(e,Ut(n)));++o<a;)for(var l=0,u=t[o],c=n?n(u):u;(l=i(s,c,l,r))>-1;)s!==e&&rt.call(s,l,1),rt.call(e,l,1);return e}function Gr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;vo(i)?rt.call(e,i,1):ui(e,i)}}return e}function $r(e,t){return e+dn(_n()*(t-e+1))}function qr(e,t){var n="";if(!e||t<1||t>d)return n;do{t%2&&(n+=e),(t=dn(t/2))&&(e+=e)}while(t);return n}function Yr(e,t){return Io(Eo(e,t,il),e+"")}function Kr(e){return Zn(Bs(e))}function Zr(e,t){var n=Bs(e);return No(n,ar(t,0,n.length))}function Jr(e,t,n,r){if(!ts(e))return e;for(var o=-1,a=(t=vi(t,e)).length,s=a-1,l=e;null!=l&&++o<a;){var u=Wo(t[o]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(o!=s){var d=l[u];(c=r?r(d,u,l):i)===i&&(c=ts(d)?d:vo(t[o+1])?[]:{})}er(l,u,c),l=l[u]}return e}var Qr=Ln?function(e,t){return Ln.set(e,t),e}:il,Xr=ut?function(e,t){return ut(e,"toString",{configurable:!0,enumerable:!1,value:tl(t),writable:!0})}:il;function ei(e){return No(Bs(e))}function ti(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i<o;)a[i]=e[i+t];return a}function ni(e,t){var n;return dr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function ri(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!us(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return ii(e,t,il,n)}function ii(e,t,n,r){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,l=null===t,u=us(t),c=t===i;o<a;){var d=dn((o+a)/2),f=n(e[d]),h=f!==i,p=null===f,g=f==f,m=us(f);if(s)var v=r||g;else v=c?g&&(r||h):l?g&&h&&(r||!p):u?g&&h&&!p&&(r||!m):!p&&!m&&(r?f<=t:f<t);v?o=d+1:a=d}return yn(a,4294967294)}function oi(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Ba(s,l)){var l=s;o[i++]=0===a?0:a}}return o}function ai(e){return"number"==typeof e?e:us(e)?f:+e}function si(e){if("string"==typeof e)return e;if(Ga(e))return Et(e,si)+"";if(us(e))return Wn?Wn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function li(e,t,n){var r=-1,i=Ct,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=xt;else if(o>=200){var u=t?null:qi(e);if(u)return nn(u);a=!1,i=Gt,l=new qn}else l=t?[]:s;e:for(;++r<o;){var c=e[r],d=t?t(c):c;if(c=n||0!==c?c:0,a&&d==d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(c)}else i(l,d,n)||(l!==s&&l.push(d),s.push(c))}return s}function ui(e,t){return null==(e=To(e,t=vi(t,e)))||delete e[Wo(Jo(t))]}function ci(e,t,n,r){return Jr(e,t,n(Sr(e,t)),r)}function di(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ti(e,r?0:o,r?o+1:i):ti(e,r?o+1:0,r?i:o)}function fi(e,t){var n=e;return n instanceof Un&&(n=n.value()),kt(t,(function(e,t){return t.func.apply(t.thisArg,Tt([e],t.args))}),n)}function hi(e,t,n){var i=e.length;if(i<2)return i?li(e[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=e[o],l=-1;++l<i;)l!=o&&(a[o]=cr(a[o]||s,e[l],t,n));return li(mr(a,1),t,n)}function pi(e,t,n){for(var r=-1,o=e.length,a=t.length,s={};++r<o;){var l=r<a?t[r]:i;n(s,e[r],l)}return s}function gi(e){return Ya(e)?e:[]}function mi(e){return"function"==typeof e?e:il}function vi(e,t){return Ga(e)?e:wo(e,t)?[e]:Fo(ws(e))}var yi=Yr;function wi(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ti(e,t,n)}var bi=ct||function(e){return ot.clearTimeout(e)};function _i(e,t){if(t)return e.slice();var n=e.length,r=Ue?Ue(n):new e.constructor(n);return e.copy(r),r}function Si(e){var t=new e.constructor(e.byteLength);return new He(t).set(new He(e)),t}function Ci(e,t){var n=t?Si(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function xi(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,a=us(e),s=t!==i,l=null===t,u=t==t,c=us(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||r&&s&&u||!n&&u||!o)return 1;if(!r&&!a&&!c&&e<t||c&&n&&o&&!r&&!a||l&&n&&o||!s&&o||!u)return-1}return 0}function Ei(e,t,n,i){for(var o=-1,a=e.length,s=n.length,l=-1,u=t.length,c=vn(a-s,0),d=r(u+c),f=!i;++l<u;)d[l]=t[l];for(;++o<s;)(f||o<a)&&(d[n[o]]=e[o]);for(;c--;)d[l++]=e[o++];return d}function Ti(e,t,n,i){for(var o=-1,a=e.length,s=-1,l=n.length,u=-1,c=t.length,d=vn(a-l,0),f=r(d+c),h=!i;++o<d;)f[o]=e[o];for(var p=o;++u<c;)f[p+u]=t[u];for(;++s<l;)(h||o<a)&&(f[p+n[s]]=e[o++]);return f}function ki(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function Oi(e,t,n,r){var o=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],u=r?r(n[l],e[l],l,n,e):i;u===i&&(u=e[l]),o?ir(n,l,u):er(n,l,u)}return n}function Li(e,t){return function(n,r){var i=Ga(n)?yt:nr,o=t?t():{};return i(n,e,ao(r,2),o)}}function Ri(e){return Yr((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&yo(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=xe(t);++r<o;){var l=n[r];l&&e(t,l,r,a)}return t}))}function Ii(e,t){return function(n,r){if(null==n)return n;if(!qa(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=xe(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Ai(e){return function(t,n,r){for(var i=-1,o=xe(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}function Mi(e){return function(t){var n=Qt(t=ws(t))?an(t):i,r=n?n[0]:t.charAt(0),o=n?wi(n,1).join(""):t.slice(1);return r[e]()+o}}function Ni(e){return function(t){return kt(Qs(Vs(t).replace(Ve,"")),e,"")}}function Pi(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=jn(e.prototype),r=e.apply(n,t);return ts(r)?r:n}}function Di(e){return function(t,n,r){var o=xe(t);if(!qa(t)){var a=ao(n,3);t=As(t),n=function(e){return a(o[e],e,o)}}var s=e(t,n,r);return s>-1?o[a?t[s]:s]:i}}function Fi(e){return eo((function(t){var n=t.length,r=n,a=Hn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new ke(o);if(a&&!l&&"wrapper"==io(s))var l=new Hn([],!0)}for(r=l?r:n;++r<n;){var u=io(s=t[r]),c="wrapper"==u?ro(s):i;l=c&&bo(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[io(c[0])].apply(l,c[3]):1==s.length&&bo(s)?l[u]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&Ga(r))return l.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function Wi(e,t,n,o,a,s,l,c,d,f){var h=t&u,p=1&t,g=2&t,m=24&t,v=512&t,y=g?i:Pi(e);return function i(){for(var u=arguments.length,w=r(u),b=u;b--;)w[b]=arguments[b];if(m)var _=oo(i),S=Yt(w,_);if(o&&(w=Ei(w,o,a,m)),s&&(w=Ti(w,s,l,m)),u-=S,m&&u<f){var C=tn(w,_);return Gi(e,t,Wi,i.placeholder,n,w,C,c,d,f-u)}var x=p?n:this,E=g?x[e]:e;return u=w.length,c?w=ko(w,c):v&&u>1&&w.reverse(),h&&d<u&&(w.length=d),this&&this!==ot&&this instanceof i&&(E=y||Pi(E)),E.apply(x,w)}}function zi(e,t){return function(n,r){return function(e,t,n,r){return wr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function ji(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=si(n),r=si(r)):(n=ai(n),r=ai(r)),o=e(n,r)}return o}}function Bi(e){return eo((function(t){return t=Et(t,Ut(ao())),Yr((function(n){var r=this;return e(t,(function(e){return vt(e,r,n)}))}))}))}function Hi(e,t){var n=(t=t===i?" ":si(t)).length;if(n<2)return n?qr(t,e):t;var r=qr(t,cn(e/on(t)));return Qt(t)?wi(an(r),0,e).join(""):r.slice(0,e)}function Ui(e){return function(t,n,o){return o&&"number"!=typeof o&&yo(t,n,o)&&(n=o=i),t=ps(t),n===i?(n=t,t=0):n=ps(n),function(e,t,n,i){for(var o=-1,a=vn(cn((t-e)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=e,e+=n;return s}(t,n,o=o===i?t<n?1:-1:ps(o),e)}}function Vi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=vs(t),n=vs(n)),e(t,n)}}function Gi(e,t,n,r,o,a,s,u,c,d){var f=8&t;t|=f?l:64,4&(t&=~(f?64:l))||(t&=-4);var h=[e,t,o,f?a:i,f?s:i,f?i:a,f?i:s,u,c,d],p=n.apply(i,h);return bo(e)&&Lo(p,h),p.placeholder=r,Ao(p,e,t)}function $i(e){var t=Ce[e];return function(e,n){if(e=vs(e),(n=null==n?0:yn(gs(n),292))&&pn(e)){var r=(ws(e)+"e").split("e");return+((r=(ws(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var qi=Tn&&1/nn(new Tn([,-0]))[1]==c?function(e){return new Tn(e)}:ul;function Yi(e){return function(t){var n=ho(t);return n==S?Xt(t):n==k?rn(t):function(e,t){return Et(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Ki(e,t,n,a,c,d,f,h){var p=2&t;if(!p&&"function"!=typeof e)throw new ke(o);var g=a?a.length:0;if(g||(t&=-97,a=c=i),f=f===i?f:vn(gs(f),0),h=h===i?h:gs(h),g-=c?c.length:0,64&t){var m=a,v=c;a=c=i}var y=p?i:ro(e),w=[e,t,n,a,c,m,v,d,f,h];if(y&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,a=r==u&&8==n||r==u&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!a)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?Ei(c,l,t[4]):l,e[4]=c?tn(e[3],s):t[4]}(l=t[5])&&(c=e[5],e[5]=c?Ti(c,l,t[6]):l,e[6]=c?tn(e[5],s):t[6]),(l=t[7])&&(e[7]=l),r&u&&(e[8]=null==e[8]?t[8]:yn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(w,y),e=w[0],t=w[1],n=w[2],a=w[3],c=w[4],!(h=w[9]=w[9]===i?p?0:e.length:vn(w[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)b=8==t||16==t?function(e,t,n){var o=Pi(e);return function a(){for(var s=arguments.length,l=r(s),u=s,c=oo(a);u--;)l[u]=arguments[u];var d=s<3&&l[0]!==c&&l[s-1]!==c?[]:tn(l,c);return(s-=d.length)<n?Gi(e,t,Wi,a.placeholder,i,l,d,i,i,n-s):vt(this&&this!==ot&&this instanceof a?o:e,this,l)}}(e,t,h):t!=l&&33!=t||c.length?Wi.apply(i,w):function(e,t,n,i){var o=1&t,a=Pi(e);return function t(){for(var s=-1,l=arguments.length,u=-1,c=i.length,d=r(c+l),f=this&&this!==ot&&this instanceof t?a:e;++u<c;)d[u]=i[u];for(;l--;)d[u++]=arguments[++s];return vt(f,o?n:this,d)}}(e,t,n,a);else var b=function(e,t,n){var r=1&t,i=Pi(e);return function t(){return(this&&this!==ot&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return Ao((y?Qr:Lo)(b,w),e,t)}function Zi(e,t,n,r){return e===i||Ba(e,Re[n])&&!Me.call(r,n)?t:e}function Ji(e,t,n,r,o,a){return ts(e)&&ts(t)&&(a.set(t,e),jr(e,t,i,Ji,a),a.delete(t)),e}function Qi(e){return os(e)?i:e}function Xi(e,t,n,r,o,a){var s=1&n,l=e.length,u=t.length;if(l!=u&&!(s&&u>l))return!1;var c=a.get(e),d=a.get(t);if(c&&d)return c==t&&d==e;var f=-1,h=!0,p=2&n?new qn:i;for(a.set(e,t),a.set(t,e);++f<l;){var g=e[f],m=t[f];if(r)var v=s?r(m,g,f,t,e,a):r(g,m,f,e,t,a);if(v!==i){if(v)continue;h=!1;break}if(p){if(!Lt(t,(function(e,t){if(!Gt(p,t)&&(g===e||o(g,e,n,r,a)))return p.push(t)}))){h=!1;break}}else if(g!==m&&!o(g,m,n,r,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function eo(e){return Io(Eo(e,i,$o),e+"")}function to(e){return Cr(e,As,co)}function no(e){return Cr(e,Ms,fo)}var ro=Ln?function(e){return Ln.get(e)}:ul;function io(e){for(var t=e.name+"",n=Rn[t],r=Me.call(Rn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function oo(e){return(Me.call(zn,"placeholder")?zn:e).placeholder}function ao(){var e=zn.iteratee||ol;return e=e===ol?Nr:e,arguments.length?e(arguments[0],arguments[1]):e}function so(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function lo(e){for(var t=As(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Co(i)]}return t}function uo(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Mr(n)?n:i}var co=fn?function(e){return null==e?[]:(e=xe(e),St(fn(e),(function(t){return et.call(e,t)})))}:ml,fo=fn?function(e){for(var t=[];e;)Tt(t,co(e)),e=$e(e);return t}:ml,ho=xr;function po(e,t,n){for(var r=-1,i=(t=vi(t,e)).length,o=!1;++r<i;){var a=Wo(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&es(i)&&vo(a,i)&&(Ga(e)||Va(e))}function go(e){return"function"!=typeof e.constructor||So(e)?{}:jn($e(e))}function mo(e){return Ga(e)||Va(e)||!!(it&&e&&e[it])}function vo(e,t){var n=typeof e;return!!(t=null==t?d:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function yo(e,t,n){if(!ts(n))return!1;var r=typeof t;return!!("number"==r?qa(n)&&vo(t,n.length):"string"==r&&t in n)&&Ba(n[t],e)}function wo(e,t){if(Ga(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!us(e))||X.test(e)||!Q.test(e)||null!=t&&e in xe(t)}function bo(e){var t=io(e),n=zn[t];if("function"!=typeof n||!(t in Un.prototype))return!1;if(e===n)return!0;var r=ro(n);return!!r&&e===r[0]}(Cn&&ho(new Cn(new ArrayBuffer(1)))!=A||xn&&ho(new xn)!=S||En&&ho(En.resolve())!=E||Tn&&ho(new Tn)!=k||kn&&ho(new kn)!=R)&&(ho=function(e){var t=xr(e),n=t==x?e.constructor:i,r=n?zo(n):"";if(r)switch(r){case In:return A;case An:return S;case Mn:return E;case Nn:return k;case Pn:return R}return t});var _o=Ie?Qa:vl;function So(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Re)}function Co(e){return e==e&&!ts(e)}function xo(e,t){return function(n){return null!=n&&n[e]===t&&(t!==i||e in xe(n))}}function Eo(e,t,n){return t=vn(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=vn(i.length-t,0),s=r(a);++o<a;)s[o]=i[t+o];o=-1;for(var l=r(t+1);++o<t;)l[o]=i[o];return l[t]=n(s),vt(e,this,l)}}function To(e,t){return t.length<2?e:Sr(e,ti(t,0,-1))}function ko(e,t){for(var n=e.length,r=yn(t.length,n),o=ki(e);r--;){var a=t[r];e[r]=vo(a,n)?o[a]:i}return e}function Oo(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Lo=Mo(Qr),Ro=Wt||function(e,t){return ot.setTimeout(e,t)},Io=Mo(Xr);function Ao(e,t,n){var r=t+"";return Io(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(oe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return wt(p,(function(n){var r="_."+n[0];t&n[1]&&!Ct(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function Mo(e){var t=0,n=0;return function(){var r=wn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function No(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var a=$r(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Po,Do,Fo=(Po=Pa((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,i){t.push(r?i.replace(ce,"$1"):n||e)})),t}),(function(e){return 500===Do.size&&Do.clear(),e})),Do=Po.cache,Po);function Wo(e){if("string"==typeof e||us(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function zo(e){if(null!=e){try{return Ae.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function jo(e){if(e instanceof Un)return e.clone();var t=new Hn(e.__wrapped__,e.__chain__);return t.__actions__=ki(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Bo=Yr((function(e,t){return Ya(e)?cr(e,mr(t,1,Ya,!0)):[]})),Ho=Yr((function(e,t){var n=Jo(t);return Ya(n)&&(n=i),Ya(e)?cr(e,mr(t,1,Ya,!0),ao(n,2)):[]})),Uo=Yr((function(e,t){var n=Jo(t);return Ya(n)&&(n=i),Ya(e)?cr(e,mr(t,1,Ya,!0),i,n):[]}));function Vo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:gs(n);return i<0&&(i=vn(r+i,0)),At(e,ao(t,3),i)}function Go(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=gs(n),o=n<0?vn(r+o,0):yn(o,r-1)),At(e,ao(t,3),o,!0)}function $o(e){return null!=e&&e.length?mr(e,1):[]}function qo(e){return e&&e.length?e[0]:i}var Yo=Yr((function(e){var t=Et(e,gi);return t.length&&t[0]===e[0]?Or(t):[]})),Ko=Yr((function(e){var t=Jo(e),n=Et(e,gi);return t===Jo(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Or(n,ao(t,2)):[]})),Zo=Yr((function(e){var t=Jo(e),n=Et(e,gi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Or(n,i,t):[]}));function Jo(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Qo=Yr(Xo);function Xo(e,t){return e&&e.length&&t&&t.length?Vr(e,t):e}var ea=eo((function(e,t){var n=null==e?0:e.length,r=or(e,t);return Gr(e,Et(t,(function(e){return vo(e,n)?+e:e})).sort(xi)),r}));function ta(e){return null==e?e:Sn.call(e)}var na=Yr((function(e){return li(mr(e,1,Ya,!0))})),ra=Yr((function(e){var t=Jo(e);return Ya(t)&&(t=i),li(mr(e,1,Ya,!0),ao(t,2))})),ia=Yr((function(e){var t=Jo(e);return t="function"==typeof t?t:i,li(mr(e,1,Ya,!0),i,t)}));function oa(e){if(!e||!e.length)return[];var t=0;return e=St(e,(function(e){if(Ya(e))return t=vn(e.length,t),!0})),Bt(t,(function(t){return Et(e,Ft(t))}))}function aa(e,t){if(!e||!e.length)return[];var n=oa(e);return null==t?n:Et(n,(function(e){return vt(t,i,e)}))}var sa=Yr((function(e,t){return Ya(e)?cr(e,t):[]})),la=Yr((function(e){return hi(St(e,Ya))})),ua=Yr((function(e){var t=Jo(e);return Ya(t)&&(t=i),hi(St(e,Ya),ao(t,2))})),ca=Yr((function(e){var t=Jo(e);return t="function"==typeof t?t:i,hi(St(e,Ya),i,t)})),da=Yr(oa),fa=Yr((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,aa(e,n)}));function ha(e){var t=zn(e);return t.__chain__=!0,t}function pa(e,t){return t(e)}var ga=eo((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return or(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Un&&vo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:pa,args:[o],thisArg:i}),new Hn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)})),ma=Li((function(e,t,n){Me.call(e,n)?++e[n]:ir(e,n,1)})),va=Di(Vo),ya=Di(Go);function wa(e,t){return(Ga(e)?wt:dr)(e,ao(t,3))}function ba(e,t){return(Ga(e)?bt:fr)(e,ao(t,3))}var _a=Li((function(e,t,n){Me.call(e,n)?e[n].push(t):ir(e,n,[t])})),Sa=Yr((function(e,t,n){var i=-1,o="function"==typeof t,a=qa(e)?r(e.length):[];return dr(e,(function(e){a[++i]=o?vt(t,e,n):Lr(e,t,n)})),a})),Ca=Li((function(e,t,n){ir(e,n,t)}));function xa(e,t){return(Ga(e)?Et:Fr)(e,ao(t,3))}var Ea=Li((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Ta=Yr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&yo(e,t[0],t[1])?t=[]:n>2&&yo(t[0],t[1],t[2])&&(t=[t[0]]),Hr(e,mr(t,1),[])})),ka=Rt||function(){return ot.Date.now()};function Oa(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Ki(e,u,i,i,i,i,t)}function La(e,t){var n;if("function"!=typeof t)throw new ke(o);return e=gs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Ra=Yr((function(e,t,n){var r=1;if(n.length){var i=tn(n,oo(Ra));r|=l}return Ki(e,r,t,n,i)})),Ia=Yr((function(e,t,n){var r=3;if(n.length){var i=tn(n,oo(Ia));r|=l}return Ki(t,r,e,n,i)}));function Aa(e,t,n){var r,a,s,l,u,c,d=0,f=!1,h=!1,p=!0;if("function"!=typeof e)throw new ke(o);function g(t){var n=r,o=a;return r=a=i,d=t,l=e.apply(o,n)}function m(e){return d=e,u=Ro(y,t),f?g(e):l}function v(e){var n=e-c;return c===i||n>=t||n<0||h&&e-d>=s}function y(){var e=ka();if(v(e))return w(e);u=Ro(y,function(e){var n=t-(e-c);return h?yn(n,s-(e-d)):n}(e))}function w(e){return u=i,p&&r?g(e):(r=a=i,l)}function b(){var e=ka(),n=v(e);if(r=arguments,a=this,c=e,n){if(u===i)return m(c);if(h)return bi(u),u=Ro(y,t),g(c)}return u===i&&(u=Ro(y,t)),l}return t=vs(t)||0,ts(n)&&(f=!!n.leading,s=(h="maxWait"in n)?vn(vs(n.maxWait)||0,t):s,p="trailing"in n?!!n.trailing:p),b.cancel=function(){u!==i&&bi(u),d=0,r=c=a=u=i},b.flush=function(){return u===i?l:w(ka())},b}var Ma=Yr((function(e,t){return ur(e,1,t)})),Na=Yr((function(e,t,n){return ur(e,vs(t)||0,n)}));function Pa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ke(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Pa.Cache||$n),n}function Da(e){if("function"!=typeof e)throw new ke(o);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)}}Pa.Cache=$n;var Fa=yi((function(e,t){var n=(t=1==t.length&&Ga(t[0])?Et(t[0],Ut(ao())):Et(mr(t,1),Ut(ao()))).length;return Yr((function(r){for(var i=-1,o=yn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return vt(e,this,r)}))})),Wa=Yr((function(e,t){var n=tn(t,oo(Wa));return Ki(e,l,i,t,n)})),za=Yr((function(e,t){var n=tn(t,oo(za));return Ki(e,64,i,t,n)})),ja=eo((function(e,t){return Ki(e,256,i,i,i,t)}));function Ba(e,t){return e===t||e!=e&&t!=t}var Ha=Vi(Er),Ua=Vi((function(e,t){return e>=t})),Va=Rr(function(){return arguments}())?Rr:function(e){return ns(e)&&Me.call(e,"callee")&&!et.call(e,"callee")},Ga=r.isArray,$a=dt?Ut(dt):function(e){return ns(e)&&xr(e)==I};function qa(e){return null!=e&&es(e.length)&&!Qa(e)}function Ya(e){return ns(e)&&qa(e)}var Ka=hn||vl,Za=ft?Ut(ft):function(e){return ns(e)&&xr(e)==y};function Ja(e){if(!ns(e))return!1;var t=xr(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!os(e)}function Qa(e){if(!ts(e))return!1;var t=xr(e);return t==b||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xa(e){return"number"==typeof e&&e==gs(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ns(e){return null!=e&&"object"==typeof e}var rs=ht?Ut(ht):function(e){return ns(e)&&ho(e)==S};function is(e){return"number"==typeof e||ns(e)&&xr(e)==C}function os(e){if(!ns(e)||xr(e)!=x)return!1;var t=$e(e);if(null===t)return!0;var n=Me.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ae.call(n)==Fe}var as=pt?Ut(pt):function(e){return ns(e)&&xr(e)==T},ss=gt?Ut(gt):function(e){return ns(e)&&ho(e)==k};function ls(e){return"string"==typeof e||!Ga(e)&&ns(e)&&xr(e)==O}function us(e){return"symbol"==typeof e||ns(e)&&xr(e)==L}var cs=mt?Ut(mt):function(e){return ns(e)&&es(e.length)&&!!Qe[xr(e)]},ds=Vi(Dr),fs=Vi((function(e,t){return e<=t}));function hs(e){if(!e)return[];if(qa(e))return ls(e)?an(e):ki(e);if(at&&e[at])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[at]());var t=ho(e);return(t==S?Xt:t==k?nn:Bs)(e)}function ps(e){return e?(e=vs(e))===c||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function gs(e){var t=ps(e),n=t%1;return t==t?n?t-n:t:0}function ms(e){return e?ar(gs(e),0,h):0}function vs(e){if("number"==typeof e)return e;if(us(e))return f;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Ht(e);var n=pe.test(e);return n||me.test(e)?nt(e.slice(2),n?2:8):he.test(e)?f:+e}function ys(e){return Oi(e,Ms(e))}function ws(e){return null==e?"":si(e)}var bs=Ri((function(e,t){if(So(t)||qa(t))Oi(t,As(t),e);else for(var n in t)Me.call(t,n)&&er(e,n,t[n])})),_s=Ri((function(e,t){Oi(t,Ms(t),e)})),Ss=Ri((function(e,t,n,r){Oi(t,Ms(t),e,r)})),Cs=Ri((function(e,t,n,r){Oi(t,As(t),e,r)})),xs=eo(or),Es=Yr((function(e,t){e=xe(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&yo(t[0],t[1],o)&&(r=1);++n<r;)for(var a=t[n],s=Ms(a),l=-1,u=s.length;++l<u;){var c=s[l],d=e[c];(d===i||Ba(d,Re[c])&&!Me.call(e,c))&&(e[c]=a[c])}return e})),Ts=Yr((function(e){return e.push(i,Ji),vt(Ps,i,e)}));function ks(e,t,n){var r=null==e?i:Sr(e,t);return r===i?n:r}function Os(e,t){return null!=e&&po(e,t,kr)}var Ls=zi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),e[t]=n}),tl(il)),Rs=zi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),Me.call(e,t)?e[t].push(n):e[t]=[n]}),ao),Is=Yr(Lr);function As(e){return qa(e)?Kn(e):Pr(e)}function Ms(e){return qa(e)?Kn(e,!0):function(e){if(!ts(e))return function(e){var t=[];if(null!=e)for(var n in xe(e))t.push(n);return t}(e);var t=So(e),n=[];for(var r in e)("constructor"!=r||!t&&Me.call(e,r))&&n.push(r);return n}(e)}var Ns=Ri((function(e,t,n){jr(e,t,n)})),Ps=Ri((function(e,t,n,r){jr(e,t,n,r)})),Ds=eo((function(e,t){var n={};if(null==e)return n;var r=!1;t=Et(t,(function(t){return t=vi(t,e),r||(r=t.length>1),t})),Oi(e,no(e),n),r&&(n=sr(n,7,Qi));for(var i=t.length;i--;)ui(n,t[i]);return n})),Fs=eo((function(e,t){return null==e?{}:function(e,t){return Ur(e,t,(function(t,n){return Os(e,n)}))}(e,t)}));function Ws(e,t){if(null==e)return{};var n=Et(no(e),(function(e){return[e]}));return t=ao(t),Ur(e,n,(function(e,n){return t(e,n[0])}))}var zs=Yi(As),js=Yi(Ms);function Bs(e){return null==e?[]:Vt(e,As(e))}var Hs=Ni((function(e,t,n){return t=t.toLowerCase(),e+(n?Us(t):t)}));function Us(e){return Js(ws(e).toLowerCase())}function Vs(e){return(e=ws(e))&&e.replace(ye,Kt).replace(Ge,"")}var Gs=Ni((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),$s=Ni((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),qs=Mi("toLowerCase"),Ys=Ni((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Ks=Ni((function(e,t,n){return e+(n?" ":"")+Js(t)})),Zs=Ni((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Js=Mi("toUpperCase");function Qs(e,t,n){return e=ws(e),(t=n?i:t)===i?function(e){return Ke.test(e)}(e)?function(e){return e.match(qe)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Xs=Yr((function(e,t){try{return vt(e,i,t)}catch(e){return Ja(e)?e:new _e(e)}})),el=eo((function(e,t){return wt(t,(function(t){t=Wo(t),ir(e,t,Ra(e[t],e))})),e}));function tl(e){return function(){return e}}var nl=Fi(),rl=Fi(!0);function il(e){return e}function ol(e){return Nr("function"==typeof e?e:sr(e,1))}var al=Yr((function(e,t){return function(n){return Lr(n,e,t)}})),sl=Yr((function(e,t){return function(n){return Lr(e,n,t)}}));function ll(e,t,n){var r=As(t),i=_r(t,r);null!=n||ts(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=_r(t,As(t)));var o=!(ts(n)&&"chain"in n&&!n.chain),a=Qa(e);return wt(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=ki(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Tt([this.value()],arguments))})})),e}function ul(){}var cl=Bi(Et),dl=Bi(_t),fl=Bi(Lt);function hl(e){return wo(e)?Ft(Wo(e)):function(e){return function(t){return Sr(t,e)}}(e)}var pl=Ui(),gl=Ui(!0);function ml(){return[]}function vl(){return!1}var yl,wl=ji((function(e,t){return e+t}),0),bl=$i("ceil"),_l=ji((function(e,t){return e/t}),1),Sl=$i("floor"),Cl=ji((function(e,t){return e*t}),1),xl=$i("round"),El=ji((function(e,t){return e-t}),0);return zn.after=function(e,t){if("function"!=typeof t)throw new ke(o);return e=gs(e),function(){if(--e<1)return t.apply(this,arguments)}},zn.ary=Oa,zn.assign=bs,zn.assignIn=_s,zn.assignInWith=Ss,zn.assignWith=Cs,zn.at=xs,zn.before=La,zn.bind=Ra,zn.bindAll=el,zn.bindKey=Ia,zn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ga(e)?e:[e]},zn.chain=ha,zn.chunk=function(e,t,n){t=(n?yo(e,t,n):t===i)?1:vn(gs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,l=r(cn(o/t));a<o;)l[s++]=ti(e,a,a+=t);return l},zn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},zn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Tt(Ga(n)?ki(n):[n],mr(t,1))},zn.cond=function(e){var t=null==e?0:e.length,n=ao();return e=t?Et(e,(function(e){if("function"!=typeof e[1])throw new ke(o);return[n(e[0]),e[1]]})):[],Yr((function(n){for(var r=-1;++r<t;){var i=e[r];if(vt(i[0],this,n))return vt(i[1],this,n)}}))},zn.conforms=function(e){return function(e){var t=As(e);return function(n){return lr(n,e,t)}}(sr(e,1))},zn.constant=tl,zn.countBy=ma,zn.create=function(e,t){var n=jn(e);return null==t?n:rr(n,t)},zn.curry=function e(t,n,r){var o=Ki(t,8,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},zn.curryRight=function e(t,n,r){var o=Ki(t,16,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},zn.debounce=Aa,zn.defaults=Es,zn.defaultsDeep=Ts,zn.defer=Ma,zn.delay=Na,zn.difference=Bo,zn.differenceBy=Ho,zn.differenceWith=Uo,zn.drop=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,(t=n||t===i?1:gs(t))<0?0:t,r):[]},zn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,0,(t=r-(t=n||t===i?1:gs(t)))<0?0:t):[]},zn.dropRightWhile=function(e,t){return e&&e.length?di(e,ao(t,3),!0,!0):[]},zn.dropWhile=function(e,t){return e&&e.length?di(e,ao(t,3),!0):[]},zn.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&yo(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=gs(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:gs(r))<0&&(r+=o),r=n>r?0:ms(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},zn.filter=function(e,t){return(Ga(e)?St:gr)(e,ao(t,3))},zn.flatMap=function(e,t){return mr(xa(e,t),1)},zn.flatMapDeep=function(e,t){return mr(xa(e,t),c)},zn.flatMapDepth=function(e,t,n){return n=n===i?1:gs(n),mr(xa(e,t),n)},zn.flatten=$o,zn.flattenDeep=function(e){return null!=e&&e.length?mr(e,c):[]},zn.flattenDepth=function(e,t){return null!=e&&e.length?mr(e,t=t===i?1:gs(t)):[]},zn.flip=function(e){return Ki(e,512)},zn.flow=nl,zn.flowRight=rl,zn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},zn.functions=function(e){return null==e?[]:_r(e,As(e))},zn.functionsIn=function(e){return null==e?[]:_r(e,Ms(e))},zn.groupBy=_a,zn.initial=function(e){return null!=e&&e.length?ti(e,0,-1):[]},zn.intersection=Yo,zn.intersectionBy=Ko,zn.intersectionWith=Zo,zn.invert=Ls,zn.invertBy=Rs,zn.invokeMap=Sa,zn.iteratee=ol,zn.keyBy=Ca,zn.keys=As,zn.keysIn=Ms,zn.map=xa,zn.mapKeys=function(e,t){var n={};return t=ao(t,3),wr(e,(function(e,r,i){ir(n,t(e,r,i),e)})),n},zn.mapValues=function(e,t){var n={};return t=ao(t,3),wr(e,(function(e,r,i){ir(n,r,t(e,r,i))})),n},zn.matches=function(e){return Wr(sr(e,1))},zn.matchesProperty=function(e,t){return zr(e,sr(t,1))},zn.memoize=Pa,zn.merge=Ns,zn.mergeWith=Ps,zn.method=al,zn.methodOf=sl,zn.mixin=ll,zn.negate=Da,zn.nthArg=function(e){return e=gs(e),Yr((function(t){return Br(t,e)}))},zn.omit=Ds,zn.omitBy=function(e,t){return Ws(e,Da(ao(t)))},zn.once=function(e){return La(2,e)},zn.orderBy=function(e,t,n,r){return null==e?[]:(Ga(t)||(t=null==t?[]:[t]),Ga(n=r?i:n)||(n=null==n?[]:[n]),Hr(e,t,n))},zn.over=cl,zn.overArgs=Fa,zn.overEvery=dl,zn.overSome=fl,zn.partial=Wa,zn.partialRight=za,zn.partition=Ea,zn.pick=Fs,zn.pickBy=Ws,zn.property=hl,zn.propertyOf=function(e){return function(t){return null==e?i:Sr(e,t)}},zn.pull=Qo,zn.pullAll=Xo,zn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Vr(e,t,ao(n,2)):e},zn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Vr(e,t,i,n):e},zn.pullAt=ea,zn.range=pl,zn.rangeRight=gl,zn.rearg=ja,zn.reject=function(e,t){return(Ga(e)?St:gr)(e,Da(ao(t,3)))},zn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=ao(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return Gr(e,i),n},zn.rest=function(e,t){if("function"!=typeof e)throw new ke(o);return Yr(e,t=t===i?t:gs(t))},zn.reverse=ta,zn.sampleSize=function(e,t,n){return t=(n?yo(e,t,n):t===i)?1:gs(t),(Ga(e)?Jn:Zr)(e,t)},zn.set=function(e,t,n){return null==e?e:Jr(e,t,n)},zn.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Jr(e,t,n,r)},zn.shuffle=function(e){return(Ga(e)?Qn:ei)(e)},zn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&yo(e,t,n)?(t=0,n=r):(t=null==t?0:gs(t),n=n===i?r:gs(n)),ti(e,t,n)):[]},zn.sortBy=Ta,zn.sortedUniq=function(e){return e&&e.length?oi(e):[]},zn.sortedUniqBy=function(e,t){return e&&e.length?oi(e,ao(t,2)):[]},zn.split=function(e,t,n){return n&&"number"!=typeof n&&yo(e,t,n)&&(t=n=i),(n=n===i?h:n>>>0)?(e=ws(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=si(t))&&Qt(e)?wi(an(e),0,n):e.split(t,n):[]},zn.spread=function(e,t){if("function"!=typeof e)throw new ke(o);return t=null==t?0:vn(gs(t),0),Yr((function(n){var r=n[t],i=wi(n,0,t);return r&&Tt(i,r),vt(e,this,i)}))},zn.tail=function(e){var t=null==e?0:e.length;return t?ti(e,1,t):[]},zn.take=function(e,t,n){return e&&e.length?ti(e,0,(t=n||t===i?1:gs(t))<0?0:t):[]},zn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,(t=r-(t=n||t===i?1:gs(t)))<0?0:t,r):[]},zn.takeRightWhile=function(e,t){return e&&e.length?di(e,ao(t,3),!1,!0):[]},zn.takeWhile=function(e,t){return e&&e.length?di(e,ao(t,3)):[]},zn.tap=function(e,t){return t(e),e},zn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new ke(o);return ts(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Aa(e,t,{leading:r,maxWait:t,trailing:i})},zn.thru=pa,zn.toArray=hs,zn.toPairs=zs,zn.toPairsIn=js,zn.toPath=function(e){return Ga(e)?Et(e,Wo):us(e)?[e]:ki(Fo(ws(e)))},zn.toPlainObject=ys,zn.transform=function(e,t,n){var r=Ga(e),i=r||Ka(e)||cs(e);if(t=ao(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:ts(e)&&Qa(o)?jn($e(e)):{}}return(i?wt:wr)(e,(function(e,r,i){return t(n,e,r,i)})),n},zn.unary=function(e){return Oa(e,1)},zn.union=na,zn.unionBy=ra,zn.unionWith=ia,zn.uniq=function(e){return e&&e.length?li(e):[]},zn.uniqBy=function(e,t){return e&&e.length?li(e,ao(t,2)):[]},zn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?li(e,i,t):[]},zn.unset=function(e,t){return null==e||ui(e,t)},zn.unzip=oa,zn.unzipWith=aa,zn.update=function(e,t,n){return null==e?e:ci(e,t,mi(n))},zn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:ci(e,t,mi(n),r)},zn.values=Bs,zn.valuesIn=function(e){return null==e?[]:Vt(e,Ms(e))},zn.without=sa,zn.words=Qs,zn.wrap=function(e,t){return Wa(mi(t),e)},zn.xor=la,zn.xorBy=ua,zn.xorWith=ca,zn.zip=da,zn.zipObject=function(e,t){return pi(e||[],t||[],er)},zn.zipObjectDeep=function(e,t){return pi(e||[],t||[],Jr)},zn.zipWith=fa,zn.entries=zs,zn.entriesIn=js,zn.extend=_s,zn.extendWith=Ss,ll(zn,zn),zn.add=wl,zn.attempt=Xs,zn.camelCase=Hs,zn.capitalize=Us,zn.ceil=bl,zn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=vs(n))==n?n:0),t!==i&&(t=(t=vs(t))==t?t:0),ar(vs(e),t,n)},zn.clone=function(e){return sr(e,4)},zn.cloneDeep=function(e){return sr(e,5)},zn.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:i)},zn.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:i)},zn.conformsTo=function(e,t){return null==t||lr(e,t,As(t))},zn.deburr=Vs,zn.defaultTo=function(e,t){return null==e||e!=e?t:e},zn.divide=_l,zn.endsWith=function(e,t,n){e=ws(e),t=si(t);var r=e.length,o=n=n===i?r:ar(gs(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},zn.eq=Ba,zn.escape=function(e){return(e=ws(e))&&Y.test(e)?e.replace($,Zt):e},zn.escapeRegExp=function(e){return(e=ws(e))&&ne.test(e)?e.replace(te,"\\$&"):e},zn.every=function(e,t,n){var r=Ga(e)?_t:hr;return n&&yo(e,t,n)&&(t=i),r(e,ao(t,3))},zn.find=va,zn.findIndex=Vo,zn.findKey=function(e,t){return It(e,ao(t,3),wr)},zn.findLast=ya,zn.findLastIndex=Go,zn.findLastKey=function(e,t){return It(e,ao(t,3),br)},zn.floor=Sl,zn.forEach=wa,zn.forEachRight=ba,zn.forIn=function(e,t){return null==e?e:vr(e,ao(t,3),Ms)},zn.forInRight=function(e,t){return null==e?e:yr(e,ao(t,3),Ms)},zn.forOwn=function(e,t){return e&&wr(e,ao(t,3))},zn.forOwnRight=function(e,t){return e&&br(e,ao(t,3))},zn.get=ks,zn.gt=Ha,zn.gte=Ua,zn.has=function(e,t){return null!=e&&po(e,t,Tr)},zn.hasIn=Os,zn.head=qo,zn.identity=il,zn.includes=function(e,t,n,r){e=qa(e)?e:Bs(e),n=n&&!r?gs(n):0;var i=e.length;return n<0&&(n=vn(i+n,0)),ls(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Mt(e,t,n)>-1},zn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:gs(n);return i<0&&(i=vn(r+i,0)),Mt(e,t,i)},zn.inRange=function(e,t,n){return t=ps(t),n===i?(n=t,t=0):n=ps(n),function(e,t,n){return e>=yn(t,n)&&e<vn(t,n)}(e=vs(e),t,n)},zn.invoke=Is,zn.isArguments=Va,zn.isArray=Ga,zn.isArrayBuffer=$a,zn.isArrayLike=qa,zn.isArrayLikeObject=Ya,zn.isBoolean=function(e){return!0===e||!1===e||ns(e)&&xr(e)==v},zn.isBuffer=Ka,zn.isDate=Za,zn.isElement=function(e){return ns(e)&&1===e.nodeType&&!os(e)},zn.isEmpty=function(e){if(null==e)return!0;if(qa(e)&&(Ga(e)||"string"==typeof e||"function"==typeof e.splice||Ka(e)||cs(e)||Va(e)))return!e.length;var t=ho(e);if(t==S||t==k)return!e.size;if(So(e))return!Pr(e).length;for(var n in e)if(Me.call(e,n))return!1;return!0},zn.isEqual=function(e,t){return Ir(e,t)},zn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Ir(e,t,i,n):!!r},zn.isError=Ja,zn.isFinite=function(e){return"number"==typeof e&&pn(e)},zn.isFunction=Qa,zn.isInteger=Xa,zn.isLength=es,zn.isMap=rs,zn.isMatch=function(e,t){return e===t||Ar(e,t,lo(t))},zn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Ar(e,t,lo(t),n)},zn.isNaN=function(e){return is(e)&&e!=+e},zn.isNative=function(e){if(_o(e))throw new _e("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Mr(e)},zn.isNil=function(e){return null==e},zn.isNull=function(e){return null===e},zn.isNumber=is,zn.isObject=ts,zn.isObjectLike=ns,zn.isPlainObject=os,zn.isRegExp=as,zn.isSafeInteger=function(e){return Xa(e)&&e>=-9007199254740991&&e<=d},zn.isSet=ss,zn.isString=ls,zn.isSymbol=us,zn.isTypedArray=cs,zn.isUndefined=function(e){return e===i},zn.isWeakMap=function(e){return ns(e)&&ho(e)==R},zn.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==xr(e)},zn.join=function(e,t){return null==e?"":gn.call(e,t)},zn.kebabCase=Gs,zn.last=Jo,zn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=gs(n))<0?vn(r+o,0):yn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):At(e,Pt,o,!0)},zn.lowerCase=$s,zn.lowerFirst=qs,zn.lt=ds,zn.lte=fs,zn.max=function(e){return e&&e.length?pr(e,il,Er):i},zn.maxBy=function(e,t){return e&&e.length?pr(e,ao(t,2),Er):i},zn.mean=function(e){return Dt(e,il)},zn.meanBy=function(e,t){return Dt(e,ao(t,2))},zn.min=function(e){return e&&e.length?pr(e,il,Dr):i},zn.minBy=function(e,t){return e&&e.length?pr(e,ao(t,2),Dr):i},zn.stubArray=ml,zn.stubFalse=vl,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=Cl,zn.nth=function(e,t){return e&&e.length?Br(e,gs(t)):i},zn.noConflict=function(){return ot._===this&&(ot._=We),this},zn.noop=ul,zn.now=ka,zn.pad=function(e,t,n){e=ws(e);var r=(t=gs(t))?on(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Hi(dn(i),n)+e+Hi(cn(i),n)},zn.padEnd=function(e,t,n){e=ws(e);var r=(t=gs(t))?on(e):0;return t&&r<t?e+Hi(t-r,n):e},zn.padStart=function(e,t,n){e=ws(e);var r=(t=gs(t))?on(e):0;return t&&r<t?Hi(t-r,n)+e:e},zn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),bn(ws(e).replace(re,""),t||0)},zn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&yo(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=ps(e),t===i?(t=e,e=0):t=ps(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=_n();return yn(e+o*(t-e+tt("1e-"+((o+"").length-1))),t)}return $r(e,t)},zn.reduce=function(e,t,n){var r=Ga(e)?kt:zt,i=arguments.length<3;return r(e,ao(t,4),n,i,dr)},zn.reduceRight=function(e,t,n){var r=Ga(e)?Ot:zt,i=arguments.length<3;return r(e,ao(t,4),n,i,fr)},zn.repeat=function(e,t,n){return t=(n?yo(e,t,n):t===i)?1:gs(t),qr(ws(e),t)},zn.replace=function(){var e=arguments,t=ws(e[0]);return e.length<3?t:t.replace(e[1],e[2])},zn.result=function(e,t,n){var r=-1,o=(t=vi(t,e)).length;for(o||(o=1,e=i);++r<o;){var a=null==e?i:e[Wo(t[r])];a===i&&(r=o,a=n),e=Qa(a)?a.call(e):a}return e},zn.round=xl,zn.runInContext=e,zn.sample=function(e){return(Ga(e)?Zn:Kr)(e)},zn.size=function(e){if(null==e)return 0;if(qa(e))return ls(e)?on(e):e.length;var t=ho(e);return t==S||t==k?e.size:Pr(e).length},zn.snakeCase=Ys,zn.some=function(e,t,n){var r=Ga(e)?Lt:ni;return n&&yo(e,t,n)&&(t=i),r(e,ao(t,3))},zn.sortedIndex=function(e,t){return ri(e,t)},zn.sortedIndexBy=function(e,t,n){return ii(e,t,ao(n,2))},zn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ri(e,t);if(r<n&&Ba(e[r],t))return r}return-1},zn.sortedLastIndex=function(e,t){return ri(e,t,!0)},zn.sortedLastIndexBy=function(e,t,n){return ii(e,t,ao(n,2),!0)},zn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ri(e,t,!0)-1;if(Ba(e[n],t))return n}return-1},zn.startCase=Ks,zn.startsWith=function(e,t,n){return e=ws(e),n=null==n?0:ar(gs(n),0,e.length),t=si(t),e.slice(n,n+t.length)==t},zn.subtract=El,zn.sum=function(e){return e&&e.length?jt(e,il):0},zn.sumBy=function(e,t){return e&&e.length?jt(e,ao(t,2)):0},zn.template=function(e,t,n){var r=zn.templateSettings;n&&yo(e,t,n)&&(t=i),e=ws(e),t=Ss({},t,r,Zi);var o,a,s=Ss({},t.imports,r.imports,Zi),l=As(s),u=Vt(s,l),c=0,d=t.interpolate||we,f="__p += '",h=Ee((t.escape||we).source+"|"+d.source+"|"+(d===J?de:we).source+"|"+(t.evaluate||we).source+"|$","g"),p="//# sourceURL="+(Me.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Je+"]")+"\n";e.replace(h,(function(t,n,r,i,s,l){return r||(r=i),f+=e.slice(c,l).replace(be,Jt),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),s&&(a=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=l+t.length,t})),f+="';\n";var g=Me.call(t,"variable")&&t.variable;if(g){if(ue.test(g))throw new _e("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(H,""):f).replace(U,"$1").replace(V,"$1;"),f="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m=Xs((function(){return Se(l,p+"return "+f).apply(i,u)}));if(m.source=f,Ja(m))throw m;return m},zn.times=function(e,t){if((e=gs(e))<1||e>d)return[];var n=h,r=yn(e,h);t=ao(t),e-=h;for(var i=Bt(r,t);++n<e;)t(n);return i},zn.toFinite=ps,zn.toInteger=gs,zn.toLength=ms,zn.toLower=function(e){return ws(e).toLowerCase()},zn.toNumber=vs,zn.toSafeInteger=function(e){return e?ar(gs(e),-9007199254740991,d):0===e?e:0},zn.toString=ws,zn.toUpper=function(e){return ws(e).toUpperCase()},zn.trim=function(e,t,n){if((e=ws(e))&&(n||t===i))return Ht(e);if(!e||!(t=si(t)))return e;var r=an(e),o=an(t);return wi(r,$t(r,o),qt(r,o)+1).join("")},zn.trimEnd=function(e,t,n){if((e=ws(e))&&(n||t===i))return e.slice(0,sn(e)+1);if(!e||!(t=si(t)))return e;var r=an(e);return wi(r,0,qt(r,an(t))+1).join("")},zn.trimStart=function(e,t,n){if((e=ws(e))&&(n||t===i))return e.replace(re,"");if(!e||!(t=si(t)))return e;var r=an(e);return wi(r,$t(r,an(t))).join("")},zn.truncate=function(e,t){var n=30,r="...";if(ts(t)){var o="separator"in t?t.separator:o;n="length"in t?gs(t.length):n,r="omission"in t?si(t.omission):r}var a=(e=ws(e)).length;if(Qt(e)){var s=an(e);a=s.length}if(n>=a)return e;var l=n-on(r);if(l<1)return r;var u=s?wi(s,0,l).join(""):e.slice(0,l);if(o===i)return u+r;if(s&&(l+=u.length-l),as(o)){if(e.slice(l).search(o)){var c,d=u;for(o.global||(o=Ee(o.source,ws(fe.exec(o))+"g")),o.lastIndex=0;c=o.exec(d);)var f=c.index;u=u.slice(0,f===i?l:f)}}else if(e.indexOf(si(o),l)!=l){var h=u.lastIndexOf(o);h>-1&&(u=u.slice(0,h))}return u+r},zn.unescape=function(e){return(e=ws(e))&&q.test(e)?e.replace(G,ln):e},zn.uniqueId=function(e){var t=++Ne;return ws(e)+t},zn.upperCase=Zs,zn.upperFirst=Js,zn.each=wa,zn.eachRight=ba,zn.first=qo,ll(zn,(yl={},wr(zn,(function(e,t){Me.call(zn.prototype,t)||(yl[t]=e)})),yl),{chain:!1}),zn.VERSION="4.17.21",wt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){zn[e].placeholder=zn})),wt(["drop","take"],(function(e,t){Un.prototype[e]=function(n){n=n===i?1:vn(gs(n),0);var r=this.__filtered__&&!t?new Un(this):this.clone();return r.__filtered__?r.__takeCount__=yn(n,r.__takeCount__):r.__views__.push({size:yn(n,h),type:e+(r.__dir__<0?"Right":"")}),r},Un.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),wt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Un.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ao(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),wt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Un.prototype[e]=function(){return this[n](1).value()[0]}})),wt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Un.prototype[e]=function(){return this.__filtered__?new Un(this):this[n](1)}})),Un.prototype.compact=function(){return this.filter(il)},Un.prototype.find=function(e){return this.filter(e).head()},Un.prototype.findLast=function(e){return this.reverse().find(e)},Un.prototype.invokeMap=Yr((function(e,t){return"function"==typeof e?new Un(this):this.map((function(n){return Lr(n,e,t)}))})),Un.prototype.reject=function(e){return this.filter(Da(ao(e)))},Un.prototype.slice=function(e,t){e=gs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Un(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=gs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Un.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Un.prototype.toArray=function(){return this.take(h)},wr(Un.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=zn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(zn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Un,u=s[0],c=l||Ga(t),d=function(e){var t=o.apply(zn,Tt([e],s));return r&&f?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var f=this.__chain__,h=!!this.__actions__.length,p=a&&!f,g=l&&!h;if(!a&&c){t=g?t:new Un(this);var m=e.apply(t,s);return m.__actions__.push({func:pa,args:[d],thisArg:i}),new Hn(m,f)}return p&&g?e.apply(this,s):(m=this.thru(d),p?r?m.value()[0]:m.value():m)})})),wt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Oe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);zn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ga(i)?i:[],e)}return this[n]((function(n){return t.apply(Ga(n)?n:[],e)}))}})),wr(Un.prototype,(function(e,t){var n=zn[t];if(n){var r=n.name+"";Me.call(Rn,r)||(Rn[r]=[]),Rn[r].push({name:t,func:n})}})),Rn[Wi(i,2).name]=[{name:"wrapper",func:i}],Un.prototype.clone=function(){var e=new Un(this.__wrapped__);return e.__actions__=ki(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ki(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ki(this.__views__),e},Un.prototype.reverse=function(){if(this.__filtered__){var e=new Un(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Un.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ga(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=yn(t,e+a);break;case"takeRight":e=vn(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,l=s-a,u=r?s:a-1,c=this.__iteratees__,d=c.length,f=0,h=yn(l,this.__takeCount__);if(!n||!r&&i==l&&h==l)return fi(e,this.__actions__);var p=[];e:for(;l--&&f<h;){for(var g=-1,m=e[u+=t];++g<d;){var v=c[g],y=v.iteratee,w=v.type,b=y(m);if(2==w)m=b;else if(!b){if(1==w)continue e;break e}}p[f++]=m}return p},zn.prototype.at=ga,zn.prototype.chain=function(){return ha(this)},zn.prototype.commit=function(){return new Hn(this.value(),this.__chain__)},zn.prototype.next=function(){this.__values__===i&&(this.__values__=hs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var t,n=this;n instanceof Bn;){var r=jo(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Un){var t=e;return this.__actions__.length&&(t=new Un(this)),(t=t.reverse()).__actions__.push({func:pa,args:[ta],thisArg:i}),new Hn(t,this.__chain__)}return this.thru(ta)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return fi(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,at&&(zn.prototype[at]=function(){return this}),zn}();ot._=un,(r=function(){return un}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},54883:(e,t,n)=>{var r=n(25835);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},98253:(e,t,n)=>{var r=n(158);e.exports=function(){return r.Date.now()}},75892:(e,t,n)=>{var r=n(11241),i=n(39169)((function(e,t){return null==e?{}:r(e,t)}));e.exports=i},59174:e=>{e.exports=function(){return[]}},30647:e=>{e.exports=function(){return!1}},38172:(e,t,n)=>{var r=n(76897),i=n(23619);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},95053:(e,t,n)=>{var r=n(12383),i=n(23619),o=n(81878),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):a.test(e)?NaN:+e}},33270:(e,t,n)=>{var r=n(80430);e.exports=function(e){return null==e?"":r(e)}},99813:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}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 a,s,l=i(e),u=1;u<arguments.length;u++){for(var c in a=Object(arguments[u]))n.call(a,c)&&(l[c]=a[c]);if(t){s=t(a);for(var d=0;d<s.length;d++)r.call(a,s[d])&&(l[s[d]]=a[s[d]])}}return l}},42169:(e,t,n)=>{"use strict";const r=n(14561);e.exports=e=>{if(!Number.isInteger(e)&&e!==1/0||!(e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");const t=new r;let n=0;const i=async(e,r,...i)=>{n++;const o=(async()=>e(...i))();r(o);try{await o}catch{}n--,t.size>0&&t.dequeue()()},o=(r,...o)=>new Promise((a=>{((r,o,...a)=>{t.enqueue(i.bind(null,r,o,...a)),(async()=>{await Promise.resolve(),n<e&&t.size>0&&t.dequeue()()})()})(r,a,...o)}));return Object.defineProperties(o,{activeCount:{get:()=>n},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),o}},88021:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(33034);class i extends Error{constructor(e){super(e),this.name="TimeoutError"}}class o{constructor(){Object.defineProperty(this,"_queue",{enumerable:!0,configurable:!0,writable:!0,value:[]})}enqueue(e,t){var n;const r={priority:(t={priority:0,...t}).priority,run:e};if(this.size&&(null===(n=this._queue[this.size-1])||void 0===n?void 0:n.priority)>=t.priority)return void this._queue.push(r);const i=function(e,t,n){let r=0,i=e.length;for(;i>0;){const n=Math.trunc(i/2);let a=r+n;o=e[a],t.priority-o.priority<=0?(r=++a,i-=n+1):i=n}var o;return r}(this._queue,r);this._queue.splice(i,0,r)}dequeue(){const e=this._queue.shift();return null==e?void 0:e.run}filter(e){return this._queue.filter((t=>t.priority===e.priority)).map((e=>e.run))}get size(){return this._queue.length}}const a=()=>{},s=new i;class l extends r{constructor(e){var t,n,r,i;if(super(),Object.defineProperty(this,"_carryoverConcurrencyCount",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isIntervalIgnored",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_intervalCount",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_intervalCap",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_interval",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_intervalEnd",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_intervalId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_timeoutId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_queue",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_queueClass",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_pendingCount",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_concurrency",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isPaused",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_resolveEmpty",{enumerable:!0,configurable:!0,writable:!0,value:a}),Object.defineProperty(this,"_resolveIdle",{enumerable:!0,configurable:!0,writable:!0,value:a}),Object.defineProperty(this,"_timeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_throwOnTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),!("number"==typeof(e={carryoverConcurrencyCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:o,...e}).intervalCap&&e.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${null!==(n=null===(t=e.intervalCap)||void 0===t?void 0:t.toString())&&void 0!==n?n:""}\` (${typeof e.intervalCap})`);if(void 0===e.interval||!(Number.isFinite(e.interval)&&e.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${null!==(i=null===(r=e.interval)||void 0===r?void 0:r.toString())&&void 0!==i?i:""}\` (${typeof e.interval})`);this._carryoverConcurrencyCount=e.carryoverConcurrencyCount,this._isIntervalIgnored=e.intervalCap===Number.POSITIVE_INFINITY||0===e.interval,this._intervalCap=e.intervalCap,this._interval=e.interval,this._queue=new e.queueClass,this._queueClass=e.queueClass,this.concurrency=e.concurrency,this._timeout=e.timeout,this._throwOnTimeout=!0===e.throwOnTimeout,this._isPaused=!1===e.autoStart}get _doesIntervalAllowAnother(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}get _doesConcurrentAllowAnother(){return this._pendingCount<this._concurrency}_next(){this._pendingCount--,this._tryToStartAnother(),this.emit("next")}_resolvePromises(){this._resolveEmpty(),this._resolveEmpty=a,0===this._pendingCount&&(this._resolveIdle(),this._resolveIdle=a,this.emit("idle"))}_onResumeInterval(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=void 0}_isIntervalPaused(){const e=Date.now();if(void 0===this._intervalId){const t=this._intervalEnd-e;if(!(t<0))return void 0===this._timeoutId&&(this._timeoutId=setTimeout((()=>{this._onResumeInterval()}),t)),!0;this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0}return!1}_tryToStartAnother(){if(0===this._queue.size)return this._intervalId&&clearInterval(this._intervalId),this._intervalId=void 0,this._resolvePromises(),!1;if(!this._isPaused){const e=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother){const t=this._queue.dequeue();return!!t&&(this.emit("active"),t(),e&&this._initializeIntervalIfNeeded(),!0)}}return!1}_initializeIntervalIfNeeded(){this._isIntervalIgnored||void 0!==this._intervalId||(this._intervalId=setInterval((()=>{this._onInterval()}),this._interval),this._intervalEnd=Date.now()+this._interval)}_onInterval(){0===this._intervalCount&&0===this._pendingCount&&this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0,this._processQueue()}_processQueue(){for(;this._tryToStartAnother(););}get concurrency(){return this._concurrency}set concurrency(e){if(!("number"==typeof e&&e>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${e}\` (${typeof e})`);this._concurrency=e,this._processQueue()}async add(e,t={}){return new Promise(((n,r)=>{this._queue.enqueue((async()=>{this._pendingCount++,this._intervalCount++;try{const i=void 0===this._timeout&&void 0===t.timeout?e():function(e,t,n,r){let i;const o=new Promise(((o,a)=>{if("number"!=typeof t||t<0)throw new TypeError("Expected `milliseconds` to be a positive number");t!==Number.POSITIVE_INFINITY?(r={customTimers:{setTimeout,clearTimeout},...r},i=r.customTimers.setTimeout.call(void 0,(()=>{try{o(n())}catch(e){a(e)}}),t),(async()=>{try{o(await e)}catch(e){a(e)}finally{r.customTimers.clearTimeout.call(void 0,i)}})()):o(e)}));return o.clear=()=>{clearTimeout(i),i=void 0},o}(Promise.resolve(e()),void 0===t.timeout?this._timeout:t.timeout,(()=>{(void 0===t.throwOnTimeout?this._throwOnTimeout:t.throwOnTimeout)&&r(s)})),o=await i;n(o),this.emit("completed",o)}catch(e){r(e),this.emit("error",e)}this._next()}),t),this._tryToStartAnother(),this.emit("add")}))}async addAll(e,t){return Promise.all(e.map((async e=>this.add(e,t))))}start(){return this._isPaused?(this._isPaused=!1,this._processQueue(),this):this}pause(){this._isPaused=!0}clear(){this._queue=new this._queueClass}async onEmpty(){if(0!==this._queue.size)return new Promise((e=>{const t=this._resolveEmpty;this._resolveEmpty=()=>{t(),e()}}))}async onSizeLessThan(e){if(!(this._queue.size<e))return new Promise((t=>{const n=()=>{this._queue.size<e&&(this.removeListener("next",n),t())};this.on("next",n)}))}async onIdle(){if(0!==this._pendingCount||0!==this._queue.size)return new Promise((e=>{const t=this._resolveIdle;this._resolveIdle=()=>{t(),e()}}))}get size(){return this._queue.size}sizeBy(e){return this._queue.filter(e).length}get pending(){return this._pendingCount}get isPaused(){return this._isPaused}get timeout(){return this._timeout}set timeout(e){this._timeout=e}}},5372:(e,t,n)=>{"use strict";var r=n(49567);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},2652:(e,t,n)=>{e.exports=n(5372)()},49567:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},57799:(e,t,n)=>{"use strict";var r=n(89526),i=n(99813),o=n(72851);function a(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."}if(!r)throw Error(a(227));var s=new Set,l={};function u(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(l[e]=t,e=0;e<t.length;e++)s.add(t[e])}var d=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h=Object.prototype.hasOwnProperty,p={},g={};function m(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function w(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=v.hasOwnProperty(t)?v[t]:null;(null!==i?0===i.type:!r&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!h.call(g,e)||!h.call(p,e)&&(f.test(e)?g[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,w);v[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,w);v[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,w);v[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var _=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=60103,C=60106,x=60107,E=60108,T=60114,k=60109,O=60110,L=60112,R=60113,I=60120,A=60115,M=60116,N=60121,P=60128,D=60129,F=60130,W=60131;if("function"==typeof Symbol&&Symbol.for){var z=Symbol.for;S=z("react.element"),C=z("react.portal"),x=z("react.fragment"),E=z("react.strict_mode"),T=z("react.profiler"),k=z("react.provider"),O=z("react.context"),L=z("react.forward_ref"),R=z("react.suspense"),I=z("react.suspense_list"),A=z("react.memo"),M=z("react.lazy"),N=z("react.block"),z("react.scope"),P=z("react.opaque.id"),D=z("react.debug_trace_mode"),F=z("react.offscreen"),W=z("react.legacy_hidden")}var j,B="function"==typeof Symbol&&Symbol.iterator;function H(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=B&&e[B]||e["@@iterator"])?e:null}function U(e){if(void 0===j)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);j=t&&t[1]||""}return"\n"+j+e}var V=!1;function G(e,t){if(!e||V)return"";V=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var i=e.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=s);break}}}finally{V=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?U(e):""}function $(e){switch(e.tag){case 5:return U(e.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return G(e.type,!1);case 11:return G(e.type.render,!1);case 22:return G(e.type._render,!1);case 1:return G(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case C:return"Portal";case T:return"Profiler";case E:return"StrictMode";case R:return"Suspense";case I:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case k:return(e._context.displayName||"Context")+".Provider";case L:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case A:return q(e.type);case N:return q(e._render);case M:t=e._payload,e=e._init;try{return q(e(t))}catch(e){}}return null}function Y(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Z(e){e._valueTracker||(e._valueTracker=function(e){var t=K(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function J(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function X(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Y(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=Y(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ie(e,t.type,n):t.hasOwnProperty("defaultValue")&&ie(e,t.type,Y(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ie(e,t,n){"number"===t&&Q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function oe(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Y(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Y(n)}}function ue(e,t){var n=Y(t.value),r=Y(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de="http://www.w3.org/1999/xhtml";function fe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?fe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var pe,ge,me=(ge=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((pe=pe||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=pe.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ge(e,t)}))}:ge);function ve(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},we=["Webkit","ms","Moz","O"];function be(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}function _e(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=be(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(ye).forEach((function(e){we.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ye[t]=ye[e]}))}));var Se=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ce(e,t){if(t){if(Se[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function xe(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Ee(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Te=null,ke=null,Oe=null;function Le(e){if(e=Xr(e)){if("function"!=typeof Te)throw Error(a(280));var t=e.stateNode;t&&(t=ti(t),Te(e.stateNode,e.type,t))}}function Re(e){ke?Oe?Oe.push(e):Oe=[e]:ke=e}function Ie(){if(ke){var e=ke,t=Oe;if(Oe=ke=null,Le(e),t)for(e=0;e<t.length;e++)Le(t[e])}}function Ae(e,t){return e(t)}function Me(e,t,n,r,i){return e(t,n,r,i)}function Ne(){}var Pe=Ae,De=!1,Fe=!1;function We(){null===ke&&null===Oe||(Ne(),Ie())}function ze(e,t){var n=e.stateNode;if(null===n)return null;var r=ti(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var je=!1;if(d)try{var Be={};Object.defineProperty(Be,"passive",{get:function(){je=!0}}),window.addEventListener("test",Be,Be),window.removeEventListener("test",Be,Be)}catch(ge){je=!1}function He(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Ue=!1,Ve=null,Ge=!1,$e=null,qe={onError:function(e){Ue=!0,Ve=e}};function Ye(e,t,n,r,i,o,a,s,l){Ue=!1,Ve=null,He.apply(qe,arguments)}function Ke(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ze(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Je(e){if(Ke(e)!==e)throw Error(a(188))}function Qe(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ke(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Je(i),e;if(o===r)return Je(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Xe(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,it=!1,ot=[],at=null,st=null,lt=null,ut=new Map,ct=new Map,dt=[],ft="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ht(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function pt(e,t){switch(e){case"focusin":case"focusout":at=null;break;case"dragenter":case"dragleave":st=null;break;case"mouseover":case"mouseout":lt=null;break;case"pointerover":case"pointerout":ut.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ct.delete(t.pointerId)}}function gt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=ht(t,n,r,i,o),null!==t&&null!==(t=Xr(t))&&tt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function mt(e){var t=Qr(e.target);if(null!==t){var n=Ke(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ze(n)))return e.blockedOn=t,void rt(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function vt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Xr(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function yt(e,t,n){vt(e)&&n.delete(t)}function wt(){for(it=!1;0<ot.length;){var e=ot[0];if(null!==e.blockedOn){null!==(e=Xr(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&ot.shift()}null!==at&&vt(at)&&(at=null),null!==st&&vt(st)&&(st=null),null!==lt&&vt(lt)&&(lt=null),ut.forEach(yt),ct.forEach(yt)}function bt(e,t){e.blockedOn===t&&(e.blockedOn=null,it||(it=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,wt)))}function _t(e){function t(t){return bt(t,e)}if(0<ot.length){bt(ot[0],e);for(var n=1;n<ot.length;n++){var r=ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==at&&bt(at,e),null!==st&&bt(st,e),null!==lt&&bt(lt,e),ut.forEach(t),ct.forEach(t),n=0;n<dt.length;n++)(r=dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)mt(n),null===n.blockedOn&&dt.shift()}function St(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ct={animationend:St("Animation","AnimationEnd"),animationiteration:St("Animation","AnimationIteration"),animationstart:St("Animation","AnimationStart"),transitionend:St("Transition","TransitionEnd")},xt={},Et={};function Tt(e){if(xt[e])return xt[e];if(!Ct[e])return e;var t,n=Ct[e];for(t in n)if(n.hasOwnProperty(t)&&t in Et)return xt[e]=n[t];return e}d&&(Et=document.createElement("div").style,"AnimationEvent"in window||(delete Ct.animationend.animation,delete Ct.animationiteration.animation,delete Ct.animationstart.animation),"TransitionEvent"in window||delete Ct.transitionend.transition);var kt=Tt("animationend"),Ot=Tt("animationiteration"),Lt=Tt("animationstart"),Rt=Tt("transitionend"),It=new Map,At=new Map,Mt=["abort","abort",kt,"animationEnd",Ot,"animationIteration",Lt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Rt,"transitionEnd","waiting","waiting"];function Nt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),At.set(r,t),It.set(r,i),u(i,[r])}}(0,o.unstable_now)();var Pt=8;function Dt(e){if(0!=(1&e))return Pt=15,1;if(0!=(2&e))return Pt=14,2;if(0!=(4&e))return Pt=13,4;var t=24&e;return 0!==t?(Pt=12,t):0!=(32&e)?(Pt=11,32):0!=(t=192&e)?(Pt=10,t):0!=(256&e)?(Pt=9,256):0!=(t=3584&e)?(Pt=8,t):0!=(4096&e)?(Pt=7,4096):0!=(t=4186112&e)?(Pt=6,t):0!=(t=62914560&e)?(Pt=5,t):67108864&e?(Pt=4,67108864):0!=(134217728&e)?(Pt=3,134217728):0!=(t=805306368&e)?(Pt=2,t):0!=(1073741824&e)?(Pt=1,1073741824):(Pt=8,e)}function Ft(e,t){var n=e.pendingLanes;if(0===n)return Pt=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(0!==o)r=o,i=Pt=15;else if(0!=(o=134217727&n)){var l=o&~a;0!==l?(r=Dt(l),i=Pt):0!=(s&=o)&&(r=Dt(s),i=Pt)}else 0!=(o=n&~a)?(r=Dt(o),i=Pt):0!==s&&(r=Dt(s),i=Pt);if(0===r)return 0;if(r=n&((0>(r=31-Ut(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&a)){if(Dt(t),i<=Pt)return t;Pt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-Ut(t)),r|=e[n],t&=~i;return r}function Wt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function zt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=jt(24&~t))?zt(10,t):e;case 10:return 0===(e=jt(192&~t))?zt(8,t):e;case 8:return 0===(e=jt(3584&~t))&&0===(e=jt(4186112&~t))&&(e=512),e;case 2:return 0===(t=jt(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function jt(e){return e&-e}function Bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ht(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ut(t)]=n}var Ut=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Vt(e)/Gt|0)|0},Vt=Math.log,Gt=Math.LN2,$t=o.unstable_UserBlockingPriority,qt=o.unstable_runWithPriority,Yt=!0;function Kt(e,t,n,r){De||Ne();var i=Jt,o=De;De=!0;try{Me(i,e,t,n,r)}finally{(De=o)||We()}}function Zt(e,t,n,r){qt($t,Jt.bind(null,e,t,n,r))}function Jt(e,t,n,r){var i;if(Yt)if((i=0==(4&t))&&0<ot.length&&-1<ft.indexOf(e))e=ht(null,e,t,n,r),ot.push(e);else{var o=Qt(e,t,n,r);if(null===o)i&&pt(e,r);else{if(i){if(-1<ft.indexOf(e))return e=ht(o,e,t,n,r),void ot.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return at=gt(at,e,t,n,r,i),!0;case"dragenter":return st=gt(st,e,t,n,r,i),!0;case"mouseover":return lt=gt(lt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return ut.set(o,gt(ut.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,ct.set(o,gt(ct.get(o)||null,e,t,n,r,i)),!0}return!1}(o,e,t,n,r))return;pt(e,r)}Ir(e,t,r,null,n)}}}function Qt(e,t,n,r){var i=Ee(r);if(null!==(i=Qr(i))){var o=Ke(i);if(null===o)i=null;else{var a=o.tag;if(13===a){if(null!==(i=Ze(o)))return i;i=null}else if(3===a){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return Ir(e,t,r,i,n),null}var Xt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,i="value"in Xt?Xt.value:Xt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return tn=i.slice(e,1<t?1-t:void 0)}function rn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function on(){return!0}function an(){return!1}function sn(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?on:an,this.isPropagationStopped=an,this}return i(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var ln,un,cn,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fn=sn(dn),hn=i({},dn,{view:0,detail:0}),pn=sn(hn),gn=i({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(ln=e.screenX-cn.screenX,un=e.screenY-cn.screenY):un=ln=0,cn=e),ln)},movementY:function(e){return"movementY"in e?e.movementY:un}}),mn=sn(gn),vn=sn(i({},gn,{dataTransfer:0})),yn=sn(i({},hn,{relatedTarget:0})),wn=sn(i({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=sn(i({},dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),_n=sn(i({},dn,{data:0})),Sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function Tn(){return En}var kn=sn(i({},hn,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Cn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tn,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),On=sn(i({},gn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ln=sn(i({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tn})),Rn=sn(i({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=sn(i({},gn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),An=[9,13,27,32],Mn=d&&"CompositionEvent"in window,Nn=null;d&&"documentMode"in document&&(Nn=document.documentMode);var Pn=d&&"TextEvent"in window&&!Nn,Dn=d&&(!Mn||Nn&&8<Nn&&11>=Nn),Fn=String.fromCharCode(32),Wn=!1;function zn(e,t){switch(e){case"keyup":return-1!==An.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1,Hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Un(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function Vn(e,t,n,r){Re(r),0<(t=Mr(t,"onChange")).length&&(n=new fn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,$n=null;function qn(e){Er(e,0)}function Yn(e){if(J(ei(e)))return e}function Kn(e,t){if("change"===e)return t}var Zn=!1;if(d){var Jn;if(d){var Qn="oninput"in document;if(!Qn){var Xn=document.createElement("div");Xn.setAttribute("oninput","return;"),Qn="function"==typeof Xn.oninput}Jn=Qn}else Jn=!1;Zn=Jn&&(!document.documentMode||9<document.documentMode)}function er(){Gn&&(Gn.detachEvent("onpropertychange",tr),$n=Gn=null)}function tr(e){if("value"===e.propertyName&&Yn($n)){var t=[];if(Vn(t,$n,e,Ee(e)),e=qn,De)e(t);else{De=!0;try{Ae(e,t)}finally{De=!1,We()}}}}function nr(e,t,n){"focusin"===e?(er(),$n=n,(Gn=t).attachEvent("onpropertychange",tr)):"focusout"===e&&er()}function rr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn($n)}function ir(e,t){if("click"===e)return Yn(t)}function or(e,t){if("input"===e||"change"===e)return Yn(t)}var ar="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},sr=Object.prototype.hasOwnProperty;function lr(e,t){if(ar(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!sr.call(t,n[r])||!ar(e[n[r]],t[n[r]]))return!1;return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Q((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var pr=d&&"documentMode"in document&&11>=document.documentMode,gr=null,mr=null,vr=null,yr=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==gr||gr!==Q(r)||(r="selectionStart"in(r=gr)&&hr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&lr(vr,r)||(vr=r,0<(r=Mr(mr,"onSelect")).length&&(t=new fn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}Nt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Nt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Nt(Mt,2);for(var br="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),_r=0;_r<br.length;_r++)At.set(br[_r],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Cr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Sr));function xr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,s,l,u){if(Ye.apply(this,arguments),Ue){if(!Ue)throw Error(a(198));var c=Ve;Ue=!1,Ve=null,Ge||(Ge=!0,$e=c)}}(r,t,void 0,e),e.currentTarget=null}function Er(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;xr(i,s,u),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;xr(i,s,u),o=l}}}if(Ge)throw e=$e,Ge=!1,$e=null,e}function Tr(e,t){var n=ni(t),r=e+"__bubble";n.has(r)||(Rr(t,e,2,!1),n.add(r))}var kr="_reactListening"+Math.random().toString(36).slice(2);function Or(e){e[kr]||(e[kr]=!0,s.forEach((function(t){Cr.has(t)||Lr(t,!1,e,null),Lr(t,!0,e,null)})))}function Lr(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=n;if("selectionchange"===e&&9!==n.nodeType&&(o=n.ownerDocument),null!==r&&!t&&Cr.has(e)){if("scroll"!==e)return;i|=2,o=r}var a=ni(o),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(i|=4),Rr(o,e,i,t),a.add(s))}function Rr(e,t,n,r){var i=At.get(t);switch(void 0===i?2:i){case 0:i=Kt;break;case 1:i=Zt;break;default:i=Jt}n=i.bind(null,t,n,e),i=void 0,!je||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Ir(e,t,n,r,i){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=Qr(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Fe)return e();Fe=!0;try{Pe(e,t,n)}finally{Fe=!1,We()}}((function(){var r=o,i=Ee(n),a=[];e:{var s=It.get(e);if(void 0!==s){var l=fn,u=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":l=kn;break;case"focusin":u="focus",l=yn;break;case"focusout":u="blur",l=yn;break;case"beforeblur":case"afterblur":l=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=vn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Ln;break;case kt:case Ot:case Lt:l=wn;break;case Rt:l=Rn;break;case"scroll":l=pn;break;case"wheel":l=In;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=On}var c=0!=(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var h,p=r;null!==p;){var g=(h=p).stateNode;if(5===h.tag&&null!==g&&(h=g,null!==f&&null!=(g=ze(p,f))&&c.push(Ar(p,g,h))),d)break;p=p.return}0<c.length&&(s=new l(s,u,null,n,i),a.push({event:s,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(u=n.relatedTarget||n.fromElement)||!Qr(u)&&!u[Zr])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?Qr(u):null)&&(u!==(d=Ke(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=mn,g="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=On,g="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==l?s:ei(l),h=null==u?s:ei(u),(s=new c(g,p+"leave",l,n,i)).target=d,s.relatedTarget=h,g=null,Qr(i)===r&&((c=new c(f,p+"enter",u,n,i)).target=h,c.relatedTarget=d,g=c),d=g,l&&u)e:{for(f=u,p=0,h=c=l;h;h=Nr(h))p++;for(h=0,g=f;g;g=Nr(g))h++;for(;0<p-h;)c=Nr(c),p--;for(;0<h-p;)f=Nr(f),h--;for(;p--;){if(c===f||null!==f&&c===f.alternate)break e;c=Nr(c),f=Nr(f)}c=null}else c=null;null!==l&&Pr(a,s,l,c,!1),null!==u&&null!==d&&Pr(a,d,u,c,!0)}if("select"===(l=(s=r?ei(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m=Kn;else if(Un(s))if(Zn)m=or;else{m=rr;var v=nr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=ir);switch(m&&(m=m(e,r))?Vn(a,m,n,i):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ie(s,"number",s.value)),v=r?ei(r):window,e){case"focusin":(Un(v)||"true"===v.contentEditable)&&(gr=v,mr=r,vr=null);break;case"focusout":vr=mr=gr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,wr(a,n,i);break;case"selectionchange":if(pr)break;case"keydown":case"keyup":wr(a,n,i)}var y;if(Mn)e:{switch(e){case"compositionstart":var w="onCompositionStart";break e;case"compositionend":w="onCompositionEnd";break e;case"compositionupdate":w="onCompositionUpdate";break e}w=void 0}else Bn?zn(e,n)&&(w="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(w="onCompositionStart");w&&(Dn&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==w?"onCompositionEnd"===w&&Bn&&(y=nn()):(en="value"in(Xt=i)?Xt.value:Xt.textContent,Bn=!0)),0<(v=Mr(r,w)).length&&(w=new _n(w,e,null,n,i),a.push({event:w,listeners:v}),(y||null!==(y=jn(n)))&&(w.data=y))),(y=Pn?function(e,t){switch(e){case"compositionend":return jn(t);case"keypress":return 32!==t.which?null:(Wn=!0,Fn);case"textInput":return(e=t.data)===Fn&&Wn?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!Mn&&zn(e,t)?(e=nn(),tn=en=Xt=null,Bn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dn&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&0<(r=Mr(r,"onBeforeInput")).length&&(i=new _n("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y)}Er(a,t)}))}function Ar(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Mr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=ze(e,n))&&r.unshift(Ar(e,o,i)),null!=(o=ze(e,t))&&r.push(Ar(e,o,i))),e=e.return}return r}function Nr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Pr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=ze(n,o))&&a.unshift(Ar(n,l,s)):i||null!=(l=ze(n,o))&&a.push(Ar(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Dr(){}var Fr=null,Wr=null;function zr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function jr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Br="function"==typeof setTimeout?setTimeout:void 0,Hr="function"==typeof clearTimeout?clearTimeout:void 0;function Ur(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function Vr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Gr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var $r=0,qr=Math.random().toString(36).slice(2),Yr="__reactFiber$"+qr,Kr="__reactProps$"+qr,Zr="__reactContainer$"+qr,Jr="__reactEvents$"+qr;function Qr(e){var t=e[Yr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Zr]||n[Yr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Gr(e);null!==e;){if(n=e[Yr])return n;e=Gr(e)}return t}n=(e=n).parentNode}return null}function Xr(e){return!(e=e[Yr]||e[Zr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ei(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function ti(e){return e[Kr]||null}function ni(e){var t=e[Jr];return void 0===t&&(t=e[Jr]=new Set),t}var ri=[],ii=-1;function oi(e){return{current:e}}function ai(e){0>ii||(e.current=ri[ii],ri[ii]=null,ii--)}function si(e,t){ii++,ri[ii]=e.current,e.current=t}var li={},ui=oi(li),ci=oi(!1),di=li;function fi(e,t){var n=e.type.contextTypes;if(!n)return li;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function hi(e){return null!=e.childContextTypes}function pi(){ai(ci),ai(ui)}function gi(e,t,n){if(ui.current!==li)throw Error(a(168));si(ui,t),si(ci,n)}function mi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,q(t)||"Unknown",o));return i({},n,r)}function vi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||li,di=ui.current,si(ui,e),si(ci,ci.current),!0}function yi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=mi(e,t,di),r.__reactInternalMemoizedMergedChildContext=e,ai(ci),ai(ui),si(ui,e)):ai(ci),si(ci,n)}var wi=null,bi=null,_i=o.unstable_runWithPriority,Si=o.unstable_scheduleCallback,Ci=o.unstable_cancelCallback,xi=o.unstable_shouldYield,Ei=o.unstable_requestPaint,Ti=o.unstable_now,ki=o.unstable_getCurrentPriorityLevel,Oi=o.unstable_ImmediatePriority,Li=o.unstable_UserBlockingPriority,Ri=o.unstable_NormalPriority,Ii=o.unstable_LowPriority,Ai=o.unstable_IdlePriority,Mi={},Ni=void 0!==Ei?Ei:function(){},Pi=null,Di=null,Fi=!1,Wi=Ti(),zi=1e4>Wi?Ti:function(){return Ti()-Wi};function ji(){switch(ki()){case Oi:return 99;case Li:return 98;case Ri:return 97;case Ii:return 96;case Ai:return 95;default:throw Error(a(332))}}function Bi(e){switch(e){case 99:return Oi;case 98:return Li;case 97:return Ri;case 96:return Ii;case 95:return Ai;default:throw Error(a(332))}}function Hi(e,t){return e=Bi(e),_i(e,t)}function Ui(e,t,n){return e=Bi(e),Si(e,t,n)}function Vi(){if(null!==Di){var e=Di;Di=null,Ci(e)}Gi()}function Gi(){if(!Fi&&null!==Pi){Fi=!0;var e=0;try{var t=Pi;Hi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Pi=null}catch(t){throw null!==Pi&&(Pi=Pi.slice(e+1)),Si(Oi,Vi),t}finally{Fi=!1}}}var $i=_.ReactCurrentBatchConfig;function qi(e,t){if(e&&e.defaultProps){for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Yi=oi(null),Ki=null,Zi=null,Ji=null;function Qi(){Ji=Zi=Ki=null}function Xi(e){var t=Yi.current;ai(Yi),e.type._context._currentValue=t}function eo(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function to(e,t){Ki=e,Ji=Zi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Ma=!0),e.firstContext=null)}function no(e,t){if(Ji!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Ji=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Zi){if(null===Ki)throw Error(a(308));Zi=t,Ki.dependencies={lanes:0,firstContext:t,responders:null}}else Zi=Zi.next=t;return e._currentValue}var ro=!1;function io(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function oo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ao(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function so(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function lo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function uo(e,t,n,r){var o=e.updateQueue;ro=!1;var a=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var u=l,c=u.next;u.next=null,null===s?a=c:s.next=c,s=u;var d=e.alternate;if(null!==d){var f=(d=d.updateQueue).lastBaseUpdate;f!==s&&(null===f?d.firstBaseUpdate=c:f.next=c,d.lastBaseUpdate=u)}}if(null!==a){for(f=o.baseState,s=0,d=c=u=null;;){l=a.lane;var h=a.eventTime;if((r&l)===l){null!==d&&(d=d.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var p=e,g=a;switch(l=t,h=n,g.tag){case 1:if("function"==typeof(p=g.payload)){f=p.call(h,f,l);break e}f=p;break e;case 3:p.flags=-4097&p.flags|64;case 0:if(null==(l="function"==typeof(p=g.payload)?p.call(h,f,l):p))break e;f=i({},f,l);break e;case 2:ro=!0}}null!==a.callback&&(e.flags|=32,null===(l=o.effects)?o.effects=[a]:l.push(a))}else h={eventTime:h,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===d?(c=d=h,u=f):d=d.next=h,s|=l;if(null===(a=a.next)){if(null===(l=o.shared.pending))break;a=l.next,l.next=null,o.lastBaseUpdate=l,o.shared.pending=null}}null===d&&(u=f),o.baseState=u,o.firstBaseUpdate=c,o.lastBaseUpdate=d,Ps|=s,e.lanes=s,e.memoizedState=f}}function co(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(a(191,i));i.call(r)}}}var fo=(new r.Component).refs;function ho(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var po={isMounted:function(e){return!!(e=e._reactInternals)&&Ke(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=al(),i=sl(e),o=ao(r,i);o.payload=t,null!=n&&(o.callback=n),so(e,o),ll(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=al(),i=sl(e),o=ao(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),so(e,o),ll(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=al(),r=sl(e),i=ao(n,r);i.tag=2,null!=t&&(i.callback=t),so(e,i),ll(e,r,n)}};function go(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!(t.prototype&&t.prototype.isPureReactComponent&&lr(n,r)&&lr(i,o))}function mo(e,t,n){var r=!1,i=li,o=t.contextType;return"object"==typeof o&&null!==o?o=no(o):(i=hi(t)?di:ui.current,o=(r=null!=(r=t.contextTypes))?fi(e,i):li),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=po,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function vo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&po.enqueueReplaceState(t,t.state,null)}function yo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=fo,io(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=no(o):(o=hi(t)?di:ui.current,i.context=fi(e,o)),uo(e,n,i,r),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(ho(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&po.enqueueReplaceState(i,i.state,null),uo(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4)}var wo=Array.isArray;function bo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===fo&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function _o(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function So(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=jl(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Vl(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=bo(e,t,n),r.return=e,r):((r=Bl(n.type,n.key,n.props,null,e.mode,r)).ref=bo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Gl(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Hl(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Vl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case S:return(n=Bl(t.type,t.key,t.props,null,e.mode,n)).ref=bo(e,null,t),n.return=e,n;case C:return(t=Gl(t,e.mode,n)).return=e,t}if(wo(t)||H(t))return(t=Hl(t,e.mode,n,null)).return=e,t;_o(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case S:return n.key===i?n.type===x?d(e,t,n.props.children,r,i):u(e,t,n,r):null;case C:return n.key===i?c(e,t,n,r):null}if(wo(n)||H(n))return null!==i?null:d(e,t,n,r,null);_o(e,n)}return null}function p(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case S:return e=e.get(null===r.key?n:r.key)||null,r.type===x?d(t,e,r.props.children,i,r.key):u(t,e,r,i);case C:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(wo(r)||H(r))return d(t,e=e.get(n)||null,r,i,null);_o(t,r)}return null}function g(i,a,s,l){for(var u=null,c=null,d=a,g=a=0,m=null;null!==d&&g<s.length;g++){d.index>g?(m=d,d=null):m=d.sibling;var v=h(i,d,s[g],l);if(null===v){null===d&&(d=m);break}e&&d&&null===v.alternate&&t(i,d),a=o(v,a,g),null===c?u=v:c.sibling=v,c=v,d=m}if(g===s.length)return n(i,d),u;if(null===d){for(;g<s.length;g++)null!==(d=f(i,s[g],l))&&(a=o(d,a,g),null===c?u=d:c.sibling=d,c=d);return u}for(d=r(i,d);g<s.length;g++)null!==(m=p(d,i,g,s[g],l))&&(e&&null!==m.alternate&&d.delete(null===m.key?g:m.key),a=o(m,a,g),null===c?u=m:c.sibling=m,c=m);return e&&d.forEach((function(e){return t(i,e)})),u}function m(i,s,l,u){var c=H(l);if("function"!=typeof c)throw Error(a(150));if(null==(l=c.call(l)))throw Error(a(151));for(var d=c=null,g=s,m=s=0,v=null,y=l.next();null!==g&&!y.done;m++,y=l.next()){g.index>m?(v=g,g=null):v=g.sibling;var w=h(i,g,y.value,u);if(null===w){null===g&&(g=v);break}e&&g&&null===w.alternate&&t(i,g),s=o(w,s,m),null===d?c=w:d.sibling=w,d=w,g=v}if(y.done)return n(i,g),c;if(null===g){for(;!y.done;m++,y=l.next())null!==(y=f(i,y.value,u))&&(s=o(y,s,m),null===d?c=y:d.sibling=y,d=y);return c}for(g=r(i,g);!y.done;m++,y=l.next())null!==(y=p(g,i,m,y.value,u))&&(e&&null!==y.alternate&&g.delete(null===y.key?m:y.key),s=o(y,s,m),null===d?c=y:d.sibling=y,d=y);return e&&g.forEach((function(e){return t(i,e)})),c}return function(e,r,o,l){var u="object"==typeof o&&null!==o&&o.type===x&&null===o.key;u&&(o=o.props.children);var c="object"==typeof o&&null!==o;if(c)switch(o.$$typeof){case S:e:{for(c=o.key,u=r;null!==u;){if(u.key===c){switch(u.tag){case 7:if(o.type===x){n(e,u.sibling),(r=i(u,o.props.children)).return=e,e=r;break e}break;default:if(u.elementType===o.type){n(e,u.sibling),(r=i(u,o.props)).ref=bo(e,u,o),r.return=e,e=r;break e}}n(e,u);break}t(e,u),u=u.sibling}o.type===x?((r=Hl(o.props.children,e.mode,l,o.key)).return=e,e=r):((l=Bl(o.type,o.key,o.props,null,e.mode,l)).ref=bo(e,r,o),l.return=e,e=l)}return s(e);case C:e:{for(u=o.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Gl(o,e.mode,l)).return=e,e=r}return s(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Vl(o,e.mode,l)).return=e,e=r),s(e);if(wo(o))return g(e,r,o,l);if(H(o))return m(e,r,o,l);if(c&&_o(e,o),void 0===o&&!u)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,q(e.type)||"Component"))}return n(e,r)}}var Co=So(!0),xo=So(!1),Eo={},To=oi(Eo),ko=oi(Eo),Oo=oi(Eo);function Lo(e){if(e===Eo)throw Error(a(174));return e}function Ro(e,t){switch(si(Oo,t),si(ko,e),si(To,Eo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ai(To),si(To,t)}function Io(){ai(To),ai(ko),ai(Oo)}function Ao(e){Lo(Oo.current);var t=Lo(To.current),n=he(t,e.type);t!==n&&(si(ko,e),si(To,n))}function Mo(e){ko.current===e&&(ai(To),ai(ko))}var No=oi(0);function Po(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Do=null,Fo=null,Wo=!1;function zo(e,t){var n=Wl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function jo(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Bo(e){if(Wo){var t=Fo;if(t){var n=t;if(!jo(e,t)){if(!(t=Vr(n.nextSibling))||!jo(e,t))return e.flags=-1025&e.flags|2,Wo=!1,void(Do=e);zo(Do,n)}Do=e,Fo=Vr(t.firstChild)}else e.flags=-1025&e.flags|2,Wo=!1,Do=e}}function Ho(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Do=e}function Uo(e){if(e!==Do)return!1;if(!Wo)return Ho(e),Wo=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!jr(t,e.memoizedProps))for(t=Fo;t;)zo(e,t),t=Vr(t.nextSibling);if(Ho(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Fo=Vr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Fo=null}}else Fo=Do?Vr(e.stateNode.nextSibling):null;return!0}function Vo(){Fo=Do=null,Wo=!1}var Go=[];function $o(){for(var e=0;e<Go.length;e++)Go[e]._workInProgressVersionPrimary=null;Go.length=0}var qo=_.ReactCurrentDispatcher,Yo=_.ReactCurrentBatchConfig,Ko=0,Zo=null,Jo=null,Qo=null,Xo=!1,ea=!1;function ta(){throw Error(a(321))}function na(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ar(e[n],t[n]))return!1;return!0}function ra(e,t,n,r,i,o){if(Ko=o,Zo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,qo.current=null===e||null===e.memoizedState?La:Ra,e=n(r,i),ea){o=0;do{if(ea=!1,!(25>o))throw Error(a(301));o+=1,Qo=Jo=null,t.updateQueue=null,qo.current=Ia,e=n(r,i)}while(ea)}if(qo.current=Oa,t=null!==Jo&&null!==Jo.next,Ko=0,Qo=Jo=Zo=null,Xo=!1,t)throw Error(a(300));return e}function ia(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Qo?Zo.memoizedState=Qo=e:Qo=Qo.next=e,Qo}function oa(){if(null===Jo){var e=Zo.alternate;e=null!==e?e.memoizedState:null}else e=Jo.next;var t=null===Qo?Zo.memoizedState:Qo.next;if(null!==t)Qo=t,Jo=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Jo=e).memoizedState,baseState:Jo.baseState,baseQueue:Jo.baseQueue,queue:Jo.queue,next:null},null===Qo?Zo.memoizedState=Qo=e:Qo=Qo.next=e}return Qo}function aa(e,t){return"function"==typeof t?t(e):t}function sa(e){var t=oa(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Jo,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var l=s=o=null,u=i;do{var c=u.lane;if((Ko&c)===c)null!==l&&(l=l.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===l?(s=l=d,o=r):l=l.next=d,Zo.lanes|=c,Ps|=c}u=u.next}while(null!==u&&u!==i);null===l?o=r:l.next=s,ar(r,t.memoizedState)||(Ma=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function la(e){var t=oa(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);ar(o,t.memoizedState)||(Ma=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ua(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Ko&e)===e)&&(t._workInProgressVersionPrimary=r,Go.push(t))),e)return n(t._source);throw Go.push(t),Error(a(350))}function ca(e,t,n,r){var i=ks;if(null===i)throw Error(a(349));var o=t._getVersion,s=o(t._source),l=qo.current,u=l.useState((function(){return ua(i,t,n)})),c=u[1],d=u[0];u=Qo;var f=e.memoizedState,h=f.refs,p=h.getSnapshot,g=f.source;f=f.subscribe;var m=Zo;return e.memoizedState={refs:h,source:t,subscribe:r},l.useEffect((function(){h.getSnapshot=n,h.setSnapshot=c;var e=o(t._source);if(!ar(s,e)){e=n(t._source),ar(d,e)||(c(e),e=sl(m),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,a=e;0<a;){var l=31-Ut(a),u=1<<l;r[l]|=e,a&=~u}}}),[n,t,r]),l.useEffect((function(){return r(t._source,(function(){var e=h.getSnapshot,n=h.setSnapshot;try{n(e(t._source));var r=sl(m);i.mutableReadLanes|=r&i.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),ar(p,n)&&ar(g,t)&&ar(f,r)||((e={pending:null,dispatch:null,lastRenderedReducer:aa,lastRenderedState:d}).dispatch=c=ka.bind(null,Zo,e),u.queue=e,u.baseQueue=null,d=ua(i,t,n),u.memoizedState=u.baseState=d),d}function da(e,t,n){return ca(oa(),e,t,n)}function fa(e){var t=ia();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:aa,lastRenderedState:e}).dispatch=ka.bind(null,Zo,e),[t.memoizedState,e]}function ha(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Zo.updateQueue)?(t={lastEffect:null},Zo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function pa(e){return e={current:e},ia().memoizedState=e}function ga(){return oa().memoizedState}function ma(e,t,n,r){var i=ia();Zo.flags|=e,i.memoizedState=ha(1|t,n,void 0,void 0===r?null:r)}function va(e,t,n,r){var i=oa();r=void 0===r?null:r;var o=void 0;if(null!==Jo){var a=Jo.memoizedState;if(o=a.destroy,null!==r&&na(r,a.deps))return void ha(t,n,o,r)}Zo.flags|=e,i.memoizedState=ha(1|t,n,o,r)}function ya(e,t){return ma(516,4,e,t)}function wa(e,t){return va(516,4,e,t)}function ba(e,t){return va(4,2,e,t)}function _a(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Sa(e,t,n){return n=null!=n?n.concat([e]):null,va(4,2,_a.bind(null,t,e),n)}function Ca(){}function xa(e,t){var n=oa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&na(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ea(e,t){var n=oa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&na(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ta(e,t){var n=ji();Hi(98>n?98:n,(function(){e(!0)})),Hi(97<n?97:n,(function(){var n=Yo.transition;Yo.transition=1;try{e(!1),t()}finally{Yo.transition=n}}))}function ka(e,t,n){var r=al(),i=sl(e),o={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===Zo||null!==a&&a===Zo)ea=Xo=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=a(s,n);if(o.eagerReducer=a,o.eagerState=l,ar(l,s))return}catch(e){}ll(e,i,r)}}var Oa={readContext:no,useCallback:ta,useContext:ta,useEffect:ta,useImperativeHandle:ta,useLayoutEffect:ta,useMemo:ta,useReducer:ta,useRef:ta,useState:ta,useDebugValue:ta,useDeferredValue:ta,useTransition:ta,useMutableSource:ta,useOpaqueIdentifier:ta,unstable_isNewReconciler:!1},La={readContext:no,useCallback:function(e,t){return ia().memoizedState=[e,void 0===t?null:t],e},useContext:no,useEffect:ya,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ma(4,2,_a.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ma(4,2,e,t)},useMemo:function(e,t){var n=ia();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ia();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=ka.bind(null,Zo,e),[r.memoizedState,e]},useRef:pa,useState:fa,useDebugValue:Ca,useDeferredValue:function(e){var t=fa(e),n=t[0],r=t[1];return ya((function(){var t=Yo.transition;Yo.transition=1;try{r(e)}finally{Yo.transition=t}}),[e]),n},useTransition:function(){var e=fa(!1),t=e[0];return pa(e=Ta.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=ia();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},ca(r,e,t,n)},useOpaqueIdentifier:function(){if(Wo){var e=!1,t=function(e){return{$$typeof:P,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+($r++).toString(36))),Error(a(355))})),n=fa(t)[1];return 0==(2&Zo.mode)&&(Zo.flags|=516,ha(5,(function(){n("r:"+($r++).toString(36))}),void 0,null)),t}return fa(t="r:"+($r++).toString(36)),t},unstable_isNewReconciler:!1},Ra={readContext:no,useCallback:xa,useContext:no,useEffect:wa,useImperativeHandle:Sa,useLayoutEffect:ba,useMemo:Ea,useReducer:sa,useRef:ga,useState:function(){return sa(aa)},useDebugValue:Ca,useDeferredValue:function(e){var t=sa(aa),n=t[0],r=t[1];return wa((function(){var t=Yo.transition;Yo.transition=1;try{r(e)}finally{Yo.transition=t}}),[e]),n},useTransition:function(){var e=sa(aa)[0];return[ga().current,e]},useMutableSource:da,useOpaqueIdentifier:function(){return sa(aa)[0]},unstable_isNewReconciler:!1},Ia={readContext:no,useCallback:xa,useContext:no,useEffect:wa,useImperativeHandle:Sa,useLayoutEffect:ba,useMemo:Ea,useReducer:la,useRef:ga,useState:function(){return la(aa)},useDebugValue:Ca,useDeferredValue:function(e){var t=la(aa),n=t[0],r=t[1];return wa((function(){var t=Yo.transition;Yo.transition=1;try{r(e)}finally{Yo.transition=t}}),[e]),n},useTransition:function(){var e=la(aa)[0];return[ga().current,e]},useMutableSource:da,useOpaqueIdentifier:function(){return la(aa)[0]},unstable_isNewReconciler:!1},Aa=_.ReactCurrentOwner,Ma=!1;function Na(e,t,n,r){t.child=null===e?xo(t,null,n,r):Co(t,e.child,n,r)}function Pa(e,t,n,r,i){n=n.render;var o=t.ref;return to(t,i),r=ra(e,t,n,r,o,i),null===e||Ma?(t.flags|=1,Na(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Xa(e,t,i))}function Da(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||zl(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Bl(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Fa(e,t,a,r,i,o))}return a=e.child,0==(i&o)&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:lr)(i,r)&&e.ref===t.ref)?Xa(e,t,o):(t.flags|=1,(e=jl(a,r)).ref=t.ref,e.return=t,t.child=e)}function Fa(e,t,n,r,i,o){if(null!==e&&lr(e.memoizedProps,r)&&e.ref===t.ref){if(Ma=!1,0==(o&i))return t.lanes=e.lanes,Xa(e,t,o);0!=(16384&e.flags)&&(Ma=!0)}return ja(e,t,n,r,o)}function Wa(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},ml(0,n);else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},ml(0,e),null;t.memoizedState={baseLanes:0},ml(0,null!==o?o.baseLanes:n)}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,ml(0,r);return Na(e,t,i,n),t.child}function za(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function ja(e,t,n,r,i){var o=hi(n)?di:ui.current;return o=fi(t,o),to(t,i),n=ra(e,t,n,r,o,i),null===e||Ma?(t.flags|=1,Na(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Xa(e,t,i))}function Ba(e,t,n,r,i){if(hi(n)){var o=!0;vi(t)}else o=!1;if(to(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),mo(t,n,r),yo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;u="object"==typeof u&&null!==u?no(u):fi(t,u=hi(n)?di:ui.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&vo(t,a,r,u),ro=!1;var f=t.memoizedState;a.state=f,uo(t,r,a,i),l=t.memoizedState,s!==r||f!==l||ci.current||ro?("function"==typeof c&&(ho(t,n,c,r),l=t.memoizedState),(s=ro||go(t,n,s,r,f,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4)):("function"==typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,oo(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:qi(t.type,s),a.props=u,d=t.pendingProps,f=a.context,l="object"==typeof(l=n.contextType)&&null!==l?no(l):fi(t,l=hi(n)?di:ui.current);var h=n.getDerivedStateFromProps;(c="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&vo(t,a,r,l),ro=!1,f=t.memoizedState,a.state=f,uo(t,r,a,i);var p=t.memoizedState;s!==d||f!==p||ci.current||ro?("function"==typeof h&&(ho(t,n,h,r),p=t.memoizedState),(u=ro||go(t,n,u,r,f,p,l))?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),r=!1)}return Ha(e,t,n,r,o,i)}function Ha(e,t,n,r,i,o){za(e,t);var a=0!=(64&t.flags);if(!r&&!a)return i&&yi(t,n,!1),Xa(e,t,o);r=t.stateNode,Aa.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Co(t,e.child,null,o),t.child=Co(t,null,s,o)):Na(e,t,s,o),t.memoizedState=r.state,i&&yi(t,n,!0),t.child}function Ua(e){var t=e.stateNode;t.pendingContext?gi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&gi(0,t.context,!1),Ro(e,t.containerInfo)}var Va,Ga,$a,qa={dehydrated:null,retryLane:0};function Ya(e,t,n){var r,i=t.pendingProps,o=No.current,a=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&o)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(o|=1),si(No,1&o),null===e?(void 0!==i.fallback&&Bo(t),e=i.children,o=i.fallback,a?(e=Ka(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=qa,e):"number"==typeof i.unstable_expectedLoadTime?(e=Ka(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=qa,t.lanes=33554432,e):((n=Ul({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(i=function(e,t,n,r,i){var o=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return 0==(2&o)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=s,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=jl(a,s),null!==e?r=jl(e,r):(r=Hl(r,o,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}(e,t,i.children,i.fallback,n),a=t.child,o=e.child.memoizedState,a.memoizedState=null===o?{baseLanes:n}:{baseLanes:o.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=qa,i):(n=function(e,t,n,r){var i=e.child;return e=i.sibling,n=jl(i,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}(e,t,i.children,n),t.memoizedState=null,n))}function Ka(e,t,n,r){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},0==(2&i)&&null!==o?(o.childLanes=0,o.pendingProps=t):o=Ul(t,i,0,null),n=Hl(n,i,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function Za(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),eo(e.return,t)}function Ja(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.lastEffect=o)}function Qa(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Na(e,t,r.children,n),0!=(2&(r=No.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Za(e,n);else if(19===e.tag)Za(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(si(No,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Po(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ja(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Po(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ja(t,!0,n,null,o,t.lastEffect);break;case"together":Ja(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Xa(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ps|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=jl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=jl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function es(e,t){if(!Wo)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ts(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return hi(t.type)&&pi(),null;case 3:return Io(),ai(ci),ai(ui),$o(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Uo(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Mo(t);var o=Lo(Oo.current);if(n=t.type,null!==e&&null!=t.stateNode)Ga(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Lo(To.current),Uo(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Yr]=t,r[Kr]=s,n){case"dialog":Tr("cancel",r),Tr("close",r);break;case"iframe":case"object":case"embed":Tr("load",r);break;case"video":case"audio":for(e=0;e<Sr.length;e++)Tr(Sr[e],r);break;case"source":Tr("error",r);break;case"img":case"image":case"link":Tr("error",r),Tr("load",r);break;case"details":Tr("toggle",r);break;case"input":ee(r,s),Tr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Tr("invalid",r);break;case"textarea":le(r,s),Tr("invalid",r)}for(var u in Ce(n,s),e=null,s)s.hasOwnProperty(u)&&(o=s[u],"children"===u?"string"==typeof o?r.textContent!==o&&(e=["children",o]):"number"==typeof o&&r.textContent!==""+o&&(e=["children",""+o]):l.hasOwnProperty(u)&&null!=o&&"onScroll"===u&&Tr("scroll",r));switch(n){case"input":Z(r),re(r,s,!0);break;case"textarea":Z(r),ce(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=Dr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(u=9===o.nodeType?o:o.ownerDocument,e===de&&(e=fe(n)),e===de?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[Yr]=t,e[Kr]=r,Va(e,t),t.stateNode=e,u=xe(n,r),n){case"dialog":Tr("cancel",e),Tr("close",e),o=r;break;case"iframe":case"object":case"embed":Tr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Sr.length;o++)Tr(Sr[o],e);o=r;break;case"source":Tr("error",e),o=r;break;case"img":case"image":case"link":Tr("error",e),Tr("load",e),o=r;break;case"details":Tr("toggle",e),o=r;break;case"input":ee(e,r),o=X(e,r),Tr("invalid",e);break;case"option":o=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=i({},r,{value:void 0}),Tr("invalid",e);break;case"textarea":le(e,r),o=se(e,r),Tr("invalid",e);break;default:o=r}Ce(n,o);var c=o;for(s in c)if(c.hasOwnProperty(s)){var d=c[s];"style"===s?_e(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&me(e,d):"children"===s?"string"==typeof d?("textarea"!==n||""!==d)&&ve(e,d):"number"==typeof d&&ve(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(l.hasOwnProperty(s)?null!=d&&"onScroll"===s&&Tr("scroll",e):null!=d&&b(e,s,d,u))}switch(n){case"input":Z(e),re(e,r,!1);break;case"textarea":Z(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Y(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ae(e,!!r.multiple,s,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Dr)}zr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)$a(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Lo(Oo.current),Lo(To.current),Uo(t)?(r=t.stateNode,n=t.memoizedProps,r[Yr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Yr]=t,t.stateNode=r)}return null;case 13:return ai(No),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Uo(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&No.current)?0===As&&(As=3):(0!==As&&3!==As||(As=4),null===ks||0==(134217727&Ps)&&0==(134217727&Ds)||fl(ks,Ls))),(r||n)&&(t.flags|=4),null);case 4:return Io(),null===e&&Or(t.stateNode.containerInfo),null;case 10:return Xi(t),null;case 17:return hi(t.type)&&pi(),null;case 19:if(ai(No),null===(r=t.memoizedState))return null;if(s=0!=(64&t.flags),null===(u=r.rendering))if(s)es(r,!1);else{if(0!==As||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(u=Po(e))){for(t.flags|=64,es(r,!1),null!==(s=u.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(u=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=u.childLanes,s.lanes=u.lanes,s.child=u.child,s.memoizedProps=u.memoizedProps,s.memoizedState=u.memoizedState,s.updateQueue=u.updateQueue,s.type=u.type,e=u.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return si(No,1&No.current|2),t.child}e=e.sibling}null!==r.tail&&zi()>js&&(t.flags|=64,s=!0,es(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=Po(u))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),es(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate&&!Wo)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*zi()-r.renderingStartTime>js&&1073741824!==n&&(t.flags|=64,s=!0,es(r,!1),t.lanes=33554432);r.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=zi(),n.sibling=null,t=No.current,si(No,s?1&t|2:1&t),n):null;case 23:case 24:return vl(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function ns(e){switch(e.tag){case 1:hi(e.type)&&pi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Io(),ai(ci),ai(ui),$o(),0!=(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Mo(e),null;case 13:return ai(No),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ai(No),null;case 4:return Io(),null;case 10:return Xi(e),null;case 23:case 24:return vl(),null;default:return null}}function rs(e,t){try{var n="",r=t;do{n+=$(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function is(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Va=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ga=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Lo(To.current);var a,s=null;switch(n){case"input":o=X(e,o),r=X(e,r),s=[];break;case"option":o=oe(e,o),r=oe(e,r),s=[];break;case"select":o=i({},o,{value:void 0}),r=i({},r,{value:void 0}),s=[];break;case"textarea":o=se(e,o),r=se(e,r),s=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Dr)}for(d in Ce(n,r),n=null,o)if(!r.hasOwnProperty(d)&&o.hasOwnProperty(d)&&null!=o[d])if("style"===d){var u=o[d];for(a in u)u.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(l.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in r){var c=r[d];if(u=null!=o?o[d]:void 0,r.hasOwnProperty(d)&&c!==u&&(null!=c||null!=u))if("style"===d)if(u){for(a in u)!u.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&u[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(s||(s=[]),s.push(d,n)),n=c;else"dangerouslySetInnerHTML"===d?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(s=s||[]).push(d,c)):"children"===d?"string"!=typeof c&&"number"!=typeof c||(s=s||[]).push(d,""+c):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(l.hasOwnProperty(d)?(null!=c&&"onScroll"===d&&Tr("scroll",e),s||u===c||(s=[])):"object"==typeof c&&null!==c&&c.$$typeof===P?c.toString():(s=s||[]).push(d,c))}n&&(s=s||[]).push("style",n);var d=s;(t.updateQueue=d)&&(t.flags|=4)}},$a=function(e,t,n,r){n!==r&&(t.flags|=4)};var os="function"==typeof WeakMap?WeakMap:Map;function as(e,t,n){(n=ao(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vs||(Vs=!0,Gs=r),is(0,t)},n}function ss(e,t,n){(n=ao(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return is(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===$s?$s=new Set([this]):$s.add(this),is(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ls="function"==typeof WeakSet?WeakSet:Set;function us(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Nl(e,t)}else t.current=null}function cs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:qi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Ur(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(a(163))}function ds(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(Il(n,e),Rl(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:qi(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&co(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}co(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&zr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&_t(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(a(163))}function fs(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=be("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function hs(e,t){if(bi&&"function"==typeof bi.onCommitFiberUnmount)try{bi.onCommitFiberUnmount(wi,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))Il(t,n);else{r=t;try{i()}catch(e){Nl(r,e)}}n=n.next}while(n!==e)}break;case 1:if(us(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Nl(t,e)}break;case 5:us(t);break;case 4:ws(e,t)}}function ps(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function gs(e){return 5===e.tag||3===e.tag||4===e.tag}function ms(e){e:{for(var t=e.return;null!==t;){if(gs(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(ve(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||gs(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?vs(e,n,t):ys(e,n,t)}function vs(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Dr));else if(4!==r&&null!==(e=e.child))for(vs(e,t,n),e=e.sibling;null!==e;)vs(e,t,n),e=e.sibling}function ys(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ys(e,t,n),e=e.sibling;null!==e;)ys(e,t,n),e=e.sibling}function ws(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(a(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var s=e,l=i,u=l;;)if(hs(s,u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===l)break e;for(;null===u.sibling;){if(null===u.return||u.return===l)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(s=n,l=i.stateNode,8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(hs(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function bs(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Kr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),xe(e,i),t=xe(e,r),i=0;i<o.length;i+=2){var s=o[i],l=o[i+1];"style"===s?_e(n,l):"dangerouslySetInnerHTML"===s?me(n,l):"children"===s?ve(n,l):b(n,s,l,t)}switch(e){case"input":ne(n,r);break;case"textarea":ue(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?ae(n,!!r.multiple,o,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,_t(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(zs=zi(),fs(t.child,!0)),void _s(t);case 19:return void _s(t);case 17:return;case 23:case 24:return void fs(t,null!==t.memoizedState)}throw Error(a(163))}function _s(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ls),t.forEach((function(t){var r=Dl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ss(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&null!==(t=t.memoizedState)&&null===t.dehydrated}var Cs=Math.ceil,xs=_.ReactCurrentDispatcher,Es=_.ReactCurrentOwner,Ts=0,ks=null,Os=null,Ls=0,Rs=0,Is=oi(0),As=0,Ms=null,Ns=0,Ps=0,Ds=0,Fs=0,Ws=null,zs=0,js=1/0;function Bs(){js=zi()+500}var Hs,Us=null,Vs=!1,Gs=null,$s=null,qs=!1,Ys=null,Ks=90,Zs=[],Js=[],Qs=null,Xs=0,el=null,tl=-1,nl=0,rl=0,il=null,ol=!1;function al(){return 0!=(48&Ts)?zi():-1!==tl?tl:tl=zi()}function sl(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===ji()?1:2;if(0===nl&&(nl=Ns),0!==$i.transition){0!==rl&&(rl=null!==Ws?Ws.pendingLanes:0),e=nl;var t=4186112&~rl;return 0==(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=ji(),e=zt(0!=(4&Ts)&&98===e?12:e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),nl)}function ll(e,t,n){if(50<Xs)throw Xs=0,el=null,Error(a(185));if(null===(e=ul(e,t)))return null;Ht(e,t,n),e===ks&&(Ds|=t,4===As&&fl(e,Ls));var r=ji();1===t?0!=(8&Ts)&&0==(48&Ts)?hl(e):(cl(e,n),0===Ts&&(Bs(),Vi())):(0==(4&Ts)||98!==r&&99!==r||(null===Qs?Qs=new Set([e]):Qs.add(e)),cl(e,n)),Ws=e}function ul(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function cl(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-Ut(s),u=1<<l,c=o[l];if(-1===c){if(0==(u&r)||0!=(u&i)){c=t,Dt(u);var d=Pt;o[l]=10<=d?c+250:6<=d?c+5e3:-1}}else c<=t&&(e.expiredLanes|=u);s&=~u}if(r=Ft(e,e===ks?Ls:0),t=Pt,0===r)null!==n&&(n!==Mi&&Ci(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Mi&&Ci(n)}15===t?(n=hl.bind(null,e),null===Pi?(Pi=[n],Di=Si(Oi,Gi)):Pi.push(n),n=Mi):n=14===t?Ui(99,hl.bind(null,e)):Ui(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),dl.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function dl(e){if(tl=-1,rl=nl=0,0!=(48&Ts))throw Error(a(327));var t=e.callbackNode;if(Ll()&&e.callbackNode!==t)return null;var n=Ft(e,e===ks?Ls:0);if(0===n)return null;var r=n,i=Ts;Ts|=16;var o=bl();for(ks===e&&Ls===r||(Bs(),yl(e,r));;)try{Cl();break}catch(t){wl(e,t)}if(Qi(),xs.current=o,Ts=i,null!==Os?r=0:(ks=null,Ls=0,r=As),0!=(Ns&Ds))yl(e,0);else if(0!==r){if(2===r&&(Ts|=64,e.hydrate&&(e.hydrate=!1,Ur(e.containerInfo)),0!==(n=Wt(e))&&(r=_l(e,n))),1===r)throw t=Ms,yl(e,0),fl(e,n),cl(e,zi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:Tl(e);break;case 3:if(fl(e,n),(62914560&n)===n&&10<(r=zs+500-zi())){if(0!==Ft(e,0))break;if(((i=e.suspendedLanes)&n)!==n){al(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Br(Tl.bind(null,e),r);break}Tl(e);break;case 4:if(fl(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var s=31-Ut(n);o=1<<s,(s=r[s])>i&&(i=s),n&=~o}if(n=i,10<(n=(120>(n=zi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Cs(n/1960))-n)){e.timeoutHandle=Br(Tl.bind(null,e),n);break}Tl(e);break;case 5:Tl(e);break;default:throw Error(a(329))}}return cl(e,zi()),e.callbackNode===t?dl.bind(null,e):null}function fl(e,t){for(t&=~Fs,t&=~Ds,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ut(t),r=1<<n;e[n]=-1,t&=~r}}function hl(e){if(0!=(48&Ts))throw Error(a(327));if(Ll(),e===ks&&0!=(e.expiredLanes&Ls)){var t=Ls,n=_l(e,t);0!=(Ns&Ds)&&(n=_l(e,t=Ft(e,t)))}else n=_l(e,t=Ft(e,0));if(0!==e.tag&&2===n&&(Ts|=64,e.hydrate&&(e.hydrate=!1,Ur(e.containerInfo)),0!==(t=Wt(e))&&(n=_l(e,t))),1===n)throw n=Ms,yl(e,0),fl(e,t),cl(e,zi()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Tl(e),cl(e,zi()),null}function pl(e,t){var n=Ts;Ts|=1;try{return e(t)}finally{0===(Ts=n)&&(Bs(),Vi())}}function gl(e,t){var n=Ts;Ts&=-2,Ts|=8;try{return e(t)}finally{0===(Ts=n)&&(Bs(),Vi())}}function ml(e,t){si(Is,Rs),Rs|=t,Ns|=t}function vl(){Rs=Is.current,ai(Is)}function yl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Hr(n)),null!==Os)for(n=Os.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&pi();break;case 3:Io(),ai(ci),ai(ui),$o();break;case 5:Mo(r);break;case 4:Io();break;case 13:case 19:ai(No);break;case 10:Xi(r);break;case 23:case 24:vl()}n=n.return}ks=e,Os=jl(e.current,null),Ls=Rs=Ns=t,As=0,Ms=null,Fs=Ds=Ps=0}function wl(e,t){for(;;){var n=Os;try{if(Qi(),qo.current=Oa,Xo){for(var r=Zo.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}Xo=!1}if(Ko=0,Qo=Jo=Zo=null,ea=!1,Es.current=null,null===n||null===n.return){As=1,Ms=t,Os=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=Ls,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l;if(0==(2&s.mode)){var c=s.alternate;c?(s.updateQueue=c.updateQueue,s.memoizedState=c.memoizedState,s.lanes=c.lanes):(s.updateQueue=null,s.memoizedState=null)}var d=0!=(1&No.current),f=a;do{var h;if(h=13===f.tag){var p=f.memoizedState;if(null!==p)h=null!==p.dehydrated;else{var g=f.memoizedProps;h=void 0!==g.fallback&&(!0!==g.unstable_avoidThisFallback||!d)}}if(h){var m=f.updateQueue;if(null===m){var v=new Set;v.add(u),f.updateQueue=v}else m.add(u);if(0==(2&f.mode)){if(f.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=ao(-1,1);y.tag=2,so(s,y)}s.lanes|=1;break e}l=void 0,s=t;var w=o.pingCache;if(null===w?(w=o.pingCache=new os,l=new Set,w.set(u,l)):void 0===(l=w.get(u))&&(l=new Set,w.set(u,l)),!l.has(s)){l.add(s);var b=Pl.bind(null,o,u,s);u.then(b,b)}f.flags|=4096,f.lanes=t;break e}f=f.return}while(null!==f);l=Error((q(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==As&&(As=2),l=rs(l,s),f=a;do{switch(f.tag){case 3:o=l,f.flags|=4096,t&=-t,f.lanes|=t,lo(f,as(0,o,t));break e;case 1:o=l;var _=f.type,S=f.stateNode;if(0==(64&f.flags)&&("function"==typeof _.getDerivedStateFromError||null!==S&&"function"==typeof S.componentDidCatch&&(null===$s||!$s.has(S)))){f.flags|=4096,t&=-t,f.lanes|=t,lo(f,ss(f,o,t));break e}}f=f.return}while(null!==f)}El(n)}catch(e){t=e,Os===n&&null!==n&&(Os=n=n.return);continue}break}}function bl(){var e=xs.current;return xs.current=Oa,null===e?Oa:e}function _l(e,t){var n=Ts;Ts|=16;var r=bl();for(ks===e&&Ls===t||yl(e,t);;)try{Sl();break}catch(t){wl(e,t)}if(Qi(),Ts=n,xs.current=r,null!==Os)throw Error(a(261));return ks=null,Ls=0,As}function Sl(){for(;null!==Os;)xl(Os)}function Cl(){for(;null!==Os&&!xi();)xl(Os)}function xl(e){var t=Hs(e.alternate,e,Rs);e.memoizedProps=e.pendingProps,null===t?El(e):Os=t,Es.current=null}function El(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=ts(n,t,Rs)))return void(Os=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Rs)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=ns(t)))return n.flags&=2047,void(Os=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Os=t);Os=t=e}while(null!==t);0===As&&(As=5)}function Tl(e){var t=ji();return Hi(99,kl.bind(null,e,t)),null}function kl(e,t){do{Ll()}while(null!==Ys);if(0!=(48&Ts))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,o=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var s=e.eventTimes,l=e.expirationTimes;0<o;){var u=31-Ut(o),c=1<<u;i[u]=0,s[u]=-1,l[u]=-1,o&=~c}if(null!==Qs&&0==(24&r)&&Qs.has(e)&&Qs.delete(e),e===ks&&(Os=ks=null,Ls=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=Ts,Ts|=32,Es.current=null,Fr=Yt,hr(s=fr())){if("selectionStart"in s)l={start:s.selectionStart,end:s.selectionEnd};else e:if(l=(l=s.ownerDocument)&&l.defaultView||window,(c=l.getSelection&&l.getSelection())&&0!==c.rangeCount){l=c.anchorNode,o=c.anchorOffset,u=c.focusNode,c=c.focusOffset;try{l.nodeType,u.nodeType}catch(e){l=null;break e}var d=0,f=-1,h=-1,p=0,g=0,m=s,v=null;t:for(;;){for(var y;m!==l||0!==o&&3!==m.nodeType||(f=d+o),m!==u||0!==c&&3!==m.nodeType||(h=d+c),3===m.nodeType&&(d+=m.nodeValue.length),null!==(y=m.firstChild);)v=m,m=y;for(;;){if(m===s)break t;if(v===l&&++p===o&&(f=d),v===u&&++g===c&&(h=d),null!==(y=m.nextSibling))break;v=(m=v).parentNode}m=y}l=-1===f||-1===h?null:{start:f,end:h}}else l=null;l=l||{start:0,end:0}}else l=null;Wr={focusedElem:s,selectionRange:l},Yt=!1,il=null,ol=!1,Us=r;do{try{Ol()}catch(e){if(null===Us)throw Error(a(330));Nl(Us,e),Us=Us.nextEffect}}while(null!==Us);il=null,Us=r;do{try{for(s=e;null!==Us;){var w=Us.flags;if(16&w&&ve(Us.stateNode,""),128&w){var b=Us.alternate;if(null!==b){var _=b.ref;null!==_&&("function"==typeof _?_(null):_.current=null)}}switch(1038&w){case 2:ms(Us),Us.flags&=-3;break;case 6:ms(Us),Us.flags&=-3,bs(Us.alternate,Us);break;case 1024:Us.flags&=-1025;break;case 1028:Us.flags&=-1025,bs(Us.alternate,Us);break;case 4:bs(Us.alternate,Us);break;case 8:ws(s,l=Us);var S=l.alternate;ps(l),null!==S&&ps(S)}Us=Us.nextEffect}}catch(e){if(null===Us)throw Error(a(330));Nl(Us,e),Us=Us.nextEffect}}while(null!==Us);if(_=Wr,b=fr(),w=_.focusedElem,s=_.selectionRange,b!==w&&w&&w.ownerDocument&&dr(w.ownerDocument.documentElement,w)){null!==s&&hr(w)&&(b=s.start,void 0===(_=s.end)&&(_=b),"selectionStart"in w?(w.selectionStart=b,w.selectionEnd=Math.min(_,w.value.length)):(_=(b=w.ownerDocument||document)&&b.defaultView||window).getSelection&&(_=_.getSelection(),l=w.textContent.length,S=Math.min(s.start,l),s=void 0===s.end?S:Math.min(s.end,l),!_.extend&&S>s&&(l=s,s=S,S=l),l=cr(w,S),o=cr(w,s),l&&o&&(1!==_.rangeCount||_.anchorNode!==l.node||_.anchorOffset!==l.offset||_.focusNode!==o.node||_.focusOffset!==o.offset)&&((b=b.createRange()).setStart(l.node,l.offset),_.removeAllRanges(),S>s?(_.addRange(b),_.extend(o.node,o.offset)):(b.setEnd(o.node,o.offset),_.addRange(b))))),b=[];for(_=w;_=_.parentNode;)1===_.nodeType&&b.push({element:_,left:_.scrollLeft,top:_.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w<b.length;w++)(_=b[w]).element.scrollLeft=_.left,_.element.scrollTop=_.top}Yt=!!Fr,Wr=Fr=null,e.current=n,Us=r;do{try{for(w=e;null!==Us;){var C=Us.flags;if(36&C&&ds(w,Us.alternate,Us),128&C){b=void 0;var x=Us.ref;if(null!==x){var E=Us.stateNode;switch(Us.tag){case 5:b=E;break;default:b=E}"function"==typeof x?x(b):x.current=b}}Us=Us.nextEffect}}catch(e){if(null===Us)throw Error(a(330));Nl(Us,e),Us=Us.nextEffect}}while(null!==Us);Us=null,Ni(),Ts=i}else e.current=n;if(qs)qs=!1,Ys=e,Ks=t;else for(Us=r;null!==Us;)t=Us.nextEffect,Us.nextEffect=null,8&Us.flags&&((C=Us).sibling=null,C.stateNode=null),Us=t;if(0===(r=e.pendingLanes)&&($s=null),1===r?e===el?Xs++:(Xs=0,el=e):Xs=0,n=n.stateNode,bi&&"function"==typeof bi.onCommitFiberRoot)try{bi.onCommitFiberRoot(wi,n,void 0,64==(64&n.current.flags))}catch(e){}if(cl(e,zi()),Vs)throw Vs=!1,e=Gs,Gs=null,e;return 0!=(8&Ts)||Vi(),null}function Ol(){for(;null!==Us;){var e=Us.alternate;ol||null===il||(0!=(8&Us.flags)?Xe(Us,il)&&(ol=!0):13===Us.tag&&Ss(e,Us)&&Xe(Us,il)&&(ol=!0));var t=Us.flags;0!=(256&t)&&cs(e,Us),0==(512&t)||qs||(qs=!0,Ui(97,(function(){return Ll(),null}))),Us=Us.nextEffect}}function Ll(){if(90!==Ks){var e=97<Ks?97:Ks;return Ks=90,Hi(e,Al)}return!1}function Rl(e,t){Zs.push(t,e),qs||(qs=!0,Ui(97,(function(){return Ll(),null})))}function Il(e,t){Js.push(t,e),qs||(qs=!0,Ui(97,(function(){return Ll(),null})))}function Al(){if(null===Ys)return!1;var e=Ys;if(Ys=null,0!=(48&Ts))throw Error(a(331));var t=Ts;Ts|=32;var n=Js;Js=[];for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1],s=i.destroy;if(i.destroy=void 0,"function"==typeof s)try{s()}catch(e){if(null===o)throw Error(a(330));Nl(o,e)}}for(n=Zs,Zs=[],r=0;r<n.length;r+=2){i=n[r],o=n[r+1];try{var l=i.create;i.destroy=l()}catch(e){if(null===o)throw Error(a(330));Nl(o,e)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return Ts=t,Vi(),!0}function Ml(e,t,n){so(e,t=as(0,t=rs(n,t),1)),t=al(),null!==(e=ul(e,1))&&(Ht(e,1,t),cl(e,t))}function Nl(e,t){if(3===e.tag)Ml(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Ml(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===$s||!$s.has(r))){var i=ss(n,e=rs(t,e),1);if(so(n,i),i=al(),null!==(n=ul(n,1)))Ht(n,1,i),cl(n,i);else if("function"==typeof r.componentDidCatch&&(null===$s||!$s.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Pl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=al(),e.pingedLanes|=e.suspendedLanes&n,ks===e&&(Ls&n)===n&&(4===As||3===As&&(62914560&Ls)===Ls&&500>zi()-zs?yl(e,0):Fs|=n),cl(e,t)}function Dl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===ji()?1:2:(0===nl&&(nl=Ns),0===(t=jt(62914560&~nl))&&(t=4194304))),n=al(),null!==(e=ul(e,t))&&(Ht(e,t,n),cl(e,n))}function Fl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Wl(e,t,n,r){return new Fl(e,t,n,r)}function zl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function jl(e,t){var n=e.alternate;return null===n?((n=Wl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Bl(e,t,n,r,i,o){var s=2;if(r=e,"function"==typeof e)zl(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case x:return Hl(n.children,i,o,t);case D:s=8,i|=16;break;case E:s=8,i|=1;break;case T:return(e=Wl(12,n,t,8|i)).elementType=T,e.type=T,e.lanes=o,e;case R:return(e=Wl(13,n,t,i)).type=R,e.elementType=R,e.lanes=o,e;case I:return(e=Wl(19,n,t,i)).elementType=I,e.lanes=o,e;case F:return Ul(n,i,o,t);case W:return(e=Wl(24,n,t,i)).elementType=W,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case k:s=10;break e;case O:s=9;break e;case L:s=11;break e;case A:s=14;break e;case M:s=16,r=null;break e;case N:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Wl(s,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function Hl(e,t,n,r){return(e=Wl(7,e,r,t)).lanes=n,e}function Ul(e,t,n,r){return(e=Wl(23,e,r,t)).elementType=F,e.lanes=n,e}function Vl(e,t,n){return(e=Wl(6,e,null,t)).lanes=n,e}function Gl(e,t,n){return(t=Wl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $l(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Bt(0),this.expirationTimes=Bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.mutableSourceEagerHydrationData=null}function ql(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:C,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Yl(e,t,n,r){var i=t.current,o=al(),s=sl(i);e:if(n){t:{if(Ke(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(hi(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(a(171))}if(1===n.tag){var u=n.type;if(hi(u)){n=mi(n,u,l);break e}}n=l}else n=li;return null===t.context?t.context=n:t.pendingContext=n,(t=ao(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),so(i,t),ll(i,s,o),s}function Kl(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Zl(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Jl(e,t){Zl(e,t),(e=e.alternate)&&Zl(e,t)}function Ql(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new $l(e,t,null!=n&&!0===n.hydrate),t=Wl(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,io(t),e[Zr]=n.current,Or(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function Xl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function eu(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=Kl(a);s.call(e)}}Yl(t,a,e,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Ql(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"==typeof i){var l=i;i=function(){var e=Kl(a);l.call(e)}}gl((function(){Yl(t,a,e,i)}))}return Kl(a)}function tu(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xl(t))throw Error(a(200));return ql(e,t,null,n)}Hs=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||ci.current)Ma=!0;else{if(0==(n&r)){switch(Ma=!1,t.tag){case 3:Ua(t),Vo();break;case 5:Ao(t);break;case 1:hi(t.type)&&vi(t);break;case 4:Ro(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;si(Yi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Ya(e,t,n):(si(No,1&No.current),null!==(t=Xa(e,t,n))?t.sibling:null);si(No,1&No.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return Qa(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),si(No,No.current),r)break;return null;case 23:case 24:return t.lanes=0,Wa(e,t,n)}return Xa(e,t,n)}Ma=0!=(16384&e.flags)}else Ma=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=fi(t,ui.current),to(t,n),i=ra(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,hi(r)){var o=!0;vi(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,io(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&ho(t,r,s,e),i.updater=po,t.stateNode=i,i._reactInternals=t,yo(t,r,e,n),t=Ha(null,t,r,!0,o,n)}else t.tag=0,Na(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"==typeof e)return zl(e)?1:0;if(null!=e){if((e=e.$$typeof)===L)return 11;if(e===A)return 14}return 2}(i),e=qi(i,e),o){case 0:t=ja(null,t,i,e,n);break e;case 1:t=Ba(null,t,i,e,n);break e;case 11:t=Pa(null,t,i,e,n);break e;case 14:t=Da(null,t,i,qi(i.type,e),r,n);break e}throw Error(a(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,ja(e,t,r,i=t.elementType===r?i:qi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ba(e,t,r,i=t.elementType===r?i:qi(r,i),n);case 3:if(Ua(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,oo(e,t),uo(t,r,null,n),(r=t.memoizedState.element)===i)Vo(),t=Xa(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(Fo=Vr(t.stateNode.containerInfo.firstChild),Do=t,o=Wo=!0),o){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(o=e[i])._workInProgressVersionPrimary=e[i+1],Go.push(o);for(n=xo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Na(e,t,r,n),Vo();t=t.child}return t;case 5:return Ao(t),null===e&&Bo(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,jr(r,i)?s=null:null!==o&&jr(r,o)&&(t.flags|=16),za(e,t),Na(e,t,s,n),t.child;case 6:return null===e&&Bo(t),null;case 13:return Ya(e,t,n);case 4:return Ro(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Co(t,null,r,n):Na(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Pa(e,t,r,i=t.elementType===r?i:qi(r,i),n);case 7:return Na(e,t,t.pendingProps,n),t.child;case 8:case 12:return Na(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value;var l=t.type._context;if(si(Yi,l._currentValue),l._currentValue=o,null!==s)if(l=s.value,0==(o=ar(l,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,o):1073741823))){if(s.children===i.children&&!ci.current){t=Xa(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){s=l.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&o)){1===l.tag&&((c=ao(-1,n&-n)).tag=2,so(l,c)),l.lanes|=n,null!==(c=l.alternate)&&(c.lanes|=n),eo(l.return,n),u.lanes|=n;break}c=c.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Na(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,to(t,n),r=r(i=no(i,o.unstable_observedBits)),t.flags|=1,Na(e,t,r,n),t.child;case 14:return o=qi(i=t.type,t.pendingProps),Da(e,t,i,o=qi(i.type,o),r,n);case 15:return Fa(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:qi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,hi(r)?(e=!0,vi(t)):e=!1,to(t,n),mo(t,r,i),yo(t,r,i,n),Ha(null,t,r,!0,e,n);case 19:return Qa(e,t,n);case 23:case 24:return Wa(e,t,n)}throw Error(a(156,t.tag))},Ql.prototype.render=function(e){Yl(e,this._internalRoot,null,null)},Ql.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Yl(null,e,null,(function(){t[Zr]=null}))},et=function(e){13===e.tag&&(ll(e,4,al()),Jl(e,4))},tt=function(e){13===e.tag&&(ll(e,67108864,al()),Jl(e,67108864))},nt=function(e){if(13===e.tag){var t=al(),n=sl(e);ll(e,n,t),Jl(e,n)}},rt=function(e,t){return t()},Te=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ti(r);if(!i)throw Error(a(90));J(r),ne(r,i)}}}break;case"textarea":ue(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Ae=pl,Me=function(e,t,n,r,i){var o=Ts;Ts|=4;try{return Hi(98,e.bind(null,t,n,r,i))}finally{0===(Ts=o)&&(Bs(),Vi())}},Ne=function(){0==(49&Ts)&&(function(){if(null!==Qs){var e=Qs;Qs=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,cl(e,zi())}))}Vi()}(),Ll())},Pe=function(e,t){var n=Ts;Ts|=2;try{return e(t)}finally{0===(Ts=n)&&(Bs(),Vi())}};var nu={Events:[Xr,ei,ti,Re,Ie,Ll,{current:!1}]},ru={findFiberByHostInstance:Qr,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},iu={bundleType:ru.bundleType,version:ru.version,rendererPackageName:ru.rendererPackageName,rendererConfig:ru.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Qe(e))?null:e.stateNode},findFiberByHostInstance:ru.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ou=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ou.isDisabled&&ou.supportsFiber)try{wi=ou.inject(iu),bi=ou}catch(ge){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=nu,t.createPortal=tu,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return null===(e=Qe(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Ts;if(0!=(48&n))return e(t);Ts|=1;try{if(e)return Hi(99,e.bind(null,t))}finally{Ts=n,Vi()}},t.hydrate=function(e,t,n){if(!Xl(t))throw Error(a(200));return eu(null,e,t,!0,n)},t.render=function(e,t,n){if(!Xl(t))throw Error(a(200));return eu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xl(e))throw Error(a(40));return!!e._reactRootContainer&&(gl((function(){eu(null,null,e,!1,(function(){e._reactRootContainer=null,e[Zr]=null}))})),!0)},t.unstable_batchedUpdates=pl,t.unstable_createPortal=function(e,t){return tu(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xl(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return eu(e,t,n,!1,r)},t.version="17.0.2"},73961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(57799)},76425:(e,t,n)=>{"use strict";var r=n(9736),i=n(3805);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,s=r(n(38972)),l=r(n(98884)),u=r(n(12164)),c=r(n(62094)),d=r(n(79168)),f=r(n(28914)),h=r(n(18239)),p=i(n(89526)),g=r(n(47785));function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(n,!0).forEach((function(t){(0,h.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}r(n(2652));var y=(a=o=function(e){function t(){var e,n;(0,s.default)(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=(0,u.default)(this,(e=(0,c.default)(t)).call.apply(e,[this].concat(i))),(0,h.default)((0,d.default)(n),"state",{height:n.props.defaultHeight||0,width:n.props.defaultWidth||0}),(0,h.default)((0,d.default)(n),"_parentNode",void 0),(0,h.default)((0,d.default)(n),"_autoSizer",void 0),(0,h.default)((0,d.default)(n),"_window",void 0),(0,h.default)((0,d.default)(n),"_detectElementResize",void 0),(0,h.default)((0,d.default)(n),"_onResize",(function(){var e=n.props,t=e.disableHeight,r=e.disableWidth,i=e.onResize;if(n._parentNode){var o=n._parentNode.offsetHeight||0,a=n._parentNode.offsetWidth||0,s=(n._window||window).getComputedStyle(n._parentNode)||{},l=parseInt(s.paddingLeft,10)||0,u=parseInt(s.paddingRight,10)||0,c=parseInt(s.paddingTop,10)||0,d=parseInt(s.paddingBottom,10)||0,f=o-c-d,h=a-l-u;(!t&&n.state.height!==f||!r&&n.state.width!==h)&&(n.setState({height:o-c-d,width:a-l-u}),i({height:o,width:a}))}})),(0,h.default)((0,d.default)(n),"_setRef",(function(e){n._autoSizer=e})),n}return(0,f.default)(t,e),(0,l.default)(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._window=this._autoSizer.parentNode.ownerDocument.defaultView,this._detectElementResize=(0,g.default)(e,this._window),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.disableHeight,i=e.disableWidth,o=e.style,a=this.state,s=a.height,l=a.width,u={overflow:"visible"},c={};return r||(u.height=0,c.height=s),i||(u.width=0,c.width=l),p.createElement("div",{className:n,ref:this._setRef,style:v({},u,{},o)},t(c))}}]),t}(p.Component),(0,h.default)(o,"propTypes",null),a);t.default=y,(0,h.default)(y,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}})},38745:(e,t,n)=>{"use strict";var r=n(9736);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"AutoSizer",{enumerable:!0,get:function(){return i.default}});var i=r(n(76425))},47785:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r,i,o,a=void 0!==(r=void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:n.g).document&&r.document.attachEvent;if(!a){var s=(o=r.requestAnimationFrame||r.mozRequestAnimationFrame||r.webkitRequestAnimationFrame||function(e){return r.setTimeout(e,20)},function(e){return o(e)}),l=(i=r.cancelAnimationFrame||r.mozCancelAnimationFrame||r.webkitCancelAnimationFrame||r.clearTimeout,function(e){return i(e)}),u=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},c=function(e){if(!(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;u(this),this.__resizeRAF__&&l(this.__resizeRAF__),this.__resizeRAF__=s((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}},d=!1,f="",h="animationstart",p="Webkit Moz O ms".split(" "),g="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),m=r.document.createElement("fakeelement");if(void 0!==m.style.animationName&&(d=!0),!1===d)for(var v=0;v<p.length;v++)if(void 0!==m.style[p[v]+"AnimationName"]){f="-"+p[v].toLowerCase()+"-",h=g[v],d=!0;break}var y="resizeanim",w="@"+f+"keyframes "+y+" { from { opacity: 0; } to { opacity: 0; } } ",b=f+"animation: 1ms "+y+"; "}return{addResizeListener:function(t,n){if(a)t.attachEvent("onresize",n);else{if(!t.__resizeTriggers__){var i=t.ownerDocument,o=r.getComputedStyle(t);o&&"static"==o.position&&(t.style.position="relative"),function(t){if(!t.getElementById("detectElementResize")){var n=(w||"")+".resize-triggers { "+(b||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=t.head||t.getElementsByTagName("head")[0],i=t.createElement("style");i.id="detectElementResize",i.type="text/css",null!=e&&i.setAttribute("nonce",e),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(t.createTextNode(n)),r.appendChild(i)}}(i),t.__resizeLast__={},t.__resizeListeners__=[],(t.__resizeTriggers__=i.createElement("div")).className="resize-triggers";var s='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>';if(window.trustedTypes){var l=trustedTypes.createPolicy("react-virtualized-auto-sizer",{createHTML:function(){return s}});t.__resizeTriggers__.innerHTML=l.createHTML("")}else t.__resizeTriggers__.innerHTML=s;t.appendChild(t.__resizeTriggers__),u(t),t.addEventListener("scroll",c,!0),h&&(t.__resizeTriggers__.__animationListener__=function(e){e.animationName==y&&u(t)},t.__resizeTriggers__.addEventListener(h,t.__resizeTriggers__.__animationListener__))}t.__resizeListeners__.push(n)}},removeResizeListener:function(e,t){if(a)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",c,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(h,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}},34255:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function a(e){return(a="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})(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?s(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.r(t),n.d(t,{ArrowKeyStepper:()=>J,AutoSizer:()=>re,CellMeasurer:()=>se,CellMeasurerCache:()=>le,Collection:()=>we,Column:()=>ft,ColumnSizer:()=>be,Grid:()=>G,InfiniteLoader:()=>Ce,List:()=>Te,Masonry:()=>Ze,MultiGrid:()=>nt,ScrollSync:()=>rt,SortDirection:()=>lt,SortIndicator:()=>ut,Table:()=>gt,WindowScroller:()=>Nt,accessibilityOverscanIndicesGetter:()=>$,createMasonryCellPositioner:()=>Je,createTableMultiSort:()=>it,defaultCellRangeRenderer:()=>O,defaultOverscanIndicesGetter:()=>T,defaultTableCellDataGetter:()=>ot,defaultTableCellRenderer:()=>at,defaultTableHeaderRenderer:()=>ct,defaultTableHeaderRowRenderer:()=>st,defaultTableRowRenderer:()=>dt});var h=n(89526);function p(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function g(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function m(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function v(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,r=null,i=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?i="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(i="UNSAFE_componentWillUpdate"),null!==n||null!==r||null!==i){var o=e.displayName||e.name,a="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+o+" uses "+a+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==r?"\n "+r:"")+(null!==i?"\n "+i:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=p,t.componentWillReceiveProps=g),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=m;var s=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;s.call(this,e,t,r)}}return e}function y(){return(y=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}).apply(this,arguments)}function w(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=w(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function b(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=w(e))&&(r&&(r+=" "),r+=t);return r}function _(e){var t=e.cellCount,n=e.cellSize,r=e.computeMetadataCallback,i=e.computeMetadataCallbackProps,o=e.nextCellsCount,a=e.nextCellSize,s=e.nextScrollToIndex,l=e.scrollToIndex,u=e.updateScrollOffsetForScrollToIndex;t===o&&("number"!=typeof n&&"number"!=typeof a||n===a)||(r(i),l>=0&&l===s&&u())}function S(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}p.__suppressDeprecationWarning=!0,g.__suppressDeprecationWarning=!0,m.__suppressDeprecationWarning=!0,n(2652);var C=function(){function e(t){var n=t.cellCount,i=t.cellSizeGetter,o=t.estimatedCellSize;r(this,e),f(this,"_cellSizeAndPositionData",{}),f(this,"_lastMeasuredIndex",-1),f(this,"_lastBatchedIndex",-1),f(this,"_cellCount",void 0),f(this,"_cellSizeGetter",void 0),f(this,"_estimatedCellSize",void 0),this._cellSizeGetter=i,this._cellCount=n,this._estimatedCellSize=o}return o(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,n=e.estimatedCellSize,r=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=n,this._cellSizeGetter=r}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(e){if(e<0||e>=this._cellCount)throw Error("Requested index ".concat(e," is outside of range 0..").concat(this._cellCount));if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,r=this._lastMeasuredIndex+1;r<=e;r++){var i=this._cellSizeGetter({index:r});if(void 0===i||isNaN(i))throw Error("Invalid size returned for cell ".concat(r," of value ").concat(i));null===i?(this._cellSizeAndPositionData[r]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[r]={offset:n,size:i},n+=i,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,r=e.containerSize,i=e.currentOffset,o=e.targetIndex;if(r<=0)return 0;var a,s=this.getSizeAndPositionOfCell(o),l=s.offset,u=l-r+s.size;switch(n){case"start":a=l;break;case"end":a=u;break;case"center":a=l-(r-s.size)/2;break;default:a=Math.max(u,Math.min(l,i))}var c=this.getTotalSize();return Math.max(0,Math.min(c-r,a))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};var r=n+t,i=this._findNearestCell(n),o=this.getSizeAndPositionOfCell(i);n=o.offset+o.size;for(var a=i;n<r&&a<this._cellCount-1;)a++,n+=this.getSizeAndPositionOfCell(a).size;return{start:i,stop:a}}},{key:"resetCell",value:function(e){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,e-1)}},{key:"_binarySearch",value:function(e,t,n){for(;t<=e;){var r=t+Math.floor((e-t)/2),i=this.getSizeAndPositionOfCell(r).offset;if(i===n)return r;i<n?t=r+1:i>n&&(e=r-1)}return t>0?t-1:0}},{key:"_exponentialSearch",value:function(e,t){for(var n=1;e<this._cellCount&&this.getSizeAndPositionOfCell(e).offset<t;)e+=n,n*=2;return this._binarySearch(Math.min(e,this._cellCount-1),Math.floor(e/2),t)}},{key:"_findNearestCell",value:function(e){if(isNaN(e))throw Error("Invalid offset ".concat(e," specified"));e=Math.max(0,e);var t=this.getSizeAndPositionOfLastMeasuredCell(),n=Math.max(0,this._lastMeasuredIndex);return t.offset>=e?this._binarySearch(n,0,e):this._exponentialSearch(n,e)}}]),e}(),x=function(){function e(t){var n=t.maxScrollSize,i=void 0===n?"undefined"!=typeof window&&window.chrome?16777100:15e5:n,o=S(t,["maxScrollSize"]);r(this,e),f(this,"_cellSizeAndPositionManager",void 0),f(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new C(o),this._maxScrollSize=i}return o(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),i=this.getTotalSize(),o=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:i});return Math.round(o*(i-r))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,r=e.containerSize,i=e.currentOffset,o=e.targetIndex;i=this._safeOffsetToOffset({containerSize:r,offset:i});var a=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:r,currentOffset:i,targetIndex:o});return this._offsetToSafeOffset({containerSize:r,offset:a})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,r=e.totalSize;return r<=t?0:n/(r-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),i=this.getTotalSize();if(r===i)return n;var o=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(o*(i-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),i=this.getTotalSize();if(r===i)return n;var o=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:i});return Math.round(o*(r-t))}}]),e}();function E(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var r=n.callback,i=n.indices,o=Object.keys(i),a=!e||o.every((function(e){var t=i[e];return Array.isArray(t)?t.length>0:t>=0})),s=o.length!==Object.keys(t).length||o.some((function(e){var n=t[e],r=i[e];return Array.isArray(r)?n.join(",")!==r.join(","):n!==r}));t=i,a&&s&&r(i)}}function T(e){var t=e.cellCount,n=e.overscanCellsCount,r=e.scrollDirection,i=e.startIndex,o=e.stopIndex;return 1===r?{overscanStartIndex:Math.max(0,i),overscanStopIndex:Math.min(t-1,o+n)}:{overscanStartIndex:Math.max(0,i-n),overscanStopIndex:Math.min(t-1,o)}}function k(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,r=e.previousCellsCount,i=e.previousCellSize,o=e.previousScrollToAlignment,a=e.previousScrollToIndex,s=e.previousSize,l=e.scrollOffset,u=e.scrollToAlignment,c=e.scrollToIndex,d=e.size,f=e.sizeJustIncreasedFromZero,h=e.updateScrollIndexCallback,p=n.getCellCount(),g=c>=0&&c<p;g&&(d!==s||f||!i||"number"==typeof t&&t!==i||u!==o||c!==a)?h(c):!g&&p>0&&(d<s||p<r)&&l>n.getTotalSize()-d&&h(p-1)}function O(e){for(var t=e.cellCache,n=e.cellRenderer,r=e.columnSizeAndPositionManager,i=e.columnStartIndex,o=e.columnStopIndex,a=e.deferredMeasurementCache,s=e.horizontalOffsetAdjustment,l=e.isScrolling,u=e.isScrollingOptOut,c=e.parent,d=e.rowSizeAndPositionManager,f=e.rowStartIndex,h=e.rowStopIndex,p=e.styleCache,g=e.verticalOffsetAdjustment,m=e.visibleColumnIndices,v=e.visibleRowIndices,y=[],w=r.areOffsetsAdjusted()||d.areOffsetsAdjusted(),b=!l&&!w,_=f;_<=h;_++)for(var S=d.getSizeAndPositionOfCell(_),C=i;C<=o;C++){var x=r.getSizeAndPositionOfCell(C),E=C>=m.start&&C<=m.stop&&_>=v.start&&_<=v.stop,T="".concat(_,"-").concat(C),k=void 0;b&&p[T]?k=p[T]:a&&!a.has(_,C)?k={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(k={height:S.size,left:x.offset+s,position:"absolute",top:S.offset+g,width:x.size},p[T]=k);var O={columnIndex:C,isScrolling:l,isVisible:E,key:T,parent:c,rowIndex:_,style:k},L=void 0;!u&&!l||s||g?L=n(O):(t[T]||(t[T]=n(O)),L=t[T]),null!=L&&!1!==L&&y.push(L)}return y}const L=!("undefined"==typeof window||!window.document||!window.document.createElement);var R,I;function A(e){if((!R&&0!==R||e)&&L){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),R=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return R}var M,N,P=(I="undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).requestAnimationFrame||I.webkitRequestAnimationFrame||I.mozRequestAnimationFrame||I.oRequestAnimationFrame||I.msRequestAnimationFrame||function(e){return I.setTimeout(e,1e3/60)},D=I.cancelAnimationFrame||I.webkitCancelAnimationFrame||I.mozCancelAnimationFrame||I.oCancelAnimationFrame||I.msCancelAnimationFrame||function(e){I.clearTimeout(e)},F=P,W=D,z=function(e){return W(e.id)},j=function(e,t){var n;Promise.resolve().then((function(){n=Date.now()}));var r={id:F((function i(){Date.now()-n>=t?e.call():r.id=F(i)}))};return r};function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(n,!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var U="requested",V=(N=M=function(e){function t(e){var n;r(this,t),f(s(n=l(this,u(t).call(this,e))),"_onGridRenderedMemoizer",E()),f(s(n),"_onScrollMemoizer",E(!1)),f(s(n),"_deferredInvalidateColumnIndex",null),f(s(n),"_deferredInvalidateRowIndex",null),f(s(n),"_recomputeScrollLeftFlag",!1),f(s(n),"_recomputeScrollTopFlag",!1),f(s(n),"_horizontalScrollBarSize",0),f(s(n),"_verticalScrollBarSize",0),f(s(n),"_scrollbarPresenceChanged",!1),f(s(n),"_scrollingContainer",void 0),f(s(n),"_childrenToDisplay",void 0),f(s(n),"_columnStartIndex",void 0),f(s(n),"_columnStopIndex",void 0),f(s(n),"_rowStartIndex",void 0),f(s(n),"_rowStopIndex",void 0),f(s(n),"_renderedColumnStartIndex",0),f(s(n),"_renderedColumnStopIndex",0),f(s(n),"_renderedRowStartIndex",0),f(s(n),"_renderedRowStopIndex",0),f(s(n),"_initialScrollTop",void 0),f(s(n),"_initialScrollLeft",void 0),f(s(n),"_disablePointerEventsTimeoutId",void 0),f(s(n),"_styleCache",{}),f(s(n),"_cellCache",{}),f(s(n),"_debounceScrollEndedCallback",(function(){n._disablePointerEventsTimeoutId=null,n.setState({isScrolling:!1,needToResetStyleCache:!1})})),f(s(n),"_invokeOnGridRenderedHelper",(function(){var e=n.props.onSectionRendered;n._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:n._columnStartIndex,columnOverscanStopIndex:n._columnStopIndex,columnStartIndex:n._renderedColumnStartIndex,columnStopIndex:n._renderedColumnStopIndex,rowOverscanStartIndex:n._rowStartIndex,rowOverscanStopIndex:n._rowStopIndex,rowStartIndex:n._renderedRowStartIndex,rowStopIndex:n._renderedRowStopIndex}})})),f(s(n),"_setScrollingContainerRef",(function(e){n._scrollingContainer=e})),f(s(n),"_onScroll",(function(e){e.target===n._scrollingContainer&&n.handleScrollEvent(e.target)}));var i=new x({cellCount:e.columnCount,cellSizeGetter:function(n){return t._wrapSizeGetter(e.columnWidth)(n)},estimatedCellSize:t._getEstimatedColumnSize(e)}),o=new x({cellCount:e.rowCount,cellSizeGetter:function(n){return t._wrapSizeGetter(e.rowHeight)(n)},estimatedCellSize:t._getEstimatedRowSize(e)});return n.state={instanceProps:{columnSizeAndPositionManager:i,rowSizeAndPositionManager:o,prevColumnWidth:e.columnWidth,prevRowHeight:e.rowHeight,prevColumnCount:e.columnCount,prevRowCount:e.rowCount,prevIsScrolling:!0===e.isScrolling,prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow,scrollbarSize:0,scrollbarSizeMeasured:!1},isScrolling:!1,scrollDirectionHorizontal:1,scrollDirectionVertical:1,scrollLeft:0,scrollTop:0,scrollPositionChangeReason:null,needToResetStyleCache:!1},e.scrollToRow>0&&(n._initialScrollTop=n._getCalculatedScrollTop(e,n.state)),e.scrollToColumn>0&&(n._initialScrollLeft=n._getCalculatedScrollLeft(e,n.state)),n}return d(t,e),o(t,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?this.props.scrollToAlignment:t,r=e.columnIndex,i=void 0===r?this.props.scrollToColumn:r,o=e.rowIndex,a=void 0===o?this.props.scrollToRow:o,s=H({},this.props,{scrollToAlignment:n,scrollToColumn:i,scrollToRow:a});return{scrollLeft:this._getCalculatedScrollLeft(s),scrollTop:this._getCalculatedScrollTop(s)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(e){var t=e.scrollLeft,n=void 0===t?0:t,r=e.scrollTop,i=void 0===r?0:r;if(!(i<0)){this._debounceScrollEnded();var o=this.props,a=o.autoHeight,s=o.autoWidth,l=o.height,u=o.width,c=this.state.instanceProps,d=c.scrollbarSize,f=c.rowSizeAndPositionManager.getTotalSize(),h=c.columnSizeAndPositionManager.getTotalSize(),p=Math.min(Math.max(0,h-u+d),n),g=Math.min(Math.max(0,f-l+d),i);if(this.state.scrollLeft!==p||this.state.scrollTop!==g){var m={isScrolling:!0,scrollDirectionHorizontal:p!==this.state.scrollLeft?p>this.state.scrollLeft?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:g!==this.state.scrollTop?g>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:"observed"};a||(m.scrollTop=g),s||(m.scrollLeft=p),m.needToResetStyleCache=!1,this.setState(m)}this._invokeOnScrollMemoizer({scrollLeft:p,scrollTop:g,totalColumnsWidth:h,totalRowsHeight:f})}}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,n):n}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,n=e.rowCount,r=this.state.instanceProps;r.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),r.rowSizeAndPositionManager.getSizeAndPositionOfCell(n-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,i=void 0===r?0:r,o=this.props,a=o.scrollToColumn,s=o.scrollToRow,l=this.state.instanceProps;l.columnSizeAndPositionManager.resetCell(n),l.rowSizeAndPositionManager.resetCell(i),this._recomputeScrollLeftFlag=a>=0&&(1===this.state.scrollDirectionHorizontal?n<=a:n>=a),this._recomputeScrollTopFlag=s>=0&&(1===this.state.scrollDirectionVertical?i<=s:i>=s),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,r=this.props.columnCount,i=this.props;r>1&&void 0!==t&&this._updateScrollLeftForScrollToColumn(H({},i,{scrollToColumn:t})),void 0!==n&&this._updateScrollTopForScrollToRow(H({},i,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,n=e.getScrollbarSize,r=e.height,i=e.scrollLeft,o=e.scrollToColumn,a=e.scrollTop,s=e.scrollToRow,l=e.width,u=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),u.scrollbarSizeMeasured||this.setState((function(e){var t=H({},e,{needToResetStyleCache:!1});return t.instanceProps.scrollbarSize=n(),t.instanceProps.scrollbarSizeMeasured=!0,t})),"number"==typeof i&&i>=0||"number"==typeof a&&a>=0){var c=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:i,scrollTop:a});c&&(c.needToResetStyleCache=!1,this.setState(c))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var d=r>0&&l>0;o>=0&&d&&this._updateScrollLeftForScrollToColumn(),s>=0&&d&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:i||0,scrollTop:a||0,totalColumnsWidth:u.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:u.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var n=this,r=this.props,i=r.autoHeight,o=r.autoWidth,a=r.columnCount,s=r.height,l=r.rowCount,u=r.scrollToAlignment,c=r.scrollToColumn,d=r.scrollToRow,f=r.width,h=this.state,p=h.scrollLeft,g=h.scrollPositionChangeReason,m=h.scrollTop,v=h.instanceProps;this._handleInvalidatedGridSize();var y=a>0&&0===e.columnCount||l>0&&0===e.rowCount;g===U&&(!o&&p>=0&&(p!==this._scrollingContainer.scrollLeft||y)&&(this._scrollingContainer.scrollLeft=p),!i&&m>=0&&(m!==this._scrollingContainer.scrollTop||y)&&(this._scrollingContainer.scrollTop=m));var w=(0===e.width||0===e.height)&&s>0&&f>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):k({cellSizeAndPositionManager:v.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:p,scrollToAlignment:u,scrollToIndex:c,size:f,sizeJustIncreasedFromZero:w,updateScrollIndexCallback:function(){return n._updateScrollLeftForScrollToColumn(n.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):k({cellSizeAndPositionManager:v.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:m,scrollToAlignment:u,scrollToIndex:d,size:s,sizeJustIncreasedFromZero:w,updateScrollIndexCallback:function(){return n._updateScrollTopForScrollToRow(n.props)}}),this._invokeOnGridRenderedHelper(),p!==t.scrollLeft||m!==t.scrollTop){var b=v.rowSizeAndPositionManager.getTotalSize(),_=v.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:p,scrollTop:m,totalColumnsWidth:_,totalRowsHeight:b})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&z(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,r=e.autoWidth,i=e.className,o=e.containerProps,a=e.containerRole,s=e.containerStyle,l=e.height,u=e.id,c=e.noContentRenderer,d=e.role,f=e.style,p=e.tabIndex,g=e.width,m=this.state,v=m.instanceProps,w=m.needToResetStyleCache,_=this._isScrolling(),S={boxSizing:"border-box",direction:"ltr",height:n?"auto":l,position:"relative",width:r?"auto":g,WebkitOverflowScrolling:"touch",willChange:"transform"};w&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var C=v.columnSizeAndPositionManager.getTotalSize(),x=v.rowSizeAndPositionManager.getTotalSize(),E=x>l?v.scrollbarSize:0,T=C>g?v.scrollbarSize:0;T===this._horizontalScrollBarSize&&E===this._verticalScrollBarSize||(this._horizontalScrollBarSize=T,this._verticalScrollBarSize=E,this._scrollbarPresenceChanged=!0),S.overflowX=C+E<=g?"hidden":"auto",S.overflowY=x+T<=l?"hidden":"auto";var k=this._childrenToDisplay,O=0===k.length&&l>0&&g>0;return h.createElement("div",y({ref:this._setScrollingContainerRef},o,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:b("ReactVirtualized__Grid",i),id:u,onScroll:this._onScroll,role:d,style:H({},S,{},f),tabIndex:p}),k.length>0&&h.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:a,style:H({width:t?"auto":C,height:x,maxWidth:C,maxHeight:x,overflow:"hidden",pointerEvents:_?"none":"",position:"relative"},s)},k),O&&c())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,r=e.cellRangeRenderer,i=e.columnCount,o=e.deferredMeasurementCache,a=e.height,s=e.overscanColumnCount,l=e.overscanIndicesGetter,u=e.overscanRowCount,c=e.rowCount,d=e.width,f=e.isScrollingOptOut,h=t.scrollDirectionHorizontal,p=t.scrollDirectionVertical,g=t.instanceProps,m=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,v=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,y=this._isScrolling(e,t);if(this._childrenToDisplay=[],a>0&&d>0){var w=g.columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:v}),b=g.rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:m}),_=g.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:v}),S=g.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:m});this._renderedColumnStartIndex=w.start,this._renderedColumnStopIndex=w.stop,this._renderedRowStartIndex=b.start,this._renderedRowStopIndex=b.stop;var C=l({direction:"horizontal",cellCount:i,overscanCellsCount:s,scrollDirection:h,startIndex:"number"==typeof w.start?w.start:0,stopIndex:"number"==typeof w.stop?w.stop:-1}),x=l({direction:"vertical",cellCount:c,overscanCellsCount:u,scrollDirection:p,startIndex:"number"==typeof b.start?b.start:0,stopIndex:"number"==typeof b.stop?b.stop:-1}),E=C.overscanStartIndex,T=C.overscanStopIndex,k=x.overscanStartIndex,O=x.overscanStopIndex;if(o){if(!o.hasFixedHeight())for(var L=k;L<=O;L++)if(!o.has(L,0)){E=0,T=i-1;break}if(!o.hasFixedWidth())for(var R=E;R<=T;R++)if(!o.has(0,R)){k=0,O=c-1;break}}this._childrenToDisplay=r({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:g.columnSizeAndPositionManager,columnStartIndex:E,columnStopIndex:T,deferredMeasurementCache:o,horizontalOffsetAdjustment:_,isScrolling:y,isScrollingOptOut:f,parent:this,rowSizeAndPositionManager:g.rowSizeAndPositionManager,rowStartIndex:k,rowStopIndex:O,scrollLeft:v,scrollTop:m,styleCache:this._styleCache,verticalOffsetAdjustment:S,visibleColumnIndices:w,visibleRowIndices:b}),this._columnStartIndex=E,this._columnStopIndex=T,this._rowStartIndex=k,this._rowStopIndex=O}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&z(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=j(this._debounceScrollEndedCallback,e)}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex&&"number"==typeof this._deferredInvalidateRowIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,r=e.scrollTop,i=e.totalColumnsWidth,o=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,r=e.scrollTop,a=t.props,s=a.height;(0,a.onScroll)({clientHeight:s,clientWidth:a.width,scrollHeight:o,scrollLeft:n,scrollTop:r,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:r}})}},{key:"_isScrolling",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return Object.hasOwnProperty.call(e,"isScrolling")?Boolean(e.isScrolling):Boolean(t.isScrolling)}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var e=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,e({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(e){var n=e.scrollLeft,r=e.scrollTop,i=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:n,scrollTop:r});i&&(i.needToResetStyleCache=!1,this.setState(i))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollLeft(e,n)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=t._getScrollLeftForScrollToColumnStateUpdate(e,n);r&&(r.needToResetStyleCache=!1,this.setState(r))}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollTop(e,n)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,n=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var r=this._rowStartIndex;r<=this._rowStopIndex;r++)for(var i=this._columnStartIndex;i<=this._columnStopIndex;i++){var o="".concat(r,"-").concat(i);this._styleCache[o]=e[o],n&&(this._cellCache[o]=t[o])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=t._getScrollTopForScrollToRowStateUpdate(e,n);r&&(r.needToResetStyleCache=!1,this.setState(r))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var r={};0===e.columnCount&&0!==n.scrollLeft||0===e.rowCount&&0!==n.scrollTop?(r.scrollLeft=0,r.scrollTop=0):(e.scrollLeft!==n.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==n.scrollTop&&e.scrollToRow<0)&&Object.assign(r,t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var i,o,a=n.instanceProps;return r.needToResetStyleCache=!1,e.columnWidth===a.prevColumnWidth&&e.rowHeight===a.prevRowHeight||(r.needToResetStyleCache=!0),a.columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:t._getEstimatedColumnSize(e),cellSizeGetter:t._wrapSizeGetter(e.columnWidth)}),a.rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:t._getEstimatedRowSize(e),cellSizeGetter:t._wrapSizeGetter(e.rowHeight)}),0!==a.prevColumnCount&&0!==a.prevRowCount||(a.prevColumnCount=0,a.prevRowCount=0),e.autoHeight&&!1===e.isScrolling&&!0===a.prevIsScrolling&&Object.assign(r,{isScrolling:!1}),_({cellCount:a.prevColumnCount,cellSize:"number"==typeof a.prevColumnWidth?a.prevColumnWidth:null,computeMetadataCallback:function(){return a.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:"number"==typeof e.columnWidth?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:a.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){i=t._getScrollLeftForScrollToColumnStateUpdate(e,n)}}),_({cellCount:a.prevRowCount,cellSize:"number"==typeof a.prevRowHeight?a.prevRowHeight:null,computeMetadataCallback:function(){return a.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:"number"==typeof e.rowHeight?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:a.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){o=t._getScrollTopForScrollToRowStateUpdate(e,n)}}),a.prevColumnCount=e.columnCount,a.prevColumnWidth=e.columnWidth,a.prevIsScrolling=!0===e.isScrolling,a.prevRowCount=e.rowCount,a.prevRowHeight=e.rowHeight,a.prevScrollToColumn=e.scrollToColumn,a.prevScrollToRow=e.scrollToRow,a.scrollbarSize=e.getScrollbarSize(),void 0===a.scrollbarSize?(a.scrollbarSizeMeasured=!1,a.scrollbarSize=0):a.scrollbarSizeMeasured=!0,r.instanceProps=a,H({},r,{},i,{},o)}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(e){var t=e.prevState,n=e.scrollLeft,r=e.scrollTop,i={scrollPositionChangeReason:U};return"number"==typeof n&&n>=0&&(i.scrollDirectionHorizontal=n>t.scrollLeft?1:-1,i.scrollLeft=n),"number"==typeof r&&r>=0&&(i.scrollDirectionVertical=r>t.scrollTop?1:-1,i.scrollTop=r),"number"==typeof n&&n>=0&&n!==t.scrollLeft||"number"==typeof r&&r>=0&&r!==t.scrollTop?i:{}}},{key:"_wrapSizeGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var n=e.columnCount,r=e.height,i=e.scrollToAlignment,o=e.scrollToColumn,a=e.width,s=t.scrollLeft,l=t.instanceProps;if(n>0){var u=n-1,c=o<0?u:Math.min(u,o),d=l.rowSizeAndPositionManager.getTotalSize(),f=l.scrollbarSizeMeasured&&d>r?l.scrollbarSize:0;return l.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:i,containerSize:a-f,currentOffset:s,targetIndex:c})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,n){var r=n.scrollLeft,i=t._getCalculatedScrollLeft(e,n);return"number"==typeof i&&i>=0&&r!==i?t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:i,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var n=e.height,r=e.rowCount,i=e.scrollToAlignment,o=e.scrollToRow,a=e.width,s=t.scrollTop,l=t.instanceProps;if(r>0){var u=r-1,c=o<0?u:Math.min(u,o),d=l.columnSizeAndPositionManager.getTotalSize(),f=l.scrollbarSizeMeasured&&d>a?l.scrollbarSize:0;return l.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:i,containerSize:n-f,currentOffset:s,targetIndex:c})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,n){var r=n.scrollTop,i=t._getCalculatedScrollTop(e,n);return"number"==typeof i&&i>=0&&r!==i?t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:-1,scrollTop:i}):{}}}]),t}(h.PureComponent),f(M,"propTypes",null),N);f(V,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:O,containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:A,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:T,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),v(V);const G=V;function $(e){var t=e.cellCount,n=e.overscanCellsCount,r=e.scrollDirection,i=e.startIndex,o=e.stopIndex;return n=Math.max(1,n),1===r?{overscanStartIndex:Math.max(0,i-1),overscanStopIndex:Math.min(t-1,o+n)}:{overscanStartIndex:Math.max(0,i-n),overscanStopIndex:Math.min(t-1,o+1)}}var q,Y;function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Z=(Y=q=function(e){function t(){var e,n;r(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return f(s(n=l(this,(e=u(t)).call.apply(e,[this].concat(o)))),"state",{scrollToColumn:0,scrollToRow:0,instanceProps:{prevScrollToColumn:0,prevScrollToRow:0}}),f(s(n),"_columnStartIndex",0),f(s(n),"_columnStopIndex",0),f(s(n),"_rowStartIndex",0),f(s(n),"_rowStopIndex",0),f(s(n),"_onKeyDown",(function(e){var t=n.props,r=t.columnCount,i=t.disabled,o=t.mode,a=t.rowCount;if(!i){var s=n._getScrollState(),l=s.scrollToColumn,u=s.scrollToRow,c=n._getScrollState(),d=c.scrollToColumn,f=c.scrollToRow;switch(e.key){case"ArrowDown":f="cells"===o?Math.min(f+1,a-1):Math.min(n._rowStopIndex+1,a-1);break;case"ArrowLeft":d="cells"===o?Math.max(d-1,0):Math.max(n._columnStartIndex-1,0);break;case"ArrowRight":d="cells"===o?Math.min(d+1,r-1):Math.min(n._columnStopIndex+1,r-1);break;case"ArrowUp":f="cells"===o?Math.max(f-1,0):Math.max(n._rowStartIndex-1,0)}d===l&&f===u||(e.preventDefault(),n._updateScrollState({scrollToColumn:d,scrollToRow:f}))}})),f(s(n),"_onSectionRendered",(function(e){var t=e.columnStartIndex,r=e.columnStopIndex,i=e.rowStartIndex,o=e.rowStopIndex;n._columnStartIndex=t,n._columnStopIndex=r,n._rowStartIndex=i,n._rowStopIndex=o})),n}return d(t,e),o(t,[{key:"setScrollIndexes",value:function(e){var t=e.scrollToColumn,n=e.scrollToRow;this.setState({scrollToRow:n,scrollToColumn:t})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.children,r=this._getScrollState(),i=r.scrollToColumn,o=r.scrollToRow;return h.createElement("div",{className:t,onKeyDown:this._onKeyDown},n({onSectionRendered:this._onSectionRendered,scrollToColumn:i,scrollToRow:o}))}},{key:"_getScrollState",value:function(){return this.props.isControlled?this.props:this.state}},{key:"_updateScrollState",value:function(e){var t=e.scrollToColumn,n=e.scrollToRow,r=this.props,i=r.isControlled,o=r.onScrollToChange;"function"==typeof o&&o({scrollToColumn:t,scrollToRow:n}),i||this.setState({scrollToColumn:t,scrollToRow:n})}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.isControlled?{}:e.scrollToColumn!==t.instanceProps.prevScrollToColumn||e.scrollToRow!==t.instanceProps.prevScrollToRow?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(n,!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{scrollToColumn:e.scrollToColumn,scrollToRow:e.scrollToRow,instanceProps:{prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow}}):{}}}]),t}(h.PureComponent),f(q,"propTypes",null),Y);f(Z,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0}),v(Z);const J=Z;function Q(e,t){var r,i=void 0!==(r=void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:n.g).document&&r.document.attachEvent;if(!i){var o=function(){var e=r.requestAnimationFrame||r.mozRequestAnimationFrame||r.webkitRequestAnimationFrame||function(e){return r.setTimeout(e,20)};return function(t){return e(t)}}(),a=function(){var e=r.cancelAnimationFrame||r.mozCancelAnimationFrame||r.webkitCancelAnimationFrame||r.clearTimeout;return function(t){return e(t)}}(),s=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},l=function(e){if(!(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;s(this),this.__resizeRAF__&&a(this.__resizeRAF__),this.__resizeRAF__=o((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}},u=!1,c="",d="animationstart",f="Webkit Moz O ms".split(" "),h="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p=r.document.createElement("fakeelement");if(void 0!==p.style.animationName&&(u=!0),!1===u)for(var g=0;g<f.length;g++)if(void 0!==p.style[f[g]+"AnimationName"]){c="-"+f[g].toLowerCase()+"-",d=h[g],u=!0;break}var m="resizeanim",v="@"+c+"keyframes "+m+" { from { opacity: 0; } to { opacity: 0; } } ",y=c+"animation: 1ms "+m+"; "}return{addResizeListener:function(t,n){if(i)t.attachEvent("onresize",n);else{if(!t.__resizeTriggers__){var o=t.ownerDocument,a=r.getComputedStyle(t);a&&"static"==a.position&&(t.style.position="relative"),function(t){if(!t.getElementById("detectElementResize")){var n=(v||"")+".resize-triggers { "+(y||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=t.head||t.getElementsByTagName("head")[0],i=t.createElement("style");i.id="detectElementResize",i.type="text/css",null!=e&&i.setAttribute("nonce",e),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(t.createTextNode(n)),r.appendChild(i)}}(o),t.__resizeLast__={},t.__resizeListeners__=[],(t.__resizeTriggers__=o.createElement("div")).className="resize-triggers";var u='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>';if(window.trustedTypes){var c=trustedTypes.createPolicy("react-virtualized-auto-sizer",{createHTML:function(){return u}});t.__resizeTriggers__.innerHTML=c.createHTML("")}else t.__resizeTriggers__.innerHTML=u;t.appendChild(t.__resizeTriggers__),s(t),t.addEventListener("scroll",l,!0),d&&(t.__resizeTriggers__.__animationListener__=function(e){e.animationName==m&&s(t)},t.__resizeTriggers__.addEventListener(d,t.__resizeTriggers__.__animationListener__))}t.__resizeListeners__.push(n)}},removeResizeListener:function(e,t){if(i)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",l,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(d,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}var X,ee;function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(n,!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var re=(ee=X=function(e){function t(){var e,n;r(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return f(s(n=l(this,(e=u(t)).call.apply(e,[this].concat(o)))),"state",{height:n.props.defaultHeight||0,width:n.props.defaultWidth||0}),f(s(n),"_parentNode",void 0),f(s(n),"_autoSizer",void 0),f(s(n),"_window",void 0),f(s(n),"_detectElementResize",void 0),f(s(n),"_onResize",(function(){var e=n.props,t=e.disableHeight,r=e.disableWidth,i=e.onResize;if(n._parentNode){var o=n._parentNode.offsetHeight||0,a=n._parentNode.offsetWidth||0,s=(n._window||window).getComputedStyle(n._parentNode)||{},l=parseInt(s.paddingLeft,10)||0,u=parseInt(s.paddingRight,10)||0,c=parseInt(s.paddingTop,10)||0,d=parseInt(s.paddingBottom,10)||0,f=o-c-d,h=a-l-u;(!t&&n.state.height!==f||!r&&n.state.width!==h)&&(n.setState({height:o-c-d,width:a-l-u}),i({height:o,width:a}))}})),f(s(n),"_setRef",(function(e){n._autoSizer=e})),n}return d(t,e),o(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._window=this._autoSizer.parentNode.ownerDocument.defaultView,this._detectElementResize=Q(e,this._window),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.disableHeight,i=e.disableWidth,o=e.style,a=this.state,s=a.height,l=a.width,u={overflow:"visible"},c={};return r||(u.height=0,c.height=s),i||(u.width=0,c.width=l),h.createElement("div",{className:n,ref:this._setRef,style:ne({},u,{},o)},t(c))}}]),t}(h.Component),f(X,"propTypes",null),ee);f(re,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});var ie,oe,ae=n(73961),se=(oe=ie=function(e){function t(){var e,n;r(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return f(s(n=l(this,(e=u(t)).call.apply(e,[this].concat(o)))),"_child",void 0),f(s(n),"_measure",(function(){var e=n.props,t=e.cache,r=e.columnIndex,i=void 0===r?0:r,o=e.parent,a=e.rowIndex,s=void 0===a?n.props.index||0:a,l=n._getCellMeasurements(),u=l.height,c=l.width;u===t.getHeight(s,i)&&c===t.getWidth(s,i)||(t.set(s,i,c,u),o&&"function"==typeof o.recomputeGridSize&&o.recomputeGridSize({columnIndex:i,rowIndex:s}))})),f(s(n),"_registerChild",(function(e){!e||e instanceof Element||console.warn("CellMeasurer registerChild expects to be passed Element or null"),n._child=e,e&&n._maybeMeasureCell()})),n}return d(t,e),o(t,[{key:"componentDidMount",value:function(){this._maybeMeasureCell()}},{key:"componentDidUpdate",value:function(){this._maybeMeasureCell()}},{key:"render",value:function(){var e=this.props.children;return"function"==typeof e?e({measure:this._measure,registerChild:this._registerChild}):e}},{key:"_getCellMeasurements",value:function(){var e=this.props.cache,t=this._child||(0,ae.findDOMNode)(this);if(t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){var n=t.style.width,r=t.style.height;e.hasFixedWidth()||(t.style.width="auto"),e.hasFixedHeight()||(t.style.height="auto");var i=Math.ceil(t.offsetHeight),o=Math.ceil(t.offsetWidth);return n&&(t.style.width=n),r&&(t.style.height=r),{height:i,width:o}}return{height:0,width:0}}},{key:"_maybeMeasureCell",value:function(){var e=this.props,t=e.cache,n=e.columnIndex,r=void 0===n?0:n,i=e.parent,o=e.rowIndex,a=void 0===o?this.props.index||0:o;if(!t.has(a,r)){var s=this._getCellMeasurements(),l=s.height,u=s.width;t.set(a,r,u,l),i&&"function"==typeof i.invalidateCellSizeAfterRender&&i.invalidateCellSizeAfterRender({columnIndex:r,rowIndex:a})}}}]),t}(h.PureComponent),f(ie,"propTypes",null),oe);f(se,"__internalCellMeasurerFlag",!1);var le=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,e),f(this,"_cellHeightCache",{}),f(this,"_cellWidthCache",{}),f(this,"_columnWidthCache",{}),f(this,"_rowHeightCache",{}),f(this,"_defaultHeight",void 0),f(this,"_defaultWidth",void 0),f(this,"_minHeight",void 0),f(this,"_minWidth",void 0),f(this,"_keyMapper",void 0),f(this,"_hasFixedHeight",void 0),f(this,"_hasFixedWidth",void 0),f(this,"_columnCount",0),f(this,"_rowCount",0),f(this,"columnWidth",(function(e){var n=e.index,r=t._keyMapper(0,n);return void 0!==t._columnWidthCache[r]?t._columnWidthCache[r]:t._defaultWidth})),f(this,"rowHeight",(function(e){var n=e.index,r=t._keyMapper(n,0);return void 0!==t._rowHeightCache[r]?t._rowHeightCache[r]:t._defaultHeight}));var i=n.defaultHeight,o=n.defaultWidth,a=n.fixedHeight,s=n.fixedWidth,l=n.keyMapper,u=n.minHeight,c=n.minWidth;this._hasFixedHeight=!0===a,this._hasFixedWidth=!0===s,this._minHeight=u||0,this._minWidth=c||0,this._keyMapper=l||ue,this._defaultHeight=Math.max(this._minHeight,"number"==typeof i?i:30),this._defaultWidth=Math.max(this._minWidth,"number"==typeof o?o:100)}return o(e,[{key:"clear",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this._keyMapper(e,t);delete this._cellHeightCache[n],delete this._cellWidthCache[n],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={},this._rowCount=0,this._columnCount=0}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._hasFixedHeight)return this._defaultHeight;var n=this._keyMapper(e,t);return void 0!==this._cellHeightCache[n]?Math.max(this._minHeight,this._cellHeightCache[n]):this._defaultHeight}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._hasFixedWidth)return this._defaultWidth;var n=this._keyMapper(e,t);return void 0!==this._cellWidthCache[n]?Math.max(this._minWidth,this._cellWidthCache[n]):this._defaultWidth}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this._keyMapper(e,t);return void 0!==this._cellHeightCache[n]}},{key:"set",value:function(e,t,n,r){var i=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[i]=r,this._cellWidthCache[i]=n,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){if(!this._hasFixedWidth){for(var n=0,r=0;r<this._rowCount;r++)n=Math.max(n,this.getWidth(r,t));var i=this._keyMapper(0,t);this._columnWidthCache[i]=n}if(!this._hasFixedHeight){for(var o=0,a=0;a<this._columnCount;a++)o=Math.max(o,this.getHeight(e,a));var s=this._keyMapper(e,0);this._rowHeightCache[s]=o}}},{key:"defaultHeight",get:function(){return this._defaultHeight}},{key:"defaultWidth",get:function(){return this._defaultWidth}}]),e}();function ue(e,t){return"".concat(e,"-").concat(t)}function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function de(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(n,!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fe="observed",he="requested",pe=function(e){function t(){var e,n;r(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return f(s(n=l(this,(e=u(t)).call.apply(e,[this].concat(o)))),"state",{isScrolling:!1,scrollLeft:0,scrollTop:0}),f(s(n),"_calculateSizeAndPositionDataOnNextUpdate",!1),f(s(n),"_onSectionRenderedMemoizer",E()),f(s(n),"_onScrollMemoizer",E(!1)),f(s(n),"_invokeOnSectionRenderedHelper",(function(){var e=n.props,t=e.cellLayoutManager,r=e.onSectionRendered;n._onSectionRenderedMemoizer({callback:r,indices:{indices:t.getLastRenderedIndices()}})})),f(s(n),"_setScrollingContainerRef",(function(e){n._scrollingContainer=e})),f(s(n),"_updateScrollPositionForScrollToCell",(function(){var e=n.props,t=e.cellLayoutManager,r=e.height,i=e.scrollToAlignment,o=e.scrollToCell,a=e.width,s=n.state,l=s.scrollLeft,u=s.scrollTop;if(o>=0){var c=t.getScrollPositionForCell({align:i,cellIndex:o,height:r,scrollLeft:l,scrollTop:u,width:a});c.scrollLeft===l&&c.scrollTop===u||n._setScrollPosition(c)}})),f(s(n),"_onScroll",(function(e){if(e.target===n._scrollingContainer){n._enablePointerEventsAfterDelay();var t=n.props,r=t.cellLayoutManager,i=t.height,o=t.isScrollingChange,a=t.width,s=n._scrollbarSize,l=r.getTotalSize(),u=l.height,c=l.width,d=Math.max(0,Math.min(c-a+s,e.target.scrollLeft)),f=Math.max(0,Math.min(u-i+s,e.target.scrollTop));if(n.state.scrollLeft!==d||n.state.scrollTop!==f){var h=e.cancelable?fe:he;n.state.isScrolling||o(!0),n.setState({isScrolling:!0,scrollLeft:d,scrollPositionChangeReason:h,scrollTop:f})}n._invokeOnScrollMemoizer({scrollLeft:d,scrollTop:f,totalWidth:c,totalHeight:u})}})),n._scrollbarSize=A(),void 0===n._scrollbarSize?(n._scrollbarSizeMeasured=!1,n._scrollbarSize=0):n._scrollbarSizeMeasured=!0,n}return d(t,e),o(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.scrollLeft,r=e.scrollToCell,i=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=A(),this._scrollbarSizeMeasured=!0,this.setState({})),r>=0?this._updateScrollPositionForScrollToCell():(n>=0||i>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:i}),this._invokeOnSectionRenderedHelper();var o=t.getTotalSize(),a=o.height,s=o.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:i||0,totalHeight:a,totalWidth:s})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.height,i=n.scrollToAlignment,o=n.scrollToCell,a=n.width,s=this.state,l=s.scrollLeft,u=s.scrollPositionChangeReason,c=s.scrollTop;u===he&&(l>=0&&l!==t.scrollLeft&&l!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=l),c>=0&&c!==t.scrollTop&&c!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=c)),r===e.height&&i===e.scrollToAlignment&&o===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,n=e.cellCount,r=e.cellLayoutManager,i=e.className,o=e.height,a=e.horizontalOverscanSize,s=e.id,l=e.noContentRenderer,u=e.style,c=e.verticalOverscanSize,d=e.width,f=this.state,p=f.isScrolling,g=f.scrollLeft,m=f.scrollTop;(this._lastRenderedCellCount!==n||this._lastRenderedCellLayoutManager!==r||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=n,this._lastRenderedCellLayoutManager=r,this._calculateSizeAndPositionDataOnNextUpdate=!1,r.calculateSizeAndPositionData());var v=r.getTotalSize(),y=v.height,w=v.width,_=Math.max(0,g-a),S=Math.max(0,m-c),C=Math.min(w,g+d+a),x=Math.min(y,m+o+c),E=o>0&&d>0?r.cellRenderers({height:x-S,isScrolling:p,width:C-_,x:_,y:S}):[],T={boxSizing:"border-box",direction:"ltr",height:t?"auto":o,position:"relative",WebkitOverflowScrolling:"touch",width:d,willChange:"transform"},k=y>o?this._scrollbarSize:0,O=w>d?this._scrollbarSize:0;return T.overflowX=w+k<=d?"hidden":"auto",T.overflowY=y+O<=o?"hidden":"auto",h.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:b("ReactVirtualized__Collection",i),id:s,onScroll:this._onScroll,role:"grid",style:de({},T,{},u),tabIndex:0},n>0&&h.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:y,maxHeight:y,maxWidth:w,overflow:"hidden",pointerEvents:p?"none":"",width:w}},E),0===n&&l())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout((function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})}),150)}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,r=e.scrollTop,i=e.totalHeight,o=e.totalWidth;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,r=e.scrollTop,a=t.props,s=a.height;(0,a.onScroll)({clientHeight:s,clientWidth:a.width,scrollHeight:i,scrollLeft:n,scrollTop:r,scrollWidth:o})},indices:{scrollLeft:n,scrollTop:r}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,r={scrollPositionChangeReason:he};t>=0&&(r.scrollLeft=t),n>=0&&(r.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(r)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 0!==e.cellCount||0===t.scrollLeft&&0===t.scrollTop?e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop?e.scrollTop:t.scrollTop,scrollPositionChangeReason:he}:null:{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:he}}}]),t}(h.PureComponent);f(pe,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0}),pe.propTypes={},v(pe);const ge=pe;var me=function(){function e(t){var n=t.height,i=t.width,o=t.x,a=t.y;r(this,e),this.height=n,this.width=i,this.x=o,this.y=a,this._indexMap={},this._indices=[]}return o(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}]),e}(),ve=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;r(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return o(e,[{key:"getCellIndices",value:function(e){var t=e.height,n=e.width,r=e.x,i=e.y,o={};return this.getSections({height:t,width:n,x:r,y:i}).forEach((function(e){return e.getCellIndices().forEach((function(e){o[e]=e}))})),Object.keys(o).map((function(e){return o[e]}))}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,n=e.width,r=e.x,i=e.y,o=Math.floor(r/this._sectionSize),a=Math.floor((r+n-1)/this._sectionSize),s=Math.floor(i/this._sectionSize),l=Math.floor((i+t-1)/this._sectionSize),u=[],c=o;c<=a;c++)for(var d=s;d<=l;d++){var f="".concat(c,".").concat(d);this._sections[f]||(this._sections[f]=new me({height:this._sectionSize,width:this._sectionSize,x:c*this._sectionSize,y:d*this._sectionSize})),u.push(this._sections[f])}return u}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var e=this;return Object.keys(this._sections).map((function(t){return e._sections[t].toString()}))}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,n=e.index;this._cellMetadata[n]=t,this.getSections(t).forEach((function(e){return e.addCellIndex({index:n})}))}}]),e}();function ye(e){var t=e.align,n=void 0===t?"auto":t,r=e.cellOffset,i=e.cellSize,o=e.containerSize,a=e.currentOffset,s=r,l=s-o+i;switch(n){case"start":return s;case"end":return l;case"center":return s-(o-i)/2;default:return Math.max(l,Math.min(s,a))}}var we=function(e){function t(e,n){var i;return r(this,t),(i=l(this,u(t).call(this,e,n)))._cellMetadata=[],i._lastRenderedCellIndices=[],i._cellCache=[],i._isScrollingChange=i._isScrollingChange.bind(s(i)),i._setCollectionViewRef=i._setCollectionViewRef.bind(s(i)),i}return d(t,e),o(t,[{key:"forceUpdate",value:function(){void 0!==this._collectionView&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var e=y({},this.props);return h.createElement(ge,y({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},e))}},{key:"calculateSizeAndPositionData",value:function(){var e=this.props,t=function(e){for(var t=e.cellCount,n=e.cellSizeAndPositionGetter,r=[],i=new ve(e.sectionSize),o=0,a=0,s=0;s<t;s++){var l=n({index:s});if(null==l.height||isNaN(l.height)||null==l.width||isNaN(l.width)||null==l.x||isNaN(l.x)||null==l.y||isNaN(l.y))throw Error("Invalid metadata returned for cell ".concat(s,":\n x:").concat(l.x,", y:").concat(l.y,", width:").concat(l.width,", height:").concat(l.height));o=Math.max(o,l.y+l.height),a=Math.max(a,l.x+l.width),r[s]=l,i.registerCell({cellMetadatum:l,index:s})}return{cellMetadata:r,height:o,sectionManager:i,width:a}}({cellCount:e.cellCount,cellSizeAndPositionGetter:e.cellSizeAndPositionGetter,sectionSize:e.sectionSize});this._cellMetadata=t.cellMetadata,this._sectionManager=t.sectionManager,this._height=t.height,this._width=t.width}},{key:"getLastRenderedIndices",value:function(){return this._lastRenderedCellIndices}},{key:"getScrollPositionForCell",value:function(e){var t=e.align,n=e.cellIndex,r=e.height,i=e.scrollLeft,o=e.scrollTop,a=e.width,s=this.props.cellCount;if(n>=0&&n<s){var l=this._cellMetadata[n];i=ye({align:t,cellOffset:l.x,cellSize:l.width,containerSize:a,currentOffset:i,targetIndex:n}),o=ye({align:t,cellOffset:l.y,cellSize:l.height,containerSize:r,currentOffset:o,targetIndex:n})}return{scrollLeft:i,scrollTop:o}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(e){var t=this,n=e.height,r=e.isScrolling,i=e.width,o=e.x,a=e.y,s=this.props,l=s.cellGroupRenderer,u=s.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:n,width:i,x:o,y:a}),l({cellCache:this._cellCache,cellRenderer:u,cellSizeAndPositionGetter:function(e){var n=e.index;return t._sectionManager.getCellMetadata({index:n})},indices:this._lastRenderedCellIndices,isScrolling:r})}},{key:"_isScrollingChange",value:function(e){e||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(e){this._collectionView=e}}]),t}(h.PureComponent);f(we,"defaultProps",{"aria-label":"grid",cellGroupRenderer:function(e){var t=e.cellCache,n=e.cellRenderer,r=e.cellSizeAndPositionGetter,i=e.indices,o=e.isScrolling;return i.map((function(e){var i=r({index:e}),a={index:e,isScrolling:o,key:e,style:{height:i.height,left:i.x,position:"absolute",top:i.y,width:i.width}};return o?(e in t||(t[e]=n(a)),t[e]):n(a)})).filter((function(e){return!!e}))}}),we.propTypes={};var be=function(e){function t(e,n){var i;return r(this,t),(i=l(this,u(t).call(this,e,n)))._registerChild=i._registerChild.bind(s(i)),i}return d(t,e),o(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.columnMaxWidth,r=t.columnMinWidth,i=t.columnCount,o=t.width;n===e.columnMaxWidth&&r===e.columnMinWidth&&i===e.columnCount&&o===e.width||this._registeredChild&&this._registeredChild.recomputeGridSize()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.columnMaxWidth,r=e.columnMinWidth,i=e.columnCount,o=e.width,a=r||1,s=n?Math.min(n,o):o,l=o/i;return l=Math.max(a,l),l=Math.min(s,l),l=Math.floor(l),t({adjustedWidth:Math.min(o,l*i),columnWidth:l,getColumnWidth:function(){return l},registerChild:this._registerChild})}},{key:"_registerChild",value:function(e){if(e&&"function"!=typeof e.recomputeGridSize)throw Error("Unexpected child type registered; only Grid/MultiGrid children are supported.");this._registeredChild=e,this._registeredChild&&this._registeredChild.recomputeGridSize()}}]),t}(h.PureComponent);function _e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Se(e,t){if(e){if("string"==typeof e)return _e(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_e(e,t):void 0}}be.propTypes={};var Ce=function(e){function t(e,n){var i;return r(this,t),(i=l(this,u(t).call(this,e,n)))._loadMoreRowsMemoizer=E(),i._onRowsRendered=i._onRowsRendered.bind(s(i)),i._registerChild=i._registerChild.bind(s(i)),i}return d(t,e),o(t,[{key:"resetLoadMoreRowsCache",value:function(e){this._loadMoreRowsMemoizer=E(),e&&this._doStuff(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,n=this.props.loadMoreRows;e.forEach((function(e){var r=n(e);r&&r.then((function(){var n;(n={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex}).startIndex>n.lastRenderedStopIndex||n.stopIndex<n.lastRenderedStartIndex||t._registeredChild&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;n?n.call(e,t):e.forceUpdate()}(t._registeredChild,t._lastRenderedStartIndex)}))}))}},{key:"_onRowsRendered",value:function(e){var t=e.startIndex,n=e.stopIndex;this._lastRenderedStartIndex=t,this._lastRenderedStopIndex=n,this._doStuff(t,n)}},{key:"_doStuff",value:function(e,t){var n,r,i=this,o=this.props,a=o.isRowLoaded,s=o.minimumBatchSize,l=o.rowCount,u=o.threshold,c=function(e){for(var t=e.isRowLoaded,n=e.minimumBatchSize,r=e.rowCount,i=e.stopIndex,o=[],a=null,s=null,l=e.startIndex;l<=i;l++)t({index:l})?null!==s&&(o.push({startIndex:a,stopIndex:s}),a=s=null):(s=l,null===a&&(a=l));if(null!==s){for(var u=Math.min(Math.max(s,a+n-1),r-1),c=s+1;c<=u&&!t({index:c});c++)s=c;o.push({startIndex:a,stopIndex:s})}if(o.length)for(var d=o[0];d.stopIndex-d.startIndex+1<n&&d.startIndex>0;){var f=d.startIndex-1;if(t({index:f}))break;d.startIndex=f}return o}({isRowLoaded:a,minimumBatchSize:s,rowCount:l,startIndex:Math.max(0,e-u),stopIndex:Math.min(l-1,t+u)}),d=(n=[]).concat.apply(n,function(e){if(Array.isArray(e))return _e(e)}(r=c.map((function(e){return[e.startIndex,e.stopIndex]})))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||Se(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());this._loadMoreRowsMemoizer({callback:function(){i._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:d}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(h.PureComponent);f(Ce,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),Ce.propTypes={};var xe,Ee,Te=(Ee=xe=function(e){function t(){var e,n;r(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return f(s(n=l(this,(e=u(t)).call.apply(e,[this].concat(o)))),"Grid",void 0),f(s(n),"_cellRenderer",(function(e){var t=e.parent,r=e.rowIndex,i=e.style,o=e.isScrolling,a=e.isVisible,s=e.key,l=n.props.rowRenderer,u=Object.getOwnPropertyDescriptor(i,"width");return u&&u.writable&&(i.width="100%"),l({index:r,style:i,isScrolling:o,isVisible:a,key:s,parent:t})})),f(s(n),"_setRef",(function(e){n.Grid=e})),f(s(n),"_onScroll",(function(e){var t=e.clientHeight,r=e.scrollHeight,i=e.scrollTop;(0,n.props.onScroll)({clientHeight:t,scrollHeight:r,scrollTop:i})})),f(s(n),"_onSectionRendered",(function(e){var t=e.rowOverscanStartIndex,r=e.rowOverscanStopIndex,i=e.rowStartIndex,o=e.rowStopIndex;(0,n.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:r,startIndex:i,stopIndex:o})})),n}return d(t,e),o(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,n=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:n,columnIndex:0}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:n,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,i=void 0===r?0:r;this.Grid&&this.Grid.recomputeGridSize({rowIndex:i,columnIndex:n})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e,columnIndex:0})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,r=e.scrollToIndex,i=e.width,o=b("ReactVirtualized__List",t);return h.createElement(G,y({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:o,columnWidth:i,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:r}))}}]),t}(h.PureComponent),f(xe,"propTypes",null),Ee);f(Te,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:$,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});const ke=function(e,t,n,r,i){return"function"==typeof n?function(e,t,n,r,i){for(var o=n+1;t<=n;){var a=t+n>>>1;i(e[a],r)>=0?(o=a,n=a-1):t=a+1}return o}(e,void 0===r?0:0|r,void 0===i?e.length-1:0|i,t,n):function(e,t,n,r){for(var i=n+1;t<=n;){var o=t+n>>>1;e[o]>=r?(i=o,n=o-1):t=o+1}return i}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)};function Oe(e,t,n,r,i){this.mid=e,this.left=t,this.right=n,this.leftPoints=r,this.rightPoints=i,this.count=(t?t.count:0)+(n?n.count:0)+r.length}var Le=Oe.prototype;function Re(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function Ie(e,t){var n=je(t);e.mid=n.mid,e.left=n.left,e.right=n.right,e.leftPoints=n.leftPoints,e.rightPoints=n.rightPoints,e.count=n.count}function Ae(e,t){var n=e.intervals([]);n.push(t),Ie(e,n)}function Me(e,t){var n=e.intervals([]),r=n.indexOf(t);return r<0?0:(n.splice(r,1),Ie(e,n),1)}function Ne(e,t,n){for(var r=0;r<e.length&&e[r][0]<=t;++r){var i=n(e[r]);if(i)return i}}function Pe(e,t,n){for(var r=e.length-1;r>=0&&e[r][1]>=t;--r){var i=n(e[r]);if(i)return i}}function De(e,t){for(var n=0;n<e.length;++n){var r=t(e[n]);if(r)return r}}function Fe(e,t){return e-t}function We(e,t){return e[0]-t[0]||e[1]-t[1]}function ze(e,t){return e[1]-t[1]||e[0]-t[0]}function je(e){if(0===e.length)return null;for(var t=[],n=0;n<e.length;++n)t.push(e[n][0],e[n][1]);t.sort(Fe);var r=t[t.length>>1],i=[],o=[],a=[];for(n=0;n<e.length;++n){var s=e[n];s[1]<r?i.push(s):r<s[0]?o.push(s):a.push(s)}var l=a,u=a.slice();return l.sort(We),u.sort(ze),new Oe(r,je(i),je(o),l,u)}function Be(e){this.root=e}Le.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e},Le.insert=function(e){var t=this.count-this.leftPoints.length;if(this.count+=1,e[1]<this.mid)this.left?4*(this.left.count+1)>3*(t+1)?Ae(this,e):this.left.insert(e):this.left=je([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?Ae(this,e):this.right.insert(e):this.right=je([e]);else{var n=ke(this.leftPoints,e,We),r=ke(this.rightPoints,e,ze);this.leftPoints.splice(n,0,e),this.rightPoints.splice(r,0,e)}},Le.remove=function(e){var t=this.count-this.leftPoints;if(e[1]<this.mid)return this.left?4*(this.right?this.right.count:0)>3*(t-1)?Me(this,e):2===(o=this.left.remove(e))?(this.left=null,this.count-=1,1):(1===o&&(this.count-=1),o):0;if(e[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(t-1)?Me(this,e):2===(o=this.right.remove(e))?(this.right=null,this.count-=1,1):(1===o&&(this.count-=1),o):0;if(1===this.count)return this.leftPoints[0]===e?2:0;if(1===this.leftPoints.length&&this.leftPoints[0]===e){if(this.left&&this.right){for(var n=this,r=this.left;r.right;)n=r,r=r.right;if(n===this)r.right=this.right;else{var i=this.left,o=this.right;n.count-=r.count,n.right=r.left,r.left=i,r.right=o}Re(this,r),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?Re(this,this.left):Re(this,this.right);return 1}for(i=ke(this.leftPoints,e,We);i<this.leftPoints.length&&this.leftPoints[i][0]===e[0];++i)if(this.leftPoints[i]===e)for(this.count-=1,this.leftPoints.splice(i,1),o=ke(this.rightPoints,e,ze);o<this.rightPoints.length&&this.rightPoints[o][1]===e[1];++o)if(this.rightPoints[o]===e)return this.rightPoints.splice(o,1),1;return 0},Le.queryPoint=function(e,t){return e<this.mid?this.left&&(n=this.left.queryPoint(e,t))?n:Ne(this.leftPoints,e,t):e>this.mid?this.right&&(n=this.right.queryPoint(e,t))?n:Pe(this.rightPoints,e,t):De(this.leftPoints,t);var n},Le.queryInterval=function(e,t,n){var r;return e<this.mid&&this.left&&(r=this.left.queryInterval(e,t,n))||t>this.mid&&this.right&&(r=this.right.queryInterval(e,t,n))?r:t<this.mid?Ne(this.leftPoints,t,n):e>this.mid?Pe(this.rightPoints,e,n):De(this.leftPoints,n)};var He=Be.prototype;He.insert=function(e){this.root?this.root.insert(e):this.root=new Oe(e[0],null,null,[e],[e])},He.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),0!==t}return!1},He.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},He.queryInterval=function(e,t,n){if(e<=t&&this.root)return this.root.queryInterval(e,t,n)},Object.defineProperty(He,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(He,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var Ue,Ve,Ge=function(){function e(){r(this,e),f(this,"_columnSizeMap",{}),f(this,"_intervalTree",new Be(null)),f(this,"_leftMap",{})}return o(e,[{key:"estimateTotalHeight",value:function(e,t,n){var r=e-this.count;return this.tallestColumnSize+Math.ceil(r/t)*n}},{key:"range",value:function(e,t,n){var r=this;this._intervalTree.queryInterval(e,e+t,(function(e){var t,i,o=(i=3,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(t,i)||Se(t,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=o[0],s=(o[1],o[2]);return n(s,r._leftMap[s],a)}))}},{key:"setPosition",value:function(e,t,n,r){this._intervalTree.insert([n,n+r,e]),this._leftMap[e]=t;var i=this._columnSizeMap,o=i[t];i[t]=void 0===o?n+r:Math.max(o,n+r)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var n in e){var r=e[n];t=0===t?r:Math.min(t,r)}return t}},{key:"tallestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var n in e){var r=e[n];t=Math.max(t,r)}return t}}]),e}();function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$e(n,!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$e(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ye=(Ve=Ue=function(e){function t(){var e,n;r(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return f(s(n=l(this,(e=u(t)).call.apply(e,[this].concat(o)))),"state",{isScrolling:!1,scrollTop:0}),f(s(n),"_debounceResetIsScrollingId",void 0),f(s(n),"_invalidateOnUpdateStartIndex",null),f(s(n),"_invalidateOnUpdateStopIndex",null),f(s(n),"_positionCache",new Ge),f(s(n),"_startIndex",null),f(s(n),"_startIndexMemoized",null),f(s(n),"_stopIndex",null),f(s(n),"_stopIndexMemoized",null),f(s(n),"_debounceResetIsScrollingCallback",(function(){n.setState({isScrolling:!1})})),f(s(n),"_setScrollingContainerRef",(function(e){n._scrollingContainer=e})),f(s(n),"_onScroll",(function(e){var t=n.props.height,r=e.currentTarget.scrollTop,i=Math.min(Math.max(0,n._getEstimatedTotalHeight()-t),r);r===i&&(n._debounceResetIsScrolling(),n.state.scrollTop!==i&&n.setState({isScrolling:!0,scrollTop:i}))})),n}return d(t,e),o(t,[{key:"clearCellPositions",value:function(){this._positionCache=new Ge,this.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.rowIndex;null===this._invalidateOnUpdateStartIndex?(this._invalidateOnUpdateStartIndex=t,this._invalidateOnUpdateStopIndex=t):(this._invalidateOnUpdateStartIndex=Math.min(this._invalidateOnUpdateStartIndex,t),this._invalidateOnUpdateStopIndex=Math.max(this._invalidateOnUpdateStopIndex,t))}},{key:"recomputeCellPositions",value:function(){var e=this._positionCache.count-1;this._positionCache=new Ge,this._populatePositionCache(0,e),this.forceUpdate()}},{key:"componentDidMount",value:function(){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback()}},{key:"componentDidUpdate",value:function(e,t){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback(),this.props.scrollTop!==e.scrollTop&&this._debounceResetIsScrolling()}},{key:"componentWillUnmount",value:function(){this._debounceResetIsScrollingId&&z(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.autoHeight,i=n.cellCount,o=n.cellMeasurerCache,a=n.cellRenderer,s=n.className,l=n.height,u=n.id,c=n.keyMapper,d=n.overscanByPixels,p=n.role,g=n.style,m=n.tabIndex,v=n.width,y=n.rowDirection,w=this.state,_=w.isScrolling,S=w.scrollTop,C=[],x=this._getEstimatedTotalHeight(),E=this._positionCache.shortestColumnSize,T=this._positionCache.count,k=0;if(this._positionCache.range(Math.max(0,S-d),l+2*d,(function(n,r,i){var s;void 0===e?(k=n,e=n):(k=Math.min(k,n),e=Math.max(e,n)),C.push(a({index:n,isScrolling:_,key:c(n),parent:t,style:(s={height:o.getHeight(n)},f(s,"ltr"===y?"left":"right",r),f(s,"position","absolute"),f(s,"top",i),f(s,"width",o.getWidth(n)),s)}))})),E<S+l+d&&T<i)for(var O=Math.min(i-T,Math.ceil((S+l+d-E)/o.defaultHeight*v/o.defaultWidth)),L=T;L<T+O;L++)e=L,C.push(a({index:L,isScrolling:_,key:c(L),parent:this,style:{width:o.getWidth(L)}}));return this._startIndex=k,this._stopIndex=e,h.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:b("ReactVirtualized__Masonry",s),id:u,onScroll:this._onScroll,role:p,style:qe({boxSizing:"border-box",direction:"ltr",height:r?"auto":l,overflowX:"hidden",overflowY:x<l?"hidden":"auto",position:"relative",width:v,WebkitOverflowScrolling:"touch",willChange:"transform"},g),tabIndex:m},h.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:x,maxWidth:"100%",maxHeight:x,overflow:"hidden",pointerEvents:_?"none":"",position:"relative"}},C))}},{key:"_checkInvalidateOnUpdate",value:function(){if("number"==typeof this._invalidateOnUpdateStartIndex){var e=this._invalidateOnUpdateStartIndex,t=this._invalidateOnUpdateStopIndex;this._invalidateOnUpdateStartIndex=null,this._invalidateOnUpdateStopIndex=null,this._populatePositionCache(e,t),this.forceUpdate()}}},{key:"_debounceResetIsScrolling",value:function(){var e=this.props.scrollingResetTimeInterval;this._debounceResetIsScrollingId&&z(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=j(this._debounceResetIsScrollingCallback,e)}},{key:"_getEstimatedTotalHeight",value:function(){var e=this.props,t=e.cellCount,n=e.cellMeasurerCache,r=e.width,i=Math.max(1,Math.floor(r/n.defaultWidth));return this._positionCache.estimateTotalHeight(t,i,n.defaultHeight)}},{key:"_invokeOnScrollCallback",value:function(){var e=this.props,t=e.height,n=e.onScroll,r=this.state.scrollTop;this._onScrollMemoized!==r&&(n({clientHeight:t,scrollHeight:this._getEstimatedTotalHeight(),scrollTop:r}),this._onScrollMemoized=r)}},{key:"_invokeOnCellsRenderedCallback",value:function(){this._startIndexMemoized===this._startIndex&&this._stopIndexMemoized===this._stopIndex||((0,this.props.onCellsRendered)({startIndex:this._startIndex,stopIndex:this._stopIndex}),this._startIndexMemoized=this._startIndex,this._stopIndexMemoized=this._stopIndex)}},{key:"_populatePositionCache",value:function(e,t){for(var n=this.props,r=n.cellMeasurerCache,i=n.cellPositioner,o=e;o<=t;o++){var a=i(o),s=a.left,l=a.top;this._positionCache.setPosition(o,s,l,r.getHeight(o))}}}],[{key:"getDerivedStateFromProps",value:function(e,t){return void 0!==e.scrollTop&&t.scrollTop!==e.scrollTop?{isScrolling:!0,scrollTop:e.scrollTop}:null}}]),t}(h.PureComponent),f(Ue,"propTypes",null),Ve);function Ke(){}f(Ye,"defaultProps",{autoHeight:!1,keyMapper:function(e){return e},onCellsRendered:Ke,onScroll:Ke,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:150,style:{},tabIndex:0,rowDirection:"ltr"}),v(Ye);const Ze=Ye;function Je(e){var t,n=e.cellMeasurerCache,r=e.columnCount,i=e.columnWidth,o=e.spacer,a=void 0===o?0:o;function s(e){for(var r=0,o=1;o<t.length;o++)t[o]<t[r]&&(r=o);var s=r*(i+a),l=t[r]||0;return t[r]=l+n.getHeight(e)+a,{left:s,top:l}}function l(){t=[];for(var e=0;e<r;e++)t[e]=0}return l(),s.reset=function(e){r=e.columnCount,i=e.columnWidth,a=e.spacer,l()},s}var Qe=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,e),f(this,"_cellMeasurerCache",void 0),f(this,"_columnIndexOffset",void 0),f(this,"_rowIndexOffset",void 0),f(this,"columnWidth",(function(e){var n=e.index;t._cellMeasurerCache.columnWidth({index:n+t._columnIndexOffset})})),f(this,"rowHeight",(function(e){var n=e.index;t._cellMeasurerCache.rowHeight({index:n+t._rowIndexOffset})}));var i=n.cellMeasurerCache,o=n.columnIndexOffset,a=void 0===o?0:o,s=n.rowIndexOffset,l=void 0===s?0:s;this._cellMeasurerCache=i,this._columnIndexOffset=a,this._rowIndexOffset=l}return o(e,[{key:"clear",value:function(e,t){this._cellMeasurerCache.clear(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getHeight(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getWidth(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.has(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"set",value:function(e,t,n,r){this._cellMeasurerCache.set(e+this._rowIndexOffset,t+this._columnIndexOffset,n,r)}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}}]),e}();function Xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xe(n,!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xe(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var tt=function(e){function t(e,n){var i;r(this,t),f(s(i=l(this,u(t).call(this,e,n))),"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),f(s(i),"_deferredInvalidateColumnIndex",null),f(s(i),"_deferredInvalidateRowIndex",null),f(s(i),"_bottomLeftGridRef",(function(e){i._bottomLeftGrid=e})),f(s(i),"_bottomRightGridRef",(function(e){i._bottomRightGrid=e})),f(s(i),"_cellRendererBottomLeftGrid",(function(e){var t=e.rowIndex,n=S(e,["rowIndex"]),r=i.props,o=r.cellRenderer,a=r.fixedRowCount;return t===r.rowCount-a?h.createElement("div",{key:n.key,style:et({},n.style,{height:20})}):o(et({},n,{parent:s(i),rowIndex:t+a}))})),f(s(i),"_cellRendererBottomRightGrid",(function(e){var t=e.columnIndex,n=e.rowIndex,r=S(e,["columnIndex","rowIndex"]),o=i.props,a=o.cellRenderer,l=o.fixedColumnCount,u=o.fixedRowCount;return a(et({},r,{columnIndex:t+l,parent:s(i),rowIndex:n+u}))})),f(s(i),"_cellRendererTopRightGrid",(function(e){var t=e.columnIndex,n=S(e,["columnIndex"]),r=i.props,o=r.cellRenderer,a=r.columnCount,l=r.fixedColumnCount;return t===a-l?h.createElement("div",{key:n.key,style:et({},n.style,{width:20})}):o(et({},n,{columnIndex:t+l,parent:s(i)}))})),f(s(i),"_columnWidthRightGrid",(function(e){var t=e.index,n=i.props,r=n.columnCount,o=n.fixedColumnCount,a=n.columnWidth,s=i.state,l=s.scrollbarSize;return s.showHorizontalScrollbar&&t===r-o?l:"function"==typeof a?a({index:t+o}):a})),f(s(i),"_onScroll",(function(e){var t=e.scrollLeft,n=e.scrollTop;i.setState({scrollLeft:t,scrollTop:n});var r=i.props.onScroll;r&&r(e)})),f(s(i),"_onScrollbarPresenceChange",(function(e){var t=e.horizontal,n=e.size,r=e.vertical,o=i.state,a=o.showHorizontalScrollbar,s=o.showVerticalScrollbar;if(t!==a||r!==s){i.setState({scrollbarSize:n,showHorizontalScrollbar:t,showVerticalScrollbar:r});var l=i.props.onScrollbarPresenceChange;"function"==typeof l&&l({horizontal:t,size:n,vertical:r})}})),f(s(i),"_onScrollLeft",(function(e){var t=e.scrollLeft;i._onScroll({scrollLeft:t,scrollTop:i.state.scrollTop})})),f(s(i),"_onScrollTop",(function(e){var t=e.scrollTop;i._onScroll({scrollTop:t,scrollLeft:i.state.scrollLeft})})),f(s(i),"_rowHeightBottomGrid",(function(e){var t=e.index,n=i.props,r=n.fixedRowCount,o=n.rowCount,a=n.rowHeight,s=i.state,l=s.scrollbarSize;return s.showVerticalScrollbar&&t===o-r?l:"function"==typeof a?a({index:t+r}):a})),f(s(i),"_topLeftGridRef",(function(e){i._topLeftGrid=e})),f(s(i),"_topRightGridRef",(function(e){i._topRightGrid=e}));var o=e.deferredMeasurementCache,a=e.fixedColumnCount,c=e.fixedRowCount;return i._maybeCalculateCachedStyles(!0),o&&(i._deferredMeasurementCacheBottomLeftGrid=c>0?new Qe({cellMeasurerCache:o,columnIndexOffset:0,rowIndexOffset:c}):o,i._deferredMeasurementCacheBottomRightGrid=a>0||c>0?new Qe({cellMeasurerCache:o,columnIndexOffset:a,rowIndexOffset:c}):o,i._deferredMeasurementCacheTopRightGrid=a>0?new Qe({cellMeasurerCache:o,columnIndexOffset:a,rowIndexOffset:0}):o),i}return d(t,e),o(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,i=void 0===r?0:r;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,i):i}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,i=void 0===r?0:r,o=this.props,a=o.fixedColumnCount,s=o.fixedRowCount,l=Math.max(0,n-a),u=Math.max(0,i-s);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:u}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:l,rowIndex:u}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:i}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:l,rowIndex:i}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.scrollLeft,n=e.scrollTop;if(t>0||n>0){var r={};t>0&&(r.scrollLeft=t),n>0&&(r.scrollTop=n),this.setState(r)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered,r=(e.onScrollbarPresenceChange,e.scrollLeft,e.scrollToColumn),i=(e.scrollTop,e.scrollToRow),o=S(e,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),0===this.props.width||0===this.props.height)return null;var a=this.state,s=a.scrollLeft,l=a.scrollTop;return h.createElement("div",{style:this._containerOuterStyle},h.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(o),this._renderTopRightGrid(et({},o,{onScroll:t,scrollLeft:s}))),h.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(et({},o,{onScroll:t,scrollTop:l})),this._renderBottomRightGrid(et({},o,{onScroll:t,onSectionRendered:n,scrollLeft:s,scrollToColumn:r,scrollToRow:i,scrollTop:l}))))}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof n){for(var r=0,i=0;i<t;i++)r+=n({index:i});this._leftGridWidth=r}else this._leftGridWidth=n*t;return this._leftGridWidth}},{key:"_getRightGridWidth",value:function(e){return e.width-this._getLeftGridWidth(e)}},{key:"_getTopGridHeight",value:function(e){var t=e.fixedRowCount,n=e.rowHeight;if(null==this._topGridHeight)if("function"==typeof n){for(var r=0,i=0;i<t;i++)r+=n({index:i});this._topGridHeight=r}else this._topGridHeight=n*t;return this._topGridHeight}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t}),this.forceUpdate()}}},{key:"_maybeCalculateCachedStyles",value:function(e){var t=this.props,n=t.columnWidth,r=t.enableFixedColumnScroll,i=t.enableFixedRowScroll,o=t.height,a=t.fixedColumnCount,s=t.fixedRowCount,l=t.rowHeight,u=t.style,c=t.styleBottomLeftGrid,d=t.styleBottomRightGrid,f=t.styleTopLeftGrid,h=t.styleTopRightGrid,p=t.width,g=e||o!==this._lastRenderedHeight||p!==this._lastRenderedWidth,m=e||n!==this._lastRenderedColumnWidth||a!==this._lastRenderedFixedColumnCount,v=e||s!==this._lastRenderedFixedRowCount||l!==this._lastRenderedRowHeight;(e||g||u!==this._lastRenderedStyle)&&(this._containerOuterStyle=et({height:o,overflow:"visible",width:p},u)),(e||g||v)&&(this._containerTopStyle={height:this._getTopGridHeight(this.props),position:"relative",width:p},this._containerBottomStyle={height:o-this._getTopGridHeight(this.props),overflow:"visible",position:"relative",width:p}),(e||c!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=et({left:0,overflowX:"hidden",overflowY:r?"auto":"hidden",position:"absolute"},c)),(e||m||d!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=et({left:this._getLeftGridWidth(this.props),position:"absolute"},d)),(e||f!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=et({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},f)),(e||m||h!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=et({left:this._getLeftGridWidth(this.props),overflowX:i?"auto":"hidden",overflowY:"hidden",position:"absolute",top:0},h)),this._lastRenderedColumnWidth=n,this._lastRenderedFixedColumnCount=a,this._lastRenderedFixedRowCount=s,this._lastRenderedHeight=o,this._lastRenderedRowHeight=l,this._lastRenderedStyle=u,this._lastRenderedStyleBottomLeftGrid=c,this._lastRenderedStyleBottomRightGrid=d,this._lastRenderedStyleTopLeftGrid=f,this._lastRenderedStyleTopRightGrid=h,this._lastRenderedWidth=p}},{key:"_prepareForRender",value:function(){this._lastRenderedColumnWidth===this.props.columnWidth&&this._lastRenderedFixedColumnCount===this.props.fixedColumnCount||(this._leftGridWidth=null),this._lastRenderedFixedRowCount===this.props.fixedRowCount&&this._lastRenderedRowHeight===this.props.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(),this._lastRenderedColumnWidth=this.props.columnWidth,this._lastRenderedFixedColumnCount=this.props.fixedColumnCount,this._lastRenderedFixedRowCount=this.props.fixedRowCount,this._lastRenderedRowHeight=this.props.rowHeight}},{key:"_renderBottomLeftGrid",value:function(e){var t=e.enableFixedColumnScroll,n=e.fixedColumnCount,r=e.fixedRowCount,i=e.rowCount,o=e.hideBottomLeftGridScrollbar,a=this.state.showVerticalScrollbar;if(!n)return null;var s=a?1:0,l=this._getBottomGridHeight(e),u=this._getLeftGridWidth(e),c=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,d=o?u+c:u,f=h.createElement(G,y({},e,{cellRenderer:this._cellRendererBottomLeftGrid,className:this.props.classNameBottomLeftGrid,columnCount:n,deferredMeasurementCache:this._deferredMeasurementCacheBottomLeftGrid,height:l,onScroll:t?this._onScrollTop:void 0,ref:this._bottomLeftGridRef,rowCount:Math.max(0,i-r)+s,rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:d}));return o?h.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:et({},this._bottomLeftGridStyle,{height:l,width:u,overflowY:"hidden"})},f):f}},{key:"_renderBottomRightGrid",value:function(e){var t=e.columnCount,n=e.fixedColumnCount,r=e.fixedRowCount,i=e.rowCount,o=e.scrollToColumn,a=e.scrollToRow;return h.createElement(G,y({},e,{cellRenderer:this._cellRendererBottomRightGrid,className:this.props.classNameBottomRightGrid,columnCount:Math.max(0,t-n),columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheBottomRightGrid,height:this._getBottomGridHeight(e),onScroll:this._onScroll,onScrollbarPresenceChange:this._onScrollbarPresenceChange,ref:this._bottomRightGridRef,rowCount:Math.max(0,i-r),rowHeight:this._rowHeightBottomGrid,scrollToColumn:o-n,scrollToRow:a-r,style:this._bottomRightGridStyle,width:this._getRightGridWidth(e)}))}},{key:"_renderTopLeftGrid",value:function(e){var t=e.fixedColumnCount,n=e.fixedRowCount;return t&&n?h.createElement(G,y({},e,{className:this.props.classNameTopLeftGrid,columnCount:t,height:this._getTopGridHeight(e),ref:this._topLeftGridRef,rowCount:n,style:this._topLeftGridStyle,tabIndex:null,width:this._getLeftGridWidth(e)})):null}},{key:"_renderTopRightGrid",value:function(e){var t=e.columnCount,n=e.enableFixedRowScroll,r=e.fixedColumnCount,i=e.fixedRowCount,o=e.scrollLeft,a=e.hideTopRightGridScrollbar,s=this.state,l=s.showHorizontalScrollbar,u=s.scrollbarSize;if(!i)return null;var c=l?1:0,d=this._getTopGridHeight(e),f=this._getRightGridWidth(e),p=l?u:0,g=d,m=this._topRightGridStyle;a&&(g=d+p,m=et({},this._topRightGridStyle,{left:0}));var v=h.createElement(G,y({},e,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,t-r)+c,columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheTopRightGrid,height:g,onScroll:n?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:i,scrollLeft:o,style:m,tabIndex:null,width:f}));return a?h.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:et({},this._topRightGridStyle,{height:d,width:f,overflowX:"hidden"})},v):v}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft&&e.scrollLeft>=0?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop&&e.scrollTop>=0?e.scrollTop:t.scrollTop}:null}}]),t}(h.PureComponent);f(tt,"defaultProps",{classNameBottomLeftGrid:"",classNameBottomRightGrid:"",classNameTopLeftGrid:"",classNameTopRightGrid:"",enableFixedColumnScroll:!1,enableFixedRowScroll:!1,fixedColumnCount:0,fixedRowCount:0,scrollToColumn:-1,scrollToRow:-1,style:{},styleBottomLeftGrid:{},styleBottomRightGrid:{},styleTopLeftGrid:{},styleTopRightGrid:{},hideTopRightGridScrollbar:!1,hideBottomLeftGridScrollbar:!1}),tt.propTypes={},v(tt);const nt=tt;var rt=function(e){function t(e,n){var i;return r(this,t),(i=l(this,u(t).call(this,e,n))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},i._onScroll=i._onScroll.bind(s(i)),i}return d(t,e),o(t,[{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.clientHeight,r=t.clientWidth,i=t.scrollHeight,o=t.scrollLeft,a=t.scrollTop,s=t.scrollWidth;return e({clientHeight:n,clientWidth:r,onScroll:this._onScroll,scrollHeight:i,scrollLeft:o,scrollTop:a,scrollWidth:s})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.clientWidth,r=e.scrollHeight,i=e.scrollLeft,o=e.scrollTop,a=e.scrollWidth;this.setState({clientHeight:t,clientWidth:n,scrollHeight:r,scrollLeft:i,scrollTop:o,scrollWidth:a})}}]),t}(h.PureComponent);function it(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.defaultSortBy,r=t.defaultSortDirection,i=void 0===r?{}:r;if(!e)throw Error('Required parameter "sortCallback" not specified');var o=n||[],a={};function s(t){var n=t.defaultSortDirection,r=t.event,i=t.sortBy;if(r.shiftKey)void 0!==a[i]?a[i]="ASC"===a[i]?"DESC":"ASC":(a[i]=n,o.push(i));else if(r.ctrlKey||r.metaKey){var s=o.indexOf(i);s>=0&&(o.splice(s,1),delete a[i])}else o.length=0,o.push(i),Object.keys(a).forEach((function(e){e!==i&&delete a[e]})),void 0!==a[i]?a[i]="ASC"===a[i]?"DESC":"ASC":a[i]=n;e({sortBy:o,sortDirection:a})}return o.forEach((function(e){a[e]=void 0!==i[e]?i[e]:"ASC"})),{sort:s,sortBy:o,sortDirection:a}}function ot(e){var t=e.dataKey,n=e.rowData;return"function"==typeof n.get?n.get(t):n[t]}function at(e){var t=e.cellData;return null==t?"":String(t)}function st(e){var t=e.className,n=e.columns,r=e.style;return h.createElement("div",{className:t,role:"row",style:r},n)}rt.propTypes={},st.propTypes=null;const lt={ASC:"ASC",DESC:"DESC"};function ut(e){var t=e.sortDirection,n=b("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===lt.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===lt.DESC});return h.createElement("svg",{className:n,width:18,height:18,viewBox:"0 0 24 24"},t===lt.ASC?h.createElement("path",{d:"M7 14l5-5 5 5z"}):h.createElement("path",{d:"M7 10l5 5 5-5z"}),h.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function ct(e){var t=e.dataKey,n=e.label,r=e.sortBy,i=e.sortDirection,o=r===t,a=[h.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"==typeof n?n:null},n)];return o&&a.push(h.createElement(ut,{key:"SortIndicator",sortDirection:i})),a}function dt(e){var t=e.className,n=e.columns,r=e.index,i=e.key,o=e.onRowClick,a=e.onRowDoubleClick,s=e.onRowMouseOut,l=e.onRowMouseOver,u=e.onRowRightClick,c=e.rowData,d=e.style,f={"aria-rowindex":r+1};return(o||a||s||l||u)&&(f["aria-label"]="row",f.tabIndex=0,o&&(f.onClick=function(e){return o({event:e,index:r,rowData:c})}),a&&(f.onDoubleClick=function(e){return a({event:e,index:r,rowData:c})}),s&&(f.onMouseOut=function(e){return s({event:e,index:r,rowData:c})}),l&&(f.onMouseOver=function(e){return l({event:e,index:r,rowData:c})}),u&&(f.onContextMenu=function(e){return u({event:e,index:r,rowData:c})})),h.createElement("div",y({},f,{className:t,key:i,role:"row",style:d}),n)}ut.propTypes={},ct.propTypes=null,dt.propTypes=null;var ft=function(e){function t(){return r(this,t),l(this,u(t).apply(this,arguments))}return d(t,e),t}(h.Component);function ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ht(n,!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ht(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}f(ft,"defaultProps",{cellDataGetter:ot,cellRenderer:at,defaultSortDirection:lt.ASC,flexGrow:0,flexShrink:1,headerRenderer:ct,style:{}}),ft.propTypes={};var gt=function(e){function t(e){var n;return r(this,t),(n=l(this,u(t).call(this,e))).state={scrollbarWidth:0},n._createColumn=n._createColumn.bind(s(n)),n._createRow=n._createRow.bind(s(n)),n._onScroll=n._onScroll.bind(s(n)),n._onSectionRendered=n._onSectionRendered.bind(s(n)),n._setRef=n._setRef.bind(s(n)),n}return d(t,e),o(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,n=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:n}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:n,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,i=void 0===r?0:r;this.Grid&&this.Grid.recomputeGridSize({rowIndex:i,columnIndex:n})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"getScrollbarWidth",value:function(){if(this.Grid){var e=(0,ae.findDOMNode)(this.Grid),t=e.clientWidth||0;return(e.offsetWidth||0)-t}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.className,i=t.disableHeader,o=t.gridClassName,a=t.gridStyle,s=t.headerHeight,l=t.headerRowRenderer,u=t.height,c=t.id,d=t.noRowsRenderer,f=t.rowClassName,p=t.rowStyle,g=t.scrollToIndex,m=t.style,v=t.width,w=this.state.scrollbarWidth,_=i?u:u-s,S="function"==typeof f?f({index:-1}):f,C="function"==typeof p?p({index:-1}):p;return this._cachedColumnStyles=[],h.Children.toArray(n).forEach((function(t,n){var r=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=pt({overflow:"hidden"},r)})),h.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":h.Children.toArray(n).length,"aria-rowcount":this.props.rowCount,className:b("ReactVirtualized__Table",r),id:c,role:"grid",style:m},!i&&l({className:b("ReactVirtualized__Table__headerRow",S),columns:this._getHeaderColumns(),style:pt({height:s,overflow:"hidden",paddingRight:w,width:v},C)}),h.createElement(G,y({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:b("ReactVirtualized__Table__Grid",o),cellRenderer:this._createRow,columnWidth:v,columnCount:1,height:_,id:void 0,noContentRenderer:d,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:w,scrollToRow:g,style:pt({},a,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,r=e.isScrolling,i=e.parent,o=e.rowData,a=e.rowIndex,s=this.props.onColumnClick,l=t.props,u=l.cellDataGetter,c=l.cellRenderer,d=l.className,f=l.columnData,p=l.dataKey,g=l.id,m=c({cellData:u({columnData:f,dataKey:p,rowData:o}),columnData:f,columnIndex:n,dataKey:p,isScrolling:r,parent:i,rowData:o,rowIndex:a}),v=this._cachedColumnStyles[n],y="string"==typeof m?m:null;return h.createElement("div",{"aria-colindex":n+1,"aria-describedby":g,className:b("ReactVirtualized__Table__rowColumn",d),key:"Row"+a+"-Col"+n,onClick:function(e){s&&s({columnData:f,dataKey:p,event:e})},role:"gridcell",style:v,title:y},m)}},{key:"_createHeader",value:function(e){var t,n,r,i,o,a=e.column,s=e.index,l=this.props,u=l.headerClassName,c=l.headerStyle,d=l.onHeaderClick,f=l.sort,p=l.sortBy,g=l.sortDirection,m=a.props,v=m.columnData,y=m.dataKey,w=m.defaultSortDirection,_=m.disableSort,S=m.headerRenderer,C=m.id,x=m.label,E=!_&&f,T=b("ReactVirtualized__Table__headerColumn",u,a.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:E}),k=this._getFlexStyleForColumn(a,pt({},c,{},a.props.headerStyle)),O=S({columnData:v,dataKey:y,disableSort:_,label:x,sortBy:p,sortDirection:g});if(E||d){var L=p!==y?w:g===lt.DESC?lt.ASC:lt.DESC,R=function(e){E&&f({defaultSortDirection:w,event:e,sortBy:y,sortDirection:L}),d&&d({columnData:v,dataKey:y,event:e})};o=a.props["aria-label"]||x||y,i="none",r=0,t=R,n=function(e){"Enter"!==e.key&&" "!==e.key||R(e)}}return p===y&&(i=g===lt.ASC?"ascending":"descending"),h.createElement("div",{"aria-label":o,"aria-sort":i,className:T,id:C,key:"Header-Col"+s,onClick:t,onKeyDown:n,role:"columnheader",style:k,tabIndex:r},O)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,r=e.isScrolling,i=e.key,o=e.parent,a=e.style,s=this.props,l=s.children,u=s.onRowClick,c=s.onRowDoubleClick,d=s.onRowRightClick,f=s.onRowMouseOver,p=s.onRowMouseOut,g=s.rowClassName,m=s.rowGetter,v=s.rowRenderer,y=s.rowStyle,w=this.state.scrollbarWidth,_="function"==typeof g?g({index:n}):g,S="function"==typeof y?y({index:n}):y,C=m({index:n}),x=h.Children.toArray(l).map((function(e,i){return t._createColumn({column:e,columnIndex:i,isScrolling:r,parent:o,rowData:C,rowIndex:n,scrollbarWidth:w})})),E=b("ReactVirtualized__Table__row",_),T=pt({},a,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:w},S);return v({className:E,columns:x,index:n,isScrolling:r,key:i,onRowClick:u,onRowDoubleClick:c,onRowRightClick:d,onRowMouseOver:f,onRowMouseOut:p,rowData:C,style:T})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="".concat(e.props.flexGrow," ").concat(e.props.flexShrink," ").concat(e.props.width,"px"),r=pt({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(r.maxWidth=e.props.maxWidth),e.props.minWidth&&(r.minWidth=e.props.minWidth),r}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:h.Children.toArray(n)).map((function(t,n){return e._createHeader({column:t,index:n})}))}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,r=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:r})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,r=e.rowStartIndex,i=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:r,stopIndex:i})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=this.getScrollbarWidth();this.setState({scrollbarWidth:e})}}]),t}(h.PureComponent);f(gt,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:$,overscanRowCount:10,rowRenderer:dt,headerRowRenderer:st,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),gt.propTypes={};var mt=[],vt=null,yt=null;function wt(){yt&&(yt=null,document.body&&null!=vt&&(document.body.style.pointerEvents=vt),vt=null)}function bt(){wt(),mt.forEach((function(e){return e.__resetIsScrolling()}))}function _t(e){e.currentTarget===window&&null==vt&&document.body&&(vt=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){yt&&z(yt);var e=0;mt.forEach((function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)})),yt=j(bt,e)}(),mt.forEach((function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()}))}function St(e,t){mt.some((function(e){return e.props.scrollElement===t}))||t.addEventListener("scroll",_t),mt.push(e)}function Ct(e,t){(mt=mt.filter((function(t){return t!==e}))).length||(t.removeEventListener("scroll",_t),yt&&(z(yt),wt()))}var xt,Et,Tt=function(e){return e===window},kt=function(e){return e.getBoundingClientRect()};function Ot(e,t){if(e){if(Tt(e)){var n=window,r=n.innerHeight,i=n.innerWidth;return{height:"number"==typeof r?r:0,width:"number"==typeof i?i:0}}return kt(e)}return{height:t.serverHeight,width:t.serverWidth}}function Lt(e,t){if(Tt(t)&&document.documentElement){var n=document.documentElement,r=kt(e),i=kt(n);return{top:r.top-i.top,left:r.left-i.left}}var o=Rt(t),a=kt(e),s=kt(t);return{top:a.top+o.top-s.top,left:a.left+o.left-s.left}}function Rt(e){return Tt(e)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:e.scrollTop,left:e.scrollLeft}}function It(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function At(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?It(n,!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):It(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Mt=function(){return"undefined"!=typeof window?window:void 0},Nt=(Et=xt=function(e){function t(){var e,n;r(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return f(s(n=l(this,(e=u(t)).call.apply(e,[this].concat(o)))),"_window",Mt()),f(s(n),"_isMounted",!1),f(s(n),"_positionFromTop",0),f(s(n),"_positionFromLeft",0),f(s(n),"_detectElementResize",void 0),f(s(n),"_child",void 0),f(s(n),"state",At({},Ot(n.props.scrollElement,n.props),{isScrolling:!1,scrollLeft:0,scrollTop:0})),f(s(n),"_registerChild",(function(e){!e||e instanceof Element||console.warn("WindowScroller registerChild expects to be passed Element or null"),n._child=e,n.updatePosition()})),f(s(n),"_onChildScroll",(function(e){var t=e.scrollTop;if(n.state.scrollTop!==t){var r=n.props.scrollElement;r&&("function"==typeof r.scrollTo?r.scrollTo(0,t+n._positionFromTop):r.scrollTop=t+n._positionFromTop)}})),f(s(n),"_registerResizeListener",(function(e){e===window?window.addEventListener("resize",n._onResize,!1):n._detectElementResize.addResizeListener(e,n._onResize)})),f(s(n),"_unregisterResizeListener",(function(e){e===window?window.removeEventListener("resize",n._onResize,!1):e&&n._detectElementResize.removeResizeListener(e,n._onResize)})),f(s(n),"_onResize",(function(){n.updatePosition()})),f(s(n),"__handleWindowScrollEvent",(function(){if(n._isMounted){var e=n.props.onScroll,t=n.props.scrollElement;if(t){var r=Rt(t),i=Math.max(0,r.left-n._positionFromLeft),o=Math.max(0,r.top-n._positionFromTop);n.setState({isScrolling:!0,scrollLeft:i,scrollTop:o}),e({scrollLeft:i,scrollTop:o})}}})),f(s(n),"__resetIsScrolling",(function(){n.setState({isScrolling:!1})})),n}return d(t,e),o(t,[{key:"updatePosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.scrollElement,t=this.props.onResize,n=this.state,r=n.height,i=n.width,o=this._child||ae.findDOMNode(this);if(o instanceof Element&&e){var a=Lt(o,e);this._positionFromTop=a.top,this._positionFromLeft=a.left}var s=Ot(e,this.props);r===s.height&&i===s.width||(this.setState({height:s.height,width:s.width}),t({height:s.height,width:s.width}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=Q(),this.updatePosition(e),e&&(St(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.scrollElement,r=e.scrollElement;r!==n&&null!=r&&null!=n&&(this.updatePosition(n),Ct(this,r),St(this,n),this._unregisterResizeListener(r),this._registerResizeListener(n))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(Ct(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,r=t.scrollTop,i=t.scrollLeft,o=t.height,a=t.width;return e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:o,isScrolling:n,scrollLeft:i,scrollTop:r,width:a})}}]),t}(h.PureComponent),f(xt,"propTypes",null),Et);f(Nt,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:Mt(),serverHeight:0,serverWidth:0})},13218:(e,t,n)=>{"use strict";var r=n(99813),i=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,s=60110,l=60112;t.Suspense=60113;var u=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var d=Symbol.for;i=d("react.element"),o=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),a=d("react.provider"),s=d("react.context"),l=d("react.forward_ref"),t.Suspense=d("react.suspense"),u=d("react.memo"),c=d("react.lazy")}var f="function"==typeof Symbol&&Symbol.iterator;function h(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 p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function m(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}function v(){}function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(h(85));this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=m.prototype;var w=y.prototype=new v;w.constructor=y,r(w,m.prototype),w.isPureReactComponent=!0;var b={current:null},_=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,n){var r,o={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)_.call(t,r)&&!S.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:i,type:e,key:a,ref:s,props:o,_owner:b.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var E=/\/+/g;function T(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 k(e,t,n,r,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case i:case o:l=!0}}if(l)return a=a(l=e),e=""===r?"."+T(l,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(E,"$&/")+"/"),k(a,t,n,"",(function(e){return e}))):null!=a&&(x(a)&&(a=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(E,"$&/")+"/")+e)),t.push(a)),1;if(l=0,r=""===r?".":r+":",Array.isArray(e))for(var u=0;u<e.length;u++){var c=r+T(s=e[u],u);l+=k(s,t,n,c,a)}else if("function"==typeof(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e)))for(e=c.call(e),u=0;!(s=e.next()).done;)l+=k(s=s.value,t,n,c=r+T(s,u++),a);else if("object"===s)throw t=""+e,Error(h(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function O(e,t,n){if(null==e)return e;var r=[],i=0;return k(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function L(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 R={current:null};function I(){var e=R.current;if(null===e)throw Error(h(321));return e}var A={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:b,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:O,forEach:function(e,t,n){O(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!x(e))throw Error(h(143));return e}},t.Component=m,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A,t.cloneElement=function(e,t,n){if(null==e)throw Error(h(267,e));var o=r({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=b.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)_.call(t,c)&&!S.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){u=Array(c);for(var d=0;d<c;d++)u[d]=arguments[d+2];o.children=u}return{$$typeof:i,type:e.type,key:a,ref:s,props:o,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=x,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:L}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return I().useCallback(e,t)},t.useContext=function(e,t){return I().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return I().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return I().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return I().useLayoutEffect(e,t)},t.useMemo=function(e,t){return I().useMemo(e,t)},t.useReducer=function(e,t,n){return I().useReducer(e,t,n)},t.useRef=function(e){return I().useRef(e)},t.useState=function(e){return I().useState(e)},t.version="17.0.2"},89526:(e,t,n)=>{"use strict";e.exports=n(13218)},7402:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>C});var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),i="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},s=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,u=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&l()}function s(){a(o)}function l(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(s,20);i=e}return l}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;s.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),c=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},d=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||o},f=v(0,0,0,0);function h(e){return parseFloat(e)||0}function p(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+h(e["border-"+n+"-width"])}),0)}var g="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof d(e).SVGGraphicsElement}:function(e){return e instanceof d(e).SVGElement&&"function"==typeof e.getBBox};function m(e){return i?g(e)?function(e){var t=e.getBBox();return v(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return f;var r=d(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=h(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,s=h(r.width),l=h(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=p(r,"left","right")+o),Math.round(l+a)!==n&&(l-=p(r,"top","bottom")+a)),!function(e){return e===d(e).document.documentElement}(e)){var u=Math.round(s+o)-t,c=Math.round(l+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(c)&&(l-=c)}return v(i.left,i.top,s,l)}(e):f}function v(e,t,n,r){return{x:e,y:t,width:n,height:r}}var y=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=v(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=m(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),w=function(e,t){var n,r,i,o,a,s,l,u=(r=(n=t).x,i=n.y,o=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),c(l,{x:r,y:i,width:o,height:a,top:i,right:r+o,bottom:a+i,left:r}),l);c(this,{target:e,contentRect:u})},b=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new y(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new w(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),_="undefined"!=typeof WeakMap?new WeakMap:new r,S=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=u.getInstance(),r=new b(t,n,this);_.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){S.prototype[e]=function(){var t;return(t=_.get(this))[e].apply(t,arguments)}}));const C=void 0!==o.ResizeObserver?o.ResizeObserver:S},41196:(e,t)=>{"use strict";var n,r,i,o;if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,c=null,d=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(d,0),e}};n=function(e){null!==u?setTimeout(n,0,e):(u=e,setTimeout(d,0))},r=function(e,t){c=setTimeout(e,t)},i=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var p=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof p&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var g=!1,m=null,v=-1,y=5,w=0;t.unstable_shouldYield=function(){return t.unstable_now()>=w},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<e?Math.floor(1e3/e):5};var b=new MessageChannel,_=b.port2;b.port1.onmessage=function(){if(null!==m){var e=t.unstable_now();w=e+y;try{m(!0,e)?_.postMessage(null):(g=!1,m=null)}catch(e){throw _.postMessage(null),e}}else g=!1},n=function(e){m=e,g||(g=!0,_.postMessage(null))},r=function(e,n){v=f((function(){e(t.unstable_now())}),n)},i=function(){h(v),v=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<E(i,t)))break e;e[r]=t,e[n]=i,n=r}}function C(e){return void 0===(e=e[0])?null:e}function x(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],s=o+1,l=e[s];if(void 0!==a&&0>E(a,n))void 0!==l&&0>E(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==l&&0>E(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function E(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var T=[],k=[],O=1,L=null,R=3,I=!1,A=!1,M=!1;function N(e){for(var t=C(k);null!==t;){if(null===t.callback)x(k);else{if(!(t.startTime<=e))break;x(k),t.sortIndex=t.expirationTime,S(T,t)}t=C(k)}}function P(e){if(M=!1,N(e),!A)if(null!==C(T))A=!0,n(D);else{var t=C(k);null!==t&&r(P,t.startTime-e)}}function D(e,n){A=!1,M&&(M=!1,i()),I=!0;var o=R;try{for(N(n),L=C(T);null!==L&&(!(L.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=L.callback;if("function"==typeof a){L.callback=null,R=L.priorityLevel;var s=a(L.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?L.callback=s:L===C(T)&&x(T),N(n)}else x(T);L=C(T)}if(null!==L)var l=!0;else{var u=C(k);null!==u&&r(P,u.startTime-n),l=!1}return l}finally{L=null,R=o,I=!1}}var F=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){A||I||(A=!0,n(D))},t.unstable_getCurrentPriorityLevel=function(){return R},t.unstable_getFirstCallbackNode=function(){return C(T)},t.unstable_next=function(e){switch(R){case 1:case 2:case 3:var t=3;break;default:t=R}var n=R;R=t;try{return e()}finally{R=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=F,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=R;R=e;try{return t()}finally{R=n}},t.unstable_scheduleCallback=function(e,o,a){var s=t.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?s+a:s,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:O++,callback:o,priorityLevel:e,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>s?(e.sortIndex=a,S(k,e),null===C(T)&&e===C(k)&&(M?i():M=!0,r(P,a-s))):(e.sortIndex=l,S(T,e),A||I||(A=!0,n(D))),e},t.unstable_wrapCallback=function(e){var t=R;return function(){var n=R;R=t;try{return e.apply(this,arguments)}finally{R=n}}}},72851:(e,t,n)=>{"use strict";e.exports=n(41196)},75701:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var o={},a=[],s=0;s<e.length;s++){var l=e[s],u=r.base?l[0]+r.base:l[0],c=o[u]||0,d="".concat(u," ").concat(c);o[u]=c+1;var f=n(d),h={css:l[1],media:l[2],sourceMap:l[3]};-1!==f?(t[f].references++,t[f].updater(h)):t.push({identifier:d,updater:i(h,r),references:1}),a.push(d)}return a}function i(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n.update(e=t)}else n.remove()}}e.exports=function(e,i){var o=r(e=e||[],i=i||{});return function(e){e=e||[];for(var a=0;a<o.length;a++){var s=n(o[a]);t[s].references--}for(var l=r(e,i),u=0;u<o.length;u++){var c=n(o[u]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}o=l}}},6080:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},87182:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t),t}},56850:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},8236:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r=n.css,i=n.media,o=n.sourceMap;i?e.setAttribute("media",i):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},39213:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},50586:(e,t,n)=>{var r=n(36589),i=n(22708),o=i;o.v1=r,o.v4=i,e.exports=o},98726:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var r=n||0,i=t;return i[e[r++]]+i[e[r++]]+i[e[r++]]+i[e[r++]]+"-"+i[e[r++]]+i[e[r++]]+"-"+i[e[r++]]+i[e[r++]]+"-"+i[e[r++]]+i[e[r++]]+"-"+i[e[r++]]+i[e[r++]]+i[e[r++]]+i[e[r++]]+i[e[r++]]+i[e[r++]]}},76338:(e,t,n)=>{var r,i=n.g.crypto||n.g.msCrypto;if(i&&i.getRandomValues){var o=new Uint8Array(16);r=function(){return i.getRandomValues(o),o}}if(!r){var a=new Array(16);r=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),a[t]=e>>>((3&t)<<3)&255;return a}}e.exports=r},36589:(e,t,n)=>{var r=n(76338),i=n(98726),o=r(),a=[1|o[0],o[1],o[2],o[3],o[4],o[5]],s=16383&(o[6]<<8|o[7]),l=0,u=0;e.exports=function(e,t,n){var r=t&&n||0,o=t||[],c=void 0!==(e=e||{}).clockseq?e.clockseq:s,d=void 0!==e.msecs?e.msecs:(new Date).getTime(),f=void 0!==e.nsecs?e.nsecs:u+1,h=d-l+(f-u)/1e4;if(h<0&&void 0===e.clockseq&&(c=c+1&16383),(h<0||d>l)&&void 0===e.nsecs&&(f=0),f>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=d,u=f,s=c;var p=(1e4*(268435455&(d+=122192928e5))+f)%4294967296;o[r++]=p>>>24&255,o[r++]=p>>>16&255,o[r++]=p>>>8&255,o[r++]=255&p;var g=d/4294967296*1e4&268435455;o[r++]=g>>>8&255,o[r++]=255&g,o[r++]=g>>>24&15|16,o[r++]=g>>>16&255,o[r++]=c>>>8|128,o[r++]=255&c;for(var m=e.node||a,v=0;v<6;++v)o[r+v]=m[v];return t||i(o)}},22708:(e,t,n)=>{var r=n(76338),i=n(98726);e.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"==e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[o+s]=a[s];return t||i(a)}},14561:e=>{class t{constructor(e){this.value=e,this.next=void 0}}class n{constructor(){this.clear()}enqueue(e){const n=new t(e);this._head?(this._tail.next=n,this._tail=n):(this._head=n,this._tail=n),this._size++}dequeue(){const e=this._head;if(e)return this._head=this._head.next,this._size--,e.value}clear(){this._head=void 0,this._tail=void 0,this._size=0}get size(){return this._size}*[Symbol.iterator](){let e=this._head;for(;e;)yield e.value,e=e.next}}e.exports=n},98208:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var r=n(75701),i=n.n(r),o=n(8236),a=n.n(o),s=n(6080),l=n.n(s),u=n(56850),c=n.n(u),d=n(87182),f=n.n(d),h=n(39213),p=n.n(h),g=n(35053),m=n.n(g),v={};for(const e in g)"default"!==e&&(v[e]=()=>g[e]);n.d(t,v);var y={};y.styleTagTransform=p(),y.setAttributes=c(),y.insert=l().bind(null,"head"),y.domAPI=a(),y.insertStyleElement=f(),i()(m(),y);const w=m()&&m().locals?m().locals:void 0},49434:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var r=n(75701),i=n.n(r),o=n(8236),a=n.n(o),s=n(6080),l=n.n(s),u=n(56850),c=n.n(u),d=n(87182),f=n.n(d),h=n(39213),p=n.n(h),g=n(4188),m=n.n(g),v={};for(const e in g)"default"!==e&&(v[e]=()=>g[e]);n.d(t,v);var y={};y.styleTagTransform=p(),y.setAttributes=c(),y.insert=l().bind(null,"head"),y.domAPI=a(),y.insertStyleElement=f(),i()(m(),y);const w=m()&&m().locals?m().locals:void 0},34361:function(e,t,n){"use strict";var r,i,o,a,s,l,u,c,d,f,h,p,g,m=this&&this.__classPrivateFieldSet||function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n},v=this&&this.__classPrivateFieldGet||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)},y=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FinsembleDesktopAgent=void 0;const w=n(98832),b=y(n(72551)),_=n(6192),S=n(81298),C=n(81298),x=y(n(60306));class E{constructor(e){r.set(this,void 0),i.set(this,void 0),m(this,r,e,"f")}start(e){const t={type:"heartbeat",meta:{uuid:e}};v(this,r,"f").transmit(S.HEARTBEAT_CHANNEL,t),m(this,i,setInterval((()=>{v(this,r,"f").transmit(S.HEARTBEAT_CHANNEL,t)}),S.HEARTBEAT_INTERVAL),"f")}stop(){clearInterval(v(this,i,"f")),m(this,i,void 0,"f")}}r=new WeakMap,i=new WeakMap;class T{constructor(e,t,n="app"){o.set(this,void 0),m(this,o,e,"f"),this.id=t,this.type=n}broadcast(e){v(this,o,"f").channelBroadcast(this.id,e)}getCurrentContext(e){return v(this,o,"f").channelGetCurrentContext(this.id,e)}addContextListener(e,t){return v(this,o,"f").channelAddContextListener(this.id,e,t)}}o=new WeakMap,t.FinsembleDesktopAgent=class{constructor({routerClient:e,startup:t}){a.set(this,!1),s.set(this,void 0),l.set(this,!1),u.set(this,""),c.set(this,`FSBL.FDC3.Client.${Date.now()}_${Math.random()}`),d.set(this,{}),f.set(this,{}),h.set(this,[]),p.set(this,void 0),g.set(this,void 0),m(this,p,e,"f"),m(this,s,new E(e),"f"),m(this,g,t,"f");const n=()=>!0===_.Globals?.FSBL?.Clients?.WindowClient?.options?.customData?.interop?.autoConnect;if(_.Globals?.FSBL?.addEventListener?_.Globals?.FSBL.addEventListener("onReady",(()=>{n()&&this.connectWhenFSBLIsReady()})):window.addEventListener("FSBLReady",(()=>{n()&&this.connectWhenFSBLIsReady()})),window.Event){const e=new Event("fdc3Ready");window&&window.dispatchEvent(e)}}meta(){return{uuid:v(this,u,"f"),href:window.document?document.location.href:""}}triggerContextListeners(e){const{context:t}=e.payload;(v(this,f,"f")[t?.type]??[]).concat(v(this,f,"f")["*"]??[]).forEach((({handler:n,channel:r})=>{e.meta.channel!==r&&(e.meta.channel||r)||n(t)}))}triggerIntentListeners(e){const{intent:t,context:n}=e.payload,r=v(this,d,"f")[t];n&&(r||[]).forEach((e=>e(n)))}handleIncoming(e){switch(b.default.log("FDC3 Client: handleIncoming",e.type,e),e.type){case"broadcast":this.triggerContextListeners(e);break;case"intent":this.triggerIntentListeners(e)}}releaseQueue(){const e=e=>(void 0!==e?.meta?.uuid&&(e.meta.uuid=v(this,u,"f")),e);v(this,h,"f").forEach((async t=>{const{message:n,handler:r,resolve:i}=t,{err:o,response:a}=await v(this,p,"f").query(S.SERVER_CHANNEL,e(n),r);i({err:o,receiveMessage:a?.data})})),m(this,h,[],"f")}async connectWhenFSBLIsReady(){v(this,l,"f")||(m(this,l,!0,"f"),await v(this,g,"f").onReady(),this.connect())}exchange(e,t=(()=>{})){return new Promise((async n=>{if(v(this,a,"f")){const{err:r,response:i}=await v(this,p,"f").query(S.SERVER_CHANNEL,e,t);n({err:r,receiveMessage:i?.data})}else v(this,h,"f").push({message:e,handler:t,resolve:n}),this.connectWhenFSBLIsReady()}))}async connect(){const e=v(this,g,"f").getStartupData(),{windowName:t="Unknown window",authenticationToken:n}=e;b.default.log(`fdc3.connect StartupData for ${t}`,e),m(this,u,t,"f");const r={type:"register",meta:this.meta(),payload:{clientChannel:v(this,c,"f"),windowName:t,authenticationToken:n}};v(this,p,"f").query(S.SERVER_CHANNEL,r,(e=>{e?b.default.error("connect error",e):(v(this,p,"f").addResponder(v(this,c,"f"),((e,t)=>{if(e||!t){const t=C.errorAsString(e??"No request received on responder");b.default.error(`FinsembleDesktopAgent can't listen on channel ${v(this,c,"f")} : ${t}`)}else t.data&&this.handleIncoming(t.data),t.sendQueryResponse(null)})),m(this,a,!0,"f"),this.releaseQueue())})),v(this,s,"f").start(v(this,u,"f"))}stop(){v(this,s,"f").stop();const e={type:"unregister",meta:this.meta()};this.exchange(e,(()=>{v(this,p,"f").removeResponder(v(this,c,"f")),m(this,a,!1,"f")}))}async getCurrentContext(e){const t={type:"currentContextRequest",meta:this.meta(),payload:{contextType:e}},{err:n,receiveMessage:r}=await this.exchange(t);return n?null:"currentContext"===r?.type&&r.payload.context?r.payload.context:null}async channelGetCurrentContext(e,t){const n={type:"currentContextRequest",meta:{...this.meta(),channel:e},payload:{contextType:t}},{err:r,receiveMessage:i}=await this.exchange(n);return r?null:"currentContext"===i?.type?i.payload.context:null}broadcast(e){const t={type:"broadcast",meta:this.meta(),payload:{context:e}};this.exchange(t)}channelBroadcast(e,t){const n={type:"broadcast",meta:{...this.meta(),channel:e},payload:{context:t}};this.exchange(n)}async getSystemChannels(){const e={type:"systemChannelRequest",meta:this.meta()},{err:t,receiveMessage:n}=await this.exchange(e);return t?[]:("systemChannels"===n?.type?n?.payload?.channels:[]).map((e=>new T(this,e,"system")))}async open(e,t){const n={type:"open",meta:this.meta(),payload:{target:e,context:t}},{err:r,receiveMessage:i}=await this.exchange(n),o=i;if(r)throw w.OpenError.ResolverUnavailable;if(o.payload.error)throw o.payload.error}async findIntent(e,t){const n={type:"findIntent",meta:this.meta(),payload:{intent:e,context:t}},{err:r,receiveMessage:i}=await this.exchange(n),o=i;if(r)throw w.ResolveError.ResolverUnavailable;if(o.payload.error)throw o.payload.error;if(!o.payload.appIntent)throw"Invalid response returned from InteropService for findIntent. No appIntent and no error.";return o.payload.appIntent}async findIntentsByContext(e){const t={type:"findIntentsByContext",meta:this.meta(),payload:{context:e}},{receiveMessage:n}=await this.exchange(t),r=n;if(r.payload.error)throw r.payload.error;return r.payload.intents||[]}async raiseIntent(e,t,n){const r={type:"raiseIntent",meta:this.meta(),payload:{intent:e,context:t,target:n}},{err:i,receiveMessage:o}=await this.exchange(r),a=o;if(i)throw w.ResolveError.ResolverUnavailable;if(a.payload.error)throw a.payload.error;if(!a.payload.data)throw"Invalid response returned from InteropService for raiseIntent. No data.";return a.payload.data}async raiseIntentForContext(e,t){const n={type:"raiseIntent",meta:this.meta(),payload:{context:e,target:t}},{err:r,receiveMessage:i}=await this.exchange(n),o=i;if(r)throw w.ResolveError.ResolverUnavailable;if(o.payload.error)throw o.payload.error;if(!o.payload.data)throw"Invalid response returned from InteropService for raiseIntentForContext. No data.";return o.payload.data}addIntentListener(e,t){v(this,d,"f")[e]=C.mmAdd(v(this,d,"f"),e,t);const n={type:"subscribeIntent",meta:this.meta(),payload:{intent:e}};return this.exchange(n),{unsubscribe:()=>{const n={type:"unsubscribeIntent",meta:this.meta(),payload:{intent:e}};this.exchange(n),v(this,d,"f")[e]=C.mmRemove(v(this,d,"f"),e,t)}}}channelAddContextListener(e,t,n){const r=n?t:"*";n||(n=t);const i={handler:n,channel:e};v(this,f,"f")[r]=C.mmAdd(v(this,d,"f"),r,i);let o={type:"subscribeContext",meta:this.meta(),payload:{contextType:r}};return e&&(o.meta.channel=e),this.exchange(o),{unsubscribe:()=>{let t={type:"unsubscribeContext",meta:this.meta(),payload:{contextType:r}};e&&(t.meta.channel=e),v(this,f,"f")[r]=C.mmRemove(v(this,d,"f"),r,i),this.exchange(t)}}}addContextListener(e,t){return this.channelAddContextListener(null,e,t)}async joinChannel(e){const t={type:"joinChannels",meta:this.meta(),payload:{channels:[e]}};await this.exchange(t)}async getOrCreateChannel(e){return new T(this,e)}async getCurrentChannels(){const e={type:"getCurrentChannels",meta:this.meta()},{err:t,receiveMessage:n}=await this.exchange(e),r=n;if(t)throw t;if(r.payload.error)throw r.payload.error;if(!r.payload.data)throw"Invalid response returned from InteropService for getCurrentChannels. No data.";return r.payload.data.map((e=>new T(this,e.channel,"system")))}async getCurrentChannel(){const e=await this.getCurrentChannels();return e&&e.length?e[0]:null}async leaveCurrentChannel(){const e={type:"leaveChannels",meta:this.meta(),payload:{}};await this.exchange(e)}getInfo(){return{fdc3Version:"1.2",provider:"Finsemble",providerVersion:x.default.version}}},a=new WeakMap,s=new WeakMap,l=new WeakMap,u=new WeakMap,c=new WeakMap,d=new WeakMap,f=new WeakMap,h=new WeakMap,p=new WeakMap,g=new WeakMap},81298:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnonymousAuthenticationToken=t.HEARTBEAT_INTERVAL=t.HEARTBEAT_CHANNEL=t.INTENT_RESOLVER_CHANNEL=t.SERVER_CHANNEL=t.GLOBAL_CHANNEL=t.errorAsString=t.mmRemove=t.concatNoDups=t.mmAdd=void 0,t.mmAdd=function(e,t,n){return(e[t]||[]).concat([n])},t.concatNoDups=function(e,t){const n=Array.isArray(t)?t:[t],r=e?n.concat(e):n;return Array.from(new Set(r))},t.mmRemove=function(e,t,n){return(e[t]||[]).filter((e=>e===n))},t.errorAsString=function(e){return e?.message??e??null},t.GLOBAL_CHANNEL="global",t.SERVER_CHANNEL="FSBL.FDC3.Interop.Server",t.INTENT_RESOLVER_CHANNEL="FSBL.FDC3.intent.resolver",t.HEARTBEAT_CHANNEL="FSBL.FDC3.Interop.Server",t.HEARTBEAT_INTERVAL=4e3,t.AnonymousAuthenticationToken={authenticationKeyType:"unauthenticated",meta:{name:"Anonymous app"}}},10589:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FSBLService=void 0;const i=r(n(39319)),o=n(67580),a=n(51742),s=n(16925),l=n(50586),u=n(6192),c=n(34361);t.FSBLService=class{async startApp(){await a.System.ready();const e=await o.getSystemStartupData(),t=a.System.Window.getCurrent(),n=t.name??document?.location?.href??"Unknown App",r=t.name??document?.location?.href??`Unknown window-${l.v4()}`,d=o.getManifestFromStartupData(e)??{},f=o.getRouterConfig({windowName:r,systemManifest:d});await i.default.start(f);const h=s.Startup.getInstance();h.setStartupData({windowName:r,authenticationToken:{authenticationKeyType:"unauthenticated",meta:{name:n}}}),u.Globals.fdc3=new c.FinsembleDesktopAgent({routerClient:i.default,startup:h}),h.ready()}async stopApp(){i.default.stop()}}},67580:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getManifestFromStartupData=t.getSystemStartupData=t.getRouterConfig=t.getRecommendedTransport=void 0;const i=r(n(72551)),o=n(51742),a=n(33998),s={sameDomainTransport:"FinsembleTransport",crossDomainTransport:"FinsembleTransport",transportSettings:{FinsembleTransport:{serverAddress:"ws://127.0.0.1:3376"}},transportName:"FinsembleTransport"},l=e=>{if(!e)return i.default.error("No documentRoot provided to RouterConfig.isCrossDomain(). Check the moduleRoot entry of the manifest."),!0;const t=document.createElement("a");t.href=e;const n=window.location.hostname===t.hostname,r=window.location.protocol===t.protocol,o=(void 0!==window.location.port?window.location.port:80)===(void 0!==t.port?t.port:80),a=n&&o&&r;return i.default.system.debug(`Transport crossDomain=${l} (${n}:${r}:${o})`),!a};t.getRecommendedTransport=e=>{const{moduleRoot:t,router:n}=e?.finsemble,{sameDomainTransport:r="SharedWorker",crossDomainTransport:o="IPCBus"}=n??{},a=l(t)?o:r;return i.default.system.log(`Transport Info: Selected=${a} SameDomainDefault=${r} CrossDomainDefault=${o}`),console.log(`Transport Info: Selected=${a} SameDomainDefault=${r} CrossDomainDefault=${o}`),a},t.getRouterConfig=({windowName:e,systemManifest:n,transportSettings:r})=>n?((e,n)=>{if(i.default.system.info("WINDOW LIFECYCLE:STARTUP:RouterClient:routerConfigFromManifest"),e&&"string"!=typeof e){const r=e.finsemble,i=r?.router?.transportSettings??r?.IAC??{},o=r?.notificationURL??`${r.moduleRoot}/components/system/notification/notification.html`;return{windowName:n,routerDomainRoot:r.moduleRoot,transportName:t.getRecommendedTransport(e),transportSettings:i,notificationURL:o}}return i.default.system.error("WINDOW LIFECYCLE:STARTUP:RouterClient:routerConfigFromManifest failed -- fatal error. No manifest found.",e),{...s,windowName:n}})(n,e):{...s,windowName:e,transportSettings:r??{}},t.getSystemStartupData=async()=>new Promise((e=>{o.System.Window.getCurrent().getOptions((t=>{e(t)}))})),t.getManifestFromStartupData=e=>{let t=e?.manifest;return t?.finsemble&&a.ConfigUtilInstance.resolveConfigVariables(t.finsemble,t.finsemble),t}},16925:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Startup=void 0;const r=n(81298),i=n(6192),o=n(50586),a=n(4971);class s{constructor(){this.isReady=!1,this.onReadyListeners=[],this.currentStartupData={authenticationToken:r.AnonymousAuthenticationToken,windowName:`Unknown window-${o.v4()}`}}static getInstance(){return s.instance?s.instance:s.instance=a.singleton("Startup",s)}getStartupData(){return this.currentStartupData}setStartupData(e){this.currentStartupData=e}onReady(e){return new Promise((t=>{this.isReady?(e&&setTimeout(e,0),t()):this.onReadyListeners.push((()=>{e&&e(),t()}))}))}ready(){this.isReady=!0,this.onReadyListeners.forEach((e=>{e()})),i.Globals.dispatchEvent&&i.Globals.dispatchEvent(new Event("FSBLReady"))}}t.Startup=s,s.instance=null},72669:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t._BaseClient=void 0;const i=r(n(39319)),o=r(n(72551)),a=n(51742),s=n(13854);t._BaseClient=class{constructor(e){this.status="offline",this.startupTime=0,this.initialized=!1,this.startupDependencies={services:[],clients:[]},this.finsembleWindow=null,this.windowName="",this.clientReadyQueue=[],this.processClientReadyQueue=()=>{for(const e of this.clientReadyQueue)e();this.clientReadyQueue=[]},this.onReady=e=>{this.clientReadyQueue.push(e),"online"===this.status&&this.processClientReadyQueue()},this.setClientOnline=()=>{this.status="online";const e=`STARTUP:CLIENT ONLINE:${this.finWindow?.name}:${this.name}`;this.startupTime=window.performance.now()-this.startupTime;const t=()=>{this.logger.system.debug(e),this.processClientReadyQueue(),s.FSBLDependencyManagerSingleton.setClientOnline(this.name)};this._onReady?this._onReady(t):t()},this.initialize=(e=Function.prototype)=>{this.initialized||(this.initialized=!0,this.startupTime=performance.now(),this.finWindow=a.System.Window.getCurrent(),this.windowName=this.finWindow.name,this.logger.system.debug("Baseclient Init Router Ready",this.name),s.FSBLDependencyManagerSingleton.startup.waitFor(this.startupDependencies,(()=>{e(),this.setClientOnline()})))},this.onClose=e=>{e&&e()},this.name=e.name,this._onReady=e.onReady,this.startupDependencies=e.startupDependencies||{services:[],clients:[]},this.logger=o.default,this.routerClient=i.default}}},70010:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(57664),o=r(n(13712)),a=n(72669),s=r(n(5020)),l=r(n(72551));class u extends a._BaseClient{constructor(e){super(e),this.listeners=[],this.changeSub=e=>{this.subs||(this.subs={}),this.subs[e]||(this.routerClient.query("configService.addListener",e,(t=>{t&&l.default.system.error("Error adding listener to config service",t),this.routerClient.subscribe(e,this.handleChanges)})),this.subs[e]=!0)},this.handleChanges=(e,t)=>{e&&l.default.system.error(e),t.data.field||(t.data.field=null);const n=t.data.storeData?t.data.storeData:t.data.value;this.triggerListeners(t.data.field?t.data.field:"configService",n)},this.triggerListeners=(e,t)=>{if(this.listeners[e])for(let n=0;n<this.listeners[e].length;n++)"function"==typeof this.listeners[e][n]?this.listeners[e][n](null,{field:e,value:t}):l.default.system.warn("ConfigClient:triggerListeners: listener is not a function",e)},this.set=(e,t)=>{l.default.system.debug("ConfigClient.Set",e),"function"==typeof e?(t=e,o.default.args(t,"function"),e={}):o.default.args(e,"object",t,"function"),this.routerClient.query("config.set",e,((e,n)=>{t(e,n?n.data:null)}))},this.processAndSet=this.processAndSet.bind(this),this.getValue=this.getValue.bind(this),this.getValues=this.getValues.bind(this),this.setValue=this.setValue.bind(this),this.setValues=this.setValues.bind(this),this.removeValue=this.removeValue.bind(this),this.removeValues=this.removeValues.bind(this),this.addListener=this.addListener.bind(this),this.addListeners=this.addListeners.bind(this),this.removeListener=this.removeListener.bind(this),this.removeListeners=this.removeListeners.bind(this),this.setPreference=this.setPreference.bind(this),this.getPreferences=this.getPreferences.bind(this),this.unsetPreference=this.unsetPreference.bind(this)}getValue(e,t=Function.prototype){return"string"==typeof e&&(e={field:e}),new Promise(((n,r)=>{if(!e.field){const e="no field provided";return r(e),t(e)}this.routerClient.query("configService.getValue",{field:e.field},((e,i)=>e?(r(e),t(e)):(n({err:e,data:i.data}),t(e,i.data))))}))}getValues(e,t=Function.prototype){return"function"==typeof e&&(t=e,e=null),e&&!Array.isArray(e)?this.getValue(e,t):new Promise((n=>{this.routerClient.query("configService.getValues",{fields:e},((e,r)=>e?t(e):(n({err:e,data:r.data}),t(e,r.data))))}))}setValue(e,t){const n={field:e.field,value:e.value};return this.routerClient.query("configService.setValue",n,(e=>t?t(e):null))}setValues(e,t){return e?Array.isArray(e)?this.routerClient.query("configService.setValues",e,(e=>t?t(e):null)):l.default.system.error("ConfigClient.SetValues. Params must be an array"):l.default.system.error("ConfigClient.SetValues. No params given")}removeValue(e,t=Function.prototype){if(void 0!==e){if(e.field||"string"!=typeof e)return t("no field provided");e={field:e}}return e.value=null,this.setValue(e,t)}removeValues(e,t=Function.prototype){if(!Array.isArray(e))return t("The passed in parameter needs to be an array");i.map(e,this.removeValue,((e,n)=>t(e,n)))}addListener(e,t,n){let r=null;"function"==typeof e&&(t=e,e={field:r}),({field:r}=e);const i="configService"+(r?`.${r}`:"");return this.listeners[i]?this.listeners[i].push(t):this.listeners[i]=[t],this.changeSub(i),n?n():null}addListeners(e,t,n){if(!Array.isArray(e))return this.addListener({field:e.field},t,n);for(let n=0;n<e.length;n++){let i=null;const o=e[n];var r;"string"==typeof o?i=o:o.field&&(({field:i}=o),r=o.listener);const a="configService"+(i?`.${i}`:"");r||t&&"function"==typeof t&&(r=t),this.listeners[a]?this.listeners[a].push(r):this.listeners[a]=[r],this.changeSub(a)}return n?n():null}removeListener(e,t,n){let r=null;"function"==typeof e&&(n=t,t=e,e={field:r}),({field:r}=e);const i=this.name+(r?`.${r}`:"");if(this.listeners[i])for(let e=0;e<this.listeners[i].length;e++)if(this.listeners[i][e]===t)return this.listeners[i].pop(e),n?n(null,!0):null;return n?n(null,!1):null}removeListeners(e,t,n){if(!Array.isArray(e))return"function"==typeof e?this.removeListener({},e,n):e.field&&this.removeListener(e,t,n),n?.("missing fields");let r=0;for(let n=0;n<e.length;n++){let o=null;const a=e[n];var i;"string"==typeof a?o=a:a.field&&(({field:o}=a),i=e[n].listener);const s="configService"+(o?`.${o}`:"");if(!i){if(!t||"function"!=typeof t)continue;i=t}for(let e=0;e<this.listeners[s].length;e++)this.listeners[s][e]===i&&(this.listeners[s].pop(n),r++)}return r<e.length?n?.("All listeners could not be found",!1):n?n(null,!0):null}get(e,t){l.default.system.debug("ConfigClient.Get",e),l.default.system.deprecated("This functionality has been deprecated. It will be removed in a future Finsemble release. Use getValue instead.",e),1===arguments.length?(t=e,o.default.args(t,"function"),e={}):o.default.args(e,"object",t,"function"),this.routerClient.query("config.get",e,((e,n)=>{t(e,n?n.data:null)}))}processAndSet(e,t){if(l.default.system.debug("ConfigClient.processAndSet",e),o.default.args(e,"object",t,"function=")&&o.default.args2("params.newConfig",e.newConfig,"object","params.overwrite",e.overwrite,"boolean=","params.replace",e.replace,"boolean="),!e.overwrite&&e.replace){const e="cannot use replace option unless overwrite is also true";l.default.system.warn("ConfigClient.processAndSet:",e),t&&t(e,null)}else this.routerClient.query("config.processAndSet",e,((e,n)=>{t&&t(e,n?n.data:null)}))}setPreference(e,t){this.routerClient.query("PreferencesService.setPreference",e,((e,n)=>{t&&t(e,n?n.data:null)}))}async getPreferences(e){await s.default.waitForStartup("preferencesService"),this.routerClient.query("PreferencesService.getPreferences",{},((t,n)=>{l.default.system.debug("ConfigClient.getPreferences response",n),e&&e(t,n?n.data:null)}))}async unsetPreference(e,t){l.default.system.debug("ConfigClient.unsetPreference",e),this.routerClient.query("PreferencesService.unsetPreference",e,((e,n)=>{t&&t(e,n?n.data:null)}))}}const c=new u({startupDependencies:{services:["configService"]},onReady(e){e&&e()},name:"configClient"});t.default=c},68718:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(5939),o=n(72669),a=r(n(39319)),s=r(n(72551)),l=n(87063).F,u=window,c=new i.EventEmitter;function d(e,t=l){const n=[];return e.keys.forEach((e=>{if("string"!=typeof e)return s.default.system.error("FSBL.Clients.HotkeyClient - one of the keys passed into a function was not a string: ",e);e=e.toLowerCase();const r=t[e];if(!r)return s.default.system.error(`FSBL.Clients.HotkeyClient - At least one of the key codes does not map to a supported key - registering hotkey unsuccessful. Unsupported keys: ${e}`);n.push(r)})),n}const f=function(e){this.cb=e,this.shift=!1,this.ctrl=!1,this.cmd=!1,this.capsLock=!1,this.initialize()};f.prototype.keyup=function(e){switch(e.key){case"Shift":return this.shift=!1,void this.cb({key:e.key,e,keystroke:this});case"Control":case"Alt":return this.ctrl=!1,void this.cb({key:e.key,e,keystroke:this});case"Meta":case"Win":return this.cmd=!1,void this.cb({key:e.key,e,keystroke:this})}this.key&&this.cb({key:this.key,e,keystroke:this})},f.prototype.keydown=function(e){if(!this.noKeyCapture)switch(this.key=e.key,e.key){case"Meta":case"Win":this.cmd=!0;break;case"Shift":this.shift=!0;break;case"Control":case"Alt":this.ctrl=!0;break;case"CapsLock":this.capsLock=!this.capsLock;break;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Up":case"Down":case"Left":case"Right":this.key=null,this.cb({key:e.key,e,keystroke:this})}},f.prototype.keypress=function(e){if(this.noKeyCapture)return;const t=e.which;t<32||t>222||(this.key=e.key)},f.prototype.initialize=function(){const e=this;document.addEventListener("keyup",(t=>{e.keyup(t)})),document.addEventListener("keydown",(t=>{e.downValue=t.key,e.keydown(t)})),document.addEventListener("keypress",(t=>{e.keypress(t)})),window.addEventListener("blur",(t=>{e.ctrl=!1,e.cb({key:"Control",e:t,keystroke:e})}))};const h=[];class p extends o._BaseClient{constructor(e){super(e),this.onClose=e=>{this.removeAllHotkeys(e)},this.keyMap=l,this.listenForHotkeys=this.listenForHotkeys.bind(this),this.routerClient=a.default,this.localListeners={}}addLocalHotkey(e,t,n=(()=>{})){s.default.system.info("HotkeyClient.addLocalHotkey"),s.default.system.debug("HotkeyClient.addLocalHotkey, keyArr: ",e);const r=d({keys:e}).sort().toString(),i=()=>{document.hasFocus()&&t()};this.localListeners[r]||(this.localListeners[r]={}),this.localListeners[r][t]=i,c.addListener(r,i),this.routerClient.query("hotkeysService.registerGlobalHotkey",{keys:r,windowName:this.windowName},n)}addBrowserHotkey(e,t){this.KeyStroke||(this.KeyStroke=new f((e=>{const{key:t,keystroke:n}=e,r=[t];n.ctrl&&r.push("control"),n.shift&&r.push("shift"),n.alt&&r.push("alt"),n.cmd&&r.push("command");const i=r.sort().toString();h.forEach((e=>{const t=e.keyString.toUpperCase(),n=i.toUpperCase();n!==t&&n.replace(/(CONTROL|COMMAND)/,"COMMANDORCONTROL")!==t||e.handler()}))})));const n=d({keys:e}).sort().toString();h.push({keyString:n,handler:t})}removeLocalHotkey(e,t,n=(()=>{})){s.default.system.info("HotkeyClient.removeLocalHotkey"),s.default.system.debug("HotkeyClient.removeLocalHotkey, keyArr: ",e);const r=d({keys:e}).sort().toString(),i=this.localListeners[r][t];c.removeListener(r,i),this.routerClient.query("hotkeysService.unregisterGlobalHotkey",{keys:r,windowName:this.windowName},n)}addGlobalHotkey(e,t,n=(()=>{})){s.default.system.info("HotkeyClient.addGlobalHotkey"),s.default.system.debug("HotkeyClient.addGlobalHotkey, keyArr: ",e);const r=d({keys:e}).sort().join("+");c.addListener(r,t),this.routerClient.query("hotkeysService.registerGlobalHotkey",{keys:r,windowName:this.windowName},n)}removeGlobalHotkey(e,t,n=(()=>{})){s.default.system.info("HotkeyClient.removeGlobalHotkey"),s.default.system.debug("HotkeyClient.removeGlobalHotkey, keyArr: ",e);const r=d({keys:e}).sort().join("+");c.removeListener(r,t),this.routerClient.query("hotkeysService.unregisterGlobalHotkey",{keys:r,windowName:this.windowName},n)}listenForHotkeys(){const e=this;this.routerClient.addListener("HotkeyTriggered",((t,n)=>{t?console.error(`Hotkey Channel Error: ${JSON.stringify(t)}`):n.data.windows.includes(e.windowName)&&c.emit(n.data.keys)}))}removeAllHotkeys(e){c.removeAllListeners(),this.routerClient.query("hotkeysService.removeAllHotkeysForWindow",{windowName:this.windowName},e)}}const g=new p({onReady(e){g.listenForHotkeys(),e&&e()},name:"hotkeyClient"});u.Keystroke=f,t.default=g},9562:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(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)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(72669),l=a(n(95376)),u=o(n(76420)),c=a(n(13712)),d=n(51742),f=a(n(72551)),h=n(75688),p=window,g={};class m extends s._BaseClient{constructor(e){super(e),c.default.args(e,"object=")&&e&&c.default.args2("params.onReady",e.onReady,"function="),this.windowClient=e.clients.windowClient}getComponentList(e=Function.prototype){return c.default.args(e,"function="),new Promise((t=>{this.routerClient.query("Launcher.componentList",{},((n,r)=>{e(n,r.data),t({err:n,data:r.data})}))}))}getComponentDefaultConfig(e,t=Function.prototype){return c.default.args(t,"function="),new Promise((n=>{this.routerClient.query("Launcher.componentList",{},((r,i)=>{const o=i.data[e];t(r,o),n({err:r,data:o})}))}))}getMonitorInfo(e={},t=Function.prototype){const n=this;return c.default.args(t,"function="),f.default.system.debug("MONITOR: launcherClient.getMonitorInfo"),"all"===e.monitor?n.getMonitorInfoAll(t):new Promise((r=>{u.getMyWindowIdentifier((i=>{e.windowIdentifier||(e.windowIdentifier=i),n.routerClient.query("Launcher.getMonitorInfo",e,((e,n)=>{t&&t(e,n.data),f.default.system.log("MONITOR: launcherClient.getMonitorInfo query response data",n.data),r({err:e,data:n.data})}))}))}))}getMonitorInfoAll(e=Function.prototype){return c.default.args(e,"function="),f.default.system.debug("MONITOR: launcherClient.getMonitorInfoAll"),new Promise(((t,n)=>{this.routerClient.query("Launcher.getMonitorInfoAll",{},((r,i)=>{r&&(n({err:r}),e(r)),t({err:r,data:i.data}),e(r,i.data)}))}))}registerComponent(e,t=Function.prototype){return new Promise((n=>{this.routerClient.query("LauncherService.registerComponent",e,((e,r)=>{t&&t(e,r.data),n({err:e,data:r.data})}))}))}unRegisterComponent(e,t=Function.prototype){return e.componentType?new Promise((n=>{this.routerClient.query("LauncherService.unRegisterComponent",e,((e,r)=>{t&&t(e,r.data),n({err:e,data:r.data})}))})):t("No componentType provided")}locatorToIdentifier(e){let t={};return t.windowName="windowName"in e?e.windowName:"","componentType"in e&&(t.componentType=e.componentType),"uuid"in e&&(t.uuid=e.uuid),t}toggleWindowOnClick(e,t,n){const r=this;let i=this.locatorToIdentifier(t),o=`${i.windowName}:${i.uuid}`;i.windowName||(o=i.componentType),!1!==g[o]?(n.position||(n.position="absolute"),this.showWindow(t,n,(function(t,n){if(!n)return;const{finWindow:i}=n;var a=function(){g[o]=!0,r.windowClient.isMouseOverDOMElement(e,(e=>{g[o]=!e})),i.removeEventListener("blurred",a)};i.addEventListener("blurred",a)}))):g[o]=!0}showWindow(e,t,n=Function.prototype){c.default.args(e,"object",t,"object=",n,"function=");const r=this;return t||(t={}),(t=u.clone(t)).staggerPixels||0===t.staggerPixels||(t.staggerPixels=100),t.windowIdentifier=this.locatorToIdentifier(e),new Promise((e=>{u.getMyWindowIdentifier((i=>{t.relativeWindow||(t.relativeWindow=i),r.routerClient.query("Launcher.showWindow",t,(async(t,r)=>{if(t)return e({err:t}),n(t);const i=r.data.windowIdentifier;r.data.windowIdentifier.name=r.data.windowIdentifier.windowName;const{wrap:o}=await h.FinsembleWindow.getInstance({name:i.windowName});r.data.finWindow=o,e({err:t,data:r.data}),n(t,r.data)}))}))}))}spawn(e,t,n=Function.prototype){const r=this;return c.default.args(e,"string",t,"object=",n,"function="),t||(t={}),(t=u.clone(t)).component=e,t.options||(t.options={}),t.options.customData||(t.options.customData={}),t.staggerPixels||0===t.staggerPixels||(t.staggerPixels=50),f.default.system.debug(`LauncherClient.spawn starting for componentType:${e}`),new Promise((i=>{u.getMyWindowIdentifier((o=>{t.launchingWindow=o,r.callSpawn(t,((t,r)=>{f.default.system.debug(`LauncherClient.spawn completing for componentType:${e}`,t),i({err:t,response:r}),n(t,r)}))}))}))}callSpawn(e,t=Function.prototype){const n=this;return c.default.args(t,"function="),f.default.perf.debug("CallSpawn","start","from spawn to callback",e),new Promise((r=>{function i(e,n){t(e,n),r({err:e,data:n})}n.routerClient.query("Launcher.spawn",e,(async(e,t)=>{if(f.default.system.debug("CallSpawn","Initial launcher callback params",e,t),f.default.perf.debug("CallSpawn","Initial launcher callback",t),e)return i(e,t.data),f.default.system.error("LauncherClient.callSpawn",e);t.data.windowIdentifier.name=t.data.windowIdentifier.windowName;var r=t.data;if(r.windowDescriptor.native)return i(e,r);const o=r.windowIdentifier,{wrap:a}=await h.FinsembleWindow.getInstance({name:o.windowName});r.finWindow=a;const s=`Finsemble.${r.windowIdentifier.windowName}.componentReady`,l=n.routerClient.subscribe(s,((t,o)=>{if(t)return f.default.system.error(t);o&&0===Object.keys(o.data).length||(f.default.perf.debug("CallSpawn","stop"),i(e,r),n.routerClient.unsubscribe(l))}))}))}))}getMonitor(e,t=Function.prototype){return f.default.system.deprecated("This method is deprecated and will be removed in a future release. Method getMonitorInfo should be used instead."),c.default.args(t,"function="),this.getMonitorInfo({windowIdentifier:e},t)}getMyWindowIdentifier(e=Function.prototype){return c.default.args(e,"function="),new Promise((t=>{u.getMyWindowIdentifier((n=>{e(n),t(n)}))}))}getActiveDescriptors(e=Function.prototype){return c.default.args(e,"function="),new Promise((t=>{this.routerClient.query("Launcher.getActiveDescriptors",{},((n,r)=>{n&&f.default.system.error(n),e(n,r.data),t({err:n,data:r.data})}))}))}getActiveAndPendingWindowNames(e=Function.prototype){return new Promise((t=>{this.routerClient.query("Launcher.getActiveAndPendingWindowNames",{},((n,r)=>{n&&f.default.system.error(n),e(n,r.data),t({err:n,data:r.data})}))}))}async getPendingWindows(){const{err:e,response:t}=await this.routerClient.query("Launcher.getPendingWindows",{});return e&&f.default.system.error("Error retrieving pending windows:",e),{err:e,data:t.data}}addUserDefinedComponent(e,t=Function.prototype){return c.default.args(t,"function="),new Promise((n=>{this.routerClient.query("Launcher.userDefinedComponentUpdate",{type:"add",name:e.name,url:e.url},((e,r)=>{t(e,r.data),n({err:e,data:r.data})}))}))}removeUserDefinedComponent(e,t=Function.prototype){return c.default.args(t,"function="),new Promise((n=>{this.routerClient.query("Launcher.userDefinedComponentUpdate",{type:"remove",name:e.name,url:e.url},((e,r)=>{t(e,r.data),n({err:e,data:r.data})}))}))}getComponentsThatCanReceiveDataTypes(e,t=Function.prototype){return c.default.args(t,"function="),new Promise((n=>{if(!e||!e.dataTypes){const e="Invalid params. Expected: {dataTypes: string[]}";return t(e),n({err:e})}Array.isArray(e.dataTypes)||(e.dataTypes=[e.dataTypes]),this.routerClient.query("LauncherService.getComponentsThatCanReceiveDataTypes",e,((e,r)=>{t(e,r.data),n({err:e,data:r.data})}))}))}bringWindowsToFront(e={},t=Function.prototype){return c.default.args(t,"function="),e.windowList&&!Array.isArray(e.windowList)&&(e.windowList=[e.windowList]),e.groupName&&c.default.args(e.groupName,"string"),e.componentType&&c.default.args(e.componentType,"string"),this.routerClient.query("LauncherService.bringWindowsToFront",e,((e,n)=>{t(e,n)})),Promise.resolve()}hyperFocus(e,t=Function.prototype){return f.default.system.deprecated("hyperFocus is deprecated as of version 4.0.0. This functionality may be removed in a future release"),c.default.args(t,"function="),e.windowList&&!Array.isArray(e.windowList)&&(e.windowList=[e.windowList]),e.windowList||e.groupName||e.componentType||(e.windowList=[this.myWindowIdentifier]),e.groupName&&c.default.args(e.groupName,"string"),e.componentType&&c.default.args(e.componentType,"string"),this.routerClient.transmit("LauncherService.hyperFocus",e),t(),Promise.resolve()}minimizeWindows(e,t=Function.prototype){return c.default.args(t,"function="),e.windowList&&!Array.isArray(e.windowList)&&(e.windowList=[e.windowList]),e.groupName&&c.default.args(e.groupName,"string"),e.componentType&&c.default.args(e.componentType,"string"),this.routerClient.transmit("LauncherService.minimizeWindows",e),t(),Promise.resolve()}createWindowGroup(e,t=Function.prototype){return c.default.args(t,"function="),e.windowList&&!Array.isArray(e.windowList)&&(e.windowList=[e.windowList],delete e.groupName),c.default.args(e.groupName,"string"),new Promise((n=>{if(!e.groupName){const e="Invalid Parameters";return n({err:e}),void t(e)}this.routerClient.query("LauncherService.createWindowGroup",e,((e,r)=>{t(e,r),n({err:e,data:r})}))}))}addWindowsToGroup(e,t=Function.prototype){return c.default.args(t,"function="),new Promise((n=>{if(!e.groupName||!e.windowList){const e="Invalid Parameters";return n({err:e}),void t(e)}e.windowList&&!Array.isArray(e.windowList)&&(e.windowList=[e.windowList]),c.default.args(e.groupName,"string"),this.routerClient.query("LauncherService.addWindowsToGroup",e,((e,r)=>{t(e,r),n({err:e,data:r})}))}))}removeWindowsFromGroup(e,t=Function.prototype){return c.default.args(t,"function="),new Promise((n=>{if(!e.groupName||!e.windowList){const e="Invalid Parameters";return n({err:e}),void t(e)}e.windowList&&!Array.isArray(e.windowList)&&(e.windowList=[e.windowList]),this.routerClient.query("LauncherService.removeWindowsFromGroup",e,((e,r)=>{t(e,r),n({err:e,data:r})}))}))}getGroupsForWindow(e,t=Function.prototype){return c.default.args(t,"function="),"function"==typeof e&&(t=e,e=null),new Promise((n=>{e&&e.windowIdentifier?this.routerClient.query("LauncherService.getGroupsForWindow",e,((e,r)=>{n({err:e,data:r.data}),t(e,r.data)})):this.windowClient.getComponentState({field:"finsemble:windowGroups"},((e,r)=>{n({err:e,data:r}),t(e,r)}))}))}addToGroups(e,t=Function.prototype){return c.default.args(t,"function="),c.default.args(e.groupNames,"array"),e.windowIdentifier||(e.windowIdentifier=this.myWindowIdentifier),new Promise((n=>{this.routerClient.query("LauncherService.addWindowToGroups",e,((e,r)=>{t(e,r),n({err:e,data:r})}))}))}_createWrap(e,t){this.routerClient.query("LauncherService.createWrap",e,t)}start(e){const t=this;if(void 0!==p.FSBL){function n(){t.routerClient.subscribe(`Finsemble.LauncherService.updateGroups.${t.windowName}`,((e,n)=>{Array.isArray(n.data)&&t.windowClient.setComponentState({field:"finsemble:windowGroups",value:n.data})}))}p.FSBL.addEventListener("onReady",(()=>{t.windowClient.onReady((()=>{t.windowClient.getComponentState({field:"finsemble:windowGroups"},((e,r)=>{if(!e&&r)return t.addToGroups({groupNames:r},n);n()}))}))}))}setInterval((()=>{t.routerClient.transmit("Finsemble.heartbeat",{type:"component",windowName:t.windowName,componentType:"finsemble",isBrowserView:d.System.isBrowserView()})}),1e3),this.getMyWindowIdentifier((n=>{t.myWindowIdentifier=n,e&&e()}))}}let v;function y(e){return(e=e||{}).windowClient||(e.windowClient=l.default),new m({clients:e,onReady(e){f.default.system.debug("launcherClient ready",window.name),f.default.perf.debug("LauncherClientReadyTime","stop"),v.start(e)},name:"launcherClient"})}v=y(),v.constructInstance=y,t.default=v},75729:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LocalLogger=void 0;const{debug:n,warn:r,log:i,error:o}=console,a=()=>{},s=a,l={warn:r,info:a,log:i,debug:n,error:o,verbose:s,deprecated:o},u={Error:!0,Warn:!0,Info:!0,Log:!0,Debug:!0,Verbose:!0,LocalOnly:!1},c={console:{Error:!0,Warn:!0,Info:!0,Log:!0,Debug:!0},dev:u,system:u,perf:u};function d(e){return"logger.service.logMessages"===e}t.LocalLogger=class{constructor(){this.start=()=>{},this.isLogMessage=d,this.setting=()=>c,this.callStack=()=>function(){const{stack:e}=function(){try{throw Error("")}catch(e){return e}}(),t=("\n",4,e.split("\n",4).join("\n").length);return`Log Stack: \n${e.substring(t).substr(1)}`}(),this.unregisterClient=()=>{},this.setRouterClient=()=>{},this.warn=r,this.info=a,this.log=i,this.debug=n,this.error=o,this.verbose=s,this.system=l,this.perf=l,this.deprecated=o}}},72551:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=t.LoggerConstructor=void 0;const r=n(51742),i=n(75729),o=n(16925),a={Error:!0,Warn:!0,Info:!1,Log:!0,Debug:!1,Verbose:!1,LocalOnly:!1},s={Error:!0,Warn:!0,Info:!0,Log:!0,Debug:!0},l=n(38172);t.LoggerConstructor=function(e){const i=this;let u;i.RouterClient=e&&e.RouterClient;let c=!1,d=!1;const f=i;let h,p,g=0,m=0;this.startupTime=0;let v=[];if("undefined"==typeof window)return;let y=r.System.Window.getCurrent().name;window.top!==window&&(y=`${y}.Frame`),this.onLogStateChangeCallback=[];let w={console:s,dev:a,system:a,perf:a};function b(e,t,n){this.category=e,!u&&r.System.isBrowserView()&&(u=r.System.getViewId()),this.logClientName=u?`${y}: view-${u}`:y,this.logType=t,this.logData=n,this.logTimestamp=window.performance.timing.navigationStart+window.performance.now()+g}function _(e,t){e&&e.dev&&(w=e,i.onLogStateChangeCallback.forEach((t=>{t(e)}))),function(e){f.system.debug("Logger updateQueueBasedOnState",e,g,"QUEUE LENGTH",v.length,w);const t=[];for(let n=0,{length:r}=v;n<r;n++)if(w[v[n].category][v[n].logType]&&!w[v[n].category].LocalOnly)e&&(v[n].logTimestamp=v[n].logTimestamp+g),t.push(v[n]);else if(w[v[n].category][v[n].logType]&&w[v[n].category].LocalOnly){const e=v[n];console.log(e.category,e.logType,e.logTimestamp-window.performance.timing.navigationStart,e.logData,"(Previously queued!)")}v=t}(t)}function S(){const{stack:e}=function(){try{throw Error("")}catch(e){return e}}(),t=("\n",4,e.split("\n",4).join("\n").length);return`Log Stack: \n${e.substring(t).substr(1)}`}this.onStateChanged=e=>{-1===this.onLogStateChangeCallback.indexOf(e)&&this.onLogStateChangeCallback.push(e)},this.setClientName=function(e){console.error("logger.setClientName() is deprecated"),y=e},this.getClientName=function(){return console.error("logger.getClientName() is deprecated"),y},this.clearMessageList=function(){v=[]},this.callStack=function(){return S()},this.setting=function(){return w};const C=console.error,x=console.warn,E=console.info,T=console.log,k=console.debug;function O(e){return e.reduce(((e,t)=>e.concat(Array.isArray(t)?O(t):t)),[])}function L(e,t){try{e.apply(console,O(t))}catch(e){(t=[]).push(S())}}let R=()=>{v.length>0&&(i.RouterClient.transmit("logger.service.logMessages",v),f.clearMessageList())};function I(e,n,r){let i,o=!1,a=!0;"forceObjectsToLogger"===r[0]&&(o=!0,a=!1,r.splice(0,1)),r=r.map((e=>a&&function(e){const t=[],n=[e];let r=0,i=0;for(;n.length&&i<1e3;){i++;const e=n.pop();if("boolean"==typeof e)r+=4;else if("string"==typeof e)r+=2*e.length;else if("number"==typeof e)r+=8;else if("object"==typeof e&&-1===t.indexOf(e)){t.push(e);for(const t in e)n.push(e[t])}}return r}(e)>5e4?(L(E,["Message too large to send to the logger.",r]),"Log argument greater than 50KB. Check local Console to see output of the object."):e));try{for(let e=0;e<r.length;e++)r[e]instanceof Error&&(r[e]=r[e].toString());i=new b(e,n,JSON.stringify(r))}catch(t){r.splice(0,r.length),r.push(S()),i=new b(e,n,`*** Logging Error: ${JSON.stringify(r)}`)}o||!function(e){return!0===e.logData.includes("Finsemble.heartbeat")}(i)?function(e){if(v.length<2e4)v.push(e);else{console.error("Logging Queue Overflowed! Dumping queue here then continuing.",v.length);let e,n=0;for(;e=v.shift();)console.log("Message "+n++,e);t.Logger.system.error("Logging Queue Overflowed! Dumping queue in client then continuing.")}}(i):++m<=5&&L(E,[`"Filtered Logger Message (${m} of first 5 shown)`,i]),d&&R()}function A(){const{windowName:e}=o.Startup.getInstance().getStartupData();y=e,window.top!==window&&(y=`${y}.Frame`);const t=`finsemble.logger.client.${y}`;!u&&r.System.isBrowserView()&&(u=r.System.getViewId()),f.system.debug("logger.service.registering",y),r.System.Window.getCurrent().getOptions((n=>{const r=n?.customData?.component?.centralLoggerNamePrefix;i.RouterClient.query("logger.service.register",{clientName:y,clientChannel:t,windowName:e,viewId:u,centralLoggerNamePrefix:r},((e,t)=>{if(e)setTimeout(A,750);else{for(const e of v)e.viewId=u;d=!0,f.system.debug("logger.service.registered"),h=t.data,"routerService"!==y?(g=p,_(h,!0)):_(h,!1),I("system","Debug",["Logger Registered"]),R()}}))})),i.RouterClient.addListener(t,((e,t)=>{f.system.debug("logger.client.setLogState",t.data),h=t.data,_(h,!1)}))}R=l(R,"routerService"===y?100:250,{leading:!1}),this.error=function(){const e=Array.prototype.slice.call(arguments);e.push(S()),w.dev.Error&&!w.dev.LocalOnly&&I("dev","Error",e),e.unshift(`dev error (${window.performance.now()}):`),L(C,e)},this.warn=function(){if(w.dev.Warn){const e=Array.prototype.slice.call(arguments);e.push(S()),w.dev.Warn&&!w.dev.LocalOnly&&I("dev","Warn",e),w.dev.Warn&&w.dev.LocalOnly&&(e.unshift(`dev warn (${window.performance.now()}):`),L(x,e))}},this.info=function(){if(w.dev.Info){const e=Array.prototype.slice.call(arguments);w.dev.Info&&!w.dev.LocalOnly&&I("dev","Info",e),w.dev.Info&&w.dev.LocalOnly&&(e.unshift(`dev info (${window.performance.now()}):`),L(E,e))}},this.log=function(){if(w.dev.Log){const e=Array.prototype.slice.call(arguments);w.dev.Log&&!w.dev.LocalOnly&&I("dev","Log",e),w.dev.Log&&w.dev.LocalOnly&&(e.unshift(`dev log (${window.performance.now()}):`),L(T,e))}},this.debug=function(){if(w.dev.Debug){const e=Array.prototype.slice.call(arguments);w.dev.Debug&&!w.dev.LocalOnly&&I("dev","Debug",e),w.dev.Debug&&w.dev.LocalOnly&&(e.unshift(`dev debug (${window.performance.now()}):`),L(k,e))}},this.verbose=function(){if(w.dev.Verbose){const e=Array.prototype.slice.call(arguments);w.dev.Verbose&&!w.dev.LocalOnly&&I("dev","Verbose",e),w.dev.Verbose&&w.dev.LocalOnly&&(e.unshift(`dev verbose (${window.performance.now()}):`),L(k,e))}},this.deprecated=this.error,this.system={},this.system.error=function(){const e=Array.prototype.slice.call(arguments);e.push(S()),w.system.Error&&!w.system.LocalOnly&&I("system","Error",e),e.unshift(`system error (${window.performance.now()}):`),L(C,e)},this.system.warn=function(){if(w.system.Warn){const e=Array.prototype.slice.call(arguments);e.push(S()),w.system.Warn&&!w.system.LocalOnly&&I("system","Warn",e),w.system.Warn&&w.system.LocalOnly&&(e.unshift(`system warn (${window.performance.now()}):`),L(x,e))}},this.system.info=function(){if(w.system.Info){const e=Array.prototype.slice.call(arguments);w.system.Info&&!w.system.LocalOnly&&I("system","Info",e),w.system.Info&&w.system.LocalOnly&&(e.unshift(`system info (${window.performance.now()}):`),L(E,e))}},this.system.log=function(){if(w.system.Log){const e=Array.prototype.slice.call(arguments);w.system.Log&&!w.system.LocalOnly&&I("system","Log",e),w.system.Log&&w.system.LocalOnly&&(e.unshift(`system log (${window.performance.now()}):`),L(T,e))}},this.system.debug=function(){if(w.system.Debug){const e=Array.prototype.slice.call(arguments);w.system.Debug&&!w.system.LocalOnly&&I("system","Debug",e),w.system.Debug&&w.system.LocalOnly&&(e.unshift(`system debug (${window.performance.now()}):`),L(k,e))}},this.system.verbose=function(){if(w.system.Verbose){var e=Array.prototype.slice.call(arguments);w.system.Verbose&&!w.system.LocalOnly&&I("system","Verbose",e),w.system.Verbose&&w.system.LocalOnly&&((e=Array.prototype.slice.call(arguments)).unshift(`system log (${window.performance.now()}):`),L(k,e))}},this.system.deprecated=this.system.error,this.perf={},this.perf.error=function(){const e=Array.prototype.slice.call(arguments);e.push(S()),w.perf.Error&&!w.perf.LocalOnly&&I("perf","Error",e),e.unshift(`perf error (${window.performance.now()}):`),L(C,e)},this.perf.warn=function(){if(w.perf.Warn){const e=Array.prototype.slice.call(arguments);e.push(S()),w.perf.Warn&&!w.perf.LocalOnly&&I("perf","Warn",e),w.perf.Warn&&w.perf.LocalOnly&&(e.unshift(`perf warn (${window.performance.now()}):`),L(x,e))}},this.perf.info=function(){if(w.perf.Info){const e=Array.prototype.slice.call(arguments);w.perf.Info&&!w.perf.LocalOnly&&I("perf","Info",e),w.perf.Info&&w.perf.LocalOnly&&(e.unshift(`perf info (${window.performance.now()}):`),L(E,e))}},this.perf.log=function(){if(w.perf.Log){const e=Array.prototype.slice.call(arguments);w.perf.Log&&!w.perf.LocalOnly&&I("perf","Log",e),w.perf.Log&&w.perf.LocalOnly&&(e.unshift(`perf log (${window.performance.now()}):`),L(T,e))}},this.perf.debug=function(){if(w.perf.Debug){const e=Array.prototype.slice.call(arguments);w.perf.Debug&&!w.perf.LocalOnly&&I("perf","Debug",e),w.perf.Debug&&w.perf.LocalOnly&&(e.unshift(`perf debug (${window.performance.now()}):`),L(k,e))}},this.perf.verbose=function(){if(w.perf.Verbose){const e=Array.prototype.slice.call(arguments);w.perf.Verbose&&!w.perf.LocalOnly&&I("perf","Verbose",e),w.perf.Verbose&&w.perf.LocalOnly&&(e.unshift(`perf verbose (${window.performance.now()}):`),L(k,e))}},this.perf.deprecated=this.perf.error,this.unregisterClient=function(e=null,t=Function.prototype){f.system.debug("logger.service.unregister",y,e,u),R();const n=e||{clientName:y,viewId:u};i.RouterClient.query("logger.service.unregister",n,t)},this.isLogMessage=function(e){return"logger.service.logMessages"===e},this.status="offline",this.setRouterClient=e=>{this.RouterClient=e},this.start=function(){let e;this.startupTime=performance.now(),i.RouterClient||(console.log("No instance of the RouterClient found for this instance of the Logger. Dynamically requiring it."),i.RouterClient=n(39319).default);const t=()=>{e=i.RouterClient.subscribe("Finsemble.Service.State.loggerService",((t,n)=>{"ready"===n.data.state&&(i.status="online",f.system.debug("Logger onReady",y),i.RouterClient.calibrateTimeWithRouterService((e=>{p=e,c||(i.startupTime=performance.now()-i.startupTime,A(),c=!0)})),i.RouterClient.unsubscribe(e))}))};"routerService"===window.name?i.RouterClient.query("logger.service.register",{},(e=>{e?setTimeout(t,750):t()})):i.RouterClient.onReady(t),r.System.isBrowserView()&&window.addEventListener("beforeunload",(()=>{i.unregisterClient()}))}},t.Logger="undefined"!=typeof window?new t.LoggerConstructor:new i.LocalLogger,t.default=t.Logger},40568:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RouterClientConstructor=void 0;const i=r(n(82369)),o=r(n(13712)),a=r(n(73699)),s=n(51742),l=n(72551),u=n(6192),c=n(75729),d=n(50586),f=[];let h=l.Logger;function p(e,t={}){if(null===e||"object"!=typeof e)return e;if(e.constructor==Date||e.constructor==RegExp||e.constructor==Function||e.constructor==String||e.constructor==Number||e.constructor==Boolean)return new e.constructor(e);t=t||new e.constructor;for(const n in e)t[n]=void 0===t[n]?p(e[n],null):t[n];return t}t.RouterClientConstructor=function(){let e,t;const n={},r={},l={},g={},m={},v={},y={},w={},b={},_={};let S,C=null,x=!1;const E=[];function T(){this.header={origin:S,type:"initialHandshake"}}function k(e,t){this.header={origin:S,type:"timeCalibration"},this.clientBaseTime=e,this.serviceBaseTime=t}function O(e){this.header={origin:S,type:"addListener",channel:e}}function L(e,t,n){this.header={origin:S,type:"transmit",channel:e},this.data=t,this.options=n}function R(e){this.header={origin:S,type:"removeListener",channel:e}}function I(e){this.header={origin:S,type:"addResponder",channel:e}}function A(e,t,n){this.header={origin:S,type:"query",queryID:e,channel:t},this.data=n}function M(e,t,n){this.header={origin:S,type:"queryResponse",queryID:e,error:t},this.data=n}function N(e){this.header={origin:S,type:"removeResponder",channel:e}}function P(e,t){this.header={origin:S,type:"subscribe",subscribeID:e,topic:t}}function D(e,t){this.header={origin:S,type:"unsubscribe",subscribeID:e,topic:t}}function F(e,t){this.header={origin:S,type:"publish",topic:e},this.data=t}function W(e,t,n,r){this.header={origin:S,type:"notify",subscribeID:e,topic:t,error:n},this.data=r}function z(e,t,n){this.header={origin:S,type:"addPubSubResponder",topic:e,handleOnServer:n},this.data=t}function j(e){this.header={origin:S,type:"removePubSubResponder",topic:e}}function B(e){C?C.send(e):(h.system.info("RouterClient: Queuing message since router initialization not complete",e),f.push(e))}function H(){return this.header.origin===this.header.lastClient}function U(e,t){h.system.info("RouterClient: outgoing query response","CHANNEL",this.header.channel,"RESPONSE DATA",t,"QUERY ID",this.header.queryID),B(new M(this.header.queryID,e,t))}function V(e,t){const n=e[t.header.channel];void 0===n?h.system.warn(`RouterClient: no query responder define on channel ${t.header.channel} incoming from ${t.header.origin}`,t):t.header.error?(h.system.warn("RouterClient: queryResponder error",t),n(t.header.error,null),delete e[t.header.channel]):(t.originatedHere=H,t.sendQueryResponse=U.bind(t),h.system.info("RouterClient: incoming query","CHANNEL",t.header.channel,"FROM",t.header.origin,"QUERY MESSAGE",t),n(null,t))}function G(e,t){if(e)h.system.warn("RouterClient: income publish rejected by pubsub responder",e,t);else{g[this.header.topic]=t;const n=v[this.header.topic];if(void 0!==n)for(let r=0;r<n.length;r++)h.system.info("RouterClient: sending pubsub notify","TOPIC",this.header.topic,"NOTIFY DATA",t),B(new W(n[r],this.header.topic,e,t))}}function $(e,t){var n,r,i;(function(e){let t=!1;return void 0===e&&(t=!0),t})(t)||B(new W(this.header.subscribeID,this.header.topic,e,t)),e?h.system.warn("RouterClient: incoming subscription rejected by pubsub responder","TOPIC",this.header.topic,"MESSAGE",this):(n=v,r=this.header.topic,i=this.header.subscribeID,r in n?n[r].push(i):n[r]=[i],h.system.info("RouterClient: incoming subscription added","TOPIC",this.header.topic,"MESSAGE",this))}function q(){!function(e,t,n){let r=!1;if(t in e){const i=v[t];for(let o=0;o<i.length;o++)if(n===i[o]){i.splice(o,1),0===i.length&&delete e[t],r=!0,h.system.info("RouterClient: PubSub removeListener","TOPIC",t,"FROM",n);break}}r||h.system.warn(`RouterClient: tried to remove non-existent listener on ${t} from ${JSON.stringify(n)}`)}(v,this.header.topic,this.header.subscribeID)}function Y(i){switch(h.system.verbose("Incoming Message Type",i.header.type,i),i.header.type){case"transmit":!function(e,t){const n=e[t.header.channel]||[],r=[];if(Array.isArray(n)&&0!==n.length){t.originatedHere=H,n.forEach((e=>{r.push(e)}));for(let e=0;e<r.length;e++)h.isLogMessage(t.header.channel)||h.system.info("RouterClient: incoming transmit","CHANNEL",t.header.channel,"FROM",t.header.origin,"MESSAGE",t),r[e](null,t)}else h.system.warn(`RouterClient: no listener for incoming transmit on channel ${t.header.channel} from ${t.header.origin}`,t)}(n,i);break;case"query":V(r,i);break;case"queryResponse":!function(e,t){const n=e[t.header.queryID];void 0===n?h.system.warn("RouterClient: no handler for incoming query response","QUERY ID",t.header.queryID):(function(e,t){const n=e[t];void 0!==n&&clearTimeout(n)}(_,t.header.queryID),t.header.error?(h.system.debug("RouterClient: incoming queryResponse error",t.header,"QUERY ID",t.header.queryID),n(t.header.error,t)):(h.system.info("RouterClient: incoming query response","RESPONSE MESSAGE",t,"QUERY ID",t.header.queryID),n(null,t)),delete e[t.header.queryID])}(b,i);break;case"notify":!function(e,t){const n=e[t.header.subscribeID];void 0===n?h.system.warn("RouterClient: no subscription handler defined for incoming notify for subscriberID",t.header.subscribeID,t):t.header.error?(h.system.info("RouterClient: incoming PubSub notify error for subscriberID","SUBSCRIBER ID",t.header.subscribeID,"NOTIFY MESSAGE",t),n(t.header.error,t)):(t.originatedHere=H,h.system.info("RouterClient: incoming PubSub notify","SUBSCRIBER ID",t.header.subscribeID,"NOTIFY MESSAGE",t),n(null,t))}(y,i);break;case"publish":!function(e){let t=l[e.header.topic];if(void 0===t)for(const n in m)if(m[n].test(e.header.topic)){t=l[n];break}void 0===t?h.system.warn("RouterClient: no pubsub responder defined for incoming publish","TOPIC",e.header.topic,"PUBLISH MESSAGE",e):(e.sendNotifyToAllSubscribers=G,t.publishCallback?(h.system.info("RouterClient: incoming PubSub publish callback invoked","TOPIC",e.header.topic,"PUBLISH MESSAGE",e),t.publishCallback(null,e)):(h.system.info("RouterClient: incoming PubSub publish","TOPIC",e.header.topic,"PUBLISH MESSAGE",e),e.sendNotifyToAllSubscribers(null,e.data)))}(i);break;case"subscribe":!function(e){h.system.info("RouterClient: PubSub subscribe","TOPIC",e.header.topic);let t=l[e.header.topic];if(void 0===t)for(const n in m)if(m[n].test(e.header.topic)){t=l[n];let r=g[e.header.topic];void 0===r&&(r=g[n]),g[e.header.topic]=r;break}void 0===t?h.system.warn("RouterClient: no pubsub responder defined for incoming subscribe",e):e.header.error?h.system.warn(`RouterClient: pubsub error received from router service: ${JSON.stringify(e.header.error)}`):(e.sendNotifyToSubscriber=$,t.subscribeCallback?(e.data=g[e.header.topic],t.subscribeCallback(null,e)):e.sendNotifyToSubscriber(null,g[e.header.topic]))}(i);break;case"unsubscribe":!function(e){let t=l[e.header.topic];if(void 0===t)for(const n in m)if(m[n].test(e.header.topic)){t=l[n];break}void 0===t?h.system.warn("RouterClient: no pubsub responder defined for incoming unsubscribe","TOPIC",e.header.topic,"UNSUBSCRIBE MESSAGE",e):(e.removeSubscriber=q,t.unsubscribeCallback?(h.system.info("RouterClient: incoming unsubscribe callback","TOPIC",e.header.topic,"UNSUBSCRIBE MESSAGE",e),t.unsubscribeCallback(null,e)):(h.system.info("RouterClient: incoming unsubscribe","TOPIC",e.header.topic,"UNSUBSCRIBE MESSAGE",e),e.removeSubscriber()))}(i);break;case"timeCalibration":const o=()=>{t?t(i):setTimeout((()=>{o()}),10)};o();break;case"initialHandshakeResponse":e()}}function K(e,t){t.header.lastClient=S,t.header.incomingTransportInfo=e,Y(t)}this.startupTime=0,this.notificationURL="";const Z=(t,n,r)=>{let o,s;h.system.debug(`Name of transport to establish: ${n}`),this.notificationURL=t.notificationURL;let l,u,c,d,p=!1,g=0;const m=t=>{s=0,h.system.debug("WINDOW LIFECYCLE:STARTUP:RouterClient:transport ready","TRANSPORT OBJECT",t),C=t,e=d,c(),o=setInterval(c,200)};l=e=>{h.system.error("RouterClientError",e)};const v=()=>{h.system.debug("WINDOW LIFECYCLE:STARTUP:RouterClient:getClientTransport","ROUTER PARAMS:",t),i.default.getTransport(t,n,K,S,"RouterService").then(m).catch(l)};u=()=>{if(clearInterval(o),g++,g<=3)h.system.error("WINDOW LIFECYCLE:STARTUP:RouterClient: failure to connect to router service. Retrying...",g,t),v();else{const e="A cross domain transport has failed to connect. Cross domain components may not work. Please contact your administrator.";h.system.error(e,t),a.default.alert("dev","ONCE-SINCE-STARTUP","FSBL-Internal-Transport-Failure",e,{url:this.notificationURL})}},c=()=>{h.system.debug("WINDOW LIFECYCLE:STARTUP:RouterClient: sendHandshake",s),B(new T),s++>50&&u()},d=()=>{if(!p){if(h.system.debug(`WINDOW LIFECYCLE:STARTUP:RouterClient connected: Starting ${S} with transport ${C.identifier()}`),p=!0,clearInterval(o),f)for(let e=0;e<f.length;e++){h.system.debug("RouterClient: firing queued msg");const t=f[e];C.send(t)}r&&r()}},v()};function J(){return`${S}.${d.v4()}`}function Q(e,t){let n=!1;return void 0!==e[t]&&(delete e[t],n=!0),n}this.calibrateTimeWithRouterService=function(e){let n,r=0,i=1/0;t=function(t){r++,r>5?function(t){let r=0;for(let e=1;e<5;e++){const o=t.clientBaseTime[e-1],a=t.clientBaseTime[e]-o,s=t.serviceBaseTime[e-1]-(o+a/2);a<i&&(i=a,n=s),r+=s,h.system.debug("calibrationCalculation Intermediate Values","lastRRT",a,"lastOffset",s,"fastestOffset",n,"fastestRRT",i)}r/=4,h.system.debug("RouterClient calibrationCalculation","Average Offset",r,"Chosen FastestOffset",n,t),e(n)}(t):(t.clientBaseTime.push(u.Globals.performance.timing.navigationStart+u.Globals.performance.now()),B(new k(t.clientBaseTime,t.serviceBaseTime)))},t(new k([],[]))},this.onReady=e=>new Promise((t=>{o.default.args(e,"function");const n=()=>{e&&e(),t()};x?n():E.push(n)})),this.addListener=function(e,t){h.system.info("RouterClient.addListener","CHANNEL",e),o.default.args(e,"string",t,"function"),function(e,t,n){let r=!1;const i=e[t];return void 0===i||0===i.length?(e[t]=[n],r=!0):i.push(n),r}(n,e,t)&&B(new O(e))},this.transmit=function(e,t,n={suppressWarnings:!1}){h.isLogMessage(e)||h.system.info("RouterClient.transmit","TO CHANNEL",e,"EVENT",t),o.default.args(e,"string",t,"any"),B(new L(e,t,n))},this.removeListener=function(e,t){h.system.info("RouterClient.removeListener","CHANNEL",e,"EVENT HANDLER",t),o.default.args(e,"string",t,"function"),function(e,t,n){let r=!1;const i=e[t];if(void 0!==i){const e=i.indexOf(n);e>-1?(i.splice(e,1),0===i.length&&(r=!0)):h.system.warn(`no listener defined for channel: ${t}`)}return r}(n,e,t)&&B(new R(e))},this.addResponder=(e,t)=>{if(h.system.info("RouterClient.addResponder","CHANNEL",e),o.default.args(e,"string",t,"function"),function(e,t,n){let r=!1;return void 0===e[t]&&(e[t]=n,r=!0),r}(r,e,t))B(new I(e));else{const n=`RouterClient.addResponder: Responder already locally defined for channel ${e}`;h.system.warn(n),t(n,null)}},this.query=(e,t,n,r)=>{const i=`${J()}.${e}`,a=window.performance.timing.navigationStart+window.performance.now(),s=window.performance.timing.navigationStart,l=window.performance.now();return h.system.info("RouterClient.query","RESPONDER CHANNEL",e,"QUERY EVENT",t,"PARAMS",n,"QUERY ID",i,{timestamp:a,navstart:s,timenow:l}),r||(r=n,n={timeout:2e4}),o.default.args(e,"string",t,"any=",n,"object=",r,"function"),n=n||{},o.default.args2("params.timeout",n.timeout,"number"),new Promise((function(o){b[i]=(u,c)=>{o({err:u,response:c}),"function"==typeof r?r(u,c):h.system.warn("No response event handler passed to RouterClient.query","RESPONDER CHANNEL",e,"QUERY EVENT",t,"PARAMS",n,"QUERY ID",i,{timestamp:a,navstart:s,timenow:l})},u.Globals.runningInFSBLUnitTest||function(e,t,n,r){r>0&&(e[t]=setTimeout((()=>{h.system.warn(`RouterClient: timeout waiting on query response on channel ${n} for queryID ${t} on timer ${e[t]} timeout=${r}`)}),r))}(_,i,e,n.timeout),B(new A(i,e,t))}))},this.removeResponder=e=>{h.system.info("RouterClient.removeResponder","RESPONDER CHANNEL",e),o.default.args(e,"string"),Q(r,e)&&B(new N(e))},this.addPubSubResponder=(e,t,n,r)=>{let i,a;h.system.info("RouterClient.addPubSubResponder","TOPIC",e,"INITIAL STATE",t,"PARAMS",n),o.default.args(e,"any",t,"object=",n,"object="),n=n||{},o.default.args2("params.subscribeCallback",n.subscribeCallback,"function=","params.publishCallback",n.publishCallback,"function=")&&o.default.args2("params.unsubscribeCallback",n.unsubscribeCallback,"function="),void 0===n.subscribeCallback&&void 0===n.publishCallback&&void 0===n.unsubscribeCallback?(t=t||{},B(new z(e.toString(),t,!0)),a="success"):!function(e,t,n,r){let i=!1;return void 0===l[e.toString()]&&(e instanceof RegExp&&(m[e.toString()]=e,h.system.info(`RouterClient: PubSub RegEx added for topic ${e.toString()}`)),l[e.toString()]={subscribeCallback:t,publishCallback:n,unsubscribeCallback:r},i=!0),i}(e,n.subscribeCallback,n.publishCallback,n.unsubscribeCallback)?(i=`RouterClient.addPubSubResponder: Responder already locally defined for topic ${e}`,h.system.error(i)):(t=t||{},g[e.toString()]=p(t),B(new z(e.toString(),t,!1)),a="success"),r&&r(i,a)},this.removePubSubResponder=e=>{h.system.info("RouterClient.removePubSubResponder","TOPIC",e),o.default.args(e,"any"),Q(l,e)?(delete g[e.toString()],delete m[e.toString()],B(new j(e))):h.system.warn(`RouterClient.removePubSubResponder failed: Could not find responder for topic ${e}`)},this.subscribe=(e,t)=>{h.system.info("RouterClient.subscribe","TOPIC",e),o.default.args(e,"string",t,"function");const n=J();return function(e,t,n,r){e[t]=n,w[t]=r}(y,n,t,e),B(new P(n,e)),{subscribeID:n,topic:e}},this.publish=(e,t)=>{h.system.info("RouterClient.publish","TOPIC",e,"EVENT",t),o.default.args(e,"string",t,"any"),B(new F(e,t))},this.unsubscribe=e=>{h.system.info("RouterClient.unsubscribe","SUBSCRIBE ID",e),o.default.args(e,"object")&&o.default.args2("subscribeIDStruct.subscribeID",e.subscribeID,"string"),!function(e,t){let n=!1;return void 0!==e[t]&&(delete e[t],n=!0),n}(y,e.subscribeID)?h.system.warn(`RouterClient.unsubscribe: Could not find subscribeID for topic ${e.topic}`):B(new D(e.subscribeID,e.topic))},this.trustedMessage=function(e){let t=!0;return h.system.debug("RouterClient.trustedMessage header",e.header),"SharedWorker"===e.header.originIncomingTransportInfo.transportID&&(t=!0),t},this.disconnectAll=function(){h.system.info("RouterClient.disconnectAll");for(const e in n)h.system.debug(`RouterClient.disconnectAll is removing listener on ${e}`),B(new R(e)),delete n[e];for(const e in r)h.system.debug(`RouterClient.disconnectAll is removing responder on ${e}`),B(new N(e)),delete r[e];for(const e in l)h.system.debug(`RouterClient.disconnectAll is removing pubsub responder on ${e}`),B(new j(e)),delete l[e.toString()],delete g[e.toString()],delete m[e.toString()];for(const e in y){const t=w[e];h.system.debug(`RouterClient.disconnectAll is removing subscriber on ${t}`),B(new D(e,t)),delete y[e],delete w[e]}},this.start=e=>new Promise((async t=>{if(this.started){const e="RouterClient.start() called twice. Ignoring second call.";return h.warn(e),t(e)}this.started=!0,h=new c.LocalLogger,"loggerService"===s.System.Window.getCurrent().name&&(h=new c.LocalLogger),S=`RouterClient.${e.windowName}.${d.v4()}`;const n=`"RouterClient Check: connecting new client for ${S}`;h.system.debug(n),console.debug(n),Z(e,e.transportName,(()=>{!function(){for(h.system.debug("WINDOW LIFECYCLE:STARTUP:RouterClient Ready"),x=!0;E.length>0;)h.system.debug("WINDOW LIFECYCLE:STARTUP:RouterClient parentReady invoked"),E.shift()()}(),t(null)}))})),this.stop=()=>{this.disconnectAll(),i.default.close(),this.started=!1}}},39319:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RouterConnectionInstance=t.RouterConnectionSingleton=void 0;const r=n(40568),i=n(72551),o=n(4971);t.RouterConnectionSingleton=o.singleton("RouterClient",r.RouterClientConstructor),i.Logger.setRouterClient(t.RouterConnectionSingleton);var a=n(40568);Object.defineProperty(t,"RouterConnectionInstance",{enumerable:!0,get:function(){return a.RouterClientConstructor}}),t.default=t.RouterConnectionSingleton},63862:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StorageClient=void 0;const i=r(n(42169)),o=r(n(13712)),a=r(n(72551)),s=n(72669),l=n(24232),u=i.default(1);class c extends s._BaseClient{constructor(){super(...arguments),this.clientReady=!1,this.delete=this.remove}setUser(e,t){this.clientReady||a.default.system.error("storageClient invoked before ready"),o.default.args(e.user,"string",t,"function="),this.routerClient.query("Storage.setUser",{user:e.user},((n,r)=>{(n?a.default.system.error:a.default.system.info)("APPLICATION LIFECYCLE:StorageClient.setUser",e,n,r),t&&t(n,r.data)}))}setStore(e,t){this.clientReady||a.default.system.error("storageClient invoked before ready"),o.default.args(e.topic,"string",e.dataStore,"string=",t,"function="),a.default.system.log("APPLICATION LIFECYCLE:StorageClient.setStore",e,t),this.routerClient.query("Storage.setStore",e,((e,n)=>{(e?a.default.system.error:a.default.system.info)("Storage.setStore",e,n),t&&t(e,n.data)}))}save(e,t){if(this.clientReady||a.default.system.error("storageClient invoked before ready"),"string"!=typeof e.key||"string"!=typeof e.topic)throw new Error("Values for key and topic must be strings.");return new Promise(((n,r)=>{o.default.args(e.topic,"string",e.key,"string",e.value,"any",t,"function="),this.routerClient.query("Storage.save",e,((e,i)=>{(e?a.default.system.error:a.default.system.info)("Storage.save",e,i),t&&t(e,i.data),e?r({err:e,data:null}):n({err:e,data:i.data})}))}))}save1(e){return u((()=>this.save(e)))}get(e,t){if(this.clientReady||a.default.system.error("storageClient invoked before ready"),"string"!=typeof e.key||"string"!=typeof e.topic)throw new Error("Values for key and topic must be strings.");return new Promise(((n,r)=>{o.default.args(e.topic,"string",e.key,"string",t,"function="),this.routerClient.query("Storage.get",e,((e,i)=>{if(e)return a.default.system.error("Storage.get",e,i),t&&t(e,i?i.data:null),r(e,i?i.data:null);a.default.system.info("Storage.get",e,i),t&&t(e,i.data),n(i.data)}))}))}get1(e,t){return u((()=>this.get(e,t)))}keys(e,t){this.clientReady||a.default.system.error("storageClient invoked before ready"),o.default.args(e.topic,"string",t,"function="),a.default.system.debug("StorageClient.keys",e,t),this.routerClient.query("Storage.keys",e,((e,n)=>{(e?a.default.system.error:a.default.system.info)("Storage.keys",e,n),t&&t(e,n.data)}))}keys1(e){return u((()=>l.promisify(this.keys.bind(this))(e)))}getMultiple(e,t){this.clientReady||a.default.system.error("storageClient invoked before ready"),a.default.system.info("StorageClient.getMultiple",e,t),this.routerClient.query("Storage.getMultiple",e,((n,r)=>{(n?a.default.system.error:a.default.system.info)("StorageClient.getMultiple:",e,r),t&&t(n,r)}))}remove(e,t){return this.clientReady||a.default.system.error("storageClient invoked before ready"),new Promise(((n,r)=>{o.default.args(e.topic,"string",e.key,"string",t,"function="),this.routerClient.query("Storage.delete",e,((e,i)=>{(e?a.default.system.error:a.default.system.info)("StorageClient.delete",e,i),t&&t(e,i.data),e?r({err:e,data:null}):n({err:e,data:i.data})}))}))}remove1(e){return u((()=>this.remove(e)))}clearCache(e){a.default.system.log("StorageClient.clearCache",e),this.routerClient.query("Storage.clearCache",null,((t,n)=>{(t?a.default.system.error:a.default.system.info)("StorageClient.clearCache",t,n),e&&e(t,n.data)}))}}t.StorageClient=c;var d=new c({onReady(e){e&&e(),d.clientReady=!0},name:"storageClient"});t.default=d},95376:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(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)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(57664),l=a(n(63862)),u=a(n(68718)),c=o(n(76420)),d=n(51742),f=n(72669),h=a(n(72551)),p=a(n(13712)),g=n(75688),m=n(33998),v=a(n(39319)),y=n(78379),w=a(n(70010)),b=n(24232),_=n(80089);let S;function C(e,t){return e.classList?e.classList.contains(t):!!e.className.match(new RegExp(`(\\s|^)${t}(\\s|$)`))}class x extends f._BaseClient{constructor(e){super(e),this.showAtMousePosition=function(){this.routerClient.transmit("DockingService.showAtMousePosition",this.getWindowIdentifier())},p.default.args(e,"object=")&&e&&p.default.args2("params.onReady",e.onReady,"function="),this.options={},this.windowHash="",this.title=null,this.toolbarBottom=40,this.containers=[],this.componentState={},this.windowState="normal",this.hasHeader=!1,this.enableWindowsAeroSnap=!1,this.bindFunctions(),this.minimizeWithDockedWindows=this.minimize}bindFunctions(){this.onWindowRestored=this.onWindowRestored.bind(this),this.onWindowMaximized=this.onWindowMaximized.bind(this),this.onWindowBlurred=this.onWindowBlurred.bind(this),this.onWindowFocused=this.onWindowFocused.bind(this),this.onMinimizedRestored=this.onMinimizedRestored.bind(this),this.onWindowMinimized=this.onWindowMinimized.bind(this),this.close=this.close.bind(this),this.getInitialOptions=this.getInitialOptions.bind(this),this.cacheInitialBounds=this.cacheInitialBounds.bind(this),this._setHeaderHeight=this._setHeaderHeight.bind(this)}onWindowRestored(){this.updateHeaderState("Maximize",{hide:!1})}onWindowMaximized(){this.updateHeaderState("Maximize",{hide:!0})}onWindowBlurred(){this.setActive(!1)}onWindowFocused(){this.setActive(!0)}onMinimizedRestored(){this.routerClient.transmit("DockingService.windowRestored",S.name),S.removeEventListener("restored",this.onMinimizedRestored)}onWindowMinimized(){this.routerClient.query("DockingService.windowMinimized",{windowName:S.name}),S.addEventListener("restored",this.onMinimizedRestored)}getWindowGroups(){return this.windowGroups}groupUpdateHandler(e,t){e?FSBL.Clients.Logger.error(e):t.data&&t.data.groupData&&(this.windowGroups=Object.values(t.data.groupData).filter((e=>e.windowNames.includes(this.getWindowNameForDocking()))))}close(e,t=(()=>{})){e||(e={removeFromWorkspace:!0,closeWindow:!0});const{parentWindow:n}=S;if(e.userInitiated&&n)return n.close(e,t);S.close(e,t)}getWindowHash(){return this.windowHash}getWindowTitle(){return this.title}retrieveMonitorDimensions(e=Function.prototype){c.getMonitor(null,(t=>{S.updateOptions({options:{monitorDimensions:t.monitorRect}}),e&&e(t.monitorRect)}))}listenForHashChanges(){d.System.hasBrowserView()||(S.updateOptions({url:window.top.location.href},(()=>{})),function(e){const{pushState:t}=e;e.pushState=function(n){"function"==typeof e.onpushstate&&e.onpushstate({state:n}),t.apply(e,arguments),S.updateOptions({url:window.top.location.href},(()=>{}))};const{replaceState:n}=e;e.replaceState=function(t){"function"==typeof e.onreplacestate&&e.onreplacestate({state:t}),n.apply(e,arguments),S.updateOptions({url:window.top.location.toString()})}}(window.history),window.addEventListener("hashchange",(()=>{S.updateOptions({url:window.top.location.toString()},(()=>{}))})))}getInitialOptions(e){this.isInAService?(this.options={},h.default.system.debug("WindowClient:getting options empty",this.options),e()):S.getOptions(((t,n)=>{t&&(n={}),S.windowOptions=n,this.options=n,h.default.system.debug("WindowClient:getting options",this.options),e()}))}cacheInitialBounds(e){if(d.System.hasBrowserView())return e();this.cacheBounds((()=>{try{if(!S.windowOptions.customData.foreign.components["Window Manager"].persistWindowState)return e();S.updateOptions({options:{url:window.top.location.toString()}})}catch(e){h.default.system.warn('customData.foreign.components["Window Manager" is undefined')}e()}))}setInitialWindowBounds(e){h.default.system.warn("`FSBL.Clients.WindowClient.setInitialWindowBounds is deprecated and will be removed in a future version of finsemble. Use 'getInitialOptions' and 'cacheInitialBounds' instead."),s.parallel([this.getInitialOptions,this.cacheInitialBounds],e)}getWindowBounds(){return{top:S.windowOptions.defaultTop,left:S.windowOptions.defaultLeft,width:S.windowOptions.defaultWidth,height:S.windowOptions.defaultHeight}}saveWindowBounds(e,t){if(h.default.system.debug("WINDOW LIFECYCLE:SavingBounds:",e,"setActiveWorkspaceDirty",t),void 0===t&&(t=!1),p.default.args(e,"object")&&p.default.args2("bounds.top",e.top,"number"),e){S.updateOptions({options:{top:Math.round(e.top),defaultTop:Math.round(e.top),left:Math.round(e.left),defaultLeft:Math.round(e.left),width:Math.round(e.width),defaultWidth:Math.round(e.width),height:Math.round(e.height),defaultHeight:Math.round(e.height)}});try{S.windowOptions.customData.foreign.components["Window Manager"].persistWindowState}catch(e){}}}minimize(e){this.cacheBounds((()=>{S.minimize(null,(t=>{t&&h.default.system.error("WindowClient:minimize",t),e&&e(t)}))}))}setAlwaysOnTop(e,t){S.setAlwaysOnTop({alwaysOnTop:e},t)}restore(e=(()=>{})){S.restore(null,(t=>{t&&h.default.system.error("WindowClient:restore",t),e(t)}))}cacheBounds(e){this.getBounds(((t,n)=>{if(t)return e(),console.warn("Get bounds error.",t,"Window may not be registered with the window service");S.updateOptions({options:{cachedLeft:n.left,defaultLeft:n.left,cachedTop:n.top,defaultTop:n.top,cachedWidth:n.width,defaultWidth:n.width,cachedHeight:n.height,defaultHeight:n.height}}),e&&e(n)}))}maximize(e){S.maximize(),e()}removeFinWindowEventListeners(){S.removeEventListener("maximized",this.onWindowMaximized),S.removeEventListener("restored",this.onWindowRestored),S.removeEventListener("blurred",this.onWindowBlurred),S.removeEventListener("focused",this.onWindowFocused),S.removeEventListener("close-requested",this.close),S.removeEventListener("minimized",this.onWindowMinimized)}injectDOM(e){if(h.default.system.debug("injectDOM",e),document.getElementById("FSBLHeader"))return;window.scrollTo(0,0);const t=document.createElement("div");t.innerHTML=`<div id="FSBLHeader"${e?` style=height:${e}`:""}></div>`,t.firstChild&&document.body.insertBefore(t.firstChild,document.body.firstChild)}getComponentState(e,t){if(e||(e={}),e.fields&&!Array.isArray(e.fields)&&(e.fields=[e.fields]),p.default.args(e,"object",t,"function"),S)return S.getComponentState(e,t);h.default.system.warn("Attempt to use getComponentState before component is ready or in a service"),e.windowName||(e.windowName=window.name);const n=this.getContainerHash(e.windowName);l.default.get({topic:y.WORKSPACE.CACHE_STORAGE_TOPIC,key:n},((n,r)=>{if(n)return h.default.system.error("Error retrieving window client's component state."),void t(n);const i=r;if(r&&e.field)this.componentState=i||{},t(n,i[e.field]);else{if(e.fields){const n={};for(let t=0;t<e.fields.length;t++)i[e.fields[t]]&&(n[e.fields[t]]=i[e.fields[t]]);return t(null,n)}if(r)return t(null,i);h.default.system.info("WindowClient:getComponentState:error, response, params",n,r,e),t("Not found",r)}}))}async setComponentState(e,t=(()=>{})){return p.default.args(e,"object",t,"function=")&&p.default.args2("params.field",e.field,"string"),S?S.setComponentState(e,t):this.isInAService?(t("Cannot call setComponentState in a service."),Promise.resolve()):(t("Cannot call setComponentState. The window may not be ready"),Promise.reject("The window is not yet ready to save state."))}async removeComponentState(e,t=(()=>{})){return p.default.args(e,"object",t,"function=")&&p.default.args2("params.field",e.field,"string"),(S||await g.FinsembleWindow.getInstance({name:e.windowName||window.name})).removeComponentState(e,t)}getWindowNameForDocking(){const e=S.parentWindow;return e?e.name:S.name}getContainerHash(e){return c.camelCase(this.windowHash,e)}formGroup(){S.formGroup()}registerWithDockingManager(e,t){S.parentWindow&&(h.default.system.debug("registerWithDockingManager ignore registration request if has a parent"),t&&t());const n=S.name,{uuid:r}=S;this.startedRegistrationWithDocking=!0,this.routerClient.query("DockingService.registerWindow",{name:n,uuid:r,options:e||{},windowType:"WebWindow"},(()=>{this.startedRegistrationWithDocking=!1,this.deregisterPlease&&(this.deregisterWithDockingManager(),this.deregisterPlease=!1),h.default.system.debug("WINDOW LIFECYCLE: Docking Registration complete."),t&&t()}))}deregisterWithDockingManager(e){this.startedRegistrationWithDocking&&(this.deregisterPlease=!0);const t=S.name;this.routerClient.transmit("DockingService.deregisterWindow",{name:t,userInitiated:e})}bumpFixedElements(e){if("complete"!==document.readyState)return setTimeout((()=>{this.bumpFixedElements(e)}),100);if(!e)return;let{absolute:t,fixed:n,bumpBy:r}=e;if(!t&&!n)return;const i=document.getElementById("FSBLHeader");if(!i||0===i.children.length||!i.children[0].clientHeight)return setTimeout((()=>{this.bumpFixedElements(e)}),100);"auto"===r?r="0px":-1===new String(r).indexOf("px")&&(r=`${r}px`);const o=document.body.getElementsByTagName("*"),a=o.length;for(let e=0;e<a;e++){if("FSBLHeader"===o[e].id||o[e].classList.contains("fsbl-header"))continue;const i=window.getComputedStyle(o[e],null),a=["0","0px",0],s=i.getPropertyValue("top");t&&o[e].parentNode===document.body&&"absolute"==i.getPropertyValue("position")&&("all"==t?o[e].style.top=`calc(${s} + ${r})`:"0Positioned"==t&&a.includes(s)&&(o[e].style.top=r)),n&&"fixed"==i.getPropertyValue("position")&&("all"==n?o[e].style.top=`calc(${s} + ${r})`:"0Positioned"==n&&a.includes(s)&&(o[e].style.top=r))}}bringWindowToFront(){S.bringToFront({forceFocus:!0},(e=>{e?h.default.system.error(`WindowClient.bringWindowToFront: failure:${e}`):h.default.system.info("WindowClient.bringWindowToFront: success")}))}injectStylesheetOverride(){const e=document.createElement("style");e.type="text/css",e.appendChild(document.createTextNode(S.windowOptions.customData.cssOverride)),document.body.appendChild(e)}checkIfChildApp(){if(S.windowOptions&&S.windowOptions.customData&&S.windowOptions.customData.parentUUID&&S.windowOptions.customData.parentUUID!==d.System.Application.getCurrent().uuid){const e=d.System.Application.wrap(S.windowOptions.customData.parentUUID);e.addEventListener("crashed",this.close.bind(null,!1)),e.addEventListener("initialized",this.close.bind(null,!1)),e.addEventListener("out-of-memory",this.close.bind(null,!1))}}preventUnintendedDropEvents(){function e(e){e.preventDefault()}window.addEventListener("dragover",e,!1),window.addEventListener("drop",e,!1)}rejectWindowsKeyResizes(){let e=!1;const t=async t=>{this.enableWindowsAeroSnap?"Meta"===t.key&&v.default.transmit("Finsemble.WindowService.WindowsKey","up"):"Meta"===t.key&&e&&(e=!1,d.System.Window.getCurrent().updateOptions({resizable:!0}))},n=t=>{this.enableWindowsAeroSnap?"Meta"===t.key&&v.default.transmit("Finsemble.WindowService.WindowsKey","down"):"Meta"===t.key&&(e=!0,d.System.Window.getCurrent().updateOptions({resizable:!1}))};FSBL&&u.default.onReady((()=>{window.addEventListener("keyup",t),window.addEventListener("keydown",n)}))}modifyReload(){FSBL&&u.default.onReady((()=>{u.default.addBrowserHotkey(["ctrl","r"],S.reload)}))}addListeners(e=Function.prototype){this.listenForHashChanges(),this.preventUnintendedDropEvents(),this.rejectWindowsKeyResizes(),this.modifyReload(),S.addListener("setParent",(()=>{h.default.system.info("WindowClient.setParent deregisterWithDockingManager"),this.deregisterWithDockingManager()})),S.addEventListener("maximized",this.onWindowMaximized),S.addEventListener("minimized",this.onWindowMinimized),S.addEventListener("restored",this.onWindowRestored),S.addEventListener("blurred",this.onWindowBlurred),S.addEventListener("focused",this.onWindowFocused),e()}updateHeaderState(e,t){this.commandChannel&&this.commandChannel(e,t)}headerCommandChannel(e){this.commandChannel=e}ejectFromGroup(){S.ejectFromGroup()}setWindowTitle(e){h.default.system.deprecated("This method is deprecated and will be removed in a future release. Please simply set the application's `document.title` element to change the title. Or, set `components['Window Manager'].title` in the app's manifest."),this.setWindowTitlePrivate(e)}setWindowTitlePrivate(e){p.default.args(e,"string"),this.title=e,this.updateHeaderState("Main",{windowTitle:e}),S.setTitle(e)}getSpawnData(){if(!this.options.customData)return{};const{spawnData:e}=this.options.customData;return void 0===e?{}:e}getCurrentWindow(){return d.System.Window.getCurrent()}async getDesktopBoundingBox(e){let t=e;"string"==typeof e&&(t=document.querySelector(e));const n=t.getBoundingClientRect(),r=await S.getBounds(),i=r.data;let o,a;r.err?(o=this.options.defaultTop,a=this.options.defaultLeft):(o=i.top,a=i.left);const s={top:o+n.top,left:a+n.left,width:n.width,height:n.height,right:0,bottom:0};return s.right=s.left+s.width,s.bottom=s.top+s.height,s}isPointInBox(e,t){return t.bottom||(t.bottom=t.top+t.height),t.right||(t.right=t.left+t.width),e.x>t.left&&e.x<t.right&&e.y<t.bottom&&e.y>t.top}isMouseOverDOMElement(e,t){this.getDesktopBoundingBox(e).then((e=>{d.System.getMousePosition(((n,r)=>{t(this.isPointInBox(r,e))}))}))}getWindowIdentifier(){var e=null;return this.options&&this.options.customData&&this.options.customData.component&&(e=this.options.customData.component.type),{windowName:S?S.name:window.name,uuid:S?S.uuid:null,componentType:e}}setActive(e){var t,n;e?(n="desktop-active",(t=document.documentElement).classList?t.classList.add(n):C(t,n)||(t.className=`${t.className} ${n}`)):function(e,t){if(e.classList)e.classList.remove(t);else if(C(e,t)){const n=new RegExp(`(\\s|^)${t}(\\s|$)`);e.className=e.className.replace(n," ")}}(document.documentElement,"desktop-active")}getBounds(e){S.getBounds(((t,n)=>{e(t,n)}))}setShape(e,t=Function.prototype){S.setShape(e,t)}startTilingOrTabbing(e,t=Function.prototype){FSBL.Clients.RouterClient.transmit("DockingService.startTilingOrTabbing",e),t()}startMovingWindow(e){d.System.Window.getCurrent().startMovingWindow(e)}stopMovingWindow(){d.System.Window.getCurrent().stopMovingWindow()}cancelTilingOrTabbing(e,t=Function.prototype){console.debug("CancelTilingOrTabbing"),v.default.transmit("DockingService.cancelTilingOrTabbing",e),t()}sendIdentifierForTilingOrTabbing(e,t=Function.prototype){FSBL.Clients.RouterClient.transmit("DockingService.identifierForTilingOrTabbing",e),t()}stopTilingOrTabbing(e,t=Function.prototype){const n=()=>{v.default.query("DockingService.stopTilingOrTabbing",e,(()=>{t()})),v.default.transmit("DockingService.stopTilingOrTabbing",e)};return e.mousePosition?(n(),e.allowDropOnSelf?void 0:t()):d.System.getMousePosition(((r,i)=>{if(e.mousePosition=i,n(),!e.allowDropOnSelf)return t()}))}getStackedWindow(e,t){if(h.default.system.debug("WindowClient.getStackedWindow",e),t=t||e,(e=e||{}).windowIdentifiers=e.windowIdentifiers||[],!S.parentWindow&&e.create){const n=e=>{const{parentName:r}=e.data;S.setParent({windowName:r},((e,n)=>{t?.(e,n)})),S.removeListener("parent-set",n)};S.addListener("parent-set",n),FSBL.Clients.LauncherClient.spawn("StackedWindow",{windowType:"StackedWindow",data:{windowIdentifiers:e.windowIdentifiers},options:{newStack:!0}},((e,n)=>{h.default.system.debug("WindowClient.getStackedWindow-success",e,n),e&&t?.(e,null)}))}else S.getParent(t)}getMonitorInfo(e,t){c.getMyWindowIdentifier((n=>{e.windowIdentifier||(e.windowIdentifier=n),this.routerClient.query("Launcher.getMonitorInfo",e,((e,n)=>{t&&t(e,n.data)}))}))}fitToDOM(e,t){let n=document.documentElement.offsetHeight,r=this.options.width;"function"==typeof e&&(t=e,e=null),e&&e.padding&&(e.padding.height&&(n+=e.padding.height),e.padding.width&&(r+=e.padding.width)),e&&e.maxHeight&&n>e.maxHeight&&(n=e.maxHeight),h.default.system.debug("WindowClient.FitToDOM:newHeight",n,e),this.getMonitorInfo({},((e,i)=>{i&&(n>=i.availableRect.height&&(n=i.availableRect.height),r>=i.availableRect.width&&(r=i.availableRect.width)),h.default.system.debug("WindowClient.FitToDOM:fixBounds",n,r),S.getBounds(((e,i)=>{i.width!=r||i.height!=n?(i.width=r,i.height=n,S.setBounds({bounds:i},t)):"function"==typeof t&&t()}))}))}_setHeaderHeight(e){let t=document.getElementsByClassName("fsbl-header")[0];if(!t)return setTimeout((()=>{this._setHeaderHeight(e)}),100);let n=window.getComputedStyle(t,null).getPropertyValue("height");document.body.style.marginTop=n,e.bumpElements&&"auto"===e.bumpElements.bumpBy&&(e.bumpElements.bumpBy=n),this.bumpFixedElements(e.bumpElements)}async start(e=Function.prototype){if(p.default.args(e,"function"),b.iAmAServiceWindow())return this.isInAService=!0,e();setInterval((()=>{S&&document?.title&&this.title!==document.title&&(!FSBL.System.isBrowserView&&FSBL.System.hasBrowserView||this.setWindowTitlePrivate(document.title))}),200);const t=this;await w.default.getValue("finsemble");let n=null,r=!1,i=!1,o=!1;this.componentState={},(e=>{g.FinsembleWindow.getInstance({name:this.finWindow?.name,uuid:this.finWindow?.uuid},((t,n)=>{if(h.default.system.debug(`FinsembleWindow.getInstance ${this.finWindow?.name}`),"Cannot Wrap Service Manager or Services"==t)return this.isInAService=!0,this.windowHash=c.camelCase("activeWorkspace",window.name),e();!t&&n||h.default.system.error("wrap failure",t),this.finsembleWindow=n,({finsembleWindow:S}=this),this.windowHash=c.camelCase("activeWorkspace",S.name),this.addListeners(),this.routerClient.subscribe("Finsemble.WorkspaceService.groupUpdate",((e,t)=>this.groupUpdateHandler(e,t))),e()}))})((()=>{this.retrieveMonitorDimensions(),this.getInitialOptions((()=>{if(!S||!S.windowOptions)return this.isInAService||h.default.system.error("Something went wrong attempting to get the current window."),e();({customData:n}=S.windowOptions),h.default.system.debug("getInitialOptions",n),n&&(r=_(n,"window.compound",!1),n.cssOverride&&(h.default.system.debug("Window has cssOverride. See local window to inspect object"),i=!0),o=!r&&_(n,["foreign","components","Window Manager","FSBLHeader"],!1)),s.parallel([function(e){i&&t.injectStylesheetOverride(),e()},function(e){w.default.getValue("finsemble",((n,r)=>{n&&h.default.system.error("Error reading windowService config from finsemble");const i=r.services.windowService.config.enableWindowsAeroSnap;t.enableWindowsAeroSnap=m.ConfigUtilInstance.getDefault(r,"config.servicesConfig.docking.enableWindowsAeroSnap",i),e()}))},function(e){if(d.System.isBrowserView())e();else{if(!n||!n.component||b.iAmAServiceWindow())return e();{let r=m.ConfigUtilInstance.getDefault(n,"customData.foreign.services.windowService.manageWindowMovement",!1);r||(r=m.ConfigUtilInstance.getDefault(n,"customData.foreign.services.dockingService.manageWindowMovement",!1));const i=m.ConfigUtilInstance.getDefault(n,"customData.foreign.components.Window Manager.FSBLHeader",!1),o=m.ConfigUtilInstance.getDefault(n,"customData.window.dockable",!1);r=r||i||o;let a=b.checkDeprecatedConfigs(n,{baseString:"customData.foreign.services",newPath:"windowService",oldPath:"dockingService",newValue:"allowAutoArrange",oldValue:"isArrangable"},null);if(null===a&&(a=b.checkDeprecatedConfigs(n,{baseString:"customData.foreign.services",newPath:"windowService",oldPath:"dockingService",newValue:"allowAutoArrange",oldValue:"isArrangeable"},r)),!r&&!a)return e();if(n.window.allowAutoArrange=a,n.window.snapping=b.checkDeprecatedConfigs(n,{baseString:"customData.foreign.services",newPath:"windowService",oldPath:"dockingService",newValue:"allowSnapping",oldValue:"ignoreSnappingRequests"},r),n&&n.foreign&&n.foreign.services){const e=void 0!==n.foreign.services.windowService?"windowService":"dockingService";void 0!==n.foreign.services[e].ignoreSnappingRequests&&(n.window.snapping=!n.foreign.services[e].ignoreSnappingRequests)}if(m.ConfigUtilInstance.getDefault(n,"customData.window.ephemeral",!1)&&!n.window.snapping&&(n.window.snapping=!1),n.window.tiling=b.checkDeprecatedConfigs(n,{baseString:"customData.foreign.services",newPath:"windowService",oldPath:"dockingService",newValue:"allowTiling",oldValue:"ignoreTilingAndTabbingRequests"},r),n.window.tabbing=b.checkDeprecatedConfigs(n,{baseString:"customData.foreign.services",newPath:"windowService",oldPath:"dockingService",newValue:"allowTabbing",oldValue:"ignoreTilingAndTabbingRequests"},r),n&&n.foreign&&n.foreign.services){const e=void 0!==n.foreign.services.windowService?"windowService":"dockingService";void 0!==n.foreign.services[e].ignoreTilingAndTabbingRequests&&(n.window.tiling=!n.window.tiling,n.window.tabbing=!n.window.tabbing)}n.window.canGroup=b.checkDeprecatedConfigs(n,{baseString:"customData.foreign.services",newPath:"windowService",oldPath:"dockingService",newValue:"allowGrouping",oldValue:"canGroup"},r),n.window.canMinimize=b.checkDeprecatedConfigs(n,{baseString:"customData.foreign.services",newPath:"windowService",oldPath:"dockingService",newValue:"allowMinimize",oldValue:"canMinimize"},void 0),void 0===n.window.canMinimize&&(n.window.canMinimize=n.component.canMinimize,void 0===n.window.canMinimize&&(n.window.canMinimize=r)),void 0===n.window.canMaximize&&(n.window.canMaximize=n.component.canMaximize,void 0===n.window.canMaximize&&(n.window.canMaximize=r)),n.window.overwriteStartDocked=m.ConfigUtilInstance.getDefault(n,"customData.foreign.services.workspaceService.global",!1),t.registerWithDockingManager(n.window,(()=>{t.cacheInitialBounds(e)}))}}}],((t,n)=>e(t,n)))}))}))}}var E=new x({startupDependencies:{clients:["storageClient"]},onReady(e){E.start(e)},name:"windowClient"});t.default=E},6192:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Globals=void 0,t.Globals="undefined"==typeof window?n.g:window},4971:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.singleton=void 0,t.singleton=(e,t)=>{const r=Symbol.for(`com.finsemble.singleton.${e}`);return Object.getOwnPropertySymbols(n.g).indexOf(r)>-1||(n.g[r]=new t),n.g[r]}},78379:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.MOVE_REASON=t.LAUNCHER_SERVICE=t.HEARTBEAT_TIMEOUT_CHANNEL=t.COMPONENT_STATE_STORAGE_TOPIC=t.WINDOW_SERVICE_REQUESTS=t.WORKSPACE=t.WINDOW=t.INTERRUPTIBLE_EVENTS=t.EVENT_INTERRUPT_CHANNEL=t.DOCKING=t.SERVICE_STOP_CHANNEL=t.SERVICE_START_CHANNEL=t.WINDOWSTATE=t.SERVICES_STATE_CHANNEL=t.CLIENT_SERVER_MAPPING=t.SERVICE_QUERY_READY_CHANNEL=t.SERVICE_CLOSED_CHANNEL=t.SERVICE_CLOSING_CHANNEL=t.SERVICE_READY_CHANNEL=t.SERVICE_INITIALIZING_CHANNEL=t.APPLICATION_STATE_CHANNEL=t.WRAPPERS=void 0,t.WRAPPERS={EVENTS:["title-changed","bringToFront","setBounds","alwaysOnTop","setOpacity"]},t.APPLICATION_STATE_CHANNEL="Finsemble.Application.State",t.SERVICE_INITIALIZING_CHANNEL="Finsemble.ServiceManager.serviceInitializing",t.SERVICE_READY_CHANNEL="Finsemble.ServiceManager.serviceReady",t.SERVICE_CLOSING_CHANNEL="Finsemble.ServiceManager.serviceClosing",t.SERVICE_CLOSED_CHANNEL="Finsemble.ServiceManager.serviceClosed",t.SERVICE_QUERY_READY_CHANNEL=e=>`Finsemble.ServiceManager.queryReady.${e}`,t.CLIENT_SERVER_MAPPING=e=>({authenticationClient:"authenticationService",configClient:"configService",distributedStoreClient:"dataStoreService",hotkeysClient:"hotkeysService",linkerClient:"linkerService",logger:"loggerService",searchClient:"searchService",storageClient:"storageService",windowClient:"windowService",workspaceClient:"workspaceService"}[e]),t.SERVICES_STATE_CHANNEL="Finsemble.State.Services",(n=t.WINDOWSTATE||(t.WINDOWSTATE={}))[n.NORMAL=0]="NORMAL",n[n.MINIMIZED_WAS_NORMAL=1]="MINIMIZED_WAS_NORMAL",n[n.MAXIMIZED=2]="MAXIMIZED",n[n.MINIMIZED_WAS_MAXIMIZED=3]="MINIMIZED_WAS_MAXIMIZED",n[n.TRANSITIONING=4]="TRANSITIONING",t.SERVICE_START_CHANNEL="Finsemble.Service.Start",t.SERVICE_STOP_CHANNEL="Finsemble.Service.Stop",t.DOCKING={GROUP_UPDATE:"DockingService.groupUpdate",WORKSPACE_GROUP_UPDATE:"Finsemble.WorkspaceService.groupUpdate",REQUEST_PUBLISH:"DockingService.requestGroupDataPublish"},t.EVENT_INTERRUPT_CHANNEL="Finsemble.Event.Interrupt",t.INTERRUPTIBLE_EVENTS=["close-requested","closed","close-complete","_container-close-handlers"],t.WINDOW={DELAYABLE_EVENTS:["close-requested","closed","close-complete","_container-close-handlers"],CANCELABLE_EVENTS:["close-requested"]},t.WORKSPACE={DELAYABLE_EVENTS:["load-requested","close-requested","save-requested"],CANCELABLE_EVENTS:["close-requested"],CLEAN_SHUTDOWN:"Finsemble.Workspace.cleanShutdown",UPDATE_PUBSUB:"Finsemble.WorkspaceService.update",STORAGE_TOPIC:"finsemble.workspace",CACHE_STORAGE_TOPIC:"finsemble.workspace.cache",ALL_WORKSPACES:"finsemble.allWorkspaces",ACTIVE_WORKSPACE:"activeWorkspace",LAST_USED_WORKSPACE_TOPIC:"finsemble",LAST_USED_WORKSPACE_NAME:"finsemble.lastUsedWorkspace.name",LAST_USED_WORKSPACE:"finsemble.lastUsedWorkspace",INITIAL_WORKSPACE_PREFERENCE:"finsemble.initialWorkspace",PUBLISH_REASONS:{INIT:"workspace:initialization",LOAD_DATA_RETRIEVED:"workspace:load:dataRetrieved",LOAD_FINISHED:"workspace:load:finished",WINDOW_REMOVED:"window:remove",WINDOW_ADDED:"window:add",LOAD_STARTED:"workspace:load:start",WORKSPACE_REMOVED:"Workspace:remove",WORKSPACE_RENAMED:"rename",SWITCHTO_TERMINATED:"workspace:switchTo:terminated",NEW_WORKSPACE:"new workspace",SAVE_AS:"APPLICATION LIFECYCLE:WORKSPACE LIFECYCLE:SaveAs:Workspace:Save As"},API_CHANNELS:{NEW_WORKSPACE:"Finsemble.Workspace.NewWorkspace",SAVE:"Finsemble.Workspace.Save",RENAME:"Finsemble.Workspace.Rename",SAVE_AS:"Finsemble.Workspace.SaveAs",SWITCH_TO:"Finsemble.Workspace.SwitchTo",IMPORT:"Finsemble.Workspace.Import",EXPORT:"Finsemble.Workspace.Export",REMOVE:"Finsemble.Workspace.Remove",SAVE_GLOBAL_DATA:"Finsemble.Workspace.SaveGlobalData",SAVE_VIEW_DATA:"Finsemble.Workspace.SaveViewData",GET_GLOBAL_DATA:"Finsemble.Workspace.GetGlobalData",GET_VIEW_DATA:"Finsemble.Workspace.GetViewData",GET_WORKSPACES:"Finsemble.Workspace.GetWorkspaces",GET_WORKSPACE_NAMES:"Finsemble.Workspace.GetWorkspaceNames",SET_WORKSPACE_ORDER:"Finsemble.Workspace.SetWorkspaceOrder",GET_ACTIVE_WORKSPACE:"Finsemble.Workspace.GetActiveWorkspace",GET_ACTIVE_WORKSPACE_DIRTY:"Finsemble.Workspace.GetActiveWorkspaceDirty",GET_TEMPLATES:"Finsemble.Workspace.GetTemplates",IMPORT_TEMPLATE:"Finsemble.Workspace.ImportTemplate",EXPORT_TEMPLATE:"Finsemble.Workspace.ExportTemplate",REMOVE_TEMPLATE:"Finsemble.Workspace.RemoveTemplate",SET_WINDOW_STATE:"Finsemble.Workspace.SetWindowData",GET_WINDOW_STATE:"Finsemble.Workspace.GetWindowData",ADD_WINDOW:"WorkspaceService.addWindow",REMOVE_WINDOW:"WorkspaceService.removeWindow"},DEFAULT_WINDOW_PROPS:["name","componentType","windowType","alwaysOnTop","autoShow","minWidth","minHeight","maxWidth","maxHeight","resizable","maximizable","minimizable","opacity","windowState","left","top","width","height","right","bottom","defaultLeft","defaultTop","defaultWidth","defaultHeight","defaultRight","defaultBottom","monitorInfo","icon","cachedBounds","showTaskbarIcon","isEvergreen","compositeComponentData"],ADDITIONAL_WINDOW_PROPS:{WebWindow:["url","fullscreen","frame","backgroundColor","transparent","waitForPageLoad","affinity","appUUID"],NativeWindow:["path","alias","arguments","argumentsAsQueryString","isWPF"],StackedWindow:["childWindowIdentifiers","visibleWindowIdentifier","bounds"]}},t.WINDOW_SERVICE_REQUESTS={REMOTE_FOCUS:"WindowService.remoteFocus",SET_ALWAYS_ON_TOP:"WindowService-Request-setAlwaysOnTop",IS_ALWAYS_ON_TOP:"WindowService-Request-isAlwaysOnTop"},t.COMPONENT_STATE_STORAGE_TOPIC="finsemble.componentStateStorage",t.HEARTBEAT_TIMEOUT_CHANNEL="Finsemble.WindowService.HeartbeatTimeout",t.LAUNCHER_SERVICE={WINDOW_CLOSED:"LauncherService.WindowClosed"},t.MOVE_REASON={AERO_KEY:"aero_key",SYSTEM_RESTORED:"system_restored"}},13854:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FSBLDependencyManagerSingleton=t.FSBLDependencyManager=void 0;const i=n(5939),o=r(n(39319)),a=n(78379),s=r(n(5020)),l=r(n(72551));class u extends i.EventEmitter{constructor(e){super(),this.callback=e.callback,this.dependencies=e.dependencies,this.startupTimer=null,this.setStartupTimer=this.setStartupTimer.bind(this),this.clearStartupTimer=this.clearStartupTimer.bind(this)}clearStartupTimer(){this.startupTimer&&clearTimeout(this.startupTimer),delete this.startupTimer}setStartupTimer(){const e=this;this.startupTimer=+setTimeout((()=>{e.emit("timeout")}),1e4)}}function c(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}class d{constructor(){this.servicesAreAllOnline={},this.clientsAreAllOnline={},this.onlineClients=[],this.dependencies={},this.startupTimers={},this.startupTimerFired=!1,this.bindCorrectContext()}waitFor(e,t){const n=c();e.clients||(e.clients=[]),e.clients.length&&(e.clients=e.clients.map((e=>e.charAt(0).toLowerCase()+e.slice(1))));const r=new u({dependencies:e,callback:t});return r.setStartupTimer(),r.on("timeout",(()=>{this.onDependencyTimeout(r)})),this.dependencies[n]=r,this.checkDependencies(),r}onDependencyTimeout(e){const t=this.getOfflineClients();let n="APPLICATION LIFECYCLE:STARTUP:Dependency not online after 10 seconds.";t.length&&(n=`${n} Waiting for these clients: ${t.join(", ")}.`),e.emit("err",n)}checkDependencies(){for(const e in this.dependencies){const t=this.dependencies[e],{dependencies:n,callback:r}=t;(!n.clients.length||this.clientsAreAllOnline[e]||(this.clientsAreAllOnline[e]=this.checkClients(n.clients),this.clientsAreAllOnline[e]))&&(delete this.dependencies[e],t.clearStartupTimer(),r&&r())}}getOfflineClients(){let e=[];for(const t in this.dependencies){const{dependencies:n}=this.dependencies[t];e=e.concat(n.clients.filter((e=>!this.onlineClients.includes(e))))}return e.filter(((t,n)=>e.indexOf(t)===n))}checkClients(e){return e.every((e=>this.onlineClients.includes(e)))}setClientOnline(e){this.onlineClients.includes(e)||(this.onlineClients.push(e),this.checkDependencies())}getOnlineClients(){return this.onlineClients}bindCorrectContext(){this.checkDependencies=this.checkDependencies.bind(this),this.checkClients=this.checkClients.bind(this),this.getOfflineClients=this.getOfflineClients.bind(this),this.onDependencyTimeout=this.onDependencyTimeout.bind(this),this.waitFor=this.waitFor.bind(this)}}class f{constructor(){this.offlineServices=[],this.dependencies={},this.checkDependencies=this.checkDependencies.bind(this)}waitFor(e,t){l.default.system.debug("DependencyManager:waitFor",e),e.services||(e.services=[]);const n=c();this.dependencies[n]={dependencies:e,callback:t}}checkDependencies(){if(console.debug("checkDependencies",this.dependencies),Object.keys(this.dependencies))for(const e in this.dependencies){const{dependencies:t,callback:n}=this.dependencies[e];(l.default.system.debug("DependencyManager:checkDependency",t.services,this.offlineServices),!t.services.length||this.checkServices(t.services))&&(console.debug("checkDependencies callback"),delete this.dependencies[e],n&&n())}}checkServices(e){return e.every((e=>this.offlineServices.includes(e)))}setServiceOffline(e){l.default.system.debug("setServiceOffline",e),console.debug("setServiceOffline",e),this.offlineServices.push(e),this.checkDependencies()}}class h extends i.EventEmitter{constructor(){super(),this.startup=new d,this.shutdown=new f,this.RouterClient=o.default,this.AuthorizationCompleted=!1,this.bindCorrectContext(),this.onAuthorizationCompleted(this.startup.checkDependencies),o.default.onReady(this.listenForServices)}bindCorrectContext(){this.listenForServices=this.listenForServices.bind(this),this.onAuthorizationCompleted=this.onAuthorizationCompleted.bind(this)}setClientOnline(e){this.startup.setClientOnline(e)}onServiceStateChange(e){Object.keys(e).forEach((t=>{const{state:n}=e[t];"closed"===n&&this.shutdown.setServiceOffline(t)}))}listenForServices(){l.default.system.debug("DependencyManager:listenForServices before wait"),s.default.waitForBootStage("kernel","stageEntered",(()=>{l.default.system.debug("DependencyManager:listenForServices after wait"),this.RouterClient.subscribe(a.SERVICES_STATE_CHANNEL,((e,t)=>{l.default.system.debug("DependencyManager:listenForServices SERVICES_STATE_CHANNEL",t.data),this.onServiceStateChange(t.data)})),this.RouterClient.addListener(a.SERVICE_CLOSED_CHANNEL,((e,t)=>{l.default.system.debug("DependencyManager:listenForServices SERVICE_CLOSED_CHANNEL",t.data);const n={};n[t.data.name]={state:"closed"},this.onServiceStateChange(n)})),this.RouterClient.subscribe(a.APPLICATION_STATE_CHANNEL,((e,t)=>{switch(t.data.state){case"authenticated":case"ready":break;case"closing":this.shutdown.checkDependencies()}}))}))}onAuthorizationCompleted(e){this.AuthorizationCompleted?e():this.addListener("AuthorizationCompleted",e)}}t.FSBLDependencyManager=h,t.FSBLDependencyManagerSingleton=new h,t.default=t.FSBLDependencyManagerSingleton},24232:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.checkDeprecatedConfigs=t.isEqualIgnoringArrayOrder=t.sleep=t.checkIfBoundsAreEqual=t.removeKeys=t.toRecord=t.isStackedWindow=t.wrapWithTimeout=t.timeoutPromise=t.getRandomWindowName=t.getProp=t.composeRL=t.instrumentPromise=t.promisify=t.identity=t.isNumber=t.chunkArray=t.Timeout=t.mockLogger=t.capitalizeFirst=t.clone=t.isServiceInWindow=t.iAmAServiceWindow=t.guuid=void 0;const i=n(50586),o=r(n(80089)),a=r(n(75892)),s=r(n(47184)),l=r(n(65162)),u=n(33998),c=r(n(72551)),d=window;function f(e,t){if(Array.isArray(e))return e.slice();try{return JSON.parse(JSON.stringify(e))}catch(e){return t("clone error",e),e}}function h(e,t){return new Promise(((n,r)=>{const i=setTimeout((()=>{clearTimeout(i),r(t)}),e)}))}function p(e,t,n){return`${e}.${t}.${n}`}function g(e,t,n){const r=`${p(e.baseString,e.newPath,e.newValue)}`;c.default.system.deprecated(`${p(e.baseString,t,n)} has been deprecated in favor of ${r}`)}t.guuid=function(){return i.v4()},t.iAmAServiceWindow=function(){return!(!d.finsembleServices||!d.finsembleServices.length)},t.isServiceInWindow=function(e){return d.finsembleServices&&d.finsembleServices.find((t=>t.name===e))},t.clone=f,t.capitalizeFirst=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},t.mockLogger=new class{constructor({debug:e}={debug:!0}){e?(this.system=console,this.system.debug=console.log):this.system={warn:Function.prototype,debug:Function.prototype,log:Function.prototype,info:Function.prototype,error:console.error}}isLogMessage(){return!0}start(){}},t.Timeout=class{constructor(e,t){this.fired=!1,this.id=setTimeout((()=>{e(),this.fired=!0}),t),this.clear=this.clear.bind(this),this.didFire=this.didFire.bind(this)}clear(){this.fired||clearTimeout(this.id)}didFire(){return this.fired}},t.chunkArray=function(e,t){if(e<=0)throw new Error("Can't chunk array by number less than 0");return t.reduce(((n,r,i)=>{if(i%e==0){const r=[];for(let n=i;n<i+e;n++)n<t.length&&r.push(t[n]);n.push(r)}return n}),[])},t.isNumber=function(e){return!(!e||Number.isNaN(Number(e)))&&Number(e)},t.identity=function(e){return e},t.promisify=function(e,t){return function(){const n=Array.prototype.slice.call(arguments);return new Promise(((r,i)=>{n.push(((e,t)=>e?i(e):r(t))),e.apply(t,n)}))}},t.instrumentPromise=async(e,t,n)=>{const r=`${t} end`;return e(`${t} start`),n.then((()=>e(r)))},t.composeRL=(...e)=>e.reduce(((e,t)=>(...n)=>e(t(...n)))),t.getProp=function e(t,n,r){const i=Array.isArray(n)?n:n.split(".").filter((e=>e.length));return i.length?e(t[i.shift()],i,r):void 0===t?r:t},t.getRandomWindowName=function(e="RouterClient"){return`${e}-${i.v4()}`},t.timeoutPromise=h,t.wrapWithTimeout=function(e,t,n){return Promise.race([e,h(t,n)])},t.isStackedWindow=function(e){return e&&"StackedWindow"===(o.default(e,"windowIdentifier.windowType")||e.windowType)},t.toRecord=function(e,t){const n="string"==typeof e?t=>t[e]:e;return t.reduce(((e,t)=>(e[n(t)]=t,e)),{})},t.removeKeys=function(e,t){if(!e)return e;const n=Object.keys(e).filter((e=>!t.includes(e)));return a.default(e,n)},t.checkIfBoundsAreEqual=function(e,t){if(!e||!t)return!1;const n=["left","right","top","bottom","width","height"],r=a.default(e,n),i=a.default(t,n);return!!s.default(r,i)},t.sleep=function(e,t=!1){return new Promise(((n,r)=>{t?setTimeout((()=>{try{r("timeout expired")}catch{}}),e):setTimeout(n,e)}))},t.isEqualIgnoringArrayOrder=function(e,t){const n=f(e,Function.prototype),r=f(t,Function.prototype);return l.default(n,r,((e,t)=>{if(Array.isArray(e)&&Array.isArray(t))return l.default(e.sort(),t.sort())}))},t.checkDeprecatedConfigs=function(e,t,n){const{baseString:r,oldPath:i,newPath:o,oldValue:a,newValue:s}=t;let l=u.ConfigUtilInstance.getDefault(e,p(r,o,s),null);return null===l&&(l=u.ConfigUtilInstance.getDefault(e,p(r,o,a),null),l?g(t,o,a):(l=u.ConfigUtilInstance.getDefault(e,p(r,i,s),null),l?g(t,i,s):(l=u.ConfigUtilInstance.getDefault(e,p(r,i,a),null),l?g(t,i,a):l=n))),l}},59459:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(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)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=a(n(39319)),l=o(n(78379));t.default=class{constructor(e,t){this.allowDelay=!1,this.delayed=!1,this.allowCancel=!1,this.canceled=!1,this.completed=!1,this.event=e.event,this.source=e.source,this.sourceType=e.sourceType,this.listenerGuid=e.listenerGuid,l[this.sourceType.toUpperCase()]&&l[this.sourceType.toUpperCase()].DELAYABLE_EVENTS.includes(this.event)&&(this.allowDelay=!0),l[this.sourceType.toUpperCase()]&&l[this.sourceType.toUpperCase()].CANCELABLE_EVENTS.includes(this.event)&&(this.allowCancel=!0),this.handler=e.handler,this.queryMessage=t,this.guid=t.data.guid,this.internalHandler()}async internalHandler(){this.data=this.queryMessage.data.data,this.handler&&await this.handler(this),this.delayed||this.canceled||this.completed||this.done()}cancel(){this.allowCancel&&(this.canceled=!0,this.done())}wait(){this.allowDelay?(this.delayed=!0,this.queryMessage.sendQueryResponse(null,{delayed:!0})):this.done()}done(e){this.completed=!0,this.delayed?s.default.transmit(`Finsemble.Listener.Done.${this.guid}.${this.listenerGuid}`,{canceled:this.canceled,data:e}):this.queryMessage.sendQueryResponse(null,{canceled:this.canceled,data:e})}}},57815:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(39319)),o=r(n(72551)),a=r(n(59459));t.default=class{constructor(e){this.eventList=[],this.eventHandlerMap={},this.eventGuidMap={},this.name=e.name,this.sourceType=e.sourceType,window.addEventListener("beforeunload",(()=>{this.cleanup()}))}addListener(e,t){return this.addEventListener(e,t)}removeListener(e,t){return this.removeEventListener(e,t)}addEventListener(e,t){if(!t)return console.error("no handler",e);if(o.default.system.debug("addEventListener:",e),this.eventHandlerMap[e]||(this.eventHandlerMap[e]=[],this.eventGuidMap[e]=[]),!this.eventHandlerMap[e].includes(t)){const n=`${window.name}_public_${Date.now()}_${Math.random()}`;this.eventHandlerMap[e].push(t),this.eventGuidMap[e].push(n),i.default.transmit(`Finsemble.RegisterInterruptibleEvent.${this.name}`,{event:e,listenerGuid:n}),i.default.addResponder(`Finsemble.Interrupt.${n}`,((r,i)=>{new a.default({source:this.name,sourceType:this.sourceType,listenerGuid:n,handler:t,event:e},i)}))}}removeEventListener(e,t){if(o.default.system.debug("removeEventListener:",e),!this.eventHandlerMap[e])return o.default.system.warn("not found");let n=this.eventHandlerMap[e].indexOf(t);if(-1!==n){const t=this.eventGuidMap[e][n];this.eventHandlerMap[e].splice(n,1),this.eventGuidMap[e].splice(n,1),i.default.transmit(`Finsemble.UnregisterInterruptibleEvent.${window.name}`,{event:e,guid:t}),i.default.removeResponder(`Finsemble.Interrupt.${t}`)}}cleanup(){for(var e of Object.keys(this.eventHandlerMap))for(var t of this.eventHandlerMap[e])this.removeEventListener(e,t)}}},82369:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(72551)),o=n(51742),a={activeTransports:{},liveTransport:null,addTransport(e,t){this.activeTransports[e]=t,i.default.system.log(`RouterTransport ${e} added to activeTransports`)},getActiveTransports(e){const t=[];function n(e){-1===t.indexOf(e)&&t.push(e)}return o.System.InterApplicationBus&&n("IPCBus"),n("FinsembleTransport"),SharedWorker&&n("SharedWorker"),n(e.sameDomainTransport),n(e.crossDomainTransport),i.default.system.log("getActiveTransports",t),t},getTransport:(e,t,n,r,i)=>new Promise(((o,s)=>{const l=a.activeTransports[t];l?a.liveTransport=new l(e,n,r,i,(e=>{o(e)})):s(`unknown router transport name: ${t}`)})),close(){a.liveTransport&&(a.liveTransport.close(),a.liveTransport=null)}},s=function(e,t,n,r,o){let a;const s=this;this.send=function(e,t){1===arguments.length?(t=arguments[0],e=null):(e=arguments[0],t=arguments[1]),i.default.system.verbose("SharedWorkerTransport Outgoing Transport",t);try{a.port.postMessage([e,t])}catch(e){i.default.system.error(`SharedWorkerTransport: post message failed: ${JSON.stringify(e)}`,"Probable cause is sending illegal data type (e.g. function).")}},this.identifier=function(){return"SharedWorker"};const l=e.transportSettings.SharedWorker&&e.transportSettings.SharedWorker.workerPath?e.transportSettings.SharedWorker.workerPath:`${e.routerDomainRoot}/common/routerSharedWorker.js`;i.default.system.log(`SharedWorker Transport Initializing for ${n} using ${l}`),console.log(`SharedWorker Transport Initializing for ${n} using ${l}`),a=new SharedWorker(l,{name:"Finsemble",credentials:"include"}),a.port.onmessage=function(e){const n=e.data[0],r=e.data[1],o={transportID:s.identifier(),port:n};i.default.system.verbose("SharedWorkerTransport Incoming Transport",o,"Message",r),t(o,r)},a.onerror=function(e){i.default.system.error(`SharedWorkerTransport Transport Error${JSON.stringify(e)}`)},a.port.start(),"RouterService"===n&&a.port.postMessage({data:"connect",source:"RouterService"}),this.close=()=>{a.port.close()},o(this)},l=function(e,t,n,r,a){const{uuid:s}=o.System.Application.getCurrent(),l=this;this.send=function(e,t){let n;1===arguments.length?(n=r,t=arguments[0]):(n=e.name,t=arguments[1]),i.default.system.verbose("IPCTransport Outgoing Transport",s,n,"Message",t),o.System.InterApplicationBus.publish(n,t,(()=>{}),(()=>{}))},this.identifier=function(){return"IPCBus"},i.default.system.log(`IPCBus Transport Initializing for ${n}`),console.log(`IPCBus Transport Initializing for ${n}`);const u=o.System.InterApplicationBus.subscribe("*",n,(function(e,n){const r={transportID:l.identifier(),senderUuid:n,name:e.header.origin};i.default.system.verbose("IPCTransport Incoming Transport",r,"Message",e),t(r,e)}),(()=>{}),(function(e){i.default.system.error(`IPCBus Subscribe Failure: ${e}`)}));this.close=()=>{o.System.InterApplicationBus.unsubscribe(u)},a(this)},u=function(e,t,n,r,o){const a=`${e?.transportSettings?.FinsembleTransport?.serverAddress??e?.transportSettings?.serverAddress??"ws://127.0.0.1:3376"}/router`,s=this;let l;function u(){i.default.system.error(`FinsembleTransport Connection Timeout for ${n}`),o(s)}function c(){i.default.system.log(`FinsembleTransport Transport Initializing for ${n} using ${a}`),console.log(`FinsembleTransport Transport Initializing for ${n} using ${a}`),a.startsWith("ws:")||a.startsWith("wss:")||console.error(`Illegal WebSocket address "${a}" (Missing ws:// or wss:// ?)`),l=new WebSocket(a);const e=setTimeout(u,3e3);l.addEventListener("open",(()=>{clearTimeout(e),i.default.system.log("FinsembleTransport Connected to Server"),console.log("FinsembleTransport Connected to Server"),l.addEventListener("message",(e=>{const r=JSON.parse(e.data);("RouterService"===n&&"ROUTER_SERVICE"==r.dest||n===r.message.client)&&function(e){const n={transportID:s.identifier(),client:e.clientMessage.header.origin};i.default.system.verbose("FinsembleTransport Incoming Transport",n,"Message",e),t(n,e.clientMessage)}(r.message)})),o(s)}))}this.send=function(e,t){let n,r;1===arguments.length?(n="ROUTER_SERVICE",r={clientMessage:t=arguments[0]}):(n="ROUTER_CLIENT",t=arguments[1],r={client:e.client,clientMessage:t}),i.default.system.verbose("FinsembleTransport Outgoing Transport",n,"NewMessage",r),l.readyState===WebSocket.OPEN&&l.send(JSON.stringify({dest:n,message:r})),l.readyState===WebSocket.CONNECTING&&l.addEventListener("open",(()=>{l.send(JSON.stringify({dest:n,message:r}))})),l.readyState===WebSocket.CLOSED&&(c(),l.addEventListener("open",(()=>{l.send(JSON.stringify({dest:n,message:r}))}))),l.readyState===WebSocket.CLOSING&&(l.onclose=()=>{c(),l.addEventListener("open",(()=>{l.send(JSON.stringify({dest:n,message:r}))}))})},this.identifier=function(){return"FinsembleTransport"},this.close=()=>{l.close()},c()};a.addTransport("SharedWorker",s),a.addTransport("IPCBus",l),a.addTransport("FinsembleTransport",u),t.default=a},51742:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.System=void 0;const r=n(16925);class i{constructor(e,t,n){return new fin.desktop.Window(e,t)}static get getCurrent(){return fin.desktop.Window.getCurrent}static get wrap(){return fin.desktop.Window.wrap}}class o{constructor(e,t,n){t&&t()}static getCurrent(){const{windowName:e}=r.Startup.getInstance().getStartupData();return{name:e,uuid:`${e}-uuid`,getOptions:e=>{e&&e({})},addEventListener:()=>{},updateOptions:()=>{},close:()=>{},startMovingWindow:()=>{},stopMovingWindow:()=>{},isShowing:()=>{},bringToFront:()=>{},show:()=>{},hide:()=>{},setTaskbarIcon:()=>{}}}static wrap(){return{}}}class a{constructor(e,t,n){return new fin.desktop.Application(e,t)}static get getCurrent(){return fin.desktop.Application.getCurrent}static get wrap(){return fin.desktop.Application.wrap}}class s{constructor(e){new fin.desktop.Notification(e)}}class l{constructor(){return new fin.desktop.System.Clipboard}static get writeText(){return fin.desktop.System.Clipboard.writeText}static get writeHTML(){return fin.desktop.System.Clipboard.writeHTML}static get writeRTF(){return fin.desktop.System.Clipboard.writeRTF}static get readText(){return fin.desktop.System.Clipboard.readText}static get readHTML(){return fin.desktop.System.Clipboard.readHTML}static get readRTF(){return fin.desktop.System.Clipboard.readRTF}}class u{static isFreestanding(){return"undefined"==typeof fin}static get Application(){return a}static get Window(){return u.isFreestanding()?o:i}static get Notification(){return s}static get Clipboard(){return l}static async getMousePosition(e=Function.prototype){return new Promise(((t,n)=>{fin.desktop.System.getMousePosition((n=>{(n.left||0===n.left)&&(n.x=n.left),(n.top||0===n.top)&&(n.y=n.top),e(null,n),t(n)}),(t=>{e(t,null),n(t)}))}))}static getSDServerInfo(e=Function.prototype){return new Promise((t=>{fin.desktop.System.getSDServerInfo((n=>{t(n),e(n)}))}))}static getMonitorInfo(e=Function.prototype){return new Promise((t=>{fin.desktop.System.getMonitorInfo((n=>{t(n),e(n)}))}))}static container(){return"undefined"==typeof fin?"freestanding":fin.container?fin.container:"FEA"}static isBrowserView(){return!u.isFreestanding()&&fin.isBrowserView()}static getViewId(){return fin.getViewId()}static hasBrowserView(){return!u.isFreestanding()&&fin.hasBrowserView()}static get fin(){return fin||{}}static ready(e){return new Promise((t=>{fin.desktop.main((()=>{e&&e(),t()}))}))}static getHostSpecs(e=Function.prototype){return new Promise((t=>{fin.desktop.System.getHostSpecs((n=>{t(n),e(n)}))}))}static get InterApplicationBus(){return fin.desktop.InterApplicationBus}static get launchExternalProcess(){return fin.desktop.System.launchExternalProcess}static get terminateExternalProcess(){return fin.desktop.System.terminateExternalProcess}static get getAllApplications(){return fin.desktop.System.getAllApplications}static get exit(){return fin.desktop.System.exit}static get clearCache(){return fin.desktop.System.clearCache}static get showDeveloperTools(){return fin.desktop.System.showDeveloperTools}static get getRuntimeInfo(){return fin.desktop.System.getRuntimeInfo}static get addEventListener(){return u.isFreestanding()?window.addEventListener:fin.desktop.System.addEventListener}static get addSelectClientCertificateListener(){return fin.desktop.System.addSelectClientCertificateListener}static get addCertificateErrorListener(){return fin.desktop.System.addCertificateErrorListener}static get getVersion(){return fin.desktop.System.getVersion}static get getUpdateAvailable(){return fin.desktop.System.getUpdateAvailable}static get openUrlWithBrowser(){return fin.desktop.System.openUrlWithBrowser}static get getAllWindows(){return fin.desktop.System.getAllWindows}static get getProcessList(){return fin.desktop.System.getProcessList}static get getProtocolString(){return fin.desktop.System.getProtocolString}static get hideSplashScreen(){return fin.desktop.System.hideSplashScreen}static startupApplicationHandshake(){fin.desktop.System.startupApplicationHandshake&&fin.desktop.System.startupApplicationHandshake()}static closeApplication(e,t=Function.prototype){return new Promise((n=>{let r,i=!1;const o=()=>{i||(console.log("Attempting to terminate",e.uuid),e.terminate((()=>{t(),n()}),(()=>{i||(i=!0,clearInterval(r),console.log("force closing ",e.uuid),e.terminate())})))};r=setInterval(o,2e3),console.log("closing ",e.uuid),e.close(!1,(()=>{console.log("app.close: successfully closed",e.uuid),i=!0,clearInterval(r),t(),n()}),o)}))}}t.System=u},5020:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(39319)),o=r(n(72551)),a=n(56188),s=n(33509),l=n(95269),u=new class{publishBootStatus(e,t,n){console.log("publishStartingStatus",e,n),o.default.system.debug("publishBootStatus",e,t,n),i.default.publish(l.statusChannel(e),{name:e,type:t,state:n})}waitForBootStage(e,t,n=Function.prototype){return new Promise(((r,l)=>{o.default.system.debug("SystemManagerClient.waitForBootStage entry",e,t);const u=a.ALL_BOOT_STAGES.indexOf(e);"microkernel"===e&&"stageEntered"===t&&o.default.system.error("Cannot wait on `stageEntered` for microkernel because router isn't up yet. So will instead wait for microkernal stage complete.");const c=i.default.subscribe(s.STAGE_CHANNEL,((s,d)=>{if(o.default.system.debug("SystemManagerClient.waitForBootStage new stage",d.data.stage,c),s)o.default.system.error("SystemManagerClient.waitForBootStage subscribe error",s),n(s),l(s);else if(-1===u)s="illegal stage argument",o.default.system.debug("SystemManagerClient.waitForBootStage subscribe error",s,e),n(s),l(s);else{const s=a.ALL_BOOT_STAGES.indexOf(d.data.stage);o.default.system.debug("SystemManagerClient.waitForBootStage new stage",d.data,c),"stageEntered"===t&&s+1>=u?(o.default.system.debug("SystemManagerClient.waitForBootStage stageEntered",e,c,n.name),n(),r(),i.default.unsubscribe(c)):"stageCompleted"===t&&s>=u?(o.default.system.debug("SystemManagerClient.waitForBootStage completed",e,c),n(),r(),i.default.unsubscribe(c)):o.default.system.debug(`SystemManagerClient.waitForBootStage else currentStageIndex=${s} stageIndex=${u} `,s,u,e,c)}}))}))}waitForStartup(e,t=Function.prototype){return new Promise(((n,r)=>{o.default.system.debug(`SystemManagerClient.waitForStartup.${e}`,e);const a=i.default.subscribe(l.statusChannel(e),((s,l)=>{o.default.system.debug("SystemManagerClient.waitForStartup subscribe",e,s,l),s?(o.default.system.error("SystemManagerClient.waitForStartup subscribe error",s),t(s),r()):l.data.name===e&&"completed"===l.data.state&&(o.default.system.debug("SystemManagerClient.waitForStartup completed",e),t(),n(),i.default.unsubscribe(a))}))}))}publishCheckpointState(e,t,n){console.log("publishCheckpoint",e,t,n,l.checkpointChannel(e,t)),o.default.system.debug("publishCheckpoint",e,t,n,l.checkpointChannel(e,t)),i.default.publish(l.checkpointChannel(e,t),{windowName:e,checkpointName:t,state:n})}showSystemLog(){o.default.system.debug("SystemManagerClient.showSystemLog"),i.default.transmit(s.SHOW_SYSLOG_CHANNEL,!0)}systemLog(e,t){o.default.system.debug("SystemManagerClient.systemLog",e,t),i.default.transmit(s.SYSLOG_CHANNEL,{params:e,logMessage:t})}};t.default=u},76420:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.windowNameFromRouterHeader=t.getWindowType=t.isWindows=t.adjustBoundsToBeOnMonitor=t.isOnAMonitor=t.getNewBoundsWhenMovedToMonitor=t.openSharedData=t.injectJS=t.guuid=t.camelCase=t.getMyWindowIdentifier=t.getMonitorByDescriptor=t.windowOnMonitor=t.getMonitorFromCommand=t.getMonitor=t.getWhichMonitor=t.findMonitor=t.getWindowDescriptor=t.getFinWindow=t.getMonitorFromWindow=t.getMonitorFromXY=t.getAllMonitors=t.crossDomain=t.isPercentage=t.castToPromise=t.getContainerVersion=t.clone=t.Monitors=void 0;const i=r(n(36589)),o=n(51742),a=r(n(93802)),s=r(n(72551));function l(e,t={}){if(null===e||"object"!=typeof e)return e;if(e.constructor==Date||e.constructor==RegExp||e.constructor==Function||e.constructor==String||e.constructor==Number||e.constructor==Boolean)return new e.constructor(e);t=t||new e.constructor;for(const n in e)t[n]=void 0===t[n]?l(e[n],null):t[n];return t}function u(e,n){const r=Number.isFinite(e.x)?e.x:e.defaultLeft,i=Number.isFinite(e.y)?e.y:e.defaultTop,o=r+e.defaultWidth,a=i+e.defaultHeight;return new Promise(((e,u)=>{t.Monitors.getMonitorFromScaledXY(r,i,(c=>{if(!c)return s.default.system.debug("getMonitorFromWindow - top-left is off screen, trying bottom right"),void t.Monitors.getMonitorFromScaledXY(o,a,(o=>{if(!o)return s.default.system.debug("getMonitorFromWindow - bottom-right is off screen, getting primary"),void t.Monitors.getAllMonitors((t=>{t[0]?(n&&n(t[0]),e(t[0])):(u(new Error("Cannot find monitor for window.")),n&&n(null))}));o=l(o);const{monitorRect:a}=o;(a.left<r||a.right<i)&&(o.straddling=!0),n&&n(o),e(o)}));c=l(c);const{monitorRect:d}=c;(d.right>o||d.bottom>a)&&(c.straddling=!0),n&&n(c),e(c)}))}))}function c(e,t){return new Promise(((n,r)=>{const i=o.System.Window.getCurrent();i.getOptions((a=>{if(e&&e.windowName){e.uuid||(e.uuid=a.uuid);const i=o.System.Window.wrap(e.uuid,e.windowName);i.getInfo((()=>{t&&t(i),n(i)}),(()=>{t&&t(null),r(`Window ${e.windowName} not found. UUID: ${e.uuid}`),console.debug(`util.getFinWindow: Window ${e.windowName} not found`)}))}else if(e&&e.componentType)if(void 0!==window.LauncherService){const i=window.LauncherService.componentFinder(e);i?(n(i),t&&t(i)):(r(`util.getFinWindow: Component ${e.componentType} not found.`),t&&t(null))}else r("getFinWindow by componentType is currently only operable within LaunchService"),t&&t(null);else t&&t(i),n(i)}))}))}function d(e,t){return new Promise(((n,r)=>{c(e).then((e=>{e.getOptions((e=>{t&&t(e),n(e)}))})).catch((e=>{console.warn(e),t&&t(null),r(e)}))}))}function f(e,t,n){for(let r=0;r<e.length;r++){const i=e[r];if(i[t]===n)return i}return null}function h(e,n){let r;arguments.length>2&&(e={commandMonitor:arguments[0],monitors:arguments[1],launchingMonitorPosition:arguments[2]},n=null);let{commandMonitor:i,monitors:o,launchingMonitorPosition:a}=e;const s=i&&""!==i||0===i;if("primary"===i)r=f(o,"whichMonitor","primary");else if("next"===i){let e=a+1;e>=o.length&&(e=0),r=o[e]}else if("previous"===i){let e=a-1;e<0&&(e=o.length-1),r=o[e]}else if("mine"===i){var l=!0;activeWindows.getWindow(e.windowIdentifier.windowName)._getBounds(((e,i)=>{e?(r=o[0],n(r)):t.Monitors.getMonitorFromScaledXY(i.left,i.top,(e=>{n(e)}))}))}else s?(i>=o.length&&(i=o.length-1),r=o.filter((e=>e.position===i))[0]):a&&(r=o[a]);if(r||(r=o[0]),!l){if(!n)return r;n(r)}}function p(e,t){return new Promise(((n,r)=>{d(e,(e=>{e?u(e,(e=>{t&&t(e),n(e)})):r("util.getMonitor: Can't locate windowDescriptor.")}))}))}t.Monitors=new a.default(Function.prototype,Function.prototype,{System:o.System}),t.clone=l,t.getContainerVersion=function(e=Function.prototype){return new Promise((t=>{o.System.getVersion((n=>{const r=n.split(".").map(Number),i={major:r[0],chromium:r[1],minor:r[2],patch:r[3]};e(i),t({versionObject:i})}))}))},t.castToPromise=function(e){return function(...t){return new Promise(((n,r)=>{const i=e.apply(null,Array.from(t));try{return i.then(n,r)}catch(e){e instanceof TypeError?n(i):r(e)}}))}},t.isPercentage=function(e){return"string"==typeof e&&-1!==e.indexOf("%")},t.crossDomain=function(e){const t=document.createElement("a");t.href=e;const n=window.location.hostname===t.hostname,r=window.location.protocol===t.protocol,i=(void 0!==window.location.port?window.location.port:80)===(void 0!==t.port?t.port:80),o=!(n&&i&&r);return s.default.system.debug(`Launcher crossDomain=${o} (${n}:${r}:${i})`),o},t.getAllMonitors=t.Monitors.getAllMonitors,t.getMonitorFromXY=t.Monitors.getMonitorFromScaledXY,t.getMonitorFromWindow=u,t.getFinWindow=c,t.getWindowDescriptor=d,t.findMonitor=f,t.getWhichMonitor=h,t.getMonitor=p,t.getMonitorFromCommand=function(e,n,r){return new Promise((i=>{p(n,(n=>{t.Monitors.getAllMonitors((t=>{h({commandMonitor:e,monitors:t,launchingMonitorPosition:n.position},(e=>{r&&r(e),i(e)}))}))}))}))},t.windowOnMonitor=function(e,t){return e.left>=t.left&&e.left<t.right||e.right<=t.right&&e.right>t.left},t.getMonitorByDescriptor=function(e,t){return new Promise((n=>{u(e,(e=>{t&&t(e),n(e)}))}))},t.getMyWindowIdentifier=function(e){const t=o.System.Window.getCurrent();return new Promise((n=>{t.getOptions((r=>{let i=null;const{customData:o}=r;o&&o.component&&(i=o.component.type);const a={windowName:t.name,uuid:t.uuid,componentType:i};e&&e(a),n(a)}))}))},t.camelCase=function(...e){let t="";for(let n=0;n<e.length;n++)t=`${t} ${e[n]}`;return t.replace(/\s(.)/g,(e=>e.toUpperCase())).replace(/\s/g,"").replace(/^(.)/,(e=>e.toLowerCase()))},t.guuid=function(){return i.default()},t.injectJS=function(e,t){const n=document.createElement("script");n.onload=t,n.type="text/javascript",n.async=!0,n.src=e;const r=document.getElementsByTagName("head")[0],i=r.getElementsByTagName("script")[0];r.insertBefore(n,i)},t.openSharedData=function(e,t){const n=FSBL.Clients.LauncherClient,r=FSBL.Clients.LinkerClient;e.multipleOpenerHandler||(e.multipleOpenerHandler=function(e){let t,n=0;for(const r of Object.keys(e))e[r].length>n&&(t=r,n=e[r].length);return[t]});const i=[],o={};n.getComponentsThatCanReceiveDataTypes({dataTypes:Object.keys(e.data)},((a,l)=>{for(const e of Object.keys(l))if(l[e].componentTypes.length)for(const t of l[e].componentTypes)o[t]?o[t].push(e):o[t]=[e];else{const t=`No Components Available to Handle the type: ${e}`;i.push(t),s.default.system.error(t)}let u=Object.keys(o);if(u.length){u.length>1&&(u=e.multipleOpenerHandler(o));const a=Object.keys(r.channels);if(a.length)if(r.getLinkedComponents({componentTypes:u,windowIdentifier:r.windowIdentifier()}).length||e.publishOnly)r.publish({dataType:"Finsemble.DragAndDropClient",data:e.data},(()=>{})),t&&t(i.length?i:null,"Data published");else{for(const t of u)n.spawn(t,{data:{sharedData:e.data,linker:{channels:a}},addToWorkspace:!0});t&&t(i.length?i:null,"Linked Window(s) spawned with data")}else if(!e.publishOnly){for(const t of u)n.spawn(t,{data:{sharedData:e.data},addToWorkspace:!0});t&&t(i.length?i:null,"New Window(s) spawned with data")}}else t&&t(i.length?i:null,null)}))},t.getNewBoundsWhenMovedToMonitor=function(e,t,n="availableRect"){const r=e[n]||e.availableRect||e.monitorRect,i=l(t);return t.top<r.top?i.top=r.top:t.top>r.bottom-t.height&&(i.top=r.bottom-t.height),t.left<r.left?i.left=r.left:t.left>r.right-t.width&&(i.left=r.right-t.width),i.bottom=i.top+i.height,i.right=i.left+i.width,i.right>r.right&&(i.right=r.right),i.top<r.top&&(i.top=r.top),i.left<r.left&&(i.left=r.left),i.bottom>r.bottom&&(i.bottom=r.bottom),i.height=i.bottom-i.top,i.width=i.right-i.left,{newBounds:i,distanceMoved:Math.sqrt((t.left-i.left)**2+(t.top-i.top)**2),monitor:e}},t.isOnAMonitor=function(e){return this.Monitors.allMonitors.some((t=>{const{monitorRect:n}=t;return e.left>=n.left&&e.left<=n.right&&e.right>=n.left&&e.right<=n.right&&e.top>=n.top&&e.top<=n.bottom&&e.bottom>=n.top&&e.bottom<=n.bottom}))},t.adjustBoundsToBeOnMonitor=function(e,t="availableRect"){if(this.isOnAMonitor(e))return s.default.system.info("Launcher.adjustWindowDescriptorBoundsToBeOnMonitor: on monitor."),e;const n=this.Monitors.allMonitors.map((n=>{let r=n.rawMonitor?n.rawMonitor:n;return this.getNewBoundsWhenMovedToMonitor(r,e,t)})).sort(((e,t)=>e.distanceMoved-t.distanceMoved))[0];return s.default.system.info("Launcher.adjustWindowDescriptorBoundsToBeOnMonitor: not on monitor. bounds",e,"monitor name",n.monitor.name,"newBounds",n.newBounds),n.newBounds},t.isWindows=async function(e=Function.prototype){const t=(await o.System.getHostSpecs()).name.toUpperCase().includes("WINDOWS");return e(t),t},t.getWindowType=function(e){const t="WebWindow";if(e.windowType&&!["assimilation","assimilated","native","application","NativeWindow","FinsembleNativeWindow","CompoundWindow","WebWindow","WebApplication","StackedWindow"].includes(e.windowType))return s.default.system.error(`Invalid windowType: ${e.windowType}, defaulting to windowType: WebWindow`),t;let n=e.windowType||t;switch(e.windowType){case"assimilation":case"assimilated":n="NativeWindow";break;case"native":n="FinsembleNativeWindow";break;case"application":n="WebApplication";break;case"Web":n="WebWindow";break;case"StackedWindow":n="StackedWindow"}return e.native&&(n="NativeWindow"),e.compound&&(n="CompoundWindow"),n},t.windowNameFromRouterHeader=e=>{let t,n=/\.(.*)\./s;try{t=e.origin.match(n)[1]}catch(n){t=e.origin.split(".")[1]}return t}},10428:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FinsembleView=void 0,t.FinsembleView=class{constructor(e){this.win=e.win,this.id=e.id}async remove(e=Function.prototype){await this.win.removeBrowserView(this,e)}async setBounds(e,t=Function.prototype){await this.win.setViewBounds({view:this,bounds:e},t)}async bringToFront(e=Function.prototype){await this.win.bringViewToFront(this,e)}}},75688:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(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)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FinsembleWindow=void 0;const s=a(n(39319)),l=a(n(72551)),u=o(n(76420)),c=a(n(57815)),d=o(n(78379)),f=n(24232),h=n(51742),p=a(n(99748)),g=n(10428);window._FSBLCache||(window._FSBLCache={storeClientReady:!1,windows:{},gettingWindow:[],windowAttempts:{}});class m extends c.default{constructor(e){super({name:e.name,sourceType:"Window"}),this.types={},this.wrapState=e.wrapState||"initializing",this.componentState={},this.windowState=m.WINDOWSTATE.NORMAL,this.type=null,this.windowType=null,this.bounds={},this.guid=`${Date.now()}_${Math.random()}`,this.WINDOWSTATE=d.WINDOWSTATE,this.windowOptions={},this.doConstruction(e),this.TITLE_CHANGED_CHANNEL=`Finsemble.${this.name}.titleChanged`,this.componentKey=u.camelCase("activeWorkspace",this.name,this.name),this.windowKey=u.camelCase("activeWorkspace",this.name),m.bindFunctions(this)}standardizeEventName(e){switch(e){case"bounds-set":case"stoppedMoving":return"bounds-change-end";case"startedMoving":return"bounds-change-start";case"bringToFront":return"broughtToFront";case"setParent":return"parent-set";case"clearParent":return"parent-unset";default:return e}}addEventListener(e,t){return e=this.standardizeEventName(e),super.addEventListener(e,t)}removeEventListener(e,t){if("closed"!==e||!window.finsembleWindow||this.name!==finsembleWindow.name)return e=this.standardizeEventName(e),super.removeEventListener(e,t)}windowServiceChannelName(e){return`WindowService-Request-${e}`}eventChannelName(e){return`WindowService-Event-${this.name||this.windowName}-${e}`}doConstruction(e){if(e.setWindowType||e.windowType||(e.windowType="WebWindow"),e.windowType)return e.setWindowType=e.windowType,delete e.windowType,new m(e);if(e)for(const t in e)this[t]=e[t];this.name||(this.name=e.windowName),this.windowType=this.setWindowType}static registerType(e,t){const n=m;n.types||(n.types={}),n.types[e]=t}static bindFunctions(e){e.setParent=e.setParent.bind(e),e.getParent=e.getParent.bind(e),e.eventChannelName=e.eventChannelName.bind(e),e.windowServiceChannelName=e.windowServiceChannelName.bind(e),e.handleWrapRemoveRequest=e.handleWrapRemoveRequest.bind(e),e.reload=e.reload.bind(e)}static getInstance(e,t=Function.prototype){const n=h.System.Window.getCurrent().name;return e&&e.windowName&&(e.name=e.windowName),(e=p.default(e))&&e.name?(e.windowName=e.name,new Promise((async function(r,i){if(window._FSBLCache.windows[e.name]){l.default.system.debug("WRAP LIFECYCLE:",e.name,"Window found in the cache, returning without going to the Launcher");const n=window._FSBLCache.windows[e.name];return r({wrap:n}),t(null,n)}if(e.uuid&&e.name){if(e.windowIdentifier||(e.windowIdentifier={uuid:e.uuid,name:e.name,windowName:e.name,windowType:e.windowType}),!1!==e.waitForReady)try{await m._windowReady(e.windowName),e.wrapState="ready"}catch(e){return i(e),t(e,null)}if(l.default.system.debug("WRAP LIFECYCLE:",e.name,"All information for wrap passed in, creating wrap locally"),window._FSBLCache.windows[e.name]){l.default.system.debug("WRAP LIFECYCLE:",e.name,"Window found in the cache, returning without going to the Launcher");const n=window._FSBLCache.windows[e.name];return r({wrap:n}),t(null,n)}const{wrap:n}=await m._createWrap(e);return r({wrap:n}),t(null,n)}if(!1!==e.waitForReady)try{await m._windowReady(e.windowName),e.wrapState="ready"}catch(e){return i(e),t(e,null)}s.default.query("WindowService-Request-getWindowIdentifier",{windowName:e.name,requester:n},(async(n,o)=>{if(n)return l.default.system.error(n),i(n),t(n,null);if(window._FSBLCache.windows[e.name]){const n=window._FSBLCache.windows[e.name];return l.default.system.debug("WRAP LIFECYCLE:",e.name,"Information received from launcher, but wrap exists in cache. Returning cached wrap."),r({wrap:n}),t(null,n)}const{identifier:a}=o.data;a.windowName&&(a.name=a.windowName),l.default.system.debug("WRAP LIFECYCLE:",e.name,"Information received from launcher. Creating wrap."),e.retrievedIdentifier=a;const{wrap:s}=await m._createWrap(e);o.data.descriptor&&(s.descriptor=o.data.descriptor),r({wrap:s}),t(null,s)}))}))):t("name is required")}static _createWrap(e){return new Promise((function(t){const n=e.retrievedIdentifier||e.windowIdentifier;let r=null;void 0===window._FSBLCache.windowAttempts[e.name]&&(window._FSBLCache.windowAttempts[e.name]=0),(e.setWindowType||n.windowType)&&"WebApplication"!==n.windowType||(n.windowType="WebWindow");let i={...n};i=Object.assign(i,e),i.setWindowType=i.windowType,delete i.windowType,l.default.system.debug("WRAP LIFECYCLE: Placing wrap into the local cache.",n.windowName);const o=m;window._FSBLCache.windows[n.windowName]=new o(i),r=window._FSBLCache.windows[n.windowName],r.windowType=n.windowType,r.identifier=n,r.addEventListener("closed",r.handleWrapRemoveRequest),r.addEventListener("maximized",(()=>{r.windowState=m.WINDOWSTATE.MAXIMIZED})),r.addEventListener("minimized",(()=>{r.windowState=m.WINDOWSTATE.MINIMIZED})),r.addEventListener("restored",(()=>{r.windowState=m.WINDOWSTATE.NORMAL}));const a=s.default.subscribe(`Finsemble.Component.State.${n.windowName}`,((e,t)=>{if(e)l.default.system.error("Finsemble component state change error",e);else{const{state:e}=t.data;r.wrapState=e,s.default.unsubscribe(a)}}));r.parentSubscribeID=s.default.subscribe(`Finsemble.parentChange.${n.windowName}`,((e,n)=>{if(e)l.default.system.error("FinsembleWindow parent change notification error",e),t({wrap:r});else{const e=n.data||{};"Added"===e.type?(l.default.system.debug("FinsembleWindow Parent Notification: window.addedToStack listener",e),r.setParent(e.stackedWindowIdentifier,(()=>{t({wrap:r})}))):"Exists"===e.type?(l.default.system.debug("FinsembleWindow Parent Notification: Parent already exists, checking if added to wrap",e),r.setParentOnWrap(e.stackedWindowIdentifier,(()=>{t({wrap:r})}))):"Removed"===e.type?(l.default.system.debug("FinsembleWindow Parent Notification: window.removedFromStack listener",e),r.clearParent(),t({wrap:r})):e.type?(l.default.system.error("FinsembleWindow Parent Notification: unknown type",e),t({wrap:r})):t({wrap:r})}}))}))}static _getRemoveWrapChannel(e){return`${h.System.Window.getCurrent().name}.removeWrap.${e}`}async handleWrapRemoveRequest(e){e&&e.wait(),l.default.system.debug("WRAP Destructor. Removing cached window",this.name,"in ",window.name),this.removeListeners&&this.removeListeners(),this.cleanupRouter(),this.cleanup(),this.name!==window.name&&this.name&&(delete window._FSBLCache.windows[this.name],delete window._FSBLCache.windowAttempts[this.name]),e&&e.done()}cleanupRouter(){const e=m._getRemoveWrapChannel(this.name);s.default.removeResponder(e),this.TITLE_CHANGED_SUBSCRIPTION&&s.default.unsubscribe(this.TITLE_CHANGED_SUBSCRIPTION),s.default.unsubscribe(this.parentSubscribeID)}onReady(e){if("ready"===this.wrapState)return e();this.addEventListener("ready",e)}queryWindowService(e,t,n=Function.prototype){if("close"===e||"setParent"===e||"ready"===this.wrapState)return new Promise((async(r,i)=>{"function"==typeof t&&(n=t,t={}),(t=t||{}).windowIdentifier=this.identifier,l.default.setting().system.Debug&&(t.callstack=l.default.callStack()),l.default.system.debug("FinsembleWindow.queryWindowService",this.windowServiceChannelName(e),t);let o=null;s.default.query(this.windowServiceChannelName(e),t,((t,a)=>{t?(l.default.system.debug(`WindowService.${e}: failed`,t),console.debug(`WindowService.${e}: failed`,t),"getComponentState"!==e&&"Not found"!==t&&i(t)):(o=a.data,l.default.system.debug(`${this.windowServiceChannelName(e)} successful`,o),console.debug(`${this.windowServiceChannelName(e)} successful`,o)),r(o),n(t,o)}))}));this.onReady((()=>{this.wrapState="ready",this.queryWindowService(e,t,n)}))}minimize(e=null,t=Function.prototype){this.queryWindowService("minimize",e,t)}maximize(e=null,t=Function.prototype){this.getBounds(((n,r)=>{n?l.default.system.warn("Error getting bounds, cached bounds will not be set"):this.updateOptions({options:{cachedLeft:r.left,defaultLeft:r.left,cachedTop:r.top,defaultTop:r.top,cachedWidth:r.width,defaultWidth:r.width,cachedHeight:r.height,defaultHeight:r.height}}),this.queryWindowService("maximize",e,t)}))}restore(e=null,t=Function.prototype){this.queryWindowService("restore",e,t)}blur(e=null,t=Function.prototype){this.queryWindowService("blur",e,t)}focus(e=null,t=Function.prototype){this.queryWindowService("focus",e,t)}bringToFront(e=null,t=Function.prototype){this.queryWindowService("bringToFront",e,t)}setAlwaysOnTop(e={alwaysOnTop:!0},t=Function.prototype){this.queryWindowService("setAlwaysOnTop",e,t)}isAlwaysOnTop(e={},t){this.queryWindowService("isAlwaysOnTop",{},t)}isShowing(e={},t){this.queryWindowService("isShowing",e,t)}setIgnoreMouseEvents(e,t,n=Function.prototype){const r={ignore:new Boolean(e).valueOf(),options:new Boolean(t).valueOf()?t:{forward:!1}};this.queryWindowService("setIgnoreMouseEvents",r,n)}setShape(e,t=Function.prototype){this.queryWindowService("setShape",e,t)}async addBrowserView(e,t=Function.prototype){const n=await this.queryWindowService("addBrowserView",e,t);return new g.FinsembleView({id:n,win:this})}async removeBrowserView(e,t=Function.prototype){await this.queryWindowService("removeBrowserView",{viewId:e.id},t)}async bringViewToFront(e,t=Function.prototype){await this.queryWindowService("bringViewToFront",{viewId:e.id},t)}async setViewBounds(e,t=Function.prototype){await this.queryWindowService("setViewBounds",{viewId:e.view.id,bounds:e.bounds},t)}setBounds(e={bounds:{}},t=Function.prototype){"function"==typeof e||e.bounds||(e={bounds:e}),this.queryWindowService("setBounds",e,t)}getBounds(e={},t=Function.prototype){return new Promise((n=>{this.queryWindowService("getBounds",e,((e,r)=>{n({err:e,data:r}),t(e,r)}))}))}updateOptions(e,t=Function.prototype){this.queryWindowService("updateOptions",e,t)}hide(e={},t=Function.prototype){this.queryWindowService("hide",e,t)}reload(e={},t=Function.prototype){this.queryWindowService("reload",e,t)}show(e={},t=Function.prototype){this.queryWindowService("show",e,t)}showAt(e={},t=Function.prototype){this.queryWindowService("showAt",e,t)}close(e={},t=Function.prototype){l.default.system.debug("WRAP CLOSE. Public close initiated for",this.name,e),this.queryWindowService("close",e,(()=>{l.default.system.debug("WRAP CLOSE. Public close initiated for",this.name),t()}))}animate(e={},t=Function.prototype){this.queryWindowService("animate",e,t)}registerWithDocking(e={},t){this.onReady((()=>{s.default.query("DockingService.registerWindow",{type:this.type,windowType:this.windowType,windowMsg:e,name:this.windowName},t)}))}showNativeOpenDialog(e={},t){this.queryWindowService("showNativeOpenDialog",e,t)}unRegisterWithDocking(){s.default.transmit("DockingService.deregisterWindow",{name:this.windowName})}initializeWindow({manageWindowMovement:e,identifier:t},n=Function.prototype){const r=()=>{s.default.publish(`Finsemble.${this.windowName}.componentReady`,{name:this.windowName}),n()};e?this.registerWithDocking(t,r):r()}wrapReady(){s.default.publish(`Finsemble.${this.windowName}.wrapReady`,{name:this.windowName,state:"open"})}setOpacity(e,t=Function.prototype){this.queryWindowService("setOpacity",e,t)}startTabTileMonitoring(e={}){l.default.system.debug("FinsembleWindow.startTabTileMonitoring",e),s.default.transmit("TabTile.startTabTile",{params:e})}stopTabTileMonitoring(e={},t=Function.prototype){l.default.system.debug("FinsembleWindow.stopTabTileMonitoring",e),s.default.query("TabTile.stopTabTile",{params:e},(function(e,n){e?l.default.system.warn("TabTile.stopTabTile: query failed",e):l.default.system.debug("TabTile.stopTabTile results",n.data);const r=n.data;t?t(e,r,this.defaultStopTrackingAction):this.defaultTabTileAction(r)}))}defaultTabTileAction(e){const t=this;switch(l.default.system.debug("FinsembleWindow.defaultTabTileAction",e),e.stoppedLocation){case"OutsideWindow":case"TabSection":break;case"InsideWindow":e.tileGroupId?t.Group.addWindow(this.identifier,e.tileGroupId,e.dropCoordinates):t.Group.createGroup((function(n){t.Group.addWindow(this.identifier,n,e.dropCoordinates,{startingWindowIdentifier:e.droppedOnWindowIdentifier})}));break;default:l.default.system.error("stopTracking returned an unknown stoppedLocation result",e)}}mergeBounds(e){e.right=e.left+e.width;const t={left:e.left,right:e.right,width:e.width,top:e.top,bottom:e.top+e.height,height:e.height},n={defaultLeft:e.left,defaultWidth:e.width,defaultTop:e.top,defaultHeight:e.height};Object.assign(this.windowOptions,t),Object.assign(this.windowOptions,n),this.windowOptions.bounds=t}startMove(e={}){l.default.system.debug("FinsembleWindow.startMove",e),e.windowIdentifier=this.identifier,s.default.transmit(this.eventChannelName("startedMoving"),{})}stopMove(e={}){l.default.system.debug("FinsembleWindow.stopMove",e),e.windowIdentifier=this.identifier,s.default.transmit(this.eventChannelName("stoppedMoving"),{})}getMonitor(e){s.default.query("DockingService.getMonitorForWindow",{windowIdentifier:this.identifier},((t,n)=>n?e(n.data):e()))}getComponentState(e,t){this.queryWindowService("getComponentState",e,t)}getWindowState(e,t){this.queryWindowService("getWindowState",e,t)}setComponentState(e,t=(()=>{})){this.queryWindowService("setComponentState",e,t)}removeComponentState(e,t=(()=>{})){this.queryWindowService("removeComponentState",e,t)}setWindowState(e,t=(()=>{})){this.queryWindowService("setWindowState",e,t)}saveCompleteWindowState(e={},t=Function.prototype){this.queryWindowService("saveCompleteWindowState",e,t)}cancelTabTileMonitoring(e={}){l.default.system.debug("FinsembleWindow.cancelTabTileMonitoring",e),s.default.transmit("TabTile.cancelTabTile",{params:e})}getParent(e){this.settingParent?m.getInstance(this.settingParent,((t,n)=>{e(null,n)})):this.parentWindow?e(null,this.parentWindow):e(null,null)}setParent(e,t){if(this.settingParent)return this.getParent(t);this.settingParent=e,this.parentWindow&&this.parentWindow.name===e.windowName?(l.default.system.debug("FinsembleWindow.setParent already set",e),this.settingParent=!1,t(null,this.parentWindow)):this.queryWindowService("setParent",e,(()=>{l.default.system.debug("FinsembleWindow.setParent",e),m.getInstance(e,((n,r)=>{n?l.default.system.error("FinsembleWindow.setParent error",n):(l.default.system.debug("FinsembleWindow.setParent wrap success",e),this.parentWindow=r,this.parentWindow.windowType.includes("StackedWindow")||l.default.system.error("FinsembleWindow.setParent error",this.parentWindow.name,e.windowName)),s.default.transmit(d.DOCKING.REQUEST_PUBLISH,null),this.settingParent=!1;const i=()=>{this.removeEventListener("parent-set",i),t(n,r)};this.addEventListener("parent-set",i)}))}))}setParentOnWrap(e,t=Function.prototype){this.parentWindow&&this.parentWindow.name===e.windowName?(l.default.system.debug("FinsembleWindow.setParentOnWrap already set",e),t(null,this.parentWindow)):this.queryWindowService("setParent",e,(()=>{l.default.system.debug("FinsembleWindow.setParentOnWrap",e),m.getInstance(e,((n,r)=>{n?l.default.system.error("FinsembleWindow.setParentOnWrap error",n):(l.default.system.debug("FinsembleWindow.setParentOnWrap success getting wrap",e),this.parentWindow=r,!1===this.parentWindow.windowType.includes("StackedWindow")&&l.default.system.error("FinsembleWindow.setParentOnWrap error",this.parentWindow.name,e.windowName)),t(n,r)}))}))}clearParent(){l.default.system.debug("FinsembleWindow.clearParent",this.parentWindow),this.parentWindow=null}setTitle(e){l.default.system.debug("Title change",e),s.default.publish(this.TITLE_CHANGED_CHANNEL,e)}getOptions(e=Function.prototype){this.queryWindowService("getOptions",{},e)}_privateManagementPreface(e,t){return"function"==typeof t&&l.default.system.error("StackedWindowWrapper.wrapPreface bad params",t),(t=t||{}).stackedWindowIdentifier={windowName:this.identifier?.windowName,windowType:this.identifier?.windowType},l.default.system.debug(`StackedWindow.${e} _privateManagementPreface`,t),t}addWindow(e,t=Function.prototype){return e=this._privateManagementPreface("addWindow",e),new Promise((n=>{s.default.query("StackedWindow.addWindow",e,((e,r)=>{l.default.system.debug("StackedWindow.addWindow callback",e,r),t(e,r.data),n({err:e,data:r.data})}))}))}removeWindow(e,t=Function.prototype){return e=this._privateManagementPreface("removeWindow",e),new Promise((n=>{s.default.query("StackedWindow.removeWindow",e,((e,r)=>{l.default.system.debug("StackedWindow.removeWindow callback",e,r),t(e,r.data),n({err:e,data:r.data})}))}))}deleteWindow(e,t=Function.prototype){return e=this._privateManagementPreface("deleteWindow",e),new Promise((n=>{s.default.query("StackedWindow.deleteWindow",e,((e,r)=>{l.default.system.debug("StackedWindow.deleteWindow callback",e,r),t(e,r.data),n({err:e,data:r.data})}))}))}setVisibleWindow(e,t=Function.prototype){return e=this._privateManagementPreface("setVisibleWindow",e),new Promise((n=>{s.default.query("StackedWindow.setVisibleWindow",e,((e,r)=>{l.default.system.debug("StackedWindow.setVisibleWindow callback",e,r),t(e,r.data),n({err:e,data:r.data})}))}))}reorder(e,t=Function.prototype){return e=this._privateManagementPreface("reorder",e),new Promise((n=>{s.default.query("StackedWindow.reorder",e,((e,r)=>{l.default.system.debug("StackedWindow.reorder callback",e,r),t(e,r.data),n({err:e,data:r.data})}))}))}formGroup(){const e=this.parentWindow?this.parentWindow.name:this.name;s.default.transmit("DockingService.formGroup",{windowName:e})}ejectFromGroup(){const e=this.parentWindow?this.parentWindow.name:this.name;s.default.query("DockingService.leaveGroup",{name:e},(()=>{}))}}t.FinsembleWindow=m,m.WINDOWSTATE={NORMAL:0,MINIMIZED:1,MAXIMIZED:2,HIDDEN:3},m.wrap=m.getInstance,m.isStartupApplication=async function(e){let t;const n=await new Promise(((e,t)=>{h.System.Application.getCurrent().getManifest(e,t)})).catch((()=>{t=!1}));return n&&(t=n&&n.startup_app&&n.startup_app.name===e),t},m._windowReady=function(e){let t;l.default.system.debug(`windowServiceReady: ${e} starting`);const n=`Finsemble.Component.State.${e}`;return new Promise((async(r,i)=>{await m.isStartupApplication(e)||f.isServiceInWindow(e)?i("Cannot Wrap Service Manager or Services"):(l.default.system.debug(`windowServiceReady: ${e} waiting`),t=s.default.subscribe(n,((n,i)=>{const{state:o}=i.data;switch(l.default.system.debug(`windowServiceReady: ${e} state change: ${o}`),o){case"ready":case"reloading":case"closing":l.default.system.debug(`windowServiceReady: ${e} ${o}`),s.default.unsubscribe(t),r()}})))}))}},33509:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CHECKPOINT_CHANNEL_BASE=t.STAGE_CHANNEL=t.STATUS_CHANNEL_BASE=t.SHOW_SYSLOG_CHANNEL=t.SYSLOG_CHANNEL=t.CRITICAL_BOOT_STAGES=t.ALL_BOOT_STAGES=void 0,t.ALL_BOOT_STAGES=["microkernel","kernel","authentication","preuser","earlyuser","user"],t.CRITICAL_BOOT_STAGES=["microkernel","kernel","authentication"],t.SYSLOG_CHANNEL="systemManager.systemlog",t.SHOW_SYSLOG_CHANNEL="systemManager.showSystemlog",t.STATUS_CHANNEL_BASE="systemManager.boot.status",t.STAGE_CHANNEL="systemManager.boot.stage",t.CHECKPOINT_CHANNEL_BASE="systemManager.checkpoint"},56188:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BootReadyItem=t.BootConfigElement=t.ALL_BOOT_STAGES=void 0,t.ALL_BOOT_STAGES=["microkernel","kernel","authentication","preuser","earlyuser","user"],t.BootConfigElement=class{},t.BootReadyItem=class{constructor(e,t,n){this.name=e,this.type=t,this.config=n}}},95269:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkpointChannel=t.statusChannel=t.killOldApplications=void 0;const r=n(51742),i=n(33509);t.killOldApplications=function(e){return new Promise((async t=>{r.System.getAllApplications((async n=>{if(n)for(let t=0;t<n.length;t++){const i=n[t];if(i.uuid?.endsWith(`-${e}`)){const e=r.System.Application.wrap(i.uuid);await r.System.closeApplication(e)}}console.log("killOldApplications: finished closing old apps"),t()}))}))},t.statusChannel=function(e){return`${i.STATUS_CHANNEL_BASE}.${e}`},t.checkpointChannel=function(e,t){return`${i.CHECKPOINT_CHANNEL_BASE}.${e}.${t}`}},88801:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},77661:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},80498:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},74215:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},19600:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},89520:(e,t)=>{"use strict";var n,r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.ChannelError=t.ResolveError=t.OpenError=void 0,(i=t.OpenError||(t.OpenError={})).AppNotFound="AppNotFound",i.ErrorOnLaunch="ErrorOnLaunch",i.AppTimeout="AppTimeout",i.ResolverUnavailable="ResolverUnavailable",(r=t.ResolveError||(t.ResolveError={})).NoAppsFound="NoAppsFound",r.ResolverUnavailable="ResolverUnavailable",r.ResolverTimeout="ResolverTimeout",(n=t.ChannelError||(t.ChannelError={})).NoChannelFound="NoChannelFound",n.AccessDenied="AccessDenied",n.CreationFailed="CreationFailed"},55182:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},35644:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},66129:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},51854:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},36611:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.versionIsAtLeast=t.compareVersionNumbers=t.getInfo=t.leaveCurrentChannel=t.getCurrentChannel=t.getOrCreateChannel=t.joinChannel=t.getSystemChannels=t.addContextListener=t.addIntentListener=t.raiseIntentForContext=t.raiseIntent=t.broadcast=t.findIntentsByContext=t.findIntent=t.open=t.fdc3Ready=void 0;const n=new Error("FDC3 DesktopAgent not available at `window.fdc3`."),r=new Error("Timed out waiting for `fdc3Ready` event."),i=new Error("`fdc3Ready` event fired, but `window.fdc3` not set to DesktopAgent.");function o(e){return window.fdc3?e():Promise.reject(n)}function a(e){if(!window.fdc3)throw n;return e()}t.fdc3Ready=async(e=5e3)=>new Promise(((t,n)=>{if(window.fdc3)t();else{const o=setTimeout((()=>window.fdc3?t():n(r)),e);window.addEventListener("fdc3Ready",(()=>{clearTimeout(o),window.fdc3?t():n(i)}),{once:!0})}})),t.open=function(e,t){return o((()=>window.fdc3.open(e,t)))},t.findIntent=function(e,t){return o((()=>window.fdc3.findIntent(e,t)))},t.findIntentsByContext=function(e){return o((()=>window.fdc3.findIntentsByContext(e)))},t.broadcast=function(e){a((()=>window.fdc3.broadcast(e)))},t.raiseIntent=function(e,t,n){return o((()=>window.fdc3.raiseIntent(e,t,n)))},t.raiseIntentForContext=function(e,t){return o((()=>window.fdc3.raiseIntentForContext(e,t)))},t.addIntentListener=function(e,t){return a((()=>window.fdc3.addIntentListener(e,t)))},t.addContextListener=function(e,t){return a("function"!=typeof e?()=>window.fdc3.addContextListener(e,t):()=>window.fdc3.addContextListener(e))},t.getSystemChannels=function(){return o((()=>window.fdc3.getSystemChannels()))},t.joinChannel=function(e){return o((()=>window.fdc3.joinChannel(e)))},t.getOrCreateChannel=function(e){return o((()=>window.fdc3.getOrCreateChannel(e)))},t.getCurrentChannel=function(){return o((()=>window.fdc3.getCurrentChannel()))},t.leaveCurrentChannel=function(){return o((()=>window.fdc3.leaveCurrentChannel()))},t.getInfo=function(){return a((()=>window.fdc3.getInfo()))},t.compareVersionNumbers=(e,t)=>{try{let n=e.split(".").map(Number),r=t.split(".").map(Number);for(let e=0;e<Math.max(n.length,r.length);e++){if(e===n.length||n[e]<r[e])return-1;if(e===r.length||n[e]>r[e])return 1}return 0}catch(e){return console.error("Failed to compare version strings",e),null}},t.versionIsAtLeast=(e,n)=>{let r=t.compareVersionNumbers(e.fdc3Version,n);return null===r?null:r>=0}},55972:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},91767:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ContextTypes=void 0,(n=t.ContextTypes||(t.ContextTypes={})).Contact="fdc3.contact",n.ContactList="fdc3.contactList",n.Country="fdc3.country",n.Instrument="fdc3.instrument",n.Organization="fdc3.organization",n.Portfolio="fdc3.portfolio",n.Position="fdc3.position"},91966:(e,t)=>{"use strict";function n(e,t,n=""){if(n)throw Error(`Invalid value for key "${n}". Expected type ${JSON.stringify(e)} but got ${JSON.stringify(t)}`);throw Error(`Invalid value ${JSON.stringify(t)} for type ${JSON.stringify(e)}`)}function r(e){if(void 0===e.jsonToJS){const t={};e.props.forEach((e=>t[e.json]={key:e.js,typ:e.typ})),e.jsonToJS=t}return e.jsonToJS}function i(e){if(void 0===e.jsToJSON){const t={};e.props.forEach((e=>t[e.js]={key:e.json,typ:e.typ})),e.jsToJSON=t}return e.jsToJSON}function o(e,t,r,i=""){if("any"===t)return e;if(null===t)return null===e?e:n(t,e);if(!1===t)return n(t,e);for(;"object"==typeof t&&void 0!==t.ref;)t=h[t.ref];return Array.isArray(t)?function(e,t){return-1!==e.indexOf(t)?t:n(e,t)}(t,e):"object"==typeof t?t.hasOwnProperty("unionMembers")?function(e,t){const i=e.length;for(let n=0;n<i;n++){const i=e[n];try{return o(t,i,r)}catch(e){}}return n(e,t)}(t.unionMembers,e):t.hasOwnProperty("arrayItems")?function(e,t){return Array.isArray(t)?t.map((t=>o(t,e,r))):n("array",t)}(t.arrayItems,e):t.hasOwnProperty("props")?function(e,t,i){if(null===i||"object"!=typeof i||Array.isArray(i))return n("object",i);const a={};return Object.getOwnPropertyNames(e).forEach((t=>{const n=e[t],s=Object.prototype.hasOwnProperty.call(i,t)?i[t]:void 0;a[n.key]=o(s,n.typ,r,n.key)})),Object.getOwnPropertyNames(i).forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)||(a[n]=o(i[n],t,r,n))})),a}(r(t),t.additional,e):n(t,e):t===Date&&"number"!=typeof e?function(e){if(null===e)return null;const t=new Date(e);return isNaN(t.valueOf())?n("Date",e):t}(e):function(e,t){return typeof e==typeof t?t:n(e,t,i)}(t,e)}function a(e,t){return o(e,t,r)}function s(e,t){return o(e,t,i)}function l(e){return{arrayItems:e}}function u(...e){return{unionMembers:e}}function c(e,t){return{props:e,additional:t}}function d(e){return{props:[],additional:e}}function f(e){return{ref:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Convert=void 0,t.Convert=class{static toContext(e){return a(JSON.parse(e),f("Context"))}static contextToJson(e){return JSON.stringify(s(e,f("Context")),null,2)}static toContact(e){return a(JSON.parse(e),f("Contact"))}static contactToJson(e){return JSON.stringify(s(e,f("Contact")),null,2)}static toContactList(e){return a(JSON.parse(e),f("ContactList"))}static contactListToJson(e){return JSON.stringify(s(e,f("ContactList")),null,2)}static toInstrument(e){return a(JSON.parse(e),f("Instrument"))}static instrumentToJson(e){return JSON.stringify(s(e,f("Instrument")),null,2)}static toInstrumentList(e){return a(JSON.parse(e),f("InstrumentList"))}static instrumentListToJson(e){return JSON.stringify(s(e,f("InstrumentList")),null,2)}static toCountry(e){return a(JSON.parse(e),f("Country"))}static countryToJson(e){return JSON.stringify(s(e,f("Country")),null,2)}static toOrganization(e){return a(JSON.parse(e),f("Organization"))}static organizationToJson(e){return JSON.stringify(s(e,f("Organization")),null,2)}static toPortfolio(e){return a(JSON.parse(e),f("Portfolio"))}static portfolioToJson(e){return JSON.stringify(s(e,f("Portfolio")),null,2)}static toPosition(e){return a(JSON.parse(e),f("Position"))}static positionToJson(e){return JSON.stringify(s(e,f("Position")),null,2)}};const h={Context:c([{json:"id",js:"id",typ:u(void 0,d(""))},{json:"name",js:"name",typ:u(void 0,"")},{json:"type",js:"type",typ:""}],"any"),ContactList:c([{json:"contacts",js:"contacts",typ:l(f("Contact"))},{json:"type",js:"type",typ:""},{json:"id",js:"id",typ:u(void 0,d(""))},{json:"name",js:"name",typ:u(void 0,"")}],"any"),Contact:c([{json:"id",js:"id",typ:f("ContactID")},{json:"type",js:"type",typ:""},{json:"name",js:"name",typ:u(void 0,"")}],"any"),ContactID:c([{json:"email",js:"email",typ:u(void 0,"")},{json:"FDS_ID",js:"FDS_ID",typ:u(void 0,"")}],""),InstrumentList:c([{json:"instruments",js:"instruments",typ:l(f("Instrument"))},{json:"type",js:"type",typ:""},{json:"id",js:"id",typ:u(void 0,d(""))},{json:"name",js:"name",typ:u(void 0,"")}],"any"),Instrument:c([{json:"id",js:"id",typ:f("InstrumentID")},{json:"type",js:"type",typ:""},{json:"name",js:"name",typ:u(void 0,"")}],"any"),InstrumentID:c([{json:"BBG",js:"BBG",typ:u(void 0,"")},{json:"CUSIP",js:"CUSIP",typ:u(void 0,"")},{json:"FDS_ID",js:"FDS_ID",typ:u(void 0,"")},{json:"FIGI",js:"FIGI",typ:u(void 0,"")},{json:"ISIN",js:"ISIN",typ:u(void 0,"")},{json:"PERMID",js:"PERMID",typ:u(void 0,"")},{json:"RIC",js:"RIC",typ:u(void 0,"")},{json:"SEDOL",js:"SEDOL",typ:u(void 0,"")},{json:"ticker",js:"ticker",typ:u(void 0,"")}],""),Country:c([{json:"id",js:"id",typ:f("CountryID")},{json:"type",js:"type",typ:""},{json:"name",js:"name",typ:u(void 0,"")}],"any"),CountryID:c([{json:"ISOALPHA2",js:"ISOALPHA2",typ:u(void 0,"")},{json:"ISOALPHA3",js:"ISOALPHA3",typ:u(void 0,"")}],""),Organization:c([{json:"id",js:"id",typ:f("OrganizationID")},{json:"type",js:"type",typ:""},{json:"name",js:"name",typ:u(void 0,"")}],"any"),OrganizationID:c([{json:"FDS_ID",js:"FDS_ID",typ:u(void 0,"")},{json:"LEI",js:"LEI",typ:u(void 0,"")},{json:"PERMID",js:"PERMID",typ:u(void 0,"")}],""),Portfolio:c([{json:"positions",js:"positions",typ:l(f("Position"))},{json:"type",js:"type",typ:""},{json:"id",js:"id",typ:u(void 0,d(""))},{json:"name",js:"name",typ:u(void 0,"")}],"any"),Position:c([{json:"holding",js:"holding",typ:3.14},{json:"instrument",js:"instrument",typ:f("Instrument")},{json:"type",js:"type",typ:""},{json:"id",js:"id",typ:u(void 0,d(""))},{json:"name",js:"name",typ:u(void 0,"")}],"any")}},98832:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=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}),i(n(88801),t),i(n(77661),t),i(n(80498),t),i(n(55972),t),i(n(74215),t),i(n(19600),t),i(n(89520),t),i(n(35644),t),i(n(66129),t),i(n(51854),t),i(n(55182),t),i(n(36611),t),i(n(91767),t),i(n(91966),t),i(n(77178),t)},77178:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Intents=void 0,(n=t.Intents||(t.Intents={})).StartCall="StartCall",n.StartChat="StartChat",n.ViewChart="ViewChart",n.ViewContact="ViewContact",n.ViewQuote="ViewQuote",n.ViewNews="ViewNews",n.ViewInstrument="ViewInstrument",n.ViewAnalysis="ViewAnalysis"},49914:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r="data:image/png;base64,iVBORwoaCgAAAA1JSERSAAAAWgAAAG4IBgAAAKdDBLkAAAu3SURBVHja7Z0FcFRXF8dPXJAQD4TiTg2HnaZNi7trvVgNjeEsNbTu7sWlTZsSgQQiJRR3dye2ySZYsuc7Z+ctc5vZj2bfe6Rhcn8zv8nNuXd27v735r773lZAwECuJOPJWHK5UqsoGMi15HnFtUrtnmIa+QsZJNSqke+R0RVkfiXkFfIH8ivyjFLjvnsCgzLhb0hnO/3v6bxyxpAdVMwPyU+Euje5jPvKdX4aWEuior2wq5HLQR/GkxYy3sH5XSE/Veb4Uam5XeIx+s9Pf86T+C9hx4J2xilvYgvp4+D8fiCdlBWN5IdC/xoeU97z0x60/bAd+YSrkY1K/zlqeBPnyc+BKBX2+ySTrCFoDfPTsnXYDzuIXAllZz15kWxGMqM1vgme3wnSy07Yn5E3NWwd2uen6mJjP+xfHLzYdCDzlLDniG9C4/yWklWEsL8lUcPF0KB5fhqOTyiq9vgkhI06vYnpylwukquV7eIW15Q+R3Enz4jzu5dvCDjseB3fxGPkHxw2y22ulfP8JBKJRCKRSCQSiUQi0cB6Eu8oj/nv+ZAsFuZUrNQcInyq2fJEZKFZ9PEI8/XwCHME3GWwjOrFQrIvOE6x3ZqDdI4qLHxpiQVFxy0qwS5RZtNjUflhoIH2s/JiOszIeVBN0KHkQB2DfoFEMg0cB+3XtAfNvjC/GJ+INF8Nm1xYE1TwsDG3RvtZ+WfbzzLltpuZbyhr0DfJn0lmjk5BP6q87iWyTkULmh31+s3izlHmPW3GoRuooI0xpw4FfYgsbDfL1ONOQW8lx5K+tg+KzNYh6IZkFnmN7AhMBQyaHTT7hrlLZOE3oJJW0wsCKeTtFPbNdrPzhpWebLYSKuOrhL1Vwx79EDlaafuQB0kkRwJTiYOeo7R/Jm/qcDHcSl4nW5HxJJLzQKSSbh0DyVAdTx0dyVtkEYnkctIJSiEvhvZ0nLkkkpmkF2inWDjTs1hRj3flfcPioqzkED1vWISg9b9hkUgkEolEIpFIJBKJRLK+ZrWwbU3qZe5t2ayA5TbXwEF+fNXJsnSSs1n0lwlO13+aABGgE93mm4xwt3nppZeajh07NvXll18OAQVuc437QAUZTessOtW2I17t9Pg/5Br3gQMsnehcmPt1NRS98kVVXDHF2fTjBAjTI+RuC0wI/0ZSUtKDCQkJMaCSzp07Nxk9evRpCvYoB8xym2vcBw6S0qJJ2On2Bmuw2QOGW3+Kbe7jMVqCZk9/VAVpdWf9OBlqag25tFCa+Ph4A4WcS55NTk6uASpp167dw7awbSFzDVSwu127TFuwJVnZmPfiRJbbt8PmMVqDZvcs9ipeNslp7+fjwE2vkNnSK7kHBVyYmJh4iKwDGunRo0f38ePHI8ttUMlhQ1gBh8laA84zocVksrZtdR6jR9Ds5rnuhcsmOX+jMWT7QVOwwyjkm/Rze1xcXKASfBeqXeCf4CDidiFuI6CCI2GdxaCtIXPYYtA8ptIFLYbM2wWrJezDnXv/69bBYyrd1tGvX7+2zz777A5xT+Y217jP4T16yFNh5x/t/n8vhtzHYyrjxZDxsV9Tx4HBzy06H97TGqwo17ivEhzvyo/9Y6LCTgx6LvN035EFLLe5dq/esEgkEolEIpFIJBKJRDIVXgA9+MH1keBfa6X3+6u/eejWYYW1Ymunw4+u4aCSziO2h3UYtC3zof5/F7TsvaWgSeeMzPtap4SBSs4vBUN2bEhqUWZ/c9HWIeac30NTuVZet98cNLpHu08HDfiuC5z/1vG3MD4rHhOzEkkyOxHfPvkOhsTWWggO0uOZvYseHrIdWwzejl+svohPzzpsbTftk4khbTcuAgfJWuPz5q0jsxEvrybX3Lb42BuY9VvwfNAAP1CyH7YSrmjw68Fmj2iPd0ENK13D22/pYFl4ciGyi04uwsUnF+PiU4txyakl2H17dwuscH0EysiIl/aHtR62wxpsSwp7x8ECNH52mn+32rhXJlZrsj7MkZV8I72VBY9Goz1vbulk4TEOhytqN+yh4MLhrs5ffdvvL3+PdRbWMXtO8/zJ2u8Iv7mkBKYG4tDdQ60O2z3M6vDdw3HEnhHYMKMhwq8um8r8Jp7bl2kLdcLC4/jV2ks4ZckJtNXYoA4pmVBGrq6CjbjZH3FHZ/umBiOP0Ri0nbCN4O4c4VzCAYv+nPUzNnuvGYcdBxPAA8rKn84mmiZ6p3hj4KZArJtaF+ul1sOQzSFYPaU6ch/EOedCGQl/ek+BGGp+YTGuS85CsVYrbHMBlBHTOsjFDYCY7Im4yZeDZblNNS/kPh6jPejSYU8BL5col1u6BZ1AIXKYdzLexfSfB23fuxj0y1DVLdrthm5bR4LrJlugTsmsk6IQdIJLipqtQwha29YhBpukKNT02jq6zze9Jv7HMn11vRgm0oVuo7MlaEtVvO/vGlhb0P+vKsh9NCZczcWQTxvXbpTgrsNm7PrSXtUXw6I4sJSkeGDJJq9/yDXuU3ExtJDF5A0h6Nfv+vEONrvOa7YtxDLqWFscdawNjjzKtsbm22taIMV1ntrjneG53Ryw1dajdqo+3l1eDsaidB/LtYN1UJRr3Kf1eNd9Qf6b5XfDkuoaXv0v79T2u+qbO+yqXxC4xScD0lwfqUg3LFfjPNPytvibWW7rcsOyIH8+3GtIJBKJRCKRSCQSiWQKeEF58SOAISEkJHV3//7mPUOGmBNDQ1O5pvN/gtOoIYxGrtGuOe7T3E02XaNc3wSNuMe4z/OI8TgKkyAY7ja/+/i8eWn2bCxavRqL1qy57eU33sA/goPnqwjaHkZNQUdAM985vgVfX/ga2RGxI5Ae434KGqCA3+Unlf1X9b9Jr3UWoqE2OE4cifblPoWVAIYjrVpZcqOj0Z7HOnWy8Bidgk5RFfgUeEd5fHvd9sz8+YTnkWtOEU7nqD8UHMPJM8bzq9A3Qwu/vfSt9fWe/vPpWxT2JYiE+uAYzclbdkLmGvUpxANsPO3vj1c6d7br6eBg5DE6BZ1Gvkeio8F4T/eObf9F+6JVplXWYObsnIP0Z19AIbcERzCCM31AX9/hgzsPk6ApOMYHdoKmmkAaQO5x6jjl6YlnfX3xPAXLcvuUlxdyH4/RKWgOOVxF0MBfp1HY23os7XFjyeElSH/2RRAJ4Vq2Ij+jX74YtIatyI/MFkKmNtcEMpSg72RGRQha+TaIwjhFX73dcolwGQka4KB5BYu6RLt8COqZIARN7VKkAmy0BXpCVAg61fGtw2jHFM1BM5PhZedI5w3wAlQDPTCCK0RBCGjHlTygSO1SbAAw7AGwnKnugecCvP/hGR9P5D4eA2VFDFbZkwXHaAnaLcptSuhboZbuS3sg/dnngEb4lEGvc6bBkoaXAuYFGEE7PRXtk07BHKvva7nctSGKHm/sb+E+UIO4VYhqCLrqjKqbn094AZfmLOegi0H4N1xVfnCvjN0w7tbyvJXoO9f3NJQHGQCGnTWrpR1sG1pwqGPtgp2h1dO5Buox6v7/DIiAdhTIjYB5gSV+c/3+1GNF+9KKbkgrmj6410FS6ng2Bfx0fD1X5a6wciORSCQSiUQikUgkcWRz0J+eihWSZCO4Hl0O+4+ugH3chnLA9tXLB8IDa30fG1ZAtn8DU8xJgCy3yyVowWxyghCOTg/CtfPRRx/FfPLJJw/qtZpPrATT2bWALLfLY1WjHQ+QPXX9akcD7777bo0PP/zwLJn7/vvvG/RYzWfWANrgtsZV7QaG8BgYPTmN5TbXNASt4ctKjVDAdWhVH6KwCz/++OMeWlbz6TWQxyvZBre5pnpVc7C/ZSIk7bPKba5p2Do0fv2ukQ8++CCQgt5O3qTQh2nZmy//Dnij6CrLbW17Na9iDliUaxovhtr/gRKdgla7mgs3ULDk+QM/WeU218RVrXPQwvGugqN16xBXsxK0KNfEVa3/1lHx0e9iSCv2KgfKlt6jbfVTayBH14thxUf/493hZbDrUiwge24dIP1uldu2+pFlsB105n9c+mBCXSDnVgAAAABJRU5ErkJggg=="},60306:e=>{"use strict";e.exports=JSON.parse('{"name":"@finsemble/finsemble-core","main":"dist/index.js","types":"types/index.d.ts","version":"6.1.5","description":"Finsemble is an application framework providing infrastructure, services, and components for quickly building HTML5 multi-window financial desktop applications.","scripts":{"do-audit":" improved-yarn-audit --min-severity high","build":"gulp build --production","build-docs":"gulp --gulpfile gulpfile-docs.js build-docs","clean":"gulp clean","dev":"gulp build --watch","dev:fresh":"gulp build --clean --watch","docs":"set DEBUG=gulp-jsdoc3&&gulp --gulpfile=./gulpfile-docs.js docs-server","lint":"eslint --ext .js,.jsx,.ts,.tsx ./src/**","lint-fix":"eslint --fix --ext .js,.jsx,.ts,.tsx ./src/**","lint-stats":"eslint --format node_modules/eslint-stats/byErrorAndWarning.js --ext .js,.jsx,.ts,.tsx ./src/**","monodev":"yarn dev","obfuscate":"gulp build --production --obfuscate","prod":"gulp build --production","test":"ts-mocha","test-coverage":"nyc ts-mocha && nyc merge .nyc_output ../../.nyc_output/core.json","types":"gulp types"},"author":"Cosaic","license":"SEE LICENSE IN LICENSE","dependencies":{"@babel/core":"7.14.6","@babel/preset-env":"7.14.7","@babel/preset-react":"7.14.5"},"devDependencies":{"@istanbuljs/nyc-config-typescript":"1.0.1","@reduxjs/toolkit":"1.6.1","@types/chai":"4.2.21","@types/deepmerge":"2.2.0","@types/lodash":"4.14.171","@types/mocha":"9.0.0","@types/node":"12.12.7","@typescript-eslint/eslint-plugin":"4.28.3","@typescript-eslint/parser":"4.28.4","ajv":"6.12.2","async":"3.2.0","babel-loader":"8.2.2","browser-sync":"2.27.4","case-sensitive-paths-webpack-plugin":"2.4.0","chai":"4.2.0","chalk":"4.1.1","copy-webpack-plugin":"6.4.1","css-loader":"3.5.3","deepmerge":"1.3.2","del":"6.0.0","esm":"~3.2.25","fast-check":"2.17.0","file-loader":"6.2.0","file-saver":"2.0.5","fs-extra":"2.1.2","fuse.js":"6.4.6","git-rev-sync":"3.0.1","gulp":"4.0.0","gulp-javascript-obfuscator":"^1.1.6","gulp-jsdoc3":"3.0.0","gulp-plumber":"1.2.1","gulp-rename":"1.2.3","gulp-string-replace":"1.1.2","gulp-watch":"5.0.1","immutable":"4.0.0-rc.14","improved-yarn-audit":"^2.3.2","jsdoc":"3.6.6","jszip":"3.6.0","lodash":"4.17.21","mocha":"^8.0.1","mock-socket":"9.0.3","nyc":"15.1.0","p-limit":"3.1.0","p-queue":"7.1.0","pretty-hrtime":"1.0.3","prop-types":"15.7.2","react":"17.0.2","react-dom":"17.0.2","react-redux":"7.2.4","react-virtualized":"9.22.3","redux-devtools":"3.7.0","redux-devtools-chart-monitor":"1.7.2","redux-devtools-log-monitor":"2.1.0","redux-loop":"6.1.0","require-directory":"2.1.1","resize-observer-polyfill":"1.5.1","rimraf":"3.0.2","sass-loader":"12.1.0","searchjs":"1.1.0","shelljs":"0.8.4","sinon":"11.1.1","sinon-chai":"3.7.0","source-map-loader":"3.0.0","style-loader":"3.2.1","superagent":"6.1.0","taffydb":"2.7.3","to-string-loader":"1.1.6","ts-loader":"9.2.3","ts-mocha":"8.0.0","typedoc":"0.17.8","typescript":"4.3.5","url-loader":"4.1.0","uuid":"3.0.1","vinyl-sourcemaps-apply":"0.2.1","webpack":"5.45.1","webpack-glob-entries":"1.0.1","worker-farm":"1.7.0"},"resolutions":{"ts-mocha/ts-node":"^10.1.0","xmlhttprequest-ssl":"1.6.3","underscore":"1.12.1","ua-parser-js":"0.7.24","javascript-obfuscator":"2.15.5"}}')},87063:e=>{"use strict";e.exports=JSON.parse('{"F":{"0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","backspace":"Backspace","bs":"Backspace","bksp":"Backspace","tab":"Tab","escape":"Escape","esc":"Escape","clear":"Clear","enter":"Enter","return":"Enter","shift":"Shift","shft":"Shift","lshift":"Shift","lshft":"Shift","left shift":"Shift","leftshift":"Shift","rshift":"Shift","rshft":"Shift","right shift":"Shift","rightshift":"Shift","control":"Control","ctrl":"Control","commandorcontrol":"CommandOrControl","alt":"Alt","alternate":"Alt","pause":"Pause","caps lock":"Capslock","capslock":"Capslock","spacebar":"Space","space":"Space","space bar":"Space","page up":"PageUp","pgup":"PageUp","pg up":"PageUp","page down":"PageDown","pgdn":"PageDown","pg dn":"PageDown","pgdown":"PageDown","end":"End","home":"Home","left arrow":"Left","left":"Left","up arrow":"Up","up":"Up","right arrow":"Right","right":"Right","down arrow":"Down","down":"Down","select":"Select","slct":"Select","print":"PrintScreen","prnt":"PrintScreen","execute":"Execute","print screen":"PrintScreen","printscreen":"PrintScreen","print scrn":"PrintScreen","printscrn":"PrintScreen","prnt scrn":"PrintScreen","prntscrn":"PrintScreen","prt scrn":"PrintScreen","prtscrn":"PrintScreen","prt scn":"PrintScreen","prtscn":"PrintScreen","prt scr":"PrintScreen","prtscr":"PrintScreen","prt sc":"PrintScreen","prtsc":"PrintScreen","pr sc":"PrintScreen","prsc":"PrintScreen","insert":"Insert","ins":"Insert","delete":"Delete","del":"Delete","a":"A","b":"B","c":"C","d":"D","e":"E","f":"F","g":"G","h":"H","i":"I","j":"J","k":"K","l":"L","m":"M","n":"N","o":"O","p":"P","q":"Q","r":"R","s":"S","t":"T","u":"U","v":"V","w":"W","x":"X","y":"Y","z":"Z","windows":"Super","left windows":"Super","right windows":"Super","numpad 0":"num0","numpad 1":"num1","numpad 2":"num2","numpad 3":"num3","numpad 4":"num4","numpad 5":"num5","numpad 6":"num6","numpad 7":"num7","numpad 8":"num8","numpad 9":"num9","f1":"F1","fn1":"F1","function 1":"F1","f2":"F2","fn2":"F2","function 2":"F2","f3":"F3","fn3":"F3","function 3":"F3","f4":"F4","fn4":"F4","function 4":"F4","f5":"F5","fn5":"F5","function 5":"F5","f6":"F6","fn6":"F6","function 6":"F6","f7":"F7","fn7":"F7","function 7":"F7","f8":"F8","fn8":"F8","function 8":"F8","f9":"F9","fn9":"F9","function 9":"F9","f10":"F10","fn10":"F10","function 10":"F10","f11":"F11","fn11":"F11","function 11":"F11","f12":"F12","fn12":"F12","function 12":"F12","f13":"F13","fn":"F13","function 13":"F13","f14":"F14","fn14":"F14","function 14":"F14","f15":"F15","fn15":"F15","function 15":"F15","f16":"F16","fn16":"F16","function 16":"F16","num lock":"Numlock","numlock":"Numlock","number lock":"Numlock","numeric lock":"Numlock","scroll lock":"Scrolllock","sclk":"Scrolllock","scrlk":"Scrolllock","slk":"Scrolllock","*":"*","+":"+","-":"-","/":"/",";":";","=":"=",",":",","_":"-",".":".","`":"`","[":"[","]":"]","\'":"\'"}}')}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.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.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var r={};return(()=>{"use strict";var e=c(n(89526)),t=c(n(73961)),r=c(n(29581)),i=c(n(12622)),o=c(n(70010)),a=n(51742),s=c(n(5020)),l=c(n(44453)),u=n(10589);function c(e){return e&&e.__esModule?e:{default:e}}o.default.initialize(),new l.default,window.showConsole=function(){const e=a.System.Window.getCurrent();e.restore(),e.show(),e.bringToFront((()=>{e.focus()}))},async function(){await(new u.FSBLService).startApp(),await s.default.waitForStartup("preferencesService"),o.default.getPreferences(((e,t)=>{let n=!1,i=!1;try{n=t["finsemble.preferences.loggerService.showOnStartup"],i=t["finsemble.preferences.loggerService.showOnError"]}catch(e){console.log("Caught error getting preferences...",e)}r.default.setShowOnStartup(n,!1),r.default.setShowOnError(i,!1),n&&window.showConsole()}))}(),t.default.render(e.default.createElement(i.default,null),document.getElementById("Logger-component-wrapper"))})(),r.default})()}));