@inboxsdk/core 1.1.0 → 1.1.2

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 (81) hide show
  1. package/inboxsdk.js +7 -34
  2. package/inboxsdk.js.map +1 -1
  3. package/package.json +1 -1
  4. package/pageWorld.js +1 -1
  5. package/pageWorld.js.map +1 -1
  6. package/src/common/version.d.ts.map +1 -1
  7. package/src/common/version.js +3 -1
  8. package/src/injected-js/main.js +0 -9
  9. package/src/platform-implementation-js/dom-driver/gmail/views/gmail-app-sidebar-view/index.test.js +6 -2
  10. package/src/platform-implementation-js/dom-driver/gmail/views/gmail-app-sidebar-view/primary/index.js +4 -2
  11. package/src/platform-implementation-js/dom-driver/gmail/views/gmail-thread-sidebar-view.js +4 -2
  12. package/src/platform-implementation-js/dom-driver/gmail/views/gmail-thread-sidebar-view.test.js +6 -2
  13. package/src/platform-implementation-js/driver-common/sidebar/ContentPanelViewDriver.js +2 -2
  14. package/src/platform-implementation-js/driver-common/sidebar/constants.d.ts +9 -0
  15. package/src/platform-implementation-js/driver-common/sidebar/constants.d.ts.map +1 -0
  16. package/src/platform-implementation-js/driver-common/sidebar/constants.js +26 -0
  17. package/src/platform-implementation-js/lib/idMap.d.ts +7 -0
  18. package/src/platform-implementation-js/lib/idMap.d.ts.map +1 -1
  19. package/src/platform-implementation-js/lib/idMap.js +35 -0
  20. package/src/platform-implementation-js/platform-implementation.d.ts +0 -3
  21. package/src/platform-implementation-js/platform-implementation.js +1 -9
  22. package/src/injected-js/inbox/setupAjaxInterceptor.js +0 -211
  23. package/src/injected-js/inbox/setupClickAndGetNewIframeSrc.js +0 -67
  24. package/src/injected-js/inbox/setupComposeViewDraftIDFinder.js +0 -35
  25. package/src/injected-js/inbox/setupInboxFakeWindowResizeListener.js +0 -29
  26. package/src/platform-implementation-js/dom-driver/inbox/__mocks__/getSidebarClassnames.js +0 -13
  27. package/src/platform-implementation-js/dom-driver/inbox/addNavItem.js +0 -38
  28. package/src/platform-implementation-js/dom-driver/inbox/addRecipientRow.js +0 -55
  29. package/src/platform-implementation-js/dom-driver/inbox/createLink.js +0 -19
  30. package/src/platform-implementation-js/dom-driver/inbox/createLink.test.js +0 -27
  31. package/src/platform-implementation-js/dom-driver/inbox/detection/appToolbarLocation/parser.js +0 -43
  32. package/src/platform-implementation-js/dom-driver/inbox/detection/attachmentCard/parser.js +0 -34
  33. package/src/platform-implementation-js/dom-driver/inbox/detection/attachmentOverlay/parser.js +0 -53
  34. package/src/platform-implementation-js/dom-driver/inbox/detection/chatSidebar/parser.js +0 -31
  35. package/src/platform-implementation-js/dom-driver/inbox/detection/compose/parser.js +0 -103
  36. package/src/platform-implementation-js/dom-driver/inbox/detection/message/parser.js +0 -69
  37. package/src/platform-implementation-js/dom-driver/inbox/detection/nativeDrawer/parser.js +0 -32
  38. package/src/platform-implementation-js/dom-driver/inbox/detection/searchBar/parser.js +0 -28
  39. package/src/platform-implementation-js/dom-driver/inbox/detection/thread/parser.js +0 -49
  40. package/src/platform-implementation-js/dom-driver/inbox/detection/thread-row/parser.js +0 -100
  41. package/src/platform-implementation-js/dom-driver/inbox/getComposeViewDriverLiveSet.js +0 -99
  42. package/src/platform-implementation-js/dom-driver/inbox/getInboxMessageIdForInboxThreadId.js +0 -36
  43. package/src/platform-implementation-js/dom-driver/inbox/getSidebarClassnames.js +0 -114
  44. package/src/platform-implementation-js/dom-driver/inbox/getSidebarClassnames.test.js +0 -73
  45. package/src/platform-implementation-js/dom-driver/inbox/gotoView.js +0 -39
  46. package/src/platform-implementation-js/dom-driver/inbox/gotoView.test.js +0 -28
  47. package/src/platform-implementation-js/dom-driver/inbox/inbox-butter-bar-driver.js +0 -148
  48. package/src/platform-implementation-js/dom-driver/inbox/inbox-driver.js +0 -863
  49. package/src/platform-implementation-js/dom-driver/inbox/inbox-page-communicator.js +0 -62
  50. package/src/platform-implementation-js/dom-driver/inbox/inboxResponseProcessor.js +0 -12
  51. package/src/platform-implementation-js/dom-driver/inbox/inboxResponseProcessor.test.js +0 -18
  52. package/src/platform-implementation-js/dom-driver/inbox/makePageParserTree.js +0 -33
  53. package/src/platform-implementation-js/dom-driver/inbox/pageParserOptions.js +0 -265
  54. package/src/platform-implementation-js/dom-driver/inbox/registerSearchSuggestionsProvider.js +0 -301
  55. package/src/platform-implementation-js/dom-driver/inbox/setupCustomAutocompleteSelectionHandling.js +0 -183
  56. package/src/platform-implementation-js/dom-driver/inbox/setupRouteViewDriverStream.js +0 -64
  57. package/src/platform-implementation-js/dom-driver/inbox/setupRouteViewDriverStream.test.js +0 -72
  58. package/src/platform-implementation-js/dom-driver/inbox/views/InboxLabelView.js +0 -78
  59. package/src/platform-implementation-js/dom-driver/inbox/views/InboxMoleViewDriver.js +0 -296
  60. package/src/platform-implementation-js/dom-driver/inbox/views/InboxToolbarButtonView.js +0 -91
  61. package/src/platform-implementation-js/dom-driver/inbox/views/InboxToolbarView.js +0 -53
  62. package/src/platform-implementation-js/dom-driver/inbox/views/inbox-app-sidebar-view.js +0 -271
  63. package/src/platform-implementation-js/dom-driver/inbox/views/inbox-app-toolbar-button-view.js +0 -160
  64. package/src/platform-implementation-js/dom-driver/inbox/views/inbox-app-toolbar-tooltip-view.js +0 -57
  65. package/src/platform-implementation-js/dom-driver/inbox/views/inbox-attachment-card-view.js +0 -197
  66. package/src/platform-implementation-js/dom-driver/inbox/views/inbox-attachment-overlay-view.js +0 -83
  67. package/src/platform-implementation-js/dom-driver/inbox/views/inbox-chat-sidebar-view.js +0 -45
  68. package/src/platform-implementation-js/dom-driver/inbox/views/inbox-compose-button-view.js +0 -116
  69. package/src/platform-implementation-js/dom-driver/inbox/views/inbox-compose-view.js +0 -842
  70. package/src/platform-implementation-js/dom-driver/inbox/views/inbox-custom-route-view.js +0 -75
  71. package/src/platform-implementation-js/dom-driver/inbox/views/inbox-dropdown-view.js +0 -25
  72. package/src/platform-implementation-js/dom-driver/inbox/views/inbox-dummy-route-view.js +0 -63
  73. package/src/platform-implementation-js/dom-driver/inbox/views/inbox-message-view.js +0 -274
  74. package/src/platform-implementation-js/dom-driver/inbox/views/inbox-modal-view.js +0 -112
  75. package/src/platform-implementation-js/dom-driver/inbox/views/inbox-route-view.js +0 -96
  76. package/src/platform-implementation-js/dom-driver/inbox/views/inbox-thread-row-view.js +0 -315
  77. package/src/platform-implementation-js/dom-driver/inbox/views/inbox-thread-view.js +0 -218
  78. package/src/platform-implementation-js/dom-driver/inbox/views/inbox-thread-view.test.js +0 -171
  79. package/src/platform-implementation-js/dom-driver/inbox/views/inbox-tooltip-view.js +0 -127
  80. package/src/platform-implementation-js/dom-driver/inbox/views/inboxNavItemView.js +0 -311
  81. package/src/platform-implementation-js/dom-driver/inbox/waitForAnimationClickBlockerGone.js +0 -26
package/pageWorld.js CHANGED
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see pageWorld.js.LICENSE.txt */
2
- (()=>{var t={3758:t=>{t.exports=function(t,e){var n="number"==typeof t,r="number"==typeof e;n&&!r?(e=t,t=0):n||r||(t=0,e=0);var i=(e|=0)-(t|=0);if(i<0)throw new Error("array length must be positive");for(var o=new Array(i),s=0,u=t;s<i;s++,u++)o[s]=u;return o}},9272:(t,e,n)=>{"use strict";var r=n(723),i=[],o=[],s=r.makeRequestCallFromTimer((function(){if(o.length)throw o.shift()}));function u(t){var e;(e=i.length?i.pop():new a).task=t,r(e)}function a(){this.task=null}t.exports=u,a.prototype.call=function(){try{this.task.call()}catch(t){u.onerror?u.onerror(t):(o.push(t),s())}finally{this.task=null,i[i.length]=this}}},723:(t,e,n)=>{"use strict";function r(t){o.length||i(),o[o.length]=t}t.exports=r;var i,o=[],s=0;function u(){for(;s<o.length;){var t=s;if(s+=1,o[t].call(),s>1024){for(var e=0,n=o.length-s;e<n;e++)o[e]=o[e+s];o.length-=s,s=0}}o.length=0,s=0}var a,c,l,f=void 0!==n.g?n.g:self,h=f.MutationObserver||f.WebKitMutationObserver;function p(t){return function(){var e=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(e),clearInterval(n),t()}}}"function"==typeof h?(a=1,c=new h(u),l=document.createTextNode(""),c.observe(l,{characterData:!0}),i=function(){a=-a,l.data=a}):i=p(u),r.requestFlush=i,r.makeRequestCallFromTimer=p},8583:(t,e,n)=>{"use strict";var r=n(7418);function i(t,e){if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0}function o(t){return n.g.Buffer&&"function"==typeof n.g.Buffer.isBuffer?n.g.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}var s=n(9539),u=Object.prototype.hasOwnProperty,a=Array.prototype.slice,c="foo"===function(){}.name;function l(t){return Object.prototype.toString.call(t)}function f(t){return!o(t)&&"function"==typeof n.g.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer)))}var h=t.exports=m,p=/\s*function\s+([^\(\s]*)\s*/;function d(t){if(s.isFunction(t)){if(c)return t.name;var e=t.toString().match(p);return e&&e[1]}}function y(t,e){return"string"==typeof t?t.length<e?t:t.slice(0,e):t}function _(t){if(c||!s.isFunction(t))return s.inspect(t);var e=d(t);return"[Function"+(e?": "+e:"")+"]"}function v(t,e,n,r,i){throw new h.AssertionError({message:n,actual:t,expected:e,operator:r,stackStartFunction:i})}function m(t,e){t||v(t,!0,e,"==",h.ok)}function g(t,e,n,r){if(t===e)return!0;if(o(t)&&o(e))return 0===i(t,e);if(s.isDate(t)&&s.isDate(e))return t.getTime()===e.getTime();if(s.isRegExp(t)&&s.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(null!==t&&"object"==typeof t||null!==e&&"object"==typeof e){if(f(t)&&f(e)&&l(t)===l(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===i(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(o(t)!==o(e))return!1;var u=(r=r||{actual:[],expected:[]}).actual.indexOf(t);return-1!==u&&u===r.expected.indexOf(e)||(r.actual.push(t),r.expected.push(e),function(t,e,n,r){if(null==t||null==e)return!1;if(s.isPrimitive(t)||s.isPrimitive(e))return t===e;if(n&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=b(t),o=b(e);if(i&&!o||!i&&o)return!1;if(i)return g(t=a.call(t),e=a.call(e),n);var u,c,l=E(t),f=E(e);if(l.length!==f.length)return!1;for(l.sort(),f.sort(),c=l.length-1;c>=0;c--)if(l[c]!==f[c])return!1;for(c=l.length-1;c>=0;c--)if(!g(t[u=l[c]],e[u],n,r))return!1;return!0}(t,e,n,r))}return n?t===e:t==e}function b(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function w(t,e){if(!t||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function x(t,e,n,r){var i;if("function"!=typeof e)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),t&&!i&&v(i,n,"Missing expected exception"+r);var o="string"==typeof r,u=!t&&i&&!n;if((!t&&s.isError(i)&&o&&w(i,n)||u)&&v(i,n,"Got unwanted exception"+r),t&&i&&n&&!w(i,n)||!t&&i)throw i}h.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return y(_(t.actual),128)+" "+t.operator+" "+y(_(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var n=new Error;if(n.stack){var r=n.stack,i=d(e),o=r.indexOf("\n"+i);if(o>=0){var s=r.indexOf("\n",o+1);r=r.substring(s+1)}this.stack=r}}},s.inherits(h.AssertionError,Error),h.fail=v,h.ok=m,h.equal=function(t,e,n){t!=e&&v(t,e,n,"==",h.equal)},h.notEqual=function(t,e,n){t==e&&v(t,e,n,"!=",h.notEqual)},h.deepEqual=function(t,e,n){g(t,e,!1)||v(t,e,n,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(t,e,n){g(t,e,!0)||v(t,e,n,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(t,e,n){g(t,e,!1)&&v(t,e,n,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function t(e,n,r){g(e,n,!0)&&v(e,n,r,"notDeepStrictEqual",t)},h.strictEqual=function(t,e,n){t!==e&&v(t,e,n,"===",h.strictEqual)},h.notStrictEqual=function(t,e,n){t===e&&v(t,e,n,"!==",h.notStrictEqual)},h.throws=function(t,e,n){x(!0,t,e,n)},h.doesNotThrow=function(t,e,n){x(!1,t,e,n)},h.ifError=function(t){if(t)throw t},h.strict=r((function t(e,n){e||v(e,!0,n,"==",t)}),h,{equal:h.strictEqual,deepEqual:h.deepStrictEqual,notEqual:h.notStrictEqual,notDeepEqual:h.notDeepStrictEqual}),h.strict.strict=h.strict;var E=Object.keys||function(t){var e=[];for(var n in t)u.call(t,n)&&e.push(n);return e}},5408:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=new Array(2*t.length-1);e[0]=t[0];for(var n=0,r=arguments.length<=1?0:arguments.length-1;n<r;n++){var o=n+1<1||arguments.length<=n+1?void 0:arguments[n+1];e[2*n+1]=o&&Object.prototype.hasOwnProperty.call(o,"__html")?o.__html:(0,i.default)(o),e[2*n+2]=t[n+1]}return e.join("")};var r,i=(r=n(1675))&&r.__esModule?r:{default:r};t.exports=e.default,t.exports.default=e.default},7709:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var r=n(7673),i=n(443);const o=/([?&])_=[^&]*/;let s=Date.now()+Math.floor(Math.random()*Math.pow(2,32));const u=64e3,a=5,c={};function l(t){if(!t||"string"!=typeof t.url)throw new Error("URL must be given");return new Promise((function(e,n){const f=t.method?t.method:"GET";let h=t.url,p=null;t.data&&(p="string"==typeof t.data?t.data:r.stringify(t.data),"GET"!==f&&"HEAD"!==f||(h+=(/\?/.test(h)?"&":"?")+p,p=null));const d=null!=t.canRetry?t.canRetry:"GET"===f||"HEAD"===f,y=h.match(/(?:(?:[a-z]+:)?\/\/)?([^/]*)\//);if(!y)throw new Error("Failed to match url");const _=y[1];if(Object.prototype.hasOwnProperty.call(c,_))return void n(new Error(`Server at ${h} has told us to stop connecting`));t.cachebust&&(h=function(t){return o.test(t)?t.replace(o,"$1_="+s++):t+(/\?/.test(t)?"&":"?")+"_="+s++}(h));const v=new(t.XMLHttpRequest||window.XMLHttpRequest);if(Object.assign(v,t.xhrFields),v.onerror=function(r){if((t.retryNum||0)<a&&(502===v.status||(0===v.status||v.status>=500)&&d))return void e(function(t){const e=(t.retryNum||0)+1,n=Math.min(1e3*Math.pow(2,e),u);return(0,i.Z)(n).then((()=>l(Object.assign({},t,{retryNum:e}))))}(t));const o=Object.assign(new Error(`Failed to load ${h}`),{event:r,xhr:v,status:v.status});490==v.status&&(c[_]=!0),n(o)},v.onload=function(t){200===v.status?e({xhr:v,text:v.responseText}):v.onerror(t)},v.open(f,h,!0),t.headers){const{headers:e}=t;Object.keys(e).forEach((t=>{const n=e[t];v.setRequestHeader(t,n)}))}v.send(p)}))}},2780:(t,e,n)=>{"use strict";function r(t){const e=document.createElement("div");return e.innerHTML=t.replace(/<[^>]*>?/g,""),e.textContent}n.d(e,{Z:()=>r})},9638:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var r=n(1675),i=n.n(r),o=n(5408),s=n.n(o),u=n(1010),a=n(2780),c=n(8153);t=n.hmd(t);const l=(0,u.Kg)(t,(function(t,e){const{value:n,options:r}=c.vB(t),o=n[0][1];for(const t of e){let e,r,u,c;if("string"==typeof t.name?(e=t.name,r=i()(e)):"string"==typeof t.nameHTML&&(r=t.nameHTML,e=(0,a.Z)(r)),null==e||null==r)throw new Error("name or nameHTML must be provided");"string"==typeof t.description?(u=t.description,c=i()(u)):"string"==typeof t.descriptionHTML&&(c=t.descriptionHTML,u=(0,a.Z)(c));const l={id:t.id,routeName:t.routeName,routeParams:t.routeParams,externalURL:t.externalURL};r+=s()` <span style="display:none" data-inboxsdk-suggestion="${JSON.stringify(l)}"></span>`,null!=t.iconHTML&&(r=`<div class="inboxsdk__custom_suggestion_iconHTML">${t.iconHTML}</div>${r}`);const f=["aso.sug",t.searchTerm||o,r,null,[],0,null,"asor inboxsdk__custom_suggestion "+t.providerId+" "+(t.iconClass||""),0];null!=c&&(f[3]=["aso.eme",u,e,c,r]),null!=t.iconHTML?(f[6]=["aso.thn","data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="],f[7]+=" inboxsdk__no_bg"):t.iconUrl?(f[6]=["aso.thn",t.iconUrl],f[7]+=" inboxsdk__no_bg"):f[7]+=" asor_i4",n[0][3].push(f)}return c.qC(n,r)}))},4030:(t,e,n)=>{"use strict";n.d(e,{Z:()=>mt});var r=n(6678),i=n.n(r),o=n(5564),s=n.n(o),u=n(3311),a=n.n(u),c=n(5325),l=n.n(c),f=n(4721),h=n.n(f),p=n(4431),d=n.n(p),y=n(6609),_=n(3721),v=n(5294),m=n(7673),g=n(8153),b=n(8583),w=n.n(b);function x(t){var e,n,r;w()(t.hasAttribute("id"),"check element is main thread row");var i=[];if(2===l()(Array.from(t.classList),["zA","apv"]).length){var o=t.nextElementSibling;if(o){var s=o.nextElementSibling;s&&s.classList.contains("apw")||(s=null),e=t.querySelector("td.apt > div.apm > span[title]"),n=o.querySelector("td div.xS div.xT div.y6 > span"),r=t.querySelector("td.apy > div.yW, td.apx > div.yW")}else i.push("failed to find threadRow2")}else{e=t.querySelector("td.xW > span[title]");var u=t.querySelector("td.a4W div[role=link] div.y6");u&&u.children.length>=1&&(n=u.children[0]),r=t.querySelector("td.yX > div.yW")}return e||i.push("failed to find timeSpan"),n||i.push("failed to find subjectSpan"),r||i.push("failed to find peopleDiv"),i.length&&_.error(new Error("Errors in thread row parsing"),{errors:i}),{timeString:e&&e.getAttribute("title")||"",subject:n?n.textContent:"",peopleHtml:r?(0,g.E3)(r.innerHTML):""}}var E=n(5703),A=n.n(E),S=n(308),T=n.n(S);const O=A()(!0);function I(t,e){return Object.prototype.hasOwnProperty.call(t,e)?t[e]:null}function j(t){const e=document.createEvent("MouseEvents");let n;e.initMouseEvent("click",!0,!0,document.defaultView,0,0,0,0,0,!0,!1,!1,!0,0,null);const r=window.open,i=window.onerror,o=I(window.HTMLElement.prototype,"focus"),s=I(window.HTMLElement.prototype,"blur");try{window.HTMLElement.prototype.focus=T(),window.HTMLElement.prototype.blur=T(),window.onerror=O;const r=function(t,e,r){n=t;const i={closed:!1,focus:T()};return setTimeout((function(){i.closed=!0}),5),i};if(window.open=r,window.open!==r)return _.error(new Error("Failed to override window.open")),null;t.dispatchEvent(e)}finally{o?window.HTMLElement.prototype.focus=o:delete window.HTMLElement.prototype.focus,s?window.HTMLElement.prototype.blur=s:delete window.HTMLElement.prototype.blur,window.onerror=i,window.open=r}return n}function L(t){t.forEach(R)}const D={name:"AMBIGUOUS"},k=new Map;function R(t){var e=B(t);k.has(e)?k.get(e)!==t.gmailThreadId&&k.set(e,D):k.set(e,t.gmailThreadId)}function B(t){return t.subject.trim()+":"+t.timeString.trim()+":"+t.peopleHtml.trim()}var M=n(240),C=n.n(M),P=n(5440);function N(t){return null!=t}function q(t){const e=JSON.parse(t);if(Array.isArray(e))return function(t){const e=t&&t[1];if(!e)throw new Error("Failed to process thread response");return e.map((t=>{if("string"!=typeof t[0]||!Array.isArray(t[2])||t[1]&&t[1][0]&&t[1][0][13]&&Array.isArray(t[1][1])){const e=t[1]&&t[1][0];if(!e)return null;let n;const r=Array.isArray(t[2])&&t[2];return n=r?r.map((t=>({syncMessageID:t[0],date:+t[1][16],recipients:V(t)}))):(t[1]&&t[1][1]).map((t=>({syncMessageId:t[0],date:+t[15]}))),{subject:e[1],snippet:e[2],syncThreadID:e[0],oldGmailThreadID:new(d())(e[13]).toString(16),rawResponse:t,extraMetaData:{syncMessageData:n,snippet:""}}}return{syncThreadID:t[0],oldGmailThreadID:t[1]&&t[1][0]&&t[1][0][15]||void 0,extraMetaData:{snippet:t[1]&&t[1][0]&&t[1][0][2]||void 0,syncMessageData:(t[2]||[]).filter((t=>Boolean(t[1]))).map((t=>({syncMessageID:t[0],date:+t[1][16],recipients:V(t)})))}}})).filter(N)}(e);const n=e&&e[2];if(!n)throw new Error("Failed to process thread response");return n.map((t=>{if("string"!=typeof t[1]||!Array.isArray(t[3])||t[2]&&t[2][1]&&t[2][1][14]&&Array.isArray(t[2][2])){const e=t[2]&&t[2][1];if(!e)return null;let n;const r=Array.isArray(t[3])&&t[3];return n=r?r.map((t=>({syncMessageID:t[1],date:+t[2][17],recipients:U(t)}))):(t[2]&&t[2][2]).map((t=>({syncMessageId:t[1],date:+t[16]}))),{subject:e[2],snippet:e[3],syncThreadID:e[1],oldGmailThreadID:new(d())(e[14]).toString(16),rawResponse:t,extraMetaData:{syncMessageData:n,snippet:""}}}return{syncThreadID:t[1],oldGmailThreadID:t[2]&&t[2][1]&&t[2][1][16]||void 0,extraMetaData:{snippet:t[2]&&t[2][1]&&t[2][1][3]||void 0,syncMessageData:(t[3]||[]).filter((t=>Boolean(t[2]))).map((t=>({syncMessageID:t[1],date:+t[2][17],recipients:U(t)})))}}})).filter(N)}function U(t){if(!t[2])return;const e=t[2][1]||[],n=t[2][2]||[],r=t[2][3]||[];return e.concat(n).concat(r).map((t=>({emailAddress:t[2],name:t[3]})))}function V(t){if(!t[1])return;const e=t[1][0]||[],n=t[1][1]||[],r=t[1][2]||[];return e.concat(n).concat(r).map((t=>({emailAddress:t[1],name:t[2]})))}var $=n(1375);var F=n(8006);const H=new Map;function z(t,e,n){const{target:r,detail:{threadId:i,ikValue:o,btaiHeader:s,xsrfToken:u}}=t;(async()=>{const t=Array.from(r.parentElement.children).filter((t=>!t.classList.contains("inboxsdk__custom_message_view"))).indexOf(r);if(t<0)throw new Error("Should not happen");let a=G(i,t);if(null==a||!a.recipients){try{await function(t,e,n,r){const i=W.get(t);if(i)return i;const o=(async()=>{try{if(C()(t,"thread")){if(!n||!r)throw new Error("Need btaiHeader and xsrfToken when in new data layer");const e=await async function(t,e,n){let r=null;try{let{text:i}=await(0,P.Z)({method:"POST",url:`https://mail.google.com/sync${(0,$.Z)()}/i/fd`,headers:{"Content-Type":"application/json","X-Framework-Xsrf-Token":n,"X-Gmail-BTAI":e,"X-Google-BTD":"1"},data:JSON.stringify({1:[{1:t,2:1}]})});r=i}catch(i){let{text:o}=await(0,P.Z)({method:"POST",url:`https://mail.google.com/sync${(0,$.Z)()}/i/fd?rt=r&pt=ji`,headers:{"Content-Type":"application/json","X-Framework-Xsrf-Token":n,"X-Gmail-BTAI":e,"X-Google-BTD":"1"},data:JSON.stringify([[[t,1]],2])});r=o}const i=q(r);if(i.length>0){const t=i[0];if(t.oldGmailThreadID)return t}return null}(t,n,r);e&&K([{threadID:e.syncThreadID,messages:e.extraMetaData.syncMessageData.map((t=>({date:t.date,recipients:t.recipients})))}])}else{const n=await(0,F.Z)(e,t);K((0,g.bd)(n))}}catch(t){_.error(t)}finally{W.delete(t)}})();return W.set(t,o),o}(i,o,s,u)}catch(t){_.error(t)}if(a=G(i,t),null==a)throw new Error("Failed to find message date after re-requesting thread")}r.setAttribute(e,JSON.stringify(n(a)))})().catch((t=>{r.setAttribute(e,"error"),_.error(t)}))}function G(t,e){const n=H.get(t);if(n){const t=n[e];if(t)return t}}function K(t){t.forEach((t=>{H.set(t.threadID,t.messages)}))}const W=new Map;function Z(t){let e=[],n=0;const r=/"[^"]*"/g;for(;;){const i=r.exec(t);if(e=e.concat((i?t.substring(n,i.index):t.substring(n)).split(/ +/).filter(Boolean)),!i)break;n=i.index+i[0].length,e.push(i[0])}return e}function J(){let t,e;const n=new Promise(((n,r)=>{t=n,e=r}));return{resolve:t,reject:e,promise:n}}var X=n(9638),Q=n(9734),Y=n.n(Q);const tt=["^pfg"],et=["^r","^r_bt"],nt=["SEND","DRAFT_SAVE"];function rt(t){const e=t[1]?.[0];if(!Array.isArray(e))return null;const n=e.map(at).filter(N);return Y()(n,(t=>nt.indexOf(t.type)))[0]||null}function it(t){return t.startsWith("thread-")?t.includes("|")?t.split("|")[0]:t:null}function ot(t){return t.startsWith("msg-")?t:null}function st(t){return Array.isArray(t)?t.filter((t=>!!t[1])).map((t=>({emailAddress:t[1],name:t[2]??null}))):null}function ut(t){const e=[t[1]?.[2]?.[0]?.[4]?.[0],t[1]?.[1]?.[0],t[1]?.[13]?.[0]];for(const t of e){const e=ct(t);if(e)return{parsedMsg:e,originalMsg:t}}return null}function at(t){if(!Array.isArray(t)||!Array.isArray(t[1]))return null;const e=t[1],n=it(e[0]);if(!n)return null;const r=ut(e);if(!r)return null;const{parsedMsg:i,originalMsg:o}=r,{messageId:s,to:u,cc:a,bcc:c,subject:l,body:f,actions:h}=i;let p=ht(h);return p?("DRAFT_SAVE"!==p||o!==e[1]?.[2]?.[0]?.[4]?.[0]&&o!==e[1]?.[1]?.[0]||(p="FIRST_DRAFT_SAVE"),{threadId:n,messageId:s,to:u,cc:a,bcc:c,subject:l,body:f,actions:h,type:p}):null}function ct(t){if(!Array.isArray(t))return null;const e=ot(t[0]);if(!e)return null;const n=t[7];return{messageId:e,to:st(t[2]),cc:st(t[3]),bcc:st(t[4]),subject:n,body:t[8][1][0][1],actions:t[10],rfcID:t[13],oldMessageId:t[55]}}function lt(t,e){if(!Array.isArray(t))return null;t[8][1][0][1]=e}function ft(t){if(!Array.isArray(t)||!Array.isArray(t[0]))return null;const e=t[0],n=it(e[0]);if(!n)return null;const r=e[2]?.[6]?.[0];return Array.isArray(r)?{threadId:n,oldThreadId:r[19],parsedMessages:Array.isArray(r[4])?r[4].map((t=>Array.isArray(t)?function(t){if(!Array.isArray(t))return null;const e=ot(t[0]);if(!e)return null;const n=t[10];return{messageId:e,to:st(t[2]),cc:st(t[3]),bcc:st(t[4]),actions:n,rfcID:t[13],oldMessageId:t[55]}}(t):null)).filter(N):[]}:null}function ht(t){return l()(t,et).length===et.length?"DRAFT_SAVE":l()(t,tt).length===tt.length?"SEND":null}function pt(t,e){const n=t[9]&&t[9][2]&&t[9][2][0]&&t[9][2][0][2];return null==n?null:{body:n,type:e,to:dt(t[3]),cc:dt(t[4]),bcc:dt(t[5]),draftID:t[1].replace("msg-a:",""),subject:t[8]}}function dt(t){return Array.isArray(t)?t.map((t=>({emailAddress:t[2],name:t[3]||null}))):null}function yt(t){const e=JSON.parse(t);try{if(Array.isArray(e)){const t=function(t){return rt(t)}(e);return t?{type:t.type,to:t.to,cc:t.cc,bcc:t.bcc,draftID:t.messageId.replace("msg-a:",""),subject:t.subject,body:t.body}:null}}catch(t){_.eventSdkPassive("connection.requestResponseParsingFailed",{requestParseError:t})}return function(t){const e=t[2]&&t[2][1];if(!e)return null;const n=e.filter((t=>{const e=t[2]&&t[2][2]&&(t[2][2][14]||t[2][2][2]);return e&&e[1]&&e[1][1]&&e[1][1].indexOf("msg-a:")>-1}));if(n.length){const t=n.find((t=>{const e=t[2]&&t[2][2]&&(t[2][2][14]||t[2][2][2]);return e[1][11]&&l()(e[1][11],tt).length===tt.length}));if(t)return pt((t[2]&&t[2][2]&&(t[2][2][14]||t[2][2][2]))[1],"SEND");{const t=n[0];return pt((t[2]&&t[2][2]&&(t[2][2][14]||t[2][2][2]))[1],"DRAFT_SAVE")}}{const t=e.map((t=>t[2]&&t[2][2]&&t[2][2][3]&&t[2][2][3][1]&&t[2][2][3][1][5]&&t[2][2][3][1][5][0])).filter(Boolean);return 0===t.length?null:pt(t[0],"FIRST_DRAFT_SAVE")}}(e)}function _t(t,e){const n=JSON.parse(t);try{if(Array.isArray(n)){const r=function(t,e){return function(t,e){const n=rt(t);if(!n)return null;const r=n.messageId,i=t[1]?.[0];if(!Array.isArray(i))return null;for(const n of i){if(!Array.isArray(n)||!Array.isArray(n[1]))return null;const i=n[1];if(!it(i[0]))return null;const o=ut(i);if(o?.parsedMsg.messageId===r&&"SEND"===ht(o.parsedMsg.actions))return lt(o.originalMsg,e),t}return null}(t,e)}(n,e);return r?JSON.stringify(r):t}}catch(t){_.eventSdkPassive("connection.requestResponseParsingFailed",{replaceBodyFailed:t})}return function(t,e){if(!e)return t;const n=JSON.parse(t),r=n[2]&&n[2][1];if(!r)return t;const i=r.filter((t=>{const e=t[2]&&t[2][2]&&(t[2][2][14]||t[2][2][2]);return e&&e[1]&&e[1][1]&&e[1][1].indexOf("msg-a:")>-1}));if(!i.length)return t;const o=i.find((t=>{const e=t[2]&&t[2][2]&&(t[2][2][14]||t[2][2][2]);return e[1][11]&&l()(e[1][11],tt).length===tt.length}));return o?((o[2]&&o[2][2]&&(o[2][2][14]||o[2][2][2]))[1][9][2][0][2]=e,JSON.stringify(n)):t}(t,e)}function vt(t,e){"XMLHttpRequest event listener error"!==e?_.error(t,e):setTimeout((function(){throw t}),1)}function mt(){let t=null;const e=top.document.getElementById("js_frame");e?t=e.contentDocument.defaultView:_.eventSdkPassive("noJSFrameElementFound"),function(t,e){const n=[],r=[];{const e=t.XMLHttpRequest;t.XMLHttpRequest=(0,v.Z)(e,n,{logError:vt})}if(e){const t=e.XMLHttpRequest;e.XMLHttpRequest=(0,v.Z)(t,r,{logError:vt})}(function(){try{!function(){const t=a()(document.querySelectorAll("script:not([src])"),(t=>t.text&&t.text.slice(0,500).indexOf("var VIEW_DATA=[[")>-1));if(t){const e=t.text.indexOf("["),n=t.text.lastIndexOf("]"),r=t.text.slice(e,n+1);L(g.Ae([g.GE(r)]))}}()}catch(t){_.error(t,"Failed to process preloaded thread identifiers")}document.addEventListener("inboxSDKtellMeThisThreadIdByDatabase",(function(t){try{const e=function(t){const e=B(x(t)),n=k.get(e);if("string"==typeof n)return n}(t.target);e&&t.target.setAttribute("data-inboxsdk-threadid",e)}catch(t){_.error(t,"Error in inboxSDKtellMeThisThreadIdByDatabase")}})),document.addEventListener("inboxSDKtellMeThisThreadIdByClick",(function(t){try{const e=function(t){x(t);const e=function(t,e){let n=t.parentElement;for(;n;){if(e(n))return n;n=n.parentElement}return null}(t,(t=>"DIV"===t.nodeName&&"main"===t.getAttribute("role")));if(!e)throw new Error("Can't operate on disconnected thread row");const n=e.querySelector("td.PE")||e.querySelector("tr"),r=j(t),i=r&&function(t){var e=(0,m.parse)(t).th;if(!e){var n=t.match(/#(.*)/);n&&(t=decodeURIComponent(decodeURIComponent(n[1])),e=(0,m.parse)(t).th)}return e.replace("#","")}(r);return n&&j(n),i}(t.target);e&&t.target.setAttribute("data-inboxsdk-threadid",e)}catch(t){_.error(t,"Error in inboxSDKtellMeThisThreadIdByClick")}}))})(),document.addEventListener("inboxSDKtellMeThisMessageDate",(function(t){z(t,"data-inboxsdk-sortdate",(t=>t.date))})),document.addEventListener("inboxSDKtellMeThisMessageRecipients",(function(t){z(t,"data-inboxsdk-recipients",(t=>t.recipients?t.recipients:null))}));{let t={};y.default.fromEvents(document,"inboxSDKregisterComposeRequestModifier").onValue((e=>{let{detail:n}=e;const r=n.composeid||n.draftID;t[r]||(t[r]=[]),t[r].push(n.modifierId)})),y.default.fromEvents(document,"inboxSDKunregisterComposeRequestModifier").onValue((e=>{let{detail:n}=e;const{keyId:r,modifierId:i}=n;t[r]=t[r].filter((t=>t!==i)),0===t[r].length&&delete t[r]})),r.push({isRelevantTo:function(t){return"sm"===t.params.act},originalSendBodyLogger:function(t,e){gt({type:"emailSending",body:e})},requestChanger:async function(e,n){let r=m.parse(n.body);const i=r.composeid,o=t[r.composeid];if(!o||0===o.length)return n;for(let t=0;t<o.length;t++){const e=o[t],n=y.default.fromEvents(document,"inboxSDKcomposeRequestModified").filter((t=>{let{detail:n}=t;return n.composeid===i&&n.modifierId===e})).take(1).map((t=>{let{detail:e}=t;return e.composeParams})).toPromise(Promise);gt({type:"inboxSDKmodifyComposeRequest",composeid:i,modifierId:e,composeParams:{body:r.body,isPlainText:"1"!==r.ishtml}});let s=await n;r=Object.assign({},r,s)}return Object.assign({},n,{body:bt(r)})},afterListeners:function(e){if(200===e.status&&(gt({type:"emailSent",responseText:e.originalResponseText,originalSendBody:e.originalSendBody}),e.originalSendBody)){const n=m.parse(e.originalSendBody);delete t[n.composeid]}}}),r.push({isRelevantTo:function(t){return"sd"===t.params.act},originalSendBodyLogger:function(t,e){gt({type:"emailDraftSaveSending",body:e})},afterListeners:function(t){200===t.status&&gt({type:"emailDraftReceived",responseText:t.originalResponseText,originalSendBody:t.originalSendBody,connectionDetails:{method:t.method,url:t.url,params:t.params,responseType:t.responseType}})}});{const e=new WeakMap,r=new WeakMap,i=new WeakMap;n.push({isRelevantTo:t=>/sync(?:\/u\/\d+)?\/i\/s/.test(t.url),originalSendBodyLogger(t){if(t.originalSendBody){const n=yt(t.originalSendBody);if(!n)return;const{draftID:o}=n;switch(n.type){case"FIRST_DRAFT_SAVE":i.set(t,o);break;case"DRAFT_SAVE":r.set(t,o);break;case"SEND":e.set(t,o),gt({type:"emailSending",draftID:o})}}},requestChanger:async function(e,n){const r=yt(n.body);if(!r||"SEND"!==r.type)return n;const{draftID:i,body:o,type:s}=r,u=t[i];if(!u||0===u.length)return n;let a=r.body;for(let t=0;t<u.length;t++){const e=u[t],n=y.default.fromEvents(document,"inboxSDKcomposeRequestModified").filter((t=>{let{detail:n}=t;return n.draftID===i&&n.modifierId===e})).take(1).map((t=>{let{detail:e}=t;return e.composeParams})).toPromise(Promise);gt({type:"inboxSDKmodifyComposeRequest",draftID:i,modifierId:e,composeParams:{body:a,isPlainText:!1}}),a=(await n).body}return Object.assign({},n,{body:_t(n.body,a)})},afterListeners(t){if(e.has(t)||r.has(t)||i.has(t)){const n=()=>{gt({type:"emailSendFailed",draftID:o}),e.delete(t)},o=e.get(t)||r.get(t)||i.get(t);if(200!==t.status||!t.originalResponseText)return void n();try{const n=function(t){const e=JSON.parse(t);return Array.isArray(e)?function(t){return function(t){const e=t[1]?.[5];return Array.isArray(e)?e.map(ft).filter(N).flatMap((t=>{const{threadId:e,oldThreadId:n,parsedMessages:r}=t;return r.map((t=>{const{messageId:r,to:i,cc:o,bcc:s,actions:u,rfcID:a,oldMessageId:c}=t,l=ht(u);return l?{threadId:e,messageId:r,to:i,cc:o,bcc:s,actions:u,rfcID:a,oldMessageId:c,oldThreadId:n,type:l}:null}))})).filter(N):[]}(t)}(e):[]}(t.originalResponseText);for(const s of n)if(!o||s.messageId.endsWith(o)){if("FIRST_DRAFT_SAVE"===s.type||"DRAFT_SAVE"===s.type)return gt({draftID:o,type:"emailDraftReceived",rfcID:s.rfcID,threadID:s.threadId,messageID:s.messageId,oldMessageID:s.oldMessageId,oldThreadID:s.oldThreadId}),e.delete(t),r.delete(t),void i.delete(t);if("SEND"===s.type)return gt({draftID:o,type:"emailSent",rfcID:s.rfcID,threadID:s.threadId,messageID:s.messageId,oldMessageID:s.oldMessageId,oldThreadID:s.oldThreadId}),e.delete(t),r.delete(t),void i.delete(t)}}catch(t){_.eventSdkPassive("connection.requestResponseParsingFailed",{responseParseError:t})}const s=JSON.parse(t.originalResponseText);if(i.has(t)){const t=s[2]&&s[2][6]&&s[2][6][0]&&s[2][6][0][1];if(t){const e=t[3]&&t[3][7]&&t[3][7][1],n=e&&e[5]&&e[5][0];e&&n?gt({draftID:o,type:"emailDraftReceived",rfcID:n[14],threadID:e[4].split("|")[0],messageID:n[1],oldMessageID:n[56],oldThreadID:e[20]}):_.error(new Error("Could not parse draft save"))}else{_.eventSdkPassive("old compose draft id handling hit");const t=s[2]&&s[2][6]&&s[2][6][1]&&s[2][6][1][1];if(t){const e=t[3]&&t[3][1]&&t[3][1][1];e&&gt({draftID:o,type:"emailDraftReceived",rfcID:e[14],messageID:e[1],oldMessageID:e[48]?new(d())(e[48]).toString(16):e[56],syncThreadID:t[1]})}}}else{const r=s[2]?.[6];if(!r)return void n();const i=r.find((t=>t[1]?.[3]?.[7]?.[1]?.[5]?.[0]?.[14]&&t[1][3][7][1][5].find((t=>h()(t[1],o)))));if(!i){if(e.has(t)){const t=r.filter((t=>t[1]?.[3]?.[5]?.[3]));if(t.length>0){const e=t[0][1][1]?t[0][1][1].replace(/\|.*$/,""):void 0;gt({draftID:o,type:"emailSent",threadID:e,messageID:t[0][1][3]?.[5]?.[5]?.[0]||t[0][1][3][5][3]?.[0]})}else n()}else n();return}const u=i[1]?.[3]?.[7]?.[1],a=u[5].find((t=>t[1].includes(o)));if(!a)return void n();const c=e.has(t);Array.isArray(a[11])?c&&a[11].indexOf("^r")>=0&&_.error(new Error('sendUpdate[11] unexpectedly contained "^r"')):_.error(new Error("sendUpdate[11] was not an array")),c&&void 0!==a[22]&&3!==a[22]&&_.error(new Error("sendUpdate[22] was not expected value"),{value:a[22]});const l=u[4]?u[4].replace(/\|.*$/,""):void 0;gt({draftID:o,type:c?"emailSent":"emailDraftReceived",rfcID:a[14],messageID:a[1],oldMessageID:a[48]?new(d())(a[48]).toString(16):a[56],threadID:l,oldThreadID:null!=u[18]?new(d())(u[18]).toString(16):u[20]})}e.delete(t),r.delete(t),i.delete(t)}}})}}r.push({isRelevantTo:t=>!!t.params.search&&"tl"===t.params.view,responseTextChanger:async(t,e)=>e,originalResponseTextLogger(t){if(200===t.status){t.params.search;e=t.originalResponseText,L(g.MA(e))}var e}}),r.push({isRelevantTo:t=>"cv"===t.params.view,originalResponseTextLogger(t){200===t.status&&K(g.bd(t.originalResponseText))}}),n.push({isRelevantTo:function(t){return/sync(?:\/u\/\d+)?\/i\/bv/.test(t.url)},originalResponseTextLogger(t){200===t.status&&K(function(t){const e=JSON.parse(t);if(Array.isArray(e))try{return function(t){const e=t&&t[2];return e?e.map(((e,n)=>{const r=e[0];return r?{subject:r[0],snippet:r[1],syncThreadID:r[3],oldGmailThreadID:null!=r[17]?new(d())(r[17]).toString(16):r[19],rawResponse:e,extraMetaData:{snippet:t[14]&&t[14][0]&&t[14][0][n]||"",syncMessageData:r[4].map((t=>({syncMessageID:t[0],oldMessageID:t[55],date:+t[6]})))}}:null})).filter(N):[]}(e)}catch(t){return[]}const n=e&&e[3];return n?n.map(((t,n)=>{const r=t[1];return r?{subject:r[1],snippet:r[2],syncThreadID:r[4],oldGmailThreadID:null!=r[18]?new(d())(r[18]).toString(16):r[20],rawResponse:t,extraMetaData:{snippet:e[15]&&e[15][1]&&e[15][1][n]||"",syncMessageData:r[5].map((t=>({syncMessageID:t[1],oldMessageID:t[56],date:+t[7]})))}}:null})).filter(N):[]}(t.originalResponseText).map((t=>({threadID:t.syncThreadID,messages:t.extraMetaData.syncMessageData.map((t=>({date:t.date,recipients:t.recipients})))}))))}}),n.push({isRelevantTo:function(t){return/sync(?:\/u\/\d+)?\/i\/fd/.test(t.url)},originalResponseTextLogger(t){200===t.status&&K(q(t.originalResponseText).map((t=>({threadID:t.syncThreadID,messages:t.extraMetaData.syncMessageData.map((t=>({date:t.date,recipients:t.recipients})))}))))}});{const t=Object.create(null);let e,r,i;document.addEventListener("inboxSDKregisterSuggestionsModifier",(function(e){let{detail:n}=e;t[n.providerID]={position:Object.keys(t).length}})),document.addEventListener("inboxSDKprovideSuggestions",(function(n){let{detail:o}=n;if(o.query===e){const n=t[o.providerID];if(!n)throw new Error("provider does not exist for providerID");if(null==r)throw new Error("tried to modified a null suggestionModifications");if(r[n.position]=o.suggestions,r.filter(Boolean).length===Object.keys(t).length){if(null==i)throw new Error("tried to resolve a null currentQueryDefer");i.resolve(s()(r)),i=e=r=null}}})),n.push({isRelevantTo:e=>Object.keys(t).length>0&&!!e.url.match(/^\/cloudsearch\/request\?/)&&"gmail"==e.params.client&&"gmail"==e.params.gs_ri,originalSendBodyLogger(t,n){const o=m.parse(n);if(!o.request)return;const s=JSON.parse(o.request)[2];s&&(e=s,i&&i.resolve(),i=t._defer=J(),r=[],gt({type:"suggestionsRequest",query:e}))},async responseTextChanger(t,e){if(t._defer&&200===t.status){const n=await t._defer.promise;if(n)return(0,X.Z)(e,n)}return e}})}{const t=[];let e;document.addEventListener("inboxSDKcreateCustomSearchTerm",(function(e){t.push(e.detail.term)})),document.addEventListener("inboxSDKsearchReplacementReady",(function(t){e.query===t.detail.query&&e.newQuery.resolve(t.detail.newQuery)})),r.push({isRelevantTo:function(n){let r;const i=n.params;return!!("POST"===n.method&&i.search&&"tl"===i.view&&n.url.match(/^\?/)&&i.q&&(r=l()(t,Z(i.q))[0]))&&(e&&e.query===i.q&&e.start!=i.start?(n._queryReplacement=e,e.start=i.start):(e&&e.newQuery.resolve(e.query),e=n._queryReplacement={term:r,query:i.q,start:i.start,newQuery:J()},gt({type:"searchQueryForReplacement",term:r,query:i.q})),!0)},requestChanger:function(t,e){return t._queryReplacement.newQuery.promise.then((function(n){let r=i()(t.params);return r.q=n,{method:e.method,url:"?"+(0,m.stringify)(r),body:e.body}}))}}),n.push({isRelevantTo:function(t){return"POST"===t.method&&/sync(?:\/u\/\d+)?\/i\/bv/.test(t.url)},requestChanger:function(n,r){let i;const o=JSON.parse(r.body);let s,u,a,c=!1;return Array.isArray(o)?(c=!0,s=o[0],u=s[3],a=s[9]):(s=o[1],u=s[4],a=s[10]),79===s[c?0:1]&&"string"==typeof u&&(i=l()(t,Z(u))[0])?(e&&e.query===u&&e.start!=a?(n._queryReplacement=e,e.start=a):(e&&e.newQuery.resolve(e.query),e=n._queryReplacement={term:i,query:u,start:a,newQuery:J()},gt({type:"searchQueryForReplacement",term:i,query:u})),n._queryReplacement.newQuery.promise.then((function(t){return c?o[0][3]=t:o[1][4]=t,{method:r.method,url:r.url,body:JSON.stringify(o)}}))):Promise.resolve(r)}})}{const t=[];let e;document.addEventListener("inboxSDKcustomListRegisterQuery",(e=>{t.push(e.detail.query)})),document.addEventListener("inboxSDKcustomListNewQuery",(t=>{if(e.query===t.detail.query&&e.start===t.detail.start){const{newQuery:n,newStart:r}=t.detail;e.newRequestParams.resolve({query:n,start:r})}})),document.addEventListener("inboxSDKcustomListResults",(t=>{e.query===t.detail.query&&e.newResults.resolve(t.detail.newResults)})),r.push({isRelevantTo:function(n){let r;const i=n.params;return!!("POST"===n.method&&i.search&&"tl"===i.view&&n.url.match(/^\?/)&&i.q&&!i.act&&(r=a()(t,(t=>t===i.q))))&&(e&&(e.newRequestParams.resolve({query:e.query,start:e.start}),e.newResults.resolve(null)),e=n._customListJob={query:i.q,start:+i.start,newRequestParams:J(),newResults:J()},gt({type:"searchForReplacement",query:e.query,start:e.start}),!0)},requestChanger:function(t,e){return t._customListJob.newRequestParams.promise.then((n=>{let{query:r,start:o}=n;const s=i()(t.params);return s.q=r,s.start=o,{method:e.method,url:"?"+(0,m.stringify)(s),body:e.body}}))},responseTextChanger:function(t,e){return gt({type:"searchResultsResponse",query:t._customListJob.query,start:t._customListJob.start,response:e}),t._customListJob.newResults.promise.then((t=>null===t?e:t))}}),n.push({isRelevantTo:function(t){return!!/sync(?:\/u\/\d+)?\/i\/bv/.test(t.url)&&(e&&(e.newRequestParams.resolve({query:e.query,start:e.start}),e.newResults.resolve(null)),!0)},requestChanger:async function(n,r){if(r.body){const i=JSON.parse(r.body),o=Array.isArray(i),s=(o?i&&i[0]&&i[0][3]:i&&i[1]&&i[1][4])||"";if(a()(t,(t=>t===s)))return e=n._customListJob={query:s,start:o?i[0][9]:i[1][10],newRequestParams:J(),newResults:J()},gt({type:"searchForReplacement",query:e.query,start:e.start}),n._customListJob.newRequestParams.promise.then((t=>{let{query:e,start:n}=t;return o?(i[0][3]=e,i[0][9]=n):(i[1][4]=e,i[1][10]=n),{method:r.method,url:r.url,body:JSON.stringify(i)}}))}return r},responseTextChanger:async function(t,e){return t._customListJob?(gt({type:"searchResultsResponse",query:t._customListJob.query,start:t._customListJob.start,response:e}),t._customListJob.newResults.promise.then((t=>null===t?e:t))):e}})}{const t=t=>{document.head.setAttribute("data-inboxsdk-btai-header",t),gt({type:"btaiHeaderReceived"})};n.push({isRelevantTo:t=>/sync(?:\/u\/\d+)?\//.test(t.url)&&!document.head.hasAttribute("data-inboxsdk-btai-header"),originalSendBodyLogger(e){e.headers["X-Gmail-BTAI"]&&t(e.headers["X-Gmail-BTAI"])}});const e=t=>{document.head.setAttribute("data-inboxsdk-xsrf-token",t),gt({type:"xsrfTokenHeaderReceived"})};n.push({isRelevantTo:t=>/sync(?:\/u\/\d+)?\//.test(t.url)&&!document.head.hasAttribute("data-inboxsdk-xsrf-token"),originalSendBodyLogger(t){t.headers["X-Framework-Xsrf-Token"]&&e(t.headers["X-Framework-Xsrf-Token"])}})}}(window,t)}function gt(t){document.dispatchEvent(new CustomEvent("inboxSDKajaxIntercept",{bubbles:!0,cancelable:!1,detail:t}))}function bt(t){const e=i()(t),n=`=${wt(e.to,"to")}&=${wt(e.cc,"cc")}&=${wt(e.bcc,"bcc")}`;return delete e.to,delete e.bcc,delete e.cc,n+"&"+m.stringify(e)}function wt(t,e){let n="";if(Array.isArray(t))for(let r=0;r<t.length;r++)n+=`&${e}=${encodeURIComponent(t[r])}`;else n+=`&${e}=${encodeURIComponent(t)}`;return n}},7851:(t,e,n)=>{"use strict";function r(){const t=new Promise((t=>{!function e(){window.gmonkey?window.gmonkey.load("2.0",t):setTimeout(e,500)}()}));document.addEventListener("inboxSDKtellMeIsConversationViewDisabled",(function(){t.then((t=>{const e=t.isConversationViewDisabled(),n=document.createEvent("CustomEvent");n.initCustomEvent("inboxSDKgmonkeyResponse",!1,!1,e),document.dispatchEvent(n)}))})),document.addEventListener("inboxSDKtellMeCurrentThreadId",(function(t){let e;if(t.detail.isPreviewedThread){const t=Array.from(document.querySelectorAll("[gh=tl] tr.aps"));if(t.length>0){const n=t.map((t=>t.querySelector("[data-thread-id]"))).filter(Boolean)[0];e=n?n.getAttribute("data-thread-id"):t[0].getAttribute("data-inboxsdk-threadid")}}else e=window.gmonkey?.v2?.getCurrentThread?.()?.getThreadId();e&&(e=e.replace("#",""),t.target.setAttribute("data-inboxsdk-currentthreadid",e))}))}n.d(e,{Z:()=>r})},74:(t,e,n)=>{"use strict";n.d(e,{Z:()=>d});var r=n(5325),i=n.n(r),o=n(1463),s=n.n(o),u=n(7499),a=n.n(u);const c=s()((()=>JSON.parse("undefined"!=typeof document&&document.documentElement.getAttribute("data-inboxsdk-active-app-ids")||"[]").find((t=>{let{appId:e}=t;return function(t){return"f471fe7b7343b47a202437c3962cc335"===function(t){const e=new(a());return e.update("bdnanNrDjv"+t),e.digest("hex").slice(0,32)}(t)}(e)}))));var l=n(3721),f=n(5294);function h(t,e){"XMLHttpRequest event listener error"!==e?l.error(t,e):setTimeout((function(){throw t}),1)}function p(t){document.dispatchEvent(new CustomEvent("inboxSDKajaxIntercept",{bubbles:!0,cancelable:!1,detail:t}))}function d(){const t=[];n.g.XMLHttpRequest=(0,f.Z)(n.g.XMLHttpRequest,t,{logError:h});{let e;t.push({isRelevantTo:t=>!!/sync(?:\/u\/\d+)?\/suggest/.test(t.url)&&(e=t,!0),afterListeners(t){if(200===t.status&&t.originalSendBody&&t===e){const e=JSON.parse(t.originalSendBody),n=e[Object.keys(e).find((t=>"1"!==t))],r=1===Object.keys(n).length&&n[1];r&&p({type:"searchSuggestionsReceieved",query:r})}}})}{let e=!1,n=[];document.addEventListener("inboxSDKcomposeViewIsSending",(()=>{e=!0,n=[]})),document.addEventListener("inboxSDKcomposeViewSendCanceled",(()=>{e=!1,n=[]}));const r=t=>{var r;e&&(n.push(t),n.length<3||(l.error(new Error("Failed to identify outgoing send request"),{requestPayloadList:(r=n,JSON.stringify(r,((t,e)=>"string"!=typeof e||e.length<=10?e:c()?`${e.substring(0,10)}...`:"...")))}),e=!1,n=[]))},o=["^pfg","^f_bt","^f_btns","^f_cl"],s=new WeakMap;t.push({isRelevantTo:t=>/sync(?:\/u\/\d+)?\/i\/s/.test(t.url),originalSendBodyLogger(t){if(t.originalSendBody){const u=JSON.parse(t.originalSendBody),a=u[2]&&u[2][1];if(!a)return void r(u);const c=a.find((t=>{const e=t[2]&&t[2][2]&&(t[2][2][14]||t[2][2][2]);return e&&e[1]&&e[1][1]&&e[1][1].indexOf("msg-a:")>-1&&e[1][11]&&i()(e[1][11],o).length===o.length}));if(!c)return void r(u);const l=(c[2]&&c[2][2]&&(c[2][2][14]||c[2][2][2]))[1],f=l[1].replace("msg-a:","");l[11],s.set(t,f),p({type:"emailSending",draftID:f}),e=!1,n=[]}},afterListeners(t){if(s.has(t)){const e=()=>{p({type:"emailSendFailed",draftID:n}),s.delete(t)},n=s.get(t);if(200!==t.status||!t.originalResponseText)return void e();const r=JSON.parse(t.originalResponseText),i=r[2]&&r[2][6];if(!i)return void e();const o=i.find((t=>t[1]&&t[1][3]&&t[1][3][7]&&t[1][3][7][1]&&t[1][3][7][1][5]&&t[1][3][7][1][5][0]&&t[1][3][7][1][5][0][14]));if(!o)return void e();p({type:"emailSent",rfcID:(o[1]&&o[1][3]&&o[1][3][7]&&o[1][3][7][1]&&o[1][3][7][1][5]&&o[1][3][7][1][5][0])[14],draftID:n}),s.delete(t)}}})}{const e=t=>{document.head.setAttribute("data-inboxsdk-btai-header",t),p({type:"btaiHeaderReceived"})};t.push({isRelevantTo:t=>/sync(?:\/u\/\d+)?\//.test(t.url)&&!document.head.hasAttribute("data-inboxsdk-btai-header"),originalSendBodyLogger(t){t.headers["X-Gmail-BTAI"]&&e(t.headers["X-Gmail-BTAI"])}});const n=t=>{document.head.setAttribute("data-inboxsdk-xsrf-token",t),p({type:"xsrfTokenHeaderReceived"})};t.push({isRelevantTo:t=>/sync(?:\/u\/\d+)?\//.test(t.url)&&!document.head.hasAttribute("data-inboxsdk-xsrf-token"),originalSendBodyLogger(t){t.headers["X-Framework-Xsrf-Token"]&&n(t.headers["X-Framework-Xsrf-Token"])}})}}},8519:(t,e,n)=>{"use strict";n.d(e,{Z:()=>h});var r=n(1463),i=n.n(r),o=n(6609);function s(t,e){const n=document.createEvent("MouseEvents");n.initMouseEvent(e,!0,!0,window,0,t.offsetLeft,t.offsetTop,0,0,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}var u=n(9272),a=n.n(u),c=n(7214),l=n.n(c);function f(t){setTimeout((()=>{throw t}),1)}function h(){(function(t){if(!t||!t.nodeType)throw new Error("Expected element, got "+String(t));return o.stream((e=>{const n=new Map;let r=!1;function i(t){if(1!==t.nodeType)return;n.has(t)&&f(new Error("Already had removalStream for element with class "+t.className));const r=l()();n.set(t,r);try{e.emit({el:t,removalStream:r})}catch(t){f(t)}}function o(t){if(1!==t.nodeType)return;const e=n.get(t);if(n.delete(t),e)try{e.destroy()}catch(t){f(t)}else f(new Error("Could not find removalStream for element with class "+t.className))}const s=new MutationObserver((function(t){t.forEach((t=>{Array.prototype.forEach.call(t.addedNodes,i),Array.prototype.forEach.call(t.removedNodes,o)}))}));return a()((()=>{r||(s.observe(t,{childList:!0}),Array.prototype.slice.call(t.children).forEach(i))})),function(){r=!0,s.disconnect(),a()((()=>{n.forEach((t=>{t.destroy()}))}))}}))})(document.body).filter((t=>{let{el:e}=t;return"IFRAME"===e.nodeName&&!e.hasAttribute("src")})).onValue((t=>{let{el:e}=t;e.contentDocument.addEventListener("inboxSDKclickAndGetNewIframeSrc",(function(t){(function(t){const e=y.merge(o.default.later(1e4,null)).take(1).flatMap((t=>t?o.default.constant(t):o.default.constantError(new Error("timed out waiting for iframe src set")))).toPromise();return s(n=t,"mousedown"),s(n,"mouseup"),s(n,"click"),s(n,"mouseleave"),s(n,"mouseout"),n.blur(),e;var n})(t.target).then((e=>{t.target.dispatchEvent(new CustomEvent("inboxSDKclickAndGetNewIframeSrcResult",{bubbles:!1,cancelable:!1,detail:{type:"success",src:e}}))})).catch((e=>{t.target.dispatchEvent(new CustomEvent("inboxSDKclickAndGetNewIframeSrcResult",{bubbles:!1,cancelable:!1,detail:{type:"error",message:e.message,stack:e.stack}}))}))}))}))}const p=i()((()=>Object.getPrototypeOf(document.createElement("iframe")))),d=i()((()=>Object.getOwnPropertyDescriptor(p(),"src"))),y=o.default.stream((t=>{const e=p(),n=d();return Object.defineProperty(e,"src",{enumerable:!0,configurable:!0,set(e){t.emit(e)}}),()=>{Object.defineProperty(e,"src",n)}}))},6662:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});const r=function(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const o=Object.keys(t);for(let s=0;s<o.length;s++){const u=t[o[s]];if(e(u))return u;if(i<=n&&u instanceof Object){const t=r(u,e,n,i+1);if(t)return t}}return null},i=t=>{const e=r(t.__cdn.context,(t=>"string"==typeof t&&t.indexOf("#msg-a:")>-1),3);return e?e.replace("#msg-a:",""):null};function o(){document.addEventListener("inboxSDKgetDraftIDforComposeView",(t=>{let{target:e}=t;const n=i(e);if(!n)throw new Error("could not retrieve draft ID for compose view");e.setAttribute("data-inboxsdk-draft-id",n)}),!0)}},6773:(t,e,n)=>{"use strict";function r(){document.addEventListener("inboxSDKinboxFakeWindowResize",i)}function i(){Object.defineProperty(document.documentElement,"clientWidth",{configurable:!0,value:window.innerWidth-1});{const t=document.createEvent("HTMLEvents");t.initEvent("resize",!0,!1),window.dispatchEvent(t)}Object.defineProperty(document.documentElement,"clientWidth",{configurable:!0,get:()=>window.innerWidth});{const t=document.createEvent("HTMLEvents");t.initEvent("resize",!0,!1),window.dispatchEvent(t)}}n.d(e,{Z:()=>r})},3721:(t,e,n)=>{"use strict";function r(t,e){t||(t=new Error("No error given")),console.error("Error in injected script",t,e);try{JSON.stringify(e)}catch(t){e="<failed to jsonify>"}const n={};for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))try{const r=t[e];JSON.stringify(r),n[e]=r}catch(t){}Object.keys(n).length>0&&(e={errorProperties:n,details:e}),document.dispatchEvent(new CustomEvent("inboxSDKinjectedError",{bubbles:!1,cancelable:!1,detail:{message:t&&t.message,stack:t&&t.stack,details:e}}))}function i(t,e,n){try{JSON.stringify(e)}catch(t){e="<failed to jsonify>"}document.dispatchEvent(new CustomEvent("inboxSDKinjectedEventSdkPassive",{bubbles:!1,cancelable:!1,detail:{name:t,details:e,sensitive:n}}))}n.r(e),n.d(e,{error:()=>r,eventSdkPassive:()=>i})},8451:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r=n(3311),i=n.n(r),o=n(3721);function s(t,e){var n=i()(t,(t=>t[0]===e));return!!n&&function(t){switch(""+t){case"1":case"t":case"true":return!0;default:return!1}}(n[1])}function u(){let t;(function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12e4,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:250;const r=new Error("waitFor timeout");return new Promise((function(i,o){let s=0;setTimeout((function u(){try{const a=t();a?i(a):s>=e?o(r):(s+=n,setTimeout(u,n))}catch(t){o(t)}}),1)}))})((()=>(t=function(){let t=n.g;try{if(t.GLOBALS)return t;n.g.opener&&n.g.opener.top&&(n.g.opener.top.location.href,t=n.g.opener.top)}catch(e){t=n.g}return t}(),t&&(t.GLOBALS||t.gbar)))).then((()=>{if(t){var e=t.GLOBALS?t.GLOBALS[10]:t.gbar._CONFIG[0][10][5];document.head.setAttribute("data-inboxsdk-user-email-address",e);var n=t.GLOBALS?t.GLOBALS[4].split(".")[1]:t.gbar._CONFIG[0][0][4];if(document.head.setAttribute("data-inboxsdk-user-language",n),document.head.setAttribute("data-inboxsdk-using-sync-api",t.GM_SPT_ENABLED),t.GLOBALS){document.head.setAttribute("data-inboxsdk-ik-value",t.GLOBALS[9]),document.head.setAttribute("data-inboxsdk-action-token-value",t.GM_ACTION_TOKEN);var r=i()(t.GLOBALS[17],(t=>"p"===t[0]));if(!r)return;var u=r[1],a=s(u,"bx_lab_1252"),c=s(u,"bx_spa"),l=s(u,"bx_spo"),f=a&&c?l?"vertical":"horizontal":"none";document.head.setAttribute("data-inboxsdk-user-preview-pane-mode",f)}else{const t="window.BT_EmbeddedAppData=[",e=i()(document.querySelectorAll("script:not([src])"),(e=>e.text&&e.text.slice(0,500).indexOf(t)>-1));if(e){const{text:n}=e,r=n.indexOf("window.BT_EmbeddedAppData=[");let i=n.indexOf("]\n;",r);-1===i&&(i=n.indexOf("];",r));const s=JSON.parse(n.slice(r+t.length-1,i+1)),u=s[11];"string"!=typeof u?o.error(new Error("Could not find valid ikValue")):document.head.setAttribute("data-inboxsdk-ik-value",u);const a=s[12];"string"!=typeof a?o.error(new Error("Could not find valid xsrfToken")):document.head.setAttribute("data-inboxsdk-xsrf-token",a)}else o.error(new Error("Could not read preloaded BT_EmbeddedAppData"))}}})).catch((e=>{function n(){return{hasGLOBALS:!!t.GLOBALS,hasGbar:!!t.gbar}}var r=n(),i=18e4;throw setTimeout((()=>{var t=n();o.eventSdkPassive("waitfor global data",{startStatus:r,waitTime:i,laterStatus:t})}),i),e})).catch(o.error)}},3335:(t,e,n)=>{"use strict";function r(){var t=[];document.addEventListener("inboxSDKsilencePageErrors",(function(e){t.push(window.onerror),window.onerror=function(){return!0}})),document.addEventListener("inboxSDKunsilencePageErrors",(function(e){window.onerror=t.pop()}))}n.d(e,{Z:()=>r})},2734:(t,e,n)=>{"use strict";function r(){document.addEventListener("inboxsdk_event_relay",(function(t){const e=document.createEvent("Events");if(e.initEvent(t.detail.type,t.detail.bubbles,t.detail.cancelable),Object.assign(e,t.detail.props),t.detail.dataTransfer){const{files:n,fileNames:r}=t.detail.dataTransfer;r&&r.forEach(((t,e)=>{const r=n[e];"string"!=typeof r.name&&(r.name=t)})),e.dataTransfer={dropEffect:"none",effectAllowed:"all",files:n,items:n.map(((t,e)=>{let{type:r}=t;return{kind:"file",type:r,getAsFile:()=>n[e],getAsString(){throw new Error("getAsString not supported")}}})),types:["Files"],getData:()=>"",setData(){},setDragImage(){}}}t.target.dispatchEvent(e)}))}n.d(e,{Z:()=>r})},2165:(t,e,n)=>{"use strict";n.d(e,{Z:()=>p});var r=n(1010),i=n(4721),o=n.n(i),s=n(4681),u=n.n(s),a=n(3721);function c(t){return{value:t,configurable:!0}}t=n.hmd(t);const l=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","PageUp","PageDown","Home","End","Enter"],f=["Left","Right","Up","Down"],h=(0,r.Kg)(t,(function(t){try{(function(t){if(!document.body.classList.contains("inboxsdk__custom_view_active"))return!1;const e=t.target,n=t.key||String.fromCharCode(t.which||t.keyCode);return!("Escape"!==t.key||!u()(e,".inboxsdk__custom_view"))||!!(o()(l,n)||o()(f,t.keyIdentifier)||o()("!#[]{}_+=-;:\r\n1234567890`~",n)||!t.shiftKey&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&o()(",xsyemrafz.ujkpnl",n)||t.shiftKey&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&o()("parfniut",n.toLowerCase()))&&!(u()(e,"input, textarea, button, [contenteditable]")||!u()(e,".inboxsdk__custom_view")&&u()(e,"[role=button], [role=link]"))})(t)&&Object.defineProperties(t,{altKey:c(!1),ctrlKey:c(!1),shiftKey:c(!1),metaKey:c(!1),charCode:c(92),code:c("Backslash"),key:c("\\"),keyCode:c(92),which:c(92)})}catch(t){a.error(t)}}));function p(){document.addEventListener("keydown",h,!0)}},6424:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(4681),i=n.n(r);function o(){const t=new Set;document.addEventListener("inboxSDKregisterAllowedHashLinkStartTerm",(function(e){const n=e.detail.term;t.add(n)})),document.addEventListener("click",(function(e){const n=e.target;if(!(n instanceof HTMLElement))return;const r=i()(n,'a[href^="#"]');if(!(r&&r instanceof HTMLAnchorElement))return;const o=/^#([^/]+)/.exec(r.getAttribute("href")||"");if(!o)return;const s=o[1];t.has(s)&&(e.preventDefault=()=>{})}),!0)}},7330:(t,e,n)=>{"use strict";function r(){const t=history.pushState;history.pushState=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];const i=t.apply(this,n);return document.dispatchEvent(new CustomEvent("inboxSDKpushState",{bubbles:!1,cancelable:!1,detail:{args:n}})),i}}n.d(e,{Z:()=>r})},8953:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=n(7709);function i(){document.addEventListener("inboxSDKpageAjax",(function(t){const e=t.detail.id,i={url:t.detail.url,method:t.detail.method,headers:t.detail.headers,xhrFields:t.detail.xhrFields,data:t.detail.data};n.g.fetch?(async()=>{const t=await fetch(i.url,{method:i.method||"GET",credentials:"include"});document.dispatchEvent(new CustomEvent("inboxSDKpageAjaxDone",{bubbles:!1,cancelable:!1,detail:{id:e,error:!1,text:await t.text(),responseURL:t.url}}))})().catch((t=>{document.dispatchEvent(new CustomEvent("inboxSDKpageAjaxDone",{bubbles:!1,cancelable:!1,detail:{id:e,error:!0,message:t&&t.message,stack:t&&t.stack,status:t&&t.xhr&&t.xhr.status}}))})):(0,r.Z)(i).then((t=>{let{text:n,xhr:r}=t;document.dispatchEvent(new CustomEvent("inboxSDKpageAjaxDone",{bubbles:!1,cancelable:!1,detail:{id:e,error:!1,text:n,responseURL:r.responseURL}}))}),(t=>{document.dispatchEvent(new CustomEvent("inboxSDKpageAjaxDone",{bubbles:!1,cancelable:!1,detail:{id:e,error:!0,message:t&&t.message,stack:t&&t.stack,status:t&&t.xhr&&t.xhr.status}}))}))}))}},5294:(t,e,n)=>{"use strict";n.d(e,{Z:()=>w});var r=n(8721),i=n.n(r),o=n(308),s=n.n(o),u=n(6073),a=n.n(u),c=n(3105),l=n.n(c),f=n(4721),h=n.n(f),p=n(1463),d=n.n(p),y=n(8583),_=n.n(y),v=n(7187),m=n.n(v),g=n(7673);const b=6e4;function w(t,e,n){const r=n&&n.logError||function(t,e){setTimeout((function(){throw t}),1)};function o(t,e,n){const r={};return Object.keys(n).concat(["bubbles","cancelBubble","cancelable","defaultPrevented","preventDefault","stopPropagation","stopImmediatePropagation","lengthComputable","loaded","total","type","currentTarget","target","srcElement","NONE","CAPTURING_PHASE","AT_TARGET","BUBBLING_PHASE","eventPhase"]).filter((t=>t in n)).forEach((i=>{const o=n[i];r[i]=o===t?e:"function"==typeof o?o.bind(n):o})),r}function u(t,e,n){return function(r){return n.call(e,o(t,e,r))}}function c(){this._wrappers=e,this._listeners={},this._boundListeners={},this._events=new(m()),this.responseText="",this._openState=!1,t.bind&&t.bind.apply?this._realxhr=new(t.bind.apply(t,[null].concat(arguments))):this._realxhr=new t;const n=this,i=(t,e)=>{if(this["on"+t])try{u(this._realxhr,this,this["on"+t]).call(this,e)}catch(t){r(t,"XMLHttpRequest event listener error")}a()(this._boundListeners[t],(t=>{try{t(e)}catch(t){r(t,"XMLHttpRequest event listener error")}}))},c=t=>{i("readystatechange",t)};this._fakeRscEvent=function(){c(Object.freeze({bubbles:!1,cancelBubble:!1,cancelable:!1,defaultPrevented:!1,preventDefault:s(),stopPropagation:s(),stopImmediatePropagation:s(),type:"readystatechange",currentTarget:this,target:this,srcElement:this,NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3,eventPhase:0}))};const l=t=>{this.readyState=4;var e=200==this.status,n=Object.assign({},o(this._realxhr,this,t),{lengthComputable:!1,loaded:0,total:0});(!this._realxhr.responseType||"text"==this._realxhr.responseType)&&a()(this._activeWrappers,(t=>{if(t.finalResponseTextLogger)try{t.finalResponseTextLogger(this._connection,this.responseText)}catch(t){r(t)}})),c(t),i(e?"load":"error",n),i("loadend",n),a()(this._activeWrappers,(t=>{if(t.afterListeners)try{t.afterListeners(this._connection)}catch(t){r(t)}}))};this._realxhr.addEventListener("readystatechange",(t=>{if(!this._connection)return;this._realxhr.readyState>=2&&(this._connection.status=this._realxhr.status);const e=!this._realxhr.responseType||"text"==this._realxhr.responseType;if(4==this._realxhr.readyState){if(e){Object.defineProperty(this._connection,"originalResponseText",{enumerable:!0,writable:!1,configurable:!1,value:n._realxhr.responseText}),a()(this._activeWrappers,(t=>{if(t.originalResponseTextLogger)try{t.originalResponseTextLogger(this._connection,this._connection.originalResponseText)}catch(t){r(t)}}));const e=d()(l.bind(null,t));if(this._connection.async){const t=this._connection;return void(async()=>{let e=t.originalResponseText;t.modifiedResponseText=e;for(let n of this._responseTextChangers){const r=setTimeout((()=>{console.warn("responseTextChanger is taking too long",n,t)}),b);try{e=await n(t,e)}finally{clearTimeout(r)}if("string"!=typeof e)throw new Error("responseTextChanger returned non-string value "+e);if(t.modifiedResponseText=e,t!==this._connection)break}return e})().then((r=>{t===n._connection&&(this.responseText=r,e())}),(n=>{r(n),t===this._connection&&(this.responseText=this._realxhr.responseText,e())})).catch(r)}n.responseText=n._realxhr.responseText}else n.responseText="";l(t)}else{if(1==n._realxhr.readyState&&1==n.readyState)return;n._realxhr.readyState>=3&&e?n._responseTextChangers.length?n.responseText="":n.responseText=n._realxhr.responseText:n.responseText="",n.readyState=n._realxhr.readyState,c(t)}}),!1),["dispatchEvent","getAllResponseHeaders","getResponseHeader","overrideMimeType","responseType","responseXML","responseURL","status","statusText","timeout","ontimeout","onloadstart","onprogress","onabort","upload","withCredentials"].forEach((function(t){Object.defineProperty(n,t,{enumerable:!0,configurable:!1,get:function(){return"function"==typeof n._realxhr[t]?n._realxhr[t].bind(n._realxhr):n._realxhr[t]},set:function(e){"function"==typeof e&&(e=u(this._realxhr,this,e)),n._realxhr[t]=e}})})),Object.defineProperty(n,"response",{enumerable:!0,configurable:!1,get:function(){return this._realxhr.responseType&&"text"!=this._realxhr.responseType?this._realxhr.response:this.responseText}}),n.readyState=n._realxhr.readyState}return c.prototype.abort=function(){this._clientStartedSend&&!this._realStartedSend&&(0!=this.readyState&&0==this._realxhr.readyState&&this._realxhr.open(this._connection.method,this._connection.url),this._realStartedSend=!0,this._realxhr.send()),this._realxhr.abort()},c.prototype.setRequestHeader=function(t,e){var n=this;if(1!=this.readyState&&console.warn("setRequestHeader improperly called at readyState "+this.readyState),!this._openState)throw new Error("Can only set headers after open and before send");this._connection.headers[t]=e,this._connection.async&&this._requestChangers.length?this._events.once("realOpen",(function(){n._realxhr.setRequestHeader(t,e)})):this._realxhr.setRequestHeader(t,e)},c.prototype.addEventListener=function(t,e){if(this._listeners[t]||(this._listeners[t]=[],this._boundListeners[t]=[]),!h()(this._listeners[t],e)){var n=u(this._realxhr,this,e);this._listeners[t].push(e),this._boundListeners[t].push(n),h()(["readystatechange","load","error","loadend"],t)||this._realxhr.addEventListener(t,n,!1)}},c.prototype.removeEventListener=function(t,e){if(this._listeners[t]){var n=this._listeners[t].indexOf(e);if(-1!=n){this._listeners[t].splice(n,1);var r=this._boundListeners[t].splice(n,1)[0];"readystatechange"!=t&&this._realxhr.removeEventListener(t,r,!1)}}},c.prototype.open=function(e,n,i){if(!(this instanceof c))return t.prototype.open.apply(this,arguments);var o=this;function s(t,e){return o._realxhr.open(t,e,o._connection.async)}this._connection={method:e,url:n,params:(0,g.parse)(n.split("?")[1]||""),headers:{},async:arguments.length<3||!!i},this._clientStartedSend=!1,this._realStartedSend=!1,this._activeWrappers=function(t,e){return l()(t,(function(t){try{return t.isRelevantTo(e)}catch(t){r(t)}}))}(this._wrappers,this._connection),this._responseTextChangers=this._activeWrappers.map((function(t){return t.responseTextChanger&&t.responseTextChanger.bind(t)})).filter(Boolean),this.responseText="",this._openState=!0,this._connection.async?(this._requestChangers=this._activeWrappers.map((function(t){return t.requestChanger&&t.requestChanger.bind(t)})).filter(Boolean),this._requestChangers.length?1!=this.readyState&&(this.readyState=1,this._fakeRscEvent()):s(e,n)):s(e,n)},c.prototype.send=function(t){var e=this;function n(t){e._realStartedSend=!0,e._realxhr.send(t)}if(this._clientStartedSend=!0,this._openState=!1,Object.defineProperty(this._connection,"originalSendBody",{enumerable:!0,writable:!1,configurable:!1,value:t}),this._connection.responseType=this._realxhr.responseType||"text",a()(e._activeWrappers,(function(n){if(n.originalSendBodyLogger)try{n.originalSendBodyLogger(e._connection,t)}catch(t){r(t)}})),this._connection.async&&this._requestChangers.length){const e=this._connection,o={method:this._connection.method,url:this._connection.url,body:t};(async()=>{let t=o;for(let n of this._requestChangers){const r=setTimeout((()=>{console.warn("requestChanger is taking too long",n,e)}),b);try{t=await n(this._connection,Object.freeze(t))}finally{clearTimeout(r)}if(_()(i()(t,"method"),"modifiedRequest has method"),_()(i()(t,"url"),"modifiedRequest has url"),_()(i()(t,"body"),"modifiedRequest has body"),e!==this._connection||this._realStartedSend)break}return t})().catch((t=>(r(t),o))).then((t=>{e!==this._connection||this._realStartedSend||(this._realxhr.open(t.method,t.url),this._events.emit("realOpen"),n(t.body))}))}else n(t)},[c,c.prototype].forEach((function(t){Object.assign(t,{UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4})})),c}},8153:(t,e,n)=>{"use strict";n.d(e,{Ae:()=>y,E3:()=>_,GE:()=>f,MA:()=>d,bd:()=>b,qC:()=>h,vB:()=>l}),n(5564),n(928);var r=n(1095),i=n.n(r),o=n(8583),s=n.n(o),u=n(2780);function a(t,e){for(let n=e,r=t.length;n<r;n++)if('"'===t[n]||"'"===t[n])return n;return-1}function c(t,e,n){for(let r=e,i=t.length;r<i;r++)if("\\"===t[r])r++;else if(t[r]===n)return r;return-1}function l(t){const e={includeLengths:!1,suggestionMode:/^5\n/.test(t),noArrayNewLines:!/^[,\]]/m.test(t),includeExplicitNulls:!0},n=[];let r;if(e.suggestionMode){if(r=t.indexOf("'\n"),-1===r)throw new Error("Message was missing beginning header");r+=2}else{if(r=t.indexOf("\n\n"),-1===r)throw new Error("Message was missing beginning newlines");r+=2}for(;r<t.length;){let i=t.indexOf("\n",r+1);-1===i?i=t.length:"\r"===t[i-1]&&(i+=1);const o=t.slice(r,i);let s;if(/^\d+\s*$/.test(o)){e.includeLengths=!0;const n=+o;s=t.slice(i,i+n),r=i+n}else s=t.slice(r),r=t.length;n.push(f(s))}return{value:n,options:e}}function f(t){t=function(t,e){const n=[];let r,i=0,o=!1;for(;-1!==(r=c(t,i,'"'));)o?n.push(t.slice(i,r+1)):n.push(e(t.slice(i,r+1))),i=r+1,o=!o;if(o)throw new Error("string ended inside quoted section");return n.push(e(t.slice(i))),n.join("")}(t=function(t){let e=0;const n=[];for(;;){const r=a(t,e);if(r<0){n.push(t.substr(e));break}if(n.push(t.substr(e,r-e)),n.push('"'),e=r+1,'"'===t[r]){const r=c(t,e,'"');if(r<0)throw new Error("Unclosed double quote");n.push(t.slice(e,r+1)),e=r+1}else{const r=c(t,e,"'");if(r<0)throw new Error("Unclosed single quote");const i=t.slice(e,r).replace(/"/g,'\\"').replace(/\\'/g,"'");n.push(i),n.push('"'),e=r+1}}return n.join("")}(t=t.replace(/[\r\n\t]/g,"")),(t=>t.replace(/,\s*(?=,|\])/g,",null").replace(/\[\s*(?=,)/g,"[null")));try{return JSON.parse(t,((t,e)=>null==e?void 0:e))}catch(t){throw new Error("deserialization error")}}function h(t,e){return e.suggestionMode?(s()(e.includeLengths),function(t,e){let n="5\n)]}'\n";for(let r=0;r<t.length;r++){const i=p(t[r],!1,e);n+=i.length+"\r\n"+i}return n}(t,e.includeExplicitNulls)):function(t,e){const{includeLengths:n,noArrayNewLines:r,includeExplicitNulls:i}=e;let o=")]}'\n"+(r&&n?"":"\n");for(let e=0;e<t.length;e++){const s=p(t[e],r,i);o+=n?(r?"\n":"")+(s.length+(r?2:1))+"\n"+s:s}if(!n)if(r)o=o.replace(/"([0-9a-f]{8,16})"\]$/,"'$1']");else{const t=o.split(/\r|\n/),e=t.slice(0,-3),n=t.slice(-3);o=e.join("\n"),o+="\n"+n[0]+n[1].replace(/"/g,"'")}return o+(r&&n?"\n":"")}(t,e)}function p(t,e,n){let r="[";for(let i=0;i<t.length;i++){const o=t[i];let s;s=Array.isArray(o)?p(o,e,n):null==o?n?"null":"":JSON.stringify(o).replace(/</gim,"\\u003c").replace(/=/gim,"\\u003d").replace(/>/gim,"\\u003e").replace(/&/gim,"\\u0026"),i>0&&(r+=","),r+=s}return r+="]"+(e?"":"\n"),r}function d(t){return y(l(t).value)}function y(t){return 1===t.length&&2===t[0].length&&"string"==typeof t[0][1]&&(t=[t[0][0]]),(e=t,i().toArray(e,v)).map((t=>Object.freeze(Object.defineProperty({subject:(0,u.Z)(t[9]),shortDate:(0,u.Z)(t[14]),timeString:(0,u.Z)(t[15]),peopleHtml:_(t[7]),timestamp:t[16]/1e3,isUnread:t[9].indexOf("<b>")>-1,lastEmailAddress:t[28],bodyPreviewHtml:t[10],someGmailMessageIds:[t[1],t[2]],gmailThreadId:t[0]},"_originalGmailFormat",{value:t}))));var e}function _(t){return t.replace(/^[^<]*/,"").replace(/(<span[^>]*) class="[^"]*"/g,"$1")}i().compose(i().cat,i().cat,i().filter((t=>"cs"===t[0])),i().map((t=>[t[1],t[2]])));const v=i().compose(i().cat,i().filter((t=>"tb"===t[0])),i().map((t=>t[2])),i().cat),m=i().compose(i().cat,i().filter((t=>"cs"===t[0])),i().map((t=>({threadID:t[1],messageIDs:t[8]})))),g=i().compose(i().cat,i().filter((t=>"ms"===t[0])),i().map((t=>({messageID:t[1],date:t[7]}))));function b(t){let{value:e}=l(t);1===e.length&&(e=e[0]);const n=i().toArray(e,m),r=i().toArray(e,g),o={};return r.forEach((t=>{o[t.messageID]=t})),n.map((t=>{let{threadID:e,messageIDs:n}=t;return{threadID:e,messages:n.map((t=>o[t]))}}))}},1375:(t,e,n)=>{"use strict";function r(){const t=document.location.pathname.match(/\/b\/(.+?)\/u\/(\d+)/);if(t){const e=t[1];return`/u/${t[2]}/d/${e}`}{const t=document.location.pathname.match(/(\/u\/\d+)\//i);return t?t[1]:"/u/0"}}n.d(e,{Z:()=>r})},5440:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var r=n(1010),i=n(6609);function o(t,e,n){let r=[];const i=[];let o=!1;function s(){i.shift()(),i.length?u():o=!1}function u(){o=!0;const t=function(){const t=Date.now()-e;return r=r.filter((e=>e>t)),r.length>=n?r[0]-t:-1}();t>0?setTimeout(s,t):s()}return function(){for(var e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];let a;const c=new Promise(((e,i)=>{a=()=>{r.push(Date.now());try{e(t.apply(this,n))}catch(t){i(t)}}}));if(!a)throw new Error("Should not happen");return i.push(a),o||u(),c}}var s=n(7709);t=n.hmd(t);const u=o(o(s.Z,1e3,7),1e4,50),a=(0,r.Kg)(t,(async function(t){if(!/^https:\/\/mail\.google\.com(?:$|\/)/.test(t.url))throw new Error("Should not happen: gmailAjax called with non-gmail url");if("https://mail.google.com"===document.location.origin)return await u(t);try{return await u({...t,canRetry:!1})}catch(e){if(e&&0===e.status){try{await i.default.fromPromise(("https://mail.google.com/mail/u/0/",new Promise(((t,e)=>{const n=new Image;n.addEventListener("load",(()=>t(n))),n.addEventListener("error",e),n.src="https://mail.google.com/mail/u/0/"})))).merge(i.default.later(6e4,void 0)).take(1).takeErrors(1).toPromise()}catch(t){}return await u(t)}if(e&&"number"==typeof e.status&&e.status>=500)return await u(t);throw e}}))},8006:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r=n(1010),i=n(7673),o=n(5440),s=n(1375);t=n.hmd(t);const u=(0,r.Kg)(t,(async function(t,e){const n={ui:2,ik:t,view:"cv",th:e,pcd:1,mb:0,rt:"c",search:"inbox",type:e},{text:r}=await(0,o.Z)({method:"POST",url:`https://mail.google.com/mail${(0,s.Z)()}?${i.stringify(n)}`,canRetry:!0});return r}))},9742:(t,e)=>{"use strict";e.byteLength=function(t){var e=a(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,o=a(t),s=o[0],u=o[1],c=new i(function(t,e,n){return 3*(e+n)/4-n}(0,s,u)),l=0,f=u>0?s-4:s;for(n=0;n<f;n+=4)e=r[t.charCodeAt(n)]<<18|r[t.charCodeAt(n+1)]<<12|r[t.charCodeAt(n+2)]<<6|r[t.charCodeAt(n+3)],c[l++]=e>>16&255,c[l++]=e>>8&255,c[l++]=255&e;return 2===u&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,c[l++]=255&e),1===u&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,c[l++]=e>>8&255,c[l++]=255&e),c},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],s=16383,u=0,a=r-i;u<a;u+=s)o.push(c(t,u,u+s>a?a:u+s));return 1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=o.length;s<u;++s)n[s]=o[s],r[o.charCodeAt(s)]=s;function a(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function c(t,e,r){for(var i,o,s=[],u=e;u<r;u+=3)i=(t[u]<<16&16711680)+(t[u+1]<<8&65280)+(255&t[u+2]),s.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return s.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},4431:function(t,e,n){var r;!function(i){"use strict";var o,s=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,u=Math.ceil,a=Math.floor,c="[BigNumber Error] ",l=c+"Number primitive has more than 15 significant digits: ",f=1e14,h=14,p=9007199254740991,d=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],y=1e7,_=1e9;function v(t){var e=0|t;return t>0||t===e?e:e-1}function m(t){for(var e,n,r=1,i=t.length,o=t[0]+"";r<i;){for(e=t[r++]+"",n=h-e.length;n--;e="0"+e);o+=e}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function g(t,e){var n,r,i=t.c,o=e.c,s=t.s,u=e.s,a=t.e,c=e.e;if(!s||!u)return null;if(n=i&&!i[0],r=o&&!o[0],n||r)return n?r?0:-u:s;if(s!=u)return s;if(n=s<0,r=a==c,!i||!o)return r?0:!i^n?1:-1;if(!r)return a>c^n?1:-1;for(u=(a=i.length)<(c=o.length)?a:c,s=0;s<u;s++)if(i[s]!=o[s])return i[s]>o[s]^n?1:-1;return a==c?0:a>c^n?1:-1}function b(t,e,n,r){if(t<e||t>n||t!==a(t))throw Error(c+(r||"Argument")+("number"==typeof t?t<e||t>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(t))}function w(t){var e=t.c.length-1;return v(t.e/h)==e&&t.c[e]%2!=0}function x(t,e){return(t.length>1?t.charAt(0)+"."+t.slice(1):t)+(e<0?"e":"e+")+e}function E(t,e,n){var r,i;if(e<0){for(i=n+".";++e;i+=n);t=i+t}else if(++e>(r=t.length)){for(i=n,e-=r;--e;i+=n);t+=i}else e<r&&(t=t.slice(0,e)+"."+t.slice(e));return t}o=function t(e){var n,r,i,o,A,S,T,O,I,j,L=F.prototype={constructor:F,toString:null,valueOf:null},D=new F(1),k=20,R=4,B=-7,M=21,C=-1e7,P=1e7,N=!1,q=1,U=0,V={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},$="0123456789abcdefghijklmnopqrstuvwxyz";function F(t,e){var n,o,u,c,f,d,y,_,v=this;if(!(v instanceof F))return new F(t,e);if(null==e){if(t&&!0===t._isBigNumber)return v.s=t.s,void(!t.c||t.e>P?v.c=v.e=null:t.e<C?v.c=[v.e=0]:(v.e=t.e,v.c=t.c.slice()));if((d="number"==typeof t)&&0*t==0){if(v.s=1/t<0?(t=-t,-1):1,t===~~t){for(c=0,f=t;f>=10;f/=10,c++);return void(c>P?v.c=v.e=null:(v.e=c,v.c=[t]))}_=String(t)}else{if(!s.test(_=String(t)))return i(v,_,d);v.s=45==_.charCodeAt(0)?(_=_.slice(1),-1):1}(c=_.indexOf("."))>-1&&(_=_.replace(".","")),(f=_.search(/e/i))>0?(c<0&&(c=f),c+=+_.slice(f+1),_=_.substring(0,f)):c<0&&(c=_.length)}else{if(b(e,2,$.length,"Base"),10==e)return K(v=new F(t),k+v.e+1,R);if(_=String(t),d="number"==typeof t){if(0*t!=0)return i(v,_,d,e);if(v.s=1/t<0?(_=_.slice(1),-1):1,F.DEBUG&&_.replace(/^0\.0*|\./,"").length>15)throw Error(l+t)}else v.s=45===_.charCodeAt(0)?(_=_.slice(1),-1):1;for(n=$.slice(0,e),c=f=0,y=_.length;f<y;f++)if(n.indexOf(o=_.charAt(f))<0){if("."==o){if(f>c){c=y;continue}}else if(!u&&(_==_.toUpperCase()&&(_=_.toLowerCase())||_==_.toLowerCase()&&(_=_.toUpperCase()))){u=!0,f=-1,c=0;continue}return i(v,String(t),d,e)}d=!1,(c=(_=r(_,e,10,v.s)).indexOf("."))>-1?_=_.replace(".",""):c=_.length}for(f=0;48===_.charCodeAt(f);f++);for(y=_.length;48===_.charCodeAt(--y););if(_=_.slice(f,++y)){if(y-=f,d&&F.DEBUG&&y>15&&(t>p||t!==a(t)))throw Error(l+v.s*t);if((c=c-f-1)>P)v.c=v.e=null;else if(c<C)v.c=[v.e=0];else{if(v.e=c,v.c=[],f=(c+1)%h,c<0&&(f+=h),f<y){for(f&&v.c.push(+_.slice(0,f)),y-=h;f<y;)v.c.push(+_.slice(f,f+=h));f=h-(_=_.slice(f)).length}else f-=y;for(;f--;_+="0");v.c.push(+_)}}else v.c=[v.e=0]}function H(t,e,n,r){var i,o,s,u,a;if(null==n?n=R:b(n,0,8),!t.c)return t.toString();if(i=t.c[0],s=t.e,null==e)a=m(t.c),a=1==r||2==r&&(s<=B||s>=M)?x(a,s):E(a,s,"0");else if(o=(t=K(new F(t),e,n)).e,u=(a=m(t.c)).length,1==r||2==r&&(e<=o||o<=B)){for(;u<e;a+="0",u++);a=x(a,o)}else if(e-=s,a=E(a,o,"0"),o+1>u){if(--e>0)for(a+=".";e--;a+="0");}else if((e+=o-u)>0)for(o+1==u&&(a+=".");e--;a+="0");return t.s<0&&i?"-"+a:a}function z(t,e){for(var n,r=1,i=new F(t[0]);r<t.length;r++){if(!(n=new F(t[r])).s){i=n;break}e.call(i,n)&&(i=n)}return i}function G(t,e,n){for(var r=1,i=e.length;!e[--i];e.pop());for(i=e[0];i>=10;i/=10,r++);return(n=r+n*h-1)>P?t.c=t.e=null:n<C?t.c=[t.e=0]:(t.e=n,t.c=e),t}function K(t,e,n,r){var i,o,s,c,l,p,y,_=t.c,v=d;if(_){t:{for(i=1,c=_[0];c>=10;c/=10,i++);if((o=e-i)<0)o+=h,s=e,y=(l=_[p=0])/v[i-s-1]%10|0;else if((p=u((o+1)/h))>=_.length){if(!r)break t;for(;_.length<=p;_.push(0));l=y=0,i=1,s=(o%=h)-h+1}else{for(l=c=_[p],i=1;c>=10;c/=10,i++);y=(s=(o%=h)-h+i)<0?0:l/v[i-s-1]%10|0}if(r=r||e<0||null!=_[p+1]||(s<0?l:l%v[i-s-1]),r=n<4?(y||r)&&(0==n||n==(t.s<0?3:2)):y>5||5==y&&(4==n||r||6==n&&(o>0?s>0?l/v[i-s]:0:_[p-1])%10&1||n==(t.s<0?8:7)),e<1||!_[0])return _.length=0,r?(e-=t.e+1,_[0]=v[(h-e%h)%h],t.e=-e||0):_[0]=t.e=0,t;if(0==o?(_.length=p,c=1,p--):(_.length=p+1,c=v[h-o],_[p]=s>0?a(l/v[i-s]%v[s])*c:0),r)for(;;){if(0==p){for(o=1,s=_[0];s>=10;s/=10,o++);for(s=_[0]+=c,c=1;s>=10;s/=10,c++);o!=c&&(t.e++,_[0]==f&&(_[0]=1));break}if(_[p]+=c,_[p]!=f)break;_[p--]=0,c=1}for(o=_.length;0===_[--o];_.pop());}t.e>P?t.c=t.e=null:t.e<C&&(t.c=[t.e=0])}return t}function W(t){var e,n=t.e;return null===n?t.toString():(e=m(t.c),e=n<=B||n>=M?x(e,n):E(e,n,"0"),t.s<0?"-"+e:e)}return F.clone=t,F.ROUND_UP=0,F.ROUND_DOWN=1,F.ROUND_CEIL=2,F.ROUND_FLOOR=3,F.ROUND_HALF_UP=4,F.ROUND_HALF_DOWN=5,F.ROUND_HALF_EVEN=6,F.ROUND_HALF_CEIL=7,F.ROUND_HALF_FLOOR=8,F.EUCLID=9,F.config=F.set=function(t){var e,n;if(null!=t){if("object"!=typeof t)throw Error(c+"Object expected: "+t);if(t.hasOwnProperty(e="DECIMAL_PLACES")&&(b(n=t[e],0,_,e),k=n),t.hasOwnProperty(e="ROUNDING_MODE")&&(b(n=t[e],0,8,e),R=n),t.hasOwnProperty(e="EXPONENTIAL_AT")&&((n=t[e])&&n.pop?(b(n[0],-_,0,e),b(n[1],0,_,e),B=n[0],M=n[1]):(b(n,-_,_,e),B=-(M=n<0?-n:n))),t.hasOwnProperty(e="RANGE"))if((n=t[e])&&n.pop)b(n[0],-_,-1,e),b(n[1],1,_,e),C=n[0],P=n[1];else{if(b(n,-_,_,e),!n)throw Error(c+e+" cannot be zero: "+n);C=-(P=n<0?-n:n)}if(t.hasOwnProperty(e="CRYPTO")){if((n=t[e])!==!!n)throw Error(c+e+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw N=!n,Error(c+"crypto unavailable");N=n}else N=n}if(t.hasOwnProperty(e="MODULO_MODE")&&(b(n=t[e],0,9,e),q=n),t.hasOwnProperty(e="POW_PRECISION")&&(b(n=t[e],0,_,e),U=n),t.hasOwnProperty(e="FORMAT")){if("object"!=typeof(n=t[e]))throw Error(c+e+" not an object: "+n);V=n}if(t.hasOwnProperty(e="ALPHABET")){if("string"!=typeof(n=t[e])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(c+e+" invalid: "+n);$=n}}return{DECIMAL_PLACES:k,ROUNDING_MODE:R,EXPONENTIAL_AT:[B,M],RANGE:[C,P],CRYPTO:N,MODULO_MODE:q,POW_PRECISION:U,FORMAT:V,ALPHABET:$}},F.isBigNumber=function(t){if(!t||!0!==t._isBigNumber)return!1;if(!F.DEBUG)return!0;var e,n,r=t.c,i=t.e,o=t.s;t:if("[object Array]"=={}.toString.call(r)){if((1===o||-1===o)&&i>=-_&&i<=_&&i===a(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break t}if((e=(i+1)%h)<1&&(e+=h),String(r[0]).length==e){for(e=0;e<r.length;e++)if((n=r[e])<0||n>=f||n!==a(n))break t;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(c+"Invalid BigNumber: "+t)},F.maximum=F.max=function(){return z(arguments,L.lt)},F.minimum=F.min=function(){return z(arguments,L.gt)},F.random=(o=9007199254740992,A=Math.random()*o&2097151?function(){return a(Math.random()*o)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(t){var e,n,r,i,o,s=0,l=[],f=new F(D);if(null==t?t=k:b(t,0,_),i=u(t/h),N)if(crypto.getRandomValues){for(e=crypto.getRandomValues(new Uint32Array(i*=2));s<i;)(o=131072*e[s]+(e[s+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),e[s]=n[0],e[s+1]=n[1]):(l.push(o%1e14),s+=2);s=i/2}else{if(!crypto.randomBytes)throw N=!1,Error(c+"crypto unavailable");for(e=crypto.randomBytes(i*=7);s<i;)(o=281474976710656*(31&e[s])+1099511627776*e[s+1]+4294967296*e[s+2]+16777216*e[s+3]+(e[s+4]<<16)+(e[s+5]<<8)+e[s+6])>=9e15?crypto.randomBytes(7).copy(e,s):(l.push(o%1e14),s+=7);s=i/7}if(!N)for(;s<i;)(o=A())<9e15&&(l[s++]=o%1e14);for(i=l[--s],t%=h,i&&t&&(o=d[h-t],l[s]=a(i/o)*o);0===l[s];l.pop(),s--);if(s<0)l=[r=0];else{for(r=-1;0===l[0];l.splice(0,1),r-=h);for(s=1,o=l[0];o>=10;o/=10,s++);s<h&&(r-=h-s)}return f.e=r,f.c=l,f}),F.sum=function(){for(var t=1,e=arguments,n=new F(e[0]);t<e.length;)n=n.plus(e[t++]);return n},r=function(){var t="0123456789";function e(t,e,n,r){for(var i,o,s=[0],u=0,a=t.length;u<a;){for(o=s.length;o--;s[o]*=e);for(s[0]+=r.indexOf(t.charAt(u++)),i=0;i<s.length;i++)s[i]>n-1&&(null==s[i+1]&&(s[i+1]=0),s[i+1]+=s[i]/n|0,s[i]%=n)}return s.reverse()}return function(r,i,o,s,u){var a,c,l,f,h,p,d,y,_=r.indexOf("."),v=k,g=R;for(_>=0&&(f=U,U=0,r=r.replace(".",""),p=(y=new F(i)).pow(r.length-_),U=f,y.c=e(E(m(p.c),p.e,"0"),10,o,t),y.e=y.c.length),l=f=(d=e(r,i,o,u?(a=$,t):(a=t,$))).length;0==d[--f];d.pop());if(!d[0])return a.charAt(0);if(_<0?--l:(p.c=d,p.e=l,p.s=s,d=(p=n(p,y,v,g,o)).c,h=p.r,l=p.e),_=d[c=l+v+1],f=o/2,h=h||c<0||null!=d[c+1],h=g<4?(null!=_||h)&&(0==g||g==(p.s<0?3:2)):_>f||_==f&&(4==g||h||6==g&&1&d[c-1]||g==(p.s<0?8:7)),c<1||!d[0])r=h?E(a.charAt(1),-v,a.charAt(0)):a.charAt(0);else{if(d.length=c,h)for(--o;++d[--c]>o;)d[c]=0,c||(++l,d=[1].concat(d));for(f=d.length;!d[--f];);for(_=0,r="";_<=f;r+=a.charAt(d[_++]));r=E(r,l,a.charAt(0))}return r}}(),n=function(){function t(t,e,n){var r,i,o,s,u=0,a=t.length,c=e%y,l=e/y|0;for(t=t.slice();a--;)u=((i=c*(o=t[a]%y)+(r=l*o+(s=t[a]/y|0)*c)%y*y+u)/n|0)+(r/y|0)+l*s,t[a]=i%n;return u&&(t=[u].concat(t)),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function n(t,e,n,r){for(var i=0;n--;)t[n]-=i,i=t[n]<e[n]?1:0,t[n]=i*r+t[n]-e[n];for(;!t[0]&&t.length>1;t.splice(0,1));}return function(r,i,o,s,u){var c,l,p,d,y,_,m,g,b,w,x,E,A,S,T,O,I,j=r.s==i.s?1:-1,L=r.c,D=i.c;if(!(L&&L[0]&&D&&D[0]))return new F(r.s&&i.s&&(L?!D||L[0]!=D[0]:D)?L&&0==L[0]||!D?0*j:j/0:NaN);for(b=(g=new F(j)).c=[],j=o+(l=r.e-i.e)+1,u||(u=f,l=v(r.e/h)-v(i.e/h),j=j/h|0),p=0;D[p]==(L[p]||0);p++);if(D[p]>(L[p]||0)&&l--,j<0)b.push(1),d=!0;else{for(S=L.length,O=D.length,p=0,j+=2,(y=a(u/(D[0]+1)))>1&&(D=t(D,y,u),L=t(L,y,u),O=D.length,S=L.length),A=O,x=(w=L.slice(0,O)).length;x<O;w[x++]=0);I=D.slice(),I=[0].concat(I),T=D[0],D[1]>=u/2&&T++;do{if(y=0,(c=e(D,w,O,x))<0){if(E=w[0],O!=x&&(E=E*u+(w[1]||0)),(y=a(E/T))>1)for(y>=u&&(y=u-1),m=(_=t(D,y,u)).length,x=w.length;1==e(_,w,m,x);)y--,n(_,O<m?I:D,m,u),m=_.length,c=1;else 0==y&&(c=y=1),m=(_=D.slice()).length;if(m<x&&(_=[0].concat(_)),n(w,_,x,u),x=w.length,-1==c)for(;e(D,w,O,x)<1;)y++,n(w,O<x?I:D,x,u),x=w.length}else 0===c&&(y++,w=[0]);b[p++]=y,w[0]?w[x++]=L[A]||0:(w=[L[A]],x=1)}while((A++<S||null!=w[0])&&j--);d=null!=w[0],b[0]||b.splice(0,1)}if(u==f){for(p=1,j=b[0];j>=10;j/=10,p++);K(g,o+(g.e=p+l*h-1)+1,s,d)}else g.e=l,g.r=+d;return g}}(),S=/^(-?)0([xbo])(?=\w[\w.]*$)/i,T=/^([^.]+)\.$/,O=/^\.([^.]+)$/,I=/^-?(Infinity|NaN)$/,j=/^\s*\+(?=[\w.])|^\s+|\s+$/g,i=function(t,e,n,r){var i,o=n?e:e.replace(j,"");if(I.test(o))t.s=isNaN(o)?null:o<0?-1:1;else{if(!n&&(o=o.replace(S,(function(t,e,n){return i="x"==(n=n.toLowerCase())?16:"b"==n?2:8,r&&r!=i?t:e})),r&&(i=r,o=o.replace(T,"$1").replace(O,"0.$1")),e!=o))return new F(o,i);if(F.DEBUG)throw Error(c+"Not a"+(r?" base "+r:"")+" number: "+e);t.s=null}t.c=t.e=null},L.absoluteValue=L.abs=function(){var t=new F(this);return t.s<0&&(t.s=1),t},L.comparedTo=function(t,e){return g(this,new F(t,e))},L.decimalPlaces=L.dp=function(t,e){var n,r,i,o=this;if(null!=t)return b(t,0,_),null==e?e=R:b(e,0,8),K(new F(o),t+o.e+1,e);if(!(n=o.c))return null;if(r=((i=n.length-1)-v(this.e/h))*h,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},L.dividedBy=L.div=function(t,e){return n(this,new F(t,e),k,R)},L.dividedToIntegerBy=L.idiv=function(t,e){return n(this,new F(t,e),0,1)},L.exponentiatedBy=L.pow=function(t,e){var n,r,i,o,s,l,f,p,d=this;if((t=new F(t)).c&&!t.isInteger())throw Error(c+"Exponent not an integer: "+W(t));if(null!=e&&(e=new F(e)),s=t.e>14,!d.c||!d.c[0]||1==d.c[0]&&!d.e&&1==d.c.length||!t.c||!t.c[0])return p=new F(Math.pow(+W(d),s?2-w(t):+W(t))),e?p.mod(e):p;if(l=t.s<0,e){if(e.c?!e.c[0]:!e.s)return new F(NaN);(r=!l&&d.isInteger()&&e.isInteger())&&(d=d.mod(e))}else{if(t.e>9&&(d.e>0||d.e<-1||(0==d.e?d.c[0]>1||s&&d.c[1]>=24e7:d.c[0]<8e13||s&&d.c[0]<=9999975e7)))return o=d.s<0&&w(t)?-0:0,d.e>-1&&(o=1/o),new F(l?1/o:o);U&&(o=u(U/h+2))}for(s?(n=new F(.5),l&&(t.s=1),f=w(t)):f=(i=Math.abs(+W(t)))%2,p=new F(D);;){if(f){if(!(p=p.times(d)).c)break;o?p.c.length>o&&(p.c.length=o):r&&(p=p.mod(e))}if(i){if(0===(i=a(i/2)))break;f=i%2}else if(K(t=t.times(n),t.e+1,1),t.e>14)f=w(t);else{if(0==(i=+W(t)))break;f=i%2}d=d.times(d),o?d.c&&d.c.length>o&&(d.c.length=o):r&&(d=d.mod(e))}return r?p:(l&&(p=D.div(p)),e?p.mod(e):o?K(p,U,R,void 0):p)},L.integerValue=function(t){var e=new F(this);return null==t?t=R:b(t,0,8),K(e,e.e+1,t)},L.isEqualTo=L.eq=function(t,e){return 0===g(this,new F(t,e))},L.isFinite=function(){return!!this.c},L.isGreaterThan=L.gt=function(t,e){return g(this,new F(t,e))>0},L.isGreaterThanOrEqualTo=L.gte=function(t,e){return 1===(e=g(this,new F(t,e)))||0===e},L.isInteger=function(){return!!this.c&&v(this.e/h)>this.c.length-2},L.isLessThan=L.lt=function(t,e){return g(this,new F(t,e))<0},L.isLessThanOrEqualTo=L.lte=function(t,e){return-1===(e=g(this,new F(t,e)))||0===e},L.isNaN=function(){return!this.s},L.isNegative=function(){return this.s<0},L.isPositive=function(){return this.s>0},L.isZero=function(){return!!this.c&&0==this.c[0]},L.minus=function(t,e){var n,r,i,o,s=this,u=s.s;if(e=(t=new F(t,e)).s,!u||!e)return new F(NaN);if(u!=e)return t.s=-e,s.plus(t);var a=s.e/h,c=t.e/h,l=s.c,p=t.c;if(!a||!c){if(!l||!p)return l?(t.s=-e,t):new F(p?s:NaN);if(!l[0]||!p[0])return p[0]?(t.s=-e,t):new F(l[0]?s:3==R?-0:0)}if(a=v(a),c=v(c),l=l.slice(),u=a-c){for((o=u<0)?(u=-u,i=l):(c=a,i=p),i.reverse(),e=u;e--;i.push(0));i.reverse()}else for(r=(o=(u=l.length)<(e=p.length))?u:e,u=e=0;e<r;e++)if(l[e]!=p[e]){o=l[e]<p[e];break}if(o&&(i=l,l=p,p=i,t.s=-t.s),(e=(r=p.length)-(n=l.length))>0)for(;e--;l[n++]=0);for(e=f-1;r>u;){if(l[--r]<p[r]){for(n=r;n&&!l[--n];l[n]=e);--l[n],l[r]+=f}l[r]-=p[r]}for(;0==l[0];l.splice(0,1),--c);return l[0]?G(t,l,c):(t.s=3==R?-1:1,t.c=[t.e=0],t)},L.modulo=L.mod=function(t,e){var r,i,o=this;return t=new F(t,e),!o.c||!t.s||t.c&&!t.c[0]?new F(NaN):!t.c||o.c&&!o.c[0]?new F(o):(9==q?(i=t.s,t.s=1,r=n(o,t,0,3),t.s=i,r.s*=i):r=n(o,t,0,q),(t=o.minus(r.times(t))).c[0]||1!=q||(t.s=o.s),t)},L.multipliedBy=L.times=function(t,e){var n,r,i,o,s,u,a,c,l,p,d,_,m,g,b,w=this,x=w.c,E=(t=new F(t,e)).c;if(!(x&&E&&x[0]&&E[0]))return!w.s||!t.s||x&&!x[0]&&!E||E&&!E[0]&&!x?t.c=t.e=t.s=null:(t.s*=w.s,x&&E?(t.c=[0],t.e=0):t.c=t.e=null),t;for(r=v(w.e/h)+v(t.e/h),t.s*=w.s,(a=x.length)<(p=E.length)&&(m=x,x=E,E=m,i=a,a=p,p=i),i=a+p,m=[];i--;m.push(0));for(g=f,b=y,i=p;--i>=0;){for(n=0,d=E[i]%b,_=E[i]/b|0,o=i+(s=a);o>i;)n=((c=d*(c=x[--s]%b)+(u=_*c+(l=x[s]/b|0)*d)%b*b+m[o]+n)/g|0)+(u/b|0)+_*l,m[o--]=c%g;m[o]=n}return n?++r:m.splice(0,1),G(t,m,r)},L.negated=function(){var t=new F(this);return t.s=-t.s||null,t},L.plus=function(t,e){var n,r=this,i=r.s;if(e=(t=new F(t,e)).s,!i||!e)return new F(NaN);if(i!=e)return t.s=-e,r.minus(t);var o=r.e/h,s=t.e/h,u=r.c,a=t.c;if(!o||!s){if(!u||!a)return new F(i/0);if(!u[0]||!a[0])return a[0]?t:new F(u[0]?r:0*i)}if(o=v(o),s=v(s),u=u.slice(),i=o-s){for(i>0?(s=o,n=a):(i=-i,n=u),n.reverse();i--;n.push(0));n.reverse()}for((i=u.length)-(e=a.length)<0&&(n=a,a=u,u=n,e=i),i=0;e;)i=(u[--e]=u[e]+a[e]+i)/f|0,u[e]=f===u[e]?0:u[e]%f;return i&&(u=[i].concat(u),++s),G(t,u,s)},L.precision=L.sd=function(t,e){var n,r,i,o=this;if(null!=t&&t!==!!t)return b(t,1,_),null==e?e=R:b(e,0,8),K(new F(o),t,e);if(!(n=o.c))return null;if(r=(i=n.length-1)*h+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return t&&o.e+1>r&&(r=o.e+1),r},L.shiftedBy=function(t){return b(t,-9007199254740991,p),this.times("1e"+t)},L.squareRoot=L.sqrt=function(){var t,e,r,i,o,s=this,u=s.c,a=s.s,c=s.e,l=k+4,f=new F("0.5");if(1!==a||!u||!u[0])return new F(!a||a<0&&(!u||u[0])?NaN:u?s:1/0);if(0==(a=Math.sqrt(+W(s)))||a==1/0?(((e=m(u)).length+c)%2==0&&(e+="0"),a=Math.sqrt(+e),c=v((c+1)/2)-(c<0||c%2),r=new F(e=a==1/0?"5e"+c:(e=a.toExponential()).slice(0,e.indexOf("e")+1)+c)):r=new F(a+""),r.c[0])for((a=(c=r.e)+l)<3&&(a=0);;)if(o=r,r=f.times(o.plus(n(s,o,l,1))),m(o.c).slice(0,a)===(e=m(r.c)).slice(0,a)){if(r.e<c&&--a,"9999"!=(e=e.slice(a-3,a+1))&&(i||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(K(r,r.e+k+2,1),t=!r.times(r).eq(s));break}if(!i&&(K(o,o.e+k+2,0),o.times(o).eq(s))){r=o;break}l+=4,a+=4,i=1}return K(r,r.e+k+1,R,t)},L.toExponential=function(t,e){return null!=t&&(b(t,0,_),t++),H(this,t,e,1)},L.toFixed=function(t,e){return null!=t&&(b(t,0,_),t=t+this.e+1),H(this,t,e)},L.toFormat=function(t,e,n){var r,i=this;if(null==n)null!=t&&e&&"object"==typeof e?(n=e,e=null):t&&"object"==typeof t?(n=t,t=e=null):n=V;else if("object"!=typeof n)throw Error(c+"Argument not an object: "+n);if(r=i.toFixed(t,e),i.c){var o,s=r.split("."),u=+n.groupSize,a=+n.secondaryGroupSize,l=n.groupSeparator||"",f=s[0],h=s[1],p=i.s<0,d=p?f.slice(1):f,y=d.length;if(a&&(o=u,u=a,a=o,y-=o),u>0&&y>0){for(o=y%u||u,f=d.substr(0,o);o<y;o+=u)f+=l+d.substr(o,u);a>0&&(f+=l+d.slice(o)),p&&(f="-"+f)}r=h?f+(n.decimalSeparator||"")+((a=+n.fractionGroupSize)?h.replace(new RegExp("\\d{"+a+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):h):f}return(n.prefix||"")+r+(n.suffix||"")},L.toFraction=function(t){var e,r,i,o,s,u,a,l,f,p,y,_,v=this,g=v.c;if(null!=t&&(!(a=new F(t)).isInteger()&&(a.c||1!==a.s)||a.lt(D)))throw Error(c+"Argument "+(a.isInteger()?"out of range: ":"not an integer: ")+W(a));if(!g)return new F(v);for(e=new F(D),f=r=new F(D),i=l=new F(D),_=m(g),s=e.e=_.length-v.e-1,e.c[0]=d[(u=s%h)<0?h+u:u],t=!t||a.comparedTo(e)>0?s>0?e:f:a,u=P,P=1/0,a=new F(_),l.c[0]=0;p=n(a,e,0,1),1!=(o=r.plus(p.times(i))).comparedTo(t);)r=i,i=o,f=l.plus(p.times(o=f)),l=o,e=a.minus(p.times(o=e)),a=o;return o=n(t.minus(r),i,0,1),l=l.plus(o.times(f)),r=r.plus(o.times(i)),l.s=f.s=v.s,y=n(f,i,s*=2,R).minus(v).abs().comparedTo(n(l,r,s,R).minus(v).abs())<1?[f,i]:[l,r],P=u,y},L.toNumber=function(){return+W(this)},L.toPrecision=function(t,e){return null!=t&&b(t,1,_),H(this,t,e,2)},L.toString=function(t){var e,n=this,i=n.s,o=n.e;return null===o?i?(e="Infinity",i<0&&(e="-"+e)):e="NaN":(null==t?e=o<=B||o>=M?x(m(n.c),o):E(m(n.c),o,"0"):10===t?e=E(m((n=K(new F(n),k+o+1,R)).c),n.e,"0"):(b(t,2,$.length,"Base"),e=r(E(m(n.c),o,"0"),10,t,i,!0)),i<0&&n.c[0]&&(e="-"+e)),e},L.valueOf=L.toJSON=function(){return W(this)},L._isBigNumber=!0,null!=e&&F.set(e),F}(),o.default=o.BigNumber=o,void 0===(r=function(){return o}.call(e,n,e,t))||(t.exports=r)}()},8764:(t,e,n)=>{"use strict";const r=n(9742),i=n(645),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=a,e.SlowBuffer=function(t){return+t!=t&&(t=0),a.alloc(+t)},e.INSPECT_MAX_BYTES=50;const s=2147483647;function u(t){if(t>s)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,a.prototype),e}function a(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return f(t)}return c(t,e,n)}function c(t,e,n){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!a.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=0|y(t,e);let r=u(n);const i=r.write(t,e);return i!==n&&(r=r.slice(0,i)),r}(t,e);if(ArrayBuffer.isView(t))return function(t){if(Z(t,Uint8Array)){const e=new Uint8Array(t);return p(e.buffer,e.byteOffset,e.byteLength)}return h(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Z(t,ArrayBuffer)||t&&Z(t.buffer,ArrayBuffer))return p(t,e,n);if("undefined"!=typeof SharedArrayBuffer&&(Z(t,SharedArrayBuffer)||t&&Z(t.buffer,SharedArrayBuffer)))return p(t,e,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return a.from(r,e,n);const i=function(t){if(a.isBuffer(t)){const e=0|d(t.length),n=u(e);return 0===n.length||t.copy(n,0,0,e),n}return void 0!==t.length?"number"!=typeof t.length||J(t.length)?u(0):h(t):"Buffer"===t.type&&Array.isArray(t.data)?h(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return a.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function l(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function f(t){return l(t),u(t<0?0:0|d(t))}function h(t){const e=t.length<0?0:0|d(t.length),n=u(e);for(let r=0;r<e;r+=1)n[r]=255&t[r];return n}function p(t,e,n){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===e&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,e):new Uint8Array(t,e,n),Object.setPrototypeOf(r,a.prototype),r}function d(t){if(t>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|t}function y(t,e){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Z(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return G(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return K(t).length;default:if(i)return r?-1:G(t).length;e=(""+e).toLowerCase(),i=!0}}function _(t,e,n){let r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return L(this,e,n);case"utf8":case"utf-8":return T(this,e,n);case"ascii":return I(this,e,n);case"latin1":case"binary":return j(this,e,n);case"base64":return S(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function v(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function m(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),J(n=+n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=a.from(e,r)),a.isBuffer(e))return 0===e.length?-1:g(t,e,n,r,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):g(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function g(t,e,n,r,i){let o,s=1,u=t.length,a=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,u/=2,a/=2,n/=2}function c(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){let r=-1;for(o=n;o<u;o++)if(c(t,o)===c(e,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===a)return r*s}else-1!==r&&(o-=o-r),r=-1}else for(n+a>u&&(n=u-a),o=n;o>=0;o--){let n=!0;for(let r=0;r<a;r++)if(c(t,o+r)!==c(e,r)){n=!1;break}if(n)return o}return-1}function b(t,e,n,r){n=Number(n)||0;const i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;const o=e.length;let s;for(r>o/2&&(r=o/2),s=0;s<r;++s){const r=parseInt(e.substr(2*s,2),16);if(J(r))return s;t[n+s]=r}return s}function w(t,e,n,r){return W(G(e,t.length-n),t,n,r)}function x(t,e,n,r){return W(function(t){const e=[];for(let n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function E(t,e,n,r){return W(K(e),t,n,r)}function A(t,e,n,r){return W(function(t,e){let n,r,i;const o=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)n=t.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function S(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function T(t,e,n){n=Math.min(t.length,n);const r=[];let i=e;for(;i<n;){const e=t[i];let o=null,s=e>239?4:e>223?3:e>191?2:1;if(i+s<=n){let n,r,u,a;switch(s){case 1:e<128&&(o=e);break;case 2:n=t[i+1],128==(192&n)&&(a=(31&e)<<6|63&n,a>127&&(o=a));break;case 3:n=t[i+1],r=t[i+2],128==(192&n)&&128==(192&r)&&(a=(15&e)<<12|(63&n)<<6|63&r,a>2047&&(a<55296||a>57343)&&(o=a));break;case 4:n=t[i+1],r=t[i+2],u=t[i+3],128==(192&n)&&128==(192&r)&&128==(192&u)&&(a=(15&e)<<18|(63&n)<<12|(63&r)<<6|63&u,a>65535&&a<1114112&&(o=a))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=s}return function(t){const e=t.length;if(e<=O)return String.fromCharCode.apply(String,t);let n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=O));return n}(r)}e.kMaxLength=s,a.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(t,e,n){return c(t,e,n)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(t,e,n){return function(t,e,n){return l(t),t<=0?u(t):void 0!==e?"string"==typeof n?u(t).fill(e,n):u(t).fill(e):u(t)}(t,e,n)},a.allocUnsafe=function(t){return f(t)},a.allocUnsafeSlow=function(t){return f(t)},a.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==a.prototype},a.compare=function(t,e){if(Z(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),Z(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(t)||!a.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let n=t.length,r=e.length;for(let i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},a.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return a.alloc(0);let n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;const r=a.allocUnsafe(e);let i=0;for(n=0;n<t.length;++n){let e=t[n];if(Z(e,Uint8Array))i+e.length>r.length?(a.isBuffer(e)||(e=a.from(e)),e.copy(r,i)):Uint8Array.prototype.set.call(r,e,i);else{if(!a.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(r,i)}i+=e.length}return r},a.byteLength=y,a.prototype._isBuffer=!0,a.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)v(this,e,e+1);return this},a.prototype.swap32=function(){const t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)v(this,e,e+3),v(this,e+1,e+2);return this},a.prototype.swap64=function(){const t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)v(this,e,e+7),v(this,e+1,e+6),v(this,e+2,e+5),v(this,e+3,e+4);return this},a.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?T(this,0,t):_.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(t){if(!a.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===a.compare(this,t)},a.prototype.inspect=function(){let t="";const n=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},o&&(a.prototype[o]=a.prototype.inspect),a.prototype.compare=function(t,e,n,r,i){if(Z(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;let o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(e>>>=0);const u=Math.min(o,s),c=this.slice(r,i),l=t.slice(e,n);for(let t=0;t<u;++t)if(c[t]!==l[t]){o=c[t],s=l[t];break}return o<s?-1:s<o?1:0},a.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},a.prototype.indexOf=function(t,e,n){return m(this,t,e,n,!0)},a.prototype.lastIndexOf=function(t,e,n){return m(this,t,e,n,!1)},a.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return b(this,t,e,n);case"utf8":case"utf-8":return w(this,t,e,n);case"ascii":case"latin1":case"binary":return x(this,t,e,n);case"base64":return E(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const O=4096;function I(t,e,n){let r="";n=Math.min(t.length,n);for(let i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function j(t,e,n){let r="";n=Math.min(t.length,n);for(let i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function L(t,e,n){const r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);let i="";for(let r=e;r<n;++r)i+=X[t[r]];return i}function D(t,e,n){const r=t.slice(e,n);let i="";for(let t=0;t<r.length-1;t+=2)i+=String.fromCharCode(r[t]+256*r[t+1]);return i}function k(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,n,r,i,o){if(!a.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function B(t,e,n,r,i){$(e,r,i,t,n,7);let o=Number(e&BigInt(4294967295));t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=s,s>>=8,t[n++]=s,s>>=8,t[n++]=s,s>>=8,t[n++]=s,n}function M(t,e,n,r,i){$(e,r,i,t,n,7);let o=Number(e&BigInt(4294967295));t[n+7]=o,o>>=8,t[n+6]=o,o>>=8,t[n+5]=o,o>>=8,t[n+4]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=s,s>>=8,t[n+2]=s,s>>=8,t[n+1]=s,s>>=8,t[n]=s,n+8}function C(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function P(t,e,n,r,o){return e=+e,n>>>=0,o||C(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function N(t,e,n,r,o){return e=+e,n>>>=0,o||C(t,0,n,8),i.write(t,e,n,r,52,8),n+8}a.prototype.slice=function(t,e){const n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);const r=this.subarray(t,e);return Object.setPrototypeOf(r,a.prototype),r},a.prototype.readUintLE=a.prototype.readUIntLE=function(t,e,n){t>>>=0,e>>>=0,n||k(t,e,this.length);let r=this[t],i=1,o=0;for(;++o<e&&(i*=256);)r+=this[t+o]*i;return r},a.prototype.readUintBE=a.prototype.readUIntBE=function(t,e,n){t>>>=0,e>>>=0,n||k(t,e,this.length);let r=this[t+--e],i=1;for(;e>0&&(i*=256);)r+=this[t+--e]*i;return r},a.prototype.readUint8=a.prototype.readUInt8=function(t,e){return t>>>=0,e||k(t,1,this.length),this[t]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(t,e){return t>>>=0,e||k(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(t,e){return t>>>=0,e||k(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(t,e){return t>>>=0,e||k(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(t,e){return t>>>=0,e||k(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},a.prototype.readBigUInt64LE=Q((function(t){F(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||H(t,this.length-8);const r=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,i=this[++t]+256*this[++t]+65536*this[++t]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))})),a.prototype.readBigUInt64BE=Q((function(t){F(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||H(t,this.length-8);const r=e*2**24+65536*this[++t]+256*this[++t]+this[++t],i=this[++t]*2**24+65536*this[++t]+256*this[++t]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),a.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||k(t,e,this.length);let r=this[t],i=1,o=0;for(;++o<e&&(i*=256);)r+=this[t+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*e)),r},a.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||k(t,e,this.length);let r=e,i=1,o=this[t+--r];for(;r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},a.prototype.readInt8=function(t,e){return t>>>=0,e||k(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},a.prototype.readInt16LE=function(t,e){t>>>=0,e||k(t,2,this.length);const n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(t,e){t>>>=0,e||k(t,2,this.length);const n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(t,e){return t>>>=0,e||k(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},a.prototype.readInt32BE=function(t,e){return t>>>=0,e||k(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},a.prototype.readBigInt64LE=Q((function(t){F(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||H(t,this.length-8);const r=this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)})),a.prototype.readBigInt64BE=Q((function(t){F(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||H(t,this.length-8);const r=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(r)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+n)})),a.prototype.readFloatLE=function(t,e){return t>>>=0,e||k(t,4,this.length),i.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return t>>>=0,e||k(t,4,this.length),i.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return t>>>=0,e||k(t,8,this.length),i.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return t>>>=0,e||k(t,8,this.length),i.read(this,t,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(t,e,n,r){t=+t,e>>>=0,n>>>=0,r||R(this,t,e,n,Math.pow(2,8*n)-1,0);let i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(t,e,n,r){t=+t,e>>>=0,n>>>=0,r||R(this,t,e,n,Math.pow(2,8*n)-1,0);let i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},a.prototype.writeUint8=a.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,1,255,0),this[e]=255&t,e+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeBigUInt64LE=Q((function(t,e=0){return B(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),a.prototype.writeBigUInt64BE=Q((function(t,e=0){return M(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),a.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,t,e,n,r-1,-r)}let i=0,o=1,s=0;for(this[e]=255&t;++i<n&&(o*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/o>>0)-s&255;return e+n},a.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,t,e,n,r-1,-r)}let i=n-1,o=1,s=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/o>>0)-s&255;return e+n},a.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},a.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},a.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeBigInt64LE=Q((function(t,e=0){return B(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),a.prototype.writeBigInt64BE=Q((function(t,e=0){return M(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),a.prototype.writeFloatLE=function(t,e,n){return P(this,t,e,!0,n)},a.prototype.writeFloatBE=function(t,e,n){return P(this,t,e,!1,n)},a.prototype.writeDoubleLE=function(t,e,n){return N(this,t,e,!0,n)},a.prototype.writeDoubleBE=function(t,e,n){return N(this,t,e,!1,n)},a.prototype.copy=function(t,e,n,r){if(!a.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);const i=r-n;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,n,r):Uint8Array.prototype.set.call(t,this.subarray(n,r),e),i},a.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===t.length){const e=t.charCodeAt(0);("utf8"===r&&e<128||"latin1"===r)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;let i;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(i=e;i<n;++i)this[i]=t;else{const o=a.isBuffer(t)?t:a.from(t,r),s=o.length;if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<n-e;++i)this[i+e]=o[i%s]}return this};const q={};function U(t,e,n){q[t]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function V(t){let e="",n=t.length;const r="-"===t[0]?1:0;for(;n>=r+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function $(t,e,n,r,i,o){if(t>n||t<e){const r="bigint"==typeof e?"n":"";let i;throw i=o>3?0===e||e===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${e}${r} and <= ${n}${r}`,new q.ERR_OUT_OF_RANGE("value",i,t)}!function(t,e,n){F(e,"offset"),void 0!==t[e]&&void 0!==t[e+n]||H(e,t.length-(n+1))}(r,i,o)}function F(t,e){if("number"!=typeof t)throw new q.ERR_INVALID_ARG_TYPE(e,"number",t)}function H(t,e,n){if(Math.floor(t)!==t)throw F(t,n),new q.ERR_OUT_OF_RANGE(n||"offset","an integer",t);if(e<0)throw new q.ERR_BUFFER_OUT_OF_BOUNDS;throw new q.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${e}`,t)}U("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),U("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),U("ERR_OUT_OF_RANGE",(function(t,e,n){let r=`The value of "${t}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=V(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=V(i)),i+="n"),r+=` It must be ${e}. Received ${i}`,r}),RangeError);const z=/[^+/0-9A-Za-z-_]/g;function G(t,e){let n;e=e||1/0;const r=t.length;let i=null;const o=[];for(let s=0;s<r;++s){if(n=t.charCodeAt(s),n>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function K(t){return r.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(z,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function W(t,e,n,r){let i;for(i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function Z(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function J(t){return t!=t}const X=function(){const t="0123456789abcdef",e=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)e[r+i]=t[n]+t[i]}return e}();function Q(t){return"undefined"==typeof BigInt?Y:t}function Y(){throw new Error("BigInt not supported")}},4681:(t,e,n)=>{"use strict";e.__esModule=!0,e.default=function(t,e){if(s)return s.call(t,e);var r=t;do{if((0,i.default)(r,e))return r;r=r.parentNode}while(r&&r!==n.g.document);return null};var r,i=(r=n(5936))&&r.__esModule?r:{default:r},o=n.g.Element&&n.g.Element.prototype,s=o&&o.closest;t.exports=e.default,t.exports.default=e.default},7187:t=>{"use strict";var e,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};e=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var i=Number.isNaN||function(t){return t!=t};function o(){o.init.call(this)}t.exports=o,t.exports.once=function(t,e){return new Promise((function(n,r){function i(n){t.removeListener(e,o),r(n)}function o(){"function"==typeof t.removeListener&&t.removeListener("error",i),n([].slice.call(arguments))}y(t,e,o,{once:!0}),"error"!==e&&function(t,e,n){"function"==typeof t.on&&y(t,"error",e,{once:!0})}(t,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function u(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function a(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function c(t,e,n,r){var i,o,s,c;if(u(n),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),s=o[e]),void 0===s)s=o[e]=n,++t._eventsCount;else if("function"==typeof s?s=o[e]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=a(t))>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=s.length,c=l,console&&console.warn&&console.warn(c)}return t}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function h(t,e,n){var r=t._events;if(void 0===r)return[];var i=r[e];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(i):d(i,i.length)}function p(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function d(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}function y(t,e,n,r){if("function"==typeof t.on)r.once?t.once(e,n):t.on(e,n);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,(function i(o){r.once&&t.removeEventListener(e,i),n(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");s=t}}),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(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},o.prototype.getMaxListeners=function(){return a(this)},o.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var i="error"===t,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var u=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw u.context=s,u}var a=o[t];if(void 0===a)return!1;if("function"==typeof a)r(a,this,e);else{var c=a.length,l=d(a,c);for(n=0;n<c;++n)r(l[n],this,e)}return!0},o.prototype.addListener=function(t,e){return c(this,t,e,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(t,e){return c(this,t,e,!0)},o.prototype.once=function(t,e){return u(e),this.on(t,f(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){return u(e),this.prependListener(t,f(this,t,e)),this},o.prototype.removeListener=function(t,e){var n,r,i,o,s;if(u(e),void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===e||n[o].listener===e){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,i),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,s||e)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(t){var e,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[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),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(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},o.prototype.listeners=function(t){return h(this,t,!0)},o.prototype.rawListeners=function(t){return h(this,t,!1)},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):p.call(t,e)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},2750:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.moduleId=void 0,e.moduleId="1f24 e53a"},9979:(t,e,n)=>{"use strict";var r=n(4836);Object.defineProperty(e,"__esModule",{value:!0}),e.init=function(){var t=window.XMLHttpRequest;window.addEventListener("message",(function e(n){if(n.data&&"ext-corb-workaround_port"===n.data.type&&n.data.moduleId===s.moduleId&&!n.__ext_claimed){n.__ext_claimed=!0,window.removeEventListener("message",e);var r=n.data.port,u={};r.addEventListener("message",(function(e){var n=e.data.id;switch(e.data.type){case"NEW_XHR":var s=u[n]=new t;s.addEventListener("readystatechange",(function(){if(4===s.readyState){var t;delete u[n];try{t=s.responseText}catch(t){}r.postMessage({type:"COMPLETE",id:n,headers:s.getAllResponseHeaders(),readyState:s.readyState,status:s.status,statusText:s.statusText,responseURL:s.responseURL,response:s.response,responseText:t},(0,o.default)([s.response]))}}));break;case"SET":var a=e.data,c=a.prop,l=a.value;u[n][c]=l;break;case"CALL":var f,h=e.data,p=h.method,d=h.args;if("abort"===p&&!u[n])break;(f=u[n])[p].apply(f,(0,i.default)(d));break;default:console.error("ext-corb-workaround: Unknown event in page world:",e)}})),r.addEventListener("messageerror",(function(t){console.error("ext-corb-workaround: Unknown error in page world:",t)})),r.start()}}))};var i=r(n(861)),o=r(n(4658)),s=n(2750)},4658:(t,e,n)=>{"use strict";var r=n(4836);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.map((function(t){if(t&&"object"===(0,i.default)(t)&&t.__proto__){if("ArrayBuffer"===t.__proto__.constructor.name)return t;if(t.__proto__.__proto__&&"TypedArray"===t.__proto__.__proto__.constructor.name)return t.buffer}})).filter(Boolean)};var i=r(n(8698))},645:(t,e)=>{e.read=function(t,e,n,r,i){var o,s,u=8*i-r-1,a=(1<<u)-1,c=a>>1,l=-7,f=n?i-1:0,h=n?-1:1,p=t[e+f];for(f+=h,o=p&(1<<-l)-1,p>>=-l,l+=u;l>0;o=256*o+t[e+f],f+=h,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+t[e+f],f+=h,l-=8);if(0===o)o=1-c;else{if(o===a)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),o-=c}return(p?-1:1)*s*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var s,u,a,c=8*o-i-1,l=(1<<c)-1,f=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,d=r?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(a=Math.pow(2,-s))<1&&(s--,a*=2),(e+=s+f>=1?h/a:h*Math.pow(2,1-f))*a>=2&&(s++,a/=2),s+f>=l?(u=0,s=l):s+f>=1?(u=(e*a-1)*Math.pow(2,i),s+=f):(u=e*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;t[n+p]=255&u,p+=d,u/=256,i-=8);for(s=s<<i|u,c+=i;c>0;t[n+p]=255&s,p+=d,s/=256,c-=8);t[n+p-d]|=128*y}},5717:t=>{"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},7214:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=null;function e(){n.stopped=!0,t&&(t.emit(null),t.end())}var n=r.stream((function(r){t=r,n.stopped&&e()})).toProperty();return n.stopped=!1,n.destroy=e,n};var r=n(6609);t.exports=e.default,t.exports.default=e.default},6609:(t,e,n)=>{"use strict";function r(t){var e=arguments.length,n=void 0,r=void 0;for(n=1;n<e;n++)for(r in arguments[n])t[r]=arguments[n][r];return t}function i(t,e){var n,i,o=arguments.length,s=void 0;for(t.prototype=(n=e.prototype,(i=function(){}).prototype=n,new i),t.prototype.constructor=t,s=2;s<o;s++)r(t.prototype,arguments[s]);return t}n.r(e),n.d(e,{Kefir:()=>zn,Observable:()=>m,Pool:()=>on,Property:()=>b,Stream:()=>g,combine:()=>at,concat:()=>rn,constant:()=>F,constantError:()=>z,default:()=>Gn,dissableDeprecationWarnings:()=>Fn,fromCallback:()=>P,fromESObservable:()=>rt,fromEvents:()=>V,fromNodeCallback:()=>N,fromPoll:()=>D,fromPromise:()=>Y,interval:()=>O,later:()=>S,merge:()=>tn,never:()=>x,pool:()=>Vn,repeat:()=>nn,sequentially:()=>j,staticLand:()=>lt,stream:()=>C,withInterval:()=>B,zip:()=>Je}),t=n.hmd(t);var o=["<nothing>"],s="end",u="value",a="error",c="any";function l(t,e){var n=void 0,r=void 0,i=void 0,o=void 0;if(0===t.length)return e;if(0===e.length)return t;for(o=0,n=new Array(t.length+e.length),r=t.length,i=0;i<r;i++,o++)n[o]=t[i];for(r=e.length,i=0;i<r;i++,o++)n[o]=e[i];return n}function f(t,e){var n=t.length,r=void 0;for(r=0;r<n;r++)if(t[r]===e)return r;return-1}function h(t,e){var n=t.length,r=void 0;for(r=0;r<n;r++)if(e(t[r]))return r;return-1}function p(t){var e=t.length,n=new Array(e),r=void 0;for(r=0;r<e;r++)n[r]=t[r];return n}function d(t,e){var n=t.length,r=void 0,i=void 0,o=void 0;if(e>=0&&e<n){if(1===n)return[];for(r=new Array(n-1),i=0,o=0;i<n;i++)i!==e&&(r[o]=t[i],o++);return r}return t}function y(t,e){var n=t.length,r=new Array(n),i=void 0;for(i=0;i<n;i++)r[i]=e(t[i]);return r}function _(t,e,n){t===c?e(n):t===n.type&&(t===u||t===a?e(n.value):e())}function v(){this._items=[],this._spies=[],this._inLoop=0,this._removedItems=null}function m(){this._dispatcher=new v,this._active=!1,this._alive=!0,this._activating=!1,this._logHandlers=null,this._spyHandlers=null}function g(){m.call(this)}function b(){m.call(this),this._currentEvent=null}r(v.prototype,{add:function(t,e){return this._items=l(this._items,[{type:t,fn:e}]),this._items.length},remove:function(t,e){var n=h(this._items,(function(n){return n.type===t&&n.fn===e}));return 0!==this._inLoop&&-1!==n&&(null===this._removedItems&&(this._removedItems=[]),this._removedItems.push(this._items[n])),this._items=d(this._items,n),this._items.length},addSpy:function(t){return this._spies=l(this._spies,[t]),this._spies.length},removeSpy:function(t){return this._spies=d(this._spies,this._spies.indexOf(t)),this._spies.length},dispatch:function(t){this._inLoop++;for(var e=0,n=this._spies;null!==this._spies&&e<n.length;e++)n[e](t);for(var r=0,i=this._items;r<i.length&&null!==this._items;r++)null!==this._removedItems&&-1!==f(this._removedItems,i[r])||_(i[r].type,i[r].fn,t);this._inLoop--,0===this._inLoop&&(this._removedItems=null)},cleanup:function(){this._items=null,this._spies=null}}),r(m.prototype,{_name:"observable",_onActivation:function(){},_onDeactivation:function(){},_setActive:function(t){this._active!==t&&(this._active=t,t?(this._activating=!0,this._onActivation(),this._activating=!1):this._onDeactivation())},_clear:function(){this._setActive(!1),this._dispatcher.cleanup(),this._dispatcher=null,this._logHandlers=null},_emit:function(t,e){switch(t){case u:return this._emitValue(e);case a:return this._emitError(e);case s:return this._emitEnd()}},_emitValue:function(t){this._alive&&this._dispatcher.dispatch({type:u,value:t})},_emitError:function(t){this._alive&&this._dispatcher.dispatch({type:a,value:t})},_emitEnd:function(){this._alive&&(this._alive=!1,this._dispatcher.dispatch({type:s}),this._clear())},_on:function(t,e){return this._alive?(this._dispatcher.add(t,e),this._setActive(!0)):_(t,e,{type:s}),this},_off:function(t,e){return this._alive&&0===this._dispatcher.remove(t,e)&&this._setActive(!1),this},onValue:function(t){return this._on(u,t)},onError:function(t){return this._on(a,t)},onEnd:function(t){return this._on(s,t)},onAny:function(t){return this._on(c,t)},offValue:function(t){return this._off(u,t)},offError:function(t){return this._off(a,t)},offEnd:function(t){return this._off(s,t)},offAny:function(t){return this._off(c,t)},observe:function(t,e,n){var r=this,i=!1,o=t&&"function"!=typeof t?t:{value:t,error:e,end:n},c=function(t){t.type===s&&(i=!0),t.type===u&&o.value?o.value(t.value):t.type===a&&o.error?o.error(t.value):t.type===s&&o.end&&o.end(t.value)};return this.onAny(c),{unsubscribe:function(){i||(r.offAny(c),i=!0)},get closed(){return i}}},_ofSameType:function(t,e){return t.prototype.getType()===this.getType()?t:e},setName:function(t,e){return this._name=e?t._name+"."+e:t,this},log:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.toString(),e=void 0,n=function(n){var r="<"+n.type+(e?":current":"")+">";n.type===s?console.log(t,r):console.log(t,r,n.value)};return this._alive&&(this._logHandlers||(this._logHandlers=[]),this._logHandlers.push({name:t,handler:n})),e=!0,this.onAny(n),e=!1,this},offLog:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.toString();if(this._logHandlers){var e=h(this._logHandlers,(function(e){return e.name===t}));-1!==e&&(this.offAny(this._logHandlers[e].handler),this._logHandlers.splice(e,1))}return this},spy:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.toString(),e=function(e){var n="<"+e.type+">";e.type===s?console.log(t,n):console.log(t,n,e.value)};return this._alive&&(this._spyHandlers||(this._spyHandlers=[]),this._spyHandlers.push({name:t,handler:e}),this._dispatcher.addSpy(e)),this},offSpy:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.toString();if(this._spyHandlers){var e=h(this._spyHandlers,(function(e){return e.name===t}));-1!==e&&(this._dispatcher.removeSpy(this._spyHandlers[e].handler),this._spyHandlers.splice(e,1))}return this}}),m.prototype.toString=function(){return"["+this._name+"]"},i(g,m,{_name:"stream",getType:function(){return"stream"}}),i(b,m,{_name:"property",_emitValue:function(t){this._alive&&(this._currentEvent={type:u,value:t},this._activating||this._dispatcher.dispatch({type:u,value:t}))},_emitError:function(t){this._alive&&(this._currentEvent={type:a,value:t},this._activating||this._dispatcher.dispatch({type:a,value:t}))},_emitEnd:function(){this._alive&&(this._alive=!1,this._activating||this._dispatcher.dispatch({type:s}),this._clear())},_on:function(t,e){return this._alive&&(this._dispatcher.add(t,e),this._setActive(!0)),null!==this._currentEvent&&_(t,e,this._currentEvent),this._alive||_(t,e,{type:s}),this},getType:function(){return"property"}});var w=new g;function x(){return w}function E(t){function e(t,e){var n=this;g.call(this),this._wait=t,this._intervalId=null,this._$onTick=function(){return n._onTick()},this._init(e)}return i(e,g,{_init:function(){},_free:function(){},_onTick:function(){},_onActivation:function(){this._intervalId=setInterval(this._$onTick,this._wait)},_onDeactivation:function(){null!==this._intervalId&&(clearInterval(this._intervalId),this._intervalId=null)},_clear:function(){g.prototype._clear.call(this),this._$onTick=null,this._free()}},t),e}w._emitEnd(),w._name="never";var A=E({_name:"later",_init:function(t){var e=t.x;this._x=e},_free:function(){this._x=null},_onTick:function(){this._emitValue(this._x),this._emitEnd()}});function S(t,e){return new A(t,{x:e})}var T=E({_name:"interval",_init:function(t){var e=t.x;this._x=e},_free:function(){this._x=null},_onTick:function(){this._emitValue(this._x)}});function O(t,e){return new T(t,{x:e})}var I=E({_name:"sequentially",_init:function(t){var e=t.xs;this._xs=p(e)},_free:function(){this._xs=null},_onTick:function(){1===this._xs.length?(this._emitValue(this._xs[0]),this._emitEnd()):this._emitValue(this._xs.shift())}});function j(t,e){return 0===e.length?x():new I(t,{xs:e})}var L=E({_name:"fromPoll",_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_onTick:function(){var t=this._fn;this._emitValue(t())}});function D(t,e){return new L(t,{fn:e})}function k(t){function e(e){return t._emitValue(e),t._active}function n(e){return t._emit(e.type,e.value),t._active}return{value:e,error:function(e){return t._emitError(e),t._active},end:function(){return t._emitEnd(),t._active},event:n,emit:e,emitEvent:n}}var R=E({_name:"withInterval",_init:function(t){var e=t.fn;this._fn=e,this._emitter=k(this)},_free:function(){this._fn=null,this._emitter=null},_onTick:function(){(0,this._fn)(this._emitter)}});function B(t,e){return new R(t,{fn:e})}function M(t){g.call(this),this._fn=t,this._unsubscribe=null}function C(t){return new M(t)}function P(t){var e=!1;return C((function(n){e||(t((function(t){n.emit(t),n.end()})),e=!0)})).setName("fromCallback")}function N(t){var e=!1;return C((function(n){e||(t((function(t,e){t?n.error(t):n.emit(e),n.end()})),e=!0)})).setName("fromNodeCallback")}function q(t,e){switch(e){case 0:return function(){return t()};case 1:return function(e){return t(e[0])};case 2:return function(e){return t(e[0],e[1])};case 3:return function(e){return t(e[0],e[1],e[2])};case 4:return function(e){return t(e[0],e[1],e[2],e[3])};default:return function(e){return t.apply(null,e)}}}i(M,g,{_name:"stream",_onActivation:function(){var t=(0,this._fn)(k(this));this._unsubscribe="function"==typeof t?t:null,this._active||this._callUnsubscribe()},_callUnsubscribe:function(){null!==this._unsubscribe&&(this._unsubscribe(),this._unsubscribe=null)},_onDeactivation:function(){this._callUnsubscribe()},_clear:function(){g.prototype._clear.call(this),this._fn=null}});var U=[["addEventListener","removeEventListener"],["addListener","removeListener"],["on","off"]];function V(t,e,n){for(var r=void 0,i=void 0,o=0;o<U.length;o++)if("function"==typeof t[U[o][0]]&&"function"==typeof t[U[o][1]]){r=U[o][0],i=U[o][1];break}if(void 0===r)throw new Error("target don't support any of addEventListener/removeEventListener, addListener/removeListener, on/off method pair");return function(t,e,n){return C((function(r){var i=n?function(){r.emit(function(t,e,n){var r=n?n.length:0;if(null!=e)return 0===r?t.call(e):t.apply(e,n);switch(r){case 0:return t();case 1:return t(n[0]);case 2:return t(n[0],n[1]);case 3:return t(n[0],n[1],n[2]);case 4:return t(n[0],n[1],n[2],n[3]);default:return t.apply(null,n)}}(n,this,arguments))}:function(t){r.emit(t)};return t(i),function(){return e(i)}})).setName("fromSubUnsub")}((function(n){return t[r](e,n)}),(function(n){return t[i](e,n)}),n).setName("fromEvents")}function $(t){this._currentEvent={type:"value",value:t,current:!0}}function F(t){return new $(t)}function H(t){this._currentEvent={type:"error",value:t,current:!0}}function z(t){return new H(t)}function G(t,e){return function(n,r){var i=this;t.call(this),this._source=n,this._name=n._name+"."+e,this._init(r),this._$handleAny=function(t){return i._handleAny(t)}}}function K(t){return{_init:function(){},_free:function(){},_handleValue:function(t){this._emitValue(t)},_handleError:function(t){this._emitError(t)},_handleEnd:function(){this._emitEnd()},_handleAny:function(t){switch(t.type){case u:return this._handleValue(t.value);case a:return this._handleError(t.value);case s:return this._handleEnd()}},_onActivation:function(){this._source.onAny(this._$handleAny)},_onDeactivation:function(){this._source.offAny(this._$handleAny)},_clear:function(){t.prototype._clear.call(this),this._source=null,this._$handleAny=null,this._free()}}}function W(t,e){var n=G(g,t);return i(n,g,K(g),e),n}function Z(t,e){var n=G(b,t);return i(n,b,K(b),e),n}i($,b,{_name:"constant",_active:!1,_activating:!1,_alive:!1,_dispatcher:null,_logHandlers:null}),i(H,b,{_name:"constantError",_active:!1,_activating:!1,_alive:!1,_dispatcher:null,_logHandlers:null});var J=Z("toProperty",{_init:function(t){var e=t.fn;this._getInitialCurrent=e},_onActivation:function(){if(null!==this._getInitialCurrent){var t=this._getInitialCurrent;this._emitValue(t())}this._source.onAny(this._$handleAny)}});function X(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null!==e&&"function"!=typeof e)throw new Error("You should call toProperty() with a function or no arguments.");return new J(t,{fn:e})}var Q=W("changes",{_handleValue:function(t){this._activating||this._emitValue(t)},_handleError:function(t){this._activating||this._emitError(t)}});function Y(t){var e=!1,n=C((function(n){if(!e){var r=t.then((function(t){n.emit(t),n.end()}),(function(t){n.error(t),n.end()}));r&&"function"==typeof r.done&&r.done(),e=!0}}));return X(n,null).setName("fromPromise")}function tt(){if("function"==typeof Promise)return Promise;throw new Error("There isn't default Promise, use shim or parameter")}var et=function(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:t),nt=et.default?et.default:et;function rt(t){var e=t[nt]?t[nt]():t;return C((function(t){var n=e.subscribe({error:function(e){t.error(e),t.end()},next:function(e){t.emit(e)},complete:function(){t.end()}});return n.unsubscribe?function(){n.unsubscribe()}:n})).setName("fromESObservable")}function it(t){this._observable=t.takeErrors(1)}function ot(){return new it(this)}function st(t,e,n){for(var r in t)t.hasOwnProperty(r)&&(e.push(r),n.push(t[r]))}function ut(t,e,n){var r=this;g.call(this),this._activeCount=t.length,this._sources=l(t,e),this._combinator=n,this._aliveCount=0,this._latestValues=new Array(this._sources.length),this._latestErrors=new Array(this._sources.length),function(t,e){var n=t.length,r=void 0;for(r=0;r<n;r++)t[r]=e}(this._latestValues,o),this._emitAfterActivation=!1,this._endAfterActivation=!1,this._latestErrorIndex=0,this._$handlers=[];for(var i=function(t){r._$handlers.push((function(e){return r._handleAny(t,e)}))},s=0;s<this._sources.length;s++)i(s)}function at(t,e,n){return"function"==typeof e&&(n=e,e=void 0),Array.isArray(t)?function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments[2];if(!Array.isArray(e))throw new Error("Combine can only combine active and passive collections of the same type.");return n=n?q(n,t.length+e.length):function(t){return t},0===t.length?x():new ut(t,e,n)}(t,e,n):function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];if("object"!=typeof e||Array.isArray(e))throw new Error("Combine can only combine active and passive collections of the same type.");var r=[],i=[],o=[];return st(t,r,i),st(e,r,o),0===i.length?x():new ut(i,o,(function(t){for(var e={},i=t.length-1;0<=i;i--)e[r[i]]=t[i];return n?n(e):e}))}(t,e,n)}r(it.prototype,{subscribe:function(t,e,n){var r=this,i="function"==typeof t?{next:t,error:e,complete:n}:t,o=function(t){t.type===s&&(c=!0),t.type===u&&i.next?i.next(t.value):t.type===a&&i.error?i.error(t.value):t.type===s&&i.complete&&i.complete(t.value)};this._observable.onAny(o);var c=!1;return{unsubscribe:function(){c=!0,r._observable.offAny(o)},get closed(){return c}}}}),it.prototype[nt]=function(){return this},i(ut,g,{_name:"combine",_onActivation:function(){this._aliveCount=this._activeCount;for(var t=this._activeCount;t<this._sources.length;t++)this._sources[t].onAny(this._$handlers[t]);for(var e=0;e<this._activeCount;e++)this._sources[e].onAny(this._$handlers[e]);this._emitAfterActivation&&(this._emitAfterActivation=!1,this._emitIfFull()),this._endAfterActivation&&this._emitEnd()},_onDeactivation:function(){var t=this._sources.length,e=void 0;for(e=0;e<t;e++)this._sources[e].offAny(this._$handlers[e])},_emitIfFull:function(){for(var t=!0,e=!1,n=this._latestValues.length,r=new Array(n),i=new Array(n),s=0;s<n;s++)r[s]=this._latestValues[s],i[s]=this._latestErrors[s],r[s]===o&&(t=!1),void 0!==i[s]&&(e=!0);if(t){var u=this._combinator;this._emitValue(u(r))}e&&this._emitError(function(t){for(var e=void 0,n=0;n<t.length;n++)void 0!==t[n]&&(void 0===e||e.index<t[n].index)&&(e=t[n]);return e.error}(i))},_handleAny:function(t,e){e.type===u||e.type===a?(e.type===u&&(this._latestValues[t]=e.value,this._latestErrors[t]=void 0),e.type===a&&(this._latestValues[t]=o,this._latestErrors[t]={index:this._latestErrorIndex++,error:e.value}),t<this._activeCount&&(this._activating?this._emitAfterActivation=!0:this._emitIfFull())):t<this._activeCount&&(this._aliveCount--,0===this._aliveCount&&(this._activating?this._endAfterActivation=!0:this._emitEnd()))},_clear:function(){g.prototype._clear.call(this),this._sources=null,this._latestValues=null,this._latestErrors=null,this._combinator=null,this._$handlers=null}});var ct={empty:function(){return x()},concat:function(t,e){return t.merge(e)},of:function(t){return F(t)},map:function(t,e){return e.map(t)},bimap:function(t,e,n){return n.mapErrors(t).map(e)},ap:function(t,e){return at([t,e],(function(t,e){return t(e)}))},chain:function(t,e){return e.flatMap(t)}},lt=Object.freeze({Observable:ct}),ft={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){var e=this._fn;this._emitValue(e(t))}},ht=W("map",ft),pt=Z("map",ft),dt=function(t){return t};function yt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dt;return new(t._ofSameType(ht,pt))(t,{fn:e})}var _t={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){(0,this._fn)(t)&&this._emitValue(t)}},vt=W("filter",_t),mt=Z("filter",_t),gt=function(t){return t},bt={_init:function(t){var e=t.n;this._n=e,e<=0&&this._emitEnd()},_handleValue:function(t){0!==this._n&&(this._n--,this._emitValue(t),0===this._n&&this._emitEnd())}},wt=W("take",bt),xt=Z("take",bt),Et={_init:function(t){var e=t.n;this._n=e,e<=0&&this._emitEnd()},_handleError:function(t){0!==this._n&&(this._n--,this._emitError(t),0===this._n&&this._emitEnd())}},At=W("takeErrors",Et),St=Z("takeErrors",Et),Tt={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){(0,this._fn)(t)?this._emitValue(t):this._emitEnd()}},Ot=W("takeWhile",Tt),It=Z("takeWhile",Tt),jt=function(t){return t},Lt={_init:function(){this._lastValue=o},_free:function(){this._lastValue=null},_handleValue:function(t){this._lastValue=t},_handleEnd:function(){this._lastValue!==o&&this._emitValue(this._lastValue),this._emitEnd()}},Dt=W("last",Lt),kt=Z("last",Lt),Rt={_init:function(t){var e=t.n;this._n=Math.max(0,e)},_handleValue:function(t){0===this._n?this._emitValue(t):this._n--}},Bt=W("skip",Rt),Mt=Z("skip",Rt),Ct={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){var e=this._fn;null===this._fn||e(t)||(this._fn=null),null===this._fn&&this._emitValue(t)}},Pt=W("skipWhile",Ct),Nt=Z("skipWhile",Ct),qt=function(t){return t},Ut={_init:function(t){var e=t.fn;this._fn=e,this._prev=o},_free:function(){this._fn=null,this._prev=null},_handleValue:function(t){var e=this._fn;this._prev!==o&&e(this._prev,t)||(this._prev=t,this._emitValue(t))}},Vt=W("skipDuplicates",Ut),$t=Z("skipDuplicates",Ut),Ft=function(t,e){return t===e};function Ht(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ft;return new(t._ofSameType(Vt,$t))(t,{fn:e})}var zt={_init:function(t){var e=t.fn,n=t.seed;this._fn=e,this._prev=n},_free:function(){this._prev=null,this._fn=null},_handleValue:function(t){if(this._prev!==o){var e=this._fn;this._emitValue(e(this._prev,t))}this._prev=t}},Gt=W("diff",zt),Kt=Z("diff",zt);function Wt(t,e){return[t,e]}var Zt=Z("scan",{_init:function(t){var e=t.fn,n=t.seed;this._fn=e,this._seed=n,n!==o&&this._emitValue(n)},_free:function(){this._fn=null,this._seed=null},_handleValue:function(t){var e=this._fn;null===this._currentEvent||this._currentEvent.type===a?this._emitValue(this._seed===o?t:e(this._seed,t)):this._emitValue(e(this._currentEvent.value,t))}}),Jt=W("flatten",{_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){for(var e=(0,this._fn)(t),n=0;n<e.length;n++)this._emitValue(e[n])}}),Xt=function(t){return t},Qt={},Yt={_init:function(t){var e=this,n=t.wait;this._wait=Math.max(0,n),this._buff=[],this._$shiftBuff=function(){var t=e._buff.shift();t===Qt?e._emitEnd():e._emitValue(t)}},_free:function(){this._buff=null,this._$shiftBuff=null},_handleValue:function(t){this._activating?this._emitValue(t):(this._buff.push(t),setTimeout(this._$shiftBuff,this._wait))},_handleEnd:function(){this._activating?this._emitEnd():(this._buff.push(Qt),setTimeout(this._$shiftBuff,this._wait))}},te=W("delay",Yt),ee=Z("delay",Yt),ne=Date.now?function(){return Date.now()}:function(){return(new Date).getTime()},re={_init:function(t){var e=this,n=t.wait,r=t.leading,i=t.trailing;this._wait=Math.max(0,n),this._leading=r,this._trailing=i,this._trailingValue=null,this._timeoutId=null,this._endLater=!1,this._lastCallTime=0,this._$trailingCall=function(){return e._trailingCall()}},_free:function(){this._trailingValue=null,this._$trailingCall=null},_handleValue:function(t){if(this._activating)this._emitValue(t);else{var e=ne();0!==this._lastCallTime||this._leading||(this._lastCallTime=e);var n=this._wait-(e-this._lastCallTime);n<=0?(this._cancelTrailing(),this._lastCallTime=e,this._emitValue(t)):this._trailing&&(this._cancelTrailing(),this._trailingValue=t,this._timeoutId=setTimeout(this._$trailingCall,n))}},_handleEnd:function(){this._activating?this._emitEnd():this._timeoutId?this._endLater=!0:this._emitEnd()},_cancelTrailing:function(){null!==this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=null)},_trailingCall:function(){this._emitValue(this._trailingValue),this._timeoutId=null,this._trailingValue=null,this._lastCallTime=this._leading?ne():0,this._endLater&&this._emitEnd()}},ie=W("throttle",re),oe=Z("throttle",re),se={_init:function(t){var e=this,n=t.wait,r=t.immediate;this._wait=Math.max(0,n),this._immediate=r,this._lastAttempt=0,this._timeoutId=null,this._laterValue=null,this._endLater=!1,this._$later=function(){return e._later()}},_free:function(){this._laterValue=null,this._$later=null},_handleValue:function(t){this._activating?this._emitValue(t):(this._lastAttempt=ne(),this._immediate&&!this._timeoutId&&this._emitValue(t),this._timeoutId||(this._timeoutId=setTimeout(this._$later,this._wait)),this._immediate||(this._laterValue=t))},_handleEnd:function(){this._activating?this._emitEnd():this._timeoutId&&!this._immediate?this._endLater=!0:this._emitEnd()},_later:function(){var t=ne()-this._lastAttempt;if(t<this._wait&&t>=0)this._timeoutId=setTimeout(this._$later,this._wait-t);else{if(this._timeoutId=null,!this._immediate){var e=this._laterValue;this._laterValue=null,this._emitValue(e)}this._endLater&&this._emitEnd()}}},ue=W("debounce",se),ae=Z("debounce",se),ce={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleError:function(t){var e=this._fn;this._emitError(e(t))}},le=W("mapErrors",ce),fe=Z("mapErrors",ce),he=function(t){return t},pe={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleError:function(t){(0,this._fn)(t)&&this._emitError(t)}},de=W("filterErrors",pe),ye=Z("filterErrors",pe),_e=function(t){return t},ve={_handleValue:function(){}},me=W("ignoreValues",ve),ge=Z("ignoreValues",ve),be={_handleError:function(){}},we=W("ignoreErrors",be),xe=Z("ignoreErrors",be),Ee={_handleEnd:function(){}},Ae=W("ignoreEnd",Ee),Se=Z("ignoreEnd",Ee),Te={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleEnd:function(){var t=this._fn;this._emitValue(t()),this._emitEnd()}},Oe=W("beforeEnd",Te),Ie=Z("beforeEnd",Te),je={_init:function(t){var e=t.min,n=t.max;this._max=n,this._min=e,this._buff=[]},_free:function(){this._buff=null},_handleValue:function(t){this._buff=function(t,e,n){var r=Math.min(n,t.length+1),i=t.length-r+1,o=new Array(r),s=void 0;for(s=i;s<r;s++)o[s-i]=t[s];return o[r-1]=e,o}(this._buff,t,this._max),this._buff.length>=this._min&&this._emitValue(this._buff)}},Le=W("slidingWindow",je),De=Z("slidingWindow",je),ke={_init:function(t){var e=t.fn,n=t.flushOnEnd;this._fn=e,this._flushOnEnd=n,this._buff=[]},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&0!==this._buff.length&&(this._emitValue(this._buff),this._buff=[])},_handleValue:function(t){this._buff.push(t),(0,this._fn)(t)||this._flush()},_handleEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()}},Re=W("bufferWhile",ke),Be=Z("bufferWhile",ke),Me=function(t){return t},Ce={_init:function(t){var e=t.count,n=t.flushOnEnd;this._count=e,this._flushOnEnd=n,this._buff=[]},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&0!==this._buff.length&&(this._emitValue(this._buff),this._buff=[])},_handleValue:function(t){this._buff.push(t),this._buff.length>=this._count&&this._flush()},_handleEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()}},Pe=W("bufferWithCount",Ce),Ne=Z("bufferWithCount",Ce),qe={_init:function(t){var e=this,n=t.wait,r=t.count,i=t.flushOnEnd;this._wait=n,this._count=r,this._flushOnEnd=i,this._intervalId=null,this._$onTick=function(){return e._flush()},this._buff=[]},_free:function(){this._$onTick=null,this._buff=null},_flush:function(){null!==this._buff&&(this._emitValue(this._buff),this._buff=[])},_handleValue:function(t){this._buff.push(t),this._buff.length>=this._count&&(clearInterval(this._intervalId),this._flush(),this._intervalId=setInterval(this._$onTick,this._wait))},_handleEnd:function(){this._flushOnEnd&&0!==this._buff.length&&this._flush(),this._emitEnd()},_onActivation:function(){this._intervalId=setInterval(this._$onTick,this._wait),this._source.onAny(this._$handleAny)},_onDeactivation:function(){null!==this._intervalId&&(clearInterval(this._intervalId),this._intervalId=null),this._source.offAny(this._$handleAny)}},Ue=W("bufferWithTimeOrCount",qe),Ve=Z("bufferWithTimeOrCount",qe),$e={_init:function(t){var e,n=t.transducer;this._xform=n((e=this,{"@@transducer/step":function(t,n){return e._emitValue(n),null},"@@transducer/result":function(){return e._emitEnd(),null}}))},_free:function(){this._xform=null},_handleValue:function(t){null!==this._xform["@@transducer/step"](null,t)&&this._xform["@@transducer/result"](null)},_handleEnd:function(){this._xform["@@transducer/result"](null)}},Fe=W("transduce",$e),He=Z("transduce",$e),ze={_init:function(t){var e=t.fn;this._handler=e,this._emitter=k(this)},_free:function(){this._handler=null,this._emitter=null},_handleAny:function(t){this._handler(this._emitter,t)}},Ge=W("withHandler",ze),Ke=Z("withHandler",ze),We=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function Ze(t,e){var n=this;g.call(this),this._buffers=y(t,(function(t){return We(t)?p(t):[]})),this._sources=y(t,(function(t){return We(t)?x():t})),this._combinator=e?q(e,this._sources.length):function(t){return t},this._aliveCount=0,this._$handlers=[];for(var r=function(t){n._$handlers.push((function(e){return n._handleAny(t,e)}))},i=0;i<this._sources.length;i++)r(i)}function Je(t,e){return 0===t.length?x():new Ze(t,e)}i(Ze,g,{_name:"zip",_onActivation:function(){for(;this._isFull();)this._emit();var t=this._sources.length;this._aliveCount=t;for(var e=0;e<t&&this._active;e++)this._sources[e].onAny(this._$handlers[e])},_onDeactivation:function(){for(var t=0;t<this._sources.length;t++)this._sources[t].offAny(this._$handlers[t])},_emit:function(){for(var t=new Array(this._buffers.length),e=0;e<this._buffers.length;e++)t[e]=this._buffers[e].shift();var n=this._combinator;this._emitValue(n(t))},_isFull:function(){for(var t=0;t<this._buffers.length;t++)if(0===this._buffers[t].length)return!1;return!0},_handleAny:function(t,e){e.type===u&&(this._buffers[t].push(e.value),this._isFull()&&this._emit()),e.type===a&&this._emitError(e.value),e.type===s&&(this._aliveCount--,0===this._aliveCount&&this._emitEnd())},_clear:function(){g.prototype._clear.call(this),this._sources=null,this._buffers=null,this._combinator=null,this._$handlers=null}});var Xe=function(t){return t};function Qe(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.queueLim,r=void 0===n?0:n,i=e.concurLim,o=void 0===i?-1:i,s=e.drop,u=void 0===s?"new":s;g.call(this),this._queueLim=r<0?-1:r,this._concurLim=o<0?-1:o,this._drop=u,this._queue=[],this._curSources=[],this._$handleSubAny=function(e){return t._handleSubAny(e)},this._$endHandlers=[],this._currentlyAdding=null,0===this._concurLim&&this._emitEnd()}function Ye(t){Qe.call(this),this._addAll(t),this._initialised=!0}function tn(t){return 0===t.length?x():new Ye(t)}function en(t){var e=this;g.call(this),this._generator=t,this._source=null,this._inLoop=!1,this._iteration=0,this._$handleAny=function(t){return e._handleAny(t)}}i(Qe,g,{_name:"abstractPool",_add:function(t,e){e=e||Xe,-1===this._concurLim||this._curSources.length<this._concurLim?this._addToCur(e(t)):-1===this._queueLim||this._queue.length<this._queueLim?this._addToQueue(e(t)):"old"===this._drop&&(this._removeOldest(),this._add(t,e))},_addAll:function(t){var e=this;!function(t,n){var r,i=t.length,o=void 0;for(o=0;o<i;o++)r=t[o],e._add(r)}(t)},_remove:function(t){-1===this._removeCur(t)&&this._removeQueue(t)},_addToQueue:function(t){this._queue=l(this._queue,[t])},_addToCur:function(t){if(this._active){if(!t._alive)return t._currentEvent&&this._emit(t._currentEvent.type,t._currentEvent.value),void(this._active&&(0!==this._queue.length?this._pullQueue():0===this._curSources.length&&this._onEmpty()));this._currentlyAdding=t,t.onAny(this._$handleSubAny),this._currentlyAdding=null,t._alive?(this._curSources=l(this._curSources,[t]),this._active&&this._subToEnd(t)):0!==this._queue.length?this._pullQueue():0===this._curSources.length&&this._onEmpty()}else this._curSources=l(this._curSources,[t])},_subToEnd:function(t){var e=this,n=function(){return e._removeCur(t)};this._$endHandlers.push({obs:t,handler:n}),t.onEnd(n)},_subscribe:function(t){t.onAny(this._$handleSubAny),this._active&&this._subToEnd(t)},_unsubscribe:function(t){t.offAny(this._$handleSubAny);var e=h(this._$endHandlers,(function(e){return e.obs===t}));-1!==e&&(t.offEnd(this._$endHandlers[e].handler),this._$endHandlers.splice(e,1))},_handleSubAny:function(t){t.type===u?this._emitValue(t.value):t.type===a&&this._emitError(t.value)},_removeQueue:function(t){var e=f(this._queue,t);return this._queue=d(this._queue,e),e},_removeCur:function(t){this._active&&this._unsubscribe(t);var e=f(this._curSources,t);return this._curSources=d(this._curSources,e),-1!==e&&(0!==this._queue.length?this._pullQueue():0===this._curSources.length&&this._onEmpty()),e},_removeOldest:function(){this._removeCur(this._curSources[0])},_pullQueue:function(){0!==this._queue.length&&(this._queue=p(this._queue),this._addToCur(this._queue.shift()))},_onActivation:function(){for(var t=0,e=this._curSources;t<e.length&&this._active;t++)this._subscribe(e[t])},_onDeactivation:function(){for(var t=0,e=this._curSources;t<e.length;t++)this._unsubscribe(e[t]);null!==this._currentlyAdding&&this._unsubscribe(this._currentlyAdding)},_isEmpty:function(){return 0===this._curSources.length},_onEmpty:function(){},_clear:function(){g.prototype._clear.call(this),this._queue=null,this._curSources=null,this._$handleSubAny=null,this._$endHandlers=null}}),i(Ye,Qe,{_name:"merge",_onEmpty:function(){this._initialised&&this._emitEnd()}}),i(en,g,{_name:"repeat",_handleAny:function(t){t.type===s?(this._source=null,this._getSource()):this._emit(t.type,t.value)},_getSource:function(){if(!this._inLoop){this._inLoop=!0;for(var t=this._generator;null===this._source&&this._alive&&this._active;)this._source=t(this._iteration++),this._source?this._source.onAny(this._$handleAny):this._emitEnd();this._inLoop=!1}},_onActivation:function(){this._source?this._source.onAny(this._$handleAny):this._getSource()},_onDeactivation:function(){this._source&&this._source.offAny(this._$handleAny)},_clear:function(){g.prototype._clear.call(this),this._generator=null,this._source=null,this._$handleAny=null}});var nn=function(t){return new en(t)};function rn(t){return nn((function(e){return t.length>e&&t[e]})).setName("concat")}function on(){Qe.call(this)}function sn(t,e,n){var r=this;Qe.call(this,n),this._source=t,this._fn=e,this._mainEnded=!1,this._lastCurrent=null,this._$handleMain=function(t){return r._handleMain(t)}}function un(t,e){sn.call(this,t,e)}function an(t,e){return function(n,r,i){var s=this;t.call(this),this._primary=n,this._secondary=r,this._name=n._name+"."+e,this._lastSecondary=o,this._$handleSecondaryAny=function(t){return s._handleSecondaryAny(t)},this._$handlePrimaryAny=function(t){return s._handlePrimaryAny(t)},this._init(i)}}function cn(t){return{_init:function(){},_free:function(){},_handlePrimaryValue:function(t){this._emitValue(t)},_handlePrimaryError:function(t){this._emitError(t)},_handlePrimaryEnd:function(){this._emitEnd()},_handleSecondaryValue:function(t){this._lastSecondary=t},_handleSecondaryError:function(t){this._emitError(t)},_handleSecondaryEnd:function(){},_handlePrimaryAny:function(t){switch(t.type){case u:return this._handlePrimaryValue(t.value);case a:return this._handlePrimaryError(t.value);case s:return this._handlePrimaryEnd(t.value)}},_handleSecondaryAny:function(t){switch(t.type){case u:return this._handleSecondaryValue(t.value);case a:return this._handleSecondaryError(t.value);case s:this._handleSecondaryEnd(t.value),this._removeSecondary()}},_removeSecondary:function(){null!==this._secondary&&(this._secondary.offAny(this._$handleSecondaryAny),this._$handleSecondaryAny=null,this._secondary=null)},_onActivation:function(){null!==this._secondary&&this._secondary.onAny(this._$handleSecondaryAny),this._active&&this._primary.onAny(this._$handlePrimaryAny)},_onDeactivation:function(){null!==this._secondary&&this._secondary.offAny(this._$handleSecondaryAny),this._primary.offAny(this._$handlePrimaryAny)},_clear:function(){t.prototype._clear.call(this),this._primary=null,this._secondary=null,this._lastSecondary=null,this._$handleSecondaryAny=null,this._$handlePrimaryAny=null,this._free()}}}function ln(t,e){var n=an(g,t);return i(n,g,cn(g),e),n}function fn(t,e){var n=an(b,t);return i(n,b,cn(b),e),n}i(on,Qe,{_name:"pool",plug:function(t){return this._add(t),this},unplug:function(t){return this._remove(t),this}}),i(sn,Qe,{_onActivation:function(){Qe.prototype._onActivation.call(this),this._active&&this._source.onAny(this._$handleMain)},_onDeactivation:function(){Qe.prototype._onDeactivation.call(this),this._source.offAny(this._$handleMain),this._hadNoEvSinceDeact=!0},_handleMain:function(t){t.type===u&&(this._activating&&this._hadNoEvSinceDeact&&this._lastCurrent===t.value||this._add(t.value,this._fn),this._lastCurrent=t.value,this._hadNoEvSinceDeact=!1),t.type===a&&this._emitError(t.value),t.type===s&&(this._isEmpty()?this._emitEnd():this._mainEnded=!0)},_onEmpty:function(){this._mainEnded&&this._emitEnd()},_clear:function(){Qe.prototype._clear.call(this),this._source=null,this._lastCurrent=null,this._$handleMain=null}}),i(un,sn,{_handleMain:function(t){t.type===a&&(this._activating&&this._hadNoEvSinceDeact&&this._lastCurrent===t.value||this._add(t.value,this._fn),this._lastCurrent=t.value,this._hadNoEvSinceDeact=!1),t.type===u&&this._emitValue(t.value),t.type===s&&(this._isEmpty()?this._emitEnd():this._mainEnded=!0)}});var hn={_handlePrimaryValue:function(t){this._lastSecondary!==o&&this._lastSecondary&&this._emitValue(t)},_handleSecondaryEnd:function(){this._lastSecondary!==o&&this._lastSecondary||this._emitEnd()}},pn=ln("filterBy",hn),dn=fn("filterBy",hn),yn=function(t,e){return e},_n={_handlePrimaryValue:function(t){this._lastSecondary!==o&&this._emitValue(t)},_handleSecondaryEnd:function(){this._lastSecondary===o&&this._emitEnd()}},vn=ln("skipUntilBy",_n),mn=fn("skipUntilBy",_n),gn={_handleSecondaryValue:function(){this._emitEnd()}},bn=ln("takeUntilBy",gn),wn=fn("takeUntilBy",gn),xn={_init:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).flushOnEnd,e=void 0===t||t;this._buff=[],this._flushOnEnd=e},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&(this._emitValue(this._buff),this._buff=[])},_handlePrimaryEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()},_onActivation:function(){this._primary.onAny(this._$handlePrimaryAny),this._alive&&null!==this._secondary&&this._secondary.onAny(this._$handleSecondaryAny)},_handlePrimaryValue:function(t){this._buff.push(t)},_handleSecondaryValue:function(){this._flush()},_handleSecondaryEnd:function(){this._flushOnEnd||this._emitEnd()}},En=ln("bufferBy",xn),An=fn("bufferBy",xn),Sn={_init:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.flushOnEnd,n=void 0===e||e,r=t.flushOnChange,i=void 0!==r&&r;this._buff=[],this._flushOnEnd=n,this._flushOnChange=i},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&(this._emitValue(this._buff),this._buff=[])},_handlePrimaryEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()},_handlePrimaryValue:function(t){this._buff.push(t),this._lastSecondary===o||this._lastSecondary||this._flush()},_handleSecondaryEnd:function(){this._flushOnEnd||this._lastSecondary!==o&&!this._lastSecondary||this._emitEnd()},_handleSecondaryValue:function(t){this._flushOnChange&&!t&&this._flush(),this._lastSecondary=t}},Tn=ln("bufferWhileBy",Sn),On=fn("bufferWhileBy",Sn),In=function(){return!1},jn=function(){return!0},Ln={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){var e=(0,this._fn)(t);e.convert?this._emitError(e.error):this._emitValue(t)}},Dn=W("valuesToErrors",Ln),kn=Z("valuesToErrors",Ln),Rn=function(t){return{convert:!0,error:t}},Bn={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleError:function(t){var e=(0,this._fn)(t);e.convert?this._emitValue(e.value):this._emitError(t)}},Mn=W("errorsToValues",Bn),Cn=Z("errorsToValues",Bn),Pn=function(t){return{convert:!0,value:t}},Nn={_handleError:function(t){this._emitError(t),this._emitEnd()}},qn=W("endOnError",Nn),Un=Z("endOnError",Nn);m.prototype.toProperty=function(t){return X(this,t)},m.prototype.changes=function(){return new Q(this)},m.prototype.toPromise=function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tt(),n=null;return new e((function(e,r){t.onAny((function(t){t.type===s&&null!==n?((n.type===u?e:r)(n.value),n=null):n=t}))}))}(this,t)},m.prototype.toESObservable=ot,m.prototype[nt]=ot,m.prototype.map=function(t){return yt(this,t)},m.prototype.filter=function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:gt;return new(t._ofSameType(vt,mt))(t,{fn:e})}(this,t)},m.prototype.take=function(t){return function(t,e){return new(t._ofSameType(wt,xt))(t,{n:e})}(this,t)},m.prototype.takeErrors=function(t){return function(t,e){return new(t._ofSameType(At,St))(t,{n:e})}(this,t)},m.prototype.takeWhile=function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jt;return new(t._ofSameType(Ot,It))(t,{fn:e})}(this,t)},m.prototype.last=function(){return new((t=this)._ofSameType(Dt,kt))(t);var t},m.prototype.skip=function(t){return function(t,e){return new(t._ofSameType(Bt,Mt))(t,{n:e})}(this,t)},m.prototype.skipWhile=function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qt;return new(t._ofSameType(Pt,Nt))(t,{fn:e})}(this,t)},m.prototype.skipDuplicates=function(t){return Ht(this,t)},m.prototype.diff=function(t,e){return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o;return new(t._ofSameType(Gt,Kt))(t,{fn:e||Wt,seed:n})}(this,t,e)},m.prototype.scan=function(t,e){return function(t,e){return new Zt(t,{fn:e,seed:arguments.length>2&&void 0!==arguments[2]?arguments[2]:o})}(this,t,e)},m.prototype.flatten=function(t){return function(t){return new Jt(t,{fn:arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xt})}(this,t)},m.prototype.delay=function(t){return function(t,e){return new(t._ofSameType(te,ee))(t,{wait:e})}(this,t)},m.prototype.throttle=function(t,e){return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.leading,i=void 0===r||r,o=n.trailing,s=void 0===o||o;return new(t._ofSameType(ie,oe))(t,{wait:e,leading:i,trailing:s})}(this,t,e)},m.prototype.debounce=function(t,e){return function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).immediate,r=void 0!==n&&n;return new(t._ofSameType(ue,ae))(t,{wait:e,immediate:r})}(this,t,e)},m.prototype.mapErrors=function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:he;return new(t._ofSameType(le,fe))(t,{fn:e})}(this,t)},m.prototype.filterErrors=function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_e;return new(t._ofSameType(de,ye))(t,{fn:e})}(this,t)},m.prototype.ignoreValues=function(){return new((t=this)._ofSameType(me,ge))(t);var t},m.prototype.ignoreErrors=function(){return new((t=this)._ofSameType(we,xe))(t);var t},m.prototype.ignoreEnd=function(){return new((t=this)._ofSameType(Ae,Se))(t);var t},m.prototype.beforeEnd=function(t){return function(t,e){return new(t._ofSameType(Oe,Ie))(t,{fn:e})}(this,t)},m.prototype.slidingWindow=function(t,e){return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return new(t._ofSameType(Le,De))(t,{min:n,max:e})}(this,t,e)},m.prototype.bufferWhile=function(t,e){return function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).flushOnEnd,r=void 0===n||n;return new(t._ofSameType(Re,Be))(t,{fn:e||Me,flushOnEnd:r})}(this,t,e)},m.prototype.bufferWithCount=function(t,e){return function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).flushOnEnd,r=void 0===n||n;return new(t._ofSameType(Pe,Ne))(t,{count:e,flushOnEnd:r})}(this,t,e)},m.prototype.bufferWithTimeOrCount=function(t,e,n){return function(t,e,n){var r=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).flushOnEnd,i=void 0===r||r;return new(t._ofSameType(Ue,Ve))(t,{wait:e,count:n,flushOnEnd:i})}(this,t,e,n)},m.prototype.transduce=function(t){return function(t,e){return new(t._ofSameType(Fe,He))(t,{transducer:e})}(this,t)},m.prototype.withHandler=function(t){return function(t,e){return new(t._ofSameType(Ge,Ke))(t,{fn:e})}(this,t)},m.prototype.thru=function(t){return t(this)},m.prototype.combine=function(t,e){return at([this,t],e)},m.prototype.zip=function(t,e){return Je([this,t],e)},m.prototype.merge=function(t){return tn([this,t])},m.prototype.concat=function(t){return rn([this,t])};var Vn=function(){return new on};m.prototype.flatMap=function(t){return new sn(this,t).setName(this,"flatMap")},m.prototype.flatMapLatest=function(t){return new sn(this,t,{concurLim:1,drop:"old"}).setName(this,"flatMapLatest")},m.prototype.flatMapFirst=function(t){return new sn(this,t,{concurLim:1}).setName(this,"flatMapFirst")},m.prototype.flatMapConcat=function(t){return new sn(this,t,{queueLim:-1,concurLim:1}).setName(this,"flatMapConcat")},m.prototype.flatMapConcurLimit=function(t,e){return new sn(this,t,{queueLim:-1,concurLim:e}).setName(this,"flatMapConcurLimit")},m.prototype.flatMapErrors=function(t){return new un(this,t).setName(this,"flatMapErrors")},m.prototype.filterBy=function(t){return n=t,new((e=this)._ofSameType(pn,dn))(e,n);var e,n},m.prototype.sampledBy=function(t,e){return function(t,e,n){return at([e],[t],n?function(t,e){return n(e,t)}:yn).setName(t,"sampledBy")}(this,t,e)},m.prototype.skipUntilBy=function(t){return n=t,new((e=this)._ofSameType(vn,mn))(e,n);var e,n},m.prototype.takeUntilBy=function(t){return n=t,new((e=this)._ofSameType(bn,wn))(e,n);var e,n},m.prototype.bufferBy=function(t,e){return function(t,e,n){return new(t._ofSameType(En,An))(t,e,n)}(this,t,e)},m.prototype.bufferWhileBy=function(t,e){return function(t,e,n){return new(t._ofSameType(Tn,On))(t,e,n)}(this,t,e)};var $n=!0;function Fn(){$n=!1}function Hn(t){$n&&console&&"function"==typeof console.warn&&console.warn(t,"\nHere is an Error object for you containing the call stack:",new Error)}m.prototype.awaiting=function(t){return Hn("You are using deprecated .awaiting() method, see https://github.com/kefirjs/kefir/issues/145"),function(t,e){var n=tn([yt(t,jn),yt(e,In)]);return(n=X(n=Ht(n),In)).setName(t,"awaiting")}(this,t)},m.prototype.valuesToErrors=function(t){return Hn("You are using deprecated .valuesToErrors() method, see https://github.com/kefirjs/kefir/issues/149"),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rn;return new(t._ofSameType(Dn,kn))(t,{fn:e})}(this,t)},m.prototype.errorsToValues=function(t){return Hn("You are using deprecated .errorsToValues() method, see https://github.com/kefirjs/kefir/issues/149"),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pn;return new(t._ofSameType(Mn,Cn))(t,{fn:e})}(this,t)},m.prototype.endOnError=function(){return Hn("You are using deprecated .endOnError() method, see https://github.com/kefirjs/kefir/issues/150"),new((t=this)._ofSameType(qn,Un))(t);var t};var zn={Observable:m,Stream:g,Property:b,never:x,later:S,interval:O,sequentially:j,fromPoll:D,withInterval:B,fromCallback:P,fromNodeCallback:N,fromEvents:V,stream:C,constant:F,constantError:z,fromPromise:Y,fromESObservable:rt,combine:at,zip:Je,merge:tn,concat:rn,Pool:on,pool:Vn,repeat:nn,staticLand:lt};zn.Kefir=zn;const Gn=zn},8552:(t,e,n)=>{var r=n(852)(n(5639),"DataView");t.exports=r},1989:(t,e,n)=>{var r=n(1789),i=n(401),o=n(7667),s=n(1327),u=n(1866);function a(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}a.prototype.clear=r,a.prototype.delete=i,a.prototype.get=o,a.prototype.has=s,a.prototype.set=u,t.exports=a},8407:(t,e,n)=>{var r=n(7040),i=n(4125),o=n(2117),s=n(7518),u=n(4705);function a(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}a.prototype.clear=r,a.prototype.delete=i,a.prototype.get=o,a.prototype.has=s,a.prototype.set=u,t.exports=a},7071:(t,e,n)=>{var r=n(852)(n(5639),"Map");t.exports=r},3369:(t,e,n)=>{var r=n(4785),i=n(1285),o=n(6e3),s=n(9916),u=n(5265);function a(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}a.prototype.clear=r,a.prototype.delete=i,a.prototype.get=o,a.prototype.has=s,a.prototype.set=u,t.exports=a},3818:(t,e,n)=>{var r=n(852)(n(5639),"Promise");t.exports=r},8525:(t,e,n)=>{var r=n(852)(n(5639),"Set");t.exports=r},8668:(t,e,n)=>{var r=n(3369),i=n(619),o=n(2385);function s(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}s.prototype.add=s.prototype.push=i,s.prototype.has=o,t.exports=s},6384:(t,e,n)=>{var r=n(8407),i=n(7465),o=n(3779),s=n(7599),u=n(4758),a=n(4309);function c(t){var e=this.__data__=new r(t);this.size=e.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=s,c.prototype.has=u,c.prototype.set=a,t.exports=c},2705:(t,e,n)=>{var r=n(5639).Symbol;t.exports=r},1149:(t,e,n)=>{var r=n(5639).Uint8Array;t.exports=r},577:(t,e,n)=>{var r=n(852)(n(5639),"WeakMap");t.exports=r},6874:t=>{t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},7412:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},4963:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}},7443:(t,e,n)=>{var r=n(2118);t.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}},1196:t=>{t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}},4636:(t,e,n)=>{var r=n(2545),i=n(5694),o=n(1469),s=n(4144),u=n(5776),a=n(6719),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),l=!n&&i(t),f=!n&&!l&&s(t),h=!n&&!l&&!f&&a(t),p=n||l||f||h,d=p?r(t.length,String):[],y=d.length;for(var _ in t)!e&&!c.call(t,_)||p&&("length"==_||f&&("offset"==_||"parent"==_)||h&&("buffer"==_||"byteLength"==_||"byteOffset"==_)||u(_,y))||d.push(_);return d}},9932:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},2488:t=>{t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},2908:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},4865:(t,e,n)=>{var r=n(9465),i=n(7813),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var s=t[e];o.call(t,e)&&i(s,n)&&(void 0!==n||e in t)||r(t,e,n)}},8470:(t,e,n)=>{var r=n(7813);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},4037:(t,e,n)=>{var r=n(8363),i=n(3674);t.exports=function(t,e){return t&&r(e,i(e),t)}},3886:(t,e,n)=>{var r=n(8363),i=n(1704);t.exports=function(t,e){return t&&r(e,i(e),t)}},9465:(t,e,n)=>{var r=n(8777);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},9750:t=>{t.exports=function(t,e,n){return t==t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}},5990:(t,e,n)=>{var r=n(6384),i=n(7412),o=n(4865),s=n(4037),u=n(3886),a=n(4626),c=n(278),l=n(8805),f=n(1911),h=n(8234),p=n(6904),d=n(4160),y=n(3824),_=n(9148),v=n(8517),m=n(1469),g=n(4144),b=n(6688),w=n(3218),x=n(2928),E=n(3674),A=n(1704),S="[object Arguments]",T="[object Function]",O="[object Object]",I={};I[S]=I["[object Array]"]=I["[object ArrayBuffer]"]=I["[object DataView]"]=I["[object Boolean]"]=I["[object Date]"]=I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Map]"]=I["[object Number]"]=I[O]=I["[object RegExp]"]=I["[object Set]"]=I["[object String]"]=I["[object Symbol]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I["[object Error]"]=I[T]=I["[object WeakMap]"]=!1,t.exports=function t(e,n,j,L,D,k){var R,B=1&n,M=2&n,C=4&n;if(j&&(R=D?j(e,L,D,k):j(e)),void 0!==R)return R;if(!w(e))return e;var P=m(e);if(P){if(R=y(e),!B)return c(e,R)}else{var N=d(e),q=N==T||"[object GeneratorFunction]"==N;if(g(e))return a(e,B);if(N==O||N==S||q&&!D){if(R=M||q?{}:v(e),!B)return M?f(e,u(R,e)):l(e,s(R,e))}else{if(!I[N])return D?e:{};R=_(e,N,B)}}k||(k=new r);var U=k.get(e);if(U)return U;k.set(e,R),x(e)?e.forEach((function(r){R.add(t(r,n,j,r,e,k))})):b(e)&&e.forEach((function(r,i){R.set(i,t(r,n,j,i,e,k))}));var V=P?void 0:(C?M?p:h:M?A:E)(e);return i(V||e,(function(r,i){V&&(r=e[i=r]),o(R,i,t(r,n,j,i,e,k))})),R}},3118:(t,e,n)=>{var r=n(3218),i=Object.create,o=function(){function t(){}return function(e){if(!r(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=o},9881:(t,e,n)=>{var r=n(7816),i=n(9291)(r);t.exports=i},760:(t,e,n)=>{var r=n(9881);t.exports=function(t,e){var n=[];return r(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}},1848:t=>{t.exports=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}},1078:(t,e,n)=>{var r=n(2488),i=n(7285);t.exports=function t(e,n,o,s,u){var a=-1,c=e.length;for(o||(o=i),u||(u=[]);++a<c;){var l=e[a];n>0&&o(l)?n>1?t(l,n-1,o,s,u):r(u,l):s||(u[u.length]=l)}return u}},8483:(t,e,n)=>{var r=n(5063)();t.exports=r},7816:(t,e,n)=>{var r=n(8483),i=n(3674);t.exports=function(t,e){return t&&r(t,e,i)}},7786:(t,e,n)=>{var r=n(1811),i=n(327);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n<o;)t=t[i(e[n++])];return n&&n==o?t:void 0}},8866:(t,e,n)=>{var r=n(2488),i=n(1469);t.exports=function(t,e,n){var o=e(t);return i(t)?o:r(o,n(t))}},4239:(t,e,n)=>{var r=n(2705),i=n(9607),o=n(2333),s=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?i(t):o(t)}},8565:t=>{var e=Object.prototype.hasOwnProperty;t.exports=function(t,n){return null!=t&&e.call(t,n)}},13:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},2118:(t,e,n)=>{var r=n(1848),i=n(2722),o=n(2351);t.exports=function(t,e,n){return e==e?o(t,e,n):r(t,i,n)}},7556:(t,e,n)=>{var r=n(8668),i=n(7443),o=n(1196),s=n(9932),u=n(1717),a=n(4757),c=Math.min;t.exports=function(t,e,n){for(var l=n?o:i,f=t[0].length,h=t.length,p=h,d=Array(h),y=1/0,_=[];p--;){var v=t[p];p&&e&&(v=s(v,u(e))),y=c(v.length,y),d[p]=!n&&(e||f>=120&&v.length>=120)?new r(p&&v):void 0}v=t[0];var m=-1,g=d[0];t:for(;++m<f&&_.length<y;){var b=v[m],w=e?e(b):b;if(b=n||0!==b?b:0,!(g?a(g,w):l(_,w,n))){for(p=h;--p;){var x=d[p];if(!(x?a(x,w):l(t[p],w,n)))continue t}g&&g.push(w),_.push(b)}}return _}},9454:(t,e,n)=>{var r=n(4239),i=n(7005);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},939:(t,e,n)=>{var r=n(2492),i=n(7005);t.exports=function t(e,n,o,s,u){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,o,s,t,u))}},2492:(t,e,n)=>{var r=n(6384),i=n(7114),o=n(8351),s=n(6096),u=n(4160),a=n(1469),c=n(4144),l=n(6719),f="[object Arguments]",h="[object Array]",p="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,y,_,v){var m=a(t),g=a(e),b=m?h:u(t),w=g?h:u(e),x=(b=b==f?p:b)==p,E=(w=w==f?p:w)==p,A=b==w;if(A&&c(t)){if(!c(e))return!1;m=!0,x=!1}if(A&&!x)return v||(v=new r),m||l(t)?i(t,e,n,y,_,v):o(t,e,b,n,y,_,v);if(!(1&n)){var S=x&&d.call(t,"__wrapped__"),T=E&&d.call(e,"__wrapped__");if(S||T){var O=S?t.value():t,I=T?e.value():e;return v||(v=new r),_(O,I,n,y,v)}}return!!A&&(v||(v=new r),s(t,e,n,y,_,v))}},5588:(t,e,n)=>{var r=n(4160),i=n(7005);t.exports=function(t){return i(t)&&"[object Map]"==r(t)}},2958:(t,e,n)=>{var r=n(6384),i=n(939);t.exports=function(t,e,n,o){var s=n.length,u=s,a=!o;if(null==t)return!u;for(t=Object(t);s--;){var c=n[s];if(a&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++s<u;){var l=(c=n[s])[0],f=t[l],h=c[1];if(a&&c[2]){if(void 0===f&&!(l in t))return!1}else{var p=new r;if(o)var d=o(f,h,l,t,e,p);if(!(void 0===d?i(h,f,3,o,p):d))return!1}}return!0}},2722:t=>{t.exports=function(t){return t!=t}},8458:(t,e,n)=>{var r=n(3560),i=n(5346),o=n(3218),s=n(346),u=/^\[object .+?Constructor\]$/,a=Function.prototype,c=Object.prototype,l=a.toString,f=c.hasOwnProperty,h=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?h:u).test(s(t))}},9221:(t,e,n)=>{var r=n(4160),i=n(7005);t.exports=function(t){return i(t)&&"[object Set]"==r(t)}},8749:(t,e,n)=>{var r=n(4239),i=n(1780),o=n(7005),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!s[r(t)]}},7206:(t,e,n)=>{var r=n(1573),i=n(6432),o=n(6557),s=n(1469),u=n(9601);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?s(t)?i(t[0],t[1]):r(t):u(t)}},280:(t,e,n)=>{var r=n(5726),i=n(6916),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},313:(t,e,n)=>{var r=n(3218),i=n(5726),o=n(3498),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=i(t),n=[];for(var u in t)("constructor"!=u||!e&&s.call(t,u))&&n.push(u);return n}},9199:(t,e,n)=>{var r=n(9881),i=n(8612);t.exports=function(t,e){var n=-1,o=i(t)?Array(t.length):[];return r(t,(function(t,r,i){o[++n]=e(t,r,i)})),o}},1573:(t,e,n)=>{var r=n(2958),i=n(1499),o=n(2634);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},6432:(t,e,n)=>{var r=n(939),i=n(7361),o=n(9095),s=n(5403),u=n(9162),a=n(2634),c=n(327);t.exports=function(t,e){return s(t)&&u(e)?a(c(t),e):function(n){var s=i(n,t);return void 0===s&&s===e?o(n,t):r(e,s,3)}}},2689:(t,e,n)=>{var r=n(9932),i=n(7786),o=n(7206),s=n(9199),u=n(1131),a=n(1717),c=n(5022),l=n(6557),f=n(1469);t.exports=function(t,e,n){e=e.length?r(e,(function(t){return f(t)?function(e){return i(e,1===t.length?t[0]:t)}:t})):[l];var h=-1;e=r(e,a(o));var p=s(t,(function(t,n,i){return{criteria:r(e,(function(e){return e(t)})),index:++h,value:t}}));return u(p,(function(t,e){return c(t,e,n)}))}},371:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},9152:(t,e,n)=>{var r=n(7786);t.exports=function(t){return function(e){return r(e,t)}}},8674:t=>{t.exports=function(t){return function(e){return null==t?void 0:t[e]}}},5976:(t,e,n)=>{var r=n(6557),i=n(5357),o=n(61);t.exports=function(t,e){return o(i(t,e,r),t+"")}},6560:(t,e,n)=>{var r=n(5703),i=n(8777),o=n(6557),s=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;t.exports=s},1131:t=>{t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},2545:t=>{t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},531:(t,e,n)=>{var r=n(2705),i=n(9932),o=n(1469),s=n(3448),u=r?r.prototype:void 0,a=u?u.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(s(e))return a?a.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},7561:(t,e,n)=>{var r=n(7990),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},1717:t=>{t.exports=function(t){return function(e){return t(e)}}},7415:(t,e,n)=>{var r=n(9932);t.exports=function(t,e){return r(e,(function(e){return t[e]}))}},4757:t=>{t.exports=function(t,e){return t.has(e)}},4387:(t,e,n)=>{var r=n(9246);t.exports=function(t){return r(t)?t:[]}},4290:(t,e,n)=>{var r=n(6557);t.exports=function(t){return"function"==typeof t?t:r}},1811:(t,e,n)=>{var r=n(1469),i=n(5403),o=n(5514),s=n(9833);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:o(s(t))}},4318:(t,e,n)=>{var r=n(1149);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},4626:(t,e,n)=>{t=n.nmd(t);var r=n(5639),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,s=o&&o.exports===i?r.Buffer:void 0,u=s?s.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=u?u(n):new t.constructor(n);return t.copy(r),r}},7157:(t,e,n)=>{var r=n(4318);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},3147:t=>{var e=/\w*$/;t.exports=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}},419:(t,e,n)=>{var r=n(2705),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;t.exports=function(t){return o?Object(o.call(t)):{}}},7133:(t,e,n)=>{var r=n(4318);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},6393:(t,e,n)=>{var r=n(3448);t.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,o=t==t,s=r(t),u=void 0!==e,a=null===e,c=e==e,l=r(e);if(!a&&!l&&!s&&t>e||s&&u&&c&&!a&&!l||i&&u&&c||!n&&c||!o)return 1;if(!i&&!s&&!l&&t<e||l&&n&&o&&!i&&!s||a&&n&&o||!u&&o||!c)return-1}return 0}},5022:(t,e,n)=>{var r=n(6393);t.exports=function(t,e,n){for(var i=-1,o=t.criteria,s=e.criteria,u=o.length,a=n.length;++i<u;){var c=r(o[i],s[i]);if(c)return i>=a?c:c*("desc"==n[i]?-1:1)}return t.index-e.index}},278:t=>{t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},8363:(t,e,n)=>{var r=n(4865),i=n(9465);t.exports=function(t,e,n,o){var s=!n;n||(n={});for(var u=-1,a=e.length;++u<a;){var c=e[u],l=o?o(n[c],t[c],c,n,t):void 0;void 0===l&&(l=t[c]),s?i(n,c,l):r(n,c,l)}return n}},8805:(t,e,n)=>{var r=n(8363),i=n(9551);t.exports=function(t,e){return r(t,i(t),e)}},1911:(t,e,n)=>{var r=n(8363),i=n(1442);t.exports=function(t,e){return r(t,i(t),e)}},4429:(t,e,n)=>{var r=n(5639)["__core-js_shared__"];t.exports=r},9291:(t,e,n)=>{var r=n(8612);t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var o=n.length,s=e?o:-1,u=Object(n);(e?s--:++s<o)&&!1!==i(u[s],s,u););return n}}},5063:t=>{t.exports=function(t){return function(e,n,r){for(var i=-1,o=Object(e),s=r(e),u=s.length;u--;){var a=s[t?u:++i];if(!1===n(o[a],a,o))break}return e}}},7740:(t,e,n)=>{var r=n(7206),i=n(8612),o=n(3674);t.exports=function(t){return function(e,n,s){var u=Object(e);if(!i(e)){var a=r(n,3);e=o(e),n=function(t){return a(u[t],t,u)}}var c=t(e,n,s);return c>-1?u[a?e[c]:c]:void 0}}},8777:(t,e,n)=>{var r=n(852),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},7114:(t,e,n)=>{var r=n(8668),i=n(2908),o=n(4757);t.exports=function(t,e,n,s,u,a){var c=1&n,l=t.length,f=e.length;if(l!=f&&!(c&&f>l))return!1;var h=a.get(t),p=a.get(e);if(h&&p)return h==e&&p==t;var d=-1,y=!0,_=2&n?new r:void 0;for(a.set(t,e),a.set(e,t);++d<l;){var v=t[d],m=e[d];if(s)var g=c?s(m,v,d,e,t,a):s(v,m,d,t,e,a);if(void 0!==g){if(g)continue;y=!1;break}if(_){if(!i(e,(function(t,e){if(!o(_,e)&&(v===t||u(v,t,n,s,a)))return _.push(e)}))){y=!1;break}}else if(v!==m&&!u(v,m,n,s,a)){y=!1;break}}return a.delete(t),a.delete(e),y}},8351:(t,e,n)=>{var r=n(2705),i=n(1149),o=n(7813),s=n(7114),u=n(8776),a=n(1814),c=r?r.prototype:void 0,l=c?c.valueOf:void 0;t.exports=function(t,e,n,r,c,f,h){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!f(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var p=u;case"[object Set]":var d=1&r;if(p||(p=a),t.size!=e.size&&!d)return!1;var y=h.get(t);if(y)return y==e;r|=2,h.set(t,e);var _=s(p(t),p(e),r,c,f,h);return h.delete(t),_;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},6096:(t,e,n)=>{var r=n(8234),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,s,u){var a=1&n,c=r(t),l=c.length;if(l!=r(e).length&&!a)return!1;for(var f=l;f--;){var h=c[f];if(!(a?h in e:i.call(e,h)))return!1}var p=u.get(t),d=u.get(e);if(p&&d)return p==e&&d==t;var y=!0;u.set(t,e),u.set(e,t);for(var _=a;++f<l;){var v=t[h=c[f]],m=e[h];if(o)var g=a?o(m,v,h,e,t,u):o(v,m,h,t,e,u);if(!(void 0===g?v===m||s(v,m,n,o,u):g)){y=!1;break}_||(_="constructor"==h)}if(y&&!_){var b=t.constructor,w=e.constructor;b==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(y=!1)}return u.delete(t),u.delete(e),y}},9464:(t,e,n)=>{var r=n(8674)({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});t.exports=r},1957:(t,e,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},8234:(t,e,n)=>{var r=n(8866),i=n(9551),o=n(3674);t.exports=function(t){return r(t,o,i)}},6904:(t,e,n)=>{var r=n(8866),i=n(1442),o=n(1704);t.exports=function(t){return r(t,o,i)}},5050:(t,e,n)=>{var r=n(7019);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},1499:(t,e,n)=>{var r=n(9162),i=n(3674);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],s=t[o];e[n]=[o,s,r(s)]}return e}},852:(t,e,n)=>{var r=n(8458),i=n(7801);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},5924:(t,e,n)=>{var r=n(5569)(Object.getPrototypeOf,Object);t.exports=r},9607:(t,e,n)=>{var r=n(2705),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,u=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,u),n=t[u];try{t[u]=void 0;var r=!0}catch(t){}var i=s.call(t);return r&&(e?t[u]=n:delete t[u]),i}},9551:(t,e,n)=>{var r=n(4963),i=n(479),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,u=s?function(t){return null==t?[]:(t=Object(t),r(s(t),(function(e){return o.call(t,e)})))}:i;t.exports=u},1442:(t,e,n)=>{var r=n(2488),i=n(5924),o=n(9551),s=n(479),u=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,o(t)),t=i(t);return e}:s;t.exports=u},4160:(t,e,n)=>{var r=n(8552),i=n(7071),o=n(3818),s=n(8525),u=n(577),a=n(4239),c=n(346),l="[object Map]",f="[object Promise]",h="[object Set]",p="[object WeakMap]",d="[object DataView]",y=c(r),_=c(i),v=c(o),m=c(s),g=c(u),b=a;(r&&b(new r(new ArrayBuffer(1)))!=d||i&&b(new i)!=l||o&&b(o.resolve())!=f||s&&b(new s)!=h||u&&b(new u)!=p)&&(b=function(t){var e=a(t),n="[object Object]"==e?t.constructor:void 0,r=n?c(n):"";if(r)switch(r){case y:return d;case _:return l;case v:return f;case m:return h;case g:return p}return e}),t.exports=b},7801:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},222:(t,e,n)=>{var r=n(1811),i=n(5694),o=n(1469),s=n(5776),u=n(1780),a=n(327);t.exports=function(t,e,n){for(var c=-1,l=(e=r(e,t)).length,f=!1;++c<l;){var h=a(e[c]);if(!(f=null!=t&&n(t,h)))break;t=t[h]}return f||++c!=l?f:!!(l=null==t?0:t.length)&&u(l)&&s(h,l)&&(o(t)||i(t))}},1789:(t,e,n)=>{var r=n(4536);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},401:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},7667:(t,e,n)=>{var r=n(4536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},1327:(t,e,n)=>{var r=n(4536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},1866:(t,e,n)=>{var r=n(4536);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},3824:t=>{var e=Object.prototype.hasOwnProperty;t.exports=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},9148:(t,e,n)=>{var r=n(4318),i=n(7157),o=n(3147),s=n(419),u=n(7133);t.exports=function(t,e,n){var a=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new a(+t);case"[object DataView]":return i(t,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 u(t,n);case"[object Map]":case"[object Set]":return new a;case"[object Number]":case"[object String]":return new a(t);case"[object RegExp]":return o(t);case"[object Symbol]":return s(t)}}},8517:(t,e,n)=>{var r=n(3118),i=n(5924),o=n(5726);t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:r(i(t))}},7285:(t,e,n)=>{var r=n(2705),i=n(5694),o=n(1469),s=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(s&&t&&t[s])}},5776:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},6612:(t,e,n)=>{var r=n(7813),i=n(8612),o=n(5776),s=n(3218);t.exports=function(t,e,n){if(!s(n))return!1;var u=typeof e;return!!("number"==u?i(n)&&o(e,n.length):"string"==u&&e in n)&&r(n[e],t)}},5403:(t,e,n)=>{var r=n(1469),i=n(3448),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||s.test(t)||!o.test(t)||null!=e&&t in Object(e)}},7019:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},5346:(t,e,n)=>{var r,i=n(4429),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},5726:t=>{var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},9162:(t,e,n)=>{var r=n(3218);t.exports=function(t){return t==t&&!r(t)}},7040:t=>{t.exports=function(){this.__data__=[],this.size=0}},4125:(t,e,n)=>{var r=n(8470),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():i.call(e,n,1),--this.size,0))}},2117:(t,e,n)=>{var r=n(8470);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},7518:(t,e,n)=>{var r=n(8470);t.exports=function(t){return r(this.__data__,t)>-1}},4705:(t,e,n)=>{var r=n(8470);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},4785:(t,e,n)=>{var r=n(1989),i=n(8407),o=n(7071);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},1285:(t,e,n)=>{var r=n(5050);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},6e3:(t,e,n)=>{var r=n(5050);t.exports=function(t){return r(this,t).get(t)}},9916:(t,e,n)=>{var r=n(5050);t.exports=function(t){return r(this,t).has(t)}},5265:(t,e,n)=>{var r=n(5050);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},8776:t=>{t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},2634:t=>{t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},4523:(t,e,n)=>{var r=n(8306);t.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},4536:(t,e,n)=>{var r=n(852)(Object,"create");t.exports=r},6916:(t,e,n)=>{var r=n(5569)(Object.keys,Object);t.exports=r},3498:t=>{t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},1167:(t,e,n)=>{t=n.nmd(t);var r=n(1957),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,s=o&&o.exports===i&&r.process,u=function(){try{return o&&o.require&&o.require("util").types||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=u},2333:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:t=>{t.exports=function(t,e){return function(n){return t(e(n))}}},5357:(t,e,n)=>{var r=n(6874),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,s=-1,u=i(o.length-e,0),a=Array(u);++s<u;)a[s]=o[e+s];s=-1;for(var c=Array(e+1);++s<e;)c[s]=o[s];return c[e]=n(a),r(t,this,c)}}},5639:(t,e,n)=>{var r=n(1957),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},619:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},2385:t=>{t.exports=function(t){return this.__data__.has(t)}},1814:t=>{t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},61:(t,e,n)=>{var r=n(6560),i=n(1275)(r);t.exports=i},1275:t=>{var e=Date.now;t.exports=function(t){var n=0,r=0;return function(){var i=e(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},7465:(t,e,n)=>{var r=n(8407);t.exports=function(){this.__data__=new r,this.size=0}},3779:t=>{t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},7599:t=>{t.exports=function(t){return this.__data__.get(t)}},4758:t=>{t.exports=function(t){return this.__data__.has(t)}},4309:(t,e,n)=>{var r=n(8407),i=n(7071),o=n(3369);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<199)return s.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(t,e),this.size=n.size,this}},2351:t=>{t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}},5514:(t,e,n)=>{var r=n(4523),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}));t.exports=s},327:(t,e,n)=>{var r=n(3448);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},346:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},7990:t=>{var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},9567:(t,e,n)=>{var r=n(554);t.exports=function(t,e){var n;if("function"!=typeof e)throw new TypeError("Expected a function");return t=r(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}},6678:(t,e,n)=>{var r=n(5990);t.exports=function(t){return r(t,4)}},5703:t=>{t.exports=function(t){return function(){return t}}},6073:(t,e,n)=>{t.exports=n(4486)},7813:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},1675:(t,e,n)=>{var r=n(9464),i=n(9833),o=/[&<>"']/g,s=RegExp(o.source);t.exports=function(t){return(t=i(t))&&s.test(t)?t.replace(o,r):t}},3105:(t,e,n)=>{var r=n(4963),i=n(760),o=n(7206),s=n(1469);t.exports=function(t,e){return(s(t)?r:i)(t,o(e,3))}},3311:(t,e,n)=>{var r=n(7740)(n(998));t.exports=r},998:(t,e,n)=>{var r=n(1848),i=n(7206),o=n(554),s=Math.max;t.exports=function(t,e,n){var u=null==t?0:t.length;if(!u)return-1;var a=null==n?0:o(n);return a<0&&(a=s(u+a,0)),r(t,i(e,3),a)}},5564:(t,e,n)=>{var r=n(1078);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},4486:(t,e,n)=>{var r=n(7412),i=n(9881),o=n(4290),s=n(1469);t.exports=function(t,e){return(s(t)?r:i)(t,o(e))}},7361:(t,e,n)=>{var r=n(7786);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},8721:(t,e,n)=>{var r=n(8565),i=n(222);t.exports=function(t,e){return null!=t&&i(t,e,r)}},9095:(t,e,n)=>{var r=n(13),i=n(222);t.exports=function(t,e){return null!=t&&i(t,e,r)}},6557:t=>{t.exports=function(t){return t}},4721:(t,e,n)=>{var r=n(2118),i=n(8612),o=n(7037),s=n(554),u=n(2628),a=Math.max;t.exports=function(t,e,n,c){t=i(t)?t:u(t),n=n&&!c?s(n):0;var l=t.length;return n<0&&(n=a(l+n,0)),o(t)?n<=l&&t.indexOf(e,n)>-1:!!l&&r(t,e,n)>-1}},5325:(t,e,n)=>{var r=n(9932),i=n(7556),o=n(5976),s=n(4387),u=o((function(t){var e=r(t,s);return e.length&&e[0]===t[0]?i(e):[]}));t.exports=u},5694:(t,e,n)=>{var r=n(9454),i=n(7005),o=Object.prototype,s=o.hasOwnProperty,u=o.propertyIsEnumerable,a=r(function(){return arguments}())?r:function(t){return i(t)&&s.call(t,"callee")&&!u.call(t,"callee")};t.exports=a},1469:t=>{var e=Array.isArray;t.exports=e},8612:(t,e,n)=>{var r=n(3560),i=n(1780);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},9246:(t,e,n)=>{var r=n(8612),i=n(7005);t.exports=function(t){return i(t)&&r(t)}},4144:(t,e,n)=>{t=n.nmd(t);var r=n(5639),i=n(5062),o=e&&!e.nodeType&&e,s=o&&t&&!t.nodeType&&t,u=s&&s.exports===o?r.Buffer:void 0,a=(u?u.isBuffer:void 0)||i;t.exports=a},3560:(t,e,n)=>{var r=n(4239),i=n(3218);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1780:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},6688:(t,e,n)=>{var r=n(5588),i=n(1717),o=n(1167),s=o&&o.isMap,u=s?i(s):r;t.exports=u},3218:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},2928:(t,e,n)=>{var r=n(9221),i=n(1717),o=n(1167),s=o&&o.isSet,u=s?i(s):r;t.exports=u},7037:(t,e,n)=>{var r=n(4239),i=n(1469),o=n(7005);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},3448:(t,e,n)=>{var r=n(4239),i=n(7005);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},6719:(t,e,n)=>{var r=n(8749),i=n(1717),o=n(1167),s=o&&o.isTypedArray,u=s?i(s):r;t.exports=u},3674:(t,e,n)=>{var r=n(4636),i=n(280),o=n(8612);t.exports=function(t){return o(t)?r(t):i(t)}},1704:(t,e,n)=>{var r=n(4636),i=n(313),o=n(8612);t.exports=function(t){return o(t)?r(t,!0):i(t)}},928:t=>{t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},8306:(t,e,n)=>{var r=n(3369);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},308:t=>{t.exports=function(){}},1463:(t,e,n)=>{var r=n(9567);t.exports=function(t){return r(2,t)}},9601:(t,e,n)=>{var r=n(371),i=n(9152),o=n(5403),s=n(327);t.exports=function(t){return o(t)?r(s(t)):i(t)}},9734:(t,e,n)=>{var r=n(1078),i=n(2689),o=n(5976),s=n(6612),u=o((function(t,e){if(null==t)return[];var n=e.length;return n>1&&s(t,e[0],e[1])?e=[]:n>2&&s(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])}));t.exports=u},240:(t,e,n)=>{var r=n(9750),i=n(531),o=n(554),s=n(9833);t.exports=function(t,e,n){return t=s(t),n=null==n?0:r(o(n),0,t.length),e=i(e),t.slice(n,n+e.length)==e}},479:t=>{t.exports=function(){return[]}},5062:t=>{t.exports=function(){return!1}},8601:(t,e,n)=>{var r=n(4841);t.exports=function(t){return t?Infinity===(t=r(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},554:(t,e,n)=>{var r=n(8601);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},4841:(t,e,n)=>{var r=n(7561),i=n(3218),o=n(3448),s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,a=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=u.test(t);return n||a.test(t)?c(t.slice(2),n?2:8):s.test(t)?NaN:+t}},9833:(t,e,n)=>{var r=n(531);t.exports=function(t){return null==t?"":r(t)}},2628:(t,e,n)=>{var r=n(7415),i=n(3674);t.exports=function(t){return null==t?[]:r(t,i(t))}},5936:(t,e,n)=>{"use strict";e.__esModule=!0,e.default=function(t,e){if(i)return i.call(t,e);var n=t.parentNode;if(n&&"function"==typeof n.querySelectorAll)for(var r=n.querySelectorAll(e),o=0;o<r.length;o++)if(r[o]===t)return!0;return!1};var r=n.g.Element&&n.g.Element.prototype,i=r&&(r.matches||r.matchesSelector||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector);t.exports=e.default,t.exports.default=e.default},7418:t=>{"use strict";var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,i){for(var o,s,u=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),a=1;a<arguments.length;a++){for(var c in o=Object(arguments[a]))n.call(o,c)&&(u[c]=o[c]);if(e){s=e(o);for(var l=0;l<s.length;l++)r.call(o,s[l])&&(u[s[l]]=o[s[l]])}}return u}},443:(t,e)=>{"use strict";e.Z=function(t,e){return new Promise((function(n){setTimeout((function(){n(e)}),t)}))}},4155:t=>{var e,n,r=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(t){n=o}}();var u,a=[],c=!1,l=-1;function f(){c&&u&&(c=!1,u.length?a=u.concat(a):l=-1,a.length&&h())}function h(){if(!c){var t=s(f);c=!0;for(var e=a.length;e;){for(u=a,a=[];++l<e;)u&&u[l].run();l=-1,e=a.length}u=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{return n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function d(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];a.push(new p(t,e)),1!==a.length||c||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=d,r.addListener=d,r.once=d,r.off=d,r.removeListener=d,r.removeAllListeners=d,r.emit=d,r.prependListener=d,r.prependOnceListener=d,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},2587:t=>{"use strict";function e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,n,r,i){n=n||"&",r=r||"=";var o={};if("string"!=typeof t||0===t.length)return o;var s=/\+/g;t=t.split(n);var u=1e3;i&&"number"==typeof i.maxKeys&&(u=i.maxKeys);var a=t.length;u>0&&a>u&&(a=u);for(var c=0;c<a;++c){var l,f,h,p,d=t[c].replace(s,"%20"),y=d.indexOf(r);y>=0?(l=d.substr(0,y),f=d.substr(y+1)):(l=d,f=""),h=decodeURIComponent(l),p=decodeURIComponent(f),e(o,h)?Array.isArray(o[h])?o[h].push(p):o[h]=[o[h],p]:o[h]=p}return o}},2361:t=>{"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,n,r,i){return n=n||"&",r=r||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map((function(i){var o=encodeURIComponent(e(i))+r;return Array.isArray(t[i])?t[i].map((function(t){return o+encodeURIComponent(e(t))})).join(n):o+encodeURIComponent(e(t[i]))})).join(n):i?encodeURIComponent(e(i))+r+encodeURIComponent(e(t)):""}},7673:(t,e,n)=>{"use strict";e.decode=e.parse=n(2587),e.encode=e.stringify=n(2361)},9509:(t,e,n)=>{var r=n(8764),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function s(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},s.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},s.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},4189:(t,e,n)=>{var r=n(9509).Buffer;function i(t,e){this._block=r.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}i.prototype.update=function(t,e){"string"==typeof t&&(e=e||"utf8",t=r.from(t,e));for(var n=this._block,i=this._blockSize,o=t.length,s=this._len,u=0;u<o;){for(var a=s%i,c=Math.min(o-u,i-a),l=0;l<c;l++)n[a+l]=t[u+l];u+=c,(s+=c)%i==0&&this._update(n)}return this._len+=o,this},i.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var o=this._hash();return t?o.toString(t):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=i},7499:(t,e,n)=>{var r=n(5717),i=n(4189),o=n(9509).Buffer,s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],u=new Array(64);function a(){this.init(),this._w=u,i.call(this,64,56)}function c(t,e,n){return n^t&(e^n)}function l(t,e,n){return t&e|n&(t|e)}function f(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function h(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function p(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}r(a,i),a.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},a.prototype._update=function(t){for(var e,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,u=0|this._d,a=0|this._e,d=0|this._f,y=0|this._g,_=0|this._h,v=0;v<16;++v)n[v]=t.readInt32BE(4*v);for(;v<64;++v)n[v]=0|(((e=n[v-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+n[v-7]+p(n[v-15])+n[v-16];for(var m=0;m<64;++m){var g=_+h(a)+c(a,d,y)+s[m]+n[m]|0,b=f(r)+l(r,i,o)|0;_=y,y=d,d=a,a=u+g|0,u=o,o=i,i=r,r=g+b|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=u+this._d|0,this._e=a+this._e|0,this._f=d+this._f|0,this._g=y+this._g|0,this._h=_+this._h|0},a.prototype._hash=function(){var t=o.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=a},1095:t=>{var e={iterator:"undefined"!=typeof Symbol?Symbol.iterator:"@@iterator"};function n(t,e){throw new Error("don't know how to "+t+" collection: "+e)}function r(t,n){return"iterator"===n?t[e.iterator]||t.next:t[e[n]]}function i(t){var n=t[e.iterator];return n?n.call(t):t.next?t:a(t)?new o(t):l(t)?new s(t):void 0}function o(t){this.arr=t,this.index=0}function s(t){this.obj=t,this.keys=Object.keys(t),this.index=0}o.prototype.next=function(){return this.index<this.arr.length?{value:this.arr[this.index++],done:!1}:{done:!0}},s.prototype.next=function(){if(this.index<this.keys.length){var t=this.keys[this.index++];return{value:[t,this.obj[t]],done:!1}}return{done:!0}};var u=Object.prototype.toString,a="function"==typeof Array.isArray?Array.isArray:function(t){return"[object Array]"==u.call(t)};function c(t){return"function"==typeof t}function l(t){return t instanceof Object&&Object.getPrototypeOf(t)===Object.getPrototypeOf({})}function f(t){return"number"==typeof t}function h(t){this["@@transducer/reduced"]=!0,this["@@transducer/value"]=t}function p(t){return t instanceof h||t&&t["@@transducer/reduced"]}function d(t){return t["@@transducer/value"]}function y(t){return p(t)?d(t):t}function _(t,e,o){if(a(t)){for(var s=o,u=-1,c=t.length;++u<c;)if(p(s=e["@@transducer/step"](s,t[u]))){s=d(s);break}return e["@@transducer/result"](s)}if(l(t)||r(t,"iterator")){s=o;for(var f=i(t),h=f.next();!h.done;){if(p(s=e["@@transducer/step"](s,h.value))){s=d(s);break}h=f.next()}return e["@@transducer/result"](s)}n("iterate",t)}function v(t,e,n,r){return e=e(n),void 0===r&&(r=e["@@transducer/init"]()),_(t,e,r)}function m(){var t=Array.prototype.slice.call(arguments);return function(e){for(var n=e,r=t.length-1;r>=0;r--)n=t[r](n);return n}}function g(t,e,n){if(!e)return t;switch(n=null!=n?n:1){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};default:return t.bind(e)}}function b(t,e){this.xform=e,this.f=t}function w(t,e,n){return c(t)&&(n=e,e=t,t=null),e=g(e,n),t?a(t)?function(t,e,n){var r=-1,i=t.length,o=Array(i);for(e=g(e,n,2);++r<i;)o[r]=e(t[r],r);return o}(t,e,n):V(t,w(e)):function(t){return new b(e,t)}}function x(t,e){this.xform=e,this.f=t}function E(t,e,n){return c(t)&&(n=e,e=t,t=null),e=g(e,n),t?a(t)?function(t,e,n){var r=t.length,i=[];e=g(e,n,2);for(var o=0;o<r;o++)e(t[o],o)&&i.push(t[o]);return i}(t,e,n):V(t,E(e)):function(t){return new x(e,t)}}function A(t){this.xform=t,this.last=void 0}function S(t,e){this.xform=e,this.f=t}function T(t,e){this.n=t,this.i=0,this.xform=e}function O(t,e){this.n=t,this.i=0,this.xform=e}function I(t,e){this.xform=e,this.f=t,this.dropping=!0}function j(t,e){this.n=t,this.i=0,this.xform=e,this.part=new Array(t)}b.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},b.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},b.prototype["@@transducer/step"]=function(t,e){return this.xform["@@transducer/step"](t,this.f(e))},x.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},x.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},x.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xform["@@transducer/step"](t,e):t},A.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},A.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},A.prototype["@@transducer/step"]=function(t,e){return e!==this.last?(this.last=e,this.xform["@@transducer/step"](t,e)):t},S.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},S.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},S.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xform["@@transducer/step"](t,e):new h(t)},T.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},T.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},T.prototype["@@transducer/step"]=function(t,e){var n;return this.i<this.n&&(t=this.xform["@@transducer/step"](t,e),this.i+1>=this.n&&(t=p(n=t)?n:new h(n))),this.i++,t},O.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},O.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},O.prototype["@@transducer/step"]=function(t,e){return this.i++<this.n?t:this.xform["@@transducer/step"](t,e)},I.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},I.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},I.prototype["@@transducer/step"]=function(t,e){if(this.dropping){if(this.f(e))return t;this.dropping=!1}return this.xform["@@transducer/step"](t,e)},j.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},j.prototype["@@transducer/result"]=function(t){return this.i>0?y(this.xform["@@transducer/step"](t,this.part.slice(0,this.i))):this.xform["@@transducer/result"](t)},j.prototype["@@transducer/step"]=function(t,e){if(this.part[this.i]=e,this.i+=1,this.i===this.n){var n=this.part.slice(0,this.n);return this.part=new Array(this.n),this.i=0,this.xform["@@transducer/step"](t,n)}return t};var L={};function D(t,e){this.f=t,this.xform=e,this.part=[],this.last=L}function k(t,e){this.sep=t,this.xform=e,this.started=!1}function R(t,e){this.xform=e,this.n=t}function B(t,e){this.xform=e,this.n=t,this.i=-1}function M(t){this.xform=t}function C(t){return new M(t)}function P(t,e){return t.push(e),t}function N(t,e){if(a(e)&&2===e.length)t[e[0]]=e[1];else for(var n=Object.keys(e),r=n.length,i=0;i<r;i++)t[n[i]]=e[n[i]];return t}D.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},D.prototype["@@transducer/result"]=function(t){var e=this.part.length;return e>0?y(this.xform["@@transducer/step"](t,this.part.slice(0,e))):this.xform["@@transducer/result"](t)},D.prototype["@@transducer/step"]=function(t,e){var n=this.f(e);return n===this.last||this.last===L?this.part.push(e):(t=this.xform["@@transducer/step"](t,this.part),this.part=[e]),this.last=n,t},k.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},k.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},k.prototype["@@transducer/step"]=function(t,e){if(this.started){var n=this.xform["@@transducer/step"](t,this.sep);return p(n)?n:this.xform["@@transducer/step"](n,e)}return this.started=!0,this.xform["@@transducer/step"](t,e)},R.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},R.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},R.prototype["@@transducer/step"]=function(t,e){for(var n=this.n,r=t,i=0;i<n&&!p(r=this.xform["@@transducer/step"](r,e));i++);return r},B.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},B.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},B.prototype["@@transducer/step"]=function(t,e){return this.i+=1,this.i%this.n==0?this.xform["@@transducer/step"](t,e):t},M.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},M.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},M.prototype["@@transducer/step"]=function(t,e){var n=this.xform,r={"@@transducer/init":function(){return n["@@transducer/init"]()},"@@transducer/result":function(t){return t},"@@transducer/step":function(t,e){var r=n["@@transducer/step"](t,e);return p(r)?d(r):r}};return _(e,r,t)};var q={"@@transducer/init":function(){return[]},"@@transducer/result":function(t){return t}};q["@@transducer/step"]=P;var U={};function V(t,e){return a(t)?v(t,e,q,[]):l(t)?v(t,e,U,{}):t["@@transducer/step"]?(i=t["@@transducer/init"]?t["@@transducer/init"]():new t.constructor,v(t,e,t,i)):r(t,"iterator")?new H(e,t):void n("sequence",t);var i}U["@@transducer/init"]=function(){return{}},U["@@transducer/result"]=function(t){return t},U["@@transducer/step"]=N;var $={};function F(t,e){this.xform=t($),this.iter=e}function H(t,e){this.iter=i(e),this.items=[],this.stepper=new F(t,i(e))}$["@@transducer/result"]=function(t){return p(t)?d(t):t},$["@@transducer/step"]=function(t,e){return t.items.push(e),t.rest},F.prototype["@@transducer/step"]=function(t){for(var e=t.items.length;t.items.length===e;){var n=this.iter.next();if(n.done||p(n.value)){this.xform["@@transducer/result"](this);break}this.xform["@@transducer/step"](t,n.value)}},H.prototype[e.iterator]=function(){return this},H.prototype.next=function(){return this["@@transducer/step"](),this.items.length?{value:this.items.pop(),done:!1}:{done:!0}},H.prototype["@@transducer/step"]=function(){this.items.length||this.stepper["@@transducer/step"](this)},t.exports={reduce:_,transformer:function(t){var e={"@@transducer/init":function(){throw new Error("init value unavailable")},"@@transducer/result":function(t){return t}};return e["@@transducer/step"]=t,e},Reduced:h,isReduced:p,iterator:i,push:P,merge:N,transduce:v,seq:V,toArray:function(t,e){return e?v(t,e,q,[]):_(t,q,[])},toObj:function(t,e){return e?v(t,e,U,{}):_(t,U,{})},toIter:function(t,e){return e?new H(e,t):i(t)},into:function(t,e,r){return a(t)?v(r,e,q,t):l(t)?v(r,e,U,t):t["@@transducer/step"]?v(r,e,t,t):void n("into",t)},compose:m,map:w,filter:E,remove:function(t,e,n){return c(t)&&(n=e,e=t,t=null),e=g(e,n),E(t,(function(t){return!e(t)}))},cat:C,mapcat:function(t,e){return m(w(t=g(t,e)),C)},keep:function(t){return E(t,(function(t){return null!=t}))},dedupe:function t(e){return e?V(e,t()):function(t){return new A(t)}},take:function t(e,n){return f(e)&&(n=e,e=null),e?V(e,t(n)):function(t){return new T(n,t)}},takeWhile:function t(e,n,r){return c(e)&&(r=n,n=e,e=null),n=g(n,r),e?V(e,t(n)):function(t){return new S(n,t)}},takeNth:function t(e,n){return 1===arguments.length?(n=e,function(t){return new B(n,t)}):V(e,t(n))},drop:function t(e,n){return f(e)&&(n=e,e=null),e?V(e,t(n)):function(t){return new O(n,t)}},dropWhile:function t(e,n,r){return c(e)&&(r=n,n=e,e=null),n=g(n,r),e?V(e,t(n)):function(t){return new I(n,t)}},partition:function t(e,n){return f(e)&&(n=e,e=null),e?V(e,t(n)):function(t){return new j(n,t)}},partitionBy:function t(e,n,r){return c(e)&&(r=n,n=e,e=null),n=g(n,r),e?V(e,t(n)):function(t){return new D(n,t)}},interpose:function t(e,n){return 1===arguments.length?(n=e,function(t){return new k(n,t)}):V(e,t(n))},repeat:function t(e,n){return 1===arguments.length?(n=e,function(t){return new R(n,t)}):V(e,t(n))},range:function(t){for(var e=new Array(t),n=0;n<e.length;n++)e[n]=n;return e},LazyTransformer:H}},1010:(t,e,n)=>{"use strict";e.Kg=function(t,e){var n=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";!function(t){t.hot&&t.hot.accept()}(t);var r=i.get(t);if(r||(r=new Set,i.set(t,r)),r.has(n))throw new Error("ud functions can only be used once per module with a given key");r.add(n);var o=!1,s=void 0;return t.hot&&(t.hot.data&&t.hot.data.__ud__&&Object.prototype.hasOwnProperty.call(t.hot.data.__ud__,n)&&(s=t.hot.data.__ud__[n],o=!0),t.hot.dispose((function(t){t.__ud__||(t.__ud__={}),t.__ud__[n]=s}))),o||(s=e()),s}(t,(function(){if(!t.hot)return{fn:null,wrapper:e};var n={fn:null,wrapper:null},i=r(e.length).map((function(t){return"a"+t})).join(",");return n.wrapper=new Function("shared","\n 'use strict';\n return function ".concat(e.name,"__ud_wrapper(").concat(i,") {\n if (new.target) {\n return Reflect.construct(shared.fn, arguments, new.target);\n } else {\n return shared.fn.apply(this, arguments);\n }\n };\n "))(n),e.prototype?(n.wrapper.prototype=Object.create(e.prototype),n.wrapper.prototype.constructor=n.wrapper):n.wrapper.prototype=e.prototype,n}),"--defn-shared-"+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:""));return n.fn=e,t.hot&&(e.prototype&&n.wrapper.prototype&&Object.getPrototypeOf(n.wrapper.prototype)!==e.prototype&&Object.setPrototypeOf(n.wrapper.prototype,e.prototype),Object.setPrototypeOf(n.wrapper,e)),n.wrapper};var r=n(3758),i=(n(3687),new WeakMap)},1496:t=>{"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},384:t=>{t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},9539:(t,e,n)=>{var r=n(4155),i=/%[sdj%]/g;e.format=function(t){if(!v(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(u(arguments[n]));return e.join(" ")}n=1;for(var r=arguments,o=r.length,s=String(t).replace(i,(function(t){if("%%"===t)return"%";if(n>=o)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return t}})),a=r[n];n<o;a=r[++n])y(a)||!b(a)?s+=" "+a:s+=" "+u(a);return s},e.deprecate=function(t,i){if(m(n.g.process))return function(){return e.deprecate(t,i).apply(this,arguments)};if(!0===r.noDeprecation)return t;var o=!1;return function(){if(!o){if(r.throwDeprecation)throw new Error(i);r.traceDeprecation?console.trace(i):console.error(i),o=!0}return t.apply(this,arguments)}};var o,s={};function u(t,n){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),d(n)?r.showHidden=n:n&&e._extend(r,n),m(r.showHidden)&&(r.showHidden=!1),m(r.depth)&&(r.depth=2),m(r.colors)&&(r.colors=!1),m(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=a),l(r,t,r.depth)}function a(t,e){var n=u.styles[e];return n?"["+u.colors[n][0]+"m"+t+"["+u.colors[n][1]+"m":t}function c(t,e){return t}function l(t,n,r){if(t.customInspect&&n&&E(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,t);return v(i)||(i=l(t,i,r)),i}var o=function(t,e){if(m(e))return t.stylize("undefined","undefined");if(v(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return _(e)?t.stylize(""+e,"number"):d(e)?t.stylize(""+e,"boolean"):y(e)?t.stylize("null","null"):void 0}(t,n);if(o)return o;var s=Object.keys(n),u=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(s);if(t.showHidden&&(s=Object.getOwnPropertyNames(n)),x(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return f(n);if(0===s.length){if(E(n)){var a=n.name?": "+n.name:"";return t.stylize("[Function"+a+"]","special")}if(g(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(w(n))return t.stylize(Date.prototype.toString.call(n),"date");if(x(n))return f(n)}var c,b="",A=!1,S=["{","}"];return p(n)&&(A=!0,S=["[","]"]),E(n)&&(b=" [Function"+(n.name?": "+n.name:"")+"]"),g(n)&&(b=" "+RegExp.prototype.toString.call(n)),w(n)&&(b=" "+Date.prototype.toUTCString.call(n)),x(n)&&(b=" "+f(n)),0!==s.length||A&&0!=n.length?r<0?g(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),c=A?function(t,e,n,r,i){for(var o=[],s=0,u=e.length;s<u;++s)O(e,String(s))?o.push(h(t,e,n,r,String(s),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(h(t,e,n,r,i,!0))})),o}(t,n,r,u,s):s.map((function(e){return h(t,n,r,u,e,A)})),t.seen.pop(),function(t,e,n){return t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}(c,b,S)):S[0]+b+S[1]}function f(t){return"["+Error.prototype.toString.call(t)+"]"}function h(t,e,n,r,i,o){var s,u,a;if((a=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?u=a.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):a.set&&(u=t.stylize("[Setter]","special")),O(r,i)||(s="["+i+"]"),u||(t.seen.indexOf(a.value)<0?(u=y(n)?l(t,a.value,null):l(t,a.value,n-1)).indexOf("\n")>-1&&(u=o?u.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+u.split("\n").map((function(t){return" "+t})).join("\n")):u=t.stylize("[Circular]","special")),m(s)){if(o&&i.match(/^\d+$/))return u;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+u}function p(t){return Array.isArray(t)}function d(t){return"boolean"==typeof t}function y(t){return null===t}function _(t){return"number"==typeof t}function v(t){return"string"==typeof t}function m(t){return void 0===t}function g(t){return b(t)&&"[object RegExp]"===A(t)}function b(t){return"object"==typeof t&&null!==t}function w(t){return b(t)&&"[object Date]"===A(t)}function x(t){return b(t)&&("[object Error]"===A(t)||t instanceof Error)}function E(t){return"function"==typeof t}function A(t){return Object.prototype.toString.call(t)}function S(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(m(o)&&(o=r.env.NODE_DEBUG||""),t=t.toUpperCase(),!s[t])if(new RegExp("\\b"+t+"\\b","i").test(o)){var n=r.pid;s[t]=function(){var r=e.format.apply(e,arguments);console.error("%s %d: %s",t,n,r)}}else s[t]=function(){};return s[t]},e.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=p,e.isBoolean=d,e.isNull=y,e.isNullOrUndefined=function(t){return null==t},e.isNumber=_,e.isString=v,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=m,e.isRegExp=g,e.isObject=b,e.isDate=w,e.isError=x,e.isFunction=E,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=n(384);var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function O(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,n;console.log("%s - %s",(n=[S((t=new Date).getHours()),S(t.getMinutes()),S(t.getSeconds())].join(":"),[t.getDate(),T[t.getMonth()],n].join(" ")),e.format.apply(e,arguments))},e.inherits=n(1496),e._extend=function(t,e){if(!e||!b(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t}},3687:t=>{t.exports=function(t,e){1==arguments.length&&(e=t[1],t=t[0]);for(var n={},r=0;r<t.length;r+=1)n[t[r]]=e[r];return n}},3897:t=>{t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},t.exports.__esModule=!0,t.exports.default=t.exports},3405:(t,e,n)=>{var r=n(3897);t.exports=function(t){if(Array.isArray(t))return r(t)},t.exports.__esModule=!0,t.exports.default=t.exports},4836:t=>{t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},9498:t=>{t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},2281:t=>{t.exports=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.")},t.exports.__esModule=!0,t.exports.default=t.exports},861:(t,e,n)=>{var r=n(3405),i=n(9498),o=n(6116),s=n(2281);t.exports=function(t){return r(t)||i(t)||o(t)||s()},t.exports.__esModule=!0,t.exports.default=t.exports},8698:t=>{function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},6116:(t,e,n)=>{var r=n(3897);t.exports=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={id:r,loaded:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.amdD=function(){throw new Error("define cannot be used indirect")},n.amdO={},n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.hmd=t=>((t=Object.create(t)).children||(t.children=[]),Object.defineProperty(t,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+t.id)}}),t),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{if(!n.g.__InboxSDKInjected){n.g.__InboxSDKInjected=!0;const t=n(3721);let e;try{n.amdD&&n.amdO&&(e=n.amdD,n.amdD=null);const t=n(9979),r=n(8953).Z,i=n(8451).Z,o=n(2734).Z,s=n(3335).Z,u=n(2165).Z,a=n(7330).Z,c=n(6424).Z,l=n(4030).Z,f=n(7851).Z,h=n(8519).Z,p=n(6773).Z,d=n(6662).Z,y=n(74).Z,_=document.location.origin;if("https://mail.google.com"===_)l(),f();else{if("https://inbox.google.com"!==_)throw new Error("Should not happen");h(),p(),d(),y()}t.init(),r(),i(),o(),s(),u(),a(),c()}catch(e){t.error(e)}finally{e&&(n.amdD=e)}}})()})();
2
+ (()=>{var t={3758:t=>{t.exports=function(t,e){var n="number"==typeof t,r="number"==typeof e;n&&!r?(e=t,t=0):n||r||(t=0,e=0);var i=(e|=0)-(t|=0);if(i<0)throw new Error("array length must be positive");for(var o=new Array(i),s=0,a=t;s<i;s++,a++)o[s]=a;return o}},8583:(t,e,n)=>{"use strict";var r=n(7418);function i(t,e){if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0}function o(t){return n.g.Buffer&&"function"==typeof n.g.Buffer.isBuffer?n.g.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}var s=n(9539),a=Object.prototype.hasOwnProperty,u=Array.prototype.slice,c="foo"===function(){}.name;function l(t){return Object.prototype.toString.call(t)}function f(t){return!o(t)&&"function"==typeof n.g.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer)))}var h=t.exports=m,d=/\s*function\s+([^\(\s]*)\s*/;function p(t){if(s.isFunction(t)){if(c)return t.name;var e=t.toString().match(d);return e&&e[1]}}function _(t,e){return"string"==typeof t?t.length<e?t:t.slice(0,e):t}function y(t){if(c||!s.isFunction(t))return s.inspect(t);var e=p(t);return"[Function"+(e?": "+e:"")+"]"}function v(t,e,n,r,i){throw new h.AssertionError({message:n,actual:t,expected:e,operator:r,stackStartFunction:i})}function m(t,e){t||v(t,!0,e,"==",h.ok)}function g(t,e,n,r){if(t===e)return!0;if(o(t)&&o(e))return 0===i(t,e);if(s.isDate(t)&&s.isDate(e))return t.getTime()===e.getTime();if(s.isRegExp(t)&&s.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(null!==t&&"object"==typeof t||null!==e&&"object"==typeof e){if(f(t)&&f(e)&&l(t)===l(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===i(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(o(t)!==o(e))return!1;var a=(r=r||{actual:[],expected:[]}).actual.indexOf(t);return-1!==a&&a===r.expected.indexOf(e)||(r.actual.push(t),r.expected.push(e),function(t,e,n,r){if(null==t||null==e)return!1;if(s.isPrimitive(t)||s.isPrimitive(e))return t===e;if(n&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=b(t),o=b(e);if(i&&!o||!i&&o)return!1;if(i)return g(t=u.call(t),e=u.call(e),n);var a,c,l=E(t),f=E(e);if(l.length!==f.length)return!1;for(l.sort(),f.sort(),c=l.length-1;c>=0;c--)if(l[c]!==f[c])return!1;for(c=l.length-1;c>=0;c--)if(!g(t[a=l[c]],e[a],n,r))return!1;return!0}(t,e,n,r))}return n?t===e:t==e}function b(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function x(t,e){if(!t||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function w(t,e,n,r){var i;if("function"!=typeof e)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),t&&!i&&v(i,n,"Missing expected exception"+r);var o="string"==typeof r,a=!t&&i&&!n;if((!t&&s.isError(i)&&o&&x(i,n)||a)&&v(i,n,"Got unwanted exception"+r),t&&i&&n&&!x(i,n)||!t&&i)throw i}h.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return _(y(t.actual),128)+" "+t.operator+" "+_(y(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var n=new Error;if(n.stack){var r=n.stack,i=p(e),o=r.indexOf("\n"+i);if(o>=0){var s=r.indexOf("\n",o+1);r=r.substring(s+1)}this.stack=r}}},s.inherits(h.AssertionError,Error),h.fail=v,h.ok=m,h.equal=function(t,e,n){t!=e&&v(t,e,n,"==",h.equal)},h.notEqual=function(t,e,n){t==e&&v(t,e,n,"!=",h.notEqual)},h.deepEqual=function(t,e,n){g(t,e,!1)||v(t,e,n,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(t,e,n){g(t,e,!0)||v(t,e,n,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(t,e,n){g(t,e,!1)&&v(t,e,n,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function t(e,n,r){g(e,n,!0)&&v(e,n,r,"notDeepStrictEqual",t)},h.strictEqual=function(t,e,n){t!==e&&v(t,e,n,"===",h.strictEqual)},h.notStrictEqual=function(t,e,n){t===e&&v(t,e,n,"!==",h.notStrictEqual)},h.throws=function(t,e,n){w(!0,t,e,n)},h.doesNotThrow=function(t,e,n){w(!1,t,e,n)},h.ifError=function(t){if(t)throw t},h.strict=r((function t(e,n){e||v(e,!0,n,"==",t)}),h,{equal:h.strictEqual,deepEqual:h.deepStrictEqual,notEqual:h.notStrictEqual,notDeepEqual:h.notDeepStrictEqual}),h.strict.strict=h.strict;var E=Object.keys||function(t){var e=[];for(var n in t)a.call(t,n)&&e.push(n);return e}},5408:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=new Array(2*t.length-1);e[0]=t[0];for(var n=0,r=arguments.length<=1?0:arguments.length-1;n<r;n++){var o=n+1<1||arguments.length<=n+1?void 0:arguments[n+1];e[2*n+1]=o&&Object.prototype.hasOwnProperty.call(o,"__html")?o.__html:(0,i.default)(o),e[2*n+2]=t[n+1]}return e.join("")};var r,i=(r=n(1675))&&r.__esModule?r:{default:r};t.exports=e.default,t.exports.default=e.default},7709:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var r=n(7673),i=n(443);const o=/([?&])_=[^&]*/;let s=Date.now()+Math.floor(Math.random()*Math.pow(2,32));const a=64e3,u=5,c={};function l(t){if(!t||"string"!=typeof t.url)throw new Error("URL must be given");return new Promise((function(e,n){const f=t.method?t.method:"GET";let h=t.url,d=null;t.data&&(d="string"==typeof t.data?t.data:r.stringify(t.data),"GET"!==f&&"HEAD"!==f||(h+=(/\?/.test(h)?"&":"?")+d,d=null));const p=null!=t.canRetry?t.canRetry:"GET"===f||"HEAD"===f,_=h.match(/(?:(?:[a-z]+:)?\/\/)?([^/]*)\//);if(!_)throw new Error("Failed to match url");const y=_[1];if(Object.prototype.hasOwnProperty.call(c,y))return void n(new Error(`Server at ${h} has told us to stop connecting`));t.cachebust&&(h=function(t){return o.test(t)?t.replace(o,"$1_="+s++):t+(/\?/.test(t)?"&":"?")+"_="+s++}(h));const v=new(t.XMLHttpRequest||window.XMLHttpRequest);if(Object.assign(v,t.xhrFields),v.onerror=function(r){if((t.retryNum||0)<u&&(502===v.status||(0===v.status||v.status>=500)&&p))return void e(function(t){const e=(t.retryNum||0)+1,n=Math.min(1e3*Math.pow(2,e),a);return(0,i.Z)(n).then((()=>l(Object.assign({},t,{retryNum:e}))))}(t));const o=Object.assign(new Error(`Failed to load ${h}`),{event:r,xhr:v,status:v.status});490==v.status&&(c[y]=!0),n(o)},v.onload=function(t){200===v.status?e({xhr:v,text:v.responseText}):v.onerror(t)},v.open(f,h,!0),t.headers){const{headers:e}=t;Object.keys(e).forEach((t=>{const n=e[t];v.setRequestHeader(t,n)}))}v.send(d)}))}},2780:(t,e,n)=>{"use strict";function r(t){const e=document.createElement("div");return e.innerHTML=t.replace(/<[^>]*>?/g,""),e.textContent}n.d(e,{Z:()=>r})},9638:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var r=n(1675),i=n.n(r),o=n(5408),s=n.n(o),a=n(1010),u=n(2780),c=n(8153);t=n.hmd(t);const l=(0,a.Kg)(t,(function(t,e){const{value:n,options:r}=c.vB(t),o=n[0][1];for(const t of e){let e,r,a,c;if("string"==typeof t.name?(e=t.name,r=i()(e)):"string"==typeof t.nameHTML&&(r=t.nameHTML,e=(0,u.Z)(r)),null==e||null==r)throw new Error("name or nameHTML must be provided");"string"==typeof t.description?(a=t.description,c=i()(a)):"string"==typeof t.descriptionHTML&&(c=t.descriptionHTML,a=(0,u.Z)(c));const l={id:t.id,routeName:t.routeName,routeParams:t.routeParams,externalURL:t.externalURL};r+=s()` <span style="display:none" data-inboxsdk-suggestion="${JSON.stringify(l)}"></span>`,null!=t.iconHTML&&(r=`<div class="inboxsdk__custom_suggestion_iconHTML">${t.iconHTML}</div>${r}`);const f=["aso.sug",t.searchTerm||o,r,null,[],0,null,"asor inboxsdk__custom_suggestion "+t.providerId+" "+(t.iconClass||""),0];null!=c&&(f[3]=["aso.eme",a,e,c,r]),null!=t.iconHTML?(f[6]=["aso.thn","data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="],f[7]+=" inboxsdk__no_bg"):t.iconUrl?(f[6]=["aso.thn",t.iconUrl],f[7]+=" inboxsdk__no_bg"):f[7]+=" asor_i4",n[0][3].push(f)}return c.qC(n,r)}))},9175:(t,e,n)=>{"use strict";n.d(e,{Z:()=>jt});var r=n(6678),i=n.n(r),o=n(5564),s=n.n(o),a=n(3311),u=n.n(a),c=n(5325),l=n.n(c),f=n(4721),h=n.n(f),d=n(4431),p=n.n(d),_=n(6609),y=n(3721),v=n(8721),m=n.n(v),g=n(308),b=n.n(g),x=n(6073),w=n.n(x),E=n(3105),A=n.n(E),S=n(1463),O=n.n(S),T=n(8583),j=n.n(T),D=n(7187),I=n.n(D),L=n(7673);const k=6e4;function M(t,e,n){const r=n&&n.logError||function(t,e){setTimeout((function(){throw t}),1)};function i(t,e,n){const r={};return Object.keys(n).concat(["bubbles","cancelBubble","cancelable","defaultPrevented","preventDefault","stopPropagation","stopImmediatePropagation","lengthComputable","loaded","total","type","currentTarget","target","srcElement","NONE","CAPTURING_PHASE","AT_TARGET","BUBBLING_PHASE","eventPhase"]).filter((t=>t in n)).forEach((i=>{const o=n[i];r[i]=o===t?e:"function"==typeof o?o.bind(n):o})),r}function o(t,e,n){return function(r){return n.call(e,i(t,e,r))}}function s(){this._wrappers=e,this._listeners={},this._boundListeners={},this._events=new(I()),this.responseText="",this._openState=!1,t.bind&&t.bind.apply?this._realxhr=new(t.bind.apply(t,[null].concat(arguments))):this._realxhr=new t;const n=this,s=(t,e)=>{if(this["on"+t])try{o(this._realxhr,this,this["on"+t]).call(this,e)}catch(t){r(t,"XMLHttpRequest event listener error")}w()(this._boundListeners[t],(t=>{try{t(e)}catch(t){r(t,"XMLHttpRequest event listener error")}}))},a=t=>{s("readystatechange",t)};this._fakeRscEvent=function(){a(Object.freeze({bubbles:!1,cancelBubble:!1,cancelable:!1,defaultPrevented:!1,preventDefault:b(),stopPropagation:b(),stopImmediatePropagation:b(),type:"readystatechange",currentTarget:this,target:this,srcElement:this,NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3,eventPhase:0}))};const u=t=>{this.readyState=4;var e=200==this.status,n=Object.assign({},i(this._realxhr,this,t),{lengthComputable:!1,loaded:0,total:0});(!this._realxhr.responseType||"text"==this._realxhr.responseType)&&w()(this._activeWrappers,(t=>{if(t.finalResponseTextLogger)try{t.finalResponseTextLogger(this._connection,this.responseText)}catch(t){r(t)}})),a(t),s(e?"load":"error",n),s("loadend",n),w()(this._activeWrappers,(t=>{if(t.afterListeners)try{t.afterListeners(this._connection)}catch(t){r(t)}}))};this._realxhr.addEventListener("readystatechange",(t=>{if(!this._connection)return;this._realxhr.readyState>=2&&(this._connection.status=this._realxhr.status);const e=!this._realxhr.responseType||"text"==this._realxhr.responseType;if(4==this._realxhr.readyState){if(e){Object.defineProperty(this._connection,"originalResponseText",{enumerable:!0,writable:!1,configurable:!1,value:n._realxhr.responseText}),w()(this._activeWrappers,(t=>{if(t.originalResponseTextLogger)try{t.originalResponseTextLogger(this._connection,this._connection.originalResponseText)}catch(t){r(t)}}));const e=O()(u.bind(null,t));if(this._connection.async){const t=this._connection;return void(async()=>{let e=t.originalResponseText;t.modifiedResponseText=e;for(let n of this._responseTextChangers){const r=setTimeout((()=>{console.warn("responseTextChanger is taking too long",n,t)}),k);try{e=await n(t,e)}finally{clearTimeout(r)}if("string"!=typeof e)throw new Error("responseTextChanger returned non-string value "+e);if(t.modifiedResponseText=e,t!==this._connection)break}return e})().then((r=>{t===n._connection&&(this.responseText=r,e())}),(n=>{r(n),t===this._connection&&(this.responseText=this._realxhr.responseText,e())})).catch(r)}n.responseText=n._realxhr.responseText}else n.responseText="";u(t)}else{if(1==n._realxhr.readyState&&1==n.readyState)return;n._realxhr.readyState>=3&&e?n._responseTextChangers.length?n.responseText="":n.responseText=n._realxhr.responseText:n.responseText="",n.readyState=n._realxhr.readyState,a(t)}}),!1),["dispatchEvent","getAllResponseHeaders","getResponseHeader","overrideMimeType","responseType","responseXML","responseURL","status","statusText","timeout","ontimeout","onloadstart","onprogress","onabort","upload","withCredentials"].forEach((function(t){Object.defineProperty(n,t,{enumerable:!0,configurable:!1,get:function(){return"function"==typeof n._realxhr[t]?n._realxhr[t].bind(n._realxhr):n._realxhr[t]},set:function(e){"function"==typeof e&&(e=o(this._realxhr,this,e)),n._realxhr[t]=e}})})),Object.defineProperty(n,"response",{enumerable:!0,configurable:!1,get:function(){return this._realxhr.responseType&&"text"!=this._realxhr.responseType?this._realxhr.response:this.responseText}}),n.readyState=n._realxhr.readyState}return s.prototype.abort=function(){this._clientStartedSend&&!this._realStartedSend&&(0!=this.readyState&&0==this._realxhr.readyState&&this._realxhr.open(this._connection.method,this._connection.url),this._realStartedSend=!0,this._realxhr.send()),this._realxhr.abort()},s.prototype.setRequestHeader=function(t,e){var n=this;if(1!=this.readyState&&console.warn("setRequestHeader improperly called at readyState "+this.readyState),!this._openState)throw new Error("Can only set headers after open and before send");this._connection.headers[t]=e,this._connection.async&&this._requestChangers.length?this._events.once("realOpen",(function(){n._realxhr.setRequestHeader(t,e)})):this._realxhr.setRequestHeader(t,e)},s.prototype.addEventListener=function(t,e){if(this._listeners[t]||(this._listeners[t]=[],this._boundListeners[t]=[]),!h()(this._listeners[t],e)){var n=o(this._realxhr,this,e);this._listeners[t].push(e),this._boundListeners[t].push(n),h()(["readystatechange","load","error","loadend"],t)||this._realxhr.addEventListener(t,n,!1)}},s.prototype.removeEventListener=function(t,e){if(this._listeners[t]){var n=this._listeners[t].indexOf(e);if(-1!=n){this._listeners[t].splice(n,1);var r=this._boundListeners[t].splice(n,1)[0];"readystatechange"!=t&&this._realxhr.removeEventListener(t,r,!1)}}},s.prototype.open=function(e,n,i){if(!(this instanceof s))return t.prototype.open.apply(this,arguments);var o=this;function a(t,e){return o._realxhr.open(t,e,o._connection.async)}this._connection={method:e,url:n,params:(0,L.parse)(n.split("?")[1]||""),headers:{},async:arguments.length<3||!!i},this._clientStartedSend=!1,this._realStartedSend=!1,this._activeWrappers=function(t,e){return A()(t,(function(t){try{return t.isRelevantTo(e)}catch(t){r(t)}}))}(this._wrappers,this._connection),this._responseTextChangers=this._activeWrappers.map((function(t){return t.responseTextChanger&&t.responseTextChanger.bind(t)})).filter(Boolean),this.responseText="",this._openState=!0,this._connection.async?(this._requestChangers=this._activeWrappers.map((function(t){return t.requestChanger&&t.requestChanger.bind(t)})).filter(Boolean),this._requestChangers.length?1!=this.readyState&&(this.readyState=1,this._fakeRscEvent()):a(e,n)):a(e,n)},s.prototype.send=function(t){var e=this;function n(t){e._realStartedSend=!0,e._realxhr.send(t)}if(this._clientStartedSend=!0,this._openState=!1,Object.defineProperty(this._connection,"originalSendBody",{enumerable:!0,writable:!1,configurable:!1,value:t}),this._connection.responseType=this._realxhr.responseType||"text",w()(e._activeWrappers,(function(n){if(n.originalSendBodyLogger)try{n.originalSendBodyLogger(e._connection,t)}catch(t){r(t)}})),this._connection.async&&this._requestChangers.length){const e=this._connection,i={method:this._connection.method,url:this._connection.url,body:t};(async()=>{let t=i;for(let n of this._requestChangers){const r=setTimeout((()=>{console.warn("requestChanger is taking too long",n,e)}),k);try{t=await n(this._connection,Object.freeze(t))}finally{clearTimeout(r)}if(j()(m()(t,"method"),"modifiedRequest has method"),j()(m()(t,"url"),"modifiedRequest has url"),j()(m()(t,"body"),"modifiedRequest has body"),e!==this._connection||this._realStartedSend)break}return t})().catch((t=>(r(t),i))).then((t=>{e!==this._connection||this._realStartedSend||(this._realxhr.open(t.method,t.url),this._events.emit("realOpen"),n(t.body))}))}else n(t)},[s,s.prototype].forEach((function(t){Object.assign(t,{UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4})})),s}var R=n(8153);function P(t){var e,n,r;j()(t.hasAttribute("id"),"check element is main thread row");var i=[];if(2===l()(Array.from(t.classList),["zA","apv"]).length){var o=t.nextElementSibling;if(o){var s=o.nextElementSibling;s&&s.classList.contains("apw")||(s=null),e=t.querySelector("td.apt > div.apm > span[title]"),n=o.querySelector("td div.xS div.xT div.y6 > span"),r=t.querySelector("td.apy > div.yW, td.apx > div.yW")}else i.push("failed to find threadRow2")}else{e=t.querySelector("td.xW > span[title]");var a=t.querySelector("td.a4W div[role=link] div.y6");a&&a.children.length>=1&&(n=a.children[0]),r=t.querySelector("td.yX > div.yW")}return e||i.push("failed to find timeSpan"),n||i.push("failed to find subjectSpan"),r||i.push("failed to find peopleDiv"),i.length&&y.error(new Error("Errors in thread row parsing"),{errors:i}),{timeString:e&&e.getAttribute("title")||"",subject:n?n.textContent:"",peopleHtml:r?(0,R.E3)(r.innerHTML):""}}var C=n(5703);const q=n.n(C)()(!0);function N(t,e){return Object.prototype.hasOwnProperty.call(t,e)?t[e]:null}function V(t){const e=document.createEvent("MouseEvents");let n;e.initMouseEvent("click",!0,!0,document.defaultView,0,0,0,0,0,!0,!1,!1,!0,0,null);const r=window.open,i=window.onerror,o=N(window.HTMLElement.prototype,"focus"),s=N(window.HTMLElement.prototype,"blur");try{window.HTMLElement.prototype.focus=b(),window.HTMLElement.prototype.blur=b(),window.onerror=q;const r=function(t,e,r){n=t;const i={closed:!1,focus:b()};return setTimeout((function(){i.closed=!0}),5),i};if(window.open=r,window.open!==r)return y.error(new Error("Failed to override window.open")),null;t.dispatchEvent(e)}finally{o?window.HTMLElement.prototype.focus=o:delete window.HTMLElement.prototype.focus,s?window.HTMLElement.prototype.blur=s:delete window.HTMLElement.prototype.blur,window.onerror=i,window.open=r}return n}function B(t){t.forEach(U)}const $={name:"AMBIGUOUS"},F=new Map;function U(t){var e=H(t);F.has(e)?F.get(e)!==t.gmailThreadId&&F.set(e,$):F.set(e,t.gmailThreadId)}function H(t){return t.subject.trim()+":"+t.timeString.trim()+":"+t.peopleHtml.trim()}var G=n(240),z=n.n(G),K=n(5440);function W(t){return null!=t}function Z(t){const e=JSON.parse(t);if(Array.isArray(e))return function(t){const e=t&&t[1];if(!e)throw new Error("Failed to process thread response");return e.map((t=>{if("string"!=typeof t[0]||!Array.isArray(t[2])||t[1]&&t[1][0]&&t[1][0][13]&&Array.isArray(t[1][1])){const e=t[1]&&t[1][0];if(!e)return null;let n;const r=Array.isArray(t[2])&&t[2];return n=r?r.map((t=>({syncMessageID:t[0],date:+t[1][16],recipients:X(t)}))):(t[1]&&t[1][1]).map((t=>({syncMessageId:t[0],date:+t[15]}))),{subject:e[1],snippet:e[2],syncThreadID:e[0],oldGmailThreadID:new(p())(e[13]).toString(16),rawResponse:t,extraMetaData:{syncMessageData:n,snippet:""}}}return{syncThreadID:t[0],oldGmailThreadID:t[1]&&t[1][0]&&t[1][0][15]||void 0,extraMetaData:{snippet:t[1]&&t[1][0]&&t[1][0][2]||void 0,syncMessageData:(t[2]||[]).filter((t=>Boolean(t[1]))).map((t=>({syncMessageID:t[0],date:+t[1][16],recipients:X(t)})))}}})).filter(W)}(e);const n=e&&e[2];if(!n)throw new Error("Failed to process thread response");return n.map((t=>{if("string"!=typeof t[1]||!Array.isArray(t[3])||t[2]&&t[2][1]&&t[2][1][14]&&Array.isArray(t[2][2])){const e=t[2]&&t[2][1];if(!e)return null;let n;const r=Array.isArray(t[3])&&t[3];return n=r?r.map((t=>({syncMessageID:t[1],date:+t[2][17],recipients:J(t)}))):(t[2]&&t[2][2]).map((t=>({syncMessageId:t[1],date:+t[16]}))),{subject:e[2],snippet:e[3],syncThreadID:e[1],oldGmailThreadID:new(p())(e[14]).toString(16),rawResponse:t,extraMetaData:{syncMessageData:n,snippet:""}}}return{syncThreadID:t[1],oldGmailThreadID:t[2]&&t[2][1]&&t[2][1][16]||void 0,extraMetaData:{snippet:t[2]&&t[2][1]&&t[2][1][3]||void 0,syncMessageData:(t[3]||[]).filter((t=>Boolean(t[2]))).map((t=>({syncMessageID:t[1],date:+t[2][17],recipients:J(t)})))}}})).filter(W)}function J(t){if(!t[2])return;const e=t[2][1]||[],n=t[2][2]||[],r=t[2][3]||[];return e.concat(n).concat(r).map((t=>({emailAddress:t[2],name:t[3]})))}function X(t){if(!t[1])return;const e=t[1][0]||[],n=t[1][1]||[],r=t[1][2]||[];return e.concat(n).concat(r).map((t=>({emailAddress:t[1],name:t[2]})))}var Q=n(1375);var Y=n(8006);const tt=new Map;function et(t,e,n){const{target:r,detail:{threadId:i,ikValue:o,btaiHeader:s,xsrfToken:a}}=t;(async()=>{const t=Array.from(r.parentElement.children).filter((t=>!t.classList.contains("inboxsdk__custom_message_view"))).indexOf(r);if(t<0)throw new Error("Should not happen");let u=nt(i,t);if(null==u||!u.recipients){try{await function(t,e,n,r){const i=it.get(t);if(i)return i;const o=(async()=>{try{if(z()(t,"thread")){if(!n||!r)throw new Error("Need btaiHeader and xsrfToken when in new data layer");const e=await async function(t,e,n){let r=null;try{let{text:i}=await(0,K.Z)({method:"POST",url:`https://mail.google.com/sync${(0,Q.Z)()}/i/fd`,headers:{"Content-Type":"application/json","X-Framework-Xsrf-Token":n,"X-Gmail-BTAI":e,"X-Google-BTD":"1"},data:JSON.stringify({1:[{1:t,2:1}]})});r=i}catch(i){let{text:o}=await(0,K.Z)({method:"POST",url:`https://mail.google.com/sync${(0,Q.Z)()}/i/fd?rt=r&pt=ji`,headers:{"Content-Type":"application/json","X-Framework-Xsrf-Token":n,"X-Gmail-BTAI":e,"X-Google-BTD":"1"},data:JSON.stringify([[[t,1]],2])});r=o}const i=Z(r);if(i.length>0){const t=i[0];if(t.oldGmailThreadID)return t}return null}(t,n,r);e&&rt([{threadID:e.syncThreadID,messages:e.extraMetaData.syncMessageData.map((t=>({date:t.date,recipients:t.recipients})))}])}else{const n=await(0,Y.Z)(e,t);rt((0,R.bd)(n))}}catch(t){y.error(t)}finally{it.delete(t)}})();return it.set(t,o),o}(i,o,s,a)}catch(t){y.error(t)}if(u=nt(i,t),null==u)throw new Error("Failed to find message date after re-requesting thread")}r.setAttribute(e,JSON.stringify(n(u)))})().catch((t=>{r.setAttribute(e,"error"),y.error(t)}))}function nt(t,e){const n=tt.get(t);if(n){const t=n[e];if(t)return t}}function rt(t){t.forEach((t=>{tt.set(t.threadID,t.messages)}))}const it=new Map;function ot(t){let e=[],n=0;const r=/"[^"]*"/g;for(;;){const i=r.exec(t);if(e=e.concat((i?t.substring(n,i.index):t.substring(n)).split(/ +/).filter(Boolean)),!i)break;n=i.index+i[0].length,e.push(i[0])}return e}function st(){let t,e;const n=new Promise(((n,r)=>{t=n,e=r}));return{resolve:t,reject:e,promise:n}}var at=n(9638),ut=n(9734),ct=n.n(ut);const lt=["^pfg"],ft=["^r","^r_bt"],ht=["SEND","DRAFT_SAVE"];function dt(t){const e=t[1]?.[0];if(!Array.isArray(e))return null;const n=e.map(mt).filter(W);return ct()(n,(t=>ht.indexOf(t.type)))[0]||null}function pt(t){return t.startsWith("thread-")?t.includes("|")?t.split("|")[0]:t:null}function _t(t){return t.startsWith("msg-")?t:null}function yt(t){return Array.isArray(t)?t.filter((t=>!!t[1])).map((t=>({emailAddress:t[1],name:t[2]??null}))):null}function vt(t){const e=[t[1]?.[2]?.[0]?.[4]?.[0],t[1]?.[1]?.[0],t[1]?.[13]?.[0]];for(const t of e){const e=gt(t);if(e)return{parsedMsg:e,originalMsg:t}}return null}function mt(t){if(!Array.isArray(t)||!Array.isArray(t[1]))return null;const e=t[1],n=pt(e[0]);if(!n)return null;const r=vt(e);if(!r)return null;const{parsedMsg:i,originalMsg:o}=r,{messageId:s,to:a,cc:u,bcc:c,subject:l,body:f,actions:h}=i;let d=wt(h);return d?("DRAFT_SAVE"!==d||o!==e[1]?.[2]?.[0]?.[4]?.[0]&&o!==e[1]?.[1]?.[0]||(d="FIRST_DRAFT_SAVE"),{threadId:n,messageId:s,to:a,cc:u,bcc:c,subject:l,body:f,actions:h,type:d}):null}function gt(t){if(!Array.isArray(t))return null;const e=_t(t[0]);if(!e)return null;const n=t[7];return{messageId:e,to:yt(t[2]),cc:yt(t[3]),bcc:yt(t[4]),subject:n,body:t[8][1][0][1],actions:t[10],rfcID:t[13],oldMessageId:t[55]}}function bt(t,e){if(!Array.isArray(t))return null;t[8][1][0][1]=e}function xt(t){if(!Array.isArray(t)||!Array.isArray(t[0]))return null;const e=t[0],n=pt(e[0]);if(!n)return null;const r=e[2]?.[6]?.[0];return Array.isArray(r)?{threadId:n,oldThreadId:r[19],parsedMessages:Array.isArray(r[4])?r[4].map((t=>Array.isArray(t)?function(t){if(!Array.isArray(t))return null;const e=_t(t[0]);if(!e)return null;const n=t[10];return{messageId:e,to:yt(t[2]),cc:yt(t[3]),bcc:yt(t[4]),actions:n,rfcID:t[13],oldMessageId:t[55]}}(t):null)).filter(W):[]}:null}function wt(t){return l()(t,ft).length===ft.length?"DRAFT_SAVE":l()(t,lt).length===lt.length?"SEND":null}function Et(t,e){const n=t[9]&&t[9][2]&&t[9][2][0]&&t[9][2][0][2];return null==n?null:{body:n,type:e,to:At(t[3]),cc:At(t[4]),bcc:At(t[5]),draftID:t[1].replace("msg-a:",""),subject:t[8]}}function At(t){return Array.isArray(t)?t.map((t=>({emailAddress:t[2],name:t[3]||null}))):null}function St(t){const e=JSON.parse(t);try{if(Array.isArray(e)){const t=function(t){return dt(t)}(e);return t?{type:t.type,to:t.to,cc:t.cc,bcc:t.bcc,draftID:t.messageId.replace("msg-a:",""),subject:t.subject,body:t.body}:null}}catch(t){y.eventSdkPassive("connection.requestResponseParsingFailed",{requestParseError:t})}return function(t){const e=t[2]&&t[2][1];if(!e)return null;const n=e.filter((t=>{const e=t[2]&&t[2][2]&&(t[2][2][14]||t[2][2][2]);return e&&e[1]&&e[1][1]&&e[1][1].indexOf("msg-a:")>-1}));if(n.length){const t=n.find((t=>{const e=t[2]&&t[2][2]&&(t[2][2][14]||t[2][2][2]);return e[1][11]&&l()(e[1][11],lt).length===lt.length}));if(t)return Et((t[2]&&t[2][2]&&(t[2][2][14]||t[2][2][2]))[1],"SEND");{const t=n[0];return Et((t[2]&&t[2][2]&&(t[2][2][14]||t[2][2][2]))[1],"DRAFT_SAVE")}}{const t=e.map((t=>t[2]&&t[2][2]&&t[2][2][3]&&t[2][2][3][1]&&t[2][2][3][1][5]&&t[2][2][3][1][5][0])).filter(Boolean);return 0===t.length?null:Et(t[0],"FIRST_DRAFT_SAVE")}}(e)}function Ot(t,e){const n=JSON.parse(t);try{if(Array.isArray(n)){const r=function(t,e){return function(t,e){const n=dt(t);if(!n)return null;const r=n.messageId,i=t[1]?.[0];if(!Array.isArray(i))return null;for(const n of i){if(!Array.isArray(n)||!Array.isArray(n[1]))return null;const i=n[1];if(!pt(i[0]))return null;const o=vt(i);if(o?.parsedMsg.messageId===r&&"SEND"===wt(o.parsedMsg.actions))return bt(o.originalMsg,e),t}return null}(t,e)}(n,e);return r?JSON.stringify(r):t}}catch(t){y.eventSdkPassive("connection.requestResponseParsingFailed",{replaceBodyFailed:t})}return function(t,e){if(!e)return t;const n=JSON.parse(t),r=n[2]&&n[2][1];if(!r)return t;const i=r.filter((t=>{const e=t[2]&&t[2][2]&&(t[2][2][14]||t[2][2][2]);return e&&e[1]&&e[1][1]&&e[1][1].indexOf("msg-a:")>-1}));if(!i.length)return t;const o=i.find((t=>{const e=t[2]&&t[2][2]&&(t[2][2][14]||t[2][2][2]);return e[1][11]&&l()(e[1][11],lt).length===lt.length}));return o?((o[2]&&o[2][2]&&(o[2][2][14]||o[2][2][2]))[1][9][2][0][2]=e,JSON.stringify(n)):t}(t,e)}function Tt(t,e){"XMLHttpRequest event listener error"!==e?y.error(t,e):setTimeout((function(){throw t}),1)}function jt(){let t=null;const e=top.document.getElementById("js_frame");e?t=e.contentDocument.defaultView:y.eventSdkPassive("noJSFrameElementFound"),function(t,e){const n=[],r=[];{const e=t.XMLHttpRequest;t.XMLHttpRequest=M(e,n,{logError:Tt})}if(e){const t=e.XMLHttpRequest;e.XMLHttpRequest=M(t,r,{logError:Tt})}(function(){try{!function(){const t=u()(document.querySelectorAll("script:not([src])"),(t=>t.text&&t.text.slice(0,500).indexOf("var VIEW_DATA=[[")>-1));if(t){const e=t.text.indexOf("["),n=t.text.lastIndexOf("]"),r=t.text.slice(e,n+1);B(R.Ae([R.GE(r)]))}}()}catch(t){y.error(t,"Failed to process preloaded thread identifiers")}document.addEventListener("inboxSDKtellMeThisThreadIdByDatabase",(function(t){try{const e=function(t){const e=H(P(t)),n=F.get(e);if("string"==typeof n)return n}(t.target);e&&t.target.setAttribute("data-inboxsdk-threadid",e)}catch(t){y.error(t,"Error in inboxSDKtellMeThisThreadIdByDatabase")}})),document.addEventListener("inboxSDKtellMeThisThreadIdByClick",(function(t){try{const e=function(t){P(t);const e=function(t,e){let n=t.parentElement;for(;n;){if(e(n))return n;n=n.parentElement}return null}(t,(t=>"DIV"===t.nodeName&&"main"===t.getAttribute("role")));if(!e)throw new Error("Can't operate on disconnected thread row");const n=e.querySelector("td.PE")||e.querySelector("tr"),r=V(t),i=r&&function(t){var e=(0,L.parse)(t).th;if(!e){var n=t.match(/#(.*)/);n&&(t=decodeURIComponent(decodeURIComponent(n[1])),e=(0,L.parse)(t).th)}return e.replace("#","")}(r);return n&&V(n),i}(t.target);e&&t.target.setAttribute("data-inboxsdk-threadid",e)}catch(t){y.error(t,"Error in inboxSDKtellMeThisThreadIdByClick")}}))})(),document.addEventListener("inboxSDKtellMeThisMessageDate",(function(t){et(t,"data-inboxsdk-sortdate",(t=>t.date))})),document.addEventListener("inboxSDKtellMeThisMessageRecipients",(function(t){et(t,"data-inboxsdk-recipients",(t=>t.recipients?t.recipients:null))}));{let t={};_.ZP.fromEvents(document,"inboxSDKregisterComposeRequestModifier").onValue((e=>{let{detail:n}=e;const r=n.composeid||n.draftID;t[r]||(t[r]=[]),t[r].push(n.modifierId)})),_.ZP.fromEvents(document,"inboxSDKunregisterComposeRequestModifier").onValue((e=>{let{detail:n}=e;const{keyId:r,modifierId:i}=n;t[r]=t[r].filter((t=>t!==i)),0===t[r].length&&delete t[r]})),r.push({isRelevantTo:function(t){return"sm"===t.params.act},originalSendBodyLogger:function(t,e){Dt({type:"emailSending",body:e})},requestChanger:async function(e,n){let r=L.parse(n.body);const i=r.composeid,o=t[r.composeid];if(!o||0===o.length)return n;for(let t=0;t<o.length;t++){const e=o[t],n=_.ZP.fromEvents(document,"inboxSDKcomposeRequestModified").filter((t=>{let{detail:n}=t;return n.composeid===i&&n.modifierId===e})).take(1).map((t=>{let{detail:e}=t;return e.composeParams})).toPromise(Promise);Dt({type:"inboxSDKmodifyComposeRequest",composeid:i,modifierId:e,composeParams:{body:r.body,isPlainText:"1"!==r.ishtml}});let s=await n;r=Object.assign({},r,s)}return Object.assign({},n,{body:It(r)})},afterListeners:function(e){if(200===e.status&&(Dt({type:"emailSent",responseText:e.originalResponseText,originalSendBody:e.originalSendBody}),e.originalSendBody)){const n=L.parse(e.originalSendBody);delete t[n.composeid]}}}),r.push({isRelevantTo:function(t){return"sd"===t.params.act},originalSendBodyLogger:function(t,e){Dt({type:"emailDraftSaveSending",body:e})},afterListeners:function(t){200===t.status&&Dt({type:"emailDraftReceived",responseText:t.originalResponseText,originalSendBody:t.originalSendBody,connectionDetails:{method:t.method,url:t.url,params:t.params,responseType:t.responseType}})}});{const e=new WeakMap,r=new WeakMap,i=new WeakMap;n.push({isRelevantTo:t=>/sync(?:\/u\/\d+)?\/i\/s/.test(t.url),originalSendBodyLogger(t){if(t.originalSendBody){const n=St(t.originalSendBody);if(!n)return;const{draftID:o}=n;switch(n.type){case"FIRST_DRAFT_SAVE":i.set(t,o);break;case"DRAFT_SAVE":r.set(t,o);break;case"SEND":e.set(t,o),Dt({type:"emailSending",draftID:o})}}},requestChanger:async function(e,n){const r=St(n.body);if(!r||"SEND"!==r.type)return n;const{draftID:i,body:o,type:s}=r,a=t[i];if(!a||0===a.length)return n;let u=r.body;for(let t=0;t<a.length;t++){const e=a[t],n=_.ZP.fromEvents(document,"inboxSDKcomposeRequestModified").filter((t=>{let{detail:n}=t;return n.draftID===i&&n.modifierId===e})).take(1).map((t=>{let{detail:e}=t;return e.composeParams})).toPromise(Promise);Dt({type:"inboxSDKmodifyComposeRequest",draftID:i,modifierId:e,composeParams:{body:u,isPlainText:!1}}),u=(await n).body}return Object.assign({},n,{body:Ot(n.body,u)})},afterListeners(t){if(e.has(t)||r.has(t)||i.has(t)){const n=()=>{Dt({type:"emailSendFailed",draftID:o}),e.delete(t)},o=e.get(t)||r.get(t)||i.get(t);if(200!==t.status||!t.originalResponseText)return void n();try{const n=function(t){const e=JSON.parse(t);return Array.isArray(e)?function(t){return function(t){const e=t[1]?.[5];return Array.isArray(e)?e.map(xt).filter(W).flatMap((t=>{const{threadId:e,oldThreadId:n,parsedMessages:r}=t;return r.map((t=>{const{messageId:r,to:i,cc:o,bcc:s,actions:a,rfcID:u,oldMessageId:c}=t,l=wt(a);return l?{threadId:e,messageId:r,to:i,cc:o,bcc:s,actions:a,rfcID:u,oldMessageId:c,oldThreadId:n,type:l}:null}))})).filter(W):[]}(t)}(e):[]}(t.originalResponseText);for(const s of n)if(!o||s.messageId.endsWith(o)){if("FIRST_DRAFT_SAVE"===s.type||"DRAFT_SAVE"===s.type)return Dt({draftID:o,type:"emailDraftReceived",rfcID:s.rfcID,threadID:s.threadId,messageID:s.messageId,oldMessageID:s.oldMessageId,oldThreadID:s.oldThreadId}),e.delete(t),r.delete(t),void i.delete(t);if("SEND"===s.type)return Dt({draftID:o,type:"emailSent",rfcID:s.rfcID,threadID:s.threadId,messageID:s.messageId,oldMessageID:s.oldMessageId,oldThreadID:s.oldThreadId}),e.delete(t),r.delete(t),void i.delete(t)}}catch(t){y.eventSdkPassive("connection.requestResponseParsingFailed",{responseParseError:t})}const s=JSON.parse(t.originalResponseText);if(i.has(t)){const t=s[2]&&s[2][6]&&s[2][6][0]&&s[2][6][0][1];if(t){const e=t[3]&&t[3][7]&&t[3][7][1],n=e&&e[5]&&e[5][0];e&&n?Dt({draftID:o,type:"emailDraftReceived",rfcID:n[14],threadID:e[4].split("|")[0],messageID:n[1],oldMessageID:n[56],oldThreadID:e[20]}):y.error(new Error("Could not parse draft save"))}else{y.eventSdkPassive("old compose draft id handling hit");const t=s[2]&&s[2][6]&&s[2][6][1]&&s[2][6][1][1];if(t){const e=t[3]&&t[3][1]&&t[3][1][1];e&&Dt({draftID:o,type:"emailDraftReceived",rfcID:e[14],messageID:e[1],oldMessageID:e[48]?new(p())(e[48]).toString(16):e[56],syncThreadID:t[1]})}}}else{const r=s[2]?.[6];if(!r)return void n();const i=r.find((t=>t[1]?.[3]?.[7]?.[1]?.[5]?.[0]?.[14]&&t[1][3][7][1][5].find((t=>h()(t[1],o)))));if(!i){if(e.has(t)){const t=r.filter((t=>t[1]?.[3]?.[5]?.[3]));if(t.length>0){const e=t[0][1][1]?t[0][1][1].replace(/\|.*$/,""):void 0;Dt({draftID:o,type:"emailSent",threadID:e,messageID:t[0][1][3]?.[5]?.[5]?.[0]||t[0][1][3][5][3]?.[0]})}else n()}else n();return}const a=i[1]?.[3]?.[7]?.[1],u=a[5].find((t=>t[1].includes(o)));if(!u)return void n();const c=e.has(t);Array.isArray(u[11])?c&&u[11].indexOf("^r")>=0&&y.error(new Error('sendUpdate[11] unexpectedly contained "^r"')):y.error(new Error("sendUpdate[11] was not an array")),c&&void 0!==u[22]&&3!==u[22]&&y.error(new Error("sendUpdate[22] was not expected value"),{value:u[22]});const l=a[4]?a[4].replace(/\|.*$/,""):void 0;Dt({draftID:o,type:c?"emailSent":"emailDraftReceived",rfcID:u[14],messageID:u[1],oldMessageID:u[48]?new(p())(u[48]).toString(16):u[56],threadID:l,oldThreadID:null!=a[18]?new(p())(a[18]).toString(16):a[20]})}e.delete(t),r.delete(t),i.delete(t)}}})}}r.push({isRelevantTo:t=>!!t.params.search&&"tl"===t.params.view,responseTextChanger:async(t,e)=>e,originalResponseTextLogger(t){if(200===t.status){t.params.search;e=t.originalResponseText,B(R.MA(e))}var e}}),r.push({isRelevantTo:t=>"cv"===t.params.view,originalResponseTextLogger(t){200===t.status&&rt(R.bd(t.originalResponseText))}}),n.push({isRelevantTo:function(t){return/sync(?:\/u\/\d+)?\/i\/bv/.test(t.url)},originalResponseTextLogger(t){200===t.status&&rt(function(t){const e=JSON.parse(t);if(Array.isArray(e))try{return function(t){const e=t&&t[2];return e?e.map(((e,n)=>{const r=e[0];return r?{subject:r[0],snippet:r[1],syncThreadID:r[3],oldGmailThreadID:null!=r[17]?new(p())(r[17]).toString(16):r[19],rawResponse:e,extraMetaData:{snippet:t[14]&&t[14][0]&&t[14][0][n]||"",syncMessageData:r[4].map((t=>({syncMessageID:t[0],oldMessageID:t[55],date:+t[6]})))}}:null})).filter(W):[]}(e)}catch(t){return[]}const n=e&&e[3];return n?n.map(((t,n)=>{const r=t[1];return r?{subject:r[1],snippet:r[2],syncThreadID:r[4],oldGmailThreadID:null!=r[18]?new(p())(r[18]).toString(16):r[20],rawResponse:t,extraMetaData:{snippet:e[15]&&e[15][1]&&e[15][1][n]||"",syncMessageData:r[5].map((t=>({syncMessageID:t[1],oldMessageID:t[56],date:+t[7]})))}}:null})).filter(W):[]}(t.originalResponseText).map((t=>({threadID:t.syncThreadID,messages:t.extraMetaData.syncMessageData.map((t=>({date:t.date,recipients:t.recipients})))}))))}}),n.push({isRelevantTo:function(t){return/sync(?:\/u\/\d+)?\/i\/fd/.test(t.url)},originalResponseTextLogger(t){200===t.status&&rt(Z(t.originalResponseText).map((t=>({threadID:t.syncThreadID,messages:t.extraMetaData.syncMessageData.map((t=>({date:t.date,recipients:t.recipients})))}))))}});{const t=Object.create(null);let e,r,i;document.addEventListener("inboxSDKregisterSuggestionsModifier",(function(e){let{detail:n}=e;t[n.providerID]={position:Object.keys(t).length}})),document.addEventListener("inboxSDKprovideSuggestions",(function(n){let{detail:o}=n;if(o.query===e){const n=t[o.providerID];if(!n)throw new Error("provider does not exist for providerID");if(null==r)throw new Error("tried to modified a null suggestionModifications");if(r[n.position]=o.suggestions,r.filter(Boolean).length===Object.keys(t).length){if(null==i)throw new Error("tried to resolve a null currentQueryDefer");i.resolve(s()(r)),i=e=r=null}}})),n.push({isRelevantTo:e=>Object.keys(t).length>0&&!!e.url.match(/^\/cloudsearch\/request\?/)&&"gmail"==e.params.client&&"gmail"==e.params.gs_ri,originalSendBodyLogger(t,n){const o=L.parse(n);if(!o.request)return;const s=JSON.parse(o.request)[2];s&&(e=s,i&&i.resolve(),i=t._defer=st(),r=[],Dt({type:"suggestionsRequest",query:e}))},async responseTextChanger(t,e){if(t._defer&&200===t.status){const n=await t._defer.promise;if(n)return(0,at.Z)(e,n)}return e}})}{const t=[];let e;document.addEventListener("inboxSDKcreateCustomSearchTerm",(function(e){t.push(e.detail.term)})),document.addEventListener("inboxSDKsearchReplacementReady",(function(t){e.query===t.detail.query&&e.newQuery.resolve(t.detail.newQuery)})),r.push({isRelevantTo:function(n){let r;const i=n.params;return!!("POST"===n.method&&i.search&&"tl"===i.view&&n.url.match(/^\?/)&&i.q&&(r=l()(t,ot(i.q))[0]))&&(e&&e.query===i.q&&e.start!=i.start?(n._queryReplacement=e,e.start=i.start):(e&&e.newQuery.resolve(e.query),e=n._queryReplacement={term:r,query:i.q,start:i.start,newQuery:st()},Dt({type:"searchQueryForReplacement",term:r,query:i.q})),!0)},requestChanger:function(t,e){return t._queryReplacement.newQuery.promise.then((function(n){let r=i()(t.params);return r.q=n,{method:e.method,url:"?"+(0,L.stringify)(r),body:e.body}}))}}),n.push({isRelevantTo:function(t){return"POST"===t.method&&/sync(?:\/u\/\d+)?\/i\/bv/.test(t.url)},requestChanger:function(n,r){let i;const o=JSON.parse(r.body);let s,a,u,c=!1;return Array.isArray(o)?(c=!0,s=o[0],a=s[3],u=s[9]):(s=o[1],a=s[4],u=s[10]),79===s[c?0:1]&&"string"==typeof a&&(i=l()(t,ot(a))[0])?(e&&e.query===a&&e.start!=u?(n._queryReplacement=e,e.start=u):(e&&e.newQuery.resolve(e.query),e=n._queryReplacement={term:i,query:a,start:u,newQuery:st()},Dt({type:"searchQueryForReplacement",term:i,query:a})),n._queryReplacement.newQuery.promise.then((function(t){return c?o[0][3]=t:o[1][4]=t,{method:r.method,url:r.url,body:JSON.stringify(o)}}))):Promise.resolve(r)}})}{const t=[];let e;document.addEventListener("inboxSDKcustomListRegisterQuery",(e=>{t.push(e.detail.query)})),document.addEventListener("inboxSDKcustomListNewQuery",(t=>{if(e.query===t.detail.query&&e.start===t.detail.start){const{newQuery:n,newStart:r}=t.detail;e.newRequestParams.resolve({query:n,start:r})}})),document.addEventListener("inboxSDKcustomListResults",(t=>{e.query===t.detail.query&&e.newResults.resolve(t.detail.newResults)})),r.push({isRelevantTo:function(n){let r;const i=n.params;return!!("POST"===n.method&&i.search&&"tl"===i.view&&n.url.match(/^\?/)&&i.q&&!i.act&&(r=u()(t,(t=>t===i.q))))&&(e&&(e.newRequestParams.resolve({query:e.query,start:e.start}),e.newResults.resolve(null)),e=n._customListJob={query:i.q,start:+i.start,newRequestParams:st(),newResults:st()},Dt({type:"searchForReplacement",query:e.query,start:e.start}),!0)},requestChanger:function(t,e){return t._customListJob.newRequestParams.promise.then((n=>{let{query:r,start:o}=n;const s=i()(t.params);return s.q=r,s.start=o,{method:e.method,url:"?"+(0,L.stringify)(s),body:e.body}}))},responseTextChanger:function(t,e){return Dt({type:"searchResultsResponse",query:t._customListJob.query,start:t._customListJob.start,response:e}),t._customListJob.newResults.promise.then((t=>null===t?e:t))}}),n.push({isRelevantTo:function(t){return!!/sync(?:\/u\/\d+)?\/i\/bv/.test(t.url)&&(e&&(e.newRequestParams.resolve({query:e.query,start:e.start}),e.newResults.resolve(null)),!0)},requestChanger:async function(n,r){if(r.body){const i=JSON.parse(r.body),o=Array.isArray(i),s=(o?i&&i[0]&&i[0][3]:i&&i[1]&&i[1][4])||"";if(u()(t,(t=>t===s)))return e=n._customListJob={query:s,start:o?i[0][9]:i[1][10],newRequestParams:st(),newResults:st()},Dt({type:"searchForReplacement",query:e.query,start:e.start}),n._customListJob.newRequestParams.promise.then((t=>{let{query:e,start:n}=t;return o?(i[0][3]=e,i[0][9]=n):(i[1][4]=e,i[1][10]=n),{method:r.method,url:r.url,body:JSON.stringify(i)}}))}return r},responseTextChanger:async function(t,e){return t._customListJob?(Dt({type:"searchResultsResponse",query:t._customListJob.query,start:t._customListJob.start,response:e}),t._customListJob.newResults.promise.then((t=>null===t?e:t))):e}})}{const t=t=>{document.head.setAttribute("data-inboxsdk-btai-header",t),Dt({type:"btaiHeaderReceived"})};n.push({isRelevantTo:t=>/sync(?:\/u\/\d+)?\//.test(t.url)&&!document.head.hasAttribute("data-inboxsdk-btai-header"),originalSendBodyLogger(e){e.headers["X-Gmail-BTAI"]&&t(e.headers["X-Gmail-BTAI"])}});const e=t=>{document.head.setAttribute("data-inboxsdk-xsrf-token",t),Dt({type:"xsrfTokenHeaderReceived"})};n.push({isRelevantTo:t=>/sync(?:\/u\/\d+)?\//.test(t.url)&&!document.head.hasAttribute("data-inboxsdk-xsrf-token"),originalSendBodyLogger(t){t.headers["X-Framework-Xsrf-Token"]&&e(t.headers["X-Framework-Xsrf-Token"])}})}}(window,t)}function Dt(t){document.dispatchEvent(new CustomEvent("inboxSDKajaxIntercept",{bubbles:!0,cancelable:!1,detail:t}))}function It(t){const e=i()(t),n=`=${Lt(e.to,"to")}&=${Lt(e.cc,"cc")}&=${Lt(e.bcc,"bcc")}`;return delete e.to,delete e.bcc,delete e.cc,n+"&"+L.stringify(e)}function Lt(t,e){let n="";if(Array.isArray(t))for(let r=0;r<t.length;r++)n+=`&${e}=${encodeURIComponent(t[r])}`;else n+=`&${e}=${encodeURIComponent(t)}`;return n}},7851:(t,e,n)=>{"use strict";function r(){const t=new Promise((t=>{!function e(){window.gmonkey?window.gmonkey.load("2.0",t):setTimeout(e,500)}()}));document.addEventListener("inboxSDKtellMeIsConversationViewDisabled",(function(){t.then((t=>{const e=t.isConversationViewDisabled(),n=document.createEvent("CustomEvent");n.initCustomEvent("inboxSDKgmonkeyResponse",!1,!1,e),document.dispatchEvent(n)}))})),document.addEventListener("inboxSDKtellMeCurrentThreadId",(function(t){let e;if(t.detail.isPreviewedThread){const t=Array.from(document.querySelectorAll("[gh=tl] tr.aps"));if(t.length>0){const n=t.map((t=>t.querySelector("[data-thread-id]"))).filter(Boolean)[0];e=n?n.getAttribute("data-thread-id"):t[0].getAttribute("data-inboxsdk-threadid")}}else e=window.gmonkey?.v2?.getCurrentThread?.()?.getThreadId();e&&(e=e.replace("#",""),t.target.setAttribute("data-inboxsdk-currentthreadid",e))}))}n.d(e,{Z:()=>r})},3721:(t,e,n)=>{"use strict";function r(t,e){t||(t=new Error("No error given")),console.error("Error in injected script",t,e);try{JSON.stringify(e)}catch(t){e="<failed to jsonify>"}const n={};for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))try{const r=t[e];JSON.stringify(r),n[e]=r}catch(t){}Object.keys(n).length>0&&(e={errorProperties:n,details:e}),document.dispatchEvent(new CustomEvent("inboxSDKinjectedError",{bubbles:!1,cancelable:!1,detail:{message:t&&t.message,stack:t&&t.stack,details:e}}))}function i(t,e,n){try{JSON.stringify(e)}catch(t){e="<failed to jsonify>"}document.dispatchEvent(new CustomEvent("inboxSDKinjectedEventSdkPassive",{bubbles:!1,cancelable:!1,detail:{name:t,details:e,sensitive:n}}))}n.r(e),n.d(e,{error:()=>r,eventSdkPassive:()=>i})},8451:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var r=n(3311),i=n.n(r),o=n(3721);function s(t,e){var n=i()(t,(t=>t[0]===e));return!!n&&function(t){switch(""+t){case"1":case"t":case"true":return!0;default:return!1}}(n[1])}function a(){let t;(function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12e4,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:250;const r=new Error("waitFor timeout");return new Promise((function(i,o){let s=0;setTimeout((function a(){try{const u=t();u?i(u):s>=e?o(r):(s+=n,setTimeout(a,n))}catch(t){o(t)}}),1)}))})((()=>(t=function(){let t=n.g;try{if(t.GLOBALS)return t;n.g.opener&&n.g.opener.top&&(n.g.opener.top.location.href,t=n.g.opener.top)}catch(e){t=n.g}return t}(),t&&(t.GLOBALS||t.gbar)))).then((()=>{if(t){var e=t.GLOBALS?t.GLOBALS[10]:t.gbar._CONFIG[0][10][5];document.head.setAttribute("data-inboxsdk-user-email-address",e);var n=t.GLOBALS?t.GLOBALS[4].split(".")[1]:t.gbar._CONFIG[0][0][4];if(document.head.setAttribute("data-inboxsdk-user-language",n),document.head.setAttribute("data-inboxsdk-using-sync-api",t.GM_SPT_ENABLED),t.GLOBALS){document.head.setAttribute("data-inboxsdk-ik-value",t.GLOBALS[9]),document.head.setAttribute("data-inboxsdk-action-token-value",t.GM_ACTION_TOKEN);var r=i()(t.GLOBALS[17],(t=>"p"===t[0]));if(!r)return;var a=r[1],u=s(a,"bx_lab_1252"),c=s(a,"bx_spa"),l=s(a,"bx_spo"),f=u&&c?l?"vertical":"horizontal":"none";document.head.setAttribute("data-inboxsdk-user-preview-pane-mode",f)}else{const t="window.BT_EmbeddedAppData=[",e=i()(document.querySelectorAll("script:not([src])"),(e=>e.text&&e.text.slice(0,500).indexOf(t)>-1));if(e){const{text:n}=e,r=n.indexOf("window.BT_EmbeddedAppData=[");let i=n.indexOf("]\n;",r);-1===i&&(i=n.indexOf("];",r));const s=JSON.parse(n.slice(r+t.length-1,i+1)),a=s[11];"string"!=typeof a?o.error(new Error("Could not find valid ikValue")):document.head.setAttribute("data-inboxsdk-ik-value",a);const u=s[12];"string"!=typeof u?o.error(new Error("Could not find valid xsrfToken")):document.head.setAttribute("data-inboxsdk-xsrf-token",u)}else o.error(new Error("Could not read preloaded BT_EmbeddedAppData"))}}})).catch((e=>{function n(){return{hasGLOBALS:!!t.GLOBALS,hasGbar:!!t.gbar}}var r=n(),i=18e4;throw setTimeout((()=>{var t=n();o.eventSdkPassive("waitfor global data",{startStatus:r,waitTime:i,laterStatus:t})}),i),e})).catch(o.error)}},3335:(t,e,n)=>{"use strict";function r(){var t=[];document.addEventListener("inboxSDKsilencePageErrors",(function(e){t.push(window.onerror),window.onerror=function(){return!0}})),document.addEventListener("inboxSDKunsilencePageErrors",(function(e){window.onerror=t.pop()}))}n.d(e,{Z:()=>r})},2734:(t,e,n)=>{"use strict";function r(){document.addEventListener("inboxsdk_event_relay",(function(t){const e=document.createEvent("Events");if(e.initEvent(t.detail.type,t.detail.bubbles,t.detail.cancelable),Object.assign(e,t.detail.props),t.detail.dataTransfer){const{files:n,fileNames:r}=t.detail.dataTransfer;r&&r.forEach(((t,e)=>{const r=n[e];"string"!=typeof r.name&&(r.name=t)})),e.dataTransfer={dropEffect:"none",effectAllowed:"all",files:n,items:n.map(((t,e)=>{let{type:r}=t;return{kind:"file",type:r,getAsFile:()=>n[e],getAsString(){throw new Error("getAsString not supported")}}})),types:["Files"],getData:()=>"",setData(){},setDragImage(){}}}t.target.dispatchEvent(e)}))}n.d(e,{Z:()=>r})},2165:(t,e,n)=>{"use strict";n.d(e,{Z:()=>d});var r=n(1010),i=n(4721),o=n.n(i),s=n(4681),a=n.n(s),u=n(3721);function c(t){return{value:t,configurable:!0}}t=n.hmd(t);const l=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","PageUp","PageDown","Home","End","Enter"],f=["Left","Right","Up","Down"],h=(0,r.Kg)(t,(function(t){try{(function(t){if(!document.body.classList.contains("inboxsdk__custom_view_active"))return!1;const e=t.target,n=t.key||String.fromCharCode(t.which||t.keyCode);return!("Escape"!==t.key||!a()(e,".inboxsdk__custom_view"))||!!(o()(l,n)||o()(f,t.keyIdentifier)||o()("!#[]{}_+=-;:\r\n1234567890`~",n)||!t.shiftKey&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&o()(",xsyemrafz.ujkpnl",n)||t.shiftKey&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&o()("parfniut",n.toLowerCase()))&&!(a()(e,"input, textarea, button, [contenteditable]")||!a()(e,".inboxsdk__custom_view")&&a()(e,"[role=button], [role=link]"))})(t)&&Object.defineProperties(t,{altKey:c(!1),ctrlKey:c(!1),shiftKey:c(!1),metaKey:c(!1),charCode:c(92),code:c("Backslash"),key:c("\\"),keyCode:c(92),which:c(92)})}catch(t){u.error(t)}}));function d(){document.addEventListener("keydown",h,!0)}},6424:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(4681),i=n.n(r);function o(){const t=new Set;document.addEventListener("inboxSDKregisterAllowedHashLinkStartTerm",(function(e){const n=e.detail.term;t.add(n)})),document.addEventListener("click",(function(e){const n=e.target;if(!(n instanceof HTMLElement))return;const r=i()(n,'a[href^="#"]');if(!(r&&r instanceof HTMLAnchorElement))return;const o=/^#([^/]+)/.exec(r.getAttribute("href")||"");if(!o)return;const s=o[1];t.has(s)&&(e.preventDefault=()=>{})}),!0)}},7330:(t,e,n)=>{"use strict";function r(){const t=history.pushState;history.pushState=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];const i=t.apply(this,n);return document.dispatchEvent(new CustomEvent("inboxSDKpushState",{bubbles:!1,cancelable:!1,detail:{args:n}})),i}}n.d(e,{Z:()=>r})},8953:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=n(7709);function i(){document.addEventListener("inboxSDKpageAjax",(function(t){const e=t.detail.id,i={url:t.detail.url,method:t.detail.method,headers:t.detail.headers,xhrFields:t.detail.xhrFields,data:t.detail.data};n.g.fetch?(async()=>{const t=await fetch(i.url,{method:i.method||"GET",credentials:"include"});document.dispatchEvent(new CustomEvent("inboxSDKpageAjaxDone",{bubbles:!1,cancelable:!1,detail:{id:e,error:!1,text:await t.text(),responseURL:t.url}}))})().catch((t=>{document.dispatchEvent(new CustomEvent("inboxSDKpageAjaxDone",{bubbles:!1,cancelable:!1,detail:{id:e,error:!0,message:t&&t.message,stack:t&&t.stack,status:t&&t.xhr&&t.xhr.status}}))})):(0,r.Z)(i).then((t=>{let{text:n,xhr:r}=t;document.dispatchEvent(new CustomEvent("inboxSDKpageAjaxDone",{bubbles:!1,cancelable:!1,detail:{id:e,error:!1,text:n,responseURL:r.responseURL}}))}),(t=>{document.dispatchEvent(new CustomEvent("inboxSDKpageAjaxDone",{bubbles:!1,cancelable:!1,detail:{id:e,error:!0,message:t&&t.message,stack:t&&t.stack,status:t&&t.xhr&&t.xhr.status}}))}))}))}},8153:(t,e,n)=>{"use strict";n.d(e,{Ae:()=>_,E3:()=>y,GE:()=>f,MA:()=>p,bd:()=>b,qC:()=>h,vB:()=>l}),n(5564),n(928);var r=n(1095),i=n.n(r),o=n(8583),s=n.n(o),a=n(2780);function u(t,e){for(let n=e,r=t.length;n<r;n++)if('"'===t[n]||"'"===t[n])return n;return-1}function c(t,e,n){for(let r=e,i=t.length;r<i;r++)if("\\"===t[r])r++;else if(t[r]===n)return r;return-1}function l(t){const e={includeLengths:!1,suggestionMode:/^5\n/.test(t),noArrayNewLines:!/^[,\]]/m.test(t),includeExplicitNulls:!0},n=[];let r;if(e.suggestionMode){if(r=t.indexOf("'\n"),-1===r)throw new Error("Message was missing beginning header");r+=2}else{if(r=t.indexOf("\n\n"),-1===r)throw new Error("Message was missing beginning newlines");r+=2}for(;r<t.length;){let i=t.indexOf("\n",r+1);-1===i?i=t.length:"\r"===t[i-1]&&(i+=1);const o=t.slice(r,i);let s;if(/^\d+\s*$/.test(o)){e.includeLengths=!0;const n=+o;s=t.slice(i,i+n),r=i+n}else s=t.slice(r),r=t.length;n.push(f(s))}return{value:n,options:e}}function f(t){t=function(t,e){const n=[];let r,i=0,o=!1;for(;-1!==(r=c(t,i,'"'));)o?n.push(t.slice(i,r+1)):n.push(e(t.slice(i,r+1))),i=r+1,o=!o;if(o)throw new Error("string ended inside quoted section");return n.push(e(t.slice(i))),n.join("")}(t=function(t){let e=0;const n=[];for(;;){const r=u(t,e);if(r<0){n.push(t.substr(e));break}if(n.push(t.substr(e,r-e)),n.push('"'),e=r+1,'"'===t[r]){const r=c(t,e,'"');if(r<0)throw new Error("Unclosed double quote");n.push(t.slice(e,r+1)),e=r+1}else{const r=c(t,e,"'");if(r<0)throw new Error("Unclosed single quote");const i=t.slice(e,r).replace(/"/g,'\\"').replace(/\\'/g,"'");n.push(i),n.push('"'),e=r+1}}return n.join("")}(t=t.replace(/[\r\n\t]/g,"")),(t=>t.replace(/,\s*(?=,|\])/g,",null").replace(/\[\s*(?=,)/g,"[null")));try{return JSON.parse(t,((t,e)=>null==e?void 0:e))}catch(t){throw new Error("deserialization error")}}function h(t,e){return e.suggestionMode?(s()(e.includeLengths),function(t,e){let n="5\n)]}'\n";for(let r=0;r<t.length;r++){const i=d(t[r],!1,e);n+=i.length+"\r\n"+i}return n}(t,e.includeExplicitNulls)):function(t,e){const{includeLengths:n,noArrayNewLines:r,includeExplicitNulls:i}=e;let o=")]}'\n"+(r&&n?"":"\n");for(let e=0;e<t.length;e++){const s=d(t[e],r,i);o+=n?(r?"\n":"")+(s.length+(r?2:1))+"\n"+s:s}if(!n)if(r)o=o.replace(/"([0-9a-f]{8,16})"\]$/,"'$1']");else{const t=o.split(/\r|\n/),e=t.slice(0,-3),n=t.slice(-3);o=e.join("\n"),o+="\n"+n[0]+n[1].replace(/"/g,"'")}return o+(r&&n?"\n":"")}(t,e)}function d(t,e,n){let r="[";for(let i=0;i<t.length;i++){const o=t[i];let s;s=Array.isArray(o)?d(o,e,n):null==o?n?"null":"":JSON.stringify(o).replace(/</gim,"\\u003c").replace(/=/gim,"\\u003d").replace(/>/gim,"\\u003e").replace(/&/gim,"\\u0026"),i>0&&(r+=","),r+=s}return r+="]"+(e?"":"\n"),r}function p(t){return _(l(t).value)}function _(t){return 1===t.length&&2===t[0].length&&"string"==typeof t[0][1]&&(t=[t[0][0]]),(e=t,i().toArray(e,v)).map((t=>Object.freeze(Object.defineProperty({subject:(0,a.Z)(t[9]),shortDate:(0,a.Z)(t[14]),timeString:(0,a.Z)(t[15]),peopleHtml:y(t[7]),timestamp:t[16]/1e3,isUnread:t[9].indexOf("<b>")>-1,lastEmailAddress:t[28],bodyPreviewHtml:t[10],someGmailMessageIds:[t[1],t[2]],gmailThreadId:t[0]},"_originalGmailFormat",{value:t}))));var e}function y(t){return t.replace(/^[^<]*/,"").replace(/(<span[^>]*) class="[^"]*"/g,"$1")}i().compose(i().cat,i().cat,i().filter((t=>"cs"===t[0])),i().map((t=>[t[1],t[2]])));const v=i().compose(i().cat,i().filter((t=>"tb"===t[0])),i().map((t=>t[2])),i().cat),m=i().compose(i().cat,i().filter((t=>"cs"===t[0])),i().map((t=>({threadID:t[1],messageIDs:t[8]})))),g=i().compose(i().cat,i().filter((t=>"ms"===t[0])),i().map((t=>({messageID:t[1],date:t[7]}))));function b(t){let{value:e}=l(t);1===e.length&&(e=e[0]);const n=i().toArray(e,m),r=i().toArray(e,g),o={};return r.forEach((t=>{o[t.messageID]=t})),n.map((t=>{let{threadID:e,messageIDs:n}=t;return{threadID:e,messages:n.map((t=>o[t]))}}))}},1375:(t,e,n)=>{"use strict";function r(){const t=document.location.pathname.match(/\/b\/(.+?)\/u\/(\d+)/);if(t){const e=t[1];return`/u/${t[2]}/d/${e}`}{const t=document.location.pathname.match(/(\/u\/\d+)\//i);return t?t[1]:"/u/0"}}n.d(e,{Z:()=>r})},5440:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r=n(1010),i=n(6609);function o(t,e,n){let r=[];const i=[];let o=!1;function s(){i.shift()(),i.length?a():o=!1}function a(){o=!0;const t=function(){const t=Date.now()-e;return r=r.filter((e=>e>t)),r.length>=n?r[0]-t:-1}();t>0?setTimeout(s,t):s()}return function(){for(var e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];let u;const c=new Promise(((e,i)=>{u=()=>{r.push(Date.now());try{e(t.apply(this,n))}catch(t){i(t)}}}));if(!u)throw new Error("Should not happen");return i.push(u),o||a(),c}}var s=n(7709);t=n.hmd(t);const a=o(o(s.Z,1e3,7),1e4,50),u=(0,r.Kg)(t,(async function(t){if(!/^https:\/\/mail\.google\.com(?:$|\/)/.test(t.url))throw new Error("Should not happen: gmailAjax called with non-gmail url");if("https://mail.google.com"===document.location.origin)return await a(t);try{return await a({...t,canRetry:!1})}catch(e){if(e&&0===e.status){try{await i.ZP.fromPromise(("https://mail.google.com/mail/u/0/",new Promise(((t,e)=>{const n=new Image;n.addEventListener("load",(()=>t(n))),n.addEventListener("error",e),n.src="https://mail.google.com/mail/u/0/"})))).merge(i.ZP.later(6e4,void 0)).take(1).takeErrors(1).toPromise()}catch(t){}return await a(t)}if(e&&"number"==typeof e.status&&e.status>=500)return await a(t);throw e}}))},8006:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var r=n(1010),i=n(7673),o=n(5440),s=n(1375);t=n.hmd(t);const a=(0,r.Kg)(t,(async function(t,e){const n={ui:2,ik:t,view:"cv",th:e,pcd:1,mb:0,rt:"c",search:"inbox",type:e},{text:r}=await(0,o.Z)({method:"POST",url:`https://mail.google.com/mail${(0,s.Z)()}?${i.stringify(n)}`,canRetry:!0});return r}))},4431:function(t,e,n){var r;!function(i){"use strict";var o,s=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,a=Math.ceil,u=Math.floor,c="[BigNumber Error] ",l=c+"Number primitive has more than 15 significant digits: ",f=1e14,h=14,d=9007199254740991,p=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],_=1e7,y=1e9;function v(t){var e=0|t;return t>0||t===e?e:e-1}function m(t){for(var e,n,r=1,i=t.length,o=t[0]+"";r<i;){for(e=t[r++]+"",n=h-e.length;n--;e="0"+e);o+=e}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function g(t,e){var n,r,i=t.c,o=e.c,s=t.s,a=e.s,u=t.e,c=e.e;if(!s||!a)return null;if(n=i&&!i[0],r=o&&!o[0],n||r)return n?r?0:-a:s;if(s!=a)return s;if(n=s<0,r=u==c,!i||!o)return r?0:!i^n?1:-1;if(!r)return u>c^n?1:-1;for(a=(u=i.length)<(c=o.length)?u:c,s=0;s<a;s++)if(i[s]!=o[s])return i[s]>o[s]^n?1:-1;return u==c?0:u>c^n?1:-1}function b(t,e,n,r){if(t<e||t>n||t!==u(t))throw Error(c+(r||"Argument")+("number"==typeof t?t<e||t>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(t))}function x(t){var e=t.c.length-1;return v(t.e/h)==e&&t.c[e]%2!=0}function w(t,e){return(t.length>1?t.charAt(0)+"."+t.slice(1):t)+(e<0?"e":"e+")+e}function E(t,e,n){var r,i;if(e<0){for(i=n+".";++e;i+=n);t=i+t}else if(++e>(r=t.length)){for(i=n,e-=r;--e;i+=n);t+=i}else e<r&&(t=t.slice(0,e)+"."+t.slice(e));return t}o=function t(e){var n,r,i,o,A,S,O,T,j,D,I=U.prototype={constructor:U,toString:null,valueOf:null},L=new U(1),k=20,M=4,R=-7,P=21,C=-1e7,q=1e7,N=!1,V=1,B=0,$={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},F="0123456789abcdefghijklmnopqrstuvwxyz";function U(t,e){var n,o,a,c,f,p,_,y,v=this;if(!(v instanceof U))return new U(t,e);if(null==e){if(t&&!0===t._isBigNumber)return v.s=t.s,void(!t.c||t.e>q?v.c=v.e=null:t.e<C?v.c=[v.e=0]:(v.e=t.e,v.c=t.c.slice()));if((p="number"==typeof t)&&0*t==0){if(v.s=1/t<0?(t=-t,-1):1,t===~~t){for(c=0,f=t;f>=10;f/=10,c++);return void(c>q?v.c=v.e=null:(v.e=c,v.c=[t]))}y=String(t)}else{if(!s.test(y=String(t)))return i(v,y,p);v.s=45==y.charCodeAt(0)?(y=y.slice(1),-1):1}(c=y.indexOf("."))>-1&&(y=y.replace(".","")),(f=y.search(/e/i))>0?(c<0&&(c=f),c+=+y.slice(f+1),y=y.substring(0,f)):c<0&&(c=y.length)}else{if(b(e,2,F.length,"Base"),10==e)return K(v=new U(t),k+v.e+1,M);if(y=String(t),p="number"==typeof t){if(0*t!=0)return i(v,y,p,e);if(v.s=1/t<0?(y=y.slice(1),-1):1,U.DEBUG&&y.replace(/^0\.0*|\./,"").length>15)throw Error(l+t)}else v.s=45===y.charCodeAt(0)?(y=y.slice(1),-1):1;for(n=F.slice(0,e),c=f=0,_=y.length;f<_;f++)if(n.indexOf(o=y.charAt(f))<0){if("."==o){if(f>c){c=_;continue}}else if(!a&&(y==y.toUpperCase()&&(y=y.toLowerCase())||y==y.toLowerCase()&&(y=y.toUpperCase()))){a=!0,f=-1,c=0;continue}return i(v,String(t),p,e)}p=!1,(c=(y=r(y,e,10,v.s)).indexOf("."))>-1?y=y.replace(".",""):c=y.length}for(f=0;48===y.charCodeAt(f);f++);for(_=y.length;48===y.charCodeAt(--_););if(y=y.slice(f,++_)){if(_-=f,p&&U.DEBUG&&_>15&&(t>d||t!==u(t)))throw Error(l+v.s*t);if((c=c-f-1)>q)v.c=v.e=null;else if(c<C)v.c=[v.e=0];else{if(v.e=c,v.c=[],f=(c+1)%h,c<0&&(f+=h),f<_){for(f&&v.c.push(+y.slice(0,f)),_-=h;f<_;)v.c.push(+y.slice(f,f+=h));f=h-(y=y.slice(f)).length}else f-=_;for(;f--;y+="0");v.c.push(+y)}}else v.c=[v.e=0]}function H(t,e,n,r){var i,o,s,a,u;if(null==n?n=M:b(n,0,8),!t.c)return t.toString();if(i=t.c[0],s=t.e,null==e)u=m(t.c),u=1==r||2==r&&(s<=R||s>=P)?w(u,s):E(u,s,"0");else if(o=(t=K(new U(t),e,n)).e,a=(u=m(t.c)).length,1==r||2==r&&(e<=o||o<=R)){for(;a<e;u+="0",a++);u=w(u,o)}else if(e-=s,u=E(u,o,"0"),o+1>a){if(--e>0)for(u+=".";e--;u+="0");}else if((e+=o-a)>0)for(o+1==a&&(u+=".");e--;u+="0");return t.s<0&&i?"-"+u:u}function G(t,e){for(var n,r=1,i=new U(t[0]);r<t.length;r++){if(!(n=new U(t[r])).s){i=n;break}e.call(i,n)&&(i=n)}return i}function z(t,e,n){for(var r=1,i=e.length;!e[--i];e.pop());for(i=e[0];i>=10;i/=10,r++);return(n=r+n*h-1)>q?t.c=t.e=null:n<C?t.c=[t.e=0]:(t.e=n,t.c=e),t}function K(t,e,n,r){var i,o,s,c,l,d,_,y=t.c,v=p;if(y){t:{for(i=1,c=y[0];c>=10;c/=10,i++);if((o=e-i)<0)o+=h,s=e,_=(l=y[d=0])/v[i-s-1]%10|0;else if((d=a((o+1)/h))>=y.length){if(!r)break t;for(;y.length<=d;y.push(0));l=_=0,i=1,s=(o%=h)-h+1}else{for(l=c=y[d],i=1;c>=10;c/=10,i++);_=(s=(o%=h)-h+i)<0?0:l/v[i-s-1]%10|0}if(r=r||e<0||null!=y[d+1]||(s<0?l:l%v[i-s-1]),r=n<4?(_||r)&&(0==n||n==(t.s<0?3:2)):_>5||5==_&&(4==n||r||6==n&&(o>0?s>0?l/v[i-s]:0:y[d-1])%10&1||n==(t.s<0?8:7)),e<1||!y[0])return y.length=0,r?(e-=t.e+1,y[0]=v[(h-e%h)%h],t.e=-e||0):y[0]=t.e=0,t;if(0==o?(y.length=d,c=1,d--):(y.length=d+1,c=v[h-o],y[d]=s>0?u(l/v[i-s]%v[s])*c:0),r)for(;;){if(0==d){for(o=1,s=y[0];s>=10;s/=10,o++);for(s=y[0]+=c,c=1;s>=10;s/=10,c++);o!=c&&(t.e++,y[0]==f&&(y[0]=1));break}if(y[d]+=c,y[d]!=f)break;y[d--]=0,c=1}for(o=y.length;0===y[--o];y.pop());}t.e>q?t.c=t.e=null:t.e<C&&(t.c=[t.e=0])}return t}function W(t){var e,n=t.e;return null===n?t.toString():(e=m(t.c),e=n<=R||n>=P?w(e,n):E(e,n,"0"),t.s<0?"-"+e:e)}return U.clone=t,U.ROUND_UP=0,U.ROUND_DOWN=1,U.ROUND_CEIL=2,U.ROUND_FLOOR=3,U.ROUND_HALF_UP=4,U.ROUND_HALF_DOWN=5,U.ROUND_HALF_EVEN=6,U.ROUND_HALF_CEIL=7,U.ROUND_HALF_FLOOR=8,U.EUCLID=9,U.config=U.set=function(t){var e,n;if(null!=t){if("object"!=typeof t)throw Error(c+"Object expected: "+t);if(t.hasOwnProperty(e="DECIMAL_PLACES")&&(b(n=t[e],0,y,e),k=n),t.hasOwnProperty(e="ROUNDING_MODE")&&(b(n=t[e],0,8,e),M=n),t.hasOwnProperty(e="EXPONENTIAL_AT")&&((n=t[e])&&n.pop?(b(n[0],-y,0,e),b(n[1],0,y,e),R=n[0],P=n[1]):(b(n,-y,y,e),R=-(P=n<0?-n:n))),t.hasOwnProperty(e="RANGE"))if((n=t[e])&&n.pop)b(n[0],-y,-1,e),b(n[1],1,y,e),C=n[0],q=n[1];else{if(b(n,-y,y,e),!n)throw Error(c+e+" cannot be zero: "+n);C=-(q=n<0?-n:n)}if(t.hasOwnProperty(e="CRYPTO")){if((n=t[e])!==!!n)throw Error(c+e+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw N=!n,Error(c+"crypto unavailable");N=n}else N=n}if(t.hasOwnProperty(e="MODULO_MODE")&&(b(n=t[e],0,9,e),V=n),t.hasOwnProperty(e="POW_PRECISION")&&(b(n=t[e],0,y,e),B=n),t.hasOwnProperty(e="FORMAT")){if("object"!=typeof(n=t[e]))throw Error(c+e+" not an object: "+n);$=n}if(t.hasOwnProperty(e="ALPHABET")){if("string"!=typeof(n=t[e])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(c+e+" invalid: "+n);F=n}}return{DECIMAL_PLACES:k,ROUNDING_MODE:M,EXPONENTIAL_AT:[R,P],RANGE:[C,q],CRYPTO:N,MODULO_MODE:V,POW_PRECISION:B,FORMAT:$,ALPHABET:F}},U.isBigNumber=function(t){if(!t||!0!==t._isBigNumber)return!1;if(!U.DEBUG)return!0;var e,n,r=t.c,i=t.e,o=t.s;t:if("[object Array]"=={}.toString.call(r)){if((1===o||-1===o)&&i>=-y&&i<=y&&i===u(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break t}if((e=(i+1)%h)<1&&(e+=h),String(r[0]).length==e){for(e=0;e<r.length;e++)if((n=r[e])<0||n>=f||n!==u(n))break t;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(c+"Invalid BigNumber: "+t)},U.maximum=U.max=function(){return G(arguments,I.lt)},U.minimum=U.min=function(){return G(arguments,I.gt)},U.random=(o=9007199254740992,A=Math.random()*o&2097151?function(){return u(Math.random()*o)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(t){var e,n,r,i,o,s=0,l=[],f=new U(L);if(null==t?t=k:b(t,0,y),i=a(t/h),N)if(crypto.getRandomValues){for(e=crypto.getRandomValues(new Uint32Array(i*=2));s<i;)(o=131072*e[s]+(e[s+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),e[s]=n[0],e[s+1]=n[1]):(l.push(o%1e14),s+=2);s=i/2}else{if(!crypto.randomBytes)throw N=!1,Error(c+"crypto unavailable");for(e=crypto.randomBytes(i*=7);s<i;)(o=281474976710656*(31&e[s])+1099511627776*e[s+1]+4294967296*e[s+2]+16777216*e[s+3]+(e[s+4]<<16)+(e[s+5]<<8)+e[s+6])>=9e15?crypto.randomBytes(7).copy(e,s):(l.push(o%1e14),s+=7);s=i/7}if(!N)for(;s<i;)(o=A())<9e15&&(l[s++]=o%1e14);for(i=l[--s],t%=h,i&&t&&(o=p[h-t],l[s]=u(i/o)*o);0===l[s];l.pop(),s--);if(s<0)l=[r=0];else{for(r=-1;0===l[0];l.splice(0,1),r-=h);for(s=1,o=l[0];o>=10;o/=10,s++);s<h&&(r-=h-s)}return f.e=r,f.c=l,f}),U.sum=function(){for(var t=1,e=arguments,n=new U(e[0]);t<e.length;)n=n.plus(e[t++]);return n},r=function(){var t="0123456789";function e(t,e,n,r){for(var i,o,s=[0],a=0,u=t.length;a<u;){for(o=s.length;o--;s[o]*=e);for(s[0]+=r.indexOf(t.charAt(a++)),i=0;i<s.length;i++)s[i]>n-1&&(null==s[i+1]&&(s[i+1]=0),s[i+1]+=s[i]/n|0,s[i]%=n)}return s.reverse()}return function(r,i,o,s,a){var u,c,l,f,h,d,p,_,y=r.indexOf("."),v=k,g=M;for(y>=0&&(f=B,B=0,r=r.replace(".",""),d=(_=new U(i)).pow(r.length-y),B=f,_.c=e(E(m(d.c),d.e,"0"),10,o,t),_.e=_.c.length),l=f=(p=e(r,i,o,a?(u=F,t):(u=t,F))).length;0==p[--f];p.pop());if(!p[0])return u.charAt(0);if(y<0?--l:(d.c=p,d.e=l,d.s=s,p=(d=n(d,_,v,g,o)).c,h=d.r,l=d.e),y=p[c=l+v+1],f=o/2,h=h||c<0||null!=p[c+1],h=g<4?(null!=y||h)&&(0==g||g==(d.s<0?3:2)):y>f||y==f&&(4==g||h||6==g&&1&p[c-1]||g==(d.s<0?8:7)),c<1||!p[0])r=h?E(u.charAt(1),-v,u.charAt(0)):u.charAt(0);else{if(p.length=c,h)for(--o;++p[--c]>o;)p[c]=0,c||(++l,p=[1].concat(p));for(f=p.length;!p[--f];);for(y=0,r="";y<=f;r+=u.charAt(p[y++]));r=E(r,l,u.charAt(0))}return r}}(),n=function(){function t(t,e,n){var r,i,o,s,a=0,u=t.length,c=e%_,l=e/_|0;for(t=t.slice();u--;)a=((i=c*(o=t[u]%_)+(r=l*o+(s=t[u]/_|0)*c)%_*_+a)/n|0)+(r/_|0)+l*s,t[u]=i%n;return a&&(t=[a].concat(t)),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function n(t,e,n,r){for(var i=0;n--;)t[n]-=i,i=t[n]<e[n]?1:0,t[n]=i*r+t[n]-e[n];for(;!t[0]&&t.length>1;t.splice(0,1));}return function(r,i,o,s,a){var c,l,d,p,_,y,m,g,b,x,w,E,A,S,O,T,j,D=r.s==i.s?1:-1,I=r.c,L=i.c;if(!(I&&I[0]&&L&&L[0]))return new U(r.s&&i.s&&(I?!L||I[0]!=L[0]:L)?I&&0==I[0]||!L?0*D:D/0:NaN);for(b=(g=new U(D)).c=[],D=o+(l=r.e-i.e)+1,a||(a=f,l=v(r.e/h)-v(i.e/h),D=D/h|0),d=0;L[d]==(I[d]||0);d++);if(L[d]>(I[d]||0)&&l--,D<0)b.push(1),p=!0;else{for(S=I.length,T=L.length,d=0,D+=2,(_=u(a/(L[0]+1)))>1&&(L=t(L,_,a),I=t(I,_,a),T=L.length,S=I.length),A=T,w=(x=I.slice(0,T)).length;w<T;x[w++]=0);j=L.slice(),j=[0].concat(j),O=L[0],L[1]>=a/2&&O++;do{if(_=0,(c=e(L,x,T,w))<0){if(E=x[0],T!=w&&(E=E*a+(x[1]||0)),(_=u(E/O))>1)for(_>=a&&(_=a-1),m=(y=t(L,_,a)).length,w=x.length;1==e(y,x,m,w);)_--,n(y,T<m?j:L,m,a),m=y.length,c=1;else 0==_&&(c=_=1),m=(y=L.slice()).length;if(m<w&&(y=[0].concat(y)),n(x,y,w,a),w=x.length,-1==c)for(;e(L,x,T,w)<1;)_++,n(x,T<w?j:L,w,a),w=x.length}else 0===c&&(_++,x=[0]);b[d++]=_,x[0]?x[w++]=I[A]||0:(x=[I[A]],w=1)}while((A++<S||null!=x[0])&&D--);p=null!=x[0],b[0]||b.splice(0,1)}if(a==f){for(d=1,D=b[0];D>=10;D/=10,d++);K(g,o+(g.e=d+l*h-1)+1,s,p)}else g.e=l,g.r=+p;return g}}(),S=/^(-?)0([xbo])(?=\w[\w.]*$)/i,O=/^([^.]+)\.$/,T=/^\.([^.]+)$/,j=/^-?(Infinity|NaN)$/,D=/^\s*\+(?=[\w.])|^\s+|\s+$/g,i=function(t,e,n,r){var i,o=n?e:e.replace(D,"");if(j.test(o))t.s=isNaN(o)?null:o<0?-1:1;else{if(!n&&(o=o.replace(S,(function(t,e,n){return i="x"==(n=n.toLowerCase())?16:"b"==n?2:8,r&&r!=i?t:e})),r&&(i=r,o=o.replace(O,"$1").replace(T,"0.$1")),e!=o))return new U(o,i);if(U.DEBUG)throw Error(c+"Not a"+(r?" base "+r:"")+" number: "+e);t.s=null}t.c=t.e=null},I.absoluteValue=I.abs=function(){var t=new U(this);return t.s<0&&(t.s=1),t},I.comparedTo=function(t,e){return g(this,new U(t,e))},I.decimalPlaces=I.dp=function(t,e){var n,r,i,o=this;if(null!=t)return b(t,0,y),null==e?e=M:b(e,0,8),K(new U(o),t+o.e+1,e);if(!(n=o.c))return null;if(r=((i=n.length-1)-v(this.e/h))*h,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},I.dividedBy=I.div=function(t,e){return n(this,new U(t,e),k,M)},I.dividedToIntegerBy=I.idiv=function(t,e){return n(this,new U(t,e),0,1)},I.exponentiatedBy=I.pow=function(t,e){var n,r,i,o,s,l,f,d,p=this;if((t=new U(t)).c&&!t.isInteger())throw Error(c+"Exponent not an integer: "+W(t));if(null!=e&&(e=new U(e)),s=t.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!t.c||!t.c[0])return d=new U(Math.pow(+W(p),s?2-x(t):+W(t))),e?d.mod(e):d;if(l=t.s<0,e){if(e.c?!e.c[0]:!e.s)return new U(NaN);(r=!l&&p.isInteger()&&e.isInteger())&&(p=p.mod(e))}else{if(t.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||s&&p.c[1]>=24e7:p.c[0]<8e13||s&&p.c[0]<=9999975e7)))return o=p.s<0&&x(t)?-0:0,p.e>-1&&(o=1/o),new U(l?1/o:o);B&&(o=a(B/h+2))}for(s?(n=new U(.5),l&&(t.s=1),f=x(t)):f=(i=Math.abs(+W(t)))%2,d=new U(L);;){if(f){if(!(d=d.times(p)).c)break;o?d.c.length>o&&(d.c.length=o):r&&(d=d.mod(e))}if(i){if(0===(i=u(i/2)))break;f=i%2}else if(K(t=t.times(n),t.e+1,1),t.e>14)f=x(t);else{if(0==(i=+W(t)))break;f=i%2}p=p.times(p),o?p.c&&p.c.length>o&&(p.c.length=o):r&&(p=p.mod(e))}return r?d:(l&&(d=L.div(d)),e?d.mod(e):o?K(d,B,M,void 0):d)},I.integerValue=function(t){var e=new U(this);return null==t?t=M:b(t,0,8),K(e,e.e+1,t)},I.isEqualTo=I.eq=function(t,e){return 0===g(this,new U(t,e))},I.isFinite=function(){return!!this.c},I.isGreaterThan=I.gt=function(t,e){return g(this,new U(t,e))>0},I.isGreaterThanOrEqualTo=I.gte=function(t,e){return 1===(e=g(this,new U(t,e)))||0===e},I.isInteger=function(){return!!this.c&&v(this.e/h)>this.c.length-2},I.isLessThan=I.lt=function(t,e){return g(this,new U(t,e))<0},I.isLessThanOrEqualTo=I.lte=function(t,e){return-1===(e=g(this,new U(t,e)))||0===e},I.isNaN=function(){return!this.s},I.isNegative=function(){return this.s<0},I.isPositive=function(){return this.s>0},I.isZero=function(){return!!this.c&&0==this.c[0]},I.minus=function(t,e){var n,r,i,o,s=this,a=s.s;if(e=(t=new U(t,e)).s,!a||!e)return new U(NaN);if(a!=e)return t.s=-e,s.plus(t);var u=s.e/h,c=t.e/h,l=s.c,d=t.c;if(!u||!c){if(!l||!d)return l?(t.s=-e,t):new U(d?s:NaN);if(!l[0]||!d[0])return d[0]?(t.s=-e,t):new U(l[0]?s:3==M?-0:0)}if(u=v(u),c=v(c),l=l.slice(),a=u-c){for((o=a<0)?(a=-a,i=l):(c=u,i=d),i.reverse(),e=a;e--;i.push(0));i.reverse()}else for(r=(o=(a=l.length)<(e=d.length))?a:e,a=e=0;e<r;e++)if(l[e]!=d[e]){o=l[e]<d[e];break}if(o&&(i=l,l=d,d=i,t.s=-t.s),(e=(r=d.length)-(n=l.length))>0)for(;e--;l[n++]=0);for(e=f-1;r>a;){if(l[--r]<d[r]){for(n=r;n&&!l[--n];l[n]=e);--l[n],l[r]+=f}l[r]-=d[r]}for(;0==l[0];l.splice(0,1),--c);return l[0]?z(t,l,c):(t.s=3==M?-1:1,t.c=[t.e=0],t)},I.modulo=I.mod=function(t,e){var r,i,o=this;return t=new U(t,e),!o.c||!t.s||t.c&&!t.c[0]?new U(NaN):!t.c||o.c&&!o.c[0]?new U(o):(9==V?(i=t.s,t.s=1,r=n(o,t,0,3),t.s=i,r.s*=i):r=n(o,t,0,V),(t=o.minus(r.times(t))).c[0]||1!=V||(t.s=o.s),t)},I.multipliedBy=I.times=function(t,e){var n,r,i,o,s,a,u,c,l,d,p,y,m,g,b,x=this,w=x.c,E=(t=new U(t,e)).c;if(!(w&&E&&w[0]&&E[0]))return!x.s||!t.s||w&&!w[0]&&!E||E&&!E[0]&&!w?t.c=t.e=t.s=null:(t.s*=x.s,w&&E?(t.c=[0],t.e=0):t.c=t.e=null),t;for(r=v(x.e/h)+v(t.e/h),t.s*=x.s,(u=w.length)<(d=E.length)&&(m=w,w=E,E=m,i=u,u=d,d=i),i=u+d,m=[];i--;m.push(0));for(g=f,b=_,i=d;--i>=0;){for(n=0,p=E[i]%b,y=E[i]/b|0,o=i+(s=u);o>i;)n=((c=p*(c=w[--s]%b)+(a=y*c+(l=w[s]/b|0)*p)%b*b+m[o]+n)/g|0)+(a/b|0)+y*l,m[o--]=c%g;m[o]=n}return n?++r:m.splice(0,1),z(t,m,r)},I.negated=function(){var t=new U(this);return t.s=-t.s||null,t},I.plus=function(t,e){var n,r=this,i=r.s;if(e=(t=new U(t,e)).s,!i||!e)return new U(NaN);if(i!=e)return t.s=-e,r.minus(t);var o=r.e/h,s=t.e/h,a=r.c,u=t.c;if(!o||!s){if(!a||!u)return new U(i/0);if(!a[0]||!u[0])return u[0]?t:new U(a[0]?r:0*i)}if(o=v(o),s=v(s),a=a.slice(),i=o-s){for(i>0?(s=o,n=u):(i=-i,n=a),n.reverse();i--;n.push(0));n.reverse()}for((i=a.length)-(e=u.length)<0&&(n=u,u=a,a=n,e=i),i=0;e;)i=(a[--e]=a[e]+u[e]+i)/f|0,a[e]=f===a[e]?0:a[e]%f;return i&&(a=[i].concat(a),++s),z(t,a,s)},I.precision=I.sd=function(t,e){var n,r,i,o=this;if(null!=t&&t!==!!t)return b(t,1,y),null==e?e=M:b(e,0,8),K(new U(o),t,e);if(!(n=o.c))return null;if(r=(i=n.length-1)*h+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return t&&o.e+1>r&&(r=o.e+1),r},I.shiftedBy=function(t){return b(t,-9007199254740991,d),this.times("1e"+t)},I.squareRoot=I.sqrt=function(){var t,e,r,i,o,s=this,a=s.c,u=s.s,c=s.e,l=k+4,f=new U("0.5");if(1!==u||!a||!a[0])return new U(!u||u<0&&(!a||a[0])?NaN:a?s:1/0);if(0==(u=Math.sqrt(+W(s)))||u==1/0?(((e=m(a)).length+c)%2==0&&(e+="0"),u=Math.sqrt(+e),c=v((c+1)/2)-(c<0||c%2),r=new U(e=u==1/0?"5e"+c:(e=u.toExponential()).slice(0,e.indexOf("e")+1)+c)):r=new U(u+""),r.c[0])for((u=(c=r.e)+l)<3&&(u=0);;)if(o=r,r=f.times(o.plus(n(s,o,l,1))),m(o.c).slice(0,u)===(e=m(r.c)).slice(0,u)){if(r.e<c&&--u,"9999"!=(e=e.slice(u-3,u+1))&&(i||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(K(r,r.e+k+2,1),t=!r.times(r).eq(s));break}if(!i&&(K(o,o.e+k+2,0),o.times(o).eq(s))){r=o;break}l+=4,u+=4,i=1}return K(r,r.e+k+1,M,t)},I.toExponential=function(t,e){return null!=t&&(b(t,0,y),t++),H(this,t,e,1)},I.toFixed=function(t,e){return null!=t&&(b(t,0,y),t=t+this.e+1),H(this,t,e)},I.toFormat=function(t,e,n){var r,i=this;if(null==n)null!=t&&e&&"object"==typeof e?(n=e,e=null):t&&"object"==typeof t?(n=t,t=e=null):n=$;else if("object"!=typeof n)throw Error(c+"Argument not an object: "+n);if(r=i.toFixed(t,e),i.c){var o,s=r.split("."),a=+n.groupSize,u=+n.secondaryGroupSize,l=n.groupSeparator||"",f=s[0],h=s[1],d=i.s<0,p=d?f.slice(1):f,_=p.length;if(u&&(o=a,a=u,u=o,_-=o),a>0&&_>0){for(o=_%a||a,f=p.substr(0,o);o<_;o+=a)f+=l+p.substr(o,a);u>0&&(f+=l+p.slice(o)),d&&(f="-"+f)}r=h?f+(n.decimalSeparator||"")+((u=+n.fractionGroupSize)?h.replace(new RegExp("\\d{"+u+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):h):f}return(n.prefix||"")+r+(n.suffix||"")},I.toFraction=function(t){var e,r,i,o,s,a,u,l,f,d,_,y,v=this,g=v.c;if(null!=t&&(!(u=new U(t)).isInteger()&&(u.c||1!==u.s)||u.lt(L)))throw Error(c+"Argument "+(u.isInteger()?"out of range: ":"not an integer: ")+W(u));if(!g)return new U(v);for(e=new U(L),f=r=new U(L),i=l=new U(L),y=m(g),s=e.e=y.length-v.e-1,e.c[0]=p[(a=s%h)<0?h+a:a],t=!t||u.comparedTo(e)>0?s>0?e:f:u,a=q,q=1/0,u=new U(y),l.c[0]=0;d=n(u,e,0,1),1!=(o=r.plus(d.times(i))).comparedTo(t);)r=i,i=o,f=l.plus(d.times(o=f)),l=o,e=u.minus(d.times(o=e)),u=o;return o=n(t.minus(r),i,0,1),l=l.plus(o.times(f)),r=r.plus(o.times(i)),l.s=f.s=v.s,_=n(f,i,s*=2,M).minus(v).abs().comparedTo(n(l,r,s,M).minus(v).abs())<1?[f,i]:[l,r],q=a,_},I.toNumber=function(){return+W(this)},I.toPrecision=function(t,e){return null!=t&&b(t,1,y),H(this,t,e,2)},I.toString=function(t){var e,n=this,i=n.s,o=n.e;return null===o?i?(e="Infinity",i<0&&(e="-"+e)):e="NaN":(null==t?e=o<=R||o>=P?w(m(n.c),o):E(m(n.c),o,"0"):10===t?e=E(m((n=K(new U(n),k+o+1,M)).c),n.e,"0"):(b(t,2,F.length,"Base"),e=r(E(m(n.c),o,"0"),10,t,i,!0)),i<0&&n.c[0]&&(e="-"+e)),e},I.valueOf=I.toJSON=function(){return W(this)},I._isBigNumber=!0,null!=e&&U.set(e),U}(),o.default=o.BigNumber=o,void 0===(r=function(){return o}.call(e,n,e,t))||(t.exports=r)}()},4681:(t,e,n)=>{"use strict";e.__esModule=!0,e.default=function(t,e){if(s)return s.call(t,e);var r=t;do{if((0,i.default)(r,e))return r;r=r.parentNode}while(r&&r!==n.g.document);return null};var r,i=(r=n(5936))&&r.__esModule?r:{default:r},o=n.g.Element&&n.g.Element.prototype,s=o&&o.closest;t.exports=e.default,t.exports.default=e.default},7187:t=>{"use strict";var e,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};e=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var i=Number.isNaN||function(t){return t!=t};function o(){o.init.call(this)}t.exports=o,t.exports.once=function(t,e){return new Promise((function(n,r){function i(n){t.removeListener(e,o),r(n)}function o(){"function"==typeof t.removeListener&&t.removeListener("error",i),n([].slice.call(arguments))}_(t,e,o,{once:!0}),"error"!==e&&function(t,e,n){"function"==typeof t.on&&_(t,"error",e,{once:!0})}(t,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function u(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function c(t,e,n,r){var i,o,s,c;if(a(n),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),s=o[e]),void 0===s)s=o[e]=n,++t._eventsCount;else if("function"==typeof s?s=o[e]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=u(t))>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=s.length,c=l,console&&console.warn&&console.warn(c)}return t}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function h(t,e,n){var r=t._events;if(void 0===r)return[];var i=r[e];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(i):p(i,i.length)}function d(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function p(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}function _(t,e,n,r){if("function"==typeof t.on)r.once?t.once(e,n):t.on(e,n);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,(function i(o){r.once&&t.removeEventListener(e,i),n(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");s=t}}),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(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var i="error"===t,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=o[t];if(void 0===u)return!1;if("function"==typeof u)r(u,this,e);else{var c=u.length,l=p(u,c);for(n=0;n<c;++n)r(l[n],this,e)}return!0},o.prototype.addListener=function(t,e){return c(this,t,e,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(t,e){return c(this,t,e,!0)},o.prototype.once=function(t,e){return a(e),this.on(t,f(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){return a(e),this.prependListener(t,f(this,t,e)),this},o.prototype.removeListener=function(t,e){var n,r,i,o,s;if(a(e),void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===e||n[o].listener===e){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,i),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,s||e)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(t){var e,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[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),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(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},o.prototype.listeners=function(t){return h(this,t,!0)},o.prototype.rawListeners=function(t){return h(this,t,!1)},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):d.call(t,e)},o.prototype.listenerCount=d,o.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},2750:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.moduleId=void 0,e.moduleId="1f24 e53a"},9979:(t,e,n)=>{"use strict";var r=n(4836);Object.defineProperty(e,"__esModule",{value:!0}),e.init=function(){var t=window.XMLHttpRequest;window.addEventListener("message",(function e(n){if(n.data&&"ext-corb-workaround_port"===n.data.type&&n.data.moduleId===s.moduleId&&!n.__ext_claimed){n.__ext_claimed=!0,window.removeEventListener("message",e);var r=n.data.port,a={};r.addEventListener("message",(function(e){var n=e.data.id;switch(e.data.type){case"NEW_XHR":var s=a[n]=new t;s.addEventListener("readystatechange",(function(){if(4===s.readyState){var t;delete a[n];try{t=s.responseText}catch(t){}r.postMessage({type:"COMPLETE",id:n,headers:s.getAllResponseHeaders(),readyState:s.readyState,status:s.status,statusText:s.statusText,responseURL:s.responseURL,response:s.response,responseText:t},(0,o.default)([s.response]))}}));break;case"SET":var u=e.data,c=u.prop,l=u.value;a[n][c]=l;break;case"CALL":var f,h=e.data,d=h.method,p=h.args;if("abort"===d&&!a[n])break;(f=a[n])[d].apply(f,(0,i.default)(p));break;default:console.error("ext-corb-workaround: Unknown event in page world:",e)}})),r.addEventListener("messageerror",(function(t){console.error("ext-corb-workaround: Unknown error in page world:",t)})),r.start()}}))};var i=r(n(861)),o=r(n(4658)),s=n(2750)},4658:(t,e,n)=>{"use strict";var r=n(4836);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.map((function(t){if(t&&"object"===(0,i.default)(t)&&t.__proto__){if("ArrayBuffer"===t.__proto__.constructor.name)return t;if(t.__proto__.__proto__&&"TypedArray"===t.__proto__.__proto__.constructor.name)return t.buffer}})).filter(Boolean)};var i=r(n(8698))},6609:(t,e,n)=>{"use strict";function r(t){var e=arguments.length,n=void 0,r=void 0;for(n=1;n<e;n++)for(r in arguments[n])t[r]=arguments[n][r];return t}function i(t,e){var n,i,o=arguments.length,s=void 0;for(t.prototype=(n=e.prototype,(i=function(){}).prototype=n,new i),t.prototype.constructor=t,s=2;s<o;s++)r(t.prototype,arguments[s]);return t}n.d(e,{ZP:()=>kn}),t=n.hmd(t);var o=["<nothing>"],s="end",a="value",u="error",c="any";function l(t,e){var n=void 0,r=void 0,i=void 0,o=void 0;if(0===t.length)return e;if(0===e.length)return t;for(o=0,n=new Array(t.length+e.length),r=t.length,i=0;i<r;i++,o++)n[o]=t[i];for(r=e.length,i=0;i<r;i++,o++)n[o]=e[i];return n}function f(t,e){var n=t.length,r=void 0;for(r=0;r<n;r++)if(t[r]===e)return r;return-1}function h(t,e){var n=t.length,r=void 0;for(r=0;r<n;r++)if(e(t[r]))return r;return-1}function d(t){var e=t.length,n=new Array(e),r=void 0;for(r=0;r<e;r++)n[r]=t[r];return n}function p(t,e){var n=t.length,r=void 0,i=void 0,o=void 0;if(e>=0&&e<n){if(1===n)return[];for(r=new Array(n-1),i=0,o=0;i<n;i++)i!==e&&(r[o]=t[i],o++);return r}return t}function _(t,e){var n=t.length,r=new Array(n),i=void 0;for(i=0;i<n;i++)r[i]=e(t[i]);return r}function y(t,e,n){t===c?e(n):t===n.type&&(t===a||t===u?e(n.value):e())}function v(){this._items=[],this._spies=[],this._inLoop=0,this._removedItems=null}function m(){this._dispatcher=new v,this._active=!1,this._alive=!0,this._activating=!1,this._logHandlers=null,this._spyHandlers=null}function g(){m.call(this)}function b(){m.call(this),this._currentEvent=null}r(v.prototype,{add:function(t,e){return this._items=l(this._items,[{type:t,fn:e}]),this._items.length},remove:function(t,e){var n=h(this._items,(function(n){return n.type===t&&n.fn===e}));return 0!==this._inLoop&&-1!==n&&(null===this._removedItems&&(this._removedItems=[]),this._removedItems.push(this._items[n])),this._items=p(this._items,n),this._items.length},addSpy:function(t){return this._spies=l(this._spies,[t]),this._spies.length},removeSpy:function(t){return this._spies=p(this._spies,this._spies.indexOf(t)),this._spies.length},dispatch:function(t){this._inLoop++;for(var e=0,n=this._spies;null!==this._spies&&e<n.length;e++)n[e](t);for(var r=0,i=this._items;r<i.length&&null!==this._items;r++)null!==this._removedItems&&-1!==f(this._removedItems,i[r])||y(i[r].type,i[r].fn,t);this._inLoop--,0===this._inLoop&&(this._removedItems=null)},cleanup:function(){this._items=null,this._spies=null}}),r(m.prototype,{_name:"observable",_onActivation:function(){},_onDeactivation:function(){},_setActive:function(t){this._active!==t&&(this._active=t,t?(this._activating=!0,this._onActivation(),this._activating=!1):this._onDeactivation())},_clear:function(){this._setActive(!1),this._dispatcher.cleanup(),this._dispatcher=null,this._logHandlers=null},_emit:function(t,e){switch(t){case a:return this._emitValue(e);case u:return this._emitError(e);case s:return this._emitEnd()}},_emitValue:function(t){this._alive&&this._dispatcher.dispatch({type:a,value:t})},_emitError:function(t){this._alive&&this._dispatcher.dispatch({type:u,value:t})},_emitEnd:function(){this._alive&&(this._alive=!1,this._dispatcher.dispatch({type:s}),this._clear())},_on:function(t,e){return this._alive?(this._dispatcher.add(t,e),this._setActive(!0)):y(t,e,{type:s}),this},_off:function(t,e){return this._alive&&0===this._dispatcher.remove(t,e)&&this._setActive(!1),this},onValue:function(t){return this._on(a,t)},onError:function(t){return this._on(u,t)},onEnd:function(t){return this._on(s,t)},onAny:function(t){return this._on(c,t)},offValue:function(t){return this._off(a,t)},offError:function(t){return this._off(u,t)},offEnd:function(t){return this._off(s,t)},offAny:function(t){return this._off(c,t)},observe:function(t,e,n){var r=this,i=!1,o=t&&"function"!=typeof t?t:{value:t,error:e,end:n},c=function(t){t.type===s&&(i=!0),t.type===a&&o.value?o.value(t.value):t.type===u&&o.error?o.error(t.value):t.type===s&&o.end&&o.end(t.value)};return this.onAny(c),{unsubscribe:function(){i||(r.offAny(c),i=!0)},get closed(){return i}}},_ofSameType:function(t,e){return t.prototype.getType()===this.getType()?t:e},setName:function(t,e){return this._name=e?t._name+"."+e:t,this},log:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.toString(),e=void 0,n=function(n){var r="<"+n.type+(e?":current":"")+">";n.type===s?console.log(t,r):console.log(t,r,n.value)};return this._alive&&(this._logHandlers||(this._logHandlers=[]),this._logHandlers.push({name:t,handler:n})),e=!0,this.onAny(n),e=!1,this},offLog:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.toString();if(this._logHandlers){var e=h(this._logHandlers,(function(e){return e.name===t}));-1!==e&&(this.offAny(this._logHandlers[e].handler),this._logHandlers.splice(e,1))}return this},spy:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.toString(),e=function(e){var n="<"+e.type+">";e.type===s?console.log(t,n):console.log(t,n,e.value)};return this._alive&&(this._spyHandlers||(this._spyHandlers=[]),this._spyHandlers.push({name:t,handler:e}),this._dispatcher.addSpy(e)),this},offSpy:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.toString();if(this._spyHandlers){var e=h(this._spyHandlers,(function(e){return e.name===t}));-1!==e&&(this._dispatcher.removeSpy(this._spyHandlers[e].handler),this._spyHandlers.splice(e,1))}return this}}),m.prototype.toString=function(){return"["+this._name+"]"},i(g,m,{_name:"stream",getType:function(){return"stream"}}),i(b,m,{_name:"property",_emitValue:function(t){this._alive&&(this._currentEvent={type:a,value:t},this._activating||this._dispatcher.dispatch({type:a,value:t}))},_emitError:function(t){this._alive&&(this._currentEvent={type:u,value:t},this._activating||this._dispatcher.dispatch({type:u,value:t}))},_emitEnd:function(){this._alive&&(this._alive=!1,this._activating||this._dispatcher.dispatch({type:s}),this._clear())},_on:function(t,e){return this._alive&&(this._dispatcher.add(t,e),this._setActive(!0)),null!==this._currentEvent&&y(t,e,this._currentEvent),this._alive||y(t,e,{type:s}),this},getType:function(){return"property"}});var x=new g;function w(){return x}function E(t){function e(t,e){var n=this;g.call(this),this._wait=t,this._intervalId=null,this._$onTick=function(){return n._onTick()},this._init(e)}return i(e,g,{_init:function(){},_free:function(){},_onTick:function(){},_onActivation:function(){this._intervalId=setInterval(this._$onTick,this._wait)},_onDeactivation:function(){null!==this._intervalId&&(clearInterval(this._intervalId),this._intervalId=null)},_clear:function(){g.prototype._clear.call(this),this._$onTick=null,this._free()}},t),e}x._emitEnd(),x._name="never";var A=E({_name:"later",_init:function(t){var e=t.x;this._x=e},_free:function(){this._x=null},_onTick:function(){this._emitValue(this._x),this._emitEnd()}}),S=E({_name:"interval",_init:function(t){var e=t.x;this._x=e},_free:function(){this._x=null},_onTick:function(){this._emitValue(this._x)}}),O=E({_name:"sequentially",_init:function(t){var e=t.xs;this._xs=d(e)},_free:function(){this._xs=null},_onTick:function(){1===this._xs.length?(this._emitValue(this._xs[0]),this._emitEnd()):this._emitValue(this._xs.shift())}}),T=E({_name:"fromPoll",_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_onTick:function(){var t=this._fn;this._emitValue(t())}});function j(t){function e(e){return t._emitValue(e),t._active}function n(e){return t._emit(e.type,e.value),t._active}return{value:e,error:function(e){return t._emitError(e),t._active},end:function(){return t._emitEnd(),t._active},event:n,emit:e,emitEvent:n}}var D=E({_name:"withInterval",_init:function(t){var e=t.fn;this._fn=e,this._emitter=j(this)},_free:function(){this._fn=null,this._emitter=null},_onTick:function(){(0,this._fn)(this._emitter)}});function I(t){g.call(this),this._fn=t,this._unsubscribe=null}function L(t){return new I(t)}function k(t,e){switch(e){case 0:return function(){return t()};case 1:return function(e){return t(e[0])};case 2:return function(e){return t(e[0],e[1])};case 3:return function(e){return t(e[0],e[1],e[2])};case 4:return function(e){return t(e[0],e[1],e[2],e[3])};default:return function(e){return t.apply(null,e)}}}i(I,g,{_name:"stream",_onActivation:function(){var t=(0,this._fn)(j(this));this._unsubscribe="function"==typeof t?t:null,this._active||this._callUnsubscribe()},_callUnsubscribe:function(){null!==this._unsubscribe&&(this._unsubscribe(),this._unsubscribe=null)},_onDeactivation:function(){this._callUnsubscribe()},_clear:function(){g.prototype._clear.call(this),this._fn=null}});var M=[["addEventListener","removeEventListener"],["addListener","removeListener"],["on","off"]];function R(t){this._currentEvent={type:"value",value:t,current:!0}}function P(t){return new R(t)}function C(t){this._currentEvent={type:"error",value:t,current:!0}}function q(t,e){return function(n,r){var i=this;t.call(this),this._source=n,this._name=n._name+"."+e,this._init(r),this._$handleAny=function(t){return i._handleAny(t)}}}function N(t){return{_init:function(){},_free:function(){},_handleValue:function(t){this._emitValue(t)},_handleError:function(t){this._emitError(t)},_handleEnd:function(){this._emitEnd()},_handleAny:function(t){switch(t.type){case a:return this._handleValue(t.value);case u:return this._handleError(t.value);case s:return this._handleEnd()}},_onActivation:function(){this._source.onAny(this._$handleAny)},_onDeactivation:function(){this._source.offAny(this._$handleAny)},_clear:function(){t.prototype._clear.call(this),this._source=null,this._$handleAny=null,this._free()}}}function V(t,e){var n=q(g,t);return i(n,g,N(g),e),n}function B(t,e){var n=q(b,t);return i(n,b,N(b),e),n}i(R,b,{_name:"constant",_active:!1,_activating:!1,_alive:!1,_dispatcher:null,_logHandlers:null}),i(C,b,{_name:"constantError",_active:!1,_activating:!1,_alive:!1,_dispatcher:null,_logHandlers:null});var $=B("toProperty",{_init:function(t){var e=t.fn;this._getInitialCurrent=e},_onActivation:function(){if(null!==this._getInitialCurrent){var t=this._getInitialCurrent;this._emitValue(t())}this._source.onAny(this._$handleAny)}});function F(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null!==e&&"function"!=typeof e)throw new Error("You should call toProperty() with a function or no arguments.");return new $(t,{fn:e})}var U=V("changes",{_handleValue:function(t){this._activating||this._emitValue(t)},_handleError:function(t){this._activating||this._emitError(t)}});function H(){if("function"==typeof Promise)return Promise;throw new Error("There isn't default Promise, use shim or parameter")}var G=function(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:t),z=G.default?G.default:G;function K(t){this._observable=t.takeErrors(1)}function W(){return new K(this)}function Z(t,e,n){for(var r in t)t.hasOwnProperty(r)&&(e.push(r),n.push(t[r]))}function J(t,e,n){var r=this;g.call(this),this._activeCount=t.length,this._sources=l(t,e),this._combinator=n,this._aliveCount=0,this._latestValues=new Array(this._sources.length),this._latestErrors=new Array(this._sources.length),function(t,e){var n=t.length,r=void 0;for(r=0;r<n;r++)t[r]=e}(this._latestValues,o),this._emitAfterActivation=!1,this._endAfterActivation=!1,this._latestErrorIndex=0,this._$handlers=[];for(var i=function(t){r._$handlers.push((function(e){return r._handleAny(t,e)}))},s=0;s<this._sources.length;s++)i(s)}function X(t,e,n){return"function"==typeof e&&(n=e,e=void 0),Array.isArray(t)?function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments[2];if(!Array.isArray(e))throw new Error("Combine can only combine active and passive collections of the same type.");return n=n?k(n,t.length+e.length):function(t){return t},0===t.length?w():new J(t,e,n)}(t,e,n):function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];if("object"!=typeof e||Array.isArray(e))throw new Error("Combine can only combine active and passive collections of the same type.");var r=[],i=[],o=[];return Z(t,r,i),Z(e,r,o),0===i.length?w():new J(i,o,(function(t){for(var e={},i=t.length-1;0<=i;i--)e[r[i]]=t[i];return n?n(e):e}))}(t,e,n)}r(K.prototype,{subscribe:function(t,e,n){var r=this,i="function"==typeof t?{next:t,error:e,complete:n}:t,o=function(t){t.type===s&&(c=!0),t.type===a&&i.next?i.next(t.value):t.type===u&&i.error?i.error(t.value):t.type===s&&i.complete&&i.complete(t.value)};this._observable.onAny(o);var c=!1;return{unsubscribe:function(){c=!0,r._observable.offAny(o)},get closed(){return c}}}}),K.prototype[z]=function(){return this},i(J,g,{_name:"combine",_onActivation:function(){this._aliveCount=this._activeCount;for(var t=this._activeCount;t<this._sources.length;t++)this._sources[t].onAny(this._$handlers[t]);for(var e=0;e<this._activeCount;e++)this._sources[e].onAny(this._$handlers[e]);this._emitAfterActivation&&(this._emitAfterActivation=!1,this._emitIfFull()),this._endAfterActivation&&this._emitEnd()},_onDeactivation:function(){var t=this._sources.length,e=void 0;for(e=0;e<t;e++)this._sources[e].offAny(this._$handlers[e])},_emitIfFull:function(){for(var t=!0,e=!1,n=this._latestValues.length,r=new Array(n),i=new Array(n),s=0;s<n;s++)r[s]=this._latestValues[s],i[s]=this._latestErrors[s],r[s]===o&&(t=!1),void 0!==i[s]&&(e=!0);if(t){var a=this._combinator;this._emitValue(a(r))}e&&this._emitError(function(t){for(var e=void 0,n=0;n<t.length;n++)void 0!==t[n]&&(void 0===e||e.index<t[n].index)&&(e=t[n]);return e.error}(i))},_handleAny:function(t,e){e.type===a||e.type===u?(e.type===a&&(this._latestValues[t]=e.value,this._latestErrors[t]=void 0),e.type===u&&(this._latestValues[t]=o,this._latestErrors[t]={index:this._latestErrorIndex++,error:e.value}),t<this._activeCount&&(this._activating?this._emitAfterActivation=!0:this._emitIfFull())):t<this._activeCount&&(this._aliveCount--,0===this._aliveCount&&(this._activating?this._endAfterActivation=!0:this._emitEnd()))},_clear:function(){g.prototype._clear.call(this),this._sources=null,this._latestValues=null,this._latestErrors=null,this._combinator=null,this._$handlers=null}});var Q={empty:function(){return w()},concat:function(t,e){return t.merge(e)},of:function(t){return P(t)},map:function(t,e){return e.map(t)},bimap:function(t,e,n){return n.mapErrors(t).map(e)},ap:function(t,e){return X([t,e],(function(t,e){return t(e)}))},chain:function(t,e){return e.flatMap(t)}},Y=Object.freeze({Observable:Q}),tt={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){var e=this._fn;this._emitValue(e(t))}},et=V("map",tt),nt=B("map",tt),rt=function(t){return t};function it(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rt;return new(t._ofSameType(et,nt))(t,{fn:e})}var ot={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){(0,this._fn)(t)&&this._emitValue(t)}},st=V("filter",ot),at=B("filter",ot),ut=function(t){return t},ct={_init:function(t){var e=t.n;this._n=e,e<=0&&this._emitEnd()},_handleValue:function(t){0!==this._n&&(this._n--,this._emitValue(t),0===this._n&&this._emitEnd())}},lt=V("take",ct),ft=B("take",ct),ht={_init:function(t){var e=t.n;this._n=e,e<=0&&this._emitEnd()},_handleError:function(t){0!==this._n&&(this._n--,this._emitError(t),0===this._n&&this._emitEnd())}},dt=V("takeErrors",ht),pt=B("takeErrors",ht),_t={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){(0,this._fn)(t)?this._emitValue(t):this._emitEnd()}},yt=V("takeWhile",_t),vt=B("takeWhile",_t),mt=function(t){return t},gt={_init:function(){this._lastValue=o},_free:function(){this._lastValue=null},_handleValue:function(t){this._lastValue=t},_handleEnd:function(){this._lastValue!==o&&this._emitValue(this._lastValue),this._emitEnd()}},bt=V("last",gt),xt=B("last",gt),wt={_init:function(t){var e=t.n;this._n=Math.max(0,e)},_handleValue:function(t){0===this._n?this._emitValue(t):this._n--}},Et=V("skip",wt),At=B("skip",wt),St={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){var e=this._fn;null===this._fn||e(t)||(this._fn=null),null===this._fn&&this._emitValue(t)}},Ot=V("skipWhile",St),Tt=B("skipWhile",St),jt=function(t){return t},Dt={_init:function(t){var e=t.fn;this._fn=e,this._prev=o},_free:function(){this._fn=null,this._prev=null},_handleValue:function(t){var e=this._fn;this._prev!==o&&e(this._prev,t)||(this._prev=t,this._emitValue(t))}},It=V("skipDuplicates",Dt),Lt=B("skipDuplicates",Dt),kt=function(t,e){return t===e};function Mt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kt;return new(t._ofSameType(It,Lt))(t,{fn:e})}var Rt={_init:function(t){var e=t.fn,n=t.seed;this._fn=e,this._prev=n},_free:function(){this._prev=null,this._fn=null},_handleValue:function(t){if(this._prev!==o){var e=this._fn;this._emitValue(e(this._prev,t))}this._prev=t}},Pt=V("diff",Rt),Ct=B("diff",Rt);function qt(t,e){return[t,e]}var Nt=B("scan",{_init:function(t){var e=t.fn,n=t.seed;this._fn=e,this._seed=n,n!==o&&this._emitValue(n)},_free:function(){this._fn=null,this._seed=null},_handleValue:function(t){var e=this._fn;null===this._currentEvent||this._currentEvent.type===u?this._emitValue(this._seed===o?t:e(this._seed,t)):this._emitValue(e(this._currentEvent.value,t))}}),Vt=V("flatten",{_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){for(var e=(0,this._fn)(t),n=0;n<e.length;n++)this._emitValue(e[n])}}),Bt=function(t){return t},$t={},Ft={_init:function(t){var e=this,n=t.wait;this._wait=Math.max(0,n),this._buff=[],this._$shiftBuff=function(){var t=e._buff.shift();t===$t?e._emitEnd():e._emitValue(t)}},_free:function(){this._buff=null,this._$shiftBuff=null},_handleValue:function(t){this._activating?this._emitValue(t):(this._buff.push(t),setTimeout(this._$shiftBuff,this._wait))},_handleEnd:function(){this._activating?this._emitEnd():(this._buff.push($t),setTimeout(this._$shiftBuff,this._wait))}},Ut=V("delay",Ft),Ht=B("delay",Ft),Gt=Date.now?function(){return Date.now()}:function(){return(new Date).getTime()},zt={_init:function(t){var e=this,n=t.wait,r=t.leading,i=t.trailing;this._wait=Math.max(0,n),this._leading=r,this._trailing=i,this._trailingValue=null,this._timeoutId=null,this._endLater=!1,this._lastCallTime=0,this._$trailingCall=function(){return e._trailingCall()}},_free:function(){this._trailingValue=null,this._$trailingCall=null},_handleValue:function(t){if(this._activating)this._emitValue(t);else{var e=Gt();0!==this._lastCallTime||this._leading||(this._lastCallTime=e);var n=this._wait-(e-this._lastCallTime);n<=0?(this._cancelTrailing(),this._lastCallTime=e,this._emitValue(t)):this._trailing&&(this._cancelTrailing(),this._trailingValue=t,this._timeoutId=setTimeout(this._$trailingCall,n))}},_handleEnd:function(){this._activating?this._emitEnd():this._timeoutId?this._endLater=!0:this._emitEnd()},_cancelTrailing:function(){null!==this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=null)},_trailingCall:function(){this._emitValue(this._trailingValue),this._timeoutId=null,this._trailingValue=null,this._lastCallTime=this._leading?Gt():0,this._endLater&&this._emitEnd()}},Kt=V("throttle",zt),Wt=B("throttle",zt),Zt={_init:function(t){var e=this,n=t.wait,r=t.immediate;this._wait=Math.max(0,n),this._immediate=r,this._lastAttempt=0,this._timeoutId=null,this._laterValue=null,this._endLater=!1,this._$later=function(){return e._later()}},_free:function(){this._laterValue=null,this._$later=null},_handleValue:function(t){this._activating?this._emitValue(t):(this._lastAttempt=Gt(),this._immediate&&!this._timeoutId&&this._emitValue(t),this._timeoutId||(this._timeoutId=setTimeout(this._$later,this._wait)),this._immediate||(this._laterValue=t))},_handleEnd:function(){this._activating?this._emitEnd():this._timeoutId&&!this._immediate?this._endLater=!0:this._emitEnd()},_later:function(){var t=Gt()-this._lastAttempt;if(t<this._wait&&t>=0)this._timeoutId=setTimeout(this._$later,this._wait-t);else{if(this._timeoutId=null,!this._immediate){var e=this._laterValue;this._laterValue=null,this._emitValue(e)}this._endLater&&this._emitEnd()}}},Jt=V("debounce",Zt),Xt=B("debounce",Zt),Qt={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleError:function(t){var e=this._fn;this._emitError(e(t))}},Yt=V("mapErrors",Qt),te=B("mapErrors",Qt),ee=function(t){return t},ne={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleError:function(t){(0,this._fn)(t)&&this._emitError(t)}},re=V("filterErrors",ne),ie=B("filterErrors",ne),oe=function(t){return t},se={_handleValue:function(){}},ae=V("ignoreValues",se),ue=B("ignoreValues",se),ce={_handleError:function(){}},le=V("ignoreErrors",ce),fe=B("ignoreErrors",ce),he={_handleEnd:function(){}},de=V("ignoreEnd",he),pe=B("ignoreEnd",he),_e={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleEnd:function(){var t=this._fn;this._emitValue(t()),this._emitEnd()}},ye=V("beforeEnd",_e),ve=B("beforeEnd",_e),me={_init:function(t){var e=t.min,n=t.max;this._max=n,this._min=e,this._buff=[]},_free:function(){this._buff=null},_handleValue:function(t){this._buff=function(t,e,n){var r=Math.min(n,t.length+1),i=t.length-r+1,o=new Array(r),s=void 0;for(s=i;s<r;s++)o[s-i]=t[s];return o[r-1]=e,o}(this._buff,t,this._max),this._buff.length>=this._min&&this._emitValue(this._buff)}},ge=V("slidingWindow",me),be=B("slidingWindow",me),xe={_init:function(t){var e=t.fn,n=t.flushOnEnd;this._fn=e,this._flushOnEnd=n,this._buff=[]},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&0!==this._buff.length&&(this._emitValue(this._buff),this._buff=[])},_handleValue:function(t){this._buff.push(t),(0,this._fn)(t)||this._flush()},_handleEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()}},we=V("bufferWhile",xe),Ee=B("bufferWhile",xe),Ae=function(t){return t},Se={_init:function(t){var e=t.count,n=t.flushOnEnd;this._count=e,this._flushOnEnd=n,this._buff=[]},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&0!==this._buff.length&&(this._emitValue(this._buff),this._buff=[])},_handleValue:function(t){this._buff.push(t),this._buff.length>=this._count&&this._flush()},_handleEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()}},Oe=V("bufferWithCount",Se),Te=B("bufferWithCount",Se),je={_init:function(t){var e=this,n=t.wait,r=t.count,i=t.flushOnEnd;this._wait=n,this._count=r,this._flushOnEnd=i,this._intervalId=null,this._$onTick=function(){return e._flush()},this._buff=[]},_free:function(){this._$onTick=null,this._buff=null},_flush:function(){null!==this._buff&&(this._emitValue(this._buff),this._buff=[])},_handleValue:function(t){this._buff.push(t),this._buff.length>=this._count&&(clearInterval(this._intervalId),this._flush(),this._intervalId=setInterval(this._$onTick,this._wait))},_handleEnd:function(){this._flushOnEnd&&0!==this._buff.length&&this._flush(),this._emitEnd()},_onActivation:function(){this._intervalId=setInterval(this._$onTick,this._wait),this._source.onAny(this._$handleAny)},_onDeactivation:function(){null!==this._intervalId&&(clearInterval(this._intervalId),this._intervalId=null),this._source.offAny(this._$handleAny)}},De=V("bufferWithTimeOrCount",je),Ie=B("bufferWithTimeOrCount",je),Le={_init:function(t){var e,n=t.transducer;this._xform=n((e=this,{"@@transducer/step":function(t,n){return e._emitValue(n),null},"@@transducer/result":function(){return e._emitEnd(),null}}))},_free:function(){this._xform=null},_handleValue:function(t){null!==this._xform["@@transducer/step"](null,t)&&this._xform["@@transducer/result"](null)},_handleEnd:function(){this._xform["@@transducer/result"](null)}},ke=V("transduce",Le),Me=B("transduce",Le),Re={_init:function(t){var e=t.fn;this._handler=e,this._emitter=j(this)},_free:function(){this._handler=null,this._emitter=null},_handleAny:function(t){this._handler(this._emitter,t)}},Pe=V("withHandler",Re),Ce=B("withHandler",Re),qe=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function Ne(t,e){var n=this;g.call(this),this._buffers=_(t,(function(t){return qe(t)?d(t):[]})),this._sources=_(t,(function(t){return qe(t)?w():t})),this._combinator=e?k(e,this._sources.length):function(t){return t},this._aliveCount=0,this._$handlers=[];for(var r=function(t){n._$handlers.push((function(e){return n._handleAny(t,e)}))},i=0;i<this._sources.length;i++)r(i)}function Ve(t,e){return 0===t.length?w():new Ne(t,e)}i(Ne,g,{_name:"zip",_onActivation:function(){for(;this._isFull();)this._emit();var t=this._sources.length;this._aliveCount=t;for(var e=0;e<t&&this._active;e++)this._sources[e].onAny(this._$handlers[e])},_onDeactivation:function(){for(var t=0;t<this._sources.length;t++)this._sources[t].offAny(this._$handlers[t])},_emit:function(){for(var t=new Array(this._buffers.length),e=0;e<this._buffers.length;e++)t[e]=this._buffers[e].shift();var n=this._combinator;this._emitValue(n(t))},_isFull:function(){for(var t=0;t<this._buffers.length;t++)if(0===this._buffers[t].length)return!1;return!0},_handleAny:function(t,e){e.type===a&&(this._buffers[t].push(e.value),this._isFull()&&this._emit()),e.type===u&&this._emitError(e.value),e.type===s&&(this._aliveCount--,0===this._aliveCount&&this._emitEnd())},_clear:function(){g.prototype._clear.call(this),this._sources=null,this._buffers=null,this._combinator=null,this._$handlers=null}});var Be=function(t){return t};function $e(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.queueLim,r=void 0===n?0:n,i=e.concurLim,o=void 0===i?-1:i,s=e.drop,a=void 0===s?"new":s;g.call(this),this._queueLim=r<0?-1:r,this._concurLim=o<0?-1:o,this._drop=a,this._queue=[],this._curSources=[],this._$handleSubAny=function(e){return t._handleSubAny(e)},this._$endHandlers=[],this._currentlyAdding=null,0===this._concurLim&&this._emitEnd()}function Fe(t){$e.call(this),this._addAll(t),this._initialised=!0}function Ue(t){return 0===t.length?w():new Fe(t)}function He(t){var e=this;g.call(this),this._generator=t,this._source=null,this._inLoop=!1,this._iteration=0,this._$handleAny=function(t){return e._handleAny(t)}}i($e,g,{_name:"abstractPool",_add:function(t,e){e=e||Be,-1===this._concurLim||this._curSources.length<this._concurLim?this._addToCur(e(t)):-1===this._queueLim||this._queue.length<this._queueLim?this._addToQueue(e(t)):"old"===this._drop&&(this._removeOldest(),this._add(t,e))},_addAll:function(t){var e=this;!function(t,n){var r,i=t.length,o=void 0;for(o=0;o<i;o++)r=t[o],e._add(r)}(t)},_remove:function(t){-1===this._removeCur(t)&&this._removeQueue(t)},_addToQueue:function(t){this._queue=l(this._queue,[t])},_addToCur:function(t){if(this._active){if(!t._alive)return t._currentEvent&&this._emit(t._currentEvent.type,t._currentEvent.value),void(this._active&&(0!==this._queue.length?this._pullQueue():0===this._curSources.length&&this._onEmpty()));this._currentlyAdding=t,t.onAny(this._$handleSubAny),this._currentlyAdding=null,t._alive?(this._curSources=l(this._curSources,[t]),this._active&&this._subToEnd(t)):0!==this._queue.length?this._pullQueue():0===this._curSources.length&&this._onEmpty()}else this._curSources=l(this._curSources,[t])},_subToEnd:function(t){var e=this,n=function(){return e._removeCur(t)};this._$endHandlers.push({obs:t,handler:n}),t.onEnd(n)},_subscribe:function(t){t.onAny(this._$handleSubAny),this._active&&this._subToEnd(t)},_unsubscribe:function(t){t.offAny(this._$handleSubAny);var e=h(this._$endHandlers,(function(e){return e.obs===t}));-1!==e&&(t.offEnd(this._$endHandlers[e].handler),this._$endHandlers.splice(e,1))},_handleSubAny:function(t){t.type===a?this._emitValue(t.value):t.type===u&&this._emitError(t.value)},_removeQueue:function(t){var e=f(this._queue,t);return this._queue=p(this._queue,e),e},_removeCur:function(t){this._active&&this._unsubscribe(t);var e=f(this._curSources,t);return this._curSources=p(this._curSources,e),-1!==e&&(0!==this._queue.length?this._pullQueue():0===this._curSources.length&&this._onEmpty()),e},_removeOldest:function(){this._removeCur(this._curSources[0])},_pullQueue:function(){0!==this._queue.length&&(this._queue=d(this._queue),this._addToCur(this._queue.shift()))},_onActivation:function(){for(var t=0,e=this._curSources;t<e.length&&this._active;t++)this._subscribe(e[t])},_onDeactivation:function(){for(var t=0,e=this._curSources;t<e.length;t++)this._unsubscribe(e[t]);null!==this._currentlyAdding&&this._unsubscribe(this._currentlyAdding)},_isEmpty:function(){return 0===this._curSources.length},_onEmpty:function(){},_clear:function(){g.prototype._clear.call(this),this._queue=null,this._curSources=null,this._$handleSubAny=null,this._$endHandlers=null}}),i(Fe,$e,{_name:"merge",_onEmpty:function(){this._initialised&&this._emitEnd()}}),i(He,g,{_name:"repeat",_handleAny:function(t){t.type===s?(this._source=null,this._getSource()):this._emit(t.type,t.value)},_getSource:function(){if(!this._inLoop){this._inLoop=!0;for(var t=this._generator;null===this._source&&this._alive&&this._active;)this._source=t(this._iteration++),this._source?this._source.onAny(this._$handleAny):this._emitEnd();this._inLoop=!1}},_onActivation:function(){this._source?this._source.onAny(this._$handleAny):this._getSource()},_onDeactivation:function(){this._source&&this._source.offAny(this._$handleAny)},_clear:function(){g.prototype._clear.call(this),this._generator=null,this._source=null,this._$handleAny=null}});var Ge=function(t){return new He(t)};function ze(t){return Ge((function(e){return t.length>e&&t[e]})).setName("concat")}function Ke(){$e.call(this)}function We(t,e,n){var r=this;$e.call(this,n),this._source=t,this._fn=e,this._mainEnded=!1,this._lastCurrent=null,this._$handleMain=function(t){return r._handleMain(t)}}function Ze(t,e){We.call(this,t,e)}function Je(t,e){return function(n,r,i){var s=this;t.call(this),this._primary=n,this._secondary=r,this._name=n._name+"."+e,this._lastSecondary=o,this._$handleSecondaryAny=function(t){return s._handleSecondaryAny(t)},this._$handlePrimaryAny=function(t){return s._handlePrimaryAny(t)},this._init(i)}}function Xe(t){return{_init:function(){},_free:function(){},_handlePrimaryValue:function(t){this._emitValue(t)},_handlePrimaryError:function(t){this._emitError(t)},_handlePrimaryEnd:function(){this._emitEnd()},_handleSecondaryValue:function(t){this._lastSecondary=t},_handleSecondaryError:function(t){this._emitError(t)},_handleSecondaryEnd:function(){},_handlePrimaryAny:function(t){switch(t.type){case a:return this._handlePrimaryValue(t.value);case u:return this._handlePrimaryError(t.value);case s:return this._handlePrimaryEnd(t.value)}},_handleSecondaryAny:function(t){switch(t.type){case a:return this._handleSecondaryValue(t.value);case u:return this._handleSecondaryError(t.value);case s:this._handleSecondaryEnd(t.value),this._removeSecondary()}},_removeSecondary:function(){null!==this._secondary&&(this._secondary.offAny(this._$handleSecondaryAny),this._$handleSecondaryAny=null,this._secondary=null)},_onActivation:function(){null!==this._secondary&&this._secondary.onAny(this._$handleSecondaryAny),this._active&&this._primary.onAny(this._$handlePrimaryAny)},_onDeactivation:function(){null!==this._secondary&&this._secondary.offAny(this._$handleSecondaryAny),this._primary.offAny(this._$handlePrimaryAny)},_clear:function(){t.prototype._clear.call(this),this._primary=null,this._secondary=null,this._lastSecondary=null,this._$handleSecondaryAny=null,this._$handlePrimaryAny=null,this._free()}}}function Qe(t,e){var n=Je(g,t);return i(n,g,Xe(g),e),n}function Ye(t,e){var n=Je(b,t);return i(n,b,Xe(b),e),n}i(Ke,$e,{_name:"pool",plug:function(t){return this._add(t),this},unplug:function(t){return this._remove(t),this}}),i(We,$e,{_onActivation:function(){$e.prototype._onActivation.call(this),this._active&&this._source.onAny(this._$handleMain)},_onDeactivation:function(){$e.prototype._onDeactivation.call(this),this._source.offAny(this._$handleMain),this._hadNoEvSinceDeact=!0},_handleMain:function(t){t.type===a&&(this._activating&&this._hadNoEvSinceDeact&&this._lastCurrent===t.value||this._add(t.value,this._fn),this._lastCurrent=t.value,this._hadNoEvSinceDeact=!1),t.type===u&&this._emitError(t.value),t.type===s&&(this._isEmpty()?this._emitEnd():this._mainEnded=!0)},_onEmpty:function(){this._mainEnded&&this._emitEnd()},_clear:function(){$e.prototype._clear.call(this),this._source=null,this._lastCurrent=null,this._$handleMain=null}}),i(Ze,We,{_handleMain:function(t){t.type===u&&(this._activating&&this._hadNoEvSinceDeact&&this._lastCurrent===t.value||this._add(t.value,this._fn),this._lastCurrent=t.value,this._hadNoEvSinceDeact=!1),t.type===a&&this._emitValue(t.value),t.type===s&&(this._isEmpty()?this._emitEnd():this._mainEnded=!0)}});var tn={_handlePrimaryValue:function(t){this._lastSecondary!==o&&this._lastSecondary&&this._emitValue(t)},_handleSecondaryEnd:function(){this._lastSecondary!==o&&this._lastSecondary||this._emitEnd()}},en=Qe("filterBy",tn),nn=Ye("filterBy",tn),rn=function(t,e){return e},on={_handlePrimaryValue:function(t){this._lastSecondary!==o&&this._emitValue(t)},_handleSecondaryEnd:function(){this._lastSecondary===o&&this._emitEnd()}},sn=Qe("skipUntilBy",on),an=Ye("skipUntilBy",on),un={_handleSecondaryValue:function(){this._emitEnd()}},cn=Qe("takeUntilBy",un),ln=Ye("takeUntilBy",un),fn={_init:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).flushOnEnd,e=void 0===t||t;this._buff=[],this._flushOnEnd=e},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&(this._emitValue(this._buff),this._buff=[])},_handlePrimaryEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()},_onActivation:function(){this._primary.onAny(this._$handlePrimaryAny),this._alive&&null!==this._secondary&&this._secondary.onAny(this._$handleSecondaryAny)},_handlePrimaryValue:function(t){this._buff.push(t)},_handleSecondaryValue:function(){this._flush()},_handleSecondaryEnd:function(){this._flushOnEnd||this._emitEnd()}},hn=Qe("bufferBy",fn),dn=Ye("bufferBy",fn),pn={_init:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.flushOnEnd,n=void 0===e||e,r=t.flushOnChange,i=void 0!==r&&r;this._buff=[],this._flushOnEnd=n,this._flushOnChange=i},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&(this._emitValue(this._buff),this._buff=[])},_handlePrimaryEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()},_handlePrimaryValue:function(t){this._buff.push(t),this._lastSecondary===o||this._lastSecondary||this._flush()},_handleSecondaryEnd:function(){this._flushOnEnd||this._lastSecondary!==o&&!this._lastSecondary||this._emitEnd()},_handleSecondaryValue:function(t){this._flushOnChange&&!t&&this._flush(),this._lastSecondary=t}},_n=Qe("bufferWhileBy",pn),yn=Ye("bufferWhileBy",pn),vn=function(){return!1},mn=function(){return!0},gn={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){var e=(0,this._fn)(t);e.convert?this._emitError(e.error):this._emitValue(t)}},bn=V("valuesToErrors",gn),xn=B("valuesToErrors",gn),wn=function(t){return{convert:!0,error:t}},En={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleError:function(t){var e=(0,this._fn)(t);e.convert?this._emitValue(e.value):this._emitError(t)}},An=V("errorsToValues",En),Sn=B("errorsToValues",En),On=function(t){return{convert:!0,value:t}},Tn={_handleError:function(t){this._emitError(t),this._emitEnd()}},jn=V("endOnError",Tn),Dn=B("endOnError",Tn);m.prototype.toProperty=function(t){return F(this,t)},m.prototype.changes=function(){return new U(this)},m.prototype.toPromise=function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H(),n=null;return new e((function(e,r){t.onAny((function(t){t.type===s&&null!==n?((n.type===a?e:r)(n.value),n=null):n=t}))}))}(this,t)},m.prototype.toESObservable=W,m.prototype[z]=W,m.prototype.map=function(t){return it(this,t)},m.prototype.filter=function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ut;return new(t._ofSameType(st,at))(t,{fn:e})}(this,t)},m.prototype.take=function(t){return function(t,e){return new(t._ofSameType(lt,ft))(t,{n:e})}(this,t)},m.prototype.takeErrors=function(t){return function(t,e){return new(t._ofSameType(dt,pt))(t,{n:e})}(this,t)},m.prototype.takeWhile=function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mt;return new(t._ofSameType(yt,vt))(t,{fn:e})}(this,t)},m.prototype.last=function(){return new((t=this)._ofSameType(bt,xt))(t);var t},m.prototype.skip=function(t){return function(t,e){return new(t._ofSameType(Et,At))(t,{n:e})}(this,t)},m.prototype.skipWhile=function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jt;return new(t._ofSameType(Ot,Tt))(t,{fn:e})}(this,t)},m.prototype.skipDuplicates=function(t){return Mt(this,t)},m.prototype.diff=function(t,e){return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o;return new(t._ofSameType(Pt,Ct))(t,{fn:e||qt,seed:n})}(this,t,e)},m.prototype.scan=function(t,e){return function(t,e){return new Nt(t,{fn:e,seed:arguments.length>2&&void 0!==arguments[2]?arguments[2]:o})}(this,t,e)},m.prototype.flatten=function(t){return function(t){return new Vt(t,{fn:arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bt})}(this,t)},m.prototype.delay=function(t){return function(t,e){return new(t._ofSameType(Ut,Ht))(t,{wait:e})}(this,t)},m.prototype.throttle=function(t,e){return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.leading,i=void 0===r||r,o=n.trailing,s=void 0===o||o;return new(t._ofSameType(Kt,Wt))(t,{wait:e,leading:i,trailing:s})}(this,t,e)},m.prototype.debounce=function(t,e){return function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).immediate,r=void 0!==n&&n;return new(t._ofSameType(Jt,Xt))(t,{wait:e,immediate:r})}(this,t,e)},m.prototype.mapErrors=function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ee;return new(t._ofSameType(Yt,te))(t,{fn:e})}(this,t)},m.prototype.filterErrors=function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oe;return new(t._ofSameType(re,ie))(t,{fn:e})}(this,t)},m.prototype.ignoreValues=function(){return new((t=this)._ofSameType(ae,ue))(t);var t},m.prototype.ignoreErrors=function(){return new((t=this)._ofSameType(le,fe))(t);var t},m.prototype.ignoreEnd=function(){return new((t=this)._ofSameType(de,pe))(t);var t},m.prototype.beforeEnd=function(t){return function(t,e){return new(t._ofSameType(ye,ve))(t,{fn:e})}(this,t)},m.prototype.slidingWindow=function(t,e){return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return new(t._ofSameType(ge,be))(t,{min:n,max:e})}(this,t,e)},m.prototype.bufferWhile=function(t,e){return function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).flushOnEnd,r=void 0===n||n;return new(t._ofSameType(we,Ee))(t,{fn:e||Ae,flushOnEnd:r})}(this,t,e)},m.prototype.bufferWithCount=function(t,e){return function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).flushOnEnd,r=void 0===n||n;return new(t._ofSameType(Oe,Te))(t,{count:e,flushOnEnd:r})}(this,t,e)},m.prototype.bufferWithTimeOrCount=function(t,e,n){return function(t,e,n){var r=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).flushOnEnd,i=void 0===r||r;return new(t._ofSameType(De,Ie))(t,{wait:e,count:n,flushOnEnd:i})}(this,t,e,n)},m.prototype.transduce=function(t){return function(t,e){return new(t._ofSameType(ke,Me))(t,{transducer:e})}(this,t)},m.prototype.withHandler=function(t){return function(t,e){return new(t._ofSameType(Pe,Ce))(t,{fn:e})}(this,t)},m.prototype.thru=function(t){return t(this)},m.prototype.combine=function(t,e){return X([this,t],e)},m.prototype.zip=function(t,e){return Ve([this,t],e)},m.prototype.merge=function(t){return Ue([this,t])},m.prototype.concat=function(t){return ze([this,t])},m.prototype.flatMap=function(t){return new We(this,t).setName(this,"flatMap")},m.prototype.flatMapLatest=function(t){return new We(this,t,{concurLim:1,drop:"old"}).setName(this,"flatMapLatest")},m.prototype.flatMapFirst=function(t){return new We(this,t,{concurLim:1}).setName(this,"flatMapFirst")},m.prototype.flatMapConcat=function(t){return new We(this,t,{queueLim:-1,concurLim:1}).setName(this,"flatMapConcat")},m.prototype.flatMapConcurLimit=function(t,e){return new We(this,t,{queueLim:-1,concurLim:e}).setName(this,"flatMapConcurLimit")},m.prototype.flatMapErrors=function(t){return new Ze(this,t).setName(this,"flatMapErrors")},m.prototype.filterBy=function(t){return n=t,new((e=this)._ofSameType(en,nn))(e,n);var e,n},m.prototype.sampledBy=function(t,e){return function(t,e,n){return X([e],[t],n?function(t,e){return n(e,t)}:rn).setName(t,"sampledBy")}(this,t,e)},m.prototype.skipUntilBy=function(t){return n=t,new((e=this)._ofSameType(sn,an))(e,n);var e,n},m.prototype.takeUntilBy=function(t){return n=t,new((e=this)._ofSameType(cn,ln))(e,n);var e,n},m.prototype.bufferBy=function(t,e){return function(t,e,n){return new(t._ofSameType(hn,dn))(t,e,n)}(this,t,e)},m.prototype.bufferWhileBy=function(t,e){return function(t,e,n){return new(t._ofSameType(_n,yn))(t,e,n)}(this,t,e)};function In(t){console&&"function"==typeof console.warn&&console.warn(t,"\nHere is an Error object for you containing the call stack:",new Error)}m.prototype.awaiting=function(t){return In("You are using deprecated .awaiting() method, see https://github.com/kefirjs/kefir/issues/145"),function(t,e){var n=Ue([it(t,mn),it(e,vn)]);return(n=F(n=Mt(n),vn)).setName(t,"awaiting")}(this,t)},m.prototype.valuesToErrors=function(t){return In("You are using deprecated .valuesToErrors() method, see https://github.com/kefirjs/kefir/issues/149"),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wn;return new(t._ofSameType(bn,xn))(t,{fn:e})}(this,t)},m.prototype.errorsToValues=function(t){return In("You are using deprecated .errorsToValues() method, see https://github.com/kefirjs/kefir/issues/149"),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:On;return new(t._ofSameType(An,Sn))(t,{fn:e})}(this,t)},m.prototype.endOnError=function(){return In("You are using deprecated .endOnError() method, see https://github.com/kefirjs/kefir/issues/150"),new((t=this)._ofSameType(jn,Dn))(t);var t};var Ln={Observable:m,Stream:g,Property:b,never:w,later:function(t,e){return new A(t,{x:e})},interval:function(t,e){return new S(t,{x:e})},sequentially:function(t,e){return 0===e.length?w():new O(t,{xs:e})},fromPoll:function(t,e){return new T(t,{fn:e})},withInterval:function(t,e){return new D(t,{fn:e})},fromCallback:function(t){var e=!1;return L((function(n){e||(t((function(t){n.emit(t),n.end()})),e=!0)})).setName("fromCallback")},fromNodeCallback:function(t){var e=!1;return L((function(n){e||(t((function(t,e){t?n.error(t):n.emit(e),n.end()})),e=!0)})).setName("fromNodeCallback")},fromEvents:function(t,e,n){for(var r=void 0,i=void 0,o=0;o<M.length;o++)if("function"==typeof t[M[o][0]]&&"function"==typeof t[M[o][1]]){r=M[o][0],i=M[o][1];break}if(void 0===r)throw new Error("target don't support any of addEventListener/removeEventListener, addListener/removeListener, on/off method pair");return function(t,e,n){return L((function(r){var i=n?function(){r.emit(function(t,e,n){var r=n?n.length:0;if(null!=e)return 0===r?t.call(e):t.apply(e,n);switch(r){case 0:return t();case 1:return t(n[0]);case 2:return t(n[0],n[1]);case 3:return t(n[0],n[1],n[2]);case 4:return t(n[0],n[1],n[2],n[3]);default:return t.apply(null,n)}}(n,this,arguments))}:function(t){r.emit(t)};return t(i),function(){return e(i)}})).setName("fromSubUnsub")}((function(n){return t[r](e,n)}),(function(n){return t[i](e,n)}),n).setName("fromEvents")},stream:L,constant:P,constantError:function(t){return new C(t)},fromPromise:function(t){var e=!1,n=L((function(n){if(!e){var r=t.then((function(t){n.emit(t),n.end()}),(function(t){n.error(t),n.end()}));r&&"function"==typeof r.done&&r.done(),e=!0}}));return F(n,null).setName("fromPromise")},fromESObservable:function(t){var e=t[z]?t[z]():t;return L((function(t){var n=e.subscribe({error:function(e){t.error(e),t.end()},next:function(e){t.emit(e)},complete:function(){t.end()}});return n.unsubscribe?function(){n.unsubscribe()}:n})).setName("fromESObservable")},combine:X,zip:Ve,merge:Ue,concat:ze,Pool:Ke,pool:function(){return new Ke},repeat:Ge,staticLand:Y};Ln.Kefir=Ln;const kn=Ln},8552:(t,e,n)=>{var r=n(852)(n(5639),"DataView");t.exports=r},1989:(t,e,n)=>{var r=n(1789),i=n(401),o=n(7667),s=n(1327),a=n(1866);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},8407:(t,e,n)=>{var r=n(7040),i=n(4125),o=n(2117),s=n(7518),a=n(4705);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},7071:(t,e,n)=>{var r=n(852)(n(5639),"Map");t.exports=r},3369:(t,e,n)=>{var r=n(4785),i=n(1285),o=n(6e3),s=n(9916),a=n(5265);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},3818:(t,e,n)=>{var r=n(852)(n(5639),"Promise");t.exports=r},8525:(t,e,n)=>{var r=n(852)(n(5639),"Set");t.exports=r},8668:(t,e,n)=>{var r=n(3369),i=n(619),o=n(2385);function s(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}s.prototype.add=s.prototype.push=i,s.prototype.has=o,t.exports=s},6384:(t,e,n)=>{var r=n(8407),i=n(7465),o=n(3779),s=n(7599),a=n(4758),u=n(4309);function c(t){var e=this.__data__=new r(t);this.size=e.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=s,c.prototype.has=a,c.prototype.set=u,t.exports=c},2705:(t,e,n)=>{var r=n(5639).Symbol;t.exports=r},1149:(t,e,n)=>{var r=n(5639).Uint8Array;t.exports=r},577:(t,e,n)=>{var r=n(852)(n(5639),"WeakMap");t.exports=r},6874:t=>{t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},7412:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},4963:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}},7443:(t,e,n)=>{var r=n(2118);t.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}},1196:t=>{t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}},4636:(t,e,n)=>{var r=n(2545),i=n(5694),o=n(1469),s=n(4144),a=n(5776),u=n(6719),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),l=!n&&i(t),f=!n&&!l&&s(t),h=!n&&!l&&!f&&u(t),d=n||l||f||h,p=d?r(t.length,String):[],_=p.length;for(var y in t)!e&&!c.call(t,y)||d&&("length"==y||f&&("offset"==y||"parent"==y)||h&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||a(y,_))||p.push(y);return p}},9932:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},2488:t=>{t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},2908:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},4865:(t,e,n)=>{var r=n(9465),i=n(7813),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var s=t[e];o.call(t,e)&&i(s,n)&&(void 0!==n||e in t)||r(t,e,n)}},8470:(t,e,n)=>{var r=n(7813);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},4037:(t,e,n)=>{var r=n(8363),i=n(3674);t.exports=function(t,e){return t&&r(e,i(e),t)}},3886:(t,e,n)=>{var r=n(8363),i=n(1704);t.exports=function(t,e){return t&&r(e,i(e),t)}},9465:(t,e,n)=>{var r=n(8777);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},9750:t=>{t.exports=function(t,e,n){return t==t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}},5990:(t,e,n)=>{var r=n(6384),i=n(7412),o=n(4865),s=n(4037),a=n(3886),u=n(4626),c=n(278),l=n(8805),f=n(1911),h=n(8234),d=n(6904),p=n(4160),_=n(3824),y=n(9148),v=n(8517),m=n(1469),g=n(4144),b=n(6688),x=n(3218),w=n(2928),E=n(3674),A=n(1704),S="[object Arguments]",O="[object Function]",T="[object Object]",j={};j[S]=j["[object Array]"]=j["[object ArrayBuffer]"]=j["[object DataView]"]=j["[object Boolean]"]=j["[object Date]"]=j["[object Float32Array]"]=j["[object Float64Array]"]=j["[object Int8Array]"]=j["[object Int16Array]"]=j["[object Int32Array]"]=j["[object Map]"]=j["[object Number]"]=j[T]=j["[object RegExp]"]=j["[object Set]"]=j["[object String]"]=j["[object Symbol]"]=j["[object Uint8Array]"]=j["[object Uint8ClampedArray]"]=j["[object Uint16Array]"]=j["[object Uint32Array]"]=!0,j["[object Error]"]=j[O]=j["[object WeakMap]"]=!1,t.exports=function t(e,n,D,I,L,k){var M,R=1&n,P=2&n,C=4&n;if(D&&(M=L?D(e,I,L,k):D(e)),void 0!==M)return M;if(!x(e))return e;var q=m(e);if(q){if(M=_(e),!R)return c(e,M)}else{var N=p(e),V=N==O||"[object GeneratorFunction]"==N;if(g(e))return u(e,R);if(N==T||N==S||V&&!L){if(M=P||V?{}:v(e),!R)return P?f(e,a(M,e)):l(e,s(M,e))}else{if(!j[N])return L?e:{};M=y(e,N,R)}}k||(k=new r);var B=k.get(e);if(B)return B;k.set(e,M),w(e)?e.forEach((function(r){M.add(t(r,n,D,r,e,k))})):b(e)&&e.forEach((function(r,i){M.set(i,t(r,n,D,i,e,k))}));var $=q?void 0:(C?P?d:h:P?A:E)(e);return i($||e,(function(r,i){$&&(r=e[i=r]),o(M,i,t(r,n,D,i,e,k))})),M}},3118:(t,e,n)=>{var r=n(3218),i=Object.create,o=function(){function t(){}return function(e){if(!r(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=o},9881:(t,e,n)=>{var r=n(7816),i=n(9291)(r);t.exports=i},760:(t,e,n)=>{var r=n(9881);t.exports=function(t,e){var n=[];return r(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}},1848:t=>{t.exports=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}},1078:(t,e,n)=>{var r=n(2488),i=n(7285);t.exports=function t(e,n,o,s,a){var u=-1,c=e.length;for(o||(o=i),a||(a=[]);++u<c;){var l=e[u];n>0&&o(l)?n>1?t(l,n-1,o,s,a):r(a,l):s||(a[a.length]=l)}return a}},8483:(t,e,n)=>{var r=n(5063)();t.exports=r},7816:(t,e,n)=>{var r=n(8483),i=n(3674);t.exports=function(t,e){return t&&r(t,e,i)}},7786:(t,e,n)=>{var r=n(1811),i=n(327);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n<o;)t=t[i(e[n++])];return n&&n==o?t:void 0}},8866:(t,e,n)=>{var r=n(2488),i=n(1469);t.exports=function(t,e,n){var o=e(t);return i(t)?o:r(o,n(t))}},4239:(t,e,n)=>{var r=n(2705),i=n(9607),o=n(2333),s=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?i(t):o(t)}},8565:t=>{var e=Object.prototype.hasOwnProperty;t.exports=function(t,n){return null!=t&&e.call(t,n)}},13:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},2118:(t,e,n)=>{var r=n(1848),i=n(2722),o=n(2351);t.exports=function(t,e,n){return e==e?o(t,e,n):r(t,i,n)}},7556:(t,e,n)=>{var r=n(8668),i=n(7443),o=n(1196),s=n(9932),a=n(1717),u=n(4757),c=Math.min;t.exports=function(t,e,n){for(var l=n?o:i,f=t[0].length,h=t.length,d=h,p=Array(h),_=1/0,y=[];d--;){var v=t[d];d&&e&&(v=s(v,a(e))),_=c(v.length,_),p[d]=!n&&(e||f>=120&&v.length>=120)?new r(d&&v):void 0}v=t[0];var m=-1,g=p[0];t:for(;++m<f&&y.length<_;){var b=v[m],x=e?e(b):b;if(b=n||0!==b?b:0,!(g?u(g,x):l(y,x,n))){for(d=h;--d;){var w=p[d];if(!(w?u(w,x):l(t[d],x,n)))continue t}g&&g.push(x),y.push(b)}}return y}},9454:(t,e,n)=>{var r=n(4239),i=n(7005);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},939:(t,e,n)=>{var r=n(2492),i=n(7005);t.exports=function t(e,n,o,s,a){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,o,s,t,a))}},2492:(t,e,n)=>{var r=n(6384),i=n(7114),o=n(8351),s=n(6096),a=n(4160),u=n(1469),c=n(4144),l=n(6719),f="[object Arguments]",h="[object Array]",d="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,_,y,v){var m=u(t),g=u(e),b=m?h:a(t),x=g?h:a(e),w=(b=b==f?d:b)==d,E=(x=x==f?d:x)==d,A=b==x;if(A&&c(t)){if(!c(e))return!1;m=!0,w=!1}if(A&&!w)return v||(v=new r),m||l(t)?i(t,e,n,_,y,v):o(t,e,b,n,_,y,v);if(!(1&n)){var S=w&&p.call(t,"__wrapped__"),O=E&&p.call(e,"__wrapped__");if(S||O){var T=S?t.value():t,j=O?e.value():e;return v||(v=new r),y(T,j,n,_,v)}}return!!A&&(v||(v=new r),s(t,e,n,_,y,v))}},5588:(t,e,n)=>{var r=n(4160),i=n(7005);t.exports=function(t){return i(t)&&"[object Map]"==r(t)}},2958:(t,e,n)=>{var r=n(6384),i=n(939);t.exports=function(t,e,n,o){var s=n.length,a=s,u=!o;if(null==t)return!a;for(t=Object(t);s--;){var c=n[s];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++s<a;){var l=(c=n[s])[0],f=t[l],h=c[1];if(u&&c[2]){if(void 0===f&&!(l in t))return!1}else{var d=new r;if(o)var p=o(f,h,l,t,e,d);if(!(void 0===p?i(h,f,3,o,d):p))return!1}}return!0}},2722:t=>{t.exports=function(t){return t!=t}},8458:(t,e,n)=>{var r=n(3560),i=n(5346),o=n(3218),s=n(346),a=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,f=c.hasOwnProperty,h=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?h:a).test(s(t))}},9221:(t,e,n)=>{var r=n(4160),i=n(7005);t.exports=function(t){return i(t)&&"[object Set]"==r(t)}},8749:(t,e,n)=>{var r=n(4239),i=n(1780),o=n(7005),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!s[r(t)]}},7206:(t,e,n)=>{var r=n(1573),i=n(6432),o=n(6557),s=n(1469),a=n(9601);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?s(t)?i(t[0],t[1]):r(t):a(t)}},280:(t,e,n)=>{var r=n(5726),i=n(6916),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},313:(t,e,n)=>{var r=n(3218),i=n(5726),o=n(3498),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=i(t),n=[];for(var a in t)("constructor"!=a||!e&&s.call(t,a))&&n.push(a);return n}},9199:(t,e,n)=>{var r=n(9881),i=n(8612);t.exports=function(t,e){var n=-1,o=i(t)?Array(t.length):[];return r(t,(function(t,r,i){o[++n]=e(t,r,i)})),o}},1573:(t,e,n)=>{var r=n(2958),i=n(1499),o=n(2634);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},6432:(t,e,n)=>{var r=n(939),i=n(7361),o=n(9095),s=n(5403),a=n(9162),u=n(2634),c=n(327);t.exports=function(t,e){return s(t)&&a(e)?u(c(t),e):function(n){var s=i(n,t);return void 0===s&&s===e?o(n,t):r(e,s,3)}}},2689:(t,e,n)=>{var r=n(9932),i=n(7786),o=n(7206),s=n(9199),a=n(1131),u=n(1717),c=n(5022),l=n(6557),f=n(1469);t.exports=function(t,e,n){e=e.length?r(e,(function(t){return f(t)?function(e){return i(e,1===t.length?t[0]:t)}:t})):[l];var h=-1;e=r(e,u(o));var d=s(t,(function(t,n,i){return{criteria:r(e,(function(e){return e(t)})),index:++h,value:t}}));return a(d,(function(t,e){return c(t,e,n)}))}},371:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},9152:(t,e,n)=>{var r=n(7786);t.exports=function(t){return function(e){return r(e,t)}}},8674:t=>{t.exports=function(t){return function(e){return null==t?void 0:t[e]}}},5976:(t,e,n)=>{var r=n(6557),i=n(5357),o=n(61);t.exports=function(t,e){return o(i(t,e,r),t+"")}},6560:(t,e,n)=>{var r=n(5703),i=n(8777),o=n(6557),s=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;t.exports=s},1131:t=>{t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},2545:t=>{t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},531:(t,e,n)=>{var r=n(2705),i=n(9932),o=n(1469),s=n(3448),a=r?r.prototype:void 0,u=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(s(e))return u?u.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},7561:(t,e,n)=>{var r=n(7990),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},1717:t=>{t.exports=function(t){return function(e){return t(e)}}},7415:(t,e,n)=>{var r=n(9932);t.exports=function(t,e){return r(e,(function(e){return t[e]}))}},4757:t=>{t.exports=function(t,e){return t.has(e)}},4387:(t,e,n)=>{var r=n(9246);t.exports=function(t){return r(t)?t:[]}},4290:(t,e,n)=>{var r=n(6557);t.exports=function(t){return"function"==typeof t?t:r}},1811:(t,e,n)=>{var r=n(1469),i=n(5403),o=n(5514),s=n(9833);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:o(s(t))}},4318:(t,e,n)=>{var r=n(1149);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},4626:(t,e,n)=>{t=n.nmd(t);var r=n(5639),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,s=o&&o.exports===i?r.Buffer:void 0,a=s?s.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=a?a(n):new t.constructor(n);return t.copy(r),r}},7157:(t,e,n)=>{var r=n(4318);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},3147:t=>{var e=/\w*$/;t.exports=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}},419:(t,e,n)=>{var r=n(2705),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;t.exports=function(t){return o?Object(o.call(t)):{}}},7133:(t,e,n)=>{var r=n(4318);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},6393:(t,e,n)=>{var r=n(3448);t.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,o=t==t,s=r(t),a=void 0!==e,u=null===e,c=e==e,l=r(e);if(!u&&!l&&!s&&t>e||s&&a&&c&&!u&&!l||i&&a&&c||!n&&c||!o)return 1;if(!i&&!s&&!l&&t<e||l&&n&&o&&!i&&!s||u&&n&&o||!a&&o||!c)return-1}return 0}},5022:(t,e,n)=>{var r=n(6393);t.exports=function(t,e,n){for(var i=-1,o=t.criteria,s=e.criteria,a=o.length,u=n.length;++i<a;){var c=r(o[i],s[i]);if(c)return i>=u?c:c*("desc"==n[i]?-1:1)}return t.index-e.index}},278:t=>{t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},8363:(t,e,n)=>{var r=n(4865),i=n(9465);t.exports=function(t,e,n,o){var s=!n;n||(n={});for(var a=-1,u=e.length;++a<u;){var c=e[a],l=o?o(n[c],t[c],c,n,t):void 0;void 0===l&&(l=t[c]),s?i(n,c,l):r(n,c,l)}return n}},8805:(t,e,n)=>{var r=n(8363),i=n(9551);t.exports=function(t,e){return r(t,i(t),e)}},1911:(t,e,n)=>{var r=n(8363),i=n(1442);t.exports=function(t,e){return r(t,i(t),e)}},4429:(t,e,n)=>{var r=n(5639)["__core-js_shared__"];t.exports=r},9291:(t,e,n)=>{var r=n(8612);t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var o=n.length,s=e?o:-1,a=Object(n);(e?s--:++s<o)&&!1!==i(a[s],s,a););return n}}},5063:t=>{t.exports=function(t){return function(e,n,r){for(var i=-1,o=Object(e),s=r(e),a=s.length;a--;){var u=s[t?a:++i];if(!1===n(o[u],u,o))break}return e}}},7740:(t,e,n)=>{var r=n(7206),i=n(8612),o=n(3674);t.exports=function(t){return function(e,n,s){var a=Object(e);if(!i(e)){var u=r(n,3);e=o(e),n=function(t){return u(a[t],t,a)}}var c=t(e,n,s);return c>-1?a[u?e[c]:c]:void 0}}},8777:(t,e,n)=>{var r=n(852),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},7114:(t,e,n)=>{var r=n(8668),i=n(2908),o=n(4757);t.exports=function(t,e,n,s,a,u){var c=1&n,l=t.length,f=e.length;if(l!=f&&!(c&&f>l))return!1;var h=u.get(t),d=u.get(e);if(h&&d)return h==e&&d==t;var p=-1,_=!0,y=2&n?new r:void 0;for(u.set(t,e),u.set(e,t);++p<l;){var v=t[p],m=e[p];if(s)var g=c?s(m,v,p,e,t,u):s(v,m,p,t,e,u);if(void 0!==g){if(g)continue;_=!1;break}if(y){if(!i(e,(function(t,e){if(!o(y,e)&&(v===t||a(v,t,n,s,u)))return y.push(e)}))){_=!1;break}}else if(v!==m&&!a(v,m,n,s,u)){_=!1;break}}return u.delete(t),u.delete(e),_}},8351:(t,e,n)=>{var r=n(2705),i=n(1149),o=n(7813),s=n(7114),a=n(8776),u=n(1814),c=r?r.prototype:void 0,l=c?c.valueOf:void 0;t.exports=function(t,e,n,r,c,f,h){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!f(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var d=a;case"[object Set]":var p=1&r;if(d||(d=u),t.size!=e.size&&!p)return!1;var _=h.get(t);if(_)return _==e;r|=2,h.set(t,e);var y=s(d(t),d(e),r,c,f,h);return h.delete(t),y;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},6096:(t,e,n)=>{var r=n(8234),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,s,a){var u=1&n,c=r(t),l=c.length;if(l!=r(e).length&&!u)return!1;for(var f=l;f--;){var h=c[f];if(!(u?h in e:i.call(e,h)))return!1}var d=a.get(t),p=a.get(e);if(d&&p)return d==e&&p==t;var _=!0;a.set(t,e),a.set(e,t);for(var y=u;++f<l;){var v=t[h=c[f]],m=e[h];if(o)var g=u?o(m,v,h,e,t,a):o(v,m,h,t,e,a);if(!(void 0===g?v===m||s(v,m,n,o,a):g)){_=!1;break}y||(y="constructor"==h)}if(_&&!y){var b=t.constructor,x=e.constructor;b==x||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x||(_=!1)}return a.delete(t),a.delete(e),_}},9464:(t,e,n)=>{var r=n(8674)({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});t.exports=r},1957:(t,e,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},8234:(t,e,n)=>{var r=n(8866),i=n(9551),o=n(3674);t.exports=function(t){return r(t,o,i)}},6904:(t,e,n)=>{var r=n(8866),i=n(1442),o=n(1704);t.exports=function(t){return r(t,o,i)}},5050:(t,e,n)=>{var r=n(7019);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},1499:(t,e,n)=>{var r=n(9162),i=n(3674);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],s=t[o];e[n]=[o,s,r(s)]}return e}},852:(t,e,n)=>{var r=n(8458),i=n(7801);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},5924:(t,e,n)=>{var r=n(5569)(Object.getPrototypeOf,Object);t.exports=r},9607:(t,e,n)=>{var r=n(2705),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(t){}var i=s.call(t);return r&&(e?t[a]=n:delete t[a]),i}},9551:(t,e,n)=>{var r=n(4963),i=n(479),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(t){return null==t?[]:(t=Object(t),r(s(t),(function(e){return o.call(t,e)})))}:i;t.exports=a},1442:(t,e,n)=>{var r=n(2488),i=n(5924),o=n(9551),s=n(479),a=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,o(t)),t=i(t);return e}:s;t.exports=a},4160:(t,e,n)=>{var r=n(8552),i=n(7071),o=n(3818),s=n(8525),a=n(577),u=n(4239),c=n(346),l="[object Map]",f="[object Promise]",h="[object Set]",d="[object WeakMap]",p="[object DataView]",_=c(r),y=c(i),v=c(o),m=c(s),g=c(a),b=u;(r&&b(new r(new ArrayBuffer(1)))!=p||i&&b(new i)!=l||o&&b(o.resolve())!=f||s&&b(new s)!=h||a&&b(new a)!=d)&&(b=function(t){var e=u(t),n="[object Object]"==e?t.constructor:void 0,r=n?c(n):"";if(r)switch(r){case _:return p;case y:return l;case v:return f;case m:return h;case g:return d}return e}),t.exports=b},7801:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},222:(t,e,n)=>{var r=n(1811),i=n(5694),o=n(1469),s=n(5776),a=n(1780),u=n(327);t.exports=function(t,e,n){for(var c=-1,l=(e=r(e,t)).length,f=!1;++c<l;){var h=u(e[c]);if(!(f=null!=t&&n(t,h)))break;t=t[h]}return f||++c!=l?f:!!(l=null==t?0:t.length)&&a(l)&&s(h,l)&&(o(t)||i(t))}},1789:(t,e,n)=>{var r=n(4536);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},401:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},7667:(t,e,n)=>{var r=n(4536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},1327:(t,e,n)=>{var r=n(4536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},1866:(t,e,n)=>{var r=n(4536);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},3824:t=>{var e=Object.prototype.hasOwnProperty;t.exports=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},9148:(t,e,n)=>{var r=n(4318),i=n(7157),o=n(3147),s=n(419),a=n(7133);t.exports=function(t,e,n){var u=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new u(+t);case"[object DataView]":return i(t,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 a(t,n);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(t);case"[object RegExp]":return o(t);case"[object Symbol]":return s(t)}}},8517:(t,e,n)=>{var r=n(3118),i=n(5924),o=n(5726);t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:r(i(t))}},7285:(t,e,n)=>{var r=n(2705),i=n(5694),o=n(1469),s=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(s&&t&&t[s])}},5776:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},6612:(t,e,n)=>{var r=n(7813),i=n(8612),o=n(5776),s=n(3218);t.exports=function(t,e,n){if(!s(n))return!1;var a=typeof e;return!!("number"==a?i(n)&&o(e,n.length):"string"==a&&e in n)&&r(n[e],t)}},5403:(t,e,n)=>{var r=n(1469),i=n(3448),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||s.test(t)||!o.test(t)||null!=e&&t in Object(e)}},7019:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},5346:(t,e,n)=>{var r,i=n(4429),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},5726:t=>{var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},9162:(t,e,n)=>{var r=n(3218);t.exports=function(t){return t==t&&!r(t)}},7040:t=>{t.exports=function(){this.__data__=[],this.size=0}},4125:(t,e,n)=>{var r=n(8470),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():i.call(e,n,1),--this.size,0))}},2117:(t,e,n)=>{var r=n(8470);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},7518:(t,e,n)=>{var r=n(8470);t.exports=function(t){return r(this.__data__,t)>-1}},4705:(t,e,n)=>{var r=n(8470);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},4785:(t,e,n)=>{var r=n(1989),i=n(8407),o=n(7071);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},1285:(t,e,n)=>{var r=n(5050);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},6e3:(t,e,n)=>{var r=n(5050);t.exports=function(t){return r(this,t).get(t)}},9916:(t,e,n)=>{var r=n(5050);t.exports=function(t){return r(this,t).has(t)}},5265:(t,e,n)=>{var r=n(5050);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},8776:t=>{t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},2634:t=>{t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},4523:(t,e,n)=>{var r=n(8306);t.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},4536:(t,e,n)=>{var r=n(852)(Object,"create");t.exports=r},6916:(t,e,n)=>{var r=n(5569)(Object.keys,Object);t.exports=r},3498:t=>{t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},1167:(t,e,n)=>{t=n.nmd(t);var r=n(1957),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,s=o&&o.exports===i&&r.process,a=function(){try{return o&&o.require&&o.require("util").types||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=a},2333:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:t=>{t.exports=function(t,e){return function(n){return t(e(n))}}},5357:(t,e,n)=>{var r=n(6874),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,s=-1,a=i(o.length-e,0),u=Array(a);++s<a;)u[s]=o[e+s];s=-1;for(var c=Array(e+1);++s<e;)c[s]=o[s];return c[e]=n(u),r(t,this,c)}}},5639:(t,e,n)=>{var r=n(1957),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},619:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},2385:t=>{t.exports=function(t){return this.__data__.has(t)}},1814:t=>{t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},61:(t,e,n)=>{var r=n(6560),i=n(1275)(r);t.exports=i},1275:t=>{var e=Date.now;t.exports=function(t){var n=0,r=0;return function(){var i=e(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},7465:(t,e,n)=>{var r=n(8407);t.exports=function(){this.__data__=new r,this.size=0}},3779:t=>{t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},7599:t=>{t.exports=function(t){return this.__data__.get(t)}},4758:t=>{t.exports=function(t){return this.__data__.has(t)}},4309:(t,e,n)=>{var r=n(8407),i=n(7071),o=n(3369);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<199)return s.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(t,e),this.size=n.size,this}},2351:t=>{t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}},5514:(t,e,n)=>{var r=n(4523),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}));t.exports=s},327:(t,e,n)=>{var r=n(3448);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},346:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},7990:t=>{var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},9567:(t,e,n)=>{var r=n(554);t.exports=function(t,e){var n;if("function"!=typeof e)throw new TypeError("Expected a function");return t=r(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}},6678:(t,e,n)=>{var r=n(5990);t.exports=function(t){return r(t,4)}},5703:t=>{t.exports=function(t){return function(){return t}}},6073:(t,e,n)=>{t.exports=n(4486)},7813:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},1675:(t,e,n)=>{var r=n(9464),i=n(9833),o=/[&<>"']/g,s=RegExp(o.source);t.exports=function(t){return(t=i(t))&&s.test(t)?t.replace(o,r):t}},3105:(t,e,n)=>{var r=n(4963),i=n(760),o=n(7206),s=n(1469);t.exports=function(t,e){return(s(t)?r:i)(t,o(e,3))}},3311:(t,e,n)=>{var r=n(7740)(n(998));t.exports=r},998:(t,e,n)=>{var r=n(1848),i=n(7206),o=n(554),s=Math.max;t.exports=function(t,e,n){var a=null==t?0:t.length;if(!a)return-1;var u=null==n?0:o(n);return u<0&&(u=s(a+u,0)),r(t,i(e,3),u)}},5564:(t,e,n)=>{var r=n(1078);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},4486:(t,e,n)=>{var r=n(7412),i=n(9881),o=n(4290),s=n(1469);t.exports=function(t,e){return(s(t)?r:i)(t,o(e))}},7361:(t,e,n)=>{var r=n(7786);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},8721:(t,e,n)=>{var r=n(8565),i=n(222);t.exports=function(t,e){return null!=t&&i(t,e,r)}},9095:(t,e,n)=>{var r=n(13),i=n(222);t.exports=function(t,e){return null!=t&&i(t,e,r)}},6557:t=>{t.exports=function(t){return t}},4721:(t,e,n)=>{var r=n(2118),i=n(8612),o=n(7037),s=n(554),a=n(2628),u=Math.max;t.exports=function(t,e,n,c){t=i(t)?t:a(t),n=n&&!c?s(n):0;var l=t.length;return n<0&&(n=u(l+n,0)),o(t)?n<=l&&t.indexOf(e,n)>-1:!!l&&r(t,e,n)>-1}},5325:(t,e,n)=>{var r=n(9932),i=n(7556),o=n(5976),s=n(4387),a=o((function(t){var e=r(t,s);return e.length&&e[0]===t[0]?i(e):[]}));t.exports=a},5694:(t,e,n)=>{var r=n(9454),i=n(7005),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&s.call(t,"callee")&&!a.call(t,"callee")};t.exports=u},1469:t=>{var e=Array.isArray;t.exports=e},8612:(t,e,n)=>{var r=n(3560),i=n(1780);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},9246:(t,e,n)=>{var r=n(8612),i=n(7005);t.exports=function(t){return i(t)&&r(t)}},4144:(t,e,n)=>{t=n.nmd(t);var r=n(5639),i=n(5062),o=e&&!e.nodeType&&e,s=o&&t&&!t.nodeType&&t,a=s&&s.exports===o?r.Buffer:void 0,u=(a?a.isBuffer:void 0)||i;t.exports=u},3560:(t,e,n)=>{var r=n(4239),i=n(3218);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1780:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},6688:(t,e,n)=>{var r=n(5588),i=n(1717),o=n(1167),s=o&&o.isMap,a=s?i(s):r;t.exports=a},3218:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},2928:(t,e,n)=>{var r=n(9221),i=n(1717),o=n(1167),s=o&&o.isSet,a=s?i(s):r;t.exports=a},7037:(t,e,n)=>{var r=n(4239),i=n(1469),o=n(7005);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},3448:(t,e,n)=>{var r=n(4239),i=n(7005);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},6719:(t,e,n)=>{var r=n(8749),i=n(1717),o=n(1167),s=o&&o.isTypedArray,a=s?i(s):r;t.exports=a},3674:(t,e,n)=>{var r=n(4636),i=n(280),o=n(8612);t.exports=function(t){return o(t)?r(t):i(t)}},1704:(t,e,n)=>{var r=n(4636),i=n(313),o=n(8612);t.exports=function(t){return o(t)?r(t,!0):i(t)}},928:t=>{t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},8306:(t,e,n)=>{var r=n(3369);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},308:t=>{t.exports=function(){}},1463:(t,e,n)=>{var r=n(9567);t.exports=function(t){return r(2,t)}},9601:(t,e,n)=>{var r=n(371),i=n(9152),o=n(5403),s=n(327);t.exports=function(t){return o(t)?r(s(t)):i(t)}},9734:(t,e,n)=>{var r=n(1078),i=n(2689),o=n(5976),s=n(6612),a=o((function(t,e){if(null==t)return[];var n=e.length;return n>1&&s(t,e[0],e[1])?e=[]:n>2&&s(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])}));t.exports=a},240:(t,e,n)=>{var r=n(9750),i=n(531),o=n(554),s=n(9833);t.exports=function(t,e,n){return t=s(t),n=null==n?0:r(o(n),0,t.length),e=i(e),t.slice(n,n+e.length)==e}},479:t=>{t.exports=function(){return[]}},5062:t=>{t.exports=function(){return!1}},8601:(t,e,n)=>{var r=n(4841);t.exports=function(t){return t?Infinity===(t=r(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},554:(t,e,n)=>{var r=n(8601);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},4841:(t,e,n)=>{var r=n(7561),i=n(3218),o=n(3448),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=a.test(t);return n||u.test(t)?c(t.slice(2),n?2:8):s.test(t)?NaN:+t}},9833:(t,e,n)=>{var r=n(531);t.exports=function(t){return null==t?"":r(t)}},2628:(t,e,n)=>{var r=n(7415),i=n(3674);t.exports=function(t){return null==t?[]:r(t,i(t))}},5936:(t,e,n)=>{"use strict";e.__esModule=!0,e.default=function(t,e){if(i)return i.call(t,e);var n=t.parentNode;if(n&&"function"==typeof n.querySelectorAll)for(var r=n.querySelectorAll(e),o=0;o<r.length;o++)if(r[o]===t)return!0;return!1};var r=n.g.Element&&n.g.Element.prototype,i=r&&(r.matches||r.matchesSelector||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector);t.exports=e.default,t.exports.default=e.default},7418:t=>{"use strict";var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,i){for(var o,s,a=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),u=1;u<arguments.length;u++){for(var c in o=Object(arguments[u]))n.call(o,c)&&(a[c]=o[c]);if(e){s=e(o);for(var l=0;l<s.length;l++)r.call(o,s[l])&&(a[s[l]]=o[s[l]])}}return a}},443:(t,e)=>{"use strict";e.Z=function(t,e){return new Promise((function(n){setTimeout((function(){n(e)}),t)}))}},4155:t=>{var e,n,r=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(t){n=o}}();var a,u=[],c=!1,l=-1;function f(){c&&a&&(c=!1,a.length?u=a.concat(u):l=-1,u.length&&h())}function h(){if(!c){var t=s(f);c=!0;for(var e=u.length;e;){for(a=u,u=[];++l<e;)a&&a[l].run();l=-1,e=u.length}a=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{return n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function p(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new d(t,e)),1!==u.length||c||s(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=p,r.addListener=p,r.once=p,r.off=p,r.removeListener=p,r.removeAllListeners=p,r.emit=p,r.prependListener=p,r.prependOnceListener=p,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},2587:t=>{"use strict";function e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,n,r,i){n=n||"&",r=r||"=";var o={};if("string"!=typeof t||0===t.length)return o;var s=/\+/g;t=t.split(n);var a=1e3;i&&"number"==typeof i.maxKeys&&(a=i.maxKeys);var u=t.length;a>0&&u>a&&(u=a);for(var c=0;c<u;++c){var l,f,h,d,p=t[c].replace(s,"%20"),_=p.indexOf(r);_>=0?(l=p.substr(0,_),f=p.substr(_+1)):(l=p,f=""),h=decodeURIComponent(l),d=decodeURIComponent(f),e(o,h)?Array.isArray(o[h])?o[h].push(d):o[h]=[o[h],d]:o[h]=d}return o}},2361:t=>{"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,n,r,i){return n=n||"&",r=r||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map((function(i){var o=encodeURIComponent(e(i))+r;return Array.isArray(t[i])?t[i].map((function(t){return o+encodeURIComponent(e(t))})).join(n):o+encodeURIComponent(e(t[i]))})).join(n):i?encodeURIComponent(e(i))+r+encodeURIComponent(e(t)):""}},7673:(t,e,n)=>{"use strict";e.decode=e.parse=n(2587),e.encode=e.stringify=n(2361)},1095:t=>{var e={iterator:"undefined"!=typeof Symbol?Symbol.iterator:"@@iterator"};function n(t,e){throw new Error("don't know how to "+t+" collection: "+e)}function r(t,n){return"iterator"===n?t[e.iterator]||t.next:t[e[n]]}function i(t){var n=t[e.iterator];return n?n.call(t):t.next?t:u(t)?new o(t):l(t)?new s(t):void 0}function o(t){this.arr=t,this.index=0}function s(t){this.obj=t,this.keys=Object.keys(t),this.index=0}o.prototype.next=function(){return this.index<this.arr.length?{value:this.arr[this.index++],done:!1}:{done:!0}},s.prototype.next=function(){if(this.index<this.keys.length){var t=this.keys[this.index++];return{value:[t,this.obj[t]],done:!1}}return{done:!0}};var a=Object.prototype.toString,u="function"==typeof Array.isArray?Array.isArray:function(t){return"[object Array]"==a.call(t)};function c(t){return"function"==typeof t}function l(t){return t instanceof Object&&Object.getPrototypeOf(t)===Object.getPrototypeOf({})}function f(t){return"number"==typeof t}function h(t){this["@@transducer/reduced"]=!0,this["@@transducer/value"]=t}function d(t){return t instanceof h||t&&t["@@transducer/reduced"]}function p(t){return t["@@transducer/value"]}function _(t){return d(t)?p(t):t}function y(t,e,o){if(u(t)){for(var s=o,a=-1,c=t.length;++a<c;)if(d(s=e["@@transducer/step"](s,t[a]))){s=p(s);break}return e["@@transducer/result"](s)}if(l(t)||r(t,"iterator")){s=o;for(var f=i(t),h=f.next();!h.done;){if(d(s=e["@@transducer/step"](s,h.value))){s=p(s);break}h=f.next()}return e["@@transducer/result"](s)}n("iterate",t)}function v(t,e,n,r){return e=e(n),void 0===r&&(r=e["@@transducer/init"]()),y(t,e,r)}function m(){var t=Array.prototype.slice.call(arguments);return function(e){for(var n=e,r=t.length-1;r>=0;r--)n=t[r](n);return n}}function g(t,e,n){if(!e)return t;switch(n=null!=n?n:1){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};default:return t.bind(e)}}function b(t,e){this.xform=e,this.f=t}function x(t,e,n){return c(t)&&(n=e,e=t,t=null),e=g(e,n),t?u(t)?function(t,e,n){var r=-1,i=t.length,o=Array(i);for(e=g(e,n,2);++r<i;)o[r]=e(t[r],r);return o}(t,e,n):$(t,x(e)):function(t){return new b(e,t)}}function w(t,e){this.xform=e,this.f=t}function E(t,e,n){return c(t)&&(n=e,e=t,t=null),e=g(e,n),t?u(t)?function(t,e,n){var r=t.length,i=[];e=g(e,n,2);for(var o=0;o<r;o++)e(t[o],o)&&i.push(t[o]);return i}(t,e,n):$(t,E(e)):function(t){return new w(e,t)}}function A(t){this.xform=t,this.last=void 0}function S(t,e){this.xform=e,this.f=t}function O(t,e){this.n=t,this.i=0,this.xform=e}function T(t,e){this.n=t,this.i=0,this.xform=e}function j(t,e){this.xform=e,this.f=t,this.dropping=!0}function D(t,e){this.n=t,this.i=0,this.xform=e,this.part=new Array(t)}b.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},b.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},b.prototype["@@transducer/step"]=function(t,e){return this.xform["@@transducer/step"](t,this.f(e))},w.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},w.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},w.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xform["@@transducer/step"](t,e):t},A.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},A.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},A.prototype["@@transducer/step"]=function(t,e){return e!==this.last?(this.last=e,this.xform["@@transducer/step"](t,e)):t},S.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},S.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},S.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xform["@@transducer/step"](t,e):new h(t)},O.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},O.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},O.prototype["@@transducer/step"]=function(t,e){var n;return this.i<this.n&&(t=this.xform["@@transducer/step"](t,e),this.i+1>=this.n&&(t=d(n=t)?n:new h(n))),this.i++,t},T.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},T.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},T.prototype["@@transducer/step"]=function(t,e){return this.i++<this.n?t:this.xform["@@transducer/step"](t,e)},j.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},j.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},j.prototype["@@transducer/step"]=function(t,e){if(this.dropping){if(this.f(e))return t;this.dropping=!1}return this.xform["@@transducer/step"](t,e)},D.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},D.prototype["@@transducer/result"]=function(t){return this.i>0?_(this.xform["@@transducer/step"](t,this.part.slice(0,this.i))):this.xform["@@transducer/result"](t)},D.prototype["@@transducer/step"]=function(t,e){if(this.part[this.i]=e,this.i+=1,this.i===this.n){var n=this.part.slice(0,this.n);return this.part=new Array(this.n),this.i=0,this.xform["@@transducer/step"](t,n)}return t};var I={};function L(t,e){this.f=t,this.xform=e,this.part=[],this.last=I}function k(t,e){this.sep=t,this.xform=e,this.started=!1}function M(t,e){this.xform=e,this.n=t}function R(t,e){this.xform=e,this.n=t,this.i=-1}function P(t){this.xform=t}function C(t){return new P(t)}function q(t,e){return t.push(e),t}function N(t,e){if(u(e)&&2===e.length)t[e[0]]=e[1];else for(var n=Object.keys(e),r=n.length,i=0;i<r;i++)t[n[i]]=e[n[i]];return t}L.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},L.prototype["@@transducer/result"]=function(t){var e=this.part.length;return e>0?_(this.xform["@@transducer/step"](t,this.part.slice(0,e))):this.xform["@@transducer/result"](t)},L.prototype["@@transducer/step"]=function(t,e){var n=this.f(e);return n===this.last||this.last===I?this.part.push(e):(t=this.xform["@@transducer/step"](t,this.part),this.part=[e]),this.last=n,t},k.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},k.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},k.prototype["@@transducer/step"]=function(t,e){if(this.started){var n=this.xform["@@transducer/step"](t,this.sep);return d(n)?n:this.xform["@@transducer/step"](n,e)}return this.started=!0,this.xform["@@transducer/step"](t,e)},M.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},M.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},M.prototype["@@transducer/step"]=function(t,e){for(var n=this.n,r=t,i=0;i<n&&!d(r=this.xform["@@transducer/step"](r,e));i++);return r},R.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},R.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},R.prototype["@@transducer/step"]=function(t,e){return this.i+=1,this.i%this.n==0?this.xform["@@transducer/step"](t,e):t},P.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},P.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},P.prototype["@@transducer/step"]=function(t,e){var n=this.xform,r={"@@transducer/init":function(){return n["@@transducer/init"]()},"@@transducer/result":function(t){return t},"@@transducer/step":function(t,e){var r=n["@@transducer/step"](t,e);return d(r)?p(r):r}};return y(e,r,t)};var V={"@@transducer/init":function(){return[]},"@@transducer/result":function(t){return t}};V["@@transducer/step"]=q;var B={};function $(t,e){return u(t)?v(t,e,V,[]):l(t)?v(t,e,B,{}):t["@@transducer/step"]?(i=t["@@transducer/init"]?t["@@transducer/init"]():new t.constructor,v(t,e,t,i)):r(t,"iterator")?new H(e,t):void n("sequence",t);var i}B["@@transducer/init"]=function(){return{}},B["@@transducer/result"]=function(t){return t},B["@@transducer/step"]=N;var F={};function U(t,e){this.xform=t(F),this.iter=e}function H(t,e){this.iter=i(e),this.items=[],this.stepper=new U(t,i(e))}F["@@transducer/result"]=function(t){return d(t)?p(t):t},F["@@transducer/step"]=function(t,e){return t.items.push(e),t.rest},U.prototype["@@transducer/step"]=function(t){for(var e=t.items.length;t.items.length===e;){var n=this.iter.next();if(n.done||d(n.value)){this.xform["@@transducer/result"](this);break}this.xform["@@transducer/step"](t,n.value)}},H.prototype[e.iterator]=function(){return this},H.prototype.next=function(){return this["@@transducer/step"](),this.items.length?{value:this.items.pop(),done:!1}:{done:!0}},H.prototype["@@transducer/step"]=function(){this.items.length||this.stepper["@@transducer/step"](this)},t.exports={reduce:y,transformer:function(t){var e={"@@transducer/init":function(){throw new Error("init value unavailable")},"@@transducer/result":function(t){return t}};return e["@@transducer/step"]=t,e},Reduced:h,isReduced:d,iterator:i,push:q,merge:N,transduce:v,seq:$,toArray:function(t,e){return e?v(t,e,V,[]):y(t,V,[])},toObj:function(t,e){return e?v(t,e,B,{}):y(t,B,{})},toIter:function(t,e){return e?new H(e,t):i(t)},into:function(t,e,r){return u(t)?v(r,e,V,t):l(t)?v(r,e,B,t):t["@@transducer/step"]?v(r,e,t,t):void n("into",t)},compose:m,map:x,filter:E,remove:function(t,e,n){return c(t)&&(n=e,e=t,t=null),e=g(e,n),E(t,(function(t){return!e(t)}))},cat:C,mapcat:function(t,e){return m(x(t=g(t,e)),C)},keep:function(t){return E(t,(function(t){return null!=t}))},dedupe:function t(e){return e?$(e,t()):function(t){return new A(t)}},take:function t(e,n){return f(e)&&(n=e,e=null),e?$(e,t(n)):function(t){return new O(n,t)}},takeWhile:function t(e,n,r){return c(e)&&(r=n,n=e,e=null),n=g(n,r),e?$(e,t(n)):function(t){return new S(n,t)}},takeNth:function t(e,n){return 1===arguments.length?(n=e,function(t){return new R(n,t)}):$(e,t(n))},drop:function t(e,n){return f(e)&&(n=e,e=null),e?$(e,t(n)):function(t){return new T(n,t)}},dropWhile:function t(e,n,r){return c(e)&&(r=n,n=e,e=null),n=g(n,r),e?$(e,t(n)):function(t){return new j(n,t)}},partition:function t(e,n){return f(e)&&(n=e,e=null),e?$(e,t(n)):function(t){return new D(n,t)}},partitionBy:function t(e,n,r){return c(e)&&(r=n,n=e,e=null),n=g(n,r),e?$(e,t(n)):function(t){return new L(n,t)}},interpose:function t(e,n){return 1===arguments.length?(n=e,function(t){return new k(n,t)}):$(e,t(n))},repeat:function t(e,n){return 1===arguments.length?(n=e,function(t){return new M(n,t)}):$(e,t(n))},range:function(t){for(var e=new Array(t),n=0;n<e.length;n++)e[n]=n;return e},LazyTransformer:H}},1010:(t,e,n)=>{"use strict";e.Kg=function(t,e){var n=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";!function(t){t.hot&&t.hot.accept()}(t);var r=i.get(t);if(r||(r=new Set,i.set(t,r)),r.has(n))throw new Error("ud functions can only be used once per module with a given key");r.add(n);var o=!1,s=void 0;return t.hot&&(t.hot.data&&t.hot.data.__ud__&&Object.prototype.hasOwnProperty.call(t.hot.data.__ud__,n)&&(s=t.hot.data.__ud__[n],o=!0),t.hot.dispose((function(t){t.__ud__||(t.__ud__={}),t.__ud__[n]=s}))),o||(s=e()),s}(t,(function(){if(!t.hot)return{fn:null,wrapper:e};var n={fn:null,wrapper:null},i=r(e.length).map((function(t){return"a"+t})).join(",");return n.wrapper=new Function("shared","\n 'use strict';\n return function ".concat(e.name,"__ud_wrapper(").concat(i,") {\n if (new.target) {\n return Reflect.construct(shared.fn, arguments, new.target);\n } else {\n return shared.fn.apply(this, arguments);\n }\n };\n "))(n),e.prototype?(n.wrapper.prototype=Object.create(e.prototype),n.wrapper.prototype.constructor=n.wrapper):n.wrapper.prototype=e.prototype,n}),"--defn-shared-"+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:""));return n.fn=e,t.hot&&(e.prototype&&n.wrapper.prototype&&Object.getPrototypeOf(n.wrapper.prototype)!==e.prototype&&Object.setPrototypeOf(n.wrapper.prototype,e.prototype),Object.setPrototypeOf(n.wrapper,e)),n.wrapper};var r=n(3758),i=(n(3687),new WeakMap)},1496:t=>{"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},384:t=>{t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},9539:(t,e,n)=>{var r=n(4155),i=/%[sdj%]/g;e.format=function(t){if(!v(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(a(arguments[n]));return e.join(" ")}n=1;for(var r=arguments,o=r.length,s=String(t).replace(i,(function(t){if("%%"===t)return"%";if(n>=o)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return t}})),u=r[n];n<o;u=r[++n])_(u)||!b(u)?s+=" "+u:s+=" "+a(u);return s},e.deprecate=function(t,i){if(m(n.g.process))return function(){return e.deprecate(t,i).apply(this,arguments)};if(!0===r.noDeprecation)return t;var o=!1;return function(){if(!o){if(r.throwDeprecation)throw new Error(i);r.traceDeprecation?console.trace(i):console.error(i),o=!0}return t.apply(this,arguments)}};var o,s={};function a(t,n){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),p(n)?r.showHidden=n:n&&e._extend(r,n),m(r.showHidden)&&(r.showHidden=!1),m(r.depth)&&(r.depth=2),m(r.colors)&&(r.colors=!1),m(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),l(r,t,r.depth)}function u(t,e){var n=a.styles[e];return n?"["+a.colors[n][0]+"m"+t+"["+a.colors[n][1]+"m":t}function c(t,e){return t}function l(t,n,r){if(t.customInspect&&n&&E(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,t);return v(i)||(i=l(t,i,r)),i}var o=function(t,e){if(m(e))return t.stylize("undefined","undefined");if(v(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return y(e)?t.stylize(""+e,"number"):p(e)?t.stylize(""+e,"boolean"):_(e)?t.stylize("null","null"):void 0}(t,n);if(o)return o;var s=Object.keys(n),a=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(s);if(t.showHidden&&(s=Object.getOwnPropertyNames(n)),w(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return f(n);if(0===s.length){if(E(n)){var u=n.name?": "+n.name:"";return t.stylize("[Function"+u+"]","special")}if(g(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(x(n))return t.stylize(Date.prototype.toString.call(n),"date");if(w(n))return f(n)}var c,b="",A=!1,S=["{","}"];return d(n)&&(A=!0,S=["[","]"]),E(n)&&(b=" [Function"+(n.name?": "+n.name:"")+"]"),g(n)&&(b=" "+RegExp.prototype.toString.call(n)),x(n)&&(b=" "+Date.prototype.toUTCString.call(n)),w(n)&&(b=" "+f(n)),0!==s.length||A&&0!=n.length?r<0?g(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),c=A?function(t,e,n,r,i){for(var o=[],s=0,a=e.length;s<a;++s)T(e,String(s))?o.push(h(t,e,n,r,String(s),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(h(t,e,n,r,i,!0))})),o}(t,n,r,a,s):s.map((function(e){return h(t,n,r,a,e,A)})),t.seen.pop(),function(t,e,n){return t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}(c,b,S)):S[0]+b+S[1]}function f(t){return"["+Error.prototype.toString.call(t)+"]"}function h(t,e,n,r,i,o){var s,a,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?a=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(a=t.stylize("[Setter]","special")),T(r,i)||(s="["+i+"]"),a||(t.seen.indexOf(u.value)<0?(a=_(n)?l(t,u.value,null):l(t,u.value,n-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+a.split("\n").map((function(t){return" "+t})).join("\n")):a=t.stylize("[Circular]","special")),m(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function d(t){return Array.isArray(t)}function p(t){return"boolean"==typeof t}function _(t){return null===t}function y(t){return"number"==typeof t}function v(t){return"string"==typeof t}function m(t){return void 0===t}function g(t){return b(t)&&"[object RegExp]"===A(t)}function b(t){return"object"==typeof t&&null!==t}function x(t){return b(t)&&"[object Date]"===A(t)}function w(t){return b(t)&&("[object Error]"===A(t)||t instanceof Error)}function E(t){return"function"==typeof t}function A(t){return Object.prototype.toString.call(t)}function S(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(m(o)&&(o=r.env.NODE_DEBUG||""),t=t.toUpperCase(),!s[t])if(new RegExp("\\b"+t+"\\b","i").test(o)){var n=r.pid;s[t]=function(){var r=e.format.apply(e,arguments);console.error("%s %d: %s",t,n,r)}}else s[t]=function(){};return s[t]},e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=d,e.isBoolean=p,e.isNull=_,e.isNullOrUndefined=function(t){return null==t},e.isNumber=y,e.isString=v,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=m,e.isRegExp=g,e.isObject=b,e.isDate=x,e.isError=w,e.isFunction=E,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=n(384);var O=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,n;console.log("%s - %s",(n=[S((t=new Date).getHours()),S(t.getMinutes()),S(t.getSeconds())].join(":"),[t.getDate(),O[t.getMonth()],n].join(" ")),e.format.apply(e,arguments))},e.inherits=n(1496),e._extend=function(t,e){if(!e||!b(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t}},3687:t=>{t.exports=function(t,e){1==arguments.length&&(e=t[1],t=t[0]);for(var n={},r=0;r<t.length;r+=1)n[t[r]]=e[r];return n}},3897:t=>{t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},t.exports.__esModule=!0,t.exports.default=t.exports},3405:(t,e,n)=>{var r=n(3897);t.exports=function(t){if(Array.isArray(t))return r(t)},t.exports.__esModule=!0,t.exports.default=t.exports},4836:t=>{t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},9498:t=>{t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},2281:t=>{t.exports=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.")},t.exports.__esModule=!0,t.exports.default=t.exports},861:(t,e,n)=>{var r=n(3405),i=n(9498),o=n(6116),s=n(2281);t.exports=function(t){return r(t)||i(t)||o(t)||s()},t.exports.__esModule=!0,t.exports.default=t.exports},8698:t=>{function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},6116:(t,e,n)=>{var r=n(3897);t.exports=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={id:r,loaded:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.amdD=function(){throw new Error("define cannot be used indirect")},n.amdO={},n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.hmd=t=>((t=Object.create(t)).children||(t.children=[]),Object.defineProperty(t,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+t.id)}}),t),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{if(!n.g.__InboxSDKInjected){n.g.__InboxSDKInjected=!0;const t=n(3721);let e;try{n.amdD&&n.amdO&&(e=n.amdD,n.amdD=null);const t=n(9979),r=n(8953).Z,i=n(8451).Z,o=n(2734).Z,s=n(3335).Z,a=n(2165).Z,u=n(7330).Z,c=n(6424).Z,l=n(9175).Z,f=n(7851).Z;if("https://mail.google.com"!==document.location.origin)throw new Error("Should not happen");l(),f(),t.init(),r(),i(),o(),s(),a(),u(),c()}catch(e){t.error(e)}finally{e&&(n.amdD=e)}}})()})();
3
3
  //# sourceMappingURL=pageWorld.js.map